/* =====================================================================
   Micronet DMARC: designsystem 4.0 (november 2026)
   Ett sammenhengende lag: mørk marineblå sidemeny, lys hovedflate,
   glasskort med hvit kant, kontrollert aura i lavendel og lyseblått.
   Rekkefølge: tokens, grunnlag, skall, komponenter, sider, mørk modus,
   utskrift, mobil. Senere regler overstyrer bare der det står.
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  --s0: #FFFFFF; --s50: #F5F7FB; --s100: #EEF1F6; --s200: #E2E7EF; --s300: #C9D1DD; --s400: #98A2B3;
  --s500: #6B7689; --s600: #525D71; --s700: #344054; --s800: #1D2939; --s900: #121B2E; --s950: #0D1528;
  --p50: #F3F2FF; --p100: #EAE8FF; --p200: #CFCAFF; --p500: #5B4FE9; --p600: #4B3FD6; --p700: #3E33B8;
  --green: #12A150; --green-bg: #E6F6ED; --orange: #C0670A; --orange-bg: #FDF0E1; --red: #C2253A; --red-bg: #FCEBED;
  --purple: #7C4DDB; --purple-bg: #F2EDFD; --mint: #17A673; --mint-bg: #E2F5EC;
  /* Ink tokens: accent colours for TEXT. They reach 4.5:1 on the surfaces of the theme (the plain tokens are for fills). */
  --p-ink: #5B4FE9; --green-ink: #0C7A3A; --orange-ink: #A3540A; --red-ink: #C2253A; --purple-ink: #6B3FD0;
  --aura-lav: 167, 139, 250; --aura-blue: 125, 196, 250;
  --side: #0B1430; --side-2: #121D40; --side-txt: #AEB7CF; --side-ico: #7F8BAA; --side-line: rgba(255, 255, 255, .07);
  --glass: rgba(255, 255, 255, .84);
  --edge: 0 0 0 1px rgba(16, 24, 40, .06);
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 22px rgba(16, 24, 40, .05);
  --shadow-hi: 0 1px 2px rgba(16, 24, 40, .05), 0 12px 32px rgba(16, 24, 40, .09);
  --grad: linear-gradient(90deg, #4E6AF2 0%, #6B4CEB 100%);
  --r-sm: 8px; --r: 12px; --r-lg: 16px;
  --side-w: 248px; --top-h: 68px;
  --font: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;
}

/* ---------- Grunnlag ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font); font-size: 14px; line-height: 1.45; letter-spacing: 0; word-spacing: .05em; color: var(--s700);
  font-feature-settings: 'cv11', 'ss01', 'tnum' 0; -webkit-font-smoothing: antialiased;
  background: radial-gradient(900px 480px at 100% -10%, rgba(var(--aura-lav), .13), transparent 65%), radial-gradient(700px 420px at 62% 38%, rgba(var(--aura-blue), .07), transparent 70%), radial-gradient(600px 400px at 30% 100%, rgba(var(--aura-lav), .05), transparent 70%), #F6F7FC;
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; letter-spacing: inherit; }
hr { border: 0; border-top: 1px solid var(--s200); margin: 6px 0; }
h1 { font-size: 34px; font-weight: 800; color: var(--s950); margin: 0; letter-spacing: -.03em; line-height: 1.12; }
:focus-visible { outline: 2px solid var(--p500); outline-offset: 2px; }
.ms { font-family: 'Material Symbols Outlined'; font-weight: 300; font-size: 20px; line-height: 1; display: inline-block; font-feature-settings: 'liga'; -webkit-font-smoothing: antialiased; user-select: none; }
.ms.sm { font-size: 17px; } .ms.xs { font-size: 14px; } .ms.huge { font-size: 56px; }
.ms.fill { font-variation-settings: 'FILL' 1; }
.ms.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
[hidden] { display: none !important; }

/* Eget ikonsett */
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic .d { fill: currentColor; stroke: none; opacity: .14; }
.ic .a { stroke: var(--ic-accent, var(--p500)); } .ic .f { fill: var(--ic-accent, var(--p500)); stroke: none; }
.ic.xl { width: 44px; height: 44px; }

/* ---------- Sidemeny ---------- */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--side-w); z-index: 20; display: flex; flex-direction: column;
  padding: 0 0 18px; color: #fff; overflow: hidden auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.12) transparent;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 264 260'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='1' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%236D5DFC' stop-opacity='0'/%3E%3Cstop offset='.4' stop-color='%238B7CFF'/%3E%3Cstop offset='.72' stop-color='%23D2C4FF'/%3E%3Cstop offset='1' stop-color='%2393C5FD' stop-opacity='0'/%3E%3C/linearGradient%3E%3ClinearGradient id='h' x1='0' y1='1' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%237CC4FA' stop-opacity='0'/%3E%3Cstop offset='.5' stop-color='%237CC4FA'/%3E%3Cstop offset='1' stop-color='%23B9A8FF' stop-opacity='0'/%3E%3C/linearGradient%3E%3Cfilter id='b' x='-50%25' y='-50%25' width='200%25' height='200%25'%3E%3CfeGaussianBlur stdDeviation='12'/%3E%3C/filter%3E%3Cfilter id='s' x='-20%25' y='-20%25' width='140%25' height='140%25'%3E%3CfeGaussianBlur stdDeviation='1.4'/%3E%3C/filter%3E%3C/defs%3E%3Cellipse cx='70' cy='250' rx='160' ry='70' fill='%235B4FE9' opacity='.32' filter='url(%23b)'/%3E%3Cpath d='M-20 252C70 238 150 212 290 150' stroke='url(%23g)' stroke-width='22' fill='none' opacity='.55' filter='url(%23b)'/%3E%3Cpath d='M-20 252C70 238 150 212 290 150' stroke='url(%23g)' stroke-width='2.6' fill='none' filter='url(%23s)'/%3E%3Cpath d='M-20 262C80 248 160 226 290 176' stroke='url(%23h)' stroke-width='1.4' fill='none' opacity='.8'/%3E%3Cpath d='M-20 244C60 228 130 196 290 124' stroke='url(%23g)' stroke-width='1' fill='none' opacity='.6'/%3E%3Cpath d='M-20 272C90 258 180 240 290 200' stroke='url(%23h)' stroke-width='.8' fill='none' opacity='.5'/%3E%3C/svg%3E") left bottom / 100% auto no-repeat,
    linear-gradient(180deg, #0E1838 0%, #0B1430 55%, #0A1029 100%);
  border-right: 1px solid rgba(255, 255, 255, .04);
}
.side-head { display: flex; align-items: center; justify-content: space-between; height: var(--top-h); padding: 0 12px 0 22px; flex: none; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; }
.logo span { font-weight: 600; letter-spacing: .24em; font-size: 14px; }
.collapse { color: var(--side-ico); } .collapse:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.menu { display: flex; flex-direction: column; gap: 4px; padding: 8px 14px; }
.menu a, .menu-group {
  all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 14px; padding: 11px 12px; border-radius: 11px;
  color: #E9ECF6; font-weight: 500; font-size: 15px; cursor: pointer; transition: background .12s, color .12s;
}
.menu a .ms, .menu-group .ms { font-size: 20px; width: 20px; color: #C9CFE3; }
.menu a .ic, .menu-group .ic { width: 22px; height: 22px; color: #EEF0FA; --ic-accent: #EEF0FA; stroke-width: 1.6; }
.menu .ic .d { opacity: 0; }
.menu a:hover, .menu-group:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.menu a:hover .ic, .menu-group:hover .ic { color: #fff; }
.menu a.active { background: rgba(255, 255, 255, .09); color: #fff; box-shadow: none; }
.menu a.active .ic, .menu-group.has-active .ic { color: #fff; --ic-accent: #fff; }
.menu-group.has-active { color: #fff; }
.menu a span:not(.ms) { flex: 1; }
.menu a.soon { color: var(--s400); cursor: default; } .menu a.soon:hover { background: none; }
.menu a i { margin-left: auto; font-style: normal; font-size: 11px; }
.menu-group .caret { margin-left: auto; transition: transform .15s; font-size: 17px !important; }
.menu-group[aria-expanded="true"] .caret { transform: rotate(-90deg); }
.submenu { padding: 2px 0 6px; display: flex; flex-direction: column; gap: 1px; }
.menu a.sub { padding: 9px 12px 9px 46px; font-size: 14.5px; border-radius: 11px; color: #D5DAEA; }
.menu a.sub .bullet { width: 6px; height: 6px; border-radius: 50%; background: #8E97B5; flex: none; margin-right: 4px; }
.menu a.sub.active { background: #232D5C; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04); }
.menu a.sub.active .bullet, .menu a.sub:hover .bullet { background: #A78BFA; box-shadow: 0 0 8px rgba(167, 139, 250, .8); }
.menu-label { padding: 14px 12px 4px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--side-ico); }
.tag-new, .menu a i.tag-new { font-style: normal; font-size: 10.5px; font-weight: 600; background: rgba(185, 168, 255, .18); color: #D9D0FF; border: 1px solid rgba(185, 168, 255, .3); border-radius: 6px; padding: 0 6px; line-height: 17px; margin-left: auto; }
.badge { font-style: normal; background: var(--red); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700; padding: 0 7px; line-height: 18px; }
.quota { margin: auto 16px 120px; padding: 12px 14px 10px; border-radius: 12px; font-size: 11.5px; font-weight: 600; color: #E6E9F5; background: rgba(16, 26, 60, .72); border: 1px solid var(--side-line); backdrop-filter: blur(6px); flex: none; }
.quota a { color: #E6E9F5; }
.q-head { display: flex; justify-content: space-between; align-items: center; }
.q-head > a { display: inline-grid; place-items: center; min-width: 24px; min-height: 24px; }
.q-bar { height: 6px; background: rgba(255, 255, 255, .1); border-radius: 999px; margin: 8px 0 6px; overflow: hidden; }
.q-bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #8FB8FF, #B9A8FF); transition: width .3s; }
.q-foot { font-weight: 500; color: var(--side-txt); }
.quota a.q-warn { min-height: 44px; display: flex; gap: 6px; align-items: flex-start; margin-top: 8px; color: #FFC46B; font-weight: 600; text-decoration: none; }
body.mini .sidebar { width: 72px; } body.mini .main { margin-left: 72px; }
body.mini .menu span, body.mini .menu .caret, body.mini .submenu, body.mini .quota, body.mini .logo span, body.mini .tag-new, body.mini .badge { display: none !important; }
body.mini .menu a, body.mini .menu-group { justify-content: center; padding: 11px 0; }
body.mini .side-head { flex-direction: column; justify-content: center; padding: 0; gap: 4px; }
body.mini .collapse .ms { transform: rotate(180deg); }

/* ---------- Topplinje ---------- */
.main { margin-left: var(--side-w); min-height: 100%; display: flex; flex-direction: column; position: relative; }
.topbar {
  position: sticky; top: 0; z-index: 10; height: var(--top-h); display: flex; align-items: center; gap: 20px; padding: 0 28px 0 32px;
  background: var(--glass); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--s200);
}
.title-wrap { display: flex; flex-direction: column; min-width: 0; flex: 0 1 auto; max-width: 380px; overflow: hidden; } /* auto, not 260px: «Domener › micronet.no › MTA-STS» was cut off (12.11.2026) */
.title-wrap h2 { margin: 0; font-size: 19px; font-weight: 800; color: var(--s950); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumbs { display: flex; align-items: center; gap: 4px; color: var(--s500); font-size: 12.5px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumbs a:hover { color: var(--p-ink); }
.crumbs .ms { font-size: 15px; } .crumbs .sep { font-size: 14px; color: var(--s400); }
.top-mid { flex: 1 1 auto; display: flex; align-items: center; gap: 12px; min-width: 0; }
.acct-switch, .top-search { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; background: var(--s0); border: 1px solid var(--s200); border-radius: 10px; color: var(--s500); transition: border-color .12s, box-shadow .12s; }
.acct-switch { flex: 0 1 230px; min-width: 0; cursor: pointer; }
.acct-switch select { border: 0; background: transparent; font: inherit; font-weight: 500; color: var(--s950); outline: none; width: 100%; min-width: 0; cursor: pointer; }
.top-search { flex: 0 1 400px; min-width: 0; }
.top-search input { border: 0; background: transparent; outline: none; font: inherit; color: var(--s950); width: 100%; }
.acct-switch:focus-within, .top-search:focus-within { border-color: var(--p200); box-shadow: 0 0 0 3px var(--p50); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 6px; flex: none; }
.icon-btn { all: unset; box-sizing: border-box; cursor: pointer; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--s600); }
.icon-btn:hover { background: var(--s100); color: var(--s950); }
.top-ico { color: var(--s700); }
.bell { position: relative; }
.bell.has-dot::after { content: ''; position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: #7C5CFA; box-shadow: 0 0 0 2px #fff; }
.menu-btn { display: none; }
.avatar { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; cursor: pointer; font-weight: 700; font-size: 16px; background: #E3F6EA; color: #1E9E57; border: 1px solid #CDEFD9; margin-left: 14px; flex: none; }
.avatar.sm { width: 26px; height: 26px; font-size: 12px; display: inline-grid; vertical-align: middle; margin: 0; }
.who, button.who { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 8px; line-height: 1.2; text-align: left; padding: 4px 6px 4px 2px; border-radius: 10px; }
.who > span:first-child { display: flex; flex-direction: column; }
.who b { display: block; font-weight: 700; color: var(--s950); font-size: 15px; }
.who small { color: var(--s500); font-size: 12px; }
.who .ms { color: var(--s500); }
.who:hover b { color: var(--p-ink); }

/* «Kom i gang»-fremdrift på raden under topplinjen */
.subbar { position: relative; height: 0; z-index: 5; }
.gs-widget { all: unset; box-sizing: border-box; cursor: pointer; position: absolute; right: 32px; top: 28px; display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 16px; border-radius: 12px; background: var(--glass); box-shadow: var(--edge), var(--shadow); border: 1px solid #fff; color: var(--s700); font-size: 13.5px; font-weight: 600; transition: box-shadow .12s; }
.gs-widget:hover { box-shadow: 0 0 0 1px var(--p200), var(--shadow-hi); }
.gsw-top { display: contents; } .gsw-top span { order: 1; color: var(--s950); } .gsw-top b { order: 3; color: var(--s950); font-weight: 700; }
.gs-widget .seg-progress { order: 2; width: 120px; }
body:has(#gsWidget:not([hidden])) #view > .page-head:first-child,
body:has(#gsWidget:not([hidden])) #view > .dom-head:first-child { padding-right: 310px; }
body:has(#gsWidget:not([hidden])) #view > :first-child:not(.page-head):not(.dom-head) { margin-top: 64px; }
.seg-progress { display: flex; gap: 4px; } .seg-progress i { flex: 1; height: 6px; border-radius: 4px; background: var(--s200); } .seg-progress i.on { background: linear-gradient(90deg, var(--mint), #3CC48E); }
.seg-progress.small i { height: 5px; }

/* ---------- Innhold ---------- */
main { padding: 32px 32px 56px; flex: 1; min-width: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; min-height: 44px; }
.page-head p { margin: 6px 0 0; color: var(--s500); font-size: 14.5px; max-width: 980px; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.card { position: relative; background: rgba(255, 255, 255, .92); border: 1px solid #E7EAF2; border-radius: var(--r-lg); padding: 24px; box-shadow: var(--edge), var(--shadow); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.card + .card { margin-top: 24px; }
.grid { display: grid; gap: 20px; }
.grid > .card + .card, .grid > * + .card { margin-top: 0; }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card[data-href] { cursor: pointer; transition: transform .12s, box-shadow .12s; }
.card[data-href]:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px var(--p200), var(--shadow-hi); }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head h2 { font-size: 16px; font-weight: 600; color: var(--s950); margin: 0; letter-spacing: -.01em; }
.card-head > .btn, .card-head > a.btn { margin-left: auto; }
.card-head .spacer { flex: 1; }
.card-head p { margin: 0; }

/* Hjelpeklasser */
.mt { margin-top: 24px; } .m0 { margin: 0; } .muted { color: var(--s500); } .small { font-size: 12.5px; } .center { text-align: center; } .pad { padding: 28px 0; }
/* Global rule (Terje 18.11.2026): a technical value (include, hostname, record, selector) stands on its own line under the
   name, never on the same line. helhet.js H6 checks it. */
.sub-val { display: block; margin-top: 3px; font-family: var(--mono); font-size: 12px; font-weight: 400; line-height: 1.5; color: var(--s500); word-break: break-all; white-space: normal; }
.mono { font-family: var(--mono); } .break { word-break: break-all; } .pre-wrap { white-space: pre-wrap; } .grow { flex: 1; }
.big { font-size: 30px; font-weight: 700; color: var(--s950); line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.lbl { color: var(--s500); margin-top: 6px; font-size: 13px; }
.clickable { cursor: pointer; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.st-green { color: var(--green-ink); } .st-orange { color: var(--orange-ink); } .st-red { color: var(--red-ink); } .st-grey { color: var(--s500); }
.loading { display: grid; place-items: center; padding: 60px 0; color: var(--s500); gap: 8px; }
.loading .ms { font-size: 30px; color: var(--p-ink); }
.empty { padding: 40px 0; text-align: center; color: var(--s600); }
.empty-state { text-align: center; padding: 40px 16px; color: var(--s600); }
.empty-state > .ms { font-size: 40px; color: var(--s400); }
.empty-state h3 { margin: 10px 0 6px; color: var(--s950); font-size: 16px; font-weight: 600; }
.empty-state p { margin: 0 auto 16px; max-width: 520px; }
.empty-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ---------- Knapper ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s, box-shadow .12s, filter .12s; }
.btn .ms { font-size: 19px; } .btn .ic { width: 18px; height: 18px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 6px 16px rgba(91, 79, 233, .26); --ic-accent: #fff; }
.btn-primary:hover { filter: brightness(1.06); }
.btn-primary:active { filter: brightness(.96); }
.btn-outline { background: var(--s0); border-color: var(--p200); color: var(--p-ink); } .btn-outline:hover { background: var(--p50); }
.btn-text { background: none; color: var(--s700); } .btn-text:hover { color: var(--s950); background: var(--s100); }
.btn-danger { background: none; color: var(--red-ink); padding-left: 12px; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn-lg { height: 50px; padding: 0 24px; font-size: 16px; border-radius: 12px; } .btn-lg .ms { font-size: 22px; }
.btn-ghost, .btn-white { background: var(--s0); border-color: var(--s200); color: var(--s700); }
.btn-ghost:hover, .btn-white:hover { border-color: var(--p200); color: var(--p600); background: var(--s0); }
.btn-soft { background: #EEEBFF; border-color: #E2DCFF; color: #4B3FD6; } .btn-soft:hover { background: #E4DEFF; }
.btn-red { background: var(--red); color: #fff; } .btn-red:hover { filter: brightness(.92); }
.btn-dark { background: var(--s950); color: #fff; } .btn-dark:hover { background: var(--s800); }
.btn-mint { background: var(--mint); color: #fff; } .btn-mint:hover { filter: brightness(.94); }
.btn[aria-busy="true"] { opacity: .6; cursor: progress; pointer-events: none; } /* no second click while the first is on its way */
.chip-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 10px; background: var(--p50); color: var(--p600); border: 0; font-weight: 600; cursor: pointer; }
.cols-btn { min-height: 32px; background: none; border: 0; color: var(--s950); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.chipbtn { background: none; border: 0; padding: 0; cursor: pointer; border-radius: 999px; transition: transform .12s; }
.chipbtn:hover { transform: translateY(-1px); }
.chipbtn.on { outline: 2px solid var(--p500); outline-offset: 2px; }

/* ---------- Statuspiller ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 6px; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1.3; white-space: nowrap; }
.pill::before { content: ''; width: 6px; height: 6px; margin: 0 2px 0 3px; border-radius: 50%; background: currentColor; flex: none; }
.pill.green::before, .pill.orange::before, .pill.red::before, .pill.grey::before { font-family: 'Material Symbols Outlined'; font-variation-settings: 'FILL' 1; font-size: 17px; line-height: 1; width: 17px; height: 17px; margin: 0; border-radius: 0; background: none; overflow: hidden; font-weight: 400; -webkit-font-smoothing: antialiased; }
.pill.green::before { content: 'check_circle'; color: #1FA45A; } .pill.orange::before { content: 'error'; color: #D97706; } .pill.red::before { content: 'cancel'; color: #DC2D44; } .pill.grey::before { content: 'do_not_disturb_on'; color: #8B95A8; }
.pill .ms { font-size: 14px; }
.pill:has(> .ms)::before { display: none; }
.pill.small { font-size: 11px; padding: 2px 7px; font-weight: 600; }
.pill.small::before, .dom-pills .pill::before, .gbadge::before { display: none; }
.pill.green { background: #E5F6EC; color: #16683A; }
.pill.orange { background: #FDF0DD; color: #9A4B06; }
.pill.red { background: #FDE8EB; color: #A11A2E; }
.pill.grey { background: #EEF0F4; color: #2E3646; }
.pill.blue { background: var(--p100); color: var(--p600); }
.pill.purple { background: var(--purple-bg); color: var(--purple-ink); }
/* Grade pills (A-F): same tints as the status pills, without the status icon */
.pill.grade::before { display: none; } .pill.grade { padding-left: 11px; }
.pill.g-A, .pill.g-B { background: #E5F6EC; color: #16683A; } .pill.g-C, .pill.g-D { background: #FDF0DD; color: #9A4B06; } .pill.g-E, .pill.g-F { background: #FDE8EB; color: #A11A2E; }

/* ---------- Skjema og felt ---------- */
.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar .spacer { flex: 1; }
.field { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; background: var(--s0); border: 1px solid var(--s200); border-radius: 10px; color: var(--s500); min-width: 224px; transition: border-color .12s, box-shadow .12s; }
.field input, .field select { border: 0; background: transparent; outline: none; font: inherit; color: var(--s950); width: 100%; min-width: 0; }
/* The control fills the height of its wrapper, so the whole field is the touch target (not just the 23 px text line) */
.field select, .field input:not([type=color]):not([type=checkbox]):not([type=radio]), .acct-switch select { align-self: stretch; min-height: 24px; }
/* A select is never squeezed to a sliver in a crowded toolbar: the toolbar wraps instead */
.field:has(> select) { flex-shrink: 0; } .field select { min-width: 4.5em; }
.field input { text-overflow: ellipsis; } /* a long value (a DNS record) ends in … when the field is not being edited */
.field:focus-within { border-color: var(--p200); box-shadow: 0 0 0 3px var(--p50); }
.field.small { min-width: 0; }
.field.invalid { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-bg); } .field-hint { margin: 8px 0 0; color: var(--red-ink); font-size: 13.5px; font-weight: 600; }
.field.area { height: auto; padding: 8px 12px; align-items: stretch; }
.field textarea { border: 0; background: transparent; font: inherit; color: var(--s950); outline: none; width: 100%; resize: vertical; }
.field.color { gap: 10px; } .field.color input[type=color] { width: 32px; height: 26px; border: 0; padding: 0; background: none; }
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-row > b, .form-label { color: var(--s950); font-weight: 600; display: block; margin-bottom: 6px; }
.form-row small, .help { color: var(--s500); font-size: 12.5px; margin: 6px 0 0; }
.form-row .field { min-width: 0; }
.form-section { font-size: 14px; font-weight: 600; color: var(--s950); margin: 8px 0 12px; padding-top: 12px; border-top: 1px solid var(--s100); }
.check { display: flex; align-items: center; gap: 8px; margin: 8px 0; cursor: pointer; } .check input { accent-color: var(--p500); width: 16px; height: 16px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; margin-bottom: 16px; }
.select { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; height: 40px; padding: 0 10px; border: 1px solid var(--s200); border-radius: 10px; min-width: 80px; }
.seg { display: inline-flex; border: 1px solid var(--s200); border-radius: 10px; padding: 3px; background: var(--s50); gap: 2px; }
.seg span, .seg button { padding: 6px 12px; border-radius: 7px; color: var(--s600); border: 1px solid transparent; background: none; cursor: pointer; font-weight: 600; }
.seg span.on, .seg button.on { background: var(--s0); color: var(--p600); box-shadow: var(--edge), 0 1px 3px rgba(16, 24, 40, .08); }
.radios { display: flex; flex-direction: column; gap: 12px; }
.radio { display: grid; grid-template-columns: 20px 1fr; gap: 6px; align-items: start; cursor: pointer; position: relative; }
.radio input { position: absolute; opacity: 0; pointer-events: none; }
.radio .r { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--s300); background: var(--s0); margin-top: 1px; }
.radio.on .r { border: 5px solid var(--p500); }
.radio b { font-weight: 600; color: var(--s950); display: block; }
.radio small { font-size: 12.5px; color: var(--s600); }
.slider { display: flex; align-items: center; gap: 14px; max-width: 420px; } .slider input { flex: 1; accent-color: var(--p500); } .slider b { min-width: 52px; color: var(--s950); }
.chk { width: 17px; height: 17px; border: 1px solid var(--s300); border-radius: 4px; background: var(--s0); display: inline-block; vertical-align: middle; }
.chkcol { width: 40px; } .chkcol input { width: 16px; height: 16px; accent-color: var(--p500); }
.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--s300); cursor: pointer; transition: .15s; }
.switch span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: .15s; }
.switch input:checked + span { background: var(--p500); }
.switch input:checked + span::after { transform: translateX(20px); }

/* ---------- Tabeller ---------- */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th { text-align: left; font-weight: 600; font-size: 12px; color: var(--s500); padding: 12px 14px; white-space: nowrap; border-bottom: 1px solid var(--s200); letter-spacing: .01em; }
th .ms { font-size: 15px; color: var(--s400); vertical-align: -3px; margin-left: 2px; }
th.sorted, th.sorted .ms { color: var(--p-ink); }
th.sortable { cursor: pointer; user-select: none; }
td { padding: 13px 14px; border-bottom: 1px solid var(--s100); white-space: nowrap; color: var(--s700); font-variant-numeric: tabular-nums; }
tbody tr:hover td { background: rgba(91, 79, 233, .035); }
td.num, th.num { text-align: right; }
td .dom { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--s950); cursor: pointer; }
td .dom:hover { color: var(--p-ink); }
.dom-ico { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 12px; }
td .dom-ico { display: inline-grid; vertical-align: middle; }
td.actions { text-align: right; position: sticky; right: 0; background: var(--s0); box-shadow: -1px 0 0 var(--s100); }
tbody tr:hover td.actions { background: var(--s50); }
td.actions .icon-btn { display: inline-grid; }
table.compact td, table.compact th { padding: 8px 10px; }
.table-foot { display: flex; align-items: center; gap: 14px; margin-top: 22px; color: var(--s950); }
.inner { border: 1px solid var(--s200); border-radius: var(--r); overflow: hidden; background: var(--s0); }
.inner th { padding: 14px 18px; }
.inner td { padding: 16px 18px; border-bottom: 1px solid var(--s200); white-space: normal; }
.inner tr:last-child td { border-bottom: 0; }
.inner tbody tr:hover td { background: none; }
.inner .grip { color: var(--s500); width: 40px; }
.weights td:last-child, .weights th:last-child { text-align: right; }

/* ---------- Faner ---------- */
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--s200); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { all: unset; box-sizing: border-box; cursor: pointer; position: relative; padding: 13px 20px; font-size: 15px; color: var(--s600); font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.tabs a:hover, .tabs button:hover { color: var(--s950); }
.tabs a.active, .tabs button.active, .tabs button[aria-selected="true"] { color: var(--s950); font-weight: 700; }
.tabs a.active::after, .tabs button.active::after, .tabs button[aria-selected="true"]::after { content: ''; position: absolute; left: 6px; right: 6px; bottom: -1px; height: 3px; border-radius: 2px 2px 0 0; background: #5B4BEA; }
.tabs a .dot { width: 7px; height: 7px; border-radius: 50%; }

/* ---------- Varselbokser, skuff, dialog, meny, toast ---------- */
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); background: var(--p50); color: var(--s950); border: 1px solid var(--p100); font-size: 13.5px; }
.notice .ms { color: var(--p-ink); margin-top: 1px; }
.notice.warn { background: var(--orange-bg); border-color: #F3D2A8; } .notice.warn .ms { color: var(--orange-ink); }
.notice.ok { background: var(--green-bg); border-color: #B5E3C8; } .notice.ok .ms { color: var(--green-ink); }
.scrim { display: none; }
.scrim.open { display: block; position: fixed; inset: 0; background: rgba(13, 21, 40, .38); z-index: 15; backdrop-filter: blur(2px); }
.scrim.clear { background: transparent; backdrop-filter: none; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(480px, 100%); background: var(--s0); z-index: 41; display: flex; flex-direction: column; box-shadow: -12px 0 40px rgba(13, 21, 40, .16); animation: slidein .18s ease-out; border-left: 1px solid var(--s200); }
.drawer.wide { width: min(760px, 100%); }
@keyframes slidein { from { transform: translateX(30px); opacity: 0; } }
.drawer-head { display: flex; align-items: center; padding: 22px 28px 12px; } .drawer-head h2 { margin: 0; font-size: 19px; font-weight: 700; color: var(--s950); flex: 1; letter-spacing: -.015em; }
.drawer > .notice { margin: 0 28px 8px; }
.drawer-body { padding: 12px 28px 28px; overflow-y: auto; flex: 1; }
.drawer-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--s100); flex-wrap: wrap; }
.dialog { position: fixed; z-index: 61; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(440px, calc(100% - 32px)); background: var(--s0); border-radius: var(--r-lg); padding: 24px; box-shadow: 0 24px 64px rgba(13, 21, 40, .25); }
.dialog h2 { margin: 0 0 8px; font-size: 18px; color: var(--s950); } .dialog p { margin: 0 0 20px; }
.dialog-foot { display: flex; justify-content: flex-end; gap: 8px; }
.popmenu { position: absolute; z-index: 70; background: var(--s0); border: 1px solid var(--s200); border-radius: var(--r); padding: 6px; min-width: 220px; box-shadow: 0 14px 40px rgba(13, 21, 40, .16); }
.popmenu button { all: unset; display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; padding: 9px 12px; border-radius: 8px; cursor: pointer; color: var(--s700); white-space: pre; }
.popmenu button:hover { background: var(--s50); color: var(--s950); } .popmenu button.danger { color: var(--red-ink); }
.popmenu hr { margin: 4px 6px; border-top-color: var(--s100); }
.toast { position: fixed; right: 24px; bottom: 24px; background: var(--s0); border: 1px solid var(--s200); border-radius: var(--r); padding: 14px 18px; display: none; align-items: center; gap: 10px; color: var(--s950); box-shadow: 0 10px 30px rgba(13, 21, 40, .14); z-index: 80; max-width: min(480px, calc(100% - 32px)); }
.toast .ms { color: var(--green-ink); } .toast.err .ms { color: var(--red-ink); }
.kvs { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 10px 16px; } .kvs span { color: var(--s500); } .kvs b { font-weight: 500; color: var(--s950); word-break: break-word; }
.kv { display: flex; flex-direction: column; } .kv span { color: var(--s500); font-size: 13px; }

/* ---------- Statistikk og grafer ---------- */
.stat { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.stat h3, .stat-title, .q-card h3 { margin: 0 0 14px; font-size: 14.5px; font-weight: 600; color: var(--s950); display: flex; align-items: center; gap: 10px; }
.stat h3 .ms, .stat-title .ms { width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center; font-size: 19px; background: var(--p50); color: var(--p-ink); box-shadow: inset 0 0 0 1px var(--p100); }
.grid > .card:nth-child(2) .stat-title .ms, .grid > .card:nth-child(2) .stat h3 .ms { background: var(--mint-bg); color: var(--mint); box-shadow: inset 0 0 0 1px #CBEBDD; }
.grid > .card:nth-child(3) .stat-title .ms, .grid > .card:nth-child(3) .stat h3 .ms { background: #EAF4FE; color: #2F7FD1; box-shadow: inset 0 0 0 1px #D3E7FB; }
.q-card h3 .ms { color: var(--s400); font-size: 18px; }
.ring-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; } .ring-wrap small { color: var(--s500); }
.ring { --v: 0; --c: var(--green); width: 84px; height: 84px; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--v) * 1%), var(--s100) 0); display: grid; place-items: center; flex: none; }
.ring::after { content: attr(data-label); width: 80%; height: 80%; border-radius: 50%; background: var(--s0); display: grid; place-items: center; font-weight: 700; color: var(--s950); font-size: 15px; font-variant-numeric: tabular-nums; }
.ring.big-ring { width: 110px; height: 110px; } .ring.big-ring::after { width: 86px; height: 86px; font-size: 34px; }
.legend { display: inline-flex; gap: 12px; align-items: center; color: var(--s500); font-size: 12.5px; margin-left: auto; }
.legend i { display: inline-block; width: 18px; height: 8px; border-radius: 4px; margin-right: 4px; }
.legend-list { display: flex; flex-direction: column; gap: 6px; } .legend-list span { display: flex; align-items: center; gap: 8px; } .legend-list i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
/* Column chart for passed/failed per day (ui.js timeline, Terje 18.11.2026): slim columns, calm colours, text at the portal's size */
:root { --chart-ok: color-mix(in srgb, var(--green) 58%, var(--s0)); --chart-bad: color-mix(in srgb, var(--red) 70%, var(--s0)); }
.legend i.lg-ok { background: var(--chart-ok); } .legend i.lg-bad { background: var(--chart-bad); }
.vchart { display: grid; grid-template-columns: auto 1fr; gap: 0 12px; padding-top: 8px; }
.vc-y { position: relative; height: var(--vc-h); min-width: 22px; }
.vc-y span { position: absolute; right: 0; transform: translateY(50%); font-size: 11.5px; line-height: 1; color: var(--s400); font-variant-numeric: tabular-nums; }
.vc-plot { position: relative; min-width: 0; }
.vc-line { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--s100); pointer-events: none; }
.vc-cols { position: relative; display: flex; }
.vc-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.vc-area { height: var(--vc-h); width: 100%; display: flex; align-items: flex-end; justify-content: center; border-radius: 6px; transition: background .15s; }
.vc-col:hover .vc-area { background: color-mix(in srgb, var(--s100) 55%, transparent); }
.vc-bar { width: min(18px, 60%); display: flex; flex-direction: column; gap: 2px; border-radius: 4px 4px 2px 2px; overflow: hidden; }
.vc-bar:empty { display: none; } .vc-bar i { display: block; min-height: 2px; } .vc-bar .ok { background: var(--chart-ok); } .vc-bar .bad { background: var(--chart-bad); }
.vc-x { height: 14px; margin-top: 8px; font-size: 11.5px; line-height: 14px; color: var(--s500); white-space: nowrap; }
/* DNS monitoring: certificates as an aligned list, host on the left, status on the right (Terje 18.11.2026) */
.cert-list { display: grid; grid-template-columns: 92px auto; justify-content: start; align-items: center; gap: 6px 12px; }
.cert-list .cl-host { font-size: 12.5px; color: var(--s500); }
.cert-list .pill { padding-top: 2px; padding-bottom: 2px; font-size: 12.5px; }
.chart { width: 100%; height: auto; } .chart text { font-size: 11px; fill: var(--s500); } .chart .grid { stroke: var(--s100); }
.hbars { display: flex; flex-direction: column; gap: 10px; }
.hbar { display: grid; grid-template-columns: 140px 1fr 70px; gap: 10px; align-items: center; }
.hbar > div { height: 8px; background: var(--s100); border-radius: 9px; overflow: hidden; } .hbar i { display: block; height: 100%; background: var(--p500); border-radius: 9px; }
.hbar b { text-align: right; font-weight: 600; color: var(--s950); }
.hbar.link { color: inherit; text-decoration: none; margin: -4px -8px; padding: 4px 8px; border-radius: 8px; cursor: pointer; }
.hbar.link:hover { background: var(--s50, #F7F8FC); } .hbar.link:hover span { color: var(--p600, #4F46E5); }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 99px; background: var(--p50, #EEF2FF); color: var(--p700, #4338CA); font-size: 13px; text-decoration: none; }
.minibar { height: 6px; background: var(--s100); border-radius: 9px; overflow: hidden; } .minibar i { display: block; height: 100%; background: var(--p500); border-radius: 9px; }
.progress { height: 8px; background: var(--s100); border-radius: 9px; overflow: hidden; } .progress i { display: block; height: 100%; background: var(--green); border-radius: 9px; }
.state-row { display: grid; grid-template-columns: 80px 1fr 60px; gap: 10px; align-items: center; margin: 8px 0; }
.stack { display: flex; height: 10px; border-radius: 9px; overflow: hidden; background: var(--s100); } .stack i { display: block; height: 100%; }
.score-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.kpi-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 16px; border-radius: var(--r); background: var(--s0); border: 1px solid var(--s200); }
.kpi .ic { grid-row: span 2; width: 38px; height: 38px; padding: 8px; border-radius: 10px; background: var(--p50); color: var(--p-ink); }
.kpi.ok .ic { background: var(--mint-bg); color: var(--mint); }
.kpi small { color: var(--s500); } .kpi b { font-size: 22px; font-weight: 700; color: var(--s950); }

/* Banner og innsalg */
.banner { position: relative; overflow: hidden; display: flex; align-items: center; gap: 24px; margin-bottom: 24px; padding: 22px 26px; border-radius: var(--r-lg); color: var(--s950); background: radial-gradient(420px 160px at 100% 0%, rgba(var(--aura-lav), .16), transparent 70%), radial-gradient(360px 160px at 80% 120%, rgba(var(--aura-blue), .16), transparent 70%), var(--s0); border: 1px solid #fff; box-shadow: var(--edge), var(--shadow); }
.banner h2 { margin: 0 0 4px; font-size: 17px; font-weight: 700; color: var(--s950); }
.banner p { margin: 0; color: var(--s600); font-size: 13.5px; }
.banner .btn { margin-left: auto; }
.intro { display: flex; gap: 18px; align-items: center; background: linear-gradient(100deg, var(--p50), var(--s0)); }
.intro h2 { margin: 0 0 4px; font-size: 17px; font-weight: 600; color: var(--s950); } .intro p { margin: 0; }
.big-ico { font-size: 40px; color: var(--p-ink); }
.upsell { border-radius: var(--r-lg); padding: 26px 28px; background: var(--s50); border: 1px dashed var(--s300); }
.upsell h3 { margin: 0 0 6px; display: flex; gap: 8px; align-items: center; color: var(--s950); } .upsell ul { margin: 10px 0 0; padding-left: 18px; }
.upsell.dark { color: #fff; border: 0; background: radial-gradient(420px 200px at 100% 100%, rgba(var(--aura-lav), .28), transparent 70%), radial-gradient(360px 180px at 0% 0%, rgba(var(--aura-blue), .14), transparent 70%), linear-gradient(135deg, #0C1633, #16224A); }
.upsell.dark h2 { margin: 0 0 8px; font-size: 19px; } .upsell.dark p, .upsell.dark li { color: #C9D0E4; } .upsell.dark small { color: #A9B3CC; }
.upsell.dark .big { color: #fff; }
.donut-box { display: grid; place-items: center; text-align: center; gap: 2px; } .donut-box b { font-size: 36px; } .donut-box span { color: var(--s300); }
.cta { display: flex; align-items: center; gap: 18px; justify-content: space-between; flex-wrap: wrap; background: var(--p50); border: 1px solid var(--p100); }

/* ---------- Domeneinnstillinger og oppsett ---------- */
.dom-head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.dom-avatar { width: 44px; height: 44px; border-radius: 12px; background: var(--p50); color: var(--p600); display: grid; place-items: center; font-size: 19px; font-weight: 700; box-shadow: inset 0 0 0 1px var(--p100); }
.dom-name { font-size: 20px; font-weight: 700; color: var(--s950); display: flex; align-items: center; gap: 10px; letter-spacing: -.015em; }
.dom-name .ms { color: var(--s500); font-size: 20px; }
button.dom-name { background: none; border: 0; padding: 4px 8px; margin-left: -8px; border-radius: 10px; cursor: pointer; font-family: inherit; }
button.dom-name:hover { background: var(--s100); }
.dom-pills { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.status-line { display: flex; align-items: center; gap: 8px; padding: 18px 0 20px; border-bottom: 1px solid var(--s200); flex-wrap: wrap; }
.status-line .ms { font-size: 26px; }
.status-line b { font-weight: 600; color: var(--s950); }
.status-line small { color: var(--s600); font-size: 12.5px; }
.status-line .right { margin-left: auto; display: flex; gap: 8px; }
.section { padding-top: 26px; }
.section h2 { font-size: 16px; font-weight: 600; color: var(--s950); margin: 0 0 8px; }
.section > p { margin: 0 0 18px; color: var(--s600); }
.section h4 { margin: 18px 0 4px; font-size: 14px; font-weight: 600; color: var(--s950); }
.section h4 + p { margin: 0 0 10px; }
.list-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.list-head .spacer { flex: 1; }
.raw-toggle { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-weight: 600; color: var(--s700); cursor: pointer; padding: 6px 12px; border-radius: 999px; background: none; border: 0; }
.raw-toggle:hover { background: var(--s100); }
.raw { font-family: var(--mono); font-size: 12.5px; background: var(--s50); border: 1px solid var(--s200); border-radius: 10px; padding: 12px 14px; word-break: break-all; margin-top: 10px; display: flex; gap: 12px; align-items: flex-start; color: var(--s950); }
.raw code { flex: 1; }
.fix-box { background: var(--s50); border: 1px solid var(--s200); border-radius: var(--r-lg); padding: 24px 26px; margin-top: 28px; }
.fix-box h3 { font-size: 16px; font-weight: 600; color: var(--s950); margin: 0 0 4px; }
.fix-box > p { margin: 0 0 14px; }
.fix { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--s200); }
.fix:first-of-type { border-top: 0; }
.fix b { display: block; color: var(--s950); font-weight: 600; }
.fix small { color: var(--s600); font-size: 13px; }
.fix-actions { display: flex; gap: 6px; grid-column: 2; }
.bottom-bar { display: flex; align-items: center; gap: 10px; margin-top: 34px; }
.bottom-bar .spacer { flex: 1; }
.dns-table { display: flex; flex-direction: column; gap: 10px; }
.dns-row { display: flex; flex-wrap: wrap; gap: 10px 20px; background: var(--s50); border: 1px solid var(--s200); border-radius: var(--r); padding: 14px 16px; }
.dns-row > div { display: flex; flex-direction: column; gap: 2px; position: relative; min-width: 80px; }
.dns-row > div.grow { flex: 1 1 320px; }
.dns-row small { color: var(--s500); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; }
.dns-row code { font-family: var(--mono); font-size: 12.5px; color: var(--s950); word-break: break-all; padding-right: 30px; }
.dns-row code.pre { white-space: pre-wrap; }
.dns-row .icon-btn { position: absolute; right: -6px; top: 12px; width: 28px; height: 28px; }
.dns-note { flex-basis: 100%; margin: 0; font-size: 12.5px; color: var(--s600); }
.steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 18px; flex-wrap: wrap; }
.steps li { display: flex; align-items: center; gap: 8px; color: var(--s500); font-weight: 500; }
.steps li b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--s100); color: var(--s600); font-size: 12px; }
.steps li.on { color: var(--s950); } .steps li.on b { background: var(--p500); color: #fff; }
.steps li + li::before { content: ''; width: 24px; height: 1px; background: var(--s200); }
.steps.vertical { flex-direction: column; gap: 16px; } .steps.vertical li { align-items: flex-start; } .steps.vertical li + li::before { display: none; }
.steps.vertical h4 { margin: 2px 0 4px; color: var(--s950); } .steps.vertical p { margin: 0; color: var(--s700); }
.mini-card { background: var(--s50); border: 1px solid var(--s200); border-radius: var(--r); padding: 14px 16px; } .mini-card p { margin: 6px 0 0; } .mini-card small { color: var(--s600); }
.howto { padding-left: 20px; } .howto li { margin: 6px 0; }
.tree-node { margin-left: calc(var(--d) * 4px); padding: 10px 0 0 calc(min(var(--d), 1) * 18px); border-left: 1px dashed var(--s200); }
.tree > .tree-node { border-left: 0; padding-left: 0; }
.tree-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .tree-head .ms { color: var(--s500); }
.tree-rec { display: block; margin: 6px 0 0 26px; font-size: 12px; color: var(--s600); word-break: break-all; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; margin: -6px 0 16px; }
.hops { padding-left: 20px; } .hops li { margin: 6px 0; word-break: break-all; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--s200); background: var(--s0); color: var(--s700); font-weight: 500; cursor: pointer; font-size: 13px; }
.chip b { font-weight: 600; color: var(--s950); } .chip.on { background: var(--p50); border-color: var(--p200); color: var(--p600); }
.chip .ms { font-size: 14px; }
.active-filters { display: flex; gap: 6px; flex-wrap: wrap; margin: -8px 0 12px; } .active-filters:empty { display: none; }
.bulk { display: flex; align-items: center; gap: 6px; padding-right: 8px; } .bulk b { color: var(--p-ink); margin-right: 4px; }
.integ { display: grid; grid-template-columns: 48px 1fr auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--s100); }
.integ:last-child { border-bottom: 0; } .integ h3 { margin: 0 0 4px; font-size: 15px; color: var(--s950); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .integ p { margin: 0; }
.integ-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--p50); color: var(--p-ink); display: grid; place-items: center; }
.checklist { list-style: none; padding: 0; margin: 20px 0 0; }
.checklist li { display: grid; grid-template-columns: 34px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--s100); }
.checklist .ck { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--s100); color: var(--s600); font-weight: 600; }
.checklist li.done .ck { background: var(--green); color: #fff; } .checklist li.done b { color: var(--s500); text-decoration: line-through; }
.checklist li.next .ck { background: var(--p500); color: #fff; } .checklist p { margin: 4px 0 0; color: var(--s600); }
.tasks { display: flex; flex-direction: column; }
.task { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 8px; border-bottom: 1px solid var(--s100); border-radius: 8px; }
.task:hover { background: var(--s50); } .task b { display: block; color: var(--s950); font-weight: 600; } .task small { color: var(--s600); }
.task > .ms { color: var(--s400); }
.task > div { min-width: 0; overflow-wrap: anywhere; }

/* ---------- Kom i gang ---------- */
.getstarted { display: block; margin: -14px 16px 18px; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; }
.getstarted p { margin: 6px 0 0; font-size: 12px; color: var(--side-txt); }
.gs-top { display: flex; align-items: center; gap: 8px; } .gs-top b { font-weight: 600; }
.gs-count { margin-left: auto; background: var(--red); border-radius: 999px; padding: 1px 9px; font-size: 11px; font-weight: 700; }
.gs-panel { position: fixed; z-index: 56; top: calc(var(--top-h) + 10px); right: 18px; width: min(380px, calc(100% - 24px)); max-height: calc(100vh - 96px); overflow-y: auto; background: var(--s0); border-radius: var(--r-lg); box-shadow: 0 20px 56px rgba(13, 21, 40, .2); border: 1px solid var(--s200); animation: slidein .18s ease-out; }
.gs-hero { position: relative; padding: 24px 24px 20px; background: radial-gradient(260px 120px at 100% 0%, rgba(var(--aura-lav), .22), transparent 70%), radial-gradient(220px 120px at 0% 100%, rgba(var(--aura-blue), .18), transparent 70%), var(--s50); border-bottom: 1px solid var(--s200); }
.gs-hero h2 { margin: 0 0 8px; font-size: 20px; font-weight: 700; color: var(--s950); letter-spacing: -.015em; }
.gs-hero p { margin: 0 0 18px; color: var(--s600); }
.gs-hero b { display: block; margin-bottom: 8px; color: var(--s950); }
.gs-close { position: absolute; top: 12px; right: 12px; }
.gs-steps { list-style: none; margin: 0; padding: 14px 24px; display: flex; flex-direction: column; gap: 12px; }
.gs-steps li { display: flex; align-items: center; gap: 12px; color: var(--s500); }
.gs-steps a { color: var(--p600); font-weight: 600; }
.gs-ico { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--s100); color: var(--s400); flex: none; }
.gs-steps li.done .gs-ico { background: var(--mint-bg); color: var(--mint); }
.gs-foot { display: flex; flex-direction: column; gap: 10px; padding: 16px 24px 20px; background: var(--s50); border-top: 1px solid var(--s200); }
.gs-foot a { display: flex; gap: 8px; align-items: center; color: var(--p600); font-weight: 600; }
.gs-modal { width: min(500px, calc(100% - 32px)); padding: 26px 24px 18px; max-height: calc(100vh - 40px); overflow-y: auto; }
.gs-modal h2 { font-size: 21px; font-weight: 700; margin: 0 0 6px; color: var(--s950); }
.gs-modal > p { margin: 0 0 18px; color: var(--s700); }
.gs-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.gs-list li { display: flex; align-items: center; gap: 14px; min-height: 62px; padding: 0 16px; border: 1px solid var(--s200); border-radius: var(--r); background: var(--s0); }
.gs-num { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--s200); display: grid; place-items: center; font-size: 13px; color: var(--s600); flex: none; }
.gs-label { flex: 1; color: var(--s950); font-weight: 500; }
.gs-list li.done .gs-label, .gs-list li.done .gs-num { color: var(--s400); }
.gs-ok { color: var(--green-ink); font-size: 24px; }
.gs-list li.next { border-color: var(--s300); box-shadow: 0 2px 8px rgba(13, 21, 40, .06); }
.gs-go { color: var(--s400); display: grid; } .gs-go:hover { color: var(--p-ink); }
.gs-help { margin: 16px 4px 0; color: var(--s700); font-size: 13px; } .gs-help b { color: var(--s950); } .gs-help a { color: var(--p600); font-weight: 600; }

/* ---------- AI-chat ---------- */
.chat-log { display: flex; flex-direction: column; gap: 12px; max-height: 55vh; overflow-y: auto; padding: 4px; }
.msg { display: flex; gap: 10px; align-items: flex-start; max-width: 85%; }
.msg > div { background: var(--s50); border: 1px solid var(--s200); border-radius: 14px; padding: 10px 14px; color: var(--s950); }
.msg.bot > .ms { color: var(--p-ink); margin-top: 8px; }
.msg.me { align-self: flex-end; } .msg.me > div { background: var(--p500); color: #fff; border-color: var(--p500); }

/* ---------- Tom rapportside ---------- */
.empty-report { text-align: center; padding: 30px 16px 40px; } .empty-report .illu { width: 220px; height: auto; }
.empty-report h3 { margin: 10px 0 6px; font-size: 18px; color: var(--s950); } .empty-report p { max-width: 560px; margin: 0 auto 18px; color: var(--s600); }
.cta-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- BIMI ---------- */
.bimi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 14px; }
.bimi-card { display: flex; gap: 14px; padding: 16px; border: 1px solid var(--s200); border-radius: var(--r); background: var(--s0); }
.bimi-logo { width: 64px; height: 64px; border-radius: 50%; background: var(--s50); display: grid; place-items: center; overflow: hidden; flex: none; color: var(--s400); }
.bimi-logo img { width: 100%; height: 100%; object-fit: cover; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.selectors { display: flex; align-items: center; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--s200); flex-wrap: wrap; }
.bimi-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; margin-top: 18px; }
.vmc-box { display: flex; gap: 14px; padding: 18px; border-radius: var(--r); background: linear-gradient(120deg, var(--p50), var(--mint-bg)); }
.vmc-box .ic { width: 30px; height: 30px; color: var(--p-ink); } .vmc-box h3 { margin: 0 0 6px; font-size: 16px; color: var(--s950); } .vmc-box p { margin: 0 0 10px; }
.checklist-table { margin-top: 16px; border-top: 1px solid var(--s200); }
.checklist-table > div { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--s200); }
.checklist-table small { grid-column: 1 / -1; color: var(--s500); }
.upload-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.upload { display: flex; gap: 12px; align-items: center; padding: 14px; border: 1.5px dashed var(--p200); border-radius: var(--r); cursor: pointer; background: var(--p50); }
.upload:hover { border-color: var(--p500); } .upload .ic { width: 28px; height: 28px; color: var(--p-ink); } .upload b { display: block; color: var(--s950); } .upload small { color: var(--s500); }
.preview { background: var(--s50); border-radius: 14px; padding: 18px; }
.devices { position: relative; height: 300px; margin-top: 12px; }
.phone { position: absolute; left: 4%; bottom: 0; width: 42%; height: 280px; background: #fff; border: 6px solid #0D1528; border-radius: 30px; padding: 26px 12px 12px; z-index: 2; box-shadow: 0 12px 30px rgba(13, 21, 40, .18); }
.notch { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 46%; height: 14px; background: #0D1528; border-radius: 10px; }
.pv-time { position: absolute; top: 6px; left: 14px; font-size: 9px; font-weight: 700; }
.pv-mail { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 12px; } .pv-mail b { display: block; font-size: 11px; color: var(--s500); font-weight: 600; } .pv-mail span { display: inline-flex; align-items: center; gap: 3px; color: var(--s950); font-weight: 700; }
.pv-ava { width: 36px; height: 36px; border-radius: 50%; background: var(--s200); display: grid !important; place-items: center; overflow: hidden; font-weight: 800; color: var(--s600); flex: none; }
.pv-ava img { width: 100%; height: 100%; object-fit: cover; }
.pv-check { font-size: 15px; color: var(--p-ink); }
.pv-line { display: block; height: 7px; border-radius: 4px; background: var(--s100); margin: 8px 0; } .pv-line.s { width: 60%; }
.pv-box { display: block; height: 90px; border-radius: 8px; background: var(--s100); margin-top: 12px; }
.laptop { position: absolute; right: 0; top: 0; width: 70%; height: 240px; background: #fff; border: 6px solid #0D1528; border-radius: 14px; overflow: hidden; }
.lt-bar { height: 16px; background: #0D1528; display: flex; gap: 4px; align-items: center; padding: 0 6px; } .lt-bar i { width: 6px; height: 6px; border-radius: 50%; background: #4A5578; }
.lt-body { display: flex; height: 100%; } .lt-side { width: 30%; background: var(--s50); padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.lt-compose { background: var(--p500); color: #fff; border-radius: 6px; font-size: 9px; padding: 5px; text-align: center; } .lt-side i { height: 6px; border-radius: 3px; background: var(--s200); }
.lt-main { flex: 1; min-width: 0; padding: 12px 16px; } .lt-main .pv-mail > span:last-child, .phone .pv-mail > div { min-width: 0; overflow-wrap: anywhere; } .lt-main small { color: var(--s500); font-size: 10px; } .pv-mail.big .pv-ava { width: 44px; height: 44px; }
.conv { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 12px; } .conv figure { margin: 0; text-align: center; } .conv figure > img { max-width: 160px; max-height: 160px; border: 1px solid var(--s200); border-radius: 12px; background: repeating-conic-gradient(#f1f2f7 0 25%, #fff 0 50%) 0 0/16px 16px; }
.conv figcaption { font-size: 12px; color: var(--s500); margin-top: 6px; } .conv-circle { display: block; width: 160px; height: 160px; border-radius: 50%; overflow: hidden; border: 1px solid var(--s200); } .conv-circle img { width: 100%; height: 100%; }
.bimi-prev { display: flex; gap: 16px; align-items: center; }
.bimi-prev img { width: 96px; height: 96px; border: 1px solid var(--s200); border-radius: 12px; }
.bimi-prev img.round { border-radius: 50%; }

/* ---------- White label og PDF-rapporter ---------- */
.wl-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.logo-drop { display: flex; gap: 16px; align-items: center; padding: 16px; border: 1.5px dashed var(--s300); border-radius: var(--r); margin-bottom: 18px; }
.logo-drop.over { border-color: var(--p500); background: var(--p50); } .logo-drop small { display: block; color: var(--s500); }
.logo-prev { width: 120px; height: 64px; border-radius: 10px; background: var(--s50); display: grid; place-items: center; overflow: hidden; color: var(--s400); flex: none; }
.logo-prev img { max-width: 100%; max-height: 100%; object-fit: contain; }
.mini-app { display: flex; height: 210px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--s200); margin-top: 12px; }
.ma-side { width: 36%; background: var(--side); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.ma-logo { display: flex; align-items: center; gap: 6px; color: #fff; font-size: 11px; font-weight: 700; margin-bottom: 8px; } .ma-logo img { max-height: 22px; max-width: 60px; background: #fff; border-radius: 4px; padding: 2px; }
.ma-side i { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .1); } .ma-side i.on { background: var(--b); }
.ma-main { flex: 1; background: var(--s50); padding: 12px; display: flex; flex-direction: column; gap: 10px; } .ma-top { height: 16px; background: #fff; border-radius: 6px; }
.ma-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; flex: 1; } .ma-cards span { background: #fff; border-radius: 8px; }
.ma-main .ma-btn { display: block; text-align: center; border: 0; color: #fff; border-radius: 8px; padding: 8px; font: inherit; font-size: 12px; font-weight: 700; }
.mini-report { margin-top: 16px; background: #fff; border: 1px solid var(--s200); border-radius: var(--r); padding: 14px; }
.mr-head { display: flex; gap: 12px; align-items: center; border-bottom: 3px solid; padding-bottom: 10px; margin-bottom: 10px; } .mr-head img { max-height: 34px; max-width: 90px; }
.mr-head small { display: block; font-weight: 800; text-transform: uppercase; font-size: 10px; letter-spacing: .08em; } .mr-head b { color: var(--s950); }
.mini-report i { display: block; height: 8px; border-radius: 4px; background: var(--s100); margin: 8px 0; } .mini-report i.s { width: 55%; }
.report-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 16px; }
.rc { display: flex; flex-direction: column; gap: 12px; } .rc-logo { height: 56px; display: flex; align-items: center; color: var(--s400); } .rc-logo img { max-height: 48px; max-width: 160px; object-fit: contain; }
.rc-body b { display: block; color: var(--s950); } .rc-body small { color: var(--s500); } .rc-act { display: flex; gap: 8px; flex-wrap: wrap; }
.dropzone { display: flex; align-items: center; justify-content: center; min-height: 120px; margin: 6px 0 18px; border: 2px dashed var(--s200); border-radius: 14px; background: var(--s50); cursor: pointer; text-align: center; padding: 14px; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.over { border-color: var(--p500); background: var(--p50); }
.dropzone.busy { opacity: .6; pointer-events: none; }
.dropzone span { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--s600); }
.dropzone span .ms { font-size: 30px; color: var(--p-ink); }
.dropzone small { color: var(--s500); }
.dropzone img { max-height: 80px; max-width: 70%; object-fit: contain; }
.dz-has { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.dz-has img { max-height: 90px; max-width: 260px; object-fit: contain; background: #fff; border-radius: 10px; padding: 8px 12px; box-shadow: 0 2px 10px rgba(13, 21, 40, .08); }
.dz-change { font-size: 12.5px; color: var(--p600); font-weight: 600; }

/* ---------- Opplæring ---------- */
.tut-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 18px; }
.tut { display: flex; flex-direction: column; background: var(--s0); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--edge), var(--shadow); transition: transform .15s; }
.tut:hover { transform: translateY(-2px); }
.tut-thumb { position: relative; height: 130px; background: radial-gradient(160px 110px at 85% 80%, rgba(var(--aura-lav), .45), transparent), radial-gradient(140px 90px at 10% 0%, rgba(var(--aura-blue), .25), transparent), linear-gradient(135deg, #0C1633, #17234D); color: #fff; padding: 18px; display: flex; justify-content: space-between; }
.tut-thumb b { font-size: 18px; font-weight: 700; line-height: 1.2; max-width: 60%; display: block; }
.tut-thumb .ic { position: absolute; right: 18px; bottom: 16px; width: 54px; height: 54px; color: #D4D9F5; --ic-accent: #B9A8FF; }
.tut-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #0D1528; display: grid; place-items: center; font-size: 14px; }
.tut-play:empty { display: none; }
.tut-cap { padding: 12px 16px; color: var(--s950); font-weight: 600; } .tut-cap small { display: block; color: var(--s500); font-weight: 500; margin-top: 2px; }

/* ---------- Generatorer ---------- */
.gen { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.gen-row { display: grid; grid-template-columns: 240px 1fr; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--s100); }
.gen-row label { font-weight: 500; color: var(--s950); }
.gen-out { position: sticky; top: calc(var(--top-h) + 20px); }

/* ---------- Domeneanalyse ---------- */
.an-searchbar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 26px; }
.an-searchbar .an-dom { flex: 0 1 740px; height: 50px; font-size: 16px; padding: 0 10px 0 16px; border-radius: 12px; gap: 12px; color: var(--s500); box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.an-searchbar .an-dom input { font-size: 16.5px; font-weight: 500; }
.an-searchbar .an-dom .ms { font-size: 22px; }
.an-dom .icon-btn { width: 34px; height: 34px; color: var(--s500); }
.btn-adv { color: var(--s500); height: 50px; }
.an-adv { flex: 1 1 100%; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.an-adv .an-sel { flex: 0 1 420px; }
.an-top { position: relative; display: grid; grid-template-columns: minmax(260px, .75fr) minmax(0, 1.75fr) minmax(250px, .8fr); column-gap: 12px; align-items: stretch; padding: 10px; border-radius: 22px; background: rgba(255, 255, 255, .4); border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 0 0 1px rgba(16, 24, 40, .035), 0 10px 30px rgba(91, 79, 233, .05); }
.an-top > .an-action { margin-left: 40px; }
.an-top > * { position: relative; z-index: 1; }
.an-status { display: flex; flex-direction: column; justify-content: center; gap: 20px; padding: 26px 24px; background: rgba(255, 255, 255, .96); }
.an-status-main { display: flex; align-items: center; gap: 16px; }
.an-shield { width: 84px; flex: none; } .an-shield svg { width: 84px; height: 97px; display: block; filter: drop-shadow(0 6px 14px rgba(18, 161, 80, .16)); }
.an-pct { white-space: nowrap; font-size: 48px; font-weight: 800; line-height: .95; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.an-lvl { white-space: nowrap; font-size: 44px; font-weight: 800; line-height: 1.05; letter-spacing: -.035em; } .an-lvl.long { font-size: clamp(26px, 2.2vw, 36px); }
.an-status p { margin: 0; font-size: 16.5px; line-height: 1.45; color: var(--s700); font-weight: 500; }
.an-checks { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 8px; isolation: isolate; }
.an-ribbons { position: absolute; z-index: -1; pointer-events: none; top: -30px; left: calc(100% - 70px); width: 160px; height: calc(100% + 60px); opacity: 1; }
.an-check { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 1px auto 20px; gap: 0 12px; align-items: center; padding: 10px 14px; flex: 1; min-height: 70px; border-radius: 14px; background: rgba(255, 255, 255, .94); border: 1px solid #E6E9F2; box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 14px rgba(16, 24, 40, .04); transition: box-shadow .12s, border-color .12s; }
.an-check:hover { border-color: var(--p200); box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 22px rgba(91, 79, 233, .12); }
.an-check:focus-visible { outline: 2px solid var(--p500); outline-offset: 2px; }
.an-check::after { content: ''; grid-column: 4; grid-row: 1; width: 1px; height: 34px; background: var(--s200); }
.an-check > .pill { grid-column: 3; grid-row: 1; }
.an-check .an-when { grid-column: 5; grid-row: 1; }
.an-check .an-arrow { grid-column: 6; grid-row: 1; color: var(--s700); font-size: 22px; }
.an-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--p50); color: var(--p-ink); border: 1px solid var(--p100); flex: none; }
.an-ico .ms { font-size: 24px; font-weight: 300; }
.an-ico.t-green { background: #ECF9F1; color: #22A45D; border-color: #D3F0DE; }
.an-ico.t-purple { background: #F2EEFF; color: #7B61F0; border-color: #E3DBFF; }
.an-ico.t-blue { background: #EDF3FF; color: #4A72E8; border-color: #DAE5FF; }
.an-ico.sm { width: 32px; height: 32px; border-radius: 9px; } .an-ico.sm .ms { font-size: 19px; }
.an-name { min-width: 0; }
.an-name b { display: block; font-size: 17px; font-weight: 800; color: var(--s950); letter-spacing: .005em; line-height: 1.2; }
.an-name small { display: block; color: var(--s600); font-size: 13px; line-height: 1.35; margin-top: 2px; max-width: 34ch; }
.an-when { font-size: 12px; color: var(--s600); line-height: 1.35; white-space: nowrap; }
.an-when b { display: block; color: var(--s950); font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }
.an-action { display: flex; flex-direction: column; gap: 16px; padding: 28px 24px; background: rgba(255, 255, 255, .96); }
.an-action h2 { margin: 0; font-size: 27px; font-weight: 800; color: var(--s950); letter-spacing: -.025em; }
.an-action p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--s700); }
.an-cta-btn { align-self: flex-start; margin-top: 8px; max-width: 100%; white-space: nowrap; padding: 0 22px; height: 46px; font-size: 17px; font-weight: 700; border: 1px solid var(--p200); }
.an-ov { margin-top: 34px; }
.an-ov-head { display: flex; align-items: center; gap: 10px 20px; margin-bottom: 12px; }
.an-ov-head h2 { flex: none; }
.an-ov-head h2 { margin: 0; font-size: 26px; font-weight: 800; color: var(--s950); letter-spacing: -.025em; }
.an-ov-meta { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; gap: 4px 0; color: var(--s700); font-size: 13px; }
.an-ov-meta span { padding: 0 14px; } .an-ov-meta span:first-child { padding-left: 0; }
.an-ov-meta span + span { border-left: 1px solid var(--s300); }
.an-ov-head .head-actions { margin-left: auto; gap: 8px; flex: none; flex-wrap: nowrap; }
.an-ov-head .btn-sm { height: 38px; padding: 0 14px; font-size: 13.5px; }
.an-ov .tabs { margin-bottom: 18px; }
.an-tablecard { padding: 10px 14px 6px; }
.an-table { table-layout: fixed; }
.an-table th { color: var(--s950); font-size: 13.5px; font-weight: 700; padding: 12px 14px; background: #F7F8FC; }
.an-table th:first-child { border-radius: 10px 0 0 0; } .an-table th:last-child { border-radius: 0 10px 0 0; }
.an-table th:nth-child(1) { width: 140px; } .an-table th:nth-child(2) { width: 140px; } .an-table th:nth-child(4) { width: 150px; } .an-table th:nth-child(5) { width: 150px; } .an-table th:nth-child(6) { width: 230px; }
.an-table td { white-space: normal; vertical-align: middle; overflow-wrap: anywhere; padding: 12px 14px; }
.an-table tr:not(.an-detail) td:first-child { white-space: nowrap; }
.an-table .an-k { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; color: var(--s950); font-size: 15px; }
.an-table .an-conf { display: block; color: var(--s950); font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-table .an-sum { display: block; color: var(--s600); font-size: 12.5px; margin-top: 2px; }
.an-table .an-acts { display: flex; gap: 10px; justify-content: space-between; align-items: center; white-space: nowrap; }
.an-table .an-acts .btn { min-width: 112px; }
.an-table tr.an-group td { background: var(--s50); color: var(--s500); font-size: 12px; font-weight: 700; padding: 8px 14px; letter-spacing: .02em; }
.an-table tr.an-detail td { background: var(--s50); padding: 14px 18px 18px; }
.an-table tr.an-detail:hover td { background: var(--s50); }
.an-table tr.an-flash td { animation: anflash 1.6s ease-out; }
@keyframes anflash { from { background: var(--p100); } }
.an-exp { width: 38px; height: 34px; border: 1px solid var(--s200); border-radius: 9px; background: var(--s0); color: var(--s700); }
.an-exp .ms { transition: transform .15s; } .an-exp[aria-expanded="true"] .ms { transform: rotate(180deg); }
.an-detail ul { margin: 6px 0 0; padding-left: 18px; } .an-detail li { margin: 4px 0; }
.an-detail .raw { margin-top: 8px; }
.an-recs .fix { padding: 16px 0; } .an-recs .fix:first-child { border-top: 0; }
.an-cta { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 24px; padding: 18px 22px; border-radius: var(--r-lg); background: radial-gradient(360px 140px at 100% 0%, rgba(var(--aura-lav), .16), transparent 70%), var(--s0); border: 1px solid #E6E9F2; box-shadow: var(--shadow); } .an-cta p { margin: 4px 0 0; color: var(--s600); } .an-cta b { color: var(--s950); }
.an-share { display: flex; gap: 18px; align-items: center; }
.qr { width: 132px; flex: none; } .qr svg { width: 132px; height: 132px; }
.an-send { display: flex; flex-direction: column; gap: 8px; } .an-send .field { min-width: 0; }
.embed-pv { width: 100%; height: 420px; border: 1px solid var(--s200); border-radius: 12px; }
/* Eldre klasser som fortsatt kan forekomme */
.an-search { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; }
.an-what { background: var(--s50); border-radius: 12px; padding: 16px 18px; } .an-what h3 { margin: 0 0 6px; color: var(--s950); font-size: 16px; } .an-what p { margin: 0; }
.an-h { margin: 30px 0 12px; font-size: 18px; font-weight: 700; color: var(--s950); } .an-h small { font-size: 13px; font-weight: 500; color: var(--s500); margin-left: 6px; }
.an-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.an-card { border: 1px solid var(--s200); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }

/* ---------- Rapport og sertifikat (utskrift) ---------- */
.print-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.report, .cert { background: #fff; color: #344054; border-radius: var(--r-lg); padding: 40px; max-width: 900px; margin: 0 auto; box-shadow: var(--edge), var(--shadow); }
.report-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 3px solid var(--p500); padding-bottom: 18px; }
.report-head small { color: var(--p-ink); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.report-head h1 { font-size: 26px; margin: 4px 0; color: #0D1528; text-transform: none; } .report-head img { max-height: 40px; }
.report h2 { font-size: 16px; color: #0D1528; margin: 28px 0 10px; }
.report-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 22px 0; }
.report-kpis div { background: #F5F7FB; border-radius: 12px; padding: 14px; } .report-kpis small { color: #6B7689; } .report-kpis b { display: block; font-size: 24px; color: #0D1528; }
.report-lead { font-size: 15px; line-height: 1.6; }
.report table td, .report table th { padding: 8px 10px; white-space: normal; }
.report-foot { margin-top: 30px; padding-top: 12px; border-top: 1px solid #EEF1F6; font-size: 12px; color: #6B7689; }
.cert { text-align: center; border: 10px double #C9D1DD; max-width: 720px; }
.cert-seal { color: var(--p-ink); } .cert small { color: var(--p-ink); letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.cert h1 { font-size: 34px; margin: 6px 0 18px; color: #0D1528; } .cert h2 { font-size: 28px; color: var(--p-ink); margin: 6px 0 12px; }
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 26px 0; } .cert-grid small { display: block; color: #6B7689; letter-spacing: 0; text-transform: none; font-weight: 400; } .cert-grid b { color: #0D1528; }

/* ---------- Offentlig sjekk ---------- */
body.public { background: var(--s50); }
.pub-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 28px; background: var(--side); }
.pub-top .logo { margin: 0; color: #fff; }
.pub-hero { position: relative; color: #fff; text-align: center; padding: 56px 16px 72px; background: radial-gradient(60% 90% at 15% 110%, rgba(var(--aura-lav), .30), transparent 70%), radial-gradient(50% 80% at 90% 120%, rgba(var(--aura-blue), .22), transparent 70%), linear-gradient(180deg, var(--side), #111D44); }
.pub-hero h1 { color: #fff; font-size: clamp(26px, 5vw, 40px); margin: 0 0 10px; letter-spacing: -.03em; } .pub-hero p { color: #C9D0E4; margin: 0 0 26px; font-size: 15px; }
.pub-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; max-width: 620px; margin: 0 auto; }
.pub-form .field { flex: 1 1 300px; height: 48px; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #C9D0E4; }
.pub-form .field:focus-within { border-color: rgba(185, 168, 255, .6); box-shadow: 0 0 0 3px rgba(185, 168, 255, .16); }
.pub-form .field input { color: #fff; } .pub-form .field input::placeholder { color: #98A2C0; } .pub-form .btn { height: 48px; padding: 0 22px; }
.pub-main { max-width: 980px; margin: -32px auto 40px; padding: 0 16px; display: flex; flex-direction: column; gap: 16px; position: relative; }
.pub-result { display: flex; gap: 24px; align-items: center; } .pub-result h2 { margin: 0 0 4px; color: var(--s950); letter-spacing: -.015em; }
.pub-main > .card + .card, .pub-main > * + .card, .pub-grid > .card + .card { margin-top: 0; }
.pub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: 12px; }
.card.mini { padding: 16px; display: flex; flex-direction: column; gap: 8px; } .card.mini .row { display: flex; justify-content: space-between; align-items: center; } .card.mini b { color: var(--s950); } .card.mini small { color: var(--s600); }
.pub-foot { text-align: center; color: var(--s500); padding: 24px; font-size: 12.5px; }
.pub-brand { display: block; max-height: 48px; max-width: 200px; margin: 0 auto 18px; background: #fff; border-radius: 10px; padding: 6px 10px; }
body.embed .pub-top, body.embed .pub-foot { display: none; } body.embed .pub-hero { padding-top: 28px; }

/* ---------- Mørk modus ---------- */
:root[data-theme="dark"] {
  --s0: #121A2E; --s50: #0B1222; --s100: #19233A; --s200: #26314B; --s300: #36425F; --s400: #6B7894; --s500: #8E9AB4; --s600: #AEB8CD; --s700: #CED5E3; --s800: #E2E7F0; --s900: #EAEEF5; --s950: #F2F5FA;
  --p50: #1C1B45; --p100: #24225A; --p200: #3B3790; --green-bg: #0E2C1D; --orange-bg: #33240E; --red-bg: #3A1520; --purple-bg: #2A1A40; --mint-bg: #0F2D24;
  /* --p600/--p700 are only used as text colours: light violet on the dark surfaces. The inks follow. */
  --p600: #B9B4FF; --p700: #CFC8FF; --p-ink: #B9B4FF; --green-ink: #6EDB9C; --orange-ink: #F7C077; --red-ink: #FF9AA8; --purple-ink: #D4B8FF;
  --glass: rgba(18, 26, 46, .82); --edge: 0 0 0 1px rgba(255, 255, 255, .06); --shadow: 0 8px 26px rgba(0, 0, 0, .28);
}
:root[data-theme="dark"] body { background: radial-gradient(900px 420px at 100% -8%, rgba(var(--aura-lav), .08), transparent 65%), #090F1E; }
:root[data-theme="dark"] .sidebar { background: radial-gradient(120% 34% at 18% 104%, rgba(var(--aura-lav), .22), transparent 62%), linear-gradient(180deg, #080F24, #060B1B); }
:root[data-theme="dark"] .card, :root[data-theme="dark"] .an-check, :root[data-theme="dark"] .gs-widget, :root[data-theme="dark"] .banner, :root[data-theme="dark"] .an-cta { border-color: rgba(255, 255, 255, .06); }
:root[data-theme="dark"] .report, :root[data-theme="dark"] .cert { color: #344054; }
:root[data-theme="dark"] .card, :root[data-theme="dark"] .an-check, :root[data-theme="dark"] .an-status, :root[data-theme="dark"] .an-action { background: var(--glass); border-color: rgba(255, 255, 255, .07); }
:root[data-theme="dark"] .an-top { background: rgba(255, 255, 255, .03); border-color: rgba(255, 255, 255, .06); }
:root[data-theme="dark"] .pill.green { background: #0F2E1D; color: #7EE2A8; } :root[data-theme="dark"] .pill.orange { background: #33240E; color: #F7C077; }
:root[data-theme="dark"] .pill.g-A, :root[data-theme="dark"] .pill.g-B { background: #0F2E1D; color: #7EE2A8; } :root[data-theme="dark"] .pill.g-C, :root[data-theme="dark"] .pill.g-D { background: #33240E; color: #F7C077; } :root[data-theme="dark"] .pill.g-E, :root[data-theme="dark"] .pill.g-F { background: #3A1520; color: #FF9AA8; }
:root[data-theme="dark"] .pill.red { background: #3A1520; color: #FF9AA8; } :root[data-theme="dark"] .pill.grey { background: #1E2840; color: #C9D1E2; }
:root[data-theme="dark"] .btn-soft { background: #24225A; border-color: #312E7A; color: #CFC8FF; }
:root[data-theme="dark"] .an-ico.t-green { background: #0F2E1D; border-color: #164A2D; } :root[data-theme="dark"] .an-ico.t-purple { background: #221E4A; border-color: #2F2A66; } :root[data-theme="dark"] .an-ico.t-blue { background: #15244A; border-color: #1F3366; }
:root[data-theme="dark"] .menu a.sub.active { background: #1E2752; }
:root[data-theme="dark"] .tabbar { background: rgba(18, 26, 46, .94); }

/* ---------- Utskrift ---------- */
@media print {
  body { background: #fff; } .sidebar, .topbar, .subbar, .tabbar, .no-print, .toast { display: none !important; }
  .main { margin: 0 !important; } main { padding: 0 !important; } .report, .cert { padding: 0; border-radius: 0; max-width: none; box-shadow: none; }
  .cert { border: 10px double #C9D1DD; padding: 40px; }
  .card, .an-check { box-shadow: none !important; border: 1px solid #E2E7EF !important; backdrop-filter: none !important; }
  .an-top::before { display: none; }
  body.print-analyzer .an-searchcard, body.print-analyzer .page-head, body.print-analyzer .an-ov-head .head-actions, body.print-analyzer .an-ov .tabs, body.print-analyzer .an-cta, body.print-analyzer .an-exp { display: none !important; }
  body.print-analyzer [data-pane] { display: block !important; }
}

/* ---------- Mellomstor skjerm ---------- */
@media (max-width: 1360px) {
  .an-top { grid-template-columns: minmax(270px, .8fr) minmax(0, 1.5fr) minmax(250px, .9fr); }
  .an-top > .an-action { margin-left: 40px; }
  .an-ribbons { left: calc(100% - 40px); width: 120px; }
  .an-check .an-when, .an-check::after { display: none; }
  .an-check { grid-template-columns: 46px minmax(0, 1fr) auto 22px; }
  .an-check .an-arrow { grid-column: 4; }
  .top-search { flex-basis: 260px; }
}
@media (max-width: 1180px) {
  .top-search { display: none; } .title-wrap { flex-basis: 220px; }
  .an-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); row-gap: 14px; }
  .an-top > .an-action { grid-column: 1 / -1; margin-left: 0; }
  .an-ribbons { display: none; }
}

/* ---------- Mobil (960 px og smalere) ---------- */
.tabbar { display: none; }
@media (display-mode: standalone) { .menu-btn { display: none; } }
@media (max-width: 960px) {
  html { -webkit-text-size-adjust: 100%; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); overscroll-behavior-y: none; }
  .sidebar { transform: translateX(-100%); transition: transform .2s; z-index: 45; width: min(300px, 86vw); border-radius: 0 18px 18px 0; }
  .sidebar.open { transform: none; }
  .sidebar .menu { padding-bottom: env(safe-area-inset-bottom); }
  .scrim.open { z-index: 44; }
  .main, body.mini .main { margin-left: 0; }
  .icon-btn.menu-btn { display: none !important; } /* Menyen åpnes fra «Meny» i bunnlinjen */
  .topbar { height: auto; min-height: 60px; padding: env(safe-area-inset-top) 12px 0; gap: 8px; }
  .title-wrap, .top-search, .top-ico, .who, .crumbs { display: none !important; }
  .top-mid { flex: 1; }
  .acct-switch { flex: 1; max-width: none; }
  .avatar { display: grid; margin-left: 0; }
  .top-right { flex: none; margin-left: 0; }
  main, main#view { padding: 20px 16px 40px !important; }
  .subbar { height: auto; padding: 14px 16px 0; }
  .gs-widget { position: static; width: 100%; height: 42px; justify-content: space-between; }
  .gs-widget .seg-progress { flex: 1; width: auto; }
  body:has(#gsWidget:not([hidden])) #view > .page-head:first-child, body:has(#gsWidget:not([hidden])) #view > .dom-head:first-child { padding-right: 0; }
  body:has(#gsWidget:not([hidden])) #view > :first-child:not(.page-head):not(.dom-head) { margin-top: 0; }
  .card { padding: 18px 16px; }
  .card, .main, main { min-width: 0; max-width: 100%; }
  .card[data-href]:hover { transform: none; }
  .g3, .g2 { grid-template-columns: 1fr; }
  .page-head { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 20px; }
  .page-head h1, h1 { font-size: 24px; }
  .head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
  .head-actions .btn { flex: 1 1 auto; }
  .head-actions .field { flex: 1 1 175px; min-width: 165px; }
  .head-actions .field select { width: 100%; }
  .banner { flex-direction: column; align-items: stretch; } .banner .btn { margin-left: 0; }
  .field { min-width: 0; flex: 1; }
  .dom-pills { margin-left: 0; }
  .report-kpis, .cert-grid { grid-template-columns: 1fr 1fr; }
  .integ { grid-template-columns: 40px 1fr; } .integ-act { grid-column: 2; }
  .checks { grid-template-columns: 1fr; }
  .hbar { grid-template-columns: 90px 1fr 56px; }
  .kvs { grid-template-columns: 1fr; gap: 2px; } .kvs b { margin-bottom: 8px; }
  .kpi-row { grid-template-columns: 1fr 1fr; } .bimi-layout, .wl-layout, .upload-row { grid-template-columns: 1fr; }
  .table-wrap, .inner { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tabs { max-width: 100%; min-width: 0; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .tabs a, .tabs button { flex: none; }
  .btn, .icon-btn { min-height: 40px; }
  input, select, textarea { font-size: 16px !important; }
  .score-row { flex-wrap: wrap; gap: 14px; }
  .score-row .progress { order: 3; flex-basis: 100%; }
  .dns-row { flex-wrap: wrap; } .dns-row code { word-break: break-all; }
  .drawer { width: 100%; }
  .bottom-bar, .toolbar { flex-wrap: wrap; gap: 8px; }
  .bottom-bar .btn { flex: 1 1 auto; }
  .gen { grid-template-columns: 1fr; } .gen-row { grid-template-columns: 1fr; gap: 6px; } .gen-out { position: static; }
  .gs-panel { top: 70px; right: 12px; }
  /* Domeneanalyse */
  .an-searchbar { gap: 10px; }
  .an-searchbar .an-dom, .an-adv .an-sel { flex: 1 1 100%; }
  .an-searchbar .btn-primary { flex: 1 1 auto; }
  .btn-adv { flex: none; }
  .an-top { grid-template-columns: 1fr; gap: 12px; padding: 0; background: none; border: 0; box-shadow: none; border-radius: 0; }
  .an-top > .an-action { margin-left: 0; }
  .an-ribbons { display: none; }
  .an-status, .an-action { padding: 20px 18px; }
  .an-pct { font-size: 42px; } .an-lvl { font-size: 34px; } .an-lvl.long { font-size: 28px; }
  .an-status p { font-size: 16px; } .an-action p { font-size: 15.5px; } .an-action h2 { font-size: 22px; }
  .an-shield, .an-shield svg { width: 76px; } .an-shield svg { height: 88px; }
  .an-check { grid-template-columns: 40px minmax(0, 1fr) auto 18px; gap: 0 10px; padding: 10px 12px; }
  .an-check .an-when, .an-check::after { display: none; }
  .an-check .an-arrow { grid-column: 4; }
  .an-ico { width: 40px; height: 40px; }
  .an-ov-head { flex-wrap: wrap; } .an-ov-head h2 { font-size: 22px; } .an-ov-head .head-actions { flex-wrap: wrap; }
  .an-ov-head .head-actions { margin-left: 0; width: 100%; }
  .an-ov-meta { flex-direction: column; } .an-ov-meta span { padding: 0; } .an-ov-meta span + span { border-left: 0; }
  .an-tablecard { padding: 6px 14px; }
  .an-table { table-layout: auto; }
  .an-table thead { display: none; }
  .an-table, .an-table tbody, .an-table tr, .an-table td { display: block; width: 100%; }
  .an-table tr { padding: 12px 0; border-bottom: 1px solid var(--s100); }
  .an-table td { border: 0; padding: 4px 4px; }
  .an-table .an-conf { white-space: normal; }
  .an-table tr.an-group { padding: 0; } .an-table tr.an-group td { padding: 8px 10px; }
  .an-table td[data-l]::before { content: attr(data-l); display: block; color: var(--s500); font-size: 11.5px; font-weight: 600; }
  .an-table .an-acts { justify-content: flex-start; }
  .an-share { flex-direction: column; align-items: stretch; }
  /* Alle tabeller som kort, ingen sideveis rulling */
  .table-wrap:has(> .mtable) { overflow: visible; }
  table.mtable, .mtable tbody { display: block; width: 100%; }
  .mtable thead { display: none; }
  .mtable tr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; padding: 14px; margin: 0 0 10px; border: 1px solid var(--s200); border-radius: 14px; background: var(--s0); box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
  .mtable tr:last-child { margin-bottom: 0; }
  .mtable td { display: block; min-width: 0; padding: 0; border: 0; white-space: normal; overflow-wrap: anywhere; text-align: left !important; font-size: 15px; }
  .mtable td[data-l]::before { content: attr(data-l); display: block; margin-bottom: 3px; color: var(--s500); font-size: 11.5px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
  .mtable td:first-child { grid-column: 1 / -1; font-size: 16.5px; font-weight: 600; color: var(--s950); }
  .mtable td:first-child::before { display: none; }
  .mtable td[colspan], .mtable td.actions { grid-column: 1 / -1; }
  .mtable td.actions { position: static; box-shadow: none; background: none; display: flex; flex-wrap: wrap; gap: 8px; }
  .mtable td:empty { display: none; }
  .mtable tr { position: relative; }
  .mtable td.m-check { position: absolute; top: 14px; right: 14px; grid-column: auto; }
  .mtable td.m-check + td { grid-column: 1 / -1; font-size: 16.5px; font-weight: 600; color: var(--s950); padding-right: 36px; }
  .mtable td.m-check + td::before { display: none; }
  .mtable tr:hover td { background: none; }
  /* Bunnmeny */
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--s200); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 2px; font: 600 11px/1.2 var(--font); color: var(--s500); text-decoration: none; background: none; border: 0; padding: 4px 0; min-height: 48px; justify-content: center; -webkit-tap-highlight-color: transparent; cursor: pointer; }
  .tabbar .ms { font-size: 24px; }
  .tabbar a.on { color: var(--p-ink); }
  .tabbar a.on .ms { font-variation-settings: 'FILL' 1; }
}

/* Klikkbare kunderader */
tr.row-link { cursor: pointer; } tr.row-link:hover td { background: var(--s50, #F7F8FC); }
.cell-link { color: inherit; text-decoration: underline dotted var(--s300, #CBD5E1); text-underline-offset: 3px; cursor: pointer; }
.cell-link:hover { color: var(--p600, #4F46E5); }
@media (max-width: 960px) { tr.row-link td:first-child b::after { content: ' ›'; color: var(--s400, #94A3B8); } }

/* AI-svar */
.ai-text p { margin: 0 0 10px; line-height: 1.55; } .ai-text p:last-child { margin-bottom: 0; }
.ai-text ul { margin: 4px 0 10px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ai-text li { padding: 10px 12px; background: var(--s50, #F7F8FC); border-left: 3px solid var(--p500, #6366F1); border-radius: 8px; line-height: 1.5; }
.ai-text b { font-weight: 650; color: var(--s950); }

/* Verdenskart */
.threatmap { width: 100%; height: auto; display: block; border-radius: 12px; background: linear-gradient(180deg, #FAFBFE, #F3F6FB); }
/* Invisible, larger hit area for the map points on touch screens (the map is scaled down to the card width) */
.threatmap .tm-hit { display: none; fill: transparent; pointer-events: all; } @media (max-width: 900px) { .threatmap .tm-hit { display: inline; } }
.threatmap .tm-pt { cursor: pointer; } .threatmap .tm-pt:hover circle:first-of-type { fill-opacity: .32; }

/* HaloPSA-oppsett */
.halo-how, .halo-adv { margin: 14px 0; padding: 12px 14px; border: 1px solid var(--s100); border-radius: 12px; background: var(--s50, #F7F8FC); }
.halo-how summary, .halo-adv summary { cursor: pointer; font-weight: 650; display: flex; gap: 6px; align-items: center; color: var(--s900); }
.halo-steps { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; line-height: 1.5; color: var(--s700); }
.integ-act { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.halo-map { display: grid; gap: 10px; }
.halo-map-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 12px; border: 1px solid var(--s100); border-radius: 12px; }
.halo-pick { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 640px) { .halo-pick { grid-template-columns: 1fr; } .integ { grid-template-columns: 44px 1fr; } .integ-act { grid-column: 1 / -1; justify-content: flex-start; } }

.threatmap text.tm-lbl { font-size: 24px; font-weight: 700; fill: #121B2E; paint-order: stroke; stroke: #fff; stroke-width: 5px; stroke-linejoin: round; }
.threatmap .tm-pulse { fill-opacity: .35; transform-box: fill-box; transform-origin: center; animation: tmPulse 2.4s ease-out infinite; }
@keyframes tmPulse { from { transform: scale(.6); opacity: .9; } to { transform: scale(2.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .threatmap .tm-pulse { animation: none; opacity: 0; } }

/* Alarmkort */
.card.stat-alarm { cursor: pointer; }
.card.stat-alarm .stat-title .ms { background: #FEE4E2 !important; color: #D92D20 !important; box-shadow: inset 0 0 0 1px #FECDCA !important; }
.card.stat-ok .stat-title .ms { background: #ECFDF3 !important; color: #067647 !important; }

/* Halo-veiviser */
.wz-bar { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.wz-bar li { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--s500); text-align: center; position: relative; }
.wz-bar li::before { content: ''; position: absolute; top: 14px; left: -50%; width: 100%; height: 2px; background: var(--s100); z-index: 0; }
.wz-bar li:first-child::before { display: none; }
.wz-bar li.done::before, .wz-bar li.on::before { background: var(--p500); }
.wz-bar i { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; background: #fff; border: 2px solid var(--s200, #E4E7EC); color: var(--s500); }
.wz-bar li.on i { border-color: var(--p500); color: var(--p600, #4F46E5); box-shadow: 0 0 0 4px var(--p50); }
.wz-bar li.on span { color: var(--s950); font-weight: 650; }
.wz-bar li.done i { background: var(--p500); border-color: var(--p500); color: #fff; }
.wz-body h3 { margin: 0 0 6px; font-size: 19px; color: var(--s950); }
.wz-body > p.muted { margin: 0 0 16px; line-height: 1.55; }
.wz-list { display: grid; gap: 8px; margin-top: 16px; counter-reset: wz; }
.wz-check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; padding: 12px 14px; border: 1px solid var(--s100); border-radius: 12px; cursor: pointer; line-height: 1.55; }
.wz-check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--p500); }
.wz-check:has(input:checked) { background: #F6FEF9; border-color: #ABEFC6; } .wz-check:has(input:checked) span { color: var(--s600); }
.wz-check .btn { margin-left: 6px; vertical-align: middle; height: 28px; }
.wz-types { display: grid; gap: 8px; }
.wz-type { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--s100); border-radius: 12px; cursor: pointer; }
.wz-type:has(input:checked) { border-color: var(--p500); background: var(--p50); font-weight: 600; }
.wz-done { text-align: center; padding: 10px 0; } .wz-done > .ms { color: #12B76A; font-size: 56px; }
.wz-sum { list-style: none; padding: 14px; margin: 16px auto; max-width: 380px; text-align: left; background: var(--s50, #F7F8FC); border-radius: 12px; display: grid; gap: 6px; }
.notice.ok { background: #ECFDF3; color: #067647; border-color: #ABEFC6; }
@media (max-width: 640px) { .wz-bar span { display: none; } .wz-bar li.on span { display: block; position: absolute; top: 34px; white-space: nowrap; } .wz-bar { margin-bottom: 34px; } }

.wz-keys { padding: 14px 16px; border: 2px solid var(--p500); border-radius: 12px; background: var(--p50); display: grid; gap: 4px; }
.wz-keys > b { display: flex; gap: 6px; align-items: center; color: var(--p700, #4338CA); margin-bottom: 4px; }
.wz-keys .field { background: #fff; }
#wzErr:not(:empty) { margin-top: 12px; }

/* Koble kunder */
.hm-explain { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #FFFAEB; border: 1px solid #FEDF89; color: #93370D; line-height: 1.55; margin-bottom: 12px; }
.hm-count { font-weight: 650; color: var(--s900); margin: 4px 0 10px; }
.hm-row { display: grid; grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1.4fr); gap: 12px; align-items: start; padding: 14px; border: 1px solid var(--s100); border-left: 4px solid #F79009; border-radius: 12px; }
.hm-row.has { border-left-color: #12B76A; }
.hm-side { display: grid; gap: 6px; min-width: 0; } .hm-side small { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--s500); font-weight: 600; }
.hm-side b { font-size: 16px; color: var(--s950); }
.hm-arrow { align-self: center; color: var(--s400, #98A2B3); }
.hm-hint { margin: 0; display: block; font-size: 13.5px; line-height: 1.45; color: var(--s700); }
.hm-row.has .hm-hint .ms { color: #12B76A; } .hm-row.miss .hm-hint .ms { color: #DC6803; }
@media (max-width: 720px) { .hm-row { grid-template-columns: 1fr; } .hm-arrow { transform: rotate(90deg); justify-self: start; } }
.hm-hint .ms { vertical-align: -4px; margin-right: 5px; font-size: 18px; }

.hm-row { position: relative; } .hm-doms { grid-column: 1 / -1; margin-top: 4px; border-top: 1px dashed var(--s100); padding-top: 10px; }
.hm-doms summary { cursor: pointer; color: var(--p600, #4F46E5); font-weight: 600; display: flex; gap: 6px; align-items: center; font-size: 14px; }
.hm-dom { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 8px; align-items: center; margin-top: 8px; }
.hm-dom code { font-size: 13.5px; }
@media (max-width: 720px) { .hm-dom { grid-template-columns: 1fr; } }
.wz-perms { margin: 8px 0 6px; padding-left: 18px; display: grid; gap: 4px; } .wz-perms code { font-weight: 600; margin-right: 6px; }

.ad-h { margin: 18px 0 4px; font-size: 16px; color: var(--s950); }
.ad-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
#adHint:not(:empty), #adHalo:not(:empty) { color: var(--p600, #4F46E5); margin: 6px 0 0; }

/* Domenecelle: logo, funn og flagg */
.dom-cell { display: inline-flex; align-items: center; gap: 8px; flex-wrap: nowrap; white-space: nowrap; }
.dom-ico { width: 22px; height: 22px; border-radius: 6px; object-fit: contain; flex: none; background: #fff; box-shadow: 0 0 0 1px var(--s100); }
.dom-ico.ph { display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--p600, #4F46E5); background: var(--p50); }
.dom-iss { display: inline-flex; align-items: center; gap: 2px; color: #D92D20; font-weight: 700; text-decoration: none; font-size: 14px; }
.dom-iss .ms { font-size: 18px; } .dom-iss:hover { text-decoration: underline; }
.dom-flag { display: inline-grid; place-items: center; color: var(--s400, #98A2B3); }
.dom-flag.on { color: var(--p-ink); } .dom-flag .ms { font-size: 17px; }
.dom-flag.p { width: 20px; height: 20px; border: 1px solid var(--s300, #D0D5DD); border-radius: 4px; font-size: 11px; font-weight: 700; color: var(--s500); }

/* Cloudflare */
.cf-box { display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px dashed var(--s200, #E4E7EC); border-radius: 12px; margin-bottom: 14px; }
.cf-box.on { border-style: solid; border-color: #F6821F55; background: #FFF7EE; } .cf-box > .ms { color: #F6821F; }
.cf-doms { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 8px; }
.cf-item { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 12px 14px; border: 1px solid var(--s100); border-radius: 12px; margin-bottom: 8px; cursor: pointer; }
.cf-item.done { opacity: .7; cursor: default; } .cf-item input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--p500); }
.cf-diff { display: grid; gap: 4px; margin-top: 6px; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; word-break: break-all; }
.cf-diff .old { color: #B42318; } .cf-diff .new { color: #067647; }
@media (max-width: 640px) { .cf-box { grid-template-columns: 24px 1fr; } .cf-box > .btn, .cf-box > .pill { grid-column: 1 / -1; justify-self: start; } }

/* Integrasjoner som fliser */
.itile-group { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--s500); margin: 26px 0 10px; font-weight: 700; }
.itile-group:first-of-type { margin-top: 4px; }
.itiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); gap: 16px; }
.itile { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 12px; padding: 20px; background: #fff; border: 1px solid var(--s100); border-radius: 16px; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; min-height: 250px; }
.itile:hover, .itile:focus-visible { border-color: var(--p300, #A5B4FC); box-shadow: 0 10px 28px -14px rgba(79, 70, 229, .35); transform: translateY(-1px); }
.itile.issue { border-color: #FDA29B; }
.itile-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.itile-name { font-weight: 700; color: var(--p700, #3730A3); font-size: 16px; }
.itile-logo { height: 58px; display: flex; align-items: center; }
.itile-desc { margin: 0; color: var(--s600); line-height: 1.5; font-size: 14px; flex: 1; }
.itile-sub { margin: 0; font-size: 12.5px; color: var(--s700); background: var(--s50, #F7F8FC); padding: 6px 10px; border-radius: 8px; }
.itile.issue .itile-sub { background: #FEF3F2; color: #B42318; }
.itile-more { color: var(--p600, #4F46E5); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }
.lg { display: inline-flex; align-items: center; gap: 8px; font-size: 22px; letter-spacing: -.01em; }
.lg .ms { font-size: 34px; }
.lg-halo { font-weight: 800; font-size: 30px; color: #1F2A44; letter-spacing: -.02em; } .lg-halo b { color: #E03A3E; }
.lg-cf .ms { color: #F6821F; } .lg-cf b { font-weight: 800; color: #222; text-transform: uppercase; letter-spacing: .08em; font-size: 18px; }
.lg-dc .ms { color: #2E90FA; } .lg-dc b { color: #175CD3; }
.lg-teams .ms { color: #5B5FC7; } .lg-teams b { color: #4B53BC; font-weight: 600; }
.lg-slack .ms { color: #E01E5A; } .lg-slack b { color: #4A154B; font-weight: 800; }
.lg-mg .ms, .lg-mail .ms { color: #C02126; } .lg-host .ms { color: var(--p-ink); } .lg-hibp .ms { color: #2A6379; } .lg-job .ms { color: #12B76A; } .lg-wh .ms { color: #7A5AF8; }
.lg b { font-weight: 700; color: var(--s900); }
.idet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.idet-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.btn.danger { color: #B42318; }
#isum { display: inline-flex; gap: 6px; }
.lg.lg-halo { gap: 0; } .lg.lg-halo b { color: #E03A3E; font-weight: 800; }
.cf-open { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.lg-ds { font-size: 28px; letter-spacing: -.02em; } .lg.lg-ds b { color: #0B2D5B; font-weight: 800; } .lg-ds i { font-style: normal; color: #E8513D; font-weight: 800; }
.cf-box.ds { border-color: #0B2D5B33; background: #F2F6FC; } .cf-box.ds > .ms { color: #0B2D5B; }

/* Forhåndsvisning av Halo-sak */
.tk-prev { border: 1px solid var(--s100); border-radius: 12px; padding: 0 0 4px; margin-bottom: 14px; overflow: hidden; }
.tk-prev p { margin: 10px 14px 0; line-height: 1.5; } .tk-prev .tk-fix { background: #F0FDF4; border: 1px solid #ABEFC6; border-radius: 8px; padding: 8px 12px; }
.tk-top { padding: 10px 14px; border-left: 5px solid #B54708; background: #FFFAEB; display: grid; } .tk-top small { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #B54708; } .tk-top b { font-size: 15.5px; }
.tk-top.sev-kritisk, .tk-top.sev-høy { border-color: #B42318; background: #FEF3F2; } .tk-top.sev-kritisk small, .tk-top.sev-høy small { color: #B42318; }
.tk-top.sev-lav { border-color: #475467; background: #F2F4F7; } .tk-top.sev-lav small { color: #475467; }

/* Domeneanalyse med QR (gammel versjon) */
.an-old .an-search { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; }
.an-old .an-form { display: grid; grid-template-columns: 1fr auto; gap: 12px 10px; align-items: end; }
.an-old .an-form label { display: flex; flex-direction: column; gap: 6px; }
.an-old .an-form label:last-child { grid-column: 1 / -1; }
.an-old .an-form b { color: var(--s950); }
.an-old .an-form .field { min-width: 0; }
.an-old .an-what { background: var(--s50); border-radius: 12px; padding: 16px 18px; }
.an-old .an-what h3 { margin: 0 0 6px; color: var(--s950); font-size: 16px; }
.an-old .an-what p { margin: 0; }
.an-old .an-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.an-old .an-head h2 { margin: 0; font-size: 22px; font-weight: 800; color: var(--s950); }
.an-old .an-overview { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; margin-top: 18px; }
.an-old .an-score { display: flex; gap: 18px; background: var(--s50); border-radius: 14px; padding: 22px; }
.an-old .an-shield { width: 64px; flex: none; }
.an-old .an-shield svg { width: 64px; height: 74px; }
.an-old .an-pct { font-size: 32px; font-weight: 800; margin: 4px 0 6px; }
.an-old .an-score p { font-size: 16px; line-height: 1.5; margin: 0 0 8px; color: var(--s700); }
.an-old .an-share { display: flex; gap: 16px; align-items: center; border: 1px solid var(--s200); border-radius: 14px; padding: 18px; }
.an-old .qr { width: 112px; flex: none; }
.an-old .qr svg { width: 112px; height: 112px; }
.an-old .an-share p { margin: 0 0 10px; font-weight: 600; color: var(--s950); }
.an-old .an-send { display: flex; flex-direction: column; gap: 8px; }
.an-old .an-send .field { min-width: 0; }
.an-old .an-h { margin: 30px 0 12px; font-size: 20px; font-weight: 800; color: var(--s950); }
.an-old .an-h small { font-size: 13px; font-weight: 500; color: var(--s500); margin-left: 6px; }
.an-old .an-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.an-old .an-card { border: 1px solid var(--s200); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.an-old .an-top { display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: var(--s700); letter-spacing: .04em; }
.an-old .an-status { font-size: 22px; font-weight: 800; }
.an-old .an-card p { margin: 0; color: var(--s600); font-size: 13px; }
.an-old .an-card details { font-size: 12px; }
.an-old .an-card summary { cursor: pointer; color: var(--p-ink); font-weight: 600; }
.an-old .an-card details code { display: block; margin-top: 6px; background: var(--s50); padding: 8px; border-radius: 8px; }
.an-old .an-fix { margin: 4px 0 0; padding-left: 16px; font-size: 12.5px; color: var(--s700); }
.an-old .an-cta { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 26px; padding: 18px 22px; border-radius: 14px; background: linear-gradient(115deg, var(--p50), var(--mint-bg)); }
.an-old .an-cta p { margin: 4px 0 0; }
@media print {
  .an-old body.print-analyzer .an-search, .an-old body.print-analyzer .page-head, .an-old body.print-analyzer .an-head button, .an-old body.print-analyzer .an-share form { display: none !important; }
}
@media (max-width: 960px) {
  .an-old .an-search, .an-old .an-overview { grid-template-columns: 1fr; }
  .an-old .an-grid { grid-template-columns: 1fr 1fr; }
}
.an-old .analyzer-title { margin-bottom: 18px; }
.an-old .an-search { display: block; margin-bottom: 18px; padding: 18px 22px; }
.an-old .an-form { grid-template-columns: minmax(0,1fr) auto; align-items: end; }
.an-old .an-form label:last-child { grid-column: 1 / -1; max-width: 620px; }
.an-old .an-what { margin-top: 16px; padding: 12px 16px; background: #f6f7fb; }
.an-old .an-what h3 { font-size: 13px; margin-bottom: 3px; }
.an-old .an-what p { font-size: 12.5px; }
.an-old .an-report { overflow: hidden; }
.an-old .an-hero { display: grid; grid-template-columns: minmax(225px, 1fr) minmax(350px, 1.7fr) minmax(225px, 1fr); gap: 12px; position: relative; padding: 12px; border-radius: 18px; background: radial-gradient(380px 150px at 67% 54%, rgba(161, 202, 255, .17), transparent 75%), radial-gradient(380px 140px at 65% 58%, rgba(188, 169, 247, .17), transparent 75%), #f9f9fe; border: 1px solid var(--s200); }
.an-old .an-summary, .an-old .an-recommend { position: relative; z-index: 1; display: flex; flex-direction: column; min-width: 0; padding: 24px; border: 1px solid rgba(219, 222, 245, .95); border-radius: 16px; background: rgba(255,255,255,.82); box-shadow: 0 8px 22px rgba(72, 75, 143, .06); }
.an-old .an-summary-head { display: flex; align-items: center; gap: 14px; min-height: 92px; }
.an-old .an-shield { width: 64px; flex: none; }
.an-old .an-shield svg { width: 64px; height: 72px; }
.an-old .an-pct { font-size: clamp(30px, 2.4vw, 43px); font-weight: 800; line-height: 1; margin: 0; white-space: nowrap; }
.an-old .an-level { display: block; font-size: clamp(19px, 1.65vw, 28px); line-height: 1.15; margin-top: 5px; }
.an-old .an-summary p { margin: 20px 0 10px; font-size: 14px; line-height: 1.5; }
.an-old .an-summary a { font-size: 12px; color: var(--p-ink); margin-top: auto; }
.an-old .an-checks { position: relative; z-index: 1; display: grid; grid-template-rows: repeat(4, minmax(0,1fr)); gap: 7px; min-width: 0; }
.an-old .an-check { display: flex; align-items: center; min-width: 0; gap: 10px; padding: 8px 11px; border: 1px solid rgba(220,224,244,.95); border-radius: 12px; background: rgba(255,255,255,.9); box-shadow: 0 4px 12px rgba(70, 75, 140, .07); }
.an-old .an-check:hover { border-color: var(--p200); transform: translateY(-1px); }
.an-old .an-check-icon { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 9px; background: #eff0ff; color: var(--p500); }
.an-old .an-check:nth-child(1) .an-check-icon { color: #3a9c66; background: #e9f8ef; }
.an-old .an-check:nth-child(3) .an-check-icon { color: #4096d0; background: #e8f5ff; }
.an-old .an-check-text { min-width: 0; flex: 1; }
.an-old .an-check-text b { display: block; color: var(--s950); font-size: 14px; }
.an-old .an-check-text small { display: block; color: var(--s600); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-old .an-check .pill { flex: none; }
.an-old .an-check > .ms { color: var(--s500); flex: none; }
.an-old .an-recommend h3 { color: var(--s950); font-size: 19px; margin: 0 0 18px; }
.an-old .an-recommend p { font-size: 14px; line-height: 1.55; margin: 0 0 18px; }
.an-old .an-recommend .btn { align-self: flex-start; margin-top: auto; }
.an-old .an-flow { position: absolute; z-index: 0; left: 45%; width: 35%; top: 25%; height: 55%; pointer-events: none; background: radial-gradient(ellipse at 50% 50%, rgba(151, 201, 255, .35), transparent 65%), radial-gradient(ellipse at 45% 45%, rgba(180, 155, 246, .25), transparent 67%); filter: blur(20px); transform: rotate(-9deg); }
.an-old .an-share-details { margin: 18px 0 0; border-top: 1px solid var(--s200); padding-top: 12px; }
.an-old .an-share-details summary { cursor: pointer; color: var(--p-ink); font-weight: 700; }
.an-old .an-share-details .an-share { margin-top: 12px; max-width: 480px; }
.an-old .an-grid { gap: 12px; }
.an-old .an-card { background: rgba(255,255,255,.8); scroll-margin-top: 90px; }
@media (max-width: 1200px) {
  .an-old .an-hero { grid-template-columns: minmax(210px,1fr) minmax(310px,1.5fr); }
  .an-old .an-recommend { grid-column: 1 / -1; }
  .an-old .an-flow { display: none; }
}
@media (max-width: 960px) {
  .an-old .an-hero { grid-template-columns: 1fr; }
  .an-old .an-recommend { grid-column: auto; }
  .an-old .an-summary-head { min-height: 0; }
  .an-old .an-checks { grid-template-rows: auto; }
  .an-old .an-flow { display: none; }
  .an-old .an-search { padding: 16px; }
  .an-old .an-form { grid-template-columns: 1fr; }
  .an-old .an-form label:last-child { grid-column: auto; }
  .an-old .an-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 520px) {
  .an-old .an-grid { grid-template-columns: 1fr; }
  .an-old .an-score { flex-direction: column; }
  .an-old .an-head { align-items: flex-start; }
  .an-old .an-head .spacer { display: none; }
}
/* slutt QR-versjon */

/* DNSSEC via Cloudflare */
.dnssec-ds { border: 1px solid var(--s100, #F2F4F7); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; }
.dnssec-ds h4 { margin: 0 0 6px; }
.dnssec-t { border-collapse: collapse; width: 100%; margin: 6px 0 10px; }
.dnssec-t td { padding: 6px 8px 6px 0; vertical-align: middle; border-top: 1px solid var(--s100, #F2F4F7); }
.dnssec-t td:first-child { color: var(--s500, #667085); white-space: nowrap; width: 1%; }
.dnssec-t td:last-child { width: 1%; text-align: right; }
.dnssec-t code.brk { word-break: break-all; }

/* DKIM: avsender med logo */
.dk-snd { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.dk-snd .dom-ico { width: 18px; height: 18px; border-radius: 4px; }
.dk-snd .dom-ico.ph { display: inline-grid; place-items: center; background: var(--p500, #5B5BD6); color: #fff; font-size: 10px; font-weight: 700; }
.dk-type .mono { word-break: break-all; }

/* AI-anbefaling */
.btn.btn-ai { background: linear-gradient(135deg, #EEF0FF, #F5EEFF); color: #4B3FC9; border: 1px solid #D9D6FE; }
.btn.btn-ai .ms { color: #6E56CF; }
.aip { display: grid; gap: 14px; }
.aip h4 { margin: 6px 0 0; }
.aip-sum { display: grid; grid-template-columns: 24px 1fr; gap: 10px; background: #F4F3FF; border-radius: 12px; padding: 12px 14px; }
.aip-sum > .ms { color: #6E56CF; } .aip-sum p { margin: 0 0 4px; }
.aip-target { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); gap: 8px; }
.aip-target > div { border: 1px solid var(--s100, #F2F4F7); border-radius: 10px; padding: 8px 10px; display: grid; gap: 2px; min-width: 0; }
.aip-target small { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--s500, #667085); }
.aip-target span { font-size: 13.5px; }
.aip-steps { margin: 0; padding: 0; list-style: none; counter-reset: aip; display: grid; gap: 10px; }
.aip-steps li { counter-increment: aip; position: relative; border: 1px solid var(--s100, #F2F4F7); border-radius: 12px; padding: 12px 14px 12px 50px; display: grid; gap: 6px; }
.aip-steps li::before { content: counter(aip); position: absolute; left: 14px; top: 12px; width: 24px; height: 24px; border-radius: 50%; background: #EEF0FF; color: #4B3FC9; font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.aip-steps li.done { opacity: .7; } .aip-steps li.done::before { content: '✓'; background: #E7F8EE; color: #127A4B; }
.aip-steps p { margin: 0; } .aip-steps .btn { justify-self: start; }
.aip-head { display: flex; gap: 8px; justify-content: space-between; align-items: baseline; flex-wrap: wrap; }
.aip-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.aip-how { background: #F0FDF4; border: 1px solid #ABEFC6; border-radius: 8px; padding: 8px 12px; font-size: 14px; }
.aip-start { display: grid; justify-items: start; gap: 10px; padding: 8px 0; } .aip-start > .ms { color: #6E56CF; font-size: 32px; } .aip-start h3, .aip-start p { margin: 0; }
.aip-wait { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: center; padding: 16px; border-radius: 12px; background: #F4F3FF; }
.aip-act { margin-top: 14px; }
.aip-foot { margin-top: 4px; }

/* Tor og svartelister på avsender-IP-er */
.ipf-row { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; font-family: var(--font, inherit); }
.ipf { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 99px; white-space: nowrap; }
.ipf .ms { font-size: 13px; }
.ipf.tor { background: #F4F3FF; color: #5925DC; }
.ipf.bl { background: #FEF3F2; color: #B42318; }

.dns-ok { justify-self: start; align-self: center; display: inline-flex; gap: 4px; align-items: center; }

/* Rapportmottakere i DMARC-posten */
.rcpt { display: grid; gap: 6px; margin: 4px 0 12px; }
.rcpt > small { font-size: 12px; font-weight: 600; color: var(--s500, #667085); text-transform: uppercase; letter-spacing: .04em; }
.rcpt-list { display: flex; flex-wrap: wrap; gap: 6px; }
.rcpt-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 4px 4px 10px; border: 1px solid var(--s100, #E4E7EC); border-radius: 99px; font-size: 13px; background: var(--white, #fff); max-width: 100%; word-break: break-all; }
.rcpt-chip em { font-style: normal; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--s500, #667085); }
.rcpt-chip.mine { background: #F4F3FF; border-color: #D9D6FE; padding-right: 10px; }
.rcpt-x { border: 0; background: transparent; cursor: pointer; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: var(--s500, #667085); }
.rcpt-x:hover { background: #FEE4E2; color: #B42318; }

/* Ulagrede endringer: linje nederst på siden */
.unsaved { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; padding: 0 max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); pointer-events: none; }
.unsaved-in { pointer-events: auto; max-width: 1040px; margin: 0 auto; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: #1D2939; color: #fff; border-radius: 14px; padding: 12px 16px; box-shadow: 0 12px 32px rgba(16,24,40,.28); }
.unsaved-txt { min-width: 0; flex: 1 1 360px; }
.unsaved-txt > b { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.unsaved-txt ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 3px; font-size: 13px; color: #D0D5DD; }
.unsaved-txt li { word-break: break-all; }
.unsaved-txt code { color: #FEC84B; font-size: 12px; margin-right: 4px; }
.unsaved-txt s { color: #FDA29B; } .unsaved-txt li b { color: #75E0A7; font-weight: 600; } .unsaved-txt i { color: #98A2B3; }
.unsaved-act { display: flex; gap: 8px; flex-wrap: wrap; }
.unsaved .btn-text { color: #fff; }
body.has-unsaved #view { padding-bottom: 140px; }
@media (min-width: 961px) { .unsaved { left: var(--side-w, 0px); } }

.lg-ds img { height: 26px; width: auto; max-width: 100%; display: block; }

.lg-img img { width: auto; max-width: 100%; display: block; }
.lg-img b { font-size: 18px; font-weight: 700; color: #1F2A44; }
/* A logo drawn in white (Have I Been Pwned) gets its own dark plate in both themes */
.lg.lg-dark { background: #0B1430; padding: 9px 12px; border-radius: 10px; }

/* Halo-abonnement: statuslinje med bryter */
.subs-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 1px solid var(--s100, #E4E7EC); border-radius: 12px; background: var(--s0); }
.subs-head.on { border-color: #ABEFC6; background: #F6FEF9; }
.subs-txt { display: grid; gap: 2px; min-width: 0; } .subs-txt b { font-size: 15px; } .subs-txt small { color: var(--s500, #667085); font-size: 13px; }
.subs-head.on .subs-txt small { color: #067647; }
.subs-help { margin: 8px 2px 0; }

/* Fiks: blink rundt feltet som ble endret */
@keyframes fixFlash { 0% { box-shadow: 0 0 0 0 rgba(91,91,214,.55); } 70% { box-shadow: 0 0 0 10px rgba(91,91,214,0); } 100% { box-shadow: 0 0 0 0 rgba(91,91,214,0); } }
.fix-flash { animation: fixFlash 1.2s ease-out 2; border-radius: 10px; }
@media (prefers-reduced-motion: reduce) { .fix-flash { animation: none; outline: 2px solid #5B5BD6; } }

/* Avsendere: hvor mye som er vurdert */
.cat-src { display: flex; align-items: center; gap: 3px; margin-top: 4px; white-space: nowrap; }
.cat-prog { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; font-size: 13px; }
.cat-bar { flex: 0 1 220px; height: 8px; background: var(--s100, #EAECF0); border-radius: 99px; overflow: hidden; }
.cat-bar i { display: block; height: 100%; background: #12B76A; border-radius: 99px; }
.intro.cat-done { background: #F6FEF9; border-color: #ABEFC6; } .intro.cat-done .big-ico { color: #12B76A; }

/* DNS-rader: samme oppsett uansett lengde på verdien */
.dns-row { display: grid; grid-template-columns: 64px minmax(150px, 1fr) minmax(0, 2.2fr) 60px; align-items: start; }
.dns-row > div.grow { flex: none; min-width: 0; }
.dns-row > div { min-width: 0; }
.dns-row > .dns-ttl { grid-column: 4; grid-row: 1; }
.dns-row > .dns-act { grid-column: 1 / -1; grid-row: 2; flex-direction: row; align-items: center; gap: 8px; min-height: 0; }
.dns-row > .dns-act:empty { display: none; }
.dns-row > .dns-act .btn[hidden] { display: none; }
.dns-row > .dns-note { grid-column: 1 / -1; }
.dns-row .dns-ok { align-self: center; }
@media (max-width: 760px) {
  .dns-row { grid-template-columns: 1fr; }
  .dns-row > .dns-ttl, .dns-row > .dns-act { grid-column: auto; grid-row: auto; }
}

/* DKIM-veiviser */
.dkim-wiz { border: 1px solid #D9D6FE; background: #FAFAFF; border-radius: 14px; padding: 16px; margin: 6px 0 18px; display: grid; gap: 12px; }
.dkim-wiz-head { display: grid; grid-template-columns: 24px 1fr; gap: 10px; } .dkim-wiz-head > .ms { color: #6E56CF; } .dkim-wiz-head p { margin: 2px 0 0; }
.dkim-steps { margin: 0; padding-left: 20px; display: grid; gap: 12px; } .dkim-steps li { line-height: 1.5; } .dkim-steps .btn { margin-left: 6px; vertical-align: middle; }
.dkim-in { display: grid; gap: 10px; margin-top: 8px; } .dkim-in .field { display: grid; gap: 4px; } .dkim-in input, .dkim-in select { width: 100%; font-family: var(--mono, monospace); font-size: 13px; }
.dkim-in3 { grid-template-columns: 160px 110px 1fr; } @media (max-width: 760px) { .dkim-in3 { grid-template-columns: 1fr; } }
.dkim-chk { min-height: 0; }
#dkimRecs { margin-top: 8px; }

.dkim-pick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* ===== Oppsettveiviser ===== */
body.wiz-open { overflow: hidden; }
.wiz-wrap { position: fixed; inset: 0; z-index: 70; background: rgba(16,24,40,.45); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.wiz { width: min(1100px, 100%); height: min(820px, 100%); background: var(--white, #fff); border-radius: 18px; display: grid; grid-template-columns: 240px 1fr; overflow: hidden; box-shadow: 0 24px 60px rgba(16,24,40,.3); }
.wiz-rail { background: #F7F7FC; border-right: 1px solid var(--s100, #EAECF0); padding: 22px 14px; display: grid; align-content: start; gap: 18px; }
.wiz-dom { padding: 0 10px; display: grid; gap: 2px; } .wiz-dom small { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--s500, #667085); } .wiz-dom b { font-size: 16px; word-break: break-all; }
.wiz-rail ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.wiz-rail li button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px; border: 0; background: transparent; border-radius: 10px; font: inherit; font-size: 14px; color: var(--s600, #475467); cursor: pointer; text-align: left; }
.wiz-rail li button:hover { background: #EEF0FF; }
.wiz-rail li.on button { background: #fff; color: #3F3BC5; font-weight: 700; box-shadow: 0 1px 3px rgba(16,24,40,.1); }
.wiz-rail li.done button .ms { color: #12B76A; }
.wiz-main { display: grid; grid-template-rows: auto 1fr auto; min-width: 0; min-height: 0; }
.wiz-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; border-bottom: 1px solid var(--s100, #EAECF0); font-size: 13px; color: var(--s500, #667085); font-weight: 600; }
.wiz-body { overflow-y: auto; padding: 24px 28px 32px; display: grid; align-content: start; gap: 14px; }
.wiz-body.busy { opacity: .55; pointer-events: none; }
.wiz-body h2 { margin: 0; font-size: 22px; text-wrap: balance; } .wiz-body h3 { margin: 10px 0 0; font-size: 15px; display: flex; align-items: center; gap: 6px; } .wiz-body > p { margin: 0; max-width: 70ch; }
.wiz-foot { display: flex; align-items: center; gap: 12px; padding: 14px 24px; border-top: 1px solid var(--s100, #EAECF0); }
.wiz-foot .spacer { flex: 1; }
.wz-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 10px; }
.wz-facts > div { border: 1px solid var(--s100, #EAECF0); border-radius: 12px; padding: 12px 14px; display: grid; gap: 2px; }
.wz-facts small { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--s500, #667085); } .wz-facts b { font-size: 16px; }
.wz-cards { display: grid; gap: 10px; } .wz-cards.two { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); } .wz-cards.three { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.wz-card { position: relative; border: 1.5px solid var(--s100, #EAECF0); border-radius: 14px; padding: 14px 16px; display: grid; gap: 6px; cursor: pointer; background: #fff; }
.wz-card input { position: absolute; opacity: 0; pointer-events: none; }
.wz-card b { display: flex; align-items: center; gap: 6px; font-size: 15px; } .wz-card span { font-size: 13.5px; color: var(--s600, #475467); line-height: 1.5; } .wz-card code { font-size: 12px; color: #3F3BC5; }
.wz-card.on { border-color: #5B5BD6; background: #F7F7FF; box-shadow: 0 0 0 3px rgba(91,91,214,.12); }
.wz-card:focus-within { outline: 2px solid #5B5BD6; outline-offset: 2px; }
.wz-fixes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wz-fixes li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; border: 1px solid #FEDF89; background: #FFFCF5; border-radius: 12px; padding: 10px 14px; }
.wz-fixes li div { display: grid; gap: 2px; } .wz-fixes li div span { font-size: 13.5px; color: #067647; }
.wz-senders { display: grid; gap: 8px; }
.wz-sender { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; border: 1px solid var(--s100, #EAECF0); border-radius: 12px; padding: 10px 14px; cursor: pointer; }
.wz-sender div { display: grid; gap: 2px; min-width: 0; } .wz-sender code { font-size: 12px; word-break: break-all; color: var(--s600, #475467); }
.wz-sender.warn { border-color: #FECDCA; background: #FFFBFA; }
.wz-warn { display: flex; gap: 4px; align-items: center; font-size: 12.5px; color: #B42318; }
.wz-add { display: grid; grid-template-columns: minmax(160px, 220px) 1fr auto; gap: 8px; } .wz-add select, .wz-add input { width: 100%; }
.wz-toggle { display: grid; grid-template-columns: 22px 1fr; gap: 12px; border: 1px solid var(--s100, #EAECF0); border-radius: 12px; padding: 14px 16px; cursor: pointer; } .wz-toggle div { display: grid; gap: 4px; } .wz-toggle span { font-size: 13.5px; color: var(--s600, #475467); }
.wz-rec { border: 1px solid var(--s100, #EAECF0); border-radius: 12px; padding: 12px 14px; display: grid; gap: 8px; min-width: 0; }
.wz-rec-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .wz-rec-h code { font-size: 12px; color: var(--s500, #667085); word-break: break-all; }
.wz-old, .wz-new { display: grid; gap: 4px; border-radius: 8px; padding: 8px 10px; min-width: 0; }
.wz-old { background: #FEF3F2; } .wz-new { background: #ECFDF3; }
.wz-old small, .wz-new small { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; } .wz-old small { color: #B42318; } .wz-new small { color: #067647; }
.wz-old code, .wz-new code { font-size: 12.5px; word-break: break-all; }
.wz-kv { display: grid; grid-template-columns: 56px 1fr auto; gap: 8px; align-items: center; } .wz-kv span { font-size: 12px; color: var(--s500, #667085); }
.wz-preview { border: 1px dashed var(--s200, #E4E7EC); border-radius: 12px; padding: 8px 12px; } .wz-preview summary { cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--s600, #475467); } .wz-preview[open] summary { margin-bottom: 10px; }
.wz-method { display: grid; grid-template-columns: 24px 1fr; gap: 10px; border: 1px solid var(--s100, #EAECF0); border-radius: 12px; padding: 14px 16px; } .wz-method div { display: grid; gap: 4px; } .wz-method span { font-size: 13.5px; color: var(--s600, #475467); }
.wz-method.on { border-color: #ABEFC6; background: #F6FEF9; } .wz-method.on > .ms { color: #12B76A; }
.wz-method-act { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.wz-dklist { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: 13px; }
.wz-done { display: grid; justify-items: start; gap: 10px; } .wz-done > .big-ico { font-size: 44px; color: #12B76A; } .wz-grade b { color: #3F3BC5; }
@media (max-width: 760px) {
  .wiz-wrap { padding: 0; } .wiz { height: 100%; border-radius: 0; grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .wiz-rail { padding: 10px; border-right: 0; border-bottom: 1px solid var(--s100, #EAECF0); } .wiz-dom { display: none; }
  .wiz-rail ol { display: flex; overflow-x: auto; gap: 4px; } .wiz-rail li button { white-space: nowrap; padding: 8px 10px; }
  .wiz-body { padding: 18px 16px 24px; } .wz-add { grid-template-columns: 1fr; }
}

/* Forenkling: veiviseren først, manuell redigering under Avansert */
.wiz-cta { display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; align-items: center; border: 1px solid #D9D6FE; background: #F7F7FF; border-radius: 14px; padding: 14px 16px; margin: 4px 0 16px; }
.wiz-cta > .ms { color: #5B5BD6; } .wiz-cta div { display: grid; gap: 2px; } .wiz-cta span { font-size: 13.5px; color: var(--s600, #475467); }
@media (max-width: 640px) { .wiz-cta { grid-template-columns: 24px 1fr; } .wiz-cta .btn { grid-column: 1 / -1; justify-self: start; } }
details.adv { border: 1px solid var(--s100, #EAECF0); border-radius: 14px; padding: 4px 16px; margin: 8px 0 16px; }
details.adv > summary { cursor: pointer; padding: 10px 0; display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--s600, #475467); }
details.adv[open] > summary { border-bottom: 1px solid var(--s100, #EAECF0); margin-bottom: 8px; }
.fix-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.fix-head h3 { margin: 0 0 2px; }

#menu details.more > summary { list-style: none; cursor: pointer; } #menu details.more > summary::-webkit-details-marker { display: none; } #menu details.more > summary span::after { content: ' ▸'; opacity: .6; } #menu details.more[open] > summary span::after { content: ' ▾'; } #menu details.more .sub { padding-left: 28px; }

#menu details.more > summary.sub { display: flex; align-items: center; gap: 14px; padding: 9px 12px 9px 46px; font-size: 14.5px; color: rgb(213, 218, 234); }
#menu details.more .sub { padding-left: 58px; }

/* Veiviser: DKIM-tabell og kort modus */
.wz-dktable { border: 1px solid var(--s100, #EAECF0); border-radius: 12px; overflow-x: auto; margin: 6px 0 14px; }
.wz-dktable table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.wz-dktable th { text-align: left; font-size: 12px; font-weight: 600; color: var(--s500, #667085); background: #F9FAFB; padding: 9px 12px; }
.wz-dktable td { padding: 10px 12px; border-top: 1px solid var(--s100, #EAECF0); vertical-align: middle; }
.wz-dkval { display: grid; gap: 2px; max-width: 340px; } .wz-dkval code { word-break: break-all; font-size: 12px; }
.wz-full { justify-self: start; margin-top: 4px; }

.wz-snd-name, .wz-dktable .dk-snd { display: inline-flex; align-items: center; gap: 8px; }
.wz-dktable .dom-ico, .wz-snd-name .dom-ico { width: 18px; height: 18px; border-radius: 4px; }
.wz-ico { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 4px; background: var(--s100, #EAECF0); color: var(--s500, #667085); }

/* Utlogging ved inaktivitet */
.idle-dlg { text-align: center; }
.idle-dlg .idle-ico { width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: #EEF0FF; color: #4F46E5; }
.idle-dlg #idleLeft { font-variant-numeric: tabular-nums; }
.idle-dlg .dialog-foot { justify-content: center; }

/* DNS-historikk med Angre */
.hist-bar{display:flex;justify-content:flex-end;gap:8px}
.hist-tl{display:flex;flex-direction:column;gap:10px}
.hist-item{display:grid;grid-template-columns:170px 1fr;gap:14px;padding:12px 14px;border:1px solid var(--s200);border-radius:var(--r);background:var(--s0)}
.hist-when{font-weight:600;font-size:13px}
.hist-when small{display:block;font-weight:400;color:var(--s500);margin-top:2px}
.hist-body{display:flex;flex-direction:column;gap:10px;min-width:0}
.hist-ch{display:flex;gap:12px;align-items:flex-start;justify-content:space-between}
.hist-ch>div{min-width:0}
.hist-ch small{display:block;color:var(--s500);margin-top:2px}
@media (max-width:640px){.hist-item{grid-template-columns:1fr}.hist-ch{flex-direction:column}}

/* Kontotre (Kunder og kontoer): partner, kunder og domener som mapper */
.atree { display: flex; flex-direction: column; gap: 2px; padding: 4px 0; }
.at-row { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 8px; border-radius: 10px; color: var(--s700); }
.at-row:hover { background: var(--s50); }
.at-acc { font-size: 14.5px; }
.at-acc.is-partner { background: linear-gradient(90deg, var(--p50), transparent 70%); }
.at-tog { width: 26px; height: 26px; border: 0; background: none; border-radius: 7px; display: grid; place-items: center; color: var(--s500); cursor: pointer; flex: none; padding: 0; }
.at-tog:hover:not(:disabled) { background: var(--s100); color: var(--s950); }
.at-tog:disabled { cursor: default; }
.at-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--s100); color: var(--s600); flex: none; }
.is-partner .at-ico { background: var(--p100); color: var(--p600); }
.at-name { padding: 3px 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; color: var(--s950); }
.at-name:hover b { color: var(--p600); }
.at-meta { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.at-count { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; color: var(--s600); font-weight: 600; font-variant-numeric: tabular-nums; }
.at-count .ms { color: var(--s400); }
.at-halo { font-size: 11.5px; font-weight: 600; color: #0B6B37; background: var(--green-bg); border-radius: 6px; padding: 2px 6px; }
.at-kids { margin-left: 21px; padding-left: 12px; border-left: 1.5px solid var(--s200); display: flex; flex-direction: column; gap: 2px; }
.at-kids > .at-node > .at-row, .at-kids > .at-dom { position: relative; }
.at-kids > .at-node > .at-row::before, .at-kids > .at-dom::before { content: ''; position: absolute; left: -12px; top: 50%; width: 10px; border-top: 1.5px solid var(--s200); }
.at-dom { min-height: 38px; font-size: 13.5px; }
.at-dom .at-name { font-weight: 500; }
.at-dom .dom-ico { width: 20px; height: 20px; }
.at-dom .at-tog { width: 8px; }
#treeBtns { display: inline-flex; gap: 4px; margin-right: 8px; }
@media (max-width: 640px) { .at-meta .pill, .at-halo { display: none; } .at-kids { margin-left: 12px; padding-left: 8px; } }

/* Adminportal */
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .g4 { grid-template-columns: 1fr; } }
.adm-hits { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.adm-hit { text-align: left; border: 1px solid var(--s200); background: #fff; border-radius: 9px; padding: 8px 10px; cursor: pointer; font: inherit; }
.adm-hit:hover { border-color: var(--p200); background: var(--p50); }
.aip-steps li > .btn { justify-self: start; }
.notice.ai-pre { background: var(--p50); border: 1px solid var(--p100); color: var(--s800); margin-bottom: 16px; } .notice.ai-pre .ms { color: var(--p-ink); }
.aip-old .aip { opacity: .45; pointer-events: none; } .notice.aip-stale { background: var(--p50); border: 1px solid var(--p100); margin-bottom: 14px; }
.notice.ai-pre.warn { background: var(--orange-bg); border-color: #F5D9B5; } .notice.ai-pre.warn .ms { color: var(--orange-ink); }

/* Symmetri: kort i rutenett skal ligge på linje og være like høye. «.card + .card» gir luft mellom kort
   som står under hverandre, men skjøv kort nummer to ned i rutenett (Terje 10.11). */
:is(.grid, .g2, .g3, .g4, .report-cards, .ma-cards, .itiles, .kpi-row, .cert-grid, .bimi-grid, .bimi-layout, .wl-layout, .an-grid, .pub-grid) > .card + .card,
:is(.grid, .g2, .g3, .g4, .report-cards, .ma-cards, .itiles, .kpi-row, .cert-grid, .bimi-grid, .bimi-layout, .wl-layout, .an-grid, .pub-grid) > * + .card { margin-top: 0; }
.report-cards { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); align-items: stretch; }
.rc { height: 100%; } .rc .rc-act { margin-top: auto; }

/* Hosting-fanen: status per post, tilkobling, én endreknapp, avansert sammenfoldet */
.host-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 16px; align-items: stretch; margin-top: 8px; }
.host-row { border: 1px solid var(--s200); border-radius: var(--r-lg); padding: 18px 20px; background: var(--s0); display: flex; flex-direction: column; gap: 10px; }
.host-row-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.host-row-head h3 { margin: 0; font-size: 16px; }
.host-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; margin: 0; font-size: 14px; }
.host-dl dt { color: var(--s500); font-weight: 500; } .host-dl dd { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.host-dl dd { min-width: 0; overflow-wrap: anywhere; } .host-dl .chip { max-width: 100%; height: auto; min-height: 26px; overflow-wrap: anywhere; cursor: default; font-family: var(--mono, monospace); font-size: 12px; }
.host-row .rcpt { margin: 0; }
.host-step { margin-top: 20px; border: 1px solid var(--p200, #C7D2FE); background: var(--p50, #EEF2FF); border-radius: var(--r-lg); padding: 18px 20px; display: grid; gap: 10px; }
.host-step h3 { margin: 0; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.host-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 20px; }
.host-adv { margin-top: 22px; border-top: 1px solid var(--s100); padding-top: 14px; }
.host-adv summary { cursor: pointer; color: var(--s600); font-weight: 500; }
.dmarc-pub { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.dmarc-pub .btn:disabled { opacity: .45; cursor: default; box-shadow: none; }
.cf-box.ok { border-style: solid; border-color: #12B76A55; background: #ECFDF3; } .cf-box.ok > .ms { color: #12B76A; }

button.wz-card { font: inherit; text-align: left; color: inherit; width: 100%; }
button.wz-card:focus-visible { outline: 2px solid #5B5BD6; outline-offset: 2px; }

/* Felles mal for domenefanene: én handlingsrad rett under kontrollene, detaljer bak «Vis …» */
.tab-act { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.tab-act .btn:disabled { opacity: .45; cursor: default; box-shadow: none; }
details.adv > summary { list-style: none; }
details.adv > summary::-webkit-details-marker { display: none; }
details.adv > summary > .ms { transition: transform .15s ease; }
details.adv[open] > summary > .ms { transform: rotate(180deg); }
details.adv > .adv-in { padding: 4px 0 12px; }
details.adv > .adv-in > .section:first-child { margin-top: 0; }
/* Standardvalg som avkrysning (DMARC: underdomener, justering, feilrapporter) */
.opts { display: grid; gap: 10px; margin-top: 18px; }
.opt-check { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; border: 1.5px solid var(--s100, #EAECF0); border-radius: 14px; padding: 12px 16px; cursor: pointer; background: #fff; }
.opt-check:has(input:checked) { border-color: #D9D6FE; background: #F7F7FF; }
.opt-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: #5B5BD6; cursor: pointer; }
.opt-check span { display: grid; gap: 2px; } .opt-check b { font-size: 15px; } .opt-check small { font-size: 13.5px; color: var(--s600, #475467); line-height: 1.5; }
.opts > div[id] { display: grid; gap: 8px; padding: 2px 0 6px 32px; } .opts > div[hidden] { display: none; }
.opts h4 { margin: 6px 0 0; }

/* Tjenesteliste for DKIM i veiviseren */
.dk-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); gap: 8px; margin: 8px 0 14px; }
.dk-svc { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--s100, #EAECF0); border-radius: 12px; padding: 9px 12px; background: #fff; font-size: 14px; }
.dk-svc span { flex: 1; } .dk-svc em { color: #5B5BD6; font-style: normal; display: inline-flex; }
.dk-svc:hover { border-color: #D9D6FE; } .dk-svc.on { border-color: #5B5BD6; background: #F7F7FF; box-shadow: 0 0 0 3px rgba(91,91,214,.12); }
.dk-svc:focus-visible { outline: 2px solid #5B5BD6; outline-offset: 2px; }

/* Hovedhandlingen for fanen i toppraden */
.tab-top { display: inline-flex; align-items: center; gap: 10px; }
.tab-top:empty { display: none; }
.tab-note { max-width: 240px; text-align: right; line-height: 1.3; }
@media (max-width: 760px) { .tab-note { display: none; } }
.hist-filter { margin: 4px 0 16px; flex-wrap: wrap; }
.hist-title { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.tab-top .btn:disabled { background: var(--s100, #EAECF0) !important; color: var(--s400, #98A2B3) !important; border-color: transparent !important; box-shadow: none !important; cursor: default; opacity: 1; }
.tab-top .btn:disabled .ms { color: inherit; }

/* Domenetype som knapp, og forklaring for parkert */
.pill-btn { border: 0; cursor: pointer; font: inherit; display: inline-flex; align-items: center; gap: 2px; }
.pill-btn:hover { filter: brightness(.96); } .pill-btn:focus-visible { outline: 2px solid #5B5BD6; outline-offset: 2px; }
.kind-info { margin-top: 16px; border: 1px solid var(--s100, #EAECF0); border-radius: 14px; padding: 12px 16px; background: var(--s50, #F9FAFB); }
.kind-info h4 { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; } .kind-info ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; color: var(--s700, #344054); }
/* Sidepanelet: to like søyler, aktive og parkerte */
.q-row + .q-row { margin-top: 8px; } .q-row .q-head { font-weight: 600; } .q-bar.parked i { background: linear-gradient(90deg, #9CA3AF, #CBD5E1); }

.fix-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 18px 0 0; color: var(--s700); }

/* Kategoriser avsendere: kortet er klikkbart, veiviser én avsender om gangen */
#catIntro:not(.cat-done) { cursor: pointer; } #catIntro #catStart { align-self: center; white-space: nowrap; }
.cw-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; } .cw-head .cat-bar { flex: 1; }

/* Landflagg (lokale SVG-er) */
img.flag { width: 18px; height: 13px; object-fit: cover; border-radius: 2px; vertical-align: -2px; margin-right: 4px; box-shadow: 0 0 0 1px rgba(16, 24, 40, .1); }

/* ---------- Audit 10.11.2026: labels, actions column, mobile, unknown state, typed confirmation ---------- */
/* Label and group chips never widen the page, however long the text (#14) */
.dom-labels .pill, td .pill.lbl { max-width: 16em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: middle; }
.pill.lbl::before { display: none; }
/* The sticky actions column has room of its own, so it never covers the DMARC status pill (#20) */
td.actions { box-shadow: -10px 0 10px -6px rgba(16, 24, 40, .08), -1px 0 0 var(--s100); white-space: nowrap; }
tr > th:last-child:empty { position: sticky; right: 0; background: var(--s0); }
td:has(+ td.actions) { padding-right: 18px; }
/* Mobile 375 px: the action row on the domain page wraps, and role pills stay inside their card (#21) */
.status-line .right { flex-wrap: wrap; justify-content: flex-end; }
.tab-top { flex-wrap: wrap; }
@media (max-width: 720px) {
  .status-line .right { margin-left: 0; width: 100%; justify-content: flex-start; }
  .mtable .pill, .card .pill { max-width: 100%; white-space: normal; }
}
/* «Kunne ikke sjekkes»: DNS failed, the area is neither ok nor missing */
.pill.yellow { background: #FEF7C3; color: #713B12; }
.pill.yellow::before { content: 'help'; font-family: 'Material Symbols Outlined'; font-variation-settings: 'FILL' 1; font-size: 17px; line-height: 1; width: 17px; height: 17px; margin: 0; border-radius: 0; background: none; overflow: hidden; font-weight: 400; color: #CA8504; }
.status-line.st-yellow .ms { color: #CA8504; }
/* Typed confirmation for destructive actions */
.danger-box { background: var(--red-bg); border: 1px solid #F5B5BE; color: var(--s950); border-radius: var(--r); padding: 12px 14px; margin: 0 0 14px; font-size: 13.5px; }
.danger-box b:first-child { color: var(--red-ink); display: block; margin-bottom: 4px; }
.danger-box ul { margin: 6px 0 0; padding-left: 18px; }
.dialog .typed { margin: 0 0 18px; }
.dialog .btn:disabled { opacity: .45; cursor: not-allowed; }
.deleted-list { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.spf-diff { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; margin: 6px 0 14px; display: grid; gap: 4px; }
.spf-diff .rm { color: var(--red-ink); } .spf-diff .add { color: var(--green-ink); }

/* ---------- Dark mode: components with fixed light backgrounds (#18) ---------- */
:root[data-theme="dark"] .wz-card, :root[data-theme="dark"] .opt-check, :root[data-theme="dark"] .dk-svc, :root[data-theme="dark"] .itile, :root[data-theme="dark"] .adm-hit, :root[data-theme="dark"] .wz-keys .field, :root[data-theme="dark"] .mini-report { background: var(--s0); border-color: var(--s200); color: var(--s800); }
:root[data-theme="dark"] .wz-card.on, :root[data-theme="dark"] .opt-check:has(input:checked), :root[data-theme="dark"] .dk-svc.on, :root[data-theme="dark"] .wiz-cta, :root[data-theme="dark"] .dkim-wiz { background: #1F1D4D; border-color: #4B47B8; }
:root[data-theme="dark"] .wz-card code { color: #B9B4FF; }
:root[data-theme="dark"] .rcpt-chip { background: var(--s100); border-color: var(--s200); color: var(--s800); }
:root[data-theme="dark"] .rcpt-chip.mine { background: #24225A; border-color: #3B3790; }
:root[data-theme="dark"] .rcpt-x:hover { background: #3A1520; color: #FF9AA8; }
:root[data-theme="dark"] .an-table th, :root[data-theme="dark"] .wz-dktable th { background: var(--s100); }
:root[data-theme="dark"] .an-ico.t-green, :root[data-theme="dark"] .an-ico.t-purple, :root[data-theme="dark"] .an-ico.t-blue { color: inherit; }
:root[data-theme="dark"] .btn-soft:hover { background: #2C2A6E; }
:root[data-theme="dark"] .avatar { background: #0F2E1D; }
:root[data-theme="dark"] .wiz { background: var(--s0); color: var(--s800); }
:root[data-theme="dark"] .wiz-rail { background: var(--s50); border-color: var(--s200); }
:root[data-theme="dark"] .wiz-rail li button:hover { background: var(--s100); }
:root[data-theme="dark"] .wiz-rail li.on button { background: var(--s100); color: #CFC8FF; }
:root[data-theme="dark"] .wz-check:has(input:checked), :root[data-theme="dark"] .wz-method.on, :root[data-theme="dark"] .subs-head.on, :root[data-theme="dark"] .intro.cat-done, :root[data-theme="dark"] .cf-box.ok, :root[data-theme="dark"] .notice.ok, :root[data-theme="dark"] .aip-how, :root[data-theme="dark"] .tk-prev .tk-fix, :root[data-theme="dark"] .wz-new { background: #0E2C1D; border-color: #1E5A3A; color: #A6F0C6; }
:root[data-theme="dark"] .wz-fixes li, :root[data-theme="dark"] .hm-explain, :root[data-theme="dark"] .tk-top, :root[data-theme="dark"] .cf-box.on { background: #33240E; border-color: #6B4A12; color: #F7D9A8; }
:root[data-theme="dark"] .wz-sender.warn, :root[data-theme="dark"] .itile.issue .itile-sub, :root[data-theme="dark"] .tk-top.sev-kritisk, :root[data-theme="dark"] .tk-top.sev-høy, :root[data-theme="dark"] .wz-old, :root[data-theme="dark"] .ipf.bl { background: #3A1520; border-color: #6E2433; color: #FFB4BF; }
:root[data-theme="dark"] .tk-top.sev-lav, :root[data-theme="dark"] .cf-box.ds, :root[data-theme="dark"] .an-old .an-what { background: var(--s100); border-color: var(--s200); color: var(--s800); }
:root[data-theme="dark"] .aip-sum, :root[data-theme="dark"] .aip-wait, :root[data-theme="dark"] .ipf.tor, :root[data-theme="dark"] .aip-steps li::before, :root[data-theme="dark"] .idle-dlg .idle-ico { background: #24225A; color: #CFC8FF; }
:root[data-theme="dark"] .aip-steps li.done::before { background: #0E2C1D; color: #7EE2A8; }
/* Brand logos are drawn for a light background: in the dark theme they sit on a light plate */
:root[data-theme="dark"] .itile-logo { align-self: flex-start; background: #fff; border-radius: 10px; padding: 0 12px; }
:root[data-theme="dark"] .devices { color: #1D2939; }
:root[data-theme="dark"] .itile-logo:has(.lg-dark) { background: none; padding: 0; }
:root[data-theme="dark"] .pill.yellow { background: #3A3110; color: #FDE68A; }
:root[data-theme="dark"] .danger-box { border-color: #6E2433; }
/* The report and certificate are always a light «paper»: they get the light tokens back, so links and table text stay dark */
:root[data-theme="dark"] .report, :root[data-theme="dark"] .cert, :root[data-theme="dark"] .devices, :root[data-theme="dark"] .itile-logo {
  --s0: #FFFFFF; --s50: #F5F7FB; --s100: #EEF1F6; --s200: #E2E7EF; --s300: #C9D1DD; --s400: #98A2B3;
  --s500: #6B7689; --s600: #525D71; --s700: #344054; --s800: #1D2939; --s900: #121B2E; --s950: #0D1528;
  --p50: #F3F2FF; --p100: #EAE8FF; --p200: #CFCAFF; --green-bg: #E6F6ED; --orange-bg: #FDF0E1; --red-bg: #FCEBED; --purple-bg: #F2EDFD;
  --p600: #4B3FD6; --p700: #3E33B8; --p-ink: #5B4FE9; --green-ink: #0C7A3A; --orange-ink: #A3540A; --red-ink: #C2253A; --purple-ink: #6B3FD0;
}
:root[data-theme="dark"] .report a, :root[data-theme="dark"] .report td, :root[data-theme="dark"] .report td b, :root[data-theme="dark"] .cert a { color: #1D2939; }
:root[data-theme="dark"] .report .pill.green, :root[data-theme="dark"] .cert .pill.green { background: #E5F6EC; color: #16683A; }
:root[data-theme="dark"] .report .pill.orange, :root[data-theme="dark"] .cert .pill.orange { background: #FDF0DD; color: #9A4B06; }
:root[data-theme="dark"] .report .pill.red, :root[data-theme="dark"] .cert .pill.red { background: #FDE8EB; color: #A11A2E; }
:root[data-theme="dark"] .report .pill.grey, :root[data-theme="dark"] .cert .pill.grey { background: #EEF0F4; color: #2E3646; }

/* DKIM: _domainkey delegated notice (an ordinary .notice.warn with a title, text and steps) */
.notice.dk-deleg > div { display: grid; gap: 6px; min-width: 0; }
.notice.dk-deleg ul, .notice.dk-deleg ol { margin: 0; padding-left: 20px; } .notice.dk-deleg ol { margin-top: 4px; }
.notice.dk-deleg code { overflow-wrap: anywhere; }
.notice.dk-deleg .btn { justify-self: start; }
.notice.dk-deleg { margin-bottom: 14px; }

/* «Fiks alt» (fixall.js): summary in the confirmation dialog */
.dialog .fx-sum { max-height: 40vh; overflow: auto; margin: 0 0 16px; }

/* Administrasjon tab (domain.js): details left, features right, like EasyDMARC «Management» */
.adm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.adm-grid.one { grid-template-columns: minmax(0, 760px); }
.adm-card { border: 1px solid var(--s200); border-radius: 14px; padding: 20px; margin: 0; }
.adm-dl { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px 16px; margin: 12px 0 0; align-items: start; }
.adm-dl dt { color: var(--s600); font-weight: 500; padding-top: 4px; } .adm-dl dd { margin: 0; display: grid; gap: 6px; }
.adm-type { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.adm-feat { list-style: none; margin: 12px 0 0; padding: 0; }
.adm-feat li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--s100); }
.adm-feat li:first-child { border-top: 0; }
.adm-feat a { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; white-space: nowrap; }
.adm-on { display: inline-flex; align-items: center; gap: 6px; color: var(--s800); text-align: right; }
.adm-on::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green, #15B546); flex: none; }
@media (max-width: 760px) { .adm-grid { grid-template-columns: 1fr; } .adm-dl { grid-template-columns: 1fr; gap: 4px; } .adm-dl dd { margin-bottom: 10px; } }

.dnssec-reg { display: flex; align-items: center; gap: 8px; margin: 4px 0 10px; }

/* Funksjoner (features.js): lista og aktiver-dialogen */
.drawer-foot .spacer { flex: 1; }
.feat-steps { margin: 14px 0; padding-left: 22px; display: grid; gap: 6px; font-size: 14px; }
td.right { text-align: right; }
td.nowrap { white-space: nowrap; }
@media (max-width: 640px) { td.nowrap { white-space: normal; } }

/* BIMI: lagret logo og sertifikat med bytt/slett (domain.js) */
.bimi-files { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bimi-file { display: flex; gap: 14px; align-items: stretch; min-width: 0; }
.bimi-file > .upload { flex: 1; align-items: center; }
.bimi-file:has(.bimi-logo) { align-items: center; }
.bimi-file:has(.bimi-logo) { padding: 14px; border: 1px solid var(--s100); border-radius: var(--r); background: var(--s0); }
.bimi-logo { flex: none; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--p50); border: 1px solid var(--p100); }
.bimi-logo img { width: 100%; height: 100%; object-fit: cover; }
.bimi-file .grow { display: grid; gap: 4px; min-width: 0; }
.bimi-file .grow small { color: var(--s500, #667085); }
.bimi-file-act { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
@media (max-width: 900px) { .bimi-files { grid-template-columns: 1fr; } }

/* SPF table (13.11.2026): # | sender | what DNS answers | lookups. The lookups line up in one column and add up to the
   total in the footer, under the same column. No drag handle: the order cannot be dragged here. */
.spf-table th.num, .spf-table td.num { width: 44px; text-align: right; color: var(--s500); }
.spf-table th.right, .spf-table td.right { width: 1%; text-align: right; white-space: nowrap; }
.spf-table td.right .icon-btn { display: inline-grid; vertical-align: middle; margin-left: 6px; }
.spf-table td.spf-cell { white-space: normal; }
.spf-table .spf-dns { display: block; }
.spf-table .spf-rec { background: none; padding: 0; }
.spf-table .spf-ans { color: var(--s700); }
.spf-table tfoot td { border-bottom: 0; padding-top: 12px; padding-bottom: 12px; background: var(--s50, #f8fafc); }
.spf-table tfoot .link-sm { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--p-ink); }

/* Domain head (13.11.2026): what concerns the whole domain (last check, «Sjekk nå», AI) sits by the domain name. The line
   under the tabs is only the tab's area: «SPF: Bør rettes», what is wrong, and «Fiks dette». */
.dom-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dom-checked { color: var(--s500); font-size: 12.5px; padding-left: 2px; }
.status-line small { flex: 1 1 260px; min-width: 0; }
.hist-item .break, .hist-ch .break { overflow-wrap: anywhere; word-break: break-word; }
/* «Fiks dette» is the one blue button: other blue buttons in the tab (record tables drawn later, for example
   «Publiser i DNS») look white while it is shown */
.card.has-fix #tabBody .btn-primary { background: var(--s0); border-color: var(--s200); color: var(--s700); box-shadow: none; --ic-accent: currentColor; }
.card.has-fix #tabBody .btn-primary:hover { border-color: var(--p200); color: var(--p600); filter: none; }
.status-line.no-area { justify-content: flex-end; padding: 12px 0 14px; }
.status-line.no-area:not(:has(.btn)) { display: none; }
.area-table td .muted.small { white-space: normal; font-weight: 400; margin-top: 2px; }
.area-table th.bar-col, .area-table td.bar-col { width: 28%; }
.area-table td.right { width: 1%; white-space: nowrap; text-align: right; }
/* Report recipients that are not the portal: orange, «kan fjernes» (13.11.2026) */
.rcpt-chip.ext { background: #FFFAEB; border-color: #FEDF89; }
.rcpt-chip .rcpt-tag { font-size: 11.5px; font-weight: 600; color: #B54708; white-space: nowrap; }
:root[data-theme="dark"] .rcpt-chip.ext { background: #3A2A0E; border-color: #7A5A1B; }
:root[data-theme="dark"] .rcpt-chip .rcpt-tag { color: #FDB022; }
/* Report recipients that are not the portal: orange, «kan fjernes» (13.11.2026) */
.rcpt-chip.ext { background: #FFFAEB; border-color: #FEDF89; }
.rcpt-chip .rcpt-tag { font-size: 11.5px; font-weight: 600; color: #B54708; white-space: nowrap; }
:root[data-theme="dark"] .rcpt-chip.ext { background: #3A2A0E; border-color: #7A5A1B; }
:root[data-theme="dark"] .rcpt-chip .rcpt-tag { color: #FDB022; }
.bimi-file.over { outline: 2px dashed var(--p500); outline-offset: 2px; background: var(--p50); }
/* Tiltak on Oversikt (13.11.2026, after EasyDMARC «Pending Actions») */
.act-count { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 4px 0 16px; align-items: stretch; }
.act-c { border: 1px solid var(--s200); border-radius: 12px; padding: 12px 16px; background: var(--s0); display: grid; gap: 4px; }
.act-c small { color: var(--s600); font-size: 12.5px; font-weight: 600; }
.act-c b { font-size: 26px; line-height: 1; font-weight: 700; color: var(--s950); }
.act-c.crit b { color: var(--red, #D92D20); } .act-c.warn b { color: #B54708; }
.act-group { border: 1px solid var(--s200); border-radius: 12px; margin-bottom: 12px; overflow: hidden; background: var(--s0); }
.act-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--s50, #f8fafc); border-bottom: 1px solid var(--s200); flex-wrap: wrap; }
.act-head .spacer { flex: 1; }
.act-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 16px; border-bottom: 1px solid var(--s100); border-left: 3px solid var(--s300, #d0d5dd); }
.act-row:last-child { border-bottom: 0; }
.act-row.crit { border-left-color: var(--red, #D92D20); } .act-row.warn { border-left-color: #F79009; }
.act-row .grow { display: grid; gap: 2px; min-width: 0; }
.act-row .grow small { color: var(--s600); }
.act-row .grow b, .act-row .grow small { min-width: 0; overflow-wrap: anywhere; white-space: normal; }
.act-row .grow { max-width: 100%; }
@media (max-width: 640px) { .act-count { grid-template-columns: 1fr 1fr 1fr; gap: 8px; } .act-row { flex-direction: column; align-items: stretch; } }
.dom-iss.crit { color: var(--red, #D92D20); } .dom-iss.warn { color: #B54708; }
:root[data-theme="dark"] .dom-iss, :root[data-theme="dark"] .dom-iss.crit { color: #FDA29B; } :root[data-theme="dark"] .dom-iss.warn { color: #F7C077; }

/* Poeng på fanene (13.11.2026): erstatter områdetabellen på Oversikt */
.tabs a .tab-pts { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: #eef0f4; color: var(--s600); }
.tabs a .tab-pts.ok { background: #dcf5e6; color: #15803d; }
.tabs a .tab-pts.part { background: #fdebd0; color: #b45309; }
.tabs a .tab-pts.zero { background: #fde2e2; color: #b91c1c; }

/* Leads fra Halo: tabellen ruller i egen boks, topplinjen står fast og begge rullefeltene er alltid synlige */
.halo-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0 0 10px; }
.halo-q { flex: 1; min-width: 200px; }
.halo-kpi { margin-left: auto; display: inline-flex; gap: 14px; flex-wrap: wrap; }
.halo-kpi b { color: var(--s950); }
.halo-table thead th[data-sort] { cursor: pointer; user-select: none; }
.halo-table thead th[data-sort]:hover { color: var(--s950); }
.halo-table .field { min-width: 0; width: 100%; }
.halo-table .field select, .halo-table .field input { height: 32px; min-height: 0; padding-top: 0; padding-bottom: 0; font-size: 13px; }
.halo-name a { display: inline-flex; gap: 4px; align-items: center; }
.halo-st { min-width: 135px; } .halo-note { min-width: 120px; }
.halo-scroll { max-height: calc(100vh - 330px); min-height: 260px; overflow: auto; border: 1px solid var(--s200); border-radius: 12px; }
.halo-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.halo-table thead th { position: sticky; top: 0; z-index: 2; background: var(--s0); border-bottom: 1px solid var(--s200); white-space: nowrap; }
.halo-table td, .halo-table th { padding: 5px 6px; vertical-align: middle; }
.halo-table td { overflow-wrap: break-word; white-space: normal; line-height: 1.3; }
.halo-table td:nth-child(2) { min-width: 170px; } .halo-table td:nth-child(3) { width: 170px; max-width: 170px; overflow-wrap: anywhere; } .halo-table td:nth-child(6) { min-width: 140px; }
.halo-table td:nth-child(1), .halo-table td:nth-child(4), .halo-table td:nth-child(5), .halo-table td:nth-child(7), .halo-table td:nth-child(9) { width: 1%; }
.halo-table td:nth-child(1), .halo-table td:nth-child(4), .halo-table td:nth-child(5), .halo-table td:nth-child(9) { white-space: nowrap; }
.halo-st-row { display: flex; gap: 6px; align-items: center; }
.halo-st-row .field { flex: 1; min-width: 0; }
.halo-more { margin-top: 10px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* Leads fra Halo: tydelige lenker */
.halo-table td a:not(.pill):not(.btn) { color: var(--b600, #2563eb); text-decoration: none; }
.halo-table td a:not(.pill):not(.btn):hover { text-decoration: underline; }
.halo-table td.halo-name a b { color: var(--s950); }
.halo-table td:nth-child(3) a { text-decoration: underline; text-decoration-color: rgba(37,99,235,.35); text-underline-offset: 2px; }
.halo-table td.halo-contact a { display: inline-flex; gap: 4px; align-items: center; }
.halo-saved td { background: var(--s50, #f8fafc); }
.halo-bar .seg { flex: none; }

/* «Slik retter du det»-panelet (15.11.2026): beskrivelse, retting og rekkefølge */
.fp { display: grid; gap: 14px; }
.fp-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fp-h { margin: 4px 0 0; font-size: 13px; text-transform: none; color: var(--s600); font-weight: 600; }
.fp-text { margin: 0; line-height: 1.55; color: var(--s800); }
.fp-box > div { display: grid; gap: 4px; min-width: 0; }
.fp-box p { margin: 0; line-height: 1.55; overflow-wrap: anywhere; }
.fp .drawer-foot { display: flex; justify-content: flex-end; padding: 8px 0 0; }

.req-btns { display: flex; gap: 8px; }
