*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Surfaces – warm-neutral */
  --bg:        #f7f6f3;
  --surface:   #ffffff;
  --surface-2: #fafaf8;
  --border:    #ebe9e3;
  --border-2:  #dfdcd4;

  /* Text */
  --text:      #2a2724;
  --text-2:    #6b6660;
  --text-3:    #a39d95;
  --text-hi:   #14110e;

  /* Brand */
  --accent:    #e07a00;
  --accent-h:  #c66a00;
  --accent-bg: #fdf1df;
  --accent-bd: #f5d9b0;

  /* Semantic */
  --pos:       #1f7a4d;   --pos-bg: #e5f3eb;
  --neg:       #b2402e;   --neg-bg: #fbeae5;
  --info:      #2d5fa3;   --info-bg: #e7eef9;

  /* Shape */
  --r-sm: 6px;
  --r:    10px;
  --r-lg: 14px;

  /* Layout */
  --sidebar-w: 248px;
  --topbar-h:  60px;
}

body {
  font-family: 'DM Sans', -apple-system, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--text);
  display: flex;
  height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
}

a { text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
.ico { width: 16px; height: 16px; flex-shrink: 0; vertical-align: -2px; }
.mono, code, pre { font-family: 'JetBrains Mono', 'Consolas', monospace; }

/* ── Sidebar ──────────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: 100vh;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 18px 16px;
}
.brand-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent) 0%, #d65a00 100%);
  display: grid; place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 700; font-size: 15px; color: var(--text-hi); letter-spacing: -0.01em; }
.brand-tag { font-size: 11px; color: var(--text-3); margin-top: 2px; }

.tenant-switch {
  margin: 4px 12px 8px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-2);
  background: var(--surface-2);
  transition: border-color .12s, background .12s;
}
.tenant-switch:hover { border-color: var(--border-2); background: #f5f3ee; }
.tenant-switch .ico-tile {
  width: 22px; height: 22px;
  border-radius: 5px;
  background: #efece5;
  display: grid; place-items: center;
  color: var(--text-2);
  flex-shrink: 0;
}
.tenant-switch .tenant-name { color: var(--text-hi); font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tenant-switch .chev { color: var(--text-3); }

.nav { flex: 1; padding: 6px 12px; overflow-y: auto; display: flex; flex-direction: column; }
.nav-section {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  padding: 14px 10px 6px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-weight: 500;
  font-size: 13.5px;
  transition: background .12s, color .12s;
}
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active {
  background: var(--accent-bg);
  color: var(--accent-h);
  font-weight: 600;
}
.nav-item .ico { width: 16px; height: 16px; flex-shrink: 0; }

.sidebar-foot {
  border-top: 1px solid var(--border);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #2a2724;
  color: #fff;
  display: grid; place-items: center;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.user-meta { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; flex: 1; }
.user-name { font-size: 12.5px; font-weight: 600; color: var(--text-hi); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-role { font-size: 11px; color: var(--text-3); }
.sidebar-foot .icon-btn { color: var(--text-3); padding: 6px; border-radius: 6px; transition: .12s; }
.sidebar-foot .icon-btn:hover { color: var(--text); background: var(--surface-2); }

/* ── Main ─────────────────────────────────────────────────────────── */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 5;
}
.crumbs { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 13.5px; flex: 1; }
.crumbs .crumb-sep { color: var(--text-3); }
.crumbs .crumb-here { color: var(--text-hi); font-weight: 600; }
.breadcrumb {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-hi);
  flex: 1;
}
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px 5px 9px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-2);
}
.sync-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pos); box-shadow: 0 0 0 3px rgba(31,122,77,0.12); }

.content { flex: 1; overflow-y: auto; padding: 28px 32px; }

/* ── Page title ───────────────────────────────────────────────────── */
.ptitle {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-hi);
  margin-bottom: 6px;
}
.ptitle-sub { font-size: 13px; color: var(--text-3); margin-bottom: 24px; }

/* ── Stat cards ───────────────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.card.c-orange::after { display: none; }
.card.c-blue::after   { display: none; }
.card.c-teal::after   { display: none; }
.card.c-green::after  { display: none; }
.card.c-warn::after   { display: none; }
.card.c-purple::after { display: none; }

.card-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  margin-bottom: 12px;
}
.card-icon.i-orange { background: rgba(242,140,0,.12); }
.card-icon.i-blue   { background: rgba(14,165,233,.12); }
.card-icon.i-green  { background: rgba(16,185,129,.12); }
.card-icon.i-warn   { background: rgba(245,158,11,.12); }
.card-icon.i-purple { background: rgba(139,92,246,.12); }
.card-icon.i-teal   { background: rgba(14,165,233,.12); }

.card-label { font-size: 12px; font-weight: 600; color: var(--text-3); margin-bottom: 6px; }
.card-val   { font-size: 30px; font-weight: 700; color: var(--text-hi); line-height: 1; margin-bottom: 4px; }
.card-sub   { font-size: 12px; color: var(--text-3); }

/* ── Section ──────────────────────────────────────────────────────── */
.section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  margin-bottom: 18px;
  overflow: hidden;
}
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-hi);
  text-transform: uppercase;
  letter-spacing: .5px;
  background: var(--surface-2);
}

/* ── Table ────────────────────────────────────────────────────────── */
table { width: 100%; border-collapse: collapse; }
th {
  padding: 9px 20px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--text-3);
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
td { padding: 10px 20px; border-bottom: 1px solid var(--border); font-size: 13px; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(242,140,0,.04); }

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background .12s, border-color .12s, color .12s;
  line-height: 1;
}
.btn .ico { width: 15px; height: 15px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-h); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--border-2); }
.btn-quiet { background: transparent; color: var(--text-2); }
.btn-quiet:hover { background: var(--surface-2); color: var(--text); }
.btn-sm { padding: 6px 10px; font-size: 12.5px; }
.btn-lg { padding: 10px 24px; font-size: 14px; font-weight: 600; }

/* ── Run mode cards ───────────────────────────────────────────────── */
.run-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 24px; }

.run-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--r);
  padding: 22px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  color: inherit;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s, transform .1s;
  box-shadow: var(--shadow);
}
.run-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.run-card.c-green:hover  { border-color: var(--green); }
.run-card.c-orange:hover { border-color: var(--warning); }

.rc-icon  { font-size: 26px; margin-bottom: 12px; }
.rc-title { font-size: 15px; font-weight: 600; color: var(--text-hi); margin-bottom: 6px; }
.rc-desc  { font-size: 12px; color: var(--text-3); line-height: 1.6; }

/* ── Log panel ────────────────────────────────────────────────────── */
.log-panel {
  background: #1a1b2e;
  padding: 16px 20px;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.8;
  color: #cdd6f4;
  height: 320px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
}
.lok  { color: #a6e3a1; }
.lerr { color: #f38ba8; }
.ldim { color: #585b70; }

/* ── Summary boxes ────────────────────────────────────────────────── */
.sum-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; padding: 16px; }
.sum-box  {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px;
  text-align: center;
}
.sum-num  { font-size: 26px; font-weight: 700; color: var(--text-hi); }
.sum-lbl  { font-size: 11px; font-weight: 600; color: var(--text-3); margin-top: 4px; text-transform: uppercase; letter-spacing: .4px; }

/* ── Badges ───────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.b-orange { background: rgba(242,140,0,.12); color: #b45309; }
.b-blue   { background: rgba(14,165,233,.12); color: #0369a1; }
.b-teal   { background: rgba(14,165,233,.12); color: #0369a1; }
.b-green  { background: rgba(16,185,129,.12); color: #065f46; }
.b-warn   { background: rgba(245,158,11,.12); color: #92400e; }
.b-dim    { background: var(--surface-2); color: var(--text-3); border: 1px solid var(--border); }
.b-new    { background: #fff; color: var(--text-hi); border: 1px solid var(--border); font-size: 10px; font-weight: 700; letter-spacing: .5px; padding: 2px 8px; }

/* ── Toggle switch ────────────────────────────────────────────────── */
.toggle { position: relative; display: inline-block; width: 44px; height: 24px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; cursor: pointer;
  inset: 0; background: var(--border);
  border-radius: 24px;
  transition: .2s;
}
.slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.toggle input:checked + .slider { background: var(--accent); }
.toggle input:checked + .slider::before { transform: translateX(20px); }

/* ── Forms ────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-hint { font-size: 11px; color: var(--text-3); margin-top: 5px; }

input[type=text], input[type=time], input[type=email],
input[type=password], input[type=number], input[type=url],
textarea, select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  padding: 9px 12px;
  width: 100%;
  max-width: 420px;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(242,140,0,.12);
}
input.full, select.full, textarea.full { max-width: 100%; }
textarea { resize: vertical; min-height: 120px; }

.radio-row { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-opt {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 9px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  transition: border-color .15s;
}
.radio-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-bg); color: var(--accent); }
input[type=radio]    { accent-color: var(--accent); }
input[type=checkbox] { accent-color: var(--accent); width: 15px; height: 15px; cursor: pointer; }

/* ── Drop zone ────────────────────────────────────────────────────── */
.dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--r);
  padding: 52px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  margin-bottom: 20px;
  background: var(--surface);
}
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: var(--accent-bg); }
.dz-icon { font-size: 36px; color: var(--accent); margin-bottom: 12px; }
.dz-text { font-size: 15px; font-weight: 600; color: var(--text-hi); margin-bottom: 6px; }
.dz-hint { font-size: 12px; color: var(--text-3); }

/* ── Toast ────────────────────────────────────────────────────────── */
.toast { padding: 7px 16px; border-radius: 6px; font-size: 13px; font-weight: 500; }
.toast-success { background: rgba(16,185,129,.12); color: #065f46; border: 1px solid rgba(16,185,129,.2); }
.toast-warning { background: rgba(245,158,11,.12); color: #92400e; border: 1px solid rgba(245,158,11,.2); }
.toast-info    { background: rgba(14,165,233,.12); color: #0369a1; border: 1px solid rgba(14,165,233,.2); }
.toast-error   { background: rgba(239,68,68,.12); color: #991b1b; border: 1px solid rgba(239,68,68,.2); }

/* ── Template cards ───────────────────────────────────────────────── */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 16px; padding: 20px; }
.tpl-card {
  background: var(--surface-2);
  border: 2px solid var(--border);
  border-radius: var(--r);
  padding: 20px;
  position: relative;
  transition: border-color .15s, box-shadow .15s;
}
.tpl-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }
.tpl-card.is-actief { border-color: var(--accent); background: var(--accent-bg); }
.tpl-card-title { font-size: 15px; font-weight: 700; color: var(--text-hi); margin-bottom: 4px; }
.tpl-card-sub   { font-size: 12px; color: var(--text-3); margin-bottom: 16px; line-height: 1.5; }
.tpl-active-badge {
  position: absolute; top: 14px; right: 14px;
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 2px 9px; border-radius: 10px;
  text-transform: uppercase; letter-spacing: .5px;
}

/* ── Editor tabs ──────────────────────────────────────────────────── */
.editor-tabs { display: flex; border-bottom: 1px solid var(--border); background: var(--surface-2); padding: 0 20px; }
.editor-tab {
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s;
}
.editor-tab:hover { color: var(--text); }
.editor-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.editor-pane { display: none; }
.editor-pane.active { display: block; }

/* ── Google review cards ──────────────────────────────────────────── */
.review-list { padding: 0; }
.review-item {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.review-item:last-child { border-bottom: none; }
.review-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.review-body { flex: 1; min-width: 0; }
.review-author { font-weight: 600; color: var(--text-hi); font-size: 14px; }
.review-meta   { font-size: 12px; color: var(--text-3); margin-bottom: 6px; }
.review-stars  { display: flex; gap: 2px; margin-bottom: 6px; }
.star-filled   { color: #f59e0b; font-size: 15px; }
.star-empty    { color: var(--border); font-size: 15px; }
.review-time   { font-size: 12px; color: var(--text-3); margin-left: 8px; }
.review-text   { font-size: 13px; color: var(--text); line-height: 1.6; }

.rating-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.rating-big { font-size: 48px; font-weight: 700; color: var(--text-hi); line-height: 1; }
.rating-stars { display: flex; gap: 3px; margin-bottom: 4px; }
.rating-count { font-size: 13px; color: var(--text-3); }

/* ── Contacts ─────────────────────────────────────────────────────── */
.contact-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  color: #fff;
  margin-right: 8px;
  vertical-align: middle;
}

/* ── Info alert ───────────────────────────────────────────────────── */
.alert {
  padding: 12px 18px;
  border-radius: var(--r);
  font-size: 13px;
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.alert-info    { background: rgba(14,165,233,.08); border: 1px solid rgba(14,165,233,.2); color: #0c4a6e; }
.alert-warning { background: rgba(245,158,11,.08); border: 1px solid rgba(245,158,11,.2); color: #78350f; }
.alert-error   { background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.2); color: #7f1d1d; }

/* ── Misc ─────────────────────────────────────────────────────────── */
.flex       { display: flex; }
.gap-8      { gap: 8px; }
.gap-12     { gap: 12px; }
.align-center { align-items: center; }
.mb-16      { margin-bottom: 16px; }
.mb-24      { margin-bottom: 24px; }
.mt-12      { margin-top: 12px; }
.text-dim   { color: var(--text-3); }
.text-ok    { color: var(--green); }
.text-err   { color: var(--error); }
.text-hi    { color: var(--text-hi); }
.text-warn  { color: var(--warning); }
.text-accent { color: var(--accent); }
.grid-2     { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.grid-3     { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.empty      { padding: 40px; text-align: center; color: var(--text-3); font-size: 13px; }
.mono       { font-family: 'Consolas', monospace; font-size: 12px; }
.fw-600     { font-weight: 600; }
.w-full     { max-width: 100% !important; width: 100%; }

/* ── Dashboard redesign ────────────────────────────────────────────── */
.content { padding: 28px 32px 64px; max-width: 1400px; width: 100%; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.page-title { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; color: var(--text-hi); line-height: 1.15; }
.page-sub { font-size: 14px; color: var(--text-2); margin-top: 6px; }

.range-tabs { display: flex; padding: 3px; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; gap: 2px; }
.range-tabs button {
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-2);
  border-radius: 6px;
  transition: background .12s, color .12s;
}
.range-tabs button:hover { color: var(--text); }
.range-tabs button.active { background: var(--surface-2); color: var(--text-hi); font-weight: 600; box-shadow: inset 0 0 0 1px var(--border); }
.range-tabs a { padding: 6px 12px; font-size: 12.5px; font-weight: 500; color: var(--text-2); border-radius: 6px; transition: background .12s, color .12s; text-decoration: none; }
.range-tabs a:hover { color: var(--text); background: var(--surface-2); }
.range-tabs a.active { background: var(--surface-2); color: var(--text-hi); font-weight: 600; box-shadow: inset 0 0 0 1px var(--border); }
.spark-empty { display: block; margin-top: 8px; height: 28px; line-height: 28px; font-size: 11px; color: var(--text-3); background: repeating-linear-gradient(90deg, var(--border) 0, var(--border) 4px, transparent 4px, transparent 10px); border-radius: 3px; padding-left: 8px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
@media (max-width: 1100px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px 18px 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 132px;
}
.stat-head { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 12.5px; font-weight: 500; }
.stat-head .ico { width: 14px; height: 14px; color: var(--text-3); }
.stat-val {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-hi);
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-feature-settings: "tnum";
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.stat-val .unit { font-size: 15px; color: var(--text-3); font-weight: 500; letter-spacing: 0; }
.stat-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; }
.stat-foot .note { font-size: 12px; color: var(--text-3); }

.delta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px 2px 5px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  font-feature-settings: "tnum";
}
.delta .ico { width: 11px; height: 11px; }
.delta.up { background: var(--pos-bg); color: var(--pos); }
.delta.down { background: var(--neg-bg); color: var(--neg); }
.delta.flat { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }

.spark { margin-top: 6px; height: 28px; width: 100%; }
.spark path.line { fill: none; stroke: var(--accent); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.spark path.area { fill: var(--accent-bg); stroke: none; opacity: 0.85; }
.stat.neutral .spark path.line { stroke: var(--text-3); }
.stat.neutral .spark path.area { fill: var(--surface-2); }
.stat.pos .spark path.line, .spark.pos path.line { stroke: var(--pos); }
.stat.pos .spark path.area, .spark.pos path.area { fill: var(--pos-bg); }

.stat-next .stat-val { font-size: 18px; letter-spacing: -0.01em; line-height: 1.25; }
.stat-next .next-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-2);
}
.pill.accent { background: var(--accent-bg); color: var(--accent-h); border-color: var(--accent-bd); }
.pill .ico { width: 11px; height: 11px; }

.row-2 { display: grid; grid-template-columns: 1.75fr 1fr; gap: 16px; margin-bottom: 20px; }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px 12px;
}
.panel-title { font-size: 14px; font-weight: 600; color: var(--text-hi); display: flex; align-items: center; gap: 8px; letter-spacing: -0.005em; }
.panel-title .ico { width: 15px; height: 15px; color: var(--text-2); }
.panel-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.panel-body { padding: 4px 20px 20px; }
.panel-body.flush { padding: 0; }
.panel-foot {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--text-2);
}

.chart-meta { display: flex; align-items: center; gap: 14px; padding: 0 20px 8px; }
.chart-meta .big { font-size: 24px; font-weight: 700; color: var(--text-hi); letter-spacing: -0.02em; font-feature-settings: "tnum"; }
.chart-meta .sm  { font-size: 12px; color: var(--text-3); }

.action-list { display: flex; flex-direction: column; }
.action {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  transition: background .12s;
}
.action:hover { background: var(--surface-2); }
.action .ico-tile {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.action .ico-tile .ico { width: 16px; height: 16px; }
.action .label { font-size: 13.5px; font-weight: 500; color: var(--text-hi); }
.action .sub { font-size: 12px; color: var(--text-3); margin-top: 1px; }
.action .chev { color: var(--text-3); margin-left: auto; }
.action.primary .ico-tile { background: var(--accent-bg); color: var(--accent-h); border-color: var(--accent-bd); }

table.activity { width: 100%; border-collapse: collapse; }
table.activity th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 20px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
table.activity td {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text);
  vertical-align: middle;
}
table.activity tr:last-child td { border-bottom: none; }
table.activity tr:hover td { background: var(--surface-2); }

.name-cell { display: flex; align-items: center; gap: 10px; }
.name-avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 600; color: #fff; background: #6b6660; }
.mono { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; color: var(--text-2); }
.status-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); }
.status-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--pos); }
.status-dot.pending::before { background: var(--text-3); }
.status-dot.opened::before { background: var(--info); }
.text-3 { color: var(--text-3); }

/* ── Scrollbar ────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }
