/* VerseOps themes and shared control standard. Same families as Scorgem and VerseBinds.
   Themes may change colours, fonts and corner radius only — never control height, padding or border width. */
@font-face{font-family:"VB Antonio";src:url("../fonts/Antonio-VF.ttf") format("truetype");font-weight:100 700;font-style:normal;font-display:swap}
@font-face{font-family:"VB VT323";src:url("../fonts/VT323-Regular.ttf") format("truetype");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"VB Orbitron";src:url("../fonts/Orbitron-VF.ttf") format("truetype");font-weight:400 900;font-style:normal;font-display:swap}
@font-face{font-family:"VB Rajdhani";src:url("../fonts/rajdhani-semibold.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"VB Barlow Semi Condensed";src:url("../fonts/barlow-semi-condensed-semibold.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap}

html[data-type="lg"]{font-size:125%}
html[data-type="xl"]{font-size:150%}
html[data-type="xxl"]{font-size:175%}
html{overflow-x:clip}

:root[data-theme="verse"]{--btn-radius:3px;--r:3px}
:root[data-theme="neon"][data-tone="dark"]{
  --bg:#070b16;--bg-2:#0d1426;--bg-3:#15203a;--ink:#e6f1ff;--muted:#9fb3cc;--line:#606c86;--line-2:#606c86;
  --accent:#22d3ee;--accent-hover:#67e8f9;--on-accent:#04121a;--link:#22d3ee;--link-hover:#67e8f9;
  --header:#0d1426;--chip:#15203a;--glow:#22d3ee;--violet:#ff8a3d;--green:#4ade80;--warn:#f0c14a;
  --r:4px;--btn-radius:4px;
  --display:"VB Orbitron","VO Orbitron","Segoe UI",system-ui,sans-serif;
  --panel:linear-gradient(180deg,rgba(13,20,38,.94),rgba(7,11,22,.94));
}
:root[data-theme="neon"][data-tone="light"]{
  --bg:#f4f9fc;--bg-2:#e8f1f7;--bg-3:#dce6ed;--ink:#0a1520;--muted:#486889;--line:#76838e;--line-2:#76838e;
  --accent:#007d90;--accent-hover:#005f6e;--on-accent:#fffaf3;--link:#007d90;--link-hover:#005f6e;
  --header:#e8f1f7;--chip:#dce6ed;--glow:#007d90;--violet:#a85b00;--green:#0a5c38;--warn:#8a4e00;
  --r:4px;--btn-radius:4px;
  --display:"VB Orbitron","VO Orbitron","Segoe UI",system-ui,sans-serif;
  --panel:linear-gradient(180deg,#f7fbfe,#eef5fa);
}
:root[data-theme="panel"][data-tone="dark"],:root[data-theme="lcars"][data-tone="dark"]{
  --bg:#000;--bg-2:#10131c;--bg-3:#1b2030;--ink:#f5f1e8;--muted:#c3bfd6;--line:#676b7e;--line-2:#676b7e;
  --accent:#ff9c33;--accent-hover:#ffc078;--on-accent:#1a0d00;--link:#6fa8ff;--link-hover:#9bc0ff;
  --header:#10131c;--chip:#1b2030;--glow:#c6a0ff;--violet:#6fa8ff;--green:#4ade80;--warn:#f0c14a;
  --r:8px;--btn-radius:7px;
  --display:"VB Antonio","Segoe UI",system-ui,sans-serif;
  --panel:linear-gradient(180deg,#141824,#10131c);
}
:root[data-theme="panel"][data-tone="light"],:root[data-theme="lcars"][data-tone="light"]{
  --bg:#fdfbf7;--bg-2:#f3efe5;--bg-3:#e8e2d6;--ink:#1a160c;--muted:#6b6456;--line:#848077;--line-2:#848077;
  --accent:#a76400;--accent-hover:#7d4b00;--on-accent:#fffaf3;--link:#3d66a8;--link-hover:#2a4a80;
  --header:#f3efe5;--chip:#e8e2d6;--glow:#e8c8ff;--violet:#3d66a8;--green:#0a5c38;--warn:#8a4e00;
  --r:8px;--btn-radius:7px;
  --display:"VB Antonio","Segoe UI",system-ui,sans-serif;
  --panel:linear-gradient(180deg,#fffdf8,#f3efe5);
}
:root[data-theme="terminal"][data-tone="dark"],:root[data-theme="terminal"][data-tone="light"]{
  color-scheme:dark;
  --bg:#000;--bg-2:#071207;--bg-3:#0c1c0c;--ink:#8dff99;--muted:#5fd06c;--line:#35723c;--line-2:#35723c;
  --accent:#39ff6a;--accent-hover:#c8ff9e;--on-accent:#021004;--link:#39ff6a;--link-hover:#c8ff9e;
  --header:#071207;--chip:#0c1c0c;--glow:#39ff6a;--violet:#c8ff9e;--green:#39ff6a;--warn:#c8ff9e;
  --r:0;--btn-radius:0;
  --display:"VB VT323",ui-monospace,monospace;
  --label:"VB VT323",ui-monospace,monospace;
  --btn:"VB VT323",ui-monospace,monospace;
  --body:"VB VT323",ui-monospace,monospace;
  --panel:linear-gradient(180deg,#071207,#000);
}
:root[data-theme="pilot"][data-tone="dark"]{
  --bg:#03070f;--bg-2:#07111f;--bg-3:#0c1a2e;--ink:#d8f3ff;--muted:#8fb6cc;--line:#4d6a80;--line-2:#4d6a80;
  --accent:#4fd8ff;--accent-hover:#9be7ff;--on-accent:#021320;--link:#4fd8ff;--link-hover:#9be7ff;
  --header:#07111f;--chip:#0c1a2e;--glow:#4fd8ff;--violet:#ffb347;--green:#4ade80;--warn:#ffb347;
  --r:2px;--btn-radius:2px;
  --display:"VB Rajdhani","VO Rajdhani","Segoe UI",system-ui,sans-serif;
  --panel:linear-gradient(180deg,#0c1a2e,#07111f);
}
:root[data-theme="pilot"][data-tone="light"]{
  --bg:#f4f7fa;--bg-2:#e8eff5;--bg-3:#dce6ee;--ink:#0a1520;--muted:#486889;--line:#75838e;--line-2:#75838e;
  --accent:#007d90;--accent-hover:#005f6e;--on-accent:#fffaf3;--link:#007d90;--link-hover:#005f6e;
  --header:#e8eff5;--chip:#dce6ee;--glow:#007d90;--violet:#9a5e00;--green:#0a5c38;--warn:#8a4e00;
  --r:2px;--btn-radius:2px;
  --display:"VB Rajdhani","VO Rajdhani","Segoe UI",system-ui,sans-serif;
  --panel:linear-gradient(180deg,#f7fafc,#e8eff5);
}
:root[data-theme="pit"][data-tone="dark"]{
  --bg:#0f1113;--bg-2:#1a1d21;--bg-3:#252a30;--ink:#ece7dc;--muted:#b3ada2;--line:#6f7479;--line-2:#6f7479;
  --accent:#ffb03b;--accent-hover:#ffd089;--on-accent:#1c1000;--link:#ffb03b;--link-hover:#ffd089;
  --header:#1a1d21;--chip:#252a30;--glow:#ffb03b;--violet:#e8d8b0;--green:#4ade80;--warn:#ffb03b;
  --r:6px;--btn-radius:6px;
  --display:"VB Barlow Semi Condensed","VO Barlow SC","Segoe UI",system-ui,sans-serif;
  --panel:linear-gradient(180deg,#252a30,#1a1d21);
}
:root[data-theme="pit"][data-tone="light"]{
  --bg:#f9f7f4;--bg-2:#efebdf;--bg-3:#e5dfd1;--ink:#1a1814;--muted:#686256;--line:#817d75;--line-2:#817d75;
  --accent:#996700;--accent-hover:#7a5200;--on-accent:#fffaf3;--link:#996700;--link-hover:#7a5200;
  --header:#efebdf;--chip:#e5dfd1;--glow:#996700;--violet:#7e6f55;--green:#0a5c38;--warn:#8a4e00;
  --r:6px;--btn-radius:6px;
  --display:"VB Barlow Semi Condensed","VO Barlow SC","Segoe UI",system-ui,sans-serif;
  --panel:linear-gradient(180deg,#f4f0e8,#efebdf);
}
:root[data-theme="scorgem"][data-tone="dark"]{
  --bg:#0a1424;--bg-2:#101c30;--bg-3:#17283d;--ink:#f4f2ec;--muted:#c5d4de;--line:#3e556c;--line-2:#3e556c;
  --accent:#3ecfc8;--accent-hover:#8ff3ee;--on-accent:#041416;--link:#3ecfc8;--link-hover:#8ff3ee;
  --header:#0c1828;--chip:#183044;--glow:#3ecfc8;--violet:#3ecfc8;--green:#5ee0a0;--warn:#f2a93b;
  --r:12px;--btn-radius:12px;
  --display:"VB Rajdhani","VO Rajdhani","Segoe UI",system-ui,sans-serif;
  --label:"VB Rajdhani","VO Rajdhani","Segoe UI",system-ui,sans-serif;
  --body:"VB Rajdhani","VO Rajdhani","Segoe UI",system-ui,sans-serif;
  --panel:linear-gradient(180deg,#17283d,#101c30);
}
:root[data-theme="scorgem"][data-tone="light"]{
  --bg:#eef4f4;--bg-2:#ffffff;--bg-3:#e2ecec;--ink:#102028;--muted:#3c4d56;--line:#8aa0a6;--line-2:#8aa0a6;
  --accent:#0e7c7b;--accent-hover:#0a5c5b;--on-accent:#f4fffe;--link:#0e7c7b;--link-hover:#0a5c5b;
  --header:#f7fbfb;--chip:#e7f1f1;--glow:#0e7c7b;--violet:#0e7c7b;--green:#0a5c38;--warn:#8a4e00;
  --r:12px;--btn-radius:12px;
  --display:"VB Rajdhani","VO Rajdhani","Segoe UI",system-ui,sans-serif;
  --label:"VB Rajdhani","VO Rajdhani","Segoe UI",system-ui,sans-serif;
  --body:"VB Rajdhani","VO Rajdhani","Segoe UI",system-ui,sans-serif;
  --panel:linear-gradient(180deg,#fff,#eef4f4);
}
:root[data-theme="terminal"] .tone{display:none}

/* Shared control standard (same tokens as Scorgem / VerseBinds). */
:root{
  --type-scale:1;
  --ctl-h:calc(36px * var(--type-scale));
  --ctl-h-sm:calc(28px * var(--type-scale));
  --ctl-font:calc(14px * var(--type-scale));
  --ctl-lh:calc(20px * var(--type-scale));
  --ctl-pad-x:calc(12px * var(--type-scale));
  --ctl-border:1px;
  --ctl-gap:8px;
  --ctl-label-gap:4px;
}
html[data-type="lg"]{--type-scale:1.25}
html[data-type="xl"]{--type-scale:1.5}
html[data-type="xxl"]{--type-scale:1.75}

.toolbar{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-end;
  justify-content:flex-end;
  gap:var(--ctl-gap);
  margin-left:auto;
  min-width:0;
}
.theme-pick{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-end;
  gap:var(--ctl-gap);
  min-width:0;
}
.theme-pick label{
  display:grid;
  gap:var(--ctl-label-gap);
  font-family:var(--label);
  font-size:.75rem;
  font-weight:600;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--muted);
  min-width:0;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
select,
button.tone,
.btn{
  box-sizing:border-box;
  height:var(--ctl-h);
  min-height:var(--ctl-h);
  padding:0 var(--ctl-pad-x);
  border-width:var(--ctl-border);
  border-style:solid;
  font-size:var(--ctl-font);
  line-height:var(--ctl-lh);
  border-radius:var(--btn-radius,var(--r));
  white-space:nowrap;
}
select,button.tone{
  font-family:inherit;
  color:var(--ink);
  background:var(--bg);
  border-color:var(--line);
  cursor:pointer;
}
button.tone{
  width:var(--ctl-h);
  padding:0;
  display:grid;
  place-items:center;
  background:var(--chip);
}
button.tone .ic{width:16px;height:16px;display:block}
:root[data-tone="light"] button.tone .i-sun,
:root:not([data-tone="light"]) button.tone .i-moon{display:none}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px}

@media (max-width:820px){
  :root{--ctl-h:max(44px, calc(36px * var(--type-scale)));}
}
@media (max-width:640px){
  :root{--ctl-font:max(16px, calc(14px * var(--type-scale)));}
}

/* About and Tip sit side by side on wide windows, one column when narrow. */
.pack-2{display:grid;gap:24px;align-items:start}
@media (min-width:1100px){
  .pack-2{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
}
.pack-2 > section .wrap{padding-left:0;padding-right:0}
.pack-2 > section{min-width:0}
