[hidden] { display: none !important; }
:root {
  --blue: #1B7BC4; --blue-d: #0F4F84; --blue-dd: #0A3559; --yellow: #F5D300; --yellow-l: #FFF6B8;
  --bg: #EEF2F6; --card: #fff; --ink: #14212E; --muted: #5E6E7E; --line: #DCE3EA;
  --ok: #1E9E5A; --warn: #E0A100; --bad: #D23B3B;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--blue-d); }
.muted { color: var(--muted); }
.small { font-size: 12px; }

.bar { display: flex; align-items: center; gap: 10px; background: var(--blue-dd); color: #fff; padding: 10px 16px; flex-wrap: wrap; position: sticky; top: 0; z-index: 5; }
.bar img { width: 26px; }
.bar nav { margin-left: 18px; display: flex; gap: 4px; flex-wrap: wrap; }
.bar nav a { color: #fff; opacity: .75; padding: 6px 10px; border-radius: 6px; text-decoration: none; font-size: 13px; }
.bar nav a.on { opacity: 1; background: rgba(255, 255, 255, .14); }
.bar .tm { margin-left: auto; background: var(--yellow); color: var(--blue-dd); font-weight: 800; font-size: 11px; padding: 3px 8px; border-radius: 5px; }

.view { max-width: 1100px; margin: 0 auto; padding: 18px 16px 60px; }
h1 { font-size: 20px; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--blue-d); margin: 0 0 10px; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 14px; }
.grid2 { display: grid; grid-template-columns: 1.25fr 1fr; gap: 14px; align-items: start; }
@media (max-width: 860px) { .grid2 { grid-template-columns: 1fr; } }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spacer { margin-left: auto; }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); }
td { padding: 8px; border-bottom: 1px solid #F0F3F6; vertical-align: middle; }
tr.dim td { opacity: .5; }
tr.click { cursor: pointer; }
tr.click:hover td { background: #F7FAFD; }

.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 20px; white-space: nowrap; }
.pill.ok { background: #E3F5EB; color: var(--ok); }
.pill.warn { background: #FFF3D1; color: #8A6400; }
.pill.bad { background: #FDE5E5; color: var(--bad); }
.pill.off { background: #EEF1F4; color: var(--muted); }
.pill.live { background: var(--ok); color: #fff; }

button, .btn { border: 1px solid var(--line); background: #fff; border-radius: 7px; padding: 6px 11px; font: inherit; font-size: 13px; cursor: pointer; color: var(--ink); text-decoration: none; display: inline-block; }
button:hover, .btn:hover { border-color: #b9c6d3; }
button.p, .btn.p { background: var(--blue); border-color: var(--blue); color: #fff; }
button.y { background: var(--yellow); border-color: var(--yellow); color: var(--blue-dd); font-weight: 700; }
button.danger { color: var(--bad); }
button[disabled] { opacity: .5; cursor: default; }
input, select, textarea { border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; font: inherit; font-size: 13px; background: #fff; color: var(--ink); }
input[type=number] { width: 70px; }
textarea { width: 100%; min-height: 50px; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 12px; align-items: center; }
.kv > span:nth-child(odd) { color: var(--muted); }
label.chk { display: flex; align-items: center; gap: 6px; }

.alert { background: #FFF3D1; border: 1px solid #F2D27A; border-radius: 8px; padding: 8px 10px; font-size: 13px; margin-bottom: 8px; }
.alert.start-alert { font-size: 14px; padding: 12px 14px; border-width: 2px; border-color: var(--warn, #E0A100); }
.alert.ok-alert { font-size: 14px; padding: 12px 14px; background: #E6F6EC; border-color: #9ED4B2; }
.alert.error { background: #FDE5E5; border-color: #F1B3B3; }
.no { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--blue); color: #fff; font-weight: 800; font-size: 12px; }
.tally { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .tally { grid-template-columns: 1fr; } }
.tally .r { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; border-bottom: 1px dashed #EEF1F4; }
.code { font-family: ui-monospace, Consolas, monospace; font-size: 18px; font-weight: 800; letter-spacing: .15em; }
.sponsor-logo { height: 28px; max-width: 160px; object-fit: contain; vertical-align: middle; }
.login { max-width: 340px; margin: 60px auto; }
.login input { width: 100%; padding: 10px; font-size: 15px; margin: 8px 0 12px; }
.login button { width: 100%; padding: 10px; font-size: 15px; }
.toast { position: fixed; right: 16px; bottom: 16px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; max-width: 420px; z-index: 20; }
.toast.err { background: var(--bad); }
code.link { background: #F4F7FA; padding: 4px 6px; border-radius: 5px; word-break: break-all; font-size: 12px; }
input, select, textarea { max-width: 100%; }
.name-in { width: 100%; max-width: 280px; }
.pphoto { white-space: nowrap; }
.players .tg span { display: none; }
td.cels { white-space: nowrap; }
table.partners td { vertical-align: middle; }
.plogo { display: inline-grid; place-items: center; width: 110px; height: 48px; border: 1px dashed var(--line); border-radius: 8px; cursor: pointer; background: #fff; font-size: 12px; color: var(--muted); overflow: hidden; }
.plogo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.nowrap { white-space: nowrap; }
.disp-pick { border-color: var(--warn, #E0A100); background: #FFF8DB; max-width: 220px; }
.cel { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; overflow: hidden; background: #E8EEF4; margin-right: 4px; vertical-align: middle; }
.cel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.cel .x { position: absolute; top: 0; right: 0; width: 16px; height: 16px; padding: 0; border: 0; border-radius: 0 0 0 6px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; line-height: 16px; cursor: pointer; }
.cel.add { color: var(--muted); font-size: 20px; cursor: pointer; }
.thumb { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: #E8EEF4; color: var(--muted); cursor: pointer; vertical-align: middle; font-size: 20px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
button.link { background: none; border: 0; padding: 0 0 0 6px; color: var(--muted); text-decoration: underline; cursor: pointer; }


/* ---------- hjelpesiden ---------- */
.help { max-width: 780px; line-height: 1.6; font-size: 15px; }
.help h2 { margin-top: 22px; scroll-margin-top: 64px; }
.help h3 { font-size: 15px; margin: 16px 0 4px; }
.help ol, .help ul { padding-left: 22px; }
.help li { margin: 3px 0; }
.help .tip { background: #F4F8FC; border-left: 4px solid var(--blue); padding: 8px 12px; border-radius: 0 8px 8px 0; margin: 10px 0; }
.help .warn.start { font-size: 15px; padding: 12px 14px; }
.help .warn.start ul { margin: 8px 0; }
.help .warn { background: #FFF8E1; border-left: 4px solid var(--warn); padding: 8px 12px; border-radius: 0 8px 8px 0; margin: 10px 0; }
.help table td, .help table th { vertical-align: top; }
.help .lead { font-size: 15px; }
.help .about { margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); line-height: 1.6; }
.help .toc { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px 18px; background: #F4F8FC; border-radius: 10px; padding: 12px 14px; margin: 12px 0 6px; }
.help .toc b { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }
.help .toc a { display: block; margin: 2px 0; }

/* ---------- mobil ---------- */
@media (max-width: 700px) {
  body { font-size: 15px; }
  .bar { padding: 8px 10px; gap: 8px; flex-wrap: nowrap; }
  .bar nav { margin-left: 0; flex: 1; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .bar nav::-webkit-scrollbar { display: none; }
  .bar nav a { white-space: nowrap; padding: 6px 8px; }
  .bar .tm { margin-left: 0; font-size: 9px; padding: 2px 5px; }
  .view { padding: 12px 10px 70px; }
  .box { padding: 12px; }
  h1 { font-size: 18px; }
  h1 .spacer { margin-left: 0; width: 100%; }
  input, select, textarea { font-size: 16px; } /* hindrer zoom på iPhone */
  input[type=number] { width: 64px; }
  .row > select { flex: 1 1 200px; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv > span:nth-child(odd) { margin-top: 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }

  /* Tabeller blir kort */
  table.resp, table.resp tbody, table.resp tr, table.resp td { display: block; width: auto; }
  table.resp th { display: none; }
  table.resp tr { padding: 10px 2px; border-bottom: 1px solid var(--line); }
  table.resp td { border: 0; padding: 2px 0; }
  table.resp td:empty { display: none; }
  table.resp td .pill { margin-top: 2px; }

  /* Spillere: ett kort per spiller. Bilde til venstre, nummer og navn til høyre, brytere under */
  table.players, table.players tbody { display: block; }
  table.players tr:first-child { display: none; }
  table.players tr { display: grid; grid-template-columns: 64px 72px minmax(0, 1fr); grid-template-areas:
      "photo nr nm" "photo disp disp" "act act first" "cels cels cels" "meta meta meta";
    column-gap: 10px; row-gap: 8px; align-items: end; border-bottom: 1px solid var(--line); padding: 14px 0; }
  table.players td { border: 0; padding: 0; min-width: 0; }
  table.players td[data-l]::before { content: attr(data-l); display: block; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 3px; }
  table.players td.pphoto { grid-area: photo; align-self: start; display: flex; flex-direction: column; align-items: center; gap: 2px; }
  table.players td.pphoto .thumb { width: 64px; height: 64px; }
  table.players td.nr { grid-area: nr; }
  table.players td.nr input { width: 100%; }
  table.players td.nm { grid-area: nm; }
  table.players td.disp { grid-area: disp; }
  table.players td.disp select, table.players td.disp input { width: 100%; max-width: none; }
  table.players td.flag { grid-area: act; }
  table.players td.flag.first { grid-area: first; }
  table.players .tg span { display: inline; }
  table.players td.cels { grid-area: cels; white-space: normal; }
  table.players td.meta { grid-area: meta; font-size: 12px; color: var(--muted); }
  table.players .tg { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
  table.players .tg input { width: 20px; height: 20px; margin: 0; }
  .name-in { max-width: none; }

  .toast { left: 10px; right: 10px; bottom: 10px; max-width: none; }
  .help { font-size: 15px; }
}

.bteam { display: inline-flex; }
.bteam > button:first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.bteam > button.danger { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: -1px; padding-left: 10px; padding-right: 10px; }

/* ---------- statistikk ---------- */
.vrow { display: grid; grid-template-columns: 130px 1fr 44px; align-items: center; gap: 10px; font-size: 13px; padding: 3px 0; }
.vrow.day { grid-template-columns: 110px 1fr 40px 120px; }
.vrow b { text-align: right; }
.vbar { display: block; height: 10px; background: #EEF2F6; border-radius: 99px; overflow: hidden; }
.vbar i { display: block; height: 100%; background: var(--blue); border-radius: 99px; }
.vmini { display: flex; align-items: flex-end; gap: 3px; height: 34px; width: 120px; }
.vmini span { flex: 1; height: 100%; display: flex; align-items: flex-end; background: #F4F6F9; border-radius: 3px; }
.vmini i { display: block; width: 100%; background: var(--blue); border-radius: 3px; min-height: 2px; }
.vmini-l { display: flex; gap: 3px; width: 120px; font-size: 9px; color: var(--muted); }
.vmini-l span { flex: 1; text-align: center; }
td.num, th.num { text-align: right; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-bottom: 14px; }
.box .tiles { margin-bottom: 0; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.tile .t { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.tile .big { font-size: 28px; font-weight: 900; color: var(--blue-dd); margin-top: 2px; }
.tile .v { margin-top: 6px; font-weight: 700; line-height: 1.6; }
.tile .s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.tile.lead { background: linear-gradient(160deg, #FFFBE0, #fff 60%); border-color: #F2E39A; }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.stats th { cursor: pointer; white-space: nowrap; user-select: none; }
table.stats th.on { color: var(--blue-d); }
table.stats td { white-space: nowrap; }
table.stats tr.top td { background: #FFFBE6; }
.resp-label { display: none; }
@media (max-width: 700px) {
  .hide-m { display: none; } /* kolonner som ikke får plass på mobil (telefon og reservert i Måljakten) */
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile .big { font-size: 22px; }
  .resp-label { display: inline; }
  table.stats td, table.stats th { padding: 6px; }
}

/* ---------- SoMe ---------- */
.some-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-bottom: 14px; }
.some-card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.some-card canvas { width: 100%; height: auto; display: block; border-radius: 6px; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
@media (max-width: 700px) { .some-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .some-card { padding: 8px; } .some-card .row b { font-size: 12px; } }

/* ---------- innlogget bruker ---------- */
.bar .who { margin-left: 12px; font-size: 12px; white-space: nowrap; }
.bar .who .muted { color: rgba(255, 255, 255, .65); }
.linkbtn { background: none; border: 0; padding: 0 0 0 6px; color: var(--yellow); font-size: 12px; text-decoration: underline; cursor: pointer; }
.login label { display: block; margin-top: 4px; }
@media (max-width: 700px) { .bar .who { font-size: 11px; } .bar .who .muted { display: none; } }


/* Mobil: logo, stemmesiden og innlogget bruker på første linje, menyen på egen linje under */
@media (max-width: 700px) {
  .bar { flex-wrap: wrap; row-gap: 6px; }
  .bar nav { order: 10; flex: 1 1 100%; }
}

/* ---------- underfaner (Innstillinger: Generelt, Brukere, Logg) ---------- */
.subnav { display: flex; gap: 4px; margin-bottom: 12px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.subnav a { padding: 8px 14px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 13px; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.subnav a.on { color: var(--blue-d); border-bottom-color: var(--blue); }
.subnav-sep { flex: 0 0 1px; background: var(--line); margin: 8px 6px; }

/* Måljakten */
.mj-settle { background: #FFF8DB; border: 1px solid #F1DD8A; border-radius: 10px; padding: 10px 12px; margin-top: 12px; }
.mj-win { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; background: var(--yellow-l, #FFF6B8); border-radius: 10px; padding: 10px 12px; margin-top: 12px; }
.mj-win b { font-size: 18px; }
.mj-win button { margin-left: auto; }
table.mj-list td.r, table.mj-list th.r { text-align: right; font-variant-numeric: tabular-nums; }

/* SoMe: kampvalg og faner øverst, målvalg som knapper */
.some-top select { margin-left: auto; max-width: 100%; }
.some-h { margin: 18px 0 8px; font-size: 15px; color: var(--blue-dd); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { border: 1px solid var(--line); border-radius: 20px; padding: 5px 11px; font-size: 13px; text-decoration: none; color: var(--ink); background: #fff; }
.chip.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip.them { color: var(--muted); border-style: dashed; }
.chip.them.on { color: #fff; border-style: solid; }
.subnav { overflow-y: hidden; }
.subnav .pill { font-size: 10px; padding: 1px 6px; vertical-align: 1px; }

/* Meny: Innstillinger og Hjelp blir ikoner på mobil, så hovedvalgene får plass på én linje */
.bar nav a.iconish .ic { display: none; }
@media (max-width: 700px) {
  .bar nav { justify-content: space-between; gap: 2px; }
  .bar nav a { padding: 6px 6px; font-size: 13px; }
  .bar nav a.iconish { padding: 6px 9px; }
  .bar nav a.iconish .lbl { display: none; }
  .bar nav a.iconish .ic { display: inline-block; font-size: 15px; line-height: 1; font-weight: 700; min-width: 12px; text-align: center; }
  .bar nav.roomy a.iconish { padding: 6px 8px; }
  .bar nav.roomy a.iconish .lbl { display: inline; }
  .bar nav.roomy a.iconish .ic { display: none; }
}

/* SoMe: valg av bakgrunnsbilde til lagoppstillingen */
.bg-pick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bg-pick .bgw { position: relative; display: inline-block; }
.bgthumb { display: inline-grid; place-items: center; width: 92px; height: 64px; border-radius: 8px; border: 2px solid var(--line); background: #E8EEF4 center / cover no-repeat; cursor: pointer; padding: 0; color: var(--muted); font-size: 24px; }
.bgthumb.on { border-color: var(--blue); box-shadow: 0 0 0 3px var(--yellow); }
.bg-pick .x { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; font-size: 13px; line-height: 20px; padding: 0; cursor: pointer; }

/* Breddekamper (bredde.js) */
.bstat { flex: 1; background: #F3F6F9; border-radius: 8px; padding: 6px 10px; font-size: 12px; color: var(--muted); }
.bstat b { display: block; font-size: 20px; color: var(--ink); }

/* SoMe: én liste med story-bilder, nyeste/mest aktuelle øverst */
.sfeed { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 10px; margin-bottom: 8px; }
.sitem { display: flex; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px; align-items: flex-start; }
.sitem.dim .stitle { color: var(--muted); }
.sthumb { width: 96px; height: 171px; flex: none; border-radius: 8px; background: #DCE6F0; box-shadow: 0 1px 4px rgba(0,0,0,.15); cursor: zoom-in; }
.sthumb.empty { display: grid; place-items: center; color: var(--muted); cursor: default; box-shadow: none; }
.sbody { flex: 1; min-width: 0; }
.stitle { font-weight: 800; font-size: 15px; color: var(--blue-dd); }
.ssub { font-size: 13px; margin-top: 2px; }
.sbtns { margin-top: 10px; }
.sbtns button { padding: 9px 14px; font-size: 14px; }
details.sx { margin-top: 8px; font-size: 13px; }
details.sx summary { cursor: pointer; color: var(--blue-d); }
.szoom { position: fixed; inset: 0; z-index: 60; background: rgba(10,20,30,.92); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; cursor: zoom-out; }
.szoom canvas { max-height: 88vh; max-width: 94vw; width: auto; height: auto; border-radius: 10px; }
.szoom small { color: #fff; opacity: .7; }
@media (max-width: 700px) { .sfeed { grid-template-columns: 1fr; } .sthumb { width: 84px; height: 149px; } }

/* Billetter (billett.js) */
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; }

/* Passordvindu for sikrede handlinger */
.pwmodal { position: fixed; inset: 0; z-index: 70; background: rgba(10,20,30,.55); display: grid; place-items: center; padding: 16px; }
.pwmodal .box { width: min(380px, 100%); margin: 0; }

/* Rapport etter kampen (rapport.js): stemmer per 5 minutter */
.tl-chart { display: flex; align-items: flex-end; gap: 2px; height: 140px; padding-top: 6px; border-bottom: 1px solid var(--line); }
.tl-bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; position: relative; min-width: 4px; }
.tl-bar span { display: block; background: var(--blue); border-radius: 3px 3px 0 0; min-height: 1px; }
.tl-bar i { position: absolute; top: 100%; left: 0; font-style: normal; font-size: 10px; color: var(--muted); white-space: nowrap; margin-top: 2px; }
.tl-chart + p { margin-top: 18px !important; }

.inne { color: var(--ok); font-weight: 700; white-space: nowrap; }

/* ---------- toppen: merke og snarveier ---------- */
.bar .brand { display: flex; align-items: center; gap: 9px; color: #fff; text-decoration: none; flex: none; }
.bar .brand img { width: 28px; }
.bar .brand span { font-weight: 900; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }
.bar .tm { margin-left: auto; }
.bar .quick { display: flex; flex: none; margin-left: auto; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, .06); }
.bar .tm:not([hidden]) ~ .quick { margin-left: 10px; }
.bar .quick[hidden] { display: none; }
.bar .quick a { display: flex; align-items: center; gap: 6px; padding: 5px 12px; color: #fff; text-decoration: none; font-size: 12px; font-weight: 600; white-space: nowrap; transition: background .15s, color .15s; }
.bar .quick a[hidden] { display: none; }
.bar .quick a + a:not([hidden]) { border-left: 1px solid rgba(255, 255, 255, .18); }
.bar .quick a:hover { background: rgba(245, 211, 0, .16); color: var(--yellow); }
.bar .quick svg { width: 16px; height: 16px; flex: none; }
.bar .quick a[data-q="site"] { color: var(--yellow); }
@media (max-width: 700px) {
  .bar .brand span { font-size: 12px; letter-spacing: .12em; }
  .bar .quick a { padding: 6px 9px; }
  .bar .quick a span { display: none; }
  .bar .quick svg { width: 18px; height: 18px; }
  .bar .who { margin-left: 8px; }
}

/* ---------- mange fribilletter: utskriftsark (én billett per rute) ---------- */
.fri-ark { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.fri-billett { background: #fff; color: #14212E; border: 1.5px dashed #9AA8B5; border-radius: 10px; padding: 12px; text-align: center; break-inside: avoid; page-break-inside: avoid; }
.fri-billett.void { opacity: .45; }
.fri-billett .fb-topp { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #0F4F84; font-weight: 700; }
.fri-billett .fb-kamp { font-weight: 800; font-size: 15px; margin-top: 4px; }
.fri-billett .fb-tid { font-size: 12px; color: #5E6E7E; }
.fri-billett .fb-qr svg { width: 150px; height: 150px; margin: 8px auto 2px; display: block; }
.fri-billett .fb-kode { font: 700 16px/1.2 ui-monospace, Consolas, monospace; letter-spacing: .08em; }
.fri-billett .fb-bunn { font-size: 11px; color: #5E6E7E; margin-top: 4px; }
@media print {
  @page { size: A4; margin: 10mm; }
  body { background: #fff !important; }
  .bar, #nav, #quick, #who, .subnav, .no-print, .toast { display: none !important; }
  main, #view { padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .fri-ark { grid-template-columns: repeat(3, 1fr); gap: 6mm; }
  .fri-billett { border-color: #777; }
}
