/* One design system for every PI route, nested panel, dialog, and generated row. */
:root{--u-a:#7251df;--u-b:#26bfc8;--u-c:#ef99c6;--u-bg:#f2f5fc;--u-panel:#ffffff;--u-ink:#192c49;--u-muted:#52647d;--u-line:#d5deed;--u-shadow:0 14px 36px #18345f12;--u-soft:#edf1fa;--u-accent:#5941bb;--u-button:#5941bb}
:root[data-workspace-scene=ocean]{--u-a:#1685a8;--u-b:#48ccba;--u-c:#829af1;--u-accent:#146789;--u-button:#146789}
:root[data-workspace-scene=sunset]{--u-a:#b64989;--u-b:#efb16e;--u-c:#a18bf5;--u-accent:#973568;--u-button:#973568}
:root[data-theme=dark]{--u-bg:#10192a;--u-panel:#1b2940;--u-ink:#f0f4ff;--u-muted:#bac8dc;--u-line:#3b4c66;--u-soft:#24344d;--u-shadow:0 15px 38px #0003;--u-accent:#bdadff}
html body{background:radial-gradient(ellipse at 5% 5%,color-mix(in srgb,var(--u-a) 17%,transparent),transparent 45%),radial-gradient(ellipse at 95% 70%,color-mix(in srgb,var(--u-b) 17%,transparent),transparent 50%),var(--u-bg);color:var(--u-ink);font:16px/1.6 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--bg:var(--u-bg);--text:var(--u-ink);--muted:var(--u-muted);--border:var(--u-line);--panel:var(--u-panel);--teal:var(--u-accent);--chat-bg:var(--u-bg);--chat-surface:var(--u-panel);--chat-text:var(--u-ink);--chat-muted:var(--u-muted);--chat-line:var(--u-line)}
html body .workspace-appearance{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;padding:12px 4px;margin-bottom:12px;color:var(--u-muted);font-size:.875rem}
html body .workspace-appearance span{margin-right:auto;font-weight:650}
html body :is(.panel,.plan-card,.home-plan-card,.metric-card,.stat-card,.home-action,.card,.search-card,.notice-card,dialog,.modal-content){background:linear-gradient(145deg,color-mix(in srgb,var(--u-panel) 96%,var(--u-b)),var(--u-panel));color:var(--u-ink);border:1px solid var(--u-line);border-radius:24px;box-shadow:var(--u-shadow),inset 0 1px 0 #ffffff28;transition:box-shadow .3s,transform .3s}
html body :is(.topbar,.sidebar,.flow-selector,.subnav,.toolbar){border-color:var(--u-line)}
html body .sidebar{background:linear-gradient(165deg,#253254,#17283f);box-shadow:10px 0 32px #0f294614}
html body :is(.main,main){min-width:0}
html body :is(h1,h2,h3,h4){color:var(--u-ink);letter-spacing:-.025em}
html body :is(p,li,label,td){line-height:1.6}
html body :is(.field label,.field-note,.fine,.muted,.panel>p,.plan-card p,.service-grid b,.notice){color:var(--u-muted)}
html body :is(.field label,.field-note,.fine,.mono,.status,.chip,.checkpill,.mode-btn span,.mode-btn strong,summary,th,td){font-size:.875rem}
html body :is(.field input,.field select,.field textarea,input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea){background:var(--u-panel);color:var(--u-ink);border:1px solid var(--u-line);border-radius:13px;min-height:42px;font-size:1rem;max-width:100%}
html body :is(input[type=checkbox],input[type=radio],input[type=range]){accent-color:var(--u-accent)}
html body select option{background:var(--u-panel);color:var(--u-ink)}
html body :is(.btn,button:not(.nav-btn):not(.brand-home):not(.message-reaction)){border-radius:14px;min-height:40px;transition:transform .22s,box-shadow .22s,background-color .3s}
html body :is(.btn.secondary,.btn.ghost,.mode-btn,.checkpill,.pill,.tab-btn,.care-tab,.workspace-appearance button){background:var(--u-panel);color:var(--u-ink);border:1px solid var(--u-line)}
html body :is(.btn.primary,button.primary){background:linear-gradient(130deg,var(--u-button),color-mix(in srgb,var(--u-button) 75%,#173d63));color:#fff;border-color:transparent;box-shadow:0 6px 15px color-mix(in srgb,var(--u-a) 24%,transparent)}
html body :is(button[aria-selected=true],button[aria-pressed=true],.mode-btn.active,.tab-btn.active,.care-tab.active){border-color:var(--u-accent);box-shadow:0 3px 12px color-mix(in srgb,var(--u-a) 20%,transparent)}
html body :is(details){background:color-mix(in srgb,var(--u-panel) 95%,var(--u-b));color:var(--u-ink);border:1px solid var(--u-line);border-radius:16px;padding:14px 16px;margin-block:14px;box-shadow:0 4px 14px #12345606}
html body details details{background:var(--u-soft);box-shadow:none;border-radius:12px}
html body summary{color:var(--u-accent);cursor:pointer;line-height:1.5}
html body :is(pre,code,.service-grid div,.review-item,.empty){background:var(--u-soft);color:var(--u-ink);border-color:var(--u-line)}
html body pre{padding:18px;border-radius:14px;overflow:auto;max-width:100%;font-size:.875rem}
html body :is(th){background:var(--u-soft);color:var(--u-ink)}
html body :is(td){color:var(--u-ink);border-color:var(--u-line)}
html body :is(.table-wrap,.table-scroll){border-radius:17px;border-color:var(--u-line)}
html body tbody tr{transition:background .2s}html body tbody tr:hover{background:color-mix(in srgb,var(--u-a) 7%,transparent)}
html body .screen.active{animation:u-reveal .35s ease both}
html body details[data-revealed=true]>:not(summary){animation:u-reveal .25s ease both}
html body :focus-visible{outline:3px solid var(--u-accent);outline-offset:3px}
@keyframes u-reveal{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(hover:hover){html body :is(.home-action,.plan-card,.home-plan-card):hover{transform:perspective(1100px) translateY(-3px) rotateX(1deg);box-shadow:0 22px 40px #16345e20}html body button:not(:disabled):hover{filter:brightness(1.03)}}
@media(max-width:840px){html body .workspace-appearance{justify-content:flex-start}html body .workspace-appearance span{width:100%}html body :is(.panel,dialog){padding:18px;border-radius:20px}}
html[data-workspace-motion=off] *,html[data-workspace-motion=off] *::before,html[data-workspace-motion=off] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
@media(prefers-reduced-motion:reduce){html *,html *::before,html *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
html body :is(.swagger-ui .opblock,.swagger-ui section.models,.swagger-ui .scheme-container,.redoc-wrap){background:var(--u-panel);color:var(--u-ink);border-color:var(--u-line);border-radius:18px;box-shadow:var(--u-shadow)}
html body .swagger-ui :is(p,label,h2,h3,h4,h5,.opblock-summary-description,.opblock-summary-path,.parameter__name,.parameter__type,td,th){color:var(--u-ink)}
html body .main{background:radial-gradient(ellipse at 0 0,color-mix(in srgb,var(--u-a) 12%,transparent),transparent 48%),radial-gradient(ellipse at 100% 80%,color-mix(in srgb,var(--u-b) 12%,transparent),transparent 55%);border-radius:26px}
/* Separate tools use normal document scrolling; only the main shell owns panes. */
html:not(:has(.shell)){height:auto!important;overflow-x:hidden!important;overflow-y:auto!important}
html:not(:has(.shell)) body{height:auto!important;overflow:visible!important}
