/* ==========================================================================
   HunterViz Design System
   One canonical stylesheet shared by the marketing site (Firebase Hosting)
   and the application (Cloud Run). Load DM Sans from Google Fonts in <head>.
   See docs/STYLE_GUIDE.md.
   ========================================================================== */

/* --- Design tokens ------------------------------------------------------- */
:root {
  /* Brand & accent */
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-active: #1e40af;
  --accent-soft: #eff6ff;
  --accent-tint: rgba(37, 99, 235, 0.12);
  --accent-ring: rgba(37, 99, 235, 0.35);
  --accent-grad: linear-gradient(135deg, #3b82f6 0%, #2563eb 55%, #1d4ed8 100%);

  /* Neutrals (slate) */
  --bg: #f6f8fc;
  --bg-subtle: #eef2f9;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #f1f5f9;
  --ink: #0b1220;
  --text: #0f172a;
  --text-muted: #475569;
  --text-faint: #94a3b8;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --border-soft: rgba(15, 23, 42, 0.06);

  /* Dark surfaces (marketing dark sections, footer) */
  --dark: #0b1220;
  --dark-2: #111a2e;
  --dark-elev: #18223a;
  --dark-border: rgba(148, 163, 184, 0.16);
  --dark-text: #e7edf7;
  --dark-muted: #9fb0c9;

  /* Semantic */
  --success: #16a34a;
  --success-soft: #dcfce7;
  --success-ink: #15803d;
  --warning: #d97706;
  --warning-soft: #fef3c7;
  --warning-ink: #b45309;
  --danger: #dc2626;
  --danger-soft: #fee2e2;
  --danger-ink: #b91c1c;
  --info: #0ea5e9;
  --info-soft: #e0f2fe;

  /* Typography */
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "SFMono-Regular", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08), 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 28px rgba(15, 23, 42, 0.12), 0 4px 10px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 24px 56px rgba(15, 23, 42, 0.18), 0 8px 20px rgba(15, 23, 42, 0.08);
  --shadow-accent: 0 8px 24px rgba(37, 99, 235, 0.28);

  /* Layout */
  --container: 1200px;
  --container-wide: 1400px;
  --sidebar-w: 248px;
  --topbar-h: 64px;

  --transition: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --z-header: 100;
  --z-dropdown: 500;
  --z-modal: 1000;
  --z-toast: 1500;
}

/* --- Reset & base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5 { margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -0.03em; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1rem; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
img, svg { vertical-align: middle; }
hr { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
code, kbd, .mono { font-family: var(--font-mono); font-size: 0.85em; }
::selection { background: var(--accent-tint); }

/* --- Layout helpers ------------------------------------------------------ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.5rem; }
.container-wide { max-width: var(--container-wide); }
.container-narrow { max-width: 760px; }
.stack > * + * { margin-top: var(--stack-gap, 1rem); }
.row { display: flex; align-items: center; gap: var(--row-gap, 0.75rem); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.center { display: flex; align-items: center; justify-content: center; }
.text-center { text-align: center; }
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }
.small { font-size: 0.8125rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; font-weight: 700; color: var(--accent); }
.lead { font-size: 1.15rem; color: var(--text-muted); line-height: 1.6; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: inherit; font-size: 0.9375rem; font-weight: 600; line-height: 1;
  padding: 0.7rem 1.15rem; border-radius: var(--r-md); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.btn svg { width: 1.05em; height: 1.05em; }
.btn-primary { background: var(--accent-grad); color: #fff; box-shadow: var(--shadow-accent); }
.btn-primary:hover { color: #fff; filter: brightness(1.06); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); box-shadow: var(--shadow-xs); }
.btn-secondary:hover { background: var(--surface-2); border-color: var(--text-faint); color: var(--text); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { background: var(--accent-tint); color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: var(--danger-ink); color: #fff; }
.btn-danger-ghost { background: transparent; color: var(--danger); border-color: var(--danger-soft); }
.btn-danger-ghost:hover { background: var(--danger-soft); }
.btn-lg { padding: 0.95rem 1.6rem; font-size: 1.0625rem; border-radius: var(--r-lg); }
.btn-sm { padding: 0.45rem 0.8rem; font-size: 0.8125rem; }
.btn-icon { padding: 0.55rem; width: 2.3rem; height: 2.3rem; border-radius: var(--r-sm); }
.btn-block { width: 100%; }
.btn-white { background: #fff; color: var(--accent); box-shadow: var(--shadow-md); }
.btn-white:hover { background: #fff; color: var(--accent-hover); transform: translateY(-1px); }

/* --- Forms --------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.1rem; }
.field label, .label { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.field .hint { font-size: 0.8125rem; color: var(--text-faint); }
.input, .select, .textarea {
  width: 100%; font-family: inherit; font-size: 0.95rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-md);
  padding: 0.7rem 0.85rem; transition: border-color var(--transition), box-shadow var(--transition);
}
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.textarea { min-height: 110px; resize: vertical; }
.input-error { border-color: var(--danger) !important; }
.field-error { color: var(--danger-ink); font-size: 0.85rem; }
.input-icon { position: relative; }
.input-icon .input { padding-left: 2.5rem; }
.input-icon svg { position: absolute; left: 0.8rem; top: 50%; transform: translateY(-50%); width: 1.1rem; height: 1.1rem; color: var(--text-faint); }
.checkbox-row { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; cursor: pointer; }
.checkbox-row input { width: 1.05rem; height: 1.05rem; accent-color: var(--accent); }

/* --- Cards --------------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.card-pad { padding: 1.5rem; }
.card-hover { transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition); }
.card-hover:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); transform: translateY(-2px); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.5rem; border-bottom: 1px solid var(--border); }
.card-title { font-size: 1.05rem; font-weight: 700; margin: 0; }

/* --- Badges, chips, pills ------------------------------------------------ */
.badge { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.75rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: var(--r-pill); background: var(--surface-3); color: var(--text-muted); border: 1px solid var(--border); }
.badge-accent { background: var(--accent-soft); color: var(--accent-active); border-color: transparent; }
.badge-success { background: var(--success-soft); color: var(--success-ink); border-color: transparent; }
.badge-warning { background: var(--warning-soft); color: var(--warning-ink); border-color: transparent; }
.badge-danger { background: var(--danger-soft); color: var(--danger-ink); border-color: transparent; }
.badge-dot::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: currentColor; }
.provider-badge { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; font-weight: 700; padding: 0.25rem 0.6rem; border-radius: var(--r-pill); color: #fff; }
.cap-chip { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.72rem; font-weight: 600; padding: 0.2rem 0.55rem; border-radius: var(--r-sm); background: var(--surface-3); color: var(--text-muted); }
.cap-chip.on { background: var(--accent-soft); color: var(--accent-active); }

/* --- Avatars ------------------------------------------------------------- */
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--accent-grad); color: #fff; font-weight: 700; font-size: 0.85rem; flex-shrink: 0; }
.avatar-sm { width: 1.7rem; height: 1.7rem; font-size: 0.72rem; }
.avatar-lg { width: 3rem; height: 3rem; font-size: 1.1rem; }

/* --- Tables -------------------------------------------------------------- */
.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th { text-align: left; font-weight: 600; color: var(--text-faint); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.65rem 1rem; border-bottom: 1px solid var(--border); }
.table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); }
.table tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background var(--transition); }
.table tbody tr:hover { background: var(--surface-2); }

/* --- Stat / metric cards ------------------------------------------------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.25rem 1.35rem; box-shadow: var(--shadow-xs); }
.stat-label { font-size: 0.8rem; font-weight: 600; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.04em; display: flex; align-items: center; gap: 0.4rem; }
.stat-value { font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; margin-top: 0.35rem; }
.stat-sub { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.15rem; }

/* --- Empty states -------------------------------------------------------- */
.empty { text-align: center; padding: 3.5rem 1.5rem; }
.empty-icon { width: 3.5rem; height: 3.5rem; border-radius: var(--r-lg); display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 1rem; }
.empty h3 { margin-bottom: 0.35rem; }
.empty p { color: var(--text-muted); max-width: 420px; margin: 0 auto 1.25rem; }

/* --- Icons (macro default size; specific contexts size up/down) ---------- */
.hv-icon { width: 18px; height: 18px; flex-shrink: 0; }
.empty-icon .hv-icon { width: 1.85rem; height: 1.85rem; }
.feature-icon .hv-icon { width: 1.4rem; height: 1.4rem; }
.avatar .hv-icon, .avatar-sm .hv-icon { width: 1.05em; height: 1.05em; }
.stat-label .hv-icon { width: 1rem; height: 1rem; }
.workspace-switch > .hv-icon { width: 16px; height: 16px; color: var(--dark-muted); }

/* --- Modals -------------------------------------------------------------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(11, 18, 32, 0.55); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 1.5rem; z-index: var(--z-modal); opacity: 0; visibility: hidden; transition: opacity var(--transition), visibility var(--transition); }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal { background: var(--surface); width: 100%; max-width: 460px; border-radius: var(--r-xl); box-shadow: var(--shadow-xl); padding: 1.75rem; transform: translateY(14px) scale(0.98); transition: transform var(--transition); max-height: 90vh; overflow-y: auto; }
.modal-overlay.active .modal { transform: translateY(0) scale(1); }
.modal h3 { font-size: 1.2rem; margin-bottom: 0.35rem; }
.modal-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.25rem; }
.modal-actions { display: flex; justify-content: flex-end; gap: 0.6rem; margin-top: 1.25rem; }

/* --- Inline status / alerts ---------------------------------------------- */
.alert { display: flex; gap: 0.65rem; align-items: flex-start; padding: 0.8rem 1rem; border-radius: var(--r-md); font-size: 0.875rem; border: 1px solid transparent; }
.alert-success { background: var(--success-soft); color: var(--success-ink); border-color: #bbf7d0; }
.alert-danger { background: var(--danger-soft); color: var(--danger-ink); border-color: #fecaca; }
.alert-warning { background: var(--warning-soft); color: var(--warning-ink); border-color: #fde68a; }
.alert-info { background: var(--info-soft); color: #075985; border-color: #bae6fd; }
.status-msg { display: none; margin-top: 0.85rem; padding: 0.7rem 0.9rem; border-radius: var(--r-md); font-size: 0.875rem; }
.status-msg.show { display: block; }
.status-msg.error { background: var(--danger-soft); color: var(--danger-ink); }
.status-msg.success { background: var(--success-soft); color: var(--success-ink); }

/* --- Toasts -------------------------------------------------------------- */
.toast-stack { position: fixed; bottom: 1.25rem; right: 1.25rem; display: flex; flex-direction: column; gap: 0.6rem; z-index: var(--z-toast); }
.toast { display: flex; align-items: center; gap: 0.6rem; background: var(--ink); color: #fff; padding: 0.8rem 1.1rem; border-radius: var(--r-md); box-shadow: var(--shadow-lg); font-size: 0.9rem; animation: toast-in 0.25s ease; }
.toast.success { background: var(--success-ink); }
.toast.error { background: var(--danger-ink); }
@keyframes toast-in { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* --- Dropdown menu ------------------------------------------------------- */
.menu { position: absolute; right: 0; top: calc(100% + 0.4rem); min-width: 200px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-lg); padding: 0.35rem; z-index: var(--z-dropdown); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: all var(--transition); }
.menu.active { opacity: 1; visibility: visible; transform: translateY(0); }
.menu-item { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.7rem; border-radius: var(--r-sm); font-size: 0.9rem; color: var(--text); cursor: pointer; width: 100%; background: none; border: none; text-align: left; font-family: inherit; }
.menu-item:hover { background: var(--surface-3); color: var(--text); }
.menu-item.danger { color: var(--danger); }
.menu-item.danger:hover { background: var(--danger-soft); }
.menu-divider { height: 1px; background: var(--border); margin: 0.35rem 0; }

/* --- Tabs / segmented ---------------------------------------------------- */
.tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--border); }
.tab { padding: 0.7rem 1rem; font-size: 0.9rem; font-weight: 600; color: var(--text-muted); border-bottom: 2px solid transparent; cursor: pointer; background: none; border-top: none; border-left: none; border-right: none; font-family: inherit; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.segmented { display: inline-flex; background: var(--surface-3); border-radius: var(--r-md); padding: 0.2rem; }
.segmented button { border: none; background: none; font-family: inherit; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); padding: 0.4rem 0.85rem; border-radius: var(--r-sm); cursor: pointer; }
.segmented button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-xs); }

/* --- Spinner / skeleton -------------------------------------------------- */
.spinner { width: 1.1rem; height: 1.1rem; border: 2px solid var(--accent-ring); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.7s linear infinite; }
.spinner-lg { width: 1.6rem; height: 1.6rem; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--surface-3) 25%, var(--surface-2) 50%, var(--surface-3) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--r-sm); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ==========================================================================
   App shell (sidebar + topbar) — used by authenticated pages
   ========================================================================== */
.app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.sidebar { background: var(--dark); color: var(--dark-text); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 1.1rem 0.85rem; }
.sidebar-brand { display: flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0.6rem 1.2rem; }
.sidebar-brand img { height: 26px; }
.sidebar-brand .wordmark { filter: brightness(0) invert(1); height: 20px; }
.nav-group-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dark-muted); padding: 0.9rem 0.7rem 0.4rem; font-weight: 700; }
.nav-link { display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 0.7rem; border-radius: var(--r-md); color: var(--dark-muted); font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: background var(--transition), color var(--transition); }
.nav-link svg { width: 1.15rem; height: 1.15rem; flex-shrink: 0; }
.nav-link:hover { background: var(--dark-elev); color: var(--dark-text); }
.nav-link.active { background: var(--accent); color: #fff; box-shadow: var(--shadow-accent); }
.sidebar-foot { margin-top: auto; border-top: 1px solid var(--dark-border); padding-top: 0.85rem; }
.workspace-switch { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.7rem; border-radius: var(--r-md); background: var(--dark-2); border: 1px solid var(--dark-border); cursor: pointer; }
.workspace-switch:hover { background: var(--dark-elev); }
.workspace-switch .ws-name { font-size: 0.85rem; font-weight: 600; color: var(--dark-text); }
.workspace-switch .ws-kind { font-size: 0.7rem; color: var(--dark-muted); }

.app-main { display: flex; flex-direction: column; min-width: 0; }
.topbar { height: var(--topbar-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 1.75rem; background: rgba(255,255,255,0.85); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: var(--z-header); }
.topbar h1 { font-size: 1.25rem; margin: 0; letter-spacing: -0.02em; }
.app-content { padding: 1.75rem; flex: 1; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.page-head h1 { font-size: 1.6rem; margin: 0 0 0.25rem; }
.page-head p { color: var(--text-muted); margin: 0; }

/* Mobile sidebar */
.menu-toggle { display: none; }
/* The scrim is a direct child of .app. It MUST be fixed (out of grid flow) so it
   never occupies a grid cell and pushes .app-main below the sidebar. Hidden
   until the mobile sidebar opens. */
.scrim { position: fixed; inset: 0; background: rgba(11, 18, 32, 0.5); z-index: calc(var(--z-modal) - 1); opacity: 0; visibility: hidden; transition: opacity var(--transition), visibility var(--transition); }
.scrim.show { opacity: 1; visibility: visible; }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; z-index: var(--z-modal); width: var(--sidebar-w); transform: translateX(-100%); transition: transform var(--transition); }
  .sidebar.open { transform: translateX(0); }
  .menu-toggle { display: inline-flex; }
}

/* --- Dashboard grid (app) ------------------------------------------------ */
.dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 1.5rem; }
.dash-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: box-shadow var(--transition), border-color var(--transition); }
.dash-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.dash-preview { position: relative; width: 100%; aspect-ratio: 16 / 10; background: var(--surface-3); overflow: hidden; }
.dash-preview iframe { width: 100%; height: 100%; border: 0; display: block; }
.dash-preview .placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem; color: var(--text-faint); }
.dash-card-foot { padding: 0.9rem 1.1rem; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.dash-meta { min-width: 0; }
.dash-title { font-weight: 700; font-size: 0.95rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-sub { font-size: 0.78rem; color: var(--text-faint); }
.dash-card-actions { display: flex; align-items: center; gap: 0.35rem; flex-shrink: 0; }
.corner-badge { position: absolute; top: 0.7rem; left: 0.7rem; z-index: 2; }

/* --- Footer (app light) -------------------------------------------------- */
.app-footer { padding: 1rem 1.75rem; text-align: center; color: var(--text-faint); font-size: 0.8rem; border-top: 1px solid var(--border); }

/* --- Utility spacing ----------------------------------------------------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; } .gap-3 { gap: 1.5rem; }
