/* KrawallWerk Customer Portal / SudoDrive visual family, 2026-10-27.
   Design reference: KrawallWerk-SudoDrive-Homepage/site/assets/style.css.
   Multi-product portal: deliberately retain KrawallWerk identity and all portal workflows.
   This layer comes LAST; it does not replace access, billing, instance or dialog logic. */
:root:not([data-portal-theme="light"]){
  color-scheme:dark;
  --bg:#0a0e14;--surface:#111720;--surface-2:#171e29;--surface-3:#202935;
  --ink:#f4f6fa;--muted:#a4aebb;--faint:#697584;--line:rgba(195,208,230,.13);
  --orange:#ff792f;--deep-orange:#ffa46c;
  --portal-accent:#ff792f;--portal-accent-on:#1e1008;
  --portal-soft:rgba(255,121,47,.12);--portal-field:#171e29;--portal-nav:#cbd3dd;
  --portal-shadow:0 18px 54px rgba(0,0,0,.18);
  --portal-glass:rgba(14,18,26,.84);--portal-glow:rgba(255,111,38,.15);
  --portal-shadow-large:0 26px 80px rgba(0,0,0,.25);
}
:root[data-portal-theme="light"]{
  color-scheme:light;
  --bg:#f7f7f6;--surface:#ffffff;--surface-2:#f0f0ef;--surface-3:#e8e8e6;
  --ink:#1d232b;--muted:#56606c;--faint:#727b85;--line:rgba(42,53,65,.12);
  --orange:#ef6724;--deep-orange:#ba4b18;
  --portal-accent:#ef6724;--portal-accent-on:#ffffff;
  --portal-soft:rgba(239,103,36,.095);--portal-field:#ffffff;--portal-nav:#424b56;
  --portal-shadow:0 12px 38px rgba(24,30,36,.055);
  --portal-glass:rgba(247,247,246,.9);--portal-glow:rgba(255,116,37,.13);
  --portal-shadow-large:0 20px 80px rgba(24,30,36,.08);
}
body.portal-home,body.portal-login{
  font-family:Inter,"SF Pro Display","Segoe UI",ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Arial,sans-serif;
  background:var(--bg);color:var(--ink);font-size:15px;line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
body.portal-home{background:
  radial-gradient(ellipse 52% 32% at 92% 3%,var(--portal-glow),transparent 75%),
  radial-gradient(ellipse 40% 32% at 5% 60%,rgba(95,113,137,.055),transparent 85%),
  var(--bg);}
body.portal-home .portal-shell{background:transparent;min-width:0}
body.portal-home .portal-top{
  position:sticky;top:0;z-index:70;min-height:81px;
  background:var(--portal-glass);border-bottom:1px solid var(--line);
  box-shadow:none;backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);
  padding:12px max(22px,calc((100vw - 1240px)/2));gap:14px;
}
body.portal-home .portal-brand{gap:11px}
body.portal-home .portal-mark,body.portal-login .portal-mark{
  color:var(--ink);font-weight:950;letter-spacing:-.095em;font-size:30px;line-height:1;
}
body.portal-home .portal-mark span,body.portal-login .portal-mark span{color:var(--orange)}
body.portal-home .portal-brand strong,body.portal-login .portal-brand strong{
  color:var(--ink);font-size:12px;letter-spacing:.16em;font-weight:850;
}
body.portal-home .portal-brand small,body.portal-login .portal-brand small{
  color:var(--muted);font-size:9px;letter-spacing:.16em;font-weight:700;
}
body.portal-home .portal-navigation{gap:3px}
body.portal-home .portal-navigation button{
  position:relative;padding:10px 12px;min-height:42px;border:1px solid transparent;
  border-radius:10px;font-size:12px;font-weight:710;color:var(--muted);
  transition:color .16s,border-color .16s,background .16s;
}
body.portal-home .portal-navigation button:hover:not(.active){
  background:var(--surface-2);color:var(--ink);
}
body.portal-home .portal-navigation button.active{
  color:var(--ink);background:var(--portal-soft);border-color:rgba(255,121,47,.18);
}
body.portal-home .portal-navigation button.active::after{
  content:"";position:absolute;left:15px;right:15px;bottom:3px;height:2px;
  border-radius:2px;background:var(--portal-accent);
}
body.portal-home .portal-top-actions{gap:7px;flex-wrap:nowrap}
body.portal-home .portal-secondary,body.portal-login .portal-secondary{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  color:var(--ink);background:var(--surface);border:1px solid var(--line);
  border-radius:10px;font-size:12px;font-weight:740;min-height:40px;padding:9px 13px;
  text-decoration:none;transition:background .16s,border-color .16s,transform .16s;
}
body.portal-home .portal-secondary:hover,body.portal-login .portal-secondary:hover{
  background:var(--surface-2);border-color:rgba(255,121,47,.5);color:var(--ink);
}
body.portal-home .portal-help-button{
  background:transparent;border:1px solid transparent;color:var(--muted);
  font-size:12px;min-height:40px;
}
body.portal-home .portal-help-button:hover,body.portal-home .portal-help-button.active{
  background:var(--portal-soft);border-color:rgba(255,121,47,.18);color:var(--ink);
}
body.portal-home .portal-help-icon{border-color:var(--portal-accent);color:var(--portal-accent)}
body.portal-home .portal-main{width:min(1240px,100%);max-width:1240px;padding:28px 24px 44px}
body.portal-home .portal-eyebrow,body.portal-login .portal-eyebrow{
  color:var(--portal-accent);font-size:10px;line-height:1.4;letter-spacing:.2em;font-weight:850;
}
body.portal-home h1,body.portal-home h2,body.portal-home h3,body.portal-login h1{
  color:var(--ink);letter-spacing:-.046em;
}
body.portal-home .portal-home-welcome{
  position:relative;isolation:isolate;overflow:hidden;
  padding:30px clamp(22px,3vw,39px);border:1px solid var(--line);
  border-radius:22px;background:
    radial-gradient(ellipse 49% 96% at 90% 41%,var(--portal-glow),transparent 85%),
    linear-gradient(115deg,var(--surface),var(--surface-2));
  box-shadow:var(--portal-shadow);gap:15px;
}
body.portal-home .portal-home-welcome::before{
  content:"";position:absolute;inset:0 0 0 42%;z-index:-1;pointer-events:none;opacity:.3;
  background-image:linear-gradient(90deg,rgba(137,153,176,.13) 1px,transparent 1px),
                   linear-gradient(rgba(137,153,176,.13) 1px,transparent 1px);
  background-size:44px 44px;
  -webkit-mask-image:linear-gradient(90deg,transparent,black 45%);
  mask-image:linear-gradient(90deg,transparent,black 45%);
}
body.portal-home .portal-home-welcome h1{
  font-size:clamp(29px,3.5vw,43px);font-weight:820;line-height:1.1;
  margin:12px 0 10px;
}
body.portal-home .portal-home-identity{gap:10px}
body.portal-home .portal-home-identity strong{font-size:14px;color:var(--ink);font-weight:750}
body.portal-home .portal-home-identity .portal-muted{font-size:12px;color:var(--muted)}
body.portal-home .portal-home-updates{
  margin-top:16px;border-color:rgba(255,121,47,.32);background:var(--portal-soft);
  border-radius:14px;
}
body.portal-home .portal-home-update-dot{background:var(--portal-accent);box-shadow:0 0 0 4px var(--portal-soft)}
body.portal-home .portal-home-applications{margin:30px 0 23px}
body.portal-home .portal-cockpit-section-head{margin-bottom:14px}
body.portal-home .portal-cockpit-section-head h2{font-size:clamp(21px,2.3vw,27px);font-weight:780}
body.portal-home .portal-section-heading h2{font-size:clamp(27px,3vw,37px);font-weight:800}
body.portal-home .portal-product-count{border:1px solid rgba(255,121,47,.16);border-radius:9px}
body.portal-home .portal-section-link{font-size:12px;color:var(--deep-orange)}
body.portal-home .portal-home-product-list,body.portal-home #portal-products{gap:11px}
body.portal-home .portal-card,body.portal-home .portal-product-compact{
  border:1px solid var(--line);background:var(--surface);border-radius:18px;
  box-shadow:var(--portal-shadow);
}
body.portal-home .portal-product-compact{
  min-height:94px;padding:15px 19px;gap:15px;
  transition:background .16s,border-color .16s;
}
body.portal-home .portal-product-compact:hover{border-color:rgba(255,121,47,.28);background:var(--surface-2)}
body.portal-home .portal-product-emblem{
  width:52px;height:52px;border-radius:13px;border:1px solid rgba(255,121,47,.16);
  color:var(--deep-orange);background:linear-gradient(145deg,var(--portal-soft),var(--surface-2));
  font-weight:850;
}
body.portal-home .portal-product-identity strong{font-size:16px;font-weight:800}
body.portal-home .portal-product-identity small{font-size:12px;color:var(--muted)}
body.portal-home .portal-product-state{
  border:1px solid var(--line);background:var(--surface-2);color:var(--ink);
  font-size:11px;padding:7px 10px;
}
body.portal-home .portal-home-bottom{margin:25px 0 0}
body.portal-home .portal-home-links{gap:11px}
body.portal-home .portal-home-link{
  min-height:84px;background:var(--surface);border-radius:16px;
  border:1px solid var(--line);padding:15px 17px;
  box-shadow:var(--portal-shadow);transition:background .17s,border-color .17s,transform .17s;
}
body.portal-home .portal-home-link:hover{
  transform:translateY(-2px);background:var(--surface-2);border-color:rgba(255,121,47,.42);
}
body.portal-home .portal-home-link-icon{
  width:37px;height:37px;border-radius:11px;border:1px solid rgba(255,121,47,.16);
  color:var(--deep-orange);background:var(--portal-soft);
}
body.portal-home .portal-home-link strong{font-size:13px;font-weight:790}
body.portal-home .portal-home-link small{font-size:11px;color:var(--muted)}
body.portal-home .portal-link-chevron{color:var(--deep-orange)}
body.portal-home .portal-cockpit-empty{
  background:var(--surface);border-color:var(--line);border-radius:17px;padding:23px;
}
body.portal-home .portal-product-search-label{
  border:1px solid var(--line);background:var(--surface);border-radius:11px;
}
body.portal-home .portal-product-search-label:focus-within{border-color:var(--portal-accent)}
body.portal-home .portal-product-detail{padding:22px;border-radius:18px}
body.portal-home .portal-detail-list>div,body.portal-home .portal-instance-info>div{
  border-color:var(--line);background:var(--surface-2);border-radius:12px;
}
body.portal-home .portal-instance-panel,body.portal-home .portal-instance-management,
body.portal-home .portal-instance-connections,body.portal-home .portal-shop-preparation,
body.portal-home .portal-shop-requests{
  border-color:var(--line);border-radius:16px;
}
body.portal-home .portal-shop-quote,body.portal-home .portal-cockpit-banner{
  background:var(--portal-soft);border:1px solid rgba(255,121,47,.24);border-radius:13px;
}
body.portal-home .portal-order-row,body.portal-home .portal-billing-record,
body.portal-home .portal-team-row,body.portal-home .portal-service-row{
  border:1px solid var(--line);background:var(--surface);border-radius:13px;
}
body.portal-home .portal-team-row:hover,body.portal-home .portal-service-row:hover{
  border-color:rgba(255,121,47,.4);background:var(--surface-2);
}
body.portal-home .portal-form :is(input,textarea,select),
body.portal-home .portal-shop-form :is(input,select),
body.portal-home .portal-instance-name-form input,
body.portal-home .portal-service-create :is(input,textarea,select){
  background:var(--portal-field);color:var(--ink);border:1px solid var(--line);
  border-radius:11px;min-height:44px;font-size:14px;
}
body.portal-home .portal-form :is(input,textarea,select)::placeholder,
body.portal-login .portal-form :is(input,textarea,select)::placeholder{color:var(--faint)}
body.portal-home :is(.portal-primary,.portal-form button:not(.portal-secondary)),
body.portal-login .portal-form button{
  background:var(--portal-accent);color:var(--portal-accent-on);
  border:1px solid var(--portal-accent);border-radius:11px;
  min-height:44px;font-size:13px;font-weight:800;
  box-shadow:0 9px 27px rgba(248,109,33,.14);
  transition:background .16s,transform .16s;
}
body.portal-home :is(.portal-primary,.portal-form button:not(.portal-secondary)):hover,
body.portal-login .portal-form button:hover{background:#ff934f;color:#1e1008;transform:translateY(-1px)}
:root[data-portal-theme="light"] body.portal-home :is(.portal-primary,.portal-form button:not(.portal-secondary)):hover,
:root[data-portal-theme="light"] body.portal-login .portal-form button:hover{background:#d55c22;color:#fff}
body.portal-home .portal-instance-actions .portal-danger{
  color:#ef8880;background:rgba(239,103,80,.06);border-color:rgba(239,103,80,.3);
  box-shadow:none;
}
body.portal-home .portal-instance-dialog{
  color:var(--ink);background:var(--surface);border:1px solid var(--line);
  border-radius:18px;box-shadow:var(--portal-shadow-large);
}
body.portal-home .portal-instance-dialog::backdrop{background:rgba(2,5,12,.74)}
body.portal-home .portal-instance-dialog input{background:var(--portal-field);color:var(--ink);border-color:var(--line);border-radius:11px}
body.portal-home :is(.portal-service-create,.portal-team-create,.portal-settings)>summary{
  color:var(--ink);font-weight:780;
}
body.portal-home .portal-service-create,body.portal-home .portal-service-thread,
body.portal-home .portal-team-create{background:var(--surface-2);border-color:var(--line);border-radius:13px}
body.portal-home .portal-footer{border-color:var(--line);background:transparent;color:var(--faint)}
body.portal-home :is(button,input,select,textarea,summary,a):focus-visible,
body.portal-login :is(button,input,select,textarea,summary,a):focus-visible{
  outline:3px solid var(--portal-accent);outline-offset:3px;
}
/* Authentication, email activation and invitation share the same SudoDrive visual grammar. */
body.portal-login{
  min-height:100vh;
  background:
    radial-gradient(ellipse 50% 38% at 88% 23%,var(--portal-glow),transparent 80%),
    radial-gradient(ellipse 41% 35% at 15% 80%,rgba(94,112,136,.11),transparent 79%),
    var(--bg);
  padding:26px 20px;
}
body.portal-login .portal-auth-wrap{width:min(100%,510px);position:relative}
body.portal-login .portal-signup-wrap{width:min(100%,850px);max-width:850px}
body.portal-login .portal-login-card{
  margin-top:24px;padding:clamp(22px,4vw,34px);
  border:1px solid var(--line);background:
    radial-gradient(ellipse 70% 45% at 100% 0%,var(--portal-glow),transparent 85%),
    var(--surface);
  border-radius:22px;box-shadow:var(--portal-shadow-large);
}
body.portal-login .portal-brand{gap:12px}
body.portal-login .portal-login-theme{right:0;top:0;border-radius:11px;min-height:39px}
body.portal-login h1{font-size:clamp(29px,3vw,39px);line-height:1.12;font-weight:830;margin:12px 0}
body.portal-login .portal-muted{font-size:13px;line-height:1.6;color:var(--muted)}
body.portal-login .portal-form{gap:14px;margin-top:22px}
body.portal-login .portal-form label{font-size:13px;font-weight:740;color:var(--ink);gap:7px}
body.portal-login .portal-form :is(input,textarea,select){
  width:100%;min-height:47px;background:var(--portal-field);border:1px solid var(--line);
  color:var(--ink);border-radius:11px;padding:11px 13px;font-size:14px;
}
body.portal-login .portal-form button{min-height:49px}
body.portal-login .portal-registration-notice{border-radius:12px}
body.portal-login .portal-meta{color:var(--faint);font-size:11px}
body.portal-login .portal-muted a:not(.portal-secondary){
  color:var(--deep-orange);text-decoration:underline;text-underline-offset:3px;
}
body.portal-login .portal-signup-card{padding:clamp(21px,4vw,35px)}
body.portal-home.portal-setup .portal-main{max-width:860px}
body.portal-home.portal-setup .portal-main>.portal-card{
  margin-top:22px;padding:clamp(22px,4vw,36px);border-radius:20px;
}
@media(max-width:1050px){
  body.portal-home .portal-top{gap:8px;padding:10px 21px}
  body.portal-home .portal-navigation{order:3;flex:1 1 100%;justify-content:flex-start;overflow-x:auto}
}
@media(max-width:690px){
  body.portal-home .portal-top{min-height:65px;gap:7px;padding:10px 14px}
  body.portal-home .portal-main{padding:18px 15px 32px}
  body.portal-home .portal-home-welcome{padding:22px 19px;border-radius:17px}
  body.portal-home .portal-home-welcome::before{inset:0 0 0 35%;opacity:.17}
  body.portal-home .portal-home-welcome h1{font-size:clamp(27px,8vw,34px)}
  body.portal-home .portal-navigation{gap:2px;flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto}
  body.portal-home .portal-navigation button{font-size:12px;min-height:38px;padding:8px 10px}
  body.portal-home .portal-top-actions{margin-left:auto}
  body.portal-home .portal-top-actions :is(.portal-secondary,.portal-help-button){padding:8px 10px}
  body.portal-home .portal-product-compact{padding:13px;gap:10px}
  body.portal-home .portal-product-emblem{width:45px;height:45px}
  body.portal-home .portal-home-links{grid-template-columns:1fr}
  body.portal-home .portal-home-link{min-height:70px}
  body.portal-login{padding:21px 14px}
}
@media(max-width:460px){
  body.portal-home .portal-top{align-items:center}
  body.portal-home .portal-navigation{order:3;flex-basis:100%}
  body.portal-home .portal-product-compact{flex-wrap:wrap}
  body.portal-home .portal-product-actions{flex-basis:100%;justify-content:flex-end}
  body.portal-home .portal-product-state{margin-left:auto}
  body.portal-login .portal-brand{max-width:calc(100% - 95px)}
}
@media(prefers-reduced-motion:reduce){
  body.portal-home .portal-home-link,body.portal-home .portal-product-compact,
  body.portal-home .portal-secondary,body.portal-login .portal-form button{
    transition:none;transform:none;
  }
}