/* ===========================================================
   DESIGN-SYSTEM BASE — moved here from the <head> of _head_assets.html
   (docs/specs/2026-11-23-tailwind-compiled-stylesheet.md R4). It stays FIRST
   in this file: before the project rules below, and before tailwind.css, which
   is linked last (the cascade the Tailwind CDN used to produce).
=========================================================== */
:root { --ink:#0b0d10; --ink-2:#13161c; --ink-3:#181c23; --line:#262b32; --line-soft:#1c2026; --field:#6b7280; --brass:#c9a15c; --brass-hover:#e3be7c; --ivory:#f4f2ec; --body:#c8ccd3; --muted:#9a9fa8; --muted-2:#6f747c; --error:#f4b4a8; }
/* --header-h sits on html: the root selector must stay defined once (HeadStylesMovedTests) */
html { --header-h: 64px; }
@media (min-width: 1024px) { html { --header-h: 72px; } }
body { background-color: var(--ink); color: var(--ivory); }
.label-caps { font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.badge-status { font-family: 'Inter', sans-serif; font-size: 11.5px; font-weight: 600; letter-spacing: 0.01em; text-transform: none; }
.glass-header { background: rgba(11,13,16,0.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-soft); }
/* [bekreft] --field (#6b7280) and --error (#f4b4a8) are design-pack tokens the client has not approved yet. */
.field { background-color: var(--ink-2); border: 1px solid var(--field); color: var(--ivory); border-radius: 4px; }
.field:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 1px var(--brass); }

/* design_1.md §2.1 — felles CSS-tillegg: the reference design's shared
   "Felles tillegg (UX/tilgjengelighet)" block (ui_design/new-design/*.html). */
html { color-scheme: dark; scroll-padding-top: calc(var(--header-h) + 16px + env(safe-area-inset-top, 0px)); -webkit-font-smoothing: antialiased; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid #c9a15c; outline-offset: 3px; border-radius: 4px; }
[tabindex]:not([tabindex="-1"]):focus-visible { outline: 2px solid #c9a15c; outline-offset: 3px; }
/* The skip link moves focus to <main> so the next Tab starts in the content; the landmark itself needs no ring. */
main:focus { outline: none; }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.chev { transition: transform .2s ease; }
details[open] > summary .chev { transform: rotate(180deg); }
select.field { appearance: none; -webkit-appearance: none; padding-right: 2.75rem;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a15c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat; background-position: right 1rem center; background-size: 1em; }
.field[aria-invalid="true"] { border-color: var(--error); }
input[type="checkbox"].check { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; flex: none; margin: 0;
    border: 1px solid #2a2f37; border-radius: 3px; background: #14181d; display: grid; place-content: center; cursor: pointer; }
input[type="checkbox"].check::before { content: ""; width: 11px; height: 11px; transform: scale(0); transition: transform .12s ease;
    background: #0b0d10; clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); }
input[type="checkbox"].check:checked { background: #c9a15c; border-color: #c9a15c; }
input[type="checkbox"].check:checked::before { transform: scale(1); }
input[type="checkbox"].check:focus-visible { outline: 2px solid #c9a15c; outline-offset: 2px; }
/* Deliberate deviation from the reference's reduced-motion block: its
   plain `html { scroll-behavior: auto }` loses to Tailwind's
   `.scroll-smooth` on <html>, and `transition: none` suppresses
   transitionend events that scripted animations (e.g. Leaflet's zoom)
   wait for. Near-zero durations stop the motion and keep those events. */
@media (prefers-reduced-motion: reduce) {
    html, html.scroll-smooth { scroll-behavior: auto !important; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ===========================================================
   BLACK EIENDOM UTLEIE — shared design tokens & components
   Palette: near-black ink, warm brass/gold accent
   Type: Fraunces (display serif) + Inter (body/UI)
=========================================================== */

*{ box-sizing:border-box; }
body{
  font-family:'Inter', ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing:antialiased;
}

.font-display{ font-family:'Fraunces', ui-serif, Georgia, serif; }

/* keyboard focus for bare inputs (search boxes, native checkboxes) that are
   not `.field` — the head's §2.1 rule only covers a/button/summary */
input:not(.field):focus-visible,
select:not(.field):focus-visible,
textarea:not(.field):focus-visible{
  outline:2px solid var(--brass);
  outline-offset:3px;
}

/* thin gold underline used under active nav item / section markers */
.brass-rule{
  height:2px;
  width:28px;
  background:linear-gradient(90deg, var(--brass), transparent);
}

.nav-link{
  position:relative;
  display:flex; align-items:center;
  min-height:44px;
  color:var(--muted);
  font-size:14px;
  letter-spacing:0;
  text-transform:none;
  font-weight:500;
  white-space:nowrap;
  transition:color .15s ease;
}
.nav-link::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:6px;
  height:2px;
  background:var(--brass);
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .2s ease;
}
/* Header nav only -- other .nav-link uses (e.g.
   property_detail.html's back link) keep the unpadded base. */
.header-nav .nav-link{ padding:0 12px; }
.header-nav .nav-link::after{ left:12px; right:12px; bottom:6px; height:2px; }
/* Translated labels are longer: between lg and xl the full padding does not leave room for them. */
@media (min-width:1024px) and (max-width:1279px){
  .header-nav .nav-link{ padding:0 8px; }
  .header-nav .nav-link::after{ left:8px; right:8px; }
}
.nav-link:hover{ color:var(--ivory); }
.nav-link:hover::after,
.nav-link[aria-current="page"]::after{ transform:scaleX(1); }
.nav-link[aria-current="page"]{ color:var(--ivory); }

/* mobile menu rows (REF 147–152). The arrow is generated content so each
   link's text stays a single text node; the second `content` gives it an
   empty alt text where supported so screen readers skip it. */
.mobile-link{
  display:flex; align-items:center; justify-content:space-between;
  min-height:52px;
  border-bottom:1px solid var(--line-soft);
  font-size:14px; font-weight:500; letter-spacing:0; text-transform:none;
  color:var(--muted);
  transition:color .15s ease;
}
.mobile-link::after{
  content:"→";
  content:"→" / "";
  color:var(--brass);
  opacity:.6;
  transition:opacity .15s ease, transform .15s ease;
}
.mobile-link:hover{ color:var(--ivory); }
.mobile-link[aria-current="page"]{ color:var(--brass); }
.mobile-link:hover::after,
.mobile-link[aria-current="page"]::after{ opacity:1; transform:translateX(3px); }
.nav-link:focus-visible, .mobile-link:focus-visible, #nav-toggle:focus-visible{ outline:2px solid var(--brass); outline-offset:3px; }
@media (prefers-reduced-motion: reduce){ .nav-link::after, .mobile-link::after{ transition:none; } }

.btn-brass{
  display:inline-flex; align-items:center; gap:.5rem;
  background:var(--brass);
  color:#1a1409;
  font-weight:600;
  font-size:.8125rem;
  letter-spacing:.03em;
  padding:.7rem 1.15rem;
  border-radius:2px;
  transition:background .2s ease, transform .15s ease;
}
.btn-brass:hover{ background:#dcb471; }
.btn-brass:active{ transform:translateY(1px); }
.btn-brass:disabled{ cursor:wait; opacity:.85; }

/* submit-button loading feedback (e.g. Kontakt form) */
.btn-brass .btn-spinner{ display:none; }
.btn-brass.is-loading .btn-label{ display:none; }
.btn-brass.is-loading .btn-spinner{
  display:inline-block;
  width:14px; height:14px;
  border:2px solid rgba(26,20,9,.35);
  border-top-color:#1a1409;
  border-radius:50%;
  animation:btn-spin .6s linear infinite;
}
@keyframes btn-spin{ to{ transform:rotate(360deg); } }

.btn-outline{
  display:inline-flex; align-items:center; gap:.5rem;
  border:1px solid var(--line);
  color:var(--ivory);
  font-weight:500;
  font-size:.8125rem;
  padding:.68rem 1.1rem;
  border-radius:2px;
  transition:border-color .2s ease, background .2s ease;
}
.btn-outline:hover{ border-color:var(--brass); background:rgba(201,161,92,.06); }

.btn-link{
  color:var(--brass);
  font-weight:600;
  font-size:.8125rem;
  letter-spacing:.02em;
  display:inline-flex; align-items:center; gap:.4rem;
  transition:gap .2s ease, color .2s ease;
}
.btn-link:hover{ gap:.6rem; color:#dcb471; }

.card{
  background:var(--ink-3);
  border:1px solid var(--line-soft);
  border-radius:4px;
  transition:border-color .2s ease, transform .2s ease;
}
.card:hover{ border-color:rgba(201,161,92,.6); }

/* ink-2 variant — used for clickable resource cards (e.g. For beboere) */
.card-alt{ background:var(--ink-2); }

.icon-badge{
  width:44px; height:44px;
  display:flex; align-items:center; justify-content:center;
  border:1px solid rgba(201,161,92,.5);
  border-radius:3px;
  color:var(--brass);
  flex:none;
}

.chip{
  display:inline-flex; align-items:center; gap:.5rem; white-space:nowrap;
  min-height:40px; padding:0 1rem;
  border:1px solid #1c2026; border-radius:999px;
  font-size:13px; color:#f4f2ec;
  transition:border-color .15s, background .15s;
}
.chip:hover{ border-color:#c9a15c; }
.chip[aria-pressed="true"]{ background:#c9a15c; border-color:#c9a15c; color:#0b0d10; font-weight:600; }
.chip-n{ font-size:11px; opacity:.7; }
.chip[aria-pressed="true"] .bg-brass{ background:#0b0d10; }

.stat-strip{
  border-top:1px solid var(--line-soft);
  border-bottom:1px solid var(--line-soft);
}




.card.is-active{ border-color:var(--brass); box-shadow:0 0 0 1px var(--brass); }
/* `hidden` must win over Tailwind display utilities (.grid/.flex) — the
   Ledige boliger list, its cards and empty state toggle it. */
[hidden]{ display:none !important; }
/* Ledige boliger (design pack v2): hero title, toolbar chips, cards grid, steps. The selected chip is ivory, never brass. */
.hero-title{ font-size:clamp(34px, 5vw, 60px); line-height:1.06; letter-spacing:-0.01em; text-wrap:balance; font-weight:400; }
.toolbar-controls{ display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.toolbar-chips{ display:flex; gap:8px; }
.toolbar-divider{ width:1px; height:28px; background:var(--line); }
.tchip{ display:inline-flex; align-items:center; gap:6px; min-height:44px; padding:0 16px; border:1px solid var(--line); border-radius:9999px; background:var(--ink); color:var(--ivory); font-size:14px; font-weight:600; cursor:pointer; white-space:nowrap; transition:background-color .15s ease, border-color .15s ease, color .15s ease; }
.tchip:hover{ border-color:var(--brass); }
.tchip .n{ color:var(--muted); font-weight:500; }
.tchip[aria-pressed="true"]{ background:var(--ivory); color:var(--ink); border-color:var(--ivory); }
.tchip[aria-pressed="true"] .n{ color:#4a4f58; }
@media (max-width:767px){
  .toolbar-controls{ width:100%; display:grid; grid-template-columns:1fr 1fr; }
  .toolbar-chips{ grid-column:1 / -1; overflow-x:auto; scrollbar-width:none; margin:0 -20px; padding:0 20px; }
  .toolbar-chips::-webkit-scrollbar{ display:none; }
  .toolbar-divider{ display:none; }
  .toolbar-controls .field{ width:100%; }
}
.cards-grid{ display:grid; gap:16px; grid-template-columns:repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
@media (min-width:1024px){ .cards-grid{ gap:24px; } }
.card-ledige{ transition:border-color .15s ease, transform .2s ease, box-shadow .2s ease; }
.card-ledige:hover{ transform:translateY(-2px); box-shadow:0 18px 32px -18px rgba(0,0,0,.8); }
.card-ledige .card-media img{ transition:transform .4s ease; }
.card-ledige:hover .card-media img{ transform:scale(1.03); }
@media (prefers-reduced-motion: reduce){ .card-ledige:hover{ transform:none; } .card-ledige:hover .card-media img{ transform:none; } }
.steps-list{ counter-reset:step; }
.steps-list > li{ counter-increment:step; display:grid; grid-template-columns:40px 1fr; gap:4px 14px; padding:18px; border:1px solid var(--line-soft); border-radius:8px; background:var(--ink); }
.steps-list > li::before{ content:counter(step); grid-row:span 2; width:40px; height:40px; display:grid; place-items:center; border:1px solid rgba(201,161,92,.5); border-radius:4px; color:var(--brass); font-family:'Fraunces', ui-serif, Georgia, serif; font-size:18px; }
/* Ledige boliger price-bubble pins (REF 377–380), Leaflet divIcon html.
   The marker icon is positioned at the coordinate's top-left; the
   translate puts the pointer tip on the coordinate. */
.pin{ transform:translate(-50%,-100%); display:flex; flex-direction:column; align-items:center; justify-content:flex-end; min-width:44px; min-height:44px; padding:0; background:none; border:0; cursor:pointer; }
.pin .bubble{ min-height:28px; display:inline-flex; align-items:center; padding:0 9px; background:var(--ink); color:var(--ivory); border:1px solid var(--line); border-radius:4px; font-size:12.5px; font-weight:600; white-space:nowrap; box-shadow:0 8px 18px -8px rgba(0,0,0,.8); transition:background-color .15s ease, color .15s ease, border-color .15s ease; }
.pin .bubble:empty{ width:16px; height:16px; min-height:16px; padding:0; border-radius:50%; }
.pin .pointer{ width:8px; height:8px; margin-top:-4px; background:var(--ink); border-right:1px solid var(--line); border-bottom:1px solid var(--line); transform:rotate(45deg); }
.pin.cluster .bubble{ border-color:rgba(201,161,92,.7); }
.pin:hover .bubble,
.pin.is-hover .bubble{ border-color:var(--brass); }
.pin[aria-pressed="true"] .bubble,
.pin[aria-pressed="true"] .pointer{ background:var(--brass); color:var(--ink); border-color:var(--brass); }

/* Popup of the price pins (design pack 5.7): dark card, brass area line, two text actions. */
.map-popup-box .leaflet-popup-content-wrapper{ background:var(--ink-2); color:var(--ivory); border:1px solid var(--line); border-radius:8px; box-shadow:0 18px 34px -14px rgba(0,0,0,.85); }
.map-popup-box .leaflet-popup-content{ margin:12px 14px; font-size:14px; line-height:1.4; }
.map-popup-box .leaflet-popup-tip{ background:var(--ink-2); border:1px solid var(--line); }
.map-popup-box li + li{ border-top:1px solid var(--line-soft); margin-top:8px; padding-top:8px; }
.map-popup-box strong{ display:block; font-weight:600; }
.map-popup-area{ display:block; font-size:12px; font-weight:600; color:var(--brass); }
.map-popup-price{ color:var(--muted); }
.map-popup-acts{ display:flex; gap:14px; margin-top:4px; }
.map-popup-link{ display:inline-flex; align-items:center; min-height:44px; padding:0; border:0; background:none; color:var(--brass); font-size:14px; font-weight:600; cursor:pointer; text-decoration:none; }
.map-popup-link:hover{ text-decoration:underline; }

/* colour/border/focus/invalid come from the <head> (design_1.md §2 / §2.1);
   radius kept here as a fallback in case theme('borderRadius.sm') in the
   inline <style> is not resolved by the Tailwind CDN. */
.field{
  width:100%;
  padding:.75rem .9rem;
  border-radius:4px;
  font-size:.875rem;
}
.field::placeholder{ color:var(--muted-2); }

.faq-item[open] summary .chev{ transform:rotate(90deg); }
.faq-item summary{ cursor:pointer; }

.hairline{ border-color:var(--line-soft); }

/* --- property filter bar (Sted / Soverom / Pris) --- */
.filter-btn{
  display:block;
  width:100%;
  text-align:left;
  background:transparent;
  border:0;
  border-bottom:1px solid var(--line-soft);
  color:var(--muted);
  font-size:.8125rem;
  padding:.55rem 0;
  transition:color .15s ease;
}
.filter-btn:hover{ color:var(--ivory); }
.filter-btn.active{ color:var(--brass); font-weight:600; }
[data-property].filtered-out{ display:none; }

.logo-mark{
  width:40px;height:40px;
  border:1px solid rgba(201,161,92,.5);
  display:flex;align-items:center;justify-content:center;
  border-radius:2px;
  color:var(--brass);
}

.reveal{ opacity:0; transform:translateY(14px); transition:opacity .6s ease, transform .6s ease; }
.reveal.in{ opacity:1; transform:none; }

@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
}

.badge{
  display:inline-flex; align-items:center; gap:.3rem;
  font-size:.68rem; font-weight:600; letter-spacing:.02em;
  padding:.2rem .55rem; border-radius:20px;
}
.badge-available{ background:rgba(201,161,92,.15); color:var(--brass); }
.badge-unavailable{ background:rgba(255,255,255,.06); color:var(--muted); }
.badge-handled{ background:rgba(93,196,141,.14); color:#7cd3a0; }
.badge-pending{ background:rgba(224,110,110,.14); color:#e69a9a; }

/* Leaflet's zoom buttons are 30px; make them 44px touch targets like the pins. Leaflet's own sheet loads after this one, hence the extra class. */
.leaflet-container .leaflet-bar a,
.leaflet-container.leaflet-touch .leaflet-bar a{ width:44px; height:44px; line-height:44px; }

/* Rented card: neutral, never brass (the brass tag means "Ledig nå"). */
.tag-utleid{ background:rgba(11,13,16,.88); color:var(--ivory); border:1px solid var(--line); }
.card.rented .card-media img{ filter:saturate(.55) brightness(.85); }
.pin.rented .bubble{ color:var(--muted); border-style:dashed; }

/* Våre eiendommer: hero with three stat cards */
.hero-grid{ display:grid; gap:24px; grid-template-areas:"text" "stats" "actions"; }
.hero-text{ grid-area:text; }
.hero-grid .stat-cards{ grid-area:stats; margin-top:0; }
.hero-grid .hero-actions{ grid-area:actions; margin-top:0; }
@media (min-width:1024px){
  .hero-grid{ grid-template-columns:minmax(0, 1fr) minmax(0, 560px); grid-template-areas:"text stats" "actions stats"; column-gap:48px; row-gap:28px; align-items:end; }
  .hero-grid .stat-cards{ align-self:end; justify-self:end; width:100%; }
}
.stat-cards{ display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:12px; margin-top:28px; max-width:560px; }
.stat-card{ padding:16px 18px 14px; border:1px solid var(--line-soft); border-radius:8px; background:var(--ink-2); }
.stat-card dt{ padding-bottom:8px; border-bottom:2px solid var(--brass); font-size:14px; font-weight:500; color:var(--ivory); }
.stat-card dd{ margin:10px 0 0; font-family:'Fraunces', ui-serif, Georgia, serif; font-weight:400; font-size:clamp(30px, 3.4vw, 40px); line-height:1.05; color:var(--brass); }
.stat-card dd.text{ font-size:clamp(20px, 2.2vw, 26px); line-height:1.2; padding-top:6px; }
/* Narrow screens: the numbers side by side, Sted full width so Haugesund is not split */
@media (max-width:479px){ .stat-cards{ grid-template-columns:1fr 1fr; gap:10px; } .stat-card:last-child{ grid-column:1 / -1; } }
/* Våre eiendommer: four cards (Eiendommer, Enheter, Ledige nå, Utleid) in one row, 2 x 2 on narrow screens */
.stat-cards-four{ grid-template-columns:repeat(4, minmax(0, 1fr)); }
.stat-cards-four .stat-card{ padding:14px 12px 12px; }
@media (max-width:479px){ .stat-cards-four{ grid-template-columns:1fr 1fr; } .stat-cards-four .stat-card:last-child{ grid-column:auto; } }
/* Våre eiendommer: optional hero image above the cards (16:9, never lazy: it is above the fold) */
.hero-grid .hero-image{ grid-area:image; width:100%; max-width:560px; aspect-ratio:16 / 9; border:1px solid var(--line-soft); border-radius:8px; overflow:hidden; background:var(--ink-2); }
.hero-grid .hero-image img{ display:block; width:100%; height:100%; object-fit:cover; }
.hero-grid-with-image{ grid-template-areas:"text" "image" "stats" "actions"; }
@media (min-width:1024px){
  .hero-grid-with-image{ grid-template-areas:"text image" "text stats" "actions stats"; align-items:start; }
  .hero-grid-with-image .hero-image{ justify-self:end; }
}

/* Våre eiendommer: list and sticky map */
.split{ display:grid; gap:24px; }
.list-col{ min-width:0; }
.map-col{ display:none; }
.map-wrap{ position:relative; border:1px solid var(--line-soft); border-radius:8px; overflow:hidden; background:var(--ink-2); box-shadow:0 30px 60px -30px rgba(0,0,0,.8); }
.map{ position:relative; aspect-ratio:4 / 3; background:var(--ink-3); }
@media (min-width:1024px){
  .split{ grid-template-columns:minmax(0, 1fr) minmax(360px, 42%); gap:28px; align-items:start; }
  .map-col{ display:block; position:sticky; top:calc(var(--header-h) + 16px + env(safe-area-inset-top, 0px)); height:calc(100dvh - var(--header-h) - 32px); min-height:460px; }
  .map-col .map-wrap{ height:100%; }
  .map-col .map{ height:100%; aspect-ratio:auto; }
  .split .cards-grid{ grid-template-columns:repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
}

/* Mobile and tablet: the Vis kart / Vis liste toggle shows the map full height under the header */
.view-toggle{ position:fixed; left:50%; bottom:calc(18px + env(safe-area-inset-bottom, 0px)); transform:translateX(-50%); z-index:45; display:inline-flex; align-items:center; gap:8px; min-height:48px; padding:0 20px; border-radius:9999px; border:1px solid var(--brass); background:var(--ink); color:var(--ivory); font:inherit; font-size:15px; font-weight:600; box-shadow:0 14px 30px -10px rgba(0,0,0,.9); cursor:pointer; }
@media (min-width:1024px){ .view-toggle{ display:none; } }
@media (max-width:1023px){
  body.map-view .map-col{ display:block; position:fixed; left:0; right:0; bottom:0; top:calc(var(--header-h) + env(safe-area-inset-top, 0px)); z-index:44; }
  body.map-view .map-col .map-wrap{ height:100%; border:0; border-radius:0; box-shadow:none; }
  body.map-view .map-col .map{ height:100%; aspect-ratio:auto; }
  body.map-view{ overflow:hidden; }
}
/* Room for the toggle so it never covers the footer */
@media (max-width:1023px){ body:has(#view-toggle) footer{ padding-bottom:72px; } }

/* Våre eiendommer: closing CTA band */
.cta-band{ border-top:1px solid var(--line-soft); background:var(--ink-2); padding:40px 0; }
.cta-band .cta-wrap{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px 24px; }
.cta-band h2{ font-family:'Fraunces', ui-serif, Georgia, serif; font-weight:400; font-size:clamp(22px, 2.4vw, 28px); }
.cta-band p{ color:var(--muted); font-size:15px; margin-top:4px; }
.cta-band .acts{ display:flex; flex-wrap:wrap; gap:12px; }

/* For beboere (design pack v2): top section, shortcut cards, table of contents, accordion topics. Scoped under .beboere. */
.beboere .top{ padding:36px 0 32px; border-bottom:1px solid var(--line-soft); }
@media (min-width:1024px){ .beboere .top{ padding:56px 0 48px; } }
.beboere .top h1{ margin-top:10px; font-family:'Fraunces', ui-serif, Georgia, serif; font-weight:400; font-size:clamp(34px, 4.6vw, 56px); line-height:1.06; color:var(--ivory); }
.beboere .top .lead{ margin-top:12px; max-width:58ch; color:var(--body); font-size:17px; }
.beboere .quick{ display:grid; gap:12px; margin-top:28px; grid-template-columns:1fr; }
@media (min-width:768px){ .beboere .quick{ grid-template-columns:repeat(3, 1fr); gap:16px; } }
.beboere .qcard{ display:flex; flex-direction:column; gap:6px; padding:20px; border:1px solid var(--line-soft); border-radius:8px; background:var(--ink-2); }
.beboere .qcard h2{ font-size:17px; font-weight:600; display:flex; align-items:center; gap:10px; color:var(--ivory); }
.beboere .qcard p{ font-size:14px; color:var(--muted); }
.beboere .qcard .actions{ margin-top:12px; }
.beboere .qcard.urgent{ border-color:rgba(201,161,92,.55); }
.beboere .tag{ display:inline-flex; align-items:center; min-height:22px; padding:0 8px; border-radius:4px; background:var(--brass); color:var(--ink); font-size:11.5px; font-weight:700; }
.beboere .emergency-line{ font-size:13px; color:var(--muted); }
.beboere .emergency-line a{ color:var(--ivory); font-weight:600; }
.beboere .mid{ padding:40px 0 64px; }
@media (min-width:1024px){ .beboere .mid{ padding:56px 0 80px; } }
.beboere .layout{ display:grid; gap:32px; }
@media (min-width:1024px){ .beboere .layout{ grid-template-columns:260px minmax(0, 1fr); gap:56px; align-items:start; } }
.beboere .chips{ display:flex; gap:8px; overflow-x:auto; scrollbar-width:none; margin:0 -20px; padding:0 20px 4px; }
.beboere .chips::-webkit-scrollbar{ display:none; }
.beboere .chips a{ display:inline-flex; align-items:center; min-height:44px; padding:0 16px; border:1px solid var(--line); border-radius:9999px; font-size:14px; font-weight:600; text-decoration:none; white-space:nowrap; background:var(--ink); color:var(--ivory); }
.beboere .chips a[aria-current="true"]{ background:var(--ivory); color:var(--ink); border-color:var(--ivory); }
.beboere .toc{ display:none; }
.beboere .toc-h{ font-size:13px; font-weight:600; color:var(--muted); margin-bottom:8px; }
.beboere .toc nav a{ display:flex; align-items:center; gap:8px; min-height:44px; padding:0 12px; border-left:2px solid var(--line-soft); color:var(--muted); font-size:14px; text-decoration:none; }
.beboere .toc nav a:hover{ color:var(--ivory); }
.beboere .toc nav a.cat{ color:var(--ivory); font-weight:600; margin-top:10px; }
.beboere .toc nav a[aria-current="true"]{ border-left-color:var(--brass); color:var(--ivory); }
.beboere .help{ margin-top:24px; padding:18px; border:1px solid var(--line-soft); border-radius:8px; background:var(--ink-2); }
.beboere .help h2{ font-size:15px; font-weight:600; color:var(--ivory); }
.beboere .help p{ margin-top:4px; margin-bottom:12px; font-size:14px; color:var(--muted); }
.beboere .help a.tel{ color:var(--ivory); font-weight:600; }
@media (min-width:1024px){
  .beboere .chips{ display:none; }
  .beboere .toc{ display:block; position:sticky; top:calc(var(--header-h) + 24px); }
  .beboere .help-mobile{ display:none; }
}
.beboere .cat-sec + .cat-sec{ margin-top:48px; }
.beboere .cat-head h2{ font-family:'Fraunces', ui-serif, Georgia, serif; font-weight:400; font-size:clamp(24px, 2.6vw, 30px); line-height:1.2; color:var(--ivory); }
.beboere .cat-head p{ margin-top:4px; color:var(--muted); font-size:15px; }
.beboere .topics{ margin-top:16px; border-top:1px solid var(--line-soft); }
.beboere .topic{ border-bottom:1px solid var(--line-soft); }
.beboere .topic h3{ font-size:17px; font-weight:600; color:var(--ivory); }
.beboere .topic-btn{ width:100%; min-height:60px; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 4px; border:0; background:none; text-align:left; cursor:pointer; font:inherit; color:inherit; }
.beboere .topic-btn:hover .t{ color:var(--brass-hover); }
.beboere .topic-btn .t{ display:inline-flex; align-items:center; gap:10px; }
.beboere .topic-btn svg{ width:18px; height:18px; color:var(--brass); flex-shrink:0; transition:transform .2s; }
.beboere .topic-btn[aria-expanded="true"] svg{ transform:rotate(180deg); }
.beboere .topic-link{ width:100%; min-height:60px; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 4px; text-decoration:none; color:inherit; }
.beboere .topic-link:hover .t{ color:var(--brass-hover); }
.beboere .topic-link svg{ width:18px; height:18px; color:var(--brass); flex-shrink:0; }
.beboere .topic-link small{ display:block; font-size:14px; font-weight:400; color:var(--muted); }
.beboere .panel{ padding:0 4px 24px; max-width:68ch; color:var(--body); }
.beboere .panel > * + *{ margin-top:14px; }
.beboere .steps{ counter-reset:s; display:grid; gap:10px; }
.beboere .steps li{ counter-increment:s; display:grid; grid-template-columns:28px 1fr; gap:12px; align-items:start; }
.beboere .steps li::before{ content:counter(s); width:28px; height:28px; display:grid; place-items:center; border:1px solid rgba(201,161,92,.6); border-radius:50%; color:var(--brass); font-size:13px; font-weight:600; }
.beboere .callout{ padding:14px 16px; border:1px solid var(--line); border-radius:6px; background:var(--ink-2); font-size:15px; }
.beboere .callout b{ color:var(--ivory); }
.beboere .numbers{ display:grid; grid-template-columns:repeat(3, 1fr); gap:10px; max-width:420px; }
.beboere .numbers a{ display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:72px; border:1px solid var(--line); border-radius:6px; text-decoration:none; }
.beboere .numbers a:hover{ border-color:var(--brass); }
.beboere .numbers b{ font-family:'Fraunces', ui-serif, Georgia, serif; font-weight:400; font-size:26px; color:var(--brass); line-height:1.1; }
.beboere .numbers span{ font-size:12px; font-weight:600; color:var(--muted); }
.beboere .link{ color:var(--brass); text-decoration:underline; text-underline-offset:4px; }
.beboere .link:hover{ color:var(--brass-hover); }
/* The pack allows no uppercase: staff HTML written before the redesign may still carry these utilities. */
.beboere .panel .uppercase{ text-transform:none; }
.beboere .panel .tracking-wide{ letter-spacing:normal; }
/* Without JavaScript the accordion buttons do nothing, so every panel is shown (!important: the global [hidden] rule above is). */
@media (scripting:none){ .beboere .panel[hidden]{ display:block !important; } }
@media (prefers-reduced-motion:reduce){ .beboere .topic-btn svg{ transition:none; } }

/* Om oss (design pack v2): sections, values, people, partners, band. Scoped under .omoss. */
.omoss .eyebrow{ font-size:13px; font-weight:600; color:var(--brass); }
.omoss .hero{ padding:40px 0 48px; border-bottom:1px solid var(--line-soft); }
@media (min-width:1024px){ .omoss .hero{ padding:72px 0; } }
.omoss .hero h1{ margin-top:10px; font-family:'Fraunces', ui-serif, Georgia, serif; font-weight:400; font-size:clamp(34px, 4.6vw, 56px); line-height:1.08; text-wrap:balance; color:var(--ivory); }
.omoss .hero .lead{ margin-top:16px; max-width:56ch; color:var(--body); font-size:17px; }
.omoss .sec{ padding:56px 0; border-bottom:1px solid var(--line-soft); }
@media (min-width:1024px){ .omoss .sec{ padding:88px 0; } }
.omoss .sec.alt{ background:var(--ink-2); }
.omoss .sec-title{ font-family:'Fraunces', ui-serif, Georgia, serif; font-weight:400; font-size:clamp(28px, 3.2vw, 38px); line-height:1.15; margin-top:8px; color:var(--ivory); }
.omoss .sec-lead{ margin-top:12px; max-width:62ch; color:var(--body); }
.omoss .values{ display:grid; gap:16px; margin-top:32px; grid-template-columns:1fr; }
@media (min-width:640px){ .omoss .values{ grid-template-columns:1fr 1fr; } }
@media (min-width:1024px){ .omoss .values{ grid-template-columns:repeat(4, 1fr); gap:20px; } }
.omoss .value{ padding:22px; border:1px solid var(--line-soft); border-radius:8px; background:var(--ink); }
.omoss .value .ico{ width:40px; height:40px; display:grid; place-items:center; border:1px solid rgba(201,161,92,.5); border-radius:4px; color:var(--brass); }
.omoss .value h3{ margin-top:18px; font-family:'Fraunces', ui-serif, Georgia, serif; font-weight:400; font-size:21px; line-height:1.2; color:var(--ivory); }
.omoss .value p{ margin-top:8px; font-size:15px; color:var(--muted); }
.omoss .people-grid{ display:grid; gap:32px; }
@media (min-width:1024px){ .omoss .people-grid{ grid-template-columns:minmax(0, 0.9fr) minmax(0, 1.6fr); gap:56px; align-items:start; } }
.omoss .people-text > * + *{ margin-top:14px; }
.omoss .people-text p:not(.eyebrow){ color:var(--body); max-width:56ch; }
.omoss .people{ display:grid; gap:16px; grid-template-columns:1fr; }
@media (min-width:560px){ .omoss .people{ grid-template-columns:repeat(3, 1fr); } }
.omoss .person{ border:1px solid var(--line-soft); border-radius:8px; overflow:hidden; background:var(--ink-2); }
.omoss .person-photo{ height:160px; display:grid; place-items:center; background:var(--ink-3); }
.omoss .person-photo img{ width:100%; height:100%; object-fit:cover; }
.omoss .avatar{ width:76px; height:76px; display:grid; place-items:center; border:1px solid rgba(201,161,92,.6); border-radius:50%; font-family:'Fraunces', ui-serif, Georgia, serif; font-size:24px; color:var(--brass); }
.omoss .person-body{ padding:16px 18px 18px; border-top:1px solid var(--line-soft); }
.omoss .person h3{ font-family:'Fraunces', ui-serif, Georgia, serif; font-weight:400; font-size:20px; line-height:1.2; color:var(--ivory); }
.omoss .person p{ margin-top:2px; font-size:14px; color:var(--muted); }
.omoss .partners{ display:grid; gap:16px; margin-top:32px; grid-template-columns:1fr; }
@media (min-width:640px){ .omoss .partners{ grid-template-columns:1fr 1fr; } }
@media (min-width:1024px){ .omoss .partners{ grid-template-columns:repeat(3, 1fr); gap:20px; } }
.omoss .partner{ display:flex; flex-direction:column; gap:8px; padding:22px; border:1px solid var(--line-soft); border-radius:8px; background:var(--ink-2); }
.omoss .partner-logo{ height:64px; margin-bottom:8px; display:grid; place-items:center; border:1px dashed var(--line); border-radius:6px; font-family:'Fraunces', ui-serif, Georgia, serif; font-size:22px; color:var(--muted); }
.omoss .partner-logo.has-logo{ border-style:solid; }
.omoss .partner-logo img{ max-width:100%; max-height:100%; object-fit:contain; }
.omoss .partner .cat{ font-size:13px; font-weight:600; color:var(--brass); }
.omoss .partner h3{ font-family:'Fraunces', ui-serif, Georgia, serif; font-weight:400; font-size:21px; line-height:1.2; color:var(--ivory); }
.omoss .partner p{ font-size:15px; color:var(--muted); }
.omoss .partner .links{ margin-top:auto; padding-top:4px; }
.omoss .partner .links a{ display:inline-flex; align-items:center; gap:6px; min-height:44px; font-size:14px; font-weight:600; color:var(--brass); text-decoration:none; }
.omoss .partner .links a:hover{ color:var(--brass-hover); text-decoration:underline; text-underline-offset:4px; }
.omoss .cta-band{ background:var(--ink-2); padding:48px 0; border-top:0; }
.omoss .cta-band .cta-wrap{ gap:20px 32px; }
.omoss .cta-band h2{ font-family:'Fraunces', ui-serif, Georgia, serif; font-weight:400; font-size:clamp(26px, 3vw, 34px); line-height:1.15; margin-top:6px; color:var(--ivory); }
.omoss .cta-band p:not(.eyebrow){ margin-top:8px; max-width:56ch; color:var(--body); font-size:16px; }
/* End Om oss */
/* Kontakt (design pack v2): top section, contact list, three-step form, steps aside, FAQ. Scoped under .kontakt. */
.kontakt .eyebrow{ font-size:13px; font-weight:600; color:var(--brass); }
.kontakt .top{ padding:36px 0 32px; border-bottom:1px solid var(--line-soft); }
@media (min-width:1024px){ .kontakt .top{ padding:56px 0 48px; } }
.kontakt .top h1{ margin-top:10px; font-family:'Fraunces', ui-serif, Georgia, serif; font-weight:400; font-size:clamp(34px, 4.6vw, 56px); line-height:1.06; color:var(--ivory); }
.kontakt .top .lead{ margin-top:12px; max-width:58ch; color:var(--body); font-size:17px; }
.kontakt .top-grid{ display:grid; gap:28px; }
@media (min-width:1024px){ .kontakt .top-grid{ grid-template-columns:minmax(0, 1fr) minmax(0, 560px); gap:56px; align-items:center; } }
.kontakt .meta{ display:flex; flex-wrap:wrap; gap:10px; margin-top:22px; }
.kontakt .meta li{ display:inline-flex; align-items:center; gap:8px; min-height:40px; padding:0 14px; border:1px solid var(--line-soft); border-radius:6px; font-size:14px; color:var(--body); }
.kontakt .meta svg{ color:var(--brass); }
.kontakt .clist{ border:1px solid var(--line-soft); border-radius:8px; background:var(--ink-2); overflow:hidden; }
.kontakt .crow{ display:grid; grid-template-columns:44px minmax(0, 1fr) auto; gap:14px; align-items:center; padding:16px 20px; border-bottom:1px solid var(--line-soft); }
.kontakt .crow .ico{ width:44px; height:44px; display:grid; place-items:center; border:1px solid var(--line); border-radius:6px; color:var(--brass); }
.kontakt .crow dt{ font-size:13px; color:var(--muted); }
.kontakt .crow dd{ margin:2px 0 0; font-size:17px; font-weight:600; overflow-wrap:anywhere; color:var(--ivory); }
.kontakt .crow .act{ display:inline-flex; align-items:center; gap:6px; min-height:44px; font-size:14px; font-weight:600; color:var(--brass); text-decoration:none; white-space:nowrap; }
.kontakt .crow .act:hover{ color:var(--brass-hover); text-decoration:underline; text-underline-offset:4px; }
@media (max-width:479px){ .kontakt .crow{ grid-template-columns:44px minmax(0, 1fr); } .kontakt .crow .act{ grid-column:2; min-height:36px; } }
.kontakt .urgent{ display:flex; gap:12px; padding:16px 20px; background:#161a20; font-size:15px; color:var(--body); }
.kontakt .urgent svg{ color:var(--brass); flex-shrink:0; margin-top:2px; }
.kontakt .urgent b{ color:var(--ivory); }
.kontakt .urgent a{ color:var(--brass); font-weight:600; }
.kontakt .sec{ padding:48px 0 72px; }
@media (min-width:1024px){ .kontakt .sec{ padding:72px 0 88px; } }
.kontakt .sec-title{ font-family:'Fraunces', ui-serif, Georgia, serif; font-weight:400; font-size:clamp(28px, 3.2vw, 38px); line-height:1.15; margin-top:8px; color:var(--ivory); }
.kontakt .sec-lead{ margin-top:10px; max-width:60ch; color:var(--body); }
.kontakt .form-grid{ display:grid; gap:32px; margin-top:28px; }
@media (min-width:1024px){ .kontakt .form-grid{ grid-template-columns:minmax(0, 1.5fr) minmax(0, 1fr); gap:48px; align-items:start; } }
.kontakt .form-card{ padding:24px; border:1px solid var(--line-soft); border-radius:8px; background:var(--ink-2); }
@media (min-width:640px){ .kontakt .form-card{ padding:32px; } }
.kontakt .hint{ font-size:14px; color:var(--muted); }
.kontakt .req{ color:var(--brass); }
.kontakt .step-legend{ display:flex; align-items:center; gap:10px; font-size:16px; font-weight:600; margin-bottom:12px; padding:0; color:var(--ivory); }
.kontakt .step-legend .n{ width:26px; height:26px; display:grid; place-items:center; border:1px solid rgba(201,161,92,.6); border-radius:50%; color:var(--brass); font-size:13px; }
.kontakt .block + .block{ margin-top:32px; }
.kontakt .topics{ display:grid; gap:10px; grid-template-columns:1fr; }
@media (min-width:560px){ .kontakt .topics{ grid-template-columns:1fr 1fr; } }
.kontakt .topic{ position:relative; }
.kontakt .topic input{ position:absolute; opacity:0; width:1px; height:1px; }
.kontakt .topic span{ display:flex; align-items:center; gap:10px; min-height:52px; padding:0 16px; border:1px solid var(--field); border-radius:6px; background:var(--ink); cursor:pointer; font-size:15px; font-weight:500; color:var(--ivory); }
.kontakt .topic span::before{ content:""; width:16px; height:16px; border:1px solid var(--field); border-radius:50%; flex-shrink:0; }
.kontakt .topic input:checked + span{ border-color:var(--ivory); background:var(--ivory); color:var(--ink); }
.kontakt .topic input:checked + span::before{ border:5px solid var(--ink); }
.kontakt .topic input:focus-visible + span{ outline:2px solid var(--brass); outline-offset:3px; }
.kontakt .topics[aria-invalid="true"] .topic span{ border-color:var(--error); }
.kontakt .fields{ display:grid; gap:16px; }
.kontakt .two{ display:grid; gap:16px; }
@media (min-width:640px){ .kontakt .two{ grid-template-columns:1fr 1fr; } }
.kontakt .f label{ display:block; margin-bottom:6px; font-size:14px; font-weight:500; color:var(--ivory); }
.kontakt .f .opt{ color:var(--muted); font-weight:400; }
.kontakt .control{ width:100%; min-height:48px; padding:0 14px; border:1px solid var(--field); border-radius:4px; background:var(--ink); color:var(--ivory); font:inherit; font-size:16px; }
.kontakt textarea.control{ min-height:140px; padding:12px 14px; resize:vertical; }
.kontakt .control::placeholder{ color:var(--muted); opacity:1; }
.kontakt .control[aria-invalid="true"]{ border-color:var(--error); }
.kontakt .counter{ margin-top:6px; font-size:13px; color:var(--muted); text-align:right; }
.kontakt .err{ margin-top:6px; font-size:14px; color:var(--error); }
.kontakt .summary{ margin-bottom:24px; padding:14px 16px; border:1px solid var(--error); border-radius:6px; color:var(--ivory); }
.kontakt .summary ul{ margin-top:6px; padding-left:18px; list-style:disc; }
.kontakt .summary a{ color:var(--error); }
.kontakt .callout{ margin-top:12px; padding:12px 14px; border:1px solid rgba(201,161,92,.5); border-radius:6px; font-size:14px; color:var(--body); }
.kontakt .callout a{ color:var(--brass); font-weight:600; }
.kontakt .consent{ margin-top:28px; display:flex; align-items:flex-start; gap:12px; font-size:14px; color:var(--muted); }
.kontakt .consent a{ color:var(--brass); text-decoration:underline; text-underline-offset:3px; }
.kontakt .submit-row{ display:flex; flex-wrap:wrap; align-items:center; gap:12px 16px; margin-top:20px; }
.kontakt .next{ padding:22px; border:1px solid var(--line-soft); border-radius:8px; }
.kontakt .next h3{ font-size:13px; font-weight:600; color:var(--brass); }
.kontakt .next ol{ counter-reset:s; margin-top:14px; display:grid; gap:16px; }
.kontakt .next li{ counter-increment:s; display:grid; grid-template-columns:32px 1fr; gap:2px 12px; }
.kontakt .next li::before{ content:counter(s); grid-row:span 2; width:32px; height:32px; display:grid; place-items:center; border:1px solid rgba(201,161,92,.6); border-radius:50%; color:var(--brass); font-family:'Fraunces', ui-serif, Georgia, serif; }
.kontakt .next b{ font-weight:600; color:var(--ivory); }
.kontakt .next p{ font-size:14px; color:var(--muted); }
.kontakt .faq-block{ margin-top:56px; }
.kontakt .faq{ margin-top:32px; border-top:1px solid var(--line-soft); }
.kontakt .faq-item{ border-bottom:1px solid var(--line-soft); }
.kontakt .faq-item h3{ font-size:17px; font-weight:600; color:var(--ivory); }
.kontakt .faq-btn{ width:100%; min-height:60px; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 4px; border:0; background:none; text-align:left; cursor:pointer; font:inherit; color:inherit; }
.kontakt .faq-btn:hover{ color:var(--brass-hover); }
.kontakt .faq-btn svg{ width:18px; height:18px; color:var(--brass); flex-shrink:0; transition:transform .2s; }
.kontakt .faq-btn[aria-expanded="true"] svg{ transform:rotate(180deg); }
.kontakt .faq-panel{ padding:0 4px 20px; max-width:68ch; color:var(--body); }
.kontakt .faq-panel > * + *{ margin-top:12px; }
.kontakt .faq-panel a{ color:var(--brass); }
/* Without JavaScript the accordion buttons do nothing, so every panel is shown (!important: the global [hidden] rule is). */
@media (scripting:none){ .kontakt .faq-panel[hidden]{ display:block !important; } }
/* The beboer address row is revealed by the topic cards, so without JavaScript it is always shown: no required star, a hint instead. */
.kontakt .nojs-only{ display:none; }
@media (scripting:none){ .kontakt #adresse-felt[hidden]{ display:block !important; } .kontakt #adresse-felt .req{ display:none; } .kontakt #adresse-felt .nojs-only{ display:inline; } }
@media (prefers-reduced-motion:reduce){ .kontakt .faq-btn svg{ transition:none; } }
/* End Kontakt */

/* ===========================================================
   STAFF DASHBOARD — sidebar shell, tables, badges, stat cards
=========================================================== */
/* ---- Tokens: light by default, dark via <html data-theme="dark"> ---- */
.dash-shell, .dash-login{
  --dash-bg:#f4f6f9; --dash-surface:#ffffff; --dash-surface-2:#f8f9fb;
  --dash-text:#1f2933; --dash-muted:#5b6370; --dash-border:#dfe3e8; --dash-border-strong:#8a919b;
  --dash-hover:rgba(15,23,42,.04); --dash-input-bg:#ffffff;
  --dash-shadow:0 1px 2px rgba(15,23,42,.06), 0 4px 12px rgba(15,23,42,.06);
  --dash-brass:#b88a3e; --dash-brass-soft:rgba(201,161,92,.16); --dash-brass-text:#8a6422;
  --dash-success-text:#157347; --dash-danger-text:#b02a2a; --dash-warning-text:#8a5a10;
  --dash-info:#2f80ed; --dash-success:#1e9e5a; --dash-warning:#d9922b; --dash-danger:#c93636;
  --dash-danger-soft:rgba(201,54,54,.16);
  --dash-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6370' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  --dash-side-bg:#15181d; --dash-side-text:#b8bec7; --dash-side-muted:#7d8591;
  --dash-side-hover:rgba(255,255,255,.06); --dash-side-border:rgba(255,255,255,.08);
  color:var(--dash-text); color-scheme:light;
}
html[data-theme="dark"] .dash-shell, html[data-theme="dark"] .dash-login{
  color-scheme:dark;
  --dash-bg:#0b0d10; --dash-surface:#141920; --dash-surface-2:#1a2028;
  --dash-text:#e6e9ee; --dash-muted:#98a0ab; --dash-border:#2a313a; --dash-border-strong:#667180;
  --dash-hover:rgba(255,255,255,.05); --dash-input-bg:#0e1115; --dash-shadow:inset 0 1px 0 rgba(255,255,255,.05), 0 1px 3px rgba(0,0,0,.45);
  --dash-brass:#c9a15c; --dash-brass-soft:rgba(201,161,92,.14); --dash-brass-text:#e0b872;
  --dash-success-text:#3ccf86; --dash-danger-text:#ef6b6b; --dash-warning-text:#d9922b;
  --dash-danger-soft:rgba(239,107,107,.2);
  --dash-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2398a0ab' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

/* ---- App shell ---- */
.dash-shell{ display:flex; flex-wrap:wrap; min-height:100vh; background:var(--dash-bg); color:var(--dash-text); }
.dash-sidebar{
  position:fixed; top:0; bottom:0; left:0; width:250px; z-index:40;
  display:flex; flex-direction:column; overflow:hidden;
  background:var(--dash-side-bg); color:var(--dash-side-text);
  transition:transform .18s ease, visibility 0s linear 0s;
}
.dash-main{ flex:1; min-width:0; margin-left:250px; display:flex; flex-direction:column; transition:margin-left .18s ease; }
.dash-backdrop{ position:fixed; inset:0; z-index:35; background:rgba(0,0,0,.5); }
.dash-backdrop[hidden]{ display:none; }
@media (min-width:1024px){
  .dash-shell.is-collapsed .dash-sidebar{ transform:translateX(-100%); visibility:hidden; transition:transform .18s ease, visibility 0s linear .18s; }
  .dash-shell.is-collapsed .dash-main{ margin-left:0; }
  .dash-backdrop{ display:none !important; }
}
@media (max-width:1023.98px){
  .dash-sidebar{ position:static; width:100%; }
  .dash-main{ margin-left:0; flex:1 1 100%; }
  html.js .dash-sidebar{ position:fixed; width:250px; transform:translateX(-100%); visibility:hidden; transition:transform .18s ease, visibility 0s linear .18s; }
  html.js .dash-shell.is-open .dash-sidebar{ transform:none; visibility:visible; transition:transform .18s ease, visibility 0s linear 0s; }
}

/* ---- Sidebar ---- */
.dash-brand{ display:flex; align-items:center; gap:.7rem; height:64px; padding:0 1.1rem; flex:none; border-bottom:1px solid var(--dash-side-border); color:#fff; }
.dash-brand-mark{ width:34px; height:34px; display:grid; place-items:center; border:1px solid rgba(201,161,92,.5); border-radius:8px; color:#c9a15c; }
.dash-brand-name{ display:block; font-weight:600; font-size:1rem; line-height:1.1; }
.dash-brand-sub{ display:block; font-size:.75rem; letter-spacing:.16em; text-transform:uppercase; color:var(--dash-side-muted); }
.dash-nav{ flex:1; min-height:0; overflow-y:auto; padding:.75rem .6rem 1rem; }
.dash-nav-label{ padding:1rem .6rem .35rem; font-size:.75rem; letter-spacing:.14em; text-transform:uppercase; color:var(--dash-side-muted); }
.dash-nav-link, .dash-nav-parent{
  display:flex; align-items:center; gap:.7rem; width:100%;
  padding:.55rem .7rem; margin:.1rem 0; border:0; border-radius:6px; background:none;
  color:var(--dash-side-text); font-size:.88rem; text-align:left; cursor:pointer;
  transition:background .15s ease, color .15s ease;
}
.dash-nav-link:hover, .dash-nav-parent:hover{ background:var(--dash-side-hover); color:#fff; }
.dash-nav-link.is-active{
  background:linear-gradient(90deg, rgba(201,161,92,.22), rgba(201,161,92,.08));
  color:#fff; box-shadow:inset 3px 0 0 #c9a15c;
}
.dash-nav-parent.has-active{ color:#fff; }
.dash-nav-badge{ margin-left:auto; min-width:1.35rem; padding:0 .45rem; border-radius:999px; background:var(--dash-danger); color:#fff; font-size:.75rem; font-weight:600; text-align:center; line-height:1.35rem; }
.dash-nav-chevron{ margin-left:auto; display:inline-flex; transition:transform .15s ease; }
.dash-tree:not([open]) .dash-nav-chevron{ transform:rotate(-90deg); }
.dash-nav-sub{ margin:.1rem 0 .25rem 1.15rem; padding-left:.6rem; border-left:1px solid var(--dash-side-border); }
.dash-nav-sublink{ padding-left:.8rem; font-size:.84rem; }
.dash-sidebar-footer{ flex:none; padding:.75rem .6rem; border-top:1px solid var(--dash-side-border); }

/* ---- Top bar ---- */
.dash-topbar{
  position:sticky; top:0; z-index:30; display:flex; align-items:center; gap:.5rem;
  height:64px; padding:0 1rem;
  background:var(--dash-surface); border-bottom:1px solid var(--dash-border); box-shadow:var(--dash-shadow);
}
.dash-topbar-spacer{ flex:1; }
.dash-topbar-link{ display:none; padding:.4rem .6rem; border-radius:6px; font-size:.85rem; color:var(--dash-muted); }
.dash-topbar-link:hover{ background:var(--dash-hover); color:var(--dash-text); }
@media (min-width:768px){ .dash-topbar-link{ display:inline-flex; } }
.dash-icon-btn{
  position:relative; width:38px; height:38px; display:inline-grid; place-items:center;
  border:0; border-radius:8px; background:none; color:var(--dash-muted); cursor:pointer;
}
.dash-icon-btn:hover{ background:var(--dash-hover); color:var(--dash-text); }
.dash-bell-badge{
  position:absolute; top:2px; right:2px; min-width:1.15rem; height:1.15rem; padding:0 .25rem;
  border-radius:999px; background:var(--dash-danger); color:#fff; font-size:.75rem; font-weight:700; line-height:1.15rem; text-align:center;
}
.dash-icon-sun{ display:none; }
html[data-theme="dark"] .dash-icon-sun{ display:inline-flex; }
html[data-theme="dark"] .dash-icon-moon{ display:none; }

/* ---- User menu ---- */
.user-menu{ position:relative; }
.user-menu-trigger{ display:flex; align-items:center; gap:.6rem; padding:.3rem .5rem; border:0; border-radius:8px; background:none; color:var(--dash-text); cursor:pointer; }
.user-menu-trigger:hover{ background:var(--dash-hover); }
.user-menu-avatar{ width:34px; height:34px; display:grid; place-items:center; border-radius:999px; background:linear-gradient(135deg,#c9a15c,#8a733f); color:#1a1409; font-size:.75rem; font-weight:700; }
.user-menu-chevron{ color:var(--dash-muted); transition:transform .15s ease; }
.user-menu-trigger[aria-expanded="true"] .user-menu-chevron{ transform:rotate(180deg); }
.user-menu-dropdown{
  position:absolute; top:calc(100% + 8px); right:0; min-width:200px; z-index:50; overflow:hidden;
  background:var(--dash-surface); border:1px solid var(--dash-border); border-radius:10px; box-shadow:0 12px 28px rgba(15,23,42,.18);
}
.user-menu-header{ padding:.8rem 1rem; border-bottom:1px solid var(--dash-border); }
.user-menu-name{ display:block; font-size:.88rem; font-weight:600; color:var(--dash-text); }
.user-menu-role{ display:block; margin-top:.1rem; font-size:.75rem; color:var(--dash-muted); }
.user-menu-item{ display:flex; align-items:center; gap:.6rem; width:100%; padding:.65rem 1rem; border:0; background:none; color:var(--dash-muted); font-size:.88rem; text-align:left; cursor:pointer; }
.user-menu-item:hover{ background:var(--dash-hover); color:var(--dash-text); }

/* ---- Page header, alerts, cards, buttons ---- */
.dash-content{ flex:1; padding:0 1.25rem 2rem; }
.dash-page-header{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:.5rem 1rem; padding:1.25rem 1.25rem 1rem; }
.dash-title{ font-size:1.625rem; font-weight:700; letter-spacing:-.015em; line-height:1.2; color:var(--dash-text); }
.dash-breadcrumb{ display:flex; flex-wrap:wrap; align-items:center; gap:.4rem; font-size:.85rem; color:var(--dash-muted); }
.dash-breadcrumb li + li::before{ content:"/"; margin-right:.4rem; color:var(--dash-muted); }
.dash-breadcrumb a{ color:var(--dash-brass-text); }
.dash-breadcrumb a:hover{ text-decoration:underline; }
.dash-alerts{ display:grid; gap:.5rem; padding:0 1.25rem; margin-bottom:1rem; }
.dash-alert{ display:flex; align-items:center; gap:.7rem; padding:.75rem 1rem; border:1px solid; border-radius:8px; font-size:.9rem; }
.dash-alert-success{ background:rgba(30,158,90,.1); border-color:rgba(30,158,90,.35); color:var(--dash-success-text); }
.dash-alert-danger{ background:rgba(214,69,69,.1); border-color:rgba(214,69,69,.35); color:var(--dash-danger-text); }
.dash-alert-warning{ background:rgba(217,146,43,.12); border-color:rgba(217,146,43,.4); color:var(--dash-warning-text); }
.dash-alert-close{ margin-left:auto; border:0; background:none; color:inherit; opacity:.7; cursor:pointer; }
.dash-alert-close:hover{ opacity:1; }
.dash-card{ min-width:0; animation:dash-rise .12s ease-out both; background:var(--dash-surface); border:1px solid var(--dash-border); border-radius:10px; box-shadow:var(--dash-shadow); }
.dash-card-header{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:.75rem; padding:.9rem 1.1rem; border-bottom:1px solid var(--dash-border); }
.dash-card-title{ font-size:.95rem; font-weight:600; color:var(--dash-text); }
.dash-card-body{ padding:1.1rem; }
.dash-card-footer{ display:flex; flex-wrap:wrap; gap:.6rem; padding:.9rem 1.1rem; border-top:1px solid var(--dash-border); background:var(--dash-surface-2); border-radius:0 0 10px 10px; }
/* CMS forms: the form is the card, so its footer sticks to the viewport bottom while the form scrolls. */
.dash-card-form > .dash-card-footer{ position:sticky; bottom:0; z-index:5; }
.dash-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.45rem;
  padding:.5rem .95rem; border:1px solid transparent; border-radius:7px;
  font-size:.85rem; font-weight:500; line-height:1.2; white-space:nowrap; cursor:pointer;
  transition:background .15s ease, border-color .15s ease, filter .15s ease;
}
.dash-btn-primary{ background:var(--dash-brass); color:#1a1409; }
.dash-btn-primary:hover{ filter:brightness(1.07); }
.dash-btn-outline{ background:transparent; border-color:var(--dash-border); color:var(--dash-text); }
.dash-btn-outline:hover{ background:var(--dash-hover); }
.dash-btn-ghost{ background:transparent; color:var(--dash-brass-text); }
.dash-btn-ghost:hover{ background:var(--dash-brass-soft); }
.dash-btn-danger{ background:var(--dash-danger); color:#fff; }
.dash-btn-danger:hover{ filter:brightness(1.08); }
.dash-btn-sm{ padding:.32rem .65rem; font-size:.8rem; }
.dash-btn:disabled{ opacity:.6; cursor:progress; }
.dash-btn:focus-visible, .dash-icon-btn:focus-visible, .dash-nav-link:focus-visible, .dash-nav-parent:focus-visible,
.user-menu-trigger:focus-visible, .user-menu-item:focus-visible, .dash-icon-action:focus-visible, .dash-list-row:focus-visible,
.dash-small-box-footer:focus-visible, .dash-alert-close:focus-visible,
.dash-sort:focus-visible, .dash-chip:focus-visible, .dash-chip-clear:focus-visible{ outline:2px solid var(--dash-brass); outline-offset:2px; }
/* Inside overflow:hidden parents an outer ring is clipped, so draw it inside. */
.dash-small-box-footer:focus-visible, .user-menu-item:focus-visible{ outline-offset:-2px; }

/* ---- Lists: toolbar, form fields, table, row actions, pagination ---- */
.dash-shell .field, .dash-login .field{
  width:100%; padding:.5rem .75rem; border:1px solid var(--dash-border-strong); border-radius:7px; scroll-margin-bottom:5rem;
  background:var(--dash-input-bg); color:var(--dash-text); font-size:.88rem; line-height:1.4;
}
.dash-shell .field:is(:focus), .dash-login .field:is(:focus){ outline:none; border-color:var(--dash-brass); box-shadow:0 0 0 3px var(--dash-brass-soft); }
.dash-shell select.field, .dash-login select.field{ background-color:var(--dash-input-bg); padding-right:2.75rem; }
.dash-shell select.field{ background-image:var(--dash-chevron); background-repeat:no-repeat; background-position:right .85rem center; background-size:.9rem; cursor:pointer; }
.dash-shell .field{ transition:border-color .12s ease, box-shadow .12s ease; }
.dash-shell .field:hover:not(:focus){ border-color:var(--dash-muted); }
.dash-shell .field:disabled{ opacity:.6; cursor:not-allowed; background-color:var(--dash-surface-2); }
.dash-shell .field::placeholder{ color:var(--dash-muted); opacity:1; }
.dash-toolbar{ justify-content:space-between; }
.dash-toolbar-form{ display:flex; flex-wrap:wrap; align-items:center; gap:.5rem; flex:1; }
.dash-toolbar-form .field{ width:auto; min-width:11rem; }
.dash-table-wrap{ overflow-x:auto; }
.dash-table{ width:100%; border-collapse:collapse; font-size:.88rem; }
/* Several tables stacked on one page (Sidekort): the same column widths in each, so the columns line up. */
.dash-table-fixed{ table-layout:fixed; }
.dash-table-fixed .dash-col-order{ width:9rem; }
.dash-table-fixed .dash-col-actions{ width:6rem; }
.dash-table th{
  padding:.7rem 1rem; text-align:left; white-space:nowrap; background:var(--dash-surface-2);
  border-bottom:1px solid var(--dash-border); color:var(--dash-muted); font-size:.75rem; font-weight:600; letter-spacing:.06em; text-transform:uppercase;
}
.dash-table td{ padding:.65rem 1rem; border-bottom:1px solid var(--dash-border); color:var(--dash-text); vertical-align:middle; }
.dash-table tbody tr:hover td, .dash-table tbody tr:focus-within td{ background:var(--dash-hover); }
.dash-num{ font-variant-numeric:tabular-nums; white-space:nowrap; }
.dash-table tr.is-unhandled td:first-child{ box-shadow:inset 3px 0 0 var(--dash-warning); font-weight:600; }
.dash-mail-link{ color:var(--dash-brass-text); }
.dash-mail-link:hover{ text-decoration:underline; }
.dash-mail-link:focus-visible{ outline:2px solid var(--dash-brass); outline-offset:2px; }
.dash-list-meta{ display:flex; flex-wrap:wrap; align-items:center; gap:.5rem 1rem; padding:.7rem 1.1rem; border-bottom:1px solid var(--dash-border); }
.dash-result-count{ font-size:.875rem; color:var(--dash-muted); }
.dash-chips{ display:flex; flex-wrap:wrap; align-items:center; gap:.4rem; list-style-type:none; padding:0; margin:0; }
.dash-chip{ display:inline-flex; align-items:center; gap:.35rem; padding:.2rem .6rem; border:1px solid var(--dash-border); border-radius:999px; background:var(--dash-surface-2); color:var(--dash-text); font-size:.8rem; }
.dash-chip:hover{ border-color:var(--dash-brass); }
.dash-chip-clear{ display:inline-flex; align-items:center; padding:.2rem .4rem; color:var(--dash-brass-text); font-size:.8rem; }
.dash-chip-clear:hover{ text-decoration:underline; }
.dash-sort{ display:inline-flex; align-items:center; gap:.3rem; color:var(--dash-muted); }
.dash-sort:hover{ color:var(--dash-text); }
.dash-table th[aria-sort] .dash-sort{ color:var(--dash-text); }
.dash-actions{ display:flex; align-items:center; justify-content:flex-end; gap:.4rem; }
.dash-icon-action{ width:32px; height:32px; display:inline-grid; place-items:center; border:1px solid transparent; border-radius:7px; color:var(--dash-muted); transition:border-color .15s ease, color .15s ease; }
.dash-table tbody tr:hover .dash-icon-action, .dash-table tbody tr:focus-within .dash-icon-action{ border-color:var(--dash-border); }
.dash-icon-action:hover{ border-color:var(--dash-brass); color:var(--dash-brass-text); }
.dash-icon-action-danger:hover{ border-color:var(--dash-danger); color:var(--dash-danger); }
.dash-pagination{ display:flex; align-items:center; justify-content:center; gap:.75rem; padding:.9rem; border-top:1px solid var(--dash-border); font-size:.85rem; color:var(--dash-muted); }


/* ---- Overview: small boxes, list rows, badges, empty state ---- */
.dash-small-box{ position:relative; animation:dash-rise .12s ease-out both; display:flex; flex-direction:column; overflow:hidden; background:var(--dash-surface); border:1px solid var(--dash-border); border-radius:10px; box-shadow:var(--dash-shadow); }
.dash-small-box-inner{ position:relative; padding:1rem 1.1rem .9rem; }
/* A wrapped trend line makes one box taller; the grid stretches the others, so the body grows and the footer stays at the bottom. */
.dash-small-box > .dash-small-box-inner{ flex:1; }
.dash-small-box-number{ font-size:2rem; font-weight:700; letter-spacing:-.02em; font-variant-numeric:tabular-nums; line-height:1.1; color:var(--dash-text); }
.dash-small-box-label{ margin-top:.25rem; font-size:.875rem; color:var(--dash-muted); }
.dash-small-box-note{ margin-top:.15rem; font-size:.8125rem; color:var(--dash-muted); }
.dash-small-box-trend{ margin-top:.35rem; font-size:.8125rem; font-weight:600; font-variant-numeric:tabular-nums; color:var(--dash-text); }
.dash-small-box-icon{ position:absolute; top:.9rem; right:1rem; width:44px; height:44px; display:grid; place-items:center; border-radius:10px; background:var(--dash-brass-soft); color:var(--dash-muted); pointer-events:none; }
.dash-small-box-icon svg{ width:24px; height:24px; }
.dash-small-box-footer{ display:flex; align-items:center; justify-content:center; gap:.4rem; padding:.55rem; background:var(--dash-surface-2); border-top:1px solid var(--dash-border); color:var(--dash-brass-text); font-size:.875rem; transition:background .15s ease; }
.dash-small-box-footer:hover{ background:var(--dash-hover); }
.dash-small-box-footer svg{ transition:transform .15s ease; }
.dash-small-box-footer:hover svg{ transform:translateX(3px); }
.dash-small-box:nth-child(2){ animation-delay:.02s; }
.dash-small-box:nth-child(3){ animation-delay:.04s; }
.dash-small-box:nth-child(4){ animation-delay:.06s; }
/* The one accent on the overview: red only while something is unhandled. The bar is a pseudo-element
   because --dash-shadow is "none" in dark mode, which would void a box-shadow list that includes it. */
.dash-small-box-attention::before{ content:""; position:absolute; top:0; bottom:0; left:0; width:3px; background:var(--dash-danger); }
.dash-small-box-attention .dash-small-box-number{ color:var(--dash-danger-text); }
.dash-small-box-attention .dash-small-box-note{ color:var(--dash-danger-text); }

.dash-list-row{ display:flex; align-items:center; justify-content:space-between; gap:.75rem; padding:.7rem 1.1rem; border-bottom:1px solid var(--dash-border); color:var(--dash-text); }
.dash-list-row:last-of-type{ border-bottom:0; }
.dash-list-row:hover{ background:var(--dash-hover); }
.dash-list-title{ font-size:.9rem; font-weight:500; }
.dash-list-sub{ font-size:.78rem; color:var(--dash-muted); }
.dash-badge{ display:inline-flex; align-items:center; padding:.18rem .6rem; border-radius:999px; font-size:.75rem; font-weight:600; white-space:nowrap; }
.dash-badge::before{ content:""; width:.4rem; height:.4rem; margin-right:.4rem; border-radius:999px; background:currentColor; }
.dash-badge-success{ background:rgba(30,158,90,.14); color:var(--dash-success-text); }
.dash-badge-muted{ background:var(--dash-hover); color:var(--dash-muted); }
.dash-badge-warning{ background:rgba(217,146,43,.16); color:var(--dash-warning-text); }
.dash-badge-danger{ background:rgba(214,69,69,.14); color:var(--dash-danger-text); }
.dash-empty{ display:flex; flex-direction:column; align-items:center; gap:.4rem; padding:2.5rem 1rem; text-align:center; color:var(--dash-muted); font-size:.9rem; }

.dash-empty > svg:first-child{ box-sizing:content-box; padding:.8rem; margin-bottom:.3rem; border-radius:999px; border:1px solid var(--dash-border); background:var(--dash-surface-2); }

/* ---- Forms ---- */
.dash-form-grid, .dash-form-grid-2{ display:grid; gap:1.1rem; grid-template-columns:minmax(0,1fr); }
@media (min-width:768px){ .dash-form-grid, .dash-form-grid-2{ grid-template-columns:repeat(2, minmax(0, 1fr)); } }
.dash-field-wide{ grid-column:1 / -1; }
.dash-field{ min-width:0; }
.dash-shell input[type="file"]{ max-width:100%; }
.dash-field label, .dash-label{ display:block; margin-bottom:.35rem; font-size:.85rem; font-weight:600; color:var(--dash-text); }
.dash-field .dash-check{ display:flex; align-items:center; gap:.6rem; }
.dash-field.dash-check-row{ display:flex; align-items:center; gap:.6rem; grid-column:1 / -1; padding:.7rem .9rem; border:1px solid var(--dash-border); border-radius:8px; background:var(--dash-surface-2); }
.dash-field .dash-check span, .dash-field.dash-check-row label{ margin:0; font-size:.88rem; color:var(--dash-text); }
.dash-field.dash-check-row{ min-height:2.75rem; transition:border-color .12s ease; }
.dash-field.dash-check-row:hover{ border-color:var(--dash-muted); }
.dash-field.dash-check-row label{ cursor:pointer; display:flex; align-items:center; gap:.5rem; margin-right:1.25rem; }
.dash-field.dash-check-row input[type="radio"]{ width:1.15rem; height:1.15rem; flex:none; cursor:pointer; }
.dash-field label.is-required::after{ content:" *"; content:" *" / ""; color:var(--dash-danger-text); }
.dash-help{ margin-top:.3rem; font-size:.8rem; line-height:1.45; color:var(--dash-muted); }
.dash-error{ margin-top:.3rem; font-size:.82rem; font-weight:500; line-height:1.45; color:var(--dash-danger-text); }
.dash-error::before{ content:"⚠ "; content:"⚠ " / ""; font-weight:700; }
.dash-help-warning{ margin-top:.3rem; font-size:.75rem; color:var(--dash-warning-text); }
.dash-advanced{ border:1px solid var(--dash-border); border-radius:8px; padding:.65rem .9rem; background:var(--dash-surface-2); }
.dash-advanced > summary{ cursor:pointer; font-size:.85rem; font-weight:500; color:var(--dash-text); }
.dash-advanced[open] > summary{ margin-bottom:.8rem; }
.dash-advanced > .dash-help{ margin-bottom:.8rem; }
.dash-advanced-state{ margin-left:.5rem; font-size:.78rem; font-weight:400; color:var(--dash-muted); }
.dash-advanced-actions{ margin-top:.9rem; }
.dash-suggest-wrap{ position:relative; }
.dash-suggest{ position:absolute; z-index:30; left:0; right:0; margin:.2rem 0 0; padding:.25rem; list-style-type:none; max-height:15rem; overflow-y:auto; background:var(--dash-surface); border:1px solid var(--dash-border); border-radius:8px; }
.dash-suggest[hidden]{ display:none; }
.dash-suggest-option{ padding:.5rem .7rem; border-radius:6px; font-size:.85rem; color:var(--dash-text); cursor:pointer; }
.dash-suggest-option:hover, .dash-suggest-option[aria-selected="true"]{ background:var(--dash-surface-2); }
.dash-combo-option{ padding:.5rem .7rem; border-radius:6px; font-size:.85rem; color:var(--dash-text); cursor:pointer; }
.dash-combo-option:hover, .dash-combo-option[aria-selected="true"]{ background:var(--dash-surface-2); }
.dash-field input[data-combo-input]{ padding-right:2rem; background-image:var(--dash-chevron); background-repeat:no-repeat; background-position:right .75rem center; background-size:.9rem; }
.dash-field.has-error .field{ border-color:var(--dash-danger); box-shadow:0 0 0 1px var(--dash-danger); }
.dash-field.has-error .field:is(:focus){ border-color:var(--dash-danger); box-shadow:0 0 0 3px var(--dash-danger-soft); }
.dash-form-section{ grid-column:1 / -1; margin-top:.9rem; padding-bottom:.45rem; border-bottom:1px solid var(--dash-border); font-size:1rem; font-weight:600; color:var(--dash-text); }
.dash-form-grid > .dash-form-section:first-child{ margin-top:0; }
.dash-form-actions{ position:sticky; bottom:0; z-index:5; display:flex; flex-wrap:wrap; gap:.75rem; margin:1.5rem -1.1rem -1.1rem; padding:.85rem 1.1rem; background:var(--dash-surface); border-top:1px solid var(--dash-border); border-radius:0 0 10px 10px; box-shadow:0 -8px 14px -10px rgba(15,23,42,.35); }
.dash-form-actions .dash-btn{ min-height:2.5rem; }
@media (max-width:767px){
  .dash-shell .field{ min-height:2.75rem; }
  .dash-form-actions .dash-btn{ min-height:2.75rem; }
  .dash-field.dash-check-row{ min-height:3rem; }
}
.dash-shell textarea.field{ resize:vertical; }

/* ---- Modal dialog (property create/edit) ---- */
dialog.modal{ border:none; padding:0; background:transparent; color:inherit; max-width:760px; width:94vw; }
dialog.modal[open]{ animation:dash-rise .15s ease-out both; }
dialog.modal::backdrop{ background:rgba(15,23,42,.55); }
dialog.modal .modal-card{ max-height:90vh; overflow-y:auto; border-radius:12px; background:var(--dash-surface); color:var(--dash-text); }
dialog.modal .modal-card:focus{ outline:none; }
dialog.modal .dash-card{ border:0; box-shadow:none; }

/* ---- Image dropzone ---- */
.image-dropzone{
  position:relative; padding:1.5rem; text-align:center; cursor:pointer;
  border:1px dashed var(--dash-border); border-radius:10px; background:var(--dash-surface-2);
  transition:border-color .15s ease, background .15s ease;
}
.image-dropzone:hover{ border-color:var(--dash-brass); }
.image-dropzone.dragover{ border-color:var(--dash-brass); background:var(--dash-brass-soft); }
.image-dropzone input[type="file"]{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.image-dropzone-preview{ display:flex; justify-content:center; }
.image-dropzone-preview img{ width:96px; height:96px; object-fit:cover; border-radius:8px; border:1px solid var(--dash-border); }
.image-dropzone-icon{ margin:0 auto .5rem; color:var(--dash-muted); }
.image-dropzone-text{ font-size:.8125rem; color:var(--dash-muted); }
.image-dropzone-text strong{ color:var(--dash-brass-text); font-weight:600; }
.image-dropzone-hint{ margin-top:.25rem; font-size:.75rem; color:var(--dash-muted); }

/* ---- Detail list, confirm card, login ---- */
.dash-detail-list{ display:grid; gap:.9rem; }
.dash-detail-list dt{ font-size:.75rem; font-weight:600; letter-spacing:.05em; text-transform:uppercase; color:var(--dash-muted); }
.dash-detail-list dd{ margin-top:.15rem; font-size:.92rem; color:var(--dash-text); }
.dash-detail-list a{ color:var(--dash-brass-text); }
.dash-detail-list a:hover{ text-decoration:underline; }
.dash-confirm{ max-width:28rem; margin:2rem auto; padding:2rem 1.5rem; text-align:center; display:grid; gap:.6rem; justify-items:center; }
.dash-confirm-icon{ width:56px; height:56px; display:grid; place-items:center; border-radius:999px; background:rgba(214,69,69,.12); color:var(--dash-danger); }
.dash-login{ width:100%; max-width:24rem; display:grid; gap:1.25rem; justify-items:center; }
.dash-login-brand{ display:flex; align-items:center; gap:.7rem; color:var(--dash-text); }
.dash-login-brand .dash-brand-sub{ color:var(--dash-muted); }
.dash-login-card{ width:100%; padding:1.75rem; background:var(--dash-surface); border:1px solid var(--dash-border); border-radius:12px; box-shadow:0 18px 40px rgba(15,23,42,.12); }
.dash-login-back{ display:inline-flex; }
html:has(.dash-login) body{ background:radial-gradient(1200px 600px at 50% -10%, rgba(201,161,92,.16), transparent), #f4f6f9; }
html[data-theme="dark"]:has(.dash-login) body{ background:radial-gradient(1200px 600px at 50% -10%, rgba(201,161,92,.14), transparent), #0b0d10; }

/* ---- Lists below md: each row becomes a card, cells are labelled by data-label ---- */
@media (max-width:767.98px){
  .dash-table thead{ position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0, 0, 0, 0); white-space:nowrap; border:0; }
  .dash-table, .dash-table tbody{ display:block; }
  .dash-table tr{ display:block; padding:.4rem 0; border-bottom:1px solid var(--dash-border); }
  .dash-table td{ display:flex; align-items:center; justify-content:space-between; gap:1rem; min-width:0; overflow-wrap:anywhere; padding:.4rem 1rem; border-bottom:0; text-align:right; }
  .dash-table td:not([data-label]){ justify-content:flex-end; }
  .dash-table td[colspan]{ justify-content:center; }
  .dash-table tbody tr:hover td{ background:none; }
  .dash-table tbody tr:hover{ background:var(--dash-hover); }
  .dash-table td[data-label]::before{ content:attr(data-label); flex:none; font-size:.75rem; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--dash-muted); text-align:left; }
  .dash-table tr.is-unhandled{ box-shadow:inset 3px 0 0 var(--dash-warning); }
  .dash-table tbody tr.is-unhandled td:first-child{ box-shadow:none; }
}

@keyframes dash-rise{ from{ opacity:0; transform:translateY(6px); } to{ opacity:1; transform:none; } }

/* ---- Touch targets and reduced motion ---- */
@media (pointer:coarse){
  .dash-icon-action, .dash-icon-btn{ width:44px; height:44px; }
  .dash-btn-sm, .user-menu-trigger, .dash-alert-close, .dash-nav-link, .dash-nav-parent, .dash-sort, .dash-chip, .dash-chip-clear{ min-height:44px; }
  .dash-alert-close{ min-width:44px; }
  .dash-actions{ gap:.5rem; }
}
@media (prefers-reduced-motion: reduce){
  .dash-shell, .dash-shell *, dialog.modal{ transition:none !important; animation:none !important; }
}

/* Scrollspy (design_1.md 7): aktiv snarvei markeres med aria-current="location" */
[data-scrollspy] a[aria-current="location"] { color: #fff; background: rgba(201,161,92,.10); box-shadow: inset 2px 0 0 var(--brass); }

/* For beboere sidebar: brass marker on the topic link the scrollspy marks active. */
.toc-link.is-active::before { content:''; position:absolute; left:20px; top:10px; bottom:10px; width:7px; border-radius:4px; background:#c9a15c; }
