/* Odrbcheck — newsroom look: neutral surfaces, verdict colours carry the meaning. */
:root {
  color-scheme: light dark;
  --bg: #f6f6f8; --bg-2: #ffffff; --bg-3: #eeeff3; --line: #e2e4ea; --line-strong: #cfd2db;
  --text: #16181f; --muted: #5f6472; --faint: #8b90a0;
  --accent: #e5483d; --accent-ink: #fff;
  --v-pravda: #1a9a5c; --v-nepravda: #d73a3a; --v-zavadzajuce: #e08a00; --v-neoveritelne: #6b7385; --v-neiste: #a3a8b5; --v-faul: #7d4fd6;
  --ok: #1a9a5c; --err: #d73a3a;
  --radius: 14px; --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(20,22,30,.05), 0 6px 18px -10px rgba(20,22,30,.18);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --top-h: 56px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111318; --bg-2: #1a1d24; --bg-3: #242833; --line: #2b2f3a; --line-strong: #3a3f4d;
    --text: #eceef3; --muted: #a2a7b6; --faint: #7f8596;
    --v-pravda: #34c27f; --v-nepravda: #f0625f; --v-zavadzajuce: #f2a531; --v-neoveritelne: #9aa2b4; --v-neiste: #5d6372; --v-faul: #a383f0;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.7);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--font); min-height: 100dvh; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: var(--accent); text-decoration: none; }
button { font: inherit; color: inherit; }
h1 { font-size: 1.3rem; margin: 0; font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: 1.05rem; margin: 0 0 .5rem; font-weight: 800; }
.h-small { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 .5rem; font-weight: 800; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: .85rem; }
.row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.ico { display: inline-flex; width: 18px; height: 18px; flex: none; }
.ico svg { width: 100%; height: 100%; }

/* layout */
.app { min-height: 100dvh; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1rem; height: calc(var(--top-h) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 16px 0; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px) saturate(140%); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .5rem; color: var(--text); font-weight: 900; font-size: 1.05rem; }
.brand img { border-radius: 7px; }
.nav { display: flex; gap: .25rem; }
.nav a { padding: .4rem .8rem; border-radius: 999px; color: var(--muted); font-weight: 700; font-size: .92rem; }
.nav a.is-active { color: var(--text); background: var(--bg-3); }
.top__right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.main { flex: 1; width: 100%; max-width: 1440px; margin: 0 auto; padding: 16px 16px calc(32px + env(safe-area-inset-bottom)); }
.main--narrow { max-width: 820px; }
.main:focus { outline: none; }
@media (max-width: 560px) { .nav a { padding: .35rem .6rem; } .brand span { display: none; } }

/* controls */
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); margin-bottom: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--bg-2); color: var(--text); font-weight: 800; cursor: pointer; text-decoration: none; transition: transform .08s ease; user-select: none; -webkit-tap-highlight-color: transparent; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: default; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--danger { background: var(--err); border-color: var(--err); color: #fff; }
.btn--ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn--sm { min-height: 36px; padding: 0 12px; font-size: .88rem; }
.btn--block { width: 100%; }
.iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.iconbtn:hover { background: var(--bg-3); }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.field > span { font-size: .82rem; font-weight: 700; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); width: 100%; }
.field textarea { min-height: 80px; resize: vertical; }
.field small { color: var(--faint); font-size: .8rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: 12px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; }
.seg { display: inline-flex; background: var(--bg-3); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 999px; font-weight: 800; color: var(--muted); cursor: pointer; font-size: .9rem; }
.seg button.is-on { background: var(--bg-2); color: var(--text); box-shadow: var(--shadow); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--bg-2); font-weight: 700; font-size: .85rem; cursor: pointer; color: var(--muted); }
.chip.is-on { color: var(--text); border-color: var(--text); }
.chip .n { font-variant-numeric: tabular-nums; color: var(--faint); }
.alert { padding: 10px 12px; border-radius: var(--radius-sm); margin-bottom: 12px; font-weight: 600; }
.alert--err { background: color-mix(in srgb, var(--err) 14%, transparent); color: var(--err); }
.alert--info { background: var(--bg-3); color: var(--muted); }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.skeleton { background: linear-gradient(90deg, var(--bg-3), var(--line), var(--bg-3)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); height: 72px; margin-bottom: 10px; }
@keyframes sk { to { background-position: -200% 0; } }

/* login */
.login-body { display: grid; place-items: center; padding: 24px 16px; }
.login { width: 100%; max-width: 380px; }
.login__brand { text-align: center; margin-bottom: 18px; }
.login__brand img { border-radius: 14px; }

/* sessions list */
.sess { display: flex; gap: 12px; align-items: center; color: var(--text); }
.sess__main { flex: 1; min-width: 0; }
.sess__title { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 800; background: var(--bg-3); color: var(--muted); white-space: nowrap; }
.pill--live { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); }
.pill--live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 1.4s infinite; }
.pill--err { background: color-mix(in srgb, var(--err) 15%, transparent); color: var(--err); }
@keyframes pulse { 50% { opacity: .25; } }
.minibar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: var(--bg-3); margin-top: 6px; }
.minibar span { display: block; height: 100%; }

/* live view */
.live-head { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 12px; }
.live-head h1 { font-size: 1.2rem; }
.live-head > .grow { flex: 1 1 300px; }
.live { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) {
  .live { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; }
  .live__left { position: sticky; top: calc(var(--top-h) + 12px); }
  .tabs-mobile { display: none !important; }
  .live [data-pane] { display: block !important; }
}
.player { position: relative; background: #000; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; }
.player video { width: 100%; height: 100%; display: block; }
.player__msg { position: absolute; inset: 0; display: grid; place-items: center; color: #cfd2db; font-weight: 700; padding: 16px; text-align: center; }
.player__unmute { position: absolute; left: 12px; bottom: 12px; }
.statline { display: flex; gap: 14px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); margin: 8px 2px 12px; font-variant-numeric: tabular-nums; }
.transcript { max-height: 42vh; overflow-y: auto; padding: 4px 4px 4px 0; overscroll-behavior: contain; }
@media (max-width: 999px) { .transcript { max-height: none; } .live__left .player { position: sticky; top: var(--top-h); z-index: 5; } }
.tline { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.tline__t { color: var(--faint); font-variant-numeric: tabular-nums; font-size: .78rem; padding-top: 2px; }
.who { font-weight: 800; color: var(--c, var(--muted)); cursor: pointer; margin-right: 6px; }
.who--none { color: var(--faint); font-style: italic; font-weight: 600; }
.tline.is-claim { background: color-mix(in srgb, var(--accent) 6%, transparent); }

.feed-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.claim { background: var(--bg-2); border: 1px solid var(--line); border-left: 5px solid var(--vc, var(--line-strong)); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px; box-shadow: var(--shadow); }
.claim.is-new { animation: appear .35s ease; }
@keyframes appear { from { opacity: 0; transform: translateY(-6px); } }
.claim__top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.verdict { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-weight: 900; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: #fff; background: var(--vc, var(--v-neoveritelne)); }
.verdict--pending { background: var(--bg-3); color: var(--muted); }
.verdict--idle { background: var(--bg-3); color: var(--muted); }
.verdict--pending::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.claim__who { font-weight: 800; }
.claim__t { color: var(--faint); font-size: .8rem; font-variant-numeric: tabular-nums; margin-left: auto; cursor: pointer; }
.claim__quote { margin: 0 0 6px; font-style: italic; color: var(--muted); }
.claim__quote::before { content: "„"; } .claim__quote::after { content: "“"; }
.claim__sum { font-weight: 650; margin: 0; }
.claim__more { margin-top: 8px; font-size: .9rem; }
.claim__more summary { cursor: pointer; color: var(--muted); font-weight: 700; font-size: .85rem; list-style: none; }
.claim__more summary::-webkit-details-marker { display: none; }
.claim__more summary::before { content: "▸ "; } .claim__more[open] summary::before { content: "▾ "; }
.claim__more p { margin: 6px 0; }
.claim__src { margin: 6px 0 0; padding-left: 18px; }
.claim__src a { word-break: break-word; }
.claim__actions { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.tag { display: inline-flex; padding: 2px 8px; border-radius: 999px; font-size: .75rem; font-weight: 800; background: color-mix(in srgb, var(--v-faul) 16%, transparent); color: var(--v-faul); }
.flagged { font-size: .82rem; color: var(--err); font-weight: 700; margin-top: 6px; }
.claim.is-flagged { opacity: .72; }

.score { display: grid; gap: 10px; }
.score__row { display: grid; grid-template-columns: minmax(90px, 160px) 1fr auto; gap: 10px; align-items: center; font-size: .9rem; }
.score__bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--bg-3); }
.score__bar span { height: 100%; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }

/* sheets */
.sheet-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(10,12,18,.45); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s ease; }
@keyframes fade { from { opacity: 0; } }
.sheet { width: 100%; max-width: 560px; max-height: 92dvh; overflow-y: auto; background: var(--bg-2); border-radius: 20px 20px 0 0; padding: 8px 18px calc(18px + env(safe-area-inset-bottom)); animation: up .2s ease; }
@keyframes up { from { transform: translateY(30px); opacity: .5; } }
.sheet__grip { width: 40px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 4px auto 10px; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sheet__head h2 { margin: 0; }
@media (min-width: 700px) { .sheet-backdrop { align-items: center; } .sheet { border-radius: 20px; } .sheet__grip { display: none; } }
.prow { display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; gap: 6px; margin-bottom: 6px; }
.prow input { font: inherit; font-size: 16px; padding: 8px 10px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); min-width: 0; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); z-index: 60; background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-weight: 700; opacity: 0; pointer-events: none; transition: all .2s ease; max-width: calc(100% - 32px); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast.is-err { background: var(--err); color: #fff; }
.settings-src { font-size: .75rem; color: var(--faint); font-weight: 600; }
