/* ===== Design tokens ===== */
:root,
[data-theme='dark'] {
  --bg: #0D0E11;
  --surface: #15171B;
  --surface-2: #1C1F25;
  --surface-3: #23262E;
  --border: #2A2E36;
  --border-soft: #20232A;
  --text: #ECEDEE;
  --text-muted: #9AA0A8;
  --text-faint: #62676F;
  --accent: #FF7A1A;
  --accent-hover: #FF8F38;
  --accent-soft: rgba(255,122,26,0.14);
  --accent-glow: rgba(255,122,26,0.45);
  --success: #3FB950;
  --success-soft: rgba(63,185,80,0.14);
  --warn: #F2C94C;
  --warn-soft: rgba(242,201,76,0.16);
  --danger: #FF5C5C;
  --shadow: 0 12px 40px rgba(0,0,0,0.45);
  --shadow-fab: 0 10px 30px rgba(255,122,26,0.42);
}

[data-theme='light'] {
  --bg: #F5F5F3;
  --surface: #FFFFFF;
  --surface-2: #F4F4F1;
  --surface-3: #ECECE8;
  --border: #E2E3DF;
  --border-soft: #ECECE7;
  --text: #14161A;
  --text-muted: #5B6168;
  --text-faint: #A4A9AF;
  --accent: #E8650F;
  --accent-hover: #C75609;
  --accent-soft: rgba(232,101,15,0.12);
  --accent-glow: rgba(232,101,15,0.35);
  --success: #2EA043;
  --success-soft: rgba(46,160,67,0.12);
  --warn: #C99A0E;
  --warn-soft: rgba(201,154,14,0.16);
  --danger: #DC3D3D;
  --shadow: 0 10px 30px rgba(0,0,0,0.10);
  --shadow-fab: 0 10px 26px rgba(232,101,15,0.38);
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: none; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
body {
  min-height: 100dvh;
  font-family: 'General Sans', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-tap-highlight-color: transparent;
}
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; background: none; border: none; color: inherit; font: inherit; }
[hidden] { display: none !important; }
input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; }
::selection { background: var(--accent-soft); }

/* ===== App shell (phone-first) ===== */
.app {
  max-width: 460px;
  margin: 0 auto;
  height: 100dvh;
  padding: 0 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.feed-scroll {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: calc(100px + env(safe-area-inset-bottom));
}

/* Top bar */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(env(safe-area-inset-top) + 18px) 4px 12px;
  margin-top: 4px;
  position: sticky; top: 0; z-index: 20;
  background: linear-gradient(var(--bg), var(--bg) 60%, transparent);
  backdrop-filter: blur(8px);
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { color: var(--accent); display: flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.brand-sub { font-size: 12px; color: var(--text-muted); }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--border); color: var(--text-muted);
  transition: var(--t);
}
.icon-btn:hover { color: var(--text); border-color: var(--accent); }
:root { --t: 180ms cubic-bezier(0.16,1,0.3,1); }

/* Role switcher */
.role-switch {
  display: flex; gap: 6px; padding: 4px;
  background: var(--surface-2); border: 1px solid var(--border-soft);
  border-radius: 14px; margin-bottom: 18px;
}
.role-btn {
  flex: 1; padding: 9px 6px; border-radius: 10px;
  font-size: 13px; font-weight: 500; color: var(--text-muted);
  transition: var(--t);
}
.role-btn.active { background: var(--surface-3); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,0.2); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 22px; }
.stat {
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: 16px; padding: 14px 12px; text-align: center;
}
.stat-num { display: block; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.stat-label { font-size: 11px; color: var(--text-muted); }

/* Section head */
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.section-head h2 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.hint { font-size: 12px; }
.muted { color: var(--text-muted); }

/* Task list */
.task-list { display: flex; flex-direction: column; gap: 10px; }
.task {
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: 16px; padding: 14px; transition: var(--t);
}
.task:hover { border-color: var(--border); }
.task-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.task-avatar { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.av-marisa { background: #E0649C; color: #fff; }
.av-david { background: #3B7DD8; color: #fff; }
.av-nadine { background: #7B61D6; color: #fff; }
.av-chef { background: var(--accent); color: #0D0E11; }
.av-unsorted { background: var(--surface-3); color: var(--text-muted); border: 1px dashed var(--border); }
.task-meta { flex: 1; min-width: 0; }
.task-who { font-size: 13px; font-weight: 600; }
.task-when { font-size: 11px; color: var(--text-muted); }
.task-title { font-size: 15px; font-weight: 500; line-height: 1.4; }
.task-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag { font-size: 11px; padding: 3px 8px; border-radius: 999px; font-weight: 500; }
.tag-important { background: var(--warn-soft); color: var(--warn); }
.tag-loc { background: var(--surface-3); color: var(--text-muted); }
.tag-status { background: var(--success-soft); color: var(--success); }
.tag-status.open { background: var(--accent-soft); color: var(--accent); }
.tag-status.unsorted { background: var(--surface-3); color: var(--text-muted); }

/* Employee task actions */
.task-actions { display: flex; gap: 8px; margin-top: 12px; }
.chip-btn {
  flex: 1; padding: 9px; border-radius: 10px; font-size: 13px; font-weight: 500;
  border: 1px solid var(--border); color: var(--text); transition: var(--t);
}
.chip-btn:hover { border-color: var(--accent); }
.chip-btn.primary { background: var(--accent); color: #0D0E11; border-color: var(--accent); font-weight: 600; }
.chip-btn.primary:hover { background: var(--accent-hover); }
.task-negotiate { margin-top: 10px; display: none; }
.task-negotiate.show { display: block; }
.neg-row { display: flex; gap: 8px; }
.neg-input { flex: 1; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; font-size: 13px; }
.neg-input:focus { outline: none; border-color: var(--accent); }

.empty { text-align: center; color: var(--text-faint); font-size: 14px; padding: 40px 0 120px; }

/* Employee header */
.emp-head {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: 16px; padding: 16px; margin-bottom: 20px;
}
.emp-head .avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 18px; }
.emp-head > div:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.emp-head strong { font-size: 16px; }
.emp-head .muted { font-size: 12px; }
.emp-points { text-align: right; }
.pts-num { display: block; font-size: 20px; font-weight: 600; color: var(--accent); }
.pts-label { font-size: 11px; color: var(--text-muted); }

/* ===== FAB ===== */
.fab {
  position: fixed; right: 18px;
  bottom: calc(22px + env(safe-area-inset-bottom));
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--accent); color: #0D0E11;
  display: grid; place-items: center; z-index: 30;
  box-shadow: var(--shadow-fab);
  transition: transform 160ms ease;
}
.fab:active { transform: scale(0.92); }
.fab-ring { position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; }
.fab.recording .fab-ring { animation: pulse 1.4s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(0.9); opacity: 0.7; } 100% { transform: scale(1.5); opacity: 0; } }

/* ===== Voice sheet ===== */
.sheet-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 40; opacity: 0; animation: fade 200ms forwards;
}
@keyframes fade { to { opacity: 1; } }
.sheet {
  position: fixed; left: 50%; transform: translateX(-50%) translateY(100%);
  bottom: 0; width: 100%; max-width: 460px;
  background: var(--surface); border-radius: 24px 24px 0 0;
  padding: 26px 20px calc(28px + env(safe-area-inset-bottom));
  z-index: 50; box-shadow: var(--shadow);
  transition: transform 280ms cubic-bezier(0.16,1,0.3,1);
  border: 1px solid var(--border-soft); border-bottom: none;
  max-height: 92dvh; overflow-y: auto;
}
.sheet.open { transform: translateX(-50%) translateY(0); }
.sheet::before { content: ''; display: block; width: 38px; height: 4px; background: var(--border); border-radius: 999px; margin: 0 auto 22px; }

.sheet-state { animation: rise 200ms ease; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Listening orb */
.listen-orb { position: relative; width: 110px; height: 110px; margin: 10px auto 18px; display: grid; place-items: center; }
.orb-core { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 40px var(--accent-glow); animation: breathe 2.2s ease-in-out infinite; }
@keyframes breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.orb-wave { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); animation: wave 2.4s ease-out infinite; }
.orb-wave.delay { animation-delay: 1.2s; }
@keyframes wave { 0% { transform: scale(0.5); opacity: 0.8; } 100% { transform: scale(1.1); opacity: 0; } }

.listen-title { text-align: center; font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.transcript { text-align: center; font-size: 15px; color: var(--text-muted); min-height: 44px; padding: 0 6px; }

/* Review */
.review-head { margin-bottom: 16px; }
.ki-badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); letter-spacing: 0.02em; }
.review-note { font-size: 14px; color: var(--text-muted); margin-top: 8px; }

.review-card { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; }
.field-toggle { align-items: flex-start; }
.field-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.field-control { display: flex; }
.field-why { font-size: 11px; line-height: 1.4; min-height: 14px; }

.select, .input, .textarea {
  width: 100%; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 11px; padding: 11px 13px; font-size: 15px; transition: var(--t);
}
.textarea { resize: vertical; min-height: 48px; }
.select:focus, .input:focus, .textarea:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239AA0A8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 38px; }

/* toggle */
.toggle { width: 46px; height: 28px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--border); position: relative; transition: var(--t); margin-top: 2px; }
.toggle-knob { position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--text-muted); transition: var(--t); }
.toggle[aria-checked="true"] { background: var(--warn); border-color: var(--warn); }
.toggle[aria-checked="true"] .toggle-knob { left: 22px; background: #0D0E11; }

/* Sheet actions */
.sheet-actions { display: flex; gap: 10px; margin-top: 20px; }
.btn-ghost, .btn-primary { flex: 1; padding: 13px; border-radius: 12px; font-size: 15px; font-weight: 600; transition: var(--t); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-primary { background: var(--accent); color: #0D0E11; font-weight: 600; }
.btn-ghost.sm, .btn-wa.sm { flex: 0 0 auto; padding: 8px 12px; font-size: 13px; border-radius: 10px; }
/* WhatsApp share button */
.btn-wa { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 13px; border-radius: 12px; font-size: 15px; font-weight: 600; background: #25D366; color: #073B1A; text-decoration: none; transition: var(--t); border: 1px solid #1ebe5d; }
.btn-wa:hover { background: #20c25c; }
/* invite result card */
.inv-card { background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: 14px; padding: 14px; margin-top: 12px; }
.inv-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.inv-close { background: none; color: var(--text-muted); font-size: 16px; padding: 2px 6px; cursor: pointer; border-radius: 6px; }
.inv-close:hover { background: var(--surface-3); color: var(--text); }
.inv-actions { display: flex; gap: 8px; margin-top: 10px; }
.inv-actions .btn-wa, .inv-actions .btn-ghost { flex: 1; }
/* top loading bar */
#loadBar { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--accent); z-index: 200; transition: width 220ms ease, opacity 300ms ease; opacity: 0; }
#loadBar.on { opacity: 1; width: 30%; }
#loadBar.done { width: 100%; opacity: 0; }
/* searchable assignee picker */
.picker { position: relative; }
.picker-input { width: 100%; }
.picker-list { margin-top: 4px; max-height: 200px; overflow-y: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); z-index: 60; padding: 4px; }
.picker-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 10px 12px; border: none; background: none; color: var(--text); cursor: pointer; border-radius: 8px; text-align: left; }
.picker-item:hover, .picker-item:active { background: var(--surface-2); }
/* role badges + small select */
.tag-role-leitung { background: #4b5563; color: #fff; border: none; }
.tag-role-admin { background: #b45309; color: #fff; border: none; }
.select.sm { padding: 8px 10px; font-size: 13px; border-radius: 10px; flex: 0 0 auto; }
/* feature tour */
#tourSlide { text-align: center; }
.tour-icon { font-size: 56px; margin: 8px 0 4px; }
#tourSlide h2 { margin: 4px 0 10px; }
#tourSlide p { line-height: 1.5; }
.tour-dots { display: flex; gap: 6px; justify-content: center; margin: 16px 0 4px; }
.tour-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--surface-3); }
.tour-dot.active { background: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { opacity: 0.5; }

/* Toast */
.toast {
  position: fixed; left: 50%; transform: translate(-50%, 20px);
  bottom: calc(105px + env(safe-area-inset-bottom));
  background: var(--text); color: var(--bg); z-index: 60;
  padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none;
  transition: opacity 200ms, transform 200ms; white-space: nowrap; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 540px) {
  .app { box-shadow: 0 0 60px rgba(0,0,0,0.25); }
  body { background: var(--bg); }
  [data-theme='light'] body { background: #ECEBE8; }
}

/* ===== Login screen ===== */
.login-screen { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.login-card { width: 100%; max-width: 360px; text-align: center; }
.login-logo { color: var(--accent); margin-bottom: 16px; display: flex; justify-content: center; }
.login-card h1 { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.login-sub { color: var(--text-muted); font-size: 14px; margin-top: 4px; margin-bottom: 24px; }
.login-tabs { display: flex; gap: 6px; padding: 4px; background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: 12px; margin-bottom: 18px; }
.ltab { flex: 1; padding: 9px; border-radius: 9px; font-size: 13px; font-weight: 500; color: var(--text-muted); transition: var(--t); }
.ltab.active { background: var(--surface-3); color: var(--text); }
.login-form { display: flex; flex-direction: column; gap: 14px; text-align: left; }
.login-error { color: var(--danger); font-size: 13px; }
.login-hint { color: var(--text-faint); font-size: 12px; margin-top: 14px; }
.login-note { display: flex; gap: 8px; align-items: flex-start; text-align: left; margin-top: 18px; padding: 12px; border: 1px dashed var(--border-soft); border-radius: 12px; color: var(--text-muted); font-size: 12.5px; line-height: 1.45; }
.login-note svg { color: var(--text-faint); flex-shrink: 0; margin-top: 1px; }
.login-note strong { color: var(--text); }
.login-foot { margin-top: 18px; color: var(--text-muted); font-size: 13px; }
.login-foot a { color: var(--accent); font-weight: 600; text-decoration: none; }
.login-foot a:hover { text-decoration: underline; }

/* ===== Top actions ===== */
.top-actions { display: flex; gap: 8px; }
.link-btn { color: var(--text-muted); font-size: 18px; padding: 4px 8px; transition: var(--t); }
.link-btn:hover { color: var(--accent); }

.pin-result { margin-top: 12px; padding: 12px; background: var(--success-soft); color: var(--success); border-radius: 12px; font-size: 14px; font-weight: 500; text-align: center; }
#empForm .btn-primary { margin-top: 4px; }

/* tap-to-done: make task tappable */
.task.done .task-title { text-decoration: line-through; color: var(--text-muted); }
.task .done-check { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.check-btn { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); color: var(--text); transition: var(--t); }
.check-btn:hover { border-color: var(--success); color: var(--success); }
.task.done .check-btn { background: var(--success); color: #0D0E11; border-color: var(--success); }

/* ===== New: AI thinking, sub-tabs, pin-row, reassign ===== */
.think-spin { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--surface-3); border-top-color: var(--accent); margin: 0 auto 14px; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.sub-tabs { display: flex; gap: 6px; margin-bottom: 16px; background: var(--surface-2); padding: 5px; border-radius: 12px; }
.subtab { flex: 1; font-size: 14px; font-weight: 600; padding: 9px 12px; border-radius: 9px; border: none; background: transparent; color: var(--text-muted); cursor: pointer; transition: var(--t); }
.subtab.active { background: var(--surface-3); color: var(--text); }
.subpane { min-height: 200px; }

.pin-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.emp-perm { align-self: center; flex: 0 0 auto; max-width: 150px; }
.pin-input { width: 130px; font-size: 16px; letter-spacing: 0.08em; text-align: center; }
.pin-set { font-size: 13px; padding: 8px 12px; }
.del-emp, .del-grp { font-size: 13px; padding: 8px 10px; color: var(--text-muted); margin-left: auto; }
.del-emp:hover, .del-grp:hover { color: var(--danger, #e0566b); }

.reassign { margin-top: 12px; }
.reassign-sel { width: 100%; font-size: 14px; }

.ki-badge.fallback { background: var(--surface-3); color: var(--text-muted); }
.nego-note { margin-top: 12px; padding: 10px 12px; background: var(--accent-soft); color: var(--text); border-radius: 10px; font-size: 13px; line-height: 1.4; }
.nego-note strong { color: var(--accent); }
.tag-status.proposed { background: var(--accent-soft); color: var(--accent); }
.check-btn.primary { background: var(--accent); color: #0D0E11; border-color: var(--accent); font-weight: 600; }
.check-btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.small { font-size: 12px; }
.muted.small { font-size: 12px; display: block; margin-top: 4px; }
[contenteditable="true"]:focus { outline: 1px solid var(--accent); border-radius: 4px; }
[contenteditable="true"] { cursor: text; }
.task-who[contenteditable], .task-when[contenteditable] { border-radius: 4px; padding: 2px 4px; margin: -2px -4px; }

/* ===== New: filters, overdue, verify, tools, dashboard, bulk ===== */
.filter-bar { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0 12px; }
.filter-bar::-webkit-scrollbar { display: none; }
.filter-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--surface-3); background: var(--surface-2); color: var(--text-muted); cursor: pointer; white-space: nowrap; transition: var(--t); }
.filter-chip.active { background: var(--accent); color: #0D0E11; border-color: var(--accent); }
.chip-count { font-size: 11px; background: rgba(0,0,0,0.18); padding: 1px 6px; border-radius: 999px; }
.filter-chip:not(.active) .chip-count { background: var(--surface-3); }

.tag-overdue { background: rgba(224,86,107,0.18); color: #e0566b; }
.tag-status.verify { background: rgba(209,153,0,0.18); color: #d19900; }
.task.overdue { border-color: rgba(224,86,107,0.4); }
.task.overdue .task-title { color: #f0a8b2; }

.link-btn { background: none; border: none; color: var(--text-muted); font-size: 12px; font-weight: 600; cursor: pointer; padding: 4px 6px; border-radius: 6px; transition: var(--t); }
.link-btn:hover { color: var(--accent); background: var(--surface-2); }
.task-tools { display: flex; gap: 4px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--surface-3); flex-wrap: wrap; }
.del-btn:hover { color: #e0566b; }
.hist-list { list-style: none; margin: 8px 0 0; padding: 8px 10px; background: var(--surface-2); border-radius: 8px; font-size: 12px; line-height: 1.7; }
.hist-list li { color: var(--text-muted); }
.hist-time { color: var(--text-muted); opacity: 0.7; margin-right: 4px; }

.stat-num.danger { color: #e0566b; }
.stat-num.ok { color: var(--accent); }
.stat-num.warn { color: #d19900; }

.dash-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.dash-stat { background: var(--surface-2); border-radius: 12px; padding: 12px 6px; text-align: center; }
.dash-num { display: block; font-size: 24px; font-weight: 700; color: var(--text); }
.dash-num.warn { color: #d19900; }
.dash-num.danger { color: #e0566b; }
.dash-num.ok { color: var(--accent); }
.dash-lbl { display: block; font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.dash-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.dash-who { font-weight: 600; flex: 1; }
.dash-grp { font-size: 12px; color: var(--text-muted); flex: 1; }
.dash-done { font-size: 12px; color: var(--text-muted); }
.dash-pts { font-weight: 700; color: var(--accent); min-width: 50px; text-align: right; }

.pin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pin-table th, .pin-table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--surface-3); }
.pin-table th { color: var(--text-muted); font-size: 12px; font-weight: 600; }
