/* Rahvakogu. Kerge kujundus: tekst 400, pealkirjad 500, õhukesed ikoonid, üks tume põhinupp. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-2: #f6f6f7;
  --bg-3: #eeeeef;
  --bg-4: #e3e3e5;
  --hover: rgba(0, 0, 0, .025);
  --hover-2: rgba(0, 0, 0, .055);
  --line: #ececed;
  --line-2: #d9d9dc;
  --ink: #141416;
  --ink-2: #63636a;
  --ink-3: #8c8c93;
  --accent: #0b6ae0;
  --accent-soft: #e8f1fd;
  --for: #0a7d4f;
  --for-bar: #0a9055;
  --against: #c9302c;
  --against-soft: #fcefee;
  --against-bar: #e0524e;
  --abstain: #63636a;
  --abstain-bar: #87929d;
  --warn: #8f6200;
  --warn-soft: #fff7e0;
  --overlay: rgba(0, 0, 0, .4);
  --shadow: 0 8px 30px rgba(0, 0, 0, .12), 0 0 0 1px rgba(0, 0, 0, .04);
  --blur-bg: rgba(255, 255, 255, .88);
  --nav-w: clamp(228px, 17vw, 280px);
  --side-w: clamp(296px, 24vw, 400px);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0f0f11; --bg-2: #18181b; --bg-3: #242428; --bg-4: #303035;
    --hover: rgba(255, 255, 255, .03); --hover-2: rgba(255, 255, 255, .07);
    --line: #26262a; --line-2: #3a3a40;
    --ink: #f2f2f3; --ink-2: #a2a2aa; --ink-3: #77777e;
    --accent: #66a6ff; --accent-soft: #15243a;
    --for: #4cc38a; --for-bar: #30a46c;
    --against: #ff7b72; --against-soft: #2c1615; --against-bar: #e5534b;
    --abstain: #a2a2aa; --abstain-bar: #66727e;
    --warn: #e3b341; --warn-soft: #2a2310;
    --overlay: rgba(0, 0, 0, .6);
    --shadow: 0 8px 30px rgba(0, 0, 0, .6), 0 0 0 1px #2c2c31;
    --blur-bg: rgba(15, 15, 17, .86);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f0f11; --bg-2: #18181b; --bg-3: #242428; --bg-4: #303035;
  --hover: rgba(255, 255, 255, .03); --hover-2: rgba(255, 255, 255, .07);
  --line: #26262a; --line-2: #3a3a40;
  --ink: #f2f2f3; --ink-2: #a2a2aa; --ink-3: #77777e;
  --accent: #66a6ff; --accent-soft: #15243a;
  --for: #4cc38a; --for-bar: #30a46c;
  --against: #ff7b72; --against-soft: #2c1615; --against-bar: #e5534b;
  --abstain: #a2a2aa; --abstain-bar: #66727e;
  --warn: #e3b341; --warn-soft: #2a2310;
  --overlay: rgba(0, 0, 0, .6);
  --shadow: 0 8px 30px rgba(0, 0, 0, .6), 0 0 0 1px #2c2c31;
  --blur-bg: rgba(15, 15, 17, .86);
}

/* Tekst kasvab koos ekraaniga */
html { font-size: clamp(15px, 12.8px + .2vw, 17px); -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.42 var(--font); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
b, strong { font-weight: 500; }
ul, ol { list-style: none; margin: 0; padding: 0; }
svg.ic { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; display: inline-block; vertical-align: -.25em; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.muted { color: var(--ink-2); }
.small { font-size: .8125rem; }
.num { font-variant-numeric: tabular-nums; }
.lnk { color: var(--accent); }
.lnk:hover { text-decoration: underline; }
.row { display: flex; align-items: center; gap: 8px; }
.grow { flex: 1; min-width: 0; }
.ellip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dot::before { content: '·'; margin: 0 5px; color: var(--ink-3); }

/* Paigutus: menüü serva vastas, sisu täidab ülejäänud laiuse */
.app { display: grid; grid-template-columns: var(--nav-w) minmax(0, 1fr); min-height: 100vh; }
.shell { display: grid; grid-template-columns: minmax(0, 1fr) var(--side-w); column-gap: clamp(20px, 2.6vw, 48px); width: 100%; max-width: 1480px; margin: 0 auto; padding: 0 clamp(12px, 2.2vw, 40px); }
.app.wide .shell { grid-template-columns: minmax(0, 1fr); max-width: 1400px; }
.app.wide .side { display: none; }
.col { min-width: 0; padding-bottom: 80px; outline: none; container: col / inline-size; }
.side { padding: 12px 0 32px; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 0; align-self: start; max-height: 100vh; overflow-y: auto; scrollbar-width: none; }
.side::-webkit-scrollbar { display: none; }

/* Vasak menüü */
.nav { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 14px 12px; gap: 2px; border-right: 1px solid var(--line); }
.logo { display: block; padding: 6px 12px 16px; font-weight: 500; font-size: 1.3rem; letter-spacing: -.02em; }
.logo__m { display: none; }
.nav__link { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: var(--ink-2); width: 100%; text-align: left; }
.nav__link:hover { background: var(--hover-2); color: var(--ink); }
.nav__link svg.ic { width: 22px; height: 22px; }
.nav__link.on { color: var(--ink); background: var(--bg-3); }
.nav__link .t { flex: 1; min-width: 0; }
.nav__n { font-size: .8125rem; color: var(--accent); font-variant-numeric: tabular-nums; }
.nav__sep { height: 1px; background: var(--line); margin: 8px 12px; }
.nav__post { margin: 12px 0 0; }
.nav__post svg.ic { display: none; }
.nav__me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; width: 100%; text-align: left; }
.nav__me:hover { background: var(--hover-2); }
.nav__me .ic { color: var(--ink-2); }

/* Nupud */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 0 16px; border-radius: 999px; font-weight: 500; font-size: .875rem; white-space: nowrap; transition: background .12s, opacity .12s, color .12s; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn--p, .btn--ink { background: var(--ink); color: var(--bg); }
.btn--p:hover:not(:disabled), .btn--ink:hover:not(:disabled) { opacity: .85; }
.btn--o { background: var(--bg-3); }
.btn--o:hover:not(:disabled) { background: var(--bg-4); }
.btn--g:hover:not(:disabled) { background: var(--hover-2); }
.btn--d { background: var(--against-soft); color: var(--against); }
.btn--d:hover:not(:disabled) { opacity: .85; }
.btn--ds { background: var(--against); color: #fff; }
.btn--ds:hover:not(:disabled) { opacity: .9; }
.btn--lg { min-height: 44px; font-size: .9375rem; padding: 0 22px; }
.btn--sm { min-height: 30px; font-size: .8125rem; padding: 0 12px; }
.btn--full { width: 100%; }
.iconbtn { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--ink-2); flex: none; }
.iconbtn:hover { background: var(--hover-2); color: var(--ink); }

/* Lehe päis */
.bar { position: sticky; top: 0; z-index: 20; background: var(--blur-bg); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.bar__top { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 12px; }
.bar__title { font-size: 1.15rem; font-weight: 500; line-height: 1.25; letter-spacing: -.01em; }
.bar__sub { font-size: .8125rem; color: var(--ink-2); }
.bar__me { display: none; }
.tabs { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; padding: 0 12px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; padding: 8px 0 10px; color: var(--ink-2); white-space: nowrap; position: relative; }
.tab:hover { color: var(--ink); }
.tab.on { color: var(--ink); font-weight: 500; }
.tab.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ink); border-radius: 2px; }
.tab .cnt { margin-left: 5px; color: var(--accent); font-size: .8125rem; font-variant-numeric: tabular-nums; font-weight: 400; }
.tabs--line { border-bottom: 1px solid var(--line); }

/* Avatar: pehme toon, mitte täisvärv */
.av { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; flex: none; user-select: none; overflow: hidden; font-weight: 500; background: color-mix(in srgb, var(--c, #70707a) 15%, var(--bg)); color: color-mix(in srgb, var(--c, #70707a) 80%, var(--ink)); }
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av--40 { width: 40px; height: 40px; font-size: .875rem; }
.av--32 { width: 32px; height: 32px; font-size: .75rem; }
.av--24 { width: 24px; height: 24px; font-size: .625rem; }
.av--48 { width: 48px; height: 48px; font-size: 1rem; }
.av--96 { width: 96px; height: 96px; font-size: 1.9rem; box-shadow: 0 0 0 4px var(--bg); }
.vf { color: var(--ink-2); }
.vf svg.ic { width: 15px; height: 15px; vertical-align: -2px; }

/* Rollid ja olekud on tekst, mitte värviline märk */
.role { font-size: .75rem; color: var(--ink-2); white-space: nowrap; }
.role--bad { color: var(--against); }
.role--warn { color: var(--warn); }
.st { font-size: .8125rem; font-weight: 500; white-space: nowrap; }
.st--for { color: var(--for); }
.st--against { color: var(--against); }
.st--abstain { color: var(--abstain); }
.stat--rej { color: var(--against); }
.stat--law { color: var(--for); }

/* Postitus */
.post { display: flex; gap: 12px; padding: 13px 12px 5px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .1s; }
.post:hover { background: var(--hover); }
.post__l { flex: none; }
.post__b { min-width: 0; flex: 1; max-width: 780px; }
.post__h { display: flex; align-items: center; gap: 5px; min-width: 0; font-size: .9375rem; }
.post__h .role, .post__h .st, .post__time { flex: none; }
.post__n { font-weight: 500; flex: 0 1 auto; min-width: 48px; }
.post__n:hover { text-decoration: underline; }
.post__u { color: var(--ink-2); flex: 0 999 auto; min-width: 0; }
.post__time { color: var(--ink-2); white-space: nowrap; }
.post__time:hover { text-decoration: underline; }
.post__menu { margin: -6px -8px -6px auto; }
.post__txt { margin-top: 2px; white-space: pre-wrap; }
.post__txt a { color: var(--accent); }
.post__txt a:hover { text-decoration: underline; }
.post__ctx { font-size: .8125rem; color: var(--ink-2); padding: 10px 12px 0 64px; }
.post__wrap { border-bottom: 1px solid var(--line); }
.post__wrap .post { border-bottom: 0; padding-top: 4px; }
.acts { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 0 -8px; max-width: 460px; gap: 2px; }
.act { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 8px; border-radius: 999px; color: var(--ink-2); font-size: .8125rem; font-variant-numeric: tabular-nums; min-width: 32px; }
.act svg.ic { width: 18px; height: 18px; }
.act:hover { background: var(--hover-2); color: var(--ink); }
.act.on { color: var(--ink); }
.act--rep.on { color: var(--for); }
.act.fill svg.ic { fill: currentColor; }
.score { display: inline-flex; align-items: center; }
.score__n { min-width: 20px; text-align: center; font-size: .8125rem; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.score__n.up { color: var(--for); }
.score__n.down { color: var(--against); }
.vote-b { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--ink-2); }
.vote-b svg.ic { width: 18px; height: 18px; }
.vote-b:hover { background: var(--hover-2); }
.vote-b.up:hover, .vote-b.up.on { color: var(--for); }
.vote-b.down:hover, .vote-b.down.on { color: var(--against); }
.vote-b.on svg.ic { fill: currentColor; }
.post--big { cursor: default; flex-direction: column; gap: 8px; padding-bottom: 0; border-bottom: 0; }
.post--big:hover { background: none; }
.post--big .post__txt { font-size: 1.2rem; line-height: 1.4; }
.post--big .acts { border-top: 1px solid var(--line); margin: 8px 0 0; padding: 4px 0; max-width: none; }
.post__meta { color: var(--ink-2); font-size: .875rem; padding-top: 4px; }
.post__removed { padding: 12px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: .875rem; }
.modflag { font-size: .8125rem; color: var(--warn); margin: 4px 0 2px; }
.pinned { font-size: .8125rem; color: var(--ink-2); margin-bottom: 2px; }

/* Postitus voos: parim vastus ja kõik vastused samas kohas */
.fpost { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.fpost > .post { border-bottom: 0; }
.post__wrap .fpost { border-bottom: 0; }
.post--still { cursor: default; }
.post--still:hover { background: none; }
.fprev { display: flex; gap: 8px; margin: 2px 12px 0 64px; padding: 8px 10px; max-width: 780px; background: var(--bg-2); border-radius: 12px; cursor: pointer; font-size: .9375rem; transition: background .1s; }
.fprev:hover { background: var(--bg-3); }
.fprev__b { min-width: 0; flex: 1; }
.fprev__h { display: flex; align-items: center; gap: 5px; min-width: 0; font-size: .875rem; }
.fprev__h .post__time, .fprev__h .st { flex: none; }
.fprev__t { margin-top: 1px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fprev__t a { color: var(--accent); }
.fmore { display: block; margin: 8px 12px 2px 64px; font-size: .875rem; color: var(--accent); text-align: left; }
.fmore:hover { text-decoration: underline; }
.fthread__c { padding: 2px 12px 8px 64px; margin: 0; }
.fthread__c .comp textarea { background: var(--bg-2); border-radius: 12px; padding: 9px 12px; }
.fthread .thread { border: 0; }

/* Uudis */
.post--news .post__b { flex: 1; min-width: 0; }
.nws__h { color: var(--ink-2); font-size: .875rem; }
.nws__src { color: var(--ink); font-weight: 500; flex: none; }
.nws__t { font-size: 1.125rem; font-weight: 500; line-height: 1.3; margin-top: 3px; }
.post--big .nws__t { font-size: 1.375rem; margin-top: 6px; }
.nws__img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 12px; margin-top: 8px; background: var(--bg-2); }
/* Allika enda foto lingi eelvaatena: sama lai kuju nagu teistel uudistel (founder 2026-11-10). Lõige veidi ülevalt poolt, et näod jääksid pildile. */
.nws__pic { display: block; }
.nws__img--src { object-position: center 35%; }
.nws__cap { margin-top: 4px; color: var(--ink-2); font-size: .75rem; }
.post--news .post__txt { margin-top: 6px; }
.post--big.post--news .post__txt { font-size: 1rem; line-height: 1.45; margin-top: 8px; }
.nws__link { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; color: var(--accent); font-size: .875rem; }
.nws__link:hover { text-decoration: underline; }
.nws__link svg.ic { width: 14px; height: 14px; }
.nws__rel { margin-top: 10px; color: var(--ink-2); font-size: .8125rem; }
.nws__rel + .emb { margin-top: 4px; }
.nws__foot { padding: 14px 12px 24px; margin: 0; }
.fpost--news .fprev, .fpost--news .fmore { margin-left: 12px; }
.fpost--news .fthread__c { padding-left: 12px; }
.fpost--news .thread__kids { margin-left: 12px; }

/* Lõimed */
.thread__kids { margin-left: 31px; border-left: 1px solid var(--line-2); }
.thread .post { border-bottom: 0; padding-bottom: 2px; }
.thread--root { border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.thread__toggle { display: inline-block; font-size: .8125rem; color: var(--accent); padding: 4px 12px 8px; margin-left: 52px; }
.thread__toggle:hover { text-decoration: underline; }
.inlinereply { padding: 4px 12px 12px 64px; }

/* Koostaja: üks rida, avaneb fookuse saamisel */
.comp { display: flex; gap: 12px; padding: 12px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.comp--plain { padding: 0; border: 0; }
.comp__b { flex: 1; min-width: 0; }
.comp textarea { width: 100%; border: 0; background: none; resize: none; font-size: 1.05rem; line-height: 1.4; padding: 8px 0 7px; display: block; outline: none; min-height: 40px; }
.comp--sm textarea { font-size: 1rem; }
.comp textarea::placeholder { color: var(--ink-2); }
.comp__row { display: none; align-items: center; gap: 8px; padding-top: 8px; }
.comp.open .comp__row { display: flex; }
.comp__tools { display: flex; gap: 2px; margin-left: -8px; flex: 1; min-width: 0; }
.comp__len { font-size: .8125rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.comp__len.bad { color: var(--against); }
.comp__err { color: var(--against); font-size: .8125rem; margin-top: 6px; }
.notice { padding: 10px 12px; font-size: .875rem; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.notice--warn { background: var(--warn-soft); color: var(--warn); }
.notice--bad { background: var(--against-soft); color: var(--against); }
.embed-rm { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 6px 6px 6px 12px; background: var(--bg-2); border-radius: 10px; font-size: .8125rem; }

/* Eelnõu kaart */
.bill { display: block; padding: 16px 12px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .1s; }
.bill:hover { background: var(--hover); }
.bill__kicker { font-size: .8125rem; color: var(--ink-2); margin-bottom: 6px; }
.bill__meta { font-size: .8125rem; color: var(--ink-2); }
.bill__q { font-size: 1.15rem; font-weight: 500; line-height: 1.28; letter-spacing: -.008em; margin-top: 3px; }
.bill__q a:hover { text-decoration: underline; }
.bill--feat { background: var(--bg-2); border: 0; border-radius: 16px; margin: 12px 0; padding: 16px; }
.bill--feat:hover { background: var(--bg-2); }
.bill--feat .vbtn { background: var(--bg); }
.bill--feat .vbtn:hover { background: var(--bg-3); }
.bill--feat .vbtn.on { background: var(--ink); }
.billgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 12px 0; }
.billgrid .bill { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.billgrid .bill__sp { flex: 1; }
@container col (min-width: 660px) {
  .billgrid { grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }
}

/* Viide eelnõule postituses */
.emb { display: block; margin-top: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; transition: background .1s; }
.emb:hover { background: var(--hover-2); }
.emb__t { font-weight: 500; font-size: .9375rem; line-height: 1.3; }
.emb__m { font-size: .8125rem; color: var(--ink-2); margin-top: 2px; }
.emb .res__bar { margin-top: 8px; height: 4px; }

/* Hääletus */
.vbtns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.vbtn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; border-radius: 999px; font-weight: 500; font-size: .875rem; background: var(--bg-3); white-space: nowrap; min-width: 0; padding: 0 4px; transition: background .12s; }
.vbtn:hover { background: var(--bg-4); }
.vbtn.on { background: var(--ink); color: var(--bg); }
.res { margin-top: 12px; }
.res__bar { display: flex; gap: 2px; height: 6px; }
.res__seg { min-width: 2px; height: 100%; flex: 1 1 0; transition: flex-grow .6s cubic-bezier(.2, .8, .2, 1); }
.res__seg:first-child { border-radius: 3px 0 0 3px; }
.res__seg:last-child { border-radius: 0 3px 3px 0; }
.res__seg:only-child { border-radius: 3px; }
.seg--for { background: var(--for-bar); }
.seg--against { background: var(--against-bar); }
.seg--abstain { background: var(--abstain-bar); }
.res__leg { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 8px; font-size: .8125rem; color: var(--ink-2); }
.res__i { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.res__i i { width: 8px; height: 8px; border-radius: 50%; }
.res__i b { color: var(--ink); }
.res__meta { display: flex; align-items: center; gap: 2px 10px; flex-wrap: wrap; margin-top: 8px; font-size: .8125rem; color: var(--ink-2); }
.myvote { color: var(--ink); }

/* Eelnõu leht */
.bp { padding: 16px 12px; border-bottom: 1px solid var(--line); }
.bp__q { font-size: 1.65rem; font-weight: 500; line-height: 1.2; letter-spacing: -.018em; margin-top: 6px; }
.bp__off { font-size: .875rem; color: var(--ink-2); margin-top: 6px; }
.bp__vote { margin-top: 12px; }
.bp__fine { margin-top: 8px; font-size: .75rem; color: var(--ink-2); }
.steps { display: flex; flex-direction: column; }
.step { position: relative; padding: 0 0 14px 20px; font-size: .875rem; color: var(--ink-2); display: flex; justify-content: space-between; gap: 8px; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ''; position: absolute; left: 3px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); z-index: 1; }
.step::after { content: ''; position: absolute; left: 6px; top: 8px; bottom: -6px; width: 1px; background: var(--line-2); }
.step:last-child::after { display: none; }
.step.done { color: var(--ink); }
.step.done::before, .step.done::after { background: var(--ink); }
.step.cur { color: var(--ink); font-weight: 500; }
.step.cur::before { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.step.rej { color: var(--against); font-weight: 500; }
.step.rej::before { background: var(--against); }
.step small { font-size: .75rem; font-weight: 400; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.args { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.arg { display: block; font-size: .9375rem; }
.arg:hover .arg__txt { text-decoration: underline; }
.arg__h { font-size: .8125rem; margin-bottom: 4px; }
.arg__h--for { color: var(--for); }
.arg__h--against { color: var(--against); }
.arg__who { font-size: .8125rem; color: var(--ink-2); margin-top: 6px; }
.arg__txt { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* Filtrirea juhtimine ja keritav rida */
.ctrl { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.ctrl .hs { flex: 1; min-width: 0; }
.hs { position: relative; display: flex; align-items: center; min-width: 0; }
.hs__t { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.hs__t::-webkit-scrollbar { display: none; }
.hs.can-drag .hs__t { cursor: grab; }
.hs.dragging .hs__t { cursor: grabbing; user-select: none; }
.hs.dragging .chip { pointer-events: none; }
.hs.fade-l .hs__t { -webkit-mask-image: linear-gradient(to right, transparent, #000 44px); mask-image: linear-gradient(to right, transparent, #000 44px); }
.hs.fade-r .hs__t { -webkit-mask-image: linear-gradient(to left, transparent, #000 44px); mask-image: linear-gradient(to left, transparent, #000 44px); }
.hs.fade-l.fade-r .hs__t { -webkit-mask-image: linear-gradient(to right, transparent, #000 44px, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(to right, transparent, #000 44px, #000 calc(100% - 44px), transparent); }
.hs__a { position: absolute; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 1px var(--line-2); display: flex; align-items: center; justify-content: center; z-index: 2; color: var(--ink); }
.hs__a:hover { background: var(--bg-3); }
.hs__a--l { left: 0; }
.hs__a--r { right: 0; }
.hs__a svg.ic { width: 16px; height: 16px; }
@media (hover: none) { .hs__a { display: none !important; } }
.chip { flex: none; padding: 5px 12px; border-radius: 999px; background: var(--bg-3); font-size: .875rem; white-space: nowrap; transition: background .12s; }
.chip:hover { background: var(--bg-4); }
.chip.on { background: var(--ink); color: var(--bg); }
.sortbtn { display: inline-flex; gap: 3px; align-items: center; font-size: .875rem; color: var(--ink-2); padding: 5px 6px 5px 10px; border-radius: 8px; white-space: nowrap; flex: none; }
.sortbtn:hover { background: var(--hover-2); color: var(--ink); }
.sortbtn svg.ic { width: 16px; height: 16px; }

.dl__r { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.dl__r:last-child { border-bottom: 0; }
.dl__k { color: var(--ink-2); }
.sec { padding: 16px 12px; border-bottom: 1px solid var(--line); }
.sec:last-child { border-bottom: 0; }
.sec__t { font-size: 1rem; font-weight: 500; margin-bottom: 8px; }
.sec p + p { margin-top: 10px; }
.doc { display: flex; align-items: center; gap: 8px; padding: 7px 0; font-size: .9375rem; color: var(--accent); }
.doc:hover { text-decoration: underline; }
.doc svg.ic { width: 15px; height: 15px; color: var(--ink-2); }
.doc.on { color: var(--ink); font-weight: 500; }
.doc--ext { color: var(--ink-2); }

/* Eelnõu tekst lehe sees: loetav tulp, telefonis murdub ekraani laiuseks */
.dok { padding: 20px 12px 8px; max-width: 700px; font-size: 1.0625rem; line-height: 1.6; }
.dok p { margin: 0 0 .85em; }
.dok h1, .dok h2, .dok h3, .dok h4, .dok h5, .dok h6 { font-size: 1.1rem; font-weight: 500; line-height: 1.32; margin: 1.5em 0 .45em; letter-spacing: -.005em; }
.dok > :first-child { margin-top: 0; }
.dok ol, .dok ul { list-style: revert; padding-left: 1.4em; margin: 0 0 .85em; }
.dok li { margin-bottom: .35em; }
.dok li > p { margin: 0; }
.dok a { color: var(--accent); }
.dok a:hover { text-decoration: underline; }
.dok__t { overflow-x: auto; margin: 1em 0; }
.dok table { border-collapse: collapse; font-size: .875rem; line-height: 1.4; min-width: 100%; }
.dok td, .dok th { border: 1px solid var(--line-2); padding: 6px 8px; vertical-align: top; font-weight: 400; text-align: left; }
.dok td p, .dok th p { margin: 0; }
.dok__note { padding: 12px; margin: 8px 0 0; max-width: 700px; color: var(--ink-2); font-size: .8125rem; border-top: 1px solid var(--line); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cmp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.cmp__c { background: var(--bg-2); border-radius: 14px; padding: 14px; }
.cmp__k { font-size: .8125rem; color: var(--ink-2); }
.cmp__v { font-size: 1.15rem; font-weight: 500; margin-top: 2px; }
.brk { display: grid; grid-template-columns: 110px minmax(0, 1fr) 40px; gap: 10px; align-items: center; padding: 5px 0; font-size: .875rem; }
.brk__bar { display: flex; gap: 2px; height: 6px; }
.brk__v { text-align: right; font-variant-numeric: tabular-nums; }
.brk__leg { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: .8125rem; color: var(--ink-2); margin-bottom: 8px; }
.brk__sw { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }

/* Profiil */
.pf__banner { height: clamp(100px, 11vw, 170px); background: color-mix(in srgb, var(--c, #70707a) 16%, var(--bg)); border-radius: 0 0 16px 16px; }
.pf__banner { overflow: hidden; }
.pf__banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pe { position: relative; margin-bottom: 60px; }
.pe .pf__banner { height: 120px; border-radius: 12px; }
.pe__av { position: absolute; left: 14px; bottom: -48px; }
.pe__acts { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-bottom: 20px; }
.pf__main { padding: 0 12px 14px; }
.pf__top { display: flex; justify-content: space-between; align-items: flex-start; }
.pf__av { margin-top: -48px; }
.pf__acts { padding-top: 10px; display: flex; gap: 6px; }
.pf__name { font-size: 1.35rem; font-weight: 500; letter-spacing: -.012em; margin-top: 8px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pf__bio { margin-top: 8px; }
.pf__meta, .pf__nums { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 8px; color: var(--ink-2); font-size: .875rem; }
.pf__nums b { color: var(--ink); }
.ulist { display: flex; gap: 12px; padding: 12px; align-items: flex-start; border-bottom: 1px solid var(--line); cursor: pointer; }
.ulist:hover { background: var(--hover); }
.ulist--new, .ulist--new:hover { background: var(--accent-soft); }
.note__i { width: 40px; height: 40px; flex: none; display: flex; align-items: center; justify-content: center; color: var(--ink-2); }

/* Parem veerg */
.card { background: var(--bg-2); border-radius: 16px; padding: 14px 0 6px; }
.card__t { font-size: 1rem; font-weight: 500; padding: 0 16px 4px; }
.card__p { padding: 0 16px 10px; }
.card__i { display: block; padding: 8px 16px; transition: background .1s; font-size: .9375rem; line-height: 1.32; }
.card__i:hover { background: var(--hover-2); }
.card__more { display: block; padding: 8px 16px; color: var(--accent); font-size: .875rem; }
.card__more:hover { text-decoration: underline; }
.searchbox { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 16px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); }
.searchbox:focus-within { background: var(--bg); box-shadow: inset 0 0 0 1px var(--ink); }
.searchbox input { border: 0; background: none; outline: none; width: 100%; color: var(--ink); }
.searchbox input::placeholder { color: var(--ink-2); }
.side__sticky { position: sticky; top: 0; background: var(--bg); z-index: 3; }
.foot { padding: 0 16px; font-size: .8125rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 2px 12px; }
.foot a:hover { text-decoration: underline; }

.newpill { position: sticky; top: 104px; z-index: 15; display: flex; justify-content: center; height: 0; }
.newpill .btn { transform: translateY(8px); box-shadow: var(--shadow); }

.empty { padding: 48px 24px; text-align: center; color: var(--ink-2); }
.empty svg.ic { width: 26px; height: 26px; margin-bottom: 8px; }
.empty h3 { color: var(--ink); font-size: 1.1rem; font-weight: 500; margin-bottom: 2px; }
.empty .btn { margin-top: 14px; }

/* Mobiil */
.tabbar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--bg); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { flex: 1; display: flex; align-items: center; justify-content: center; height: 50px; color: var(--ink-2); position: relative; }
.tabbar svg.ic { width: 24px; height: 24px; }
.tabbar .on { color: var(--ink); }
.tabbar .on svg.ic { stroke-width: 2; }
.tabbar__dot { position: absolute; left: calc(50% + 6px); top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--bg); }
.fab { display: none; position: fixed; right: 16px; bottom: calc(66px + env(safe-area-inset-bottom)); width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--bg); align-items: center; justify-content: center; z-index: 25; box-shadow: var(--shadow); }
.guestbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: var(--bg); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
.guestbar__in { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.guestbar__t { font-size: .875rem; color: var(--ink-2); }
.drawer { position: fixed; inset: 0; z-index: 50; background: var(--overlay); }
.drawer__p { position: absolute; left: 0; top: 0; bottom: 0; width: min(290px, 84vw); background: var(--bg); padding: 12px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }

/* Dialoog */
.dlg { border: 0; padding: 0; border-radius: 16px; background: var(--bg); color: var(--ink); width: min(500px, calc(100vw - 32px)); max-height: min(88vh, 760px); box-shadow: var(--shadow); overflow: hidden; }
.dlg[open] { display: flex; flex-direction: column; }
.dlg::backdrop { background: var(--overlay); }
.dlg--sm { width: min(400px, calc(100vw - 32px)); }
.dlg__h { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 6px 8px 6px 16px; }
.dlg__h h2 { font-size: 1.1rem; font-weight: 500; flex: 1; }
.dlg__b { padding: 4px 16px 16px; overflow-y: auto; flex: 1; }
.dlg__f { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; flex-wrap: wrap; }

/* Vormid */
.field { display: block; margin-bottom: 14px; }
.field__l { display: block; font-size: .8125rem; color: var(--ink-2); margin-bottom: 5px; }
.inp { width: 100%; height: 44px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 12px; background: var(--bg); outline: none; }
.inp:focus { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.inp.bad { border-color: var(--against); }
textarea.inp { height: auto; padding: 10px 12px; resize: vertical; min-height: 84px; display: block; }
.err { color: var(--against); font-size: .8125rem; margin-top: 5px; }
.prefix { display: flex; }
.prefix__p { flex: none; white-space: nowrap; display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--line-2); border-right: 0; border-radius: 10px 0 0 10px; background: var(--bg-2); color: var(--ink-2); }
.prefix .inp { border-radius: 0 10px 10px 0; flex: 1; min-width: 0; }
.select { width: 100%; height: 44px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 12px; background: var(--bg); display: flex; align-items: center; justify-content: space-between; text-align: left; }
.select.ph { color: var(--ink-2); }
.select.bad { border-color: var(--against); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .875rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
.radio { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; cursor: pointer; font-size: .9375rem; }
.radio:hover { background: var(--hover-2); }
.radio input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
.sw { position: relative; width: 40px; height: 24px; flex: none; display: inline-block; }
.sw input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.sw i { position: absolute; inset: 0; background: var(--bg-4); border-radius: 999px; transition: background .15s; }
.sw i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.sw input:checked + i { background: var(--ink); }
.sw input:checked + i::after { transform: translateX(16px); background: var(--bg); }
.sw input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.opt { display: flex; align-items: center; gap: 14px; padding: 12px; border-bottom: 1px solid var(--line); }
.opt__d { color: var(--ink-2); font-size: .8125rem; margin-top: 1px; }
.seg { display: inline-flex; padding: 2px; background: var(--bg-3); border-radius: 999px; gap: 2px; flex-wrap: wrap; }
.seg button { padding: 4px 12px; border-radius: 999px; font-size: .8125rem; color: var(--ink-2); white-space: nowrap; }
.seg button.on { background: var(--bg); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }

/* Popover */
.pop { position: fixed; z-index: 60; background: var(--bg); border-radius: 12px; box-shadow: var(--shadow); min-width: 220px; max-width: 320px; max-height: 60vh; overflow-y: auto; padding: 6px; }
.pop__i { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; font-size: .9375rem; text-align: left; border-radius: 8px; }
.pop__i:hover, .pop__i:focus-visible { background: var(--hover-2); outline: none; }
.pop__i.on { font-weight: 500; }
.pop__i--d { color: var(--against); }
.pop__i svg.ic { color: var(--ink-2); width: 18px; height: 18px; }
.pop__i--d svg.ic { color: var(--against); }
.pop__sep { height: 1px; background: var(--line); margin: 6px 4px; }
.pop__h { padding: 6px 10px 2px; font-size: .75rem; color: var(--ink-2); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); background: var(--ink); color: var(--bg); padding: 9px 16px; border-radius: 999px; font-size: .875rem; opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; z-index: 70; max-width: min(92vw, 480px); display: flex; gap: 14px; align-items: center; white-space: nowrap; }
.toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { color: inherit; text-decoration: underline; }

/* Tuvastus */
.eid__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 3px; background: var(--bg-3); border-radius: 999px; margin-bottom: 16px; }
.eid__tab { height: 36px; border-radius: 999px; color: var(--ink-2); font-size: .9375rem; }
.eid__tab.on { background: var(--bg); color: var(--ink); font-weight: 500; box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.eid__code { text-align: center; padding: 12px 0 8px; }
.eid__digits { font-size: 3rem; font-weight: 500; letter-spacing: .1em; font-variant-numeric: tabular-nums; margin: 4px 0 8px .1em; line-height: 1.1; }
.eid__msg { color: var(--ink-2); max-width: 380px; margin: 0 auto; }
.eid__prog { height: 3px; background: var(--bg-3); border-radius: 3px; overflow: hidden; margin: 18px 0 8px; }
.eid__prog i { display: block; height: 100%; background: var(--ink); width: 100%; transform-origin: left; }
.eid__time { font-size: .8125rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.eid__acc { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; width: 100%; text-align: left; }
.eid__acc:hover { background: var(--hover-2); }
.eid__ok { padding: 12px; background: var(--bg-2); border-radius: 12px; margin-bottom: 16px; font-size: .875rem; }
.eid__ok span { color: var(--ink-2); display: block; font-size: .8125rem; }
.divider { color: var(--ink-2); font-size: .8125rem; margin: 18px 0 6px; }

/* Haldus */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; padding: 12px 0; }
.tile { background: var(--bg-2); border-radius: 16px; padding: 14px 16px; min-width: 0; }
.tile__k { color: var(--ink-2); font-size: .8125rem; }
.tile__v { font-size: 1.75rem; font-weight: 500; letter-spacing: -.015em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.tile__s { font-size: .8125rem; color: var(--ink-2); }
.tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-left: 12px; padding-right: 12px; }
.tiles--3 .tile { display: flex; flex-direction: column; justify-content: space-between; }
.charts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; padding-bottom: 12px; }
.chart { background: var(--bg-2); border-radius: 16px; padding: 14px 16px; }
.chart__t { font-size: .9375rem; font-weight: 500; }
.chart__s { font-size: .8125rem; color: var(--ink-2); }
.chart__p { display: flex; align-items: flex-end; gap: 4px; height: 110px; margin-top: 12px; border-bottom: 1px solid var(--line-2); }
.chart__c { flex: 1; height: 100%; display: flex; align-items: flex-end; position: relative; }
.chart__c i { display: block; width: 100%; background: var(--ink); border-radius: 3px 3px 0 0; min-height: 2px; opacity: .78; }
.chart__c:hover i { opacity: 1; }
.chart__c:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); font-size: .75rem; padding: 3px 8px; border-radius: 6px; white-space: nowrap; z-index: 3; pointer-events: none; }
.chart__x { display: flex; justify-content: space-between; font-size: .75rem; color: var(--ink-2); margin-top: 4px; }
.tblw { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.tbl th { text-align: left; font-weight: 400; color: var(--ink-2); font-size: .8125rem; padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:hover td { background: var(--hover); }
.tbl .r { text-align: right; }
.tbl .nw { white-space: nowrap; }
.tbl__acts { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: nowrap; }
.rep { padding: 16px 12px; border-bottom: 1px solid var(--line); }
.rep__h { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .8125rem; color: var(--ink-2); }
.rep__r { color: var(--ink); font-weight: 500; }
.rep__q { margin: 10px 0; padding: 12px 14px; background: var(--bg-2); border-radius: 12px; }
.rep__note { font-size: .875rem; margin-bottom: 10px; color: var(--ink-2); }
.rep__acts { display: flex; gap: 6px; flex-wrap: wrap; }
.tool { padding: 10px 12px; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.logr { padding: 11px 12px; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.logr__t { font-size: .8125rem; color: var(--ink-2); margin-top: 1px; }
.wordchips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.wordchip { display: inline-flex; align-items: center; gap: 2px; padding: 3px 4px 3px 12px; background: var(--bg-3); border-radius: 999px; font-size: .875rem; }
.wordchip button { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); }
.wordchip button:hover { background: var(--hover-2); }
.wordchip svg.ic { width: 13px; height: 13px; }
.denied { padding: 64px 32px; text-align: center; }
.sub-t { font-size: 1rem; font-weight: 500; padding: 18px 12px 6px; }

.prose { padding: 16px 12px; max-width: 720px; }
.prose h2 { font-size: 1.05rem; font-weight: 500; margin: 18px 0 4px; }
.prose h2:first-child { margin-top: 0; }
.prose ol { padding-left: 20px; list-style: decimal; margin: 6px 0; }
.prose li { margin-bottom: 6px; }

/* Kitsamad ekraanid */
@media (min-width: 981px) {
  .guestbar { display: none; }
  .only-narrow { display: none !important; }
}
@media (max-width: 1180px) {
  :root { --nav-w: 68px; }
  .nav { align-items: center; padding: 12px 8px; }
  .logo { padding: 2px 0 12px; }
  .logo__w { display: none; }
  .logo__m { display: flex; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--bg); align-items: center; justify-content: center; font-size: 1rem; letter-spacing: 0; }
  .nav .nav__link { padding: 10px; width: auto; position: relative; }
  .nav .nav__link .t { display: none; }
  .nav .nav__n { position: absolute; right: 7px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--bg); font-size: 0; }
  .nav .nav__post { width: 44px; height: 44px; min-height: 44px; padding: 0; margin: 10px 0 0; }
  .nav .nav__post .t { display: none; }
  .nav .nav__post svg.ic { display: block; width: 20px; height: 20px; }
  .nav .nav__me { width: auto; padding: 4px; }
  .nav .nav__me .grow, .nav .nav__me svg.ic { display: none; }
  .nav .nav__sep { width: 28px; margin: 6px auto; }
}
@media (max-width: 980px) {
  .shell { grid-template-columns: minmax(0, 1fr); max-width: 760px; padding: 0 16px; }
  .side { display: none; }
  .app.wide .shell { max-width: none; }
  .col { padding-bottom: 96px; }
  .charts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .app, .app.wide { display: block; }
  .nav { display: none; }
  .shell, .app.wide .shell { display: block; padding: 0; max-width: none; }
  .col { padding-bottom: 110px; }
  .tabbar { display: flex; }
  .fab { display: flex; }
  .bar__me { display: block; }
  .guestbar { bottom: calc(51px + env(safe-area-inset-bottom)); }
  .guestbar__t { font-size: .8125rem; }
  .guestbar .btn { flex: none; }
  .post { gap: 10px; }
  .fprev { margin-left: 12px; }
  .fmore { margin-left: 12px; }
  .fthread__c { padding-left: 12px; }
  .thread__kids { margin-left: 24px; }
  .thread__kids .thread__kids { margin-left: 10px; }
  .inlinereply { padding-left: 16px; }
  .thread__toggle { margin-left: 8px; }
  .bp__q { font-size: 1.45rem; }
  .bill--feat { margin: 12px; }
  .billgrid { padding: 10px 12px; }
  .tiles { padding: 10px 12px; }
  .tiles--3 { gap: 8px; }
  .tiles--3 .tile { padding: 10px 12px; border-radius: 14px; }
  .tiles--3 .tile__v { font-size: 1.375rem; }
  .charts { padding: 0 12px 12px; }
  .args, .cmp { grid-template-columns: minmax(0, 1fr); }
  .dl__r { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .dlg { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
  .dlg--sm { width: calc(100vw - 32px); height: auto; max-height: 88vh; border-radius: 16px; margin: auto; }
  .toast { bottom: calc(64px + env(safe-area-inset-bottom)); white-space: normal; border-radius: 12px; width: max-content; }
  .pf__banner { border-radius: 0; }
  .av--96 { width: 76px; height: 76px; font-size: 1.5rem; }
  .pf__av { margin-top: -38px; }
  .brk { grid-template-columns: 92px minmax(0, 1fr) 38px; }
  .newpill { top: 96px; }
  .tbl--cards thead { display: none; }
  .tbl--cards, .tbl--cards tbody, .tbl--cards tr, .tbl--cards td { display: block; width: 100%; }
  .tbl--cards tr { padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .tbl--cards td { border: 0; padding: 2px 0; }
  .tbl--cards .r { text-align: left; }
  .tbl--cards .tbl__acts { justify-content: flex-start; margin-top: 6px; flex-wrap: wrap; }
  .tbl--cards .hide-m { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Kitsas vastuste lõim: nimi, aeg ja seisukoht on tähtsamad kui kasutajanimi */
@container col (max-width: 520px) {
  .thread__kids .post__u { display: none; }
}

.only-narrow .doc { display: inline-flex; margin-right: 16px; padding: 4px 0; }

/* Videod */
.vthumb { position: relative; display: block; margin-top: 8px; border-radius: 12px; overflow: hidden; background: var(--bg-3); aspect-ratio: 16 / 9; }
.vthumb img, .vplayer__start img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vthumb__play { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; display: grid; place-items: center; border-radius: 50%; background: rgba(15, 15, 17, .72); color: #fff; transition: background .12s; }
.vthumb__play svg.ic { width: 22px; height: 22px; margin-left: 2px; fill: currentColor; }
.vthumb__play--lg { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
.vthumb__play--lg svg.ic { width: 26px; height: 26px; }
.vthumb:hover .vthumb__play, .vplayer__start:hover .vthumb__play { background: rgba(15, 15, 17, .9); }
.vthumb__len { position: absolute; right: 8px; bottom: 8px; padding: 1px 6px; border-radius: 6px; background: rgba(15, 15, 17, .78); color: #fff; font-size: .8125rem; }
.vcount { margin-top: 6px; }
.vplayer { position: relative; aspect-ratio: 16 / 9; background: #000; }
.vplayer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.vplayer__start { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; display: block; cursor: pointer; }
.vback { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: .875rem; }
.vback:hover { background: var(--hover-2); }
.vback svg.ic { flex: none; width: 16px; height: 16px; }
.vback .num { flex: none; margin-left: auto; }
.vnow { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--accent-soft); animation: vnowin .18s ease-out; }
.vnow img { flex: none; width: 72px; height: 40px; object-fit: cover; border-radius: 6px; }
.vnow__b { flex: 1; min-width: 0; font-size: .9375rem; line-height: 1.3; }
.vnow__k { display: block; color: var(--ink-2); font-size: .8125rem; }
.vnow .btn { flex: none; }
@keyframes vnowin { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.vmeta { display: flex; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.vsec { margin-top: 14px; }
.vsec__t { margin: 0 0 4px; font-size: .875rem; font-weight: 500; color: var(--ink-2); }
.vrow { display: flex; align-items: center; gap: 4px; border-radius: 10px; transition: background .15s; }
.vrow.on { background: var(--accent-soft); }
.vtime { flex: none; width: 46px; padding: 8px 0; color: var(--accent); font-size: .875rem; text-align: center; border-radius: 8px; }
button.vtime:hover { background: var(--hover-2); }
.vref { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 5px 6px 5px 0; }
.vref img { flex: none; width: 80px; height: 45px; object-fit: cover; border-radius: 6px; background: var(--bg-3); }
.vref__b { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.vref__t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .9375rem; }
.vref:hover .vref__t { text-decoration: underline; }
.vch { margin-top: 12px; border-top: 1px solid var(--line); }
.vch summary { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; list-style: none; cursor: pointer; font-size: .875rem; font-weight: 500; color: var(--ink-2); }
.vch summary::-webkit-details-marker { display: none; }
.vch summary svg.ic { width: 16px; height: 16px; transition: transform .15s; }
.vch[open] summary svg.ic { transform: rotate(180deg); }
.vch__r { display: flex; align-items: center; gap: 4px; width: 100%; text-align: left; border-radius: 8px; font-size: .9375rem; }
.vch__r:hover { background: var(--hover-2); }
/* Riigikogu video päevakord: ajad kuni 10:56:30, pikk punkt mitmel real, eelnõu nupp rea lõpus */
.vch--long .vtime { width: 70px; }
.vch--long .vch__r { align-items: flex-start; }
.vch--long .vch__r > span:last-child { padding: 8px 0; line-height: 1.35; }
.vch__row { display: flex; align-items: flex-start; gap: 8px; }
.vch__row .vch__r { flex: 1; min-width: 0; }
.vch__bill { margin-top: 5px; padding: 3px 10px; font-size: .8125rem; }
.post--vid .nws__rel { margin-top: 14px; }
@media (min-width: 981px) { .tabs--phone { display: none; } }
