/* Washbee — warm paper by day, deep ink by night. Direction A "Afgangstavle". */
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-var.woff2") format("woff2");
  font-weight: 300 900; font-style: normal; font-display: swap; }

:root {
  /* colour (light) */
  --bg: #FAF8F3; --surface: #FFFFFF; --surface-2: #F1EEE7;
  --ink: #1C1A16; --muted: #6B665C;
  --line: rgba(28,26,22,.10); --line-strong: rgba(28,26,22,.18); --field-line: #8A8478;
  --free: #1D7F47; --on-free: #FFFFFF; --free-ink: #1D7F47;
  --soon: #985A00; --soon-ring: #B86E00;
  --done: #3A5BA0;
  --brand: #E8A317; --on-brand: #1C1A16; --brand-ring: #B87A00; --brand-soft: #FBEBC4;
  --own-ring: var(--brand-ring);
  --error: #B3261E; --on-error: #FFFFFF; --error-soft: #FBE9E7;
  --focus: #1C1A16; --logo-bg: #1C1A16;
  --shadow-1: 0 1px 2px rgba(28,26,22,.05);
  --shadow-2: 0 24px 48px -16px rgba(28,26,22,.35);
  --backdrop: rgba(20,19,17,.5);

  /* spacing, radius */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px;
  --radius-xs: 6px; --radius-sm: 10px; --radius-md: 12px; --radius-tile: 14px;
  --radius-card: 16px; --radius-hero: 20px; --radius-sheet: 24px; --radius-pill: 999px;

  /* motion */
  --dur-fast: 120ms; --dur-base: 200ms; --dur-slow: 320ms;
  --ease-out: cubic-bezier(.2,.7,.2,1); --ease-std: cubic-bezier(.4,0,.2,1);

  /* icons (masks; colour comes from background: currentColor) */
  --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --icon-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5v.01'/%3E%3C/svg%3E");
  --icon-clock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
  --icon-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11a7 7 0 0 1 14 0c0 4.8-7 11-7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
  --icon-chev-l: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 6-6 6 6 6'/%3E%3C/svg%3E");
  --icon-washer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='3' width='16' height='18' rx='3'/%3E%3Ccircle cx='12' cy='13' r='4.5'/%3E%3Cpath d='M8 6.5h3'/%3E%3C/svg%3E");
  --icon-dryer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='3' width='16' height='18' rx='3'/%3E%3Ccircle cx='12' cy='13' r='4.5'/%3E%3Cpath d='M8 6.5h3M10.5 11.5c.8.9.8 2.1 0 3M13.5 11.5c.8.9.8 2.1 0 3'/%3E%3C/svg%3E");
  --icon-card: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='18' height='13' rx='2'/%3E%3Cpath d='M3 10h18M7 15h4'/%3E%3C/svg%3E");
  --icon-chev-r: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E");
  --icon-lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
  --icon-tag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12V4a1 1 0 0 1 1-1h8l9 9-9 9z'/%3E%3Ccircle cx='8' cy='8' r='1.5'/%3E%3C/svg%3E");

  /* type */
  --font: "Figtree", ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-display: 3.3rem; --fs-stat: 2.6rem; --fs-title: 1.6rem; --fs-num-lg: 1.55rem;
  --fs-num: 1.2rem; --fs-lg: 1.05rem; --fs-clock: 1.02rem; --fs-body: 1rem;
  --fs-sm: .875rem; --fs-label: .8rem; --fs-xs: .74rem; --fs-2xs: .68rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141311; --surface: #1E1C19; --surface-2: #262420;
    --ink: #F2EEE6; --muted: #A39D91;
    --line: rgba(242,238,230,.09); --line-strong: rgba(242,238,230,.18); --field-line: #76716A;
    --free: #4CC98A; --on-free: #0E1A12; --free-ink: #4CC98A;
    --soon: #F0A040; --soon-ring: #F0A040;
    --done: #8FA8E0;
    --brand: #F2B632; --on-brand: #141311; --brand-ring: #F2B632; --brand-soft: rgba(242,182,50,.18);
    --error: #FF8A80; --on-error: #141311; --error-soft: #2E1D1A;
    --focus: #F2EEE6; --logo-bg: #1C1A16;
    --shadow-1: none;
    --shadow-2: 0 24px 48px -16px rgba(0,0,0,.7);
    --backdrop: rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141311; --surface: #1E1C19; --surface-2: #262420;
  --ink: #F2EEE6; --muted: #A39D91;
  --line: rgba(242,238,230,.09); --line-strong: rgba(242,238,230,.18); --field-line: #76716A;
  --free: #4CC98A; --on-free: #0E1A12; --free-ink: #4CC98A;
  --soon: #F0A040; --soon-ring: #F0A040;
  --done: #8FA8E0;
  --brand: #F2B632; --on-brand: #141311; --brand-ring: #F2B632; --brand-soft: rgba(242,182,50,.18);
  --error: #FF8A80; --on-error: #141311; --error-soft: #2E1D1A;
  --focus: #F2EEE6; --logo-bg: #1C1A16;
  --shadow-1: none;
  --shadow-2: 0 24px 48px -16px rgba(0,0,0,.7);
  --backdrop: rgba(0,0,0,.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-bottom: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: var(--fs-body); line-height: 1.4;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
#app { max-width: 760px; margin: 0 auto; padding: 0 var(--space-4) calc(28px + env(safe-area-inset-bottom)); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.tnum, .clock, .mine-clock, .mine-eta, .num, .balance strong, .stat strong, .amt, .day-total, .price-card dd, #updated { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
  :root { --dur-fast: .01ms; --dur-base: .01ms; --dur-slow: .01ms; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .live .dot { animation: none !important; }
  .page:not([hidden]) { animation: none !important; }
  button.primary:active, .primary-btn:active, .ghost-btn:active, .danger-btn:active, #page-maskiner .overview > .stat:active, .chip:active { transform: none; }
  .spinner, .flow-msg.loading::before { animation: pulse 1.6s ease-in-out infinite !important; }
}

/* Logo: app-icon form (squircle + bee at 78%) */
.logo {
  width: 56px; height: 56px; border-radius: 23%; background: var(--logo-bg);
  display: grid; place-items: center; flex: none;
}
.logo svg { width: 78%; height: 78%; display: block; }
.logo.sm { width: 28px; height: 28px; border-radius: 7px; }

/* ---------- Login ---------- */
.login { min-height: 100svh; display: grid; place-items: center; padding: 24px 0; }
.login-card {
  width: 100%; max-width: 380px; background: var(--surface); border-radius: var(--radius-sheet);
  padding: 28px 22px 22px; box-shadow: var(--shadow-1); border: 1px solid var(--line);
}
.login h1 { font-size: var(--fs-title); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; margin: var(--space-4) 0 4px; }
.lede { color: var(--muted); margin: 0 0 var(--space-5); }

/* Fields */
form label, .field { display: block; font-size: var(--fs-sm); font-weight: 600; line-height: 1.3; color: var(--muted); margin: var(--space-3) 0; }
form input:not([type=checkbox]), .select {
  font: inherit; font-size: var(--fs-body); color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--field-line); border-radius: var(--radius-md);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
form input:not([type=checkbox]) {
  display: block; width: 100%; margin-top: 6px; padding: 13px 14px; font-weight: 400; outline: none;
}
form input:not([type=checkbox]):focus-visible, .field input:focus-visible, .select:focus-visible {
  border-color: var(--ink); outline: 3px solid color-mix(in srgb, var(--ink) 18%, transparent); outline-offset: 0;
}
form input[aria-invalid="true"] { border-color: var(--error); }
form label.check { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); font-weight: 600; }
form label.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--free); }
.check { accent-color: var(--free); }

/* Buttons: the single source for button.primary, .primary-btn, .ghost-btn, .danger-btn, .link-btn */
button { font: inherit; cursor: pointer; }
button.primary, .primary-btn, .ghost-btn, .danger-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 16px; border: 0; border-radius: var(--radius-md);
  font: inherit; font-size: var(--fs-body); font-weight: 700; line-height: 1.2; text-align: center;
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast);
}
button.primary { width: 100%; margin-top: 6px; }
button.primary, .primary-btn { background: var(--ink); color: var(--bg); }
.ghost-btn { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line-strong); }
.danger-btn { background: var(--error); color: var(--on-error); }
button.primary:active, .primary-btn:active, .ghost-btn:active, .danger-btn:active { transform: scale(.98); }
button.primary:disabled, .primary-btn:disabled, .ghost-btn:disabled, .danger-btn:disabled { opacity: .5; cursor: default; pointer-events: none; }
.link-btn, .forgot, .signup-cta a, .su-back {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 4px;
  border: 0; background: none; color: var(--ink); font-size: var(--fs-sm); font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px;
}
.link-btn:disabled, .forgot:disabled, .su-back:disabled { opacity: .5; cursor: default; pointer-events: none; }
.wide { width: 100%; }
.row-btns { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }

/* Inline messages: the shared pattern (.flow-msg, #su-msg, #login-error, .su-find-msg, .page-status, .feedback) */
.flow-msg, .page-status, .feedback, #login-error, .su-find-msg {
  display: flex; align-items: flex-start; gap: 8px; font-size: var(--fs-sm); font-weight: 600; line-height: 1.3; color: var(--ink);
}
/* Empty live regions stay rendered (screen readers can miss text inserted into display:none) but collapse */
.flow-msg:empty, .page-status:empty, .feedback:empty, #login-error:empty, .su-find-msg:empty {
  margin: 0; padding: 0; min-height: 0; height: 0; overflow: hidden; background: none; border: 0;
}
.flow-msg:empty::before, .page-status:empty::before, .feedback:empty::before, #login-error:empty::before, .su-find-msg:empty::before { display: none; }
.flow-msg::before, .page-status.stale::before, .page-status.error::before, .feedback.error::before, #login-error::before {
  content: ""; flex: none; width: 16px; height: 16px; margin-top: 1px;
  background: currentColor; mask: var(--icon-check) center / contain no-repeat; -webkit-mask: var(--icon-check) center / contain no-repeat;
}
.flow-msg::before { background: var(--free-ink); }
.flow-msg.loading, .page-status.loading, .feedback { color: var(--muted); }
/* Spinner: 16px ring, 2px track, ink head (also drawn as .flow-msg.loading::before) */
.spinner, .flow-msg.loading::before {
  flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--ink);
  animation: spin .8s linear infinite;
}
.flow-msg.loading::before { margin-top: 1px; background: none; mask: none; -webkit-mask: none; }
/* Assumes a filled button (primary/danger); not for ghost buttons. */
button .spinner { border-color: color-mix(in srgb, var(--bg) 30%, transparent); border-top-color: var(--bg); }
.flow-msg.error, .page-status.error, .feedback.error, #login-error {
  color: var(--error); background: var(--error-soft); border-radius: var(--radius-md); padding: 10px 12px;
}
.flow-msg.error::before, .page-status.error::before, .feedback.error::before, #login-error::before {
  background: currentColor; mask-image: var(--icon-alert); -webkit-mask-image: var(--icon-alert);
}
.flow-msg.stale, .page-status.stale { color: var(--soon); }
.flow-msg.stale::before, .page-status.stale::before { background: currentColor; mask-image: var(--icon-clock); -webkit-mask-image: var(--icon-clock); }
/* Loading machines: spinner plus muted text, centred (spinner only, no skeleton tiles) */
.feedback { align-items: center; justify-content: center; margin: 0; padding: 24px 0; }
.feedback.error { justify-content: flex-start; margin: 14px 2px 0; padding: 10px 12px; }
.flow-msg { margin: var(--space-3) 0 0; }
#login-error { margin: var(--space-3) 0 0; }

/* ---------- Top bar ---------- */
.topbar {
  display: flex; align-items: center; gap: 10px; padding: calc(12px + env(safe-area-inset-top)) 0 10px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: var(--fs-lg); letter-spacing: -.01em; }
.live {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px;
  font-size: var(--fs-xs); font-weight: 600; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line); padding: 5px 10px; border-radius: 999px;
}
.live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--free-ink); box-shadow: 0 0 0 0 var(--free); animation: ping 2.4s infinite; }
.live.stale { color: var(--soon); }
.live.stale .dot { background: var(--soon); animation: none; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--free) 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }

/* ---------- Overview (Forbrug still uses the generic rules; Maskiner is scoped below) ---------- */
.overview { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 10px; margin: 6px 0 4px; }
.overview > * {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 12px 12px 11px; box-shadow: var(--shadow-1); min-width: 0;
}
.overview .label { display: block; font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.balance strong { display: block; letter-spacing: -.02em; white-space: nowrap; color: var(--ink); }
.stat strong { display: block; font-size: 1.5rem; margin-top: 2px; letter-spacing: -.02em; color: var(--free-ink); }
.stat strong small { font-size: .72rem; font-weight: 600; color: var(--muted); margin-left: 2px; letter-spacing: 0; }

/* Maskiner overview: two count cards, then a quiet Saldo row */
#page-maskiner .overview { grid-template-columns: 1fr 1fr; gap: var(--space-2); margin: 6px 0 0; }
#page-maskiner .overview > .stat {
  display: block; padding: 11px 13px 12px; border-radius: var(--radius-card);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1);
  transition: transform var(--dur-fast) var(--ease-out);
}
#page-maskiner .overview > .stat:active { transform: scale(.98); }
#page-maskiner .stat .label { font-size: var(--fs-xs); font-weight: 700; line-height: 1.2; color: var(--muted); text-transform: none; letter-spacing: 0; }
#page-maskiner .stat strong { display: flex; align-items: center; gap: var(--space-2); margin-top: 6px; letter-spacing: 0; color: var(--ink); }
#page-maskiner .stat strong > span {
  font-size: var(--fs-stat); font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--free-ink);
  transition: color var(--dur-base) var(--ease-std);
}
#page-maskiner .stat.none strong > span { color: var(--muted); }
#page-maskiner .stat strong small {
  display: block; margin: 0; font-size: var(--fs-sm); font-weight: 600; line-height: 1.25; color: var(--muted); letter-spacing: 0;
}
#page-maskiner .stat strong small b { display: block; font-weight: 700; color: var(--ink); }
#page-maskiner .toolbar .balance {
  display: flex; align-items: baseline; gap: var(--space-2); min-width: 0;
  margin-right: auto; padding: 0 4px; color: var(--ink); font-size: var(--fs-sm);
}
#page-maskiner .balance .label { font-size: var(--fs-sm); font-weight: 600; color: var(--muted); text-transform: none; letter-spacing: 0; }
#page-maskiner .balance strong { margin: 0; font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0; color: var(--ink); }

/* ---------- Section headings ---------- */
h2 { font-size: var(--fs-label); line-height: 1.2; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 22px 2px 10px; font-weight: 800; }
h2 small { text-transform: none; letter-spacing: 0; font-weight: 600; margin-left: 6px; }
#page-maskiner h2 { margin: var(--space-5) 2px 10px; }
#page-maskiner h2 small { font-size: var(--fs-sm); font-weight: 600; margin-left: var(--space-2); }

/* ---------- Dine maskiner (hero) ---------- */
.mine-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-3); padding: 0 4px; }
.mine-card {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: var(--space-3); container-type: inline-size;
  grid-template-areas: "head head" "sub sub" "clock eta";
  padding: 14px 16px 16px; border-radius: var(--radius-hero); background: var(--surface); color: var(--ink);
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--own-ring);
  transition: background-color var(--dur-slow) var(--ease-std), color var(--dur-slow) var(--ease-std), box-shadow var(--dur-slow) var(--ease-std);
}
.mine-card.soon { box-shadow: inset 0 0 0 2px var(--soon-ring), 0 0 0 2px var(--bg), 0 0 0 4px var(--own-ring); }
.mine-head { grid-area: head; display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-width: 0; }
.mine-name { min-width: 0; font-size: var(--fs-lg); font-weight: 800; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mine-name::after {
  content: "DIN"; content: "DIN" / "";
  display: inline-block; margin-left: var(--space-2); vertical-align: 2px;
  padding: 2px 6px; border-radius: var(--radius-xs); background: var(--brand); color: var(--on-brand);
  font-size: var(--fs-2xs); font-weight: 800; letter-spacing: .06em; line-height: 1.2;
}
.mine-head .badge {
  flex: none; padding: 2px 7px; border-radius: var(--radius-xs); background: var(--surface-2); color: var(--muted);
  font-size: var(--fs-2xs); font-weight: 800; line-height: 1.2; text-transform: none; letter-spacing: 0;
}
.mine-card.done .badge { color: var(--done); }
.mine-card.free .badge { background: var(--free); color: var(--on-free); }
.mine-card.soon .badge { font-size: 0; display: inline-flex; align-items: center; gap: 4px; }
.mine-card.soon .badge::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; flex: none;
  border: 1.5px solid var(--soon);
  background: conic-gradient(var(--soon) 0 25%, transparent 0);
}
.mine-card.soon .badge::after { content: "snart færdig"; font-size: var(--fs-2xs); font-weight: 800; line-height: 1.2; color: var(--soon); }
.mine-sub { grid-area: sub; margin-top: 2px; min-height: 1.3em; font-size: var(--fs-sm); font-weight: 600; line-height: 1.3; color: var(--muted); }
.mine-clock {
  grid-area: clock; margin-top: var(--space-3); font-size: var(--fs-display); font-size: min(var(--fs-display), 16cqi); font-weight: 800; line-height: 1; letter-spacing: -.03em;
  color: var(--ink); white-space: nowrap;
}
.mine-card.done .mine-clock { display: flex; align-items: center; gap: .12em; color: var(--done); }
.mine-card.done .mine-clock::before {
  content: ""; flex: none; width: .6em; height: .6em; background: currentColor;
  -webkit-mask: var(--icon-check) center / contain no-repeat; mask: var(--icon-check) center / contain no-repeat;
}
.mine-card.free .mine-clock { color: var(--free-ink); }
/* "Færdig ca." small and muted on line one, HH:MM in ink below. The width forces the break; ::first-line styles line one. */
.mine-eta {
  grid-area: eta; width: 5.2em; padding-bottom: .1em; text-align: right;
  font-size: var(--fs-lg); font-weight: 700; line-height: 1.25; color: var(--ink);
}
.mine-eta:empty { display: none; }
.mine-eta::first-line { font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }
.mine-card .bar { display: none; }

/* ---------- Filter chip ---------- */
.toolbar { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-3); margin: var(--space-5) 0 0; }
.chip {
  display: inline-flex; align-items: center; gap: var(--space-2); flex: none; min-height: 44px; padding: 0 14px;
  border-radius: var(--radius-pill); border: 1.5px solid var(--field-line); background: var(--surface); color: var(--ink);
  font-size: var(--fs-sm); font-weight: 700;
  transition: background-color var(--dur-base) var(--ease-std), border-color var(--dur-base) var(--ease-std), color var(--dur-base) var(--ease-std), transform var(--dur-fast) var(--ease-out);
}
.chip:active { transform: scale(.98); }
.chip-dot { position: relative; flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--free-ink); }
.chip[aria-pressed="true"] { background: var(--free); border-color: var(--free); color: var(--on-free); }
.chip[aria-pressed="true"] .chip-dot { border-color: var(--on-free); background: var(--on-free); }
.chip[aria-pressed="true"] .chip-dot::after {
  content: ""; position: absolute; inset: -1px; background: var(--free);
  -webkit-mask: var(--icon-check) center / contain no-repeat; mask: var(--icon-check) center / contain no-repeat;
}

/* ---------- Machine tiles ---------- */
.group { scroll-margin-top: 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: var(--space-2); }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); } }   /* 8 columns at 760px */
.tile {
  position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 86px; padding: 8px 7px 9px; container-type: inline-size;
  border-radius: var(--radius-tile); border: 1px solid transparent; background: var(--surface-2); color: var(--ink);
  transition: background-color var(--dur-slow) var(--ease-std), color var(--dur-slow) var(--ease-std), box-shadow var(--dur-slow) var(--ease-std);
}
.tile-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 2px; }
.num { font-size: var(--fs-num); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; color: var(--ink); }
.you {
  flex: none; padding: 2px 4px; border-radius: var(--radius-xs); background: var(--brand); color: var(--on-brand);
  font-size: var(--fs-2xs); font-weight: 800; line-height: 1.2; letter-spacing: .04em;
}
.tile .clock { margin-top: auto; padding-top: 6px; font-size: var(--fs-clock); font-size: min(var(--fs-clock), 26cqi); font-weight: 800; line-height: 1.15; letter-spacing: -.01em; color: var(--ink); white-space: nowrap; }
.tile .sub { margin-top: 1px; font-size: var(--fs-2xs); font-weight: 600; line-height: 1.2; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .sub:empty { display: none; }

.tile.free { background: var(--free); color: var(--on-free); }
.tile.free .num { font-size: var(--fs-num-lg); color: var(--on-free); }
.tile.free.own .num { font-size: var(--fs-num); }   /* leaves room for the DIN badge in a narrow tile */
.tile.free .clock { display: flex; align-items: center; gap: 4px; font-size: var(--fs-sm); color: var(--on-free); }
.tile.free .clock::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; }
.tile.free .sub { display: none; }

.tile.done { background: var(--surface); border-color: var(--line); }
.tile.done .clock { display: flex; align-items: center; gap: 3px; font-size: var(--fs-sm); color: var(--done); }
.tile.done .clock::before {
  content: ""; flex: none; width: 12px; height: 12px; background: currentColor;
  -webkit-mask: var(--icon-check) center / contain no-repeat; mask: var(--icon-check) center / contain no-repeat;
}

.tile.unknown .clock { font-size: var(--fs-sm); color: var(--muted); overflow: hidden; text-overflow: ellipsis; }

.tile.soon { background: var(--surface); box-shadow: inset 0 0 0 2px var(--soon-ring); }
/* "snart færdig" comes from CSS: tick() rewrites [data-sub] every second. */
.tile.soon .sub { font-size: 0; display: flex; align-items: center; gap: 2px; }   /* hides the phase text visually */
.tile.soon .sub { white-space: normal; overflow: visible; }   /* "snart færdig": fixed copy, at most two lines */
.tile.done .sub {   /* two short lines beat a clipped label at 4 columns; capped so long programs don't grow the row */
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; white-space: normal; overflow: hidden;
}
.tile.done .sub:empty { display: none; }
.tile.soon .sub::before {                     /* soon icon: ring with the upper-right quarter filled */
  content: ""; width: 10px; height: 10px; border-radius: 50%; flex: none;
  border: 1.5px solid var(--soon);
  background: conic-gradient(var(--soon) 0 25%, transparent 0);
}
.tile.soon .sub::after {
  content: "snart færdig"; font-size: var(--fs-2xs); font-weight: 800; line-height: 1.15; color: var(--soon);
}

.tile.own { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--own-ring); }
.tile.own.soon { box-shadow: inset 0 0 0 2px var(--soon-ring), 0 0 0 2px var(--bg), 0 0 0 4px var(--own-ring); }

/* Empty: one dashed card for every list (grids, Beskeder, Forbrug, Priser, Brikker, Privatliv) */
.empty, .timeline li.empty {
  display: block; list-style: none; margin: var(--space-3) 0 0; padding: 16px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-card);
  text-align: center; font-size: var(--fs-sm); font-weight: 600; color: var(--muted);
}
.grid > .empty { grid-column: 1 / -1; margin: 0; border-radius: var(--radius-tile); }

@keyframes pulse { 50% { opacity: .35; } }

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 440px) {
  .overview { grid-template-columns: 1fr 1fr; }
  .overview .balance { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; }
}

/* ---------- Pages & tab bar (Release A) ---------- */
#main-view { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.greeting { margin: 2px 2px 8px; color: var(--muted); font-weight: 600; font-size: var(--fs-sm); }
.greeting:empty { display: none; }
.page-title { font-size: var(--fs-title); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; margin: 6px 2px 12px; }
.page-status { margin: 10px 2px 0; }
.stat strong.ink, #page-forbrug .balance strong { color: var(--ink); font-size: var(--fs-num); font-weight: 800; margin-top: 6px; white-space: nowrap; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  padding: 6px max(8px, calc((100% - 760px) / 2 + 8px)) calc(8px + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--line);
}
.tabbar a {
  min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--muted); font-size: var(--fs-xs); font-weight: 700; line-height: 1.2;
  transition: color var(--dur-base) var(--ease-std);
}
/* The 48×28 active well is the svg itself: 24px icon + 2px/12px padding, filled on .on. */
.tabbar svg {
  width: 24px; height: 24px; box-sizing: content-box; padding: 2px 12px; border-radius: var(--radius-pill);
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  transition: background-color var(--dur-base) var(--ease-std);
}
.tabbar svg circle[r="1.6"] { fill: currentColor; }
.tabbar a.on { color: var(--ink); font-weight: 800; }
.tabbar a.on svg { background: var(--brand-soft); }

/* Page switch fade */
@keyframes page-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.page:not([hidden]) { animation: page-in var(--dur-base) var(--ease-out); }

/* Forbrug */
.month h2 { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2); }
.month h2 small { margin: 0; color: var(--muted); font-size: var(--fs-sm); font-weight: 600; text-transform: none; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.day {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
  box-shadow: var(--shadow-1); margin-bottom: var(--space-3); overflow: hidden;
}
.day header, .day footer { display: flex; justify-content: space-between; gap: var(--space-2); padding: 12px 14px; font-size: var(--fs-sm); }
.day header { font-weight: 800; border-bottom: 1px solid var(--line); }
.day-total { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.day footer { color: var(--muted); font-weight: 600; justify-content: flex-end; font-variant-numeric: tabular-nums; }
.day ul { list-style: none; margin: 0; padding: 0; }
.line {
  display: grid; grid-template-columns: 44px 1fr auto; gap: var(--space-2); align-items: center;
  min-height: 48px; padding: var(--space-2) 14px; border-top: 1px solid var(--line);
}
.line:first-child { border-top: 0; }
.line .t { color: var(--muted); font-weight: 700; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.line .what { min-width: 0; }
.line .what strong { display: block; font-size: var(--fs-body); font-weight: 700; line-height: 1.25; }
.line .what strong::before {
  content: ""; display: inline-block; width: 16px; height: 16px; margin-right: 7px; vertical-align: -2px;
  background: var(--muted); -webkit-mask: var(--icon-washer) center / contain no-repeat; mask: var(--icon-washer) center / contain no-repeat;
}
.line.dry .what strong::before { -webkit-mask-image: var(--icon-dryer); mask-image: var(--icon-dryer); }
.line.payment .what strong::before { -webkit-mask-image: var(--icon-card); mask-image: var(--icon-card); }
.line .what small { display: block; color: var(--muted); font-size: var(--fs-sm); font-weight: 600; line-height: 1.3; margin-top: 1px; }
.line .amt { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.line.payment .amt { color: var(--ink); font-weight: 700; }
.line.returned .amt { text-decoration: line-through; color: var(--muted); font-weight: 600; }
.more { display: flex; width: 100%; margin: var(--space-2) 0 0; }
.more[hidden] { display: none; }

/* ---------- Mere: profile card and menu ---------- */
.profile-card {
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 14px 14px 4px; margin-bottom: var(--space-3); box-shadow: var(--shadow-1);
}
.profile-head { display: flex; align-items: center; gap: 12px; }
.profile-head > div { min-width: 0; }
.profile-head strong { display: block; font-size: var(--fs-lg); font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.profile-head small { display: block; margin-top: 1px; color: var(--muted); font-size: var(--fs-sm); font-weight: 600; line-height: 1.3; font-variant-numeric: tabular-nums; }
.avatar { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); color: var(--ink); }
.avatar svg, .menu-icon svg { display: block; width: 20px; height: 20px; }
.profile-list { margin: 12px 0 0; }
.profile-list > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.profile-list dt { flex: none; color: var(--muted); font-size: var(--fs-sm); font-weight: 600; }
.profile-list dd { min-width: 0; margin: 0; color: var(--ink); font-weight: 700; text-align: right; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.menu-item:focus-visible { outline-offset: -2px; }

/* Trailing chevron (mask icon) */
.menu-item::after {
  content: ""; flex: none; width: 18px; height: 18px; background: var(--muted);
  -webkit-mask: var(--icon-chev-r) center / contain no-repeat; mask: var(--icon-chev-r) center / contain no-repeat;
}

.menu {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
  box-shadow: var(--shadow-1); overflow: hidden;
}
.menu-item {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 14px;
  text-align: left; background: none; border: 0; border-radius: 0; color: var(--ink); font: inherit;
  transition: background-color var(--dur-fast) var(--ease-out);
}
.menu-item + .menu-item::before {   /* divider, inset to start after the 36px icon well */
  content: ""; position: absolute; top: 0; left: calc(14px + 36px + 12px); right: 0; height: 1px; background: var(--line);
}
.menu-item:active { background: var(--surface-2); }
.menu-item > span:not(.menu-icon) { flex: 1; min-width: 0; }
.menu-item strong { display: block; font-size: var(--fs-body); font-weight: 700; line-height: 1.25; }
.menu-item small { display: block; margin-top: 1px; color: var(--muted); font-size: var(--fs-sm); font-weight: 600; line-height: 1.3; }
.menu-icon {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: var(--radius-sm); background: var(--surface-2); color: var(--ink);
}
/* Log ud is an action, not an error: neutral ink. No chevron, since it doesn't open a page. */
#logout.menu-item.danger { color: var(--ink); }
#logout.menu-item::after { display: none; }

/* ---------- Sub-pages: back link, lede, notes, empty ---------- */
.back {
  display: inline-flex; align-items: center; gap: 2px; min-height: 44px; margin: 0 0 0 -6px; padding: 0 10px 0 2px;
  color: var(--muted); font-size: var(--fs-sm); font-weight: 700;
}
.back::before {
  content: ""; flex: none; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: var(--icon-chev-l) center / contain no-repeat; mask: var(--icon-chev-l) center / contain no-repeat;
}
.back:hover { color: var(--ink); }
.back + .page-title { margin-top: 0; }
.page-lede { color: var(--muted); font-size: var(--fs-body); font-weight: 400; line-height: 1.4; margin: -4px 2px 14px; }
.page-lede p { margin: 0 0 6px; }
.page-note { color: var(--muted); font-size: var(--fs-sm); font-weight: 600; line-height: 1.35; margin: 12px 2px 0; }
.page-note:empty { display: none; }

/* ---------- Beskeder ---------- */
.timeline { list-style: none; margin: var(--space-2) 0 0; padding: 0 0 0 4px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 13px; top: 14px; bottom: 14px; width: 2px; background: var(--line); }
.timeline:has(> .empty)::before { display: none; }
.timeline li { position: relative; display: grid; grid-template-columns: 20px 1fr; gap: 12px; padding: 10px 0; }
.timeline li > div { min-width: 0; }
/* The dot carries Nortec's emoji (m.icon): hide it and draw a --done ring with a check instead. */
.timeline .dot {
  z-index: 1; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px;
  border-radius: 50%; border: 1.5px solid var(--done); background: var(--bg); color: var(--done); font-size: 0; line-height: 0;
}
.timeline .dot::before {
  content: ""; width: 10px; height: 10px; background: currentColor;
  -webkit-mask: var(--icon-check) center / contain no-repeat; mask: var(--icon-check) center / contain no-repeat;
}
.timeline time { display: block; color: var(--muted); font-size: var(--fs-xs); font-weight: 700; line-height: 1.2; }
.timeline p { margin: 3px 0 0; font-size: var(--fs-body); font-weight: 400; line-height: 1.4; overflow-wrap: anywhere; }

/* ---------- Priser ---------- */
.price-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
  box-shadow: var(--shadow-1); padding: 0 14px 2px; margin-bottom: var(--space-3);
}
.price-card h2 { margin: 14px 0 6px; }
.price-card dl { margin: 0; }
.price-card dl > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 10px 0; border-top: 1px solid var(--line); }
.price-card dt { min-width: 0; color: var(--muted); font-weight: 600; }
.price-card dd { flex: none; margin: 0; color: var(--ink); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Notifikationer ---------- */
.page-status:not(.error):not(.stale):not(:empty) + .settings-card { margin-top: 10px; }
.settings-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
  box-shadow: var(--shadow-1); margin-top: 10px; overflow: hidden;
}
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 60px; padding: 10px 14px; }
.switch-row + .switch-row { border-top: 1px solid var(--line); }
.switch-row > div { min-width: 0; }
.switch-row strong { display: block; font-size: var(--fs-body); font-weight: 700; line-height: 1.25; }
.switch-row small { display: block; margin-top: 2px; color: var(--muted); font-size: var(--fs-sm); font-weight: 600; line-height: 1.3; }
.switch {
  flex: none; position: relative; width: 51px; height: 31px; padding: 0; border-radius: var(--radius-pill);
  border: 1.5px solid var(--field-line); background: var(--surface-2);
  transition: background-color var(--dur-base) var(--ease-std), border-color var(--dur-base) var(--ease-std);
}
.switch::before { content: ""; position: absolute; inset: -8px -4px; }   /* 47px hit area around the 31px track */
.switch span {
  position: absolute; top: 1.5px; left: 1.5px; width: 25px; height: 25px; border-radius: 50%;
  background: var(--surface); box-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 28%, transparent);
  transition: transform var(--dur-base) var(--ease-std), background-color var(--dur-base) var(--ease-std);
}
.switch[aria-checked="true"] { background: var(--free); border-color: var(--free); }
.switch[aria-checked="true"] span { transform: translateX(20px); background: var(--on-free); }
.switch:disabled { opacity: .5; cursor: default; }
.select { flex: none; max-width: 46%; min-height: 44px; padding: 10px 12px; font-weight: 600; }
.select:disabled { opacity: .5; }

/* ---------- Mine brikker ---------- */
.forgot { display: flex; margin-top: 4px; }
.tag-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
  box-shadow: var(--shadow-1); padding: 14px; margin-top: var(--space-3);
}
.tag-head { display: flex; align-items: center; gap: 12px; }
.tag-head strong { flex: 1; min-width: 0; font-size: var(--fs-lg); font-weight: 700; line-height: 1.25; }
.tag-icon {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: var(--radius-sm); background: var(--surface-2); color: var(--ink);
}
.tag-icon::before {
  content: ""; width: 20px; height: 20px; background: currentColor;
  -webkit-mask: var(--icon-tag) center / contain no-repeat; mask: var(--icon-tag) center / contain no-repeat;
}
.tag-card.blocked .tag-icon, .tag-card.expired .tag-icon, .tag-card.other .tag-icon { color: var(--muted); }
.tag-card.blocked .tag-icon::before { -webkit-mask-image: var(--icon-lock); mask-image: var(--icon-lock); }
.tag-card.expired .tag-icon::before, .tag-card.other .tag-icon::before { -webkit-mask-image: var(--icon-clock); mask-image: var(--icon-clock); }
.tag-card .badge {
  flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: var(--radius-xs);
  background: var(--surface-2); color: var(--muted); font-size: var(--fs-sm); font-weight: 700; line-height: 1.2;
}
.tag-card.active .badge { padding: 3px 0; background: none; color: var(--free-ink); }
.tag-card.active .badge::before {
  content: ""; flex: none; width: 12px; height: 12px; background: currentColor;
  -webkit-mask: var(--icon-check) center / contain no-repeat; mask: var(--icon-check) center / contain no-repeat;
}
.tag-last { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.tag-last dt { color: var(--muted); font-size: var(--fs-sm); font-weight: 600; line-height: 1.4; }
.tag-last dd { min-width: 0; margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.tag-never { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--fs-sm); font-weight: 600; }
.tag-card button { width: 100%; margin-top: 14px; }

.confirm {
  border: 0; border-radius: var(--radius-sheet); padding: 22px; width: calc(100% - 32px); max-width: 340px;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-2);
}
.confirm::backdrop { background: var(--backdrop); }
.confirm h2 { color: var(--ink); text-transform: none; letter-spacing: -.01em; font-size: var(--fs-lg); font-weight: 800; line-height: 1.25; margin: 0 0 8px; }
.confirm p { margin: 0; color: var(--muted); font-size: var(--fs-body); font-weight: 400; }
.confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); margin-top: 18px; }

/* ---------- Privatlivspolitik ---------- */
.doc {
  max-width: 68ch; margin-top: 10px; padding: 4px 18px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-1);
  font-size: var(--fs-body); line-height: 1.55;
}
.doc h2 { color: var(--ink); text-transform: none; letter-spacing: -.01em; font-size: var(--fs-lg); font-weight: 700; line-height: 1.25; margin: 20px 0 6px; }
.doc p { margin: 10px 0; }
.doc ul { margin: 6px 0 10px; padding-left: 20px; }
.doc li { margin: 4px 0; }
.doc .empty { margin: 14px 0; text-align: center; }

/* Release D: Konto og sikkerhed */
.flow { padding: 4px 16px 16px; margin-top: 12px; }
.flow h2 { color: var(--ink); text-transform: none; letter-spacing: 0; font-size: var(--fs-lg); font-weight: 700; line-height: 1.25; margin: 14px 0 4px; }
.flow .hint { color: var(--muted); font-weight: 600; font-size: var(--fs-sm); margin: 0 0 10px; }
.flow-step { display: grid; gap: 10px; }
.field { display: grid; gap: 6px; margin: 0; }
.field input {
  width: 100%; margin-top: 0; padding: 13px 14px; font: inherit; font-size: var(--fs-body); font-weight: 400; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--field-line); border-radius: var(--radius-md); outline: none;
}
.segmented-mini { display: flex; align-items: stretch; background: var(--surface-2); border: 1.5px solid var(--field-line); padding: 3px; border-radius: var(--radius-pill); min-height: 44px; }
.segmented-mini label { flex: 1; display: grid; place-items: center; margin: 0; text-align: center; padding: 8px 6px; min-height: 44px; border-radius: var(--radius-pill); font-weight: 600; font-size: var(--fs-sm); color: var(--muted); cursor: pointer; position: relative; }
.segmented-mini input { position: absolute; inset: 0; width: 1px !important; height: 1px; margin: 0; padding: 0 !important; opacity: 0; pointer-events: none; }
.segmented-mini label:has(input:checked) { background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: 0 0 0 1.5px var(--ink); }
.segmented-mini label:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.activation-lines p { margin: 6px 0; font-weight: 800; font-size: var(--fs-lg); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.activation-lines:empty { display: none; }

/* Opret bruger */
.signup-cta { text-align: center; margin: var(--space-5) 0 0; padding-top: var(--space-4); border-top: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: var(--fs-sm); }
.signup-cta a { font-weight: 800; }
.signup h1 { margin-top: 10px; }
.su-back { margin-left: -4px; text-decoration: none; }
.su-back::before {
  content: ""; flex: none; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: var(--icon-chev-l) center / contain no-repeat; mask: var(--icon-chev-l) center / contain no-repeat;
}
.signup input[type=search] { -webkit-appearance: none; appearance: none; }
.signup .ghost-btn .pin { width: 18px; height: 18px; flex: none; background: currentColor; mask: var(--icon-pin) center / contain no-repeat; -webkit-mask: var(--icon-pin) center / contain no-repeat; }
.steps { display: flex; align-items: center; gap: 6px; margin: var(--space-3) 0 0; }
.steps i { width: 6px; height: 6px; border-radius: var(--radius-pill); background: var(--field-line); }
.steps i.on { width: 18px; background: var(--ink); }
.su-find-msg { color: var(--muted); margin: var(--space-4) 2px 6px; }
.su-list { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: grid; gap: var(--space-2); }
.su-laundry-btn, .su-way {
  width: 100%; min-height: 60px; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: var(--space-3); row-gap: 2px;
  text-align: left; padding: var(--space-3) 14px; border-radius: var(--radius-card); border: 1px solid var(--line);
  background: var(--surface); color: var(--ink);
}
.su-laundry-btn:hover, .su-way:hover { border-color: var(--line-strong); }
.su-name { font-weight: 700; grid-column: 1; overflow-wrap: anywhere; }
.su-sub { grid-column: 1; color: var(--muted); font-weight: 600; font-size: var(--fs-sm); overflow-wrap: anywhere; }
.su-pick { grid-column: 2; grid-row: 1 / span 2; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-pill); font-weight: 700; font-size: var(--fs-sm); color: var(--ink); }
.su-way { grid-template-columns: 1fr; }
.su-way span { color: var(--muted); font-weight: 600; font-size: var(--fs-sm); }
.su-info { display: block; margin-top: 6px; color: var(--muted); font-weight: 600; font-size: var(--fs-xs); line-height: 1.4; }
.signup form > .su-info { margin: -4px 0 var(--space-3); }
.link-btn { display: flex; margin: var(--space-3) auto 0; }
.signup .flow-msg a { color: inherit; text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
#activation-actions { margin-top: 8px; }
