/* ============================================================
   SUITLY — Main Stylesheet
   Modern office marketplace for startup founders
   ============================================================ */

/* Theme 2 v2: JetBrains Mono for prices, IDs, metadata. Imported
   globally so every page that includes style.css gets it without a
   per-page <link> change. Inter is loaded per-page via the existing
   <link> tags. */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&display=swap');

/* 0. Page Transitions (View Transitions API — progressive enhancement)
   --------------------------------------------------------------
   Cross-document view transitions enable smooth Browse → Project
   navigation. We name the chrome surfaces (sidebar, main, topbar)
   as shared elements so the browser MORPHS them between pages
   instead of crossfading the whole root — which is what was causing
   the jumpy width-shift flash when going from Browse (56px rail) to
   Project (200px rail). With shared-element morphs, the rail's
   width animates smoothly as a single identity, while content area
   crossfades inside its own group.
   ============================================================ */
@view-transition { navigation: auto; }

/* Root crossfade is the BACKDROP for areas not covered by named
   elements. Kept short so it doesn't fight the named morphs. */
::view-transition-old(root) { animation: sm-fade-out 0.15s cubic-bezier(0.16, 1, 0.3, 1); }
::view-transition-new(root) { animation: sm-fade-in 0.2s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes sm-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes sm-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Named groups morph size + position between pages — Browse rail at
   56px morphs to Project rail at 200px, instead of two snapshots
   crossfading at different widths and producing a "shift" flash.
   Slightly longer duration than the root fade so the rail's size
   change reads as deliberate motion, not jank. */
::view-transition-group(sm-sidebar),
::view-transition-group(sm-main),
::view-transition-group(sm-topbar) {
  animation-duration: 0.28s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}
/* Crossfade the CONTENTS inside each shared element (e.g. listings
   grid → project hero) on a shorter, snappier curve so the morph
   feels like ONE motion rather than two overlapping fades. */
::view-transition-old(sm-sidebar),
::view-transition-new(sm-sidebar),
::view-transition-old(sm-main),
::view-transition-new(sm-main),
::view-transition-old(sm-topbar),
::view-transition-new(sm-topbar) {
  animation-duration: 0.18s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

/* 0a. Animation gate — body.sm-anim-ready
   --------------------------------------------------------------
   Until nav.js wraps the page and adds .sm-anim-ready to body, the
   layout surfaces (sidebar, main, push panels, topbar, breadcrumb)
   have transitions/animations frozen. This kills the dreaded
   "everything animates from initial state to current state on page
   load" flicker — collapse/expand, panel mount, breadcrumb fade.
   The freeze is scoped to layout chrome ONLY, so auth/marketing
   pages that don't load nav.js still have functioning transitions
   on their own elements.
   ============================================================ */
body:not(.sm-anim-ready) .sm-sidebar,
body:not(.sm-anim-ready) .sm-sidebar *,
body:not(.sm-anim-ready) .sm-sidebar-main,
body:not(.sm-anim-ready) .sm-push-panel,
body:not(.sm-anim-ready) .sm-push-panel *,
body:not(.sm-anim-ready) .sm-topbar,
body:not(.sm-anim-ready) .sm-topbar *,
body:not(.sm-anim-ready) .sm-team-panel,
body:not(.sm-anim-ready) .sm-breadcrumb,
body:not(.sm-anim-ready) .sm-breadcrumb * {
  transition: none !important;
  animation: none !important;
}

/* 0b. Reduced motion respect (a11y baseline)
   --------------------------------------------------------------
   For users who request reduced motion at the OS level, we keep
   transforms instant and only animate opacity for legibility cues.
   Linear/Vercel/Stripe all do this; it's table stakes in 2026.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none !important; }
}


/* 1. Reset & Base
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* 2. CSS Custom Properties
   ============================================================
   Theme 2 v2 — Quiet Shell migration (slice 1: tokens only).
   Token NAMES preserved so existing consumers keep working;
   VALUES updated to the new visual language.
   ============================================================ */
:root {
  /* ── Surfaces (Quiet Shell — cool near-white, no blue tint) ── */
  --bg: #FAFAFA;            /* page canvas */
  --bg-white: #FFFFFF;      /* card surface */
  --bg-subtle: #F5F5F4;     /* alt section */
  --bg-cream: #FAFAFA;      /* legacy alias of --bg */
  --bg-panel: #FFFFFF;      /* push-panel surface (was blue-tinted) */
  --bg-dark: #0A0A0A;       /* dark surfaces / pure ink */
  --bg-dark-card: #1A1A1A;

  /* ── New canonical names (Theme 2 v2 spec) ── */
  --ink:        #0A0A0A;
  --surface:    #FFFFFF;
  --surface-2:  #FBFBFA;
  --border-soft:#EFEFEC;
  --text-3:     #8690A0;    /* tertiary text — captions, meta */

  /* ── Text ramp ── */
  --text: #0A0A0A;            /* primary text → near-pure ink */
  --text-secondary: #4A5260;  /* secondary body */
  --text-muted: #8690A0;      /* meta, captions */
  --text-white: #FFFFFF;
  --text-white-muted: rgba(255,255,255,0.65);

  /* ── Borders ── */
  --border: #E8E8E5;        /* default hairline (was blue-tinted) */
  --border-dark: #1A1A1A;

  /* ── Suite Monkey brand triad (THE THREE ORIGINAL COLORS) ──
     Each color does TWO jobs:
       1. A pillar on marketing copy (Fast / Easy / Collaborative)
       2. A suite-type identity (Plug & Play / Move-in Ready / Serviced)
     Used categorically, never as status or action. */
  --brand-blue:  #4A90D9;        /* Fast · Plug & Play · info / inline links */
  --brand-blue-wash: #EAF2FA;
  --brand-blue-ink:  #1F4F87;

  --brand-teal:  #4EADA5;        /* Easy · Move-in Ready */
  --brand-teal-wash: #E5F4F2;
  --brand-teal-ink:  #1F6E68;

  --brand-amber: #E8A838;        /* Collaborative · Serviced */
  --brand-amber-wash: #FCF1DC;
  --brand-amber-ink:  #8A5F0F;

  /* ── Status palette (separate from brand triad) ──
     Sage = positive / verified.  Pending = waiting / draft. */
  --sage:        #5EB97D;   /* Verified ✓ · success · checkmark */
  --sage-wash:   #ECF6EE;
  --sage-ink:    #2F7A48;

  --pending:     #E8852A;   /* Pending · in draft · in review · coming soon */
  --pending-wash:#FCEBDA;
  --pending-ink: #8A4710;

  /* ── Legacy color names — aliased to the new brand triad so
     existing CSS keeps rendering. New code should prefer the
     --brand-* names directly. ── */
  --blue:        var(--brand-blue);
  --blue-hover:  var(--brand-blue-ink);
  --blue-light:  var(--brand-blue-wash);
  --blue-mid:    #BFD4F2;
  --blue-dark:   #1F4F87;

  --green:       var(--sage);
  --green-light: var(--sage-wash);
  --teal:        var(--brand-teal);
  --teal-light:  var(--brand-teal-wash);
  --amber:       var(--brand-amber);
  --amber-light: var(--brand-amber-wash);
  --orange:      var(--pending);
  --orange-light:var(--pending-wash);
  --purple:      #7C3AED;
  --purple-light:#F5F3FF;
  --pink:        #DB2777;
  --pink-light:  #FDF2F8;

  /* Layout — sidebar & panels */
  --sidebar-collapsed: 56px;
  --sidebar-expanded: 200px;
  --panel-width: 320px;
  --panel-easing: cubic-bezier(0.16, 1, 0.3, 1);
  --panel-duration: 0.25s;
  --panel-fade: 0.2s;

  /* Linear-style recession — rail sits at #FAFAF8 (warm off-white),
     main content stays #FFFFFF. Tiny shift, big focus payoff: post-
     arrival the user's eye lands on the content area instead of the
     chrome. Border tinted slightly warmer to match. */
  --sidebar-bg: #FAFAF8;
  --sidebar-border: #E8E8E5;
  --sidebar-icon: #8690A0;
  --sidebar-icon-active: #0A0A0A;

  /* Z-index layers */
  --z-panel: 40;
  --z-team-panel: 45;
  --z-topbar: 50;
  --z-sidebar: 100;

  /* Shadows — Theme 2 v2 layered low-opacity recipe.
     Same scale as before; alphas tuned softer to match the
     Quiet Shell discipline (Vercel/Linear-class subtlety). */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 4px 14px -6px rgba(0,0,0,0.06);
  --shadow-md: 0 1px 2px rgba(0,0,0,0.05), 0 12px 32px -10px rgba(0,0,0,0.12);
  --shadow-lg: 0 1px 2px rgba(0,0,0,0.05), 0 24px 64px -8px rgba(0,0,0,0.16), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-xl: 0 32px 80px rgba(0,0,0,0.14);

  /* Border radius */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-serif: 'Fraunces', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Nav height */
  --nav-height: 64px;
  /* Sidebar-layout top bar (full-width, fixed across the top above
     both sidebars). Sidebars and push panels start below this bar. */
  --sm-topbar-height: 64px;
}

/* ─────────────────────────────────────────────────────────────
   Dark theme — Linear / Notion / GitHub-inspired layered palette
   ─────────────────────────────────────────────────────────────
   Layered surfaces give depth without shadows:
     bg #16161A → surface #1F1F23 → surface-2 #2C2C32 → elevated #36363D
   Text ramp uses off-white (#E6E6E9), not pure #FFF — pure white at
   16px+ on dark surfaces is too harsh; #E6 is the modern default.
   Borders are visible (#2E2E36) but not aggressive. Brand triad
   stays the same hex; Sage/Pending stay the same.

   Component overrides at the bottom catch hardcoded `white` /
   `#FFFFFF` rules elsewhere in this file that pre-date the theme
   system. Without these, dropdowns / push panels / cards stay white
   on a dark page.
   ───────────────────────────────────────────────────────────── */
[data-theme="dark"] {
  --bg:          #16161A;          /* page canvas */
  --bg-white:    #1F1F23;          /* card surface (replaces hardcoded white) */
  --bg-subtle:   #26262C;          /* alt section, hover */
  --bg-cream:    #16161A;
  --bg-panel:    #1F1F23;
  --bg-dark:     #0A0A0A;          /* deeper accent areas */
  --bg-dark-card:#101013;

  --ink:         #E6E6E9;          /* primary text on dark — off-white, not pure */
  --surface:     #1F1F23;
  --surface-2:   #2C2C32;          /* elevated surfaces (modals, dropdowns) */
  --border-soft: #26262C;

  --text:           #E6E6E9;
  --text-secondary: #A8A8B0;
  --text-muted:     #7A7A82;
  --text-3:         #5A5A62;

  --border:      #2E2E36;
  --border-dark: #3F3F48;

  --sidebar-bg:    #1A1A1E;
  --sidebar-border:#2A2A30;
  --sidebar-icon:  #A8A8B0;
  --sidebar-icon-active: #E6E6E9;
}

/* Auto theme — follow OS preference. Same overrides as dark. */
@media (prefers-color-scheme: dark) {
  [data-theme="auto"] {
    --bg:          #16161A;
    --bg-white:    #1F1F23;
    --bg-subtle:   #26262C;
    --bg-cream:    #16161A;
    --bg-panel:    #1F1F23;
    --ink:         #E6E6E9;
    --surface:     #1F1F23;
    --surface-2:   #2C2C32;
    --border-soft: #26262C;
    --text:           #E6E6E9;
    --text-secondary: #A8A8B0;
    --text-muted:     #7A7A82;
    --text-3:         #5A5A62;
    --border:      #2E2E36;
    --border-dark: #3F3F48;
    --sidebar-bg:    #1A1A1E;
    --sidebar-border:#2A2A30;
    --sidebar-icon:  #A8A8B0;
    --sidebar-icon-active: #E6E6E9;
  }
}

/* ─────────────────────────────────────────────────────────────
   Dark-mode component overrides
   ─────────────────────────────────────────────────────────────
   These catch hardcoded `background: white` / `#FFFFFF` rules
   elsewhere in this file that pre-date the theme system. Each
   override targets a specific component class so we don't
   accidentally affect light mode.
   ───────────────────────────────────────────────────────────── */
[data-theme="dark"] body { background: var(--bg); color: var(--text); }
[data-theme="auto"]  body { background: var(--bg); color: var(--text); }

/* User-menu dropdown */
[data-theme="dark"] .sm-user-menu,
[data-theme="auto"] .sm-user-menu {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text);
}
[data-theme="dark"] .sm-user-menu__item,
[data-theme="auto"] .sm-user-menu__item {
  color: var(--text-secondary);
}
[data-theme="dark"] .sm-user-menu__item:hover,
[data-theme="auto"] .sm-user-menu__item:hover {
  background: var(--bg-subtle);
  color: var(--ink);
}
[data-theme="dark"] .sm-user-menu__header,
[data-theme="auto"] .sm-user-menu__header {
  border-color: var(--border);
}
[data-theme="dark"] .sm-user-menu__divider,
[data-theme="auto"] .sm-user-menu__divider {
  background: var(--border);
}

/* Push panels (Notifications, Favorites, Team, Filters, AI) */
[data-theme="dark"] .sm-push-panel,
[data-theme="auto"] .sm-push-panel {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
[data-theme="dark"] .sm-push-panel__header,
[data-theme="auto"] .sm-push-panel__header {
  background: var(--surface);
  border-color: var(--border);
}

/* Sidebar nav */
[data-theme="dark"] .sm-sidebar,
[data-theme="auto"] .sm-sidebar {
  background: var(--sidebar-bg);
  border-color: var(--sidebar-border);
}
[data-theme="dark"] .sm-sidebar__item,
[data-theme="auto"] .sm-sidebar__item {
  color: var(--sidebar-icon);
}
[data-theme="dark"] .sm-sidebar__item:hover,
[data-theme="auto"] .sm-sidebar__item:hover {
  background: var(--bg-subtle);
  color: var(--sidebar-icon-active);
}
[data-theme="dark"] .sm-sidebar__item.is-active-panel,
[data-theme="auto"] .sm-sidebar__item.is-active-panel {
  background: var(--bg-subtle);
  color: var(--ink);
}

/* Topbar */
[data-theme="dark"] .sm-topbar,
[data-theme="auto"] .sm-topbar {
  background: var(--sidebar-bg);
  border-color: var(--border);
  color: var(--text);
}
[data-theme="dark"] .sm-topbar__user,
[data-theme="auto"] .sm-topbar__user {
  color: var(--text);
}
[data-theme="dark"] .sm-topbar__user:hover,
[data-theme="auto"] .sm-topbar__user:hover {
  background: var(--bg-subtle);
}

/* Listing / space cards */
[data-theme="dark"] .space-card,
[data-theme="auto"] .space-card {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
[data-theme="dark"] .space-card__name,
[data-theme="dark"] .space-card__title,
[data-theme="auto"] .space-card__name,
[data-theme="auto"] .space-card__title { color: var(--ink); }

/* Buttons */
[data-theme="dark"] .btn-secondary,
[data-theme="auto"] .btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
}
[data-theme="dark"] .btn-secondary:hover,
[data-theme="auto"] .btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--border-dark);
}
/* Primary button: in dark, ink is light → bg is light, text becomes dark surface.
   Use surface-2 inversion so primary still reads as "the action" without fighting
   the eye. */
[data-theme="dark"] .btn-primary,
[data-theme="auto"] .btn-primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* Toasts (bottom-right notifications) */
[data-theme="dark"] .sm-toast,
[data-theme="auto"] .sm-toast {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text);
}

/* Modal overlays (confirm / prompt utilities from main.js) */
[data-theme="dark"] .sm-modal,
[data-theme="auto"] .sm-modal {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text);
}

/* Sidebar avatar fallback bg */
[data-theme="dark"] .sm-sidebar__avatar,
[data-theme="auto"] .sm-sidebar__avatar {
  background: var(--bg-subtle);
}

/* AI launcher pill (bottom-right) — keep it visually distinct on dark */
[data-theme="dark"] .sm-ai-launcher,
[data-theme="auto"] .sm-ai-launcher {
  background: var(--surface-2);
  color: var(--ink);
  border-color: var(--border-dark);
}

/* ── Verified ✓ badge (LinkedIn-confirmed identity + work email) ──
   Pill variant for profile hero / status rows. Icon variant for
   listing-agent cards and dropdown menus. Rendered by
   SuitlyVerified.pillHTML / iconHTML in js/auth.js. */
.sm-verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px 2px 6px;
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  vertical-align: middle;
  line-height: 1.2;
}
.sm-verified-pill svg { display: block; }
.sm-verified-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #10B981;
  color: white;
  margin-left: 4px;
  vertical-align: middle;
}
.sm-verified-icon svg { display: block; }

/* 3. Typography
   ============================================================ */
.text-xs    { font-size: 12px; line-height: 1.4; }
.text-sm    { font-size: 14px; line-height: 1.5; }
.text-base  { font-size: 16px; line-height: 1.6; }
.text-lg    { font-size: 18px; line-height: 1.5; }
.text-xl    { font-size: 20px; line-height: 1.4; }
.text-2xl   { font-size: 24px; line-height: 1.35; }
.text-3xl   { font-size: 30px; line-height: 1.25; }
.text-4xl   { font-size: 36px; line-height: 1.15; }
.text-5xl   { font-size: 48px; line-height: 1.1; }
.text-6xl   { font-size: 60px; line-height: 1.05; }

.font-medium  { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold    { font-weight: 700; }

.text-muted   { color: var(--text-secondary); }
.text-subtle  { color: var(--text-muted); }
.text-blue    { color: var(--blue); }

/* 4. Layout Utilities
   ============================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-sm {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-lg {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* 5. Navigation
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.5px;
  color: var(--text);
}

/* Theme 3 — brand mark uses the Suite Monkey triad as a 135° gradient.
   Blue → Teal → Amber. Subtle inset highlight on top + soft drop
   shadow underneath for tactile depth. Same treatment used on the
   sidebar logo + the topbar mark. */
.nav__logo-mark {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-teal) 55%, var(--brand-amber) 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 1px 3px rgba(0,0,0,.10);
}

.nav__logo-mark svg {
  width: 18px;
  height: 18px;
  fill: white;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}

.nav__link:hover {
  color: var(--text);
  background: var(--bg-subtle);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav__mobile-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: background 0.15s;
}

.nav__mobile-toggle:hover {
  background: var(--bg-subtle);
}

.nav__mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  z-index: 99;
  padding: var(--space-6);
  flex-direction: column;
  gap: var(--space-2);
  overflow-y: auto;
}

.nav__mobile-menu.is-open {
  display: flex;
}

.nav__mobile-link {
  display: flex;
  align-items: center;
  padding: var(--space-4) var(--space-4);
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  transition: background 0.15s;
}

.nav__mobile-link:hover {
  background: var(--bg-subtle);
}

.nav__mobile-divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-4) 0;
}

/* 6. Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  transition: background 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  white-space: nowrap;
  cursor: pointer;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}

.btn-lg {
  padding: 14px 24px;
  font-size: 16px;
  border-radius: var(--radius);
}

.btn-xl {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: var(--radius);
}

.btn-primary {
  background: var(--text);
  color: white;
}

.btn-primary:hover {
  background: #27272A;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* .btn-citrine — Deprecated. Aliased to .btn-primary (ink).
   Theme 3 dropped Citrine entirely; primary CTAs are ink. Class
   retained as a no-op alias so any HTML using `btn-citrine` still
   looks correct. New code should use .btn-primary directly. */
.btn-citrine {
  background: var(--text);
  color: white;
}
.btn-citrine:hover {
  background: #27272A;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: white;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: #D4D4D8;
  transform: translateY(-1px);
}

.btn-blue {
  background: var(--blue);
  color: white;
}

.btn-blue:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37,99,235,0.3);
}

.btn-outline-white {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.35);
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 12px;
}

.btn-ghost:hover {
  background: var(--bg-subtle);
  color: var(--text);
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-sm);
}

/* 6.5 — Brand standards (sm-* primitives)
   ============================================================
   Reusable patterns extracted from the browse-card redesign.
   Use these on space.html, building.html, profile.html, broker
   dashboards, and anywhere else the same visual language applies.
   See design-propagation.html for the full inventory. */

/* Eyebrow — small caps mono, used above any sm-headline */
.sm-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin: 0;
}

/* Serif headline — page titles, section titles, property names */
.sm-headline {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
  line-height: 1.1;
}
.sm-headline--xl  { font-size: 42px; letter-spacing: -0.025em; line-height: 1.05; }
.sm-headline--lg  { font-size: 30px; }
.sm-headline--md  { font-size: 24px; line-height: 1.15; }
.sm-headline--sm  { font-size: 18px; line-height: 1.2; }

/* Section header pattern — top hairline + eyebrow + headline */
.sm-section-h {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  margin-bottom: 18px;
}
.sm-section-h .sm-eyebrow { margin-bottom: 6px; }

/* Designation eyebrow with brand-colored dot */
.sm-designation {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.sm-designation .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sm-designation--blue  { color: var(--brand-blue-ink); }
.sm-designation--blue  .dot { background: var(--brand-blue); }
.sm-designation--teal  { color: var(--brand-teal-ink); }
.sm-designation--teal  .dot { background: var(--brand-teal); }
.sm-designation--amber { color: var(--brand-amber-ink); }
.sm-designation--amber .dot { background: var(--brand-amber); }

/* Lifecycle badge — Available Now / Coming Soon / Under Contract / Leased */
.sm-lifecycle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  padding: 6px 10px;
  border-radius: 2px;
}
.sm-lifecycle--now      { background: var(--brand-teal); }
.sm-lifecycle--soon     { background: var(--brand-amber); color: #1A1100; }
.sm-lifecycle--uc       { background: var(--brand-blue); }
.sm-lifecycle--leased   { background: #8690A0; }
/* Compact variant for tight contexts */
.sm-lifecycle--sm { font-size: 9px; letter-spacing: 0.12em; padding: 4px 7px; }

/* Save heart — replaces the white-circle pattern site-wide */
.sm-save {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  padding: 0;
}
.sm-save:hover { background: #fff; transform: scale(1.06); }
.sm-save svg { width: 16px; height: 16px; stroke: var(--ink); fill: none; stroke-width: 1.6; transition: stroke 0.15s, fill 0.15s, transform 0.35s cubic-bezier(.2,.9,.4,1.6); }
.sm-save.is-saved svg { stroke: #E11D48; fill: #E11D48; animation: spaceCardSavePop 0.45s cubic-bezier(.2,.9,.4,1.6); }
/* Variant: stroke-only, no background — useful on the right rail of detail pages */
.sm-save--bare { background: transparent; backdrop-filter: none; border: 1px solid var(--border); }
.sm-save--bare:hover { background: var(--bg-subtle); }
.sm-save--lg { width: 44px; height: 44px; }
.sm-save--lg svg { width: 18px; height: 18px; }

/* Price — Fraunces, never JetBrains Mono */
.sm-price {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
}
.sm-price em {
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-left: 4px;
}
.sm-price--xl { font-size: 38px; }
.sm-price--lg { font-size: 22px; }
.sm-price--md { font-size: 16px; }

/* Compact row — list of suites, my-listings, broker dashboards */
.sm-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft, var(--border));
  text-decoration: none;
  color: inherit;
}
.sm-row:last-child { border-bottom: 0; }
.sm-row__thumb {
  width: 64px; height: 48px;
  border-radius: var(--radius-xs);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  background-color: var(--bg-subtle);
}
.sm-row__body { flex: 1; min-width: 0; }
.sm-row__name {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 2px;
}
.sm-row__meta {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--text-muted);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.sm-row__price {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  flex-shrink: 0;
}
.sm-row__price em { font-style: normal; font-family: var(--font-sans); font-size: 10px; color: var(--text-muted); margin-left: 4px; }

/* Detail row — labeled key/value pairs in the right-rail of detail pages */
.sm-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 9px 0;
}
.sm-detail-row__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.sm-detail-row__value {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

/* 7. Cards (Space Cards) — P1 editorial design
   ============================================================ */
.space-card {
  background: transparent;
  overflow: visible;
  border: 0;
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1);
  cursor: pointer;
  position: relative;
}

.space-card:hover {
  transform: translateY(-3px);
  box-shadow: none;
}

.space-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 5/4;
  overflow: hidden;
  background: var(--bg-dark);
  border-radius: 4px;
}

.space-card__image::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,.32));
  pointer-events: none;
  z-index: 1;
}

.space-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease, opacity 0.35s ease;
  position: absolute; inset: 0;
}

.space-card__image img.is-fading { opacity: 0; }

.space-card:hover .space-card__image img {
  transform: scale(1.04);
}

.space-card__badges {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  right: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  z-index: 2;
}

.space-card__save {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 3;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
}

.space-card__save:hover {
  background: white;
  transform: scale(1.06);
}

.space-card__save svg {
  width: 13px;
  height: 13px;
  stroke: var(--ink);
  fill: none;
  stroke-width: 1.6;
  transition: stroke 0.15s, fill 0.15s, transform 0.35s cubic-bezier(.2,.9,.4,1.6);
}

.space-card__save.is-saved svg {
  stroke: #E11D48;
  fill: #E11D48;
  animation: spaceCardSavePop 0.45s cubic-bezier(.2,.9,.4,1.6);
}

@keyframes spaceCardSavePop {
  0%   { transform: scale(.6); }
  55%  { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* Saved confirmation toast — fades in after a successful save */
.space-card__save-toast {
  position: absolute;
  top: -6px;
  right: 50px;
  z-index: 3;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.25s;
}
.space-card.is-just-saved .space-card__save-toast {
  opacity: 1;
  transform: translateX(0);
}

/* Lifecycle / availability badge — top-left of photo */
.space-card__lifecycle {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  padding: 4px 7px;
  border-radius: 2px;
  backdrop-filter: blur(6px);
}
.space-card__lifecycle--now      { background: rgba(78,173,165,0.92); }
.space-card__lifecycle--soon     { background: rgba(232,168,56,0.94); color: #1A1100; }
.space-card__lifecycle--uc       { background: rgba(74,144,217,0.92); }
.space-card__lifecycle--leased   { background: rgba(134,144,160,0.92); }

/* Carousel dots — fade in on hover, always visible on touch */
.space-card__dots {
  position: absolute;
  bottom: 12px;
  left: 0; right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 5px;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.space-card:hover .space-card__dots,
.space-card.dots-on .space-card__dots { opacity: 1; }
.space-card__dots i {
  display: block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  box-shadow: 0 1px 2px rgba(0,0,0,0.4);
  transition: background 0.2s, width 0.25s;
}
.space-card__dots i.active {
  background: #fff;
  width: 18px;
  border-radius: 3px;
}

/* Carousel arrows */
.space-card__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, background 0.15s;
}
.space-card__arrow--left  { left: 10px; }
.space-card__arrow--right { right: 10px; }
.space-card:hover .space-card__arrow { opacity: 1; }
.space-card__arrow:hover { background: #fff; }
.space-card__arrow svg {
  width: 14px; height: 14px;
  stroke: var(--ink);
  fill: none;
  stroke-width: 2;
}
@media (hover: none) {
  .space-card__arrow { display: none; }
  .space-card__dots { opacity: 1; }
}

.space-card__body {
  padding: 12px 2px 4px;
}

.space-card__location {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 6px;
}

/* Designation eyebrow with brand-colored dot */
.space-card__desig {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.space-card__desig .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
}
.space-card__desig--blue  { color: var(--brand-blue-ink); }
.space-card__desig--blue  .dot { background: var(--brand-blue); }
.space-card__desig--teal  { color: var(--brand-teal-ink); }
.space-card__desig--teal  .dot { background: var(--brand-teal); }
.space-card__desig--amber { color: var(--brand-amber-ink); }
.space-card__desig--amber .dot { background: var(--brand-amber); }

/* Suite name = serif headline */
.space-card__name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 2px;
}

/* Building subhead */
.space-card__building {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.35;
  margin: 0 0 8px;
}

.space-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-top: 2px;
}

.space-card__specs {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--text-secondary);
}
.space-card__specs span {
  color: var(--text-muted);
  margin: 0 5px;
}

.space-card__price {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
}

.space-card__price em {
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-left: 2px;
}


.space-card__promo {
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  background: var(--green-light);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

/* Featured badge */
/* Theme 3 — listing-card badges colored by Suite Monkey brand triad.
   Featured ("Collaborative" pillar) → Brand Amber.
   Move-in Ready ("Easy" pillar)     → Brand Teal.
   Pending / Coming Soon              → Pending Orange (Sage stays sole verified). */
.badge-featured {
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-amber-ink);
  background: rgba(252, 241, 220, 0.96);
  border: 1px solid color-mix(in oklab, var(--brand-amber) 32%, transparent);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
}

.badge-ready {
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-teal-ink);
  background: rgba(229, 244, 242, 0.96);
  border: 1px solid color-mix(in oklab, var(--brand-teal) 32%, transparent);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 4px;
}

.badge-pending {
  font-size: 11px;
  font-weight: 600;
  color: var(--pending-ink);
  background: rgba(252, 235, 218, 0.96);
  border: 1px solid color-mix(in oklab, var(--pending) 36%, transparent);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
}

/* Theme 3 — Monday-style top-stripe by suite type.
   Uses :has() (95%+ browser support 2026). The stripe is the
   visual identity of the card; matches the badge color. */
.space-card:has(.badge-ready)::before,
.space-card:has(.badge-featured)::before,
.space-card:has(.badge-pending)::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  z-index: 3;
}
.space-card:has(.badge-ready)::before    { background: var(--brand-teal); }
.space-card:has(.badge-featured)::before { background: var(--brand-amber); }
.space-card:has(.badge-pending)::before  { background: var(--pending); }

/* Theme 3 — icon-well utility. Rounded squares with brand-color
   wash backgrounds, used to host SVG icons in step/feature cards.
   Pattern: <span class="icon-well icon-well--blue"><svg ...></svg></span>
   Modifiers: --blue / --teal / --amber / --sage / --pending / --ink
   (default is ink — neutral surface). Always uses currentColor on
   the SVG stroke so the icon picks up the well's ink-color. */
.icon-well {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--bg-subtle);
  color: var(--ink);
}
.icon-well svg { width: 20px; height: 20px; }
.icon-well--sm { width: 32px; height: 32px; border-radius: 10px; }
.icon-well--sm svg { width: 16px; height: 16px; }
.icon-well--lg { width: 48px; height: 48px; border-radius: 14px; }
.icon-well--lg svg { width: 24px; height: 24px; }

.icon-well--blue   { background: var(--brand-blue-wash);  color: var(--brand-blue-ink); }
.icon-well--teal   { background: var(--brand-teal-wash);  color: var(--brand-teal-ink); }
.icon-well--amber  { background: var(--brand-amber-wash); color: var(--brand-amber-ink); }
.icon-well--sage   { background: var(--sage-wash);        color: var(--sage-ink); }
.icon-well--pending{ background: var(--pending-wash);     color: var(--pending-ink); }
.icon-well--ink    { background: var(--ink);              color: white; }

/* When the well sits on a card, give it a subtle inset highlight + ring */
.icon-well[data-elevated] {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 1px 2px rgba(0,0,0,.04);
}

/* 8. Amenity Badges / Pills
   ============================================================ */
.amenity {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.amenity-wifi {
  background: var(--blue-light);
  color: var(--blue);
}

.amenity-furnished {
  background: var(--purple-light);
  color: var(--purple);
}

.amenity-managed {
  background: var(--green-light);
  color: var(--green);
}

.amenity-access {
  background: var(--orange-light);
  color: var(--orange);
}

.amenity-conference {
  background: var(--teal-light);
  color: var(--teal);
}

.amenity-kitchen {
  background: var(--pink-light);
  color: var(--pink);
}

.amenity-bike {
  background: #FEF9C3;
  color: #CA8A04;
}

.amenity-parking {
  background: #F1F5F9;
  color: #475569;
}

/* Large amenity icons (for feature sections) */
.amenity-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-4);
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}

.amenity-feature:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.amenity-feature__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.amenity-feature__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.amenity-feature__desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* 9. Hero Section
   ============================================================ */
.hero {
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(37,99,235,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 60%, rgba(124,58,237,0.10) 0%, transparent 60%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding: var(--space-32) 0 var(--space-24);
  text-align: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-white-muted);
  margin-bottom: var(--space-8);
}

.hero__eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.hero__headline {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  color: white;
  letter-spacing: -2px;
  line-height: 1.05;
  max-width: 780px;
  margin: 0 auto var(--space-6);
}

.hero__headline em {
  font-style: normal;
  background: linear-gradient(135deg, #60A5FA, #A78BFA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subline {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-white-muted);
  max-width: 520px;
  margin: 0 auto var(--space-10);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

.hero__trust {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

.hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-12);
  flex-wrap: wrap;
  padding-top: var(--space-12);
  margin-top: var(--space-12);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.hero__stat-value {
  font-size: 36px;
  font-weight: 700;
  color: white;
  letter-spacing: -1px;
}

.hero__stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
}

/* 10. Section Layout
   ============================================================ */
.section {
  padding: var(--space-24) 0;
}

.section-sm {
  padding: var(--space-16) 0;
}

.section-lg {
  padding: var(--space-32) 0;
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-12);
}

.section__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: var(--space-3);
}

.section__title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--text);
  margin-bottom: var(--space-4);
  line-height: 1.15;
}

.section__desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 11. How It Works / User Tabs
   ============================================================ */
.tab-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: var(--bg-subtle);
  border-radius: var(--radius-pill);
  padding: var(--space-1);
  margin-bottom: var(--space-8);
}

.tab-btn {
  flex: 1;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
  text-align: center;
}

.tab-btn:hover {
  color: var(--text);
}

.tab-btn.is-active {
  background: white;
  color: var(--text);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.tab-panel {
  display: none;
}

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

.how-it-works__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-8);
}

.step {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.step__number {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--text);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}

.step__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.2px;
}

.step__desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 12. Why Suite Monkey / Feature Grid
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.why-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.why-item__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.why-item__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.why-item__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.why-visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--bg-dark);
}

.why-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.why-visual__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9,9,11,0.8) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: var(--space-8);
}

.why-visual__card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  width: 100%;
}

.why-visual__card-title {
  font-size: 15px;
  font-weight: 600;
  color: white;
  margin-bottom: var(--space-2);
}

.why-visual__card-meta {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

/* 13. Forms
   ============================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  background: white;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
}

/* Search bar */
.search-bar {
  display: flex;
  align-items: center;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 6px 6px 16px;
  gap: var(--space-3);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.search-bar:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.08), var(--shadow-sm);
}

.search-bar__input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  color: var(--text);
  background: transparent;
  min-width: 0;
}

.search-bar__input::placeholder {
  color: var(--text-muted);
}

/* Filter chips */
.filter-bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
  background: white;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.filter-chip:hover {
  border-color: var(--text);
  color: var(--text);
}

.filter-chip.is-active {
  background: var(--text);
  color: white;
  border-color: var(--text);
}

.filter-chip svg {
  width: 13px;
  height: 13px;
}

/* 14. Browse Page Layout
   ============================================================ */
.browse-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-8);
  min-height: calc(100vh - var(--nav-height));
}

.browse-sidebar {
  padding: var(--space-8) 0;
  position: sticky;
  top: calc(var(--nav-height) + var(--space-8));
  height: fit-content;
}

.browse-sidebar__title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.browse-sidebar__section {
  margin-bottom: var(--space-8);
}

.filter-option {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s;
  font-size: 14px;
  color: var(--text-secondary);
}

.filter-option:hover {
  background: var(--bg-subtle);
  color: var(--text);
}

.filter-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  accent-color: var(--text);
}

.range-slider {
  width: 100%;
  accent-color: var(--text);
  cursor: pointer;
}

.browse-main {
  padding: var(--space-8) 0;
}

.browse-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}

.browse-count {
  font-size: 15px;
  color: var(--text-secondary);
}

.browse-count strong {
  color: var(--text);
}

.browse-sort {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 14px;
  color: var(--text-secondary);
}

.spaces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-6);
}

/* 15. Space Detail Page
   ============================================================ */
.space-detail {
  padding: var(--space-8) 0 var(--space-24);
}

.space-detail__breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: var(--space-8);
}

.space-detail__breadcrumb a {
  color: var(--text-secondary);
  transition: color 0.15s;
}

.space-detail__breadcrumb a:hover {
  color: var(--text);
}

.space-detail__layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--space-10);
  align-items: start;
}

.space-gallery {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  margin-bottom: var(--space-6);
}

.space-gallery__main {
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--bg-subtle);
  position: relative;
  overflow: hidden;
}

.space-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.space-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.space-gallery__thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius-xs);
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.15s;
}

.space-gallery__thumb:hover,
.space-gallery__thumb.is-active {
  border-color: var(--text);
}

.space-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.space-gallery__thumb:hover img {
  transform: scale(1.05);
}

.space-detail__info h1 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: var(--space-2);
}

.space-detail__address {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.space-detail__quick-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  background: var(--bg-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-6);
}

.space-detail__fact-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--space-1);
}

.space-detail__fact-value {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.space-detail__fact-sub {
  font-size: 12px;
  color: var(--text-secondary);
}

.space-detail__section-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
}

.space-detail__desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Contact card */
.contact-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  position: sticky;
  top: calc(var(--nav-height) + var(--space-6));
}

.contact-card__price {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.8px;
  margin-bottom: var(--space-1);
}

.contact-card__price-sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: var(--space-5);
}

.contact-card__promo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--green-light);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-5);
  font-size: 13px;
  font-weight: 500;
  color: var(--green);
}

.contact-card__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.contact-card__meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.contact-card__meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.contact-card__meta-label {
  color: var(--text-secondary);
}

.contact-card__meta-value {
  font-weight: 500;
  color: var(--text);
}

.contact-card__divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-4) 0;
}

.contact-card__broker {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--bg-subtle);
  border-radius: var(--radius);
}

.broker-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-subtle);
  flex-shrink: 0;
}

.broker-name {
  font-size: 14px;
  font-weight: 600;
}

.broker-role {
  font-size: 12px;
  color: var(--text-secondary);
}

/* 16. Sign Up / Onboarding
   ============================================================ */
.onboarding {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.onboarding__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 1;
}

.onboarding__left {
  background: var(--bg-dark);
  padding: var(--space-16) var(--space-12);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: sticky;
  top: 0;
  height: 100vh;
}

.onboarding__left-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.onboarding__quote {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: white;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: var(--space-6);
}

.onboarding__quote em {
  font-style: normal;
  color: rgba(255,255,255,0.4);
}

.onboarding__testimonial {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  font-style: italic;
  margin-bottom: var(--space-4);
  line-height: 1.6;
}

.onboarding__testimonial-author {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
}

.onboarding__right {
  padding: var(--space-12) var(--space-12);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: white;
}

.onboarding__form-header {
  margin-bottom: var(--space-8);
}

.onboarding__step-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.onboarding__form-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: var(--space-2);
}

.onboarding__form-desc {
  font-size: 15px;
  color: var(--text-secondary);
}

/* Role cards */
.role-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.role-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.role-card:hover {
  border-color: var(--text-muted);
}

.role-card.is-selected {
  border-color: var(--text);
  background: var(--bg-subtle);
}

.role-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.role-card__title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.role-card__desc {
  font-size: 13px;
  color: var(--text-secondary);
}

.role-card__check {
  margin-left: auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}

.role-card.is-selected .role-card__check {
  background: var(--text);
  border-color: var(--text);
}

.role-card.is-selected .role-card__check svg {
  display: block;
}

.role-card__check svg {
  display: none;
  width: 12px;
  height: 12px;
  stroke: white;
  fill: none;
}

/* 17. Dashboard
   ============================================================ */
.dashboard {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - var(--nav-height));
}

.dashboard__sidebar {
  background: white;
  border-right: 1px solid var(--border);
  padding: var(--space-6);
  position: sticky;
  top: var(--nav-height);
  height: calc(100vh - var(--nav-height));
  overflow-y: auto;
}

.dashboard__nav-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0 var(--space-3);
  margin-bottom: var(--space-2);
  margin-top: var(--space-5);
}

.dashboard__nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}

.dashboard__nav-link:hover {
  background: var(--bg-subtle);
  color: var(--text);
}

.dashboard__nav-link.is-active {
  background: var(--bg-subtle);
  color: var(--text);
  font-weight: 600;
}

.dashboard__nav-link svg {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.dashboard__nav-link.is-active svg {
  opacity: 1;
}

.dashboard__main {
  padding: var(--space-8) var(--space-8);
  background: var(--bg);
}

.dashboard__header {
  margin-bottom: var(--space-8);
}

.dashboard__welcome {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: var(--space-1);
}

.dashboard__subtext {
  font-size: 15px;
  color: var(--text-secondary);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.stat-card__label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.stat-card__value {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--text);
}

.stat-card__change {
  font-size: 12px;
  color: var(--green);
  margin-top: var(--space-1);
}

.saved-spaces-section {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.section-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}

.section-row-title {
  font-size: 17px;
  font-weight: 600;
}

/* 18. CTA Section
   ============================================================ */
.cta-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.cta-card {
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-8);
  position: relative;
  overflow: hidden;
}

.cta-card--dark {
  background: var(--bg-dark);
  color: white;
}

.cta-card--light {
  background: var(--blue-light);
  color: var(--text);
}

.cta-card__eyebrow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.6;
  margin-bottom: var(--space-3);
}

.cta-card__title {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: var(--space-4);
}

.cta-card__desc {
  font-size: 15px;
  opacity: 0.7;
  line-height: 1.6;
  margin-bottom: var(--space-8);
}

/* 19. Footer
   ============================================================ */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.6);
  padding: var(--space-16) 0 var(--space-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.footer__brand-name {
  font-size: 20px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.5px;
  margin-bottom: var(--space-3);
}

.footer__brand-desc {
  font-size: 14px;
  line-height: 1.6;
  max-width: 260px;
}

.footer__col-title {
  font-size: 13px;
  font-weight: 600;
  color: white;
  margin-bottom: var(--space-4);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__link {
  font-size: 14px;
  transition: color 0.15s;
}

.footer__link:hover {
  color: white;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.footer__legal {
  display: flex;
  gap: var(--space-6);
}

/* 20. Utility / Misc
   ============================================================ */
.divider {
  height: 1px;
  background: var(--border);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

.loading-pulse {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: none;
}

/* 21. Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .browse-layout {
    grid-template-columns: 1fr;
  }

  .browse-sidebar {
    display: none;
  }

  .space-detail__layout {
    grid-template-columns: 1fr;
  }

  .contact-card {
    position: relative;
    top: 0;
  }

  .onboarding__split {
    grid-template-columns: 1fr;
  }

  .onboarding__left {
    display: none;
  }

  .dashboard {
    grid-template-columns: 1fr;
  }

  .dashboard__sidebar {
    display: none;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .why-visual {
    max-height: 400px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav__links,
  .nav__actions .btn-secondary {
    display: none;
  }

  .nav__mobile-toggle {
    display: flex;
  }

  .hero__inner {
    padding: var(--space-20) 0 var(--space-16);
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__stats {
    gap: var(--space-8);
  }

  .how-it-works__steps {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .spaces-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .space-detail__quick-facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .space-gallery__thumbs {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }

  .section { padding: var(--space-16) 0; }
  .section-lg { padding: var(--space-20) 0; }
  .tab-bar { flex-wrap: wrap; border-radius: var(--radius-lg); }
  .onboarding__right { padding: var(--space-8) var(--space-6); }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-4); }
  .hero__headline { font-size: 34px; letter-spacing: -1px; }
  .section__title { font-size: 26px; letter-spacing: -0.5px; }
}

/* ============================================================
   GLOBAL SIDEBAR — Logged-in layout (browse-style)
   Applied by nav.js when user is authenticated.
   Expandable: 56px (icons) → 200px (icons + labels).
   ============================================================ */
.sm-sidebar-layout {
  display: flex;
  min-height: 100vh;
}
.sm-sidebar-layout .nav { display: none !important; }
.sm-sidebar-layout body { padding-top: 0 !important; margin-top: 0 !important; }

/* Prevent layout flash while sidebar injects */
/* Cosmetic load-in fades removed — they were creating a stuck
   compositing layer on the sidebar that desaturated child paints
   (the black logo rendered as a washed-out gray in some browsers). */

.sm-sidebar {
  /* Shared-element view transition — the rail keeps a single identity
     across page navigations so its width morphs smoothly (Browse 56px →
     Project 200px) instead of getting crossfaded as two unrelated
     snapshots at different sizes. */
  view-transition-name: sm-sidebar;
  width: var(--sidebar-collapsed);
  min-width: var(--sidebar-collapsed);
  /* Linear-style recession — rail is a few notches off the main content
     so post-arrival the user's eye lands on content, not chrome. Light
     mode: warm off-white that reads as "navigation surface" against the
     true-white main canvas. Dark mode covered below via --sidebar-bg. */
  background: var(--sidebar-bg, #FAFAF8);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0 16px 0;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: var(--z-sidebar);
  transition: width var(--panel-duration) var(--panel-easing), min-width var(--panel-duration) var(--panel-easing);
  overflow: hidden;
  /* Compositor hints — keep the rail on its own layer so the
     width animation doesn't repaint child rows on every frame.
     `contain: layout style` scopes reflow inside the rail. */
  will-change: width;
  contain: layout style;
}
.sm-sidebar.is-expanded {
  width: var(--sidebar-expanded);
  min-width: var(--sidebar-expanded);
  align-items: stretch;
  padding: 0 0 16px 0;
}

/* ── Sidebar top: logo + expand toggle ──
   Height matches --sm-topbar-height so the brand mark sits at upper-left
   on the same horizontal baseline as the in-main topbar. */
.sm-sidebar__top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: var(--sm-topbar-height);
  box-sizing: border-box;
  margin-bottom: 8px;
  padding: 0;
}
/* Logo: 32px rounded square in the sidebar top-left. Two stacked
   icon layers — the Suite Monkey mark (default) and a sidebar-
   panel expand icon (hover). In the collapsed state, hovering
   fades the mark out and reveals the expand icon inside a white
   bordered square, matching the chatbotapp reference pattern. */
.sm-sidebar__logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  width: 32px;
  padding: 0;
  border: none;
  background: transparent;
  flex-shrink: 0;
  cursor: pointer;
}
.sm-sidebar__logo-mark,
.sm-sidebar__logo-expand {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: opacity 0.18s ease;
}
.sm-sidebar__logo-mark {
  /* Theme 3 — same Blue→Teal→Amber gradient as the topbar mark. */
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-teal) 55%, var(--brand-amber) 100%);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 1px 2px rgba(15, 23, 42, 0.08), 0 4px 10px rgba(15, 23, 42, 0.06);
  opacity: 1;
  z-index: 1;
}
.sm-sidebar__logo-mark svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
}
.sm-sidebar__logo-expand {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text);
  opacity: 0;
  z-index: 2;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}
.sm-sidebar__logo-expand svg {
  width: 16px;
  height: 16px;
}
.sm-sidebar__brand { display: none; }

/* Collapsed state — hovering swaps mark ↔ expand and shows tooltip */
.sm-sidebar:not(.is-expanded) .sm-sidebar__logo:hover .sm-sidebar__logo-mark {
  opacity: 0;
}
.sm-sidebar:not(.is-expanded) .sm-sidebar__logo:hover .sm-sidebar__logo-expand {
  opacity: 1;
}
.sm-sidebar:not(.is-expanded) .sm-sidebar__logo:active .sm-sidebar__logo-expand {
  background: var(--bg-subtle);
}

/* Tooltip on hover while collapsed — "Expand sidebar" */
.sm-sidebar:not(.is-expanded) .sm-sidebar__logo::after {
  content: 'Expand sidebar';
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(-4px);
  background: var(--text);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 200;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}
.sm-sidebar:not(.is-expanded) .sm-sidebar__logo:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Expanded state — logo is a button that links back to the marketing
   home page. The mark stays visible; the expand glyph is hidden. */
.sm-sidebar.is-expanded .sm-sidebar__logo {
  cursor: pointer;
  transition: transform 180ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 180ms ease;
}
.sm-sidebar.is-expanded .sm-sidebar__logo:hover .sm-sidebar__logo-mark {
  transform: scale(1.06);
}
.sm-sidebar.is-expanded .sm-sidebar__logo:active .sm-sidebar__logo-mark {
  transform: scale(0.96);
}
.sm-sidebar.is-expanded .sm-sidebar__logo:focus-visible {
  outline: 2px solid var(--accent, currentColor);
  outline-offset: 3px;
  border-radius: 8px;
}
.sm-sidebar.is-expanded .sm-sidebar__logo-expand { display: none; }

.sm-sidebar__top { justify-content: flex-start; padding: 0 12px; }
.sm-sidebar.is-expanded .sm-sidebar__top {
  justify-content: space-between;
  padding: 0 10px;
  gap: 8px;
}
/* Toggle button: hidden in collapsed (logo expands), visible in
   expanded so the user can collapse back. */
.sm-sidebar:not(.is-expanded) .sm-sidebar__toggle { display: none; }

.sm-sidebar__toggle {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: none;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.sm-sidebar__toggle:hover { background: var(--bg-subtle); color: var(--text); }
.sm-sidebar__toggle svg { width: 18px; height: 18px; flex-shrink: 0; }

.sm-sidebar__divider { display: none; }

/* ── Sidebar nav groups ── */
.sm-sidebar__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  padding: 0 8px;
  width: 100%;
  box-sizing: border-box;
}
.sm-sidebar.is-expanded .sm-sidebar__nav { padding: 0 10px; align-items: stretch; }

/* Sidebar divider */
.sm-sidebar__divider {
  padding: 8px 0 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.sm-sidebar__divider-line {
  width: 24px;
  height: 1px;
  background: var(--border);
  margin-bottom: 6px;
}
.sm-sidebar__divider-label {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  display: none;
}
.sm-sidebar.is-expanded .sm-sidebar__divider {
  align-items: stretch;
  padding: 12px 0 6px;
}
.sm-sidebar.is-expanded .sm-sidebar__divider-line {
  width: 100%;
}
.sm-sidebar.is-expanded .sm-sidebar__divider-label {
  display: block;
  font-size: 10px;
  padding-left: 10px;
  margin-top: 4px;
}

.sm-sidebar__item {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-muted);
  cursor: pointer;
  /* Width is no longer transitioned per-item — the parent rail's
     width transition already handles that, and animating width on
     every row causes layout thrash when hovering. Background and
     color animate via opacity-friendly properties only. */
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  position: relative;
  border: none;
  background: none;
  padding: 0;
  font-family: inherit;
  white-space: nowrap;
  overflow: hidden;
}
.sm-sidebar__item:hover { background: var(--bg-subtle); color: var(--text); }
/* Invisible spacer slot — keeps icon row positions stable across page
   navigations when a page-scoped item (Filters) drops out. Same height
   as a real row, no hover, no pointer events. */
.sm-sidebar__item--spacer {
  pointer-events: none;
  background: transparent !important;
  cursor: default;
}
.sm-sidebar__item--spacer:hover { background: transparent !important; }
/* Panel-trigger items (Notifications, Favorites, Team, Projects) get a
   subtle outline ring on hover to signal "opens an overlay" vs nav-link
   items (Messages, My Listings, etc.) which navigate. Same icon size,
   same row height — just a quiet visual hint that this is a peek
   affordance, not a navigation. */
.sm-sidebar__item[data-kind="panel"]:hover {
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--text) 18%, transparent);
}
.sm-sidebar__item.is-active { background: var(--bg-subtle); color: var(--text); }
/* Active-state left-bar marker — always present in the DOM (collapsed
   to scaleY(0)) so the active state animates in via transform/opacity
   instead of popping into existence when the class is added. Critical
   for the Browse → pinned-project transition: the bar fades-and-scales
   smoothly into view on the just-clicked link rather than appearing as
   a sudden visual element mid-View-Transition. */
.sm-sidebar__item::after {
  content: '';
  position: absolute;
  left: -8px;
  top: 50%;
  width: 3px;
  height: 20px;
  background: var(--text);
  border-radius: 0 3px 3px 0;
  transform: translateY(-50%) scaleY(0);
  opacity: 0;
  transition: transform 180ms var(--panel-easing), opacity 180ms ease;
  pointer-events: none;
}
.sm-sidebar__item.is-active::after {
  transform: translateY(-50%) scaleY(1);
  opacity: 1;
}
/* Spacer rows must NEVER show the marker even briefly. */
.sm-sidebar__item--spacer::after { display: none; }
.sm-sidebar__item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* ── Label: hidden when collapsed, shown when expanded ── */
.sm-sidebar__label {
  font-size: 13px;
  font-weight: 500;
  display: none;
}
.sm-sidebar.is-expanded .sm-sidebar__item {
  width: 100%;
  justify-content: flex-start;
  padding: 0 12px;
}
.sm-sidebar.is-expanded .sm-sidebar__label { display: inline; }
.sm-sidebar.is-expanded .sm-sidebar__item.is-active::after { left: -10px; }

/* Notification unread badge on the bell icon */
.sm-sidebar__badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #EF4444;
  color: white;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  pointer-events: none;
  box-shadow: 0 0 0 2px white;
}
.sm-sidebar__item { position: relative; }

/* ── Tooltip: shown on hover only when collapsed ── */
.sm-sidebar:not(.is-expanded) .sm-sidebar__item[data-tooltip]:hover::before {
  content: attr(data-tooltip);
  position: absolute;
  left: 52px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--text);
  color: white;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 200;
  pointer-events: none;
}

/* ── Bottom section (profile, settings) ── */
.sm-sidebar__bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 8px 0 8px;
  width: 100%;
  box-sizing: border-box;
}
.sm-sidebar.is-expanded .sm-sidebar__bottom { padding: 8px 10px 0 10px; align-items: stretch; }

.sm-sidebar__avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-subtle);
}
.sm-sidebar__avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ── Main content area ──
   Margin-left grows to accommodate the rail + optional open push-panel,
   so page content genuinely reflows (no overlay). */
.sm-sidebar-main {
  /* Shared-element view transition — main content morphs from Browse's
     full-bleed listings/map to Project's hero+columns as one identity,
     so the size adjustment from a 56px-margin layout to a 200px-margin
     layout animates smoothly instead of mid-air width snap. */
  view-transition-name: sm-main;
  flex: 1;
  margin-left: var(--sidebar-collapsed);
  min-width: 0; /* allow flex children to shrink */
  height: 100vh;
  background: var(--bg);
  transition: margin-left var(--panel-duration) var(--panel-easing);
  overflow-x: hidden;
  overflow-y: auto;
  will-change: margin-left;
}
.sm-sidebar-layout.sidebar-expanded .sm-sidebar-main {
  margin-left: var(--sidebar-expanded);
}
.sm-sidebar-layout.panel-open .sm-sidebar-main {
  margin-left: calc(var(--sidebar-collapsed) + var(--panel-width));
}
.sm-sidebar-layout.sidebar-expanded.panel-open .sm-sidebar-main {
  margin-left: calc(var(--sidebar-expanded) + var(--panel-width));
}

/* ── Push panels (Favorites / Team / Collections / Filters …) ──
   Positioned just right of the rail. Only one is open at a time.
   The main content's margin-left grows to match, so this is a push effect. */
.sm-push-panel {
  position: fixed;
  top: 0;
  left: var(--sidebar-collapsed);
  width: var(--panel-width);
  height: 100vh;
  background: white;
  border-right: 1px solid var(--border);
  /* Promote to its own compositor layer so the slide-in transform
     doesn't repaint the page behind it on each frame. */
  will-change: transform, opacity;
  contain: layout style;
  /* Sits ABOVE the topbar (--z-topbar = 50) so the popout's own header
     is visible at y=0 regardless of whether the source page has a
     breadcrumb topbar. This makes the popout pattern consistent across
     browse (no topbar) and pages with a topbar — and lets the popout →
     /messages.html morph land at the same y on either source. */
  z-index: 51;
  transform: translateX(calc(-1 * (var(--panel-width) + 8px)));
  opacity: 0;
  pointer-events: none;
  transition: transform var(--panel-duration) var(--panel-easing),
              opacity var(--panel-fade),
              left var(--panel-duration) var(--panel-easing);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.sm-push-panel.is-mounted { display: flex; }
.sm-push-panel.is-open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

/* ── Expanded popout: the messages popout's "Open full inbox" state.
   Same animation primitive (the panel width grows), no document-level
   navigation. Inside, an <iframe> renders /messages.html?embed=1 so
   the existing inbox JS runs unchanged. The transition is the inbox
   surface BECOMING wider — there is nothing to morph between, hence
   nothing to flash. */
.sm-push-panel.is-expanded {
  width: calc(100vw - var(--sidebar-collapsed));
  /* Animate width too (in addition to the existing transform/opacity)
     so the grow reads as one continuous motion. */
  transition: transform var(--panel-duration) var(--panel-easing),
              opacity var(--panel-fade),
              left var(--panel-duration) var(--panel-easing),
              width var(--panel-duration) var(--panel-easing);
}
.sm-sidebar-layout.sidebar-expanded .sm-push-panel.is-expanded {
  width: calc(100vw - var(--sidebar-expanded));
}
/* While the inbox is expanded, the main canvas sits entirely behind
   the popout. Hide its overflow so any horizontally-overflowing source
   page (browse, my-clients, etc.) can't scroll behind the panel and
   wedge a phantom scrollbar visible at the bottom. */
.sm-sidebar-layout.inbox-expanded .sm-sidebar-main {
  overflow: hidden;
}
/* When NOT expanded, the iframe + collapse affordance are hidden —
   only the popout's own 320px header/body show. Iframe is pre-warmed
   in the background so the document is loaded before the user expands. */
.sm-push-panel:not(.is-expanded) > .sm-push-panel__embed,
.sm-push-panel:not(.is-expanded) > .sm-push-panel__collapse { display: none; }

/* The iframe is absolute-positioned inside the panel so it can sit
   underneath the popout's 320px header/body during the brief moment
   between "expand triggered" and "iframe load complete". The native
   320px content stays as a loading bridge until .embed-ready fires. */
.sm-push-panel__embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: var(--bg);
  opacity: 0;
  transition: opacity 0.18s ease-out;
}
.sm-push-panel.is-expanded.embed-ready > .sm-push-panel__embed {
  opacity: 1;
}
/* While expanded but iframe not yet ready, keep the popout's own header
   and 320px body visible as a loading bridge — they exactly mirror the
   left-side thread list of /messages.html?embed=1, so the seam is
   invisible. The header+body fade out once the iframe is ready. */
.sm-push-panel.is-expanded > .sm-push-panel__header,
.sm-push-panel.is-expanded > .sm-push-panel__body {
  position: relative;
  z-index: 1;
  width: var(--panel-width);
  flex-shrink: 0;
  transition: opacity 0.2s ease-out;
}
.sm-push-panel.is-expanded.embed-ready > .sm-push-panel__header,
.sm-push-panel.is-expanded.embed-ready > .sm-push-panel__body {
  opacity: 0;
  pointer-events: none;
  /* Keep them in DOM (collapsing back snaps them visible) but
     out of the layout once the iframe owns the surface. */
  position: absolute;
  visibility: hidden;
}
/* Floating "collapse" affordance overlaid on the expanded panel.
   Sits top-right so it doesn't fight the inbox's own thread list at
   the left. Only renders while is-expanded; hidden in 320px state. */
.sm-push-panel__collapse {
  position: absolute;
  top: 14px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: white;
  color: var(--text-muted);
  display: none;
  align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.sm-push-panel.is-expanded .sm-push-panel__collapse { display: flex; }
.sm-push-panel__collapse:hover {
  background: var(--bg-subtle);
  color: var(--ink);
  border-color: var(--ink);
}
.sm-push-panel__collapse:active { transform: scale(0.94); }
.sm-push-panel__collapse svg { width: 16px; height: 16px; }
/* While expanded, hide the global backdrop (the surface IS the page;
   no need to dim what's behind it). */
body.inbox-expanded::before { display: none !important; }

/* ── Subtle backdrop while any push panel is open ──
   Pure CSS via :has() — no JS needed. The dim is intentionally light
   (rgba 0,0,0,0.06) so it reads as "this is the active layer" without
   feeling like a heavy modal. Click on the backdrop falls through to
   the main content area below; the existing close affordances inside
   the panel + sidebar still handle dismissal. */
body:has(.sm-push-panel.is-open)::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.06);
  z-index: calc(var(--z-panel) - 1);
  pointer-events: none;
  animation: sm-panel-backdrop-fade 180ms ease-out;
}
@keyframes sm-panel-backdrop-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.sm-sidebar-layout.sidebar-expanded .sm-push-panel {
  left: var(--sidebar-expanded);
}

/* ── Right-dock variant (AI copilot) ──
   Slides in from the right edge of the viewport, independent of the
   left-docked panels. Main content picks up a margin-right when open,
   alongside any margin-left from a left panel. Lets a right copilot
   coexist with the Filters / Favorites / Team panels on the left. */
.sm-push-panel.sm-push-panel--right {
  left: auto;
  right: 0;
  border-right: none;
  border-left: 1px solid var(--border);
  transform: translateX(calc(var(--panel-width) + 8px));
  transition: transform var(--panel-duration) var(--panel-easing),
              opacity var(--panel-fade);
}
/* Must come AFTER the --right rule above to override its closed transform
   when is-open is applied. Without this, source order loses the slide-in. */
.sm-push-panel.sm-push-panel--right.is-open {
  transform: translateX(0);
}
.sm-sidebar-layout.sidebar-expanded .sm-push-panel.sm-push-panel--right {
  left: auto;
}
.sm-sidebar-layout.right-panel-open .sm-sidebar-main {
  margin-right: var(--panel-width);
}

.sm-push-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 16px 20px;
  position: sticky;
  top: 0;
  background: white;
  z-index: 2;
  flex-shrink: 0;
}
.sm-push-panel__title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.sm-push-panel__title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.1px;
  color: var(--text);
}
.sm-push-panel__actions { display: flex; align-items: center; gap: 6px; }
.sm-push-panel__close {
  width: 28px; height: 28px; border-radius: 6px;
  border: none; background: none; color: var(--text-muted);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.12s, color 0.12s;
}
.sm-push-panel__close:hover { background: var(--bg-subtle); color: var(--text); }
.sm-push-panel__icon-btn {
  width: 28px; height: 28px; border-radius: 6px;
  border: none; background: none; color: var(--text-muted);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.12s, color 0.12s;
}
.sm-push-panel__icon-btn:hover { background: var(--bg-subtle); color: var(--text); }
.sm-push-panel__text-btn {
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.sm-push-panel__text-btn:hover {
  background: var(--bg-subtle);
  border-color: var(--text-muted);
}
.sm-push-panel__text-btn:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}
.sm-push-panel__popout {
  width: 28px; height: 28px; border-radius: 6px;
  border: none; background: none; color: var(--text-muted);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
.sm-push-panel__popout:hover { background: var(--bg-subtle); color: var(--text); }
.sm-push-panel__popout:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

/* Edit-mode affordances for any panel that flips into edit state.
   Hides the pop-out so the user can't accidentally navigate mid-task
   (and lose unsaved reorder state), shows a subtle accent bar at the
   top of the body so the mode is visually obvious. */
.sm-push-panel.is-editing .sm-push-panel__popout { display: none; }
.sm-push-panel.is-editing .sm-push-panel__body {
  box-shadow: inset 0 2px 0 var(--text);
}
.sm-push-panel.is-editing .sm-push-panel__title::after {
  content: 'Editing';
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 999px;
  vertical-align: 2px;
}

/* Favorites in-panel edit mode — drag handle + remove button */
.sm-fav-row__drag {
  width: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: grab;
  flex-shrink: 0;
}
.sm-fav-row__drag:active { cursor: grabbing; }
.sm-fav-row__drag svg { width: 14px; height: 14px; }
.sm-fav-row--dragging { opacity: 0.45; }
.sm-fav-row--drop-before { box-shadow: 0 -2px 0 var(--text); }
.sm-fav-row--drop-after  { box-shadow: 0 2px 0 var(--text); }
.sm-fav-row__remove {
  width: 26px; height: 26px; border-radius: 6px;
  border: 1px solid transparent; background: none; color: var(--text-muted);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.sm-fav-row__remove:hover {
  background: #fef2f2; color: #dc2626; border-color: #fecaca;
}
.sm-fav-row__remove svg { width: 13px; height: 13px; }
.sm-push-panel__body {
  padding: 16px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* ── Notifications panel — denser, typed, hover-reveal actions ── */
.sm-push-panel__body[data-panel="notifications"] { padding: 8px 12px 0; }

.sm-notif-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 8px;
}
.sm-notif-chips button {
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.12s, background 0.12s, border-color 0.12s;
}
.sm-notif-chips button:hover {
  color: var(--ink);
  border-color: var(--text-muted);
}
.sm-notif-chips button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
}
.sm-notif-chips__count {
  display: inline-block;
  min-width: 16px;
  padding: 0 6px;
  height: 15px;
  line-height: 15px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 999px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  background: color-mix(in oklab, currentColor 14%, transparent);
}

.sm-notif-bucket {
  margin: 12px 0 2px;
  padding: 0 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: -0.05px;
}
.sm-notif-bucket:first-child { margin-top: 4px; }

.sm-notif-row {
  position: relative;
  display: grid;
  grid-template-columns: 36px 1fr;
  column-gap: 12px;
  row-gap: 0;
  align-items: start;
  padding: 12px 12px 12px 16px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.12s;
}
.sm-notif-row + .sm-notif-row {
  border-top: 1px solid color-mix(in oklab, var(--border) 50%, transparent);
  border-radius: 0;
  margin-top: 0;
}
.sm-notif-row:hover { background: var(--bg-subtle); }
.sm-notif-row.is-unread {
  background: color-mix(in oklab, var(--brand-blue) 4%, transparent);
}
.sm-notif-row.is-unread::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 999px;
  background: var(--brand-blue);
}
.sm-notif-row__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: white;
  background: var(--bg-subtle);
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 0 2px white, 0 1px 2px rgba(10,10,10,0.06);
}
.sm-notif-row__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.sm-notif-row__avatar--icon {
  border-radius: 10px;
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 400;
}
.sm-notif-row[data-cat="inbox"] .sm-notif-row__avatar--icon,
.sm-notif-row[data-cat="activity"] .sm-notif-row__avatar--icon {
  background: color-mix(in oklab, var(--brand-blue) 14%, white);
  color: color-mix(in oklab, var(--brand-blue) 70%, var(--ink));
}
.sm-notif-row[data-cat="feed"] .sm-notif-row__avatar--icon {
  background: color-mix(in oklab, var(--brand-amber) 18%, white);
  color: color-mix(in oklab, var(--brand-amber) 60%, var(--ink));
}
.sm-notif-row[data-cat="system"] .sm-notif-row__avatar--icon {
  background: var(--bg-subtle);
  color: var(--text-muted);
}
.sm-notif-row__main { min-width: 0; }
.sm-notif-row__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 1px;
}
.sm-notif-row__actor {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.sm-notif-row__actor-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  height: 14px;
  line-height: 14px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--bg-subtle);
  color: var(--text-muted);
  border-radius: 999px;
  vertical-align: 1px;
}
.sm-notif-row__time {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.sm-notif-row__title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.sm-notif-row.is-unread .sm-notif-row__title {
  font-weight: 600;
}
.sm-notif-row__context {
  margin-top: 6px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  background: white;
  border: 1px solid color-mix(in oklab, var(--border) 80%, transparent);
  border-radius: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.sm-notif-row__context::before {
  content: '“';
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  line-height: 0;
  vertical-align: -3px;
  margin-right: 3px;
  color: var(--text-muted);
}
.sm-notif-row__context::after {
  content: '”';
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  line-height: 0;
  vertical-align: -3px;
  margin-left: 2px;
  color: var(--text-muted);
}
/* ── Listing lifecycle badge (Path A) — browse cards ─────── */
.badge-lifecycle {
  display: inline-block;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 6px;
  margin-left: 4px;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(10,10,10,0.08);
}
.badge-lifecycle--soon {
  background: color-mix(in oklab, var(--brand-amber, #E8A838) 88%, white);
  color: white;
}
.badge-lifecycle--uc {
  background: color-mix(in oklab, var(--brand-blue) 80%, white);
  color: white;
}
.badge-lifecycle--leased {
  background: rgba(80, 80, 80, 0.85);
  color: white;
}
.space-card[data-lifecycle="leased"] {
  opacity: 0.72;
}
.space-card[data-lifecycle="leased"]:hover {
  opacity: 0.92;
}
/* Default-ON hide leased — clicked toggle removes the class. */
.space-grid.is-hide-leased .space-card[data-lifecycle="leased"] {
  display: none !important;
}

/* ── Messages popout: unread chip on a thread row ─────────── */
.sm-msgs-row {
  position: relative;
}
.sm-msgs-row__unread {
  position: absolute;
  top: 12px;
  right: 12px;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  font-size: 10px;
  font-weight: 700;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  background: var(--brand-blue);
  color: white;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ── Browse filters greyed while a left panel is open ────── */
/* Spatial-continuity: when the user opens Notifications/Favorites/
   Messages from /browse, the filter chips stay rendered in place but
   become non-interactive. When the panel closes, the filters are
   exactly where they were. */
body:has(.sm-push-panel.is-open) #activeFilters,
body:has(.sm-push-panel.is-open) .browse-filter-chips,
body:has(.sm-push-panel.is-open) .filter-bar,
body:has(.sm-push-panel.is-open) .browse-controls,
body:has(.sm-push-panel.is-open) .smart-filter-controls {
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

/* ── Shared "← Browse" breadcrumb (notifications, messages, favorites) */
.sm-back-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.12s;
}
.sm-back-breadcrumb:hover { color: var(--text); }
.sm-back-breadcrumb__sep { margin: 0 6px; opacity: 0.35; font-size: 13px; }
.sm-back-breadcrumb__current { font-size: 13px; font-weight: 600; color: var(--text); }
@media (max-width: 767px) {
  .sm-back-breadcrumb__sep,
  .sm-back-breadcrumb__current { display: none !important; }
}

/* ── Notifications panel: unread-messages pinned strip ────── */
.sm-notif-msgstrip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 8px 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: color-mix(in oklab, var(--brand-blue) 8%, white);
  border: 1px solid color-mix(in oklab, var(--brand-blue) 18%, transparent);
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.12s, transform 0.1s;
}
.sm-notif-msgstrip:hover {
  background: color-mix(in oklab, var(--brand-blue) 14%, white);
}
.sm-notif-msgstrip:active { transform: translateY(1px); }
.sm-notif-msgstrip__icon { font-size: 16px; }
.sm-notif-msgstrip__text { flex: 1; min-width: 0; }
.sm-notif-msgstrip__arrow {
  font-size: 14px;
  color: color-mix(in oklab, var(--brand-blue) 70%, var(--ink));
}

/* ── Listing-alert rich row (Path A) ──────────────────────── */
.sm-notif-row--listing {
  grid-template-columns: 36px 1fr 64px;
}
.sm-notif-row__thumb {
  grid-column: 3;
  grid-row: 1 / 3;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  align-self: center;
  box-shadow: 0 1px 2px rgba(10,10,10,0.06);
}
.sm-notif-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sm-notif-row__thumb--empty {
  color: var(--text-muted);
}
.sm-notif-row__listing-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.2;
}
.sm-notif-row__nbhd {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
}
.sm-notif-row__price {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.sm-notif-row__price-old {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}
.sm-notif-row__delta {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--brand-green, #10B981) 16%, white);
  color: color-mix(in oklab, var(--brand-green, #10B981) 70%, var(--ink));
}
.sm-notif-row__badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
}
.sm-notif-row__badge--soon {
  background: color-mix(in oklab, var(--brand-amber, #E8A838) 18%, white);
  color: color-mix(in oklab, var(--brand-amber, #E8A838) 70%, var(--ink));
}
.sm-notif-row__badge--uc {
  background: color-mix(in oklab, var(--brand-blue) 14%, white);
  color: color-mix(in oklab, var(--brand-blue) 70%, var(--ink));
}
.sm-notif-row__badge--leased {
  background: var(--bg-subtle);
  color: var(--text-muted);
}
.sm-notif-row__chip {
  display: inline-block;
  margin-left: 6px;
  padding: 0 7px;
  height: 14px;
  line-height: 14px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  background: color-mix(in oklab, var(--brand-blue) 14%, white);
  color: color-mix(in oklab, var(--brand-blue) 70%, var(--ink));
  vertical-align: 1px;
}

.sm-notif-row__actions {
  grid-column: 2 / 3;
  margin-top: 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.15s, max-height 0.2s;
}
.sm-notif-row:hover .sm-notif-row__actions,
.sm-notif-row:focus-within .sm-notif-row__actions {
  opacity: 1;
  max-height: 80px;
}
.sm-notif-row__action {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border: 1px solid var(--border);
  background: white;
  border-radius: 7px;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: background 0.12s, border-color 0.12s, transform 0.1s;
}
.sm-notif-row__action:hover {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
  transform: translateY(-1px);
}

.sm-notif-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--text-muted);
}
.sm-notif-empty__icon {
  font-size: 22px;
  opacity: 0.6;
  margin-bottom: 6px;
}
.sm-notif-empty__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.sm-notif-empty__sub {
  font-size: 12px;
  line-height: 1.5;
  max-width: 36ch;
  margin: 0 auto;
}
.sm-notif-empty__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  color: white;
  background: var(--ink);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}

.sm-notif-footer {
  position: sticky;
  bottom: 0;
  margin: 8px -12px 0;
  background: linear-gradient(180deg, transparent 0%, white 30%);
  padding: 10px 12px 12px;
  text-align: center;
  border-top: 1px solid var(--border);
}
.sm-notif-footer a {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.sm-notif-footer a:hover { text-decoration: underline; }

/* Legacy team-panel selectors kept for backwards-compat (no-op styles) */
.sm-team-panel { display: none !important; }

/* Active-panel indicator on the rail item */
.sm-sidebar__item.is-active-panel {
  background: var(--bg-subtle);
  color: var(--text);
}
.sm-sidebar__item.is-active-panel::after {
  content: '';
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: var(--text);
  border-radius: 0 3px 3px 0;
}
.sm-sidebar.is-expanded .sm-sidebar__item.is-active-panel::after { left: -10px; }

/* Collection picker modal (from Space + Favorites rows) */
/* ─────────────────────────────────────────────────────────────
   Collection picker modal — canonical pop-out shell.
   Backdrop + blur, Fraunces title, Inter eyebrow, 32×32 close.
   ───────────────────────────────────────────────────────────── */
.sm-col-picker-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 9, 11, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  padding: 20px;
}
.sm-col-picker-overlay.is-open { display: flex; }
.sm-col-picker {
  background: var(--surface);
  border-radius: 20px;
  max-width: 460px;
  width: 100%;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: smModalIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.sm-col-picker__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border-soft, var(--border));
}
.sm-col-picker__title-wrap { min-width: 0; flex: 1; }
.sm-col-picker__eyebrow {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sm-col-picker__title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
}
.sm-col-picker__close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s, color 0.12s;
  flex-shrink: 0;
}
.sm-col-picker__close:hover { background: var(--bg-subtle); color: var(--ink); }
.sm-col-picker__body {
  padding: 14px 18px 18px;
  flex: 1;
  overflow-y: auto;
  max-height: 460px;
  background: var(--surface-2);
}
.sm-col-picker__row {
  position: relative;
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 8px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.12s, box-shadow 0.12s, transform 0.12s;
}
.sm-col-picker__row:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.sm-col-picker__row:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.sm-col-picker__row-info { flex: 1; min-width: 0; }
.sm-col-picker__row-eyebrow {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sm-col-picker__row-name {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.18;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sm-col-picker__row-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 5px;
}
.sm-col-picker__row-sqft {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.sm-col-picker__row-sqft em {
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-left: 3px;
}
.sm-col-picker__row-dot { color: var(--text-muted); opacity: 0.7; }
.sm-col-picker__row-actions {
  display: flex; align-items: center; gap: 10px;
  margin-top: 10px;
}
.sm-col-picker__row-hint {
  font-size: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: transparent;
  margin-left: auto;
  transition: color 0.12s;
}
.sm-col-picker__row:hover .sm-col-picker__row-hint { color: var(--text-secondary); }
.sm-col-picker__footer {
  display: flex;
  gap: 10px;
  padding: 14px 24px;
  border-top: 1px solid var(--border-soft, var(--border));
  background: var(--surface-2);
}

/* ─────────────────────────────────────────────────────────────
   Requirement (collection) cards — sidebar push-panel.
   Browse-aligned typography:
     Eyebrow → Inter 10/600/0.12em
     Name    → Fraunces 17/500/-0.015em
     SF      → Fraunces 14.5/500 + Inter caps
   Tier-tinted left accent bar identifies client.
   ───────────────────────────────────────────────────────────── */
.sm-collection-row {
  position: relative;
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.sm-collection-row:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.sm-collection-row__eyebrow {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* Reserve space on the right for the shared-avatar stack */
  padding-right: 60px;
}
.sm-collection-row__name {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.18;
  color: var(--ink);
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sm-collection-row__name--draft {
  color: var(--text-secondary);
  font-style: italic;
}
.sm-collection-row__meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 6px;
}
.sm-collection-row__sqft {
  font-family: var(--font-serif);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.sm-collection-row__sqft em {
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-left: 3px;
}
.sm-collection-row__sqft--empty {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: normal;
  font-style: italic;
}
.sm-collection-row__dot { color: var(--text-muted); opacity: 0.7; }
.sm-collection-row__count { color: var(--text-secondary); }
.sm-collection-row__progress {
  display: flex;
  gap: 3px;
  height: 4px;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 12px;
}
.sm-collection-row__progress > div { height: 100%; min-width: 3px; }
.sm-collection-row__shared {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  pointer-events: none;
}
.sm-collection-row__avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 700;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: -6px;
}
.sm-collection-row__avatar:first-child { margin-left: 0; }

/* Push-panel content helpers (favorites rows, team sections) */
.sm-fav-section + .sm-fav-section { margin-top: 18px; }
.sm-fav-section__title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.sm-fav-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: background 0.12s;
}
.sm-fav-row:hover { background: var(--bg-subtle); }

.sm-fav-row--with-action {
  padding: 0;
  gap: 0;
}
.sm-fav-row--with-action:hover { background: none; }
.sm-fav-row__main {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  padding: 8px;
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: background 0.12s;
  min-width: 0;
}
.sm-fav-row__main:hover { background: var(--bg-subtle); }
.sm-fav-row__actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  margin-right: 4px;
}
.sm-fav-row__add {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 6px;
  border: none;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.12s, color 0.12s;
}
.sm-fav-row__add:hover {
  background: var(--bg-subtle);
  color: var(--text);
}
.sm-fav-row__remove {
  opacity: 0.35;
  transition: opacity 0.15s, color 0.15s, background 0.15s;
}
.sm-fav-row__remove:hover {
  opacity: 1;
  color: #EF4444;
  background: #FEF2F2;
}
.sm-fav-row__thumb {
  width: 56px;
  height: 42px;
  border-radius: var(--radius-xs);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-subtle);
}
.sm-fav-row__info { flex: 1; min-width: 0; }
.sm-fav-row__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sm-fav-row__sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sm-fav-row__meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sm-team-section__title {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 12px;
}
.sm-team-member {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--border);
}
.sm-team-badge {
  font-size: 11px; font-weight: 600; padding: 2px 8px;
  border-radius: 999px; background: var(--bg-subtle); color: var(--text-muted);
}
.sm-team-add-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; padding: 10px; margin-top: 10px;
  border: 1.5px dashed var(--border); border-radius: 8px;
  background: none; color: var(--text-muted); font-size: 13px; font-weight: 600;
  font-family: inherit; cursor: pointer; transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.sm-team-add-btn:hover { border-color: var(--text); color: var(--text); background: var(--bg-subtle); }

.sm-search-result {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px; cursor: pointer;
  transition: background 0.1s;
}
.sm-search-result:hover { background: var(--bg-subtle); }

/* Push panels take over the full viewport on narrow screens */
@media (max-width: 768px) {
  .sm-push-panel {
    left: 0 !important;
    width: 100%;
    border-right: none;
    z-index: 200;
  }
  .sm-push-panel.sm-push-panel--right {
    right: 0 !important;
    border-left: none;
    transform: translateX(100%);
  }
  .sm-push-panel.sm-push-panel--right.is-open { transform: translateX(0); }
  .sm-sidebar-layout.panel-open .sm-sidebar-main,
  .sm-sidebar-layout.sidebar-expanded.panel-open .sm-sidebar-main,
  .sm-sidebar-layout.right-panel-open .sm-sidebar-main {
    margin-left: 0;
    margin-right: 0;
  }
}

/* ── Top bar (sticky inside .sm-sidebar-main) ──
   L-layout: the topbar lives only in the content column to the right of
   the sidebar, NOT spanning over the rail. The Suite Monkey logo sits
   at the upper-left in the sidebar's __top section; the topbar carries
   page-specific chrome on the left and the user menu on the right. */
.sm-topbar {
  /* Shared-element view transition — when navigating between two
     pages that both have a topbar, it stays put as one identity. When
     navigating from Browse (no topbar) to Project (has topbar), the
     topbar gets a clean fade-in of just its own group instead of
     disrupting the root crossfade. */
  view-transition-name: sm-topbar;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 12px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  height: var(--sm-topbar-height);
  z-index: 50;
}
.sm-topbar__left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.sm-topbar__right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sm-topbar__user {
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.15s;
}
.sm-topbar__user:hover { background: var(--bg-subtle); }
.sm-topbar__user svg { opacity: 0.5; }

/* ── Topbar notification bell (Slack/GitHub pattern) ──
   Sits between the role pill and the avatar dropdown. Same badge ID
   (#smNotifBadge) as the legacy rail entry so refresh code works
   unchanged. Click navigates to /notifications.html — no popover,
   matching the Option-3 "no pop-outs for utility surfaces" rule. */
.sm-topbar-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.sm-topbar-bell:hover {
  background: var(--bg-subtle);
  color: var(--text);
}
.sm-topbar-bell svg {
  width: 18px;
  height: 18px;
}
.sm-topbar-bell.is-active {
  background: var(--bg-subtle);
  color: var(--text);
}
.sm-topbar-bell__badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #EF4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 0 0 2px var(--bg, white);
  pointer-events: none;
}

/* ── User dropdown menu (sidebar bottom + topbar) ── */
.sm-user-menu {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  width: 220px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.08);
  z-index: 300;
  overflow: hidden;
  animation: smMenuIn 0.15s ease-out;
}
.sm-user-menu.is-open { display: block; }
@keyframes smMenuIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.sm-user-menu__header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.sm-user-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: background 0.1s;
  cursor: pointer;
}
.sm-user-menu__item:hover { background: var(--bg-subtle); }
.sm-user-menu__item--danger { color: #DC2626; }
.sm-user-menu__item--danger:hover { background: #FEF2F2; }
.sm-user-menu__divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

/* ── Override legacy dash-sidebar when sm-sidebar is active ── */
.sm-sidebar-layout .dash-sidebar { display: none !important; }
.sm-sidebar-layout .dash-wrap { grid-template-columns: 1fr !important; }

/* ── Mobile: hide rail, show bottom tab bar ── */
.sm-mobile-tabs { display: none; }
.sm-mobile-menu { display: none; }

@media (max-width: 768px) {
  .sm-sidebar { display: none !important; }
  .sm-sidebar-main { margin-left: 0 !important; padding-bottom: 72px; }
  .sm-topbar { top: 0; }

  /* Bottom tab bar */
  .sm-mobile-tabs {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 62px;
    background: white;
    border-top: 1px solid var(--border);
    z-index: 250;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)) 4px;
    justify-content: space-around;
    align-items: stretch;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.04);
  }
  .sm-mobile-tabs__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 1;
    min-width: 0;
    border: none;
    background: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
    padding: 4px 2px;
    border-radius: 8px;
    cursor: pointer;
    transition: color 0.12s, background 0.12s;
  }
  .sm-mobile-tabs__item:hover { color: var(--text); background: var(--bg-subtle); }
  .sm-mobile-tabs__item.is-active { color: var(--text); }
  .sm-mobile-tabs__item svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  /* Mobile menu (full-screen overlay) */
  .sm-mobile-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: white;
    z-index: 300;
    transform: translateY(100%);
    transition: transform 0.25s var(--panel-easing);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .sm-mobile-menu.is-open { transform: translateY(0); }
  .sm-mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
  }
  .sm-mobile-menu__body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
    display: flex;
    flex-direction: column;
  }
  .sm-mobile-menu__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    background: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
  }
  .sm-mobile-menu__item:hover { background: var(--bg-subtle); }
  .sm-mobile-menu__icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
  }
  .sm-mobile-menu__icon svg {
    width: 20px; height: 20px;
    stroke: currentColor; stroke-width: 2; fill: none;
    stroke-linecap: round; stroke-linejoin: round;
  }
}

/* ============================================================
   GLOBAL TOPBAR SEARCH (js/search.js)  ·  Pill style
   ============================================================ */

/* Company-name slot, lives just left of the search pill. The brand
   mark already sits in the rail (upper-left), so the topbar shows
   the user's own company. Empty / hidden for logged-out users. */
.sm-topbar__company {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink, #0A0A0A);
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 4px;
  flex-shrink: 0;
}

.sm-search {
  position: relative;
  flex: 1 1 320px;
  max-width: 540px;
  min-width: 240px;
  display: flex;
  align-items: center;
}
.sm-search__icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  color: var(--text-muted, #71717A);
  pointer-events: none;
}
.sm-search__input {
  width: 100%;
  height: 44px;
  padding: 0 56px 0 46px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--bg-subtle, #F4F4F5);
  font: inherit;
  font-size: 14.5px;
  color: var(--ink, #0A0A0A);
  transition: background 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.sm-search__input::placeholder {
  color: var(--text-muted, #71717A);
  font-weight: 400;
}
.sm-search__input:hover {
  background: var(--surface, #FFFFFF);
  border-color: var(--border, #E4E4E7);
}
.sm-search__input:focus {
  outline: none;
  background: var(--surface, #FFFFFF);
  border-color: color-mix(in oklab, var(--ink, #0A0A0A) 25%, var(--border, #E4E4E7));
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--ink, #0A0A0A) 7%, transparent),
              0 1px 3px rgba(9, 9, 11, 0.06);
}
.sm-search__kbd {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border: 1px solid var(--border-soft, #EFEFF1);
  border-radius: 5px;
  color: var(--text-muted, #71717A);
  background: var(--bg-subtle, #F4F4F5);
  pointer-events: none;
}
.sm-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--surface, #FFFFFF);
  border: 1px solid var(--border, #E4E4E7);
  border-radius: 16px;
  box-shadow: 0 18px 40px -20px rgba(9, 9, 11, 0.14), 0 4px 12px -4px rgba(9, 9, 11, 0.06);
  max-height: 60vh;
  overflow-y: auto;
  z-index: 200;
  padding: 8px 0;
}
.sm-search-group__label {
  padding: 12px 16px 6px;
  font-family: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3, #A1A1AA);
}
.sm-search-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 9px 16px;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: var(--ink, #0A0A0A);
}
.sm-search-row:hover,
.sm-search-row.is-active {
  background: var(--bg-subtle, #F4F4F5);
}
.sm-search-row__title { font-size: 14px; font-weight: 500; line-height: 1.3; }
.sm-search-row__sub {
  font-size: 12px;
  color: var(--text-muted, #71717A);
  line-height: 1.3;
}
.sm-search-row--ai {
  border-top: 1px solid var(--border-soft, #EFEFF1);
  margin-top: 6px;
  padding-top: 12px;
  color: var(--ink, #0A0A0A);
}
.sm-search-row--ai .sm-search-row__title {
  font-weight: 500;
  color: var(--brand-blue, #4A90D9);
}
.sm-search-empty {
  padding: 16px;
  color: var(--text-muted, #71717A);
  font-size: 14px;
}

/* Mobile: hide the inline desktop bar; the topbar shows a 🔍 button
   that triggers the full-screen overlay. */
@media (max-width: 768px) {
  .sm-search { display: none; }
}

/* Mobile full-screen overlay */
.sm-search-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg, #fff);
  z-index: 1000;
  display: none;
  flex-direction: column;
}
.sm-search-overlay.is-open { display: flex; }
.sm-search-overlay__bar {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border, #eee);
  background: var(--bg, #fff);
  position: relative;
}
.sm-search-overlay__bar .sm-search__icon {
  position: relative;
  left: 10px;
  top: auto;
  transform: none;
  margin-right: -28px;
}
.sm-search-overlay__input {
  flex: 1;
  height: 40px;
  padding: 0 12px 0 36px;
  border: 1px solid var(--border, #e5e5e5);
  border-radius: 4px;
  font: inherit;
  font-size: 16px; /* prevent iOS zoom-on-focus */
  background: var(--bg, #fff);
  color: var(--text, #1a1a1a);
}
.sm-search-overlay__input:focus { outline: 2px solid var(--ink, #1a1a1a); outline-offset: -1px; }
.sm-search-overlay__cancel {
  background: none;
  border: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink, #1a1a1a);
  padding: 0 8px;
  cursor: pointer;
}
.sm-search-overlay__results {
  flex: 1;
  overflow-y: auto;
}

/* ============================================================
   PROFILE COMPLETENESS BANNER
   Tier-styled card with brand-triad radial wash + ring meter.
   Tiers: low (0-39 amber) · mid (40-84 blue) · high (85+ sage).
   See SuitlyCompleteness in js/auth.js for hide rules.
   ============================================================ */
/* Quiet card with accented elements — LinkedIn / Stripe / GitHub
   pattern. Surface white, neutral border, tier color used only on
   the left accent bar, the ring stroke, and the eyebrow. Reads as
   an invitation, not an alert. */
.sm-completeness {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 14px 20px 0;
  padding: 16px 20px 16px 22px;
  border: 1px solid var(--border, #E4E4E7);
  border-radius: 16px;
  background: var(--surface, #FFFFFF);
  box-shadow: 0 1px 3px rgba(9, 9, 11, 0.06), 0 1px 2px rgba(9, 9, 11, 0.04);
  overflow: hidden;
}
/* Left accent bar — GitHub PR / Stripe activation pattern.
   3px wide, full-height, tier-colored. The single bold use of
   structural color in the card. */
.sm-completeness::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--ink, #0A0A0A);
}
.sm-completeness[data-tier="low"]::before  { background: var(--brand-amber, #E8A838); }
.sm-completeness[data-tier="mid"]::before  { background: var(--brand-blue, #4A90D9); }
.sm-completeness[data-tier="high"]::before { background: var(--sage, #5EB97D); }

/* Wash element retained in markup but neutralized — kept so the JS
   render() doesn't break. The accent bar carries the tier signal now. */
.sm-completeness__wash { display: none; }

/* Ring meter */
.sm-completeness__ring {
  position: relative;
  width: 58px;
  height: 58px;
  flex-shrink: 0;
}
.sm-completeness__ring svg {
  display: block;
  transition: opacity 0.2s;
}
.sm-completeness__ring circle {
  transition: stroke-dashoffset 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.sm-completeness__pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.sm-completeness__pct em {
  font-style: normal;
  font-size: 9px;
  font-weight: 600;
  margin-left: 1px;
  color: var(--text-muted);
}

/* Copy column */
.sm-completeness__copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sm-completeness__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sm-completeness__dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  box-shadow: 0 0 0 3px color-mix(in oklab, currentColor 22%, transparent);
}
.sm-completeness__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.25;
}
.sm-completeness__chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.sm-cm-chip {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border: 1px dashed color-mix(in oklab, var(--ink) 14%, var(--border));
  border-radius: 999px;
  background: color-mix(in oklab, var(--surface) 80%, transparent);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.sm-cm-chip:hover {
  background: var(--surface);
  border-color: var(--ink);
  border-style: solid;
}
.sm-cm-chip--more {
  border-style: solid;
  border-color: var(--border);
  color: var(--text-muted);
  cursor: default;
}
.sm-cm-chip--more:hover { background: transparent; border-color: var(--border); color: var(--text-muted); }

/* Right cluster — primary CTA + dismiss */
.sm-completeness__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.sm-completeness__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: var(--ink);
  color: white;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), background 0.15s;
}
.sm-completeness__cta:hover {
  background: color-mix(in oklab, var(--ink) 88%, white);
  transform: translateY(-1px);
}
.sm-completeness__close {
  width: 30px; height: 30px;
  border: 0;
  background: none;
  color: var(--text-muted);
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.12s, color 0.12s;
}
.sm-completeness__close:hover {
  background: color-mix(in oklab, var(--ink) 6%, transparent);
  color: var(--ink);
}

/* Mobile: stack the actions below copy. */
@media (max-width: 768px) {
  .sm-completeness {
    flex-wrap: wrap;
    margin: 10px 12px 0;
    padding: 14px 16px;
    gap: 14px;
  }
  .sm-completeness__copy { flex: 1 1 calc(100% - 76px); }
  .sm-completeness__actions {
    flex: 1 1 100%;
    justify-content: flex-end;
  }
}

/* Active filter chips inside the .sm-context-row (browse). Mounted into
   #aiChipsMain by js/browse-chrome.js. Pill style, hit-target close. */
#aiChipsMain {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}
#aiChipsMain:empty { display: none; }
.sm-active-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 6px 0 12px;
  border: 1px solid var(--border, #E4E4E7);
  border-radius: 999px;
  background: var(--surface, #FFFFFF);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink, #0A0A0A);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s, border-color 0.12s;
}
.sm-active-chip:hover {
  background: var(--bg-subtle, #F4F4F5);
  border-color: color-mix(in oklab, var(--border, #E4E4E7) 40%, var(--ink, #0A0A0A));
}
.sm-active-chip__x {
  width: 18px; height: 18px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-muted, #71717A);
  margin-left: 2px;
  transition: background 0.12s, color 0.12s;
}
.sm-active-chip:hover .sm-active-chip__x {
  background: var(--bg-subtle, #F4F4F5);
  color: var(--ink, #0A0A0A);
}
.sm-chip--clear {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 8px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  color: var(--text-muted, #71717A);
  cursor: pointer;
  border-radius: 999px;
  transition: color 0.12s, background 0.12s;
}
.sm-chip--clear:hover {
  color: var(--ink, #0A0A0A);
  background: var(--bg-subtle, #F4F4F5);
}
@media (max-width: 768px) {
  .sm-active-chip, .sm-chip--clear { display: none; }
}

/* Mobile-only 🔍 button injected by search.js into .sm-topbar__right.
   Triggers the full-screen overlay. Hidden on desktop. */
.sm-topbar__mobile-search {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  background: none;
  color: var(--text, #1a1a1a);
  cursor: pointer;
  border-radius: 8px;
}
.sm-topbar__mobile-search:hover { background: var(--bg-subtle, #f5f5f7); }
@media (max-width: 768px) {
  .sm-topbar__mobile-search { display: inline-flex; }
}

/* Filters push-panel as a bottom-sheet on mobile.
   The panel registration (smPanel-filters) and the existing slide-from-left
   animation are kept on desktop. On phones it docks to the bottom with
   rounded top corners and slides up instead. */
@media (max-width: 768px) {
  #smPanel-filters {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 85vh !important;
    top: auto !important;
    bottom: 0 !important;
    border-right: 0;
    border-top: 1px solid var(--border, #e5e5e5);
    border-radius: 16px 16px 0 0;
    transform: translateY(100%);
    transition: transform var(--panel-duration, 220ms) var(--panel-easing, cubic-bezier(.2,.7,.2,1)),
                opacity var(--panel-fade, 180ms);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.14);
  }
  #smPanel-filters.is-open {
    transform: translateY(0);
  }
}
