:root {
  --bg: #f4f1ea; --card: #fffdf8; --ink: #22272b; --muted: #6a7075; --line: #d9d3c5;
  --accent: #0f5c5c; --accent-ink: #fff; --warn-bg: #fdf3d3; --warn-line: #e3c766;
  --wood: #e9dcc3; --wood-line: #b9a47c;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
main { max-width: 960px; margin: 0 auto; padding: 20px 16px 60px; }
h1 { font-size: 1.6rem; line-height: 1.2; margin: 12px 0 14px; text-wrap: balance; }
h2 { font-size: 1.15rem; margin: 34px 0 10px; }
h3 { font-size: 1rem; margin: 0 0 2px; }
p { margin: 0 0 10px; }
a { color: var(--accent); }
code { background: #ece7da; padding: 2px 6px; border-radius: 4px; word-break: break-all; font-size: .9em; }
.muted { color: var(--muted); font-size: .9rem; }
.small { font-size: .85rem; }

.top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; padding: 12px 16px;
  background: var(--card); border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: .01em; }
.top nav { display: flex; gap: 4px; flex: 1; }
.top nav a { padding: 6px 12px; border-radius: 999px; text-decoration: none; color: var(--ink); }
.top nav a[aria-current] { background: var(--accent); color: var(--accent-ink); }
.who { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: .9rem; margin: 0; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.narrow { max-width: 420px; margin: 6vh auto 0; }
.banner { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 10px; padding: 10px 14px; }
.flash, .error { border-radius: 10px; padding: 10px 14px; }
.flash { background: #e2f0ee; border: 1px solid #a9cfca; }
.error { background: #fbe6e2; border: 1px solid #e0a79c; }

label { display: block; margin: 0 0 14px; font-weight: 600; font-size: .95rem; }
input, select, textarea { display: block; width: 100%; margin-top: 5px; padding: 11px 12px; font: inherit;
  color: inherit; background: #fff; border: 1px solid #b8b2a4; border-radius: 8px; }
input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible, button:focus-visible,
summary:focus-visible { outline: 3px solid #e0a100; outline-offset: 2px; }
.btn { display: inline-block; padding: 11px 18px; font: inherit; font-weight: 600; text-align: center;
  text-decoration: none; cursor: pointer; color: var(--ink); background: #fff; border: 1px solid #b8b2a4; border-radius: 8px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.wide { width: 100%; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }
.or { text-align: center; color: var(--muted); margin: 16px 0 12px; }
.qr { display: block; margin: 8px auto 12px; background: #fff; border-radius: 8px; }

.tegning { margin: 18px 0 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.tegning svg { display: block; width: 100%; height: auto; }
.tegning figcaption { color: var(--muted); font-size: .9rem; padding: 4px 8px 6px; }
.vegg { fill: #faf8f2; stroke: #8b8676; stroke-width: 8; }
.gulv { stroke: #4b4a45; stroke-width: 16; }
.el rect { stroke-width: 6; }
.el text { font-size: 84px; fill: #4a4335; font-family: inherit; }
.el.skap rect { fill: var(--wood); stroke: var(--wood-line); }
.el.plate rect { fill: #a98f63; stroke: #8a7350; }
.el.tv rect { fill: #23282d; stroke: #0d1013; }
.el.tv text { fill: #cfd6dc; }
.el.lyd rect { fill: #4b5257; stroke: #2b3034; }
.el.lyd text { fill: #fff; font-size: 56px; }
.ror { stroke: var(--accent); stroke-width: 12; stroke-dasharray: 36 28; stroke-linecap: round; }
.maal line { stroke: #6a7075; stroke-width: 5; }
.maal text { font-size: 88px; fill: #4b5257; }
.punkt circle { fill: #e0a100; stroke: #fff; stroke-width: 10; }
.punkt text { font-size: 88px; font-weight: 700; fill: #22272b; }
.punkt:hover circle, .punkt:focus circle { fill: #ffc21a; }

.punkter { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.punkter li { display: flex; gap: 14px; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 16px; scroll-margin-top: 12px; }
.punkter li > div { flex: 1; min-width: 0; }
.punkter li:target { border-color: #e0a100; box-shadow: 0 0 0 3px #f4dc9a; }
.nr { flex: none; width: 34px; height: 34px; border-radius: 50%; background: #e0a100; color: #22272b;
  font-weight: 700; display: grid; place-items: center; }
.tag { font-size: .75rem; font-weight: 600; background: #ece7da; color: var(--muted); padding: 2px 8px;
  border-radius: 999px; vertical-align: middle; white-space: nowrap; }
.kom { border-left: 3px solid var(--line); padding: 4px 0 4px 12px; margin: 10px 0; }
.kom p { margin: 0; }
.kom-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.skriv summary { cursor: pointer; color: var(--accent); font-size: .92rem; width: fit-content; padding: 4px 0; }
.skriv textarea { margin: 8px 0; }

.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; background: var(--card); }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.fakta th { width: 9.5em; font-weight: 600; }
.num { white-space: nowrap; font-variant-numeric: tabular-nums; }
tr.av td { color: var(--muted); text-decoration: line-through; }
.knapper { white-space: nowrap; }
.knapper form { display: inline-block; margin: 0 10px 0 0; }
.logg td { font-size: .85rem; }
.filer { padding-left: 20px; }
.lenke { border-color: #e0a100; margin-bottom: 18px; }
.skjema { max-width: 520px; }

button.link.slett { color: #a8321c; }
.tag.glemt { background: #fbe6e2; border-color: #e0a79c; }
.tekst { max-width: 680px; margin: 4vh auto 0; }
.tekst h2 { font-size: 1.05rem; margin: 1.4em 0 .3em; }
.tekst li { margin-bottom: .4em; }
