/* ── Reset & Design Tokens ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0a0a0a;
  --surface:     #141414;
  --surface-alt: #1a1a1a;
  --border:      #262626;
  --border-dk:   #363636;
  --text:        #ededed;
  --text-2:      #b0b0b0;
  --text-muted:  #737373;
  --text-faint:  #505050;
  --hover:       #1e1e1e;
  --active:      #282828;
  --radius:      6px;
  --radius-lg:   10px;
  --shadow-sm:   0 1px 2px rgba(0,0,0,.3);
  --shadow:      0 1px 3px rgba(0,0,0,.4), 0 1px 2px rgba(0,0,0,.3);
  --shadow-lg:   0 4px 24px rgba(0,0,0,.5);
  --sidebar-w:   232px;
  --dot-success:   #22c55e;
  --dot-voicemail: #f97316;
  --dot-callback:  #eab308;
  --dot-noanswer:  #f97316;
  --dot-dead:      #71717a;
  --dot-gritz:     #ef4444;
  --dot-google:    #3b82f6;
  --status-online: #22c55e;
  --status-danger: #ef4444;
}

html, body { height: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
svg { display: block; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }

/* ── Utilities ────────────────────────────────────────────────────────────── */
.hidden  { display: none !important; }
.text-muted { color: var(--text-muted); }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  font-weight: 500; transition: all .15s ease; white-space: nowrap;
}
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn-primary { background: #ededed; color: #0a0a0a; border-color: #ededed; }
.btn-primary:hover:not(:disabled) { background: #fff; }
.btn-danger { background: transparent; color: var(--status-danger); border-color: var(--border); }
.btn-danger:hover:not(:disabled) { background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.3); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text-2); }
.btn-ghost:hover:not(:disabled) { background: var(--hover); border-color: var(--border-dk); }
.btn-sm  { padding: 5px 12px; font-size: 13px; }
.btn-lg  { padding: 14px 32px; font-size: 16px; }
.btn-full { width: 100%; justify-content: center; }

/* ── Form Elements ────────────────────────────────────────────────────────── */
.field { margin-bottom: 16px; }
.field label {
  display: block; margin-bottom: 6px;
  color: var(--text-muted); font-size: 13px; font-weight: 500;
}
.field.field-inline { display: flex; align-items: center; gap: 10px; }
.field.field-inline label { margin: 0; }

input[type="text"],
input[type="email"],
input[type="password"],
input[type="datetime-local"],
input[type="search"],
select, textarea {
  width: 100%; background: var(--surface-alt);
  border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); padding: 9px 12px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="datetime-local"]:focus,
input[type="search"]:focus,
select:focus {
  border-color: var(--border-dk);
  box-shadow: 0 0 0 3px rgba(255,255,255,.06);
}
select { cursor: pointer; }
input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; accent-color: #ededed; }
.input-sm { padding: 5px 10px; font-size: 13px; width: auto; }

.alert { padding: 10px 14px; border-radius: var(--radius); margin-bottom: 16px; font-size: 13px; }
.alert-danger { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.25); color: #fca5a5; }

/* ── Brand ────────────────────────────────────────────────────────────────── */
.brand-mark {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.brand-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--text); flex-shrink: 0;
}

/* ── Login ────────────────────────────────────────────────────────────────── */
.login-wrap {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 24px; background: var(--bg);
}
.login-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px 36px;
  width: 100%; max-width: 380px; box-shadow: var(--shadow-lg);
}
.login-brand {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700; letter-spacing: .06em;
  margin-bottom: 32px; text-transform: uppercase; color: var(--text);
}
.login-card h1 {
  font-size: 20px; font-weight: 600; margin-bottom: 24px; color: var(--text);
}

/* ── Caller Layout ────────────────────────────────────────────────────────── */
.caller-layout { display: flex; flex-direction: column; min-height: 100vh; background: var(--bg); }

.caller-header {
  display: flex; align-items: center; gap: 16px;
  padding: 0 24px; height: 56px;
  background: var(--surface); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.header-brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 14px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text); margin-right: 8px;
}
.header-controls { display: flex; align-items: center; gap: 10px; flex: 1; }
.sip-select { width: 200px; padding: 6px 10px; font-size: 13px; }
.status-pill {
  padding: 3px 10px; border-radius: 20px; font-size: 11px;
  font-weight: 600; background: var(--surface-alt);
  border: 1px solid var(--border); color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .04em;
}
.status-pill.online  { color: var(--status-online); border-color: rgba(34,197,94,.3); background: rgba(34,197,94,.08); }
.status-pill.calling { color: var(--dot-voicemail); border-color: rgba(249,115,22,.3); background: rgba(249,115,22,.08); }
.status-pill.otp     { color: var(--status-online); border-color: rgba(34,197,94,.3); background: rgba(34,197,94,.08); }

.header-user { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.user-label  { color: var(--text-muted); font-size: 13px; }

/* ── State Panels ─────────────────────────────────────────────────────────── */
.caller-main {
  flex: 1; display: flex; align-items: center;
  justify-content: center; padding: 40px 24px;
}
.state-panel { display: none; }
[data-state="disconnected"] .state-panel[data-for-state="disconnected"],
[data-state="registering"]  .state-panel[data-for-state="registering"],
[data-state="idle"]         .state-panel[data-for-state="idle"],
[data-state="calling"]      .state-panel[data-for-state="calling"],
[data-state="otp"]          .state-panel[data-for-state="otp"],
[data-state="outcome"]      .state-panel[data-for-state="outcome"] { display: flex; }

/* ── Idle Card ────────────────────────────────────────────────────────────── */
.idle-card {
  display: flex; flex-direction: column;
  align-items: center; gap: 20px; text-align: center;
}
.idle-hint { color: var(--text-muted); font-size: 14px; }

/* ── Call Next Button ─────────────────────────────────────────────────────── */
.btn-call-next {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 10px;
  width: 172px; height: 172px; border-radius: 50%;
  border: 2px solid var(--text); background: transparent;
  color: var(--text); cursor: pointer;
  font-size: 16px; font-weight: 700;
  transition: background .2s, color .2s, transform .1s, box-shadow .2s;
}
.btn-call-next svg { width: 40px; height: 40px; }
.btn-call-next:hover {
  background: var(--text); color: var(--bg);
  box-shadow: 0 0 0 6px rgba(255,255,255,.06);
}
.btn-call-next:active { transform: scale(.96); }

/* ── Call Card ────────────────────────────────────────────────────────────── */
.call-card {
  display: flex; flex-direction: column;
  align-items: center; gap: 20px; text-align: center;
}
.call-pulse-ring {
  width: 64px; height: 64px; border-radius: 50%;
  border: 2px solid var(--text-muted);
  animation: pulse-ring 1.2s ease-out infinite;
}
@keyframes pulse-ring {
  0%   { transform: scale(.85); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}
.call-label { color: var(--text-muted); font-size: 14px; }

/* ── OTP Card ─────────────────────────────────────────────────────────────── */
.otp-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 36px;
  width: 100%; max-width: 520px; box-shadow: var(--shadow);
}
.lead-name {
  font-size: 24px; font-weight: 700; text-align: center;
  margin-bottom: 4px; color: var(--text);
}
.call-timer {
  font-size: 38px; font-weight: 300; text-align: center;
  color: var(--text); letter-spacing: .06em;
  margin-bottom: 24px; font-variant-numeric: tabular-nums;
}

/* ── Sensitive / Blurred Fields (caller only) ─────────────────────────────── */
.lead-fields {
  width: 100%; background: var(--surface-alt);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 16px; margin-bottom: 24px;
  display: flex; flex-direction: column; gap: 8px;
}
.lead-field {
  display: flex; align-items: center; gap: 12px; font-size: 13px;
}
.lead-field-label {
  color: var(--text-muted); width: 56px; flex-shrink: 0;
  font-weight: 500; font-size: 12px; text-transform: uppercase;
  letter-spacing: .04em;
}
.lead-field-value {
  color: var(--text); font-variant-numeric: tabular-nums;
  display: inline-flex; align-items: center;
}
.lead-field-value.masked { cursor: pointer; user-select: none; }
.mask-dots {
  filter: blur(5px); transition: filter .3s ease;
  color: var(--text-faint);
}
.lead-field-value.masked:hover .mask-dots { filter: blur(3px); }
.mask-tail { color: var(--text); }
.lead-field-value.revealed {
  filter: none; cursor: default;
}

/* ── Call Controls ────────────────────────────────────────────────────────── */
.call-actions {
  display: flex; justify-content: center; gap: 10px;
  flex-wrap: wrap; margin-bottom: 24px;
}
.call-ctrl-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface-alt);
  color: var(--text-2); cursor: pointer; font-weight: 500;
  transition: all .15s ease;
}
.call-ctrl-btn svg { width: 16px; height: 16px; }
.call-ctrl-btn:hover { background: var(--hover); border-color: var(--border-dk); }
.call-ctrl-btn.muted { background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.3); color: #ef4444; }
.hangup-btn {
  background: var(--status-danger); border-color: var(--status-danger); color: #fff;
}
.hangup-btn:hover { background: #dc2626; }

/* ── Request Buttons ──────────────────────────────────────────────────────── */
.request-actions { display: flex; gap: 8px; width: 100%; margin-bottom: 16px; }
.request-btn {
  flex: 1; display: flex; align-items: center; justify-content: center;
  gap: 7px; padding: 9px 14px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface-alt);
  color: var(--text-muted); cursor: pointer; font-size: 13px;
  font-weight: 500; transition: all .15s ease;
}
.request-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.request-btn:hover:not(:disabled) { background: var(--hover); color: var(--text); border-color: var(--border-dk); }
.request-btn:disabled { cursor: default; }
.request-btn.waiting {
  color: var(--dot-voicemail); border-color: rgba(249,115,22,.3); background: rgba(249,115,22,.06);
}
.request-btn.confirmed {
  color: var(--dot-success); border-color: rgba(34,197,94,.3); background: rgba(34,197,94,.06);
}
.req-spinner {
  display: inline-block; width: 11px; height: 11px;
  border: 2px solid currentColor; border-top-color: transparent;
  border-radius: 50%; animation: spin .7s linear infinite; flex-shrink: 0;
}

/* ── Prompt Card ──────────────────────────────────────────────────────────── */
.prompt-card {
  width: 100%; background: var(--surface-alt);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 14px; margin-bottom: 14px;
}
.prompt-card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.prompt-card-label {
  font-size: 11px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .06em;
}
.prompt-card-close {
  background: none; border: none; color: var(--text-faint);
  font-size: 18px; line-height: 1; cursor: pointer; padding: 0 2px;
}
.prompt-card-close:hover { color: var(--text); }
.prompt-card-text {
  font-size: 13px; color: var(--text); line-height: 1.65;
  white-space: pre-wrap; word-break: break-word; margin: 0;
}

/* ── Reveal Warning Modal ─────────────────────────────────────────────────── */
.reveal-warn-modal { text-align: center; max-width: 420px; }
.reveal-warn-title { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.reveal-warn-body  { color: var(--text-muted); font-size: 13px; line-height: 1.65; margin-bottom: 4px; }

/* ── Visualizers ──────────────────────────────────────────────────────────── */
.viz-controls { width: 100%; margin-bottom: 16px; display: flex; flex-direction: column; gap: 8px; }
.viz-row { display: flex; align-items: center; gap: 10px; }
.viz-icon { width: 14px; height: 14px; color: var(--text-faint); flex-shrink: 0; }
.viz-lbl {
  color: var(--text-muted); font-size: 11px; width: 48px; flex-shrink: 0;
  text-transform: uppercase; letter-spacing: .04em;
}
.viz-canvas { flex: 1; height: 14px; border-radius: 3px; display: block; background: var(--surface-alt); border: 1px solid var(--border); }

/* ── Outcome Card ─────────────────────────────────────────────────────────── */
.outcome-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 36px;
  width: 100%; max-width: 500px; box-shadow: var(--shadow);
  text-align: center;
}
.outcome-title { font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.outcome-sub { color: var(--text-muted); margin-bottom: 24px; font-size: 14px; }
.outcome-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.outcome-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 10px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface-alt);
  color: var(--text); cursor: pointer; font-weight: 500;
  font-size: 13px; transition: all .15s ease;
}
.outcome-btn:hover { background: var(--hover); border-color: var(--border-dk); }
.outcome-btn:active { transform: scale(.97); }
.outcome-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.outcome-dot.dot-voicemail    { background: var(--dot-voicemail); }
.outcome-dot.dot-noanswer     { background: var(--dot-noanswer); }
.outcome-dot.dot-dead         { background: var(--dot-dead); }
.outcome-dot.dot-gritz        { background: var(--dot-gritz); }
.outcome-dot.dot-google       { background: var(--dot-google); }
.outcome-dot.dot-success      { background: var(--dot-success); }
.outcome-dot.dot-callback     { background: var(--dot-callback); }

.callback-picker {
  display: flex; align-items: center; gap: 10px;
  padding: 14px; background: var(--surface-alt);
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-top: 8px;
}
.callback-picker label { color: var(--text-muted); font-size: 13px; white-space: nowrap; }
.callback-picker input { flex: 1; }

/* ── Spinner ──────────────────────────────────────────────────────────────── */
.spinner {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid var(--border); border-top-color: var(--text);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Empty State ──────────────────────────────────────────────────────────── */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  gap: 16px; color: var(--text-muted); text-align: center; padding: 40px;
}
.empty-state svg { width: 44px; height: 44px; opacity: .35; }

/* ── Admin Layout ─────────────────────────────────────────────────────────── */
.admin-layout { display: flex; min-height: 100vh; }

/* ── Sidebar ──────────────────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0;
  background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar-brand {
  display: flex; align-items: center; gap: 8px;
  padding: 20px 20px 18px; font-weight: 700; font-size: 14px;
  letter-spacing: .06em; text-transform: uppercase;
  border-bottom: 1px solid var(--border); color: var(--text);
}
.sidebar-nav {
  flex: 1; padding: 12px 10px;
  display: flex; flex-direction: column; gap: 2px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--radius);
  color: var(--text-muted); font-weight: 500; font-size: 13px;
  transition: background .12s, color .12s;
}
.nav-item svg { width: 17px; height: 17px; flex-shrink: 0; }
.nav-item:hover { background: var(--hover); color: var(--text); }
.nav-item.active { background: var(--hover); color: var(--text); font-weight: 600; }
.sidebar-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-top: 1px solid var(--border);
}
.sidebar-user {
  font-size: 13px; color: var(--text-muted); font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ── Admin Main ───────────────────────────────────────────────────────────── */
.admin-main { flex: 1; min-width: 0; padding: 28px 32px; }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.panel-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.panel-header h2 { font-size: 18px; font-weight: 600; color: var(--text); }
.panel-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.section-header { margin: 28px 0 14px; }
.section-header h3 {
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .06em;
}
.active-count {
  font-size: 12px; font-weight: 700;
  color: var(--text-faint); letter-spacing: .04em;
}
.active-count-live { color: var(--dot-success); }

/* ── Search Bar ───────────────────────────────────────────────────────────── */
.search-bar {
  position: relative; margin-bottom: 20px;
}
.search-bar .search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--text-faint); pointer-events: none;
}
.search-bar input {
  width: 100%; padding: 10px 12px 10px 38px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  font-size: 14px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.search-bar input::placeholder { color: var(--text-faint); }
.search-bar input:focus {
  border-color: var(--border-dk);
  box-shadow: 0 0 0 3px rgba(255,255,255,.04);
}

/* ── Stats Grid ───────────────────────────────────────────────────────────── */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px; margin-bottom: 8px;
}
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px;
}
.stat-label {
  font-size: 11px; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: .06em; margin-bottom: 6px; font-weight: 500;
}
.stat-value { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); }

/* ── Table ────────────────────────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface);
}
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
  padding: 10px 14px; text-align: left; font-weight: 600;
  color: var(--text-muted); background: var(--surface-alt);
  border-bottom: 1px solid var(--border); white-space: nowrap;
  font-size: 12px; text-transform: uppercase; letter-spacing: .04em;
}
tbody td {
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  vertical-align: middle; color: var(--text-2);
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--surface-alt); }
.empty-row { text-align: center; color: var(--text-muted); padding: 28px !important; }

/* ── Outcome Dots (in tables) ─────────────────────────────────────────────── */
.outcome-indicator {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px;
}
.outcome-indicator .dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}
.dot-success   { background: var(--dot-success); }
.dot-voicemail { background: var(--dot-voicemail); }
.dot-callback  { background: var(--dot-callback); }
.dot-noanswer  { background: var(--dot-noanswer); }
.dot-dead      { background: var(--dot-dead); }
.dot-gritz     { background: var(--dot-gritz); }
.dot-google    { background: var(--dot-google); }

/* ── Badges ───────────────────────────────────────────────────────────────── */
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 20px;
  font-size: 11px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; white-space: nowrap;
}
.badge-available { background: rgba(34,197,94,.12); color: #4ade80; }
.badge-taken     { background: rgba(255,255,255,.06); color: var(--text-muted); }
.badge-hault     { background: rgba(234,179,8,.12); color: #facc15; }
.badge-done      { background: rgba(255,255,255,.04); color: var(--text-faint); }
.badge-otp       { background: rgba(34,197,94,.12); color: #4ade80; }
.badge-idle      { background: rgba(255,255,255,.06); color: var(--text-muted); }
.badge-offline   { background: transparent; border: 1px solid var(--border); color: var(--text-faint); }
.badge-ringing   { background: rgba(234,179,8,.12); color: #facc15; }
.badge-admin     { background: rgba(255,255,255,.08); color: var(--text); }

.table-actions { display: flex; gap: 6px; }
.btn-icon-del {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; padding: 0;
  border-radius: var(--radius); border: 1px solid var(--border);
  background: transparent; cursor: pointer; color: var(--status-danger);
  transition: all .15s ease;
}
.btn-icon-del:hover { background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.3); }
.btn-icon-del svg { width: 15px; height: 15px; }
.listen-toggle { transition: all .15s ease; }
.listen-toggle.listening {
  background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.3); color: var(--dot-success);
}

/* ── Notifications Feed ───────────────────────────────────────────────────── */
.notifications-feed {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); max-height: 240px;
  overflow-y: auto; padding: 4px 0;
}
.notif-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 16px; border-bottom: 1px solid var(--border); font-size: 13px;
}
.notif-item:last-child { border-bottom: none; }
.notif-ts   { color: var(--text-faint); font-size: 12px; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.notif-type { font-weight: 600; flex-shrink: 0; color: var(--text); }
.notif-msg  { color: var(--text-muted); }
.notif-reveal  .notif-type { color: var(--dot-voicemail); }
.notif-outcome .notif-type { color: var(--text); }
.notif-request .notif-type { color: var(--text); }

/* ── Modal ────────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.65);
  display: flex; align-items: center; justify-content: center;
  z-index: 100; padding: 24px;
}
.modal {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); width: 100%; max-width: 460px;
  box-shadow: var(--shadow-lg); padding: 24px;
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.modal-header h3 { font-size: 16px; font-weight: 600; }
.modal-close {
  background: none; border: none; color: var(--text-faint);
  font-size: 22px; cursor: pointer; line-height: 1; padding: 2px;
}
.modal-close:hover { color: var(--text); }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

/* ── Checkbox List ────────────────────────────────────────────────────────── */
.checkbox-list { display: flex; flex-direction: column; gap: 10px; padding: 4px 0; }
.checkbox-item { display: flex; align-items: center; gap: 10px; }
.checkbox-item label { color: var(--text); cursor: pointer; font-size: 14px; }

/* ── Settings Card ────────────────────────────────────────────────────────── */
.settings-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px; max-width: 480px;
}
.settings-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.settings-hint { color: var(--text-muted); font-size: 13px; margin-bottom: 20px; }
.save-msg { color: var(--dot-success); font-size: 13px; margin-left: 8px; }
.settings-divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

/* ── Toast Notifications ──────────────────────────────────────────────────── */
.toast-container {
  position: fixed; top: 20px; right: 20px; z-index: 200;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 18px;
  font-size: 13px; color: var(--text); box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px;
  min-width: 240px; max-width: 380px;
  animation: toast-in .25s ease-out;
}
.toast.toast-out { animation: toast-out .2s ease-in forwards; }
.toast-dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}
.toast-error .toast-dot { background: var(--status-danger); }
.toast-success .toast-dot { background: var(--dot-success); }
.toast-info .toast-dot { background: var(--text-muted); }
.toast-msg { flex: 1; line-height: 1.45; }
.toast-close {
  background: none; border: none; color: var(--text-faint);
  font-size: 16px; cursor: pointer; padding: 0 2px; line-height: 1;
  flex-shrink: 0;
}
.toast-close:hover { color: var(--text); }
@keyframes toast-in {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes toast-out {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(20px); }
}

/* ── Confirm Dialog ───────────────────────────────────────────────────────── */
.confirm-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center;
  z-index: 150; padding: 24px;
  animation: fade-in .15s ease;
}
.confirm-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  width: 100%; max-width: 380px; box-shadow: var(--shadow-lg);
  text-align: center;
}
.confirm-msg {
  font-size: 14px; color: var(--text); margin-bottom: 20px;
  line-height: 1.55;
}
.confirm-actions { display: flex; justify-content: center; gap: 10px; }
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
