/* SWISO Universal 2026 published theme adapter — revision 13.
   This is the single authoritative operational presentation layer. */
:root{
  --swiso-theme-canvas:#f3f7fa;
  --swiso-theme-surface:#ffffff;
  --swiso-theme-elevated:#fbfdfe;
  --swiso-theme-navigation:#f8fbfd;
  --swiso-theme-text:#082f55;
  --swiso-theme-muted:#587187;
  --swiso-theme-navy:#0a3d66;
  --swiso-theme-cyan:#169fd6;
  --swiso-theme-teal:#148c82;
  --swiso-theme-border:#d6e3eb;
  --swiso-theme-warning:#a86e18;
  --swiso-theme-danger:#b83b4a;
  --swiso-theme-nav-width:270px;
  --swiso-theme-content-width:1840px;
}

body[data-swiso-shell="operational"]{
  background:var(--swiso-theme-canvas);
  color:var(--swiso-theme-text);
}
body[data-swiso-shell="operational"] .application-frame,
body[data-swiso-shell="operational"] .ims-app{
  background:linear-gradient(118deg,rgba(22,159,214,.035),transparent 28%),var(--swiso-theme-canvas);
}
body[data-swiso-shell="operational"] [data-swiso-shell-region="header"]{
  background:linear-gradient(100deg,rgba(255,255,255,.99),rgba(247,252,254,.98));
  box-shadow:0 10px 30px rgba(8,47,85,.09);
}
body[data-swiso-shell="operational"] [data-swiso-shell-region="header"]::after{
  content:"";
  position:absolute;
  inset:auto 0 0;
  height:2px;
  background:linear-gradient(90deg,transparent 8%,var(--product-accent,var(--swiso-theme-cyan)) 45%,transparent 92%);
  opacity:.55;
}
body[data-swiso-shell="operational"] [data-swiso-shell-region="navigation"]{
  background:linear-gradient(180deg,var(--swiso-theme-navigation),color-mix(in srgb,var(--swiso-theme-canvas) 72%,#fff));
  color:var(--swiso-theme-text);
  border-right:1px solid var(--swiso-theme-border);
  box-shadow:8px 0 24px rgba(8,47,85,.035);
}
body[data-swiso-shell="operational"] [data-swiso-shell-region="content"]{
  background:radial-gradient(circle at 100% 0,rgba(22,159,214,.055),transparent 27%),var(--swiso-theme-canvas);
}
body[data-swiso-shell="operational"] :is(.management-heading,.module-heading,.dashboard-hero,.dashboard-panel,.workspace-banner,.control-grid>article,.metric,.accounts-panel,.accounts-card,.accounts-action-card,.panel,.roadmap-step){
  border-color:var(--swiso-theme-border);
  background:var(--swiso-theme-surface);
  color:var(--swiso-theme-text);
  box-shadow:0 7px 22px rgba(8,47,85,.055);
}
body[data-swiso-shell="operational"] :is(.management-heading,.module-heading,.dashboard-hero){
  background:linear-gradient(112deg,var(--swiso-theme-surface) 72%,color-mix(in srgb,var(--product-accent,var(--swiso-theme-cyan)) 5%,var(--swiso-theme-surface)));
}
body[data-swiso-shell="operational"] :is(.dashboard-panel,.control-grid>article,.metric,.accounts-panel,.accounts-card,.accounts-action-card,.panel,.roadmap-step){transition:box-shadow .16s ease,border-color .16s ease,transform .16s ease}
body[data-swiso-shell="operational"] :is(.dashboard-panel,.control-grid>article,.metric,.accounts-panel,.accounts-card,.accounts-action-card,.panel,.roadmap-step):hover{
  border-color:color-mix(in srgb,var(--product-accent,var(--swiso-theme-cyan)) 27%,var(--swiso-theme-border));
  box-shadow:0 10px 28px rgba(8,47,85,.075);
}
body[data-swiso-shell="operational"] :is(h1,h2,h3,h4,strong){color:var(--swiso-theme-text)}
body[data-swiso-shell="operational"] :is(p,small,.muted){color:var(--swiso-theme-muted)}
body[data-swiso-shell="operational"] :is(button,.button-link,select,input,textarea){border-radius:9px}
body[data-swiso-shell="operational"] :is(button,a,input,select,textarea):focus-visible{outline:3px solid color-mix(in srgb,var(--product-accent,var(--swiso-theme-cyan)) 42%,transparent);outline-offset:2px}
body[data-swiso-shell="operational"] :is(button.primary,.button-link.primary){
  border-color:transparent;
  background:linear-gradient(120deg,var(--swiso-theme-navy),color-mix(in srgb,var(--product-accent,var(--swiso-theme-teal)) 82%,var(--swiso-theme-navy)));
  color:#fff;
  box-shadow:0 5px 14px rgba(10,61,102,.16);
}

body[data-swiso-product-key="developer"]{--product-accent:#169fd6}
body[data-swiso-product-key="nexus"],body[data-swiso-product-key="managed"]{--product-accent:#126e82}
body[data-swiso-product-key="pathway"]{--product-accent:#168f74}
body[data-swiso-product-key="market"]{--product-accent:#d39a12}
body[data-swiso-product-key="verify"]{--product-accent:#0d8ebf}
body[data-swiso-product-key="forge"]{--product-accent:#e56d25}
body[data-swiso-product-key="academy"]{--product-accent:#b58412}
body[data-swiso-product-key="auditworks"]{--product-accent:#305c8a}
body[data-swiso-product-key="associate"]{--product-accent:#2d887e}
body[data-swiso-product-key="consultant"]{--product-accent:#1686bd}
body[data-swiso-product-key="commercial"]{--product-accent:#c1622d}
body[data-swiso-product-key="accounts"]{--product-accent:#4f6577}

body[data-swiso-shell="operational"][data-swiso-theme-layout="eye-comfort"]{
  background:var(--swiso-theme-canvas);
  color:var(--swiso-theme-text);
}
body[data-swiso-shell="operational"][data-swiso-theme-layout="eye-comfort"] [data-swiso-shell-region="header"]{background:var(--swiso-theme-surface)}
body[data-swiso-shell="operational"][data-swiso-theme-layout="eye-comfort"] [data-swiso-shell-region="navigation"]{background:var(--swiso-theme-navigation)}

html[data-theme="dark"] body[data-swiso-shell="operational"]{
  --swiso-theme-canvas:#101b25;
  --swiso-theme-surface:#172632;
  --swiso-theme-elevated:#1c2d3a;
  --swiso-theme-navigation:#13232f;
  --swiso-theme-text:#edf5f8;
  --swiso-theme-muted:#aec1ce;
  --swiso-theme-border:#314653;
}
html[data-theme="dark"] body[data-swiso-shell="operational"] [data-swiso-shell-region="header"]{background:linear-gradient(100deg,#152530,#1b2e3a)}
html[data-theme="dark"] body[data-swiso-shell="operational"] [data-swiso-shell-region="header"] :is(.logo-panel img,.brand img){filter:grayscale(1) brightness(0) invert(1)}
html[data-theme="dark"] body[data-swiso-shell="operational"] .swiso-product-identity img{filter:none}

@media(prefers-reduced-motion:reduce){
  body[data-swiso-shell="operational"] *,body[data-swiso-shell="operational"] *::before,body[data-swiso-shell="operational"] *::after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}
}
