/* Six complete visual systems, shared by every portal screen. */
:root{--input:#fff;--button-ink:#fff;--radius:15px;--accent-hover:#1b5043;--shadow:0 10px 36px #294a3207;font-size:14px;color-scheme:light}
body{isolation:isolate;min-width:300px}.ambient{position:fixed;inset:0;z-index:-2;pointer-events:none;background:var(--paper)}.wrap{width:min(1240px,calc(100% - 80px))}.header{min-height:98px;position:relative;z-index:30;gap:24px}.brand{font-size:21px;letter-spacing:1px;flex-shrink:0}.brand small{font-size:9px;letter-spacing:1.4px;white-space:nowrap}.brandmark{width:43px;height:43px;font-family:"Songti SC",SimSun,serif;font-weight:400}.header nav{gap:19px;font-size:12px;justify-content:flex-end}.nav-section{color:var(--muted);white-space:nowrap}.nav-section>span{margin-left:16px;color:var(--line)}.environment{font-size:10px;border-radius:5px;padding:4px 9px}#identity{max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-button{white-space:nowrap}.hidden{display:none!important}main{min-height:calc(100vh - 193px);padding:42px 0 54px}h1{font-size:32px;line-height:1.35}h2{font-size:19px}h3{font-size:15px;font-weight:550}a{color:var(--accent);text-underline-offset:4px}a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-offset:4px}.eyebrow{display:flex;align-items:center;gap:9px;font-size:10px;letter-spacing:1.8px;color:var(--muted);margin-bottom:14px}.eyebrow-line{display:inline-block;width:22px;height:1px;background:var(--accent)}.card-kicker{font-size:9px;letter-spacing:1.7px;color:var(--muted);font-weight:450;margin-bottom:7px}.hero{margin-bottom:27px}.hero p{margin-top:12px;font-size:14px}.auth-layout{grid-template-columns:1.15fr 1fr;gap:clamp(40px,7vw,100px);max-width:1090px;margin:32px auto 45px}.auth-story h1{font-size:38px;line-height:1.5;max-width:500px;font-weight:500}.auth-story>p{margin-top:22px;max-width:420px;line-height:1.9}.story-line{margin-top:30px;gap:17px;padding-top:23px;max-width:410px}.story-number{font-size:11px;color:var(--accent);font-family:Consolas,monospace}.story-line p{font-size:12px}.auth-card,.card{border-radius:var(--radius);box-shadow:var(--shadow);background:var(--white)}.auth-card{padding:34px}.auth-card h2{font-size:25px}.auth-card>p{margin:10px 0 25px;font-size:12px}.auth-switch{margin-top:24px!important}.field{margin-bottom:18px;font-size:12px}.field input,.field select{margin-top:8px;padding:11px 13px;background:var(--input);color:var(--ink);font-size:14px;min-height:45px;border:1px solid var(--line);border-radius:7px}.field input:focus,.field select:focus{outline:2px solid var(--accent)}.field small{margin-top:6px}button,.button{border-radius:7px;transition:background .16s,border-color .16s,box-shadow .16s}.primary{padding:11px 21px;min-height:44px;font-size:13px;font-weight:500;color:var(--button-ink)}.primary:hover{background:var(--accent-hover);border-color:var(--accent-hover)}.secondary{background:var(--white);color:var(--ink);border:1px solid var(--line);padding:10px 16px;min-height:42px;font-size:12px}.secondary:hover{background:var(--soft)}.form-error{font-size:12px;min-height:20px}.callout{font-size:12px;color:var(--muted);background:var(--soft);border-color:var(--accent)}.knowledge-note{background:var(--soft);border:1px solid var(--line);border-radius:8px;margin:0 0 23px;font-size:11px;color:var(--muted)}.knowledge-note summary{display:flex;align-items:center;gap:10px;cursor:pointer;padding:13px 16px;list-style:none}.knowledge-note summary::-webkit-details-marker{display:none}.knowledge-note strong{font-weight:500;color:var(--ink)}.source-dot{width:6px;height:6px;border-radius:50%;background:var(--accent);flex-shrink:0}.source-more{margin-left:auto;font-size:10px;white-space:nowrap}.source-more>span{display:inline-block;margin-left:10px;transition:transform .2s}.knowledge-note[open] .source-more>span{transform:rotate(45deg)}.knowledge-note>p{padding:0 16px 14px 32px;max-width:1060px;font-size:11px;line-height:1.8}.knowledge-note>p .small{display:block;margin-top:4px;font-size:10px}.knowledge-note.warning{border-color:#c1a76c;background:#f7f1e5;color:#786037}.grid{grid-template-columns:1.6fr 1fr;gap:23px}.card{padding:27px}.card-header{margin-bottom:20px}.badge{padding:4px 10px;font-size:10px;background:var(--soft);color:var(--muted)}.subscription-info{gap:19px 28px;padding:4px 0 25px}.info-label{font-size:11px}.info-value{font-size:14px}.launch-line{padding-top:23px;gap:20px}.launch-line p{font-size:11px;max-width:260px}.steps li{gap:13px;margin:22px 0;font-size:12px}.steps li:last-child{margin-bottom:0}.steps li::before{content:"0" counter(step);width:27px;height:27px;border-color:var(--line);color:var(--accent);font:10px monospace}.steps small{font-size:11px;line-height:1.8;margin-top:4px}.usage-grid{gap:27px;margin:20px 0 19px}.metric{border-right:1px solid var(--line);padding-right:27px;min-width:0}.metric:last-child{border:0;padding-right:0}.metric strong{font-size:31px;line-height:1.65;font-weight:450;letter-spacing:-.8px;font-variant-numeric:tabular-nums}.metric small,.metric-limit{font-size:11px;color:var(--muted)}.metric-limit{display:block}.metric-limit.unlimited{display:inline-flex;align-items:center;gap:6px;color:var(--accent)}.metric-limit.unlimited>span{font-size:16px;line-height:1}.unlimited-line{height:4px;width:100%;background:var(--soft);border-radius:4px;margin-top:13px}.usage-note{border-top:1px solid var(--line);padding-top:14px;font-size:11px}progress{display:block;height:4px;margin-top:13px}progress::-webkit-progress-bar{background:var(--soft)}progress::-webkit-progress-value{background:var(--accent)}progress::-moz-progress-bar{background:var(--accent)}.request-line{margin-top:23px;padding:16px 0;font-size:11px}.request-line button{margin-left:16px;font-size:11px}.admin-summary{gap:0;margin-bottom:26px;font-size:12px;border:1px solid var(--line);border-radius:var(--radius);background:var(--white)}.admin-summary>span{flex:1;padding:21px 26px;border-right:1px solid var(--line)}.admin-summary>span:last-child{border:0}.admin-summary strong{display:block;font-size:28px;font-weight:450;line-height:1.45;letter-spacing:-.7px}.invite-output{font-size:12px}.invite-output code{font-size:13px;background:var(--input)}.table-wrap{border-radius:var(--radius);background:var(--white)}table{font-size:12px}th{font-size:10px;background:var(--soft);padding:16px 20px}td{padding:20px}td small{font-size:10px;margin-top:5px}.table-action{padding:7px 8px;font-size:11px}.footer{padding:24px 0;gap:18px;font-size:10px;color:var(--muted)}.footer>span:first-child>span{margin:0 8px}.footer a{color:var(--muted);white-space:nowrap}.notice{background:var(--ink);color:var(--paper);font-size:12px;z-index:80}.notice.error{background:#8c433d;color:white}.modal-backdrop{background:#0c201b70;backdrop-filter:blur(5px);z-index:90}.modal{background:var(--white);color:var(--ink);border:1px solid var(--line);border-radius:var(--radius);padding:30px;width:min(480px,100%)}.modal>p{font-size:12px;line-height:1.9;margin:10px 0 25px}.server-error>p{margin:14px 0 22px}.skip-link{position:fixed;left:15px;top:-70px;z-index:200;padding:10px 16px;background:var(--ink);color:var(--paper);border-radius:6px}.skip-link:focus{top:10px}
/* Theme selection does not alter identity, sessions or stored research. */
.theme-switcher{position:relative;min-width:0}.theme-switcher>summary{list-style:none;display:flex;align-items:center;gap:7px;border:1px solid var(--line);background:var(--white);border-radius:7px;padding:7px 10px;cursor:pointer;font-size:11px;white-space:nowrap;min-height:35px}.theme-switcher>summary::-webkit-details-marker{display:none}.theme-glyph{font-size:15px;color:var(--accent);line-height:1}.theme-chevron{font-size:13px;color:var(--muted);margin-left:3px}.theme-panel{position:absolute;top:calc(100% + 10px);right:0;width:265px;background:var(--white);border:1px solid var(--line);border-radius:12px;padding:10px;box-shadow:0 16px 64px #001d2226;z-index:70}.theme-panel-title{font-size:12px;font-weight:550;padding:9px 10px 13px;border-bottom:1px solid var(--line);margin-bottom:6px}.theme-panel-title small{display:block;color:var(--muted);font-weight:400;font-size:10px;margin-top:4px}.theme-panel button{display:flex;align-items:center;gap:11px;width:100%;text-align:left;border:0;background:transparent;color:var(--ink);border-radius:7px;padding:10px;font-size:12px}.theme-panel button:hover,.theme-panel button[aria-pressed=true]{background:var(--soft)}.theme-panel strong{display:block;font-weight:500}.theme-panel small{display:block;font-size:10px;color:var(--muted);margin-top:2px;letter-spacing:.3px}.theme-check{margin-left:auto;color:var(--accent);visibility:hidden}.theme-panel button[aria-pressed=true] .theme-check{visibility:visible}.theme-panel>a{display:flex;justify-content:space-between;padding:12px 10px 5px;margin-top:6px;border-top:1px solid var(--line);font-size:11px;color:var(--muted);text-decoration:none}.theme-swatch{width:29px;height:33px;border:1px solid #0001;border-radius:7px;flex-shrink:0}.swatch-porcelain{background:linear-gradient(135deg,#fff 50%,#89b9a8 50%)}.swatch-ink{background:linear-gradient(135deg,#17253c 55%,#87abdb 55%)}.swatch-paper{background:linear-gradient(135deg,#eddfc9 55%,#b96746 55%)}.swatch-forest{background:linear-gradient(135deg,#bdc9ae 45%,#4e7052 45%)}.swatch-prism{background:linear-gradient(145deg,#a0b9fa,#e3c0de 55%,#84d2c5)}
/* 01 / Porcelain: calibrated white surfaces and precise lab details. */
:root[data-theme=porcelain]{--paper:#f5f7f4;--white:#fff;--ink:#193c35;--accent:#2c725e;--accent-hover:#205643;--line:#dce5de;--soft:#edf3ed;--radius:15px}
[data-theme=porcelain] .topline{background:linear-gradient(90deg,#245f4d 0 19%,#cad9ce 19% 42%,#e5ebe6 42%)}[data-theme=porcelain] .workspace-card{border-top:3px solid var(--accent)}[data-theme=porcelain] .onboarding-card{background:linear-gradient(145deg,#f1f5ef,#fff)}[data-theme=porcelain] .auth-story{position:relative;padding-top:18px}[data-theme=porcelain] .auth-story::before{content:"";width:50px;height:50px;border:1px solid #7d9d8c;border-radius:50%;position:absolute;right:16px;top:-30px;box-shadow:13px 12px 0 -1px var(--paper),13px 12px 0 #bed0c3}[data-theme=porcelain] .auth-card{box-shadow:0 24px 70px #3455400a}
/* 02 / Ink: permanent desktop side rail, compact archive, monospace indices. */
:root[data-theme=ink]{--paper:#0d1727;--white:#17243a;--input:#101c2e;--ink:#edf2fc;--muted:#9baec9;--line:#2c3e58;--accent:#a6c6f9;--accent-hover:#c1d9ff;--soft:#1e304b;--button-ink:#10213a;--danger:#ffaaa5;--warn:#e7c086;--radius:8px;--shadow:none;color-scheme:dark}
[data-theme=ink] .topline{position:fixed;top:0;left:0;bottom:0;width:4px;height:auto;z-index:40;background:#92b8ed}[data-theme=ink] .ambient{background:radial-gradient(ellipse at 100% 0,#20385855,transparent 60%),#0d1727}[data-theme=ink] .header{position:fixed;left:4px;top:0;bottom:0;width:220px;height:100vh;padding:31px 23px;flex-direction:column;justify-content:flex-start;align-items:stretch;gap:43px;border-bottom:0;border-right:1px solid var(--line);background:#111e31;margin:0}[data-theme=ink] .brand{font-size:19px;gap:10px}[data-theme=ink] .brandmark{border:1px solid #779ccc;background:transparent;color:#b9d3fc;border-radius:5px;width:38px;height:38px}[data-theme=ink] .brand small{font-size:7px;letter-spacing:.8px}[data-theme=ink] .header nav{flex-direction:column;align-items:stretch;gap:18px;justify-content:start;flex:1;margin:0}[data-theme=ink] .nav-section{display:block;order:-2;color:#afc6e8;font-size:11px;letter-spacing:1px;padding:11px 13px;border-left:2px solid var(--accent);background:#203451}[data-theme=ink] .nav-section>span{display:none}[data-theme=ink] #theme-control{order:-1}[data-theme=ink] .theme-switcher>summary{background:transparent;justify-content:space-between;padding:10px 11px}[data-theme=ink] .theme-panel{left:calc(100% + 16px);right:auto;top:0;background:#17243a}[data-theme=ink] .environment{align-self:start;background:#28354a;color:#c6d3e5;margin-top:auto;order:5}[data-theme=ink] #identity{margin-top:auto;padding-top:23px;border-top:1px solid var(--line);display:block;max-width:none}[data-theme=ink] #logout{align-self:start;font-size:11px}[data-theme=ink] main.wrap,[data-theme=ink] .footer.wrap{width:auto;max-width:1240px;margin-left:260px;margin-right:36px}[data-theme=ink] main{padding-top:36px;min-height:calc(100vh - 78px)}[data-theme=ink] .hero{padding:7px 0 23px;border-bottom:1px solid var(--line);margin-bottom:22px}[data-theme=ink] .hero h1{font-size:29px;font-weight:500}[data-theme=ink] .eyebrow,[data-theme=ink] .card-kicker{font-family:Consolas,monospace;font-size:9px;letter-spacing:1.1px}[data-theme=ink] .eyebrow-line{height:5px;width:5px;border-radius:1px}[data-theme=ink] .card{padding:23px}[data-theme=ink] .workspace-grid{grid-template-columns:1.35fr 1fr;gap:18px}[data-theme=ink] .subscription-info{gap:17px 25px}[data-theme=ink] .onboarding-card{background:#121f33;border-style:dashed}[data-theme=ink] .knowledge-note{background:transparent;border-color:#2b405f}[data-theme=ink] .badge.active,[data-theme=ink] .badge.running{background:#163d37;color:#b1e2c5}[data-theme=ink] .badge.suspended,[data-theme=ink] .badge.expired,[data-theme=ink] .badge.deleted{background:#482d37;color:#ffc4bf}[data-theme=ink] .badge.pending,[data-theme=ink] .badge.unavailable,[data-theme=ink] .callout.warning,[data-theme=ink] .knowledge-note.warning{background:#392f29;color:#e7c58f;border-color:#806543}[data-theme=ink] .usage{margin-top:18px}[data-theme=ink] .metric strong{font-family:Consolas,monospace;font-size:28px;letter-spacing:-1px}[data-theme=ink] .auth-layout{grid-template-columns:1fr;max-width:870px;gap:29px;margin:8px auto 40px}[data-theme=ink] .auth-story{border-bottom:1px solid var(--line);padding-bottom:25px;display:grid;grid-template-columns:1.1fr 1fr;gap:0 35px}[data-theme=ink] .auth-story .eyebrow{grid-column:1/-1}[data-theme=ink] .auth-story h1{font-size:29px;line-height:1.55}[data-theme=ink] .auth-story>p{margin-top:2px;font-size:12px;align-self:center}[data-theme=ink] .story-line{display:none}[data-theme=ink] .auth-card{max-width:480px;width:100%;margin:auto;padding:30px 34px;border-top:2px solid #789ed6}[data-theme=ink] .auth-card h2{font-size:23px}[data-theme=ink] .admin-summary{background:#101e31}[data-theme=ink] .table-wrap{border-radius:6px}[data-theme=ink] th{background:#1a2c45}[data-theme=ink] .modal-backdrop{background:#030a18aa}
/* 03 / Paper: editorial masthead, serif typography and ruled panels. */
:root[data-theme=paper]{--paper:#f3eee3;--white:#faf7ee;--input:#fffdf6;--ink:#3e382c;--muted:#827567;--line:#d5caba;--accent:#9b4d35;--accent-hover:#793b2a;--soft:#ede4d6;--radius:2px;--shadow:none}
[data-theme=paper] .ambient{background-color:#f3eee3;background-image:radial-gradient(#896f4917 .6px,transparent .7px);background-size:5px 5px}[data-theme=paper] .topline{height:7px;background:#3e382c}[data-theme=paper] .header{padding:25px 0 22px;min-height:125px;border-bottom:3px double #ab9d8b}[data-theme=paper] .brand{font-family:"STSong","Songti SC",SimSun,serif;font-size:27px;font-weight:500;letter-spacing:4px}[data-theme=paper] .brandmark{background:transparent;border:1px solid var(--accent);border-radius:0;color:var(--accent);font-size:25px;width:40px;height:44px;box-shadow:3px 3px 0 -1px #f3eee3,3px 3px 0 #9b4d35}[data-theme=paper] .brand small{font-family:Consolas,monospace;font-size:8px;letter-spacing:1.2px}[data-theme=paper] h1,[data-theme=paper] h2,[data-theme=paper] h3{font-family:"STSong","Songti SC",SimSun,serif;font-weight:500}[data-theme=paper] h1{font-size:37px}[data-theme=paper] .eyebrow{font-family:Consolas,monospace;font-size:9px;letter-spacing:1.1px}[data-theme=paper] .hero{border-bottom:1px solid var(--ink);padding-bottom:25px;margin-bottom:21px;align-items:center}[data-theme=paper] .hero p{font-size:13px}[data-theme=paper] .hero h1{letter-spacing:2px}[data-theme=paper] button,[data-theme=paper] .field input,[data-theme=paper] .field select,[data-theme=paper] .badge,[data-theme=paper] .environment,[data-theme=paper] .knowledge-note,[data-theme=paper] .theme-switcher>summary{border-radius:2px}[data-theme=paper] .workspace-grid{grid-template-columns:1fr 1fr;gap:0;border:1px solid #c4b6a4;background:var(--white)}[data-theme=paper] .workspace-grid>.card{border:0;padding:30px}[data-theme=paper] .workspace-grid>.card+.card{border-left:1px solid #c4b6a4}[data-theme=paper] .workspace-card>.card-header h2{font-size:24px}[data-theme=paper] .launch-line{flex-direction:column;align-items:stretch;gap:15px}[data-theme=paper] .launch-line p{max-width:none}[data-theme=paper] .launch-line form .primary{width:100%}[data-theme=paper] .onboarding-card{background:repeating-linear-gradient(transparent 0 31px,#ae96750a 31px 32px)}[data-theme=paper] .steps li{margin:25px 0}[data-theme=paper] .steps li::before{font-family:Georgia,serif;font-size:17px;border:0;background:transparent;color:var(--accent)}[data-theme=paper] .knowledge-note{border-width:0 0 1px;background:transparent}[data-theme=paper] .knowledge-note summary{padding:10px 0 15px}[data-theme=paper] .knowledge-note>p{padding-left:15px}[data-theme=paper] .card-kicker{font-family:Consolas,monospace;letter-spacing:1px;font-size:9px;color:#a26c52}[data-theme=paper] .usage{border-width:1px 0;border-color:#bbaa94;padding:24px 0;background:transparent;margin-top:27px}[data-theme=paper] .metric strong{font-family:Georgia,"Times New Roman",serif;font-size:33px;font-weight:400}[data-theme=paper] .metric-limit{font-family:Consolas,"Microsoft YaHei",monospace;font-size:10px}[data-theme=paper] .auth-layout{grid-template-columns:1.15fr 1fr;gap:65px;margin-top:25px}[data-theme=paper] .auth-story{border-right:1px solid #bba991;padding-right:35px}[data-theme=paper] .auth-story h1{font-size:36px;line-height:1.7;letter-spacing:1px}[data-theme=paper] .auth-story>p{font-size:13px;line-height:2.1}[data-theme=paper] .story-line{border-color:#c3b29c}[data-theme=paper] .story-number{font-family:Georgia,serif;font-size:14px}[data-theme=paper] .auth-card{padding:30px;border:0;background:transparent}[data-theme=paper] .auth-card h2{font-size:28px}[data-theme=paper] .admin-summary{border-width:1px 0;background:transparent;border-color:#b6a48e}[data-theme=paper] .admin-summary strong{display:inline-block;margin-right:12px;font-family:Georgia,serif}[data-theme=paper] .table-wrap{border-color:#bcaa93}[data-theme=paper] th{font-family:"STSong",SimSun,serif;font-size:13px;background:#e9dfce}[data-theme=paper] .modal{border:1px solid #9f8b72;box-shadow:8px 8px 0 #0002}[data-theme=paper] .theme-panel{border-radius:2px}[data-theme=paper] .footer{border-top:3px double #ab9d8b}
/* 04 / Forest: original botanical atmosphere, translucent island surfaces. */
:root[data-theme=forest]{--paper:#e9eee1;--white:#fcfdf8ef;--input:#ffffffc9;--ink:#304334;--muted:#657361;--line:#c4cfbc;--accent:#4d6840;--accent-hover:#3c5231;--soft:#e7eddfc9;--radius:24px;--shadow:0 10px 45px #203c220c}
[data-theme=forest] .ambient{background:linear-gradient(90deg,#edf0e1cc 0%,#edf0e14d 55%,#edf0e10d),url('/static/assets/forest-original.png') center top/cover no-repeat fixed}[data-theme=forest] .topline{height:0}[data-theme=forest] .wrap{max-width:1210px}[data-theme=forest] .header{min-height:100px;border-bottom:1px solid #627b4d35}[data-theme=forest] .brand{font-weight:500;letter-spacing:2px}[data-theme=forest] .brandmark{border-radius:50% 50% 10% 50%;background:#566b44;color:#f6f7ec}[data-theme=forest] main{padding-top:35px}[data-theme=forest] .hero{min-height:175px;align-items:center;margin-bottom:19px;padding:15px 0}[data-theme=forest] .hero h1{font-weight:450;font-size:35px;letter-spacing:1px}[data-theme=forest] .hero .eyebrow{color:#4c6142}[data-theme=forest] .hero p{max-width:470px;color:#4d6345}[data-theme=forest] .hero>.secondary{background:#f9fcf2dc;backdrop-filter:blur(15px);border-color:#e4ebdc}[data-theme=forest] .knowledge-note{border:1px solid #ffffffae;background:#f8fbf0dc;backdrop-filter:blur(16px);border-radius:12px}[data-theme=forest] .card,[data-theme=forest] .auth-card{backdrop-filter:blur(20px);border:1px solid #ffffffc9}[data-theme=forest] .workspace-grid{grid-template-columns:1.52fr 1fr;gap:23px}[data-theme=forest] .workspace-card{border-radius:26px 26px 7px 26px;padding:29px}[data-theme=forest] .onboarding-card{background:#e5eddcf2;border-color:#c9d5c1;border-radius:7px 26px 26px 26px;padding:29px}[data-theme=forest] .steps li::before{border:0;background:#cfdbc4;color:#46623a}[data-theme=forest] .primary,[data-theme=forest] .secondary{border-radius:25px;padding-left:23px;padding-right:23px}[data-theme=forest] .field input,[data-theme=forest] .field select{border-radius:12px}[data-theme=forest] .usage{background:#f8fbf2ed;border-radius:26px 7px 26px 26px;margin-top:23px}[data-theme=forest] .metric strong{font-weight:400;font-size:32px}[data-theme=forest] .request-line{border-color:#91a1806b;color:#4f6644}[data-theme=forest] .auth-layout{min-height:610px;grid-template-columns:1.2fr 1fr;gap:95px;margin:5px auto 28px}[data-theme=forest] .auth-story{padding:25px 0}[data-theme=forest] .auth-story h1{font-size:38px;line-height:1.65;letter-spacing:1px}[data-theme=forest] .auth-story>p{color:#516746}[data-theme=forest] .story-line{border-color:#9dad89}[data-theme=forest] .auth-card{background:#fbfdf5ed;border-radius:30px 30px 8px 30px;padding:37px}[data-theme=forest] .admin-summary{background:#f8fbf0e0;border-color:#ffffffc9;backdrop-filter:blur(18px)}[data-theme=forest] .table-wrap{background:#fbfdf5f0;border-color:#f9fff0;backdrop-filter:blur(18px)}[data-theme=forest] th{background:#e3ebdb}[data-theme=forest] .modal{background:#fcfef7;border-radius:27px 27px 8px 27px}[data-theme=forest] .theme-switcher>summary{background:#fcfff3dd;border-color:#ffffffc9;border-radius:18px}[data-theme=forest] .theme-panel{background:#fcfef8;border-radius:18px}[data-theme=forest] .footer{border-color:#91a1806b;color:#516746}
/* 05 / Prism: original spectrum imagery, floating navigation and bento cards. */
:root[data-theme=prism]{--paper:#f0effb;--white:#fffffff0;--input:#ffffffcf;--ink:#2e2c4d;--muted:#72738d;--line:#dddef0;--accent:#635bc8;--accent-hover:#4c44a7;--soft:#efedfa;--radius:20px;--shadow:0 8px 30px #40306e0a}
[data-theme=prism] .ambient{background:linear-gradient(110deg,#f3f2fcde 0 30%,#f5f3ff59 68%,#eff5ff8c),url('/static/assets/prism-original.png') center top/cover no-repeat fixed}[data-theme=prism] .topline{height:20px;background:transparent}[data-theme=prism] .header{background:#ffffffc9;backdrop-filter:blur(22px);border:1px solid #ffffffe5;border-radius:18px;min-height:78px;padding:14px 23px;box-shadow:0 5px 30px #7774b00d}[data-theme=prism] .brandmark{border-radius:12px;background:linear-gradient(140deg,#9a9ddd,#655dc7 60%,#78bbce);box-shadow:inset 0 1px 0 #fff8;color:#fff;font-size:25px}[data-theme=prism] .brand small{letter-spacing:1.1px}[data-theme=prism] main{padding-top:39px}[data-theme=prism] .hero{padding:22px 1px 18px;margin-bottom:22px;min-height:144px}[data-theme=prism] .hero h1{font-size:35px;font-weight:500;letter-spacing:-.8px}[data-theme=prism] .eyebrow-line{height:7px;width:7px;border-radius:50%;background:linear-gradient(45deg,#658ede,#9d77bc);box-shadow:0 0 0 4px #fff8}[data-theme=prism] .hero p{color:#5b5d7b}[data-theme=prism] .knowledge-note{background:#fefeffcc;backdrop-filter:blur(12px);border-color:#fff;border-radius:20px}[data-theme=prism] .knowledge-note summary{padding:13px 20px}[data-theme=prism] .workspace-grid{grid-template-columns:1.8fr 1fr;gap:22px}[data-theme=prism] .card{backdrop-filter:blur(20px);border-color:#ffffffd9}[data-theme=prism] .workspace-card{position:relative;overflow:hidden;border-radius:22px;background:linear-gradient(115deg,#fff 25%,#f1f1ffed)}[data-theme=prism] .workspace-card::before{content:"";position:absolute;width:140px;height:140px;border:1px solid #c0c6f173;border-radius:50%;right:-76px;top:34px;box-shadow:0 0 0 16px #c0c6f117,0 0 0 33px #c0c6f10c;pointer-events:none}[data-theme=prism] .card-kicker{color:#8783b1;letter-spacing:1.7px}[data-theme=prism] .onboarding-card{background:#e9e9f8d9;border:1px solid #fff9;box-shadow:none;border-radius:22px 22px 22px 6px}[data-theme=prism] .steps li::before{background:#ffffffb0;border:0;border-radius:8px;font-size:10px;color:#746bc8}[data-theme=prism] .primary{background:linear-gradient(115deg,#6c62c6,#535bbb);border:1px solid #655fbf;box-shadow:0 4px 12px #5b52b820;border-radius:10px}[data-theme=prism] .primary:hover{background:linear-gradient(115deg,#5e54b8,#484faa)}[data-theme=prism] .secondary{border-radius:10px;background:#fff9;border-color:#fff}[data-theme=prism] .usage{border-radius:22px;background:#ffffffe8;padding-top:25px}[data-theme=prism] .usage-grid{gap:14px}[data-theme=prism] .metric{border:1px solid #e5e4f4;border-radius:12px;padding:14px 18px;background:#f7f6fe}[data-theme=prism] .metric:last-child{padding:14px 18px;border:1px solid #e5e4f4}[data-theme=prism] .metric strong{font-weight:450;font-size:31px}[data-theme=prism] .usage-note{border:0;padding-top:0}[data-theme=prism] .auth-layout{grid-template-columns:1.1fr 1fr;gap:90px;margin-top:26px}[data-theme=prism] .auth-story h1{font-weight:450;font-size:39px;line-height:1.6;letter-spacing:-.5px}[data-theme=prism] .auth-story>p{color:#60627e}[data-theme=prism] .story-line{border-color:#bfc0df}[data-theme=prism] .auth-card{background:#fffffff0;backdrop-filter:blur(24px);border:1px solid #fff;border-radius:25px;padding:36px;box-shadow:0 24px 70px #6558ab15}[data-theme=prism] .admin-summary{border-color:#fff;background:#ffffffc9;border-radius:18px;backdrop-filter:blur(20px)}[data-theme=prism] .table-wrap{background:#fffefdef;border-color:#fff;backdrop-filter:blur(20px)}[data-theme=prism] .modal{background:#fefeff;border-color:#fff;border-radius:22px;box-shadow:0 25px 100px #1e19415c}[data-theme=prism] .modal-backdrop{background:#3430556b}[data-theme=prism] .theme-switcher>summary{background:#eeedf9;border-color:#dedbf1;border-radius:10px}[data-theme=prism] .theme-panel{background:#fff;border-color:#e8e4f4;border-radius:14px}[data-theme=prism] .footer{border-color:#bfc0dc;color:#60627e}
/* Responsive changes apply to every authentication, account and admin screen. */
@media(min-width:1600px){[data-theme=ink] main.wrap,[data-theme=ink] .footer.wrap{margin-left:calc(240px + (100vw - 1500px)/2);margin-right:auto}}
@media(max-width:1080px){.wrap{width:calc(100% - 48px)}.header nav{gap:12px}.nav-section{display:none}.auth-layout{gap:48px}.auth-story h1{font-size:32px}.card{padding:23px}.launch-line{align-items:start;flex-direction:column}.launch-line form,.launch-line .primary{width:100%}.usage-grid{gap:21px}.metric{padding-right:21px}[data-theme=ink] .header{width:190px;padding:27px 17px}[data-theme=ink] .brand{font-size:16px;letter-spacing:.5px}[data-theme=ink] .brand small{font-size:6px}[data-theme=ink] main.wrap,[data-theme=ink] .footer.wrap{margin-left:220px;margin-right:27px}[data-theme=ink] .workspace-grid{grid-template-columns:1fr}[data-theme=ink] .onboarding-card .steps{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}[data-theme=ink] .steps li{font-size:11px;gap:8px}[data-theme=ink] .steps li::before{width:20px;height:20px;font-size:8px}[data-theme=ink] .steps small{font-size:10px}[data-theme=paper] .auth-layout{gap:30px}[data-theme=paper] .auth-story{padding-right:20px}[data-theme=paper] .auth-story h1{font-size:30px}[data-theme=paper] .auth-card{padding:20px}[data-theme=forest] .auth-layout,[data-theme=prism] .auth-layout{gap:45px}[data-theme=forest] .auth-story h1,[data-theme=prism] .auth-story h1{font-size:32px}[data-theme=forest] .workspace-card,[data-theme=forest] .onboarding-card{padding:24px}[data-theme=prism] .workspace-grid{grid-template-columns:1.5fr 1fr}[data-theme=prism] .header{padding:13px 18px}[data-theme=prism] .metric,[data-theme=prism] .metric:last-child{padding:13px}}
@media(max-width:720px){.wrap{width:calc(100% - 32px)}.header{min-height:85px;gap:12px;flex-wrap:wrap;padding-top:17px;padding-bottom:17px}.brand{font-size:19px}.brand small{font-size:8px;letter-spacing:1px}.brandmark{width:38px;height:38px;font-size:23px}.header nav{gap:10px;margin-left:auto}.environment,#identity{display:none}.theme-switcher>summary{padding:6px 8px;font-size:10px}.theme-glyph{display:none}.theme-panel{right:0;width:250px}main{padding:30px 0 34px}.auth-layout{display:flex;flex-direction:column;gap:28px;margin:0}.auth-story{width:100%}.auth-story h1{font-size:28px;line-height:1.45;max-width:none}.auth-story>p{font-size:12px;margin-top:13px;max-width:none}.story-line{display:none}.eyebrow{font-size:8px;letter-spacing:1.4px;margin-bottom:12px}.auth-card{width:100%;padding:26px;max-width:500px}.hero{align-items:start;gap:18px;flex-direction:column;margin-bottom:22px}.hero h1{font-size:28px}.hero p{font-size:12px}.hero>.secondary{padding:7px 12px;min-height:35px}.grid{grid-template-columns:1fr}.workspace-grid{gap:18px}.usage-grid{grid-template-columns:1fr 1fr;gap:22px}.metric{padding-right:18px}.metric:nth-child(2){border-right:0}.metric strong{font-size:28px}.request-line{align-items:start;flex-direction:column}.request-line button{margin:0 18px 0 0}.footer{flex-wrap:wrap;gap:12px;line-height:1.8}.footer>span:last-child{width:100%}.inline-grid{grid-template-columns:1fr}.inline-grid button{width:100%}.admin-summary>span{padding:16px}.admin-summary strong{font-size:25px}.subscription-info{gap:18px}.card-header{align-items:start}.card-header h2{font-size:18px}.modal{padding:24px}.knowledge-note summary{align-items:start;padding:12px}.source-dot{margin-top:6px}.knowledge-note summary strong{display:block;font-size:10px}.source-more{font-size:9px}.knowledge-note>p{padding-left:28px}.card{padding:23px}.steps li{margin:17px 0}.source-more>span{margin-left:5px}.onboarding-card .steps{margin-top:15px}[data-theme=porcelain] .auth-story::before{display:none}[data-theme=ink] .topline{position:static;width:auto;height:3px}[data-theme=ink] .header{position:relative;left:auto;width:calc(100% - 32px);height:auto;min-height:90px;padding:17px 0;flex-direction:row;align-items:center;justify-content:space-between;margin:auto;gap:16px;border:0;border-bottom:1px solid var(--line);background:transparent}[data-theme=ink] .brand{font-size:19px}[data-theme=ink] .brand small{font-size:8px}[data-theme=ink] .header nav{flex-direction:row;align-items:center;justify-content:flex-end;gap:12px;flex:initial;flex-wrap:wrap}[data-theme=ink] .nav-section,[data-theme=ink] #identity,[data-theme=ink] .environment{display:none}[data-theme=ink] .theme-panel{left:auto;right:0;top:calc(100% + 10px)}[data-theme=ink] .theme-switcher>summary{padding:6px 8px}[data-theme=ink] #logout{align-self:auto}[data-theme=ink] main.wrap,[data-theme=ink] .footer.wrap{width:calc(100% - 32px);margin:auto}[data-theme=ink] main{padding-top:28px;min-height:calc(100vh - 180px)}[data-theme=ink] .hero h1{font-size:27px}[data-theme=ink] .hero{padding-bottom:20px}[data-theme=ink] .auth-story{display:block;padding-bottom:22px}[data-theme=ink] .auth-story>p{margin-top:14px}[data-theme=ink] .auth-story h1{font-size:27px}[data-theme=ink] .auth-card{padding:26px}[data-theme=ink] .auth-layout{gap:23px}[data-theme=ink] .onboarding-card .steps{display:block}[data-theme=ink] .steps li{font-size:12px;gap:12px}[data-theme=ink] .steps small{font-size:11px}[data-theme=ink] .steps li::before{width:25px;height:25px;font-size:10px}[data-theme=paper] .header{min-height:104px;padding:21px 0}[data-theme=paper] .brand{font-size:23px;letter-spacing:2px}[data-theme=paper] .brand small{font-size:7px}[data-theme=paper] .hero h1{font-size:30px}[data-theme=paper] .hero{align-items:start}[data-theme=paper] .workspace-grid{grid-template-columns:1fr}[data-theme=paper] .workspace-grid>.card{padding:24px}[data-theme=paper] .workspace-grid>.card+.card{border-left:0;border-top:1px solid #c4b6a4}[data-theme=paper] .auth-story{border:0;padding:0}[data-theme=paper] .auth-story h1{font-size:29px}[data-theme=paper] .auth-card{padding:25px 0;border-top:3px double #ab9d8b;max-width:none}[data-theme=paper] .auth-layout{gap:27px}[data-theme=paper] .admin-summary strong{display:block;margin:0}[data-theme=forest] .ambient{background:linear-gradient(90deg,#edf0e1e3,#edf0e18c),url('/static/assets/forest-original.png') 70% top/auto 100vh no-repeat fixed}[data-theme=forest] .header{min-height:90px}[data-theme=forest] .hero{min-height:177px;padding:3px 0 11px;align-items:start;gap:16px}[data-theme=forest] .hero h1{font-size:29px}[data-theme=forest] .workspace-grid{grid-template-columns:1fr;gap:19px}[data-theme=forest] .auth-layout{min-height:auto;gap:24px;margin:0}[data-theme=forest] .auth-story{padding:0}[data-theme=forest] .auth-story h1{font-size:28px}[data-theme=forest] .auth-card{padding:27px}[data-theme=forest] .usage{padding:24px}[data-theme=forest] .knowledge-note{border-radius:10px}[data-theme=prism] .topline{height:12px}[data-theme=prism] .header{min-height:80px;padding:14px;border-radius:15px}[data-theme=prism] .brand{font-size:18px;gap:9px}[data-theme=prism] .brand small{font-size:7px;letter-spacing:.8px}[data-theme=prism] .brandmark{width:34px;height:36px;font-size:22px}[data-theme=prism] .header nav{gap:8px}[data-theme=prism] .theme-switcher>summary{font-size:9px;padding:6px}[data-theme=prism] main{padding-top:23px}[data-theme=prism] .hero{padding:14px 0 10px;min-height:140px;gap:17px}[data-theme=prism] .hero h1{font-size:29px}[data-theme=prism] .workspace-grid{grid-template-columns:1fr}[data-theme=prism] .auth-layout{gap:25px;margin:8px auto}[data-theme=prism] .auth-story h1{font-size:29px}[data-theme=prism] .auth-card{padding:27px}[data-theme=prism] .metric,[data-theme=prism] .metric:last-child{padding:13px;border:1px solid #e5e4f4}[data-theme=prism] .metric strong{font-size:27px}[data-theme=prism] .knowledge-note{border-radius:12px}[data-theme=prism] .knowledge-note summary{padding:12px}[data-theme=prism] .ambient{background:linear-gradient(110deg,#f3f2fce5,#f5f3ff73),url('/static/assets/prism-original.png') 65% top/auto 100vh no-repeat fixed}}
@media(max-width:400px){.header{align-items:start}.header nav{width:100%;justify-content:space-between;margin-top:3px}.theme-panel{right:auto;left:0}.header .environment{display:inline-block}.hero h1,.auth-story h1{font-size:25px}.card{padding:20px}.admin-summary{font-size:10px}.admin-summary>span{padding:13px}.subscription-info{grid-template-columns:1fr}.metric strong{font-size:25px}[data-theme=ink] .header{display:block}[data-theme=ink] .header nav{margin-top:15px;justify-content:space-between;width:100%}[data-theme=ink] .theme-panel{right:auto;left:0}[data-theme=forest] .hero h1,[data-theme=prism] .hero h1{font-size:26px}[data-theme=paper] .header{display:block}[data-theme=paper] .header nav{margin-top:18px}[data-theme=paper] .hero h1{font-size:27px}[data-theme=prism] .header nav{width:100%;margin-top:9px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* Readability and viewport-safe picker fixes from actual desktop/mobile QA. */
[data-theme=forest] .header nav{background:#fbfdf3eb;border:1px solid #fffffff0;border-radius:25px;padding:10px 14px;box-shadow:0 2px 12px #29402406}
@media(max-width:720px){
  html[data-theme] .header{backdrop-filter:none}
  html[data-theme] .header .theme-panel{position:fixed;left:50%;right:auto;top:96px;bottom:auto;transform:translateX(-50%);width:min(270px,calc(100vw - 32px));max-height:calc(100dvh - 122px);overflow-y:auto;overscroll-behavior:contain}
  [data-theme=forest] .header nav{padding:7px 10px;border-radius:20px}
}
@media(max-width:400px){html[data-theme] .header .theme-panel{top:130px;max-height:calc(100dvh - 156px)}}

/* 00 / Classic retains the original portal's spacing and scale from style.css.
   Shared accessibility, quota labels and customer choice controls stay available. */
:root[data-theme=classic]{--ink:#193d39;--muted:#637674;--line:#dce6e2;--accent:#24675b;--accent-hover:#184e44;--paper:#f6f8f5;--soft:#ecf2ed;--warn:#946323;--danger:#a5453b;--white:#fff;--input:#fff;--button-ink:#fff;--radius:12px;--shadow:none;font-size:15px;color-scheme:light}
[data-theme=classic] .wrap{width:min(1160px,calc(100% - 64px))}[data-theme=classic] .header{min-height:105px;gap:20px}[data-theme=classic] .brand{letter-spacing:2px}[data-theme=classic] .brand small{font-size:10px;letter-spacing:1.5px}[data-theme=classic] .brandmark{width:46px;height:46px;font-family:serif;font-weight:400}[data-theme=classic] .header nav{font-size:13px;gap:18px}[data-theme=classic] .nav-section{display:none}[data-theme=classic] .environment{font-size:11px;padding:4px 10px;border-radius:20px}[data-theme=classic] main{min-height:calc(100vh - 215px);padding:44px 0 58px}[data-theme=classic] h1{font-size:30px;line-height:1.4}[data-theme=classic] h2{font-size:20px}[data-theme=classic] h3{font-size:16px;font-weight:600}[data-theme=classic] .eyebrow{font-size:11px;letter-spacing:2px;color:#628276;margin-bottom:13px}[data-theme=classic] .eyebrow-line,[data-theme=classic] .card-kicker{display:none}[data-theme=classic] .hero{margin-bottom:29px}[data-theme=classic] .hero p{margin-top:9px;font-size:15px}[data-theme=classic] .auth-layout{grid-template-columns:1.1fr 1fr;gap:100px;max-width:1020px;margin:34px auto 52px}[data-theme=classic] .auth-story h1{font-size:35px;line-height:1.6;max-width:440px;font-weight:550}[data-theme=classic] .auth-story>p{margin-top:18px;max-width:400px;line-height:1.65}[data-theme=classic] .story-line{margin-top:36px;gap:14px;padding-top:21px;max-width:400px}[data-theme=classic] .story-number{font-size:12px;color:#9b8969}[data-theme=classic] .story-line p{font-size:13px}[data-theme=classic] .auth-card{padding:31px 34px;box-shadow:0 12px 42px #294a3210}[data-theme=classic] .auth-card h2{font-size:20px}[data-theme=classic] .auth-card>p{margin:8px 0 23px;font-size:13px}[data-theme=classic] .field{margin-bottom:17px;font-size:13px}[data-theme=classic] .field input,[data-theme=classic] .field select{margin-top:7px;border-color:#cddbd5;border-radius:6px;padding:11px 12px;min-height:44px;font-size:13px}[data-theme=classic] button,[data-theme=classic] .button{border-radius:6px}[data-theme=classic] .primary{padding:10px 20px;min-height:43px;font-size:14px;font-weight:400}[data-theme=classic] .secondary{color:var(--accent);border-color:#becfc5;padding:9px 16px;font-size:13px}[data-theme=classic] .form-error{font-size:13px;min-height:23px}[data-theme=classic] .callout{font-size:13px;color:#4b645b}[data-theme=classic] .grid{grid-template-columns:1.7fr 1fr;gap:22px}[data-theme=classic] .card{padding:25px}[data-theme=classic] .card-header{margin-bottom:19px}[data-theme=classic] .badge{padding:3px 10px;font-size:11px}[data-theme=classic] .subscription-info{gap:20px 30px;padding:4px 0 24px}[data-theme=classic] .info-label{font-size:12px}[data-theme=classic] .info-value{font-size:15px}[data-theme=classic] .launch-line{padding-top:22px;gap:18px}[data-theme=classic] .launch-line p{font-size:12px;max-width:290px}[data-theme=classic] .steps li{gap:12px;margin:18px 0;font-size:13px}[data-theme=classic] .steps li::before{content:counter(step);width:23px;height:23px;font-size:11px;color:#6f8e75}[data-theme=classic] .steps small{font-size:12px;line-height:1.65;margin-top:3px}[data-theme=classic] .usage-grid{gap:27px;margin:20px 0 5px}[data-theme=classic] .metric{border:0;padding:0}[data-theme=classic] .metric strong{font-size:27px;line-height:1.6;font-weight:500;letter-spacing:normal}[data-theme=classic] .metric small,[data-theme=classic] .metric-limit{font-size:12px}[data-theme=classic] .usage-note{border:0;padding-top:14px;font-size:12px}[data-theme=classic] .footer{font-size:11px}[data-theme=classic] .admin-summary{gap:30px;margin-bottom:24px;font-size:13px;border:0;background:transparent}[data-theme=classic] .admin-summary>span{flex:initial;border:0;padding:0}[data-theme=classic] .admin-summary strong{display:inline-block;font-size:20px;font-weight:500;letter-spacing:normal;line-height:1.65}[data-theme=classic] table{font-size:13px}[data-theme=classic] th{font-size:11px;background:#eff3ee;padding:14px 18px}[data-theme=classic] td{padding:18px}[data-theme=classic] td small{font-size:11px}[data-theme=classic] .table-action{padding:5px 8px;font-size:12px}
.theme-control-label{color:var(--muted);padding-right:7px;border-right:1px solid var(--line)}.swatch-classic{background:linear-gradient(180deg,#f6f8f5 0 45%,#24675b 45% 55%,#fff 55%)}.theme-panel{max-height:calc(100dvh - 145px);overflow-y:auto;overscroll-behavior:contain}
@media(max-width:1080px){[data-theme=classic] .auth-layout{gap:45px}[data-theme=classic] .header nav{gap:12px}[data-theme=classic] .card{padding:20px}}
@media(max-width:900px){[data-theme=classic] .wrap{width:calc(100% - 40px)}[data-theme=classic] .auth-story h1{font-size:29px}[data-theme=classic] .grid{grid-template-columns:1.4fr 1fr}[data-theme=classic] .usage-grid{gap:18px}}
@media(max-width:720px){[data-theme=classic] .header{min-height:86px;flex-wrap:wrap}[data-theme=classic] .header nav{gap:9px}[data-theme=classic] .brand{font-size:19px}[data-theme=classic] .brandmark{width:39px;height:39px}[data-theme=classic] .brand small{font-size:8px}[data-theme=classic] .wrap{width:calc(100% - 32px)}[data-theme=classic] main{padding:29px 0 34px}[data-theme=classic] .auth-layout{display:flex;flex-direction:column;gap:29px;margin:0}[data-theme=classic] .auth-story h1{font-size:25px}[data-theme=classic] .auth-story>p{font-size:13px;margin-top:12px}[data-theme=classic] .auth-card{width:100%;padding:24px}[data-theme=classic] .hero h1{font-size:25px}[data-theme=classic] .hero p{font-size:13px}[data-theme=classic] .grid{grid-template-columns:1fr}[data-theme=classic] .usage-grid{grid-template-columns:1fr 1fr;gap:22px}[data-theme=classic] .subscription-info{gap:18px}[data-theme=classic] .card-header h2{font-size:18px}[data-theme=classic] .admin-summary{gap:20px;flex-wrap:wrap}.theme-control-label{font-size:10px;padding-right:5px}}
@media(max-width:400px){[data-theme=classic] .environment{font-size:10px;max-width:100px}[data-theme=classic] .subscription-info{grid-template-columns:1fr}.theme-switcher>summary{gap:5px}}

.hero-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}.theme-gallery-link{display:inline-flex;align-items:center;gap:14px;text-decoration:none}.theme-gallery-link>span{font-size:13px}@media(max-width:720px){.hero-actions{flex-wrap:wrap;gap:8px}.hero-actions>.secondary{min-height:38px;padding:8px 12px;font-size:11px}}
