@font-face{font-family:"HiART Lama";src:local("LamaSans-Regular"),local("Lama Sans Regular");font-weight:400;font-display:swap}
@font-face{font-family:"HiART Lama";src:local("LamaSans-Medium"),local("Lama Sans Medium");font-weight:500;font-display:swap}
@font-face{font-family:"HiART Lama";src:local("LamaSans-Bold"),local("Lama Sans Bold");font-weight:700;font-display:swap}
:root{
  color-scheme:dark;--purple:#6244bb;--green:#b6c83f;
  --page:#121019;--surface:#1c1925;--surface-alt:#252131;--ink:#f3eff9;
  --muted:#b9b1c6;--border:#443b54;--accent:#c4b2ff;--input:#15121e;
  --notice:#252818;--accent-surface:#2c2240;--archive-surface:#342a1d;--archive-ink:#eaca92;
  --hero:linear-gradient(115deg,#1b1727,#32214f);--hero-ink:#fff;--shadow:0 14px 45px #0003;
}
:root[data-theme="light"]{
  color-scheme:light;--page:#f2f2f2;--surface:#fff;--surface-alt:#ece8f3;--ink:#27232f;
  --muted:#615a6c;--border:#d1cadb;--accent:#6244bb;--input:#fff;
  --notice:#f5f6e9;--accent-surface:#efebf8;--archive-surface:#f5eee1;--archive-ink:#75501c;
  --hero:#6244bb;--hero-ink:#fff;--shadow:0 14px 45px #35275912;
}
body{background:var(--page);color:var(--ink);font-family:"HiART Lama","Lama Sans","Segoe UI",Tahoma,sans-serif}
button,input,textarea,select{font:inherit}
.theme-control{position:relative;display:inline-flex;align-items:center;gap:2px;padding:3px;border:1px solid var(--border);border-radius:999px;background:var(--input);color:var(--ink);height:36px;isolation:isolate}
.theme-control .theme-track{position:absolute;inset:3px;border-radius:999px;background:var(--surface-alt);z-index:-1}
.theme-choice{display:inline-flex;align-items:center;justify-content:center;width:38px;height:28px;border:0;border-radius:999px;background:transparent;color:var(--muted);padding:0;cursor:pointer;transition:color .2s,background .2s,transform .2s}
.theme-choice svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.theme-choice:hover{color:var(--ink);transform:translateY(-1px)}
.theme-choice[aria-pressed="true"]{background:var(--accent);color:var(--page);box-shadow:0 2px 8px #0002}
.theme-choice:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.theme-gallery header{background:var(--surface);border-color:var(--border);gap:18px}
.theme-gallery .hero{background:var(--hero);color:var(--hero-ink)}
.theme-gallery .brand img{background:#fff;border-radius:7px;padding:4px;box-sizing:content-box;width:38px}
.theme-gallery .note,.theme-gallery .card,.theme-gallery dialog,.theme-gallery .dialog-top{background:var(--surface);color:var(--ink);border-color:var(--border)}
.theme-gallery .art,.theme-gallery .images figure{background:var(--surface-alt)}
.theme-gallery .filters button{background:var(--surface);color:var(--ink);border-color:var(--border)}
.theme-gallery .filters button[aria-pressed="true"],.theme-gallery .close{background:var(--purple);color:white;border-color:var(--purple)}
.theme-gallery .card .meta,.theme-gallery footer a{color:var(--accent)}
.theme-gallery .pill{color:var(--accent);background:var(--accent-surface)}
.theme-gallery .archive{background:var(--archive-surface);color:var(--archive-ink)}
.theme-gallery .gap{background:var(--notice)}
.theme-gallery .proof{background:var(--surface-alt);border-color:var(--border)}
.theme-gallery .card:hover{box-shadow:var(--shadow)}
.theme-brief header{background:var(--hero);color:var(--hero-ink);display:grid;grid-template-columns:1fr auto;gap:8px 20px;align-items:center}
.theme-brief header strong{grid-column:1;grid-row:1}.theme-brief header p{grid-column:1;grid-row:2;margin:0}
.theme-brief header>.theme-control{grid-column:2;grid-row:1/3;color:var(--hero-ink)}
.theme-brief .panel,.theme-brief button{background:var(--surface);color:var(--ink);border-color:var(--border)}
.theme-brief button[aria-pressed="true"],.theme-brief button.primary{background:var(--purple);color:#fff;border-color:var(--purple)}
.theme-brief .field input:not([type="file"]),.theme-brief textarea,.theme-brief select:not([data-theme-picker]){background:var(--input);color:var(--ink);border-color:var(--border)}
.theme-brief .notice{background:var(--notice)}.theme-brief .done{background:var(--accent-surface)}
.theme-brief .required,.theme-brief #status,.theme-brief a{color:var(--accent)}
.theme-brief .actions{border-color:var(--border)}
.theme-brief button:disabled{opacity:.5;cursor:default}
:root[data-theme="dark"] .error{color:#ffb0bc}
@media(max-width:620px){.theme-choice{width:32px}.theme-control{height:34px}.theme-gallery header{padding-inline:5vw}}
@media(max-width:600px){.theme-brief header{grid-template-columns:1fr}.theme-brief header>.theme-control{grid-column:1;grid-row:3;justify-self:start;margin-top:7px}}
:root[data-theme="light"]{--page:#f7f3ed;--surface:#fffdf9;--surface-alt:#eee8df;--ink:#241f2b;--muted:#6b6470;--border:#ddd2c5;--accent:#5a3bb2;--input:#fffdf9;--notice:#f1f2dc;--accent-surface:#eee9fb;--hero:linear-gradient(115deg,#50339e,#7655c4);--shadow:0 18px 50px #39256b1c}

/* Icon slider, physical left/right order in both languages. */
.theme-control{direction:ltr;--theme-index:1;--choice-width:38px;gap:2px;min-width:126px}
.theme-control .theme-track{inset:auto;top:3px;bottom:3px;left:3px;width:var(--choice-width);background:var(--accent);transform:translateX(calc(var(--theme-index) * (var(--choice-width) + 2px)));transition:transform .3s cubic-bezier(.2,.8,.2,1);box-shadow:0 2px 8px #0002;z-index:-1}
.theme-control .theme-choice{width:var(--choice-width);flex-shrink:0;background:transparent!important;box-shadow:none!important;color:var(--muted)}
.theme-control .theme-choice[aria-pressed=true]{color:var(--page)!important;background:transparent!important}
.theme-brief{--bg:var(--page);--text:var(--ink);--panel:var(--surface);--panel2:var(--surface-alt);--error:#fdaaa0}
:root[data-theme=light] .theme-brief{--error:#a93225}
.language-link{white-space:nowrap}
@media(prefers-reduced-motion:reduce){.theme-control .theme-track{transition:none}}

:root[data-theme=light] .site-nav a{color:#4b3d62}:root[data-theme=light] .hero-description{color:#5d5368}:root[data-theme=light] .theme-landing .button-primary{background:#6242b7;color:#fff;border-color:#6242b7}:root[data-theme=light] .theme-landing .button-quiet{background:transparent;color:#4b3d62;border-color:#cfc3df}:root[data-theme=light] .theme-control .theme-choice[aria-pressed=true]{color:#fff!important}

body{font-family:Alexandria,Tahoma,Arial,sans-serif}
