/* Vakmo — mobile-first werkvloer UI · v2 (modern, licht + zwart thema) */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(../fonts/plus-jakarta-sans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(../fonts/plus-jakarta-sans-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ============ Thema-tokens ============ */
:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #f2f4f7;
  --surface-3: #eaecf0;
  --bg-card: var(--surface);
  --bg-soft: var(--surface-2);
  --ink: #0c111d;
  --ink-muted: #475467;
  --ink-faint: #667085;
  --line: #e4e7ec;
  --line-strong: #d0d5dd;
  --primary: #0f766e;
  --primary-hover: #0d6560;
  --primary-ink: #ffffff;
  --primary-text: #0f766e;
  --primary-soft: #e6f6f4;
  --primary-soft-ink: #0b5c56;
  --primary-bright: #14b8a6;
  --ring: rgba(20, 184, 166, 0.35);
  --accent: #f59e0b;
  --accent-soft: #fef3e2;
  --accent-ink: #93410b;
  --ok: #067647;   --ok-soft: #e7f6ee;
  --warn: #b54708; --warn-soft: #fef4e6;
  --danger: #c01048; --danger-soft: #fdecf1;
  --info: #175cd3; --info-soft: #eaf2ff;
  --mark-bg: #0f766e;
  --mark-fg: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.8);
  --nav-bg: rgba(255, 255, 255, 0.86);
  --overlay: rgba(12, 17, 29, 0.45);
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 12px -2px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 2px 4px rgba(16, 24, 40, 0.04), 0 16px 32px -8px rgba(16, 24, 40, 0.14);
  --glow-1: rgba(20, 184, 166, 0.16);
  --glow-2: rgba(245, 158, 11, 0.10);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --nav-h: 68px;
  --header-h: 60px;
  --sidebar-w: 248px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --touch: 48px;
  --page-pad: 18px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0a0b;
  --surface: #111113;
  --surface-2: #18181b;
  --surface-3: #222226;
  --ink: #f4f4f5;
  --ink-muted: #a1a1aa;
  --ink-faint: #8b8b94;
  --line: #232327;
  --line-strong: #2f2f35;
  --primary: #2dd4bf;
  --primary-hover: #5eead4;
  --primary-ink: #04201d;
  --primary-text: #5eead4;
  --primary-soft: rgba(45, 212, 191, 0.12);
  --primary-soft-ink: #5eead4;
  --primary-bright: #2dd4bf;
  --ring: rgba(45, 212, 191, 0.4);
  --accent: #fbbf24;
  --accent-soft: rgba(251, 191, 36, 0.12);
  --accent-ink: #fcd34d;
  --ok: #4ade80;   --ok-soft: rgba(74, 222, 128, 0.12);
  --warn: #fbbf24; --warn-soft: rgba(251, 191, 36, 0.12);
  --danger: #fb7185; --danger-soft: rgba(251, 113, 133, 0.12);
  --info: #7cb4ff; --info-soft: rgba(124, 180, 255, 0.12);
  --mark-bg: #2dd4bf;
  --mark-fg: #0a0a0b;
  --header-bg: rgba(10, 10, 11, 0.78);
  --nav-bg: rgba(17, 17, 19, 0.86);
  --overlay: rgba(0, 0, 0, 0.65);
  --shadow-xs: 0 0 0 1px rgba(255, 255, 255, 0.02);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 8px 24px -12px rgba(0, 0, 0, 0.8);
  --shadow-lg: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 24px 48px -16px rgba(0, 0, 0, 0.9);
  --glow-1: rgba(45, 212, 191, 0.10);
  --glow-2: rgba(251, 191, 36, 0.05);
}

/* ============ Basis ============ */
* { box-sizing: border-box; }
html { height: 100%; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  min-height: 100%;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
}
html.theme-anim body, html.theme-anim body * {
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .2s var(--ease) !important;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--primary-text); }
button { cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }
.hidden { display: none !important; }
:focus-visible { outline: 2px solid var(--primary-bright); outline-offset: 2px; border-radius: 8px; }
::selection { background: var(--ring); }

.app-shell { min-height: 100dvh; display: flex; flex-direction: column; }

/* ============ Logo ============ */
.brand-mark {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 750; font-size: 1.2rem; letter-spacing: -0.025em;
  color: var(--ink);
}
.brand-mark .mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--mark-bg); color: var(--mark-fg);
  display: grid; place-items: center; flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,.08), inset 0 -1px 0 rgba(0,0,0,.08);
}
.brand-mark .mark svg { width: 66%; height: 66%; display: block; }
.brand-mark .mark svg path { stroke: currentColor; }
.brand-mark .wordmark { font-weight: 750; letter-spacing: -0.03em; }

/* ============ Thema-schakelaar ============ */
.theme-toggle {
  position: relative;
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px; height: 40px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  -webkit-tap-highlight-color: transparent;
}
.theme-toggle .opt {
  position: relative; z-index: 1;
  width: 34px; height: 32px; border-radius: 999px;
  display: grid; place-items: center;
  color: var(--ink-faint);
  transition: color .2s var(--ease);
}
.theme-toggle .opt svg { width: 17px; height: 17px; }
.theme-toggle::before {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 34px; height: 32px; border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-xs), 0 1px 3px rgba(16,24,40,.12);
  border: 1px solid var(--line);
  transition: transform .28s var(--ease);
}
[data-theme="dark"] .theme-toggle::before { transform: translateX(36px); background: var(--surface-3); }
[data-theme="light"] .theme-toggle .opt-light,
[data-theme="dark"] .theme-toggle .opt-dark { color: var(--ink); }
.theme-toggle:hover { border-color: var(--line-strong); }
.login-toggle { position: absolute; top: max(16px, var(--safe-t)); right: max(16px, var(--safe-r)); }

/* ============ Login ============ */
.login-screen {
  position: relative;
  min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: max(72px, var(--safe-t)) 20px max(24px, var(--safe-b));
  background:
    radial-gradient(600px 400px at 15% 0%, var(--glow-1), transparent 70%),
    radial-gradient(500px 360px at 100% 100%, var(--glow-2), transparent 70%),
    var(--bg);
  overflow: hidden;
}
.login-screen::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 70%);
          mask-image: radial-gradient(ellipse at center, #000 0%, transparent 70%);
  opacity: .5;
}
.login-card {
  position: relative;
  width: 100%; max-width: 420px;
  background: var(--surface);
  border-radius: 24px;
  padding: 32px 24px 26px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  animation: rise .5s var(--ease) both;
}
.login-card h1 {
  margin: 28px 0 10px;
  font-size: 1.75rem; font-weight: 750;
  letter-spacing: -0.035em; line-height: 1.15;
}
.login-card .tagline { color: var(--ink-muted); margin: 0 0 24px; line-height: 1.55; font-size: 0.975rem; }
.login-card .brand-slogan { margin: 8px 0 0; color: var(--ink-muted); font-size: 0.875rem; font-weight: 600; letter-spacing: -0.01em; }
.login-card .brand-slogan + h1 { margin-top: 22px; }
.company-chip {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  border: 1px solid var(--line);
  min-height: var(--touch);
}
.company-chip .avatar {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-bright));
  color: var(--primary-ink); display: grid; place-items: center;
  font-weight: 750; font-size: .9rem; flex-shrink: 0;
}
.company-chip strong { display: block; font-size: .975rem; font-weight: 700; }
.company-chip span { color: var(--ink-muted); font-size: 0.85rem; }
.login-foot { margin-top: 16px; text-align: center; color: var(--ink-faint); font-size: 0.8125rem; }

/* ============ Knoppen ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 650; font-size: .975rem; letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform .15s var(--ease), background-color .15s var(--ease), border-color .15s var(--ease), box-shadow .15s var(--ease), color .15s;
  min-height: var(--touch);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--primary); color: var(--primary-ink); width: 100%;
  box-shadow: 0 1px 2px rgba(16,24,40,.08), inset 0 1px 0 rgba(255,255,255,.14);
}
.btn-primary:hover { background: var(--primary-hover); box-shadow: 0 6px 18px -6px var(--ring); }
.btn-secondary {
  background: var(--surface); color: var(--ink);
  border-color: var(--line); box-shadow: var(--shadow-xs);
}
.btn-secondary:hover { background: var(--surface-2); border-color: var(--line-strong); }
.btn-accent { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
.btn-accent:hover { filter: saturate(1.2); box-shadow: 0 0 0 1px var(--accent) inset; }
.btn-ghost { color: var(--primary-soft-ink); background: var(--primary-soft); }
.btn-ghost:hover { box-shadow: 0 0 0 1px var(--ring) inset; }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: 0.9rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn .bi { width: 18px; height: 18px; flex-shrink: 0; opacity: .85; }

/* ============ App-chrome ============ */
.app-header {
  position: sticky; top: 0; z-index: 20;
  min-height: calc(var(--header-h) + var(--safe-t));
  padding: var(--safe-t) max(var(--page-pad), var(--safe-r)) 0 max(var(--page-pad), var(--safe-l));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--header-bg);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid var(--line);
}
.app-header > .brand-mark, .app-header > .header-meta { height: var(--header-h); display: flex; align-items: center; }
.app-header .brand-mark { font-size: 1.1rem; }
.app-header .brand-mark .mark { width: 30px; height: 30px; border-radius: 9px; }
.header-meta { display: flex; align-items: center; gap: 10px; color: var(--ink-muted); font-size: 0.8125rem; }
.header-meta .pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface-2); color: var(--ink-muted);
  border: 1px solid var(--line);
  padding: 6px 12px 6px 6px; border-radius: 999px;
  font-weight: 650; font-size: 0.78rem;
  max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.header-meta .pill::before {
  content: attr(data-initials); display: grid; place-items: center; flex-shrink: 0;
  width: 24px; height: 24px; border-radius: 999px; font-size: .62rem; font-weight: 750;
  background: linear-gradient(135deg, var(--primary), var(--primary-bright)); color: var(--primary-ink);
}

.app-main {
  flex: 1;
  padding: 22px var(--page-pad) calc(var(--nav-h) + var(--safe-b) + 32px);
  max-width: 720px; width: 100%; margin: 0 auto;
}

/* Bottom-nav (mobiel/tablet) */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  height: calc(var(--nav-h) + var(--safe-b));
  padding: 6px max(var(--safe-l), 6px) var(--safe-b) max(var(--safe-r), 6px);
  display: grid; grid-template-columns: repeat(6, 1fr);
  background: var(--nav-bg);
  border-top: 1px solid var(--line);
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
}
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: var(--ink-faint);
  font-size: 0.6875rem; font-weight: 650; letter-spacing: 0.01em;
  min-height: 56px;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  position: relative;
  transition: color .15s var(--ease);
}
.bottom-nav a .ico {
  display: grid; place-items: center;
  width: 52px; height: 30px; border-radius: 999px;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.bottom-nav a .ico svg { width: 21px; height: 21px; }
.bottom-nav a:hover { color: var(--ink-muted); }
.bottom-nav a.active { color: var(--primary-text); }
.bottom-nav a.active .ico { background: var(--primary-soft); }
.bottom-nav .nav-label { line-height: 1; }

.view { display: none; }
.view.active { display: block; animation: fade .28s var(--ease) both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px) scale(.99); } to { opacity: 1; transform: none; } }

/* ============ Typografie ============ */
.page-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.page-title h2 { margin: 0; font-size: 1.625rem; font-weight: 750; letter-spacing: -0.035em; line-height: 1.15; }
.page-title p { margin: 6px 0 0; color: var(--ink-muted); font-size: 0.95rem; }
.section-label {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin: 30px 0 12px;
}
.section-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ============ Kaarten ============ */
.grid-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 4px; }
.stat-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 14px;
  box-shadow: var(--shadow);
  min-height: 100px;
  overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.stat-card::after {
  content: ""; position: absolute; left: 16px; right: 16px; top: 0; height: 2px; border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, var(--primary-bright), transparent);
  opacity: .55;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.stat-card .label { color: var(--ink-muted); font-size: 0.8125rem; font-weight: 600; line-height: 1.3; }
.stat-card .value { font-size: 2rem; font-weight: 750; letter-spacing: -0.04em; margin-top: 8px; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-card .hint { color: var(--ink-faint); font-size: 0.75rem; margin-top: 8px; line-height: 1.3; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.card-h h3 { margin: 0; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; }

/* ============ Lijsten ============ */
.list { display: flex; flex-direction: column; gap: 10px; }
.list-item {
  display: flex; align-items: center; gap: 14px;
  width: 100%; text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 14px 14px 18px;
  box-shadow: var(--shadow-xs);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease), background-color .18s;
  min-height: 68px;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  position: relative; overflow: hidden;
}
.list-item::before {
  content: ""; position: absolute; left: 7px; top: 14px; bottom: 14px;
  width: 3px; border-radius: 3px;
  background: var(--line-strong);
}
.list-item.status-lopend::before { background: var(--info); }
.list-item.status-gepland::before { background: var(--warn); }
.list-item.status-afgerond::before { background: var(--ok); }
.list-item.status-open::before { background: var(--accent); }
.list-item.status-betaald::before, .list-item.status-goedgekeurd::before { background: var(--ok); }
.list-item.status-phase::before { background: var(--primary); }
.list-item:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-1px); }
.list-item:hover .chev { transform: translateX(3px); color: var(--ink-muted); }
.list-item:active { transform: scale(0.995); }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .title { font-weight: 650; font-size: 0.99rem; margin: 0; line-height: 1.3; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item .sub { color: var(--ink-muted); font-size: 0.85rem; margin-top: 4px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item .chev { color: var(--ink-faint); font-size: 1.25rem; flex-shrink: 0; line-height: 1; transition: transform .18s var(--ease), color .18s; }
.list-item .meta-right { text-align: right; flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.list-item .meta-right .amt { font-weight: 700; font-size: 0.95rem; font-variant-numeric: tabular-nums; }

/* ============ Badges & pills ============ */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  font-size: 0.72rem; font-weight: 650; letter-spacing: .01em;
  white-space: nowrap; flex-shrink: 0; line-height: 1.3;
  text-transform: capitalize;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-lopend { background: var(--info-soft); color: var(--info); }
.badge-gepland { background: var(--warn-soft); color: var(--warn); }
.badge-afgerond { background: var(--ok-soft); color: var(--ok); }
.badge-open { background: var(--accent-soft); color: var(--accent-ink); }
.badge-betaald, .badge-goedgekeurd { background: var(--ok-soft); color: var(--ok); }
.badge-phase { background: var(--primary-soft); color: var(--primary-soft-ink); }

.quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick-actions .btn { justify-content: flex-start; padding: 14px 16px; font-size: 0.95rem; min-height: 54px; border-radius: 14px; }
.quick-actions .btn-accent { color: var(--primary-ink); background: var(--primary); }
.quick-actions .btn-accent:hover { background: var(--primary-hover); box-shadow: 0 6px 18px -6px var(--ring); filter: none; }

/* ============ Formulieren ============ */
.search {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 15px center;
  margin-bottom: 14px;
  min-height: var(--touch);
  font-size: 1rem; color: var(--ink);
  box-shadow: var(--shadow-xs);
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
.search::placeholder { color: var(--ink-faint); }
.search:focus { outline: none; border-color: var(--primary-bright); box-shadow: 0 0 0 4px var(--ring); }

.back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink-muted); font-weight: 600; font-size: .95rem;
  margin-bottom: 10px; min-height: 40px; padding: 6px 12px 6px 8px;
  border-radius: 999px; transition: background-color .15s, color .15s;
  -webkit-tap-highlight-color: transparent;
}
.back-btn:hover { background: var(--surface-2); color: var(--ink); }

.detail-head h2 { margin: 0 0 10px; font-size: 1.5rem; font-weight: 750; letter-spacing: -0.03em; line-height: 1.2; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--ink-muted); font-size: 0.9rem; margin-bottom: 18px; }

.kv { display: grid; gap: 0; }
.kv-row { display: grid; grid-template-columns: 108px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; align-items: start; }
.kv-row:last-child { border-bottom: none; padding-bottom: 0; }
.kv-row:first-child { padding-top: 0; }
.kv-row .k { color: var(--ink-faint); font-weight: 600; font-size: .875rem; }

/* ============ Tijdlijn ============ */
.timeline { border-left: 1px solid var(--line-strong); margin-left: 6px; padding-left: 20px; }
.tl-item { position: relative; padding-bottom: 18px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -26px; top: 4px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.tl-item .when { font-size: 0.78rem; color: var(--ink-faint); font-weight: 600; letter-spacing: .01em; }
.tl-item .what { font-weight: 650; margin: 3px 0; font-size: 1rem; letter-spacing: -0.01em; }
.tl-item .txt { color: var(--ink-muted); font-size: 0.925rem; line-height: 1.5; }

/* ============ Foto's ============ */
.photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.photo {
  aspect-ratio: 4/3; border-radius: 14px; overflow: hidden; position: relative;
  border: 1px solid var(--line); background: var(--surface-2);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.photo:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.photo .swatch {
  width: 100%; height: 100%; display: grid; place-items: center;
  color: rgba(255,255,255,0.94); font-weight: 650; font-size: 0.85rem;
  text-shadow: 0 1px 3px rgba(0,0,0,.35); padding: 10px; text-align: center;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
  color: white; font-size: 0.75rem; font-weight: 500; padding: 22px 10px 9px; line-height: 1.3;
}
.photo .hidden-tag {
  position: absolute; top: 8px; right: 8px;
  background: rgba(0,0,0,.6); color: white;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: 0.6875rem; padding: 4px 9px; border-radius: 999px; font-weight: 650;
}

/* ============ Fasen / tabs ============ */
.phase-bar { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 10px; }
.phase-chip {
  padding: 8px 14px; border-radius: 999px;
  font-size: 0.85rem; font-weight: 600;
  background: var(--surface); color: var(--ink-muted);
  border: 1px solid var(--line);
  min-height: 40px; display: inline-flex; align-items: center; gap: 6px;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: transform .15s var(--ease), background-color .15s, border-color .15s;
}
.phase-chip.done { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.phase-chip.done::before { content: "✓"; font-weight: 800; font-size: .8em; }
.phase-chip.current { background: var(--primary); color: var(--primary-ink); border-color: transparent; box-shadow: 0 6px 16px -6px var(--ring); }
.phase-chip.btnlike { cursor: pointer; }
.phase-chip.btnlike:hover { border-color: var(--line-strong); }
.phase-chip.btnlike:active { transform: scale(0.97); }

.actions-row { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.actions-row .btn, .actions-row .file-label { width: 100%; justify-content: center; }

.tabs {
  display: inline-flex; gap: 2px; padding: 4px;
  margin-bottom: 14px; max-width: 100%;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 8px 16px; border-radius: 10px;
  color: var(--ink-muted); font-weight: 600; font-size: 0.9rem;
  white-space: nowrap; min-height: 38px; flex-shrink: 0;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: background-color .15s var(--ease), color .15s, box-shadow .15s;
}
.tab:hover { color: var(--ink); }
.tab.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-xs), 0 1px 3px rgba(16,24,40,.1); }
[data-theme="dark"] .tab.active { background: var(--surface-3); }

.toast {
  position: fixed; left: 50%;
  bottom: calc(var(--nav-h) + var(--safe-b) + 16px);
  transform: translateX(-50%) translateY(16px);
  background: var(--ink); color: var(--bg);
  padding: 12px 18px; border-radius: 14px;
  font-size: 0.925rem; font-weight: 600;
  opacity: 0; pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease);
  z-index: 50; max-width: calc(100vw - 32px);
  box-shadow: var(--shadow-lg); text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ Planning ============ */
.day-block { margin-bottom: 22px; }
.day-block h4 { margin: 0 0 10px; font-size: 0.75rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.day-block.today h4 { color: var(--primary-text); }
.plan-item {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px; margin-bottom: 8px; width: 100%; text-align: left; min-height: 66px;
  box-shadow: var(--shadow-xs);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.plan-item:hover { transform: translateY(-1px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.plan-item:active { transform: scale(0.995); }
.plan-item .time { font-weight: 700; color: var(--primary-text); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.plan-item .title { font-weight: 650; font-size: 0.975rem; line-height: 1.3; }
.plan-item .sub { color: var(--ink-muted); font-size: 0.8125rem; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan-item .who { font-size: 0.72rem; font-weight: 650; background: var(--surface-2); border: 1px solid var(--line); padding: 5px 10px; border-radius: 999px; white-space: nowrap; color: var(--ink-muted); }

/* ============ Documenten ============ */
.doc-preview {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.doc-preview .doc-top { display: flex; flex-direction: column; gap: 16px; border-bottom: 1px solid var(--line-strong); padding-bottom: 16px; margin-bottom: 16px; }
.doc-preview .doc-top .doc-party { text-align: left; }
.doc-preview table { width: 100%; border-collapse: collapse; font-size: 0.875rem; min-width: 280px; font-variant-numeric: tabular-nums; }
.doc-preview th, .doc-preview td { text-align: left; padding: 11px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc-preview th { color: var(--ink-faint); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.doc-preview .right { text-align: right; }
.doc-total { margin-top: 16px; text-align: right; font-size: 1.3rem; font-weight: 750; letter-spacing: -0.02em; }

/* ============ Klantportaal ============ */
.portal-shell {
  min-height: 100dvh;
  background:
    radial-gradient(700px 360px at 50% -80px, var(--glow-1), transparent 70%),
    var(--bg);
  padding-bottom: max(24px, var(--safe-b));
}
.portal-header {
  padding: max(16px, var(--safe-t)) 18px 0;
  max-width: 640px; margin: 0 auto;
  display: flex; justify-content: flex-end; min-height: 56px; align-items: center;
}
.portal-main { padding: 8px 18px 32px; max-width: 640px; margin: 0 auto; }
.portal-banner {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  padding: 22px; box-shadow: var(--shadow-lg); margin-bottom: 8px;
  animation: rise .45s var(--ease) both;
}
.portal-banner h2 { margin: 18px 0 6px; letter-spacing: -0.035em; font-size: 1.5rem; font-weight: 750; line-height: 1.2; }
.portal-banner .by { color: var(--ink-muted); font-size: 0.85rem; margin-top: 8px; }
.portal-banner .for { color: var(--ink-muted); font-size: 0.95rem; }
.status-big {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--primary-soft); color: var(--primary-soft-ink);
  padding: 10px 16px 10px 14px; border-radius: 999px;
  font-weight: 700; font-size: .975rem; margin: 16px 0 10px; min-height: 44px;
}
.status-big::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--primary-bright);
  box-shadow: 0 0 0 4px var(--ring); animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 7px transparent; } }
.portal-updated { font-size: 0.85rem; color: var(--ink-faint); }
.portal-footer { text-align: center; color: var(--ink-faint); font-size: 0.8125rem; margin-top: 32px; padding-bottom: 16px; line-height: 1.5; }
.portal-footer strong { color: var(--ink-muted); }

/* ============ Modal ============ */
.modal-backdrop {
  position: fixed; inset: 0; background: var(--overlay);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: none; align-items: flex-end; justify-content: center;
  z-index: 60; padding: 12px; padding-bottom: max(12px, var(--safe-b));
}
.modal-backdrop.show { display: flex; animation: fade .2s var(--ease); }
.modal {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 24px; width: 100%; max-width: 440px;
  padding: 24px 20px max(20px, var(--safe-b));
  box-shadow: var(--shadow-lg);
  max-height: min(90vh, 640px); overflow-y: auto;
  animation: rise .3s var(--ease);
}
.modal h3 { margin: 0 0 8px; font-size: 1.25rem; font-weight: 750; letter-spacing: -0.02em; }
.modal p { color: var(--ink-muted); margin: 0 0 16px; line-height: 1.55; font-size: 0.95rem; }
.share-link {
  display: block; width: 100%; padding: 14px; border-radius: 12px;
  background: var(--surface-2); border: 1px dashed var(--line-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.8125rem;
  word-break: break-all; margin-bottom: 14px; line-height: 1.4; color: var(--ink);
}
.file-label {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 16px; border-radius: 12px;
  background: var(--primary-soft); color: var(--primary-soft-ink);
  font-weight: 650; font-size: .975rem; cursor: pointer; min-height: var(--touch);
  transition: box-shadow .15s;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.file-label:hover { box-shadow: 0 0 0 1px var(--ring) inset; }
.file-label input { display: none; }

.empty { text-align: center; color: var(--ink-muted); padding: 36px 16px; font-size: 0.95rem; border: 1px dashed var(--line-strong); border-radius: var(--radius); }

.note-box {
  background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent);
  border-radius: 12px; padding: 12px 14px; font-size: 0.9rem; color: var(--warn);
  margin: 4px 0 14px; line-height: 1.5;
}

/* ============ Tablet (≥768) ============ */
@media (min-width: 768px) {
  :root { --page-pad: 28px; --header-h: 64px; --nav-h: 72px; }
  .app-main { max-width: 960px; padding-top: 32px; }
  .page-title h2 { font-size: 1.875rem; }
  .grid-stats { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .stat-card { min-height: 112px; padding: 18px; }
  .stat-card .value { font-size: 2.125rem; }
  .photo-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .actions-row { flex-direction: row; flex-wrap: wrap; }
  .actions-row .btn, .actions-row .file-label { width: auto; flex: 1 1 auto; min-width: 160px; }
  .doc-preview { padding: 28px; }
  .doc-preview .doc-top { flex-direction: row; justify-content: space-between; }
  .doc-preview .doc-top .doc-party { text-align: right; }
  .doc-preview table { font-size: 0.9rem; }
  .bottom-nav {
    left: 50%; right: auto; bottom: max(14px, var(--safe-b));
    transform: translateX(-50%);
    width: min(560px, calc(100% - 48px)); height: var(--nav-h);
    padding: 6px; border: 1px solid var(--line); border-radius: 22px;
    box-shadow: var(--shadow-lg);
  }
  .bottom-nav a { font-size: 0.72rem; border-radius: 16px; }
  .app-main { padding-bottom: calc(var(--nav-h) + 56px); }
  .toast { bottom: calc(var(--nav-h) + 32px); }
  .modal-backdrop { align-items: center; padding: 24px; }
  .modal { padding: 28px; }
  .portal-main, .portal-header { max-width: 720px; }
  .portal-banner { padding: 28px; }
  .portal-banner h2 { font-size: 1.75rem; }
  .quick-actions { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .list { gap: 10px; }
  .list-item { padding: 16px 18px 16px 22px; }
  .login-card { padding: 40px 36px 32px; }
}

/* ============ Desktop (≥1024): zijbalk ============ */
@media (min-width: 1024px) {
  .app-header { padding-left: 0; }
  .app-header > .brand-mark {
    width: var(--sidebar-w); padding: 0 24px; flex-shrink: 0;
    border-right: 1px solid var(--line); margin-right: auto;
  }
  .bottom-nav {
    top: calc(var(--header-h) + var(--safe-t)); bottom: 0; left: 0; right: auto; transform: none;
    width: var(--sidebar-w); height: auto;
    padding: 18px 14px 18px;
    display: flex; flex-direction: column; gap: 2px;
    border: none; border-right: 1px solid var(--line); border-radius: 0;
    box-shadow: none;
    background: var(--surface);
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .bottom-nav::before {
    content: "Menu"; display: block; padding: 0 12px 8px;
    font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint);
  }
  .bottom-nav a {
    flex-direction: row; justify-content: flex-start; gap: 10px;
    min-height: 42px; padding: 0 10px; border-radius: 10px;
    font-size: .925rem; font-weight: 600; letter-spacing: -0.005em;
    color: var(--ink-muted);
    transition: background-color .15s var(--ease), color .15s;
  }
  .bottom-nav a .ico { width: 22px; height: 22px; border-radius: 0; background: none !important; }
  .bottom-nav a .ico svg { width: 19px; height: 19px; }
  .bottom-nav a:hover { background: var(--surface-2); color: var(--ink); }
  .bottom-nav a.active { background: var(--primary-soft); color: var(--primary-soft-ink); }
  .app-main { margin: 0 0 0 var(--sidebar-w); max-width: none; width: auto; padding: 36px 40px 48px; }
  .app-main > .view { max-width: 1040px; margin: 0 auto; }
  .toast { bottom: 28px; left: calc(50% + var(--sidebar-w) / 2); }
  .detail-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
}

@media (max-width: 480px) {
  .doc-preview { padding: 16px 12px; }
  .doc-preview table { font-size: 0.8125rem; }
  .doc-preview th, .doc-preview td { padding: 9px 3px; }
  .doc-preview th { font-size: 0.6rem; letter-spacing: 0.02em; }
  .doc-preview td.right, .doc-preview th.right { white-space: nowrap; }
  .header-meta .pill { padding-right: 6px; font-size: 0; gap: 0; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Beeldmerk-stip volgt het thema */
.brand-mark .mark .dot { fill: var(--accent); }
[data-theme="dark"] .brand-mark .mark .dot { fill: #f59e0b; }

/* ======================================================================
   Vakmo app (MVP) — aanvullingen op de v2-huisstijl
   ====================================================================== */
a.list-item, a.stat-card, .list-item a.grow, a.brand-mark, .bottom-nav a, a.tab, a.btn, a.pill, a.back-btn { color: inherit; text-decoration: none; }
a.btn-primary { color: var(--primary-ink); }
a.btn-accent { color: var(--primary-ink); }
.bottom-nav a { -webkit-tap-highlight-color: transparent; }
.header-meta .pill { cursor: pointer; }
.muted { color: var(--ink-muted); }
.small { font-size: .85rem; line-height: 1.5; }
.tiny { font-size: .72rem; color: var(--ink-faint); white-space: nowrap; }
.mt { margin-top: 10px; }
.lead { color: var(--ink-muted); margin: -6px 0 6px; max-width: 70ch; }
.warn-text { color: var(--warn); font-weight: 650; }
.warn-label { color: var(--warn); }
.nowrap { white-space: nowrap; }
.count { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-muted); font-size: .7rem; font-weight: 700; letter-spacing: 0; }
.tab .count { margin-left: 4px; background: transparent; border: none; }
.amt-lg { font-weight: 750; color: var(--ink); font-variant-numeric: tabular-nums; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* Laden */
.boot { min-height: 60vh; display: grid; place-items: center; }
.boot.inline { min-height: 30vh; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line-strong); border-top-color: var(--primary-bright); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Knoppen */
.btn-inline { width: auto !important; flex: 0 0 auto; }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-danger:hover { box-shadow: 0 0 0 1px var(--danger) inset; }
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.btn:disabled { opacity: .6; cursor: progress; }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: var(--ink-faint); font-size: 1.1rem; line-height: 1; flex-shrink: 0; transition: background-color .15s, color .15s; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn svg { width: 16px; height: 16px; }
.page-title .btn { margin-top: 2px; }

/* Formulieren */
.form { display: block; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 12px; }
.field { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.field.half { grid-column: span 1; }
@media (max-width: 420px) { .field.half { grid-column: 1 / -1; } }
.field label { font-size: .82rem; font-weight: 650; color: var(--ink-muted); }
.help { color: var(--ink-faint); font-size: .78rem; }
.field input, .field select, .field textarea, .note-form textarea, .inline-form input, .line input, .line select {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  font-size: 1rem; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
.field select, .line select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.field textarea, .note-form textarea { min-height: 84px; resize: vertical; line-height: 1.5; font-family: inherit; }
.field input:focus, .field select:focus, .field textarea:focus, .note-form textarea:focus, .inline-form input:focus, .line input:focus, .line select:focus { outline: none; border-color: var(--primary-bright); box-shadow: 0 0 0 4px var(--ring); }
.field input::placeholder, textarea::placeholder, .inline-form input::placeholder, .line input::placeholder { color: var(--ink-faint); }
[data-theme="dark"] .field input, [data-theme="dark"] .field select, [data-theme="dark"] .field textarea, [data-theme="dark"] .note-form textarea, [data-theme="dark"] .inline-form input, [data-theme="dark"] .line input, [data-theme="dark"] .line select { background-color: var(--surface-2); }
input[type="date"] { min-height: 46px; }
.form-error { color: var(--danger); font-size: .9rem; font-weight: 600; margin: 8px 0 0; min-height: 0; }
.form-error:empty { display: none; }
.login-card .form .btn-primary { margin-top: 14px; }
.login-card .login-foot a { font-weight: 650; }
.check { display: inline-flex; align-items: center; gap: 10px; font-size: .925rem; cursor: pointer; min-height: 40px; }
.check input { width: 20px; height: 20px; accent-color: var(--primary); flex-shrink: 0; }

/* Schakelaar */
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: .85rem; font-weight: 650; color: var(--ink-muted); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 42px; height: 24px; border-radius: 999px; background: var(--line-strong); position: relative; transition: background-color .2s var(--ease); }
.switch .track::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .2s var(--ease); }
.switch input:checked + .track { background: var(--primary); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 2px solid var(--primary-bright); outline-offset: 2px; }

/* Dashboard */
a.stat-card { display: block; }
.stat-card .value-sm { font-size: 1.45rem; letter-spacing: -0.03em; }
.dash-cols { display: grid; gap: 0 18px; grid-template-columns: minmax(0, 1fr); }
.dash-cols > *, .detail-split > * { min-width: 0; }
.quick-actions { margin-top: 6px; }

/* Lijsten */
.avatar-sm { width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0; display: grid; place-items: center; font-size: .78rem; font-weight: 750; background: var(--primary-soft); color: var(--primary-soft-ink); }
.list-item .grow { color: inherit; }
.fu-item { padding-left: 12px; }
.fu-item::before { display: none; }
.fu-check { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--line-strong); flex-shrink: 0; display: grid; place-items: center; transition: border-color .15s, background-color .15s; }
.fu-item.status-open .fu-check { border-color: var(--warn); }
.fu-check:hover { border-color: var(--primary-bright); }
.fu-check span { width: 12px; height: 7px; border-left: 2.5px solid transparent; border-bottom: 2.5px solid transparent; transform: rotate(-45deg) translate(1px, -1px); }
.fu-item.is-done .fu-check { background: var(--ok); border-color: var(--ok); }
.fu-item.is-done .fu-check span { border-color: var(--surface); }
.fu-item.is-done .title { text-decoration: line-through; color: var(--ink-faint); }
.empty .btn { margin-top: 4px; }

/* Klantdetail */
.note-form { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; margin-bottom: 12px; }
.notes { display: flex; flex-direction: column; gap: 10px; }
.note { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; box-shadow: var(--shadow-xs); }
.note-meta { display: flex; justify-content: space-between; align-items: center; color: var(--ink-faint); font-size: .78rem; font-weight: 600; margin: -4px -6px 4px 0; }
.note-text { white-space: pre-wrap; font-size: .95rem; line-height: 1.5; }
.kv-row span:last-child { white-space: pre-wrap; overflow-wrap: anywhere; }

/* Projectdetail */
.status-tabs { margin-top: 2px; }
.share-card { margin-top: 18px; }
.share-card .card-h { margin-bottom: 4px; }
.actions-row.tight { margin: 4px 0 0; }
.progress { width: 100%; height: 6px; border: none; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin: 0 0 10px; -webkit-appearance: none; appearance: none; display: block; }
.progress::-webkit-progress-bar { background: var(--surface-3); border-radius: 99px; }
.progress::-webkit-progress-value { background: linear-gradient(90deg, var(--primary), var(--primary-bright)); border-radius: 99px; }
.progress::-moz-progress-bar { background: linear-gradient(90deg, var(--primary), var(--primary-bright)); border-radius: 99px; }
.tasks { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-xs); overflow: hidden; }
.tasks:empty { display: none; }
.task { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 8px 4px 14px; border-bottom: 1px solid var(--line); min-height: 50px; }
.task:last-child { border-bottom: none; }
.task label { display: flex; align-items: center; gap: 12px; flex: 1; cursor: pointer; font-size: .95rem; min-height: 44px; }
.task input { width: 20px; height: 20px; accent-color: var(--primary); flex-shrink: 0; }
.task.done span { text-decoration: line-through; color: var(--ink-faint); }
.inline-form { display: flex; gap: 8px; margin: 10px 0 4px; align-items: center; }
.inline-form input { flex: 1; min-width: 0; }
.inline-form.col { flex-direction: column; align-items: stretch; margin: 0 0 12px; }
.inline-form .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.tl-item .when { display: flex; justify-content: space-between; align-items: center; margin-right: -6px; }
.tl-item .when .icon-btn { width: 26px; height: 26px; font-size: 1rem; }
.dropzone {
  display: flex; align-items: center; gap: 14px; cursor: pointer;
  padding: 18px; border-radius: var(--radius); border: 1.5px dashed var(--line-strong);
  background: var(--surface); color: var(--ink-muted); margin-bottom: 12px;
  transition: border-color .15s, background-color .15s;
}
.dropzone:hover, .dropzone.over { border-color: var(--primary-bright); background: var(--primary-soft); }
.dropzone input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dropzone strong { color: var(--ink); }
.dropzone small { color: var(--ink-faint); }
.dz-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-text); flex-shrink: 0; }
.dz-ico svg { width: 22px; height: 22px; }
.upload-status { font-size: .875rem; color: var(--primary-text); font-weight: 600; min-height: 0; margin-bottom: 8px; }
.upload-status:empty { display: none; }
.photo { margin: 0; }
.photo > a { display: block; width: 100%; height: 100%; }
.photo .swatch.heic { background: linear-gradient(135deg, var(--surface-3), var(--surface-2)); color: var(--ink-muted); text-shadow: none; display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; }
.photo .swatch.heic small { font-weight: 500; opacity: .8; }
.photo-actions { position: absolute; top: 6px; left: 6px; display: flex; gap: 4px; opacity: 0; transition: opacity .15s; }
.photo:hover .photo-actions, .photo:focus-within .photo-actions { opacity: 1; }
@media (hover: none) { .photo-actions { opacity: 1; } }
.photo-actions .icon-btn { background: rgba(0,0,0,.55); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); width: 30px; height: 30px; }
.photo-actions .icon-btn:hover { background: rgba(0,0,0,.75); color: #fff; }

/* Documenten */
.doc-brand .mark { width: 30px; height: 30px; border-radius: 9px; }
.doc-brand { font-size: 1.05rem; }
.doc-org { color: var(--ink-muted); font-size: .85rem; margin-top: 10px; line-height: 1.5; }
.doc-kind { font-weight: 750; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .06em; }
.doc-no { color: var(--ink-muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.doc-to { margin-top: 10px; font-size: .9rem; line-height: 1.5; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 14px; font-size: .9rem; }
.doc-meta span { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }
.doc-title { margin: 6px 0 10px; font-size: 1.05rem; letter-spacing: -0.015em; }
.totals { margin: 14px 0 0 auto; max-width: 320px; display: flex; flex-direction: column; gap: 6px; font-variant-numeric: tabular-nums; }
.tot-row { display: flex; justify-content: space-between; gap: 16px; color: var(--ink-muted); font-size: .925rem; }
.tot-row.grand { color: var(--ink); font-weight: 750; font-size: 1.2rem; border-top: 1px solid var(--line-strong); padding-top: 8px; margin-top: 4px; letter-spacing: -0.02em; }
.doc-notes { color: var(--ink-muted); font-size: .9rem; white-space: pre-wrap; margin: 18px 0 0; }
.accepted { color: var(--ok); font-weight: 700; margin: 14px 0 0; }
.doc-foot { color: var(--ink-faint); font-size: .78rem; margin: 22px 0 0; line-height: 1.6; border-top: 1px solid var(--line); padding-top: 12px; }
.doc-foot:empty { display: none; }
@media (max-width: 480px) { .hide-xs { display: none; } }

/* Regel-editor */
.lines { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.line { display: grid; grid-template-columns: 1fr 1fr 1fr 32px; grid-template-areas: "d d d d" "q u p x" "v t t t"; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.line .l-desc { grid-area: d; } .line .l-qty { grid-area: q; } .line .l-unit { grid-area: u; } .line .l-price { grid-area: p; }
.line .l-vat { grid-area: v; } .line .l-total { grid-area: t; align-self: center; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.line .l-del { grid-area: x; align-self: center; }
.line input, .line select { min-height: 42px; padding: 9px 11px; font-size: .95rem; }
.line-head { display: none; }

/* Portaal */
.contact-card { margin-top: 18px; }
.contact-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.contact-card p { margin: 0; line-height: 1.6; }
.accept-card { margin-top: 16px; }
.accept-card h3 { margin: 0 0 6px; }
.accept-card .btn-primary { margin-top: 10px; }

.toast-err { background: var(--danger); color: #fff; }

@media (min-width: 768px) {
  .dash-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .line { grid-template-columns: minmax(0, 3fr) 80px 80px 110px 84px 110px 32px; grid-template-areas: "d q u p v t x"; padding: 8px; background: transparent; border-color: transparent; border-bottom-color: var(--line); border-radius: 0; }
  .line-head { display: grid; padding: 0 8px 4px; border: none; background: none; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }
  .line-head span:nth-child(n+2) { text-align: left; }
  .line-head span:nth-child(6) { text-align: right; }
  .lines { gap: 0; }
  .note-form { flex-direction: row; align-items: flex-end; }
  .note-form textarea { flex: 1; }
}
@media (min-width: 1024px) {
  .bottom-nav a {
    flex-direction: row; justify-content: flex-start; gap: 10px;
    min-height: 42px; padding: 0 10px; border-radius: 10px;
    font-size: .925rem; font-weight: 600; color: var(--ink-muted);
  }
}

/* Print / PDF via de browser */
@media print {
  @page { size: A4; margin: 16mm; }
  html, body { background: #fff !important; color: #000 !important; }
  [data-theme="dark"] { --surface: #fff; --surface-2: #f2f4f7; --ink: #0c111d; --ink-muted: #475467; --ink-faint: #667085; --line: #e4e7ec; --line-strong: #d0d5dd; --mark-bg: #0f766e; --mark-fg: #fff; --ok: #067647; }
  .app-header, .bottom-nav, .no-print, .toast, .modal-backdrop, .portal-header, .login-toggle, .theme-toggle, .back-btn, .actions-row, .portal-footer { display: none !important; }
  .app-main { margin: 0 !important; padding: 0 !important; max-width: none !important; }
  .portal-shell { background: #fff !important; }
  .portal-main { padding: 0 !important; max-width: none !important; }
  .doc-preview { border: none !important; box-shadow: none !important; padding: 0 !important; overflow: visible !important; }
  .doc-preview .doc-top { flex-direction: row !important; justify-content: space-between; }
  .doc-preview .doc-top .doc-party { text-align: right !important; }
  .hide-xs { display: table-cell !important; }
  .view.active { animation: none !important; }
  .brand-mark .mark { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.inline-form .check input[type=checkbox], .form .check input[type=checkbox] { appearance: auto; -webkit-appearance: checkbox; width: 20px; height: 20px; min-height: 0; padding: 0; margin: 0; flex: none; border: 0; box-shadow: none; background: none; accent-color: var(--primary); }

/* ============ E-mail ============ */
.forgot-row { margin: -4px 0 4px; text-align: right; font-size: .875rem; }
.forgot-row a { color: var(--primary-text); font-weight: 650; text-decoration: none; }
.forgot-row a:hover { text-decoration: underline; }
.mail-banner {
  display: block; margin: 0 0 16px; padding: 12px 14px; border-radius: 14px;
  background: var(--accent-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  font-size: .875rem; line-height: 1.5;
}
.mail-banner strong { color: var(--accent-ink, var(--warn)); }
.notice-ok { padding: 14px 16px; border-radius: 14px; background: var(--primary-soft); color: var(--ink); margin: 0 0 16px; line-height: 1.5; }
.notice-ok p { margin: 6px 0 0; color: var(--ink-muted); }
.notice-ok.small { font-size: .875rem; padding: 10px 14px; }
.modal-backdrop.modal-wide .modal { max-width: 680px; max-height: min(94vh, 920px); }
.mail-meta { margin-top: -4px; }
.mail-kv { margin-bottom: 14px; }
.mail-frame { display: block; width: 100%; height: 560px; border: 1px solid var(--line); border-radius: 14px; background: #F2F4F7; margin-bottom: 12px; }
.mail-text { margin-bottom: 16px; }
.mail-text summary { cursor: pointer; font-weight: 650; font-size: .9rem; color: var(--ink-muted); padding: 6px 0; }
.mail-text pre { white-space: pre-wrap; word-break: break-word; font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2); border-radius: 12px; padding: 12px 14px; color: var(--ink); max-height: 320px; overflow: auto; }
button.list-item.mail-item { font: inherit; color: inherit; cursor: pointer; margin-bottom: 8px; }
.list-item .chev { color: var(--ink-faint); font-size: 1.25rem; }
a.list-item { text-decoration: none; color: inherit; }
@media (max-width: 480px) { .mail-frame { height: 460px; } }

/* E-mail-instellingen: eigen afzenddomein + limieten */
.badge-fout { background: var(--danger-soft); color: var(--danger); }
.mail-warn { padding: 10px 14px; border-radius: 12px; background: var(--warn-soft); color: var(--ink); font-size: .875rem; line-height: 1.5; margin: 10px 0; }
.mail-warn strong { color: var(--warn); }
.mail-warn-full { background: var(--danger-soft); }
.mail-warn-full strong { color: var(--danger); }
.usage { margin-bottom: 8px; }
.usage-title { font-weight: 650; font-size: .95rem; }
.usage-num { font-size: .9rem; color: var(--ink-muted); }
.usage-num strong { color: var(--ink); font-size: 1.05rem; }
.usage .progress { margin: 8px 0 4px; height: 8px; }
.progress-warn::-webkit-progress-value { background: var(--warn); }
.progress-warn::-moz-progress-bar { background: var(--warn); }
.progress-full::-webkit-progress-value { background: var(--danger); }
.progress-full::-moz-progress-bar { background: var(--danger); }
.steps { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.dns-list { display: grid; gap: 12px; }
.dns-rec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; box-shadow: var(--shadow-xs); }
.dns-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.dns-title { font-weight: 700; letter-spacing: -0.01em; }
.dns-type { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-muted); }
.dns-head .badge { margin-left: auto; }
.dns-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); }
.dns-row .k { color: var(--ink-faint); font-weight: 600; font-size: .8rem; }
.dns-val { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; line-height: 1.45; word-break: break-all; background: var(--surface-2); border-radius: 8px; padding: 6px 8px; color: var(--ink); max-height: 7.5em; overflow: auto; }
.dns-help { margin: 8px 0 0; }
@media (max-width: 480px) { .dns-row { grid-template-columns: 1fr auto; } .dns-row .k { grid-column: 1 / -1; } }

/* Voettekst Noorderwind Studio — vaste balk (scrollt niet mee, zoals in Diafragmo) */
:root { --foot-h: 36px; }
.site-foot {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 29;
  min-height: calc(var(--foot-h) + var(--safe-b));
  padding: 0 max(12px, var(--safe-r)) var(--safe-b) max(12px, var(--safe-l));
  display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: nowrap;
  background: var(--surface); border-top: 1px solid var(--line);
  color: var(--ink-faint); font-size: 12px; line-height: 16px; white-space: nowrap;
}
.site-foot a { color: var(--ink-muted); text-decoration: none; font-weight: 600; }
.site-foot a:hover { text-decoration: underline; }
#auth.hidden + .auth-foot { display: none; }
/* Inlogscherm + klantportaal: inhoud houdt ruimte vrij voor de balk */
.login-screen { padding-bottom: calc(max(24px, var(--safe-b)) + var(--foot-h)); }
.portal-shell { padding-bottom: calc(max(24px, var(--safe-b)) + var(--foot-h)); }
/* App mobiel (<768): balk direct boven de vaste bottom-nav */
.app-shell .site-foot { bottom: calc(var(--nav-h) + var(--safe-b)); min-height: var(--foot-h); padding-bottom: 0; }
.app-main { padding-bottom: calc(var(--nav-h) + var(--safe-b) + var(--foot-h) + 32px); }
.toast { bottom: calc(var(--nav-h) + var(--safe-b) + var(--foot-h) + 16px); }
@media (min-width: 768px) {
  /* Tablet: balk onderaan het scherm, zwevende nav erboven */
  .app-shell .site-foot { bottom: 0; min-height: calc(var(--foot-h) + var(--safe-b)); padding-bottom: var(--safe-b); }
  .bottom-nav { bottom: calc(var(--foot-h) + var(--safe-b) + 12px); }
  .app-main { padding-bottom: calc(var(--nav-h) + var(--foot-h) + 68px); }
  .toast { bottom: calc(var(--nav-h) + var(--foot-h) + 44px); }
}
@media (min-width: 1024px) {
  /* Desktop: balk over de volle breedte onderaan, zijbalk eindigt erboven */
  .bottom-nav { bottom: calc(var(--foot-h) + var(--safe-b)); }
  .app-main { padding-bottom: calc(var(--foot-h) + 48px); }
  .toast { bottom: calc(var(--foot-h) + 28px); }
}
@media print { .site-foot { display: none !important; } }

/* Soevereine EU-hosting (zelfde markup/vlag als Diafragmo) */
.eu-flag { width: 14px; height: 14px; flex: none; display: block; border-radius: 50%; }
.eu-side { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; padding: 3px 9px 3px 4px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink-muted); font-size: 11px; font-weight: 600; line-height: 16px; white-space: nowrap; transition: border-color .15s, color .15s; }
.eu-side:hover { border-color: var(--line-strong); color: var(--ink); }

/* ============ Helpdesk ============ */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ok-text { color: var(--ok); font-weight: 650; }
.help-btn {
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px 0 10px;
  border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line);
  color: var(--ink-muted); font-weight: 650; font-size: 0.8rem; -webkit-tap-highlight-color: transparent;
}
.help-btn svg { width: 19px; height: 19px; }
.help-btn:hover { border-color: var(--line-strong); color: var(--ink); }
.help-btn.active { background: var(--primary-soft); color: var(--primary-soft-ink); border-color: transparent; }
@media (max-width: 480px) { .help-btn { width: 40px; padding: 0; justify-content: center; } .help-btn .help-lbl { display: none; } }

.chat-avatar { width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; background: var(--mark-bg); color: var(--mark-fg); }
.chat-avatar svg { width: 66%; height: 66%; display: block; }
.chat-avatar .dot { fill: var(--accent); }
.chat-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--primary-soft), transparent); }
.chat-head > div { flex: 1; min-width: 0; }
.chat-title { font-weight: 750; letter-spacing: -0.02em; }
.chat-sub { color: var(--ink-muted); font-size: 0.8rem; margin-top: 2px; }
.chat-log { display: flex; flex-direction: column; gap: 14px; padding: 16px; min-height: 280px; max-height: max(320px, calc(100dvh - 430px)); overflow-y: auto; overscroll-behavior: contain; }
.chat-row { display: flex; gap: 10px; align-items: flex-end; animation: rise .25s var(--ease) both; }
.chat-row.me { justify-content: flex-end; }
.chat-row .bubble { max-width: 86%; padding: 11px 14px; border-radius: 16px; font-size: 0.95rem; line-height: 1.5; overflow-wrap: anywhere; }
.chat-row.bot .bubble { background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.chat-row.me .bubble { background: var(--primary); color: var(--primary-ink); border-bottom-right-radius: 6px; }
.chat-notice { margin: 0 0 8px; font-size: 0.8rem; color: var(--warn); font-weight: 600; }
.chat-sources { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
.chat-sources .k { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); margin-right: 2px; }
.src-chip {
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--primary-text);
  font-size: 0.8rem; font-weight: 650; line-height: 1.25; text-align: left;
}
.src-chip:hover { border-color: var(--primary); }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chat-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line-strong); }
.chat-fb-done { margin: 10px 0 0; font-size: 0.85rem; color: var(--ok); font-weight: 650; }
.chat-form { display: flex; gap: 8px; align-items: flex-end; padding: 12px; border-top: 1px solid var(--line); background: var(--surface); }
.chat-form textarea { flex: 1; resize: none; min-height: 48px; max-height: 160px; line-height: 1.4; width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-size: 1rem; -webkit-appearance: none; appearance: none; }
.chat-form textarea:focus { outline: none; border-color: var(--primary-bright); box-shadow: 0 0 0 4px var(--ring); }
.select-sm { border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); }
.chat-form .btn { width: 48px; height: 48px; padding: 0; justify-content: center; flex-shrink: 0; }
.chat-form .btn svg { width: 20px; height: 20px; }
.dots { display: inline-flex; gap: 4px; padding: 4px 2px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-faint); animation: blink 1.2s infinite both; }
.dots i:nth-child(2) { animation-delay: .2s; } .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.prio-high { font-size: 0.7rem; font-weight: 750; color: var(--danger); background: var(--danger-soft); padding: 2px 8px; border-radius: 999px; }
.ticket-status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: -6px 0 16px; }
.select-sm { height: 36px; padding: 0 10px; border-radius: 10px; font-size: 0.875rem; width: auto; }
.ticket-thread { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.tmsg { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; box-shadow: var(--shadow-xs); }
.tmsg.from-admin { border-left: 3px solid var(--primary); background: linear-gradient(90deg, var(--primary-soft), var(--surface) 40%); }
.tmsg-meta { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; margin-bottom: 8px; }
.tmsg-meta span:last-child { color: var(--ink-faint); margin-left: auto; font-size: 0.78rem; }
.tmsg-meta .avatar-sm, .tmsg-meta .chat-avatar { width: 30px; height: 30px; border-radius: 9px; font-size: 0.7rem; }
.tmsg-body { line-height: 1.55; overflow-wrap: anywhere; }
.tmsg-atts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ticket-att img { display: block; width: 120px; height: 90px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.transcript { font-size: 0.875rem; color: var(--ink-muted); margin: 6px 0 14px; }
.transcript summary { cursor: pointer; font-weight: 650; color: var(--ink); }
.transcript p { margin: 8px 0 0; line-height: 1.5; }
#ticket-form .check { margin: 6px 0 4px; }
.reply-form .btn { margin-top: 4px; }
.help-article h2 { margin: 0 0 12px; font-size: 1.4rem; letter-spacing: -0.03em; }
.help-article h3 { margin: 20px 0 8px; font-size: 1.05rem; }
.help-article p, .help-article li { line-height: 1.6; color: var(--ink); }
.help-article ol, .help-article ul { padding-left: 22px; }
.help-article code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: 0.88em; }
@media (min-width: 1024px) { .help-split { grid-template-columns: 1.35fr 1fr; } }
