/* Vadnica slovenščine – 1. letnik */
:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #eef1f7;
  --text: #1a1f2b;
  --muted: #535b6b;
  --border: #d5dae4;
  --primary: #1d4ed8;
  --primary-hover: #1e40af;
  --primary-soft: #e3eafd;
  --on-primary: #ffffff;
  --ok: #157f3b;
  --ok-bg: #e5f6eb;
  --bad: #b42318;
  --bad-bg: #fdecea;
  --warn: #9a5b00;
  --warn-bg: #fff4dc;
  --tip: #6d28d9;
  --tip-bg: #f1eafe;
  --mark: #fff0a3;
  --mark-text: #1a1f2b;
  --focus: #f59e0b;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 2px 8px rgba(16, 24, 40, .06);
  --radius: 12px;
  --radius-sm: 8px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Ubuntu, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "DejaVu Sans Mono", monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11141b;
    --surface: #1a1e28;
    --surface-2: #232837;
    --text: #e8ebf2;
    --muted: #a6aec0;
    --border: #353c4e;
    --primary: #7ea6ff;
    --primary-hover: #a3c0ff;
    --primary-soft: #1f2a48;
    --on-primary: #0b1020;
    --ok: #5fd68a;
    --ok-bg: #13301f;
    --bad: #ff8a80;
    --bad-bg: #3a1a1a;
    --warn: #f5c060;
    --warn-bg: #352812;
    --tip: #c4a8ff;
    --tip-bg: #2a2142;
    --mark: #5c4d00;
    --mark-text: #fff7cc;
    --focus: #fbbf24;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 2px 10px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
:root { --hdr-h: 57px; --nav-h: 0px; --safe-b: env(safe-area-inset-bottom, 0px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img, svg { max-width: 100%; }

a { color: var(--primary); }
a:hover { color: var(--primary-hover); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3, h4 { line-height: 1.25; margin: 1.2em 0 .5em; }
h1 { font-size: 1.6rem; margin-top: .6em; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.12rem; }
h4 { font-size: 1rem; }
p { margin: .6em 0; }
ul, ol { padding-left: 1.4em; }
code { font-family: var(--mono); font-size: .92em; background: var(--surface-2); padding: .05em .3em; border-radius: 4px; }
blockquote { margin: .8em 0; padding: .4em 1em; border-left: 4px solid var(--border); color: var(--muted); }

.wrap { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 16px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--primary); color: var(--on-primary); padding: .5em 1em; z-index: 10;
}
.skip:focus { left: 8px; top: 8px; }

/* Header / footer */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 5;
}
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; }
.brand-mark {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 9px;
  background: var(--primary); color: var(--on-primary); font-size: .95rem;
}
.brand-sub { font-weight: 500; color: var(--muted); font-size: .9em; }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.main-nav a {
  text-decoration: none; color: var(--text); padding: .35em .7em; border-radius: var(--radius-sm); font-weight: 500; font-size: .95rem;
}
.main-nav a:hover { background: var(--surface-2); }
.main-nav a.active { background: var(--primary-soft); color: var(--primary); }

main { flex: 1; padding-top: 12px; padding-bottom: 40px; }
main:focus { outline: none; }

.site-footer { background: var(--surface); border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 12px; padding-bottom: 12px; }
.footer-inner p { margin: 0; }

.loading { color: var(--muted); }
.muted { color: var(--muted); }
.lead { font-size: 1.08rem; }
.hidden { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  font: inherit; font-size: .95rem; font-weight: 600; line-height: 1.2;
  padding: .6em 1em; min-height: 44px;
  border-radius: var(--radius-sm); border: 1px solid var(--primary);
  background: var(--primary); color: var(--on-primary);
  cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--on-primary); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-secondary { background: var(--surface); color: var(--primary); }
.btn-secondary:hover { background: var(--primary-soft); color: var(--primary); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-small { min-height: 36px; padding: .4em .75em; font-size: .88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* Cards & grid */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px;
}
.hero { margin: 8px 0 20px; }
.hero h1 { margin-top: .3em; }
.topic-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 16px 0; }
@media (min-width: 600px) { .topic-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .topic-grid { grid-template-columns: repeat(3, 1fr); } }
.topic-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
.topic-card:hover { border-color: var(--primary); color: var(--text); }
@media (hover: hover) { .topic-card:hover { transform: translateY(-1px); } }
.topic-card .icon { font-size: 1.8rem; line-height: 1; }
.topic-card h2 { margin: .2em 0 0; font-size: 1.1rem; }
.topic-card p { margin: 0; color: var(--muted); font-size: .95rem; flex: 1; }
.badge {
  display: inline-block; font-size: .78rem; font-weight: 600; padding: .15em .55em; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary); align-self: flex-start;
}
.cta { margin: 20px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* Progress */
.progress { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); }
.progress-track { flex: 1; height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--ok); border-radius: 999px; transition: width .3s; }

/* Topic page */
.topic-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.topic-head .icon { font-size: 2rem; }
.topic-head h1 { margin: .3em 0; }
.back { display: inline-block; margin-top: 8px; font-size: .95rem; }

.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 2px solid var(--border); margin: 12px 0 16px; scrollbar-width: thin; }
.tab {
  font: inherit; font-weight: 600; font-size: .95rem; white-space: nowrap;
  background: transparent; color: var(--muted); border: 0; border-bottom: 3px solid transparent;
  padding: .6em .9em; margin-bottom: -2px; cursor: pointer; min-height: 44px;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--primary); border-bottom-color: var(--primary); }

.theory-section { margin-bottom: 16px; }
.theory-section > h2 { margin-top: 0; }
.theory-body > :first-child { margin-top: 0; }

/* Contract classes for theory html */
.rule, .tip, .warn, .example {
  border-radius: var(--radius-sm); padding: 10px 14px; margin: 12px 0; border-left: 5px solid;
}
.rule { background: var(--primary-soft); border-color: var(--primary); }
.tip { background: var(--tip-bg); border-color: var(--tip); }
.warn { background: var(--warn-bg); border-color: var(--warn); }
.example { background: var(--surface-2); border-color: var(--muted); font-style: normal; }
.rule::before, .tip::before, .warn::before, .example::before {
  display: block; font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px;
}
.rule::before { content: "Pravilo"; color: var(--primary); }
.tip::before { content: "Nasvet"; color: var(--tip); }
.warn::before { content: "Pozor!"; color: var(--warn); }
.example::before { content: "Zgled"; color: var(--muted); }
.rule > :first-child, .tip > :first-child, .warn > :first-child, .example > :first-child { margin-top: 0; }
.rule > :last-child, .tip > :last-child, .warn > :last-child, .example > :last-child { margin-bottom: 0; }

.tbl-wrap { overflow-x: auto; max-width: 100%; }
.tbl { border-collapse: collapse; margin: 12px 0; font-size: .95rem; max-width: 100%; }
.tbl th, .tbl td { border: 1px solid var(--border); padding: 6px 10px; text-align: left; vertical-align: top; }
.tbl th { background: var(--surface-2); }
.tbl tr:nth-child(even) td { background: color-mix(in srgb, var(--surface-2) 40%, transparent); }

.ok { color: var(--ok); font-weight: 600; }
.bad { color: var(--bad); text-decoration: line-through; text-decoration-thickness: 2px; }
mark { background: var(--mark); color: var(--mark-text); padding: 0 .15em; border-radius: 3px; }

details.more { margin: 12px 0; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
details.more > summary { cursor: pointer; padding: 8px 12px; font-weight: 600; color: var(--primary); }
details.more[open] > summary { border-bottom: 1px solid var(--border); }
details.more > :not(summary) { margin-left: 12px; margin-right: 12px; }

/* Passage */
.passage {
  background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--primary);
  border-radius: var(--radius); padding: 14px 16px; margin: 0 0 16px; box-shadow: var(--shadow);
}
.passage h2 { margin: 0 0 .4em; font-size: 1.15rem; }
.passage p { margin: .5em 0; }
.passage .source { color: var(--muted); font-size: .85rem; font-style: italic; }
.passage-toggle { margin-bottom: 8px; }
.passage-body { max-height: 60vh; overflow-y: auto; }

/* Exercises */
.ex-list { display: flex; flex-direction: column; gap: 14px; }
.ex { position: relative; }
.ex.is-ok { border-color: var(--ok); }
.ex.is-bad { border-color: var(--bad); }
.ex.is-open-done { border-color: var(--primary); }
.ex-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.ex-num {
  display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: .9rem;
}
.ex-points { font-size: .8rem; color: var(--muted); }
.ex-src { font-size: .8rem; color: var(--muted); }
.ex-status { margin-left: auto; font-size: .85rem; font-weight: 700; }
.ex-status.ok-s { color: var(--ok); }
.ex-status.bad-s { color: var(--bad); }
.ex-q { margin-bottom: 10px; }
.ex-q > :first-child { margin-top: 0; }
.ex-q > :last-child { margin-bottom: 0; }
.ex-body { margin: 8px 0; }

.hint-box { margin-top: 8px; background: var(--tip-bg); border-left: 4px solid var(--tip); padding: 8px 12px; border-radius: var(--radius-sm); }

.feedback { margin-top: 12px; border-radius: var(--radius-sm); }
.feedback:empty { display: none; }
.feedback .verdict { font-weight: 700; padding: 8px 12px; border-radius: var(--radius-sm); }
.feedback .verdict.ok-v { background: var(--ok-bg); color: var(--ok); }
.feedback .verdict.bad-v { background: var(--bad-bg); color: var(--bad); }
.feedback .verdict.info-v { background: var(--primary-soft); color: var(--primary); }
.feedback .explain { margin-top: 8px; padding: 8px 12px; border-left: 4px solid var(--border); }
.feedback .explain > :first-child { margin-top: 0; }
.feedback .solution { margin-top: 8px; padding: 8px 12px; background: var(--surface-2); border-radius: var(--radius-sm); }
.feedback .solution > :first-child { margin-top: 0; }

/* Options (mc / multi) */
.options { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.option {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer; background: var(--surface);
}
.option:hover { background: var(--surface-2); }
.option input { margin-top: .3em; width: 18px; height: 18px; flex: none; accent-color: var(--primary); }
.option.opt-correct { border-color: var(--ok); background: var(--ok-bg); }
.option.opt-wrong { border-color: var(--bad); background: var(--bad-bg); }
.option.opt-missed { border-color: var(--ok); border-style: dashed; }

/* Inputs */
.input, .textarea, .select {
  font: inherit; color: var(--text); background: var(--surface); width: 100%;
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .55em .7em; min-height: 44px;
}
.textarea { min-height: 7em; resize: vertical; line-height: 1.5; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--primary); }
.input.in-ok, .textarea.in-ok, .select.in-ok { border-color: var(--ok); background: var(--ok-bg); }
.input.in-bad, .textarea.in-bad, .select.in-bad { border-color: var(--bad); background: var(--bad-bg); }
.select { width: auto; max-width: 100%; }

/* Select tokens */
.tokens { line-height: 2.3; padding: 6px 0; }
.tokens.char-mode { font-family: var(--mono); letter-spacing: 0; }
.tok {
  font: inherit; color: var(--text); background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 6px; padding: .1em .4em; margin: 0 .1em; cursor: pointer; line-height: 1.5;
}
.char-mode .word { display: inline-flex; flex-wrap: wrap; row-gap: 4px; vertical-align: middle; }
.char-mode .tok { min-width: 1.7em; padding: .15em .35em; margin: 0 1px; font-weight: 600; }
.tok:hover { border-color: var(--primary); }
.tok[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.tok.tok-correct { background: var(--ok-bg); color: var(--ok); border-color: var(--ok); }
.tok.tok-wrong { background: var(--bad-bg); color: var(--bad); border-color: var(--bad); text-decoration: line-through; }
.tok.tok-missed { border: 2px dashed var(--ok); color: var(--ok); background: transparent; }
.tok:disabled { cursor: default; }
.gap { display: inline-block; width: .9em; }

/* Match / categorize */
.pairs { display: flex; flex-direction: column; gap: 8px; }
.pair { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.pair.pair-ok { border-color: var(--ok); background: var(--ok-bg); }
.pair.pair-bad { border-color: var(--bad); background: var(--bad-bg); }
.pair-left { flex: 1 1 180px; font-weight: 500; }
.pair .select { flex: 1 1 180px; }
.pair-fix { flex-basis: 100%; font-size: .88rem; color: var(--ok); }

/* Order */
.order-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.order-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.order-item.ord-ok { border-color: var(--ok); background: var(--ok-bg); }
.order-item.ord-bad { border-color: var(--bad); background: var(--bad-bg); }
.order-idx { font-weight: 700; color: var(--muted); min-width: 1.6em; }
.order-text { flex: 1; }
.order-btns { display: flex; gap: 4px; }
.order-btns .btn { min-width: 40px; min-height: 40px; padding: 0; }

/* Open */
.word-count { font-size: .88rem; color: var(--muted); margin-top: 4px; }
.word-count.enough { color: var(--ok); font-weight: 600; }
.checklist { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 4px; }
.checklist label { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.checklist input { margin-top: .35em; width: 18px; height: 18px; flex: none; accent-color: var(--ok); }
.model-answer { margin-top: 10px; padding: 10px 14px; background: var(--surface-2); border-radius: var(--radius-sm); border-left: 4px solid var(--primary); }

/* Diff */
.diff { font-size: 1rem; line-height: 1.8; padding: 8px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-top: 6px; white-space: pre-wrap; }
.diff ins { background: var(--ok-bg); color: var(--ok); text-decoration: none; border-bottom: 2px solid var(--ok); padding: 0 .1em; border-radius: 3px; }
.diff del { background: var(--bad-bg); color: var(--bad); text-decoration: line-through; padding: 0 .1em; border-radius: 3px; }
.diff-legend { font-size: .82rem; color: var(--muted); }

/* Mixed test */
.result-box { text-align: center; padding: 20px 16px; margin-bottom: 16px; }
.result-box .grade { font-size: 2.6rem; font-weight: 800; line-height: 1.1; margin: 4px 0; }
.result-box .grade.g1 { color: var(--bad); }
.result-box .grade.g2, .result-box .grade.g3 { color: var(--warn); }
.result-box .grade.g4, .result-box .grade.g5 { color: var(--ok); }
.result-box .score { font-size: 1.1rem; font-weight: 600; }
.sticky-submit { position: sticky; bottom: calc(var(--nav-h) + var(--safe-b)); background: var(--bg); padding: 10px 0; border-top: 1px solid var(--border); margin-top: 16px; z-index: 2; }

/* Instructions */
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { position: relative; padding-left: 44px; margin: 10px 0; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--primary); color: var(--on-primary); display: grid; place-items: center; font-weight: 700; font-size: .9rem;
}

/* ---------- Trak na vrhu strani (položaj na strani) ---------- */
.page-bar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 30; pointer-events: none; background: transparent; }
.page-bar-fill { height: 100%; width: 0; background: var(--primary); transition: width .12s linear; }

/* ---------- Sledilnik vaj (lepljiv) ---------- */
.tracker {
  position: sticky; top: var(--hdr-h); z-index: 4;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 8px 10px; margin: 0 0 14px; box-shadow: var(--shadow);
}
.trk-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.trk-text { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: .88rem; line-height: 1.35; }
.trk-pos { white-space: nowrap; color: var(--primary); }
.trk-info { color: var(--muted); }
.trk-btns { display: flex; gap: 6px; flex: none; }
.trk-btns .btn { min-height: 38px; }
.tracker .progress-track { height: 6px; }
.ex { scroll-margin-top: calc(var(--hdr-h) + 90px); }
.ex.flash { animation: flash 1.6s ease-out 1; }
@keyframes flash { 0% { box-shadow: 0 0 0 4px var(--focus); } 100% { box-shadow: var(--shadow); } }

/* ---------- Nadaljuj ---------- */
.resume { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; border-left: 5px solid var(--primary); }
.resume-text { display: flex; flex-direction: column; min-width: 0; }

/* ---------- Obvestilo (toast) ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(16px + var(--nav-h) + var(--safe-b)); transform: translate(-50%, 20px);
  max-width: min(92vw, 480px); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 40; font-size: .95rem;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--bad); color: #fff; }

.footer-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.nav-ico { display: none; }

/* ---------- Telefon / ozki zasloni ---------- */
@media (max-width: 700px) {
  :root { --hdr-h: 0px; --nav-h: 60px; }
  body { font-size: 1rem; padding-bottom: calc(var(--nav-h) + var(--safe-b)); }
  .site-header { position: static; }
  .header-inner { padding-top: 8px; padding-bottom: 8px; }
  .brand-mark { width: 32px; height: 32px; }
  .main-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
    background: var(--surface); border-top: 1px solid var(--border);
    padding-bottom: var(--safe-b); box-shadow: 0 -2px 10px rgba(0,0,0,.08);
  }
  .main-nav a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
    height: var(--nav-h); border-radius: 0; padding: 4px 2px; font-size: .78rem; font-weight: 600; color: var(--muted);
  }
  .main-nav a.active { background: transparent; color: var(--primary); }
  .nav-ico { display: block; font-size: 1.3rem; line-height: 1; }
  .tracker { top: 4px; border-radius: var(--radius-sm); }
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.18rem; }
  .card { padding: 14px 12px; }
  .passage { padding: 12px; }
  .passage-body { max-height: 45vh; }
  .tbl { font-size: .86rem; }
  .tbl th, .tbl td { padding: 5px 7px; }
  .tbl-wrap { background:
      linear-gradient(to right, var(--surface), var(--surface)) left / 16px 100% no-repeat local,
      linear-gradient(to left, var(--surface), var(--surface)) right / 16px 100% no-repeat local,
      linear-gradient(to right, rgba(0,0,0,.12), transparent) left / 10px 100% no-repeat scroll,
      linear-gradient(to left, rgba(0,0,0,.12), transparent) right / 10px 100% no-repeat scroll; }
  .btn-row .btn { flex: 1 1 auto; }
  .pair .select, .select { width: 100%; }
  .pair-left { flex-basis: 100%; }
  .footer-inner { padding-bottom: 16px; }
  .footer-btns .btn { flex: 1 1 auto; }
  .resume .btn { width: 100%; }
  .order-text { font-size: .95rem; }
}

@media (max-width: 420px) {
  .brand-sub { display: none; }
  .trk-info { font-size: .8rem; }
  .tab { padding: .55em .7em; font-size: .9rem; }
}

/* Večji cilji za dotik na zaslonih na dotik */
@media (pointer: coarse) {
  .tok { min-height: 40px; padding: .3em .55em; margin: 2px; }
  .char-mode .tok { min-width: 2.3em; }
  .tokens { line-height: 2.6; }
  .option { padding: 12px; }
  .option input, .checklist input { width: 22px; height: 22px; }
  .input, .textarea, .select { font-size: 16px; } /* prepreči samodejno povečavo na iOS */
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .btn-row, .tabs, .tracker, .page-bar, .toast { display: none; }
  .card { box-shadow: none; }
}
