/* ============================================================
   Autoškola — ispitna pitanja
   Tokeni: svijet hrvatske prometne signalizacije.
   Plava obavijesnih znakova, žuta oznaka na kolniku,
   zeleno/crveno strogo za točno/netočno.
   ============================================================ */

:root {
  --bg: #EDF0F5;
  --surface: #FFFFFF;
  --surface-2: #F6F8FB;
  --ink: #0E1B2C;
  --ink-2: #48586E;
  --ink-3: #7D8BA1;
  --line: #DBE2EC;

  --blue: #0B4EA2;
  --blue-deep: #093F84;
  --blue-soft: #E4EDF9;
  --on-blue: #FFFFFF;
  --yellow: #F2B705;
  --yellow-ink: #4A3800;

  --green: #187C3F;
  --green-soft: #E3F4EA;
  --red: #C13A2B;
  --red-soft: #FBEAE7;

  --asphalt: #2A3240;
  --asphalt-line: #F2B705;

  --radius: 16px;
  --radius-s: 10px;
  --shadow: 0 1px 2px rgba(14, 27, 44, .06), 0 4px 16px rgba(14, 27, 44, .07);
  --display: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1216;
    --surface: #161C24;
    --surface-2: #1D2530;
    --ink: #E9EEF5;
    --ink-2: #A2B1C4;
    --ink-3: #68788E;
    --line: #29323F;

    --blue: #2F76CE;
    --blue-deep: #4E8FDD;
    --blue-soft: #142842;
    --on-blue: #FFFFFF;
    --yellow: #FFC53D;
    --yellow-ink: #2C2100;

    --green: #45B96D;
    --green-soft: #11301C;
    --red: #E66A5B;
    --red-soft: #3B1712;

    --asphalt: #06090D;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 20px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.app {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px calc(48px + env(safe-area-inset-bottom));
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

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

img { max-width: 100%; }

/* ---------- App bar ---------- */

.appbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0 10px;
  margin: 0 -16px 14px;
  padding-left: 16px;
  padding-right: 16px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.appbar .bar-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: .02em;
  text-transform: uppercase;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.icon-btn {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 17px;
  line-height: 1;
}
.icon-btn:active { transform: scale(.94); }

.bar-timer {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
}

/* ---------- Hero (motorway sign panel) ---------- */

.hero {
  margin-top: 18px;
  background: var(--blue);
  color: var(--on-blue);
  border-radius: var(--radius);
  padding: 22px 20px 20px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .85), inset 0 0 0 5px var(--blue), var(--shadow);
  border: 1px solid var(--blue-deep);
}

.hero .eyebrow {
  font-family: var(--display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .85;
  margin: 0 0 2px;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 11vw, 56px);
  line-height: .95;
  letter-spacing: .01em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.hero .hero-meta {
  display: flex;
  gap: 18px;
  margin: 0;
  font-size: 13.5px;
  opacity: .92;
}
.hero .hero-meta strong {
  display: block;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.1;
}

/* ---------- Action cards ---------- */

.actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 26px;
}

.action-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 14px 13px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: left;
  text-decoration: none;
  color: inherit;
  transition: transform .12s ease;
}
.action-card:active { transform: scale(.97); }

.action-card .ico {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 17px;
}
.action-card.random .ico { background: var(--yellow); color: var(--yellow-ink); }
.action-card.pdf .ico { background: var(--red-soft); color: var(--red); }
.action-card.stats .ico { background: var(--blue-soft); color: var(--blue-deep); }

.action-card .t {
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.1;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.action-card .d {
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.35;
}

/* ---------- Sections ---------- */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}
.section-head h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: .03em;
  text-transform: uppercase;
  margin: 0;
}
.section-head .hint { font-size: 12.5px; color: var(--ink-3); }

/* ---------- Test grid ---------- */

.test-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 560px) {
  .test-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.test-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 13px 13px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.test-card .head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sign-chip {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 34px;
  padding: 0 8px;
  background: var(--blue);
  color: var(--on-blue);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .9);
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: .04em;
}

.best-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.best-badge.pass { background: var(--green-soft); color: var(--green); }
.best-badge.fail { background: var(--red-soft); color: var(--red); }

.test-card .meta { font-size: 12px; color: var(--ink-3); margin-top: -4px; }

.test-card .btns { display: flex; gap: 7px; margin-top: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1.2;
  transition: transform .12s ease, background .15s ease;
  text-decoration: none;
}
.btn:active { transform: scale(.96); }

.btn-primary { background: var(--blue); color: var(--on-blue); }
.btn-primary:hover { background: var(--blue-deep); }
.btn-ghost {
  background: var(--surface);
  border: 1.5px solid var(--line);
  color: var(--ink-2);
}
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-sm { padding: 7px 12px; font-size: 12.5px; flex: 1; }
.btn-lg { padding: 14px 26px; font-size: 15.5px; width: 100%; }
.btn-yellow { background: var(--yellow); color: var(--yellow-ink); }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ---------- Segmented control ---------- */

.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  margin-bottom: 16px;
}
.seg button {
  padding: 9px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink-3);
}
.seg button.on {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

/* ---------- Question card ---------- */

.q-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 12px;
}

.q-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.q-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  color: var(--blue-deep);
  letter-spacing: .03em;
}
.q-pts {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.q-text {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.45;
  margin: 0 0 12px;
}

.q-img {
  display: block;
  margin: 0 auto 12px;
  border-radius: var(--radius-s);
  border: 1px solid var(--line);
}

.ans-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

.ans {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 13px;
  border-radius: var(--radius-s);
  border: 1.5px solid var(--line);
  background: var(--surface-2);
  font-size: 14.5px;
  line-height: 1.45;
  width: 100%;
  text-align: left;
}

.ans .mark {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 6px;
  border: 2px solid var(--ink-3);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  transition: all .15s ease;
}

/* browse: correct pre-marked */
.ans.is-correct {
  border-color: var(--green);
  background: var(--green-soft);
}
.ans.is-correct .mark {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

/* quiz: selection */
.ans.selectable { background: var(--surface); cursor: pointer; }
.ans.selectable:hover { border-color: var(--ink-3); }
.ans.sel {
  border-color: var(--blue);
  background: var(--blue-soft);
}
.ans.sel .mark {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

/* quiz: after check */
.ans.ok      { border-color: var(--green); background: var(--green-soft); }
.ans.ok .mark { border-color: var(--green); background: var(--green); color: #fff; }
.ans.missed  { border-color: var(--green); background: transparent; border-style: dashed; }
.ans.missed .mark { border-color: var(--green); color: var(--green); }
.ans.wrong   { border-color: var(--red); background: var(--red-soft); }
.ans.wrong .mark { border-color: var(--red); background: var(--red); color: #fff; }
.ans.dim { opacity: .55; }

.ans-tag {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: 3px;
}
.ans.ok .ans-tag, .ans.missed .ans-tag { color: var(--green); }
.ans.wrong .ans-tag { color: var(--red); }

/* ---------- Objašnjenja (AI) ---------- */

.ans .ans-text { flex: 1; min-width: 0; }

.exp-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 6px;
  align-self: center;
  color: var(--blue-deep);
}
.exp-btn .exp-i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: grid;
  place-items: center;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.exp-btn:hover .exp-i { transform: scale(1.1); }
.exp-btn.on .exp-i { background: var(--blue-deep); color: var(--surface); }

.ans.wrong .exp-btn { color: var(--red); }
.ans.wrong .exp-btn.on .exp-i { background: var(--red); color: #fff; }
.ans.ok .exp-btn, .ans.missed .exp-btn, .ans.is-correct .exp-btn { color: var(--green); }
.ans.ok .exp-btn.on .exp-i, .ans.missed .exp-btn.on .exp-i, .ans.is-correct .exp-btn.on .exp-i {
  background: var(--green); color: #fff;
}

.q-exp-row { margin-top: 12px; display: flex; }
.exp-btn-q {
  gap: 8px;
  padding: 8px 14px 8px 9px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface-2);
  color: var(--blue-deep);
  font-weight: 600;
  font-size: 13px;
}
.exp-btn-q.on { border-color: var(--blue-deep); background: var(--blue-soft); }
.exp-btn-q .exp-label { line-height: 1; }

.exp-panel {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .25s ease, opacity .25s ease, margin-top .25s ease;
  margin-top: 0;
}
.exp-panel.open {
  max-height: 700px;
  opacity: 1;
  margin-top: 8px;
}
.exp-panel[hidden] { display: block; }

.exp-inner {
  border-left: 3px solid var(--blue-deep);
  background: var(--blue-soft);
  border-radius: 6px 10px 10px 6px;
  padding: 10px 13px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.exp-inner::before {
  content: 'Objašnjenje · AI';
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-deep);
  opacity: .75;
  margin-bottom: 4px;
}

.exp-note {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  background: color-mix(in srgb, var(--yellow) 25%, transparent);
  border-radius: 6px;
  padding: 5px 9px;
  margin-bottom: 7px;
}

@media (prefers-reduced-motion: reduce) {
  .exp-panel { transition: none; }
}

/* ---------- Card mode (swipe) ---------- */

.snap-wrap {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 12px;
  margin: 0 -16px;
  padding: 2px 16px 8px;
  scrollbar-width: none;
}
.snap-wrap::-webkit-scrollbar { display: none; }

.snap-item {
  flex: 0 0 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}
.snap-item .q-card { height: 100%; margin-bottom: 0; }

.snap-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 14px;
}
.snap-nav .pos {
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: .05em;
  font-variant-numeric: tabular-nums;
  min-width: 74px;
  text-align: center;
}

/* ---------- Road progress (signature) ---------- */

.road {
  position: relative;
  height: 26px;
  border-radius: 999px;
  background: var(--asphalt);
  overflow: hidden;
  margin: 4px 0 18px;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, .45);
}
.road::before {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  top: 50%;
  height: 2.5px;
  transform: translateY(-50%);
  background: repeating-linear-gradient(90deg,
    var(--asphalt-line) 0 14px, transparent 14px 26px);
  opacity: .85;
}
.road .car {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(0, -50%);
  transition: left .45s cubic-bezier(.22, .9, .36, 1);
  font-size: 15px;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5));
}

@media (prefers-reduced-motion: reduce) {
  .road .car { transition: none; }
  .btn, .action-card, .icon-btn { transition: none; }
}

/* ---------- Quiz ---------- */

.quiz-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
}
.quiz-head .pos {
  font-family: var(--display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}
.quiz-head .src { font-size: 12px; color: var(--ink-3); }

.feedback {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius-s);
  padding: 12px 14px;
  margin-top: 12px;
  font-weight: 600;
  font-size: 14.5px;
}
.feedback.good { background: var(--green-soft); color: var(--green); }
.feedback.bad { background: var(--red-soft); color: var(--red); }

.quiz-foot { margin-top: 14px; display: grid; gap: 8px; }

/* ---------- Results ---------- */

.result-hero {
  text-align: center;
  padding: 30px 20px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}
.result-hero .verdict {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.result-hero .verdict.pass { background: var(--green-soft); color: var(--green); }
.result-hero .verdict.fail { background: var(--red-soft); color: var(--red); }
.result-hero .big {
  font-family: var(--display);
  font-weight: 700;
  font-size: 74px;
  line-height: 1;
  letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
}
.result-hero .sub { color: var(--ink-2); font-size: 14px; margin-top: 6px; }

.result-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

/* ---------- Stat tiles ---------- */

.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 13px 14px 11px;
}
.tile .v {
  font-family: var(--display);
  font-weight: 700;
  font-size: 27px;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.tile .l {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 3px;
}

.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
}

/* ---------- Stats: per-test bars ---------- */

.bar-row {
  display: grid;
  grid-template-columns: 52px 1fr 68px;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
}
.bar-row .name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .04em;
  color: var(--ink-2);
}
.bar-row .track {
  height: 14px;
  border-radius: 4px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  overflow: hidden;
}
.bar-row .fill {
  height: 100%;
  background: var(--blue);
  border-radius: 3px 4px 4px 3px;
}
.bar-row .val {
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
  text-align: right;
  white-space: nowrap;
}
.bar-row .val small { color: var(--ink-3); font-weight: 400; }

/* ---------- History list ---------- */

.hist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 11px 13px;
  margin-bottom: 8px;
}
.hist-item .dot {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.hist-item .dot.pass { background: var(--green); }
.hist-item .dot.fail { background: var(--red); }
.hist-item .info { flex: 1; min-width: 0; }
.hist-item .t { font-weight: 600; font-size: 14px; }
.hist-item .d { font-size: 12px; color: var(--ink-3); }
.hist-item .score {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.hist-item .score .p { font-weight: 700; font-size: 15px; }
.hist-item .score .b { font-size: 11.5px; color: var(--ink-3); }

.empty {
  text-align: center;
  color: var(--ink-3);
  padding: 36px 20px;
  font-size: 14px;
}
.empty .e-ico { font-size: 34px; margin-bottom: 8px; }

.danger-zone { margin-top: 22px; text-align: center; }
.link-danger {
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
}

/* ---------- Review of mistakes ---------- */

.review-h {
  font-family: var(--display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: .03em;
  text-transform: uppercase;
  margin: 26px 0 12px;
}

/* ---------- Footer ---------- */

.foot {
  margin-top: 40px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-3);
}

/* ---------- PWA: toast, install banner, offline status ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  transform: translate(-50%, 20px);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(92vw, 560px);
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 6px 24px rgba(14, 27, 44, .25);
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 60;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.pwa-banner {
  position: fixed;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom));
  transform: translate(-50%, 20px);
  display: flex;
  align-items: center;
  gap: 11px;
  width: min(94vw, 620px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 8px 30px rgba(14, 27, 44, .3);
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 55;
}
.pwa-banner.show { opacity: 1; transform: translate(-50%, 0); }
.pwa-banner .pwa-ico {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--blue-soft);
  color: var(--blue-deep);
  display: grid;
  place-items: center;
  font-size: 17px;
}
.pwa-banner .btn { flex: 0 0 auto; }
.pwa-x {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-3);
  font-size: 13px;
}
.pwa-x:hover { background: var(--surface-2); }

#net-status {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  display: none;
  text-align: center;
  padding: 6px 14px calc(6px + env(safe-area-inset-top) * 0);
  padding-top: calc(6px + env(safe-area-inset-top));
  background: var(--asphalt);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
}
#net-status.show { display: block; }

@media (prefers-reduced-motion: reduce) {
  .toast, .pwa-banner { transition: none; }
}

/* ---------- Zebra divider ---------- */

.zebra {
  height: 8px;
  margin: 30px 0;
  background: repeating-linear-gradient(90deg,
    var(--line) 0 22px, transparent 22px 44px);
  border-radius: 4px;
}
