/* journal-assistent.no
   Farger: blekk (tekst og mørke flater), pilleblått fra ikonet, blått reseptpapir, signaturgrønt for det som er godkjent,
   og merkepenn-gult for det Journalassistent fyller ut i tegningene. Én skrift: Schibsted Grotesk. */

@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-display: swap; font-weight: 400 900;
  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+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-display: swap; font-weight: 400 900;
  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+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+A720-A7FF; }
@font-face { font-family: "Schibsted Grotesk"; font-style: italic; font-display: swap; font-weight: 400 900;
  src: url(../fonts/schibsted-grotesk-latin-wght-italic.woff2) format("woff2"); unicode-range: U+0000-00FF,U+2000-206F; }

:root {
  --ink: #12284A;
  --ink-2: #33496B;
  --muted: #5A6B86;
  --blue: #2B8AFF;
  --blue-ink: #155FCC;
  --form: #E6F0FC;
  --form-2: #D5E5F9;
  --form-line: #C3D8F3;
  --sign: #0E7C61;
  --sign-bg: #E3F4EE;
  --mark: #FFE36E;
  --warn: #8A4B00;
  --warn-bg: #FFF4E0;
  --bad: #B42318;
  --bad-bg: #FDECEA;
  --line: #D8E0EC;
  --soft: #F5F8FC;
  --white: #FFFFFF;
  --radius: 14px;
  --wrap: 1180px;
  --gut: 24px;
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 18px/1.6 var(--font); font-feature-settings: "kern" 1; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--blue-ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1.12; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); line-height: 1.02; letter-spacing: -.03em; font-weight: 850; }
h2 { font-size: clamp(1.85rem, 3.3vw, 2.7rem); letter-spacing: -.025em; }
h3 { font-size: 1.28rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.sec { padding: clamp(64px, 9vw, 120px) 0; }
.sec-tight { padding: clamp(48px, 6vw, 80px) 0; }
.sec-head { max-width: 44rem; margin-bottom: clamp(32px, 4vw, 52px); }
.sec-head h2 + p { margin-top: 16px; }
.sec-head p { color: var(--ink-2); font-size: 1.1rem; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Knapper og taster ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 700 1rem/1 var(--font); padding: 15px 22px; border-radius: 11px; border: 1.5px solid transparent; text-decoration: none; cursor: pointer; transition: background .15s, box-shadow .15s, transform .05s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 0 2px 0 #06152b; }
.btn-ink:hover { background: #1B3864; }
.btn-blue { background: var(--blue-ink); color: #fff; }
.btn-blue:hover { background: #0F4FAE; }
.btn-line { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: #AFC0D8; background: var(--soft); }
.btn-sm { padding: 10px 15px; font-size: .92rem; border-radius: 9px; }
.btn[disabled], .btn.is-disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-note { font-size: .92rem; color: var(--muted); margin-top: 14px; }

.keys { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; vertical-align: middle; }
.kplus { color: var(--muted); font-weight: 600; font-size: .85em; }
.kc { display: inline-grid; place-items: center; min-width: 2.2em; height: 2.2em; padding: 0 .55em; font: 750 .78em/1 var(--font); color: var(--ink);
  background: linear-gradient(#fff, #EEF3FA); border: 1px solid #C2CFE2; border-radius: .42em; box-shadow: 0 .16em 0 #A9BBD5, 0 .32em .6em rgba(18, 40, 74, .12); }
.kc-mod { font-weight: 650; color: var(--ink-2); }
.keys-lg .kc { font-size: 1.05rem; }
kbd.kc-inline { font-size: .74em; min-width: 1.9em; height: 1.9em; vertical-align: .1em; }

/* ---------- Topp ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid #E6ECF4; }
.top-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.brand img { border-radius: 7px; }
.nav { display: flex; gap: 22px; margin-left: 8px; }
.nav a, .nav-login { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .97rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav-login:hover { color: var(--ink); border-bottom-color: var(--form-line); }
.nav a[aria-current], .nav-login[aria-current] { color: var(--ink); border-bottom-color: var(--blue); }
.top-act { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.mnav { display: none; margin-left: auto; position: relative; }
.mnav summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; border-radius: 10px; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav summary span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }
.mnav[open] summary { background: var(--soft); }
.mnav-panel { position: absolute; right: 0; top: 52px; width: min(86vw, 320px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px -12px rgba(18, 40, 74, .25); padding: 10px; display: grid; gap: 2px; }
.mnav-panel a:not(.btn) { padding: 12px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; }
.mnav-panel a:not(.btn):hover { background: var(--soft); }
.mnav-panel .btn { margin-top: 8px; }
@media (max-width: 960px) { .nav, .top-act { display: none; } .mnav { display: block; } }

/* ---------- Forside: toppen ---------- */
.hero { padding: clamp(40px, 6vw, 84px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { max-width: 9.5em; }
.hero .lead { margin: 26px 0 34px; }
.hero-sys { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 30px; color: var(--muted); font-size: .95rem; }
.hero-sys b { color: var(--ink-2); font-weight: 700; }
@media (max-width: 1000px) { .hero-grid { grid-template-columns: 1fr; } .hero h1 { max-width: 12em; } }

/* Scenen: journalvindu på blått reseptpapir, takstforslaget og tastene */
.scene { position: relative; padding: 34px 0 64px 34px; font-size: 14px; }
.scene::before { content: ""; position: absolute; inset: 0 -40vw 0 0; border-radius: 26px 0 0 26px; background: var(--form);
  background-image: repeating-linear-gradient(to bottom, transparent 0 31px, var(--form-line) 31px 32px); }
.win { position: relative; background: #fff; border: 1px solid #CCD7E6; border-radius: 12px; box-shadow: 0 2px 0 #C8D5E8; overflow: hidden; width: 92%; }
.win-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #F1F5FA; border-bottom: 1px solid #DDE5F0; }
.win-bar i { width: 9px; height: 9px; border-radius: 50%; background: #CBD6E5; }
.win-bar span { margin-left: 10px; font-size: 11px; font-weight: 700; color: var(--muted); }
.win-body { display: grid; grid-template-columns: 30% 1fr; min-height: 300px; }
.win-side { border-right: 1px solid #E4EAF2; padding: 14px 12px; display: grid; align-content: start; gap: 9px; background: #FAFCFE; }
.win-side b { font-size: 12px; margin-bottom: 4px; }
.win-side span, .win-note span { display: block; height: 7px; border-radius: 4px; background: #E3E9F2; }
.w80 { width: 80%; } .w60 { width: 60%; } .w40 { width: 40%; }
.win-main { padding: 14px; display: grid; gap: 14px; align-content: start; }
.win-note, .win-card { border: 1px solid #E4EAF2; border-radius: 8px; padding: 10px 12px; display: grid; gap: 7px; }
.win-note em, .win-card em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--muted); }
.win-fields { display: flex; flex-wrap: wrap; gap: 6px; }
.win-fields span { font-size: 12px; font-weight: 750; padding: 3px 8px; border-radius: 5px; border: 1px solid #E1E7F0; }
.scene-dlg { position: absolute; right: -6px; top: 92px; width: min(380px, 70%); }
.scene-keys { position: absolute; left: 34px; bottom: 6px; display: flex; gap: 8px; font-size: 19px; }
.scene-keys .kc { min-width: 2.3em; height: 2.3em; }

.mk { background: var(--mark); border-radius: 3px; box-shadow: 0 0 0 2px var(--mark); }
.mk-block { background: #FFF8D6; border-left: 3px solid var(--mark); }

/* Ett samlet øyeblikk ved innlasting: tastene trykkes, forslaget kommer, takstene fylles ut */
@media (prefers-reduced-motion: no-preference) {
  .scene-keys .kc { animation: press .5s ease-out both; }
  .scene-keys .kc:nth-child(1) { animation-delay: .35s; }
  .scene-keys .kc:nth-child(2) { animation-delay: .55s; }
  .scene-keys .kc:nth-child(3) { animation-delay: .8s; }
  .scene-dlg { animation: dlg .45s cubic-bezier(.2, .8, .2, 1) 1.25s both; }
  .win-fields .mk { animation: fill .3s ease-out both; }
  .win-fields .mk:nth-child(1) { animation-delay: 2.3s; }
  .win-fields .mk:nth-child(2) { animation-delay: 2.42s; }
  .win-fields .mk:nth-child(3) { animation-delay: 2.54s; }
  .win-fields .mk:nth-child(4) { animation-delay: 2.66s; }
  .win-fields .mk:nth-child(5) { animation-delay: 2.78s; }
}
@keyframes press { 0%, 100% { transform: none; } 45% { transform: translateY(.13em); box-shadow: 0 .03em 0 #A9BBD5, 0 .1em .2em rgba(18, 40, 74, .12); background: #E3ECF8; } }
@keyframes dlg { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fill { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }

@media (max-width: 1000px) { .scene { margin-top: 8px; padding-left: 18px; } .scene::before { inset: 0 calc(var(--gut) * -1) 0 0; border-radius: 22px 0 0 22px; } }
@media (max-width: 600px) {
  .scene { font-size: 11.5px; padding: 18px 0 54px 14px; }
  .win { width: 100%; }
  .win-body { min-height: 230px; }
  .scene-dlg { position: relative; right: auto; top: auto; width: 100%; margin-top: -120px; padding-left: 18px; }
  .scene-keys { left: 14px; font-size: 16px; }
}

/* ---------- Tegningene av utvidelsens vinduer ---------- */
.ui { background: #fff; border: 1px solid #CFD9E7; border-radius: 13px; box-shadow: 0 26px 50px -18px rgba(18, 40, 74, .38), 0 2px 6px rgba(18, 40, 74, .06); overflow: hidden; font-size: 1em; text-align: left; line-height: 1.35; }
.ui-h { display: flex; align-items: center; gap: 9px; padding: .85em 1em; background: #F7F9FC; border-bottom: 1px solid #E4EAF2; }
.ui-h b { font-size: 1.04em; }
.ui-sub { margin-left: auto; font-size: .82em; font-weight: 600; color: var(--muted); }
.ui-ico { width: 1.75em; height: 1.75em; display: grid; place-items: center; border-radius: .45em; background: #E7F0FF; color: var(--blue-ink); font-weight: 800; font-size: .95em; }
.ui-ico-ok { background: var(--sign-bg); color: var(--sign); }
.ui-b { padding: .75em 1em; display: grid; gap: .5em; }
.ui-f { display: flex; justify-content: flex-end; gap: .5em; padding: .7em 1em; border-top: 1px solid #E4EAF2; background: #FAFBFD; }
.ui-btn { font-size: .86em; font-weight: 700; padding: .55em .95em; border-radius: .55em; border: 1px solid #CFD9E7; background: #fff; }
.ui-pri { background: var(--blue-ink); border-color: var(--blue-ink); color: #fff; }
.tk-row { display: grid; grid-template-columns: auto 4.4em 1fr auto; gap: .6em; align-items: start; font-size: .9em; padding: .15em 0; }
.tk-cb { width: 1.05em; height: 1.05em; margin-top: .12em; border-radius: .25em; border: 1.5px solid #AEBBD0; background: #fff; }
.tk-cb.on { background: var(--blue-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.4 2.3 4.6-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat; border-color: var(--blue-ink); }
.tk-code { font-weight: 800; }
.tk-code i { font-style: normal; color: var(--blue-ink); }
.tk-txt { color: var(--ink-2); }
.tk-txt small { display: block; color: var(--muted); font-size: .9em; margin-top: .15em; }
.tk-kr { font-variant-numeric: tabular-nums; font-weight: 650; color: var(--ink-2); }
.tk-off { opacity: .5; }
.tk-sum { display: flex; justify-content: flex-end; gap: 1.2em; font-size: .86em; color: var(--muted); border-top: 1px dashed #DCE3EE; padding-top: .55em; margin-top: .2em; }
.tk-sum b { color: var(--ink); font-variant-numeric: tabular-nums; }
.ui-pat { display: flex; align-items: center; gap: .7em; padding: .55em .7em; background: var(--warn-bg); border-radius: .6em; }
.ui-pat small { display: block; color: var(--warn); font-size: .82em; font-weight: 600; }
.ui-avatar { width: 2.1em; height: 2.1em; display: grid; place-items: center; border-radius: 50%; background: #FFE2B8; color: var(--warn); font-weight: 800; font-size: .82em; }
.rx-item { display: grid; gap: .3em; padding: .65em .75em; border: 1px solid #E1E8F2; border-radius: .6em; font-size: .92em; }
.rx-item span { color: var(--ink-2); }
.rx-item .rx-dose { color: var(--muted); font-size: .92em; }
.msg-subj { font-size: .9em; color: var(--muted); }
.msg-body { padding: .7em .85em; border-radius: .4em; font-size: .92em; }
.msg-body p { margin: 0 0 .55em; }
.msg-body p:last-child { margin: 0; }
.msg-ask { font-size: .84em; color: var(--muted); border: 1px dashed #CFD9E7; border-radius: .5em; padding: .55em .7em; }
.vx-row { display: flex; gap: .7em; align-items: flex-start; font-size: .92em; }
.vx-row small { display: block; color: var(--muted); }
.vx-off { opacity: .5; }
.vx-meta { display: flex; justify-content: space-between; gap: 1em; font-size: .88em; padding-top: .45em; border-top: 1px solid #EDF1F6; }
.vx-meta span { color: var(--muted); }
.fn-quote { font-size: .9em; color: var(--ink-2); background: var(--soft); border-radius: .5em; padding: .6em .75em; font-style: italic; }
.fn-row { display: grid; grid-template-columns: 5.4em auto 1fr; gap: .5em; align-items: center; font-size: .9em; }
.fn-from { color: var(--muted); }
.fn-arrow { color: var(--muted); }
.fn-note { font-size: .84em; color: var(--sign); font-weight: 650; }
.pk-row { display: grid; grid-template-columns: 1.3em 1fr auto; gap: .5em; align-items: center; font-size: .92em; padding: .4em .5em; border-radius: .45em; }
.pk-row.on { background: #EEF5FF; }
.pk-row small { color: var(--muted); }
.pk-star { color: #D99A00; }
.pk-star.off { color: #B5C1D3; }
.pk-tools { display: flex; gap: .5em; font-size: .82em; }
.pk-tools span { border: 1px solid #CFD9E7; border-radius: .45em; padding: .35em .6em; color: var(--ink-2); font-weight: 650; }

/* ---------- Tastaturet: én snarvei per oppgave ---------- */
.board-sec { background: var(--soft); border-top: 1px solid #E8EEF6; border-bottom: 1px solid #E8EEF6; }
.board { background: linear-gradient(#1A3358, var(--ink)); border-radius: 22px; padding: clamp(18px, 3vw, 30px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 24px 50px -24px rgba(18, 40, 74, .6); }
.board-mods { display: flex; align-items: center; gap: 10px; color: #A9BBD9; font-weight: 650; font-size: .95rem; margin: 0 0 18px 4px; }
.board-mods .kc { font-size: .95rem; }
.board-keys { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(10px, 1.5vw, 16px); }
.bkey { display: grid; grid-template-rows: auto 1fr; gap: 14px; padding: 16px 16px 18px; min-height: 172px; border-radius: 14px; text-decoration: none; color: var(--ink);
  background: linear-gradient(#FFFFFF, #E9EFF8); border: 1px solid #fff; box-shadow: 0 6px 0 #9EB1CF, 0 10px 18px rgba(0, 0, 0, .28); transition: transform .08s, box-shadow .08s; }
.bkey:hover { background: linear-gradient(#FFFFFF, #F2F6FC); }
.bkey:active { transform: translateY(5px); box-shadow: 0 1px 0 #9EB1CF, 0 3px 6px rgba(0, 0, 0, .25); }
.bkey-l { font-size: 2.6rem; font-weight: 850; line-height: 1; letter-spacing: -.02em; }
.bkey-t { align-self: end; }
.bkey-t b { display: block; font-size: 1rem; line-height: 1.25; }
.bkey-t span { display: block; font-size: .84rem; color: var(--muted); line-height: 1.35; margin-top: 4px; }
.bkey-menu { background: linear-gradient(#DDEBFF, #C9DDFA); }
.board-foot { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; margin-top: 22px; color: #C3D1E8; font-size: .95rem; }
.board-foot a { color: #fff; font-weight: 650; }
@media (max-width: 1000px) { .board-keys { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .board-keys { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bkey { min-height: 150px; } .bkey-l { font-size: 2.1rem; } }

/* ---------- Slik virker det (en rekkefølge) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding-top: 70px; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; font-size: 3.3rem; font-weight: 850; line-height: 1; color: var(--blue); letter-spacing: -.04em; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 26px; left: 56px; right: -24px; height: 2px; background: repeating-linear-gradient(90deg, var(--form-line) 0 8px, transparent 8px 14px); }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--ink-2); margin: 0; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } .steps li:not(:last-child)::after { display: none; } .steps li { padding-top: 0; padding-left: 64px; } .steps li::before { font-size: 2.6rem; } }

/* ---------- Funksjonene ---------- */
.feat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; padding: clamp(40px, 5vw, 64px) 0; }
.feat + .feat { border-top: 1px solid #E8EEF6; }
.feat:nth-child(even) .feat-art { order: -1; }
.feat-top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.feat h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.02em; margin-bottom: 14px; }
.feat p { color: var(--ink-2); }
.feat ul { margin: 0 0 22px; padding: 0; list-style: none; display: grid; gap: 8px; }
.feat li { padding-left: 26px; position: relative; color: var(--ink-2); }
.feat li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 12px; height: 7px; border-left: 2.5px solid var(--sign); border-bottom: 2.5px solid var(--sign); transform: rotate(-45deg); }
.feat-art { position: relative; padding: clamp(22px, 4vw, 44px); border-radius: 22px; background: var(--form); background-image: repeating-linear-gradient(to bottom, transparent 0 31px, var(--form-line) 31px 32px); }
.feat-art .ui { font-size: clamp(13px, 1.25vw, 15px); max-width: 440px; margin: 0 auto; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: .82rem; font-weight: 700; padding: 4px 10px; border-radius: 20px; background: var(--soft); color: var(--ink-2); border: 1px solid #E1E8F2; }
.tag-ai { background: #EEF5FF; border-color: #D6E6FF; color: #1B4E9C; }
.tag-free { background: var(--sign-bg); border-color: #C5E8DB; color: var(--sign); }
.more { font-weight: 700; text-decoration: none; }
.more:hover { text-decoration: underline; }
@media (max-width: 900px) { .feat { grid-template-columns: 1fr; } .feat:nth-child(even) .feat-art { order: 0; } }

/* ---------- AI-assistentene ---------- */
.ai-tbl { width: 100%; border-collapse: collapse; font-size: 1rem; }
.ai-tbl th, .ai-tbl td { padding: 16px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.ai-tbl thead th { font-size: .9rem; color: var(--muted); font-weight: 700; border-bottom: 2px solid var(--ink); }
.ai-tbl tbody th { font-weight: 800; }
.ai-tbl .y { color: var(--sign); font-weight: 800; }
.ai-tbl .n { color: #9AA8BD; }
.ai-tbl small { display: block; color: var(--muted); font-weight: 500; font-size: .86rem; }
.ai-tbl tr.none th, .ai-tbl tr.none td { background: var(--soft); }
.tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.note { font-size: .92rem; color: var(--muted); margin-top: 16px; }

/* ---------- Personvern (mørk) ---------- */
.dark { background: var(--ink); color: #DCE6F5; }
.dark h2, .dark h3 { color: #fff; }
.dark .sec-head p { color: #B9C9E2; }
.dark a { color: #9CC6FF; }
.flow { display: grid; grid-template-columns: 1fr auto 1.15fr auto 1fr; align-items: center; gap: 0; margin: 10px 0 0; }
.node { border: 1.5px solid #3D5A86; border-radius: 16px; padding: 18px 18px; background: #18325A; }
.node b { display: block; color: #fff; font-size: 1.05rem; }
.node span { display: block; font-size: .9rem; color: #A9BBD9; margin-top: 4px; }
.node-me { background: #fff; border-color: #fff; color: var(--ink); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .5); }
.node-me b { color: var(--ink); }
.node-me span { color: var(--muted); }
.edge { position: relative; min-width: 120px; padding: 0 10px; text-align: center; font-size: .8rem; color: #B9C9E2; line-height: 1.3; }
.edge::before { content: ""; display: block; height: 2px; background: #6E8DBE; margin: 8px 6px; position: relative; }
.edge::after { content: ""; position: absolute; right: 12px; top: calc(50% - 7px); border: 6px solid transparent; border-left-color: #6E8DBE; }
.edge-both::after { display: none; }
.flow-server { grid-column: 3; margin-top: 34px; position: relative; border-style: dashed; background: transparent; text-align: center; }
.flow-server::before { content: ""; position: absolute; left: 50%; top: -36px; height: 34px; border-left: 2px dashed #4E6C99; }
.trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 48px; margin-top: clamp(40px, 5vw, 64px); }
.trust h3 { font-size: 1.1rem; margin-bottom: 6px; }
.trust p { margin: 0; color: #B9C9E2; }
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; }
  .edge { padding: 6px 0 8px; min-width: 0; }
  .edge::before { width: 2px; height: 26px; margin: 0 auto 6px; }
  .edge::after { right: auto; left: calc(50% - 6px); top: 26px; border-left-color: transparent; border-top-color: #6E8DBE; }
  .flow-server { grid-column: 1; }
  .trust { grid-template-columns: 1fr; }
}

/* ---------- Pris ---------- */
.price-panel { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); border: 1.5px solid var(--line); border-radius: 20px; overflow: hidden; background: #fff; }
.price-panel > div { padding: clamp(24px, 3vw, 36px); }
.price-panel > div + div { border-left: 1.5px solid var(--line); }
.price-intro { background: var(--form); }
.price-intro h3 { font-size: 1.4rem; margin-bottom: 10px; }
.price-intro p { color: var(--ink-2); margin: 0; }
.price-amt { font-size: clamp(2.6rem, 4vw, 3.4rem); font-weight: 850; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.price-amt small { font-size: 1rem; font-weight: 650; letter-spacing: 0; color: var(--muted); margin-left: 4px; }
.price-lbl { font-weight: 700; margin-bottom: 14px; color: var(--ink-2); }
.price-save { display: inline-block; margin-top: 12px; font-size: .88rem; font-weight: 700; color: var(--sign); background: var(--sign-bg); padding: 4px 10px; border-radius: 20px; }
.price-sub { margin-top: 12px; color: var(--muted); font-size: .92rem; }
@media (max-width: 860px) { .price-panel { grid-template-columns: 1fr; } .price-panel > div + div { border-left: 0; border-top: 1.5px solid var(--line); } }

.incl { columns: 2; column-gap: 40px; padding: 0; margin: 0; list-style: none; }
.incl li { break-inside: avoid; padding: 0 0 10px 26px; position: relative; color: var(--ink-2); }
.incl li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 12px; height: 7px; border-left: 2.5px solid var(--sign); border-bottom: 2.5px solid var(--sign); transform: rotate(-45deg); }
@media (max-width: 700px) { .incl { columns: 1; } }

/* ---------- Spørsmål ---------- */
.faq { border-top: 1px solid var(--line); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font-weight: 750; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(var(--ink), var(--ink)) center/14px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center/2px 14px no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--ink-2); max-width: 44rem; }

/* ---------- Avslutning ---------- */
.cta-band { background: var(--form); background-image: repeating-linear-gradient(to bottom, transparent 0 31px, var(--form-line) 31px 32px); }
.cta-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.cta-in h2 { max-width: 16em; }
.cta-in p { color: var(--ink-2); margin: 14px 0 0; }
@media (max-width: 800px) { .cta-in { grid-template-columns: 1fr; } }

/* ---------- Undersider ---------- */
.page-head { padding: clamp(40px, 6vw, 80px) 0 clamp(28px, 4vw, 48px); }
.page-head .lead { margin-top: 20px; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.fhead { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.fhead .keys { font-size: 1.25rem; margin-bottom: 22px; }
.fhead .tags { margin-top: 24px; }
@media (max-width: 900px) { .fhead { grid-template-columns: 1fr; } }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }
.check { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check li { padding-left: 28px; position: relative; color: var(--ink-2); }
.check li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 12px; height: 7px; border-left: 2.5px solid var(--sign); border-bottom: 2.5px solid var(--sign); transform: rotate(-45deg); }
.guard { border-left: 4px solid var(--sign); padding: 4px 0 4px 22px; }
.guard h2 { font-size: 1.5rem; margin-bottom: 16px; }
.related { display: flex; flex-wrap: wrap; gap: 10px; }
.related a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 700; }
.related a:hover { border-color: #AFC0D8; background: var(--soft); }
.related .kc { font-size: .8rem; }
.related .kc-none { display: inline-grid; place-items: center; width: 2.2em; height: 2.2em; font-size: .8rem; border-radius: .42em; background: var(--sign-bg); color: var(--sign); font-weight: 800; }

/* Funksjonsoversikten */
.flist { display: grid; gap: 0; border-top: 1px solid var(--line); }
.flist a { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 22px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.flist a:hover { background: var(--soft); }
.flist .kc { font-size: 1.15rem; }
.flist h2 { font-size: 1.3rem; letter-spacing: -.01em; }
.flist p { margin: 4px 0 0; color: var(--ink-2); font-size: 1rem; }
.flist .tags { justify-content: flex-end; max-width: 22rem; }
@media (max-width: 760px) { .flist a { grid-template-columns: 3.2rem minmax(0, 1fr); } .flist .tags { grid-column: 2; justify-content: flex-start; } }

/* ---------- Skjema (konto og takstforslag) ---------- */
.panel { background: #fff; border: 1.5px solid var(--line); border-radius: 18px; padding: clamp(20px, 3vw, 32px); }
.panel-soft { background: var(--soft); border-color: #E3EAF3; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > span, .flabel { font-weight: 700; font-size: .95rem; }
.field small, .fhint { color: var(--muted); font-size: .86rem; font-weight: 500; }
.in, select.in, textarea.in { width: 100%; font: 400 1rem/1.45 var(--font); color: var(--ink); background: #fff; border: 1.5px solid #C9D4E3; border-radius: 10px; padding: 11px 13px; }
.in:focus, textarea.in:focus, select.in:focus { outline: none; border-color: var(--blue-ink); box-shadow: 0 0 0 4px rgba(21, 95, 204, .15); }
textarea.in { resize: vertical; }
.chk { display: flex; gap: 10px; align-items: flex-start; font-size: .98rem; cursor: pointer; padding: 6px 0; }
.chk input { width: 19px; height: 19px; margin: 2px 0 0; accent-color: var(--blue-ink); flex: none; }
.chk small { display: block; color: var(--muted); font-size: .84rem; }
.msg { padding: 12px 15px; border-radius: 10px; font-size: .96rem; margin: 0 0 16px; }
.msg-ok { background: var(--sign-bg); color: #0B5E4A; }
.msg-info { background: #EAF2FF; color: #1B4E9C; }
.msg-warn { background: var(--warn-bg); color: var(--warn); }
.msg-err { background: var(--bad-bg); color: var(--bad); }
.msg b { font-weight: 750; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; display: inline-block; animation: spin .7s linear infinite; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2s; } }

/* ---------- Konto ---------- */
.acc-grid { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .acc-grid { grid-template-columns: 1fr; } }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--soft); border-radius: 12px; margin-bottom: 22px; }
.tabs button { flex: 1; font: 700 .95rem/1 var(--font); color: var(--ink-2); padding: 11px 8px; border: 0; background: transparent; border-radius: 9px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(18, 40, 74, .12); }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .9rem; margin: 18px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.linkbtn { font: inherit; color: var(--blue-ink); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: .18em; }
.status-big { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.status-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--sign); box-shadow: 0 0 0 5px var(--sign-bg); flex: none; }
.status-dot.warn { background: #D98A00; box-shadow: 0 0 0 5px var(--warn-bg); }
.status-dot.bad { background: var(--bad); box-shadow: 0 0 0 5px var(--bad-bg); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; margin: 18px 0 24px; font-size: .98rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 650; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0 8px; }
.plan { display: grid; gap: 4px; text-align: left; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 16px; cursor: pointer; }
.plan:hover { border-color: var(--blue-ink); }
.plan b { font-size: 1.5rem; font-weight: 850; letter-spacing: -.02em; }
.plan span { color: var(--muted); font-size: .9rem; }
@media (max-width: 480px) { .plans { grid-template-columns: 1fr; } }

/* ---------- Takstforslag fra notat ---------- */
.tool { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
@media (max-width: 980px) { .tool { grid-template-columns: 1fr; } }
.tool textarea.note { min-height: 260px; }
.tool-side { display: grid; gap: 14px; }
.blk { background: var(--soft); border: 1px solid #E3EAF3; border-radius: 14px; padding: 16px; }
.blk h3 { font-size: .95rem; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.badge { font-size: .74rem; font-weight: 750; padding: 3px 8px; border-radius: 20px; background: var(--warn-bg); color: var(--warn); white-space: nowrap; }
.dur { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.dur-in { display: inline-flex; align-items: center; border: 1.5px solid #E0B46A; background: #FFFAF0; border-radius: 10px; overflow: hidden; }
.dur.set .dur-in { border-color: #C9D4E3; background: #fff; }
.dur-in:focus-within { border-color: var(--blue-ink); box-shadow: 0 0 0 4px rgba(21, 95, 204, .15); }
.dur-in input { width: 64px; border: 0; background: transparent; font: 800 1.2rem/1 var(--font); color: var(--ink); text-align: right; padding: 10px 4px 10px 10px; -moz-appearance: textfield; }
.dur-in input::-webkit-outer-spin-button, .dur-in input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.dur-in input:focus { outline: none; }
.dur-in span { padding: 0 12px 0 4px; color: var(--muted); font-weight: 650; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { font: 650 .9rem/1 var(--font); min-width: 40px; padding: 8px 10px; border-radius: 20px; border: 1px solid #D1DAE6; background: #fff; color: var(--ink-2); cursor: pointer; }
.chip:hover { border-color: #AFC0D8; }
.chip[aria-pressed="true"] { background: var(--blue-ink); border-color: var(--blue-ink); color: #fff; }
.dur-note { font-size: .88rem; color: var(--muted); margin-top: 10px; }
.dur-note.good { color: var(--sign); font-weight: 650; }
.gate { position: relative; }
.gate[data-locked="true"] .gate-body { opacity: .45; pointer-events: none; user-select: none; }
.ext-state { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.ext-state .ui-ico { width: 40px; height: 40px; font-size: 1.1rem; }
.ext-state h2 { font-size: 1.2rem; margin-bottom: 6px; }
.ext-state p { margin: 0 0 12px; color: var(--ink-2); }
.res-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.res-head h2 { font-size: 1.5rem; }
.res-tbl { width: 100%; border-collapse: collapse; font-size: .98rem; }
.res-tbl th, .res-tbl td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.res-tbl thead th { font-size: .82rem; color: var(--muted); font-weight: 700; border-bottom: 2px solid var(--ink); }
.res-tbl .code { font-weight: 850; white-space: nowrap; }
.res-tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.res-tbl tfoot td { font-weight: 800; border-bottom: 0; }
.res-tbl small { display: block; color: var(--muted); margin-top: 3px; }
.sure { font-size: .78rem; font-weight: 750; padding: 2px 8px; border-radius: 20px; white-space: nowrap; }
.sure-høy { background: var(--sign-bg); color: var(--sign); }
.sure-middels { background: #EAF2FF; color: #1B4E9C; }
.sure-lav { background: var(--warn-bg); color: var(--warn); }
.res-more { margin-top: 22px; display: grid; gap: 16px; }
.res-more h3 { font-size: 1rem; margin-bottom: 6px; }
.res-more ul { margin: 0; padding-left: 20px; color: var(--ink-2); }
.privacy-line { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); margin-top: 10px; }
.privacy-line::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 2px; border-radius: 4px; background: var(--sign-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 7V5.5a3 3 0 0 1 6 0V7M4.5 7h7v5h-7z' fill='none' stroke='%230E7C61' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }

/* ---------- Blogg ---------- */
.posts { border-top: 1px solid var(--line); }
.post-row { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.post-row time { color: var(--muted); font-size: .95rem; padding-top: 4px; }
.post-row h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); letter-spacing: -.02em; }
.post-row h2 a { color: var(--ink); text-decoration: none; }
.post-row h2 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.post-row p { margin: 10px 0 0; color: var(--ink-2); max-width: 40rem; }
.post-row .rt { display: block; margin-top: 10px; font-size: .88rem; color: var(--muted); }
@media (max-width: 700px) { .post-row { grid-template-columns: 1fr; gap: 6px; } }
.pager { display: flex; justify-content: space-between; margin-top: 28px; font-weight: 700; }
.article-head { padding: clamp(40px, 6vw, 80px) 0 28px; max-width: 46rem; }
.article-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.06; }
.article-head .lead { margin-top: 20px; }
.byline { margin-top: 22px; color: var(--muted); font-size: .96rem; }
.byline b { color: var(--ink-2); font-weight: 700; }
.prose { max-width: 40rem; font-size: 1.1rem; line-height: 1.72; padding-bottom: 56px; }
.prose h2 { font-size: 1.6rem; margin: 1.9em 0 .55em; }
.prose h3 { font-size: 1.25rem; margin: 1.6em 0 .5em; }
.prose h4 { font-size: 1.08rem; margin: 1.4em 0 .4em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.prose blockquote { margin: 1.4em 0; padding: 2px 0 2px 22px; border-left: 4px solid var(--blue); color: var(--ink-2); }
.prose code { font-size: .9em; background: var(--soft); border: 1px solid #E3EAF3; padding: .08em .35em; border-radius: 5px; }
.prose pre { background: var(--ink); color: #E5EDF8; padding: 18px; border-radius: 12px; overflow-x: auto; font-size: .9rem; line-height: 1.5; }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.prose figure { margin: 1.6em 0; }
.prose figure img { border-radius: 12px; border: 1px solid var(--line); }
.prose figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }
.prose .tbl-wrap { overflow-x: auto; margin: 1.4em 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: .96rem; line-height: 1.45; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th { border-bottom: 2px solid var(--ink); font-size: .88rem; color: var(--muted); }
.article-cta { max-width: 40rem; margin-bottom: 64px; }
.toc { font-size: .95rem; border-left: 2px solid var(--form-line); padding-left: 16px; margin: 0 0 32px; max-width: 40rem; }
.toc b { display: block; margin-bottom: 6px; }
.toc a { display: block; color: var(--ink-2); text-decoration: none; padding: 3px 0; }
.toc a:hover { color: var(--blue-ink); }

/* ---------- Bunn ---------- */
.foot { background: #0E2140; color: #B7C6DD; padding: 64px 0 36px; font-size: .95rem; }
.foot a { color: #DCE6F5; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.foot-col { display: grid; align-content: start; gap: 9px; }
.foot-col h2 { font-size: .95rem; color: #fff; margin-bottom: 4px; letter-spacing: 0; }
.brand-inv { color: #fff; }
.foot-about p { margin: 14px 0 0; max-width: 22rem; }
.foot-legal { border-top: 1px solid #243D63; margin-top: 44px; padding-top: 24px; font-size: .86rem; color: #8FA3C2; }
.foot-legal p { max-width: 56rem; margin: 0 0 8px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-about { grid-column: 1 / -1; } }

/* ---------- 404 ---------- */
.nf { padding: clamp(64px, 10vw, 140px) 0; }
.nf .keys { font-size: 1.4rem; margin-bottom: 26px; }

@media (max-width: 600px) {
  :root { --gut: 18px; }
  body { font-size: 17px; }
  .btn { padding: 14px 18px; }
  .btn-row .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
.sec.sec-flush { padding-top: 0; }
.lead.lead-gap { margin-top: 16px; }
.gap-top { margin-top: 28px; }
.sec-tight.sec-flush { padding-top: 0; }
.kc-none { display: inline-grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: .42em; background: var(--sign-bg); color: var(--sign); font-weight: 800; font-size: .78em; }
.flist .kc-none { font-size: 1.15rem; }
.h3like { font-size: 1.3rem; letter-spacing: -.01em; }
.gap-sm { margin: 8px 0 18px; color: var(--ink-2); }

/* Justeringer etter gjennomgang */
.h1l { display: block; }
.ui b.mk, .ui .mk { justify-self: start; width: fit-content; padding: 0 2px; }
.cta-band { background-image: repeating-linear-gradient(to bottom, transparent 0 31px, #D9E6F7 31px 32px); }
.edge::after { top: 3px; }
.price-panel .price-save { margin-top: 0; }

/* Forsidens scene: vinduet øverst til venstre, forslaget nederst til høyre, tastene under vinduet */
.scene { padding: 30px 0 30px 30px; min-height: 610px; }
.win { width: 84%; }
.win-body { grid-template-columns: 28% 1fr; min-height: 330px; }
.scene-dlg { right: 0; top: 196px; width: min(370px, 66%); }
.scene-keys { left: 30px; bottom: 34px; }
@media (max-width: 1000px) { .scene { min-height: 0; padding-bottom: 70px; } .scene-dlg { top: 170px; } }
@media (max-width: 600px) { .scene { padding: 16px 0 60px 12px; } .win { width: 100%; } .scene-dlg { top: auto; margin-top: -90px; width: 100%; padding-left: 14px; } .scene-keys { bottom: 12px; } }

/* Tegningen «Foreslå takster» med konsultasjonstid */
.ask-note { display: grid; gap: .4em; padding: .6em .7em; border: 1px solid #E1E8F2; border-radius: .55em; }
.ask-note em, .web-note em { font-style: normal; font-size: .8em; font-weight: 700; color: var(--muted); }
.ask-note span { display: block; height: .45em; border-radius: 4px; background: #E3E9F2; }
.ask-dur { padding: .65em .7em; border-radius: .6em; background: #F6F8FB; border: 1px solid #E3EAF3; display: grid; gap: .5em; }
.ask-dur-h { display: flex; justify-content: space-between; align-items: center; font-size: .86em; }
.ask-badge { font-size: .82em; font-weight: 700; padding: .15em .55em; border-radius: 20px; background: var(--warn-bg); color: var(--warn); }
.ask-dur-row { display: flex; align-items: center; gap: .35em; flex-wrap: wrap; }
.ask-in { font-weight: 800; font-size: 1.05em; padding: .3em .6em; border: 1.5px solid #C9D4E3; border-radius: .5em; background: #fff; }
.ask-in small { font-size: .75em; color: var(--muted); font-weight: 650; }
.ask-chip { font-size: .8em; font-weight: 650; padding: .3em .6em; border: 1px solid #D5DBE5; border-radius: 20px; background: #fff; color: var(--ink-2); }
.ask-res { font-size: .84em; font-weight: 700; color: var(--sign); }
.ask-chips { display: flex; gap: .35em; flex-wrap: wrap; }
.ask-chips span { font-size: .8em; font-weight: 650; padding: .25em .65em; border-radius: 20px; background: #E8F1FF; color: #1F4F9A; }
.ask-chips span.mute { background: #ECEFF4; color: #4B5563; }

/* Tegningen av nettstedets takstside */
.ui-web .win-bar { height: 2.2em; }
.ui-web .win-bar span { font-size: .78em; }
.web-note { display: grid; gap: .3em; padding: .65em .75em; border: 1px solid #E1E8F2; border-radius: .55em; font-size: .88em; color: var(--ink-2); }
.web-res { display: grid; gap: .15em; }
.web-res div { display: grid; grid-template-columns: 5.2em 1fr; gap: .5em; font-size: .88em; padding: .35em .1em; border-bottom: 1px solid #EEF2F7; }
.web-res b { font-weight: 800; }
.web-res span { color: var(--ink-2); }
.ui-f .web-lock { margin-right: auto; align-self: center; font-size: .78em; color: var(--sign); font-weight: 650; }
.ext-state > div { min-width: 0; }
.two > .guard { align-self: start; }
@media (max-width: 600px) { .btn { white-space: normal; text-align: center; line-height: 1.2; } }
.or + .btn { width: 100%; }
@media (max-width: 760px) { .flist a { align-items: start; } }
