/* ════════════════════════════════════════════════════════════════════════
 * SafeProperty — ENTERPRISE REFINEMENT LAYER
 * ------------------------------------------------------------------------
 * Loaded AFTER safeproperty.css. This file does NOT replace the base theme;
 * it re-tunes the design tokens and the highest-traffic components toward a
 * compact, data-dense, enterprise-grade feel — benchmarked against Linear,
 * Stripe Dashboard and Salesforce Lightning — while keeping the SafeProperty
 * orange identity.
 *
 * Design decisions:
 *   • Density:   compact. 15px content, 13px tables, tighter vertical rhythm.
 *   • Radius:    reduced from consumer (12–24px) to enterprise (6–12px).
 *   • Shadows:   softer, layered, lower-contrast (less "card floating").
 *   • Colour:    orange used as an intentional accent, not large fills.
 *   • A11y:      visible :focus-visible rings on all interactive elements.
 * ════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────
   1. TOKEN RE-TUNING  (cascades to every var(--sp-*) consumer)
───────────────────────────────────────────────────────────────────────── */
:root {
    /* Tighter, more "software" corner radii */
    --sp-radius:        8px;
    --sp-radius-sm:     6px;
    --sp-radius-lg:     10px;
    --sp-radius-xl:     14px;
    /* pill stays 9999px */

    /* Layered, low-contrast shadows (enterprise surfaces sit closer to page) */
    --sp-shadow:        0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 1px rgba(15, 23, 42, 0.04);
    --sp-shadow-card:   0 1px 2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.04);
    --sp-shadow-md:     0 2px 6px rgba(15, 23, 42, 0.07), 0 4px 12px rgba(15, 23, 42, 0.05);
    --sp-shadow-lg:     0 8px 24px rgba(15, 23, 42, 0.10), 0 2px 6px rgba(15, 23, 42, 0.05);

    /* Compact base: 15px content rhythm */
    --sp-font-base:     15px;

    /* Consistent 4px spacing scale for the refinement layer */
    --sp-space-1: 4px;
    --sp-space-2: 8px;
    --sp-space-3: 12px;
    --sp-space-4: 16px;
    --sp-space-5: 20px;
    --sp-space-6: 24px;

    /* Crisper hairline borders */
    --sp-border-strong: #cbd5e1;
}

html.dark-mode {
    --sp-shadow:        0 1px 2px rgba(0, 0, 0, 0.40);
    --sp-shadow-card:   0 1px 3px rgba(0, 0, 0, 0.40);
    --sp-shadow-md:     0 2px 8px rgba(0, 0, 0, 0.45);
    --sp-shadow-lg:     0 10px 28px rgba(0, 0, 0, 0.55);
    --sp-border-strong: #475569;
}

/* Respect the existing font-size switcher, but re-anchor the compact default */
html.font-medium { --sp-font-base: 15px; font-size: 15px; }
html.font-small  { --sp-font-base: 13px; font-size: 13px; }
html.font-large  { --sp-font-base: 17px; font-size: 17px; }

/* ─────────────────────────────────────────────────────────────────────────
   2. GLOBAL TYPE QUALITY
───────────────────────────────────────────────────────────────────────── */
html, body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "cv11", "ss01";   /* Inter: friendlier digits/letters */
    letter-spacing: -0.006em;                  /* subtle optical tightening */
}

/* Tabular, aligned numerals everywhere numbers are read in columns */
.sp-kpi-value,
.sp-stat-value,
.mud-table-cell,
.sp-price,
.sp-amount,
table { font-variant-numeric: tabular-nums; }

/* ─────────────────────────────────────────────────────────────────────────
   3. APP SHELL — tighter, fits more on screen
───────────────────────────────────────────────────────────────────────── */
.sp-sidebar  { width: 244px; }
@media (max-width: 1280px) { .sp-sidebar { width: 224px; } }

.sp-topbar {
    height: 56px;
    padding: 0 20px;
    box-shadow: none;
    border-bottom: 1px solid var(--sp-border);
}

.sp-content {
    /* sp-topbar is position:fixed at 64px height — offset content so the
       welcome card isn't hidden behind the topbar */
    padding: 84px 24px 20px;
    scroll-behavior: smooth;
}
@media (min-width: 1600px) {
    /* Cap line length / center content on ultra-wide enterprise monitors */
    .sp-content { padding: 84px 32px 22px; }
}

/* Thinner, calmer scrollbars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { border: 2px solid transparent; background-clip: padding-box; }

/* ─────────────────────────────────────────────────────────────────────────
   4. PAGE HEADERS — smaller, denser
───────────────────────────────────────────────────────────────────────── */
.sp-page-header { margin-bottom: 18px; }
.sp-page-title  { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.sp-page-sub    { font-size: 0.8125rem; }

/* ─────────────────────────────────────────────────────────────────────────
   5. KPI / STAT CARDS — compact, lighter weight, intentional accent
───────────────────────────────────────────────────────────────────────── */
.sp-dashboard-kpis { gap: 12px; }

.sp-kpi-card {
    padding: 14px 16px;
    gap: 12px;
    border-width: 1px;
    border-radius: var(--sp-radius);
    box-shadow: var(--sp-shadow-card);
}
.sp-kpi-card:hover {
    box-shadow: var(--sp-shadow-md);
    border-color: var(--sp-border-strong);
}
.sp-kpi-icon  { width: 38px; height: 38px; border-radius: 8px; font-size: 1.1rem; }
.sp-kpi-value { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; }
.sp-kpi-label {
    font-size: 0.6875rem;
    letter-spacing: 0.04em;
    font-weight: 600;
    color: var(--sp-text-secondary);
}
.sp-kpi-trend { font-size: 0.6875rem; font-weight: 600; }

/* ─────────────────────────────────────────────────────────────────────────
   6. WELCOME / HERO BANNER — slimmer, less "marketing"
───────────────────────────────────────────────────────────────────────── */
.sp-dashboard-welcome {
    padding: 18px 22px;
    border-radius: var(--sp-radius-lg);
}
.sp-dashboard-greeting { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
.sp-dashboard-sub      { font-size: 0.8125rem; }

/* ─────────────────────────────────────────────────────────────────────────
   7. GENERIC CARDS / PANELS
───────────────────────────────────────────────────────────────────────── */
.sp-dashboard-card,
.sp-panel,
.sp-section-card {
    border-width: 1px;
    border-radius: var(--sp-radius-lg);
    box-shadow: var(--sp-shadow-card);
}
.sp-dashboard-grid { gap: 16px; }

/* ─────────────────────────────────────────────────────────────────────────
   8. MUDBLAZOR COMPONENT DENSITY  (these override the base file's !important)
───────────────────────────────────────────────────────────────────────── */

/* Surfaces: hairline border + soft shadow instead of heavy outline */
.mud-paper, .mud-card {
    border: 1px solid var(--sp-border) !important;
    box-shadow: var(--sp-shadow-card) !important;
    border-radius: var(--sp-radius-lg) !important;
}
.mud-paper.mud-elevation-0 { box-shadow: none !important; }

/* Buttons: enterprise sizing — not chunky, crisp label */
.mud-button-root {
    border-radius: var(--sp-radius-sm) !important;
    text-transform: none !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    min-height: 36px !important;
    padding: 6px 14px !important;
}
.mud-button-root.mud-button-filled {
    box-shadow: none !important;
}
.mud-button-root.mud-button-filled:hover {
    box-shadow: var(--sp-shadow) !important;
}
.mud-button-root.mud-size-small  { min-height: 30px !important; padding: 4px 10px !important; font-size: 0.8125rem !important; }
.mud-button-root.mud-size-large  { min-height: 42px !important; padding: 8px 20px !important; }

/* Tables: dense rows, sticky header, quiet zebra — the core of a data app */
.mud-table-root        { font-size: 0.8125rem !important; }
.mud-table-cell {
    padding: 8px 14px !important;
    height: auto !important;
}
.mud-table-head .mud-table-cell {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--sp-bg-secondary) !important;
    font-size: 0.6875rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--sp-text-secondary) !important;
    border-bottom: 1px solid var(--sp-border-strong) !important;
    white-space: nowrap;
}
.mud-table-row:hover .mud-table-cell { background: var(--sp-table-hover) !important; }
.mud-table-dense .mud-table-cell { padding: 5px 12px !important; }

/* Inputs: compact, crisp focus */
.mud-input.mud-input-outlined .mud-input-slot { min-height: 40px; }
.mud-input-outlined .mud-input-outlined-border { border-radius: var(--sp-radius-sm) !important; }
.mud-input.mud-input-outlined.mud-input-focused .mud-input-outlined-border {
    border-width: 1.5px !important;
    border-color: var(--sp-primary) !important;
}
.mud-input-label { font-size: 0.8125rem; }

/* Chips: smaller, pill, used for status */
.mud-chip {
    height: 22px !important;
    font-size: 0.6875rem !important;
    font-weight: 600 !important;
    border-radius: var(--sp-radius-pill) !important;
}

/* Tabs: underline style, compact */
.mud-tabs-toolbar { min-height: 42px !important; }
.mud-tab {
    text-transform: none !important;
    font-weight: 600 !important;
    font-size: 0.8125rem !important;
    min-height: 42px !important;
    letter-spacing: 0 !important;
}

/* Dialogs: tighter, modern radius */
.mud-dialog { border-radius: var(--sp-radius-lg) !important; box-shadow: var(--sp-shadow-lg) !important; }
.mud-dialog-title { font-size: 1rem !important; font-weight: 700 !important; padding: 16px 20px !important; }
.mud-dialog-content { padding: 16px 20px !important; }

/* Menus / popovers: refined */
.mud-popover, .mud-list { border-radius: var(--sp-radius) !important; box-shadow: var(--sp-shadow-lg) !important; }
.mud-list-item { min-height: 38px !important; font-size: 0.8125rem !important; }

/* ─────────────────────────────────────────────────────────────────────────
   9. ACCESSIBILITY — visible keyboard focus (most enterprise audits flag this)
───────────────────────────────────────────────────────────────────────── */
a:focus-visible,
button:focus-visible,
.mud-button-root:focus-visible,
.sp-tab:focus-visible,
.sp-nav-item:focus-visible,
[tabindex]:focus-visible,
.mud-input-slot:focus-within {
    outline: 2px solid var(--sp-primary);
    outline-offset: 2px;
    border-radius: var(--sp-radius-sm);
}

/* Remove the default mouse-click outline only when not keyboard-navigating */
:focus:not(:focus-visible) { outline: none; }

/* ─────────────────────────────────────────────────────────────────────────
   10. MISC POLISH
───────────────────────────────────────────────────────────────────────── */
/* Status chips/badges: consistent soft-tint treatment */
.sp-badge, .sp-status, .sp-tag {
    border-radius: var(--sp-radius-pill);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* Section titles a touch smaller in the app (kept large on marketing pages) */
.sp-app-shell .sp-section-title { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }

/* Dividers a hair lighter */
.mud-divider { opacity: 0.9; }

/* Tab underline tracks the brand */
.sp-tab.sp-tab--active, .sp-tab.active { border-bottom-color: var(--sp-primary); color: var(--sp-primary); }

/* Loading spinner — base CSS referenced .sp-spinner but never defined it,
   so loading states rendered as a dead square. Define it here. */
.sp-spinner {
    box-sizing: border-box;
    width: 32px;
    height: 32px;
    border: 3px solid var(--sp-border);
    border-top-color: var(--sp-primary);
    border-radius: 50%;
    animation: sp-spin 0.7s linear infinite;
}
@keyframes sp-spin { to { transform: rotate(360deg); } }

/* Reduce motion for users who ask for it — but keep functional spinners moving */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
    .sp-spinner { animation-duration: 0.7s !important; }
}

/* Screen-reader-only text (accessible labels for icon-only state, e.g. pricing ✓/—). */
.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Card titles are real links (crawlable, open-in-new-tab, keyboard-focusable); keep the
   card's existing look and give keyboard users a visible focus ring. */
.sp-card-title-link { color: inherit; text-decoration: none; }
.sp-card-title-link:hover { text-decoration: underline; }
.sp-card-title-link:focus-visible { outline: 2px solid var(--sp-primary, #FF6B35); outline-offset: 2px; border-radius: 4px; }

/* ── Save this search (Search toolbar) + Saved searches panel (/saved) ───────── */
.sp-save-search-btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
    border: 1px solid var(--sp-primary, #FF6B35); background: transparent; color: var(--sp-primary, #FF6B35);
    font-weight: 600; font-size: .85rem; cursor: pointer; white-space: nowrap; min-height: 40px;
}
.sp-save-search-btn:hover { background: rgba(255, 107, 53, .08); }
.sp-save-search-btn:focus-visible { outline: 2px solid var(--sp-primary, #FF6B35); outline-offset: 2px; }
@media (max-width: 640px) { .sp-save-search-label { display: none; } .sp-save-search-btn { padding: 8px 10px; } }

.sp-save-search-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 1300; }
.sp-save-search-dialog {
    position: fixed; z-index: 1301; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto;
    background: #fff; color: #1e293b; border-radius: 16px; padding: 24px; box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.dark-mode .sp-save-search-dialog { background: #1e293b; color: #e2e8f0; }
.sp-save-search-title { margin: 0 0 8px; font-size: 1.2rem; font-weight: 800; }
.sp-save-search-text { margin: 0 0 16px; color: #64748b; line-height: 1.5; font-size: .9rem; }
.sp-save-search-field-label { display: block; font-weight: 600; font-size: .8rem; margin: 0 0 6px; }
.sp-save-search-freq { border: 0; padding: 0; margin: 16px 0 0; }
.sp-save-search-radio { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: .9rem; cursor: pointer; }
.sp-save-search-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.sp-save-search-primary, .sp-save-search-secondary, .sp-save-search-danger {
    padding: 9px 18px; border-radius: 999px; font-weight: 700; font-size: .85rem; cursor: pointer; min-height: 40px;
}
.sp-save-search-primary { background: var(--sp-primary, #FF6B35); color: #fff; border: 0; }
.sp-save-search-primary:disabled { opacity: .6; cursor: default; }
.sp-save-search-secondary { background: transparent; color: inherit; border: 1px solid #cbd5e1; }
.sp-save-search-danger { background: transparent; color: #dc2626; border: 1px solid #fecaca; }
.sp-save-search-link { margin-right: auto; color: var(--sp-primary, #FF6B35); font-weight: 600; text-decoration: none; }
.sp-save-search-error { color: #dc2626; font-size: .85rem; font-weight: 600; margin: 12px 0 0; }

.sp-saved-searches { margin-top: 40px; }
.sp-saved-searches-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 12px; }
.sp-saved-searches-title { margin: 0; font-size: 1.25rem; font-weight: 800; }
.sp-saved-searches-sub, .sp-saved-searches-empty { color: #64748b; font-size: .9rem; }
.sp-saved-searches-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sp-saved-search-row {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
    padding: 14px 16px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff;
}
.dark-mode .sp-saved-search-row { background: #1e293b; border-color: #334155; }
.sp-saved-search-row--paused { opacity: .65; }
.sp-saved-search-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 260px; }
.sp-saved-search-name { font-weight: 700; color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.sp-saved-search-name:hover { text-decoration: underline; }
.sp-saved-search-desc { color: #475569; font-size: .85rem; overflow-wrap: anywhere; }
.sp-saved-search-meta { color: #94a3b8; font-size: .78rem; }
.sp-saved-search-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sp-save-search-dialog:focus { outline: none; }
/* Login: "Forgot password?" now follows the password box (keyboard order), right-aligned. */
.sp-auth-forgot--below { display: block; width: fit-content; margin: 6px 0 0 auto; }
/* ── Moderation console (/admin) ─────────────────────────────────────────── */
.sp-admin { max-width: 1040px; margin: 0 auto; padding: 8px 0 40px; }
.sp-admin-title { font-size: 1.6rem; font-weight: 800; margin: 0 0 16px; }
.sp-admin-muted, .sp-admin-empty { color: #64748b; }
.sp-admin-empty { padding: 32px 0; text-align: center; }
.sp-admin-denied { padding: 24px; border: 1px solid #fecaca; border-radius: 12px; background: #fef2f2; color: #7f1d1d; }
.sp-admin-denied h2 { margin: 0 0 6px; font-size: 1.1rem; }
.sp-admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid #e2e8f0; margin-bottom: 16px; }
.sp-admin-tab { background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 12px; font-weight: 600; color: #475569; cursor: pointer; min-height: 44px; }
.sp-admin-tab.active { color: var(--sp-primary, #FF6B35); border-bottom-color: var(--sp-primary, #FF6B35); }
.sp-admin-tab:focus-visible { outline: 2px solid var(--sp-primary, #FF6B35); outline-offset: 2px; }
.sp-admin-count { display: inline-block; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: #e2e8f0; color: #475569; font-size: .75rem; margin-left: 4px; }
.sp-admin-count.has { background: var(--sp-primary, #FF6B35); color: #fff; }
.sp-admin-flash { padding: 10px 14px; border-radius: 8px; background: #ecfdf5; color: #065f46; font-weight: 600; }
.sp-admin-flash.error { background: #fef2f2; color: #991b1b; }
.sp-admin-panel { display: grid; gap: 12px; }
.sp-admin-card { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; padding: 16px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; }
.dark-mode .sp-admin-card { background: #1e293b; border-color: #334155; }
.sp-admin-card-main { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sp-admin-card-title { font-weight: 700; color: inherit; overflow-wrap: anywhere; }
.sp-admin-card-meta { color: #64748b; font-size: .85rem; overflow-wrap: anywhere; }
.sp-admin-card-reason { color: #92400e; font-size: .85rem; }
.sp-admin-quote { margin: 6px 0 0; padding: 8px 12px; border-left: 3px solid #cbd5e1; color: #334155; font-size: .9rem; overflow-wrap: anywhere; }
.sp-admin-pill { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #fee2e2; color: #991b1b; font-size: .75rem; font-weight: 700; }
.sp-admin-docs { display: flex; flex-wrap: wrap; gap: 10px; font-size: .85rem; }
.sp-admin-actions { flex: 0 1 300px; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.sp-admin-buttons { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.sp-admin-reason { width: 100%; resize: vertical; }
.sp-report-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; background: none; border: 0; padding: 6px 0; color: #64748b; font-size: .82rem; cursor: pointer; text-decoration: underline; min-height: 32px; }
.sp-report-link:hover { color: #dc2626; }
.sp-report-link:focus-visible { outline: 2px solid var(--sp-primary, #FF6B35); outline-offset: 2px; }

/* ── Mortgage calculator + price history ─────────────────────────────────── */
.sp-mortgage-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 720px) { .sp-mortgage-grid { grid-template-columns: 1fr; } }
.sp-mortgage-inputs { display: flex; flex-direction: column; gap: 6px; }
.sp-mortgage-label { font-weight: 600; font-size: .82rem; margin-top: 8px; }
.sp-mortgage-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.sp-mortgage-result { padding: 20px; border-radius: 12px; background: rgba(255, 107, 53, .06); border: 1px solid rgba(255, 107, 53, .25); }
.sp-mortgage-monthly-label { font-size: .82rem; color: #64748b; font-weight: 600; }
.sp-mortgage-monthly { font-size: 2rem; font-weight: 800; margin: 2px 0 12px; overflow-wrap: anywhere; }
.sp-mortgage-figures { margin: 0; display: grid; gap: 6px; }
.sp-mortgage-figures div { display: flex; justify-content: space-between; gap: 12px; font-size: .88rem; border-bottom: 1px dashed #e2e8f0; padding-bottom: 6px; }
.sp-mortgage-figures dt { color: #475569; }
.sp-mortgage-figures dd { margin: 0; font-weight: 700; text-align: right; }
.sp-mortgage-note { margin: 12px 0 0; font-size: .88rem; line-height: 1.5; }
.sp-mortgage-fine { margin: 10px 0 0; font-size: .75rem; color: #94a3b8; line-height: 1.4; }
.sp-mortgage-error { color: #b91c1c; font-weight: 600; }
.sp-mortgage-page { max-width: 960px; margin: 0 auto; padding: 40px 16px; }
.sp-price-summary { font-weight: 700; margin: 0 0 10px; }
.sp-price-summary.down { color: #047857; }
.sp-price-summary.up { color: #b45309; }
.sp-price-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.sp-price-table th { text-align: left; color: #64748b; font-weight: 600; font-size: .78rem; padding: 6px 8px; border-bottom: 1px solid #e2e8f0; }
.sp-price-table td { padding: 8px; border-bottom: 1px solid #f1f5f9; }
.sp-price-table td.down { color: #047857; font-weight: 700; }
.sp-price-table td.up { color: #b45309; font-weight: 700; }

/* ── Public header on phones: menu button + panel, nothing clipped ───────── */
.sp-pub-avatar { text-decoration: none; }
.sp-pub-menu-btn { display: none; background: none; border: 0; padding: 8px; border-radius: 10px; color: inherit; cursor: pointer; min-width: 40px; min-height: 40px; }
.sp-public-nav:not(.scrolled) .sp-pub-menu-btn { color: #fff; }
.sp-pub-menu-btn:focus-visible { outline: 2px solid var(--sp-primary, #FF6B35); outline-offset: 2px; }
.sp-pub-mobile-menu { display: none; }
@media (max-width: 768px) {
    .sp-public-nav-inner { gap: 12px; justify-content: space-between; }
    .sp-pub-actions { gap: 6px; }
    .sp-pub-menu-btn { display: inline-flex; align-items: center; justify-content: center; order: -1; }
    .sp-pub-mobile-menu {
        display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
        background: #fff; border-bottom: 1px solid #e2e8f0; box-shadow: 0 12px 24px rgba(0,0,0,.08); padding: 8px 16px 12px;
    }
    .dark-mode .sp-pub-mobile-menu { background: #0f172a; border-color: #334155; }
    .sp-pub-mobile-menu a { padding: 12px 4px; color: #1e293b; font-weight: 600; text-decoration: none; border-bottom: 1px solid #f1f5f9; }
    .dark-mode .sp-pub-mobile-menu a { color: #e2e8f0; border-color: #1e293b; }
    .sp-pub-mobile-menu a:last-child { border-bottom: 0; }
}
@media (max-width: 420px) {
    .sp-pub-logo-text { display: none; }
    .sp-pub-login { padding: 6px 8px; }
}
.sp-viewings-card-person { font-size: .85rem; color: #475569; margin-top: 6px; overflow-wrap: anywhere; }
.sp-viewings-card-person a { color: var(--sp-primary, #FF6B35); font-weight: 600; }
