/* EIT – designet «Standplass»: teknisk og ryddig, med runde former, stempler og tall i skrivemaskinskrift.
   Lyst og mørkt tema; temaet velges per bruker (lyst, mørkt eller auto = følger telefonen).
   --accent settes per klubb (standard EIT-oransje). Alle farger går via variabler, så begge temaer holder kontrast. */
@font-face { font-family: "IBM Plex Sans Condensed"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-condensed-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-condensed-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/ibm-plex-sans-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); }
:root {
  --font: "IBM Plex Sans Condensed", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --bg: #eceef1;
  --bg2: #f6f7f9;
  --card: #ffffff;
  --card2: #eef0f3;
  --line: #d5dae0;
  --text: #14171c;
  --muted: #59636e;
  --placeholder: #8a939d;
  --accent: #ff7a2f;
  --accent-ink: #0e1013;
  --link: color-mix(in srgb, var(--accent) 62%, #000);
  --ok: #1e7a46; --ok-ink: #ffffff; --ok-bg: #e3f3e8; --ok-text: #135a32;
  --warn: #8a5a00; --warn-bg: #fdf0d2; --warn-text: #6b4500;
  --err: #c81e1e; --err-bg: #fde3e3; --err-text: #8f1414;
  --blue: #2f6fe0;
  --focus: #2f62e8;
  --topbar-bg: rgba(236, 238, 241, .92);
  --accent-soft: color-mix(in srgb, var(--accent) 14%, #fff);
  --shadow: none;
  --radius: 20px;
  --nav-h: 0px;
  color-scheme: light;
}
/* Valgt lyst tema: be nettleseren ikke gjøre siden mørk på egen hånd (Edge/Chrome «mørke nettsider») */
:root[data-theme="light"] {
  color-scheme: only light;
}
:root[data-theme="dark"] {
    --bg: #0e1013; --bg2: #161a20; --card: #1b2028; --card2: #252b35; --line: #313844;
    --text: #e9ecef; --muted: #9aa3ae; --placeholder: #6b747f;
    --link: color-mix(in srgb, var(--accent) 78%, #fff);
    --ok: #5fd08a; --ok-ink: #0e1013; --ok-bg: #173322; --ok-text: #9ef0bd;
    --warn: #f2c14e; --warn-bg: rgba(242, 193, 78, .14); --warn-text: #ffdf94;
    --err: #ff6b6b; --err-bg: rgba(255, 107, 107, .14); --err-text: #ffb3b3;
    --blue: #5b95ff; --focus: #8ab0ff;
    --topbar-bg: rgba(14, 16, 19, .92);
    --accent-soft: color-mix(in srgb, var(--accent) 16%, var(--card));
    --shadow: none;
    color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --bg: #0e1013; --bg2: #161a20; --card: #1b2028; --card2: #252b35; --line: #313844;
    --text: #e9ecef; --muted: #9aa3ae; --placeholder: #6b747f;
    --link: color-mix(in srgb, var(--accent) 78%, #fff);
    --ok: #5fd08a; --ok-ink: #0e1013; --ok-bg: #173322; --ok-text: #9ef0bd;
    --warn: #f2c14e; --warn-bg: rgba(242, 193, 78, .14); --warn-text: #ffdf94;
    --err: #ff6b6b; --err-bg: rgba(255, 107, 107, .14); --err-text: #ffb3b3;
    --blue: #5b95ff; --focus: #8ab0ff;
    --topbar-bg: rgba(14, 16, 19, .92);
    --accent-soft: color-mix(in srgb, var(--accent) 16%, var(--card));
    --shadow: none;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.5 var(--font);
  min-height: 100vh;
}
body.has-nav { padding-bottom: calc(env(safe-area-inset-bottom) + 16px); }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 6vw, 2.2rem); font-weight: 700; letter-spacing: -.015em; }
h2 { font-size: 1.3rem; font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.ico { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Ramme */
.wrap { max-width: 640px; margin: 0 auto; padding: 20px 16px; }
.wrap.wide { max-width: 1040px; }
.topbar { position: sticky; top: 0; z-index: 40; background: var(--topbar-bg); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar .in { max-width: 1040px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 10px 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.05rem; min-width: 0; }
.brand:hover { text-decoration: none; }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo { width: 38px; height: 38px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.logo .ico { width: 24px; height: 24px; }
.topbar .sp { flex: 1; }
.menu-btn { background: none; border: 0; color: var(--text); padding: 10px; border-radius: 10px; cursor: pointer; position: relative; display: grid; place-items: center; min-width: 48px; min-height: 48px; }
.menu-btn .ico { width: 26px; height: 26px; }
.menu-btn .dot { position: absolute; top: 4px; right: 2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--err); color: #fff; font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; }
details.menu { position: relative; }
details.menu > summary { list-style: none; }
details.menu > summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 6px); min-width: 260px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.menu-pop a, .menu-pop button { display: flex; gap: 10px; align-items: center; width: 100%; padding: 12px; min-height: 46px; border-radius: 8px; color: var(--text); background: none; border: 0; font: inherit; text-align: left; cursor: pointer; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--card2); text-decoration: none; }
.menu-pop hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.menu-pop .lbl { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 8px 12px 4px; }
.badge-n { margin-left: auto; background: var(--err); color: #fff; border-radius: 10px; font-size: 12px; padding: 0 7px; font-weight: 700; }
.theme-switch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px 6px 8px; }
.theme-switch button { justify-content: center; padding: 8px 4px; min-height: 40px; font-size: .85rem; border: 1px solid var(--line) !important; }
.theme-switch button.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent) !important; }

/* Hovedmeny: avrundet bryter under toppfeltet */
.mainnav { padding: 0 16px 10px; }
.mainnav .in { max-width: 608px; margin: 0 auto; display: flex; padding: 4px; background: var(--card); border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.mainnav a { flex: 1; text-align: center; padding: 9px 2px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: .86rem; letter-spacing: .07em; text-transform: uppercase; }
.mainnav a.on { background: var(--text); color: var(--bg); font-weight: 700; }
.mainnav a:hover { text-decoration: none; color: var(--text); }
.mainnav a.on:hover { color: var(--bg); }

/* Kort */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; box-shadow: var(--shadow); }
.card.flat { background: var(--card2); border-color: transparent; box-shadow: none; }
a.card { display: block; color: var(--text); transition: transform .12s, border-color .12s; }
a.card:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-1px); }
a.card.tile, .tile { display: flex; gap: 16px; align-items: center; }
.tile .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; flex: none; color: #fff; }
.tile .ic .ico { width: 28px; height: 28px; }
.tile h3 { margin: 0 0 2px; font-size: 1.1rem; overflow-wrap: break-word; }
.tile > div:last-child { min-width: 0; }
.tile p { margin: 0; color: var(--muted); font-size: .92rem; }
.ic.blue { background: var(--blue); } .ic.green { background: #2f8f4e; } .ic.purple { background: #7c4ef0; } .ic.red { background: #c9302c; } .ic.amber { background: var(--accent); color: var(--accent-ink); } .ic.vipps { background: #ff5b24; }
.card.hl { border-color: var(--accent); border-width: 2px; }
.card.warnbox { border-color: var(--warn); }
.card.msgbox { border: 2px solid var(--accent); }
.card.okbox { border-color: var(--ok); }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 14px; }
.stats.four { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .stats.four { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.stat .k { color: var(--muted); font-size: .9rem; }
.stat .v { font-size: 1.9rem; font-weight: 850; line-height: 1.1; margin-top: 4px; }
a.stat { color: var(--text); } a.stat:hover { border-color: var(--accent); text-decoration: none; }
.stat.hl .v { color: var(--link); }

/* Skjema */
label { display: block; font-weight: 600; margin: 0 0 6px; }
.field { margin-bottom: 16px; }
.hint { color: var(--muted); font-size: .86rem; margin-top: 6px; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=date], input[type=time], input[type=number], input[type=search], input[type=tel], select, textarea {
  width: 100%; min-height: 50px; background: var(--card2); color: var(--text); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 12px 14px; font: inherit; font-size: 17px; outline: none; transition: border-color .12s, box-shadow .12s;
}
input:focus, select:focus, textarea:focus { border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent); }
input::placeholder, textarea::placeholder { color: var(--placeholder); }
textarea { min-height: 90px; resize: vertical; }
.pw { position: relative; }
.pw input { padding-right: 56px; }
.pw button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); padding: 10px; min-width: 46px; min-height: 46px; cursor: pointer; border-radius: 8px; }
.pw button.on { color: var(--link); }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 10px; }
.row2 > *, .row3 > * { min-width: 0; }
.row3 input { width: 100%; }
.row3 input { text-align: center; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .row2.stack { grid-template-columns: 1fr; } }
.check { display: flex; align-items: center; gap: 12px; font-weight: 500; cursor: pointer; margin: 0; min-height: 44px; }
.check input { width: 24px; height: 24px; accent-color: var(--blue); flex: none; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.req { color: var(--err); }

/* Valgknapper (f.eks. aktivitet ved innsjekk) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; margin: 0; font-weight: 650; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 16px; border-radius: 12px; border: 2px solid var(--line); background: var(--card2); cursor: pointer; }
.chip span small { font-weight: 500; color: var(--muted); }
.chip input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 20%, var(--card)); }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Knapper */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 700; padding: 12px 20px; min-height: 48px; font-size: 1rem; line-height: 1.2;
  transition: filter .12s, transform .05s; text-align: center;
}
.btn:hover { filter: brightness(1.06); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.block { width: 100%; padding: 16px 20px; min-height: 56px; font-size: 1.1rem; }
.btn.ghost { background: var(--card2); color: var(--text); border: 1px solid var(--line); }
.btn.ok { background: var(--ok); color: var(--ok-ink); }
.btn.danger { background: transparent; color: var(--err); border: 1px solid color-mix(in srgb, var(--err) 55%, transparent); }
.btn.sm { padding: 8px 14px; min-height: 42px; font-size: .92rem; border-radius: 10px; }
.btn.xl { padding: 20px; min-height: 68px; font-size: 1.25rem; border-radius: 16px; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .65; pointer-events: none; }
.btn[aria-busy="true"]::after { content: ""; width: 1em; height: 1em; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; }
.linkbtn { background: none; border: 0; color: var(--link); font: inherit; cursor: pointer; padding: 6px 0; min-height: 40px; }

/* Meldinger */
.flash { border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; display: flex; gap: 10px; align-items: flex-start; }
.flash.ok { background: var(--ok-bg); color: var(--ok-text); border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent); }
.flash.err { background: var(--err-bg); color: var(--err-text); border: 1px solid color-mix(in srgb, var(--err) 40%, transparent); }
.flash.info { background: var(--card2); color: var(--text); border: 1px solid var(--line); }
.copy { display: flex; gap: 8px; }
.copy input { font-size: .9rem; padding: 10px; }

/* Etiketter */
.tag { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 3px 10px; font-size: .82rem; font-weight: 700; white-space: nowrap; }
.tag.blue { background: var(--blue); color: #fff; }
.tag.ok { background: var(--ok-bg); color: var(--ok-text); }
.tag.warn { background: var(--warn-bg); color: var(--warn-text); }
.tag.err { background: var(--err-bg); color: var(--err-text); }
.tag.gray { background: var(--card2); color: var(--muted); }
.tag.today { background: var(--accent); color: var(--accent-ink); }
/* Farger per aktivitetstype kommer fra /static/kinds.css (src/kinds.js) */
.tag.kind { background: var(--k); color: var(--k-ink, #fff); }
.legend { display: flex; flex-wrap: wrap; gap: 8px; }
.legend a.tag { font-size: .92rem; padding: 8px 14px; border-radius: 9px; }
.legend a.tag:hover { text-decoration: none; filter: brightness(1.08); }
.legend a.tag.dim { opacity: .35; }

/* Innlogging */
.auth { max-width: 460px; margin: 0 auto; padding: 7vh 18px 40px; }
.auth .logo.big { width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 24px; }
.auth .logo.big .ico { width: 50px; height: 50px; }
.auth h1 { text-align: center; }
.auth .sub { text-align: center; color: var(--muted); font-size: 1.08rem; margin-bottom: 28px; }
.auth .club { text-align: center; color: var(--link); font-weight: 800; font-size: 1.35rem; margin: -6px 0 4px; }
.auth .foot { text-align: center; color: var(--muted); margin-top: 26px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .9rem; margin: 18px 0; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

/* Tabeller og lister */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); margin-bottom: 16px; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 14px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
th { background: var(--card2); color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td .sub { color: var(--muted); font-size: .86rem; }
.list { display: flex; flex-direction: column; gap: 10px; }
.entry { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; gap: 14px; align-items: flex-start; box-shadow: var(--shadow); }
.entry .date { min-width: 64px; text-align: center; background: var(--card2); border-radius: 10px; padding: 6px 4px; }
.entry .date b { display: block; font-size: 1.35rem; line-height: 1.1; }
.entry .date span { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.entry .body { flex: 1; min-width: 0; }
.entry .body h3 { margin: 0 0 4px; }
.entry .meta { display: flex; gap: 6px 14px; flex-wrap: wrap; color: var(--muted); font-size: .92rem; align-items: center; }
.entry .side { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
a.entry { color: var(--text); }
a.entry:hover { text-decoration: none; border-color: var(--accent); }
.month-h { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 18px 2px 4px; font-weight: 700; }
details.note > summary { list-style: none; cursor: pointer; color: var(--muted); font-size: .9rem; display: inline-flex; gap: 6px; align-items: center; min-height: 36px; }
details.note > summary::-webkit-details-marker { display: none; }
details.note form { margin-top: 10px; }
details.filter { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; }
details.filter > summary { padding: 14px 16px; min-height: 52px; cursor: pointer; font-weight: 700; display: flex; justify-content: space-between; align-items: center; list-style: none; }
details.filter > summary::-webkit-details-marker { display: none; }
details.filter .in { padding: 0 16px 16px; }

/* Fremdrift mot aktivitetskrav */
.goal { display: flex; gap: 18px; align-items: center; }
.ring { width: 96px; height: 96px; flex: none; }
.ring circle { fill: none; stroke-width: 10; }
.ring .bg { stroke: var(--card2); }
.ring .fg { stroke: var(--accent); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset .6s; }
.ring.done .fg { stroke: var(--ok); }
.ring text { fill: var(--text); font-weight: 850; font-size: 22px; text-anchor: middle; dominant-baseline: central; }
.ring text.of { font-size: 11px; font-weight: 600; fill: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.checklist li:first-child { border-top: 0; }
.checklist .done { color: var(--ok); }
.checklist .todo { color: var(--muted); }

/* Kalender */
.cal-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-nav { display: flex; align-items: center; gap: 6px; }
.seg { display: inline-flex; background: var(--card2); border-radius: 12px; padding: 4px; }
.seg a { padding: 9px 14px; min-height: 40px; display: inline-flex; align-items: center; border-radius: 9px; color: var(--muted); font-weight: 650; font-size: .95rem; }
.seg a.on { background: var(--accent); color: var(--accent-ink); }
.seg a:hover { text-decoration: none; }
.iconbtn { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 11px; background: var(--card2); color: var(--text); border: 1px solid var(--line); cursor: pointer; }
.iconbtn:hover { border-color: var(--accent); text-decoration: none; }
.day { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; }
.day.is-today { border-color: color-mix(in srgb, var(--accent) 70%, transparent); background: color-mix(in srgb, var(--accent) 7%, var(--bg2)); }
.day-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.day-h b { font-size: 1.5rem; font-weight: 850; }
.day.is-today .day-h b { color: var(--link); }
.day-h span { color: var(--muted); font-size: 1.05rem; }
.day-h .tag { margin-left: auto; }
.day.compact { padding: 8px 14px; margin-bottom: 6px; display: flex; align-items: baseline; gap: 10px; color: var(--muted); background: transparent; border-style: dashed; }
.day.compact b { font-size: 1rem; color: var(--muted); }
.day.compact .day-h { margin: 0; }
.ev { border-left: 5px solid var(--k); background: color-mix(in srgb, var(--k) 13%, var(--card)); border-radius: 10px; padding: 12px 14px; margin-top: 8px; }
.ev h3 { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-bottom: 4px; }
.ev .meta { display: flex; gap: 4px 16px; flex-wrap: wrap; color: var(--muted); font-size: .92rem; }
.ev .meta b { color: var(--text); }
.ev .desc { color: var(--text); opacity: .85; font-size: .94rem; margin: 2px 0 6px; }
.ev.now { box-shadow: 0 0 0 2px var(--k); }
.empty { color: var(--muted); font-style: italic; padding: 4px 2px; }
.month { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.month .dn { color: var(--muted); font-size: .75rem; text-align: center; text-transform: uppercase; padding: 4px 0; }
.month a.mday { min-height: 64px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 4px 5px; color: var(--text); font-size: .88rem; display: flex; flex-direction: column; gap: 3px; }
.month a.mday:hover { border-color: var(--accent); text-decoration: none; }
.month a.mday.out { opacity: .4; }
.month a.mday.is-today { border-color: var(--accent); border-width: 2px; }
.month a.mday.is-today .n { color: var(--link); font-weight: 800; }
.month .dot { height: 7px; border-radius: 4px; background: var(--k); }
.search-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-bottom: 14px; }
.search-row .s { position: relative; }
.search-row .s .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-row .s input { padding-left: 44px; }

/* Profil */
.kv { margin-bottom: 14px; }
.kv .k { font-weight: 600; margin-bottom: 2px; }
.kv .v { color: var(--muted); display: flex; gap: 10px; align-items: center; }
.dot-ok { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); display: inline-block; }

/* Skanner */
.scanner { position: relative; border-radius: 18px; overflow: hidden; background: #000; aspect-ratio: 1; max-width: 480px; margin: 0 auto 16px; }
.scanner video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scanner .frame { position: absolute; inset: 14%; border: 3px solid var(--accent); border-radius: 18px; box-shadow: 0 0 0 999px rgba(0,0,0,.35); }
.scanner .msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: #fff; }

/* Kvittering etter innsjekk */
.receipt { text-align: center; padding: 26px 18px; border: 2px solid var(--ok); }
.receipt .who { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 8px; }
.receipt .time { font-size: 3rem; font-weight: 850; line-height: 1; font-variant-numeric: tabular-nums; margin: 6px 0; }
.receipt .where { color: var(--muted); font-size: 1.05rem; }
.receipt .stamp { display: inline-flex; gap: 8px; align-items: center; background: var(--ok); color: var(--ok-ink); font-weight: 800; padding: 8px 16px; border-radius: 999px; font-size: 1.05rem; }

/* Admin */
.admin-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 18px; padding-bottom: 4px; }
.admin-tabs a { padding: 10px 14px; min-height: 44px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); color: var(--text); white-space: nowrap; font-weight: 600; font-size: .95rem; display: inline-flex; gap: 8px; align-items: center; }
.admin-tabs a.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.admin-tabs a:hover { text-decoration: none; }
.admin-tabs .n { background: var(--err); color: #fff; border-radius: 10px; font-size: .75rem; padding: 0 7px; font-weight: 800; }
.hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.hub a.card { margin: 0; }
.qr-card { display: grid; grid-template-columns: 160px 1fr; gap: 18px; align-items: start; }
.qr-card img { width: 160px; height: 160px; border-radius: 10px; background: #fff; padding: 6px; }
@media (max-width: 520px) { .qr-card { grid-template-columns: 1fr; } .qr-card img { margin: 0 auto; width: 220px; height: 220px; } }
.inline { display: inline; }
.mt { margin-top: 18px; }
.mb0 { margin-bottom: 0; }
code { background: var(--card2); border-radius: 6px; padding: 2px 6px; font-size: .88em; word-break: break-all; }
.check-big { width: 96px; height: 96px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; margin: 0 auto 18px; }
.check-big .ico { width: 52px; height: 52px; }
.hide { display: none !important; }
@media print { .topbar, .mainnav, .no-print { display: none !important; } body { background: #fff; color: #000; } }

/* Visningsskjerm og kiosk på banen */
.display { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding: 2.5vh 4vw; gap: 2vh; }
.d-head { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: clamp(1rem, 2.6vh, 1.6rem); gap: 12px; }
.d-club { display: flex; gap: 12px; align-items: center; }
.d-clock { font-variant-numeric: tabular-nums; color: var(--muted); }
.d-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.d-main h1 { font-size: clamp(2rem, 6vh, 4rem); margin-bottom: .2em; }
.d-lead { color: var(--muted); font-size: clamp(1rem, 2.6vh, 1.6rem); margin-bottom: 2.5vh; }
.d-qr { background: #fff; border-radius: 24px; padding: 2vh; width: min(62vh, 86vw); aspect-ratio: 1; display: grid; place-items: center; }
.d-qr img { width: 100%; height: 100%; image-rendering: pixelated; }
.d-wait { color: #333; font-size: clamp(1rem, 2.4vh, 1.4rem); padding: 1em; }
.d-next { margin-top: 2.5vh; font-size: clamp(1rem, 2.8vh, 1.7rem); font-variant-numeric: tabular-nums; color: var(--link); min-height: 1.5em; font-weight: 700; }
.d-fs { position: fixed; right: 16px; bottom: 16px; background: var(--card2); color: var(--muted); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font: inherit; font-size: .85rem; cursor: pointer; opacity: .7; }
.d-fs:hover { opacity: 1; }
:fullscreen .d-fs { display: none; }
.kgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.kgrid button { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 8px; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text); font: inherit; font-weight: 700; cursor: pointer; min-height: 150px; box-shadow: var(--shadow); }
.kgrid button:hover, .kgrid button:focus-visible { border-color: var(--accent); }
.kgrid .done { opacity: .55; }
.kgrid .av { width: 84px; height: 84px; font-size: 1.8rem; }
.pinpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 340px; margin: 0 auto; }
.pinpad button { min-height: 72px; font-size: 1.8rem; font-weight: 800; border-radius: 16px; background: var(--card2); border: 1px solid var(--line); color: var(--text); cursor: pointer; }
.pinpad button:active { background: var(--accent); color: var(--accent-ink); }
.pindots { display: flex; justify-content: center; gap: 14px; margin: 16px 0 22px; }
.pindots span { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--muted); }
.pindots span.on { background: var(--text); border-color: var(--text); }
.overlay { position: fixed; inset: 0; background: color-mix(in srgb, var(--bg) 92%, transparent); display: grid; place-items: center; z-index: 50; padding: 16px; }
.overlay .card { width: min(440px, 100%); }

/* Betaling */
.btn.vipps { background: #ff5b24; color: #fff; }
.btn.vipps .ico { width: 1.5em; height: 1.5em; }
.pay-row { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pay-row .grow { flex: 1; }
.spinner { width: 54px; height: 54px; border-radius: 50%; border: 5px solid var(--card2); border-top-color: #ff5b24; margin: 0 auto 18px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.terms-text.custom { white-space: pre-line; }
.terms-text h2 { font-size: 1.1rem; margin-top: 1em; }
.fee { font-size: .85rem; }

/* Profilbilder */
.av { border-radius: 50%; object-fit: cover; flex: none; display: inline-grid; place-items: center; background: linear-gradient(135deg, #3d6df0, #7c4ef0); color: #fff; font-weight: 800; vertical-align: middle; }
.av-xs { width: 26px; height: 26px; font-size: .7rem; }
.av-sm { width: 40px; height: 40px; font-size: .9rem; }
.av-md { width: 56px; height: 56px; font-size: 1.2rem; }
.av-lg { width: 110px; height: 110px; font-size: 2.4rem; }
.av-edit { position: relative; display: inline-block; margin-bottom: 14px; }
.av-edit label { position: absolute; right: -4px; bottom: -4px; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; cursor: pointer; margin: 0; border: 3px solid var(--card); }
.av-edit input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.person { display: flex; gap: 12px; align-items: center; min-width: 0; }
.person .nm { min-width: 0; }

/* Installasjon / uten nett */
.netbar { position: sticky; top: 0; z-index: 60; background: var(--warn); color: var(--bg); text-align: center; font-weight: 700; font-size: .9rem; padding: 6px 12px; }
.theme-switch button { display: inline-flex; align-items: center; background: var(--card2); color: var(--text); border-radius: 8px; font: inherit; cursor: pointer; }

/* Uten nett, installering og varsler */
.receipt .stamp.warn { background: var(--warn); color: var(--bg); }
.toast { position: fixed; left: 12px; right: 12px; bottom: calc(var(--nav-h) + 14px + env(safe-area-inset-bottom)); z-index: 70; max-width: 560px; margin: 0 auto; box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.flash.toast { display: block; background: var(--card); color: var(--text); border: 1px solid var(--line); border-left: 6px solid var(--ok); font-weight: 600; }
.flash.toast.err { border-left-color: var(--err); }
.flash.toast.info { border-left-color: var(--blue); }
.receipt:has(.stamp.warn) { border-color: var(--warn); }
ul.list { list-style: none; padding: 0; margin: 0; }
ul.list li { padding: 10px 12px; background: var(--card2); border-radius: 10px; }
.install { display: flex; gap: 12px; align-items: flex-start; }
.install .ico { width: 28px; height: 28px; flex: none; color: var(--link); }
.install p { margin: 0 0 8px; }
.notify-list { display: grid; gap: 4px; margin: 6px 0 12px; }
[hidden] { display: none !important; }

/* Endre / kopier / slett for aktiviteter */
.ev-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ev-actions form { margin: 0; }
td .ev-actions { flex-wrap: nowrap; justify-content: flex-end; }
.btn.danger-text { color: var(--err-text); }
.del-menu { position: relative; }
.del-menu > summary { list-style: none; cursor: pointer; }
.del-menu > summary::-webkit-details-marker { display: none; }
.del-menu .pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 210px; display: grid; gap: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
fieldset.scope { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; display: grid; gap: 6px; background: var(--card2); }
fieldset.scope legend { font-weight: 700; padding: 0 6px; font-size: .95rem; }

/* Menyen skal ligge over bunnmenyen og kunne rulles på lave skjermer */
.menu-pop { max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); overflow-y: auto; overscroll-behavior: contain; }

/* Vakter */
.duty-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.duty-chips:empty { display: none; }
.chip-p { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--card2); border: 1px solid var(--line); color: var(--text); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.duty-search { position: relative; }
.duty-search .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.duty-search input { padding-left: 40px; }
.duty-list { max-height: 240px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; margin-top: 8px; padding: 4px; }
.duty-list label { padding: 8px 10px; border-radius: 8px; gap: 10px; }
.duty-list label:hover { background: var(--card2); }
.duty { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; font-size: .92rem; }
.duty .who { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.duty .lbl { font-weight: 700; color: var(--muted); }
.ev.mine-duty { box-shadow: 0 0 0 2px var(--k) inset; }
.tag.duty-me { background: var(--k); color: var(--k-ink); }
.vakt-remind { margin: -4px 0 6px 34px; display: grid; gap: 8px; }
.vr-row { display: grid; grid-template-columns: 96px 76px 96px auto; gap: 8px; align-items: center; }
.vr-row input, .vr-row select { min-height: 44px; padding: 8px 10px; }
@media (max-width: 420px) { .vakt-remind { margin-left: 0; } .vr-row { grid-template-columns: 1fr 70px 90px auto; } }

/* Systemadministrasjon */
.brand .logo.sys { background: var(--text); color: var(--bg); }
.sys-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 18px; }
.sys-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-weight: 600; font-size: .92rem; }
.sys-tabs a.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.sys-tabs a:hover { text-decoration: none; }
.tag.off { background: var(--err-bg); color: var(--err-text); }
.kvlist { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.kvlist dt { color: var(--muted); }
.kvlist dd { margin: 0; font-weight: 600; }
.danger-zone { border-color: var(--err); }
.grid2 { display: grid; gap: 14px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.grid2 > .card { margin: 0; }
.grid2 + .card { margin-top: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.meta .duty { margin-top: 0; display: inline-flex; flex-wrap: nowrap; align-items: center; gap: 6px; }
/* Mitt eget navn i vaktfeltet: fet og i samme farge som «Din vakt»-merket */
.meta .duty .me { font-weight: 800; background: var(--k); color: var(--k-ink); padding: 1px 8px; border-radius: 999px; }
/* «Sjekk inn et medlem»: navn på egen linje over knappene på smale skjermer */
.entry.cand .body { min-width: 0; }
.entry.cand .btns { flex-wrap: nowrap; }
@media (max-width: 560px) { .entry.cand { flex-wrap: wrap; } .entry.cand .body { flex: 1 1 calc(100% - 60px); } .entry.cand .btns { width: 100%; justify-content: flex-end; } }

/* Kø på banen */
.qsec h2 { font-size: 1.15rem; }
.qrow { align-items: center; }
.qrow .qnum { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--card2); color: var(--text); display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; }
.qrow.is-next { border-color: var(--ok); box-shadow: 0 0 0 1px var(--ok) inset; }
.qrow.is-next .qnum { background: var(--ok); color: var(--ok-ink); }
.qrow.out { border-left: 4px solid var(--accent); }
.qrow.done { opacity: .78; }
.qrow .side { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; }
.qrow .side form { margin: 0; }
@media (max-width: 640px) { .qrow { flex-wrap: wrap; } .qrow .body { flex: 1 1 calc(100% - 110px); } .qrow .side { width: 100%; } }
.qstatus { display: flex; gap: 12px; align-items: center; text-align: left; margin: 14px auto 0; max-width: 340px; padding: 12px 14px; border-radius: 14px; background: var(--card2); }
.qstatus .n { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 1.4rem; background: var(--accent); color: var(--accent-ink); }
.qstatus .n .ico { width: 24px; height: 24px; }
.qstatus.out .n { background: var(--ok); color: var(--ok-ink); }
.qstatus.done .n { background: var(--card); color: var(--muted); border: 1px solid var(--line); }
.qrow .side { flex-direction: row; align-items: center; }
@media (max-width: 640px) { .qrow .side { justify-content: flex-start; padding-left: 52px; } .qrow.out .side, .qrow.done .side { padding-left: 0; } }
/* Meldinger */
.chips-check { display: grid; gap: 2px; margin: 4px 0 6px; }
.msg-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 1.02rem; line-height: 1.6; }
.msg-item.unread { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.msg-item.unread h3 { font-weight: 800; }
.msg-item .excerpt { color: var(--muted); margin-top: 4px; }
.dot-new { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: middle; }
.sms-preview { white-space: pre-wrap; background: var(--card2); border-radius: 14px 14px 14px 4px; padding: 10px 14px; max-width: 360px; font-size: .95rem; }
.badge-n.inline { margin-left: auto; }


/* ===== EIT «Standplass»: runde former, stempler og skrivemaskintall ===== */
.mono, .stat .v, .receipt .time, .entry .date b, .qnum, .qstatus .n, .d-clock, .d-next, .day-h b, .pindots, .seg-n { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.topbar { border-bottom: 0; }
.topbar .in { gap: 8px; }
.logo { border-radius: 12px; }
.logo.txt { width: auto; height: 34px; padding: 0 9px; font-family: var(--mono); font-weight: 600; font-size: .95rem; letter-spacing: .06em; }
.brand { font-weight: 600; }
.iconbtn { border-radius: 14px; position: relative; }
.iconbtn.round { width: 44px; height: 44px; border-radius: 22px; background: var(--card); }
.iconbtn.round.on, .iconbtn.accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.iconbtn .dot, .menu-btn .dot { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font: 600 11px/20px var(--mono); text-align: center; }
.menu-btn { border-radius: 22px; }
.menu-pop { border-radius: 20px; padding: 8px; }
.menu-pop a, .menu-pop button { border-radius: 12px; }
.badge-n { background: var(--accent); color: var(--accent-ink); font-family: var(--mono); }
.card { border-radius: var(--radius); }
.btn { border-radius: 999px; font-weight: 700; letter-spacing: .02em; }
.btn.sm { border-radius: 999px; }
.btn.block { min-height: 58px; }
.btn.xl { border-radius: 999px; min-height: 64px; font-size: 1.15rem; letter-spacing: .08em; text-transform: uppercase; }
.btn.ghost { background: var(--card); }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=date], input[type=time], input[type=number], input[type=search], input[type=tel], select, textarea { border-radius: 14px; border-width: 1px; }
.search-row .s input { border-radius: 999px; }
.chip span { border-radius: 16px; }
.flash { border-radius: 16px; }
.table-wrap { border-radius: var(--radius); }
th { letter-spacing: .1em; }
.stat { border-radius: 18px; }
.stat .k { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.stat .v { font-weight: 600; }
.entry { border-radius: 18px; }
.entry .date { border-radius: 12px; }
.entry .date b { font-weight: 600; }
.month-h { font-family: var(--mono); font-weight: 600; letter-spacing: .1em; }
.seg { border-radius: 999px; background: var(--card2); }
.seg a { border-radius: 999px; }
.seg a.on { background: var(--card); color: var(--text); box-shadow: 0 0 0 1px var(--line); font-weight: 700; }
.admin-tabs a { border-radius: 999px; }
.admin-tabs a.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.admin-tabs .n { background: var(--accent); color: var(--accent-ink); }
.sys-tabs a { border-radius: 999px; }
.tag { font-weight: 600; }
.legend a.tag { border-radius: 999px; }
.tile .ic { border-radius: 16px; }
.qrow .qnum, .qstatus .n { border-radius: 14px; }
.qstatus { border-radius: 18px; background: var(--accent-soft); }
.kgrid button, .pinpad button { border-radius: 20px; }
.month a.mday { border-radius: 12px; }

/* Kalender: kort med fargestripe i stedet for farget bakgrunn */
/* Kalender: dager i egne bokser med ramme, aktiviteter i bokser farget etter type (som før), runde former */
.day { border-radius: var(--radius); padding: 14px; }
.day-h b { font-weight: 700; font-family: var(--mono); }
.day.compact { border-radius: 14px; }
.ev { border-radius: 14px; border-left-width: 5px; }
.ev.mine-duty { box-shadow: 0 0 0 2px var(--k) inset; }

/* Hjem: banestatus, aktivitetskrav som segmenter og neste-listen */
.hello { font-size: 1.5rem; margin: 2px 0 14px; }
.status { padding: 0; overflow: hidden; }
.status .st-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.pill-ok { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); font-weight: 600; }
.pill-ok::before { content: ""; width: 7px; height: 7px; border-radius: 4px; background: currentColor; }
.status .cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0 12px; }
.status .cell { background: var(--card2); border-radius: 14px; padding: 10px 12px; }
.status .cell .k { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.status .cell .v { font-family: var(--mono); font-size: 1.3rem; font-weight: 500; margin-top: 2px; }
.status .st-f { padding: 12px 16px 14px; color: var(--muted); font-size: .95rem; }
.status .st-f b { color: var(--text); font-weight: 600; }
.status .st-t { padding: 0 16px 2px; font-size: 1.25rem; font-weight: 700; }
.segbar { display: grid; gap: 5px; margin-top: 10px; }
.segbar span { height: 14px; border-radius: 7px; box-shadow: inset 0 0 0 1.5px var(--line); }
.segbar span.on { background: var(--accent); box-shadow: none; }
.segbar.done span.on { background: var(--ok); }
.segbar.cont { grid-template-columns: 1fr !important; }
.segbar.cont span { position: relative; overflow: hidden; }
.segbar.cont span i { position: absolute; inset: 0 auto 0 0; background: var(--accent); border-radius: 7px; }
.goal-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.goal-h h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0; }
.goal-n { font-family: var(--mono); font-size: 1.6rem; font-weight: 600; }
.goal-n small { color: var(--muted); font-size: 1rem; }
.nextlist { display: grid; gap: 8px; margin-bottom: 14px; }
.nextlist a { display: flex; gap: 12px; align-items: center; padding: 12px 14px; color: var(--text); border-radius: 14px; border-left: 5px solid var(--k); background: color-mix(in srgb, var(--k) 13%, var(--card)); }
.nextlist a:hover { text-decoration: none; filter: brightness(1.05); }
.nextlist .d { font-family: var(--mono); font-size: .75rem; font-weight: 600; letter-spacing: .04em; padding: 4px 8px; border-radius: 8px; background: color-mix(in srgb, var(--k) 22%, var(--card)); color: var(--text); white-space: nowrap; flex: none; }
.nextlist .t { flex: 1; min-width: 0; font-weight: 600; }
.nextlist .t small { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 400; color: var(--muted); font-size: .88rem; margin-top: 2px; }
.nextlist .r { font-family: var(--mono); font-size: .82rem; color: var(--muted); flex: none; }
.dotnew { width: 9px; height: 9px; border-radius: 5px; background: var(--accent); flex: none; }

/* Stempler: «Godkjent», «Venter», «Avvist» */
.stampx { display: inline-block; font-family: var(--mono); font-weight: 600; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 8px; color: var(--ok); box-shadow: inset 0 0 0 2px currentColor; transform: rotate(-4deg); white-space: nowrap; }
.stampx.wait { color: var(--warn); box-shadow: none; outline: 2px dashed currentColor; outline-offset: -2px; transform: none; }
.stampx.no { color: var(--err); transform: rotate(3deg); }
.entry:nth-child(odd) .stampx:not(.wait) { transform: rotate(3deg); }

/* Treningsbevis (kvitteringen etter innsjekk) */
.bevis { padding: 0; overflow: hidden; position: relative; text-align: left; }
.bevis .b-top { padding: 18px 20px 16px; position: relative; }
.bevis .b-h { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; color: var(--muted); }
.bevis .b-state { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 4px 12px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); font-family: var(--mono); font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.bevis .b-state.warn { background: var(--warn-bg); color: var(--warn); }
.bevis .time { font-family: var(--mono); font-size: clamp(4rem, 22vw, 5.8rem); font-weight: 500; line-height: .95; letter-spacing: -.04em; margin: 10px 0 0; }
.bevis .b-date { font-family: var(--mono); font-size: .88rem; color: var(--muted); margin-top: 8px; text-transform: uppercase; }
.bevis .b-who { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding-right: 112px; min-height: 112px; }
.bevis .b-who > div { min-width: 0; }
.bevis .b-who h2 { margin: 0; font-size: 1.5rem; }
.bevis .b-who .small { color: var(--muted); }
.bevis .seal { position: absolute; right: 12px; bottom: 6px; width: 112px; height: 112px; border-radius: 50%; box-shadow: inset 0 0 0 4px currentColor; color: var(--ok); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; transform: rotate(-14deg); opacity: .9; font-family: var(--mono); pointer-events: none; }
.bevis .seal::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; }
.bevis .seal .s1, .bevis .seal .s3 { font-size: .66rem; letter-spacing: .18em; font-weight: 600; max-width: 84px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bevis .seal .s2 { font-size: 1.05rem; font-weight: 600; letter-spacing: .06em; margin: 3px 0; }
.bevis .seal.wait { color: var(--warn); box-shadow: none; outline: 3px dashed currentColor; outline-offset: -3px; }
.bevis .seal.wait::before { display: none; }
.bevis .perf { position: relative; height: 22px; display: flex; align-items: center; }
.bevis .perf::before, .bevis .perf::after { content: ""; position: absolute; width: 22px; height: 22px; border-radius: 11px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.bevis .perf::before { left: -12px; } .bevis .perf::after { right: -12px; }
.bevis .perf span { flex: 1; margin: 0 18px; border-top: 2px dashed var(--line); }
.bevis dl { margin: 0; padding: 12px 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.bevis dl div { background: var(--card2); border-radius: 14px; padding: 10px 12px; min-width: 0; }
.bevis dt { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.bevis dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.bevis .qstatus { margin: 0 14px 14px; max-width: none; }
@media (max-width: 360px) { .bevis .seal { width: 96px; height: 96px; } .bevis .b-who { padding-right: 96px; } .bevis .seal .s2 { font-size: .85rem; } }
.auth .logo.big.txt { width: max-content; height: 72px; padding: 0 20px; border-radius: 22px; font-size: 1.9rem; display: flex; align-items: center; justify-content: center; }
.d-club .logo.txt { height: auto; padding: 4px 12px; font-size: 1em; }
.btns > .btn { white-space: nowrap; }
@media (max-width: 400px) { .btns[style*=grid] > .btn { padding-left: 10px; padding-right: 10px; font-size: .95rem; } }
.theme-switch button { border-radius: 999px; }
/* Logo øverst til venstre: blinkskive med «eit» */
.topbar .logo { width: 40px; height: 40px; border-radius: 12px; }
.logo .mark { width: 34px; height: 34px; display: block; }
