/* ──────────────────────────────────────────────────────────────────────
   GraftHand — brand system
   Matches the 2026 postcard: cream canvas, deep green ink, coral accent,
   editorial serif display paired with a utility sans for forms/dashboards.
   ────────────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,700;0,800;1,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Brand palette */
  --cream:        #F2E9D8;   /* page background */
  --cream-soft:   #FAF5E9;   /* cards/inset */
  --paper:        #FFFFFF;   /* solid cards */
  --ink:          #0F1B17;   /* body text */
  --ink-muted:    #5B6660;   /* secondary text */
  --ink-subtle:   #8A938D;   /* hints, placeholders */
  --green:        #0D3B2E;   /* primary / CTA bar */
  --green-hover:  #0A2E23;
  --green-tint:   #E5EFEA;   /* soft green fill */
  --lime:         #22C55E;   /* accent / success */
  --coral:        #D2352C;   /* underline / urgency */
  --pink:         #F9D5DC;   /* highlight pill */
  --amber:        #F5B041;   /* warnings */
  --line:         #D9D0BC;   /* hairline on cream */
  --line-soft:    #ECE3CE;

  /* Typography — serif retired, sans-serif everywhere */
  --serif:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Shape */
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--green-hover); text-decoration-thickness: 2px; }

::selection { background: var(--pink); color: var(--ink); }

/* ── Layout ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px 80px; }
.container--narrow { max-width: 680px; }

main { padding-top: 32px; }
main > section { margin-top: 40px; }

.centered { display: flex; flex-direction: column; align-items: center; padding-top: 56px; }
.centered .card { width: 100%; }

/* ── Topbar / wordmark ── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  margin: 0 -24px 32px;
  background: var(--green);
  color: #fff;
  border-radius: 0 0 var(--radius) var(--radius);
}
.brand {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.015em;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.brand::before {
  content: '🔧';
  font-size: 18px;
  filter: saturate(0.8);
}
.brand:hover { color: var(--lime); text-decoration: none; }
.topbar nav { display: flex; gap: 26px; align-items: center; justify-content: flex-end; flex-wrap: wrap; min-width: 0; }
.topbar nav a {
  color: #E5EFEA;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.topbar nav a:hover { color: #fff; text-decoration: none; }
.topbar nav a.active { color: var(--lime); }
.topbar .hint { color: #BFD1C8; }
.ml-auto { margin-left: auto; }
.mobile-menu-toggle { display: none; }

/* ── Profile banner ── */
.profile-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--green-tint);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--green);
}

/* ── Cards ── */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 18px;
  box-shadow: 0 1px 0 rgba(13, 59, 46, 0.04);
}
.draft-card { border-left: 4px solid var(--green); }
.empty-state { color: var(--ink-subtle); text-align: center; padding: 40px; }

/* ── Typography ── */
h1 {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  color: #000;
}
h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #000;
}
h3 { font-family: var(--serif); font-size: 18px; font-weight: 700; margin-bottom: 8px; }

.subtitle { color: var(--ink-muted); margin-bottom: 28px; font-size: 16px; }
.hint { color: var(--ink-subtle); font-size: 13px; }

.display-accent { color: var(--coral); border-bottom: 3px solid var(--coral); padding-bottom: 2px; }
.display-highlight { background: var(--pink); padding: 0 6px; }
.display-italic { font-style: italic; }

/* ── Forms ── */
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 18px;
  color: var(--ink);
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream-soft);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--green);
  background: var(--paper);
  box-shadow: 0 0 0 3px rgba(13, 59, 46, 0.12);
}
textarea { resize: vertical; min-height: 110px; }
.form-wide { max-width: 720px; }
.form-section { margin-bottom: 36px; }
.form-section h2 { border-bottom: 1px solid var(--line); padding-bottom: 10px; }

/* ── Mode grid ── */
.mode-grid { display: flex; flex-direction: column; gap: 12px; }
.mode-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}
.radio-group { display: flex; gap: 20px; font-weight: 400; flex-direction: row; }
.radio-group input { width: auto; }

/* ── Buttons ── */
.btn-primary {
  display: inline-block;
  padding: 12px 26px;
  background: var(--green);
  color: #fff;
  border: 1px solid var(--green);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.05s;
}
.btn-primary:hover { background: var(--green-hover); color: #fff; text-decoration: none; }
.btn-primary:active { transform: translateY(1px); }

.btn-secondary {
  display: inline-block;
  padding: 11px 22px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.btn-secondary:hover { background: var(--cream-soft); border-color: var(--green); text-decoration: none; }

.btn-accent {
  display: inline-block;
  padding: 12px 26px;
  background: var(--lime);
  color: var(--green);
  border: 1px solid var(--lime);
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.btn-accent:hover { background: #16A34A; color: #fff; text-decoration: none; }

.action-row { display: flex; gap: 12px; margin-top: 16px; align-items: center; flex-wrap: wrap; }

/* ── Draft card details ── */
.draft-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.lead-message { background: var(--cream-soft); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 16px; border: 1px solid var(--line-soft); }
.lead-message label { font-size: 11px; color: var(--ink-subtle); margin-bottom: 4px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.lead-message p { margin: 0; color: var(--ink); }

/* ── Table ── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); }
table { width: 100%; border-collapse: collapse; }
th {
  background: var(--cream-soft);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
td { padding: 14px 16px; border-top: 1px solid var(--line-soft); font-size: 14px; vertical-align: middle; }
tr:first-child td { border-top: none; }
tr:hover td { background: var(--cream-soft); }
.truncate { max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Inline outcome form ── */
.inline-form select {
  padding: 5px 10px;
  font-size: 13px;
  border-radius: var(--radius-sm);
  width: auto;
}

/* ── Badges ── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}
.badge--blue   { background: #E0EDFF; color: #1E40AF; border-color: #C7DBFF; }
.badge--green  { background: var(--green-tint); color: var(--green); border-color: #C5DAD0; }
.badge--yellow { background: #FFF3CD; color: #7A4E0A; border-color: #FADF99; }
.badge--red    { background: #FDE1DE; color: #8B1A14; border-color: #F6B7B2; }
.badge--gray   { background: var(--cream-soft); color: var(--ink-muted); border-color: var(--line); }

/* ── Photo upload ── */
input[type="file"] {
  padding: 8px 0;
  border: none;
  background: none;
  font-size: 14px;
  font-family: var(--sans);
}
.lead-photo { margin-bottom: 16px; }
.lead-photo label { font-size: 11px; color: var(--ink-subtle); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
.lead-photo img { max-width: 320px; max-height: 240px; border-radius: var(--radius); border: 1px solid var(--line); display: block; }

/* ── Availability fields ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkbox-group { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.checkbox-inline { flex-direction: row; align-items: center; gap: 6px; font-weight: 400; margin-bottom: 0; }
.checkbox-inline input { width: auto; }

/* ── Setup wizard ── */
.setup-steps { display: flex; flex-direction: column; gap: 16px; max-width: 780px; }
.setup-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.setup-card--done { border-color: #BBD8C9; background: var(--green-tint); }
.setup-header { display: flex; align-items: flex-start; gap: 16px; }
.setup-header h2 { font-family: var(--serif); font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.step-badge {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--cream-soft);
  color: var(--ink-muted);
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: var(--sans);
}
.step-badge--done { background: var(--lime); color: #fff; border-color: var(--lime); }
.setup-detail { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 14px; }
.setup-instructions { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.setup-instructions ol { margin: 8px 0 16px 22px; font-size: 14px; line-height: 1.9; }
.instruction-block { background: var(--cream-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; font-size: 14px; }
.instruction-block ol { margin: 8px 0 0 18px; }
.instruction-block strong { display: block; margin-bottom: 4px; }
.test-form { margin-top: 12px; }
.test-channels { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.test-channel-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: var(--cream-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
}
.test-channel-btn:hover { background: var(--paper); border-color: var(--green); text-decoration: none; }
code {
  background: var(--cream-soft);
  border: 1px solid var(--line-soft);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  color: var(--green);
}

/* ── Client directory ── */
.page-header { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.page-header--clients { justify-content: space-between; align-items: flex-end; }
.client-search {
  margin: -8px 0 18px;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.client-search label {
  margin: 0 0 8px;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.client-search input { background: var(--cream-soft); }
.client-search-empty { margin-bottom: 18px; }
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.client-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.1s;
}
.client-card[hidden] { display: none; }
.client-card:hover { border-color: var(--green); text-decoration: none; transform: translateY(-1px); }
.client-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.client-avatar--sm { width: 36px; height: 36px; font-size: 15px; }
.client-info { flex: 1; min-width: 0; }
.client-info strong { display: block; font-size: 15px; font-family: var(--sans); font-weight: 600; overflow-wrap: anywhere; }
.client-info .hint { display: block; font-size: 13px; overflow-wrap: anywhere; }
.client-card-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.client-header { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.client-header h1 { margin-bottom: 4px; }
.client-meta { display: flex; gap: 16px; font-size: 14px; color: var(--ink-muted); }
.client-stats { display: flex; gap: 24px; }
.stat { text-align: center; }
.stat-value { display: block; font-family: var(--serif); font-size: 28px; font-weight: 800; color: var(--green); letter-spacing: -0.01em; }
.stat-label { font-size: 11px; color: var(--ink-subtle); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.back-link { margin-bottom: 20px; font-size: 14px; }
.client-body section { margin-bottom: 36px; }
.job-card { border-left: 3px solid var(--line); }
.job-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.job-message p { color: var(--ink); font-size: 14px; margin: 0; }
.job-response { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 14px; }
.job-response label, .job-photos label { font-size: 11px; color: var(--ink-subtle); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; display: block; margin-bottom: 6px; }
.job-photos { margin-top: 12px; }
.job-photos img { max-width: 240px; max-height: 180px; border-radius: var(--radius); border: 1px solid var(--line); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.photo-item { display: flex; flex-direction: column; gap: 4px; }
.photo-item img { width: 100%; height: 140px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }

/* ── Expand/collapse message ── */
.btn-expand {
  background: none;
  border: none;
  color: var(--green);
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  font-weight: 600;
}
.btn-expand:hover { text-decoration: underline; }
.msg-cell { max-width: 260px; }
.msg-long { display: block; white-space: normal; }

/* ── Required mark ── */
.required-mark { color: var(--coral); font-size: 13px; }

/* ── Contact panel ── */
.contact-panel { padding: 0; overflow: hidden; }
.contact-row {
  display: flex; align-items: baseline; gap: 12px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}
.contact-row:last-child { border-bottom: none; }
.contact-label {
  width: 140px; flex-shrink: 0;
  font-size: 11px; font-weight: 700;
  color: var(--ink-subtle);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Issues list ── */
.issues-list { list-style: none; padding: 0; margin: 0; }
.issue-item {
  display: flex; align-items: baseline; gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
  flex-wrap: wrap;
}
.issue-item:last-child { border-bottom: none; }
.issue-date { flex-shrink: 0; width: 90px; color: var(--ink-muted); }
.issue-msg { flex: 1; min-width: 0; color: var(--ink); }
.badge--sm { font-size: 11px; padding: 1px 8px; }

/* ── Sticky save bar (onboarding) ── */
.sticky-save-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1000;
  background: var(--green);
  color: #fff;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 -6px 20px rgba(13, 59, 46, 0.18);
  transform: translateY(100%);
  transition: transform 180ms ease-out;
}
.sticky-save-bar--visible { transform: translateY(0); }
.sticky-save-bar--saved { background: #0A5A3F; }
.sticky-save-bar--saved .sticky-save-msg::before {
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.3);
}
.sticky-save-bar--error { background: #8B1A14; }
.sticky-save-bar--error .sticky-save-msg::before {
  background: #F6B7B2;
  box-shadow: 0 0 0 3px rgba(210, 53, 44, 0.3);
}
.sticky-save-msg { font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.sticky-save-msg::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(245, 176, 65, 0.3);
}
.sticky-save-actions { display: flex; gap: 10px; }
.sticky-save-bar .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.sticky-save-bar .btn-secondary:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.sticky-save-bar .btn-primary {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--green);
  padding: 10px 20px;
}
.sticky-save-bar .btn-primary:hover { background: #16A34A; color: #fff; }
.btn-form-end { margin-bottom: 110px; }

/* ── Pricing / safety ── */
.pdf-upload {
  margin-top: 12px;
  padding: 14px;
  background: var(--cream-soft);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.pdf-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.safety-group {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--cream-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.safety-heading { margin: 0 0 8px; font-family: var(--serif); font-size: 15px; font-weight: 700; color: var(--ink); }
.safety-list { margin: 0; padding-left: 20px; color: var(--ink-muted); font-size: 14px; line-height: 1.7; }
.safety-list li { margin-bottom: 4px; }

/* ── Conversation thread (client detail) ── */
.conversation-card { padding: 18px; }
.conversation-thread { display: flex; flex-direction: column; gap: 8px; }
.thread-day-sep {
  text-align: center;
  margin: 14px 0 4px;
  font-size: 11px;
  color: var(--ink-subtle);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  position: relative;
}
.thread-day-sep span { background: var(--paper); padding: 0 10px; position: relative; z-index: 1; }
.thread-day-sep::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 50%;
  border-top: 1px solid var(--line-soft);
  z-index: 0;
}

/* ── Outcome list ── */
.outcome-list { list-style: none; padding: 0; margin: 0; }
.outcome-item {
  display: flex; gap: 10px; align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
  flex-wrap: wrap;
}
.outcome-item:last-child { border-bottom: none; }
.outcome-msg { flex: 1; min-width: 180px; color: var(--ink); }

/* ── Alerts / failed send ── */
.section-alert { color: #8B1A14; display: flex; align-items: center; gap: 10px; }
.failed-send-card { border-left: 4px solid var(--coral); background: #FDF4F2; }
.send-error-box {
  margin: 10px 0;
  padding: 10px 12px;
  background: #FDE1DE;
  border: 1px solid #F6B7B2;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: #7F1D1D;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  word-break: break-word;
}

/* ── Booking rows ── */
.booking-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 14px;
  margin: 12px 0;
  background: var(--green-tint);
  border: 1px solid #C5DAD0;
  border-radius: var(--radius);
  font-size: 14px;
}
.booking-label { color: var(--green); font-weight: 600; }
.booking-duration { color: var(--green); font-size: 13px; font-weight: 500; }
.booking-toggle { margin-left: auto; font-size: 13px; }
.booking-row--big { background: #FFF3CD; border-color: #FADF99; }
.booking-row--big .booking-label { color: #7A4E0A; }
.booking-row--big .booking-duration { color: #7A4E0A; }
.booking-big-tag {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: #7A4E0A;
  background: #FADF99;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

/* ── In-draft conversation thread ── */
.thread { margin-bottom: 16px; }
.thread-messages {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
  padding: 12px 14px;
  background: var(--cream-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  max-height: 320px;
  overflow-y: auto;
}
.thread-turn {
  display: flex;
  flex-direction: column;
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 13px;
  max-width: 85%;
}
.thread-turn--user {
  align-self: flex-start;
  background: var(--paper);
  border: 1px solid var(--line-soft);
}
.thread-turn--assistant {
  align-self: flex-end;
  background: var(--green-tint);
  border: 1px solid #C5DAD0;
}
.thread-role {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}
.thread-time { font-size: 11px; margin-bottom: 2px; color: var(--ink-subtle); }
.thread-text { margin: 2px 0 0; white-space: pre-wrap; color: var(--ink); }

/* ── Thank-you / confirmation ── */
.ta-center { text-align: center; }
.check-icon {
  width: 64px; height: 64px;
  background: var(--lime);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  margin: 0 auto 24px;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.15);
}

/* ── Public hero (index.html) ── */
.hero {
  text-align: left;
  margin: 24px 0 40px;
  width: 100%;
}
.hero .eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--green);
  margin-bottom: 16px;
}
.hero h1 {
  font-size: 84px;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: #000;
}
.hero p {
  font-size: 20px;
  line-height: 1.45;
  color: var(--ink);
  max-width: 52ch;
  font-weight: 400;
}

/* ── Loud strategic blocks (postcard ribbons) ── */
.ribbon {
  display: block;
  background: var(--green);
  color: #fff;
  padding: 18px 24px;
  border-radius: var(--radius);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin: 28px 0;
}
.ribbon strong { color: var(--lime); }

.panel--green {
  background: var(--green);
  color: #fff;
  border: 2px solid var(--lime);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 28px 0;
}
.panel--green h2, .panel--green h3 { color: #fff; }
.panel--green p { color: #E5EFEA; }
.panel--green a { color: var(--lime); }

.footer-strip {
  margin-top: 56px;
  background: var(--green);
  color: #fff;
  padding: 18px 24px;
  border-radius: var(--radius);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
}
.footer-strip a { color: #fff; text-decoration: none; }
.footer-strip a:hover { color: var(--lime); }
.footer-strip .dot { color: var(--lime); }

/* ── Stronger primary button (postcard "Scan to try it" density) ── */
.btn-primary--lg {
  padding: 16px 32px;
  font-size: 17px;
  font-weight: 700;
}

/* ── Footer ── */
.site-footer {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-subtle);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer a { color: var(--ink-muted); }

/* ── Today screen: mobile app surface ── */
.container--today {
  width: min(100%, 486px);
  max-width: 486px;
  padding: 10px 12px 48px;
}
.container--today .topbar {
  margin: 0;
  padding: 22px 22px 18px;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 12px 28px rgba(13, 59, 46, 0.16);
}
.container--today .brand {
  font-family: var(--sans);
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.05em;
}
.container--today .brand::before { font-size: 16px; }
.container--today .topbar nav {
  width: 100%;
  margin-top: 18px;
  gap: 8px;
  justify-content: flex-start;
  overflow-x: auto;
  flex-wrap: nowrap;
  scrollbar-width: none;
}
.container--today .topbar nav::-webkit-scrollbar { display: none; }
.container--today .topbar nav a {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  font-size: 12px;
}
.container--today .topbar nav a.active {
  background: var(--green-tint);
  color: var(--green);
}
.today-app {
  padding: 20px 16px 26px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 28px 28px;
  box-shadow: 0 18px 42px rgba(15, 27, 23, 0.12);
}
.today-app section { margin-top: 28px; }
.today-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 6px;
}
.today-hero .eyebrow {
  color: var(--ink-muted);
  margin: 0 0 4px;
}
.today-date {
  color: var(--green);
  font-size: 15px;
  font-weight: 800;
  margin: 0;
}
.today-business {
  max-width: 190px;
  text-align: right;
  font-size: 13px;
  line-height: 1.35;
}
.today-section-title {
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.today-stack { display: grid; gap: 10px; }
.today-card {
  background: var(--paper);
  border: 1px solid rgba(217, 208, 188, 0.75);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 1px 0 rgba(13, 59, 46, 0.04), 0 8px 20px rgba(15, 27, 23, 0.035);
}
.today-calendar-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 84px;
}
.today-time {
  color: var(--green);
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}
.today-card h3 {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin: 0 0 5px;
}
.today-card h3 a {
  color: var(--ink);
  text-decoration: none;
}
.today-card h3 a:hover { color: var(--green); }
.today-card h3 span,
.today-meta,
.today-customer,
.today-message,
.today-quote {
  color: var(--ink-muted);
  margin: 0;
}
.today-meta,
.today-customer,
.today-message { font-size: 15px; line-height: 1.32; }
.today-customer {
  font-weight: 700;
  margin-bottom: 3px;
}
.today-message {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.today-empty-card {
  min-height: 96px;
  display: grid;
  place-items: center;
  text-align: center;
}
.today-empty-card p { margin: 0; color: var(--ink-muted); }
.today-inbox-card {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
}
.today-inbox-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}
.today-time-small {
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.today-pill-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.today-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 7px 14px;
  border-radius: 10px;
  background: var(--cream-soft);
  color: var(--ink-muted);
  font-weight: 800;
  font-size: 13px;
  line-height: 1.1;
}
.today-pill--booked {
  background: var(--green-tint);
  color: #0B7A4B;
}
.today-inbox-card .badge {
  border-radius: 8px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 800;
}
.today-quote {
  font-size: 16px;
  color: var(--ink-muted);
  padding: 8px 10px;
  border: 1px solid #C5DAD0;
  border-radius: 10px;
  background: var(--green-tint);
}
.today-quote strong {
  color: var(--ink);
  font-weight: 900;
}
.today-quote--mobile { display: none; }
.today-error {
  color: var(--coral);
  font-weight: 700;
  margin: 0;
  font-size: 13px;
}

/* ── Jobs: polished responsive work board ── */
.container--jobs {
  max-width: 1180px;
  padding-top: 10px;
}
.container--jobs .topbar {
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(13, 59, 46, 0.12);
}
.jobs-main { padding-top: 12px; }
.jobs-list-hero,
.job-detail-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 28px;
}
.jobs-list-hero h1,
.job-detail-hero h1 {
  max-width: 780px;
  margin-bottom: 10px;
  letter-spacing: -0.055em;
}
.jobs-count-card,
.job-next-action {
  min-width: 164px;
  padding: 18px;
  border-radius: 20px;
  background: var(--green);
  color: #fff;
  text-align: right;
  box-shadow: 0 14px 30px rgba(13, 59, 46, 0.18);
}
.jobs-count-card strong,
.job-next-action strong {
  display: block;
  font-family: var(--sans);
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}
.jobs-count-card span,
.job-next-action span {
  display: block;
  margin-top: 8px;
  color: #CFE0D8;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.job-next-action--danger { background: var(--coral); }
.job-next-action--secondary {
  background: var(--paper);
  color: var(--green);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(15, 27, 23, 0.08);
}
.job-next-action--secondary span { color: var(--ink-muted); }
.job-stage-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(190px, 1fr));
  gap: 14px;
  align-items: start;
}
.job-stage {
  background: rgba(255,255,255,0.42);
  border: 1px solid rgba(217, 208, 188, 0.8);
  border-radius: 20px;
  padding: 12px;
  min-height: 180px;
}
.job-stage:not([open]) { min-height: 0; }
.job-stage-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  cursor: pointer;
  list-style: none;
  gap: 8px;
}
.job-stage-head::-webkit-details-marker { display: none; }
.job-stage-head::after {
  content: 'Hide';
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--cream-soft);
  color: var(--ink-subtle);
  font-size: 11px;
  font-weight: 800;
}
.job-stage:not([open]) .job-stage-head { margin-bottom: 0; }
.job-stage:not([open]) .job-stage-head::after { content: 'Show'; }
.job-stage-head h2 {
  font-family: var(--sans);
  font-size: 13px;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-muted);
}
.job-stage-head span {
  min-width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--paper);
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}
.job-card-stack { display: grid; gap: 10px; }
.job-list-card {
  display: grid;
  gap: 9px;
  padding: 14px;
  border-radius: 16px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(13, 59, 46, 0.03);
}
.job-list-card:hover {
  transform: translateY(-1px);
  border-color: rgba(13, 59, 46, 0.32);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(15, 27, 23, 0.08);
}
.job-list-card-top,
.job-list-card-foot,
.job-hero-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.job-list-card h3 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.03em;
  margin: 0;
}
.job-list-card p {
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}
.job-list-card-foot {
  color: var(--ink-muted);
  font-size: 12px;
}
.job-list-card-foot strong {
  color: var(--ink);
  margin-left: auto;
}
.job-stage-empty {
  padding: 16px;
  border-radius: 14px;
  color: var(--ink-subtle);
  background: var(--cream-soft);
  font-size: 13px;
  text-align: center;
}
.job-status {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
}
.job-status--attention { background: #FDE1DE; color: #8B1A14; }
.job-status--new { background: #E0EDFF; color: #1E40AF; }
.job-status--quoted { background: #FFF3CD; color: #7A4E0A; }
.job-status--booked { background: var(--green-tint); color: var(--green); }
.job-status--completed { background: var(--cream-soft); color: var(--ink-muted); }
.job-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: start;
}
.job-main-column,
.job-side-column {
  display: grid;
  gap: 16px;
}
.job-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 10px 24px rgba(15, 27, 23, 0.045);
}
.job-panel h2 {
  font-family: var(--sans);
  font-size: 13px;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}
.job-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.job-panel-head h2 { margin: 0; }
.job-body-text {
  font-size: 17px;
  line-height: 1.62;
  margin: 0;
}
.job-field-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid var(--line-soft);
}
.job-field-row span {
  color: var(--ink-subtle);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.job-field-row strong {
  text-align: right;
  color: var(--ink);
}
.job-quote-big {
  font-family: var(--sans);
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--green);
}
.job-response-box {
  padding: 15px;
  border-radius: 14px;
  background: var(--cream-soft);
  border: 1px solid var(--line-soft);
}
.job-response-box span {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-subtle);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.job-response-box p,
.job-outcome-form label { margin: 0; }
.job-photo-frame img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
}
.job-client-card {
  display: grid;
  gap: 8px;
}
.job-outcome-form {
  display: grid;
  gap: 10px;
}

/* ── Quotes & invoices: money pipeline ── */
.container--money {
  max-width: 1180px;
  padding-top: 10px;
}
.container--money .topbar {
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(13, 59, 46, 0.12);
}
.money-main { padding-top: 12px; }
.money-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 22px;
}
.money-hero h1 {
  max-width: 780px;
  margin-bottom: 10px;
  letter-spacing: -0.055em;
}
.money-hero-card {
  min-width: 190px;
  padding: 20px;
  border-radius: 22px;
  background: var(--green);
  color: #fff;
  text-align: right;
  box-shadow: 0 14px 30px rgba(13, 59, 46, 0.18);
}
.money-hero-card span,
.money-hero-card small {
  display: block;
  color: #CFE0D8;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.money-hero-card strong {
  display: block;
  margin: 8px 0;
  font-family: var(--sans);
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
}
.money-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.money-summary-card,
.money-panel,
.money-quote-card {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(15, 27, 23, 0.045);
}
.money-summary-card {
  padding: 18px;
  border-radius: 20px;
}
.money-summary-card--primary {
  background: linear-gradient(135deg, var(--green), #135640);
  color: #fff;
  border-color: transparent;
}
.money-summary-card span,
.money-panel h2,
.money-next-action span,
.money-invoice-grid span {
  display: block;
  color: var(--ink-subtle);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.money-summary-card--primary span,
.money-summary-card--primary p { color: #CFE0D8; }
.money-summary-card strong {
  display: block;
  margin: 8px 0 6px;
  color: var(--green);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
}
.money-summary-card--primary strong { color: #fff; }
.money-summary-card p {
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.35;
  margin: 0;
}
.money-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: start;
}
.money-panel {
  border-radius: 22px;
  padding: 22px;
}
.money-panel h2 {
  font-family: var(--sans);
  font-size: 13px;
  margin: 0 0 12px;
  color: var(--ink-muted);
}
.money-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}
.money-panel-head h2 { margin-bottom: 4px; }
.money-quote-stack {
  display: grid;
  gap: 12px;
}
.money-quote-card {
  display: grid;
  gap: 13px;
  padding: 16px;
  border-radius: 18px;
  color: var(--ink);
  text-decoration: none;
}
.money-quote-card:hover {
  transform: translateY(-1px);
  border-color: rgba(13, 59, 46, 0.32);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(15, 27, 23, 0.08);
}
.money-quote-top,
.money-quote-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.money-quote-top { justify-content: space-between; }
.money-quote-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}
.money-quote-main h3 {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.035em;
  margin: 0 0 5px;
}
.money-quote-main p,
.money-quote-meta {
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
}
.money-quote-main strong {
  color: var(--green);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.045em;
  white-space: nowrap;
}
.money-next-action {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--cream-soft);
  border: 1px solid var(--line-soft);
}
.money-next-action strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}
.money-side {
  display: grid;
  gap: 16px;
}
.money-invoice-grid {
  display: grid;
  gap: 10px;
}
.money-invoice-grid div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}
.money-invoice-grid div:last-child { border-bottom: none; }
.money-invoice-grid strong {
  color: var(--green);
  font-size: 18px;
}
.money-empty,
.money-pdf-empty {
  padding: 24px;
  border-radius: 18px;
  background: var(--cream-soft);
  border: 1px dashed var(--line);
  text-align: center;
}
.money-empty--compact { padding: 18px; }
.money-empty strong,
.money-pdf-empty strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}
.money-empty p,
.money-pdf-empty p {
  color: var(--ink-muted);
  margin: 0;
}
.money-pdf-icon {
  width: 58px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  border-radius: 12px;
  background: var(--paper);
  color: var(--coral);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .container { padding: 0 18px 60px; }
  h1 { font-size: 38px; }
  .hero h1 { font-size: 52px; }
  .hero p { font-size: 17px; }
  .two-col { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .topbar { padding: 14px 18px; margin: 0 -18px 24px; }
  .topbar nav { gap: 10px 14px; justify-content: flex-start; width: 100%; margin-top: 10px; }
  .brand { font-size: 22px; }
  .today-hero { display: block; }
  .today-business { align-items: flex-start; }
  .today-calendar-card { grid-template-columns: 1fr; gap: 8px; }
  .today-inbox-head { display: block; }
  .jobs-list-hero,
  .job-detail-hero,
  .money-hero { display: block; }
  .jobs-count-card,
  .job-next-action,
  .money-hero-card {
    margin-top: 18px;
    text-align: left;
  }
  .money-summary-grid { grid-template-columns: 1fr 1fr; }
  .money-layout { grid-template-columns: 1fr; }
  .money-side { order: -1; }
  .money-panel { padding: 18px; }
  .money-quote-main { grid-template-columns: 1fr; gap: 8px; }
  .money-quote-main strong { font-size: 28px; }
  .job-stage-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
  .job-stage { padding: 14px; }
  .job-detail-layout { grid-template-columns: 1fr; }
  .job-side-column { order: -1; }
  .job-panel { padding: 18px; }
  .job-panel-head { align-items: flex-start; }
  .job-field-row {
    display: grid;
    gap: 4px;
  }
  .job-field-row strong { text-align: left; }
  .job-quote-big { font-size: 26px; }
  .ribbon { font-size: 17px; padding: 14px 18px; }
  .client-stats { gap: 16px; }
}

@media (max-width: 720px) {
  .topbar {
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
  }
  .brand {
    min-width: 0;
    flex: 1 1 auto;
  }
  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
  }
  .mobile-menu-toggle:focus-visible {
    outline: 3px solid rgba(34, 197, 94, 0.45);
    outline-offset: 2px;
  }
  .topbar nav,
  .container--today .topbar nav {
    display: none;
    width: 100%;
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    overflow: visible;
    scrollbar-width: auto;
  }
  .topbar--nav-open nav,
  .container--today .topbar--nav-open nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .topbar nav a,
  .container--today .topbar nav a {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #E5EFEA;
    white-space: normal;
    font-size: 14px;
  }
  .topbar nav a.active,
  .container--today .topbar nav a.active {
    background: var(--green-tint);
    color: var(--green);
  }
  .container--today .topbar {
    padding: 18px 18px 16px;
  }
  .today-quote--desktop { display: none; }
  .today-quote--mobile {
    display: block;
    margin: 6px 0 5px;
    color: var(--green);
    font-size: 15px;
    line-height: 1.2;
  }
  .today-message {
    -webkit-line-clamp: 1;
  }
  .client-grid {
    grid-template-columns: 1fr;
  }
  .client-card {
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
  }
  .client-card-meta {
    align-items: flex-start;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .client-card {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
  }
  .client-card-meta {
    grid-column: 2;
  }
  .contact-row {
    display: grid;
    gap: 4px;
  }
  .contact-label {
    width: auto;
  }
}

/* ============================================================
   Demo-ready owner UI — added 2026-05-21
   Pages: /calendar, /inbox, /jobs (calendar grid), /demo
   ============================================================ */

.page--app { background: #F6F1E5; }
.container--app { max-width: 960px; padding: 0; }
.container--app .topbar { border-radius: 0; }
.container--app .app-main { padding: 16px; }
.container--app .app-main--flush { padding: 0; }

.nav-badge {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  font-size: 0.7rem;
  background: #D2352C;
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1.4;
}

/* --- Calendar (day view) --- */
.day-stepper {
  padding: 14px 4px 10px;
  font-family: var(--sans);
  font-size: 1.3rem;
  letter-spacing: 0.01em;
}
.cal-day-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.cal-day-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 10px;
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(13,59,46,0.08);
}
.cal-day-time { font-weight: 600; font-variant-numeric: tabular-nums; color: #0D3B2E; }
.cal-day-body h3 { margin: 0 0 4px; font-size: 1rem; line-height: 1.3; }
.cal-day-body h3 a { color: #0F1B17; text-decoration: none; }
.cal-day-meta { margin: 0; font-size: 0.9rem; color: #555; }

.empty-block {
  background: #fff;
  border: 1px dashed rgba(13,59,46,0.2);
  padding: 24px;
  border-radius: 12px;
  text-align: center;
}

/* --- Inbox (WhatsApp-style thread list) --- */
.thread-list { list-style: none; padding: 0; margin: 0; }
.thread-row { border-bottom: 1px solid rgba(13,59,46,0.08); background: #fff; }
.thread-row > a {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 12px 16px;
  text-decoration: none;
  color: inherit;
}
.thread-row--unread { background: #FFFDF6; }
.thread-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: #0D3B2E; color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 1.1rem;
}
.thread-body { min-width: 0; }
.thread-line-1, .thread-line-2, .thread-line-3 {
  display: flex; align-items: center; gap: 8px;
}
.thread-line-1 strong { font-size: 0.98rem; }
.thread-line-1 .thread-time { margin-left: auto; font-size: 0.78rem; color: #777; }
.thread-snippet { font-size: 0.88rem; color: #555; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.thread-dot { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; flex-shrink: 0; }
.thread-line-3 { margin-top: 4px; flex-wrap: wrap; gap: 6px; }
.thread-pill {
  font-size: 0.72rem; padding: 2px 8px; border-radius: 999px;
  background: rgba(13,59,46,0.08); color: #0D3B2E; font-weight: 600;
}
.thread-pill--booked { background: #22C55E; color: #fff; }
.thread-quote { font-weight: 700; font-size: 0.85rem; color: #0D3B2E; }
.thread-error { margin: 4px 0 0; color: #D2352C; font-size: 0.8rem; }

/* --- Jobs: pipeline strip + calendar grid --- */
.pipeline-strip {
  display: flex; gap: 6px; padding: 12px 0; flex-wrap: wrap;
  border-bottom: 1px solid rgba(13,59,46,0.08);
}
.pipeline-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(13,59,46,0.06); color: #0F1B17;
  font-size: 0.85rem; font-weight: 600; text-decoration: none;
  border: 1px solid transparent;
}
.pipeline-chip span { font-weight: 700; opacity: 0.7; }
.pipeline-chip.is-active { background: #0D3B2E; color: #fff; }
.pipeline-chip.is-active span { opacity: 1; }
.pipeline-chip--alert { background: rgba(210,53,44,0.12); color: #D2352C; }

.cal-view-tabs { display: flex; gap: 4px; padding: 10px 0 6px; }
.cal-view-tab {
  padding: 6px 12px; border-radius: 8px;
  background: transparent; color: #0F1B17;
  font-size: 0.85rem; font-weight: 600; text-decoration: none;
}
.cal-view-tab.is-active { background: #0D3B2E; color: #fff; }

.cal-grid {
  --cols: 7;
  background: #fff; border-radius: 12px;
  border: 1px solid rgba(13,59,46,0.08);
  overflow: hidden; margin-top: 8px;
}
.cal-grid--day { --cols: 1; }
.cal-grid--3day { --cols: 3; }
.cal-grid--week { --cols: 7; }

.cal-grid-head {
  display: grid;
  grid-template-columns: 44px repeat(var(--cols), 1fr);
  background: #0D3B2E; color: #fff;
}
.cal-grid-corner { }
.cal-grid-day {
  padding: 8px 6px; text-align: center;
  border-left: 1px solid rgba(255,255,255,0.08);
  font-size: 0.78rem; line-height: 1.1;
  display: grid; gap: 2px;
}
.cal-grid-day.is-today { background: rgba(255,255,255,0.1); }
.cal-day-num { font-weight: 700; font-size: 0.95rem; }

.cal-grid-body {
  display: grid;
  grid-template-columns: 44px repeat(var(--cols), 1fr);
  position: relative;
}
.cal-hour-rail {
  display: grid;
  grid-template-rows: repeat(var(--rows), 48px);
  font-size: 0.7rem; color: #777;
}
.cal-hour-tick { border-top: 1px solid rgba(13,59,46,0.06); padding: 2px 4px; }
.cal-grid-col {
  display: grid;
  grid-template-rows: repeat(var(--rows), 48px);
  position: relative;
  border-left: 1px solid rgba(13,59,46,0.06);
}
.cal-grid-cell { border-top: 1px solid rgba(13,59,46,0.06); }
.cal-event {
  position: absolute; left: 3px; right: 3px;
  background: #22C55E; color: #fff;
  border-radius: 6px; padding: 4px 6px;
  font-size: 0.72rem; line-height: 1.15;
  display: grid; gap: 1px;
  overflow: hidden;
  text-decoration: none;
}
.cal-event--attention { background: #D2352C; }
.cal-event--quoted { background: #0D3B2E; }
.cal-event--completed { background: #6b7280; }
.cal-event-time { font-weight: 700; }
.cal-event-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-event-name { opacity: 0.85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.cal-section-title {
  font-family: var(--sans);
  font-size: 1.1rem; margin: 18px 0 8px;
}
.job-card-stack--list { display: grid; gap: 8px; }

/* --- Demo page --- */
.container--demo { max-width: 480px; padding: 0; }
.page--demo { background: #F6F1E5; min-height: 100vh; }
.topbar--demo { background: #0D3B2E; }
.demo-main { padding: 24px 20px 60px; }
.demo-hero { margin-bottom: 28px; text-align: center; }
.demo-hero h1 { font-family: var(--sans); font-size: 1.8rem; margin: 6px 0 8px; }
.demo-hero .subtitle { color: #555; margin: 0; }

.demo-actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.demo-action {
  background: #fff; border: 1px solid rgba(13,59,46,0.1);
  border-radius: 14px; padding: 22px 12px; cursor: pointer;
  display: grid; gap: 4px; text-align: center;
  font: inherit; color: inherit; text-decoration: none;
}
.demo-action:hover { border-color: #0D3B2E; }
.demo-action-icon { font-size: 2rem; }
.demo-action-label { font-weight: 700; font-size: 1.05rem; }
.demo-action-hint { font-size: 0.78rem; color: #777; }
.demo-action--call { background: #0D3B2E; color: #fff; border-color: #0D3B2E; }
.demo-action--call .demo-action-hint { color: rgba(255,255,255,0.7); }

.demo-chat {
  margin-top: 22px; background: #fff;
  border-radius: 14px; border: 1px solid rgba(13,59,46,0.1);
  overflow: hidden; display: flex; flex-direction: column;
  max-height: 70vh;
}
.demo-chat-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; border-bottom: 1px solid rgba(13,59,46,0.08);
  background: #F8F4EA;
}
.link-btn { background: none; border: 0; color: #0D3B2E; font: inherit; cursor: pointer; text-decoration: underline; font-size: 0.8rem; }
.demo-chat-body {
  padding: 12px; display: flex; flex-direction: column; gap: 8px;
  overflow-y: auto; min-height: 240px; max-height: 50vh;
  background: #FDFBF5;
}
.chat-bubble {
  max-width: 78%; padding: 8px 12px; border-radius: 14px;
  font-size: 0.92rem; line-height: 1.35;
  white-space: pre-wrap; word-wrap: break-word;
}
.chat-bubble--user { background: #0D3B2E; color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-bubble--agent { background: #fff; color: #0F1B17; align-self: flex-start; border: 1px solid rgba(13,59,46,0.08); border-bottom-left-radius: 4px; }
.chat-bubble--system { align-self: center; font-size: 0.78rem; color: #777; font-style: italic; background: transparent; }
.demo-chat-form {
  display: flex; gap: 8px; padding: 10px;
  border-top: 1px solid rgba(13,59,46,0.08);
}
.demo-chat-form input {
  flex: 1; padding: 10px 12px; border-radius: 999px;
  border: 1px solid rgba(13,59,46,0.15); font: inherit;
}
.demo-chat-form button {
  padding: 10px 18px; border-radius: 999px;
  background: #22C55E; color: #fff; border: 0;
  font-weight: 600; cursor: pointer;
}
.demo-chat-form button:disabled { opacity: 0.6; cursor: wait; }
.demo-chat-foot { padding: 0 14px 10px; margin: 0; }

@media (max-width: 600px) {
  .container--app { padding: 0; }
  .container--app .app-main { padding: 12px; }
  .container--app .app-main--flush { padding: 0; }
  .cal-day-row { grid-template-columns: 70px 1fr; }
  .thread-row > a { padding: 10px 12px; }
  .cal-grid-head, .cal-grid-body { font-size: 0.72rem; }
}

/* Demo round 2: call overlay, slimmer chat, full nav */
.topbar--demo { background: #0D3B2E; }
.topbar--demo nav a { color: rgba(255,255,255,0.85); }
.topbar--demo nav a.active { color: #fff; }

.demo-main { padding: 24px 16px 60px; max-width: 480px; margin: 0 auto; }
.demo-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.demo-action {
  background: #fff; border: 1px solid rgba(13,59,46,0.1);
  border-radius: 14px; padding: 26px 12px; cursor: pointer;
  display: grid; gap: 6px; text-align: center;
  font: inherit; color: inherit; text-decoration: none;
}
.demo-action[disabled] { opacity: 0.4; cursor: not-allowed; }
.demo-action--call { background: #22C55E; color: #fff; border-color: #22C55E; }
.demo-action--chat { background: #0D3B2E; color: #fff; border-color: #0D3B2E; }
.demo-action-icon { font-size: 1.9rem; }
.demo-action-label { font-weight: 700; font-size: 1.05rem; }

/* Strip the round-1 chrome */
.demo-chat { margin-top: 16px; background: #fff; border-radius: 14px; border: 1px solid rgba(13,59,46,0.1); overflow: hidden; display: flex; flex-direction: column; max-height: 70vh; }
.demo-chat-head, .demo-chat-foot { display: none; }
.demo-chat-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; min-height: 280px; max-height: 56vh; background: #ECE5DA; }
.demo-chat-form { display: flex; gap: 8px; padding: 8px; border-top: 1px solid rgba(13,59,46,0.08); background: #F6F1E5; }
.demo-chat-form input { flex: 1; padding: 10px 14px; border-radius: 999px; border: 1px solid rgba(13,59,46,0.15); font: inherit; background: #fff; }
.demo-chat-form button { width: 40px; height: 40px; border-radius: 50%; background: #22C55E; color: #fff; border: 0; font-size: 1.2rem; font-weight: 700; cursor: pointer; }

/* Call overlay */
.call-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: linear-gradient(180deg, #0D3B2E 0%, #062119 100%);
  display: grid; place-items: center;
  color: #fff;
}
.call-overlay[hidden] { display: none; }
.call-overlay-inner { display: grid; gap: 14px; justify-items: center; padding: 40px; }
.call-orb {
  width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #4ade80, #22C55E 60%, #0a4a3a);
  box-shadow: 0 0 60px rgba(34,197,94,0.4), 0 0 120px rgba(34,197,94,0.2);
  animation: callPulse 1.6s ease-in-out infinite;
}
@keyframes callPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 60px rgba(34,197,94,0.4), 0 0 120px rgba(34,197,94,0.2); }
  50% { transform: scale(1.05); box-shadow: 0 0 80px rgba(34,197,94,0.6), 0 0 160px rgba(34,197,94,0.3); }
}
.call-name { font-size: 1.6rem; font-weight: 600; margin: 8px 0 0; }
.call-state { color: rgba(255,255,255,0.7); margin: 0; font-size: 0.95rem; }
.call-timer { font-size: 1.1rem; font-variant-numeric: tabular-nums; color: rgba(255,255,255,0.7); margin: 0; }
.call-end {
  margin-top: 24px; width: 68px; height: 68px; border-radius: 50%;
  background: #D2352C; color: #fff; border: 0; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(210,53,44,0.45);
}
body.call-active { overflow: hidden; }

/* Brief: quickfill + connect blocks */
.brief-quickfill, .brief-connect { margin-bottom: 16px; }
.brief-quickfill h2, .brief-connect h2 { margin-top: 0; }
.brief-quickfill-row { display: flex; gap: 8px; flex-wrap: wrap; }
.brief-quickfill-row input[type="url"] {
  flex: 1; min-width: 200px;
  padding: 10px 14px; border-radius: 10px;
  border: 1px solid rgba(13,59,46,0.2); font: inherit; background: #fff;
}
.brief-autogen-status { margin: 10px 0 0; font-size: 0.9rem; }
.brief-autogen-status[data-kind="ok"] { color: #0D3B2E; font-weight: 600; }
.brief-autogen-status[data-kind="error"] { color: #D2352C; }
.brief-connect-status { font-weight: 600; margin: 0 0 8px; }
.brief-connect-status--on { color: #22C55E; }

/* Paperwork (former Quotes & Invoices) */
.paperwork-totals {
  display: flex; gap: 18px; flex-wrap: wrap;
  padding: 14px 4px; border-bottom: 1px solid rgba(13,59,46,0.08);
  font-size: 0.9rem; color: #555;
}
.paperwork-totals strong { color: #0F1B17; margin-left: 6px; }
.paperwork-list { list-style: none; padding: 0; margin: 0; }
.paperwork-row {
  display: grid; grid-template-columns: 1fr auto; gap: 8px;
  align-items: center;
  background: #fff; border-radius: 12px; padding: 12px 14px;
  border: 1px solid rgba(13,59,46,0.08);
  margin-top: 10px;
}
.paperwork-main { display: flex; justify-content: space-between; gap: 12px; align-items: center; text-decoration: none; color: inherit; min-width: 0; }
.paperwork-left { display: grid; gap: 4px; min-width: 0; }
.paperwork-left strong { font-size: 0.98rem; }
.paperwork-meta { font-size: 0.85rem; color: #777; }
.paperwork-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.paperwork-amount { font-weight: 700; font-size: 1.05rem; color: #0D3B2E; }
.paperwork-pdf {
  display: inline-flex; gap: 6px; align-items: center;
  padding: 8px 12px; border-radius: 8px;
  background: #0D3B2E; color: #fff; text-decoration: none;
  font-size: 0.85rem; font-weight: 600;
}
.paperwork-pdf-icon {
  background: #22C55E; color: #fff;
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.05em;
  padding: 2px 6px; border-radius: 4px;
}
@media (max-width: 600px) {
  .paperwork-row { grid-template-columns: 1fr; }
  .paperwork-pdf { justify-content: center; }
}

/* Demo round 3: Apple-style round buttons, calmer hero, chat hidden by default */
.page--demo .demo-main { padding: 32px 20px 60px; max-width: 460px; }
.demo-hero { text-align: center; margin-bottom: 28px; }
.demo-hero h1 {
  font-family: var(--sans);
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.demo-hero .subtitle {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: #666;
  margin: 0;
}

/* Round action buttons (Apple Phone app feel) */
.demo-actions {
  display: flex; gap: 32px;
  justify-content: center;
  margin: 16px 0 8px;
}
.demo-action {
  width: 84px; height: 84px;
  border-radius: 50%;
  border: 0;
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  transition: transform 0.1s ease;
  padding: 0;
}
.demo-action:active { transform: scale(0.96); }
.demo-action--call { background: #34C759; color: #fff; }
.demo-action--chat { background: #8E8E93; color: #fff; }
.demo-action[disabled] { opacity: 0.4; cursor: not-allowed; }

/* Chat panel — only visible when Chat is tapped */
.demo-chat {
  margin-top: 24px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(13,59,46,0.1);
  overflow: hidden;
  display: flex; flex-direction: column;
  max-height: 70vh;
}
.demo-chat[hidden] { display: none !important; }
.demo-chat-head, .demo-chat-foot { display: none; }
.demo-chat-body {
  padding: 12px; display: flex; flex-direction: column; gap: 8px;
  overflow-y: auto; min-height: 240px; max-height: 50vh;
  background: #ECE5DA;
}
.demo-chat-form {
  display: flex; gap: 8px; padding: 8px;
  border-top: 1px solid rgba(13,59,46,0.08); background: #F6F1E5;
}
.demo-chat-form input {
  flex: 1; padding: 10px 14px; border-radius: 999px;
  border: 1px solid rgba(13,59,46,0.15); font: inherit; background: #fff;
}
.demo-chat-form button {
  width: 40px; height: 40px; border-radius: 50%;
  background: #34C759; color: #fff; border: 0;
  font-size: 1.2rem; font-weight: 700; cursor: pointer;
}

.demo-reset-form { margin-top: 28px; text-align: center; }
.demo-reset-btn {
  background: transparent; border: 1px solid rgba(13,59,46,0.2);
  color: #777; font: inherit; font-size: 0.85rem;
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
}
.demo-reset-btn:hover { color: var(--ink); }

/* Filter dropdown in the topbar (Inbox + Jobs) */
.topbar-filter {
  margin-left: auto;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 6px 10px;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}
.topbar-filter:focus { outline: 2px solid rgba(255,255,255,0.4); }
.topbar-filter option { background: var(--green); color: #fff; }

/* Jobs vertical feed */
.jobs-feed { display: grid; gap: 18px; padding: 12px 0 24px; }
.jobs-feed-week {
  display: flex; align-items: center; gap: 12px;
  padding: 4px 0;
}
.jobs-feed-week strong { font-weight: 600; font-size: 1rem; color: var(--ink); }
.jobs-feed-week .week-nav-btn {
  background: rgba(13,59,46,0.06);
  border: 0; border-radius: 8px; padding: 6px 10px;
  cursor: pointer; font: inherit;
}
.jobs-feed-day { display: grid; gap: 6px; }
.jobs-feed-daylabel {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
  padding: 4px 0;
  border-bottom: 1px solid rgba(13,59,46,0.08);
}
.jobs-feed-row {
  display: grid; grid-template-columns: 64px 1fr auto;
  gap: 10px; align-items: center;
  background: #fff; border-radius: 10px; padding: 10px 12px;
  border: 1px solid rgba(13,59,46,0.06);
  text-decoration: none; color: inherit;
}
.jobs-feed-time { font-weight: 700; color: var(--green); font-variant-numeric: tabular-nums; }
.jobs-feed-title { font-weight: 600; line-height: 1.3; }
.jobs-feed-sub { font-size: 0.85rem; color: #666; }
.jobs-feed-status { font-size: 0.7rem; padding: 3px 8px; border-radius: 999px; font-weight: 600; }
.jobs-feed-status--new { background: rgba(13,59,46,0.08); color: var(--green); }
.jobs-feed-status--quoted { background: rgba(13,59,46,0.08); color: var(--green); }
.jobs-feed-status--booked { background: #22C55E; color: #fff; }
.jobs-feed-status--attention { background: #D2352C; color: #fff; }
.jobs-feed-status--completed { background: #6b7280; color: #fff; }

/* Compact client detail header */
.client-detail-compact { display: grid; gap: 12px; padding: 4px 0 12px; }
.client-detail-compact h1 {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0;
}
.client-detail-compact .client-meta { font-size: 0.82rem; color: #666; display: flex; gap: 10px; flex-wrap: wrap; }
.client-detail-compact .client-summary {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px;
  font-size: 0.88rem;
  padding: 8px 12px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid rgba(13,59,46,0.06);
}
.client-detail-compact .client-summary span:first-child { color: #888; }
.client-detail-compact h2 {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #888;
  margin: 14px 0 6px;
  font-weight: 600;
}

/* Brief: collapsible sections, no serif */
.brief-quickfill h2, .brief-connect h2,
.form-section > h2 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0;
}
details.brief-section {
  background: #fff;
  border: 1px solid rgba(13,59,46,0.08);
  border-radius: 10px;
  margin-bottom: 10px;
  padding: 0;
}
details.brief-section[open] { padding-bottom: 14px; }
details.brief-section > summary {
  cursor: pointer; padding: 14px 16px;
  font-weight: 700; font-size: 0.98rem;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
}
details.brief-section > summary::-webkit-details-marker { display: none; }
details.brief-section > summary::after {
  content: '⌄'; color: #888; font-size: 1.2rem;
  transition: transform 0.2s ease;
}
details.brief-section[open] > summary::after { transform: rotate(180deg); }
details.brief-section > .form-section-inner { padding: 0 16px; }

/* Smaller page title sizes globally — kill the magazine vibe */
h1 { font-size: 1.4rem !important; letter-spacing: -0.01em; }
.day-stepper { font-size: 1.05rem !important; }
.cal-section-title { font-size: 0.95rem; letter-spacing: 0.02em; }

@media (max-width: 600px) {
  .topbar-filter { font-size: 0.78rem; padding: 4px 8px; }
  .demo-actions { gap: 24px; }
}
