/* Exact storefront palette and purchase-window materials, adapted to agent/admin controls. */
html{--modern-bg:#040d23;--modern-surface:#0b1b35;--modern-input:#07152c88;--modern-ink:#eef7ff;--modern-muted:#a7bdd7;--modern-line:#c2e1ff24;--modern-accent:#d7edff;--modern-active:#193b5f;--modern-shadow:0 16px 42px #02081870;color-scheme:dark}
html[data-theme=day]{--modern-bg:#f7f8f6;--modern-surface:#fff;--modern-input:#f4f7fa;--modern-ink:#18202b;--modern-muted:#637080;--modern-line:#dce1e8;--modern-accent:#172238;--modern-active:#e9edf2;--modern-shadow:0 16px 42px #17223812;color-scheme:light}
html body{isolation:isolate;background:var(--modern-bg)!important;color:var(--modern-ink)!important;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;line-height:1.68;--bg:var(--modern-bg);--paper:var(--modern-surface);--ink:var(--modern-ink);--muted:var(--modern-muted);--line:var(--modern-line)}
body::before,body::after{content:"";position:fixed;pointer-events:none;z-index:-1;inset:-25%;background-repeat:no-repeat}
body::before{background:radial-gradient(ellipse at 25% 28%,#126de2b8 0,transparent 37%),radial-gradient(ellipse at 70% 52%,#238ed9a8 0,transparent 34%),radial-gradient(ellipse at 56% 84%,#25c7dc6b 0,transparent 32%)}
body::after{background:radial-gradient(ellipse at 68% 26%,#366fe76b 0,transparent 35%),radial-gradient(ellipse at 30% 70%,#66c8ff4f 0,transparent 32%)}html[data-theme=day] body::before,html[data-theme=day] body::after{opacity:.08}
html body>header{background:transparent!important;border-bottom:1px solid #ffffff70!important;padding:20px 28px;box-shadow:none;color:var(--modern-ink)}html[data-theme=day] body>header{border-color:var(--modern-line)!important}html body header span{color:var(--modern-ink)}
html body button,html body .button{font-family:inherit;border:1px solid var(--modern-line);border-radius:8px;background:#ffffff0a;color:var(--modern-ink);padding:10px 16px;box-shadow:none}html body button:hover,html body .button:hover{background:var(--modern-active);border-color:#bddfff66}html body button:focus-visible{outline:2px solid var(--modern-accent);outline-offset:3px}html body input,html body select,html body textarea{font-family:inherit;background:var(--modern-input)!important;color:var(--modern-ink)!important;border:1px solid var(--modern-line)!important;border-radius:8px;padding:11px 13px}html body label,html body small,html body .muted{color:var(--modern-muted)}html body h1,html body h2,html body h3{font-family:inherit;color:var(--modern-ink);letter-spacing:-.03em}html body h1{font-size:30px;font-weight:650}html body h2{font-size:22px;font-weight:600}
html body form>button:not([type]),html body form button[type=submit],html body .button.primary,html body .login form>button{background:var(--modern-accent);color:var(--modern-bg);border-color:var(--modern-accent);border-radius:12px;font-weight:600}html[data-theme=day] body form button[type=submit]{color:#fff}
html body .edition-tabs{display:flex;width:min(410px,100%);padding:4px;background:var(--modern-input);border:1px solid var(--modern-line);border-radius:999px;gap:0;margin:16px 0 24px}html body .edition-tabs button{flex:1;min-width:0;border:0;border-radius:999px;background:transparent;color:var(--modern-muted);padding:10px 20px}html body .edition-tabs button[aria-pressed=true]{background:var(--modern-accent);color:var(--modern-bg)}
html body .agent-card-options{gap:16px}html body .agent-card-option{background:#102642bd;border:1px solid #aacfee26;border-radius:16px;box-shadow:0 16px 45px #02091730!important;padding:22px;gap:10px}html body .agent-card-option[aria-pressed=true]{background:linear-gradient(135deg,#203b5c,#102642);border-color:#cfe9ff88}html body .agent-card-option strong{color:var(--modern-ink);font-family:inherit;font-weight:600;font-size:20px}html body .agent-card-option span{color:var(--modern-ink);font-family:inherit;font-size:36px;font-weight:700;letter-spacing:-.04em}html body .agent-card-option small{color:var(--modern-muted)}html[data-theme=day] body .agent-card-option{background:#fff;border-color:#dce1e8}html[data-theme=day] body .agent-card-option[aria-pressed=true]{background:#eef5fc;border-color:#98bfdc}
html body .admin-layout nav,html body .admin-sidebar{background:#0b203bd9!important;border:1px solid var(--modern-line);border-radius:12px}html body .admin-layout nav button,html body .admin-sidebar .tab{background:transparent;color:var(--modern-muted)!important;border-radius:8px;border:0}html body .admin-layout nav button:hover,html body .admin-sidebar .tab.active{background:var(--modern-active)!important;color:var(--modern-ink)!important;box-shadow:inset 3px 0 #9dd7ff}html[data-theme=day] body .admin-layout nav,html[data-theme=day] body .admin-sidebar{background:#ffffffd9!important}html body .sidebar-title{color:var(--modern-ink)}html body .admin-nav-group{color:var(--modern-muted)}
html body .item,html body fieldset,html body .login form{border-color:var(--modern-line)}html body details>summary::before{color:var(--modern-muted)}html body pre{background:var(--modern-input);border:1px solid var(--modern-line);border-radius:8px;color:var(--modern-ink)}html body .admin-metric{background:var(--modern-surface);color:var(--modern-ink);border-color:var(--modern-line)}html body .metrics div{color:var(--modern-muted);border-color:var(--modern-line)}html body .metrics strong,html body .admin-metric strong{font-family:inherit;color:var(--modern-ink)}html body .card,html body .panel{color:var(--modern-ink);border-color:var(--modern-line)}html body dialog{background:var(--modern-surface);color:var(--modern-ink);border:1px solid var(--modern-line);border-radius:16px}html body [role=status]{color:var(--modern-muted)}.modern-theme-switch{width:36px;min-width:36px;height:36px;padding:5px!important;flex:0 0 36px!important}.agent-manager-frame{background:transparent!important}.modern-flow-canvas{display:none!important}
#content.workspace{width:min(1080px,100%);padding:34px;margin:auto}#buy{max-width:760px}.login form{border-top:0!important}.login{margin-top:16vh}.login img{width:180px}
@media(max-width:700px){html body>header{padding:16px}#content.workspace{padding:20px 16px}html body .agent-card-options{gap:8px}html body .agent-card-option{padding:16px 12px;border-radius:12px}html body .agent-card-option strong{font-size:17px}html body .agent-card-option span{font-size:25px}html body h1{font-size:25px}.login{margin-top:12vh}}

/* Route every legacy admin variable through the storefront theme. */
html body,html body:not(.light),html body.light{--a-page:var(--modern-bg)!important;--a-surface:var(--modern-surface)!important;--a-surface-2:#ffffff0a!important;--a-border:var(--modern-line)!important;--a-text:var(--modern-ink)!important;--a-muted:var(--modern-muted)!important;--a-accent:var(--modern-accent)!important;--a-accent-soft:var(--modern-active)!important;--a-field:var(--modern-input)!important;--a-shadow:none!important}
html body .dashboard .card,html body .dashboard .variant,html body .dashboard .track,html body .dashboard .panel{background:transparent!important;color:var(--modern-ink)!important;box-shadow:none!important;border-color:var(--modern-line)!important}html body .dashboard .card{padding:18px 0!important;margin:0 0 20px;border-bottom:1px solid var(--modern-line)!important}html body .dashboard .variant{padding:16px 0!important}html body .dashboard .form input,html body .dashboard .form textarea,html body .dashboard .form select{background:var(--modern-input)!important;color:var(--modern-ink)!important;border-color:var(--modern-line)!important;border-radius:9px!important}html body .dashboard .tabs .tab,html body .dashboard .tabs .button{background:transparent!important;color:var(--modern-muted)!important;border-color:transparent!important}html body .dashboard .tabs .tab:hover{background:#aad8ff0c!important;color:var(--modern-ink)!important}html body .dashboard .tabs .tab.active{background:var(--modern-active)!important;color:var(--modern-ink)!important;border-left-color:var(--modern-accent)!important}html body .top{background:var(--modern-input)!important;border-color:var(--modern-line)!important;color:var(--modern-ink)!important}html body .button.primary{background:var(--modern-accent)!important;color:var(--modern-bg)!important;border-color:var(--modern-accent)!important}html body .dashboard .inventory-browser>summary{background:var(--modern-input)!important;border-color:var(--modern-line)!important;border-radius:8px}html body .dashboard .messages,html body .dashboard .conversation{background:var(--modern-input)!important;color:var(--modern-ink)!important}html body .admin-product-tabs button[aria-pressed=true]{background:var(--modern-active)!important;color:var(--modern-ink)!important;border-color:var(--modern-accent)!important}

html,html body *{scrollbar-width:thin;scrollbar-color:#82afcc88 transparent}html[data-theme=day],html[data-theme=day] body *{scrollbar-color:#527fa966 transparent}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:transparent;border-radius:999px}::-webkit-scrollbar-thumb{background:#82afcc88;border-radius:999px;border:1px solid transparent;background-clip:padding-box}::-webkit-scrollbar-thumb:hover{background-color:#a0d5efb3}::-webkit-scrollbar-corner{background:transparent}::-webkit-scrollbar-button{display:none;width:0;height:0}html[data-theme=day] ::-webkit-scrollbar-thumb{background-color:#527fa966}html body .admin-sidebar{scrollbar-gutter:stable}
