:root {
  --canvas: #f3f6f5;
  --surface: #ffffff;
  --surface-2: #e8efed;
  --border: #cbd5d1;
  --border-strong: #8fa19b;
  --ink: #17211f;
  --muted: #4d5c57;
  --accent: #175e54;
  --accent-hover: #0f4a42;
  --accent-ink: #ffffff;
  --accent-text: #175e54;
  --accent-strong: #0f4a42;
  --accent-soft: #e0efec;
  --accent-border: #9cc7bf;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #dfebe3;
  --success-strong: #137638;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #f2e6dd;
  --warning-strong: #a64c08;
  --danger: #b91c1c;
  --danger-ink: #ffffff;
  --danger-soft: #f2dfdf;
  --danger-strong: #b91c1c;
  --chart-1: #175e54;
  --chart-2: #7c285c;
  --chart-3: #7c350c;
  --chart-4: #425605;
  --chart-5: #0b5668;
  --chart-6: #5152a5;

  --font-display: system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --display-weight: 700;
  --display-tracking: -0.01em;
  --eyebrow-tracking: 0.06em;
}

html[data-theme="dark"] {
  --canvas: #101715;
  --surface: #18211f;
  --surface-2: #202b28;
  --border: #33423d;
  --border-strong: #5f726b;
  --ink: #e6eeeb;
  --muted: #9fb0aa;
  --accent: #7fd0bf;
  --accent-hover: #9be0d1;
  --accent-ink: #08201b;
  --accent-text: #7fd0bf;
  --accent-strong: #7fd0bf;
  --accent-soft: #17302b;
  --accent-border: #2f5a52;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #172f22;
  --success-strong: #58a474;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #3a2517;
  --warning-strong: #ca854f;
  --danger: #b91c1c;
  --danger-ink: #ffffff;
  --danger-soft: #3b191b;
  --danger-strong: #d57575;
  --chart-1: #7fd0bf;
  --chart-2: #cb70a4;
  --chart-3: #be6436;
  --chart-4: #98911a;
  --chart-5: #159670;
  --chart-6: #1c9ec8;
}

body { background: var(--canvas); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.55; margin: 0; }
.vot { max-width: 1080px; margin: 0 auto; padding: 20px max(16px, env(safe-area-inset-right, 0px)) 260px max(16px, env(safe-area-inset-left, 0px)); }
.vot-marca { margin: 0; color: var(--accent-text); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 14px; }
.vot-titlu { font-size: 26px; line-height: 1.2; margin: 4px 0 8px; font-weight: 700; text-wrap: balance; }
.vot-intro { color: var(--muted); font-size: 16px; margin: 0 0 12px; max-width: 70ch; }
.vot-intro[hidden] { display: none; }
.vot-progres { font-size: 15px; color: var(--muted); }
.vot-bara { height: 6px; background: var(--surface-2); border-radius: 3px; margin-top: 6px; overflow: hidden; }
.vot-bara > div { height: 100%; width: 0; background: var(--accent); transition: width .25s; }
.vot-poz { margin: 16px 0 0; color: var(--muted); font-size: 14px; }
.vot-q { font-size: 23px; line-height: 1.3; font-weight: 650; margin: 4px 0 14px; text-wrap: balance; overflow-wrap: anywhere; }
.vot-perechi { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.vot-r { min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
.vot-r-et { margin: 0 0 8px; font-size: 17px; color: var(--accent-text); font-weight: 700; }
.vot-r-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.vot-r-surse { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--border); color: var(--muted); font-size: 15px; }
.vot-r-surse-t { font-weight: 650; margin-bottom: 3px; }
.vot-r-sursa { margin: 3px 0; overflow-wrap: anywhere; }
.vot-arata { display: none; font: inherit; font-size: 16px; min-height: 44px; margin-top: 8px; padding: 6px 14px; border: 1px solid var(--accent-border); border-radius: 8px; background: var(--accent-soft); color: var(--accent-strong); cursor: pointer; }
.vot-nota-et { display: block; margin: 16px 0 4px; font-size: 16px; color: var(--muted); }
.vot-nota { width: 100%; min-height: 64px; font: inherit; font-size: 16px; padding: 10px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); color: var(--ink); }
.vot-incarc, .vot-final { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 18px; margin-top: 18px; }
.vot-final-t { margin: 0 0 6px; font-size: 22px; }
.vot-mai { font: inherit; min-height: 48px; margin-top: 6px; padding: 8px 16px; border: 1px solid var(--accent); border-radius: 8px; background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.vot-jos { position: fixed; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--border-strong); padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.vot-jos[hidden] { display: none; }
.vot-butoane { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.vot-btn, .vot-nav-btn { font: inherit; min-height: 48px; padding: 6px 10px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--canvas); color: var(--ink); cursor: pointer; }
.vot-btn[aria-pressed="true"], .vot-nav-btn.primar { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.vot-btn:disabled, .vot-nav-btn:disabled { opacity: .45; cursor: default; }
.vot-btn:focus-visible, .vot-nav-btn:focus-visible, .vot-nota:focus-visible, .vot-arata:focus-visible, .vot-mai:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 2px; }
.vot-nav { max-width: 1080px; margin: 8px auto 0; display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.vot-nav-btn { min-width: 112px; min-height: 48px; }
.vot-stare { color: var(--muted); font-size: 15px; text-align: center; flex: 1; min-width: 0; }
.vot-stare.rau { color: var(--danger-strong); }
@media (max-width: 720px) {
  .vot { padding-top: 12px; padding-bottom: 240px; }
  .vot-titlu { font-size: 21px; }
  .vot-intro { font-size: 16px; }
  .vot-q { font-size: 20px; margin-bottom: 10px; }
  .vot-perechi { grid-template-columns: 1fr; gap: 10px; }
  .vot-r { padding: 12px 14px; }
  .vot-r-corp.scurt { max-height: 8.2em; overflow: hidden; position: relative; }
  .vot-r-corp.scurt::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3em; background: linear-gradient(to bottom, transparent, var(--surface)); pointer-events: none; }
  .vot-arata { display: inline-block; }
  .vot-butoane { grid-template-columns: 1fr 1fr; }
  .vot-nav-btn { min-width: 84px; padding-left: 6px; padding-right: 6px; }
  .vot-stare { font-size: 14px; }
}
