/* Planklar – web shell: paper, graphite ink and one survey-orange accent, as on the landing page */
@font-face { font-family: "Schibsted Grotesk"; font-weight: 400 900; font-display: swap; src: url("fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF; }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 400 900; font-display: swap; src: url("fonts/schibsted-grotesk-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
:root { --ink:#121417; --ink-2:#3a3f45; --muted:#5f656b; --line:#d8d4c9; --wash:#f4f2ec; --brand:#121417; --brand-ink:#121417; --brand-wash:#ebe8df; --accent:#ff5b22; --signal-ink:#b83a0a; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--wash); color: var(--ink); font-family: "Schibsted Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--brand); text-underline-offset: 3px; }
.topbar { background: var(--wash); border-bottom: 1px solid var(--line); }
.topbar .inner { max-width: 1120px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 20px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 19px; color: var(--ink); text-decoration: none; letter-spacing: -0.03em; }
.logo svg { width: 26px; height: 26px; }
.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a { padding: 7px 11px; border-radius: 7px; color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav a:hover, .nav a.on { background: var(--brand-wash); color: var(--brand-ink); }
main { max-width: 1120px; margin: 0 auto; padding: 28px 20px 60px; }
.hero { background: #101316; color: #f4f2ec; border-radius: 12px; padding: 40px 36px 34px; position: relative; overflow: hidden; }
.hero h1 { font-size: clamp(26px, 4vw, 38px); line-height: 1.1; margin: 0 0 10px; letter-spacing: -0.02em; max-width: 720px; }
.hero p { margin: 0 0 22px; color: #b9bcbf; max-width: 680px; font-size: 16px; line-height: 1.5; }
.search { position: relative; max-width: 720px; }
.search form { display: flex; gap: 8px; flex-wrap: wrap; }
.search input[type=text] { flex: 1 1 320px; font: inherit; font-size: 17px; padding: 14px 16px; border-radius: 10px; border: 0; outline: none; box-shadow: 0 2px 0 rgba(0,0,0,.08); }
.search select { font: inherit; font-size: 15px; padding: 12px; border-radius: 10px; border: 0; }
.btn { font: inherit; font-weight: 600; font-size: 15px; padding: 13px 18px; border-radius: 8px; border: 0; background: var(--accent); color: var(--ink); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.btn.secondary { background: #fff; color: var(--brand-ink); border: 1px solid var(--line); }
.btn.primary { background: var(--brand); color: #fff; }
.btn:disabled { opacity: .6; cursor: wait; }
.suggest { position: absolute; left: 0; right: 0; top: 54px; background: #fff; color: var(--ink); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.18); z-index: 20; overflow: hidden; max-width: 720px; }
.suggest button { display: block; width: 100%; text-align: left; padding: 10px 14px; border: 0; background: #fff; font: inherit; cursor: pointer; border-bottom: 1px solid var(--line); }
.suggest button:hover, .suggest button.on { background: var(--brand-wash); }
.suggest small { color: var(--muted); margin-left: 6px; }
.examples { margin-top: 14px; font-size: 14px; color: #b9bcbf; }
.examples a { color: #fff; margin-right: 10px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 26px 0; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.feature h3 { margin: 0 0 6px; font-size: 16px; }
.feature p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px 28px; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; align-items: center; }
.toolbar .spacer { flex: 1; }
.loading { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 60px 20px; color: var(--ink-2); }
.spinner { width: 38px; height: 38px; border-radius: 50%; border: 4px solid var(--brand-wash); border-top-color: var(--brand); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.steps { list-style: none; padding: 0; margin: 0; font-size: 14px; color: var(--muted); }
.steps li.done { color: var(--brand); }
.error { background: #fdecea; color: #7a1f16; border: 1px solid #f4c6c0; border-radius: 10px; padding: 14px 16px; }
#map { height: 420px; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 18px; }
.formgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.formgrid label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.formgrid input, .formgrid select, .formgrid textarea { font: inherit; font-weight: 400; font-size: 15px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.formgrid .wide { grid-column: 1 / -1; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.card img { width: 100%; border-radius: 8px; border: 1px solid var(--line); }
.kbd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--wash); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; font-size: 13px; word-break: break-all; }
pre.code { background: #0f1720; color: #e6edf3; padding: 14px 16px; border-radius: 10px; overflow-x: auto; font-size: 13px; }
footer.site { max-width: 1120px; margin: 0 auto; padding: 0 20px 40px; color: var(--muted); font-size: 13px; }
footer.site .bunntekst { margin-top: 10px; }
footer.site .bunntekst p { margin: 0 0 4px; }
footer.site .bunntekst a { color: inherit; }
@media (max-width: 640px) {
  .hero { padding: 28px 18px; border-radius: 12px; }
  .panel { padding: 16px; }
  .r-summary { grid-template-columns: 1fr !important; }
  .lights { grid-template-columns: 1fr 1fr !important; }
  .r-head { flex-direction: column; }
  .r-head .meta { text-align: left !important; }
}
/* Tegn hus */
.page-title { margin: 0 0 6px; font-size: 26px; letter-spacing: -0.01em; }
.lead { color: var(--ink-2); margin: 0 0 18px; line-height: 1.5; max-width: 760px; }
.tegn-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px 14px; }
.tegn-form label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.tegn-form input, .tegn-form select { font: inherit; font-weight: 400; font-size: 15px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.tegn-form .wide { grid-column: 1 / -1; }
#res .panel { margin-top: 16px; }
.kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 14px 0; }
.kpi div { background: var(--wash); border-radius: 10px; padding: 12px 14px; }
.kpi span { display: block; font-size: 12px; color: var(--muted); }
.kpi b { font-size: 20px; }
.meter { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; margin: 0 0 10px; }
.meter span { display: block; height: 100%; background: currentColor; border-radius: 4px; }
.sheets { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.sheets figure { margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.sheets img { width: 100%; display: block; }
.sheets figcaption { padding: 8px 10px; font-size: 13px; color: var(--ink-2); border-top: 1px solid var(--line); }
.check { padding: 12px 14px; border-radius: 10px; margin: 10px 0; background: var(--wash); border-left: 4px solid #9aa3af; }
.check.gronn { background: #eaf6ee; border-color: #2e8b57; }
.check.gul { background: #fdf6e3; border-color: #e0a800; }
.check.rod { background: #fbeaea; border-color: #c0392b; }
.issues li.feil { color: #a12a1e; }
/* Shared bits for situasjonsplan, regelsjekk and prosjekt */
.hint { color: var(--muted); font-size: 13px; line-height: 1.45; margin: 0; }
.muted { color: var(--muted); }
.sg-wrap { position: relative; display: block; }
.sg-wrap .suggest { top: calc(100% + 4px); }
.tegn-form .sub { display: contents; }
.tegn-form .sub[hidden] { display: none; }
.tegn-form input[type=file] { padding: 8px; background: var(--wash); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #fff; flex-wrap: wrap; }
.seg label { flex-direction: row !important; align-items: center; gap: 6px !important; padding: 9px 14px; cursor: pointer; font-weight: 600; color: var(--ink-2); border-right: 1px solid var(--line); }
.seg label:last-child { border-right: 0; }
.seg input { margin: 0; accent-color: var(--brand); }
.seg label:has(input:checked) { background: var(--brand-wash); color: var(--brand-ink); }
.fieldlabel { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; display: block; }
.ctx { background: var(--brand-wash); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 0 0 16px; font-size: 14px; }
.meta-line { color: var(--ink-2); font-size: 14px; margin: -6px 0 14px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.meta-line b { color: var(--ink); }
.warn { background: var(--gul-wash); border: 1px solid #f3e1a8; border-radius: 10px; padding: 10px 14px 10px 30px; margin: 0 0 14px; font-size: 14px; color: #5c4300; }
.warn li { margin: 3px 0; }
.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.split figure { margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.split figure img { width: 100%; display: block; }
.split figcaption { padding: 7px 10px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }
.side h3 { margin: 0 0 6px; font-size: 15px; }
.side p { margin: 0 0 12px; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
h3.sec { margin: 22px 0 8px; font-size: 16px; }
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.grid.web { font-size: 14px; }
table.grid.web th, table.grid.web td { padding: 8px 10px; }
table.grid.web td.num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.src { display: block; font-size: 13px; }
.src .quote { font-size: 12px; }
.detail { display: block; font-weight: 400; color: var(--muted); font-size: 12px; margin-top: 2px; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--gra-wash); color: var(--ink-2); white-space: nowrap; }
.badge.gronn { background: var(--gronn-wash); color: #1e5e29; }
.badge.gul { background: var(--gul-wash); color: #7a5600; }
.badge.rod { background: var(--rod-wash); color: #8f2419; }
.badge.gra { background: var(--gra-wash); color: var(--ink-2); }
table.grid.web .dot { margin-right: 6px; vertical-align: -1px; }
.verdict { display: flex; gap: 14px; align-items: flex-start; border-radius: 12px; padding: 16px 18px; margin: 0 0 16px; border: 1px solid var(--line); background: var(--gra-wash); }
.verdict.gronn { background: var(--gronn-wash); border-color: #cde8d2; }
.verdict.gul { background: var(--gul-wash); border-color: #f3e1a8; }
.verdict.rod { background: var(--rod-wash); border-color: #f4c6c0; }
.verdict .big { width: 16px; height: 16px; border-radius: 50%; flex: none; margin-top: 4px; background: var(--gra); }
.verdict.gronn .big { background: var(--gronn); } .verdict.gul .big { background: var(--gul); } .verdict.rod .big { background: var(--rod); }
.verdict p { margin: 0; font-size: 15px; line-height: 1.5; }
.verdict .tags { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
details.more { margin: 10px 0; }
details.more > summary, details.sources > summary { cursor: pointer; font-weight: 600; color: var(--brand-ink); padding: 6px 0; }
details.sources ol { font-size: 13px; color: var(--ink-2); padding-left: 20px; }
details.sources li { margin: 3px 0; word-break: break-word; }
.next { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.btn.small { padding: 8px 12px; font-size: 14px; border-radius: 8px; }
/* Projects */
.plist { list-style: none; margin: 0; padding: 0; }
.plist li { display: flex; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.plist li a.t { font-weight: 600; text-decoration: none; }
.plist li .spacer { flex: 1; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.cols > .panel { min-width: 0; }
.timeline { list-style: none; margin: 8px 0 4px; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; counter-reset: fase; }
.timeline li { position: relative; padding: 30px 6px 0; text-align: center; font-size: 13px; color: var(--muted); }
.timeline li::before { content: ""; position: absolute; top: 10px; left: 0; right: 0; height: 3px; background: var(--line); }
.timeline li:first-child::before { left: 50%; } .timeline li:last-child::before { right: 50%; }
.timeline li::after { counter-increment: fase; content: counter(fase); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--line); font-size: 11px; font-weight: 700; line-height: 18px; color: var(--muted); box-sizing: border-box; }
.timeline li b { display: block; color: var(--ink-2); font-weight: 600; }
.timeline li.fullfort::before { background: var(--brand); }
.timeline li.fullfort::after { background: var(--brand); border-color: var(--brand); color: #fff; content: "✓"; }
.timeline li.pagar::after { border-color: var(--accent); background: #ffe7dc; color: var(--signal-ink); }
.timeline li.pagar b { color: var(--ink); }
.timeline li.hoppet_over b { text-decoration: line-through; color: var(--muted); }
.docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.doc { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; background: #fff; }
.doc.has { border-color: #cde8d2; background: #fbfefc; }
.doc .h { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; font-weight: 600; }
.doc .h > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.doc .h .badge { flex: none; }
.doc .files { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; }
.doc .files a { background: var(--wash); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; text-decoration: none; }
.doc .act { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: auto; }
.doc .msg { font-size: 13px; }
.doc .msg .error { padding: 8px 10px; font-size: 13px; }
.status-finnes, .status-oppfylt, .status-vedlagt { background: var(--gronn-wash); color: #1e5e29; }
.status-mangler, .status-passert { background: var(--rod-wash); color: #8f2419; }
.status-delvis, .status-kommende, .status-avklar_med_kommunen { background: var(--gul-wash); color: #7a5600; }
.status-lages_av_soker { background: var(--brand-wash); color: var(--brand-ink); }
.status-ikke_relevant, .status-ukjent { background: var(--gra-wash); color: var(--ink-2); }
.inline-form { display: grid; grid-template-columns: 2fr 1fr 2fr auto; gap: 8px; align-items: end; }
.inline-form > * { min-width: 0; }
.inline-form select, .inline-form input { width: 100%; }
.inline-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.inline-form input, .inline-form select { font: inherit; font-weight: 400; font-size: 15px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; min-width: 0; }
.steps-next { margin: 0; padding-left: 20px; }
.steps-next li { margin: 5px 0; line-height: 1.45; }
@media (max-width: 860px) {
  .split, .cols { grid-template-columns: 1fr; }
  .inline-form { grid-template-columns: 1fr 1fr; }
  .inline-form .wide2 { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .topbar .inner { flex-wrap: wrap; gap: 8px; padding: 10px 16px; }
  .nav { margin-left: 0; width: 100%; gap: 2px; }
  .nav a { padding: 6px 8px; font-size: 13px; }
  main { padding: 18px 12px 48px; }
  .timeline { grid-template-columns: 1fr; }
  .timeline li { text-align: left; padding: 2px 0 12px 34px; }
  .timeline li::before { top: 0; bottom: 0; left: 10px; right: auto; width: 3px; height: auto; }
  .timeline li:first-child::before { left: 10px; top: 11px; } .timeline li:last-child::before { right: auto; bottom: calc(100% - 11px); }
  .timeline li::after { left: 0; transform: none; }
  .inline-form { grid-template-columns: 1fr; }
  table.grid.web { font-size: 13px; }
  table.grid.web thead { display: none; }
  table.grid.web, table.grid.web tbody, table.grid.web tr, table.grid.web td { display: block; width: 100%; }
  table.grid.web tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  table.grid.web td { border: 0; padding: 3px 0; }
  table.grid.web td.num { white-space: normal; }
  table.grid.web td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; margin-bottom: 1px; }
  .verdict { padding: 12px; }
}
/* Connector setup tabs (_connector_oppsett.html): radio buttons, no script needed */
.oppsett .seg { margin: 4px 0 14px; }
.oppsett-app { display: none; }
.oppsett:has(input[value=claude]:checked) [data-app=claude],
.oppsett:has(input[value=chatgpt]:checked) [data-app=chatgpt],
.oppsett:has(input[value=code]:checked) [data-app=code] { display: block; }
.oppsett-steg { margin: 0 0 14px; padding-left: 22px; line-height: 1.5; }
.oppsett-steg li { margin: 0 0 10px; }
.oppsett-steg b { display: block; }
.oppsett-steg span { color: var(--ink-2); font-size: 14px; }
.urlrad { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: var(--wash); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 0 0 10px; }
.urlrad code { flex: 1 1 260px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; word-break: break-all; }
.apper { list-style: none; padding: 0; margin: 0 0 14px; }
.apper li { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--line); }
