/* Pluggis – eier og organisasjon. Bygger på pluggis.css (tokens, knapper, kort, lister, ark, tabbar, sidemeny). */

/* ---------- Ramme ---------- */
body.eier { min-height: 100vh; min-height: 100dvh; }
.skip { position: absolute; left: -999px; top: .5rem; z-index: 100; background: var(--night); color: var(--spark); padding: .75rem 1rem; border-radius: .75rem; }
.skip:focus { left: .5rem; }
.e-app { display: flex; min-height: 100vh; min-height: 100dvh; }
/* PC: den mørke sidemenyen følger med når man ruller (sticky, full skjermhøyde), og kolonnen bak den er mørk
   hele veien ned – også på lange sider (Rapporter for en org), i utskrift til PDF og i helsides skjermbilder. */
@media (min-width: 52.0625rem) {
  .e-app { background: linear-gradient(90deg, var(--natt) 0, var(--natt) 15rem, transparent 15rem); }
  .e-app > .sidenav { align-self: flex-start; position: sticky; top: 0; height: 100vh; height: 100dvh; }
}
.e-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.e-main { width: 100%; max-width: 34rem; margin: 0 auto; padding: 1rem max(1rem, env(safe-area-inset-right)) 2rem max(1rem, env(safe-area-inset-left)); display: flex; flex-direction: column; gap: 1rem; flex: 1; }
.e-main:focus { outline: none; }
.org .e-main, .e-main.wide { max-width: 72rem; }
@media (min-width: 52.0625rem) {
  .e-main { padding: 2rem clamp(1.25rem, 3vw, 2.5rem) 3rem; max-width: 46rem; margin: 0; }
  .org .e-main, .e-main.wide { max-width: 77.5rem; }
  .e-top .logo { display: none; }
}
.e-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: var(--tap); }
.e-top .spacer { flex: 1; }
.e-top .acct { font-size: .875rem; color: var(--muted); text-align: right; line-height: 1.25; max-width: 14rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidenav .acct-name { color: var(--onnight2); font-size: .875rem; padding: 0 .875rem 1rem; margin-top: -.75rem; display: block; line-height: 1.3; }
.sidenav .acct-name strong { color: var(--lys); display: block; font-size: .9375rem; }
.sidenav .nav-sep { flex: 1; min-height: 1rem; }
.sidenav svg { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.sidenav a > span:first-child, .sidenav button > span:first-child { display: inline-flex; gap: .625rem; align-items: center; }
.tabbar { position: sticky; bottom: 0; }
.tabbar .count, .sidenav .count { display: inline-flex; min-width: 1.25rem; height: 1.25rem; border-radius: 1rem; background: var(--warn); color: var(--onwarn); font-size: .6875rem; font-weight: 700; align-items: center; justify-content: center; padding: 0 .3rem; }
.tabbar a { position: relative; }
.tabbar .count { position: absolute; top: .125rem; left: calc(50% + .5rem); }
.page-title { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; flex-wrap: wrap; }
.page-title h1 { margin: 0; }
.page-title .sub { color: var(--muted); font-size: .9375rem; margin: .25rem 0 0; width: 100%; }
.page-title .actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.topnav { display: flex; justify-content: space-between; align-items: center; gap: .75rem; min-height: var(--tap); }
.topnav a, .topnav button { font-weight: 500; }

/* ---------- Glød-banner når Pluggis-support er inne på kontoen ---------- */
.admin-visit { position: sticky; top: 0; z-index: 45; background: var(--glod); color: var(--natt); padding: .625rem 1rem; display: flex; flex-wrap: wrap; gap: .5rem .875rem; align-items: center; font-size: .9375rem; }
.admin-visit strong { font-weight: 700; }
.admin-visit .grow { flex: 1 1 14rem; min-width: 0; }
.admin-visit .seg { background: rgba(16, 35, 29, .12); }
.admin-visit .seg button { min-height: 2.5rem; color: var(--natt); }
.admin-visit .seg button[aria-pressed='true'] { background: var(--natt); color: var(--lys); }
.admin-visit .out { background: var(--natt); color: var(--lys); border: 0; border-radius: .75rem; min-height: 2.5rem; padding: 0 1rem; font-weight: 600; cursor: pointer; }
.admin-visit :focus-visible { outline-color: var(--natt); box-shadow: 0 0 0 5px var(--lys); }

/* ---------- Byggesteiner ---------- */
.hero { background: var(--spark); color: var(--onspark); border-radius: var(--r-xl); padding: 1.5rem; display: flex; flex-direction: column; gap: .375rem; }
.hero .label { font-size: .9375rem; font-weight: 500; }
.hero .amount { display: flex; align-items: baseline; gap: .375rem; flex-wrap: wrap; }
.hero .amount .n { font-family: var(--display); font-weight: 800; font-size: 3.5rem; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.hero .amount .u { font-size: 1.25rem; font-weight: 600; }
.hero .meta { font-size: .9375rem; line-height: 1.45; }
.hero .r { display: flex; justify-content: space-between; gap: .75rem; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.hero .r.sum { border-top: 1.5px solid var(--natt); padding-top: .5rem; margin-top: .25rem; align-items: baseline; font-weight: 600; }
.hero .r.sum .n { font-family: var(--display); font-weight: 800; font-size: 1.75rem; }
.hero a, .hero button.link { color: var(--natt); }
.hero-org { background: var(--night); color: var(--onnight); }

.sec { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; margin-top: .25rem; }
.sec h2 { font-size: 1.25rem; font-weight: 600; margin: 0; }
.sec .k { margin: 0; }
.sec a, .sec button { font-size: .9375rem; font-weight: 500; }
.k-sec { margin: .5rem 0 -.375rem; }

.todo { display: flex; gap: .75rem; align-items: center; padding: .875rem 1rem; border-bottom: 1px solid var(--line); }
.todo:last-child { border-bottom: 0; }
.todo .d { width: .625rem; height: .625rem; border-radius: 50%; background: var(--ink); flex-shrink: 0; }
.todo .d.warn { background: var(--warn); }
.todo .d.ok { background: var(--spark); outline: 1.5px solid var(--ink); }
.todo .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .125rem; }
.todo .t > :first-child { font-weight: 600; font-size: .9375rem; }
.todo .t > :nth-child(2) { color: var(--muted); font-size: .8125rem; }
.todo .act { flex-shrink: 0; min-height: 2.5rem; padding: 0 .875rem; border-radius: .75rem; border: 0; background: var(--night); color: var(--spark); font-weight: 600; font-size: .875rem; cursor: pointer; }
.allgood { display: flex; align-items: center; gap: .875rem; }
.allgood .mascot { margin: 0; color: var(--ink); }

.live-card { background: var(--night); color: var(--onnight); border-radius: var(--r-l); padding: 1rem 1.125rem; display: flex; flex-direction: column; gap: .625rem; }
.live-card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; }
.live-card .t > :first-child { font-weight: 600; }
.live-card .t > :nth-child(2) { color: var(--onnight2); font-size: .8125rem; }
.live-card .amt { font-family: var(--display); font-weight: 800; font-size: 1.375rem; color: var(--spark); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.live-card .meter { height: .375rem; border-radius: .25rem; background: rgba(255, 255, 255, .12); overflow: hidden; }
.live-card .meter span { display: block; height: 100%; background: var(--spark); }
.live-card .link { color: var(--spark); padding: .25rem 0; min-height: 2rem; }
.live-card :focus-visible { outline-color: var(--spark); box-shadow: none; }
.live-card .curve-box { background: rgba(255, 255, 255, .04); border-radius: .75rem; padding: .5rem; }

.status { display: inline-flex; align-items: center; gap: .375rem; font-size: .8125rem; font-weight: 600; padding: .3rem .7rem; border-radius: 999px; white-space: nowrap; background: var(--chip); color: var(--ink); }
.status.free { background: var(--spark); color: var(--onspark); }
.status.busy { background: var(--warn); color: var(--onwarn); }
.status.night { background: var(--night); color: var(--spark); }
.status.off { background: transparent; border: 1.5px solid var(--muted); color: var(--muted); }
.status.lock { background: var(--chip); }

.rows { background: var(--card); border-radius: var(--r-l); overflow: hidden; display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.rows > * { border-bottom: 1px solid var(--line); }
.rows > :last-child { border-bottom: 0; }
.rows .r, .rows > a, .rows > button { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .875rem 1rem; min-height: 3.375rem; width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); text-align: left; color: var(--ink); text-decoration: none; cursor: pointer; font-size: 1rem; }
.rows > :last-child, .rows .r:last-child { border-bottom: 0; }
.rows .r .t, .rows > a .t, .rows > button .t { display: flex; flex-direction: column; gap: .125rem; min-width: 0; }
.rows .t > :first-child { font-weight: 600; }
.rows .t > .s { color: var(--muted); font-size: .8125rem; }
.rows .v { color: var(--muted); font-size: .875rem; text-align: right; display: inline-flex; align-items: center; gap: .375rem; flex-wrap: wrap; justify-content: flex-end; }
.rows .r.static { cursor: default; }
.rows a:hover, .rows > button:hover { background: var(--ground); }
.rows .go::after { content: ''; width: .5rem; height: .5rem; border-right: 2px solid var(--muted); border-top: 2px solid var(--muted); transform: rotate(45deg); flex-shrink: 0; margin-left: .125rem; }
.tag-mini { font-size: .6875rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; background: var(--chip); color: var(--soft); padding: .125rem .4rem; border-radius: .375rem; }
.tag-mini.own { background: var(--warn-soft); color: var(--ink); }
.danger-link { color: var(--ink); text-decoration-color: var(--warn); text-decoration-thickness: 2px; }

.toggle-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .875rem 1rem; }
.toggle-row + .toggle-row { border-top: 1px solid var(--line); }
.toggle-row .t { display: flex; flex-direction: column; gap: .125rem; min-width: 0; }
.toggle-row .t > :first-child { font-weight: 600; }
.toggle-row .t > :nth-child(2) { color: var(--muted); font-size: .8125rem; }
.subchoice { padding: 0 1rem .875rem; }
.subchoice .seg button { min-height: 2.5rem; font-size: .875rem; }

.code-big { font-family: var(--display); font-weight: 800; font-size: 2rem; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.codebox { display: flex; justify-content: space-between; align-items: center; gap: .75rem; background: var(--ground); border-radius: var(--r-m); padding: .75rem 1rem; }
.codebox .k { display: block; }

.steppers { display: flex; align-items: center; gap: .625rem; }
.steppers button { width: 3.25rem; height: 3.25rem; border-radius: 1rem; border: 1.5px solid var(--ink); background: var(--card); font-size: 1.5rem; cursor: pointer; color: var(--ink); flex-shrink: 0; }
.steppers input { flex: 1; text-align: center; font-family: var(--display); font-weight: 800; font-size: 1.5rem; min-height: 3.25rem; font-variant-numeric: tabular-nums; }

.calc { background: var(--spark); color: var(--onspark); border-radius: var(--r-l); padding: 1.125rem 1.25rem; display: flex; flex-direction: column; gap: .5rem; }
.calc .r { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; }
.calc .r .n { font-family: var(--display); font-weight: 800; font-size: 1.5rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc .r .n.big2 { font-size: 1.625rem; }
.calc .ex { font-size: .8125rem; line-height: 1.45; }
.explain { font-size: .875rem; color: var(--soft); background: var(--card); border-radius: var(--r-m); padding: .75rem 1rem; line-height: 1.5; border-left: 4px solid var(--spark); }

.breakdown .r { display: flex; justify-content: space-between; gap: .75rem; padding: .5rem 0; font-variant-numeric: tabular-nums; }
.breakdown .r + .r { border-top: 1px solid var(--line); }
.breakdown .r.sum { font-weight: 600; align-items: baseline; }
.breakdown .r.sum .n { font-family: var(--display); font-weight: 800; font-size: 1.25rem; }
.breakdown .r.keep { font-weight: 600; }
.legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .75rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: .375rem; }
.legend i { width: .75rem; height: .75rem; border-radius: .2rem; display: inline-block; }
.chart-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: .75rem; }
.chart-head .seg button { min-height: 2.25rem; font-size: .8125rem; padding: 0 .75rem; }
.chart-limits { display: flex; gap: .5rem; flex-wrap: wrap; font-size: .75rem; color: var(--muted); margin-top: .375rem; }

/* Veiviser */
.wiz-top { display: flex; justify-content: space-between; align-items: center; min-height: var(--tap); }
.wiz-top .stepno { color: var(--muted); font-size: .875rem; }
.wiz-body { display: flex; flex-direction: column; gap: 1rem; }
.wiz-body h1 { font-size: 1.875rem; margin: .25rem 0 0; }
.wiz-foot { margin-top: auto; padding-top: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.brand-btn { display: flex; justify-content: space-between; align-items: center; gap: .75rem; background: var(--card); border-radius: var(--r-l); padding: 1.125rem 1.25rem; border: 2px solid transparent; width: 100%; text-align: left; color: var(--ink); cursor: pointer; text-decoration: none; min-height: 4.5rem; }
.brand-btn:hover { border-color: var(--line-strong); }
.brand-btn .t { display: flex; flex-direction: column; gap: .125rem; }
.brand-btn .t .h { font-size: 1.375rem; margin: 0; }
.brand-btn .t .s { color: var(--muted); font-size: .875rem; }
.numsteps { display: flex; flex-direction: column; gap: 1rem; }
.numsteps .st { display: flex; gap: .875rem; align-items: flex-start; }
.numsteps .n { width: 2rem; height: 2rem; border-radius: 50%; background: var(--night); color: var(--spark); display: flex; align-items: center; justify-content: center; font-weight: 600; flex-shrink: 0; }
.numsteps .st .t > :first-child { font-weight: 600; }
.numsteps .st .t > :nth-child(2) { color: var(--muted); font-size: .875rem; }
.oklist { display: flex; flex-direction: column; gap: .75rem; }
.oklist .ok { display: flex; gap: .75rem; align-items: center; font-weight: 500; }
.oklist .dot { width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--spark); color: var(--natt); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.oklist .dot.no { background: var(--warn); }
.found { display: flex; flex-direction: column; gap: .375rem; background: var(--card); border-radius: var(--r-l); padding: 1rem 1.125rem; border: 2px solid transparent; cursor: pointer; }
.found:has(input:checked) { border-color: var(--ink); }
.found .h { font-size: 1.25rem; margin: 0; }
.found .mid { display: flex; align-items: center; gap: .5rem; font-size: .875rem; }
.waitbox { display: flex; gap: .75rem; align-items: center; background: var(--night); color: var(--onnight); border-radius: var(--r-l); padding: 1rem; font-size: .875rem; }
.waitbox .pulse { width: .75rem; height: .75rem; border-radius: 50%; background: var(--spark); flex-shrink: 0; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

.sticker { background: var(--natt); color: var(--lys); border-radius: var(--r-xl); padding: 1.5rem; display: flex; flex-direction: column; gap: .875rem; }
.sticker .logo { color: var(--lys); font-size: 1.5rem; }
.sticker .h1 { color: var(--gnist); font-size: 3rem; margin: 0; line-height: 1; }
.sticker .qrrow { display: flex; gap: 1rem; align-items: center; }
.sticker .qr { background: #fff; border-radius: .75rem; padding: .5rem; width: 7.5rem; height: 7.5rem; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.sticker .qr img, .sticker .qr canvas { width: 100% !important; height: auto !important; }
.sticker .code-big { color: var(--gnist); }

/* Steder og ladere */
.place { background: var(--card); border-radius: var(--r-l); overflow: hidden; }
.place > .head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: 1rem 1rem .5rem; text-decoration: none; color: var(--ink); }
.place > .head h2 { font-size: 1.25rem; margin: 0; }
.place > .head .s { color: var(--muted); font-size: .8125rem; }
.place .rows { border-radius: 0; border-top: 1px solid var(--line); }
.place-flags { display: flex; gap: .375rem; flex-wrap: wrap; padding: 0 1rem .75rem; }
.trouble { display: flex; flex-direction: column; gap: .5rem; }
.trouble .head { display: flex; gap: .625rem; align-items: center; font-weight: 600; }
.trouble .head .d { width: .75rem; height: .75rem; border-radius: 50%; background: var(--warn); }
.trouble ol { margin: 0; padding-left: 1.25rem; font-size: .875rem; color: var(--soft); }
.qrsmall { background: #fff; border-radius: .75rem; padding: .375rem; width: 6.5rem; height: 6.5rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.qrsmall img, .qrsmall canvas { width: 100% !important; height: auto !important; }
.adv-link { display: flex; justify-content: space-between; align-items: center; gap: .75rem; background: var(--chip); border-radius: var(--r-l); padding: 1rem 1.125rem; color: var(--ink); text-decoration: none; border: 0; width: 100%; text-align: left; cursor: pointer; }
.adv-link .t > :first-child { font-weight: 600; }
.adv-link .t > :nth-child(2) { color: var(--muted); font-size: .8125rem; }

/* Tilgang */
.tabs { display: flex; gap: .375rem; flex-wrap: wrap; }
.tabs button { min-height: 2.5rem; padding: 0 1rem; border-radius: 999px; border: 0; background: var(--chip); color: var(--ink); font-weight: 500; cursor: pointer; font-size: .9375rem; }
.tabs button[aria-selected='true'] { background: var(--night); color: var(--spark); font-weight: 600; }
.who { display: flex; justify-content: space-between; align-items: center; gap: .75rem; background: var(--card); border-radius: var(--r-l); padding: 1rem 1.125rem; text-decoration: none; color: var(--ink); border: 0; width: 100%; text-align: left; cursor: pointer; font-size: 1rem; }
.who.soft { background: var(--chip); }
.who .t { display: flex; flex-direction: column; gap: .125rem; min-width: 0; }
.who .t > :first-child { font-weight: 600; }
.who .t > :nth-child(2) { color: var(--muted); font-size: .8125rem; }
.who .p { text-align: right; flex-shrink: 0; }
.who .p .n { font-family: var(--display); font-weight: 800; font-size: 1.25rem; display: block; white-space: nowrap; }
.who .p .s { color: var(--muted); font-size: .75rem; }
.opts { display: flex; flex-direction: column; gap: .5rem; }
.opt { display: flex; justify-content: space-between; align-items: center; gap: .75rem; min-height: 3.25rem; padding: .625rem 1rem; border-radius: var(--r-m); border: 1.5px solid var(--line-strong); background: var(--card); cursor: pointer; text-align: left; color: var(--ink); width: 100%; font-size: 1rem; }
.opt[aria-pressed='true'], .opt:has(input:checked) { border-color: var(--ink); background: var(--night); color: var(--onnight); }
.opt[aria-pressed='true'] .s, .opt:has(input:checked) .s { color: var(--spark); }
.opt .s { color: var(--muted); font-size: .875rem; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.preview-sms { background: var(--card); border-radius: var(--r-m); padding: .875rem 1rem; font-size: .875rem; line-height: 1.5; display: flex; flex-direction: column; gap: .25rem; }
.person { display: flex; gap: .75rem; align-items: center; padding: .75rem 1rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.person:last-child { border-bottom: 0; }
.person .t { flex: 1 1 12rem; min-width: 0; display: flex; flex-direction: column; gap: .125rem; }
.person .t > :first-child { font-weight: 600; }
.person .t > .s { color: var(--muted); font-size: .8125rem; overflow-wrap: anywhere; }
.person .acts { display: flex; gap: .375rem; flex-wrap: wrap; }

/* Org: oversikt og tabeller */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: .875rem; }
.stat { background: var(--card); border-radius: var(--r-l); padding: 1.125rem 1.25rem; display: flex; flex-direction: column; gap: .25rem; }
.stat.dark { background: var(--night); color: var(--onnight); border-radius: var(--r-l); padding: 1.125rem 1.25rem; }
.stat .l { font-size: .875rem; color: var(--muted); }
.stat.dark .l, .stat.dark .s { color: var(--onnight2); }
.stat .n { font-family: var(--display); font-weight: 800; font-size: 2.25rem; letter-spacing: -.02em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat.dark .n { color: var(--spark); }
.stat .s { font-size: .8125rem; color: var(--muted); }
.two-col { display: grid; grid-template-columns: 1fr; gap: 1rem; align-items: start; }
@media (min-width: 64rem) { .two-col { grid-template-columns: 3fr 2fr; } }
.spots { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); gap: .375rem; }
.spots a { border-radius: .5rem; background: var(--spark); color: var(--onspark); display: flex; flex-direction: column; gap: .125rem; padding: .5rem .625rem; text-decoration: none; min-width: 0; min-height: 3.25rem; justify-content: center; }
.spots a .nm { font-weight: 600; font-size: .875rem; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.spots a .ty { font-size: .75rem; opacity: .8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spots a.lader { background: var(--night); color: var(--onnight); }
.spots a.warn { background: var(--warn); color: var(--onwarn); }
.spots a.lock { background: var(--line-strong); color: var(--ink); }
.spots a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.spots.compact { grid-template-columns: repeat(auto-fill, minmax(2.75rem, 1fr)); }
.spots.compact a { min-height: 2.75rem; padding: .25rem; align-items: center; }
.org-stats .stat .n { white-space: nowrap; }
@media (max-width: 40rem) {
  .org-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .625rem; }
  .org-stats .stat { padding: .875rem 1rem; }
  .org-stats .stat .n { font-size: 1.75rem; }
  .org-stats .stat .l, .org-stats .stat .s { font-size: .75rem; }
}
.toolbar { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.toolbar .search { flex: 1 1 16rem; display: flex; align-items: center; gap: .5rem; background: var(--card); border-radius: .875rem; padding: 0 .875rem; border: 1.5px solid var(--line-strong); }
.toolbar .search input { border: 0; min-height: 2.875rem; padding: 0; background: transparent; box-shadow: none; }
.toolbar .search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px var(--spark); }
.chipbtn { min-height: 2.5rem; padding: 0 .875rem; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--card); color: var(--ink); font-size: .875rem; cursor: pointer; font-weight: 500; }
.chipbtn[aria-pressed='true'] { background: var(--night); border-color: var(--night); color: var(--spark); font-weight: 600; }
.bulkbar { background: var(--night); color: var(--onnight); border-radius: var(--r-l); padding: .875rem 1rem; display: flex; gap: .625rem; flex-wrap: wrap; align-items: center; position: sticky; top: .5rem; z-index: 5; }
.bulkbar .t { flex: 1 1 14rem; font-size: .875rem; color: var(--onnight2); }
.bulkbar .t strong { color: var(--onnight); font-size: 1rem; display: block; }
.bulkbar button { min-height: 2.5rem; padding: 0 .875rem; border-radius: 999px; border: 1.5px solid var(--onnight2); background: transparent; color: var(--onnight); font-weight: 500; cursor: pointer; font-size: .875rem; }
.bulkbar button.main { background: var(--spark); color: var(--onspark); border-color: var(--spark); font-weight: 600; }
.bulkbar :focus-visible { outline-color: var(--spark); box-shadow: none; }
table.t input[type='checkbox'], .cb { width: 1.25rem; height: 1.25rem; accent-color: var(--natt); }
table.t td a { font-weight: 600; }
table.t tr.sel td { background: var(--ok-soft); }
table.t tr.flag td { background: var(--warn-soft); }

/* ---------- Kompatibilitet for skjemaer og lister fra eldre deler (dialoger, oppsett, logg) ---------- */
.quiet { color: var(--muted); }
.hint { font-size: .8125rem; color: var(--muted); line-height: 1.45; margin: .25rem 0 0; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: flex-end; }
.row > div { flex: 1 1 11rem; min-width: 0; }
.notice { background: var(--chip); border-radius: var(--r-m); padding: .875rem 1rem; font-size: .9375rem; line-height: 1.5; margin: 0; }
.notice.warn, .notice.bad { background: var(--warn-soft); border-left: 4px solid var(--warn); }
.notice.ok { background: var(--ok-soft); }
.notice.dev { background: transparent; border: 1.5px dashed var(--muted); }
span.pill { display: inline-flex; align-items: center; gap: .375rem; font-size: .8125rem; font-weight: 600; padding: .25rem .65rem; border-radius: 999px; white-space: nowrap; background: var(--chip); color: var(--ink); border: 0; min-height: auto; cursor: default; }
span.pill.ok, span.pill.free { background: var(--spark); color: var(--onspark); }
span.pill.wait { background: var(--chip); }
span.pill.bad { background: var(--warn); color: var(--onwarn); }
.btn-small:not(.btn) { min-height: var(--tap); padding: 0 1rem; border-radius: var(--r-s); font-size: .9375rem; width: auto; display: inline-flex; align-items: center; justify-content: center; gap: .375rem; font-weight: 600; cursor: pointer; border: 0; background: var(--night); color: var(--spark); text-decoration: none; }
.btn-quiet, .btn-small.btn-quiet { background: transparent; border: 1.5px solid currentColor; color: var(--ink); font-weight: 500; }
.btn-small.btn-danger { background: transparent; border: 1.5px solid var(--warn); color: var(--ink); }
.btn-small.btn-main { background: var(--spark); color: var(--onspark); }
button.btn-quiet:not(.btn-small):not(.btn), a.btn-quiet:not(.btn-small):not(.btn) { min-height: 3.375rem; border-radius: var(--r-m); padding: 0 1.125rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.btn-big { min-height: 3.375rem; }
.linkbtn { background: none; border: 0; padding: .25rem 0; min-height: 2rem; font-weight: 500; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; color: inherit; font-size: inherit; }
.copy { display: flex; gap: .5rem; align-items: center; background: var(--ground); border-radius: .75rem; padding: .375rem .375rem .375rem .75rem; }
.sheet .copy { background: var(--card); }
.copy code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-family: var(--mono); font-size: .875rem; }
.days { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { padding: .375rem 0; }
.field-err { color: var(--ink); background: var(--warn-soft); border-radius: .5rem; padding: .375rem .625rem; font-size: .875rem; margin: .375rem 0 0; }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
legend { font-weight: 600; font-size: .875rem; margin-bottom: .375rem; padding: 0; }
details.adv { background: var(--card); border-radius: var(--r-m); padding: 0 1rem; }
.sheet details.adv { background: var(--card); }
details.adv > summary { cursor: pointer; min-height: var(--tap); display: flex; align-items: center; gap: .5rem; font-weight: 600; list-style: none; }
details.adv > summary::-webkit-details-marker { display: none; }
details.adv > summary::after { content: ''; width: .5rem; height: .5rem; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin-left: auto; transition: transform .15s; flex-shrink: 0; }
details.adv[open] > summary::after { transform: rotate(-135deg); }
details.adv[open] { padding-bottom: 1rem; }
details.adv > :not(summary) + :not(summary) { margin-top: .75rem; }
.mono { font-family: var(--mono); font-size: .875rem; }
code { font-family: var(--mono); font-size: .875em; overflow-wrap: anywhere; }
table:not(.t) { border-collapse: collapse; width: 100%; font-size: .875rem; }
table:not(.t) th { text-align: left; font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: .5rem; border-bottom: 1px solid var(--line-strong); }
table:not(.t) td { padding: .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.list .item { display: flex; gap: .75rem; align-items: center; padding: .75rem 1rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.list .item:last-child { border-bottom: 0; }
.list .item .grow { flex: 1 1 12rem; min-width: 0; }
.list .item .name { font-weight: 600; }
.list .check { padding: .5rem 1rem; border-bottom: 1px solid var(--line); margin: 0; }
.list .check:last-child { border-bottom: 0; }
.combo { position: relative; }
.combo-list { position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 4px); list-style: none; margin: 0; padding: .25rem; background: var(--card); border: 1px solid var(--line-strong); border-radius: .75rem; box-shadow: var(--shadow); max-height: 16rem; overflow: auto; }
.combo-list li { padding: .625rem .75rem; border-radius: .5rem; cursor: pointer; display: flex; flex-direction: column; min-height: var(--tap); }
.combo-list li[aria-selected='true'], .combo-list li:hover { background: var(--ok-soft); }

/* Ark-skjema (dlg) */
.sheet form.dlg { display: flex; flex-direction: column; gap: .75rem; }
.sheet form.dlg h2 { margin: 0; font-size: 1.5rem; }
.sheet .dlg-foot { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; position: sticky; bottom: calc(-1.25rem - env(safe-area-inset-bottom)); background: var(--ground); padding: .75rem 0 .25rem; margin-top: .25rem; }
.sheet .dlg-foot .btn { min-height: 3.125rem; }
.sheet.wide { max-width: 52rem; }
.sheet .x { position: absolute; right: .75rem; top: .75rem; }
.sheet { position: relative; }
.sheet .sheet-h { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; }
.sheet .sheet-h h2 { margin: 0; font-size: 1.5rem; }

/* Kart-velger (kartlib) */
.pp-combo { position: relative; }
.pp-list { position: absolute; z-index: 1000; left: 0; right: 0; top: calc(100% + 4px); list-style: none; margin: 0; padding: .25rem; background: var(--card); border: 1px solid var(--line-strong); border-radius: .75rem; box-shadow: var(--shadow); max-height: 16rem; overflow: auto; }
.pp-list li { padding: .625rem .75rem; border-radius: .5rem; cursor: pointer; min-height: var(--tap); display: flex; flex-wrap: wrap; gap: 0 .4em; align-items: center; }
.pp-list li[aria-selected='true'], .pp-list li[data-i]:hover { background: var(--ok-soft); }
.pp-map { height: 13rem; margin-top: .625rem; border-radius: var(--r-m); overflow: hidden; background: var(--chip); }
.pp-tools { display: flex; gap: .625rem; align-items: center; flex-wrap: wrap; margin-top: .5rem; }
.mugpin-wrap { background: none; border: 0; }
.mugpin { width: 34px; height: 42px; transform-origin: 50% 100%; filter: drop-shadow(0 2px 2px rgba(10, 20, 40, .35)); }
.mugpin svg { width: 100%; height: 100%; display: block; }

/* Ladekurve (kurve.js) og Pluggis-hjelpen (hjelp.js) har egen stil. På mørke kort: */
.live-card figure.curve .cl { stroke: var(--spark); }
.live-card figure.curve .ct { fill: var(--onnight2); }

/* OCPP-logg, oppsett, testlader, effekt */
table.ocpplog tr.bad td { background: var(--warn-soft); }
details.json pre, pre { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--mono); font-size: .75rem; background: var(--ground); padding: .5rem; border-radius: .5rem; max-height: 18rem; overflow: auto; }
.emu-log { font-family: var(--mono); font-size: .75rem; background: var(--ground); border-radius: .75rem; padding: .625rem; max-height: 10rem; overflow: auto; line-height: 1.5; }
.led { width: .625rem; height: .625rem; border-radius: 50%; display: inline-block; }
.effekt-form { display: flex; flex-direction: column; gap: .625rem; }
.effekt-form h3 { margin: .75rem 0 0; }
.adv-config table td, .adv-config table th { font-size: .8125rem; }

/* Små skjermer: tabeller blir kort */
@media (max-width: 40rem) {
  table.t.stack-sm thead { display: none; }
  table.t.stack-sm tr { display: block; border-bottom: 1px solid var(--line); padding: .5rem 0; }
  table.t.stack-sm td { display: flex; justify-content: space-between; gap: 1rem; border: 0; padding: .25rem .75rem; }
  table.t.stack-sm td::before { content: attr(data-l); color: var(--muted); font-size: .8125rem; }
  table.t.stack-sm td.r { text-align: right; }
}
@media print { .admin-visit, .e-top { display: none !important; } }
.chev, .go { display: inline-flex; align-items: center; flex-shrink: 0; }
.chev::after, .rows .go::after, .go::after { display: block; }
.go::after { content: ''; width: .5rem; height: .5rem; border-right: 2px solid var(--muted); border-top: 2px solid var(--muted); transform: rotate(45deg); margin: 0 .25rem 0 .125rem; }
a.avatar, .e-top .avatar { text-decoration: none; }

.adv-link .t, .who .t, .brand-btn .t { display: flex; flex-direction: column; }
.bars i { min-height: 1px; }
.rows .v { flex-wrap: nowrap; }
.tabs { gap: .25rem; }
.tabs button { padding: 0 .8rem; font-size: .875rem; }
.person .acts .btn-small { min-height: 2.5rem; padding: 0 .75rem; font-size: .875rem; }
.sticker .h1 { font-family: var(--display); font-weight: 800; letter-spacing: -.03em; }
.sidenav .logo { font-size: 1.75rem; display: inline-flex; justify-content: flex-start; width: auto; padding: .25rem .875rem 1.25rem; min-height: 0; }
.sidenav .logo:hover { background: none; }
td[data-l='Mobil'] { white-space: nowrap; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .seg button[aria-pressed='true'], :root:not([data-theme='light']) .tabs button[aria-selected='true'], :root:not([data-theme='light']) .chipbtn[aria-pressed='true'], :root:not([data-theme='light']) .opt[aria-pressed='true'], :root:not([data-theme='light']) .opt:has(input:checked) { background: var(--spark); color: var(--onspark); border-color: var(--spark); } :root:not([data-theme='light']) .opt[aria-pressed='true'] .s, :root:not([data-theme='light']) .opt:has(input:checked) .s { color: var(--onspark); } }
:root[data-theme='dark'] .seg button[aria-pressed='true'], :root[data-theme='dark'] .tabs button[aria-selected='true'], :root[data-theme='dark'] .chipbtn[aria-pressed='true'], :root[data-theme='dark'] .opt[aria-pressed='true'], :root[data-theme='dark'] .opt:has(input:checked) { background: var(--spark); color: var(--onspark); border-color: var(--spark); }
@media (min-width: 52.0625rem) { .e-main.solo { margin: 0 auto; max-width: 34rem; } .e-main.solo .e-top .logo { display: inline-flex; } }

/* PC: innholdet bruker bredden når sidemenyen vises */
.home-grid, .pris-grid { display: flex; flex-direction: column; gap: 1rem; }
.home-grid > .col, .pris-grid > .col { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
@media (min-width: 52.0625rem) {
  .e-app .e-main, .e-app .e-main.wide { max-width: 77.5rem; margin: 0; width: 100%; }
  .e-app .e-top { justify-content: flex-end; min-height: 0; margin-bottom: -.5rem; }
  .e-app .e-top .logo, .e-app .e-top .spacer { display: none; }
  .e-app .page-title + *, .e-app .e-main > .rows, .e-app .e-main > .place { max-width: none; }
  .priv .e-main:not(:has(.home-grid, .pris-grid, table.t)) { max-width: 52rem; }
  .home-grid, .pris-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 1.25rem; }
  .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tabbar { display: none !important; }
}
/* Plass til chat-boblen over bunnmenyen, så den ikke dekker det nederste innholdet */
@media (max-width: 52rem) { .e-main { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); } }

/* ---------- Ferdig-skjermen ---------- */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.done-wrap { position: relative; }
.done-grid { display: flex; flex-direction: column; gap: 1.25rem; }
.done-grid > .col { min-width: 0; gap: 1rem; }
.done-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .5rem; padding-top: .5rem; }
.done-hero h1 { margin: .25rem 0 0; }
.done-hero p { margin: 0; }
.done-hero .mascot { animation: popin .7s cubic-bezier(.3, 1.6, .5, 1) both; }
.done-hero.first h1 { font-size: 2rem; }
.done-hero p { font-size: 1rem; font-family: inherit; font-weight: 400; }
@keyframes popin { 0% { transform: translateY(1.5rem) scale(.6); opacity: 0; } 70% { transform: translateY(-.25rem) scale(1.04); opacity: 1; } 100% { transform: none; } }
.done-code { display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center; }
.done-code .k { color: var(--muted); font-size: .8125rem; font-weight: 600; }
.done-code .code-big { font-size: 2.75rem; line-height: 1.1; }
.done-share summary { cursor: pointer; font-weight: 600; min-height: 2.75rem; display: flex; align-items: center; }
.share-row { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-top: .75rem; }
.share-row .qr { background: #fff; padding: .5rem; border-radius: .75rem; line-height: 0; }
.share-row code { word-break: break-all; }
.done-row, .done-next { display: flex; align-items: center; gap: .75rem; padding: .875rem 1rem; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.done-row:last-child, .done-next:last-child { border-bottom: 0; }
.done-row .t, .done-next .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .125rem; }
.done-row .t > :first-child, .done-next .t > :first-child { font-weight: 600; font-size: .9375rem; }
.done-row .s, .done-next .s { color: var(--muted); font-size: .8125rem; }
.done-row .link { flex-shrink: 0; min-height: 2.75rem; display: inline-flex; align-items: center; }
.done-row .dot { width: .625rem; height: .625rem; border-radius: 50%; flex-shrink: 0; background: var(--spark); outline: 1.5px solid var(--ink); }
.done-row .dot.lock { background: var(--chip); }
.done-row .dot.off { background: transparent; outline-color: var(--muted); }
.confetti { position: absolute; inset: 0 0 auto 0; height: 22rem; pointer-events: none; overflow: hidden; z-index: 2; }
.confetti i { position: absolute; top: -1rem; width: .5rem; height: .875rem; border-radius: .125rem; opacity: 0; animation: fall 1.6s ease-in forwards; }
@keyframes fall { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(var(--dx), 21rem) rotate(var(--r)); } }
@media (prefers-reduced-motion: reduce) { .confetti { display: none; } .done-hero .mascot { animation: none; } }
@media (min-width: 52.0625rem) {
  .e-main:not(.solo) .done-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 1.5rem; }
}

/* ---------- Ladeøkten (#okt) ---------- */
.live-card { position: relative; }
.live-card .stretch { position: absolute; inset: 0; border-radius: inherit; z-index: 0; }
.live-card .stretch:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.live-card button, .live-card .link { position: relative; z-index: 1; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: var(--chip); }
table.t tr.click td a { color: inherit; font-weight: 600; text-decoration: none; }
table.t tr.click td a:hover { text-decoration: underline; }
.okt-live { display: flex; align-items: center; gap: .75rem; }
.okt-live .t { flex: 1; min-width: 0; }
.okt-live .pulse { width: .75rem; height: .75rem; border-radius: 50%; background: var(--spark); outline: 2px solid var(--ink); flex-shrink: 0; animation: pulse 1.6s ease-in-out infinite; }
.okt-chart { min-height: 12.5rem; }
.okt-svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.okt-svg .og { stroke: var(--line); stroke-width: 1; }
.okt-svg .ot { fill: var(--muted); font-size: 11px; font-family: var(--body, system-ui); font-variant-numeric: tabular-nums; }
.okt-svg .oa { fill: var(--spark); opacity: .55; }
.okt-svg .ol { fill: none; stroke: #8DB33A; stroke-width: 1.5; stroke-linejoin: round; }
.okt-svg .oe { fill: none; stroke: var(--ink); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.okt-svg .oq { fill: var(--muted); opacity: .28; }
.okt-svg .olive { fill: var(--spark); stroke: var(--ink); stroke-width: 2; }
.okt-svg .ox { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 3; }
.okt-svg .ohit:focus { outline: none; }
.okt-svg .ohit:focus-visible { outline: 2px solid var(--ink); }
.okt-read { margin: 0; min-height: 1.25rem; font-variant-numeric: tabular-nums; }
.legend .lg-kw { background: var(--spark); outline: 1px solid #8DB33A; }
.legend .lg-kwh { background: var(--ink); height: .1875rem !important; border-radius: 2px; }
.legend .lg-q { background: var(--muted); opacity: .45; }
.okt-card .chart-head { flex-wrap: wrap; gap: .5rem 1rem; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .okt-svg .ol { stroke: var(--spark); } :root:not([data-theme='light']) .okt-svg .oa { opacity: .35; } }
:root[data-theme='dark'] .okt-svg .ol { stroke: var(--spark); } :root[data-theme='dark'] .okt-svg .oa { opacity: .35; }
@media (max-width: 52rem) {
  .okt-stats { grid-template-columns: 1fr 1fr; gap: .625rem; }
  .okt-stats .stat { padding: .875rem 1rem; }
  .okt-stats .stat .n { font-size: 1.5rem !important; }
  .okt-stats .stat:first-child, .okt-stats .stat:last-child { grid-column: 1 / -1; }
}

/* ---------- Tilkobling: flere ladere, fortsett oppsettet ---------- */
.guide-head { display: grid; grid-template-columns: 1fr auto; gap: .125rem .75rem; align-items: center; background: var(--night); color: var(--onnight); border-radius: var(--r-l); padding: .875rem 1rem; }
.guide-head .k { color: var(--onnight2); font-size: .8125rem; font-weight: 600; grid-column: 1; }
.guide-head strong { font-family: var(--display); font-size: 1.375rem; letter-spacing: .03em; grid-column: 1; font-variant-numeric: tabular-nums; word-break: break-all; }
.guide-head > span:not(.k):not(.dots) { color: var(--onnight2); font-size: .875rem; grid-column: 1; }
.guide-head .dots { grid-column: 2; grid-row: 1 / span 3; display: flex; gap: .375rem; }
.guide-head .dots i { width: .625rem; height: .625rem; border-radius: 50%; border: 1.5px solid var(--onnight2); }
.guide-head .dots i.on { background: var(--spark); border-color: var(--spark); }
.guide-head .dots i.done { background: var(--onnight2); }
.found.is-added { cursor: default; }
.tag-mini.warn { background: var(--warn-soft); color: var(--onwarn); }
.cont-card { border-left: 4px solid var(--warn); }
.waitbox.ok .pulse { animation: none; background: var(--spark); }

/* ---------- Installatør ---------- */
.inst-main { max-width: 72rem; margin: 0 auto; }
.inst-grid { display: flex; flex-direction: column; gap: 1rem; }
.inst-grid > .col { min-width: 0; }
.inst-code { background: var(--night); color: var(--onnight); }
.inst-code .k, .inst-code .soft { color: var(--onnight2); }
.inst-code .code-big { color: var(--spark); font-size: 2.5rem; }
.inst-code .copy { background: rgba(255, 255, 255, .08); border-radius: .75rem; }
.inst-code .copy code { color: var(--onnight); }
.inst-code .btn-line { color: var(--onnight); border-color: var(--onnight2); }
.inst-code .btn-quiet { color: var(--spark); }
.inst-stats { grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)) !important; }
.inst-cust .rows { background: transparent; border: 1px solid var(--line); }
.inst-cust .rows .r { min-height: 3rem; padding: .625rem .75rem; }
@media (min-width: 52.0625rem) {
  .inst-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 1.5rem; align-items: start; }
  .e-main.inst-main { padding-left: 1.5rem; padding-right: 1.5rem; }
}
.inst-main .e-top .logo { display: inline-flex; }
@media (max-width: 52rem) { .inst-stats { grid-template-columns: 1fr 1fr !important; } .inst-stats .stat:nth-child(3) { grid-column: 1 / -1; } }
.opts.stacked .opt { flex-direction: column; align-items: flex-start; gap: .25rem; padding: .75rem 1rem; }
.opts.stacked .opt > span:first-of-type { font-weight: 600; }
.opts.stacked .opt .s { font-weight: 400; line-height: 1.4; }

/* ---------- Kladd og godkjenning ---------- */
.draft-banner { display: flex; align-items: center; justify-content: space-between; gap: .75rem; background: var(--spark); color: var(--onspark); padding: .625rem 1rem; border-radius: var(--r-m); font-size: .9375rem; margin-bottom: .5rem; }
.draft-banner a { color: inherit; font-weight: 600; white-space: nowrap; }
.draft-banner.app { border-radius: 0; margin: 0; position: sticky; top: 0; z-index: 40; }
.approve .ap-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .5rem; }
.approve .ap-hero h1 { margin: .25rem 0 0; font-size: 1.875rem; line-height: 1.1; }
.approve .ap-hero p { margin: 0; }
.approve .ap-hero .mascot { animation: popin .7s cubic-bezier(.3, 1.6, .5, 1) both; }
.ap-sum { padding: 0; }
.ap-row { display: flex; align-items: flex-start; gap: .75rem; padding: .875rem 1rem; border-bottom: 1px solid var(--line); }
.ap-row:last-child { border-bottom: 0; }
.ap-row .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .125rem; }
.ap-row .k { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ap-row .v { font-weight: 600; }
.ap-row .s { color: var(--muted); font-size: .8125rem; }
.ap-row .link { flex-shrink: 0; min-height: 2.75rem; }
.inst-log li { padding: .375rem 0; border-bottom: 1px solid var(--line); font-size: .875rem; }
.ap-row .t > * { text-align: left; justify-content: flex-start; }
.ap-row .v { color: var(--ink); font-size: 1rem; display: block; }

/* Chat-boblen skal ikke ligge over åpne ark (f.eks. «Mer» på mobil) */
body:has(.sheet-wrap) .ph-fab, body:has(.sheet-wrap) .ph-greet { display: none; }

/* Passkey-tilbud etter innlogging med e-postlenke: diskret kort nederst, over bunnmenyen på mobil */
.pk-offer { position: fixed; left: 1rem; right: 5rem; bottom: calc(5.25rem + env(safe-area-inset-bottom)); z-index: 30; max-width: 30rem; /* plass til hjelpe-boblen til høyre */
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: .875rem 1rem; background: var(--card); color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--r-l); box-shadow: var(--shadow); }
.pk-offer-t { display: flex; flex-direction: column; gap: .125rem; flex: 1 1 14rem; min-width: 0; }
.pk-offer-t .s { color: var(--muted); font-size: .875rem; }
.pk-offer-b { display: flex; align-items: center; gap: .75rem; }
.pk-offer-b .btn { width: auto; }
@media (min-width: 960px) { .pk-offer { bottom: 1.5rem; left: auto; right: 6rem; width: 30rem; } }

/* Pluggiser: hele raden går til laderen; koden og snarveiene ligger over lenkeflaten */
.rows > .prow { position: relative; padding: .75rem 1rem .875rem; display: flex; flex-direction: column; gap: .5rem; }
.rows > .prow:hover { background: var(--ground); }
.prow-main { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; color: var(--ink); text-decoration: none; }
.prow-main::after { content: ''; position: absolute; inset: 0; }
.prow-main:focus-visible { outline: none; box-shadow: none; }
.prow:has(.prow-main:focus-visible) { outline: 3px solid var(--ink); outline-offset: -3px; box-shadow: inset 0 0 0 6px var(--spark); }
.prow-main .t { display: flex; flex-direction: column; gap: .125rem; min-width: 0; }
.prow-main .nm { font-weight: 600; }
.prow-main .s { color: var(--muted); font-size: .8125rem; overflow-wrap: anywhere; }
.prow-code { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; }
.codechip { font-family: 'Bricolage Grotesque', var(--font-head, sans-serif); font-weight: 700; letter-spacing: .06em; font-variant-numeric: tabular-nums; background: var(--chip); color: var(--ink); padding: .3rem .6rem; border-radius: .5rem; font-size: .9375rem; margin-right: .125rem; }
.pbtn { display: inline-flex; align-items: center; justify-content: center; min-height: 2.25rem; padding: 0 .75rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: .8125rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.pbtn.ico { width: 2.25rem; padding: 0; }
.pbtn:hover { border-color: var(--ink); }
@media (pointer: coarse) { .pbtn { min-height: 2.75rem; } .pbtn.ico { width: 2.75rem; } }
