/* ── Cosmic Mail — Black/Orange Supabase-style Console ─────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg:            #0a0a0a;
  --bg-2:          #0f0f0f;
  --surface:       #141414;
  --surface-2:     #1a1a1a;
  --surface-3:     #202020;
  --surface-hover: #252525;
  --border:        #242424;
  --border-2:      #2e2e2e;
  --border-3:      #383838;
  --text:          #f0f0f0;
  --text-2:        #a0a0a0;
  --text-3:        #606060;
  --orange:        #f97316;
  --orange-dim:    #c2570d;
  --orange-bg:     rgba(249,115,22,.10);
  --orange-border: rgba(249,115,22,.25);
  --green:         #22c55e;
  --green-bg:      rgba(34,197,94,.10);
  --red:           #ef4444;
  --red-bg:        rgba(239,68,68,.10);
  --yellow:        #eab308;
  --yellow-bg:     rgba(234,179,8,.10);
  --blue:          #3b82f6;
  --sidebar-w:     232px;
  --topbar-h:      52px;
  --radius:        6px;
  --radius-lg:     10px;
  --shadow:        0 1px 3px rgba(0,0,0,.5);
  --shadow-lg:     0 8px 32px rgba(0,0,0,.6);
  --font:          'Inter', system-ui, sans-serif;
  --mono:          'JetBrains Mono', 'Fira Code', monospace;
  --transition:    150ms ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 13px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; font-size: inherit; cursor: pointer; border: none; outline: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }
pre, code { font-family: var(--mono); }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ── Layout ────────────────────────────────────────────────────────────────── */
#app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; grid-template-rows: var(--topbar-h) 1fr; height: 100vh; overflow: hidden; transition: grid-template-columns 220ms ease; }
#app.sidebar-collapsed { grid-template-columns: 0px 1fr; }
#app.sidebar-collapsed #sidebar { opacity: 0; pointer-events: none; }
#sidebar { transition: opacity 220ms ease; }

/* ── Sidebar ───────────────────────────────────────────────────────────────── */
#sidebar { grid-row: 1 / 3; background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; overflow: hidden; }

.sidebar-brand { height: var(--topbar-h); display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.brand-mark { width: 28px; height: 28px; background: var(--orange); border-radius: 7px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 11px; color: #000; letter-spacing: -.5px; flex-shrink: 0; }
.brand-name { font-weight: 600; font-size: 13.5px; color: var(--text); letter-spacing: -.2px; }
.brand-tag { font-size: 10px; color: var(--text-3); background: var(--surface-3); border: 1px solid var(--border-2); padding: 1px 5px; border-radius: 3px; margin-left: auto; }

.sidebar-nav { flex: 1; padding: 8px; overflow-y: auto; }
.nav-section { margin-bottom: 20px; }
.nav-section-label { font-size: 10px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .8px; padding: 4px 8px; margin-bottom: 2px; }

.nav-item { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: var(--radius); color: var(--text-2); font-weight: 450; font-size: 12.5px; transition: background var(--transition), color var(--transition); cursor: pointer; user-select: none; }
.nav-item:hover { background: var(--surface-hover); color: var(--text); }
.nav-item.active { background: var(--orange-bg); color: var(--orange); border: 1px solid var(--orange-border); }
.nav-icon { width: 15px; height: 15px; flex-shrink: 0; opacity: .7; }
.nav-item.active .nav-icon { opacity: 1; }
.nav-badge { margin-left: auto; background: var(--surface-3); color: var(--text-3); font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 10px; min-width: 18px; text-align: center; }
.nav-item.active .nav-badge { background: var(--orange-bg); color: var(--orange); }

.sidebar-footer { border-top: 1px solid var(--border); padding: 10px 12px; flex-shrink: 0; }
.system-status { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--text-3); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); flex-shrink: 0; }
.status-dot.ok { background: var(--green); box-shadow: 0 0 6px var(--green); }
.status-dot.degraded { background: var(--yellow); }
.status-dot.error { background: var(--red); }
.sidebar-key-info { font-size: 11px; color: var(--text-3); margin-top: 6px; display: flex; align-items: center; gap: 5px; }
.sidebar-key-info strong { color: var(--text-2); }

/* ── Topbar ────────────────────────────────────────────────────────────────── */
#topbar { background: var(--bg-2); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; padding: 0 20px; }
.topbar-title { font-weight: 600; font-size: 14px; color: var(--text); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* ── Main ──────────────────────────────────────────────────────────────────── */
#main { overflow-y: auto; background: var(--bg); }
.view-panel { display: none; padding: 24px; }
.view-panel.active { display: block; }
.view-panel.panel-flush { padding: 0; display: none; }
.view-panel.panel-flush.active { display: flex; flex-direction: column; height: calc(100vh - var(--topbar-h)); overflow: hidden; }

/* ── Auth Overlay ──────────────────────────────────────────────────────────── */
#auth-overlay { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: flex; align-items: center; justify-content: center; }
#auth-overlay.hidden { display: none; }
.auth-card { width: 380px; background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-lg); }
.auth-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.auth-logo .brand-mark { width: 36px; height: 36px; font-size: 13px; border-radius: 9px; }
.auth-logo-text h1 { font-size: 16px; font-weight: 700; color: var(--text); }
.auth-logo-text p { font-size: 11.5px; color: var(--text-3); }
.auth-card h2 { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.auth-sub { font-size: 12px; color: var(--text-2); margin-bottom: 20px; }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 14px; border-radius: var(--radius); font-size: 12.5px; font-weight: 500; line-height: 1; transition: background var(--transition), border-color var(--transition), opacity var(--transition); white-space: nowrap; flex-shrink: 0; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-sm { padding: 5px 10px; font-size: 11.5px; }
.btn-xs { padding: 3px 8px; font-size: 11px; }
.btn-icon { padding: 6px; width: 28px; height: 28px; }
.btn-primary { background: var(--orange); color: #000; font-weight: 600; }
.btn-primary:hover:not(:disabled) { background: var(--orange-dim); }
.btn-secondary { background: var(--surface-3); color: var(--text); border: 1px solid var(--border-2); }
.btn-secondary:hover:not(:disabled) { background: var(--surface-hover); border-color: var(--border-3); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }
.btn-danger { background: var(--red-bg); color: var(--red); border: 1px solid rgba(239,68,68,.2); }
.btn-danger:hover:not(:disabled) { background: rgba(239,68,68,.2); }
.btn-full { width: 100%; }

/* ── Forms ─────────────────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 5px; }
.field-label { font-size: 12px; font-weight: 500; color: var(--text-2); }
.field-hint { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.input, .select, .textarea { background: var(--surface-2); border: 1px solid var(--border-2); border-radius: var(--radius); color: var(--text); padding: 7px 10px; font-size: 12.5px; transition: border-color var(--transition), box-shadow var(--transition); width: 100%; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 2px var(--orange-bg); }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23f97316' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"), linear-gradient(to left, var(--surface-3) 32px, transparent 32px); background-repeat: no-repeat, no-repeat; background-position: calc(100% - 10px) center, right 0; background-size: 12px 12px, 100% 100%; padding-right: 36px; }
.select:hover { border-color: var(--border-3); }
.select option { background: var(--surface-3); color: var(--text); }
.textarea { resize: vertical; min-height: 80px; }
.input-mono { font-family: var(--mono); font-size: 12px; }
.form-grid { display: grid; gap: 14px; }
.form-grid-2 { grid-template-columns: 1fr 1fr; }
.form-row { display: flex; gap: 10px; align-items: flex-end; }
.form-row .field { flex: 1; }

/* ── Badges ────────────────────────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 7px; border-radius: 4px; font-size: 11px; font-weight: 500; white-space: nowrap; }
.badge-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.badge-green  { background: var(--green-bg);  color: var(--green); }
.badge-green  .badge-dot { background: var(--green); }
.badge-orange { background: var(--orange-bg); color: var(--orange); }
.badge-orange .badge-dot { background: var(--orange); }
.badge-red    { background: var(--red-bg);    color: var(--red); }
.badge-red    .badge-dot { background: var(--red); }
.badge-yellow { background: var(--yellow-bg); color: var(--yellow); }
.badge-yellow .badge-dot { background: var(--yellow); }
.badge-muted  { background: var(--surface-3); color: var(--text-3); }
.badge-muted  .badge-dot { background: var(--text-3); }

/* ── Tables ────────────────────────────────────────────────────────────────── */
.table-wrap { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.table { width: 100%; border-collapse: collapse; }
.table thead th { text-align: left; padding: 10px 14px; font-size: 11px; font-weight: 600; color: var(--text-3); background: var(--surface); border-bottom: 1px solid var(--border); white-space: nowrap; text-transform: uppercase; letter-spacing: .5px; }
.table tbody tr { border-bottom: 1px solid var(--border); transition: background var(--transition); }
.table tbody tr:last-child { border-bottom: none; }
.table tbody tr:hover { background: var(--surface-hover); }
.table tbody td { padding: 11px 14px; font-size: 12.5px; color: var(--text-2); vertical-align: middle; }
.table tbody td strong { color: var(--text); font-weight: 500; }
.td-mono { font-family: var(--mono); font-size: 11.5px; }
.td-actions { text-align: right; }
.td-actions-inner { display: flex; gap: 4px; justify-content: flex-end; }

/* ── Cards ─────────────────────────────────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 20px; }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.card-title { font-size: 13.5px; font-weight: 600; color: var(--text); }
.card-subtitle { font-size: 12px; color: var(--text-3); margin-top: 2px; }

/* ── Stat Cards ────────────────────────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 18px; }
.stat-label { font-size: 11px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.stat-value { font-size: 26px; font-weight: 700; color: var(--text); line-height: 1; margin-bottom: 4px; }
.stat-meta { font-size: 11.5px; color: var(--text-3); }

/* ── Section Header ────────────────────────────────────────────────────────── */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-title { font-size: 13.5px; font-weight: 600; color: var(--text); }
.section-actions { display: flex; gap: 8px; align-items: center; }

/* ── Empty State ───────────────────────────────────────────────────────────── */
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 24px; text-align: center; }
.empty-icon { margin-bottom: 14px; opacity: .3; color: var(--text-2); display: flex; align-items: center; justify-content: center; }
.empty-title { font-size: 13.5px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.empty-desc { font-size: 12px; color: var(--text-3); max-width: 260px; line-height: 1.6; }

/* ── Copy Block ────────────────────────────────────────────────────────────── */
.copy-block { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 7px 10px; }
.copy-block code { flex: 1; font-size: 11.5px; color: var(--text-2); word-break: break-all; overflow: hidden; }
.copy-block .btn-icon { flex-shrink: 0; color: var(--text-3); }
.copy-block .btn-icon:hover { color: var(--orange); }

/* ── DNS Records ───────────────────────────────────────────────────────────── */
.dns-record { margin-bottom: 12px; }
.dns-record-header { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.dns-badge { font-size: 10px; font-weight: 700; background: var(--surface-3); color: var(--orange); border: 1px solid var(--orange-border); padding: 2px 6px; border-radius: 3px; font-family: var(--mono); }
.dns-host { font-size: 12px; font-family: var(--mono); color: var(--text-2); }

/* ── Conversation Layout ───────────────────────────────────────────────────── */
.conversation-layout { display: grid; grid-template-columns: 300px 1fr; height: 100%; overflow: hidden; }
.thread-list-pane { border-right: 1px solid var(--border); overflow-y: auto; background: var(--surface); display: flex; flex-direction: column; }
.thread-list-header { padding: 10px 14px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; position: sticky; top: 0; background: var(--surface); z-index: 1; }
.thread-list-title { font-size: 12px; font-weight: 600; color: var(--text); }
.thread-list-select { width: 100%; padding: 8px 10px; border-bottom: 1px solid var(--border); flex-shrink: 0; }

.thread-item { display: block; padding: 11px 14px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background var(--transition); text-align: left; width: 100%; background: transparent; color: inherit; }
.thread-item:hover { background: var(--surface-hover); }
.thread-item.active { background: var(--orange-bg); border-left: 2px solid var(--orange); }
.thread-item-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 3px; }
.thread-item-from { font-size: 12.5px; font-weight: 500; color: var(--text); display: flex; align-items: center; gap: 5px; }
.thread-item-time { font-size: 10.5px; color: var(--text-3); }
.thread-item-subject { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.thread-item-snippet { font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unread-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); flex-shrink: 0; }

.message-pane { overflow-y: auto; display: flex; flex-direction: column; background: var(--bg); }
.message-pane-empty { flex: 1; display: flex; align-items: center; justify-content: center; }
.message-pane-header { padding: 12px 20px; border-bottom: 1px solid var(--border); flex-shrink: 0; background: var(--bg-2); display: flex; align-items: center; gap: 12px; }
.message-pane-subject { font-size: 14px; font-weight: 600; color: var(--text); }
.message-pane-meta { font-size: 11.5px; color: var(--text-3); }
.messages-list { padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }

.message-bubble { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 16px; }
.message-bubble.outbound { border-left: 3px solid var(--orange); }
.message-bubble.inbound { border-left: 3px solid var(--border-3); }
.message-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 10px; gap: 10px; }
.message-from-block { display: flex; flex-direction: column; gap: 2px; }
.message-from { font-size: 13px; font-weight: 600; color: var(--text); }
.message-addr { font-size: 11.5px; color: var(--text-3); font-family: var(--mono); }
.message-time { font-size: 11px; color: var(--text-3); white-space: nowrap; }
.message-body { font-size: 12.5px; color: var(--text-2); white-space: pre-wrap; line-height: 1.7; word-break: break-word; }

.compose-panel { border-top: 1px solid var(--border); background: var(--surface); padding: 14px 16px; flex-shrink: 0; }
.compose-panel-header { font-size: 12px; font-weight: 600; color: var(--text-2); margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; }

/* ── Modal ─────────────────────────────────────────────────────────────────── */
#modal-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.75); display: flex; align-items: center; justify-content: center; padding: 20px; }
#modal-overlay.hidden { display: none; }
.modal { background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--radius-lg); width: 100%; max-width: 520px; max-height: calc(100vh - 40px); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.modal-lg { max-width: 680px; }
.modal-header { padding: 18px 20px 14px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.modal-title { font-size: 14px; font-weight: 600; color: var(--text); }
.modal-close { background: none; border: none; color: var(--text-3); cursor: pointer; padding: 4px; border-radius: 4px; display: flex; line-height: 1; font-size: 18px; }
.modal-close:hover { background: var(--surface-2); color: var(--text); }
.modal-body { padding: 20px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 16px; }
.modal-footer { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; flex-shrink: 0; }

/* ── Toast ─────────────────────────────────────────────────────────────────── */
#toast-stack { position: fixed; bottom: 20px; right: 20px; z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.toast { background: var(--surface-2); border: 1px solid var(--border-2); border-radius: var(--radius); padding: 10px 14px; font-size: 12.5px; color: var(--text); box-shadow: var(--shadow-lg); min-width: 200px; max-width: 340px; animation: slide-in .18s ease; pointer-events: auto; }
.toast.success { border-left: 3px solid var(--green); }
.toast.error   { border-left: 3px solid var(--red); }
.toast.info    { border-left: 3px solid var(--blue); }
@keyframes slide-in { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: translateX(0); } }

/* ── Alert ─────────────────────────────────────────────────────────────────── */
.alert { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--radius); font-size: 12.5px; margin-bottom: 16px; }
.alert-orange { background: var(--orange-bg); border: 1px solid var(--orange-border); color: var(--orange); }
.alert-green  { background: var(--green-bg); border: 1px solid rgba(34,197,94,.25); color: var(--green); }
.alert-red    { background: var(--red-bg); border: 1px solid rgba(239,68,68,.25); color: var(--red); }

/* ── Credential Banner ─────────────────────────────────────────────────────── */
.cred-banner { background: rgba(249,115,22,.06); border: 1px solid var(--orange-border); border-radius: var(--radius-lg); padding: 14px 16px; margin-bottom: 16px; }
.cred-banner-title { font-size: 12px; font-weight: 700; color: var(--orange); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.cred-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.cred-row:last-child { margin-bottom: 0; }
.cred-label { font-size: 11px; color: var(--orange); width: 68px; flex-shrink: 0; font-weight: 500; }
.cred-value { flex: 1; font-family: var(--mono); font-size: 11.5px; color: var(--text); background: rgba(0,0,0,.3); padding: 4px 8px; border-radius: 4px; word-break: break-all; }

/* ── Check List ────────────────────────────────────────────────────────────── */
.check-list { display: flex; flex-direction: column; gap: 8px; }
.check-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; background: var(--surface-2); border-radius: var(--radius); }
.check-icon { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; display: flex; align-items: center; justify-content: center; }
.check-text strong { display: block; font-size: 12.5px; color: var(--text); font-weight: 500; }
.check-text span { font-size: 11.5px; color: var(--text-3); }

/* ── Agent Avatar ──────────────────────────────────────────────────────────── */
.agent-avatar { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; color: #000; flex-shrink: 0; }
.agent-avatar-img { border-radius: 50%; object-fit: cover; }

/* ── Attachments ───────────────────────────────────────────────────────────── */
.message-attachments { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; border-top: 1px solid var(--border); padding-top: 10px; }
.attachment-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 20px; font-size: 11.5px; color: var(--text-2); text-decoration: none; cursor: pointer; transition: border-color 120ms; }
.attachment-chip:hover { border-color: var(--orange); color: var(--orange); }
.attachment-name { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-size { color: var(--text-3); font-size: 10.5px; }

/* ── Detail Rows ───────────────────────────────────────────────────────────── */
.detail-section { margin-bottom: 20px; }
.detail-label { font-size: 11px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 8px; }
.detail-row { display: flex; align-items: baseline; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 12.5px; }
.detail-row:last-child { border-bottom: none; }
.detail-key { color: var(--text-3); width: 110px; flex-shrink: 0; font-size: 12px; }
.detail-val { color: var(--text); flex: 1; word-break: break-word; }
.detail-val.mono { font-family: var(--mono); font-size: 11.5px; color: var(--text-2); }

/* ── Page ──────────────────────────────────────────────────────────────────── */
.page-header { margin-bottom: 22px; }
.page-title { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.page-desc { font-size: 12.5px; color: var(--text-3); }
.two-col { display: grid; grid-template-columns: 1fr 360px; gap: 20px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 16px; }

/* ── Misc ──────────────────────────────────────────────────────────────────── */
.hidden { display: none !important; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.text-muted { color: var(--text-3); }
.text-mono { font-family: var(--mono); font-size: 11.5px; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.flex-1 { flex: 1; }
