/* Casa — Portugal Purchase Platform
   Design system: Pink Sunset palette, calm warm theme, Linear/Stripe-grade density. */

:root {
  /* ── Pink Sunset Design Tokens ── */
  /* Surfaces — cream / warm white */
  --bg: #FBF7F2;
  --bg-1: #FFFFFF;
  --bg-2: #F5EFE8;
  --bg-3: #EFE6DD;
  --surface: #FFFFFF;
  --surface-2: #FBF7F2;
  --hover: #FFF0EE;
  --border: #EFE6DD;
  --border-strong: #D9CBBF;

  /* Text — aubergine scale */
  --text: #2A1B2D;
  --text-2: #5C4A5F;
  --muted: #8B7B8E;
  --subtle: #B8A8BB;

  /* Rose accent — primary actions */
  --accent: #F26B5A;
  --accent-2: #C9402E;
  --accent-soft: rgba(242,107,90,0.10);
  --accent-border: rgba(242,107,90,0.32);

  /* Peach — hover / secondary */
  --peach: #FF9D4D;
  --peach-soft: rgba(255,157,77,0.12);

  /* Gold — badges / highlights only */
  --gold: #E8A95C;
  --gold-soft: rgba(232,169,92,0.15);

  /* Semantic */
  --success: #4F8A5C;
  --success-soft: rgba(79,138,92,0.12);
  --warning: #D49642;
  --warning-soft: rgba(212,150,66,0.12);
  --danger: #B33A2D;
  --danger-soft: rgba(179,58,45,0.10);
  --info: #2B6CB0;
  --info-soft: rgba(43,108,176,0.10);

  /* Sunset gradient — MARKETING HERO ONLY */
  --gradient-sunset: linear-gradient(135deg, #FFD79A 0%, #FF9D4D 35%, #F26B5A 70%, #C9402E 100%);

  /* Sizing */
  --sidebar-w: 240px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(42,27,45,0.06);
  --shadow: 0 4px 14px rgba(42,27,45,0.08);
  --shadow-lg: 0 12px 40px rgba(42,27,45,0.14);

  color-scheme: light;

  /* Type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-serif: 'Fraunces', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14.5px; }
html, body { background: var(--bg); color: var(--text); }
body {
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01';
  letter-spacing: -0.005em;
}
h1, h2, h3 { font-family: var(--font-serif); }
::selection { background: var(--accent-soft); color: var(--text); }

a { color: var(--text); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-2); }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
code { font-family: var(--font-mono); font-size: 0.86em; background: var(--bg-2); padding: 1px 6px; border-radius: 4px; color: var(--text-2); }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; padding: 8px 14px; background: var(--accent); color: white; border-radius: var(--radius-sm); z-index: 1000; }

/* ============ SIDEBAR ============ */
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--bg-1);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  padding: 18px 12px 12px;
  z-index: 50;
}
.sidebar-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 8px 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.brand-mark {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, #F26B5A, #C9402E);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: white;
  box-shadow: 0 2px 12px rgba(242,107,90,0.35);
}
.brand-mark svg { width: 18px; height: 18px; }
.brand-meta { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 1.1rem; letter-spacing: -0.015em; color: var(--accent-2); }
.brand-sub { font-size: 0.72rem; color: var(--muted); }

.sidebar-nav { flex: 1; display: flex; flex-direction: column; gap: 1px; overflow-y: auto; padding-right: 2px; }
.nav-group-label {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--subtle); font-weight: 600;
  padding: 14px 10px 6px;
}
.nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 0.88rem;
  font-weight: 500;
  position: relative;
  transition: background 0.12s, color 0.12s;
}
.nav-link:hover { background: var(--bg-2); color: var(--text); }
.nav-link.active {
  background: transparent;
  color: var(--accent-2);
  font-weight: 600;
}
.nav-link.active .nav-icon { color: var(--accent-2); opacity: 1; }
.nav-link.active::after {
  content: ''; position: absolute; left: 10px; right: 10px; bottom: 2px;
  height: 2px; background: var(--accent); border-radius: 2px;
}
.nav-icon { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.7; transition: opacity 0.12s, color 0.12s; }
.nav-link:hover .nav-icon { opacity: 1; }

.sidebar-foot { padding-top: 12px; border-top: 1px solid var(--border); }
.user-card {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-2);
  border: 1px solid var(--border);
}
.user-avatar {
  width: 30px; height: 30px;
  background: linear-gradient(135deg, #F26B5A, #C9402E);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700; color: white;
  letter-spacing: 0.02em;
}
.user-meta { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.user-name { font-size: 0.84rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 0.7rem; color: var(--muted); }

.sidebar-toggle {
  display: none;
  position: fixed; top: 12px; left: 12px;
  z-index: 60;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 36px; height: 36px;
  display: none; align-items: center; justify-content: center;
}
.sidebar-toggle svg { width: 18px; height: 18px; }

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform 0.2s; }
  body.nav-open .sidebar { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .sidebar-toggle { display: flex; }
  .main { margin-left: 0 !important; }
  .topbar { padding: 0 16px 0 56px; }
  .app-content { padding: 16px 16px 60px; }
}

/* ============ MAIN — fixed app shell ============ */
.main {
  margin-left: var(--sidebar-w);
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  min-height: unset;
}

/* Scrollable content area beneath the topbar */
.app-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 24px 32px 60px;
}
@media (max-width: 1100px) { .app-content { padding: 20px 20px 60px; } }

/* TOPBAR — fixed to top of content area */
.topbar {
  height: 64px;
  flex-shrink: 0;
  z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 0 36px;
  background: rgba(251,247,242,0.92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.breadcrumbs { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 0.86rem; flex: 1; min-width: 0; letter-spacing: 0.005em; }
.breadcrumbs svg { width: 14px; height: 14px; opacity: 0.5; }
.breadcrumb-current { color: var(--text); font-weight: 600; font-family: 'Fraunces', Georgia, serif; font-size: 1rem; letter-spacing: -0.005em; }

.topbar-actions { display: flex; align-items: center; gap: 12px; }
.stage-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 11px; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--border-strong);
  font-size: 0.78rem; font-weight: 500; color: var(--text-2);
  max-width: 320px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 1200px) { .stage-pill { display: none; } }
.stage-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(242,107,90,0.18);
  animation: dotPulse 2.4s ease-in-out infinite;
}
@keyframes dotPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

.lang-switch {
  display: inline-flex; padding: 2px;
  background: var(--bg-2); border: 1px solid var(--border-strong);
  border-radius: 7px;
}
.lang-btn {
  background: transparent; border: none; color: var(--muted);
  padding: 4px 10px; border-radius: 5px;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.02em;
  transition: background 0.12s, color 0.12s;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active { background: var(--bg-3); color: var(--text); box-shadow: var(--shadow-sm); }

/* SECTION — one at a time via hash navigation */
.section {
  display: none;
  scroll-margin-top: 70px;
}
.section.active { display: block; }

/* Journey section: fills the content area height, no outer scroll */
#journey { padding: 0; }
#journey.active {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
#journey .section-header {
  flex-shrink: 0;
  padding: 16px 0 8px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
}
#journey-root {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.section-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 24px; margin-bottom: 22px;
}
.section-title {
  font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em;
  color: var(--text); margin-bottom: 4px;
}
h1.section-title { font-size: 1.75rem; }
.section-sub { color: var(--text-2); font-size: 0.92rem; max-width: 60ch; }

/* CARD */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.15s;
}
.card:hover { border-color: var(--border-strong); }
.card-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.card-title { font-size: 0.98rem; font-weight: 600; letter-spacing: -0.01em; }
.card-sub { font-size: 0.82rem; color: var(--muted); margin-top: 2px; }
.card-head-meta { font-size: 0.78rem; color: var(--muted); }

/* LAYOUT helpers */
.layout-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-bottom: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 900px) {
  .layout-2-1, .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) { .grid-3 { grid-template-columns: 1fr; } }

/* ============ KPIs ============ */
.kpi-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-bottom: 16px;
}
@media (max-width: 1000px) { .kpi-grid { grid-template-columns: 1fr 1fr; } }
.kpi {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.kpi:hover { border-color: var(--accent-border); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(42,27,45,0.05); }
.kpi-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.kpi-icon-inline {
  width: 26px; height: 26px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent-2);
  flex-shrink: 0;
}
.kpi-icon-inline svg { width: 13px; height: 13px; }
.kpi-label { font-size: 0.74rem; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.09em; font-weight: 600; }
.kpi-value { font-family: 'Fraunces', Georgia, serif; font-size: 2rem; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; color: var(--text); }
.kpi-meta { font-size: 0.82rem; color: var(--text-2); margin-top: 6px; line-height: 1.5; }
.kpi-bar { height: 4px; background: var(--bg-2); border-radius: 2px; margin-top: 12px; overflow: hidden; }
.kpi-bar-fill { height: 100%; background: var(--success); border-radius: 2px; transition: width 0.4s ease; }
.kpi-bar-fill.warning { background: var(--warning); }
.kpi-bar-fill.danger { background: var(--danger); }
.kpi-trend { display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px; border-radius: 4px; font-size: 0.72rem; font-weight: 600; margin-top: 6px; }
.kpi-trend.up { background: var(--success-soft); color: var(--success); }
.kpi-trend.down { background: var(--danger-soft); color: var(--danger); }

/* ============ HERO (next action) ============ */
.hero-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.35)),
    linear-gradient(135deg, rgba(255,215,154,0.30), rgba(242,107,90,0.10) 60%, rgba(201,64,46,0.08) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 26px;
  padding: 28px;
  align-items: stretch;
}
}
@media (max-width: 900px) { .hero-card { grid-template-columns: 1fr; } }
.hero-card::after {
  content: ''; position: absolute; right: -100px; bottom: -100px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255,215,154,0.35), transparent 65%);
  pointer-events: none;
}
.hero-left { position: relative; z-index: 1; display: flex; flex-direction: column; }
.hero-right {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 10px;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent-2); font-weight: 600; margin-bottom: 14px;
}
.hero-eyebrow svg { width: 13px; height: 13px; }
.hero-title { font-family: 'Fraunces', Georgia, serif; font-size: 1.75rem; font-weight: 500; letter-spacing: -0.018em; margin-bottom: 12px; line-height: 1.2; color: var(--text); }
.hero-meta { color: var(--text-2); font-size: 0.95rem; line-height: 1.65; }
.hero-meta strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 18px; flex-wrap: wrap; }
.hero-side-title {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); font-weight: 600;
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 4px;
}
.hero-side-title svg { width: 11px; height: 11px; }
.hero-side-list { display: flex; flex-direction: column; gap: 6px; }
.hero-side-row {
  display: grid; grid-template-columns: 92px 1fr;
  align-items: baseline; gap: 10px;
  font-size: 0.84rem;
  padding: 4px 0;
}
.hero-side-row .k { color: var(--muted); white-space: nowrap; }
.hero-side-row .v { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Deadline card */
.deadline-list { display: flex; flex-direction: column; gap: 12px; }
.deadline-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  background: var(--bg-2);
  border-radius: 8px;
  border: 1px solid transparent;
}
.deadline-row > div:first-child { min-width: 0; }
.deadline-row.danger { border-color: rgba(200,30,30,0.25); background: var(--danger-soft); }
.deadline-row.warning { border-color: rgba(245,158,11,0.25); background: var(--warning-soft); }
.deadline-row.ok { border-color: var(--border); }
.deadline-row .label { font-size: 0.85rem; font-weight: 500; }
.deadline-row .date { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-2); display: block; margin-top: 2px; }
.deadline-row .countdown { font-size: 1.05rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.deadline-row.danger .countdown { color: var(--danger); }
.deadline-row.warning .countdown { color: var(--warning); }

/* ============ TABLES ============ */
.table-wrap { margin: 0 -20px -20px; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.data-table thead th {
  text-align: left;
  padding: 9px 20px;
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--muted); font-weight: 600;
}
.data-table tbody td {
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  font-size: 0.86rem;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: var(--hover); }

.priority-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.priority-badge.high { background: var(--danger-soft); color: var(--danger); }
.priority-badge.medium { background: var(--warning-soft); color: var(--warning); }
.priority-badge.low { background: var(--bg-2); color: var(--muted); }

.status-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.74rem; font-weight: 500;
  border: 1px solid;
  white-space: nowrap;
}
.status-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; flex-shrink: 0;
}
.status-badge svg { width: 11px; height: 11px; display: none; }
.status-badge.engaged, .status-badge.have, .status-badge.done {
  background: var(--success-soft); border-color: rgba(12,138,95,0.25); color: var(--success);
}
.status-badge.requested, .status-badge.pending, .status-badge.active {
  background: var(--warning-soft); border-color: rgba(180,83,9,0.25); color: var(--warning);
}
.status-badge.missing, .status-badge.blocked {
  background: var(--danger-soft); border-color: rgba(200,30,30,0.25); color: var(--danger);
}
.status-badge.parked, .status-badge.neutral {
  background: var(--bg-2); border-color: var(--border-strong); color: var(--text-2);
}
.status-badge.info {
  background: var(--info-soft); border-color: rgba(3,105,161,0.25); color: var(--info);
}

/* ============ ACTIVITY FEED ============ */
.activity-feed { list-style: none; position: relative; padding-left: 18px; }
.activity-feed::before {
  content: ''; position: absolute;
  left: 5px; top: 6px; bottom: 6px;
  width: 1px; background: var(--border);
}
.activity-feed li { position: relative; padding: 8px 0 8px 14px; font-size: 0.86rem; }
.activity-feed li::before {
  content: ''; position: absolute;
  left: -16px; top: 14px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg-2); border: 2px solid var(--border-strong);
}
.activity-feed li:first-child::before { background: var(--accent); border-color: var(--accent); }
.activity-feed .date { font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted); margin-right: 8px; }

/* ============ STEPPER ============ */
.stepper {
  display: flex; align-items: center; gap: 0;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow-x: auto;
}
.step {
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
  position: relative;
  padding-right: 18px;
}
.step:not(:last-child)::after {
  content: ''; flex-shrink: 0;
  width: 28px; height: 1px;
  background: var(--border-strong);
  margin-left: 4px;
}
.step-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--bg-2); border: 1px solid var(--border-strong);
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 600; font-variant-numeric: tabular-nums;
}
.step.done .step-num { background: var(--success); border-color: var(--success); color: white; }
.step.active .step-num {
  background: var(--accent); border-color: var(--accent); color: white;
  box-shadow: 0 0 0 4px rgba(242,107,90,0.18);
}
.step-label { font-size: 0.82rem; font-weight: 500; color: var(--muted); white-space: nowrap; }
.step.done .step-label { color: var(--text-2); }
.step.active .step-label { color: var(--text); font-weight: 600; }

/* PHASES */
.phases { display: flex; flex-direction: column; gap: 8px; }
.phase {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s;
}
.phase:hover { border-color: var(--border-strong); }
.phase.active { border-color: var(--accent-border); }
.phase-head {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  cursor: pointer;
  user-select: none;
}
.phase-head:hover { background: var(--hover); }
.phase-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--bg-2); border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  flex-shrink: 0;
}
.phase-icon svg { width: 14px; height: 14px; }
.phase.done .phase-icon { background: var(--success-soft); border-color: rgba(12,138,95,0.3); color: var(--success); }
.phase.active .phase-icon { background: var(--accent-soft); border-color: var(--accent-border); color: var(--accent-2); }

.phase-title { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.phase-name { font-size: 0.92rem; font-weight: 600; }
.phase-desc { font-size: 0.78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phase-meta {
  font-size: 0.74rem; color: var(--muted);
  font-family: var(--font-mono);
  flex-shrink: 0; margin-right: 8px;
}
.phase-chevron {
  color: var(--muted);
  transition: transform 0.15s;
  flex-shrink: 0;
}
.phase-chevron svg { width: 14px; height: 14px; }
.phase.open .phase-chevron { transform: rotate(180deg); }
.phase-body {
  display: none;
  padding: 4px 18px 20px 60px;
  border-top: 1px solid var(--border);
  background: var(--bg-1);
}
.phase.open .phase-body { display: block; }
.phase-body p { margin: 14px 0 8px; color: var(--text-2); font-size: 0.9rem; }
.phase-body h4 {
  margin-top: 16px; margin-bottom: 6px;
  font-size: 0.72rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.07em; font-weight: 600;
}
.phase-body ul { padding-left: 18px; }
.phase-body li { margin: 4px 0; font-size: 0.86rem; color: var(--text-2); }
.phase-body .who { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.who .pill {
  background: var(--bg-2); border: 1px solid var(--border-strong);
  border-radius: 4px; padding: 2px 8px;
  font-size: 0.74rem; color: var(--text-2);
}

/* ============ FINANCE ============ */
.calc-controls {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
@media (max-width: 1100px) { .calc-controls { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .calc-controls { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 5px; }
.field-label { font-size: 0.74rem; color: var(--muted); font-weight: 500; }
.input-wrap {
  display: flex; align-items: center;
  background: var(--bg-2); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.12s, box-shadow 0.12s;
}
.input-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.input-prefix, .input-suffix {
  padding: 0 8px; font-size: 0.82rem; color: var(--muted);
}
.field input, .field select {
  flex: 1; min-width: 0;
  background: transparent; border: none; outline: none;
  padding: 8px 10px;
  font-size: 0.9rem; color: var(--text);
  font-variant-numeric: tabular-nums;
}
.field select {
  background: var(--bg-2); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); padding: 8px 10px;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7080' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat; background-position: right 8px center; background-size: 14px;
  padding-right: 28px;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); }

.calc-table td { font-variant-numeric: tabular-nums; }
.calc-table td:last-child { text-align: right; font-weight: 500; }
.calc-table tr.total td {
  border-top: 1px solid var(--border-strong);
  padding-top: 14px; font-weight: 700; color: var(--text);
  background: var(--bg-1);
}

.stats-card { display: flex; flex-direction: column; gap: 10px; }
.stat {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
}
.stat-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; }
.stat-value {
  font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em;
  margin-top: 4px; font-variant-numeric: tabular-nums;
}
.stat-value.success { color: var(--success); }
.stat-value.warning { color: var(--warning); }
.stat-value.danger { color: var(--danger); }
.stat-meta { font-size: 0.76rem; color: var(--muted); margin-top: 2px; }

/* Cash detail */
.cash-block h4 {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--muted); font-weight: 600; margin-bottom: 8px;
}
.cash-block { background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; padding: 14px; }
.cash-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.86rem; border-bottom: 1px dashed var(--border); }
.cash-row:last-child { border-bottom: none; padding-top: 8px; font-weight: 600; color: var(--text); }
.cash-row .v { font-variant-numeric: tabular-nums; color: var(--text-2); }
.cash-row:last-child .v { color: var(--text); }

/* ============ PEOPLE ============ */
.team-table td:nth-child(1) { color: var(--muted); width: 160px; }
.team-table td:nth-child(2) { font-weight: 500; }
.team-table .contact-line { color: var(--muted); font-size: 0.8rem; }
.team-table .contact-line a { color: var(--text-2); }

.role-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.role-card h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.role-card .what { font-size: 0.85rem; color: var(--text-2); margin-bottom: 12px; }
.role-detail-row {
  display: flex; padding: 6px 0;
  font-size: 0.82rem;
  border-bottom: 1px dashed var(--border);
}
.role-detail-row:last-of-type { border-bottom: none; }
.role-detail-row .k { color: var(--muted); width: 100px; flex-shrink: 0; }
.role-detail-row .v { color: var(--text-2); }
.role-flags {
  margin-top: 12px;
  border-radius: 8px;
  padding: 12px;
  background: var(--danger-soft);
  border: 1px solid rgba(200,30,30,0.18);
}
.role-flags h4 {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--danger); font-weight: 600; margin-bottom: 6px;
}
.role-flags h4 svg { width: 12px; height: 12px; }
.role-flags ul { padding-left: 18px; }
.role-flags li { font-size: 0.82rem; color: var(--text-2); margin: 3px 0; }

/* ============ DOCS ============ */
.doc-counts { display: flex; gap: 8px; }
.doc-counts .chip { font-size: 0.78rem; padding: 4px 10px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 999px; color: var(--text-2); }

/* Docs summary banner */
.docs-summary {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,0.04));
}
.docs-summary-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 12px;
}
.docs-summary-stat { display: flex; flex-direction: column; gap: 2px; }
.docs-summary-label {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted); font-weight: 600;
}
.docs-summary-value {
  font-family: var(--font-display, 'Fraunces', serif);
  font-size: 1.6rem; font-weight: 600; color: var(--text);
  line-height: 1.1;
}
.docs-summary-total { color: var(--muted); font-weight: 500; }
.docs-summary-meta { font-size: 0.8rem; color: var(--text-2); }
.docs-summary-head--empty { align-items: flex-start; }
.docs-summary-empty-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink, #2A1B2D);
}
.docs-summary-chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.doc-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem; padding: 5px 10px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 999px; color: var(--text-2); font-weight: 500;
}
.doc-chip .chip-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--muted);
}
.doc-chip.have .chip-dot { background: var(--success); }
.doc-chip.requested .chip-dot { background: var(--warning); }
.doc-chip.missing .chip-dot { background: var(--border-strong); }
.doc-chip.have { color: var(--success); border-color: rgba(12,138,95,0.25); background: var(--success-soft); }
.doc-chip.requested { color: var(--warning); border-color: rgba(180,83,9,0.25); background: var(--warning-soft); }
.docs-progress {
  height: 8px; background: var(--bg-2); border-radius: 999px;
  overflow: hidden; border: 1px solid var(--border);
}
.docs-progress-fill {
  height: 100%; background: linear-gradient(90deg, var(--success) 0%, var(--accent) 100%);
  border-radius: 999px; transition: width 0.3s ease;
}
.docs-progress-pct {
  margin-top: 6px; font-size: 0.78rem; color: var(--muted); text-align: right;
  font-family: var(--font-mono);
}

/* Per-card head with mini progress */
.doc-card .doc-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.doc-card-title { display: flex; align-items: center; gap: 12px; }
.doc-card-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--bg-2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
}
.doc-card-icon svg { width: 18px; height: 18px; }
.doc-card-meta { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.doc-card-progress { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.doc-card-progress-label {
  font-size: 0.78rem; color: var(--text-2); font-weight: 600;
  font-family: var(--font-mono); white-space: nowrap;
}
.doc-card-progress-bar {
  flex: 1; height: 5px; background: var(--bg-2); border-radius: 999px;
  overflow: hidden; border: 1px solid var(--border); min-width: 60px;
}
.doc-card-progress-fill {
  height: 100%; background: var(--success); border-radius: 999px;
  transition: width 0.3s ease;
}

/* Status groups inside each card */
.doc-groups { display: flex; flex-direction: column; gap: 14px; }
.doc-group { display: flex; flex-direction: column; gap: 6px; }
.doc-group-head {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0 4px;
  border-bottom: 1px solid var(--border);
}
.doc-group-title {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 700; color: var(--text-2);
}
.doc-group--have .doc-group-title { color: var(--success); }
.doc-group--requested .doc-group-title { color: var(--warning); }
.doc-group--missing .doc-group-title { color: var(--muted); }
.doc-group-count {
  font-size: 0.7rem; padding: 1px 7px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 999px; color: var(--text-2);
  font-family: var(--font-mono);
}
.doc-group-empty {
  font-size: 0.8rem; color: var(--muted); font-style: italic;
  padding: 8px 0 4px;
}
.doc-empty {
  text-align: center; padding: 24px 12px;
  color: var(--muted); font-size: 0.85rem;
}
.doc-empty .empty-icon {
  display: block; font-size: 1.6rem; margin-bottom: 6px; opacity: 0.5;
}

.doc-list { list-style: none; padding: 0; margin: 0; }
.doc-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.88rem;
}
.doc-list li:last-child { border-bottom: none; }
.doc-list li:hover .doc-label { color: var(--text); }
.doc-icon {
  width: 22px; height: 22px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border: 1px solid;
}
.doc-icon svg { width: 12px; height: 12px; }
.doc-icon.have { background: var(--success-soft); border-color: rgba(12,138,95,0.3); color: var(--success); }
.doc-icon.requested { background: var(--warning-soft); border-color: rgba(180,83,9,0.3); color: var(--warning); }
.doc-icon.missing { background: var(--bg-2); border-color: var(--border-strong); color: var(--muted); }
.doc-label { flex: 1; color: var(--text-2); }
.doc-tag { font-size: 0.74rem; color: var(--muted); font-family: var(--font-mono); }

/* Templates header controls (lang switch moved into Templates section) */
.templates-controls { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.templates-controls .lang-switch { flex-shrink: 0; }

/* Auth modal switch link */
.auth-switch {
  margin-top: 12px; font-size: 0.85rem; color: var(--muted); text-align: center;
}
.auth-switch a { color: var(--accent); text-decoration: none; font-weight: 500; }
.auth-switch a:hover { text-decoration: underline; }

/* ============ TEMPLATES ============ */
.search-wrap {
  position: relative;
  display: flex; align-items: center;
}
.search-wrap input {
  background: var(--bg-2); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 8px 12px 8px 34px;
  font-size: 0.86rem; color: var(--text);
  width: 240px;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.search-wrap input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.search-icon {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; color: var(--muted); pointer-events: none;
}

.templates { display: flex; flex-direction: column; gap: 8px; }
.tmpl {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s;
}
.tmpl:hover { border-color: var(--border-strong); }
.tmpl-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
}
.tmpl-head:hover { background: var(--hover); }
.tmpl-lang {
  background: var(--bg-2); border: 1px solid var(--border-strong);
  border-radius: 4px; padding: 2px 7px;
  font-size: 0.7rem; font-weight: 600; color: var(--text-2);
  text-transform: uppercase; letter-spacing: 0.04em;
  font-family: var(--font-mono);
}
.tmpl-title { flex: 1; font-size: 0.9rem; font-weight: 500; }
.tmpl-meta { font-size: 0.78rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.tmpl-meta svg { width: 12px; height: 12px; }
.tmpl-channel { font-size: 0.7rem; color: var(--muted); padding: 2px 6px; background: var(--bg-2); border-radius: 4px; }
.tmpl-body { display: none; padding: 16px 18px; border-top: 1px solid var(--border); background: var(--bg-1); }
.tmpl.open .tmpl-body { display: block; }
.tmpl-when { font-size: 0.82rem; color: var(--muted); margin-bottom: 10px; }
.tmpl-subject {
  font-weight: 600; font-size: 0.88rem; margin-bottom: 8px;
  padding: 8px 12px; background: var(--bg-2); border-radius: 6px;
  border-left: 2px solid var(--accent);
}
.tmpl-text {
  font-family: var(--font-mono); font-size: 0.82rem;
  background: var(--bg); padding: 14px; border-radius: 6px;
  white-space: pre-wrap; line-height: 1.65;
  max-height: 380px; overflow-y: auto;
  border: 1px solid var(--border);
}
.tmpl-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: white;
  border: 1px solid var(--accent);
  padding: 6px 12px; border-radius: var(--radius-sm);
  font-size: 0.82rem; font-weight: 500;
  transition: background 0.12s, border-color 0.12s;
}
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn svg { width: 13px; height: 13px; }
.btn.ghost { background: transparent; color: var(--text-2); border-color: var(--border-strong); }
.btn.ghost:hover { background: var(--hover); color: var(--text); border-color: var(--accent-border); }

/* ============ DECISIONS ============ */
.decision {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 14px;
}
.decision h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; letter-spacing: -0.01em; }
.decision .ctx { color: var(--text-2); font-size: 0.88rem; margin-bottom: 16px; }
.decision-options {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.opt {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
}
.opt h4 { font-size: 0.92rem; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.opt ul { list-style: none; }
.opt .pros li, .opt .cons li {
  display: flex; gap: 6px; align-items: flex-start;
  font-size: 0.82rem; padding: 3px 0;
  color: var(--text-2);
}
.opt .pros li::before { content: '+'; color: var(--success); font-weight: 700; flex-shrink: 0; width: 12px; }
.opt .cons li::before { content: '−'; color: var(--danger); font-weight: 700; flex-shrink: 0; width: 12px; }
.decision .reco {
  margin-top: 16px; padding: 12px 14px;
  background: var(--accent-soft); border: 1px solid var(--accent-border);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  font-size: 0.86rem; color: var(--text);
  display: flex; gap: 10px; align-items: flex-start;
}
.decision .reco-icon { flex-shrink: 0; color: var(--accent-2); }
.decision .reco-icon svg { width: 14px; height: 14px; }

/* ============ GLOSSARY ============ */
.gloss {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
}
.gloss .term { font-weight: 600; font-size: 0.88rem; color: var(--text); font-family: var(--font-mono); letter-spacing: -0.01em; }
.gloss .def { font-size: 0.82rem; color: var(--text-2); margin-top: 4px; line-height: 1.55; }

/* ============ REFERENCES ============ */
.ref-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
  transition: border-color 0.15s;
}
.ref-card:hover { border-color: var(--accent-border); background: var(--hover); }
.ref-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 6px;
  background: var(--bg-2); border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-2);
}
.ref-icon svg { width: 14px; height: 14px; }
.ref-meta { flex: 1; min-width: 0; }
.ref-title { font-size: 0.88rem; font-weight: 500; color: var(--text); }
.ref-url { font-size: 0.74rem; color: var(--muted); font-family: var(--font-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.ref-arrow { color: var(--muted); }
.ref-arrow svg { width: 14px; height: 14px; }

/* ============ FOOTER ============ */
.footer {
  margin-top: 60px;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  color: var(--muted); font-size: 0.8rem;
}
.footer-brand { font-weight: 700; color: var(--text-2); }
.footer-sep { color: var(--subtle); margin: 0 6px; }

/* ============ TOAST ============ */
.toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.86rem; font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.toast svg { width: 14px; height: 14px; color: var(--success); }

/* Scrollbar */
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 4px; border: 2px solid var(--bg); }
*::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

/* ============ ACCOUNT / AUTH (added) ============ */
.account-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-2); border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 4px 10px 4px 4px;
  font-size: 0.82rem; font-weight: 500; color: var(--text);
  cursor: pointer; transition: background 0.12s, border-color 0.12s;
}
.account-btn:hover { background: var(--hover); border-color: var(--accent-border); }
.account-btn.signed-out { padding: 6px 14px; gap: 6px; }
.account-btn .ab-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, #F26B5A, #C9402E);
  color: white; font-size: 0.7rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: 0.02em;
}
.account-btn .ab-name { max-width: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-btn svg { width: 13px; height: 13px; color: var(--muted); }
.account-wrap { position: relative; }
.account-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 200px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 6px; z-index: 80;
  display: none;
}
.account-wrap.open .account-menu { display: block; }
.account-menu-head {
  padding: 10px 12px 8px; border-bottom: 1px solid var(--border); margin-bottom: 4px;
}
.account-menu-head .name { font-size: 0.86rem; font-weight: 600; }
.account-menu-head .email { font-size: 0.74rem; color: var(--muted); }
.account-menu-head .plan-tag {
  display: inline-block; margin-top: 6px;
  padding: 2px 8px; border-radius: 999px;
  font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  background: var(--bg-2); color: var(--muted);
  border: 1px solid var(--border-strong);
}
.account-menu-head .plan-tag.pro { background: var(--accent-soft); color: var(--accent-2); border-color: var(--accent-border); }
.account-menu-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; background: transparent; border: none;
  padding: 8px 12px; border-radius: var(--radius-sm);
  font-size: 0.86rem; color: var(--text-2); text-align: left;
  cursor: pointer;
}
.account-menu-item:hover { background: var(--hover); color: var(--text); }
.account-menu-item svg { width: 14px; height: 14px; opacity: 0.7; }
.account-menu-item.danger { color: var(--danger); }
.account-menu-item.danger:hover { background: var(--danger-soft); }

/* Auth modal */
.auth-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(42,27,45,0.45);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
  backdrop-filter: blur(2px);
}
.auth-overlay.open { display: flex; }
.auth-modal {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  width: 100%; max-width: 400px;
  padding: 26px;
}
.auth-modal h2 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 4px; }
.auth-modal p.auth-sub { font-size: 0.84rem; color: var(--muted); margin-bottom: 18px; }
.auth-tabs {
  display: flex; gap: 2px; padding: 2px;
  background: var(--bg-2); border: 1px solid var(--border-strong);
  border-radius: 7px; margin-bottom: 18px;
}
.auth-tab {
  flex: 1; background: transparent; border: none;
  padding: 6px 10px; border-radius: 5px;
  font-size: 0.82rem; font-weight: 600; color: var(--muted);
}
.auth-tab.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.auth-form { display: flex; flex-direction: column; gap: 10px; }
.auth-form label { display: flex; flex-direction: column; gap: 5px; }
.auth-form .field-label { font-size: 0.74rem; color: var(--muted); font-weight: 500; }
.auth-form input {
  background: var(--bg-2); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 9px 12px; font-size: 0.9rem;
}
.auth-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.auth-actions { display: flex; gap: 8px; margin-top: 6px; }
.auth-actions .btn { flex: 1; justify-content: center; padding: 9px 12px; }
.auth-hint { margin-top: 12px; font-size: 0.74rem; color: var(--muted); text-align: center; }
.auth-close {
  position: absolute; top: 14px; right: 14px;
  background: transparent; border: none; color: var(--muted);
  width: 28px; height: 28px; border-radius: var(--radius-sm);
}
.auth-close:hover { background: var(--hover); color: var(--text); }
.auth-modal { position: relative; }

/* ============ PRICING ============ */
.pricing-toggle {
  display: inline-flex; padding: 2px;
  background: var(--bg-2); border: 1px solid var(--border-strong);
  border-radius: 7px; margin-bottom: 20px;
}
.pricing-toggle button {
  background: transparent; border: none; color: var(--muted);
  padding: 5px 14px; border-radius: 5px;
  font-size: 0.78rem; font-weight: 600;
}
.pricing-toggle button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 720px; margin-bottom: 24px; }
@media (max-width: 700px) { .pricing-grid { grid-template-columns: 1fr; } }
.pricing-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px;
  position: relative;
}
.pricing-card.pro { border: 1.5px solid var(--accent-border); background: linear-gradient(180deg, rgba(242,107,90,0.04), transparent 50%); }
.pricing-card .popular-pill {
  position: absolute; top: -10px; right: 16px;
  background: var(--accent); color: white;
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 3px 10px; border-radius: 999px;
}
.pricing-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.pricing-card .price { font-size: 1.9rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin-top: 4px; }
.pricing-card .price-sub { font-size: 0.8rem; color: var(--muted); margin-bottom: 14px; }
.pricing-card ul { list-style: none; margin: 14px 0 18px; display: flex; flex-direction: column; gap: 6px; }
.pricing-card li { display: flex; align-items: flex-start; gap: 8px; font-size: 0.86rem; color: var(--text-2); }
.pricing-card li .feat-icon { flex-shrink: 0; margin-top: 1px; color: var(--success); }
.pricing-card li.off .feat-icon { color: var(--subtle); }
.pricing-card li.off { color: var(--subtle); }
.pricing-card .feat-icon svg { width: 14px; height: 14px; }
.pricing-card .btn { width: 100%; justify-content: center; padding: 9px 12px; }
.pricing-card .btn:disabled { opacity: 0.6; cursor: default; }
.pricing-compare { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.pricing-compare h3 { font-size: 0.92rem; font-weight: 600; margin-bottom: 12px; }
.pricing-compare table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.pricing-compare th, .pricing-compare td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; }
.pricing-compare th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; }
.pricing-compare td:nth-child(2), .pricing-compare td:nth-child(3) { text-align: center; width: 70px; }
.pricing-compare .y { color: var(--success); font-weight: 700; }
.pricing-compare .n { color: var(--subtle); }

/* ============ PAYWALL ============ */
.paywall-host { position: relative; }
.paywall-host .paywall-content { filter: blur(4px); pointer-events: none; user-select: none; }
.paywall-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; z-index: 5;
}
.paywall-card {
  background: var(--surface); border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 22px 26px;
  max-width: 360px; text-align: center;
}
.paywall-card .lock {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent-2);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
}
.paywall-card .lock svg { width: 18px; height: 18px; }
.paywall-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.paywall-card p { font-size: 0.86rem; color: var(--text-2); margin-bottom: 14px; }
.paywall-card .actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* ============ ONBOARDING TOUR ============ */
.tour-backdrop {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(42,27,45,0.55);
  display: none;
  pointer-events: none; /* let clicks pass through to underlying app; only the callout/skip handle interactions */
}
.tour-backdrop.open { display: block; }
.tour-spotlight {
  position: absolute;
  border-radius: 12px;
  box-shadow: 0 0 0 3px var(--accent), 0 0 0 9999px rgba(42,27,45,0.55);
  pointer-events: none;
  transition: all 0.25s ease;
}
.tour-callout {
  position: absolute;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 16px 18px; max-width: 320px;
  z-index: 305;
}
.tour-callout h4 { font-size: 0.92rem; font-weight: 600; margin-bottom: 4px; }
.tour-callout p { font-size: 0.84rem; color: var(--text-2); margin-bottom: 12px; }
.tour-callout .tour-actions { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.tour-step-num { font-size: 0.74rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ============ TOOLTIPS ============ */
[data-tooltip] {
  position: relative;
  border-bottom: 1px dotted var(--border-strong);
  cursor: help;
}
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%; bottom: calc(100% + 6px);
  transform: translateX(-50%);
  background: var(--text); color: white;
  font-size: 0.74rem; font-weight: 400;
  padding: 6px 10px; border-radius: 6px;
  white-space: normal; width: max-content; max-width: 240px;
  text-transform: none; letter-spacing: 0;
  line-height: 1.4;
  opacity: 0; pointer-events: none;
  transition: opacity 0.12s;
  z-index: 100;
}
[data-tooltip]:hover::after { opacity: 1; }
.help-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg-3); color: var(--muted);
  font-size: 0.68rem; font-weight: 700;
  margin-left: 6px; cursor: help;
  vertical-align: middle;
  border-bottom: none;
  flex-shrink: 0;
}
.help-icon svg { display: block; }
.help-icon:hover { background: var(--accent-soft); color: var(--accent-2); }

/* ============ AFFORDANCE HINTS ============ */
.click-hint {
  font-size: 0.72rem; color: var(--accent-2);
  background: var(--accent-soft); border: 1px solid var(--accent-border);
  padding: 1px 8px; border-radius: 999px;
  margin-left: 8px; font-weight: 600;
  white-space: nowrap;
  animation: hintPulse 1.6s ease-in-out infinite;
}
.click-hint.faded { display: none; }
@keyframes hintPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.55; } }
.lang-switch-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.lang-switch-label { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); font-weight: 600; }
@media (max-width: 1100px) { .lang-switch-label { display: none; } }

/* Empty state */
.empty-state {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 28px; color: var(--muted); font-size: 0.86rem;
  background: var(--bg-2); border: 1px dashed var(--border-strong); border-radius: var(--radius);
}
.empty-state svg { width: 22px; height: 22px; opacity: 0.6; }
.empty-state--compact { padding: 28px 16px; }
.activity-empty { list-style: none; display: flex; gap: 10px; align-items: flex-start; color: var(--muted); padding: 16px 0 8px 0 !important; }
.activity-empty::before { display: none !important; }
.activity-empty strong { color: var(--ink); font-weight: 600; }
.activity-empty span:not(.empty-icon) { font-size: 0.84rem; }

/* Cursor pointer fixes */
.tmpl-head, .phase-head, .nav-link, .ref-card, .lang-btn, .auth-tab, .pricing-toggle button { cursor: pointer; }

/* Account dropdown chevron */
.ab-chev { transition: transform 0.15s; }
.account-wrap.open .ab-chev { transform: rotate(180deg); }

.paywall-locked-group { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; min-height: 240px; }

 */ Properties (Chunk 6) /* 

.prop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.prop-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
}
.prop-card:hover { transform: translateY(-2px); border-color: var(--accent-border); box-shadow: 0 4px 16px rgba(242,107,90,0.10); }
.prop-card:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

.prop-card-photo {
  height: 200px;
  overflow: hidden;
  background: var(--bg-3);
}
.prop-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.prop-card-photo--empty {
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
  background: linear-gradient(135deg, #F5EFE8, #EFE6DD);
}
.prop-card-photo--empty svg { width: 48px; height: 48px; opacity: 0.45; }

.prop-card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.prop-card-title { font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: 1.125rem; line-height: 1.3; margin-bottom: 2px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.005em; }
.prop-card-price { font-family: 'Fraunces', Georgia, serif; font-size: 1.4rem; font-weight: 600; color: var(--accent-2); margin-bottom: 6px; letter-spacing: -0.01em; }
.prop-card-meta { font-size: 0.86rem; color: var(--text-2); margin-bottom: 10px; display: flex; gap: 10px; flex-wrap: wrap; line-height: 1.5; }
.prop-card-badges { display: flex; gap: 6px; flex-wrap: wrap; }

/* Detail view */
.prop-detail { max-width: 860px; }
.prop-detail-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.prop-detail-actions { display: flex; gap: 8px; }
.btn--danger { color: #B33A2D !important; }

.prop-detail-title { font-size: 1.4rem; font-weight: 700; margin: 0 0 4px; color: #2A1B2D; }
.prop-portal-link { font-size: 0.85rem; color: #F26B5A; text-decoration: none; }
.prop-portal-link:hover { text-decoration: underline; }

.prop-badges-row { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.prop-stats-row { display: flex; gap: 14px; flex-wrap: wrap; margin: 8px 0; }
.prop-stat { font-size: 0.92rem; color: #2A1B2D; }
.prop-stat strong { font-size: 1.1rem; color: #F26B5A; }
.prop-location { font-size: 0.85rem; color: #5C4A5F; margin-top: 4px; }
.prop-postcode { margin-left: 8px; font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; background: #F5F0EB; padding: 1px 6px; border-radius: 4px; }

.prop-meta-grid { display: grid; grid-template-columns: 1fr 200px; gap: 24px; margin: 16px 0; }
@media (max-width: 680px) { .prop-meta-grid { grid-template-columns: 1fr; } }
.prop-meta-side { display: flex; flex-direction: column; }

/* Carousel */
.prop-carousel {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #F5F0EB;
  margin-bottom: 16px;
  height: 320px;
}
.carousel-track { height: 100%; position: relative; }
.carousel-slide { display: none; height: 100%; }
.carousel-slide--active { display: block; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(42,27,45,0.5); color: #fff;
  border: none; border-radius: 50%; width: 36px; height: 36px;
  font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.carousel-btn:hover { background: rgba(42,27,45,0.8); }
.carousel-btn--prev { left: 10px; }
.carousel-btn--next { right: 10px; }
.carousel-dots { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); border: none; cursor: pointer; padding: 0; }
.carousel-dot--active { background: #fff; }
.carousel-source-link { position: absolute; bottom: 8px; right: 10px; font-size: 0.75rem; color: rgba(255,255,255,0.85); text-decoration: none; background: rgba(0,0,0,0.3); padding: 2px 6px; border-radius: 4px; }
.prop-no-photo { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; gap: 8px; color: #8B7B8E; font-size: 0.85rem; }

/* Enrichment cards */
.enrich-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 16px 0; }
.enrich-card { background: #FFF0EE; border: 1px solid #FFD9D2; border-radius: 8px; padding: 14px; }
.enrich-card-title { font-weight: 600; font-size: 0.85rem; margin-bottom: 6px; color: #2A1B2D; }
.enrich-card-body { font-size: 0.82rem; color: #5C4A5F; line-height: 1.5; }

/* Agent card */
.prop-agent-card, .prop-description-card, .prop-notes-card, .prop-journey-card {
  background: #fff; border: 1px solid #EFE6DD; border-radius: 8px;
  padding: 16px; margin: 12px 0;
}
.prop-agent-title, .prop-section-title { font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: #8B7B8E; margin-bottom: 8px; }
.prop-description { font-size: 0.9rem; line-height: 1.6; color: #2A1B2D; white-space: pre-wrap; }
.textarea { width: 100%; min-height: 100px; padding: 10px 12px; font-size: 0.9rem; border: 1px solid #EFE6DD; border-radius: 6px; resize: vertical; font-family: Inter, sans-serif; color: #2A1B2D; box-sizing: border-box; }
.textarea:focus { outline: none; border-color: #FFA89A; box-shadow: 0 0 0 2px rgba(242,107,90,0.15); }

/* Badge variants */
.badge--active { background: #4F8A5C20; color: #4F8A5C; border: 1px solid #4F8A5C40; }
.badge--muted { background: #F5F0EB; color: #8B7B8E; }

/* Loading shimmer */
.loading-shimmer { background: linear-gradient(90deg, #F5F0EB 25%, #EFE6DD 50%, #F5F0EB 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Professionals directory (Chunk 8) */

.pros-filters { background: #fff; border: 1px solid #EFE6DD; border-radius: 8px; padding: 16px; margin-bottom: 8px; }
.pros-filter-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.pros-filter-group { display: flex; flex-direction: column; gap: 4px; min-width: 160px; flex: 1; }
.pros-filter-label { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: #8B7B8E; }
.pros-filter-select { height: 38px; padding: 0 10px; border: 1px solid #EFE6DD; border-radius: 6px; font-size: 0.88rem; color: #2A1B2D; background: #fff; }
.pros-filter-select:focus { outline: none; border-color: #FFA89A; box-shadow: 0 0 0 2px rgba(242,107,90,0.15); }

.pros-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; align-items: stretch; }

.pro-card {
  background: #fff; border: 1px solid #EFE6DD; border-radius: 8px; padding: 16px;
  min-height: 300px; height: 100%; box-sizing: border-box;
  cursor: pointer; transition: box-shadow 0.15s, transform 0.1s;
  box-shadow: 0 1px 2px rgba(42,27,45,0.04);
  display: flex; flex-direction: column; gap: 8px;
}
.pro-card:hover { box-shadow: 0 4px 12px rgba(42,27,45,0.1); transform: translateY(-1px); }
.pro-card:focus { outline: 2px solid #FFA89A; outline-offset: 2px; }

.pro-card-header { display: flex; align-items: center; gap: 10px; }
.pro-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; flex-shrink: 0; }
.pro-avatar--lg { width: 56px; height: 56px; font-size: 1.4rem; }
.pro-card-name { font-weight: 700; font-size: 0.92rem; color: #2A1B2D; line-height: 1.3; }
.pro-card-type { font-size: 0.78rem; font-weight: 600; }
.pro-card-badges { display: flex; gap: 4px; flex-wrap: wrap; min-height: 1.9rem; align-content: flex-start; }
.pro-card-region { font-size: 0.8rem; color: #5C4A5F; }
.pro-card-langs { font-size: 0.78rem; color: #8B7B8E; }
.pro-card-fees { font-size: 0.78rem; color: #5C4A5F; line-height: 1.4; }
.pro-card-cta { margin-top: auto; }

.badge--verified { background: #4F8A5C20; color: #4F8A5C; border: 1px solid #4F8A5C40; }
.badge--unverified { background: #F5F0EB; color: #8B7B8E; }
.badge--featured { background: #FFD79A40; color: #E8A95C; border: 1px solid #E8A95C40; }

/* Pro profile */
.pro-profile { display: flex; flex-direction: column; gap: 16px; }
.pro-profile-header { display: flex; align-items: center; gap: 14px; }
.pro-profile-type { font-weight: 700; font-size: 0.9rem; }
.pro-profile-badges { display: flex; gap: 4px; margin-top: 4px; }
.pro-profile-details { background: #FBF7F2; border-radius: 6px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.pro-detail-row { display: grid; grid-template-columns: 120px 1fr; gap: 8px; font-size: 0.85rem; }
.pro-detail-label { font-weight: 600; color: #5C4A5F; }
.pro-bio p { font-size: 0.9rem; line-height: 1.65; color: #2A1B2D; white-space: pre-wrap; }
.pro-section-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #8B7B8E; margin-bottom: 8px; }

/* Lead form */
.pro-lead-form { background: #FFF0EE; border: 1px solid #FFD9D2; border-radius: 8px; padding: 16px; }
.pro-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .pro-form-row { grid-template-columns: 1fr; } }
.form-error { background: #FFEEEC; color: #B33A2D; border: 1px solid #FFB8B2; border-radius: 4px; padding: 8px 12px; font-size: 0.85rem; margin-top: 8px; }
.required { color: #F26B5A; }

/* Lead success */
.lead-success { text-align: center; padding: 24px 12px; }
.lead-success-icon { font-size: 2rem; margin-bottom: 8px; }
.lead-success h3 { color: #4F8A5C; margin: 0 0 6px; }
.lead-success p { color: #5C4A5F; margin: 0; }

/* 
   DOCUMENT VAULT (Chunk 9)
 */   

.vault-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.vault-quota { font-size: 0.82rem; color: #8B7B8E; margin: 0 0 16px; }

.vault-expiry-banner {
  display: flex; gap: 10px; align-items: flex-start;
  background: #FFF8E8; border: 1px solid #FFD79A; border-radius: 8px;
  padding: 12px 16px; margin-bottom: 16px; font-size: 0.875rem; color: #2A1B2D;
}
.vault-expiry-icon { font-size: 1.25rem; flex-shrink: 0; }

.vault-categories { display: flex; flex-direction: column; gap: 8px; }

.vault-category { border: 1px solid #EFE6DD; border-radius: 8px; overflow: hidden; }

.vault-cat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: #FBF7F2; cursor: pointer; border: none; width: 100%;
  text-align: left; transition: background 0.15s;
}
.vault-cat-header:hover { background: #F5EEE6; }

.vault-cat-meta { display: flex; flex-direction: column; gap: 2px; }
.vault-cat-name { font-weight: 600; font-size: 0.9rem; color: #2A1B2D; }
.vault-cat-desc { font-size: 0.78rem; color: #8B7B8E; }

.vault-cat-right { display: flex; align-items: center; gap: 8px; }
.vault-cat-count { font-size: 0.78rem; color: #8B7B8E; }
.vault-cat-chevron { transition: transform 0.2s; }

.vault-cat-body { background: #fff; }

.vault-drop-zone {
  border: 2px dashed #EFE6DD; border-radius: 6px; margin: 12px;
  padding: 16px; text-align: center; transition: border-color 0.15s, background 0.15s;
}
.vault-drop-zone.drag-over { border-color: #F26B5A; background: #FFF0EE; }

.vault-drop-hint {
  font-size: 0.85rem; color: #8B7B8E; margin: 0;
  display: flex; align-items: center; gap: 6px; justify-content: center;
}
.vault-upload-label { color: #F26B5A; cursor: pointer; text-decoration: underline; }
.vault-file-input { display: none; }
.vault-drop-limit { font-size: 0.75rem; color: #8B7B8E; }

.vault-docs-list { padding: 0 12px 12px; display: flex; flex-direction: column; gap: 6px; }

.vault-doc-row {
  display: grid; grid-template-columns: 24px 1fr 70px 100px 110px 110px 72px;
  align-items: center; gap: 8px; padding: 8px 10px;
  background: #FBF7F2; border-radius: 6px; font-size: 0.83rem;
}
.vault-doc-icon { font-size: 1rem; }
.vault-doc-name { font-weight: 500; color: #2A1B2D; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vault-doc-size { color: #8B7B8E; font-size: 0.78rem; }
.vault-doc-date { color: #8B7B8E; font-size: 0.78rem; }
.vault-doc-expiry { }
.vault-doc-check { }
.vault-doc-actions { display: flex; gap: 4px; justify-content: flex-end; }

/* Check verdict badges */
.vault-check-badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px;
  border-radius: 999px; font-size: 0.72rem; font-weight: 600; border: 1px solid transparent;
  cursor: pointer; background: none; transition: opacity 0.15s;
}
.vault-check-badge:hover { opacity: 0.8; }
.vault-check-badge span { font-size: 0.72rem; }
.vault-check-pass { background: #E6F7ED; color: #217A45; border-color: #9FD4B3; }
.vault-check-warn { background: #FFF8E8; color: #D49642; border-color: #FFD79A; }
.vault-check-fail { background: #FFE8E8; color: #B33A2D; border-color: #FFB8B2; }
.vault-check-pending { background: #F0EDF3; color: #6B4F8A; border-color: #D5CAFE; }
.vault-check-spinner {
  display: inline-block; width: 10px; height: 10px; border: 2px solid #D5CAFE;
  border-top-color: #6B4F8A; border-radius: 50%; animation: vault-spin 0.8s linear infinite;
}
@keyframes vault-spin { to { transform: rotate(360deg); } }

/* Check modal */
.vault-check-modal {
  background: white; border-radius: 12px; max-width: 560px; width: 100%;
  max-height: 90vh; overflow-y: auto; padding: 1.5rem; position: relative;
}
.vault-check-modal-close {
  position: absolute; top: 1rem; right: 1rem; background: none; border: none;
  cursor: pointer; font-size: 1.25rem; color: #8B7B8E;
}
.vault-check-modal-title { margin: 0 0 4px; font-family: 'Fraunces', serif; font-size: 1.4rem; }
.vault-check-modal-docname { font-size: 0.82rem; color: #8B7B8E; margin: 0 0 1rem; word-break: break-all; }
.vault-check-modal-status { display: flex; align-items: center; gap: 12px; margin-bottom: 0.75rem; }
.vault-check-modal-verdict { font-weight: 600; font-size: 1rem; }
.vault-check-modal-score { font-size: 0.85rem; color: #6B4F8A; }
.vault-check-modal-summary { font-size: 0.9rem; color: #2A1B2D; margin: 0 0 1rem; }
.vault-check-modal-issues { margin: 0 0 1.25rem; }
.vault-check-modal-issues-title { font-size: 0.9rem; font-weight: 600; margin: 0 0 8px; color: #2A1B2D; }
.vault-check-issue {
  display: flex; align-items: flex-start; gap: 8px; padding: 8px; border-radius: 6px;
  margin-bottom: 6px; font-size: 0.82rem;
}
.vault-check-issue-error { background: #FFF3F2; border: 1px solid #FFB8B2; }
.vault-check-issue-warn { background: #FFF8E8; border: 1px solid #FFD79A; }
.vault-check-issue-info { background: #F0EDF3; border: 1px solid #D5CAFE; }
.vault-check-issue-icon { font-size: 0.9rem; flex-shrink: 0; line-height: 1.4; }
.vault-check-issue-msg { display: block; color: #2A1B2D; font-weight: 500; }
.vault-check-issue-code { display: block; color: #8B7B8E; font-size: 0.73rem; font-family: 'JetBrains Mono', monospace; margin-top: 1px; }
.vault-check-modal-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Dashboard failed-check actions */
.doc-check-actions-card { margin-bottom: 16px; }
.doc-check-actions-list { display: flex; flex-direction: column; gap: 8px; }
.doc-check-action-item {
  display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 8px;
  background: #FFF3F2; border: 1px solid #FFB8B2;
}
.doc-check-action-icon { font-size: 1.1rem; flex-shrink: 0; }
.doc-check-action-body { flex: 1; min-width: 0; }
.doc-check-action-body strong { display: block; font-size: 0.85rem; color: #2A1B2D; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-check-action-body span { display: block; font-size: 0.78rem; color: #8B7B8E; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn-sm { padding: 4px 10px; font-size: 0.78rem; }

.vault-empty { text-align: center; padding: 20px; color: #8B7B8E; }
.vault-empty-icon { font-size: 2rem; margin-bottom: 6px; }
.vault-empty-text { font-size: 0.875rem; margin: 0 0 4px; }
.vault-empty-hint { font-size: 0.78rem; margin: 0; }

.vault-loading, .vault-error { padding: 40px; text-align: center; color: #8B7B8E; }

/* Badge variants for vault/reminders */
.badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; }
.badge-danger { background: #FFE8E8; color: #B33A2D; border: 1px solid #FFB8B2; }
.badge-warning { background: #FFF8E8; color: #D49642; border: 1px solid #FFD79A; }
.badge-info { background: #EEF4FF; color: #3B5CE6; border: 1px solid #C4D4FF; }
.badge-success { background: #E8F5EC; color: #4F8A5C; border: 1px solid #A8D4B4; }
.badge-muted { background: #F5F0EB; color: #8B7B8E; }

/* Btn-icon */
.btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 6px; border: 1px solid #EFE6DD;
  background: transparent; cursor: pointer; color: #5C4A5F; transition: background 0.12s;
}
.btn-icon:hover { background: #FFF0EE; border-color: #FFA89A; color: #F26B5A; }

/* 
   POST-PURCHASE: TAX CALENDAR & AL HUB (Chunk 10)
 */   

.tax-cal { }
.tax-cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.tax-cal-title { font-size: 1rem; font-weight: 600; color: #2A1B2D; margin: 0; }
.tax-cal-rows { display: flex; flex-direction: column; gap: 8px; }

.cal-row {
  display: grid; grid-template-columns: 8px 1fr auto 28px;
  align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 6px; background: #FBF7F2; border: 1px solid #EFE6DD;
}
.cal-row.cal-danger { background: #FFF0EE; border-color: #FFD9D2; }
.cal-row.cal-warning { background: #FFF8E8; border-color: #FFD79A; }

.cal-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.cal-meta { display: flex; flex-direction: column; gap: 2px; }
.cal-title { font-size: 0.85rem; font-weight: 500; color: #2A1B2D; }
.cal-date { font-size: 0.75rem; color: #8B7B8E; }
.cal-badge { }
.cal-dismiss { border: none; background: none; cursor: pointer; color: #8B7B8E; font-size: 1.1rem; padding: 0; width: 28px; height: 28px; border-radius: 4px; display: flex; align-items: center; justify-content: center; }
.cal-dismiss:hover { background: #EFE6DD; color: #2A1B2D; }

.tax-cal-empty { padding: 24px; text-align: center; color: #8B7B8E; font-size: 0.875rem; }
.cal-loading { padding: 24px; text-align: center; color: #8B7B8E; }

/* Expiry warnings */
.expiry-warnings { }
.expiry-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.expiry-item { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 6px; background: #FBF7F2; }
.expiry-item.expiry-danger { background: #FFF0EE; }
.expiry-icon { font-size: 1rem; }
.expiry-name { flex: 1; font-size: 0.85rem; font-weight: 500; color: #2A1B2D; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* AL Hub */
.al-hub { }
.al-checklist { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.al-item { display: grid; grid-template-columns: 28px 1fr auto; align-items: start; gap: 10px; padding: 10px; background: #FBF7F2; border-radius: 6px; }
.al-item-icon { font-size: 1.2rem; }
.al-item-meta strong { font-size: 0.875rem; color: #2A1B2D; }
.al-item-meta p { font-size: 0.8rem; color: #5C4A5F; margin: 4px 0 0; }

/* Yearly checklist */
.yearly-checklist { }
.checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.checklist li label { display: flex; align-items: flex-start; gap: 8px; font-size: 0.875rem; color: #2A1B2D; cursor: pointer; padding: 6px; border-radius: 4px; }
.checklist li label:hover { background: #F5EEE6; }
.checklist input[type=checkbox] { margin-top: 2px; accent-color: #F26B5A; flex-shrink: 0; }

.text-muted { color: #8B7B8E; }
.btn-sm { padding: 6px 12px; font-size: 0.8125rem; height: 32px; }

/* ─── Generic modal (Add property, etc.) ─── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9500;
  background: rgba(42,27,45,0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  animation: modalFadeIn 0.18s ease-out;
}
@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: #FBF7F2;
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(42,27,45,0.28);
  width: 100%; max-width: 520px;
  max-height: 90vh; overflow-y: auto;
  display: flex; flex-direction: column;
  animation: modalSlideUp 0.22s ease-out;
}
@keyframes modalSlideUp { from { transform: translateY(12px) scale(0.98); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem 0.5rem;
  border-bottom: 1px solid #EFE6DD;
}
.modal-title { font-family: 'Fraunces', serif; font-size: 1.15rem; font-weight: 700; margin: 0; color: #2A1B2D; }
.modal-close {
  background: transparent; border: 0; font-size: 1.5rem; line-height: 1;
  cursor: pointer; color: #8B7B8E; padding: 4px 8px; border-radius: 6px;
}
.modal-close:hover { background: #F5EEE6; color: #2A1B2D; }
.modal-body { padding: 1rem 1.25rem; font-size: 0.9rem; color: #5C4A5F; }
.modal-body .field-label { display: block; font-size: 0.8125rem; font-weight: 600; color: #2A1B2D; margin-bottom: 6px; }
.modal-body .input { width: 100%; padding: 0.55rem 0.75rem; border: 1px solid #E0D3C5; border-radius: 8px; font-size: 0.9rem; background: #fff; }
.modal-body .input:focus { outline: 2px solid #FFA89A; outline-offset: 1px; border-color: #F26B5A; }
.modal-foot {
  display: flex; gap: 8px; justify-content: flex-end;
  padding: 0.75rem 1.25rem 1rem;
  border-top: 1px solid #EFE6DD;
}
.form-error { color: #B33A2D; font-size: 0.85rem; margin-top: 8px; }

/* Stage pill clickable affordance */
button.stage-pill { cursor: pointer; border: 0; font: inherit; }
button.stage-pill:hover { filter: brightness(0.97); transform: translateY(-1px); }
button.stage-pill:focus-visible { outline: 2px solid #F26B5A; outline-offset: 2px; }
.stage-pill-arrow { opacity: 0.65; transition: transform 0.15s ease; }
button.stage-pill:hover .stage-pill-arrow { transform: translateX(2px); opacity: 1; }

/* Pro upgrade prompt (vault) */
.vault-pro-gate {
  background: linear-gradient(135deg, #FFF4EC 0%, #FFE7DA 100%);
  border: 1px solid #F2C9B0;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 1rem 0 1.5rem;
  display: flex; align-items: center; gap: 1rem;
}
.vault-pro-gate-icon { font-size: 2rem; }
.vault-pro-gate-body { flex: 1; }
.vault-pro-gate-title { font-family: 'Fraunces', serif; font-weight: 700; font-size: 1rem; color: #2A1B2D; margin: 0 0 4px; }
.vault-pro-gate-text { font-size: 0.875rem; color: #5C4A5F; margin: 0; line-height: 1.5; }
.vault-pro-gate-cta { white-space: nowrap; }

/* Personalised templates badge */
.template-personalised-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.7rem; font-weight: 600;
  padding: 2px 8px; border-radius: 999px;
  background: #E8F5E9; color: #2E7D32;
  margin-left: 8px;
}

/* Modal shell used by property/professional flows */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(42, 27, 45, 0.52);
  backdrop-filter: blur(6px);
}
.modal {
  width: min(560px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--border, #EFE6DD);
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(42, 27, 45, 0.22);
}
.modal-head,
.modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border, #EFE6DD);
}
.modal-foot { border-top: 1px solid var(--border, #EFE6DD); border-bottom: 0; justify-content: flex-end; }
.modal-title { margin: 0; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.modal-body { padding: 1.25rem; color: var(--text-soft, #5C4A5F); line-height: 1.6; }
.modal-close { border: 0; background: transparent; color: var(--muted, #8B7B8E); cursor: pointer; font-size: 1.5rem; line-height: 1; }
.form-error { margin-top: 0.75rem; padding: 0.75rem; border-radius: 8px; background: #fff0ee; color: #b33a2d; border: 1px solid #ffd9d2; font-size: 0.875rem; }
.stage-pill { cursor: pointer; }
.stage-pill:hover { border-color: var(--accent, #F26B5A); box-shadow: 0 0 0 3px rgba(242,107,90,0.12); }
.stage-pill:focus-visible { outline: 3px solid rgba(242,107,90,0.28); outline-offset: 2px; }
.stage-pill-arrow { opacity: 0.7; }
.tmpl-personalised {
  margin-left: auto;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(79, 138, 92, 0.12);
  color: #4f8a5c;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}
.tmpl-personalised.muted { background: #f5f0eb; color: var(--muted, #8B7B8E); }
.ref-note { display: block; margin-top: 0.25rem; color: var(--muted, #8B7B8E); font-size: 0.78rem; line-height: 1.35; }
.vault-pro-upgrade {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid #ffd9d2;
  border-radius: 12px;
  background: #fff0ee;
}
.vault-pro-lock { font-size: 1.5rem; }
.vault-pro-upgrade p { margin: 0.25rem 0 0; color: var(--text-soft, #5C4A5F); font-size: 0.875rem; line-height: 1.45; }
.vault-pro-upgrade .btn { margin-left: auto; white-space: nowrap; }
@media (max-width: 720px) {
  .vault-pro-upgrade { align-items: flex-start; flex-direction: column; }
  .vault-pro-upgrade .btn { margin-left: 0; }
  .tmpl-personalised { margin-left: 0; }
}

/* ─────────────────────────────────────────────────────────────────────────
   "Warmer" pass — typography polish, photo upload, manual property form,
   editorial empty states, modal upgrades. (See Charles's UX brief.)
   ───────────────────────────────────────────────────────────────────────── */

/* Slightly warmer page tone + body tracking — the cream is already in place,
   but heading rhythm wants more breathing room than the dense Linear default. */
h1, h2, h3, h4 {
  letter-spacing: -0.012em;
  line-height: 1.2;
}
h1 { letter-spacing: -0.018em; }
.section-title { font-family: 'Fraunces', Georgia, serif; font-weight: 600; letter-spacing: -0.018em; line-height: 1.15; }
.section-sub { line-height: 1.55; }
.modal-title { font-family: 'Fraunces', Georgia, serif; font-weight: 600; letter-spacing: -0.012em; }
.modal-sub { font-size: 0.86rem; color: var(--muted, #8B7B8E); margin-top: 4px; line-height: 1.45; }

/* Topbar: a touch of warmth on the divider so it stops feeling like Cloudflare. */
.topbar { background: linear-gradient(180deg, #FDFAF5 0%, var(--bg, #FBF7F2) 100%); border-bottom: 1px solid var(--border, #EFE6DD); }

/* Buttons: marginally softer corner + warmer hover. */
.btn { transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease; }
.btn-primary:hover { box-shadow: 0 6px 18px rgba(242,107,90,0.22); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text-2, #5C4A5F); border: 1px solid transparent; }
.btn-ghost:hover { background: var(--hover, #FFF0EE); color: var(--text, #2A1B2D); }

/* Property cards: gentle paper feel handled in main rule above. */
.prop-card { background: var(--bg-1); }

/* Empty state, warmer */
.empty-state--warm {
  background: linear-gradient(180deg, #FFFDF8 0%, #FBF3E9 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 64px 32px;
  text-align: center;
  color: var(--text-2);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  max-width: 640px;
  margin: 24px auto;
}
.empty-state--warm h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.875rem;
  color: var(--text);
  margin: 10px 0 4px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.empty-state--warm p {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  max-width: 48ch;
  line-height: 1.65;
  color: var(--text-2);
  margin: 0 0 20px;
}
.empty-state-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.empty-illustration {
  width: 112px; height: 80px;
  color: var(--accent);
  opacity: 0.85;
  margin-bottom: 6px;
}
.empty-illustration svg { width: 100%; height: 100%; }

/* ── Track-a-property modal (dual mode) ─────────────────────────────────── */
.modal--track { max-width: 720px; }

.track-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
@media (max-width: 600px) { .track-options { grid-template-columns: 1fr; } }
.track-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  background: #FFFFFF;
  border: 1px solid #EFE6DD;
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s, transform 0.12s;
  font-family: inherit;
  color: var(--text, #2A1B2D);
}
.track-option:hover { border-color: #E0D3C5; background: #FFFDF8; }
.track-option:focus-visible { outline: 2px solid rgba(242,107,90,0.45); outline-offset: 2px; }
.track-option--active {
  border-color: var(--accent, #F26B5A);
  background: linear-gradient(180deg, #FFF7F2 0%, #FFEFE8 100%);
  box-shadow: 0 6px 16px rgba(242,107,90,0.10);
}
.track-option-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(242,107,90,0.12);
  color: var(--accent-2, #C9402E);
  flex-shrink: 0;
}
.track-option-icon svg { width: 18px; height: 18px; }
.track-option-title { font-weight: 600; font-size: 0.95rem; color: var(--text, #2A1B2D); }
.track-option-sub { font-size: 0.82rem; color: var(--muted, #8B7B8E); margin-top: 2px; line-height: 1.45; }

.track-pane { display: block; }
.track-pane[hidden] { display: none; }

.field-hint { font-size: 0.78rem; color: var(--muted, #8B7B8E); margin-top: 4px; line-height: 1.4; }
.req { color: var(--accent-2, #C9402E); font-weight: 700; }

/* Manual form */
.manual-form { display: block; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}
.field--span-2 { grid-column: span 2; }
@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
  .field--span-2 { grid-column: span 1; }
}
.manual-form .field { display: flex; flex-direction: column; gap: 6px; }
.manual-form .field-label {
  font-size: 0.78rem; font-weight: 600;
  color: var(--text-2, #5C4A5F);
  letter-spacing: 0.01em;
}
.manual-form .input,
.manual-form .textarea,
.manual-form select.input {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid #E0D3C5;
  border-radius: 8px;
  background: #FFFFFF;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--text, #2A1B2D);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.manual-form .input:focus,
.manual-form .textarea:focus,
.manual-form select.input:focus {
  outline: none;
  border-color: var(--accent, #F26B5A);
  box-shadow: 0 0 0 3px rgba(242,107,90,0.18);
}
.manual-form .input-wrap {
  display: flex; align-items: stretch;
  border: 1px solid #E0D3C5; border-radius: 8px; background: #fff;
  overflow: hidden;
}
.manual-form .input-wrap:focus-within {
  border-color: var(--accent, #F26B5A);
  box-shadow: 0 0 0 3px rgba(242,107,90,0.18);
}
.manual-form .input-wrap .input { border: 0; box-shadow: none; }
.manual-form .input-wrap .input:focus { box-shadow: none; }
.manual-form .input-prefix,
.manual-form .input-suffix {
  background: #FBF3E9;
  color: var(--muted, #8B7B8E);
  font-size: 0.85rem;
  padding: 0 0.6rem;
  display: flex; align-items: center;
  user-select: none;
}
.manual-form .field--error .input,
.manual-form .field--error .textarea,
.manual-form .field--error .input-wrap {
  border-color: var(--danger, #B33A2D);
  box-shadow: 0 0 0 3px rgba(179,58,45,0.12);
}
.manual-form .field-error {
  font-size: 0.78rem; color: var(--danger, #B33A2D); margin-top: 4px;
}
.manual-form .form-error {
  margin-top: 12px;
}

/* Photo drop zone */
.photo-drop {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  border: 1.5px dashed #E0D3C5;
  border-radius: 12px;
  background: linear-gradient(180deg, #FFFDF8 0%, #FBF3E9 100%);
  color: var(--text-2, #5C4A5F);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.photo-drop:hover, .photo-drop:focus { outline: none; border-color: var(--accent, #F26B5A); background: #FFF7F2; }
.photo-drop--over { border-color: var(--accent, #F26B5A); background: #FFEFE8; }
.photo-drop svg { width: 28px; height: 28px; color: var(--accent, #F26B5A); flex-shrink: 0; }
.photo-drop-text { font-size: 0.92rem; }
.photo-drop-text strong { color: var(--text, #2A1B2D); font-weight: 600; }
.photo-drop-hint { font-size: 0.78rem; color: var(--muted, #8B7B8E); margin-left: auto; text-align: right; }
@media (max-width: 600px) {
  .photo-drop { flex-direction: column; align-items: flex-start; }
  .photo-drop-hint { margin-left: 0; text-align: left; }
}
.link-btn {
  background: transparent; border: 0; color: var(--accent-2, #C9402E);
  cursor: pointer; padding: 0; font: inherit; text-decoration: underline;
  text-underline-offset: 2px;
}
.link-btn:hover { color: var(--accent, #F26B5A); }

.photo-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.photo-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: #F5EEE6;
  border: 1px solid #EFE6DD;
}
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-thumb-remove {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(42,27,45,0.7); color: #fff;
  border: 0; cursor: pointer;
  font-size: 14px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.photo-thumb-remove:hover { background: var(--accent-2, #C9402E); }

/* Manual form footer (lives inside the modal body) */
.manual-form-foot {
  display: flex; justify-content: flex-end; gap: 8px;
  margin-top: 18px; padding-top: 14px;
  border-top: 1px solid #EFE6DD;
}

/* Form-error inside extract modal becomes a soft warning card (not red toast) */
.form-error-msg { color: var(--text, #2A1B2D); font-size: 0.9rem; }
.form-error-actions { margin-top: 10px; display: flex; gap: 8px; }

/* Generic .btn-secondary used in fallback flow */
.btn-secondary {
  background: #FFFFFF;
  color: var(--text, #2A1B2D);
  border: 1px solid #E0D3C5;
}
.btn-secondary:hover { background: #FFFDF8; border-color: var(--accent, #F26B5A); color: var(--accent-2, #C9402E); }

/* ============================================================
   Calmer tone — soften the dashboard/SaaS feel.
   Pragmatic overrides: warmer headings, less-shouty accents,
   gentler section separators.
   ============================================================ */

/* Headings: switch to the marketing serif for a more human feel */
.section-title,
h1.section-title,
h2.section-title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #2A1B2D;
}
h1.section-title { font-size: 1.85rem; }
.section-title { font-size: 1.45rem; }
.section-sub {
  color: #5C4A5F;
  font-size: 0.95rem;
  line-height: 1.55;
}

.section-subtitle {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.1rem; font-weight: 600; color: #2A1B2D;
  margin: 0 0 4px 0;
}

.section-header--inset {
  margin: 28px 0 16px;
  padding-top: 22px;
  border-top: 1px solid #EFE6DD;
}

/* Documents page — file storage block */
.docs-storage { margin-top: 8px; }

/* Calm down red/coral overuse on small accent text */
.prop-portal-link,
.prop-stat strong { color: #C04830; }

/* Soften section card borders */
.card { border-color: #ECDFD2; }
.card:hover { border-color: #E2D0BD; }

/* Topbar: less SaaS-y */
.breadcrumbs { color: #6F6072; font-weight: 400; }
.breadcrumb-current { color: #2A1B2D; font-weight: 500; }

/* Overview hero card — softer */
.hero-card { background: linear-gradient(180deg, #FFFDF7 0%, #FFF8F0 100%); }
