/* Theme picker. These miniature panels show the actual palette before selection. */
.top-theme{display:flex;align-items:center;gap:8px;color:var(--muted);font:700 11px ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.5px}
.top-theme select{width:125px;min-height:32px;padding:4px 22px 4px 8px;background:var(--surface2);color:var(--text);border:1px solid var(--border);box-shadow:none;font:600 12px ui-sans-serif,system-ui,sans-serif}
.theme-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:17px}
.themes-gallery .theme-grid{gap:18px;margin-top:20px}
.themes-gallery .theme-choice{padding:14px;gap:9px}
.themes-gallery .theme-swatch{height:118px}
.theme-choice{display:flex;flex-direction:column;text-align:left;gap:6px;padding:10px;background:var(--surface2);color:var(--text);border:2px solid var(--border);border-radius:4px;min-width:0;transition:transform .15s,border-color .15s,box-shadow .15s}
.theme-choice:hover{transform:translateY(-2px);border-color:var(--accent)}
.theme-choice[aria-pressed="true"]{border-color:var(--accent);box-shadow:0 0 0 2px var(--bg),0 0 0 4px var(--accent)}
.theme-choice strong{font:600 17px Georgia,"Times New Roman",serif}
.theme-description{color:var(--muted);font-size:12px;line-height:1.35}
.theme-swatch{position:relative;overflow:hidden;display:flex;align-items:flex-end;gap:6px;width:100%;height:78px;padding:9px;background:var(--swatch-bg);border:1px solid var(--swatch-line)}
.theme-swatch::before{content:"";position:absolute;top:0;left:0;width:28%;height:100%;background:var(--swatch-side);border-right:1px solid var(--swatch-line)}
.theme-swatch::after{content:"";position:absolute;top:0;left:28%;right:0;height:13px;background:var(--swatch-top);border-bottom:1px solid var(--swatch-line)}
.theme-swatch i{z-index:1;display:block;height:40px;flex:1;background:var(--swatch-panel);border:1px solid var(--swatch-line);box-shadow:inset 0 4px 0 var(--swatch-accent)}
.theme-swatch i:first-child{margin-left:28%;flex:1.4}
.theme-swatch i:last-child{height:30px;background:var(--swatch-paper)}
.theme-swatch[data-theme-swatch="archival"]{--swatch-bg:#071b15;--swatch-side:#0d3022;--swatch-top:#153b2a;--swatch-panel:#1d4a34;--swatch-paper:#ded2af;--swatch-line:#9a9669;--swatch-accent:#c7ad79}
.theme-swatch[data-theme-swatch="noir"]{--swatch-bg:#101112;--swatch-side:#1b1c1d;--swatch-top:#343638;--swatch-panel:#292b2c;--swatch-paper:#d9d9d4;--swatch-line:#929494;--swatch-accent:#e7e7e2}
.theme-swatch[data-theme-swatch="abyssal"]{--swatch-bg:#020d15;--swatch-side:#071a27;--swatch-top:#102b3a;--swatch-panel:#123342;--swatch-paper:#173948;--swatch-line:#6199a0;--swatch-accent:#86ded4}
.theme-swatch[data-theme-swatch="prismatic"]{--swatch-bg:#0b0b16;--swatch-side:#201534;--swatch-top:linear-gradient(90deg,#ac6798,#6358c8,#4caabb);--swatch-panel:#2d2549;--swatch-paper:#eee3f6;--swatch-line:#b383df;--swatch-accent:#ebc075}
.theme-swatch[data-theme-swatch="moonlit"]{--swatch-bg:#0b1425;--swatch-side:#17253e;--swatch-top:#273e62;--swatch-panel:#304469;--swatch-paper:#d9e2ee;--swatch-line:#8ba4c9;--swatch-accent:#d5c99f}
.theme-swatch[data-theme-swatch="antique"]{--swatch-bg:#251710;--swatch-side:#40271a;--swatch-top:#67412b;--swatch-panel:#62412d;--swatch-paper:#e7cda3;--swatch-line:#c18852;--swatch-accent:#e4aa72}
@media(max-width:950px){.theme-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.theme-grid{grid-template-columns:1fr}.theme-swatch,.themes-gallery .theme-swatch{height:82px}.top-actions{gap:7px}}

/* Alternate materials. Archival continues to use the original styles unchanged. */
html[data-theme="noir"],.theme-choice[data-theme-choice="noir"]{
  --bg:#101112;--sidebar:#18191a;--surface:#252728;--surface2:#303233;--surface3:#3b3e3f;
  --border:#797c7d;--muted:#cbcaca;--text:#f4f3f0;--accent:#eeeeea;--accent2:#bfc1c0;
  --good:#e3e3df;--warn:#d4d4d0;--danger:#ececea;--shadow:0 18px 42px #000c;
  --theme-top:#232526;--theme-paper:#d8d8d2;--theme-paper-text:#222526;--theme-paper-muted:#555958;
  --theme-panel:#17191a;--theme-highlight:#f3f3ee;--theme-primary:#d9dbd8;--theme-primary-ink:#1b1e1d;
  --theme-wash:#b7b8b713;--theme-mark:#e0e1df;
}
html[data-theme="abyssal"],.theme-choice[data-theme-choice="abyssal"]{
  --bg:#020d15;--sidebar:#071a27;--surface:#0e2836;--surface2:#173746;--surface3:#204956;
  --border:#568c98;--muted:#bcd3d8;--text:#edf7f6;--accent:#9be7dc;--accent2:#63b9c5;
  --good:#9be2c5;--warn:#ebd39d;--danger:#f4aaaa;--shadow:0 18px 42px #011018c9;
  --theme-top:#102b3a;--theme-paper:#15333f;--theme-paper-text:#eaf7f7;--theme-paper-muted:#b3d1d8;
  --theme-panel:#071e2b;--theme-highlight:#b1eee8;--theme-primary:#89d8d4;--theme-primary-ink:#0b303b;
  --theme-wash:#77ccdc13;--theme-mark:#8fdbd3;
}
html[data-theme="prismatic"],.theme-choice[data-theme-choice="prismatic"]{
  --bg:#0b0b16;--sidebar:#181529;--surface:#26213b;--surface2:#30284a;--surface3:#42375c;
  --border:#8172ac;--muted:#cec5e1;--text:#f6f1ff;--accent:#e7b5ed;--accent2:#9b7ed2;
  --good:#a7e3cc;--warn:#f2d29b;--danger:#ffadbc;--shadow:0 18px 46px #03010dcf;
  --theme-top:#211a38;--theme-paper:#e7dff1;--theme-paper-text:#2e2541;--theme-paper-muted:#62577a;
  --theme-panel:#171329;--theme-highlight:#ecb5ed;--theme-primary:#bd93e5;--theme-primary-ink:#251631;
  --theme-wash:#c78df51a;--theme-mark:#f4bf83;
}
html[data-theme="moonlit"],.theme-choice[data-theme-choice="moonlit"]{
  --bg:#0b1425;--sidebar:#131f36;--surface:#1d2c48;--surface2:#253859;--surface3:#30466a;
  --border:#7086ad;--muted:#c3cde0;--text:#f4f2fa;--accent:#e2d6ae;--accent2:#a9b8e8;
  --good:#afd9cc;--warn:#eed59d;--danger:#ecb0bc;--shadow:0 18px 42px #050b1ccb;
  --theme-top:#192d4b;--theme-paper:#dce4f0;--theme-paper-text:#263556;--theme-paper-muted:#5c6b88;
  --theme-panel:#15243d;--theme-highlight:#e8ddaF;--theme-primary:#bdcbee;--theme-primary-ink:#18294a;
  --theme-wash:#aec5ed17;--theme-mark:#d9cba3;
}
html[data-theme="antique"],.theme-choice[data-theme-choice="antique"]{
  --bg:#251710;--sidebar:#342116;--surface:#493126;--surface2:#553a2b;--surface3:#684632;
  --border:#a47751;--muted:#e1cbb1;--text:#fbf0dc;--accent:#f0c58e;--accent2:#cb8b5b;
  --good:#c7d3a6;--warn:#f3cf98;--danger:#f1b0a0;--shadow:0 18px 42px #130902d4;
  --theme-top:#493023;--theme-paper:#e9d0a8;--theme-paper-text:#462b1e;--theme-paper-muted:#795d45;
  --theme-panel:#301f17;--theme-highlight:#f1bf86;--theme-primary:#dda36e;--theme-primary-ink:#352011;
  --theme-wash:#e0ad7416;--theme-mark:#e9b57c;
}

html[data-theme]:not([data-theme="archival"]) body{
  background:var(--bg);
  background-image:radial-gradient(ellipse 95% 58% at 58% -12%,var(--theme-wash),transparent 75%),repeating-linear-gradient(0deg,#ffffff06 0 1px,transparent 1px 5px);
}
html[data-theme]:not([data-theme="archival"]) ::selection{background:var(--theme-highlight);color:var(--theme-primary-ink)}
html[data-theme]:not([data-theme="archival"]) :focus-visible{outline:2px solid var(--theme-highlight);outline-offset:3px}
html[data-theme]:not([data-theme="archival"]) a{color:var(--accent)}
html[data-theme]:not([data-theme="archival"]) .sidebar{
  background:radial-gradient(circle at 10% 0,var(--theme-wash),transparent 56%),repeating-linear-gradient(90deg,#ffffff05 0 1px,transparent 1px 5px),var(--sidebar);
  border-right:3px double var(--border);box-shadow:inset -8px 0 14px #0006,7px 0 28px #0007;
}
html[data-theme]:not([data-theme="archival"]) .brand{border-bottom:3px double var(--border)}
html[data-theme]:not([data-theme="archival"]) .brand::after{border-bottom-color:var(--border)}
html[data-theme]:not([data-theme="archival"]) .brandmark{background:var(--theme-primary);border-color:var(--theme-highlight);color:var(--theme-primary-ink);box-shadow:inset 0 0 0 2px var(--theme-primary-ink),0 0 0 1px var(--border),3px 4px 0 #0008}
html[data-theme]:not([data-theme="archival"]) .brand strong{color:var(--text)}
html[data-theme]:not([data-theme="archival"]) .brand small{color:var(--accent)}
html[data-theme]:not([data-theme="archival"]) .sidebar-foot{border-top:3px double var(--border);background:linear-gradient(180deg,transparent,#0004);color:var(--text)}
html[data-theme]:not([data-theme="archival"]) .sidebar-foot small{color:var(--muted)}
html[data-theme]:not([data-theme="archival"]) .status-dot{background:var(--good);box-shadow:0 0 0 3px var(--theme-wash)}
html[data-theme]:not([data-theme="archival"]) .nav-item{color:var(--muted);border-left-color:transparent}
html[data-theme]:not([data-theme="archival"]) .nav-item:hover{background:var(--surface2);color:var(--text)}
html[data-theme]:not([data-theme="archival"]) .nav-item.active{background:var(--theme-primary);color:var(--theme-primary-ink);border-left-color:var(--theme-mark);box-shadow:inset 0 0 0 1px var(--theme-highlight),3px 3px 0 #0008}
html[data-theme]:not([data-theme="archival"]) .nav-item.active span{color:var(--theme-primary-ink)}
html[data-theme]:not([data-theme="archival"]) .nav-item:not(.active) span{color:var(--accent)}
html[data-theme]:not([data-theme="archival"]) .topbar{background:linear-gradient(90deg,var(--theme-top),var(--sidebar));border-bottom:3px double var(--border);box-shadow:inset 0 -7px 0 #0003}
html[data-theme]:not([data-theme="archival"]) .breadcrumb{color:var(--muted)}
html[data-theme]:not([data-theme="archival"]) .breadcrumb span{color:var(--border)}
html[data-theme]:not([data-theme="archival"]) .breadcrumb strong{color:var(--text)}
html[data-theme]:not([data-theme="archival"]) .mode-badge,html[data-theme]:not([data-theme="archival"]) .pill{background:var(--surface2);color:var(--text);border-color:var(--border)}
html[data-theme]:not([data-theme="archival"]) .top-avatar{border-color:var(--border)}
html[data-theme]:not([data-theme="archival"]) .page-head{border-bottom:3px double var(--border)}
html[data-theme]:not([data-theme="archival"]) .page-head::after{background:var(--theme-mark);border-color:var(--theme-highlight)}
html[data-theme]:not([data-theme="archival"]) .page-head h1{color:var(--text);text-shadow:1px 2px 0 #0006}
html[data-theme]:not([data-theme="archival"]) .eyebrow{color:var(--accent)}
html[data-theme]:not([data-theme="archival"]) .subtext{color:var(--muted)}
html[data-theme]:not([data-theme="archival"]) .card{
  background-color:var(--surface);
  background-image:radial-gradient(circle at 6% 5%,var(--theme-wash),transparent 35%),repeating-linear-gradient(90deg,#ffffff05 0 1px,transparent 1px 5px);
  border:3px double var(--border);box-shadow:inset 0 0 0 4px var(--theme-panel),inset 0 0 0 5px var(--theme-wash),5px 7px 0 #0008,0 18px 30px #0008;
}
html[data-theme]:not([data-theme="archival"]) .card::before,html[data-theme]:not([data-theme="archival"]) .card::after{border-color:var(--theme-mark)}
html[data-theme]:not([data-theme="archival"]) .card-title,html[data-theme]:not([data-theme="archival"]) .item-card h3,html[data-theme]:not([data-theme="archival"]) .block-head strong{color:var(--text)}
html[data-theme]:not([data-theme="archival"]) .card-header{border-bottom:3px double var(--border)}
html[data-theme]:not([data-theme="archival"]) .mini-label,html[data-theme]:not([data-theme="archival"]) .field label{color:var(--accent)}
html[data-theme]:not([data-theme="archival"]) .big-status,html[data-theme]:not([data-theme="archival"]) .metric .value{color:var(--text)}
html[data-theme]:not([data-theme="archival"]) .divider{border-top-color:var(--border)}
html[data-theme]:not([data-theme="archival"]) .metric-grid{
  background:radial-gradient(circle at 18% 10%,#ffffff65,transparent 55%),var(--theme-paper);
  color:var(--theme-paper-text);border:1px solid var(--border);
  box-shadow:inset 0 0 0 3px #ffffff44,inset 0 0 18px #0002,2px 3px 0 #0006;
}
html[data-theme]:not([data-theme="archival"]) .metric-grid .mini-label,html[data-theme]:not([data-theme="archival"]) .metric-grid .value{color:var(--theme-paper-text)}
html[data-theme]:not([data-theme="archival"]) .metric-grid .state-good,html[data-theme]:not([data-theme="archival"]) .metric-grid .state-warn,html[data-theme]:not([data-theme="archival"]) .metric-grid .state-bad{color:var(--theme-paper-text)}
html[data-theme]:not([data-theme="archival"]) .feed,html[data-theme]:not([data-theme="archival"]) .list-plain{
  background:var(--theme-paper);color:var(--theme-paper-text);border:1px solid var(--border);
  box-shadow:inset 0 0 0 3px #ffffff45,inset 0 0 15px #0002;
}
html[data-theme]:not([data-theme="archival"]) .feed li,html[data-theme]:not([data-theme="archival"]) .list-plain li{border-color:var(--border)}
html[data-theme]:not([data-theme="archival"]) .feed li span,html[data-theme]:not([data-theme="archival"]) .feed li .muted,html[data-theme]:not([data-theme="archival"]) .list-plain li,html[data-theme]:not([data-theme="archival"]) .list-plain li strong{color:var(--theme-paper-text)}
html[data-theme]:not([data-theme="archival"]) .feed li time,html[data-theme]:not([data-theme="archival"]) .feed li strong,html[data-theme]:not([data-theme="archival"]) .list-plain .micro,html[data-theme]:not([data-theme="archival"]) .list-plain .muted{color:var(--theme-paper-muted)}
html[data-theme]:not([data-theme="archival"]) .table-wrap{background:var(--theme-paper);box-shadow:inset 0 0 0 5px #ffffff40,inset 0 0 20px #0003}
html[data-theme]:not([data-theme="archival"]) .table th{background:var(--theme-top);color:var(--text);border-bottom:3px double var(--border)}
html[data-theme]:not([data-theme="archival"]) .table td{color:var(--theme-paper-text);border-color:var(--border)}
html[data-theme]:not([data-theme="archival"]) .table td .micro{color:var(--theme-paper-muted)}
html[data-theme]:not([data-theme="archival"]) .table tr:hover td{background:color-mix(in srgb,var(--theme-paper) 75%,var(--theme-highlight))}
html[data-theme]:not([data-theme="archival"]) .table .btn.ghost{background:var(--theme-paper);color:var(--theme-paper-text);border-color:var(--theme-paper-muted)}
html[data-theme]:not([data-theme="archival"]) .table .btn.ghost:hover:not(:disabled){background:var(--theme-primary);color:var(--theme-primary-ink)}
html[data-theme]:not([data-theme="archival"]) .btn{background:var(--surface2);color:var(--text);border-color:var(--border)}
html[data-theme]:not([data-theme="archival"]) .btn:hover:not(:disabled){filter:brightness(1.13)}
html[data-theme]:not([data-theme="archival"]) .btn.primary{background:var(--theme-primary);color:var(--theme-primary-ink);box-shadow:inset 0 0 0 2px #ffffff75,1px 2px 0 #0008}
html[data-theme]:not([data-theme="archival"]) .btn.secondary{background:var(--surface3);color:var(--text)}
html[data-theme]:not([data-theme="archival"]) .btn.ghost{background:transparent;color:var(--text)}
html[data-theme]:not([data-theme="archival"]) .btn.danger{background:#713e3d;color:#fff2ed;border-color:#c28480}
html[data-theme="noir"] .btn.danger{background:#424446;color:#f5f5f2;border-color:#c1c3c2}
html[data-theme]:not([data-theme="archival"]) .switch{background:var(--border);border-color:var(--border)}
html[data-theme]:not([data-theme="archival"]) .switch:checked{background:var(--theme-primary);border-color:var(--theme-highlight)}
html[data-theme]:not([data-theme="archival"]) .switch:before{background:var(--theme-primary-ink)}
html[data-theme]:not([data-theme="archival"]) .badge{background:var(--surface2);color:var(--text);border-color:var(--border);box-shadow:inset 0 0 0 1px #ffffff12}
html[data-theme]:not([data-theme="archival"]) .badge.good{color:var(--good);border-color:var(--good);background:var(--theme-panel)}
html[data-theme]:not([data-theme="archival"]) .badge.warn{color:var(--warn);border-color:var(--warn);background:var(--theme-panel)}
html[data-theme]:not([data-theme="archival"]) .badge.bad{color:var(--danger);border-color:var(--danger);background:var(--theme-panel)}
html[data-theme]:not([data-theme="archival"]) .section-label{color:var(--accent)}
html[data-theme]:not([data-theme="archival"]) .input,html[data-theme]:not([data-theme="archival"]) textarea,html[data-theme]:not([data-theme="archival"]) select{
  background:var(--theme-paper);color:var(--theme-paper-text);border:1px solid var(--border);
  box-shadow:inset 0 0 0 2px #ffffff46,inset 1px 2px 6px #0002;
}
html[data-theme]:not([data-theme="archival"]) .input::placeholder,html[data-theme]:not([data-theme="archival"]) textarea::placeholder{color:var(--theme-paper-muted)}
html[data-theme]:not([data-theme="archival"]) .input:focus,html[data-theme]:not([data-theme="archival"]) textarea:focus,html[data-theme]:not([data-theme="archival"]) select:focus{border-color:var(--theme-highlight);box-shadow:0 0 0 2px var(--theme-wash),inset 0 0 0 2px #ffffff6b}
html[data-theme]:not([data-theme="archival"]) select option{background:var(--theme-paper);color:var(--theme-paper-text)}
html[data-theme]:not([data-theme="archival"]) .top-theme select{background:var(--surface2);color:var(--text);border-color:var(--border);box-shadow:none}
html[data-theme]:not([data-theme="archival"]) .hint,html[data-theme]:not([data-theme="archival"]) .micro,html[data-theme]:not([data-theme="archival"]) .muted{color:var(--muted)}
html[data-theme]:not([data-theme="archival"]) .composer-actions{background:var(--surface);border-color:var(--border)}
html[data-theme]:not([data-theme="archival"]) .composer-block{background:var(--theme-panel);border-color:var(--border)}
html[data-theme]:not([data-theme="archival"]) .tabbar{background:var(--theme-panel);border-color:var(--border)}
html[data-theme]:not([data-theme="archival"]) .tabbar button{color:var(--muted)}
html[data-theme]:not([data-theme="archival"]) .tabbar button.active{background:var(--theme-primary);color:var(--theme-primary-ink);box-shadow:inset 0 0 0 2px #ffffff68}
html[data-theme]:not([data-theme="archival"]) .persona-avatar{background:var(--surface2);border-color:var(--border)}
html[data-theme]:not([data-theme="archival"]) .mock-notice{background:var(--theme-paper);color:var(--theme-paper-text);border:3px double var(--border);box-shadow:inset 0 0 0 3px #ffffff50,2px 3px 0 #0007}
html[data-theme]:not([data-theme="archival"]) .mock-notice b{color:var(--theme-paper-text);border-color:var(--theme-paper-muted)}
html[data-theme]:not([data-theme="archival"]) .warning{background:var(--surface2);color:var(--warn);border-color:var(--warn)}
html[data-theme]:not([data-theme="archival"]) .log-details{background:var(--theme-panel);color:var(--text)}
html[data-theme]:not([data-theme="archival"]) .channel-results{background:var(--surface);border-color:var(--border)}
html[data-theme]:not([data-theme="archival"]) .channel-option{color:var(--text)}
html[data-theme]:not([data-theme="archival"]) .channel-option:hover{background:var(--surface3)}
html[data-theme]:not([data-theme="archival"]) .channel-option small{color:var(--muted)}
html[data-theme]:not([data-theme="archival"]) .attachment-chip{background:var(--surface2);border-color:var(--border)}
html[data-theme]:not([data-theme="archival"]) .checkbox-row{color:var(--text)}
html[data-theme]:not([data-theme="archival"]) .checkbox-row input{accent-color:var(--theme-highlight)}
html[data-theme]:not([data-theme="archival"]) dialog{background:var(--surface);border:2px solid var(--border);box-shadow:0 0 0 5px var(--theme-panel),0 24px 65px #000c}
html[data-theme]:not([data-theme="archival"]) dialog::backdrop{background:#000b}
html[data-theme]:not([data-theme="archival"]) dialog h2{color:var(--text);border-color:var(--border)}
html[data-theme]:not([data-theme="archival"]) dialog p{color:var(--muted)}
html[data-theme]:not([data-theme="archival"]) .toast{background:var(--surface2);border-color:var(--border);border-left-color:var(--good);color:var(--text)}
html[data-theme]:not([data-theme="archival"]) .toast.error{border-left-color:var(--danger)}
html[data-theme]:not([data-theme="archival"]) .scope-group{border-color:var(--border)}
html[data-theme]:not([data-theme="archival"]) .scope-group legend{color:var(--accent)}
html[data-theme]:not([data-theme="archival"]) .plan-tile{background:var(--surface2);color:var(--text);border-color:var(--border);box-shadow:inset 0 0 0 3px var(--theme-panel),3px 4px 0 #0007}
html[data-theme]:not([data-theme="archival"]) .plan-tile.selected{background:var(--surface3);border-color:var(--theme-highlight);box-shadow:inset 0 0 0 3px var(--theme-panel),0 0 0 2px var(--theme-primary),3px 4px 0 #0007}
html[data-theme]:not([data-theme="archival"]) .plan-tile:hover{background:var(--surface3)}
html[data-theme]:not([data-theme="archival"]) .plan-tile .micro{color:var(--muted)}
html[data-theme]:not([data-theme="archival"]) .emoji-picker,html[data-theme]:not([data-theme="archival"]) .mode-panel{background:var(--theme-panel);border-color:var(--border)}
html[data-theme]:not([data-theme="archival"]) .emoji-selected #emoji-preview{background:var(--surface2);border-color:var(--border)}
html[data-theme]:not([data-theme="archival"]) .emoji-choice{background:var(--surface2);color:var(--text);border-color:var(--border)}
html[data-theme]:not([data-theme="archival"]) .emoji-choice:hover,html[data-theme]:not([data-theme="archival"]) .emoji-choice[aria-pressed="true"]{background:var(--theme-primary);color:var(--theme-primary-ink)}
.theme-choice:not([data-theme-choice="archival"]){background:var(--surface2);color:var(--text);border-color:var(--border)}
.theme-choice:not([data-theme-choice="archival"]):hover,.theme-choice:not([data-theme-choice="archival"])[aria-pressed="true"]{border-color:var(--theme-highlight)}
.theme-choice:not([data-theme-choice="archival"]) .theme-description{color:var(--muted)}
/* Discord's message preview retains Discord colours across all site themes. */
html[data-theme]:not([data-theme="archival"]) .preview-card{background:#303237;color:#dbdee4;border-color:#737b65}
html[data-theme]:not([data-theme="archival"]) .preview-card .micro{color:#a9afb8}

/* Signature marks distinguish the presets beyond their palettes. */
html[data-theme="noir"] body{background-image:repeating-linear-gradient(0deg,#ffffff06 0 1px,transparent 1px 4px),radial-gradient(ellipse at 65% -10%,#898b8c1c,transparent 65%)}
html[data-theme="noir"] .page-head h1,html[data-theme="noir"] .card-title{font-family:ui-sans-serif,system-ui,sans-serif;font-variant:normal;font-weight:760;text-transform:uppercase;letter-spacing:1.4px}
html[data-theme="noir"] .nav-item,html[data-theme="noir"] .table td{font-family:ui-sans-serif,system-ui,sans-serif}
html[data-theme="noir"] .card{border-style:solid;border-width:1px;border-radius:1px;box-shadow:inset 0 0 0 1px #ffffff18,7px 9px 0 #0009}
html[data-theme="noir"] .card::before,html[data-theme="noir"] .card::after{border-radius:0}
html[data-theme="abyssal"] body{background-image:radial-gradient(ellipse 90% 35% at 50% -2%,#277d9564,transparent 80%),repeating-radial-gradient(ellipse at 60% -30%,#8bd9d908 0 2px,transparent 3px 35px)}
html[data-theme="abyssal"] .card{border-radius:13px;box-shadow:inset 0 0 0 2px #ffffff12,0 17px 35px #01121cc0}
html[data-theme="abyssal"] .card::before,html[data-theme="abyssal"] .card::after{display:none}
html[data-theme="prismatic"] body{background-image:radial-gradient(circle at 4% 0%,#97378a31,transparent 42%),radial-gradient(circle at 94% 10%,#277cac2b,transparent 44%),radial-gradient(circle at 48% 90%,#9367221d,transparent 58%)}
html[data-theme="prismatic"] .topbar{border-image:linear-gradient(90deg,#dd78ac,#ad86eb,#66b7d0,#e5be81) 1}
html[data-theme="prismatic"] .page-head::after{width:130px;transform:none;background:linear-gradient(90deg,#e986aa,#bc92ea,#66c3cd,#e8bf7c);border:0}
html[data-theme="prismatic"] .card::before{width:calc(100% - 16px);height:3px;top:8px;left:8px;border:0;background:linear-gradient(90deg,#e986aa,#bc92ea,#66c3cd,#e8bf7c)}
html[data-theme="prismatic"] .nav-item.active{background:linear-gradient(120deg,#d3a3de,#91bde0);color:#20172f}
html[data-theme="moonlit"] body{background-image:radial-gradient(circle at 12% 12%,#ffffff58 0 1px,transparent 2px),radial-gradient(circle at 81% 7%,#ffffff44 0 1px,transparent 2px),radial-gradient(circle at 43% 24%,#ffffff38 0 1px,transparent 2px),radial-gradient(ellipse 90% 60% at 62% -12%,#314a806e,transparent 75%)}
html[data-theme="moonlit"] .page-head::after{border-radius:50%;width:17px;height:17px;bottom:-10px;background:var(--theme-mark);box-shadow:4px 0 0 var(--bg);transform:none}
html[data-theme="antique"] body{background-image:radial-gradient(ellipse 90% 60% at 58% -15%,#a3733b45,transparent 75%),repeating-linear-gradient(90deg,#efca9107 0 1px,transparent 1px 8px)}
html[data-theme="antique"] .sidebar{background-image:repeating-linear-gradient(90deg,#e3af6b0b 0 1px,transparent 1px 9px),linear-gradient(90deg,#2c1a13,#482d20)}
html[data-theme="antique"] .card{border-color:#bb8958;border-radius:2px;box-shadow:inset 0 0 0 4px #392318,inset 0 0 0 5px #f5d19a44,6px 7px 0 #170902ad}
html[data-theme="antique"] .page-head h1,html[data-theme="antique"] .card-title{font-family:Georgia,"Times New Roman",serif;font-variant:small-caps;letter-spacing:.65px}

/* Each preset has its own material, geometry, and detail language. */
html[data-theme="noir"] body{
  background-color:#0a0b0c;
  background-image:linear-gradient(112deg,transparent 33%,#f3f3ee09 34%,transparent 39%),
    repeating-linear-gradient(0deg,#fff00000 0 2px,#ffffff07 3px 4px,transparent 5px 9px),
    linear-gradient(90deg,#08090a,#1c1d1f 57%,#090a0b);
}
html[data-theme="noir"] .sidebar{background:repeating-linear-gradient(0deg,#ffffff06 0 1px,transparent 1px 5px),#151617;border-right:1px solid #c7c9c6;box-shadow:9px 0 0 #0008}
html[data-theme="noir"] .topbar{background:#1c1e1f;border-bottom:1px solid #deded9;box-shadow:0 5px 0 #0008}
html[data-theme="noir"] .brand,html[data-theme="noir"] .sidebar-foot,html[data-theme="noir"] .page-head,html[data-theme="noir"] .card-header{border-bottom:1px solid #b4b7b4}
html[data-theme="noir"] .brandmark{border-radius:0;background:#f1f1ed;color:#0c0d0e;box-shadow:4px 4px 0 #626568}
html[data-theme="noir"] .nav-item{border-radius:0;text-transform:uppercase;font-size:13px;letter-spacing:1px}
html[data-theme="noir"] .nav-item.active{background:#ededeb;color:#111213;box-shadow:5px 5px 0 #000;border-left:5px solid #999}
html[data-theme="noir"] .page-head::after{width:75px;height:2px;background:#efefeb;transform:none;border:0}
html[data-theme="noir"] .card{background:#232526;border:1px solid #a6a8a7;border-radius:0;box-shadow:6px 6px 0 #080909,6px 6px 0 1px #707474}
html[data-theme="noir"] .card::before,html[data-theme="noir"] .card::after{display:none}
html[data-theme="noir"] .metric-grid,html[data-theme="noir"] .feed,html[data-theme="noir"] .list-plain,html[data-theme="noir"] .table-wrap{border-radius:0;box-shadow:inset 3px 0 #56595a;background:#d3d4d1}
html[data-theme="noir"] .btn,html[data-theme="noir"] .input,html[data-theme="noir"] textarea,html[data-theme="noir"] select,html[data-theme="noir"] .tabbar,html[data-theme="noir"] .plan-tile,html[data-theme="noir"] dialog{border-radius:0;box-shadow:3px 3px 0 #0009}
html[data-theme="noir"] .btn.primary,html[data-theme="noir"] .tabbar button.active{box-shadow:inset 0 0 0 1px #181a1b,3px 3px 0 #0009}
html[data-theme="noir"] .table th{background:#181a1b;text-transform:uppercase;letter-spacing:1.4px}

html[data-theme="abyssal"] body{
  background-color:#020b12;
  background-image:repeating-radial-gradient(ellipse 88% 48% at 50% -18%,#70d0cf0e 0 2px,transparent 3px 38px),
    radial-gradient(ellipse at 78% 5%,#1c667a2b,transparent 55%),linear-gradient(#041521,#020b13);
}
html[data-theme="abyssal"] .sidebar{background:radial-gradient(ellipse at 30% -15%,#377d8e2b,transparent 58%),linear-gradient(150deg,#092737,#041521);border-right:1px solid #76bfbe80;box-shadow:7px 0 24px #020c18a8}
html[data-theme="abyssal"] .topbar{background:linear-gradient(100deg,#092b3a,#061b28);border-bottom:1px solid #7acac877;box-shadow:0 7px 24px #05111d}
html[data-theme="abyssal"] .brandmark{border-radius:50%;background:#0e5365;color:#d1faf0;border:1px solid #a9e8d7;box-shadow:0 0 0 4px #66c7bd28,0 0 22px #65d8d455}
html[data-theme="abyssal"] .nav-item{border-radius:20px;border-left:0;padding-left:18px}
html[data-theme="abyssal"] .nav-item.active{background:#9de6dc;color:#083443;border-radius:20px;box-shadow:0 0 0 4px #9de6dc20,0 6px 20px #69c8c849}
html[data-theme="abyssal"] .page-head{border-bottom:1px solid #71bdc595}
html[data-theme="abyssal"] .page-head::after{width:86px;height:2px;bottom:-2px;border:0;border-radius:0;transform:none;background:linear-gradient(90deg,#a9e6db,#75b8bd 62%,transparent)}
html[data-theme="abyssal"] .page-head h1,html[data-theme="abyssal"] .card-title{font-family:ui-sans-serif,system-ui,sans-serif;font-weight:650;letter-spacing:.15px;font-variant:normal}
html[data-theme="abyssal"] .card{border:1px solid #609fa58a;border-radius:22px;background:radial-gradient(ellipse at 90% -15%,#72d8d012,transparent 50%),linear-gradient(145deg,#123747,#0b2634);box-shadow:inset 0 1px #b9fcf024,0 18px 36px #00131cc2}
html[data-theme="abyssal"] .card-header{border-bottom:1px solid #9adad469}
html[data-theme="abyssal"] .metric-grid,html[data-theme="abyssal"] .feed,html[data-theme="abyssal"] .list-plain,html[data-theme="abyssal"] .table-wrap{border-radius:15px;background:#15333f;color:#eaf7f7;box-shadow:inset 0 1px #d0fff024,0 8px 20px #01131d88}
html[data-theme="abyssal"] .metric-grid .mini-label{color:#b9e5e6}
html[data-theme="abyssal"] .table th{background:#0b2938}
html[data-theme="abyssal"] .table tr:hover td{background:#204351}
html[data-theme="abyssal"] .input,html[data-theme="abyssal"] textarea,html[data-theme="abyssal"] select{background:#102d39;color:#eff9fa;border-color:#629aa5;box-shadow:inset 0 1px #d1fff01e}
html[data-theme="abyssal"] .input::placeholder,html[data-theme="abyssal"] textarea::placeholder{color:#b1cad0}
html[data-theme="abyssal"] select option{background:#102d39;color:#eff9fa}
html[data-theme="abyssal"] .mock-notice{background:#193843;color:#eaf7f7;border-color:#6ba5a4;box-shadow:inset 3px 0 #8cdace}
html[data-theme="abyssal"] .btn,html[data-theme="abyssal"] .input,html[data-theme="abyssal"] textarea,html[data-theme="abyssal"] select,html[data-theme="abyssal"] .tabbar,html[data-theme="abyssal"] .plan-tile,html[data-theme="abyssal"] dialog{border-radius:12px}
html[data-theme="abyssal"] .btn.primary{box-shadow:inset 0 1px #edfff9,0 6px 18px #52cec95c}
html[data-theme="abyssal"] .table .btn.ghost{background:#173b49;color:#e9f7f7;border-color:#86bcc3}

/* Black glass carries the color; pale paper surfaces are intentionally removed. */
html[data-theme="prismatic"],.theme-choice[data-theme-choice="prismatic"]{
  --bg:#05060b;--sidebar:#0a0b13;--surface:#10121e;--surface2:#191b2b;--surface3:#24273a;
  --border:#62647e;--muted:#c2c4d9;--text:#f3f4ff;--accent:#e0a4ff;--accent2:#65d8f4;
  --theme-top:#0c0e18;--theme-panel:#0b0d17;--theme-paper:#161a29;--theme-paper-text:#f0f2ff;
  --theme-paper-muted:#bdc2da;--theme-primary:#8ce5f1;--theme-primary-ink:#08121d;
  --theme-highlight:#f3a4e7;--theme-wash:#bd68ff1c;
}
html[data-theme="prismatic"] body{
  background-color:#05060b;
  background-image:radial-gradient(ellipse at 12% 0%,#7030b735,transparent 34%),radial-gradient(ellipse at 90% 8%,#147eac2b,transparent 39%),
    radial-gradient(ellipse at 55% 94%,#9f465d20,transparent 45%),repeating-linear-gradient(135deg,#cde4ff08 0 1px,transparent 1px 24px);
}
html[data-theme="prismatic"] .sidebar{background:linear-gradient(160deg,#15101f,#090c17 53%,#11101a);border-right:2px solid #aa83f4;box-shadow:4px 0 20px #0a071ecc}
html[data-theme="prismatic"] .brand{border-bottom:2px solid #d85ec1}
html[data-theme="prismatic"] .brandmark{background:#0a0c15;color:#f5b9fa;border:2px solid #a774eb;border-radius:14px;box-shadow:4px 4px 0 #4abddc88,0 0 20px #aa66f644}
html[data-theme="prismatic"] .brand small,html[data-theme="prismatic"] .eyebrow{color:#ffb7d7}
html[data-theme="prismatic"] .nav-item{border-radius:10px;border-left:3px solid transparent}
html[data-theme="prismatic"] .nav-item:nth-child(5n+1):not(.active) span{color:#ffa1bb}
html[data-theme="prismatic"] .nav-item:nth-child(5n+2):not(.active) span{color:#ffd393}
html[data-theme="prismatic"] .nav-item:nth-child(5n+3):not(.active) span{color:#8fe4b7}
html[data-theme="prismatic"] .nav-item:nth-child(5n+4):not(.active) span{color:#88d9f7}
html[data-theme="prismatic"] .nav-item:nth-child(5n+5):not(.active) span{color:#d8a5ff}
html[data-theme="prismatic"] .nav-item.active{background:#25223b;color:#fff;border-left:3px solid #fd91c7;box-shadow:inset 0 0 0 1px #8d85d4,0 0 19px #a563ff38}
html[data-theme="prismatic"] .nav-item.active span{color:#a5e7ff}
html[data-theme="prismatic"] .topbar{background:#0d101a;border-bottom:2px solid transparent;border-image:linear-gradient(90deg,#ff80ad,#ffdc80,#79e8b2,#67c9ff,#c39aff) 1;box-shadow:none}
html[data-theme="prismatic"] .page-head{border-bottom:2px solid #6d688e}
html[data-theme="prismatic"] .page-head h1{font-family:ui-sans-serif,system-ui,sans-serif;font-weight:780;letter-spacing:-1px;text-shadow:none}
html[data-theme="prismatic"] .card{border:1px solid #5d5c85;border-radius:17px;background:#111420;box-shadow:inset 0 1px #ffffff20,0 12px 35px #01020add,0 0 22px #6845b11c}
html[data-theme="prismatic"] .card::before{top:0;left:18px;width:calc(100% - 36px);height:3px;background:linear-gradient(90deg,#ff8cab,#f4c773,#83e3aa,#76cef2,#cba2fa);border:0}
html[data-theme="prismatic"] .card::after{display:none}
html[data-theme="prismatic"] .card-header{border-bottom:1px solid #625f8a}
html[data-theme="prismatic"] .card-title{font-family:ui-sans-serif,system-ui,sans-serif;font-weight:700;color:#f5eaff}
html[data-theme="prismatic"] .metric-grid,html[data-theme="prismatic"] .feed,html[data-theme="prismatic"] .list-plain,html[data-theme="prismatic"] .table-wrap{background:#171b2b;border:1px solid #5d6084;border-radius:12px;box-shadow:inset 0 1px #ffffff1d}
html[data-theme="prismatic"] .metric-grid .mini-label{color:#b8d9ff}
html[data-theme="prismatic"] .metric-grid .value,html[data-theme="prismatic"] .feed li span,html[data-theme="prismatic"] .list-plain li{color:#f0f2ff}
html[data-theme="prismatic"] .table th{background:#24203a;border-bottom:2px solid #a887e4;color:#e4c5ff}
html[data-theme="prismatic"] .table td{border-bottom-color:#595b7e}
html[data-theme="prismatic"] .table tr:hover td{background:#2b2844}
html[data-theme="prismatic"] .table .btn.ghost{background:#25283c;color:#ecdbff;border-color:#a080d2}
html[data-theme="prismatic"] .btn,html[data-theme="prismatic"] .input,html[data-theme="prismatic"] textarea,html[data-theme="prismatic"] select,html[data-theme="prismatic"] .tabbar,html[data-theme="prismatic"] .plan-tile,html[data-theme="prismatic"] dialog{border-radius:10px}
html[data-theme="prismatic"] .btn.primary{background:#8ce5f1;color:#091423;border-color:#a3f4fa;box-shadow:0 0 16px #69d7ef45}
html[data-theme="prismatic"] .btn.secondary{border-color:#f0a1cc;background:#3a253f;color:#ffe6f4}
html[data-theme="prismatic"] .btn.ghost{border-color:#aa90e0;color:#e9d5ff}
html[data-theme="prismatic"] .badge.good{color:#9aecc8;border-color:#77d9ad}
html[data-theme="prismatic"] .badge.warn{color:#ffda95;border-color:#dfb962}
html[data-theme="prismatic"] .badge.bad{color:#ffb6ca;border-color:#ef87aa}
html[data-theme="prismatic"] .section-label,html[data-theme="prismatic"] .field label{color:#bce6ff}
html[data-theme="prismatic"] .input,html[data-theme="prismatic"] textarea,html[data-theme="prismatic"] select{background:#202337;color:#f2f4ff;border-color:#8184ae;box-shadow:inset 0 1px #ffffff19}
html[data-theme="prismatic"] .input::placeholder,html[data-theme="prismatic"] textarea::placeholder{color:#afb6d5}
html[data-theme="prismatic"] select option{background:#202337;color:#f2f4ff}
html[data-theme="prismatic"] .mock-notice{background:#252238;color:#f5eaff;border-color:#a081d0;box-shadow:inset 3px 0 #ff92c0}
html[data-theme="prismatic"] .mock-notice b{color:#ffc0da;border-color:#816caa}
html[data-theme="prismatic"] .tabbar button.active{background:#7551a1;color:#fff;box-shadow:0 0 12px #ae75e46b}
html[data-theme="prismatic"] .plan-tile{background:#202136;border-color:#7a73a8}
html[data-theme="prismatic"] .plan-tile.selected{background:#33294a;border-color:#eb9cda;box-shadow:0 0 0 2px #eb9cda30,0 0 20px #e08cdb3c}

html[data-theme="moonlit"] body{
  background-color:#080f1e;
  background-image:radial-gradient(circle at 11% 14%,#fff8df9c 0 1px,transparent 2px),radial-gradient(circle at 82% 7%,#f9eac474 0 1px,transparent 2px),
    radial-gradient(circle at 36% 29%,#b9d5ff80 0 1px,transparent 2px),radial-gradient(circle at 72% 58%,#d7d5ef63 0 1px,transparent 2px),
    repeating-radial-gradient(circle at 92% -15%,#d5dcfa10 0 1px,transparent 2px 56px),linear-gradient(125deg,#0b1530,#101d37 70%,#090f20);
}
html[data-theme="moonlit"] .sidebar{background:radial-gradient(circle at 35% -18%,#5878b045,transparent 50%),#111e37;border-right:1px solid #a7b9db88;box-shadow:6px 0 24px #060c20b8}
html[data-theme="moonlit"] .topbar{background:#172642;border-bottom:1px solid #b5c6e088;box-shadow:0 7px 24px #030918aa}
html[data-theme="moonlit"] .brandmark{border-radius:50%;background:#283e64;color:#eee7c9;border:1px solid #ddce9e;box-shadow:0 0 0 4px #d1d9ea18,0 0 25px #d9d1a659}
html[data-theme="moonlit"] .nav-item{border-radius:14px}
html[data-theme="moonlit"] .nav-item.active{background:#344a70;color:#fff0cd;box-shadow:inset 0 0 0 1px #d5c69e,0 5px 15px #050b1e}
html[data-theme="moonlit"] .nav-item.active span{color:#f7e6ad}
html[data-theme="moonlit"] .page-head{border-bottom:1px solid #b3b6d3}
html[data-theme="moonlit"] .page-head h1,html[data-theme="moonlit"] .card-title{font-family:Georgia,"Times New Roman",serif;font-style:italic;font-variant:normal;letter-spacing:.2px}
html[data-theme="moonlit"] .card{border:1px solid #849dca;border-radius:18px;background:radial-gradient(circle at 92% 0%,#d6cba41b,transparent 43%),#1d2c48;box-shadow:inset 0 0 0 2px #dae2fa1c,0 14px 30px #020915b8}
html[data-theme="moonlit"] .card::before,html[data-theme="moonlit"] .card::after{display:none}
html[data-theme="moonlit"] .metric-grid,html[data-theme="moonlit"] .feed,html[data-theme="moonlit"] .list-plain,html[data-theme="moonlit"] .table-wrap{border-radius:12px}
html[data-theme="moonlit"] .btn,html[data-theme="moonlit"] .input,html[data-theme="moonlit"] textarea,html[data-theme="moonlit"] select,html[data-theme="moonlit"] .plan-tile,html[data-theme="moonlit"] dialog{border-radius:10px}
html[data-theme="moonlit"] .btn.primary{background:#dccda7;color:#182644;box-shadow:0 4px 12px #d2c79a35}

html[data-theme="antique"] body{
  background-color:#24150e;
  background-image:repeating-linear-gradient(90deg,#efb46a08 0 1px,transparent 1px 7px),radial-gradient(ellipse at 55% -14%,#ab693447,transparent 68%),linear-gradient(#2c1a12,#1b100b);
}
html[data-theme="antique"] .sidebar{background:repeating-linear-gradient(90deg,#f8cd8a10 0 1px,transparent 1px 8px),linear-gradient(90deg,#2c1a12,#53321e);border-right:8px ridge #a46d3d;box-shadow:8px 0 20px #130804a3}
html[data-theme="antique"] .topbar{background:linear-gradient(#68422b,#3c261a);border-bottom:5px ridge #b88249;box-shadow:0 6px 15px #160a06b5}
html[data-theme="antique"] .brandmark{background:linear-gradient(135deg,#d7a366,#8e552d);color:#321b10;border-radius:3px;border:2px ridge #efc486;box-shadow:inset 0 0 0 2px #402314,3px 4px 0 #1a0c06}
html[data-theme="antique"] .nav-item{border-radius:2px}
html[data-theme="antique"] .nav-item.active{background:#d7a971;color:#352016;border:2px ridge #e1bc84;box-shadow:inset 0 0 0 2px #634027,3px 3px 0 #170b06}
html[data-theme="antique"] .page-head{border-bottom:5px ridge #ad7848}
html[data-theme="antique"] .page-head::after{width:42px;height:7px;background:#dcaa6c;border:1px solid #f5ce91;transform:none}
html[data-theme="antique"] .card{border:5px ridge #a66d40;border-radius:2px;background:repeating-linear-gradient(90deg,#f5bb7010 0 1px,transparent 1px 9px),#422b20;box-shadow:inset 0 0 0 3px #21130e,5px 7px 0 #180904a8}
html[data-theme="antique"] .card::before,html[data-theme="antique"] .card::after{width:12px;height:12px;border-color:#efbb7e}
html[data-theme="antique"] .metric-grid,html[data-theme="antique"] .feed,html[data-theme="antique"] .list-plain,html[data-theme="antique"] .table-wrap{background:repeating-linear-gradient(0deg,#905d3312 0 1px,transparent 1px 26px),#e8cfa6;border:2px solid #925e36;box-shadow:inset 0 0 0 3px #f8e1b6,2px 3px 0 #1b0e07}
html[data-theme="antique"] .card-header{border-bottom:3px double #bd8755}
html[data-theme="antique"] .btn,html[data-theme="antique"] .input,html[data-theme="antique"] textarea,html[data-theme="antique"] select,html[data-theme="antique"] .tabbar,html[data-theme="antique"] .plan-tile,html[data-theme="antique"] dialog{border-radius:2px}
html[data-theme="antique"] .btn.primary{border:2px ridge #f7ce94;box-shadow:inset 0 0 0 2px #68452d,2px 3px 0 #1a0b05}
html[data-theme="antique"] .table th{background:#5c3925;border-bottom:4px ridge #ba844e}

/* The previews show each theme's geometry as well as its palette. */
.theme-swatch[data-theme-swatch="noir"]{background:repeating-linear-gradient(0deg,#ffffff11 0 1px,transparent 1px 5px),#101112}
.theme-swatch[data-theme-swatch="noir"] i{border-radius:0;box-shadow:inset 4px 0 #eef0ed}
.theme-swatch[data-theme-swatch="abyssal"]{background:repeating-radial-gradient(ellipse at 80% -20%,#70d4d51a 0 1px,transparent 2px 24px),#020d15}
.theme-swatch[data-theme-swatch="abyssal"] i{border-radius:11px;box-shadow:inset 0 2px #c3f4e7}
.theme-swatch[data-theme-swatch="prismatic"]{--swatch-bg:#05060b;--swatch-side:#0d101a;--swatch-panel:#151725;--swatch-paper:#1d2031;--swatch-line:#7167a3;--swatch-top:linear-gradient(90deg,#f386b8,#eec875,#89e3b5,#75c8f4,#cba2f8);background:radial-gradient(circle at 80% 0,#8734a344,transparent 62%),#05060b}
.theme-swatch[data-theme-swatch="prismatic"] i{border-radius:6px;box-shadow:inset 0 4px 0 #e9a2d6,0 0 8px #aa79e366}
.theme-swatch[data-theme-swatch="prismatic"] i:nth-child(2){box-shadow:inset 0 4px 0 #83deab}
.theme-swatch[data-theme-swatch="prismatic"] i:nth-child(3){box-shadow:inset 0 4px 0 #7fc8f4}
.theme-swatch[data-theme-swatch="moonlit"]{background:repeating-radial-gradient(circle at 90% 0,#d7e0f626 0 1px,transparent 2px 23px),#0b1425}
.theme-swatch[data-theme-swatch="moonlit"] i{border-radius:10px}
.theme-swatch[data-theme-swatch="antique"]{background:repeating-linear-gradient(90deg,#ffc27614 0 1px,transparent 1px 7px),#251710}
.theme-swatch[data-theme-swatch="antique"] i{border:3px ridge #c18852;border-radius:0}

/* Cutout: a bright printed-paper collage with physical offset layers. */
:root[data-theme="cutout"],.theme-choice[data-theme-choice="cutout"]{
  color-scheme:light;
  --bg:#f8f3e9;--sidebar:#ffd46c;--surface:#fffdfa;--surface2:#e9f4ed;--surface3:#d7eee4;
  --border:#202329;--muted:#39414a;--text:#202329;--accent:#1242a5;--accent2:#ec5e37;
  --good:#12694c;--warn:#864300;--danger:#aa2828;--shadow:6px 7px 0 #202329;
  --theme-top:#ffe26e;--theme-paper:#fffdfa;--theme-paper-text:#202329;--theme-paper-muted:#45515a;
  --theme-panel:#f4e5d7;--theme-highlight:#1242a5;--theme-primary:#ffe071;--theme-primary-ink:#202329;
  --theme-wash:#f1664633;--theme-mark:#f56b46;
}
:root[data-theme="cutout"] body{
  background-color:#f8f3e9;color:#202329;
  background-image:radial-gradient(circle,#2438494d 1.2px,transparent 1.8px),linear-gradient(135deg,#fffaf0,#f3ece1);
  background-size:24px 24px,auto;
}
:root[data-theme="cutout"] ::selection{background:#ffcf4b;color:#202329}
:root[data-theme="cutout"] :focus-visible{outline:3px solid #1242a5;outline-offset:3px}
:root[data-theme="cutout"] a{color:#1242a5}
:root[data-theme="cutout"] .sidebar{
  background:repeating-linear-gradient(135deg,#ffffff30 0 10px,transparent 10px 25px),#ffd46c;
  border-right:4px solid #202329;box-shadow:7px 0 0 #e76b4f;height:100vh;
}
:root[data-theme="cutout"] .brand{border-bottom:4px solid #202329;padding-bottom:23px}
:root[data-theme="cutout"] .brand::after{display:none}
:root[data-theme="cutout"] .brandmark{
  background:#8bd7c1;color:#202329;border:3px solid #202329;border-radius:50%;
  box-shadow:4px 4px 0 #202329;transform:rotate(-9deg);
}
:root[data-theme="cutout"] .brand strong{color:#202329;font:900 18px/1.03 ui-sans-serif,system-ui,sans-serif;letter-spacing:-.8px;text-transform:uppercase}
:root[data-theme="cutout"] .brand small{color:#343b43;font-weight:850}
:root[data-theme="cutout"] .sidebar-foot{
  background:#8bd7c1;color:#202329;border-top:4px solid #202329;
  font:800 12px/1.6 ui-sans-serif,system-ui,sans-serif;
}
:root[data-theme="cutout"] .sidebar-foot small{color:#303940}
:root[data-theme="cutout"] .status-dot{background:#12694c;box-shadow:0 0 0 2px #202329}
:root[data-theme="cutout"] .nav-item{
  color:#202329;font:800 15px/1.25 ui-sans-serif,system-ui,sans-serif;letter-spacing:-.2px;
  border:2px solid transparent;border-left:2px solid transparent;border-radius:2px 13px 2px 13px;
}
:root[data-theme="cutout"] .nav-item span,:root[data-theme="cutout"] .nav-item:not(.active) span{color:#153e85}
:root[data-theme="cutout"] .nav-item:hover{background:#fff7d8;color:#202329;border-color:#202329}
:root[data-theme="cutout"] .nav-item.active{
  background:#fffdfa;color:#202329;border:2px solid #202329;transform:translateX(3px) rotate(-1deg);
  box-shadow:4px 4px 0 #202329;
}
:root[data-theme="cutout"] .nav-item.active span{color:#e25132}
:root[data-theme="cutout"] .topbar{
  background:linear-gradient(110deg,#fffdfa 0 54%,#ffdf6d 54% 83%,#8bd7c1 83%);
  border-bottom:4px solid #202329;box-shadow:none;
}
:root[data-theme="cutout"] .breadcrumb{color:#384048;font-weight:850}
:root[data-theme="cutout"] .breadcrumb span{color:#ed5b39}
:root[data-theme="cutout"] .breadcrumb strong{color:#202329}
:root[data-theme="cutout"] .mode-badge,:root[data-theme="cutout"] .pill{background:#fffdfa;color:#202329;border:2px solid #202329;box-shadow:3px 3px 0 #202329}
:root[data-theme="cutout"] .top-avatar{border:3px solid #202329;border-radius:50%;box-shadow:3px 3px 0 #202329}
:root[data-theme="cutout"] .top-theme{color:#202329}
:root[data-theme="cutout"] .top-theme select{background:#fffdfa;color:#202329;border:2px solid #202329;border-radius:2px;box-shadow:3px 3px 0 #202329}
:root[data-theme="cutout"] .page-head{border-bottom:4px solid #202329;margin-bottom:28px}
:root[data-theme="cutout"] .page-head::after{
  width:115px;height:12px;bottom:-8px;background:#f56645;border:2px solid #202329;
  border-radius:2px;transform:rotate(-2deg);box-shadow:4px 3px 0 #202329;
}
:root[data-theme="cutout"] .page-head h1{
  color:#202329;font:900 clamp(30px,3vw,46px)/1.04 ui-sans-serif,system-ui,sans-serif;
  text-transform:uppercase;letter-spacing:-1.4px;text-shadow:none;
}
:root[data-theme="cutout"] .eyebrow{color:#a9371d;font-weight:900}
:root[data-theme="cutout"] .subtext{color:#39414a}
:root[data-theme="cutout"] .card{
  background:#fffdfa;border:3px solid #202329;border-radius:2px 19px 2px 19px;
  box-shadow:7px 8px 0 #202329;overflow:visible;
}
:root[data-theme="cutout"] .card::before{
  content:"";display:block;position:absolute;top:-10px;right:22px;left:auto;width:58px;height:15px;
  background:#f56645;border:2px solid #202329;transform:rotate(5deg);pointer-events:none;
}
:root[data-theme="cutout"] .card:nth-child(3n+2)::before{background:#8bd7c1;transform:rotate(-5deg)}
:root[data-theme="cutout"] .card:nth-child(3n+3)::before{background:#ffe071}
:root[data-theme="cutout"] .card::after{display:none}
:root[data-theme="cutout"] .card-title,:root[data-theme="cutout"] .item-card h3,:root[data-theme="cutout"] .block-head strong{
  color:#202329;font:900 19px/1.15 ui-sans-serif,system-ui,sans-serif;
  font-variant:normal;letter-spacing:-.5px;
}
:root[data-theme="cutout"] .card-header{border-bottom:3px solid #202329}
:root[data-theme="cutout"] .mini-label,:root[data-theme="cutout"] .field label,:root[data-theme="cutout"] .section-label{color:#284388;font-weight:850}
:root[data-theme="cutout"] .big-status,:root[data-theme="cutout"] .metric .value{color:#202329}
:root[data-theme="cutout"] .divider{border-top:2px dashed #202329}
:root[data-theme="cutout"] .metric-grid{
  background:#ffe687;color:#202329;border:2px solid #202329;border-radius:2px;
  box-shadow:4px 4px 0 #202329;
}
:root[data-theme="cutout"] .metric-grid .mini-label,:root[data-theme="cutout"] .metric-grid .value{color:#202329}
:root[data-theme="cutout"] .metric-grid .state-good{color:#12694c}
:root[data-theme="cutout"] .metric-grid .state-warn{color:#864300}
:root[data-theme="cutout"] .metric-grid .state-bad{color:#aa2828}
:root[data-theme="cutout"] .feed,:root[data-theme="cutout"] .list-plain{
  background:#f4fbf7;color:#202329;border:2px solid #202329;border-radius:2px;
  box-shadow:4px 4px 0 #8bd7c1;
}
:root[data-theme="cutout"] .feed li,:root[data-theme="cutout"] .list-plain li{border-color:#2023297a}
:root[data-theme="cutout"] .feed li span,:root[data-theme="cutout"] .feed li .muted,:root[data-theme="cutout"] .list-plain li,:root[data-theme="cutout"] .list-plain li strong{color:#202329;font-family:ui-sans-serif,system-ui,sans-serif}
:root[data-theme="cutout"] .feed li time,:root[data-theme="cutout"] .feed li strong,:root[data-theme="cutout"] .list-plain .micro{color:#314252}
:root[data-theme="cutout"] .table-wrap{background:#fffdfa;box-shadow:none}
:root[data-theme="cutout"] .table th{background:#1242a5;color:#fffdfa;border-bottom:3px solid #202329;font-weight:850}
:root[data-theme="cutout"] .table td{color:#202329;border-bottom:2px solid #20232977;font-family:ui-sans-serif,system-ui,sans-serif}
:root[data-theme="cutout"] .table tbody tr:nth-child(even) td{background:#e8f5ec}
:root[data-theme="cutout"] .table tr:hover td,:root[data-theme="cutout"] .table tbody tr:nth-child(even):hover td{background:#ffe687}
:root[data-theme="cutout"] .table td .micro{color:#45515a}
:root[data-theme="cutout"] .btn{
  background:#fffdfa;color:#202329;border:2px solid #202329;border-radius:2px 11px 2px 11px;
  box-shadow:3px 3px 0 #202329;font-weight:850;letter-spacing:.1px;
}
:root[data-theme="cutout"] .btn:hover:not(:disabled){filter:none;background:#ffe687;transform:translate(-1px,-1px);box-shadow:4px 4px 0 #202329}
:root[data-theme="cutout"] .btn:active:not(:disabled){transform:translate(2px,2px);box-shadow:1px 1px 0 #202329}
:root[data-theme="cutout"] .btn.primary{background:#ffe071;color:#202329;box-shadow:4px 4px 0 #202329}
:root[data-theme="cutout"] .btn.secondary{background:#8bd7c1;color:#202329}
:root[data-theme="cutout"] .btn.ghost,:root[data-theme="cutout"] .table .btn.ghost{background:#fffdfa;color:#202329;border-color:#202329}
:root[data-theme="cutout"] .btn.danger{background:#f56645;color:#202329;border-color:#202329}
:root[data-theme="cutout"] .table .btn.ghost:hover:not(:disabled){background:#ffe071;color:#202329}
:root[data-theme="cutout"] .input,:root[data-theme="cutout"] textarea,:root[data-theme="cutout"] select{
  background:#fffdfa;color:#202329;border:2px solid #202329;border-radius:2px;
  box-shadow:3px 3px 0 #b7cacc;font:600 15px ui-sans-serif,system-ui,sans-serif;
}
:root[data-theme="cutout"] .input::placeholder,:root[data-theme="cutout"] textarea::placeholder{color:#59636b}
:root[data-theme="cutout"] .input:focus,:root[data-theme="cutout"] textarea:focus,:root[data-theme="cutout"] select:focus{border-color:#1242a5;box-shadow:3px 3px 0 #8bd7c1}
:root[data-theme="cutout"] select option{background:#fffdfa;color:#202329}
:root[data-theme="cutout"] .hint,:root[data-theme="cutout"] .micro,:root[data-theme="cutout"] .muted{color:#45515a}
:root[data-theme="cutout"] .badge{background:#fffdfa;color:#202329;border:2px solid #202329;border-radius:2px;box-shadow:2px 2px 0 #202329}
:root[data-theme="cutout"] .badge.good{background:#d0efd9;color:#205b40;border-color:#202329}
:root[data-theme="cutout"] .badge.warn{background:#ffe687;color:#704000;border-color:#202329}
:root[data-theme="cutout"] .badge.bad{background:#ffd4ca;color:#92271e;border-color:#202329}
:root[data-theme="cutout"] .switch{background:#fffdfa;border:2px solid #202329;border-radius:2px}
:root[data-theme="cutout"] .switch:checked{background:#8bd7c1;border-color:#202329}
:root[data-theme="cutout"] .switch:before{background:#202329;border-radius:1px}
:root[data-theme="cutout"] .composer-actions{background:#ffe687;border-color:#202329}
:root[data-theme="cutout"] .composer-block{background:#f7f1e7;border:2px dashed #202329;border-radius:2px}
:root[data-theme="cutout"] .tabbar{background:#e8f5ec;border:2px solid #202329;border-radius:2px}
:root[data-theme="cutout"] .tabbar button{color:#303940}
:root[data-theme="cutout"] .tabbar button.active{background:#1242a5;color:#fffdfa;border-radius:2px;box-shadow:2px 2px 0 #202329}
:root[data-theme="cutout"] .persona-avatar{background:#ffe071;border:2px solid #202329;border-radius:50%;box-shadow:3px 3px 0 #202329}
:root[data-theme="cutout"] .item-card p{color:#45515a}
:root[data-theme="cutout"] .mock-notice{background:#ffe687;color:#202329;border:3px solid #202329;border-radius:2px;box-shadow:5px 5px 0 #202329}
:root[data-theme="cutout"] .mock-notice b{color:#202329;border-color:#202329}
:root[data-theme="cutout"] .warning{background:#fff0c8;color:#513000;border:2px solid #202329;border-radius:2px}
:root[data-theme="cutout"] .log-details{background:#e8f5ec;color:#202329;border:1px solid #202329}
:root[data-theme="cutout"] .channel-results{background:#fffdfa;border:2px solid #202329;border-radius:2px;box-shadow:4px 4px 0 #202329}
:root[data-theme="cutout"] .channel-option{color:#202329}
:root[data-theme="cutout"] .channel-option:hover{background:#ffe687}
:root[data-theme="cutout"] .channel-option small{color:#45515a}
:root[data-theme="cutout"] .attachment-chip{background:#e8f5ec;color:#202329;border:2px solid #202329;border-radius:2px}
:root[data-theme="cutout"] .checkbox-row{color:#202329}
:root[data-theme="cutout"] .checkbox-row input{accent-color:#1242a5}
:root[data-theme="cutout"] .scope-group{border:2px dashed #202329;border-radius:2px}
:root[data-theme="cutout"] .scope-group legend{color:#1242a5;font-weight:850}
:root[data-theme="cutout"] .plan-tile{background:#fffdfa;color:#202329;border:3px solid #202329;border-radius:2px 14px 2px 14px;box-shadow:5px 5px 0 #202329}
:root[data-theme="cutout"] .plan-tile.selected{background:#ffe687;border-color:#202329;box-shadow:5px 5px 0 #f56645,5px 5px 0 2px #202329}
:root[data-theme="cutout"] .plan-tile:hover{background:#e8f5ec}
:root[data-theme="cutout"] .plan-tile .micro{color:#45515a}
:root[data-theme="cutout"] .emoji-picker,:root[data-theme="cutout"] .mode-panel{background:#e8f5ec;border:2px dashed #202329;border-radius:2px}
:root[data-theme="cutout"] .emoji-selected #emoji-preview{background:#ffe687;border:2px solid #202329;border-radius:50%}
:root[data-theme="cutout"] .emoji-choice{background:#fffdfa;color:#202329;border:2px solid #202329;border-radius:50%;box-shadow:2px 2px 0 #202329}
:root[data-theme="cutout"] .emoji-choice:hover,:root[data-theme="cutout"] .emoji-choice[aria-pressed="true"]{background:#ffe071;color:#202329}
:root[data-theme="cutout"] dialog{background:#fffdfa;color:#202329;border:3px solid #202329;border-radius:2px 18px 2px 18px;box-shadow:9px 9px 0 #202329}
:root[data-theme="cutout"] dialog::backdrop{background:#202329aa}
:root[data-theme="cutout"] dialog h2{color:#202329;border-color:#202329;font:900 26px ui-sans-serif,system-ui,sans-serif}
:root[data-theme="cutout"] dialog p{color:#39414a}
:root[data-theme="cutout"] .toast{background:#fffdfa;color:#202329;border:2px solid #202329;border-left:8px solid #12694c;border-radius:2px;box-shadow:5px 5px 0 #202329}
:root[data-theme="cutout"] .toast.error{border-left-color:#c73f28}
.theme-choice[data-theme-choice="cutout"]{background:#fffdfa;color:#202329;border:2px solid #202329;border-radius:2px;box-shadow:4px 4px 0 #202329}
.theme-choice[data-theme-choice="cutout"]:hover,.theme-choice[data-theme-choice="cutout"][aria-pressed="true"]{border-color:#1242a5;box-shadow:5px 5px 0 #1242a5}
.theme-choice[data-theme-choice="cutout"] .theme-description{color:#45515a}
:root[data-theme="cutout"] .preview-card{background:#303237;color:#dbdee4;border:1px solid #202329;border-radius:3px;box-shadow:5px 5px 0 #202329}
:root[data-theme="cutout"] .preview-card .micro{color:#a9afb8}
:root[data-theme="cutout"] .preview-card .discord-text{color:#dbdee4}
:root[data-theme="cutout"] .top-actions .icon-btn,:root[data-theme="cutout"] .icon-btn{background:#fffdfa;color:#202329;border:2px solid #202329;border-radius:2px;box-shadow:3px 3px 0 #202329}
@media(max-width:760px){:root[data-theme="cutout"] .sidebar{box-shadow:7px 0 0 #e76b4f}}

.theme-swatch[data-theme-swatch="cutout"]{
  --swatch-bg:#f8f3e9;--swatch-side:#ffd46c;--swatch-top:#8bd7c1;--swatch-panel:#fffdfa;
  --swatch-paper:#ffe687;--swatch-line:#202329;--swatch-accent:#f56645;
  background:radial-gradient(circle,#24384925 1px,transparent 1.5px),#f8f3e9;background-size:12px 12px;
}
.theme-swatch[data-theme-swatch="cutout"] i{border:2px solid #202329;border-radius:2px 9px 2px 9px;box-shadow:3px 3px 0 #202329,inset 0 4px #f56645}
.theme-swatch[data-theme-swatch="cutout"] i:nth-child(2){box-shadow:3px 3px 0 #202329,inset 0 4px #8bd7c1}

/* Volcanic: basalt, molten seams, and a slow field of drifting embers. */
html[data-theme="volcanic"],.theme-choice[data-theme-choice="volcanic"]{
  color-scheme:dark;
  --bg:#100b0a;--sidebar:#17100d;--surface:#211915;--surface2:#30211a;--surface3:#443023;
  --border:#9f4c29;--muted:#d4b9a4;--text:#f8e8d6;--accent:#ffab58;--accent2:#f56a32;
  --good:#a6d0a8;--warn:#ffd075;--danger:#ff8d7b;--shadow:0 18px 38px #090301dd;
  --theme-top:#261811;--theme-paper:#211915;--theme-paper-text:#f7e7d6;--theme-paper-muted:#d0b5a0;
  --theme-panel:#17100e;--theme-highlight:#ff9d3d;--theme-primary:#f79b36;--theme-primary-ink:#1f100c;
  --theme-wash:#ff682127;--theme-mark:#ff6a2c;
}
html[data-theme="volcanic"] body{
  background-color:#100b0a;color:#f8e8d6;
  background-image:linear-gradient(180deg,#0b0807aa,#100807d5 70%,#150906e0),url('./volcanic-rock.webp');
  background-size:auto,950px auto;background-attachment:fixed,fixed;
}
html[data-theme="volcanic"] body::before{
  content:"";position:fixed;inset:-100px 0 0;pointer-events:none;z-index:0;opacity:.6;
  background-image:radial-gradient(circle,#ffad4d 0 1px,transparent 2px),radial-gradient(circle,#ff642b 0 1.5px,transparent 2.5px),radial-gradient(circle,#ffc77e 0 1px,transparent 2px);
  background-size:181px 163px,263px 211px,337px 289px;background-position:22px 47px,110px 120px,240px 31px;
  animation:volcanic-embers 22s linear infinite;
}
html[data-theme="volcanic"] body::after{
  content:"";position:fixed;inset:25% -20% -35%;pointer-events:none;z-index:0;
  background:radial-gradient(ellipse at 48% 100%,#e6501638,transparent 54%);animation:volcanic-breath 10s ease-in-out infinite alternate;
}
html[data-theme="volcanic"] .shell{position:relative;z-index:1}
html[data-theme="volcanic"] ::selection{background:#f97932;color:#170c09}
html[data-theme="volcanic"] :focus-visible{outline:2px solid #ffbe68;outline-offset:3px}
html[data-theme="volcanic"] a{color:#ffc17c}
html[data-theme="volcanic"] .sidebar{
  background:linear-gradient(155deg,#24150fe8,#100b0aee 58%),url('./volcanic-rock.webp') center / 640px auto;
  border-right:3px solid #e65825;box-shadow:inset -14px 0 20px #080403a8,5px 0 22px #f3532538;
}
html[data-theme="volcanic"] .brand{border-bottom:2px solid #a84825}
html[data-theme="volcanic"] .brand::after{border-color:#f17d34}
html[data-theme="volcanic"] .brandmark{
  background:radial-gradient(circle,#ffb650,#e95420 57%,#482216 70%);color:#170b08;
  border:2px solid #ffb75d;border-radius:30% 70% 42% 58%;
  box-shadow:0 0 0 3px #561f12,0 0 24px #f4612b9c;animation:volcanic-heartbeat 7s ease-in-out infinite;
}
html[data-theme="volcanic"] .brand strong{color:#ffe9d2;font:900 17px/1.05 ui-sans-serif,system-ui,sans-serif;letter-spacing:.2px;text-transform:uppercase;text-shadow:0 2px 12px #f45b3466}
html[data-theme="volcanic"] .brand small{color:#ffbd7c}
html[data-theme="volcanic"] .sidebar-foot{background:#1a110e;border-top:2px solid #b64a21;color:#f4dac7}
html[data-theme="volcanic"] .sidebar-foot small{color:#d5b59e}
html[data-theme="volcanic"] .status-dot{background:#ff9b38;box-shadow:0 0 0 3px #6c2b19,0 0 16px #fa672c;animation:volcanic-heartbeat 7s ease-in-out infinite}
html[data-theme="volcanic"] .nav-item{color:#d9c0ad;border-left:3px solid transparent;border-radius:3px 18px 3px 8px;font-weight:750}
html[data-theme="volcanic"] .nav-item span,html[data-theme="volcanic"] .nav-item:not(.active) span{color:#ff9a51}
html[data-theme="volcanic"] .nav-item:hover{background:#4b2619;color:#fff0df}
html[data-theme="volcanic"] .nav-item.active{
  color:#ffe8d1;background:linear-gradient(100deg,#a6361a,#4d2118 72%,#24130f);border-left:4px solid #ffc06f;
  box-shadow:inset 0 1px #ffae6788,0 4px 18px #f4582f55;animation:volcanic-active 6s ease-in-out infinite;
}
html[data-theme="volcanic"] .nav-item.active span{color:#ffe4a7}
html[data-theme="volcanic"] .topbar{
  position:relative;background:linear-gradient(100deg,#21130f,#351b11 54%,#170f0d);
  border-bottom:2px solid #8a3a20;box-shadow:inset 0 -3px #0c0706,0 8px 22px #070302ae;
}
html[data-theme="volcanic"] .topbar::after{
  content:"";position:absolute;left:0;right:0;bottom:-3px;height:4px;pointer-events:none;
  background:linear-gradient(90deg,#461a12,#ff7c22,#e23d19,#ffbe52,#5d2012,#ff7721,#461a12);
  background-size:220% 100%;box-shadow:0 0 16px #fc57269a;animation:volcanic-flow 9s linear infinite;
}
html[data-theme="volcanic"] .breadcrumb{color:#dbbba4}
html[data-theme="volcanic"] .breadcrumb span{color:#ff8d42}
html[data-theme="volcanic"] .breadcrumb strong{color:#ffe7d2}
html[data-theme="volcanic"] .mode-badge,html[data-theme="volcanic"] .pill{background:#3d2116;color:#ffcd8c;border:1px solid #e5682e;box-shadow:0 0 12px #ee5d252c}
html[data-theme="volcanic"] .top-avatar{border:2px solid #ff8e36;box-shadow:0 0 16px #e8592f8c;border-radius:9px}
html[data-theme="volcanic"] .page-head{border-bottom:2px solid #ba4b25}
html[data-theme="volcanic"] .page-head::after{
  width:168px;height:4px;bottom:-3px;border:0;border-radius:0;transform:none;
  background:linear-gradient(90deg,#f64f22,#ffb650,#ee4924,transparent);box-shadow:0 0 15px #f56223;
}
html[data-theme="volcanic"] .page-head h1{
  color:#ffe8d4;font:900 clamp(31px,2.8vw,44px)/1.07 ui-sans-serif,system-ui,sans-serif;
  text-transform:uppercase;letter-spacing:.4px;text-shadow:0 3px 0 #642311,0 0 20px #e755293f;
}
html[data-theme="volcanic"] .eyebrow{color:#ffad66}
html[data-theme="volcanic"] .subtext{color:#dbc0aa}
html[data-theme="volcanic"] .card{
  background:radial-gradient(ellipse at 75% -25%,#77321b3e,transparent 55%),linear-gradient(150deg,#2a1d17,#1a1411 75%);
  border:2px solid #914125;border-top-color:#f47734;border-radius:4px 20px 5px 13px;
  box-shadow:inset 0 1px #ffa35d55,inset 0 0 25px #e8581712,0 13px 30px #080302bd,0 0 0 3px #120a08;
}
html[data-theme="volcanic"] .card::before{
  content:"";display:block;position:absolute;top:-2px;left:0;width:calc(100% - 20px);height:4px;
  border:0;background:linear-gradient(90deg,transparent,#ff7629,#a52c17,#ffc05c,#f35e24,transparent);
  background-size:220% 100%;pointer-events:none;animation:volcanic-flow 11s linear infinite;
}
html[data-theme="volcanic"] .card::after{
  content:"";position:absolute;right:-2px;bottom:-2px;width:25px;height:25px;border:0;
  background:linear-gradient(135deg,transparent 42%,#e75a21 43%,#8c2c16);clip-path:polygon(100% 0,0 100%,100% 100%);opacity:.7;pointer-events:none;
}
html[data-theme="volcanic"] .card-title,html[data-theme="volcanic"] .item-card h3,html[data-theme="volcanic"] .block-head strong{color:#ffe1bd;font:800 20px ui-sans-serif,system-ui,sans-serif;font-variant:normal;letter-spacing:.2px}
html[data-theme="volcanic"] .card-header{border-bottom:1px solid #934625}
html[data-theme="volcanic"] .mini-label,html[data-theme="volcanic"] .field label,html[data-theme="volcanic"] .section-label{color:#ffba77}
html[data-theme="volcanic"] .big-status,html[data-theme="volcanic"] .metric .value{color:#fff0dd}
html[data-theme="volcanic"] .divider{border-top:1px solid #b1552f}
html[data-theme="volcanic"] .metric-grid,html[data-theme="volcanic"] .feed,html[data-theme="volcanic"] .list-plain,html[data-theme="volcanic"] .table-wrap{
  background:linear-gradient(145deg,#322119,#211915);color:#f7e7d6;border:1px solid #aa5329;border-radius:4px 13px 4px 10px;
  box-shadow:inset 0 0 0 2px #d06a2a23,0 5px 16px #0b0503a9;
}
html[data-theme="volcanic"] .metric-grid .mini-label{color:#ffc38a}
html[data-theme="volcanic"] .metric-grid .value,html[data-theme="volcanic"] .feed li span,html[data-theme="volcanic"] .list-plain li{color:#f7e7d6}
html[data-theme="volcanic"] .metric-grid .state-good{color:#a6d0a8}
html[data-theme="volcanic"] .metric-grid .state-warn{color:#ffd075}
html[data-theme="volcanic"] .metric-grid .state-bad{color:#ff8d7b}
html[data-theme="volcanic"] .feed li,html[data-theme="volcanic"] .list-plain li{border-color:#9c523c}
html[data-theme="volcanic"] .feed li .muted,html[data-theme="volcanic"] .list-plain li strong{color:#f1d8c3}
html[data-theme="volcanic"] .feed li time,html[data-theme="volcanic"] .feed li strong,html[data-theme="volcanic"] .list-plain .micro{color:#dbac86}
html[data-theme="volcanic"] .table th{background:#5a291a;color:#ffe1ab;border-bottom:2px solid #f47837}
html[data-theme="volcanic"] .table td{color:#f7e7d6;border-bottom-color:#824b34}
html[data-theme="volcanic"] .table td .micro{color:#d0b5a0}
html[data-theme="volcanic"] .table tr:hover td{background:#4d2b1c}
html[data-theme="volcanic"] .btn{
  background:#42271b;color:#ffebd4;border:1px solid #b45a31;border-radius:3px 11px 4px 10px;
  box-shadow:inset 0 1px #ffb57136,0 3px 0 #120905;font-weight:800;
}
html[data-theme="volcanic"] .btn:hover:not(:disabled){filter:none;background:#64321e;border-color:#f2823a;box-shadow:0 0 12px #ed5f284e,0 3px 0 #120905}
html[data-theme="volcanic"] .btn.primary{background:linear-gradient(115deg,#ffbb52,#f56d26,#c8401e);color:#24120b;border-color:#ffd078;box-shadow:inset 0 1px #fff2ad,0 3px 0 #4d1b0e,0 0 13px #e55b2d57}
html[data-theme="volcanic"] .btn.secondary{background:#64321e;color:#fff0d9;border-color:#e1743f}
html[data-theme="volcanic"] .btn.ghost,html[data-theme="volcanic"] .table .btn.ghost{background:#251914;color:#ffe4c6;border-color:#a65435}
html[data-theme="volcanic"] .table .btn.ghost:hover:not(:disabled){background:#6c321c;color:#fff1d8}
html[data-theme="volcanic"] .btn.danger{background:#8d2e21;color:#ffe3d6;border-color:#e37051}
html[data-theme="volcanic"] .input,html[data-theme="volcanic"] textarea,html[data-theme="volcanic"] select{
  background:#1a1310;color:#fff0dd;border:1px solid #b35f3d;border-radius:3px 9px 3px 8px;
  box-shadow:inset 2px 2px 8px #070302a8;
}
html[data-theme="volcanic"] .input::placeholder,html[data-theme="volcanic"] textarea::placeholder{color:#bea490}
html[data-theme="volcanic"] .input:focus,html[data-theme="volcanic"] textarea:focus,html[data-theme="volcanic"] select:focus{border-color:#ffba62;box-shadow:0 0 0 2px #ff8c3a4f,inset 2px 2px 8px #070302a8}
html[data-theme="volcanic"] select option{background:#211612;color:#fff0dd}
html[data-theme="volcanic"] .hint,html[data-theme="volcanic"] .micro,html[data-theme="volcanic"] .muted{color:#cdb6a5}
html[data-theme="volcanic"] .badge{background:#3c231a;color:#f8e7d6;border:1px solid #a65334;border-radius:3px;box-shadow:inset 0 1px #ffb05a25}
html[data-theme="volcanic"] .badge.good{color:#c4e4c6;background:#21392d;border-color:#578765}
html[data-theme="volcanic"] .badge.warn{color:#ffde91;background:#593b1d;border-color:#bc8034}
html[data-theme="volcanic"] .badge.bad{color:#ffb2a0;background:#5a241d;border-color:#c65c48}
html[data-theme="volcanic"] .switch{background:#473126;border:1px solid #a85e38;border-radius:9px}
html[data-theme="volcanic"] .switch:checked{background:#e7652a;border-color:#ffb76b;box-shadow:0 0 12px #e45b2b66}
html[data-theme="volcanic"] .switch:before{background:#fff1d5;border-radius:7px}
html[data-theme="volcanic"] .composer-actions{background:#342118;border-color:#d05e30}
html[data-theme="volcanic"] .composer-block{background:#201612;border:1px dashed #aa5130;border-radius:6px}
html[data-theme="volcanic"] .tabbar{background:#1a110f;border:1px solid #a65334;border-radius:7px}
html[data-theme="volcanic"] .tabbar button{color:#dbbda8}
html[data-theme="volcanic"] .tabbar button.active{background:#e76c2a;color:#24120a;box-shadow:0 0 12px #ed702b62}
html[data-theme="volcanic"] .persona-avatar{background:#4c2618;border:1px solid #d1713a;border-radius:30% 50% 36% 43%}
html[data-theme="volcanic"] .item-card p{color:#d6bca8}
html[data-theme="volcanic"] .mock-notice{background:#49291c;color:#fbe8ce;border:2px solid #cf6c36;box-shadow:inset 4px 0 #ffb255,0 0 20px #f9641d22}
html[data-theme="volcanic"] .mock-notice b{color:#ffca89;border-color:#d5723a}
html[data-theme="volcanic"] .warning{background:#55321d;color:#ffdeae;border-color:#d78839}
html[data-theme="volcanic"] .log-details{background:#1b120e;color:#e9c9ae}
html[data-theme="volcanic"] .channel-results{background:#231711;border-color:#c46a35}
html[data-theme="volcanic"] .channel-option{color:#f8e8d6}
html[data-theme="volcanic"] .channel-option:hover{background:#64351e}
html[data-theme="volcanic"] .channel-option small{color:#d1b39e}
html[data-theme="volcanic"] .attachment-chip{background:#3e291e;border-color:#9c542c;color:#ffe8d0}
html[data-theme="volcanic"] .checkbox-row{color:#f1d6c0}
html[data-theme="volcanic"] .checkbox-row input{accent-color:#ee7737}
html[data-theme="volcanic"] .scope-group{border-color:#a85b37}
html[data-theme="volcanic"] .scope-group legend{color:#ffbf81}
html[data-theme="volcanic"] .plan-tile{background:#2f1e17;color:#f8e8d6;border:2px solid #b65b32;box-shadow:inset 0 0 0 2px #4d291c,0 6px 20px #060302ab;border-radius:4px 17px 4px 11px}
html[data-theme="volcanic"] .plan-tile.selected{background:#58301d;border-color:#ffab52;box-shadow:inset 0 0 0 2px #ab4e22,0 0 16px #eb632d6a}
html[data-theme="volcanic"] .plan-tile:hover{background:#5b321e}
html[data-theme="volcanic"] .plan-tile .micro{color:#dac0a9}
html[data-theme="volcanic"] .emoji-picker,html[data-theme="volcanic"] .mode-panel{background:#211611;border-color:#a85a37}
html[data-theme="volcanic"] .emoji-selected #emoji-preview{background:#512b1c;border-color:#d26c36}
html[data-theme="volcanic"] .emoji-choice{background:#332017;color:#f6e5d2;border-color:#b3663e}
html[data-theme="volcanic"] .emoji-choice:hover,html[data-theme="volcanic"] .emoji-choice[aria-pressed="true"]{background:#f28332;color:#24120b}
html[data-theme="volcanic"] dialog{background:#241914;color:#f9e8d5;border:2px solid #d46b31;box-shadow:0 0 0 5px #160d0a,0 20px 60px #080302dd,0 0 24px #ed632944}
html[data-theme="volcanic"] dialog::backdrop{background:#070302d6}
html[data-theme="volcanic"] dialog h2{color:#ffe3bd;border-color:#c35c30}
html[data-theme="volcanic"] dialog p{color:#dcc0aa}
html[data-theme="volcanic"] .toast{background:#352016;border-color:#c16934;border-left-color:#ff9f40;color:#f9e7ce;box-shadow:0 0 15px #f46b2d42}
html[data-theme="volcanic"] .toast.error{border-left-color:#ff7960}
.theme-choice[data-theme-choice="volcanic"]{background:#2a1c15;color:#f8e8d6;border:1px solid #a35432;box-shadow:0 6px 17px #090403b0}
.theme-choice[data-theme-choice="volcanic"]:hover,.theme-choice[data-theme-choice="volcanic"][aria-pressed="true"]{border-color:#ffb45b;box-shadow:0 0 0 2px #6d2914,0 0 19px #f56a2d65}
.theme-choice[data-theme-choice="volcanic"] .theme-description{color:#d3b7a1}
html[data-theme="volcanic"] .preview-card{background:#303237;color:#dbdee4;border-color:#737b65;box-shadow:0 0 0 4px #130c09}
html[data-theme="volcanic"] .preview-card .micro{color:#a9afb8}
html[data-theme="volcanic"] .preview-card .discord-text{color:#dbdee4}

.theme-swatch[data-theme-swatch="volcanic"]{
  --swatch-bg:#100b0a;--swatch-side:#20140f;--swatch-top:linear-gradient(90deg,#4c1b10,#e4521e,#ffb451,#ae2c17);--swatch-panel:#2b1b14;
  --swatch-paper:#392218;--swatch-line:#a74b27;--swatch-accent:#ff9c38;
  background-image:linear-gradient(#12090798,#12090798),url('./volcanic-rock.webp');background-size:auto,420px auto;
}
.theme-swatch[data-theme-swatch="volcanic"] i{border-radius:3px 11px 3px 7px;box-shadow:inset 0 3px #ff9b3c,0 0 9px #f15b1a77}
.theme-choice[data-theme-choice="volcanic"] .theme-swatch[data-theme-swatch="volcanic"] i{animation:volcanic-heartbeat 8s ease-in-out infinite}

@keyframes volcanic-embers{from{transform:translateY(105px)}to{transform:translateY(-110px)}}
@keyframes volcanic-breath{from{opacity:.45;transform:translateX(-2%)}to{opacity:.9;transform:translateX(2%)}}
@keyframes volcanic-flow{from{background-position:100% 0}to{background-position:-100% 0}}
@keyframes volcanic-heartbeat{0%,100%{filter:brightness(1)}50%{filter:brightness(1.26)}}
@keyframes volcanic-active{0%,100%{box-shadow:inset 0 1px #ffae6788,0 4px 18px #f4582f55}50%{box-shadow:inset 0 1px #ffd189aa,0 4px 23px #f4582fa0}}
@media(prefers-reduced-motion:reduce){
  html[data-theme="volcanic"] body::before,html[data-theme="volcanic"] body::after,
  html[data-theme="volcanic"] .topbar::after,html[data-theme="volcanic"] .card::before,
  html[data-theme="volcanic"] .brandmark,html[data-theme="volcanic"] .status-dot,
  html[data-theme="volcanic"] .nav-item.active,.theme-choice[data-theme-choice="volcanic"] .theme-swatch[data-theme-swatch="volcanic"] i{animation:none}
}
@media(max-width:760px){html[data-theme="volcanic"] body{background-attachment:scroll,scroll}}

/* Keep the ember field above the transparent console shell so it remains visible after theme/material overrides. */
html[data-theme="volcanic"] body{isolation:isolate}
html[data-theme="volcanic"] body::before{
  z-index:5 !important;opacity:.72;mix-blend-mode:screen;
}
html[data-theme="volcanic"] body::after{
  z-index:4 !important;mix-blend-mode:screen;
}
html[data-theme="volcanic"] .shell{z-index:1}
