:root {
  --bg: #0D0A1A;
  --panel: #130F26;
  --panel-2: #1C1736;
  --line: #2E2650;
  --line-2: #3A3160;
  --text: #EDE8FF;
  --muted: #8A7FBD;
  --cyan: #C9A227;
  --gold: #C9A227;
  --gold2: #E8C547;
  --purple: #7C3AED;
  --ok: #3dbe8c;
  --bad: #e15d6a;
  --amber: #E8C547;
  --radius: 16px;
  --shadow: 0 18px 40px -28px rgba(13, 10, 26, .85);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  font-family: Inter, Vazirmatn, system-ui, sans-serif;
  background:
    radial-gradient(ellipse 1200px 500px at 80% -15%, rgba(124, 58, 237, .18), transparent 65%),
    radial-gradient(ellipse 800px 600px at -5% 110%, rgba(201, 162, 39, .12), transparent 60%),
    var(--bg);
  background-size: 160% 160%, 160% 160%, auto;
  animation: auroraShift 24s ease-in-out infinite;
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
@keyframes auroraShift {
  0%, 100% { background-position: 0% 50%, 100% 50%, 50% 50%; }
  50% { background-position: 100% 50%, 0% 50%, 60% 40%; }
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("logo-mark.png") center / 320px no-repeat;
  opacity: .05;
  pointer-events: none;
  z-index: 0;
}
@keyframes logoBreath {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(201, 162, 39, .45)) drop-shadow(0 0 24px rgba(124, 58, 237, .25)); }
  50% { filter: drop-shadow(0 0 18px rgba(232, 197, 71, .65)) drop-shadow(0 0 36px rgba(124, 58, 237, .4)); }
}
.logo-breath { animation: logoBreath 3.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; transition: none !important; }
}
svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
button, input, select, textarea { font-family: inherit; color: inherit; }

.demo-banner {
  text-align: center;
  padding: 7px 16px;
  font-size: 12.5px;
  font-weight: 700;
  color: #0D0A1A;
  background: linear-gradient(90deg, #C9A227, #E8C547);
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar {
  position: sticky; top: 34px; z-index: 40;
  display: flex; align-items: center; gap: 16px;
  padding: 12px 20px;
  padding-inline-end: 7.5rem;
  background: linear-gradient(180deg, #0D0A1A 0%, #1C1736 100%);
  border-bottom: 1px solid rgba(201, 162, 39, .22);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 280px; }
.logo { width: 52px; height: 52px; border-radius: 16px; object-fit: cover; }
.brand h1 {
  margin: 0; font-size: 20px; font-weight: 800; letter-spacing: .04em; direction: ltr;
  background: linear-gradient(135deg, #C9A227, #E8C547);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand p { margin: 1px 0 0; color: var(--muted); font-size: 12px; }
.family { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.family a { color: #C9A227; font-size: 11px; font-weight: 700; text-decoration: none; }
.family a:hover { color: #E8C547; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; font-size: 12px; max-width: 280px;
  border: 1px solid var(--line); background: var(--panel); border-radius: 999px; color: var(--muted);
}
.chip b { color: var(--text); font-weight: 650; }
.chip span { direction: ltr; unicode-bidi: plaintext; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #2E2650; flex: none; }
.chip.on .dot { background: var(--ok); box-shadow: 0 0 0 3px rgba(61, 190, 140, .18); }
.chip.warn .dot { background: var(--amber); box-shadow: 0 0 0 3px rgba(226, 177, 90, .18); }
.chip.live .dot { background: var(--bad); box-shadow: 0 0 0 3px rgba(225, 93, 106, .2); }

.layout {
  display: grid; gap: 14px; padding: 14px 16px 8px;
  grid-template-columns: minmax(0, 1fr) 400px;
  grid-template-areas: "viewer side" "log side" "single side";
  align-items: start;
}
.viewer { grid-area: viewer; }
.side { grid-area: side; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 74px; }
.log { grid-area: log; }
.single { grid-area: single; }
@media (min-width: 1380px) {
  .layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr) 380px;
    grid-template-areas: "viewer single side" "log log side";
  }
  .side { top: 74px; }
}
@media (max-width: 1100px) {
  .layout { grid-template-columns: 1fr; grid-template-areas: "viewer" "side" "log" "single"; }
  .side { position: static; }
  .topbar { flex-wrap: wrap; }
  .chips { justify-content: flex-start; }
}

.card {
  background: linear-gradient(135deg, rgba(19, 15, 38, .94), rgba(28, 23, 54, .9));
  border: 1px solid rgba(201, 162, 39, .22);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  min-width: 0;
}
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 8px; }
.card-head h3 { margin: 0; font-size: 14px; display: flex; align-items: center; gap: 8px; font-weight: 750; }
.card-head h3 svg { color: var(--cyan); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 12px; border-radius: 10px; font-size: 12.5px; font-weight: 700; cursor: pointer;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
  transition: border-color .15s, background .15s;
  white-space: nowrap; user-select: none;
}
.btn:hover { border-color: var(--line-2); background: #211B40; }
.btn.primary {
  background: linear-gradient(135deg, #C9A227, #E8C547);
  color: #0D0A1A; border-color: transparent;
  box-shadow: 0 4px 20px -4px rgba(201, 162, 39, .55);
}
.btn.primary:hover { filter: brightness(1.06); }
.btn.accent { background: rgba(124, 58, 237, .16); border-color: rgba(124, 58, 237, .45); color: #d6c7ff; }
.btn.danger { color: #ffb4bc; border-color: rgba(225, 93, 106, .35); }
.btn.ghost { background: transparent; }
.btn.icon { padding: 8px; width: 36px; }
.btn.active { background: rgba(226, 177, 90, .16); border-color: rgba(226, 177, 90, .55); color: #ffe3ad; }
.btn.wide { width: 100%; padding: 11px; font-size: 13.5px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.tiny { padding: 5px 10px; font-size: 11px; border-radius: 8px; }
.link { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 12px; padding: 4px 0; }
.link:hover { color: var(--text); }
.link.danger:hover { color: var(--bad); }

.toolbar {
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
  margin-bottom: 12px; padding: 6px;
  background: #0D0A1A; border: 1px solid var(--line); border-radius: 12px;
}
.tool-cluster { display: flex; align-items: center; gap: 6px; padding: 2px 8px; flex-wrap: wrap; }
.tool-cluster + .tool-cluster { border-inline-start: 1px solid var(--line); }
.tool-label {
  font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: #C9A227; margin-inline-end: 2px;
}

.dropdown { position: relative; }
.menu {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 80;
  min-width: 220px; display: none;
  background: #1C1736; border: 1px solid var(--line-2); border-radius: 12px; padding: 6px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, .45);
}
.lang-menu .menu { min-width: 168px; }
.menu.open { display: block; }
.menu button {
  display: block; width: 100%; text-align: start; padding: 9px 12px; background: none; border: none;
  border-radius: 8px; cursor: pointer; font-size: 13px; color: var(--text);
}
.menu button:hover, #langMenu button.active { background: rgba(201, 162, 39, .14); color: #E8C547; }
.lang-menu { position: fixed; top: 1rem; inset-inline-end: 1.25rem; z-index: 60; }
.lang-toggle b { color: var(--cyan); font-weight: 800; }

.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 12px; color: var(--muted); }
.switch input { display: none; }
.switch span { width: 34px; height: 20px; border-radius: 20px; background: #2E2650; position: relative; transition: .2s; flex: none; }
.switch span::after {
  content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 14px; height: 14px; border-radius: 50%;
  background: #EDE8FF; transition: .2s;
}
.switch input:checked + span { background: #7C3AED; }
.switch input:checked + span::after { inset-inline-start: 17px; background: #EDE8FF; }
.switch em { font-style: normal; }

.stage {
  position: relative; border-radius: 12px; overflow: hidden; background: #0D0A1A;
  border: 1px solid var(--line); aspect-ratio: 16 / 9; display: grid; place-items: center;
}
.stage img { width: 100%; height: 100%; object-fit: contain; display: block; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.stage.roi-mode canvas { pointer-events: auto; cursor: crosshair; }
.stage.flash { animation: flash .6s ease; }
@keyframes flash {
  0% { box-shadow: inset 0 0 0 0 rgba(225, 93, 106, 0); }
  30% { box-shadow: inset 0 0 0 3px rgba(225, 93, 106, .9); }
  100% { box-shadow: inset 0 0 0 0 rgba(225, 93, 106, 0); }
}
.hud { position: absolute; left: 10px; right: 10px; display: flex; justify-content: space-between; pointer-events: none; }
.hud-top { top: 10px; justify-content: flex-end; }
.hud-bottom { bottom: 10px; font-size: 12px; color: #EDE8FF; direction: ltr; gap: 8px; }
.hud-bottom span { background: rgba(8, 12, 10, .72); padding: 4px 9px; border-radius: 8px; }
.verdict-pill {
  font-weight: 800; font-size: 12px; padding: 5px 12px; border-radius: 999px; letter-spacing: .4px;
  background: rgba(8, 12, 10, .72); border: 1px solid var(--line-2);
}
.verdict-pill.ok { color: var(--ok); border-color: rgba(61, 190, 140, .5); }
.verdict-pill.bad { color: #fff; background: rgba(225, 93, 106, .9); border-color: transparent; }
.verdict-pill.hold { color: #d7ecff; border-color: rgba(120, 170, 210, .55); background: rgba(20, 40, 58, .75); }

.empty {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 28px; background: #130F26;
}
.empty h3 { margin: 16px 0 6px; font-size: 17px; font-weight: 750; }
.empty p { margin: 0; color: var(--muted); font-size: 13px; max-width: 440px; line-height: 1.85; }
.scanner { position: relative; width: 200px; }
.scanner svg { width: 200px; height: 132px; }
.scanner .belt { fill: #1C1736; }
.scanner .part { fill: none; stroke: #8A7FBD; stroke-width: 3; }
.scanner .part.bad { stroke: var(--bad); }
.scanner .beam {
  position: absolute; top: 8px; bottom: 22px; width: 2px; left: 20%;
  background: linear-gradient(var(--cyan), transparent);
  animation: beam 2.6s ease-in-out infinite alternate;
}
@keyframes beam { from { left: 16%; } to { left: 80%; } }
.roi-hint {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%); display: none;
  background: #e2b15a; color: #0D0A1A; font-weight: 800; font-size: 12px;
  padding: 7px 12px; border-radius: 8px; pointer-events: none;
}
.stage.roi-mode .roi-hint { display: block; }

.timeline { margin-top: 12px; }
.tl-head { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.tl-head small { color: #f0a8b0; }
#timeline { width: 100%; height: 78px; display: block; border-radius: 10px; background: #0D0A1A; border: 1px solid var(--line); }

.verdict { display: flex; align-items: center; gap: 14px; }
.verdict.ok { border-color: rgba(61, 190, 140, .45); }
.verdict.bad { border-color: rgba(225, 93, 106, .55); }
.verdict.hold { border-color: rgba(120, 170, 210, .45); }
.gauge { position: relative; width: 92px; height: 92px; flex: none; }
.gauge svg { width: 92px; height: 92px; transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 9; }
.gauge .track { stroke: #1C1736; }
.gauge .fill { stroke: var(--cyan); stroke-linecap: round; stroke-dasharray: 314.16; stroke-dashoffset: 314.16; transition: stroke-dashoffset .25s, stroke .25s; }
.verdict.ok .gauge .fill { stroke: var(--ok); }
.verdict.bad .gauge .fill { stroke: var(--bad); }
.verdict.hold .gauge .fill { stroke: #7eb6e0; }
.gauge-val { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gauge-val b { font-size: 18px; direction: ltr; }
.gauge-val small { font-size: 10px; color: var(--muted); }
.verdict-text { min-width: 0; }
.verdict-text small { color: var(--muted); font-size: 11px; letter-spacing: .04em; }
.verdict-text h2 { margin: 2px 0 2px; font-size: 22px; line-height: 1.2; }
.verdict.ok h2 { color: var(--ok); }
.verdict.bad h2 { color: #ff8d98; }
.verdict.hold h2 { color: #9eccf0; }
.verdict-text p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.65; }
.decision-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.decision-pill { font-weight: 800; font-size: 11px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-2); letter-spacing: .04em; }
.decision-pill.pass { color: var(--ok); border-color: rgba(61, 190, 140, .45); }
.decision-pill.hold { color: #9eccf0; border-color: rgba(120, 170, 210, .45); }
.decision-pill.reject { color: #ff8d98; border-color: rgba(225, 93, 106, .45); }
.decision-conf { color: var(--muted); font-size: 12px; direction: ltr; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.stat small { display: block; color: var(--muted); font-size: 11px; }
.stat b { font-size: 22px; font-weight: 800; display: inline-block; margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat em { font-style: normal; color: var(--muted); font-size: 11px; margin-inline-start: 4px; }
.stat.bad b { color: #ff8d98; }

.work { padding: 12px; }
.work-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; }
.work-tab {
  appearance: none; background: #0D0A1A; border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 4px 7px; cursor: pointer; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center;
  font-size: 11px; font-weight: 750; line-height: 1.35; min-height: 64px;
}
.work-tab:hover { border-color: var(--line-2); color: var(--text); }
.work-tab.on { background: #1C1736; color: var(--text); border-color: #C9A227; }
.num {
  width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center;
  background: #2E2650; color: var(--cyan); font-size: 12px; font-weight: 800;
}
.work-tab.on .num { background: var(--cyan); color: #0D0A1A; }
.work-panel { display: none; flex-direction: column; gap: 10px; }
.work-panel.on { display: flex; }
.panel-meta { font-size: 12px; color: var(--cyan); font-weight: 700; }

.hint { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.8; }
.btn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.inline-inputs { display: flex; gap: 8px; }
.inline-inputs label { flex: 1; display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; color: var(--muted); min-width: 0; }
.inline-inputs input, .inline-inputs select, .modal input, .innov-block textarea {
  background: #0D0A1A; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px;
  font-size: 13px; outline: none; width: 100%;
}
.inline-inputs input:focus, .inline-inputs select:focus, .modal input:focus, .innov-block textarea:focus { border-color: #C9A227; }
select option { background: #130F26; }

.progress { position: relative; height: 26px; border-radius: 8px; background: #0D0A1A; overflow: hidden; border: 1px solid var(--line); }
.progress.slim { height: 18px; }
.progress div { position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: 0; background: linear-gradient(90deg, #C9A227, var(--cyan)); }
.progress span { position: relative; display: block; text-align: center; font-size: 11.5px; line-height: 24px; font-weight: 700; }
.progress.slim span { line-height: 16px; font-size: 10.5px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 6px; max-height: 160px; overflow-y: auto; }
.gallery .thumb { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; border: 1px solid rgba(61, 190, 140, .3); }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery .thumb button {
  position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 6px; border: none; cursor: pointer;
  background: rgba(225, 93, 106, .92); color: #fff; font-size: 13px; line-height: 1; display: none;
}
.gallery .thumb:hover button { display: block; }
.gallery .more { display: grid; place-items: center; font-size: 12px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: 8px; aspect-ratio: 1; }

.model-info { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.model-info div { background: #0D0A1A; border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; }
.model-info small { display: block; color: var(--muted); font-size: 10.5px; }
.model-info b { font-size: 13px; direction: ltr; unicode-bidi: plaintext; }
.model-info .full { grid-column: 1 / -1; }
.model-info canvas { width: 100%; height: 46px; display: block; }

.slider label { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.slider output { color: var(--text); font-weight: 700; direction: ltr; }
input[type=range] { width: 100%; accent-color: #C9A227; }
.toggles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }

.innov { display: flex; flex-direction: column; gap: 10px; }
.innov-block {
  padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: #0D0A1A;
  display: flex; flex-direction: column; gap: 8px;
}
.innov-block b { font-size: 13px; }
.innov-block textarea { resize: vertical; min-height: 68px; line-height: 1.6; }
.policy-rules { display: flex; flex-wrap: wrap; gap: 6px; }
.rule-chip { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); direction: ltr; }
.rule-chip.accept { color: var(--ok); border-color: rgba(61, 190, 140, .4); }
.rule-chip.reject { color: #ff8d98; border-color: rgba(225, 93, 106, .4); }
.cluster-list { display: flex; flex-direction: column; gap: 6px; max-height: 180px; overflow: auto; }
.cluster-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 10px; border-radius: 10px; background: #130F26; border: 1px solid var(--line);
}
.cluster-row b { display: block; font-size: 13px; }
.cluster-row small { color: var(--muted); font-size: 11px; }
.placeholder { color: var(--muted); font-size: 13px; text-align: center; padding: 18px 8px; }

.badge { background: rgba(225, 93, 106, .15); color: #ffb4bc; border-radius: 999px; padding: 1px 8px; font-size: 12px; }
.defects { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; max-height: 280px; overflow-y: auto; }
.defects .placeholder { grid-column: 1 / -1; }
.defect { background: #0D0A1A; border: 1px solid rgba(225, 93, 106, .28); border-radius: 12px; overflow: hidden; cursor: zoom-in; }
.defect:hover { border-color: rgba(225, 93, 106, .6); }
.defect img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; background: #000; }
.defect .meta { padding: 7px 10px; display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--muted); }
.defect .meta b { color: #ffb4bc; direction: ltr; }

.drop {
  display: block; border: 1.5px dashed var(--line-2); border-radius: 12px; min-height: 150px; cursor: pointer;
  position: relative; overflow: hidden; background: #0D0A1A;
}
.drop.over { border-color: var(--cyan); background: rgba(201, 162, 39, .08); }
.drop-inner { min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--muted); padding: 16px; text-align: center; }
.drop-inner svg { width: 28px; height: 28px; color: var(--cyan); }
.drop-inner b { color: var(--text); font-size: 13px; }
.drop img { width: 100%; display: block; }
.single-verdict { margin-top: 10px; font-size: 13px; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.single-verdict .tag { font-weight: 800; padding: 3px 12px; border-radius: 999px; }
.single-verdict .tag.ok { background: rgba(61, 190, 140, .15); color: var(--ok); }
.single-verdict .tag.bad { background: rgba(225, 93, 106, .16); color: #ff8d98; }
.single-verdict .tag.hold { background: rgba(120, 170, 210, .16); color: #9eccf0; }

.foot { text-align: center; color: #8A7FBD; font-size: 11px; padding: 6px 0 16px; }

.modal, .lightbox { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: rgba(13, 10, 26, .78); }
.modal[hidden], .lightbox[hidden] { display: none; }
.modal-card { width: min(440px, 92vw); background: #130F26; border: 1px solid var(--line-2); border-radius: 16px; padding: 20px; }
.modal-card h3 { margin: 0 0 6px; }
.modal-card p { margin: 0 0 14px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.modal input { direction: ltr; }
.modal-actions { display: flex; gap: 8px; margin-top: 14px; }
.lightbox { cursor: zoom-out; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: 12px; border: 1px solid var(--line-2); }
.lightbox p { color: var(--muted); text-align: center; }

.toasts { position: fixed; bottom: 16px; inset-inline-start: 16px; z-index: 80; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: #130F26; border: 1px solid var(--line-2); border-inline-start: 4px solid var(--cyan);
  border-radius: 12px; padding: 11px 14px; font-size: 13px; box-shadow: var(--shadow); max-width: 340px;
}
.toast.err { border-inline-start-color: var(--bad); }
.toast.ok { border-inline-start-color: var(--ok); }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #2E2650; border-radius: 8px; }

body.ltr { font-family: Inter, Vazirmatn, system-ui, sans-serif; }
body.ltr .brand h1 { text-align: left; }
body.ltr .hud-top { justify-content: flex-start; }
