/* 112dijital Sender — Stripe/Notion tarzı modern admin */
:root {
  --bg: #fafbfc;
  --surface: #ffffff;
  --surface-2: #f6f7f9;
  --border: #e6e8eb;
  --border-strong: #d4d7dc;
  --text: #0f1419;
  --text-2: #4a5260;
  --text-3: #7a8290;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #eff5ff;
  --primary-soft-2: #dbeafe;
  --success: #16a34a;
  --success-soft: #dcfce7;
  --warning: #d97706;
  --warning-soft: #fef3c7;
  --danger: #dc2626;
  --danger-soft: #fee2e2;
  --info: #0891b2;
  --info-soft: #cffafe;
  --shadow-sm: 0 1px 2px rgba(15,20,25,.04), 0 1px 1px rgba(15,20,25,.03);
  --shadow: 0 1px 3px rgba(15,20,25,.06), 0 4px 12px rgba(15,20,25,.04);
  --shadow-lg: 0 8px 24px rgba(15,20,25,.08), 0 2px 6px rgba(15,20,25,.04);
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --sidebar-w: 248px;
  --font: ui-sans-serif, -apple-system, "SF Pro Text", "Segoe UI", system-ui, "Inter", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* Layout */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}
.main { min-width: 0; display: flex; flex-direction: column; }

/* Sidebar */
.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 14px 12px;
}
.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
  text-decoration: none;
}
.brand-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: #e51b1b;
  display: grid; place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.02em;
  box-shadow: 0 2px 8px rgba(37,99,235,.25);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
.brand-text span { font-size: 11px; color: var(--text-3); }

.nav { display: flex; flex-direction: column; gap: 1px; flex: 1; }
.nav__section {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 14px 10px 6px;
}
.nav__section--alt { margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--border); }
.nav-item--sm { padding: 5px 10px; font-size: 12.5px; color: var(--text-3); }
.nav-item--sm:hover { color: var(--text); }
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: background 0.12s, color 0.12s;
}
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active { background: var(--primary-soft); color: var(--primary); }
.nav-item svg { flex-shrink: 0; }
.nav-item__count {
  margin-left: auto;
  font-size: 11px;
  background: var(--surface-2);
  color: var(--text-3);
  padding: 1px 6px;
  border-radius: 999px;
  font-weight: 600;
}
.nav-item.active .nav-item__count {
  background: var(--primary-soft-2);
  color: var(--primary);
}

.sidebar__user {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  font-weight: 600;
  display: grid; place-items: center;
  font-size: 12px;
  flex-shrink: 0;
  text-transform: uppercase;
}
.sidebar__user-info { flex: 1; min-width: 0; }
.sidebar__user-info strong { display: block; font-size: 13px; line-height: 1.2; text-transform: capitalize; }
.sidebar__user-info span { display: block; font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn {
  border: none;
  background: transparent;
  color: var(--text-3);
  width: 28px; height: 28px;
  border-radius: 6px;
  display: grid; place-items: center;
  text-decoration: none;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }

/* Page wrapper */
.page {
  padding: 24px 32px 48px;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
}
.page__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.page__title { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.page__subtitle { color: var(--text-3); font-size: 13.5px; margin-top: 4px; }
.page__actions { display: flex; gap: 8px; }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.card__head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card__title { font-size: 15px; font-weight: 600; margin: 0; letter-spacing: -0.01em; }
.card__subtitle { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.card__body { padding: 20px; }
.card__body--tight { padding: 12px; }
.card__foot {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* Stat cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.stat__label {
  font-size: 12.5px;
  color: var(--text-3);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}
.stat__value {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}
.stat__delta {
  margin-top: 8px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-3);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  border: 1px solid transparent;
  background: var(--surface);
  color: var(--text);
  transition: all 0.12s;
  white-space: nowrap;
  line-height: 1.4;
  text-decoration: none;
}
.btn:hover { background: var(--surface-2); }
.btn--primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 1px 2px rgba(37,99,235,.2);
}
.btn--primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }
.btn--ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-2);
}
.btn--ghost:hover { background: var(--surface-2); color: var(--text); }
.btn--danger { color: var(--danger); border-color: var(--border-strong); background: var(--surface); }
.btn--danger:hover { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
.btn--sm { padding: 4px 10px; font-size: 12.5px; }
.btn--lg { padding: 10px 18px; font-size: 14.5px; }
.btn--block { width: 100%; }
.btn[disabled], .btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Form controls */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .form-label { font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.form-control {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 13.5px;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
textarea.form-control { resize: vertical; min-height: 80px; line-height: 1.55; }
.form-help { font-size: 11.5px; color: var(--text-3); }

.search { position: relative; display: flex; align-items: center; }
.search svg { position: absolute; left: 10px; color: var(--text-3); pointer-events: none; }
.search input { padding-left: 32px; }

/* Switch */
.switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}
.switch input { display: none; }
.switch__track {
  width: 32px; height: 18px;
  background: var(--border-strong);
  border-radius: 999px;
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}
.switch__track::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 14px; height: 14px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,.15);
  transition: transform 0.2s;
}
.switch input:checked + .switch__track { background: var(--primary); }
.switch input:checked + .switch__track::after { transform: translateX(14px); }
.switch__label { font-size: 13px; color: var(--text-2); }

/* Tables */
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover > td { background: var(--surface-2); }
.table-actions { text-align: right; white-space: nowrap; }
.table-actions .icon-btn { display: inline-grid; vertical-align: middle; }
.table tr.is-past > td { background: #fef2f2; }
.table tr.is-past:hover > td { background: #fee2e2; }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  background: var(--surface-2);
  color: var(--text-2);
  border: 1px solid var(--border);
  line-height: 1.5;
  text-decoration: none;
}
.badge--success { background: var(--success-soft); color: var(--success); border-color: transparent; }
.badge--warning { background: var(--warning-soft); color: var(--warning); border-color: transparent; }
.badge--danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.badge--info { background: var(--info-soft); color: var(--info); border-color: transparent; }
.badge--primary { background: var(--primary-soft-2); color: var(--primary); border-color: transparent; }
.badge--dot::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

/* Empty state */
.empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-3);
}
.empty__icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: var(--surface-2);
  display: grid; place-items: center;
  color: var(--text-3);
}
.empty__title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 4px; }

/* Flash / Alert */
.flash {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}
.flash--success { border-left-color: var(--success); }
.flash--danger { border-left-color: var(--danger); }
.flash--warning { border-left-color: var(--warning); }
.flash__icon { color: var(--primary); margin-top: 1px; }
.flash--success .flash__icon { color: var(--success); }
.flash--danger .flash__icon { color: var(--danger); }
.flash--warning .flash__icon { color: var(--warning); }
.flash__body { flex: 1; font-size: 13.5px; }

/* Login */
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  padding: 24px;
}
.login-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 32px;
  width: 100%;
  max-width: 400px;
}
.login-card .brand-mark { width: 44px; height: 44px; font-size: 16px; margin: 0 auto 16px; }
.login-card h1 { font-size: 20px; font-weight: 600; text-align: center; margin: 0 0 4px; letter-spacing: -0.01em; }
.login-card .login-sub { text-align: center; color: var(--text-3); font-size: 13px; margin-bottom: 24px; }
.login-card .field + .field { margin-top: 14px; }
.login-card .btn { margin-top: 20px; }
.login-card .login-hint {
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* Calendar */
.calendar { user-select: none; }
.calendar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.calendar__nav { display: flex; align-items: center; gap: 4px; }
.calendar__title { font-size: 14px; font-weight: 600; min-width: 130px; text-align: center; }
.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.calendar__dow {
  font-size: 11px;
  color: var(--text-3);
  text-align: center;
  padding: 6px 0;
  font-weight: 600;
  text-transform: uppercase;
}
.calendar__day {
  aspect-ratio: 1;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  padding: 4px 6px;
  font-size: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
}
.calendar__day:hover { background: var(--surface-2); }
.calendar__day--other { color: var(--text-3); opacity: 0.5; }
.calendar__day--today { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.calendar__day--has { background: var(--primary-soft); }
.calendar__day-num { font-weight: 500; font-size: 12px; }
.calendar__day-dots { display: flex; gap: 2px; margin-top: auto; flex-wrap: wrap; }
.calendar__dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--primary);
}

/* Chart */
.chart { width: 100%; height: 180px; display: block; }

/* Mail preview */
.mail-preview {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.mail-preview__head {
  background: var(--surface-2);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
}
.mail-preview__head dl { margin: 0; display: grid; grid-template-columns: 60px 1fr; gap: 4px 12px; }
.mail-preview__head dt { color: var(--text-3); font-weight: 500; }
.mail-preview__head dd { margin: 0; color: var(--text); }
.mail-preview__body { padding: 24px; }
.mail-preview__inner {
  max-width: 520px;
  margin: 0 auto;
  font-family: ui-sans-serif, system-ui, sans-serif;
  color: #1f2937;
}
.mail-preview__inner h2 { font-size: 22px; margin: 0 0 16px; color: var(--primary); }
.mail-preview__inner p { font-size: 14px; line-height: 1.6; margin: 0 0 14px; }
.mail-preview__cta {
  display: inline-block;
  background: var(--primary);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 14px;
}
.mail-preview__footer {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--text-3);
  text-align: center;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.tab {
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-3);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  margin-bottom: -1px;
  background: transparent;
  border-left: none;
  border-right: none;
  border-top: none;
  text-decoration: none;
  display: inline-block;
}
.tab:hover { color: var(--text-2); }
.tab.active { color: var(--primary); border-color: var(--primary); }

/* Filter row */
.filter-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.filter-row .form-control { width: auto; min-width: 160px; }
.filter-row .search input { min-width: 240px; }

/* Group rows (mail-gruplari) */
.group-row {
  padding: 10px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid transparent;
  transition: background 0.12s;
  text-decoration: none;
  color: inherit;
}
.group-row:hover { background: var(--surface-2); }
.group-row.active { background: var(--primary-soft); border-color: var(--primary-soft-2); }
.group-row__left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.group-row__icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.group-row__name { font-weight: 500; font-size: 13.5px; }
.group-row__meta { font-size: 11.5px; color: var(--text-3); }

/* Group selector (özel günler form) */
.grup-row {
  display: grid;
  grid-template-columns: auto 1fr 140px;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  background: var(--surface);
  transition: all 0.12s;
}
.grup-row.is-active { border-color: var(--primary-soft-2); background: var(--primary-soft); }
.grup-row.is-disabled { opacity: 0.55; }
.grup-row__name { font-weight: 500; font-size: 13.5px; }
.grup-row__meta { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.grup-row__days { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); }
.grup-row__days input { width: 64px; padding: 5px 8px; text-align: center; }

/* Code block */
.code-block {
  background: #0f1419;
  color: #d4d7dc;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-family: ui-monospace, "SF Mono", "Menlo", monospace;
  font-size: 12.5px;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre;
}
code {
  background: var(--surface-2);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--text-2);
  font-size: 12.5px;
  font-family: ui-monospace, "SF Mono", "Menlo", monospace;
}

/* List flush */
.list-flush { list-style: none; margin: 0; padding: 0; }
.list-flush > li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.list-flush > li:last-child { border-bottom: none; }

/* Spinner */
.spinner {
  width: 14px; height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Utility */
.flex { display: flex; }
.flex-1 { flex: 1; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-col { flex-direction: column; }
.text-muted { color: var(--text-3); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-primary { color: var(--primary); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.fw-600 { font-weight: 600; }
.fs-sm { font-size: 12.5px; }
.fs-xs { font-size: 11.5px; }
.mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; }
.row { display: grid; gap: 16px; }
.row--2 { grid-template-columns: 1fr 1fr; }
.row--3 { grid-template-columns: repeat(3, 1fr); }
.row--7-5 { grid-template-columns: 7fr 5fr; }
.row--split { grid-template-columns: 320px 1fr; }
.w-100 { width: 100%; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* Split pane (mail-gruplari) */
.split-pane {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
  align-items: start;
}
.split-pane__list { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; }
.split-pane__detail { min-width: 0; }
.group-list { padding: 4px; }
.group-row { padding: 0; margin: 2px 0; border-radius: var(--radius); }
.group-row.is-active { background: var(--primary-soft); border-color: var(--primary-soft-2); }
.group-row__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius);
}
.group-row__link:hover { background: var(--surface-2); }
.group-row.is-active .group-row__link { background: transparent; }
.group-row__avatar {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid; place-items: center;
  font-weight: 600;
  font-size: 11.5px;
  flex-shrink: 0;
  text-transform: uppercase;
}
.group-row__body { flex: 1; min-width: 0; }

/* Form grid */
.form-grid { display: grid; gap: 14px; margin-bottom: 14px; }
.form-grid--2 { grid-template-columns: 1fr 1fr; }
.form-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) {
  .form-grid--2, .form-grid--3 { grid-template-columns: 1fr; }
}

.form-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.card__body > .field + .field { margin-top: 12px; }
.field__hint { font-size: 11.5px; color: var(--text-3); margin-top: 4px; line-height: 1.5; }

/* Switch in form layout — match input height */
.switch--box {
  height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  gap: 10px;
}

/* Checkbox list */
.check-list { display: flex; flex-direction: column; gap: 6px; }
.check-list--inline { flex-direction: row; flex-wrap: wrap; }
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.check-row:hover { background: var(--surface-2); }
.check-row input[type="checkbox"] { margin-top: 2px; cursor: pointer; }
.check-row:has(input:checked) { border-color: var(--primary-soft-2); background: var(--primary-soft); }
.check-row__body { flex: 1; min-width: 0; }
.check-row--compact { padding: 6px 10px; }

/* Result block */
.result-block { padding: 8px 0; border-bottom: 1px solid var(--border); }
.result-block:last-child { border-bottom: none; }
.result-block summary { cursor: pointer; padding: 4px 0; }

/* Filter row sub-elements */
.filter-row__field { flex: 0 0 auto; }
.filter-row__field--grow { flex: 1; min-width: 200px; }
.filter-row__actions { display: flex; gap: 6px; margin-left: auto; }
.filter-row { padding: 12px 16px; margin-bottom: 0; }

/* Tables variants */
.table--keyval th { background: transparent; font-size: 12px; text-transform: none; letter-spacing: 0; color: var(--text-3); width: 140px; padding: 10px 14px; }
.table--keyval td { padding: 10px 14px; }
.table--logs td { padding: 10px 14px; font-size: 13px; }

/* Tabs is-active alias */
.tab.is-active { color: var(--primary); border-color: var(--primary); }

/* Mono / code variations */
.mono, textarea.mono { font-family: ui-monospace, "SF Mono", "Menlo", monospace; font-size: 12.5px; }
pre.code-block { margin: 0; }

/* KV row */
.kv-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.kv-row:last-child { border-bottom: none; }
.kv-row__label { font-size: 12.5px; color: var(--text-3); }
.kv-row__value { font-weight: 500; }

/* Step list */
.step-list { padding-left: 20px; margin: 0; font-size: 13px; line-height: 1.7; color: var(--text-2); }
.step-list li { padding: 2px 0; }

/* Empty large variant */
.empty--lg { padding: 64px 24px; }
.empty--lg svg { color: var(--text-3); }

/* Flash info variant */
.flash--info { border-left-color: var(--info); }
.flash--info .flash__icon { color: var(--info); }

/* Badge muted */
.badge--muted { background: var(--surface-2); color: var(--text-2); border-color: var(--border); }

.text-warning { color: var(--warning); }

/* Card body in form: no double-border with .card__body */
.card__body + .card__body { border-top: 1px solid var(--border); }

/* Responsive */
@media (max-width: 960px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .row--7-5, .row--2, .row--3, .row--split { grid-template-columns: 1fr; }
  .split-pane { grid-template-columns: 1fr; }
  .split-pane__list { position: relative; max-height: none; }
  .app { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; border-right: none; border-bottom: 1px solid var(--border); }
  .page { padding: 20px 16px 32px; }
}
