/* =====================================================================
   D40 Kurator – designsystem
   Inspirert av Ønskeskyen: lys flate, runde kort, pill-knapper, marineblå,
   store serif-overskrifter. Aksent: D40 rustrød.
   ===================================================================== */
:root {
  --bg: #FFFFFF;
  --warm: #F7F2EA;          /* varm flate: panel, profil, seksjoner */
  --warm-2: #EFE7DB;        /* knapper/kort på varm flate */
  --tile: #F3F2EF;          /* bakgrunn bak verksbilder */
  --ink: #1B2436;           /* tekst og marineblå */
  --ink-2: #39404F;
  --muted: #5F6673;
  --line: #E6E2DA;
  --line-strong: #C9C3B8;
  --accent: #8C2F1B;        /* D40 rustrød */
  --accent-hover: #74260F;
  --accent-soft: #F6E7E1;
  --ok: #1E6B3A;
  --ok-soft: #E6F2EA;
  --radius: 12px;
  --radius-lg: 20px;
  --pill: 999px;
  --shadow: 0 1px 2px rgba(27, 36, 54, 0.06), 0 4px 16px rgba(27, 36, 54, 0.06);
  --serif: Fraunces, Georgia, serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.5;
  display: flex; flex-direction: column; min-height: 100vh;
}
body.warm { background: var(--warm); }
img { max-width: 100%; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
h1, h2, h3 { margin: 0; color: var(--ink); }
h1 { font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1.1; letter-spacing: -0.01em; }
h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.15; }
h3 { font-size: 17px; font-weight: 600; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.lead { font-size: 18px; color: var(--ink-2); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.main { flex: 1; padding-top: 32px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 32px; }
.narrow { max-width: 560px; width: 100%; display: flex; flex-direction: column; gap: 20px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header { background: var(--bg); position: sticky; top: 0; z-index: 10; border-bottom: 1px solid transparent; }
body.warm .site-header { background: var(--warm); }
.header-row { display: flex; align-items: center; gap: 28px; min-height: 80px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo-mark {
  width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: #FFFFFF;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 600; font-size: 17px; letter-spacing: 0.02em;
}
.logo-text { font-weight: 600; font-size: 17px; }
.logo:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 22px; font-weight: 500; }
.nav a { text-decoration: none; padding: 6px 0; }
.nav a[aria-current="page"] { color: var(--accent); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.avatar-link { display: inline-flex; text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #E8EAF0; padding: 56px 0 40px; margin-top: auto; }
.site-footer a { color: #FFFFFF; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #FFFFFF; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-grid h3 { color: #FFFFFF; font-size: 18px; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand .logo-text { color: #FFFFFF; font-size: 22px; }
.footer-brand p { color: #B9BFCC; max-width: 34ch; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 13px; color: #B9BFCC; }

/* ---------- Knapper ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: var(--pill); border: 1px solid transparent;
  background: var(--accent); color: #FFFFFF; font: inherit; font-weight: 600; font-size: 16px;
  text-decoration: none; cursor: pointer; white-space: nowrap; align-self: flex-start;
}
.button:hover { background: var(--accent-hover); color: #FFFFFF; }
.button-dark { background: var(--ink); }
.button-dark:hover { background: #0F1522; }
.button-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.button-secondary:hover { background: var(--ink); color: #FFFFFF; }
.button-soft { background: var(--warm-2); color: var(--ink); }
.button-soft:hover { background: var(--line); color: var(--ink); }
.button-danger { background: #A3261A; }
.button-small { min-height: 38px; padding: 0 16px; font-size: 14px; }
.button:disabled { opacity: 0.4; cursor: not-allowed; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; cursor: pointer; }
.link-button:hover { color: var(--accent); }
.icon-button {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg);
  display: inline-flex; align-items: center; justify-content: center; color: var(--ink); cursor: pointer; font: inherit; font-size: 18px;
}
.icon-button:hover:not(:disabled) { border-color: var(--ink); }
.icon-button:disabled { opacity: 0.35; cursor: not-allowed; }
.round-plus {
  width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: #FFFFFF; border: 0;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer;
}
.round-plus:hover { background: var(--accent); color: #FFFFFF; }
form.inline { display: inline; }

/* ---------- Kort, meldinger, merker ---------- */
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
body.warm .card { border-color: transparent; box-shadow: var(--shadow); }
.card > :last-child { margin-bottom: 0; }
.card h2 { font-size: 24px; margin-bottom: 12px; }
.banner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 16px 20px;
  border-radius: var(--radius); background: var(--accent-soft); color: #5A1F12;
}
.banner p { margin: 0; }
.banner strong { color: var(--accent); }
.flashes { display: flex; flex-direction: column; gap: 8px; }
.flash { margin: 0; padding: 14px 18px; border-radius: var(--radius); background: var(--warm-2); }
.flash-error { background: var(--accent-soft); color: #5A1F12; }
.flash-success { background: var(--ok-soft); color: var(--ok); }
.badge {
  display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: var(--pill);
  font-size: 13px; font-weight: 600; background: var(--warm-2); color: var(--ink);
}
.badge-aktiv, .badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-soekt { background: var(--accent-soft); color: var(--accent); }
.badge-avvist, .badge-avsluttet { color: var(--muted); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.count-badge {
  position: absolute; top: 12px; right: 12px; min-width: 28px; height: 28px; padding: 0 8px; border-radius: var(--pill);
  background: #FFFFFF; color: var(--ink); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- Skjema ---------- */
.form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-weight: 600; font-size: 15px; }
.optional { font-weight: 400; color: var(--muted); }
.hint { margin: 0; font-size: 14px; color: var(--muted); }
input, textarea, select {
  font: inherit; color: var(--ink); background: var(--bg); width: 100%;
  border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 12px 16px; min-height: 48px;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(27, 36, 54, 0.12); }
textarea { resize: vertical; }
.checkbox { flex-direction: row; align-items: flex-start; gap: 12px; }
.checkbox input, .radio input { width: 20px; height: 20px; min-height: 20px; padding: 0; margin-top: 2px; flex: none; accent-color: var(--ink); }
.checkbox label { font-weight: 400; }
.radio { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.radio input { margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.after-form { font-size: 15px; color: var(--muted); }
.search-pill { position: relative; }
.search-pill input { border-radius: var(--pill); padding-left: 48px; border-color: var(--ink); }
.search-pill svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); pointer-events: none; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: var(--pill);
  background: var(--warm-2); font-size: 14px; font-weight: 500; cursor: pointer; user-select: none;
}
.chip input:checked + span { background: var(--ink); color: #FFFFFF; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.chip:hover span { background: var(--line); }
.chip input:checked:hover + span, .chip:hover input:checked + span { background: var(--ink); }

/* ---------- Avatar ---------- */
.avatar {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none;
  background: var(--accent); color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 16px;
}
.avatar-xl { width: 140px; height: 140px; font-size: 48px; font-weight: 400; }
.avatar-lg { width: 96px; height: 96px; font-size: 32px; }

/* ---------- Verkfliser (Ønskeskyen-produkter) ---------- */
.tile-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 32px 18px; }
.tile { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tile-image { position: relative; aspect-ratio: 4 / 5; background: var(--tile); border-radius: var(--radius); overflow: hidden; }
.tile-image img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 10px; }
.tile-image a { display: block; height: 100%; }
.tile-body p { margin: 0; }
.tile-title {
  font-weight: 600; font-size: 15px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tile-title a { text-decoration: none; }
.tile-sub { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-price { font-size: 15px; }
.tile-fab { position: absolute; right: 10px; bottom: 10px; }
.fab {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: #FFFFFF; color: var(--accent); box-shadow: var(--shadow);
  display: inline-flex; align-items: center; justify-content: center;
}
.fab:hover:not(:disabled) { background: var(--accent); color: #FFFFFF; }
.fab:disabled { opacity: 0.5; cursor: not-allowed; }
.fab-done { background: var(--ok); color: #FFFFFF; cursor: default; }

/* ---------- Utvalgskort ---------- */
.collection-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px 24px; }
.collection-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.collection-card:hover { color: var(--ink); }
.collection-cover {
  position: relative; display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px;
  aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--tile);
}
.collection-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.collection-cover img:first-child { grid-row: 1 / 3; }
.collection-cover.single { grid-template-columns: 1fr; }
.collection-card:hover .collection-cover { outline: 2px solid var(--ink); outline-offset: 2px; }
.collection-name { font-weight: 600; font-size: 16px; }
.collection-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 14px; color: var(--muted); }
.create-card {
  aspect-ratio: 16 / 10; border-radius: var(--radius); background: var(--warm-2); border: 0; width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px;
  font: inherit; font-weight: 600; color: var(--ink);
}
.create-card input { max-width: 280px; text-align: center; background: var(--bg); }
.create-plus { width: 48px; height: 48px; border-radius: 12px; background: var(--ink); color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; }

/* ---------- Panel / profilhode ---------- */
.profile-head { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; }
.profile-head h1 { font-family: var(--sans); font-weight: 600; font-size: 28px; margin-bottom: 10px; }
.profile-stats { display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: 20px; margin: 0; }
.profile-stats strong { font-weight: 600; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.link-box { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--bg); border-radius: var(--pill); padding: 6px 6px 6px 22px; box-shadow: var(--shadow); }
.link-box label { font-size: 14px; color: var(--muted); }
.link-box input { border: 0; padding: 0; min-height: 40px; width: 240px; background: transparent; font-weight: 600; box-shadow: none; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.tier-row { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.tier-row:last-child { border-bottom: 0; }
.tier-rate { font-family: var(--serif); font-size: 28px; }

/* ---------- Redigerer ---------- */
.breadcrumb { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; }
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.editor-main { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.editor-side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 96px; }
.counter { margin: 0; font-weight: 600; }
.counter-low { color: var(--accent); }
.items { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.item { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 12px; border-radius: var(--radius); background: var(--warm); }
.item-img { width: 96px; height: 120px; object-fit: contain; background: var(--tile); border-radius: 10px; padding: 6px; }
.item-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.item-body p { margin: 0; }
.item-title { font-weight: 600; }
.item-title a { text-decoration: none; }
.item-unavailable .item-img { opacity: 0.45; }
.item-warning { font-size: 14px; color: var(--accent); font-weight: 600; }
.item-body input[type="text"], .item-body input:not([type]) { background: var(--bg); min-height: 44px; padding: 10px 14px; }
.item-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; }
.item-actions .radio { margin-right: auto; font-size: 14px; }
.danger-zone summary { cursor: pointer; font-weight: 600; }
.danger-zone[open] summary { margin-bottom: 12px; }
.search-panel { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
.search-extra { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.search-extra .price-range { display: flex; align-items: center; gap: 6px; }
.search-extra .price-range input { width: 110px; min-height: 40px; padding: 8px 14px; border-radius: var(--pill); }
.search-extra select { width: auto; min-height: 40px; padding: 8px 14px; border-radius: var(--pill); }
.filter-label { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 6px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 32px; }

/* ---------- Verveside ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; padding: 24px 0 16px; }
.hero h1 { font-size: 64px; margin-bottom: 20px; }
.hero .lead { font-size: 20px; max-width: 32ch; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--muted); }
.mosaic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mosaic figure { margin: 0; aspect-ratio: 4 / 5; background: var(--tile); border-radius: var(--radius); overflow: hidden; }
.mosaic figure:nth-child(3n+2) { transform: translateY(28px); }
.mosaic img { width: 100%; height: 100%; object-fit: contain; padding: 12px; display: block; }
.band { background: var(--warm); border-radius: var(--radius-lg); padding: 56px; }
.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.steps li { background: var(--bg); border-radius: var(--radius-lg); padding: 28px; counter-increment: step; }
.steps li::before {
  content: counter(step); display: inline-flex; width: 40px; height: 40px; border-radius: 50%; margin-bottom: 18px;
  align-items: center; justify-content: center; background: var(--accent); color: #FFFFFF; font-weight: 600;
}
.steps h3 { font-size: 19px; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--ink-2); }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.tier { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.tier-name { font-weight: 600; margin: 0 0 6px; }
.tier .tier-rate { font-size: 56px; line-height: 1; margin: 0 0 8px; }
.tier-gull { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.tier-gull .muted { color: #B9BFCC; }
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 40px; margin-top: 28px; }
.faq h3 { margin-bottom: 6px; }
.faq p { margin: 0; color: var(--ink-2); }
.cta { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 24px 0; }
.cta .button { align-self: center; }

/* ---------- Admin ---------- */
.table-wrap { overflow-x: auto; padding: 0; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table-wrap .table { min-width: 880px; }
.table th { text-align: left; font-weight: 600; font-size: 13px; color: var(--muted); padding: 14px 16px; border-bottom: 1px solid var(--line); }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.row-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.application { display: flex; flex-direction: column; gap: 16px; }
.application h2 { font-size: 26px; margin-bottom: 4px; }
.application-text { max-width: 70ch; color: var(--ink-2); margin: 0; }
.applicant-collections { display: flex; flex-wrap: wrap; gap: 12px; }
.applicant-collection { max-width: 100%; background: var(--warm); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.applicant-collection .thumbs { display: flex; flex-wrap: wrap; gap: 4px; }
.applicant-collection img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; background: var(--tile); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.reject summary { list-style: none; }
.reject summary::-webkit-details-marker { display: none; }
.reject[open] summary { margin-bottom: 12px; }
.reject .form { min-width: min(420px, 100%); }

/* ---------- Responsivt ---------- */
@media (max-width: 1100px) {
  .tile-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .editor { grid-template-columns: 1fr; }
  .editor-side { position: static; }
  .hero h1 { font-size: 52px; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .steps, .tiers { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .band { padding: 36px 28px; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
  body { font-size: 15px; }
  h1 { font-size: 34px; }
  h2 { font-size: 26px; }
  .hero h1 { font-size: 40px; }
  .header-row { flex-wrap: wrap; gap: 10px 16px; min-height: 64px; padding-top: 10px; padding-bottom: 10px; }
  .nav { order: 3; width: 100%; gap: 18px; overflow-x: auto; font-size: 15px; }
  .header-actions { gap: 8px; }
  .header-actions .button { min-height: 40px; padding: 0 16px; font-size: 14px; }
  .logo-text { display: none; }
  .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .card { padding: 20px; }
  .band { padding: 28px 20px; }
  .avatar-xl { width: 96px; height: 96px; font-size: 34px; }
  .profile-head { gap: 20px; }
  .link-box { width: 100%; border-radius: var(--radius); padding: 10px 14px; }
  .link-box input { width: 100%; }
  .item { grid-template-columns: 72px minmax(0, 1fr); }
  .item-img { width: 72px; height: 90px; }
  .footer-grid { grid-template-columns: 1fr; }
  .search-row { grid-template-columns: 1fr; }
}

.push-right { margin-left: auto; }
@media (max-width: 680px) { .push-right { margin-left: 0; } }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }

/* ---------- Fremdrift (status) ---------- */
.progress { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.progress li {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: var(--pill);
  background: var(--bg); color: var(--muted); font-size: 14px; font-weight: 500;
}
.progress-dot {
  width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--warm-2); color: var(--ink); font-weight: 600; font-size: 13px;
}
.progress li.done { color: var(--ink); }
.progress li.done .progress-dot { background: var(--ok); color: #FFFFFF; }
.progress li.current { color: var(--ink); box-shadow: inset 0 0 0 2px var(--accent); }
.progress li.current .progress-dot { background: var(--accent); color: #FFFFFF; }

/* ---------- Samlingsstripe i oversikten ---------- */
.cover-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; text-decoration: none; }
.cover-strip img { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; background: var(--tile); border-radius: var(--radius); padding: 8px; }
.cover-strip img:hover { outline: 2px solid var(--ink); outline-offset: 2px; }
a.create-card { text-decoration: none; aspect-ratio: auto; min-height: 200px; }

/* ---------- Admin: chips som lenker, bryter, samlinger ---------- */
.chip-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: var(--pill);
  background: var(--warm-2); font-size: 14px; font-weight: 500; text-decoration: none;
}
.chip-link span { color: var(--muted); font-weight: 400; }
.chip-link:hover { background: var(--line); color: var(--ink); }
.chip-link.is-active { background: var(--ink); color: #FFFFFF; }
.chip-link.is-active span { color: #C9CEDA; }
.switch { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; padding: 4px; cursor: pointer; font: inherit; font-weight: 600; color: var(--ink); }
.switch-track { width: 52px; height: 30px; border-radius: var(--pill); background: var(--line-strong); position: relative; transition: background 0.15s; flex: none; }
.switch-thumb { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #FFFFFF; box-shadow: var(--shadow); transition: transform 0.15s; }
.switch.is-on .switch-track { background: var(--ok); }
.switch.is-on .switch-thumb { transform: translateX(22px); }
.switch:disabled { opacity: 0.45; cursor: not-allowed; }
.admin-collections { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.admin-collection { display: flex; flex-direction: column; gap: 14px; }
.admin-collection-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.admin-collection h2 { font-size: 24px; margin-bottom: 6px; }
.admin-collection h2 a { text-decoration: none; }
.thumb-row { display: flex; gap: 8px; overflow-x: auto; }
.thumb-row img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; background: var(--tile); flex: none; }
.invite-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 12px; align-items: end; }

/* ---------- Admin: tall ---------- */
.banner-test { background: #FFF4D6; color: #5C4300; }
.banner-test strong { color: #5C4300; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { background: var(--bg); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); }
.stat p { margin: 0; }
.stat-label { font-size: 14px; color: var(--muted); font-weight: 500; }
.stat-value { font-family: var(--serif); font-size: 34px; line-height: 1.15; margin: 6px 0 4px !important; }
.stat-sub { font-size: 13px; color: var(--muted); }
.stat-mid { font-family: var(--serif); font-size: 24px; }
.status-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.table-title { padding: 24px 16px 4px; }
.table tfoot th { color: var(--ink); font-size: 15px; border-top: 1px solid var(--line); border-bottom: 0; }
.table .num { text-align: right; white-space: nowrap; }
.bars { display: block; width: 100%; height: 180px; margin-top: 16px; color: var(--accent); overflow: visible; }
.bars .bar { fill: currentColor; }
.bars .bar-hit:hover .bar { fill: var(--ink); }
.bars-base { stroke: var(--line-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
.bars-axis { display: flex; justify-content: space-between; margin: 8px 0 12px; }
.top-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.top-list li { display: flex; align-items: center; gap: 12px; background: var(--bg); border-radius: var(--radius); padding: 10px 16px 10px 10px; }
.top-list img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; background: var(--tile); }

@media (max-width: 860px) {
  .stat-grid, .status-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 18px 16px; }
  .stat-value { font-size: 28px; }
  .invite-form { grid-template-columns: 1fr; }
  .cover-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
