/* ByggePuls Portal · tema C lys flow
   Perlehvid flade, bløde skygger, én accentgradient (petrol til turkis). Tegl betyder "afventer dig".
   Ingen 1 px-rammer eller gitre; dybde via flader og skygger. 1rem = 10 px ved 1600×1000 (PH.fitRem). */
:root {
  --bg: #EEF4F3;
  --ink: #0E2427;
  --ink-2: #3D5357;
  --ink-3: #5E7275;
  --ink-4: #93A3A5;
  --card: rgba(255, 255, 255, .9);
  --tint: #EAF4F2;
  --tint-2: #DCEFEB;
  --petrol: #0F766E;
  --petrol-2: #0D8A80;
  --turkis: #14B8A6;
  --grad: linear-gradient(118deg, #0B5E57 0%, #0F766E 42%, #14B8A6 100%);
  --grad-soft: linear-gradient(118deg, #E3F3F0 0%, #E6F7F4 60%, #DDF6F1 100%);
  --grad-text: linear-gradient(100deg, #0A5550 0%, #0F766E 46%, #0FA595 100%);
  --tegl: #C2410C;
  --tegl-2: #EA6A2A;
  --tegl-soft: #FFF0E6;
  --ok: #16A34A;
  --ok-t: #12803B;
  --ok-soft: #E5F6EB;
  --bad: #DC2626;
  --bad-t: #B91C1C;
  --bad-soft: #FDECEC;
  --r-card: 2.6rem;
  --r-in: 1.7rem;
  --pad: 2.6rem;
  --gap: 2rem;
  --sh: 0 1px 2px rgba(14, 36, 39, .03), 0 12px 32px -14px rgba(15, 118, 110, .17), 0 34px 68px -38px rgba(15, 118, 110, .26);
  --sh-hover: 0 2px 4px rgba(14, 36, 39, .03), 0 20px 42px -16px rgba(15, 118, 110, .25), 0 48px 90px -40px rgba(15, 118, 110, .34);
  --sh-in: 0 1px 2px rgba(14, 36, 39, .03), 0 8px 22px -14px rgba(15, 118, 110, .3);
  --sh-pop: 0 28px 60px -22px rgba(10, 60, 56, .42);
  --ease: cubic-bezier(.22, .9, .3, 1);
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ph-ripple: rgba(15, 118, 110, .55);
  --ph-frame-bg: #E3EEEC;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow: hidden; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; }
.tn, .num { font-variant-numeric: tabular-nums; }
svg.i { width: 2rem; height: 2rem; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.i.sm { width: 1.6rem; height: 1.6rem; }
svg.i.xs { width: 1.3rem; height: 1.3rem; stroke-width: 2.1; }
.nb { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Ramme og himmel (inde i #app) ---------- */
#app {
  position: fixed; inset: 0; overflow: hidden;
  display: grid; grid-template-columns: 9.2rem minmax(0, 1fr);
  gap: 2rem; padding: 2rem 2.4rem 2rem 2rem;
  background: var(--bg);
}
#sprite { position: absolute; }
#notif-host, #modal-host, #palette-host, #lightbox-host, #more-host { display: contents; }
.nav-i.m-more { display: none; }
.sky { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.sky i { position: absolute; border-radius: 50%; filter: blur(70px); }
.sky .s1 { width: 70rem; height: 52rem; left: 2%; top: -20rem; background: radial-gradient(closest-side, rgba(20, 184, 166, .30), rgba(20, 184, 166, 0)); }
.sky .s2 { width: 62rem; height: 62rem; right: -12rem; top: -14rem; background: radial-gradient(closest-side, rgba(56, 189, 248, .22), rgba(56, 189, 248, 0)); }
.sky .s3 { width: 86rem; height: 46rem; left: 16%; top: 42%; background: radial-gradient(closest-side, rgba(15, 118, 110, .16), rgba(15, 118, 110, 0)); }
.sky .s4 { width: 42rem; height: 34rem; left: 40%; top: 4rem; background: radial-gradient(closest-side, rgba(251, 176, 120, .16), rgba(251, 176, 120, 0)); }
.sky .s5 { width: 52rem; height: 40rem; right: 4%; bottom: -22rem; background: radial-gradient(closest-side, rgba(45, 212, 191, .24), rgba(45, 212, 191, 0)); }

/* ---------- Venstreskinne ---------- */
.rail {
  position: relative; z-index: 2; min-height: 0;
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  padding: 1.8rem .6rem 1.6rem;
  border-radius: 3.2rem;
  background: rgba(255, 255, 255, .62);
  backdrop-filter: blur(24px) saturate(1.5); -webkit-backdrop-filter: blur(24px) saturate(1.5);
  box-shadow: var(--sh);
}
.mark {
  width: 4.6rem; height: 4.6rem; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--grad); color: #fff; margin-bottom: 1.6rem;
  box-shadow: 0 12px 24px -8px rgba(15, 118, 110, .6), inset 0 1px 1px rgba(255, 255, 255, .35);
}
.mark svg { width: 2.4rem; height: 2.4rem; stroke-width: 2.2; }
.nav-i {
  position: relative; width: 100%; border: 0; background: none;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  padding: .5rem .2rem; border-radius: 2rem; color: var(--ink-3);
  font-size: 1.1rem; font-weight: 600; line-height: 1.15; text-align: center; white-space: nowrap;
  transition: color .4s var(--ease);
}
.nav-i .ni { width: 4.2rem; height: 4.2rem; border-radius: 50%; display: grid; place-items: center; transition: background .4s var(--ease), box-shadow .4s var(--ease), color .4s var(--ease), transform .4s var(--ease); }
.nav-i:hover .ni, .nav-i[data-ph-hover] .ni { background: rgba(255, 255, 255, .9); color: var(--ink); transform: translateY(-1px); }
.nav-i:hover, .nav-i[data-ph-hover] { color: var(--ink); }
.nav-i:focus-visible { outline: none; }
.nav-i:focus-visible .ni { box-shadow: 0 0 0 3px rgba(20, 184, 166, .4); }
.nav-i[aria-current="page"] { color: var(--ink); }
.nav-i[aria-current="page"] .ni { background: #fff; color: var(--petrol); box-shadow: 0 8px 20px -8px rgba(15, 118, 110, .55); }
.nav-i .bdg {
  position: absolute; top: .2rem; right: 1.5rem; min-width: 1.8rem; height: 1.8rem; padding: 0 .5rem;
  border-radius: 999px; background: var(--grad); color: #fff; font-size: 1rem; font-weight: 700;
  display: grid; place-items: center; box-shadow: 0 0 0 2.5px rgba(255, 255, 255, .95), 0 4px 10px -3px rgba(15, 118, 110, .6);
}
.nav-i .bdg.warn { background: var(--tegl); box-shadow: 0 0 0 2.5px rgba(255, 255, 255, .95), 0 4px 10px -3px rgba(194, 65, 12, .6); }
.rail .sep { width: 3.2rem; height: .3rem; border-radius: 9px; background: rgba(15, 118, 110, .1); margin: .4rem 0 .6rem; flex: none; }
.rail .grow { flex: 1; min-height: .4rem; }

/* ---------- Hovedflade og top ---------- */
.main { position: relative; z-index: 1; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 1.8rem; min-width: 0; min-height: 0; }
.top { display: flex; align-items: center; gap: 1.2rem; padding: .4rem .4rem 0 .8rem; position: relative; z-index: 5; min-width: 0; }
.hello { min-width: 0; flex: 0 1 auto; }
.hello .eyebrow { font-size: 1.2rem; font-weight: 600; color: var(--ink-3); display: flex; align-items: center; gap: .8rem; white-space: nowrap; }
.hello .eyebrow b { color: var(--petrol); font-weight: 700; }
.hello h1 { font-size: 3rem; font-weight: 700; letter-spacing: -.025em; line-height: 1.15; margin-top: .2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hello h1 span { color: var(--ink-3); font-weight: 500; font-size: 1.7rem; letter-spacing: 0; margin-left: 1.2rem; }
.top .sp { flex: 1; }
.demo-pill { display: inline-flex; align-items: center; gap: .6rem; height: 2.8rem; font-size: 1.1rem; font-weight: 600; color: var(--ink-3); padding: 0 1.2rem; border-radius: 999px; background: rgba(255, 255, 255, .55); white-space: nowrap; flex: none; }
.demo-pill i { width: .6rem; height: .6rem; border-radius: 50%; background: #A7B8B9; }
.seg { display: inline-flex; padding: .4rem; border-radius: 999px; background: rgba(255, 255, 255, .6); box-shadow: 0 10px 28px -18px rgba(15, 118, 110, .4); flex: none; }
.seg button { border: 0; background: none; height: 3.8rem; padding: 0 1.5rem; border-radius: 999px; font-size: 1.25rem; font-weight: 600; color: var(--ink-3); display: inline-flex; align-items: center; gap: .6rem; transition: background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease); white-space: nowrap; }
.seg button:hover, .seg button[data-ph-hover] { color: var(--ink); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--petrol); box-shadow: 0 6px 16px -8px rgba(15, 118, 110, .5); }
.seg button:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(20, 184, 166, .4); }
.search {
  display: flex; align-items: center; gap: 1rem; height: 4.8rem; padding: 0 .8rem 0 1.8rem; width: 30rem; min-width: 14rem; flex: 0 1 30rem;
  border: 0; border-radius: 999px; background: rgba(255, 255, 255, .74);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 10px 28px -16px rgba(15, 118, 110, .38);
  color: var(--ink-3); font-size: 1.35rem; font-weight: 500; text-align: left;
  transition: box-shadow .4s var(--ease), background .4s var(--ease);
}
.search span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search:hover, .search[data-ph-hover] { background: #fff; }
.search:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(20, 184, 166, .2), 0 14px 34px -16px rgba(15, 118, 110, .45); }
kbd { font: 700 1.05rem/1 var(--sans); color: var(--ink-2); padding: .5rem .8rem; border-radius: 999px; background: var(--tint); white-space: nowrap; }
.btn.primary kbd { background: rgba(255, 255, 255, .2); color: #fff; }
.me { display: flex; align-items: center; gap: 1rem; padding: .5rem 1.6rem .5rem .5rem; border-radius: 999px; background: rgba(255, 255, 255, .6); box-shadow: 0 10px 28px -18px rgba(15, 118, 110, .38); flex: none; }
.me .av { width: 3.8rem; height: 3.8rem; }
.me > div b { display: block; font-size: 1.3rem; font-weight: 700; white-space: nowrap; }
.me > div span { display: block; font-size: 1.1rem; color: var(--ink-3); font-weight: 500; }
.av {
  width: 3.4rem; height: 3.4rem; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-size: 1.1rem; font-weight: 700; color: var(--petrol); background: linear-gradient(140deg, #E2F4F0, #EAF6F4);
}
.av.g { color: #fff; background: var(--grad); box-shadow: 0 0 0 2.5px #fff, 0 6px 14px -4px rgba(15, 118, 110, .55); }
.av.w { color: var(--tegl); background: linear-gradient(140deg, #FFF0E6, #FFE9DD); }

/* ---------- Visninger og kort ---------- */
.view { position: relative; min-height: 0; min-width: 0; }
.v { height: 100%; min-height: 0; display: grid; gap: var(--gap); }
.card {
  position: relative; min-width: 0; min-height: 0; overflow: hidden;
  display: flex; flex-direction: column;
  padding: var(--pad);
  border-radius: var(--r-card);
  background: var(--card);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: var(--sh);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card.lift:hover, .card.lift[data-ph-hover] { transform: translateY(-4px); box-shadow: var(--sh-hover); }
.card[role="button"] { cursor: pointer; }
.card[role="button"]:focus-visible, .g-lab:focus-visible, .td-ops li:focus-visible, .pin:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(20, 184, 166, .45), var(--sh); }
.pin:focus-visible .tear { transform: scale(1.14); }
.ch { display: flex; align-items: center; gap: 1rem; min-height: 3.6rem; flex: none; }
.ch h2 { font-size: 1.45rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.ch .ch-meta { font-size: 1.3rem; color: var(--ink-3); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ch .ch-meta::before { content: '·'; margin-right: .8rem; color: #AFC0C1; }
.ch .ch-r { margin-left: auto; }
.ic { width: 3.6rem; height: 3.6rem; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--petrol); background: linear-gradient(140deg, #E0F3EF, #EAF7F4); }
.ic svg { width: 1.7rem; height: 1.7rem; }
.ic.warm { color: var(--tegl); background: linear-gradient(140deg, #FFF0E6, #FFE7DA); }
.ic.okc { color: var(--ok-t); background: var(--ok-soft); }
.chip { display: inline-flex; align-items: center; gap: .5rem; height: 3rem; padding: 0 1.3rem; border-radius: 999px; font-size: 1.2rem; font-weight: 600; color: var(--ink-2); background: var(--tint); white-space: nowrap; flex: none; }
.chip.ok { color: var(--ok-t); background: var(--ok-soft); }
.chip.warn { color: var(--tegl); background: var(--tegl-soft); }
.chip.bad { color: var(--bad-t); background: var(--bad-soft); }
.chip.acc { color: #fff; background: var(--grad); box-shadow: 0 8px 18px -10px rgba(15, 118, 110, .7); }
.chip.sm { height: 2.4rem; padding: 0 .9rem; font-size: 1.1rem; gap: .35rem; }
.idc { display: inline-flex; align-items: center; height: 2.4rem; padding: 0 .8rem; border-radius: 999px; background: var(--tint); color: var(--petrol); font-size: 1.1rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; flex: none; font-variant-numeric: tabular-nums; }
.live { display: inline-flex; align-items: center; gap: .7rem; height: 3rem; padding: 0 1.2rem; border-radius: 999px; background: var(--tegl-soft); font-size: 1.1rem; font-weight: 700; color: var(--tegl); white-space: nowrap; }
.live i { position: relative; width: .7rem; height: .7rem; border-radius: 50%; background: var(--tegl-2); }
.live i::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--tegl-2); animation: ping 2.2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 80%, 100% { transform: scale(3); opacity: 0; } }

.big { font-weight: 400; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.unit { font-weight: 600; color: var(--ink-3); letter-spacing: -.01em; }
.muted { color: var(--ink-3); font-size: 1.3rem; font-weight: 500; }
.lbl { font-size: 1.25rem; font-weight: 600; color: var(--ink-3); }

/* Knapper */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  height: 4.4rem; padding: 0 2rem; border: 0; border-radius: 999px;
  font-size: 1.3rem; font-weight: 700; white-space: nowrap; flex: none;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), filter .4s var(--ease), background .4s var(--ease), color .4s var(--ease), opacity .4s;
}
.btn:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(20, 184, 166, .35); }
.btn.primary { color: #fff; background: var(--grad); box-shadow: 0 12px 24px -10px rgba(15, 118, 110, .7), inset 0 1px 1px rgba(255, 255, 255, .28); }
.btn.primary:hover, .btn.primary[data-ph-hover] { transform: translateY(-1px); filter: brightness(1.06) saturate(1.05); box-shadow: 0 16px 30px -10px rgba(15, 118, 110, .8), inset 0 1px 1px rgba(255, 255, 255, .32); }
.btn.ghost { color: var(--ink-2); background: var(--tint); }
.btn.ghost:hover, .btn.ghost[data-ph-hover] { color: var(--petrol); background: var(--tint-2); }
.btn.white { color: var(--ink); background: rgba(255, 255, 255, .92); box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .45); }
.btn.white:hover, .btn.white[data-ph-hover] { background: #fff; transform: translateY(-1px); }
.btn.danger { color: var(--bad-t); background: var(--bad-soft); }
.btn.danger:hover, .btn.danger[data-ph-hover] { background: #FBDADA; }
.btn.sm { height: 3.4rem; padding: 0 1.5rem; font-size: 1.2rem; }
.btn.block { width: 100%; }
.btn.done { color: var(--ok-t); background: var(--ok-soft); box-shadow: none; filter: none; transform: none; cursor: default; }
.btn[disabled]:not(.done) { opacity: .42; cursor: default; filter: grayscale(.4); transform: none; box-shadow: none; }
.link { border: 0; background: none; padding: 0; color: var(--petrol); font-weight: 700; font-size: 1.25rem; display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; border-radius: 6px; }
.link:hover, .link[data-ph-hover] { color: var(--ink); }
.link:focus-visible { outline: 2px solid rgba(20, 184, 166, .5); outline-offset: 3px; }
.iconbtn { width: 3.6rem; height: 3.6rem; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--ink-2); flex: none; transition: background .3s, color .3s; }
.iconbtn:hover, .iconbtn[data-ph-hover] { background: var(--tint-2); color: var(--ink); }
.iconbtn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(20, 184, 166, .4); }
.iconbtn[disabled] { opacity: .35; cursor: default; }

/* Indtoning */
.rv { animation: rise .62s var(--ease) backwards; animation-delay: calc(var(--d, 0) * 60ms + 40ms); }
.still .rv, .still.rv { animation: none; }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.985); } }

/* ======================= OVERBLIK ======================= */
.bento {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 1.36fr .72fr 1fr;
  grid-template-areas:
    "hero hero hero hero hero as as as ai ai ai ai"
    "puls puls puls puls puls puls puls puls ai ai ai ai"
    "econ econ econ ring ring foto foto foto agen agen agen agen";
}
.c-hero { grid-area: hero; } .c-as { grid-area: as; } .c-ai { grid-area: ai; } .c-puls { grid-area: puls; }
.c-econ { grid-area: econ; } .c-ring { grid-area: ring; } .c-foto { grid-area: foto; } .c-agen { grid-area: agen; }

/* Projekthero med stort foto */
.c-hero { padding: 0; color: #fff; isolation: isolate; background: #24403F; cursor: pointer; }
.c-hero .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; z-index: -2; transform: scale(1.03); transition: transform 1.4s var(--ease); }
.c-hero:hover .bg, .c-hero[data-ph-hover] .bg { transform: scale(1.06); }
.c-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 34, 32, .34) 0%, rgba(6, 34, 32, 0) 28%, rgba(6, 34, 32, .08) 48%, rgba(5, 32, 30, .82) 100%); }
.hero-in { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 2.2rem 2.4rem 2.4rem; }
.hero-tags { display: flex; gap: .8rem; align-items: center; }
.glass { background: rgba(255, 255, 255, .18); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28); color: #fff; }
.hero-tags .chip.glass { color: #fff; }
.hero-tags .ch-r { margin-left: auto; }
.hero-bot { display: flex; align-items: flex-end; gap: 1.6rem; }
.hero-t { flex: 1; min-width: 0; }
.hero-t small { display: block; font-size: 1.25rem; font-weight: 600; color: rgba(255, 255, 255, .82); }
.hero-t h2 { margin-top: .5rem; font-size: 3.4rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; text-shadow: 0 2px 18px rgba(0, 0, 0, .25); }
.hero-t p { margin-top: .6rem; font-size: 1.35rem; font-weight: 500; color: rgba(255, 255, 255, .86); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.count { flex: none; text-align: right; padding: 1.4rem 1.8rem 1.4rem 2rem; border-radius: 2rem; background: rgba(255, 255, 255, .2); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 18px 40px -20px rgba(0, 0, 0, .5); }
.count .lbl { color: rgba(255, 255, 255, .82); font-size: 1.15rem; }
.count .big { display: block; margin-top: .4rem; font-size: 5.4rem; font-weight: 300; letter-spacing: -.045em; }
.count .big small { font-size: 1.7rem; font-weight: 600; letter-spacing: 0; margin-left: .5rem; color: rgba(255, 255, 255, .86); }
.count .d { display: block; margin-top: .6rem; font-size: 1.2rem; font-weight: 600; color: rgba(255, 255, 255, .86); }

/* Aftaleseddel venter */
.c-as::after { content: ''; position: absolute; right: -9rem; top: -9rem; width: 26rem; height: 26rem; border-radius: 50%; background: radial-gradient(closest-side, rgba(234, 106, 42, .16), rgba(234, 106, 42, 0)); pointer-events: none; }
.c-as.ok::after { background: radial-gradient(closest-side, rgba(22, 163, 74, .14), rgba(22, 163, 74, 0)); }
.as-kpi { display: flex; align-items: baseline; gap: .6rem; margin-top: 1.8rem; }
.as-kpi .big { font-size: 4.4rem; }
.as-kpi .unit { font-size: 1.7rem; }
.as-t { margin-top: .8rem; font-size: 1.45rem; font-weight: 700; line-height: 1.35; position: relative; z-index: 1; }
.as-m { margin-top: .4rem; font-size: 1.2rem; color: var(--ink-3); font-weight: 500; }
.facts { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: .8rem; margin: 1.2rem 0 1.6rem; }
.fact { display: flex; align-items: center; gap: .8rem; font-size: 1.25rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.fact svg { color: var(--petrol); }
.fact b { margin-left: auto; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.as-sig { flex: 1; min-height: 0; margin: 1.2rem 0 1.4rem; border-radius: var(--r-in); background: linear-gradient(120deg, #F3FAF8, #EEF8F5); display: grid; place-items: center; position: relative; }
.as-sig svg { width: 86%; height: 70%; }
.as-sig path { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.as-sig small { position: absolute; left: 1.4rem; bottom: 1rem; font-size: 1.1rem; font-weight: 600; color: var(--ink-3); }

/* AI-assistent */
.c-ai { background: linear-gradient(172deg, rgba(255, 255, 255, .96) 0%, rgba(247, 252, 251, .92) 55%, rgba(232, 247, 243, .92) 100%); box-shadow: var(--sh), 0 40px 80px -40px rgba(15, 118, 110, .3); }
.c-ai::before { content: ''; position: absolute; left: -10rem; bottom: -12rem; width: 40rem; height: 34rem; border-radius: 50%; background: radial-gradient(closest-side, rgba(20, 184, 166, .16), rgba(20, 184, 166, 0)); pointer-events: none; }
.orb { position: relative; width: 3.6rem; height: 3.6rem; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; background: radial-gradient(circle at 32% 28%, #8EF0E0 0%, #14B8A6 46%, #0F766E 100%); box-shadow: 0 8px 18px -5px rgba(15, 118, 110, .6), inset 0 1px 1px rgba(255, 255, 255, .5); }
.orb svg { width: 1.7rem; height: 1.7rem; fill: #fff; stroke: none; }
.ai-head { margin-top: 1.4rem; font-size: 2.4rem; font-weight: 700; letter-spacing: -.025em; line-height: 1.2; position: relative; z-index: 1; }
.ai-head small { display: block; font-size: 1.25rem; font-weight: 600; letter-spacing: 0; color: var(--ink-3); margin-top: .4rem; }
.ai-sum { margin-top: 1.4rem; display: flex; flex-direction: column; gap: .8rem; position: relative; z-index: 1; flex: none; }
.ai-sum li { display: grid; grid-template-columns: 2.8rem minmax(0, 1fr); gap: 1rem; align-items: center; padding: 1.1rem 1.3rem 1.1rem 1.1rem; border-radius: 1.6rem; background: rgba(255, 255, 255, .8); box-shadow: var(--sh-in); font-size: 1.3rem; line-height: 1.5; color: var(--ink-2); font-weight: 500; }
.ai-sum li b { color: var(--ink); font-weight: 700; }
.ai-sum li .dot { width: 2.8rem; height: 2.8rem; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--petrol); }
.ai-sum li .dot.warn { background: var(--tegl-soft); }
.ai-sum li .dot.warn { color: var(--tegl); }
.ai-sum li .dot svg { width: 1.4rem; height: 1.4rem; }
.ai-sum .tw { min-height: 3.9rem; }
.caret { display: inline-block; width: 2px; height: 1em; margin-left: 1px; vertical-align: -.15em; border-radius: 2px; background: var(--turkis); animation: blink .8s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ai-q { margin-top: auto; padding-top: 1.4rem; position: relative; z-index: 1; display: flex; flex-direction: column; gap: 1rem; min-height: 0; }
.ai-q .lbl { font-size: 1.2rem; }
.ai-q > * { flex-shrink: 0; }
.qchips { display: flex; flex-wrap: wrap; gap: .6rem; }
.qchip { border: 0; height: 3.2rem; padding: 0 1.3rem; border-radius: 999px; background: #fff; box-shadow: var(--sh-in); font-size: 1.2rem; font-weight: 600; color: var(--ink-2); transition: color .3s, background .3s, box-shadow .3s, transform .3s var(--ease); white-space: nowrap; }
.qchip:hover, .qchip[data-ph-hover] { color: var(--petrol); transform: translateY(-1px); }
.qchip[aria-pressed="true"] { color: #fff; background: var(--grad); box-shadow: 0 8px 18px -10px rgba(15, 118, 110, .7); }
.qchip:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(20, 184, 166, .4); }
.answer { border-radius: 1.6rem 1.6rem 1.6rem .6rem; padding: 1.2rem 1.4rem; background: #fff; box-shadow: var(--sh-in); font-size: 1.3rem; line-height: 1.5; color: var(--ink-2); font-weight: 500; min-height: 8.4rem; }
/* Lavere kort (fx 1280×800): kortene tilpasser indholdet efter egen indholdshøjde (uden polstring), ikke efter vinduet.
   Målt: AI 54 rem ved 1600/1920 og 47,9 ved 1280; bundrækken 22,3 og 19,3; aftaleseddel 32,2 og 28,2. */
.c-ai, .c-agen, .c-ring, .c-as, .c-econ { container-type: size; }
@container (max-height: 51rem) {
  .ai-head { margin-top: .8rem; }
  .ai-head small { display: none; }
  .ai-sum { margin-top: 1rem; gap: .5rem; }
  .ai-sum li { padding: .6rem .9rem .6rem .7rem; }
  .ai-q { gap: .8rem; padding-top: 1rem; }
  .answer { min-height: 6.4rem; padding: 1rem 1.2rem; }
  .c-ai .answer .src { display: none; }
  .ai-head { font-size: 2.1rem; }
}
@container (max-height: 21rem) {
  .agenda .ag:nth-child(4) { display: none; }
  .ring-foot { margin-top: .6rem; }
  .e-lbl { margin-top: 1rem; }
  .e-kpi .big { font-size: 3.4rem; }
}
@container (max-height: 30rem) {
  .as-kpi { margin-top: 1rem; }
  .as-kpi .big { font-size: 3.8rem; }
  .facts { margin: .8rem 0 1.2rem; gap: .5rem; }
}
.answer b { color: var(--ink); }
.answer .src { display: flex; align-items: center; gap: .5rem; margin-top: .8rem; flex-wrap: wrap; }
.answer.empty { display: flex; align-items: center; color: var(--ink-3); background: rgba(255, 255, 255, .55); box-shadow: none; }
.resp { display: flex; align-items: center; gap: 1rem; font-size: 1.15rem; line-height: 1.45; color: var(--ink-3); font-weight: 500; }
.resp svg { color: var(--petrol); flex: none; }
.resp .btn { margin-left: auto; }

/* Fasepuls (rammeløs) */
.c-puls { background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: .2rem 0 0; overflow: visible; }
.c-puls .ch { padding: 0 .4rem; }
.c-puls .ic { background: rgba(255, 255, 255, .85); box-shadow: 0 8px 18px -10px rgba(15, 118, 110, .45); }
.c-puls h2 { color: var(--ink); }
.puls { flex: 1; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; margin-top: .4rem; }
.p-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); text-align: center; }
.p-col { position: relative; display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.p-name { font-size: 1.4rem; font-weight: 700; color: var(--ink-2); display: inline-flex; align-items: center; gap: .5rem; transition: color .4s; }
.p-name svg { color: var(--ok); }
.p-st { font-size: 1.15rem; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.p-col.cur .p-name { color: var(--ink); }
.p-col.cur .p-st { color: var(--petrol); }
.p-col.lit .p-name { color: var(--petrol); }
.p-now { display: inline-flex; align-items: center; height: 2.2rem; padding: 0 .8rem; border-radius: 999px; font-size: 1.05rem; font-weight: 700; color: #fff; background: var(--grad); box-shadow: 0 6px 14px -6px rgba(15, 118, 110, .7); }
.p-box { position: relative; min-height: 0; margin: .2rem 0; }
.p-glow { position: absolute; top: -40%; bottom: -10%; width: 20%; left: 60%; border-radius: 50%; background: radial-gradient(closest-side, rgba(20, 184, 166, .22), rgba(20, 184, 166, 0)); pointer-events: none; }
.p-date { font-size: 1.15rem; font-weight: 500; color: var(--ink-3); white-space: nowrap; }
.p-rate { font-size: 1.15rem; font-weight: 700; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.p-rate em { font-style: normal; font-weight: 500; color: var(--ink-3); }

/* Pris og betaling */
.e-lbl { margin-top: 1.6rem; }
.e-kpi { display: flex; align-items: baseline; gap: .6rem; margin-top: .4rem; }
.e-kpi .big { font-size: 3.8rem; }
.e-kpi .unit { font-size: 1.5rem; }
.e-lines { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: .7rem; margin-top: 1rem; }
.e-ln { display: flex; align-items: baseline; gap: .8rem; font-size: 1.25rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.e-ln b { margin-left: auto; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.e-ln.flash b { animation: flashT 1.4s var(--ease); }
@keyframes flashT { 0%, 60% { color: var(--petrol); } }
.paid { margin-top: .4rem; }
.track { position: relative; height: 1rem; border-radius: 999px; background: #E6EFEE; overflow: hidden; }
.track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--grad); width: 0; transition: width 1s var(--ease); }
.track i.nx { background: repeating-linear-gradient(-45deg, rgba(20, 184, 166, .45) 0 4px, rgba(20, 184, 166, .2) 4px 8px); }
.paid-l { display: flex; justify-content: space-between; margin-top: .7rem; font-size: 1.15rem; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.paid-l b { color: var(--ink); }

/* Ring */
.c-ring { align-items: center; text-align: center; }
.c-ring .ch { align-self: stretch; }
.ring { position: relative; flex: 1; min-height: 0; width: 100%; display: grid; place-items: center; margin-top: .4rem; }
.ring svg { position: absolute; inset: 0; margin: auto; width: auto; height: 100%; max-height: 15rem; max-width: 100%; aspect-ratio: 1; overflow: visible; }
.ring .trk { fill: none; stroke: #E3EEEC; stroke-width: 12; }
.ring .val { fill: none; stroke: url(#ringGrad); stroke-width: 12; stroke-linecap: round; stroke-dasharray: 314.16; stroke-dashoffset: 314.16; transition: stroke-dashoffset 1.1s var(--ease); filter: drop-shadow(0 4px 8px rgba(15, 118, 110, .32)); }
.ring-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-c b { font-size: 3.2rem; font-weight: 400; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.ring-c > span { margin-top: .5rem; font-size: 1.1rem; font-weight: 600; color: var(--ink-3); }
.ring-foot { margin-top: 1rem; font-size: 1.2rem; line-height: 1.45; color: var(--ink-3); font-weight: 500; }
.ring-foot b { color: var(--ink); font-weight: 700; }

/* Seneste fotos */
.fgrid { flex: 1; min-height: 0; margin-top: 1.4rem; display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: 1fr 1fr; gap: 1rem; }
.ph { position: relative; border: 0; padding: 0; border-radius: 1.6rem; overflow: hidden; background: #DCE6E5; min-height: 0; min-width: 0; }
.ph:first-child { grid-row: span 2; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ph:hover img, .ph[data-ph-hover] img { transform: scale(1.05); }
.ph:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(20, 184, 166, .5); }
.ph time { position: absolute; left: .8rem; bottom: .8rem; height: 2.4rem; padding: 0 .9rem; border-radius: 999px; display: inline-flex; align-items: center; font-size: 1.05rem; font-weight: 700; color: #fff; background: rgba(8, 30, 29, .48); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* Kommende */
.agenda { flex: 1; min-height: 0; margin-top: 1.4rem; position: relative; display: flex; flex-direction: column; justify-content: space-between; }
.agenda::before { content: ''; position: absolute; left: calc(7.4rem - 1px); top: 2rem; bottom: 2rem; width: 2px; border-radius: 2px; background: linear-gradient(180deg, #14B8A6 0%, #BFE5DE 30%, #E3EEEC 100%); }
.ag { position: relative; display: grid; grid-template-columns: 6.2rem 2rem minmax(0, 1fr) auto; align-items: center; gap: .6rem; padding: .7rem .8rem .7rem 0; border-radius: 999px; }
.ag time { text-align: right; line-height: 1.1; }
.ag time b { display: block; font-size: 1.45rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.ag time span { display: block; font-size: 1.05rem; font-weight: 600; color: var(--ink-3); }
.ag .dot { justify-self: center; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2.5px #C4E3DD; z-index: 1; }
.ag .at { min-width: 0; padding-left: .4rem; }
.ag .at b { display: block; font-size: 1.3rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag .at span { display: block; margin-top: .3rem; font-size: 1.1rem; color: var(--ink-3); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag.now { background: linear-gradient(90deg, rgba(20, 184, 166, .12), rgba(20, 184, 166, .02)); }
.ag.now .dot { background: var(--turkis); box-shadow: 0 0 0 4px rgba(20, 184, 166, .22), 0 0 14px rgba(20, 184, 166, .7); }

/* ======================= ØKONOMI ======================= */
.v-oek { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "sum list" "pay list"; }
.o-sum { grid-area: sum; } .o-pay { grid-area: pay; } .o-list { grid-area: list; }
.o-sum::after { content: ''; position: absolute; right: -8rem; top: -10rem; width: 30rem; height: 30rem; border-radius: 50%; background: radial-gradient(closest-side, rgba(20, 184, 166, .14), rgba(20, 184, 166, 0)); pointer-events: none; }
.o-kpi { display: flex; align-items: baseline; gap: .8rem; margin-top: .4rem; }
.o-kpi .big { font-size: 5.6rem; }
.o-kpi .unit { font-size: 2rem; }
.o-eq { display: flex; align-items: center; gap: .8rem; margin-top: 1.4rem; flex-wrap: wrap; font-size: 1.2rem; font-weight: 600; color: var(--ink-3); }
.o-eq .pc { display: inline-flex; flex-direction: column; gap: .2rem; padding: .8rem 1.2rem; border-radius: 1.4rem; background: var(--tint); }
.o-eq .pc b { font-size: 1.45rem; color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.o-eq .pc.warn { background: var(--tegl-soft); }
.o-eq .pc.warn b { color: var(--tegl); }
.stack { margin-top: 2rem; }
.stack .bar { display: flex; height: 1.4rem; border-radius: 999px; overflow: hidden; background: #E6EFEE; gap: 3px; }
.stack .bar i { display: block; height: 100%; border-radius: 999px; transition: flex-basis .9s var(--ease); }
.stack .bar .a { background: var(--grad); }
.stack .bar .t { background: #5FD4C4; }
.stack .bar .p { background: repeating-linear-gradient(-45deg, rgba(194, 65, 12, .55) 0 4px, rgba(194, 65, 12, .22) 4px 8px); }
.legend { display: flex; gap: 1.6rem; margin-top: 1rem; flex-wrap: wrap; font-size: 1.15rem; font-weight: 600; color: var(--ink-3); }
.legend span { display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; }
.legend i { width: .9rem; height: .9rem; border-radius: 50%; }
.pay-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-top: .6rem; }
.pay-top .big { font-size: 3.6rem; }
.pay-top .unit { font-size: 1.5rem; }
.pay-nx { text-align: right; }
.pay-nx b { display: block; font-size: 1.8rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pay-nx span { display: block; font-size: 1.15rem; font-weight: 600; color: var(--ink-3); margin-top: .3rem; white-space: nowrap; }
.rates { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .8rem; margin-top: 1.2rem; }
.rate { position: relative; display: flex; flex-direction: column; align-items: stretch; min-height: 0; }
.rate .rw { position: relative; flex: 1; min-height: 0; display: flex; align-items: flex-end; justify-content: center; }
.rate .rb { position: relative; width: 62%; height: var(--h); border-radius: 999px; background: linear-gradient(180deg, #E1EBEA, #D6E3E2); transform-origin: bottom; transition: transform .7s var(--ease); }
.rate.paid .rb { background: var(--grad); box-shadow: 0 12px 22px -12px rgba(15, 118, 110, .6), inset 0 1px 1px rgba(255, 255, 255, .3); }
.rate.next .rb { background: repeating-linear-gradient(-45deg, rgba(20, 184, 166, .55) 0 5px, rgba(20, 184, 166, .25) 5px 10px); box-shadow: 0 0 0 2px rgba(20, 184, 166, .5); }
.rate .rv2 { position: absolute; left: 50%; bottom: calc(var(--h) + .6rem); transform: translateX(-50%); font-size: 1.05rem; font-weight: 700; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rate .rl { margin-top: .7rem; text-align: center; font-size: 1.1rem; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.rate .rd { text-align: center; font-size: 1.05rem; font-weight: 500; color: var(--ink-3); white-space: nowrap; }
.rate.next .rl { color: var(--petrol); }
.enter .rate .rb { animation: grow .8s var(--ease) backwards; animation-delay: calc(var(--i) * 70ms + 300ms); }
@keyframes grow { from { transform: scaleY(0); } }

.as-list { flex: 1; min-height: 0; margin-top: 1.2rem; display: flex; flex-direction: column; gap: .5rem; overflow: hidden; }
.asr { position: relative; display: grid; grid-template-columns: 5.6rem minmax(0, 1fr) auto 12.4rem; align-items: center; gap: 1.2rem; padding: 1.35rem 1rem 1.35rem .8rem; flex: none; border: 0; border-radius: 1.8rem; background: transparent; text-align: left; transition: background .35s var(--ease), box-shadow .35s var(--ease); min-height: 0; }
.asr:hover, .asr[data-ph-hover] { background: rgba(234, 244, 242, .8); }
.asr:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(20, 184, 166, .4); }
.asr .tt { min-width: 0; }
.asr .tt b { display: block; font-size: 1.35rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asr .tt span { display: block; margin-top: .25rem; font-size: 1.15rem; font-weight: 500; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asr .am { font-size: 1.45rem; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.asr .am.x { color: var(--ink-4); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.asr .st { justify-self: end; }
.asr.pend { background: linear-gradient(90deg, rgba(255, 240, 230, .95), rgba(255, 246, 240, .6)); box-shadow: 0 10px 26px -18px rgba(194, 65, 12, .5); }
.asr.pend .idc { background: #FFE2CF; color: var(--tegl); }
.asr.big-r { grid-template-rows: auto auto; padding: 1.6rem 1.4rem 1.6rem 1rem; row-gap: 1rem; margin-bottom: .6rem; }
.asr .why-r { grid-column: 2 / -1; font-size: 1.25rem; line-height: 1.5; color: var(--ink-2); font-weight: 500; }
.asr .go { grid-column: 2 / -1; justify-self: start; }
.as-tot { margin-top: auto; padding-top: 1.4rem; flex: none; }
.as-tot .pc { flex: 1; }
.asr.flash { animation: rowflash 1.6s var(--ease); }
@keyframes rowflash { 0%, 50% { background: rgba(22, 163, 74, .12); } }
.as-foot { display: flex; gap: 1.6rem; align-items: center; margin-top: 1.2rem; padding-top: 1.2rem; font-size: 1.2rem; font-weight: 600; color: var(--ink-3); flex-wrap: wrap; flex: none; }
.as-foot b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* ======================= FOTOLOG ======================= */
.v-foto { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: minmax(0, 1.08fr) minmax(0, 1fr); }
.fg { padding: 2.2rem 2.2rem 2rem; }
.fg-1 { grid-column: span 12; } .fg-2 { grid-column: span 4; } .fg-3 { grid-column: span 4; } .fg-4 { grid-column: span 2; } .fg-5 { grid-column: span 2; }
.fg .ch h2 { color: var(--ink); font-weight: 700; }
.fg .ch .ic.okc svg { width: 1.6rem; height: 1.6rem; }
.pgrid { flex: 1; min-height: 0; margin-top: 1.2rem; display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 1.4rem; }
.pt { display: flex; flex-direction: column; min-height: 0; min-width: 0; border: 0; padding: 0; background: none; text-align: left; border-radius: 1.8rem; }
.pt .im { position: relative; flex: 1; min-height: 4rem; border-radius: 1.6rem; overflow: hidden; background: #DCE6E5; box-shadow: var(--sh-in); }
.pt .im img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pt:hover .im img, .pt[data-ph-hover] .im img { transform: scale(1.05); }
.pt:focus-visible { outline: none; }
.pt:focus-visible .im { box-shadow: 0 0 0 3px rgba(20, 184, 166, .55); }
.pt .cap { flex: none; padding: 1rem .4rem 0; }
.pt .cap time { display: block; font-size: 1.2rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.pt .cap span { overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: .3rem; font-size: 1.2rem; line-height: 1.45; color: var(--ink-3); font-weight: 500; }
.fempty { flex: 1; min-height: 0; margin-top: 1.2rem; display: flex; flex-direction: column; gap: 1rem; }
.fempty .im { position: relative; flex: 1; min-height: 4rem; border-radius: 1.6rem; overflow: hidden; }
.fempty .im img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.6) brightness(1.05); opacity: .55; }
.fempty .im em { position: absolute; left: .8rem; top: .8rem; font-style: normal; height: 2.4rem; padding: 0 .9rem; border-radius: 999px; display: inline-flex; align-items: center; font-size: 1.05rem; font-weight: 700; color: var(--ink-2); background: rgba(255, 255, 255, .85); }
.fempty p { font-size: 1.2rem; line-height: 1.45; color: var(--ink-3); font-weight: 500; }
.fempty p b { display: block; color: var(--ink); font-size: 1.3rem; }

/* Lysboks */
.lightbox { position: absolute; inset: 0; z-index: 60; display: grid; grid-template-columns: minmax(0, 1fr) 36rem; grid-template-rows: minmax(0, 1fr) auto; gap: 2rem; padding: 3rem; background: rgba(6, 30, 29, .84); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); animation: fade .35s var(--ease); }
.lightbox.still { animation: none; }
@keyframes fade { from { opacity: 0; } }
.lb-stage { position: relative; min-height: 0; display: grid; place-items: center; }
.lb-img { position: relative; width: 100%; height: 100%; border-radius: 2.4rem; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); animation: zin .45s var(--ease); }
.lb-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@keyframes zin { from { opacity: 0; transform: scale(.97); } }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 5.2rem; height: 5.2rem; border: 0; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .18); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); z-index: 2; transition: background .3s; }
.lb-nav:hover, .lb-nav[data-ph-hover] { background: rgba(255, 255, 255, .32); }
.lb-nav[disabled] { opacity: .3; cursor: default; }
.lb-nav.p { left: 1.6rem; } .lb-nav.n { right: 1.6rem; }
.lb-side { min-height: 0; display: flex; flex-direction: column; gap: 1.4rem; padding: 2.6rem; border-radius: 2.6rem; background: rgba(255, 255, 255, .94); box-shadow: var(--sh-pop); }
.lb-side .x { margin-left: auto; }
.lb-side h3 { font-size: 2rem; font-weight: 700; line-height: 1.3; letter-spacing: -.015em; }
.kv { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: .8rem 1rem; font-size: 1.3rem; }
.kv dt { color: var(--ink-3); font-weight: 600; }
.kv dd { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.lb-keys { margin-top: auto; display: flex; gap: 1.2rem; font-size: 1.15rem; font-weight: 600; color: var(--ink-3); flex-wrap: wrap; }
.lb-strip { grid-column: 1 / -1; display: flex; gap: .8rem; justify-content: center; }
.lb-strip button { width: 7.6rem; height: 5.2rem; padding: 0; border: 0; border-radius: 1.1rem; overflow: hidden; opacity: .5; transition: opacity .3s, box-shadow .3s, transform .3s var(--ease); background: #000; }
.lb-strip button img { width: 100%; height: 100%; object-fit: cover; }
.lb-strip button:hover, .lb-strip button[data-ph-hover] { opacity: .85; }
.lb-strip button.on { opacity: 1; box-shadow: 0 0 0 3px #5EEAD4; transform: translateY(-2px); }

/* ======================= MANGLER ======================= */
.v-mg { grid-template-columns: minmax(0, 7.2fr) minmax(0, 4.8fr); }
.plan-card { padding: 2.2rem 2.4rem 1.6rem; }
.plan-h { display: flex; align-items: center; gap: 1rem; flex: none; }
.plan-h h2 { font-size: 1.45rem; font-weight: 700; color: var(--ink); white-space: nowrap; }
.plan-h .legend { margin: 0 0 0 auto; }
.planwrap { position: relative; flex: 1; min-height: 0; margin-top: .8rem; display: grid; place-items: center; }
.planwrap svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hintbar { position: absolute; left: 50%; top: .4rem; transform: translateX(-50%); z-index: 3; display: inline-flex; align-items: center; gap: .8rem; height: 4rem; padding: 0 .8rem 0 1.6rem; border-radius: 999px; font-size: 1.3rem; font-weight: 700; color: #fff; background: var(--grad); box-shadow: 0 14px 30px -12px rgba(15, 118, 110, .7); white-space: nowrap; animation: hin .45s var(--ease); }
.hintbar kbd { background: rgba(255, 255, 255, .2); color: #fff; }
@keyframes hin { from { opacity: 0; transform: translate(-50%, -8px); } }
#plan-svg .room { fill: #F7FBFA; transition: fill .3s; }
#plan-svg .room.alt { fill: #F1F8F6; }
#plan-svg.adding { cursor: crosshair; }
#plan-svg.adding .room:hover, #plan-svg.adding .room[data-ph-hover] { fill: rgba(20, 184, 166, .14); }
#plan-svg .wall { fill: none; stroke: #23403F; stroke-width: 7; stroke-linejoin: round; }
#plan-svg .iw { stroke: #4D6668; stroke-width: 3.5; stroke-linecap: round; fill: none; }
#plan-svg .soft { stroke: #9DB2B2; stroke-width: 1.4; fill: none; stroke-linecap: round; }
#plan-svg .furn { fill: #EDF4F3; stroke: #C5D4D3; stroke-width: 1.2; }
#plan-svg .win { stroke: #6CC9BC; stroke-width: 2; fill: none; }
#plan-svg .gap { fill: #fff; }
#plan-svg .rn { font: 700 14px var(--sans); fill: var(--ink-2); }
#plan-svg .ra { font: 600 12px var(--sans); fill: var(--ink-3); }
#plan-svg .dim { font: 600 12px var(--sans); fill: var(--ink-3); }
#plan-svg .house { fill: #E8EFEE; }
#plan-svg .houselbl { font: 600 13px var(--sans); fill: var(--ink-3); }
.pin { cursor: pointer; }
.pin .shadow { fill: rgba(14, 36, 39, .22); }
.pin .tear { stroke: #fff; stroke-width: 2.5; filter: drop-shadow(0 6px 8px rgba(14, 36, 39, .28)); transition: transform .3s var(--ease); transform-box: fill-box; transform-origin: 50% 100%; }
.pin text { font: 800 13px var(--sans); fill: #fff; text-anchor: middle; pointer-events: none; }
.pin.s-aaben .tear { fill: var(--bad); }
.pin.s-udbedres .tear { fill: var(--petrol); }
.pin.s-udbedret .tear { fill: var(--ok); }
.pin.s-ny .tear { fill: var(--tegl); }
.pin:hover .tear, .pin[data-ph-hover] .tear, .pin.on .tear { transform: scale(1.14); }
.pin.on .halo { opacity: 1; }
.pin .halo { fill: rgba(20, 184, 166, .2); opacity: 0; transition: opacity .3s; }
.pin.fresh .drop { animation: drop .75s cubic-bezier(.3, 1.45, .5, 1) backwards; }
.pin.fresh .ring { fill: none; stroke: var(--tegl-2); stroke-width: 2.5; animation: ringout 1.1s .45s var(--ease) both; transform-box: fill-box; transform-origin: center; }
@keyframes drop { from { transform: translateY(-90px); opacity: 0; } 30% { opacity: 1; } }
@keyframes ringout { from { transform: scale(.4); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
.mg-side { display: grid; grid-template-rows: minmax(0, 1fr); min-height: 0; }
.fchips { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.4rem; flex: none; }
.fchip { border: 0; height: 3.4rem; padding: 0 1.3rem; border-radius: 999px; background: var(--tint); font-size: 1.2rem; font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; gap: .6rem; white-space: nowrap; transition: background .3s, color .3s, box-shadow .3s; }
.fchip b { font-weight: 800; font-variant-numeric: tabular-nums; }
.fchip:hover, .fchip[data-ph-hover] { background: var(--tint-2); color: var(--ink); }
.fchip[aria-pressed="true"] { background: #fff; color: var(--petrol); box-shadow: 0 6px 16px -8px rgba(15, 118, 110, .5); }
.fchip:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(20, 184, 166, .4); }
.fchip i { width: .8rem; height: .8rem; border-radius: 50%; }
.mlist { flex: 1; min-height: 0; overflow: auto; margin: 1.2rem -.6rem 0; padding: 0 .6rem .4rem; display: flex; flex-direction: column; gap: .4rem; scrollbar-width: none; }
.mlist::-webkit-scrollbar { display: none; }
.mrow { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) auto; align-items: center; gap: 1.2rem; padding: 1.2rem 1rem 1.2rem .8rem; border: 0; border-radius: 1.8rem; background: transparent; text-align: left; transition: background .35s var(--ease), box-shadow .35s; flex: none; }
.mrow:hover, .mrow[data-ph-hover] { background: rgba(234, 244, 242, .85); }
.mrow:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(20, 184, 166, .4); }
.mrow.on { background: #fff; box-shadow: var(--sh-in); }
.mrow.flash { animation: rowflash 1.8s var(--ease); }
.mrow .n { width: 3.4rem; height: 3.4rem; border-radius: 50% 50% 50% .6rem; transform: rotate(45deg); display: grid; place-items: center; color: #fff; font-size: 1.25rem; font-weight: 800; }
.mrow .n span { transform: rotate(-45deg); }
.n.s-aaben { background: var(--bad); } .n.s-udbedres { background: var(--petrol); } .n.s-udbedret { background: var(--ok); }
.mrow .tt { min-width: 0; }
.mrow .tt b { display: block; font-size: 1.3rem; font-weight: 700; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mrow .tt span { display: block; margin-top: .25rem; font-size: 1.15rem; color: var(--ink-3); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mdet { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 1.2rem; align-items: center; padding: .4rem 1rem 1rem 5.4rem; flex: none; }
.mdet .mi { height: 10rem; border: 0; padding: 0; border-radius: 1.4rem; overflow: hidden; background: #DCE6E5; }
.mdet .mi img { width: 100%; height: 100%; object-fit: cover; }
.mdet p { font-size: 1.15rem; line-height: 1.5; color: var(--ink-3); font-weight: 500; }
.mdet.nofoto { grid-template-columns: 1fr; }
.empty-s { margin: auto; text-align: center; padding: 2rem; font-size: 1.3rem; color: var(--ink-3); font-weight: 500; }
.empty-s b { display: block; color: var(--ink); font-size: 1.45rem; margin-bottom: .4rem; }

/* Formular */
.form { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 1.5rem; margin-top: 1.4rem; }
.field { display: flex; flex-direction: column; gap: .7rem; }
.field > label, .field > .flb { font-size: 1.2rem; font-weight: 700; color: var(--ink-2); }
.in { width: 100%; border: 0; border-radius: 1.6rem; padding: 1.2rem 1.4rem; background: #fff; box-shadow: var(--sh-in), inset 0 0 0 1.5px rgba(15, 118, 110, .08); font-size: 1.35rem; font-weight: 500; line-height: 1.45; color: var(--ink); resize: none; outline: none; transition: box-shadow .3s; }
.in:focus { box-shadow: 0 0 0 4px rgba(20, 184, 166, .18), var(--sh-in); }
.in.err { box-shadow: 0 0 0 2px rgba(220, 38, 38, .55), 0 0 0 6px rgba(220, 38, 38, .1); }
.in::placeholder { color: var(--ink-4); }
.errmsg[hidden] { display: none; }
.errmsg { display: flex; align-items: center; gap: .5rem; font-size: 1.15rem; font-weight: 600; color: var(--bad-t); }
.opts { display: flex; flex-wrap: wrap; gap: .6rem; }
.opt { border: 0; height: 3.4rem; padding: 0 1.3rem; border-radius: 999px; background: var(--tint); font-size: 1.2rem; font-weight: 600; color: var(--ink-2); transition: background .3s, color .3s, box-shadow .3s; white-space: nowrap; }
.opt:hover, .opt[data-ph-hover] { background: var(--tint-2); color: var(--ink); }
.opt[aria-pressed="true"] { background: var(--grad); color: #fff; box-shadow: 0 8px 18px -10px rgba(15, 118, 110, .7); }
.opt:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(20, 184, 166, .4); }
.attach { display: flex; align-items: center; gap: 1.2rem; min-height: 6.4rem; }
.attach .th { width: 8.6rem; height: 6.4rem; border-radius: 1.2rem; overflow: hidden; flex: none; animation: zin .45s var(--ease); }
.attach .th img { width: 100%; height: 100%; object-fit: cover; }
.attach .ad b { display: block; font-size: 1.25rem; font-weight: 700; }
.attach .ad span { display: block; font-size: 1.15rem; color: var(--ink-3); font-weight: 500; margin-top: .2rem; }
.form .acts { margin-top: auto; display: flex; gap: .8rem; justify-content: flex-end; }

/* ======================= TIDSPLAN ======================= */
.v-tid { grid-template-columns: minmax(0, 8.6fr) minmax(0, 3.4fr); }
.t-side { display: grid; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); min-height: 0; }
.gantt { flex: 1; min-height: 0; margin-top: 1.2rem; display: grid; grid-template-columns: 21rem minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
.g-hl { font-size: 1.15rem; font-weight: 700; color: var(--ink-3); align-self: end; padding: 0 0 .8rem 1rem; }
.g-wk { position: relative; display: grid; padding-bottom: .8rem; }
.g-wk div { font-size: 1.05rem; font-weight: 600; color: var(--ink-4); text-align: center; align-self: end; font-variant-numeric: tabular-nums; }
.g-wk div em { display: block; font-style: normal; font-size: 1.15rem; font-weight: 700; color: var(--ink-2); margin-bottom: .3rem; text-align: left; padding-left: .3rem; }
.g-labs, .g-body { display: grid; grid-auto-rows: minmax(0, 1fr); min-height: 0; }
.g-body { position: relative; }
.g-band { position: absolute; top: 0; bottom: 0; border-radius: 1.4rem; background: rgba(234, 244, 242, .7); }
.g-lab { display: flex; flex-direction: column; justify-content: center; padding: 0 1rem; min-height: 0; border-radius: 1.4rem 0 0 1.4rem; transition: background .3s; cursor: pointer; }
.g-lab b { font-size: 1.3rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-lab small { font-size: 1.1rem; font-weight: 500; color: var(--ink-3); white-space: nowrap; }
.g-lab.sub { padding-left: 2.4rem; }
.g-lab.sub b { font-size: 1.2rem; font-weight: 600; color: var(--ink-2); }
.g-lab.cur b { color: var(--petrol); }
.g-row { position: relative; min-height: 0; cursor: pointer; border-radius: 0 1.4rem 1.4rem 0; }
.g-row:hover, .g-row[data-ph-hover], .g-lab.hov { background: rgba(255, 255, 255, .55); }
.g-row.sel, .g-lab.sel { background: rgba(20, 184, 166, .1); }
.g-bar { position: absolute; top: 50%; transform: translateY(-50%); height: 2.2rem; border-radius: 999px; background: #E1EAE9; overflow: hidden; }
.g-bar.thin { height: 1.4rem; }
.g-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; }
.g-bar.done { background: #BFE3DC; }
.g-bar.done i { background: linear-gradient(90deg, #0F766E, #2BA696); opacity: .55; }
.g-bar.cur { background: rgba(20, 184, 166, .22); box-shadow: 0 8px 18px -10px rgba(15, 118, 110, .7); }
.g-bar.cur i { background: var(--grad); }
.g-bar.todo i { display: none; }
.enter .g-bar { animation: gbar .8s var(--ease) backwards; animation-delay: calc(var(--i) * 40ms + 200ms); transform-origin: left center; }
@keyframes gbar { from { clip-path: inset(0 100% 0 0 round 999px); } to { clip-path: inset(0 0 0 0 round 999px); } }
.g-today { position: absolute; top: -3.2rem; bottom: 0; width: 2px; margin-left: -1px; border-radius: 2px; background: linear-gradient(180deg, var(--turkis), rgba(20, 184, 166, .15)); box-shadow: 0 0 12px rgba(20, 184, 166, .6); pointer-events: none; z-index: 2; }
.g-today span { position: absolute; top: 0; left: 100%; transform: translate(.7rem, -50%); height: 2.4rem; padding: 0 .9rem; border-radius: 999px; display: inline-flex; align-items: center; font-size: 1.05rem; font-weight: 700; color: #fff; background: var(--grad); white-space: nowrap; box-shadow: 0 6px 14px -6px rgba(15, 118, 110, .7); }
.g-ms { position: absolute; top: 50%; width: 1.4rem; height: 1.4rem; margin: -.7rem 0 0 -.7rem; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--petrol), 0 4px 10px -2px rgba(15, 118, 110, .5); z-index: 1; }
.g-ms.end { box-shadow: 0 0 0 3px var(--turkis), 0 0 14px rgba(20, 184, 166, .6); }
.g-msl { position: absolute; top: 50%; transform: translateY(-50%); font-size: 1.1rem; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.td-k { margin-top: 1.2rem; font-size: 2.2rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.td-s { margin-top: .4rem; font-size: 1.25rem; font-weight: 600; color: var(--ink-3); }
.td-bar { margin-top: 1.6rem; }
.td-bar .track { height: 1.2rem; }
.td-kv { margin-top: 1.4rem; }
.ms-list { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: space-evenly; gap: .6rem; margin-top: .6rem; }
.v-tid .t-side { grid-template-rows: minmax(0, 1.5fr) minmax(0, 1fr); }
.td-l { margin-top: 1.8rem; flex: none; }
.td-ops { margin-top: .8rem; display: flex; flex-direction: column; gap: .3rem; min-height: 0; overflow: hidden; }
.td-ops li { display: grid; grid-template-columns: minmax(0, 1fr) 7rem 4.4rem; align-items: center; gap: 1rem; padding: .6rem .8rem; border-radius: 1.2rem; font-size: 1.2rem; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: background .3s; }
.td-ops li span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.td-ops li b { text-align: right; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.td-ops li .track { height: .7rem; }
.td-ops li:hover, .td-ops li[data-ph-hover] { background: var(--tint); }
.td-ops li.on { background: rgba(20, 184, 166, .12); color: var(--ink); }
.ms { display: grid; grid-template-columns: 5.4rem minmax(0, 1fr) auto; align-items: center; gap: 1rem; }
.ms .dd { text-align: center; padding: .6rem 0; border-radius: 1.4rem; background: var(--tint); line-height: 1.05; }
.ms .dd b { display: block; font-size: 1.9rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.ms .dd span { display: block; font-size: 1.05rem; font-weight: 700; color: var(--ink-3); }
.ms .mt b { display: block; font-size: 1.3rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms .mt span { display: block; font-size: 1.1rem; font-weight: 500; color: var(--ink-3); margin-top: .2rem; white-space: nowrap; }
.ms .btn.sm { padding: 0 1rem; height: 3.2rem; }

/* ======================= DOKUMENTER ======================= */
.v-dok { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.dlist { flex: 1; min-height: 0; margin-top: .8rem; display: flex; flex-direction: column; overflow: auto; scrollbar-width: none; }
.dlist::-webkit-scrollbar { display: none; }
.dg { font-size: 1.15rem; font-weight: 700; color: var(--ink-3); padding: 1.2rem .6rem .5rem; flex: none; }
.drow { display: grid; grid-template-columns: 4rem minmax(0, 1fr) auto; align-items: center; gap: 1.2rem; padding: .7rem 1rem .7rem .6rem; border: 0; border-radius: 1.6rem; background: transparent; text-align: left; transition: background .3s, box-shadow .3s; flex: none; }
.drow:hover, .drow[data-ph-hover] { background: rgba(234, 244, 242, .85); }
.drow:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(20, 184, 166, .4); }
.drow.on { background: #fff; box-shadow: var(--sh-in); }
.drow.new { animation: rowflash 1.8s var(--ease); }
.dic { width: 4rem; height: 4rem; border-radius: 1.2rem; display: grid; place-items: center; color: var(--petrol); background: linear-gradient(140deg, #DFF2EE, #EEF8F6); }
.dic.as { color: var(--ok-t); background: var(--ok-soft); }
.dic.asx { color: var(--bad-t); background: var(--bad-soft); }
.drow .tt b { display: block; font-size: 1.3rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drow .tt span { display: block; margin-top: .2rem; font-size: 1.1rem; color: var(--ink-3); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drow .dm { font-size: 1.1rem; font-weight: 600; color: var(--ink-3); text-align: right; white-space: nowrap; }
.prev-card { background: linear-gradient(170deg, rgba(255, 255, 255, .9), rgba(240, 248, 246, .9)); }
.prev-h { display: flex; align-items: center; gap: 1rem; flex: none; }
.prev-h h2 { font-size: 1.9rem; font-weight: 700; letter-spacing: -.015em; }
.prev-h .acts { margin-left: auto; display: flex; gap: .6rem; }
.prev-m { margin-top: .4rem; font-size: 1.2rem; font-weight: 600; color: var(--ink-3); flex: none; }
.paper { position: relative; flex: 1; min-height: 0; margin-top: 1.6rem; border-radius: 1.8rem; background: #fff; box-shadow: var(--sh-in), 0 30px 60px -40px rgba(15, 118, 110, .35); padding: 3.2rem 3.6rem; overflow: hidden; animation: zin .45s var(--ease); }
.paper .pk { font-size: 1.1rem; font-weight: 700; letter-spacing: .08em; color: var(--petrol); text-transform: uppercase; }
.paper h3 { margin-top: .6rem; font-size: 2.4rem; font-weight: 700; letter-spacing: -.02em; }
.paper .ps { margin-top: .4rem; font-size: 1.3rem; color: var(--ink-3); font-weight: 500; }
.paper .pg { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 2.4rem; margin-top: 2.4rem; }
.paper .pg div span { display: block; font-size: 1.1rem; font-weight: 700; color: var(--ink-3); }
.paper .pg div b { display: block; margin-top: .3rem; font-size: 1.45rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.paper .pt2 { margin-top: 2.2rem; display: flex; flex-direction: column; gap: .5rem; }
.paper .pr { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto auto; gap: 1.2rem; align-items: center; padding: .7rem 1rem; border-radius: 1.2rem; font-size: 1.25rem; font-weight: 600; color: var(--ink-2); }
.paper .pr:nth-child(odd) { background: #F4F9F8; }
.paper .pr b { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; }
.paper .sigs { position: absolute; left: 3.6rem; right: 3.6rem; bottom: 2.6rem; display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; }
.paper .sigs div { padding-top: 1rem; font-size: 1.15rem; font-weight: 600; color: var(--ink-3); box-shadow: inset 0 2px 0 #E3EEEC; }
.paper .sigs svg { height: 4.6rem; width: 100%; margin-top: -5.4rem; display: block; }
.paper .sigs path { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.paper .mini-plan { margin-top: 1.6rem; height: calc(100% - 9rem); }
.paper .mini-plan svg { width: 100%; height: 100%; }
.paper .stampd { position: absolute; right: 3.6rem; top: 3rem; transform: rotate(-8deg); }

/* ======================= SAGER (entreprenør) ======================= */
.v-sag { grid-template-columns: minmax(0, 8.4fr) minmax(0, 3.6fr); }
.s-side { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: var(--gap); min-height: 0; }
.slist { flex: 1; min-height: 0; margin: 1rem -.6rem 0; padding: 0 .6rem; display: grid; grid-auto-rows: minmax(0, 1fr); gap: .3rem; }
.srow { display: grid; grid-template-columns: 6.4rem minmax(0, 2.4fr) 9rem minmax(0, 1.6fr) 7.2rem 7.2rem 13.6rem; align-items: center; gap: 1.2rem; padding: 0 1rem 0 .8rem; border: 0; border-radius: 1.6rem; background: transparent; text-align: left; transition: background .3s, box-shadow .3s; min-height: 0; }
.srow:hover, .srow[data-ph-hover] { background: rgba(234, 244, 242, .85); }
.srow:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(20, 184, 166, .4); }
.srow.on { background: #fff; box-shadow: var(--sh-in); }
.srow.hd { cursor: default; background: none !important; font-size: 1.1rem; font-weight: 700; color: var(--ink-3); }
.srow .tt { min-width: 0; }
.srow .tt b { display: block; font-size: 1.3rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srow .tt span { display: block; font-size: 1.1rem; font-weight: 500; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: .15rem; }
.srow .c { font-size: 1.25rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.srow .c.r { text-align: right; }
.srow .c.z { color: var(--ink-4); }
.mini { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.mini .dots { display: flex; gap: .3rem; flex: none; }
.mini .dots i { width: 1rem; height: 1rem; border-radius: 50%; background: #DDE7E6; }
.mini .dots i.d { background: #8FD3C8; }
.mini .dots i.c { background: var(--turkis); box-shadow: 0 0 0 3px rgba(20, 184, 166, .2); }
.mini .pb { flex: 1; min-width: 3rem; }
.mini .pb .track { height: .7rem; }
.mini .pb small { display: block; font-size: 1.05rem; font-weight: 700; color: var(--ink-2); margin-bottom: .3rem; white-space: nowrap; }
.hl { display: inline-flex; align-items: center; gap: .5rem; height: 2.8rem; padding: 0 1rem; border-radius: 999px; font-size: 1.15rem; font-weight: 700; white-space: nowrap; justify-self: end; }
.hl i { width: .7rem; height: .7rem; border-radius: 50%; }
.hl.ok { color: var(--ok-t); background: var(--ok-soft); } .hl.ok i { background: var(--ok); }
.hl.obs { color: var(--tegl); background: var(--tegl-soft); } .hl.obs i { background: var(--tegl-2); }
.hl.krit { color: var(--bad-t); background: var(--bad-soft); } .hl.krit i { background: var(--bad); box-shadow: 0 0 0 3px rgba(220, 38, 38, .18); }
.health .hk { display: flex; align-items: baseline; gap: .6rem; margin-top: 1.2rem; }
.health .hk .big { font-size: 4.4rem; }
.health .hk .unit { font-size: 1.5rem; }
.hbar { display: flex; height: 1.2rem; gap: 3px; margin-top: 1.4rem; border-radius: 999px; overflow: hidden; }
.hbar i { display: block; height: 100%; border-radius: 999px; }
.hleg { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; margin-top: 1rem; font-size: 1.15rem; font-weight: 600; color: var(--ink-3); }
.hleg b { display: block; font-size: 1.8rem; color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.sd h3 { margin-top: 1rem; font-size: 1.9rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; }
.sd .muted { margin-top: .3rem; }
.sd .kv { margin-top: 1.6rem; grid-template-columns: 10rem minmax(0, 1fr); }
.sd .why { margin-top: 1.4rem; padding: 1.1rem 1.3rem; border-radius: 1.4rem; font-size: 1.25rem; font-weight: 600; line-height: 1.45; }
.sd .why.ok { background: var(--ok-soft); color: var(--ok-t); }
.sd .why.obs { background: var(--tegl-soft); color: var(--tegl); }
.sd .why.krit { background: var(--bad-soft); color: var(--bad-t); }
.sd .acts { margin-top: auto; padding-top: 1.4rem; display: flex; flex-direction: column; gap: .6rem; }

/* ======================= Lag: notifikation, modal, palette, skuffe, toast ======================= */
.notif {
  position: absolute; z-index: 40; top: 1.8rem; right: 2.4rem; width: 38rem;
  padding: 1.8rem 1.8rem 2rem; border-radius: 2.6rem;
  background: rgba(255, 255, 255, .86); backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: 0 28px 56px -20px rgba(15, 90, 85, .5), 0 0 0 6px rgba(255, 255, 255, .35);
  animation: nin .6s var(--ease) backwards;
}
.notif.now { animation: none; }
.notif.out { animation: nout .35s var(--ease) forwards; }
@keyframes nin { from { transform: translateX(1.6rem); opacity: 0; } }
@keyframes nout { to { transform: translateX(1.6rem); opacity: 0; } }
.notif .nt { display: flex; gap: 1.2rem; align-items: flex-start; }
.notif .li { width: 4rem; height: 4rem; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, #D9531A, #C2410C); box-shadow: 0 10px 20px -8px rgba(194, 65, 12, .7); flex: none; }
.notif .lt { min-width: 0; flex: 1; }
.notif .lt small { display: flex; align-items: center; gap: .6rem; font-size: 1.1rem; font-weight: 700; color: var(--tegl); }
.notif .lt small em { font-style: normal; color: var(--ink-3); font-weight: 500; margin-left: auto; }
.notif .lt b { display: block; margin-top: .5rem; font-size: 1.5rem; font-weight: 800; letter-spacing: -.01em; }
.notif .lt span { display: block; margin-top: .3rem; font-size: 1.2rem; color: var(--ink-2); font-weight: 500; line-height: 1.45; }
.notif .na { display: flex; align-items: center; gap: .6rem; margin-top: 1.4rem; }
.notif .na .amt { margin-right: auto; white-space: nowrap; font-size: 2rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.notif .na .amt small { font-size: 1.1rem; color: var(--ink-3); font-weight: 600; letter-spacing: 0; margin-left: .3rem; }

.overlay { position: absolute; inset: 0; z-index: 50; display: grid; place-items: center; padding: 2.4rem; background: rgba(14, 40, 39, .3); backdrop-filter: blur(8px) saturate(1.1); -webkit-backdrop-filter: blur(8px) saturate(1.1); animation: fade .3s var(--ease); }
.overlay.out { animation: fadeout .25s var(--ease) forwards; }
@keyframes fadeout { to { opacity: 0; } }
.modal { position: relative; width: 66rem; max-height: 100%; display: flex; flex-direction: column; border-radius: 3rem; background: rgba(255, 255, 255, .97); box-shadow: 0 40px 90px -30px rgba(10, 60, 56, .55), 0 0 0 8px rgba(255, 255, 255, .35); overflow: hidden; outline: none; animation: min .5s var(--ease); }
@keyframes min { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.m-h { display: flex; align-items: flex-start; gap: 1.2rem; padding: 2.6rem 2.6rem 0; flex: none; }
.m-h .tt { min-width: 0; flex: 1; }
.m-h .tt .row1 { display: flex; align-items: center; gap: .8rem; }
.m-h h2 { margin-top: .8rem; font-size: 2.2rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.m-h .sub { display: block; margin-top: .4rem; font-size: 1.25rem; color: var(--ink-3); font-weight: 500; }
.m-b { padding: 1.8rem 2.6rem 0; display: flex; flex-direction: column; gap: 1.4rem; min-height: 0; overflow: auto; scrollbar-width: none; }
.m-b::-webkit-scrollbar { display: none; }
.m-b > p { font-size: 1.35rem; line-height: 1.55; color: var(--ink-2); font-weight: 500; }
.why-b { padding: 1.2rem 1.4rem; border-radius: 1.6rem 1.6rem 1.6rem .6rem; background: linear-gradient(120deg, #EEF8F6, #F3FAF8); font-size: 1.25rem; line-height: 1.55; color: var(--ink-2); font-weight: 500; }
.why-b b { color: var(--ink); }
.sumtbl { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: .8rem; }
.sumtbl > div { padding: 1.2rem 1.4rem; border-radius: 1.6rem; background: var(--tint); }
.sumtbl > div span { display: block; font-size: 1.15rem; font-weight: 600; color: var(--ink-3); }
.sumtbl > div b { display: block; margin-top: .4rem; font-size: 1.8rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sumtbl > div.tot { background: var(--grad); color: #fff; box-shadow: 0 14px 28px -14px rgba(15, 118, 110, .75); }
.sumtbl > div.tot span { color: rgba(255, 255, 255, .85); }
.cons { display: flex; gap: 1.8rem; flex-wrap: wrap; font-size: 1.2rem; font-weight: 600; color: var(--ink-3); }
.cons span { display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; }
.cons svg { color: var(--ok); }
.cons b { color: var(--ink); font-variant-numeric: tabular-nums; }
.sig .sl { display: flex; align-items: center; justify-content: space-between; font-size: 1.2rem; font-weight: 700; color: var(--ink-2); }
.sig-box { position: relative; margin-top: .8rem; height: 13rem; border-radius: 1.8rem; background: linear-gradient(180deg, #FBFDFD, #F2F8F7); box-shadow: inset 0 0 0 1.5px rgba(15, 118, 110, .14); touch-action: none; transition: box-shadow .3s; }
.sig-box.has { box-shadow: inset 0 0 0 1.5px rgba(20, 184, 166, .45), 0 0 0 4px rgba(20, 184, 166, .1); }
.sig-box canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; z-index: 2; }
.sig-box .base { position: absolute; left: 4.4rem; right: 2.4rem; bottom: 3.2rem; height: 2px; border-radius: 2px; background: repeating-linear-gradient(90deg, #B7CBCA 0 6px, transparent 6px 12px); }
.sig-box .x { position: absolute; left: 2rem; bottom: 2.6rem; font-size: 1.8rem; font-weight: 600; color: #9DB2B2; }
.sig-box .sph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.35rem; font-weight: 600; color: var(--ink-4); pointer-events: none; transition: opacity .3s; }
.sig-box.has .sph { opacity: 0; }
.sig .foot { margin-top: .7rem; display: flex; justify-content: space-between; font-size: 1.1rem; font-weight: 500; color: var(--ink-3); }
.sig svg.done { width: 100%; height: 10rem; display: block; margin-top: .6rem; border-radius: 1.6rem; background: #F6FAF9; }
.sig svg.done path { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.m-f { display: flex; align-items: center; gap: .8rem; padding: 1.8rem 2.6rem 2.4rem; flex: none; }
.m-f .hint { margin-right: auto; display: inline-flex; align-items: center; gap: .6rem; font-size: 1.2rem; font-weight: 600; color: var(--ink-3); }
.m-f .hint.ok { color: var(--ok-t); }
.stamp { position: absolute; z-index: 5; right: 3.6rem; bottom: 12rem; transform: rotate(-9deg); padding: 1.2rem 2rem 1.2rem 1.6rem; border-radius: 2rem; display: flex; align-items: center; gap: 1.2rem; color: #fff; background: linear-gradient(135deg, #1FB25A, #16A34A 55%, #12803B); box-shadow: 0 20px 40px -14px rgba(22, 163, 74, .65), inset 0 1px 1px rgba(255, 255, 255, .35), 0 0 0 5px rgba(255, 255, 255, .8); animation: stamp .55s cubic-bezier(.2, 1.6, .4, 1) both; pointer-events: none; }
.stamp .sc { width: 4.4rem; height: 4.4rem; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .2); }
.stamp .sc svg { width: 2.4rem; height: 2.4rem; stroke-width: 2.6; }
.stamp b { display: block; font-size: 2rem; font-weight: 800; letter-spacing: .08em; }
.stamp small { display: block; font-size: 1.15rem; font-weight: 600; opacity: .9; margin-top: .2rem; white-space: nowrap; }
@keyframes stamp { 0% { opacity: 0; transform: rotate(-9deg) scale(2.2); } 60% { opacity: 1; transform: rotate(-9deg) scale(.94); } 100% { transform: rotate(-9deg) scale(1); } }
.modal.stamped::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 3px rgba(22, 163, 74, .35); pointer-events: none; animation: fade .5s; }

.palette { width: 64rem; max-height: 76%; display: flex; flex-direction: column; align-self: start; margin-top: 8rem; border-radius: 2.8rem; background: rgba(255, 255, 255, .95); box-shadow: 0 40px 90px -30px rgba(10, 60, 56, .55), 0 0 0 8px rgba(255, 255, 255, .35); overflow: hidden; animation: min .4s var(--ease); }
.pal-in { display: flex; align-items: center; gap: 1.2rem; padding: 1.8rem 2.2rem; color: var(--ink-3); flex: none; }
.pal-in input { flex: 1; border: 0; outline: none; background: none; font-size: 1.6rem; font-weight: 500; color: var(--ink); }
.pal-in input::placeholder { color: var(--ink-4); }
.pal-list { flex: 1; min-height: 0; overflow: auto; padding: 0 1rem 1rem; scrollbar-width: none; }
.pal-list::-webkit-scrollbar { display: none; }
.pal-g { font-size: 1.1rem; font-weight: 700; color: var(--ink-3); padding: 1rem 1.2rem .5rem; }
.pal-i { width: 100%; display: flex; align-items: center; gap: 1.2rem; padding: .9rem 1.2rem; border: 0; border-radius: 1.4rem; background: none; text-align: left; font-size: 1.35rem; font-weight: 600; color: var(--ink-2); }
.pal-i svg { color: var(--petrol); }
.pal-i .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-i .r { font-size: 1.15rem; color: var(--ink-3); font-weight: 600; white-space: nowrap; }
.pal-i.on, .pal-i:hover, .pal-i[data-ph-hover] { background: var(--tint); color: var(--ink); }
.pal-foot { display: flex; gap: 1.6rem; padding: 1.2rem 2.2rem; font-size: 1.15rem; font-weight: 600; color: var(--ink-3); background: rgba(234, 244, 242, .6); flex: none; }
.pal-empty { padding: 2.4rem 1.2rem; text-align: center; font-size: 1.3rem; color: var(--ink-3); font-weight: 500; }
.pal-empty b { display: block; color: var(--ink); margin-bottom: .3rem; }
.keys-sheet { width: 52rem; border-radius: 2.8rem; background: rgba(255, 255, 255, .97); box-shadow: 0 40px 90px -30px rgba(10, 60, 56, .55), 0 0 0 8px rgba(255, 255, 255, .35); padding: 2.6rem; animation: min .4s var(--ease); }
.keys-sheet h2 { font-size: 2rem; font-weight: 700; }
.keys-sheet ul { margin-top: 1.6rem; display: flex; flex-direction: column; gap: .4rem; }
.keys-sheet li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; border-radius: 1.2rem; font-size: 1.35rem; font-weight: 600; color: var(--ink-2); }
.keys-sheet li:nth-child(odd) { background: #F4F9F8; }
.keys-sheet li span:last-child { display: flex; gap: .4rem; }

.toasts { position: absolute; left: 50%; bottom: 2.8rem; transform: translateX(-50%); z-index: 70; display: flex; flex-direction: column; gap: .8rem; align-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 1rem; padding: 1rem 2rem 1rem 1rem; border-radius: 999px; background: rgba(12, 38, 37, .88); color: #fff; font-size: 1.3rem; font-weight: 600; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 18px 40px -16px rgba(12, 38, 37, .6); animation: tin .5s var(--ease) both; white-space: nowrap; }
.toast .ti { width: 2.8rem; height: 2.8rem; border-radius: 50%; display: grid; place-items: center; background: rgba(94, 234, 212, .2); color: #5EEAD4; flex: none; }
.toast .ti.w { background: rgba(251, 146, 60, .2); color: #FDBA74; }
.toast small { display: block; font-size: 1.15rem; font-weight: 500; color: rgba(255, 255, 255, .72); }
.toast.out { animation: tout .4s var(--ease) both; }
@keyframes tin { from { opacity: 0; transform: translateY(12px) scale(.96); } }
@keyframes tout { to { opacity: 0; transform: translateY(8px) scale(.97); } }

/* Lodret optagelse (9:16, 4:5): kameraet ser ca. 600 px designbredde ad gangen */
html.ph-frame .modal { width: 56rem; }
html.ph-frame .sumtbl > div b { font-size: 1.7rem; }
html.ph-frame .notif { width: 36rem; }

@media (prefers-reduced-motion: reduce) {
  .rv, .enter .rate .rb, .enter .g-bar, .pin.fresh .drop, .pin.fresh .ring, .stamp, .notif, .modal, .palette, .lb-img, .paper, .toast, .overlay, .hintbar, .attach .th { animation: none !important; }
  .live i::after, .caret { animation: none !important; }
  .card, .btn, .ring .val, .track i, .stack .bar i, .c-hero .bg, .ph img, .pt .im img { transition: none !important; }
  .card.lift:hover, .card.lift[data-ph-hover] { transform: none; }
}
@media (hover: none), (max-width: 820px) {
  kbd, .lb-keys { display: none !important; }
}
@media (max-width: 1024px) {
  body { overflow: auto; }
  #app { position: relative; grid-template-columns: 1fr; gap: .8rem; padding: .8rem 1.2rem 1.6rem; height: auto; }
  .rail { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: stretch; gap: .2rem; padding: .4rem; border-radius: 2.4rem; }
  .rail .grow, .rail .mark, .rail .sep, .nav-i.m-sec { display: none; }
  .nav-i.m-more { display: flex; }
  .nav-i { min-height: 5.2rem; justify-content: center; padding: .4rem .1rem; gap: .2rem; font-size: 1.05rem; }
  .nav-i .ni { width: 3rem; height: 3rem; }
  .nav-i .bdg { top: .2rem; right: auto; left: calc(50% + 1.5rem); }
  .main { gap: 1.2rem; }
  .top { flex-wrap: wrap; gap: .8rem; padding: 0 .2rem; }
  .top .sp, .demo-pill, .me, .hello .eyebrow { display: none; }
  .hello { flex: 1 1 100%; }
  .hello h1 { font-size: 2.4rem; }
  .hello h1 span { font-size: 1.3rem; margin-left: .8rem; }
  .seg { flex: 1 1 auto; }
  .seg button { flex: 1; justify-content: center; height: 3.6rem; padding: 0 1rem; }
  .search { width: 4.4rem; min-width: 4.4rem; height: 4.4rem; flex: none; padding: 0; justify-content: center; }
  .search span { display: none; }
  .v, .bento, .v-oek, .v-foto, .v-mg, .v-tid, .v-dok, .v-sag { grid-template-columns: 1fr !important; grid-template-rows: none !important; grid-template-areas: none !important; height: auto; }
  .bento > *, .v > * { grid-area: auto !important; grid-column: auto !important; }
  .card { min-height: 30rem; }
  .planwrap { flex: none; aspect-ratio: 1.1; }
  .c-ai, .c-agen, .c-ring, .c-as, .c-econ { container-type: normal; }
  .notif { left: 1.2rem; right: 1.2rem; width: auto; }
  .rate .rl, .rate .rd { white-space: normal; }
  .pgrid { overflow-x: auto; grid-auto-columns: minmax(15rem, 1fr); }
  .pt .im { min-height: 14rem; }
  .pt .cap span { display: block; -webkit-line-clamp: unset; overflow: visible; }
  .gantt { overflow-x: auto; grid-template-columns: 15rem 64rem; min-height: 46rem; }
  .more-ov { position: absolute; inset: 0; z-index: 90; background: rgba(14, 40, 39, .3); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  .more-sheet { position: absolute; top: 7rem; left: 1.2rem; right: 1.2rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; padding: 1rem; border-radius: 2.4rem; background: rgba(255, 255, 255, .98); box-shadow: 0 30px 60px -20px rgba(10, 60, 56, .45); }
  .more-sheet .nav-i { min-height: 6rem; }
}
