/* =================================================================
   Quotrr IA v2 — Apple Mode
   One typeface family. Hierarchy by weight, not color.
   Generous whitespace. One primary action per surface.
   ================================================================= */

:root {
  /* Surfaces */
  --bg-app: #fbfbfd;
  --bg-page: #f5f6f8;
  --bg-card: #ffffff;
  --bg-frame: #1d1d1f;

  /* Ink */
  --ink-primary: #1d1d1f;
  --ink-secondary: #6e6e73;
  --ink-tertiary: #9aa3b2;

  /* Brand */
  --navy-from: #0a1e3a;
  --navy-to: #11315e;
  --sky: #0ea5e9;
  --teal-ring: #14b8a6;

  /* Money */
  --green-600: #059669;
  --green-700: #047857;
  --green-900: #064e3b;

  /* Signal */
  --red-dot: #ef4444;
  --amber: #f59e0b;

  /* Hairlines */
  --line-soft: rgba(0, 0, 0, 0.06);
  --line-softer: rgba(0, 0, 0, 0.04);

  /* Motion */
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg-app);
  color: var(--ink-primary);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Inter", "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
}

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

/* =================================================================
   Page chrome — for the docs/preview pages around the phone frames
   ================================================================= */

.doc {
  max-width: 1240px;
  margin: 0 auto;
  padding: 80px 32px 160px;
}

.doc-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky);
  margin: 0 0 12px;
}

.doc-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  color: var(--ink-primary);
  max-width: 18ch;
}

.doc-lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-secondary);
  max-width: 60ch;
  margin: 0 0 56px;
  font-weight: 400;
}

.doc-section-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 96px 0 24px;
  color: var(--ink-primary);
}

.doc-p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-secondary);
  max-width: 60ch;
  margin: 0 0 18px;
}

.doc-p strong {
  color: var(--ink-primary);
  font-weight: 600;
}

.doc-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 48px;
}

.doc-nav a {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  color: var(--ink-primary);
  text-decoration: none;
  transition: transform 120ms var(--ease), background 120ms var(--ease);
}

.doc-nav a:hover {
  background: var(--ink-primary);
  color: #fff;
}

.doc-nav a.active {
  background: var(--ink-primary);
  color: #fff;
}

/* =================================================================
   Phone frame — a real device shell, not a generic rectangle
   ================================================================= */

.phone-row {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: flex-start;
  margin: 32px 0 0;
}

.phone-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phone-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
  margin: 0;
}

.phone {
  width: 375px;
  height: 812px;
  background: var(--bg-frame);
  border-radius: 44px;
  padding: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 30px 80px rgba(0, 0, 0, 0.18);
  position: relative;
}

.phone--430 {
  width: 430px;
  height: 932px;
  border-radius: 50px;
}

.phone-screen {
  width: 100%;
  min-height: 100vh;
  border-radius: 36px;
  overflow: hidden;
  background: var(--bg-page);
  position: relative;
  display: flex;
  flex-direction: column;
}

.phone .phone-screen {
  min-height: 100%;
  height: 100%;
}

.phone--430 .phone-screen {
  border-radius: 42px;
}

/* =================================================================
   Status bar (top of every phone screen)
   ================================================================= */

.statusbar {
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px 0 32px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-primary);
  letter-spacing: -0.01em;
}

.statusbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.statusbar-icon {
  width: 16px;
  height: 11px;
  display: inline-block;
}

/* =================================================================
   Sticky app header (per-tab top chrome)
   ================================================================= */

.app-header {
  flex-shrink: 0;
  background: rgba(245, 246, 248, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--line-softer);
}

.app-header-row {
  padding: 8px 20px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-header-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  flex: 1;
  min-width: 0;
}

.app-header-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky);
  margin: 0 0 2px;
}

/* Avatar with streak ring (Apple-Activity-ring restraint) */
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--navy-from), var(--navy-to));
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  letter-spacing: -0.01em;
}

.avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  background:
    conic-gradient(
      from -90deg,
      var(--teal-ring) 0deg,
      var(--teal-ring) 270deg,
      rgba(20, 184, 166, 0.12) 270deg,
      rgba(20, 184, 166, 0.12) 360deg
    );
  padding: 3px;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.avatar-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--red-dot);
  box-shadow: 0 0 0 2px var(--bg-page);
}

/* Top-tab chrome (TikTok pattern) */
.top-tabs {
  display: flex;
  gap: 22px;
  padding: 0 20px 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.top-tabs::-webkit-scrollbar {
  display: none;
}

.top-tab {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-tertiary);
  flex-shrink: 0;
  position: relative;
  padding-bottom: 6px;
}

.top-tab.is-active {
  color: var(--ink-primary);
}

.top-tab.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink-primary);
}

/* =================================================================
   Body content
   ================================================================= */

.app-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px 110px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.app-body--no-pad {
  padding: 0 0 110px;
}

/* =================================================================
   Stories ribbon (Instagram primitive, contractor flavor)
   ================================================================= */

.stories {
  display: flex;
  gap: 16px;
  padding: 4px 20px 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.stories::-webkit-scrollbar {
  display: none;
}

.story {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  width: 64px;
}

.story-circle {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  position: relative;
  background: linear-gradient(135deg, #94a3b8, #475569);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  overflow: hidden;
}

.story-circle.is-fresh::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal-ring), #06b6d4);
  z-index: -1;
}

.story-circle-inner {
  position: absolute;
  inset: 3px;
  border-radius: 999px;
  background: var(--bg-page);
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-circle-photo {
  position: absolute;
  inset: 5px;
  border-radius: 999px;
  background-size: cover;
  background-position: center;
  background-color: #cbd5e1;
}

.story-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-secondary);
  text-align: center;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.story-add .story-circle-inner {
  background: var(--bg-card);
  border: 1px dashed var(--line-soft);
}

.story-add .story-circle-inner::before {
  content: "+";
  font-size: 22px;
  color: var(--ink-tertiary);
  font-weight: 300;
}

/* =================================================================
   Cards
   ================================================================= */

.card {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 20px;
}

.card-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-700);
  margin: 0 0 10px;
}

.card-eyebrow--neutral {
  color: var(--ink-tertiary);
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}

/* Money tile */
.money-tile {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  padding: 22px;
}

.money-amount {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 6px 0 12px;
  color: var(--green-600);
  font-feature-settings: "tnum";
}

.money-meta {
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.5;
}

.money-divider {
  height: 1px;
  background: var(--line-softer);
  margin: 14px 0;
}

/* Primary CTA */
.primary-cta {
  width: 100%;
  height: 56px;
  background: linear-gradient(135deg, var(--navy-from), var(--navy-to));
  color: #fff;
  border-radius: 16px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Section header */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0;
}

.section-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--sky);
}

/* Horizontal stack */
.h-stack {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin: 0 -20px;
  padding: 0 20px 4px;
  scrollbar-width: none;
}

.h-stack::-webkit-scrollbar {
  display: none;
}

.h-card {
  width: 280px;
  height: 88px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.h-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.h-card-icon--blue {
  background: #e0f2fe;
  color: #0369a1;
}

.h-card-icon--green {
  background: #d1fae5;
  color: #047857;
}

.h-card-icon--violet {
  background: #ede9fe;
  color: #6d28d9;
}

.h-card-icon--amber {
  background: #fef3c7;
  color: #b45309;
}

.h-card-body {
  flex: 1;
  min-width: 0;
}

.h-card-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.005em;
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.h-card-meta {
  font-size: 11px;
  color: var(--ink-tertiary);
  margin: 0;
}

/* Pipeline tile (square) */
.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.p-tile {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.p-tile-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e0f2fe;
  color: var(--sky);
}

.p-tile-num {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  font-feature-settings: "tnum";
}

.p-tile-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
}

/* =================================================================
   Bottom tab bar — Apple-grade restraint, TikTok plus
   ================================================================= */

.tabbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 88px;
  padding: 8px 12px 24px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--line-softer);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-tertiary);
  position: relative;
}

.tab.is-active {
  color: var(--ink-primary);
  font-weight: 700;
}

.tab svg {
  width: 24px;
  height: 24px;
}

.tab-plus {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-plus-pill {
  width: 46px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy-from), var(--navy-to));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 2px 6px rgba(10, 30, 58, 0.18), 0 8px 20px rgba(10, 30, 58, 0.12);
}

.tab-plus-pill svg {
  width: 22px;
  height: 22px;
}

.tab-badge {
  position: absolute;
  top: -2px;
  right: 50%;
  transform: translateX(18px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--red-dot);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.01em;
}

/* =================================================================
   Inbox-specific
   ================================================================= */

.inbox-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-softer);
}

.inbox-row:last-child {
  border-bottom: 0;
}

.inbox-thumb {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.inbox-thumb--customer {
  background: linear-gradient(135deg, #0ea5e9, #0369a1);
}

.inbox-thumb--crew {
  background: linear-gradient(135deg, #14b8a6, #047857);
}

.inbox-thumb--system {
  background: linear-gradient(135deg, #6e6e73, #1d1d1f);
}

.inbox-thumb--diego {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.inbox-body {
  flex: 1;
  min-width: 0;
}

.inbox-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin: 0 0 2px;
  color: var(--ink-primary);
}

.inbox-snippet {
  font-size: 13px;
  color: var(--ink-secondary);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inbox-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.inbox-time {
  font-size: 11px;
  color: var(--ink-tertiary);
  font-weight: 500;
}

.inbox-unread {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--sky);
}

.inbox-typing {
  font-size: 12px;
  color: var(--teal-ring);
  font-weight: 600;
  font-style: italic;
}

/* =================================================================
   Quote tab
   ================================================================= */

.quote-hero {
  background: linear-gradient(135deg, var(--navy-from), var(--navy-to));
  border-radius: 22px;
  padding: 24px;
  color: #fff;
}

.quote-hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 8px;
}

.quote-hero-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

.quote-hero-cta {
  width: 100%;
  height: 50px;
  border-radius: 14px;
  background: #fff;
  color: var(--navy-from);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* =================================================================
   Public tab — portfolio grid
   ================================================================= */

.portfolio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 0;
}

.portfolio-cell {
  aspect-ratio: 3 / 4;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.portfolio-cell:nth-child(odd) {
  background: linear-gradient(135deg, #0c4a6e, #075985);
}

.portfolio-cell:nth-child(even) {
  background: linear-gradient(135deg, #134e4a, #0f766e);
}

.portfolio-cell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.35), transparent 50%);
}

.portfolio-cell-label {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 1;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.005em;
}

/* =================================================================
   Create modal (TikTok pattern)
   ================================================================= */

.modal-scrim {
  position: absolute;
  inset: 0;
  background: rgba(29, 29, 31, 0.6);
  backdrop-filter: blur(2px);
  z-index: 5;
}

.modal-sheet {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 100px;
  background: var(--bg-card);
  border-radius: 22px;
  padding: 20px;
  z-index: 6;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 30px 60px rgba(0, 0, 0, 0.2);
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 4px;
}

.modal-sub {
  font-size: 13px;
  color: var(--ink-secondary);
  margin: 0 0 18px;
}

.modal-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  background: var(--bg-page);
  margin-bottom: 8px;
  text-align: left;
  width: 100%;
}

.modal-tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.modal-tile-icon--lead {
  background: linear-gradient(135deg, #0ea5e9, #0369a1);
}

.modal-tile-icon--diego {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.modal-tile-icon--photo {
  background: linear-gradient(135deg, #14b8a6, #047857);
}

.modal-tile-body {
  flex: 1;
  min-width: 0;
}

.modal-tile-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin: 0 0 2px;
}

.modal-tile-sub {
  font-size: 12px;
  color: var(--ink-secondary);
  margin: 0;
}

.modal-tile-hold {
  font-size: 11px;
  color: var(--ink-tertiary);
  font-weight: 600;
}

.modal-cancel {
  width: 100%;
  height: 48px;
  border-radius: 14px;
  background: var(--bg-page);
  color: var(--ink-primary);
  font-size: 15px;
  font-weight: 600;
  margin-top: 8px;
}

/* =================================================================
   What's new sheet (FB "while you were away" pattern)
   ================================================================= */

.whats-new {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 16px 18px;
}

.whats-new-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
  margin: 0 0 6px;
}

.whats-new-line {
  font-size: 15px;
  line-height: 1.45;
  font-weight: 500;
  margin: 0;
  color: var(--ink-primary);
  letter-spacing: -0.005em;
}

.whats-new-line strong {
  font-weight: 700;
}

/* =================================================================
   Compare page — pattern-borrow grid
   ================================================================= */

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin: 56px 0;
}

@media (max-width: 800px) {
  .compare-grid {
    grid-template-columns: 1fr;
  }
}

.compare-card {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  padding: 28px;
}

.compare-platform {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
  margin: 0 0 6px;
}

.compare-name {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}

.compare-borrow {
  font-size: 15px;
  font-weight: 600;
  color: var(--sky);
  margin: 0 0 18px;
}

.compare-body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-secondary);
  margin: 0;
}

.compare-body strong {
  color: var(--ink-primary);
  font-weight: 600;
}

/* Mini sketch of platform IA */
.mini-phone {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 9 / 19.5;
  background: var(--bg-frame);
  border-radius: 28px;
  padding: 6px;
  margin: 0 0 22px;
}

.mini-screen {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  background: var(--bg-page);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.mini-top {
  height: 32px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--line-softer);
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 8px;
}

.mini-top-pill {
  height: 4px;
  background: var(--ink-tertiary);
  border-radius: 999px;
  flex: 1;
  opacity: 0.3;
}

.mini-top-pill.is-emphasis {
  opacity: 1;
  background: var(--ink-primary);
}

.mini-body {
  flex: 1;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mini-block {
  background: var(--bg-card);
  border: 1px solid var(--line-softer);
  border-radius: 6px;
  flex: 1;
}

.mini-block.is-emphasis {
  background: linear-gradient(135deg, var(--sky), #0369a1);
  border-color: transparent;
}

.mini-stories {
  height: 28px;
  display: flex;
  gap: 4px;
  align-items: center;
}

.mini-story-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--ink-tertiary);
  opacity: 0.4;
  flex-shrink: 0;
}

.mini-story-dot.is-emphasis {
  opacity: 1;
  background: linear-gradient(135deg, var(--teal-ring), #06b6d4);
}

.mini-tabs {
  height: 28px;
  background: var(--bg-card);
  border-top: 1px solid var(--line-softer);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 10px;
}

.mini-tab-dot {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--ink-tertiary);
  opacity: 0.3;
}

.mini-tab-dot.is-emphasis {
  opacity: 1;
  background: var(--ink-primary);
}

.mini-tab-dot.is-plus {
  width: 22px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--navy-from), var(--navy-to));
  opacity: 1;
}

/* =================================================================
   IA spec table on index page
   ================================================================= */

.ia-table {
  display: grid;
  grid-template-columns: 60px 1fr 1.4fr 2fr;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  overflow: hidden;
  margin: 32px 0;
}

.ia-cell {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-softer);
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-secondary);
}

.ia-cell:nth-last-child(-n + 4) {
  border-bottom: 0;
}

.ia-cell-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
  background: var(--bg-page);
}

.ia-cell-tab {
  font-weight: 700;
  color: var(--ink-primary);
  font-size: 15px;
}

.ia-cell-old {
  font-style: italic;
  text-decoration: line-through;
  color: var(--ink-tertiary);
}

@media (max-width: 700px) {
  .ia-table {
    grid-template-columns: 1fr;
  }
  .ia-cell {
    border-bottom: 1px solid var(--line-softer);
  }
}

/* =================================================================
   Story player (full-screen)
   ================================================================= */

.story-screen {
  position: absolute;
  inset: 0;
  background: #000;
  border-radius: inherit;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.story-segments {
  display: flex;
  gap: 4px;
  padding: 14px 16px 0;
  flex-shrink: 0;
}

.story-seg {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  overflow: hidden;
}

.story-seg-fill {
  height: 100%;
  background: #fff;
  border-radius: 2px;
}

.story-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 10px;
  flex-shrink: 0;
}

.story-header-thumb {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0c4a6e, #075985);
  flex-shrink: 0;
}

.story-header-name {
  flex: 1;
  min-width: 0;
}

.story-header-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: -0.005em;
}

.story-header-time {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.story-photo {
  flex: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.0) 60%, rgba(0, 0, 0, 0.45)),
    linear-gradient(135deg, #1e293b, #0f172a);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  position: relative;
}

.story-caption {
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 6px;
  max-width: 90%;
}

.story-loc {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 500;
  margin: 0 0 100px;
}

.story-reply {
  position: absolute;
  left: 16px;
  right: 60px;
  bottom: 24px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  padding: 0 18px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.story-mic {
  position: absolute;
  right: 16px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

/* Diego from-the-edge gesture hint */
.diego-edge-hint {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 80px;
  background: linear-gradient(180deg, transparent, var(--teal-ring), transparent);
  opacity: 0.5;
  border-radius: 999px 0 0 999px;
  z-index: 4;
}

/* =================================================================
   Inbox search + footnote
   ================================================================= */

.search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border-radius: 14px;
  padding: 10px 14px;
  border: 1px solid var(--line-soft);
}

.search-row input {
  flex: 1;
  border: 0;
  outline: 0;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink-primary);
  background: transparent;
  padding: 0;
}

.search-row input::placeholder {
  color: var(--ink-tertiary);
}

.search-icon {
  color: var(--ink-tertiary);
  display: flex;
}

.inbox-foot-note {
  font-size: 12px;
  color: var(--ink-tertiary);
  line-height: 1.55;
  margin: 16px 4px 0;
  letter-spacing: -0.005em;
}

/* =================================================================
   Public tab — directory + reviews + site rows
   ================================================================= */

.review-row {
  padding: 16px 0;
  border-bottom: 1px solid var(--line-softer);
}

.review-row:last-child {
  border-bottom: 0;
}

.review-stars {
  font-size: 12px;
  color: var(--amber);
  letter-spacing: 0.04em;
  margin: 0 0 4px;
}

.review-quote {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-primary);
  margin: 0 0 6px;
  letter-spacing: -0.005em;
}

.review-meta {
  font-size: 12px;
  color: var(--ink-tertiary);
}

.public-stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-softer);
}

.public-stat-label {
  font-size: 13px;
  color: var(--ink-secondary);
}

.public-stat-value {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* =================================================================
   Story player — full-screen IG-style segments
   ================================================================= */

.story-player {
  position: relative;
  flex: 1;
  background: #0a0a0a;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 44px);
}

.story-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.65);
}

.story-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, transparent 25%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.65) 0%, transparent 35%);
}

.story-progress {
  position: relative;
  display: flex;
  gap: 4px;
  padding: 10px 12px 0;
  z-index: 2;
}

.story-segment {
  flex: 1;
  height: 2.5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
}

.story-segment-fill {
  height: 100%;
  background: #fff;
  border-radius: 999px;
}

.story-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 0;
}

.story-author-thumb {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, #14b8a6, #047857);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  border: 1.5px solid #fff;
}

.story-author-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: -0.005em;
}

.story-author-time {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.story-author-meta {
  flex: 1;
}

.story-x {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.story-caption-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 6px;
}

.story-caption-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.1;
}

.story-caption-body {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
  margin: 0 0 16px;
}

.story-stat-pills {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.story-pill {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.story-reply-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px 18px;
}

.story-reply-input {
  flex: 1;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-family: inherit;
  display: flex;
  align-items: center;
}

.story-reply-mic {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-photo-stub {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, #1e3a8a 0%, #0a1e3a 45%, #050d1f 100%);
}

.story-photo-stub::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28%;
  height: 18%;
  background: linear-gradient(180deg, #0ea5e9 0%, #0369a1 100%);
  opacity: 0.55;
  filter: blur(0.5px);
}

.story-photo-stub::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28%;
  background: linear-gradient(180deg, #b45309 0%, #78350f 100%);
  opacity: 0.85;
}

/* =================================================================
   Compare page — 4-platform grid
   ================================================================= */

.compare-section {
  margin-top: 64px;
}

.compare-card {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  padding: 28px;
  margin-bottom: 18px;
}

.compare-card-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
  margin: 0 0 6px;
}

.compare-card-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.compare-card-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-secondary);
  margin: 0 0 20px;
  max-width: 64ch;
}

.compare-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 720px) {
  .compare-pair {
    grid-template-columns: 1fr;
  }
}

.compare-side-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
  margin: 0 0 10px;
  text-align: center;
}

.compare-takeaway {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-primary);
  margin: 18px 0 0;
  padding: 14px 16px;
  background: var(--bg-page);
  border-radius: 12px;
  letter-spacing: -0.005em;
}

.compare-takeaway strong {
  font-weight: 700;
}

.doc-back {
  display: inline-block;
  font-size: 14px;
  color: var(--sky);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-bottom: 32px;
  transition: opacity 200ms var(--ease);
}

.doc-back:hover {
  opacity: 0.7;
}

/* =================================================================
   Bulletin digest line on Home — calm
   ================================================================= */

.digest-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-card);
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  margin-top: 14px;
}

.digest-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.digest-body {
  flex: 1;
  min-width: 0;
}

.digest-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
  margin: 0 0 1px;
}

.digest-text {
  font-size: 13px;
  color: var(--ink-primary);
  margin: 0;
  letter-spacing: -0.005em;
  line-height: 1.4;
}

.digest-chevron {
  color: var(--ink-tertiary);
  flex-shrink: 0;
}

/* =================================================================
   Quote — Design Studio surface
   ================================================================= */

.studio-yard {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(ellipse at 70% 30%, #6b8e23 0%, #4a6b1f 35%, #2d4012 80%);
  margin-top: 14px;
}

.studio-yard::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg,
      rgba(255,255,255,0.03) 0px,
      rgba(255,255,255,0.03) 2px,
      transparent 2px,
      transparent 6px);
}

.studio-house {
  position: absolute;
  top: 8%;
  left: 12%;
  width: 38%;
  height: 28%;
  background: linear-gradient(180deg, #6e6e73, #3a3a3c);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

.studio-house::after {
  content: "";
  position: absolute;
  inset: 14% 18% 18% 14%;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
}

.studio-deck {
  position: absolute;
  top: 38%;
  left: 18%;
  width: 64%;
  height: 48%;
  background: linear-gradient(180deg, #c9b89a, #a8967a);
  border-radius: 6px;
  opacity: 0.92;
}

.studio-pool {
  position: absolute;
  top: 48%;
  left: 30%;
  width: 40%;
  height: 28%;
  background: linear-gradient(180deg, #0ea5e9, #0369a1 60%, #075985);
  border-radius: 8px;
  box-shadow:
    0 0 0 4px rgba(255,255,255,0.92),
    0 6px 20px rgba(0,0,0,0.3),
    inset 0 12px 24px rgba(255,255,255,0.18);
}

.studio-pool::after {
  content: "";
  position: absolute;
  top: 18%;
  left: 30%;
  right: 30%;
  height: 2px;
  background: rgba(255,255,255,0.4);
  border-radius: 999px;
  filter: blur(1px);
}

.studio-price-chip {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.005em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.studio-price-chip-eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.66;
  margin-right: 4px;
}

.studio-yard-toolbar {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
}

.studio-yard-toolbar button {
  flex: 1;
  height: 38px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.005em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.studio-yard-toolbar button.is-primary {
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink-primary);
}

/* Package picker chips under the yard */
.package-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 18px -20px 0;
  padding: 0 20px 4px;
  scrollbar-width: none;
}

.package-chips::-webkit-scrollbar {
  display: none;
}

.package-chip {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-secondary);
  letter-spacing: -0.005em;
  white-space: nowrap;
}

.package-chip.is-active {
  background: var(--ink-primary);
  color: #fff;
  border-color: var(--ink-primary);
}

/* Studio choice tiles row */
.studio-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.studio-choice {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.studio-choice-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
  margin: 0;
}

.studio-choice-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin: 0;
  color: var(--ink-primary);
}

.studio-choice-price {
  font-size: 12px;
  color: var(--ink-secondary);
  margin: 0;
}

/* =================================================================
   Camera capture screen — full-bleed
   ================================================================= */

.camera-stage {
  position: relative;
  flex: 1;
  background: #050505;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 44px);
}

.camera-viewfinder {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 60%, #0c2d1f 0%, #061812 50%, #020806 100%);
}

.camera-viewfinder::before {
  content: "";
  position: absolute;
  inset: 12% 8%;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
}

.camera-viewfinder::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 999px;
}

.camera-grid {
  position: absolute;
  inset: 12% 8%;
  pointer-events: none;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  z-index: 1;
}

.camera-grid > div {
  border: 0.5px solid rgba(255,255,255,0.06);
}

.camera-pool-stub {
  position: absolute;
  top: 38%;
  left: 18%;
  right: 18%;
  bottom: 28%;
  background: linear-gradient(180deg, #0c4a6e 0%, #082f4a 60%, #051f30);
  border-radius: 12px;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.08);
  z-index: 1;
}

.camera-pool-stub::before {
  content: "";
  position: absolute;
  inset: 8% 12%;
  background:
    repeating-linear-gradient(180deg,
      rgba(255,255,255,0.06) 0px,
      rgba(255,255,255,0.06) 1px,
      transparent 1px,
      transparent 6px);
  border-radius: 6px;
}

.camera-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 0;
  color: #fff;
}

.camera-mode-pill {
  display: flex;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 999px;
  padding: 4px;
}

.camera-mode {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  letter-spacing: -0.005em;
}

.camera-mode.is-active {
  background: #fff;
  color: var(--ink-primary);
}

.camera-iconbtn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(0,0,0,0.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.camera-tag-row {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 8px;
  padding: 14px 18px 0;
  flex-wrap: wrap;
}

.camera-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.camera-tag.is-active {
  background: var(--teal-ring);
  color: #fff;
}

.camera-bottom {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 0 18px calc(98px + env(safe-area-inset-bottom, 0px));
}
.camera-stage .tabbar { background: rgba(0,0,0,0.6) !important; }

.camera-quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 18px;
}

.camera-quick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 4px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-align: center;
}

.camera-quick svg {
  width: 18px;
  height: 18px;
}

.camera-shutter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.camera-side-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.camera-shutter {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: #fff;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.camera-shutter::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 999px;
  border: 3px solid #050505;
}

.camera-hint {
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  margin: 14px 0 0;
  letter-spacing: 0.02em;
}

/* =================================================================
   Pinterest-style feed grid (Public > Feed)
   ================================================================= */

.feed-grid {
  column-count: 2;
  column-gap: 8px;
  padding: 0 16px;
  margin-top: 14px;
}

.feed-card {
  break-inside: avoid;
  margin-bottom: 8px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line-softer);
}

.feed-card-img {
  width: 100%;
  display: block;
  aspect-ratio: var(--ratio, 3 / 4);
}

.feed-card-img--blue {
  background: linear-gradient(135deg, #075985, #0c4a6e 60%, #082f4a);
  position: relative;
}

.feed-card-img--blue::after {
  content: "";
  position: absolute;
  left: 14%; right: 14%;
  bottom: 18%;
  top: 32%;
  background: linear-gradient(180deg, #0ea5e9 0%, #0369a1 100%);
  border-radius: 6px;
  box-shadow: 0 0 0 6px rgba(255,255,255,0.85);
}

.feed-card-img--green {
  background: linear-gradient(135deg, #064e3b, #047857 60%, #065f46);
  position: relative;
}

.feed-card-img--green::after {
  content: "";
  position: absolute;
  inset: 25% 20% 20% 20%;
  background: linear-gradient(180deg, #14b8a6, #047857);
  border-radius: 50% 50% 8px 8px;
  box-shadow: 0 0 0 5px rgba(255,255,255,0.85);
}

.feed-card-img--amber {
  background: linear-gradient(135deg, #78350f, #92400e 60%, #b45309);
  position: relative;
}

.feed-card-img--amber::after {
  content: "";
  position: absolute;
  inset: 30% 18% 22% 18%;
  background: linear-gradient(180deg, #0ea5e9, #0369a1);
  border-radius: 30px 30px 8px 8px / 50% 50% 8px 8px;
  box-shadow: 0 0 0 6px rgba(252,211,77,0.85);
}

.feed-card-img--slate {
  background: linear-gradient(135deg, #1e293b, #0f172a 70%, #020617);
  position: relative;
}

.feed-card-img--slate::after {
  content: "";
  position: absolute;
  inset: 35% 14%;
  background: linear-gradient(180deg, #38bdf8, #075985);
  border-radius: 40% 40% 6px 6px / 60% 60% 6px 6px;
  box-shadow: 0 0 0 5px rgba(255,255,255,0.85);
}

.feed-card-overlay {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.feed-card-author {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 4px 8px;
  border-radius: 999px;
  letter-spacing: -0.005em;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-card-quote {
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-primary);
  background: rgba(255,255,255,0.95);
  padding: 4px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

/* =================================================================
   Bulletin board (Public > Bulletin)
   ================================================================= */

.bulletin-locator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-secondary);
  margin: 14px 0 4px;
  letter-spacing: -0.005em;
}

.bulletin-locator strong {
  color: var(--ink-primary);
  font-weight: 700;
}

.bulletin-section {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.bulletin-section--premium {
  background: linear-gradient(180deg, #1d1d1f, #0a0a0a);
  border-color: transparent;
  color: #fff;
}

.bulletin-section--premium .bulletin-section-meta,
.bulletin-section--premium .bulletin-section-name {
  color: #fff;
}

.bulletin-section--premium .bulletin-section-sub {
  color: rgba(255,255,255,0.6);
}

.bulletin-section-glyph {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--bg-page);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--ink-primary);
  font-size: 14px;
  font-weight: 800;
}

.bulletin-section--premium .bulletin-section-glyph {
  background: linear-gradient(135deg, #d4af37, #a17f15);
  color: #1d1d1f;
}

.bulletin-section--locked .bulletin-section-glyph {
  background: var(--bg-page);
  color: var(--ink-tertiary);
}

.bulletin-section-body {
  flex: 1;
  min-width: 0;
}

.bulletin-section-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin: 0 0 2px;
  color: var(--ink-primary);
}

.bulletin-section-sub {
  font-size: 12px;
  color: var(--ink-secondary);
  margin: 0;
}

.bulletin-section-meta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-tertiary);
  flex-shrink: 0;
}

.bulletin-pinned {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 0 0 8px;
}
.bulletin-pinned-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-tertiary, #6e6e73);
  margin: 22px 4px 8px;
}

/* =================================================================
   Public profile + DM toggle
   ================================================================= */

.profile-cover {
  height: 96px;
  background:
    linear-gradient(135deg, var(--navy-from), var(--navy-to)),
    radial-gradient(at 80% 20%, rgba(20,184,166,0.5), transparent 50%);
  background-blend-mode: screen;
  margin: 0;
  position: relative;
}

.profile-avatar-lg {
  position: absolute;
  left: 20px;
  bottom: -28px;
  width: 72px;
  height: 72px;
  border-radius: 24px;
  background: linear-gradient(135deg, #0a1e3a, #11315e);
  border: 4px solid var(--bg-app);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.profile-row {
  padding: 38px 20px 0;
}

.profile-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 2px;
}

.profile-handle {
  font-size: 13px;
  color: var(--ink-secondary);
  margin: 0 0 2px;
}

.profile-verify {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--green-700);
  letter-spacing: 0.02em;
  margin: 0 0 14px;
}

.profile-stats {
  display: flex;
  gap: 18px;
  margin: 14px 0 18px;
}

.profile-stat-num {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.profile-stat-label {
  font-size: 11px;
  color: var(--ink-tertiary);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.profile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.profile-btn {
  height: 40px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.005em;
}

.profile-btn--primary {
  background: var(--ink-primary);
  color: #fff;
}

.profile-btn--ghost {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  color: var(--ink-primary);
}

.profile-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  margin-top: 12px;
}

.profile-toggle-label {
  flex: 1;
  min-width: 0;
}

.profile-toggle-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin: 0 0 2px;
  color: var(--ink-primary);
}

.profile-toggle-sub {
  font-size: 12px;
  color: var(--ink-secondary);
  margin: 0;
}

.toggle-switch {
  width: 50px;
  height: 30px;
  border-radius: 999px;
  background: var(--green-600);
  position: relative;
  flex-shrink: 0;
}

.toggle-switch.is-off {
  background: var(--ink-tertiary);
}

.toggle-knob {
  position: absolute;
  top: 3px;
  left: 23px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15), 0 2px 8px rgba(0,0,0,0.12);
  transition: left 220ms var(--ease);
}

.toggle-switch.is-off .toggle-knob {
  left: 3px;
}

/* =================================================================
   Per-job photo thread (CompanyCam-style) — Inbox
   ================================================================= */

.thread-day {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
  margin: 18px 4px 8px;
}

.thread-msg {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.thread-msg-thumb {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
}

.thread-msg-thumb--diego { background: linear-gradient(135deg, #14b8a6, #047857); }
.thread-msg-thumb--owner { background: linear-gradient(135deg, #0a1e3a, #11315e); }
.thread-msg-thumb--customer { background: linear-gradient(135deg, #0ea5e9, #0369a1); }

.thread-msg-body {
  flex: 1;
  min-width: 0;
}

.thread-msg-author {
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--ink-primary);
}

.thread-msg-author span {
  font-weight: 500;
  color: var(--ink-tertiary);
  margin-left: 6px;
}

.thread-msg-text {
  font-size: 13px;
  color: var(--ink-primary);
  margin: 0;
  line-height: 1.5;
  letter-spacing: -0.005em;
}

.thread-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 6px;
  border-radius: 12px;
  overflow: hidden;
}

.thread-photo {
  aspect-ratio: 1;
  border-radius: 8px;
  position: relative;
}

.thread-photo--1 { background: linear-gradient(135deg, #0c4a6e, #082f4a); }
.thread-photo--2 { background: linear-gradient(135deg, #134e4a, #0f766e); }
.thread-photo--3 { background: linear-gradient(135deg, #78350f, #b45309); }
.thread-photo--4 { background: linear-gradient(135deg, #1e293b, #334155); }

.thread-photo-tag {
  position: absolute;
  bottom: 6px;
  left: 6px;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 2px 6px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.thread-job-header {
  background: var(--bg-card);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  border: 1px solid var(--line-soft);
}

.thread-job-thumb {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0c4a6e, #082f4a);
  position: relative;
  flex-shrink: 0;
}

.thread-job-thumb::after {
  content: "";
  position: absolute;
  inset: 30% 22%;
  background: linear-gradient(180deg, #0ea5e9, #0369a1);
  border-radius: 4px;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.85);
}

.thread-job-meta-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin: 0;
}

.thread-job-meta-sub {
  font-size: 12px;
  color: var(--ink-secondary);
  margin: 2px 0 0;
}

.thread-job-day {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-tertiary);
  flex-shrink: 0;
}


/* === v3 home additions (while-away, primary-cta-foot, needs-card, activity, section-action) === */
.while-away {
  border: 1px solid rgba(0,0,0,0.06);
  background: #f7f8fa;
  border-radius: 14px;
  padding: 14px 16px;
}
.while-away-eyebrow {
  font-size: 11px;
  font-weight: 600;
  color: #6e6e73;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 4px;
}
.while-away-body {
  font-size: 14px;
  line-height: 1.45;
  color: #1d1d1f;
  margin: 0;
}
.while-away-body strong { font-weight: 600; }

.primary-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #0a1e3a;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: 14px;
  padding: 16px 20px;
  text-decoration: none;
  width: 100%;
  box-sizing: border-box;
}
.primary-cta-foot {
  font-size: 12px;
  color: #6e6e73;
  text-align: center;
  margin: 6px 0 0;
}

.section-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #1d1d1f;
  margin: 0 0 10px;
}
.section-title--with-action {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.section-action {
  font-size: 13px;
  font-weight: 500;
  color: #0a1e3a;
  text-decoration: none;
}

.hstack {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.hstack::-webkit-scrollbar { display: none; }
.hstack > * { flex: 0 0 70%; scroll-snap-align: start; }

.needs-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.needs-card-glyph {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}
.needs-card-glyph--money { background: #047857; }
.needs-card-glyph--view { background: #0a1e3a; color: #fff; }
.needs-card-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: #1d1d1f;
  margin: 0;
}
.needs-card-sub {
  font-size: 12px;
  color: #6e6e73;
  margin: 0;
}

.activity-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.activity-card:last-child { border-bottom: 0; }
.activity-glyph {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}
.activity-glyph--sign { background: #047857; }
.activity-glyph--money { background: #0a1e3a; }
.activity-body { flex: 1; min-width: 0; }
.activity-title {
  font-size: 14px;
  font-weight: 500;
  color: #1d1d1f;
  margin: 0 0 2px;
  line-height: 1.3;
}
.activity-time {
  font-size: 12px;
  color: #6e6e73;
  margin: 0;
}

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

/* Index page (overview) */
.index-page {
  background: #f7f8fa;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif;
  color: #1d1d1f;
}
.index-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 32px 96px;
}
.index-eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: #6e6e73;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.index-title {
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 16px;
  color: #1d1d1f;
}
.index-sub {
  font-size: 19px;
  color: #6e6e73;
  max-width: 720px;
  line-height: 1.45;
  margin: 0 0 48px;
}
.index-section-title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: #1d1d1f;
}
.index-section-sub {
  font-size: 15px;
  color: #6e6e73;
  margin: 0 0 24px;
  max-width: 700px;
}
.index-block { margin-top: 64px; }

.ia-table {
  display: table !important;
  grid-template-columns: none !important;
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  table-layout: auto;
}
.ia-table thead, .ia-table tbody, .ia-table tr { display: table-row-group; }
.ia-table thead { display: table-header-group; }
.ia-table tr { display: table-row; }
.ia-table th, .ia-table td { display: table-cell; }
.ia-table th, .ia-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  vertical-align: top;
}
.ia-table th {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6e6e73;
  background: #fbfbfd;
}
.ia-table tr:last-child td { border-bottom: 0; }
.ia-table .ia-tab-name { font-weight: 600; color: #1d1d1f; }
.ia-table .ia-new { color: #047857; font-weight: 600; }

.phone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(390px, 1fr));
  gap: 32px;
}
.phone-frame {
  background: #fff;
  border-radius: 36px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 12px 40px rgba(0,0,0,0.06);
  overflow: hidden;
  padding: 12px;
}
.phone-frame iframe {
  width: 100%;
  height: 760px;
  border: 0;
  border-radius: 24px;
  background: #fff;
}
.phone-caption {
  text-align: center;
  font-size: 13px;
  color: #6e6e73;
  margin: 12px 0 0;
}

.feature-pill {
  display: inline-block;
  background: #ecfdf5;
  color: #047857;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

/* =================================================================
   SHIP 2 — Parts + Job Cost + Pricing + Referrals
   ================================================================= */

/* ---------- Camera: two-button choice (Parts addition) ---------- */

.camera-choice-bar {
  position: absolute;
  bottom: 110px;
  left: 16px;
  right: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  z-index: 4;
}

.camera-choice {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 18px;
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  color: #1d1d1f;
  transition: transform 160ms var(--ease);
}

.camera-choice:active {
  transform: scale(0.97);
}

.camera-choice-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #f2f2f7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  color: #1d1d1f;
}

.camera-choice-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.camera-choice-sub {
  font-size: 12px;
  color: #6e6e73;
  letter-spacing: -0.005em;
  line-height: 1.3;
}

/* ---------- Use a part: header + flow ---------- */

.flow-header {
  flex-shrink: 0;
  padding: 8px 16px 14px;
  background: var(--bg-page);
  display: flex;
  align-items: center;
  gap: 10px;
}

.flow-header-back {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-primary);
  flex-shrink: 0;
}

.flow-header-text {
  flex: 1;
  min-width: 0;
}

.flow-header-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
  margin: 0;
}

.flow-header-title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.2;
}

/* Active job pill */
.active-job-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f2f7fb;
  border: 1px solid rgba(14, 165, 233, 0.18);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-primary);
  font-weight: 500;
  margin: 0 16px 14px;
}

.active-job-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--sky);
  flex-shrink: 0;
}

.active-job-pill-name {
  font-weight: 600;
}

.active-job-pill-meta {
  color: var(--ink-secondary);
  font-weight: 400;
}

/* Search box */
.parts-search {
  margin: 0 16px 12px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-tertiary);
  font-size: 14px;
}

/* Recency-sorted parts list */
.parts-section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
  margin: 6px 16px 8px;
}

.parts-list {
  margin: 0 16px 0;
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  overflow: hidden;
}

.part-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-softer);
}

.part-row:last-child {
  border-bottom: 0;
}

.part-row-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eff6fb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #075985;
  flex-shrink: 0;
}

.part-row-body {
  flex: 1;
  min-width: 0;
}

.part-row-name {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink-primary);
}

.part-row-meta {
  font-size: 12px;
  color: var(--ink-secondary);
  margin: 2px 0 0;
}

.part-row-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-primary);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

/* ---------- Number pad (quantity entry) ---------- */

.numpad-screen {
  display: flex;
  flex-direction: column;
  flex: 1;
  background: var(--bg-page);
}

.numpad-display {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px 24px 32px;
}

.numpad-part-name {
  font-size: 14px;
  color: var(--ink-secondary);
  margin: 0 0 8px;
}

.numpad-quantity {
  font-size: 80px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink-primary);
  line-height: 1;
  margin: 0 0 12px;
  font-variant-numeric: tabular-nums;
}

.numpad-unit {
  font-size: 15px;
  color: var(--ink-secondary);
  margin: 0;
}

.numpad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 16px 12px;
}

.numpad-key {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 16px 0;
  font-size: 26px;
  font-weight: 500;
  color: var(--ink-primary);
  letter-spacing: -0.01em;
  transition: background 120ms var(--ease);
}

.numpad-key:active {
  background: #f2f2f7;
}

.numpad-key--secondary {
  font-size: 18px;
  color: var(--ink-secondary);
}

/* Add-to-job CTA */
.numpad-cta-wrap {
  padding: 8px 16px 20px;
  background: var(--bg-page);
}

.numpad-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--ink-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 16px 0;
  border-radius: 14px;
  transition: transform 120ms var(--ease);
}

.numpad-cta:active {
  transform: scale(0.985);
}

/* ---------- Toast confirmation on Camera ---------- */

.camera-toast {
  position: absolute;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(29, 29, 31, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  padding: 10px 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  z-index: 5;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

.camera-toast-check {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #34c759;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

/* ---------- Job Cost row inside Quote ---------- */

.jobcost-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 14px 16px;
  margin: 14px 0 0;
  text-decoration: none;
  color: var(--ink-primary);
}

.jobcost-row-glyph {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f0fdf4;
  color: #047857;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.jobcost-row-body {
  flex: 1;
  min-width: 0;
}

.jobcost-row-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
  margin: 0;
}

.jobcost-row-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 2px 0 0;
}

.jobcost-row-margin {
  font-size: 13px;
  color: var(--green-700);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  margin: 1px 0 0;
}

.jobcost-row-margin--low {
  color: #b91c1c;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.jobcost-row-margin--low::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--red-dot);
}

.jobcost-row-chevron {
  color: var(--ink-tertiary);
  flex-shrink: 0;
}

/* ---------- Job Cost detail screen ---------- */

.jobcost-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg-page);
}

.jobcost-summary {
  background: var(--bg-card);
  margin: 0 16px;
  border-radius: 18px;
  border: 1px solid var(--line-soft);
  padding: 20px 20px 22px;
}

.jobcost-summary-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
  margin: 0 0 6px;
}

.jobcost-summary-job {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

.jobcost-numbers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
}

.jobcost-number-block {
  display: flex;
  flex-direction: column;
}

.jobcost-number-label {
  font-size: 12px;
  color: var(--ink-secondary);
  margin: 0 0 4px;
  letter-spacing: -0.005em;
}

.jobcost-number-value {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.jobcost-number-value--margin {
  color: var(--green-700);
}

.jobcost-number-value--margin-low {
  color: #b91c1c;
}

.jobcost-divider {
  height: 1px;
  background: var(--line-soft);
  margin: 18px 0;
  border: 0;
}

.jobcost-margin-bar-wrap {
  margin: 6px 0 0;
}

.jobcost-margin-bar {
  height: 6px;
  background: #f2f2f7;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.jobcost-margin-bar-fill {
  height: 100%;
  background: var(--green-700);
  border-radius: 999px;
}

.jobcost-margin-bar-threshold {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 1.5px;
  background: var(--ink-tertiary);
}

.jobcost-margin-meta {
  font-size: 12px;
  color: var(--ink-secondary);
  margin: 8px 0 0;
}

/* parts breakdown */
.jobcost-parts-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
  margin: 24px 16px 8px;
}

.jobcost-parts-list {
  margin: 0 16px;
  background: var(--bg-card);
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  overflow: hidden;
}

.jobcost-part-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-softer);
  font-size: 14px;
}

.jobcost-part-row:last-child {
  border-bottom: 0;
}

.jobcost-part-name {
  flex: 1;
  min-width: 0;
  color: var(--ink-primary);
  letter-spacing: -0.005em;
}

.jobcost-part-qty {
  color: var(--ink-secondary);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  margin-right: 6px;
}

.jobcost-part-cost {
  color: var(--ink-primary);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.jobcost-cta-wrap {
  padding: 18px 16px 28px;
}

.jobcost-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--ink-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 15px 0;
  border-radius: 14px;
}

/* ---------- Referrals card on Home ---------- */

.referrals-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 14px 16px;
  margin: 14px 0 0;
  text-decoration: none;
  color: var(--ink-primary);
}

.referrals-card-glyph {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  color: #047857;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 600;
  font-size: 16px;
}

.referrals-card-body {
  flex: 1;
  min-width: 0;
}

.referrals-card-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
  margin: 0;
}

.referrals-card-amount {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 2px 0 0;
  font-variant-numeric: tabular-nums;
}

.referrals-card-meta {
  font-size: 12px;
  color: var(--ink-secondary);
  margin: 1px 0 0;
}

/* ---------- Upgrade trigger screen ---------- */

.upgrade-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg-page);
  padding: 0;
}

.upgrade-hero {
  padding: 32px 28px 24px;
  text-align: left;
}

.upgrade-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sky);
  margin: 0 0 14px;
}

.upgrade-title {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--ink-primary);
  margin: 0 0 14px;
}

.upgrade-sub {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-secondary);
  margin: 0;
  max-width: 32ch;
}

.upgrade-card {
  margin: 16px 16px 0;
  background: var(--bg-card);
  border-radius: 18px;
  border: 1px solid var(--line-soft);
  padding: 22px 22px 18px;
}

.upgrade-card-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-secondary);
  letter-spacing: -0.005em;
  margin: 0 0 6px;
}

.upgrade-card-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 4px;
}

.upgrade-card-price {
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink-primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.upgrade-card-period {
  font-size: 16px;
  color: var(--ink-secondary);
  font-weight: 500;
}

.upgrade-card-monthly {
  font-size: 13px;
  color: var(--ink-tertiary);
  margin: 0 0 16px;
}

.upgrade-card-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  border-top: 1px solid var(--line-softer);
  padding-top: 14px;
}

.upgrade-card-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-primary);
  letter-spacing: -0.005em;
  line-height: 1.4;
}

.upgrade-check {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  color: #047857;
}

.upgrade-cta-wrap {
  padding: 22px 16px 14px;
}

.upgrade-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--ink-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 16px 0;
  border-radius: 14px;
}

.upgrade-cta-secondary {
  display: block;
  text-align: center;
  width: 100%;
  font-size: 14px;
  color: var(--ink-secondary);
  padding: 12px 0 22px;
  font-weight: 500;
  text-decoration: none;
}

/* ---------- Client-facing quote (Built with Quotrr hairline) ---------- */

.client-quote {
  flex: 1;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.client-quote-header {
  padding: 28px 24px 22px;
  border-bottom: 1px solid var(--line-soft);
}

.client-quote-brand {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
  margin: 0 0 6px;
}

.client-quote-co {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink-primary);
  margin: 0;
}

.client-quote-body {
  padding: 24px;
  flex: 1;
}

.client-quote-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky);
  margin: 0 0 8px;
}

.client-quote-title {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--ink-primary);
  margin: 0 0 18px;
}

.client-quote-card {
  background: var(--bg-page);
  border-radius: 14px;
  padding: 18px;
  margin: 0 0 16px;
}

.client-quote-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-softer);
  font-size: 14px;
}

.client-quote-line:last-child {
  border-bottom: 0;
}

.client-quote-line strong {
  font-weight: 600;
  color: var(--ink-primary);
}

.client-quote-line-amount {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  color: var(--ink-primary);
}

.client-quote-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0 4px;
  font-size: 17px;
}

.client-quote-total-label {
  font-weight: 600;
  color: var(--ink-primary);
}

.client-quote-total-amount {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
  font-variant-numeric: tabular-nums;
}

.client-quote-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--ink-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 16px 0;
  border-radius: 14px;
  margin: 18px 0 0;
}

.client-quote-foot {
  padding: 18px 24px 28px;
  border-top: 1px solid var(--line-soft);
  text-align: center;
}

.builtwith-line {
  font-size: 12px;
  color: var(--ink-secondary);
  letter-spacing: -0.005em;
  margin: 0;
  font-weight: 400;
}

.builtwith-line a {
  color: var(--ink-secondary);
  font-weight: 500;
}

/* ---------- IA index updates for Ship 2 ---------- */

.ship2-tag {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  margin-left: 6px;
  text-transform: uppercase;
  vertical-align: 2px;
}

/* ---------- Camera bottom: choice variant (Ship 2 first-run) ---------- */

.camera-bottom--choice {
  position: absolute;
  bottom: 76px; /* sit above the tab bar so the elevated camera button doesn't punch through */
  left: 0;
  right: 0;
  padding: 16px 16px 12px;
  z-index: 4;
}

.camera-choice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.camera-bottom--choice .camera-hint {
  text-align: center;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  letter-spacing: 0.04em;
}

/* Hide the older floating choice bar (kept the rules but removed usage) */
.camera-choice-bar { display: none; }

/* ---------- Job Cost: balanced 3-number layout ---------- */

.jobcost-numbers {
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}

.jobcost-numbers .jobcost-number-block:nth-child(3) {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line-softer);
  padding-top: 14px;
  margin-top: 2px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-direction: row;
}

.jobcost-numbers .jobcost-number-block:nth-child(3) .jobcost-number-label {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-primary);
}

.jobcost-numbers .jobcost-number-block:nth-child(3) .jobcost-number-value {
  font-size: 30px;
}

/* ---------- Numpad: tighter spacing ---------- */

.numpad-display {
  flex: 0 0 auto;
  padding: 24px 24px 18px;
}

.numpad-screen {
  justify-content: flex-end;
}

.numpad-quantity {
  font-size: 64px;
  margin: 4px 0 8px;
}

/* ---------- Upgrade bullets: prevent awkward wrapping ---------- */

.upgrade-card-list li {
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 12px;
}

.upgrade-card-list li > svg.upgrade-check {
  flex-shrink: 0;
  margin-top: 2px;
}

.upgrade-card-list li > span {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.45;
}

/* ===================================================================
 * SHIP 2 V2 — directory architecture, parts/labor logger on Pipeline,
 * close-out moment, Boards admin, public biz page, Bulletin posts.
 * =================================================================== */

/* ---------- Camera v2: single shutter ---------- */

.camera-shutter-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 28px 0;
  gap: 24px;
}

.camera-thumbtray {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  padding: 0;
  overflow: hidden;
}
.camera-thumbtray-img {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #064e3b, #047857);
}

.camera-shutter {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.9);
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}
.camera-shutter-ring {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #fff;
  display: block;
}

.camera-flip {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.camera-hint-line {
  margin: 14px 0 0;
  text-align: center;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.01em;
}

/* ---------- Quote v2: Pipeline cards with embedded logger ---------- */

.pipeline-group {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-secondary);
  margin: 18px 0 8px;
}

.pipeline-card {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.pipeline-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pipeline-card-body { flex: 1; min-width: 0; }
.pipeline-card-name { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink-primary); letter-spacing: -0.01em; }
.pipeline-card-sub { margin: 3px 0 0; font-size: 13px; color: var(--ink-secondary); }

.pipeline-cost-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 12px 0 0;
  margin-top: 12px;
  border-top: 1px solid var(--hairline);
}
.pipeline-cost-cell { text-align: left; }
.pipeline-cost-label { margin: 0; font-size: 11px; color: var(--ink-secondary); }
.pipeline-cost-value { margin: 2px 0 0; font-size: 15px; font-weight: 600; color: var(--ink-primary); letter-spacing: -0.01em; }
.pipeline-cost-value--good { color: #047857; }

.pipeline-logger-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.pipeline-logger-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  border-radius: 10px;
  background: #1d1d1f;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: -0.005em;
}
.pipeline-logger-btn--ghost {
  background: transparent;
  color: var(--ink-primary);
  border: 1px solid var(--hairline);
}
.pipeline-logger-icon { display: inline-grid; place-items: center; }

/* ---------- Job Cost v2: $11,800 yours moment ---------- */

.closeout-hero {
  text-align: center;
  padding: 24px 20px 20px;
}
.closeout-eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-secondary);
  letter-spacing: 0.02em;
}
.closeout-bignum {
  margin: 8px 0 0;
  font-size: 72px;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: #047857;
  line-height: 1;
}
.closeout-line {
  margin: 4px 0 0;
  font-size: 24px;
  font-weight: 500;
  color: var(--ink-primary);
  letter-spacing: -0.02em;
}
.closeout-meta {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--ink-secondary);
}

.closeout-bar-wrap { padding: 0 20px; margin-top: 8px; }
.closeout-bar {
  position: relative;
  height: 6px;
  border-radius: 3px;
  background: #f1f3f5;
  overflow: visible;
}
.closeout-bar-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, #10b981, #047857);
  border-radius: 3px;
}
.closeout-bar-threshold {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  background: #1d1d1f;
}
.closeout-bar-legend {
  position: relative;
  height: 18px;
  margin-top: 6px;
}
.closeout-bar-tick {
  position: absolute;
  font-size: 10px;
  color: var(--ink-secondary);
  transform: translateX(-50%);
  white-space: nowrap;
}
.closeout-bar-tick strong { color: var(--ink-primary); font-weight: 600; }

.closeout-breakdown {
  margin: 24px 20px 0;
  background: #fbfbfd;
  border-radius: 12px;
  padding: 4px 14px;
}
.closeout-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-size: 14px;
}
.closeout-row:last-child { border-bottom: none; }
.closeout-row-label { color: var(--ink-secondary); }
.closeout-row-value { color: var(--ink-primary); font-weight: 500; font-variant-numeric: tabular-nums; }
.closeout-row-value--over { color: #b45309; }
.closeout-row--strong { border-top: 1px solid var(--hairline); padding-top: 12px; margin-top: 2px; }
.closeout-row--strong .closeout-row-label,
.closeout-row--strong .closeout-row-value {
  font-weight: 600;
  color: var(--ink-primary);
  font-size: 15px;
}

.closeout-parts-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 20px 0;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--ink-primary);
  text-decoration: none;
  border: 1px solid var(--hairline);
  border-radius: 10px;
}

.closeout-share {
  margin: 24px 20px 0;
  padding: 18px 18px 14px;
  background: linear-gradient(180deg, #fbfbfd, #f5f5f7);
  border: 1px solid var(--hairline);
  border-radius: 14px;
}
.closeout-share-line {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-primary);
  letter-spacing: -0.01em;
}
.closeout-share-row { display: grid; gap: 8px; }
.closeout-share-btn {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-primary);
  text-align: left;
  cursor: pointer;
}
.closeout-share-btn-glyph {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: #f1f3f5;
  display: grid; place-items: center;
  color: var(--ink-primary);
}
.closeout-affiliate {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink-primary);
}
.closeout-affiliate-glyph {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #047857, #065f46);
  color: #fff;
  display: grid; place-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.closeout-affiliate-body { flex: 1; font-size: 13px; line-height: 1.45; }
.closeout-affiliate-meta { display: block; font-size: 11px; color: var(--ink-secondary); margin-top: 2px; }

/* ---------- Boards v2: My page admin ---------- */

.boards-livepage {
  display: block;
  margin-top: 16px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink-primary);
  position: relative;
}
.boards-livepage-cover {
  height: 100px;
  background: linear-gradient(135deg, #075985 0%, #0c4a6e 40%, #047857 100%);
}
.boards-livepage-body { padding: 12px 14px 4px; }
.boards-livepage-eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #047857;
}
.boards-livepage-handle {
  margin: 4px 0 0;
  font-family: ui-monospace, SF Mono, Menlo, monospace;
  font-size: 11px;
  line-height: 1.4;
  color: var(--ink-primary);
  word-break: normal;
  overflow-wrap: anywhere;
}
.boards-livepage-meta {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--ink-secondary);
}
.boards-livepage-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 10px 14px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #047857;
}

.boards-edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.boards-edit-tile {
  display: block;
  padding: 12px 12px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink-primary);
}
.boards-edit-tile-label { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: -0.01em; }
.boards-edit-tile-meta { margin: 3px 0 0; font-size: 11px; color: var(--ink-secondary); line-height: 1.35; }
.boards-edit-tile-status {
  margin: 8px 0 0;
  font-size: 11px;
  font-weight: 600;
  color: #047857;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.boards-edit-tile-status--nudge { color: #b45309; }
.boards-edit-tile--nudge { background: #fffbeb; border-color: #fde68a; }

.lead-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin: 0 0 8px;
}
.lead-card-cta {
  padding: 7px 12px;
  border-radius: 8px;
  background: #1d1d1f;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.boards-toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fbfbfd;
  border: 1px solid var(--hairline);
  border-radius: 12px;
}
.boards-toggle-body { flex: 1; }
.boards-toggle-label { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.boards-toggle-meta { margin: 3px 0 0; font-size: 12px; color: var(--ink-secondary); }
.boards-toggle-switch {
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: #d1d5db;
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}
.boards-toggle-switch.is-on { background: #047857; }
.boards-toggle-dot {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.boards-toggle-switch.is-on .boards-toggle-dot { transform: translateX(18px); }

/* ---------- Public biz page (Yelp-style) ---------- */

.bizpage-urlbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px 6px 14px;
  background: #f1f3f5;
  border-bottom: 1px solid var(--hairline);
  font-size: 11px;
  color: var(--ink-secondary);
  font-family: ui-monospace, SF Mono, Menlo, monospace;
}
.bizpage-urlbar-lock { display: inline-grid; place-items: center; color: #047857; }
.bizpage-urlbar-url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.bizpage {
  background: #fff;
  min-height: calc(100% - 50px);
}
.bizpage-cover {
  height: 160px;
  background:
    linear-gradient(135deg, rgba(7,89,133,0.7), rgba(4,120,87,0.85)),
    radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1), transparent);
}
.bizpage-head {
  padding: 18px 20px 0;
  text-align: left;
}
.bizpage-avatar {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: #fff;
  border: 2px solid #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 20px;
  color: #047857;
  margin-top: -50px;
}
.bizpage-name {
  margin: 12px 0 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
  line-height: 1.2;
}
.bizpage-loc {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--ink-secondary);
}
.bizpage-stars-row {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.bizpage-stars { display: inline-flex; gap: 1px; color: #f59e0b; }
.bizpage-stars-meta { font-size: 12px; color: var(--ink-secondary); }
.bizpage-license {
  margin: 8px 0 0;
  font-size: 11px;
  font-weight: 600;
  color: #047857;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bizpage-cta-row {
  display: flex;
  gap: 8px;
  padding: 16px 20px 4px;
}
.bizpage-cta {
  flex: 1;
  padding: 13px 14px;
  background: #1d1d1f;
  color: #fff;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  letter-spacing: -0.01em;
}
.bizpage-cta-secondary {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 13px 12px;
  background: #fff;
  color: var(--ink-primary);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
}

.bizpage-facts {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  padding: 14px 20px;
  margin-top: 4px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.bizpage-fact { text-align: center; }
.bizpage-fact + .bizpage-fact { border-left: 1px solid var(--hairline); }
.bizpage-fact-label { margin: 0; font-size: 11px; color: var(--ink-secondary); }
.bizpage-fact-value { margin: 3px 0 0; font-size: 13px; font-weight: 600; color: var(--ink-primary); letter-spacing: -0.005em; }

.bizpage-section { padding: 18px 20px; border-bottom: 1px solid var(--hairline); }
.bizpage-section-title { margin: 0 0 10px; font-size: 16px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink-primary); }
.bizpage-section-body { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-primary); }
.bizpage-section-more {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #047857;
  text-decoration: none;
}

.bizpage-portfolio {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
}
.bizpage-portfolio-thumb {
  aspect-ratio: 1;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}
.bizpage-portfolio-thumb--blue { background: linear-gradient(135deg, #075985, #0c4a6e); }
.bizpage-portfolio-thumb--green { background: linear-gradient(135deg, #064e3b, #047857); }
.bizpage-portfolio-thumb--amber { background: linear-gradient(135deg, #78350f, #b45309); }
.bizpage-portfolio-thumb--slate { background: linear-gradient(135deg, #1e293b, #475569); }
.bizpage-portfolio-more {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.bizpage-service-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-size: 14px;
}
.bizpage-service-row:last-child { border-bottom: none; }
.bizpage-service-name { color: var(--ink-primary); font-weight: 500; }
.bizpage-service-range { color: var(--ink-secondary); font-variant-numeric: tabular-nums; }

.bizpage-review {
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.bizpage-review:last-of-type { border-bottom: none; }
.bizpage-review-stars {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #f59e0b;
}
.bizpage-review-author { margin-left: 4px; color: var(--ink-primary); font-size: 13px; font-weight: 500; }
.bizpage-review-text { margin: 8px 0 0; font-size: 14px; line-height: 1.55; color: var(--ink-primary); }
.bizpage-review-meta { margin: 6px 0 0; font-size: 11px; color: var(--ink-secondary); }

.bizpage-footer {
  padding: 20px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-secondary);
}

/* ---------- Bulletin v2: Reddit-style threads + composer ---------- */

.bulletin-composer {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  cursor: text;
}
.bulletin-composer-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #047857, #065f46);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.bulletin-composer-prompt {
  flex: 1;
  text-align: left;
  font-size: 14px;
  color: var(--ink-secondary);
}
.bulletin-composer-glyph {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1d1d1f;
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.bulletin-cats {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-top: 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.bulletin-cats::-webkit-scrollbar { display: none; }
.bulletin-cat {
  flex-shrink: 0;
  padding: 6px 12px;
  background: #f1f3f5;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-secondary);
}
.bulletin-cat.is-active {
  background: #1d1d1f;
  color: #fff;
}

.bulletin-thread {
  background: #fff;
  border-bottom: 1px solid var(--hairline);
  padding: 14px 0;
}
.bulletin-thread:last-of-type { border-bottom: none; }
.bulletin-thread-meta {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.bulletin-thread-vote {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 28px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-primary);
}
.bulletin-thread-vote--muted { color: var(--ink-secondary); }
.bulletin-thread-body { flex: 1; min-width: 0; }
.bulletin-thread-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-primary);
  line-height: 1.4;
  letter-spacing: -0.005em;
}
.bulletin-thread-sub {
  margin: 4px 0 0;
  font-size: 11px;
  color: var(--ink-secondary);
}
.bulletin-thread-sub strong { color: var(--ink-primary); font-weight: 600; }
.bulletin-thread-replies {
  margin: 6px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--ink-secondary);
}
.bulletin-thread-more {
  background: transparent;
  border: none;
  color: var(--ink-secondary);
  padding: 4px;
  cursor: pointer;
  align-self: flex-start;
}

.bulletin-thread--hold .bulletin-thread-title {
  color: var(--ink-secondary);
}
.bulletin-thread-hold {
  margin: 6px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #b45309;
  font-weight: 500;
}

.bulletin-mod-foot {
  margin: 20px 0 0;
  text-align: center;
  font-size: 11px;
  color: var(--ink-secondary);
  font-style: italic;
}

/* ---------- Client quote: URL bar + breadcrumb + sender note ---------- */

.client-quote-crumb {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 12px 20px 0;
  font-size: 12px;
  font-weight: 500;
  color: #047857;
  text-decoration: none;
}
.client-quote-sender {
  margin: 14px 0 0;
  padding: 12px 14px;
  background: #f1f3f5;
  border-radius: 10px;
  font-size: 11px;
  color: var(--ink-secondary);
  line-height: 1.5;
}

/* ===== Team & Settings drawer ===== */
.team-drawer { position:absolute; inset:0; z-index:60; pointer-events:none; opacity:0; transition:opacity 200ms ease; }
.team-drawer.is-open { opacity:1; pointer-events:auto; }
.team-drawer-scrim { position:absolute; inset:0; background:rgba(0,0,0,0.32); }
.team-drawer-sheet {
  position:absolute; left:0; right:0; bottom:0; max-height:88%; overflow-y:auto;
  background:#fbfbfd; border-radius:18px 18px 0 0; padding:8px 20px 28px;
  box-shadow:0 -8px 24px rgba(0,0,0,0.08);
  transform:translateY(16px); transition:transform 260ms cubic-bezier(0.32,0.72,0,1);
}
.team-drawer.is-open .team-drawer-sheet { transform:translateY(0); }
.team-drawer-handle { width:38px; height:4px; border-radius:999px; background:rgba(0,0,0,0.14); margin:6px auto 14px; }
.team-drawer-head { display:flex; align-items:center; gap:12px; padding-bottom:14px; border-bottom:1px solid rgba(0,0,0,0.08); }
.team-drawer-avatar { width:44px; height:44px; border-radius:50%; background:#1d1d1f; color:#fff; display:grid; place-items:center; font-size:16px; font-weight:600; }
.team-drawer-name { margin:0; font-size:16px; font-weight:600; color:#1d1d1f; }
.team-drawer-role { margin:2px 0 0; font-size:12px; color:#6e6e73; }
.team-drawer-close { border:0; background:transparent; color:#1d1d1f; width:32px; height:32px; display:grid; place-items:center; cursor:pointer; }
.team-drawer-section { margin:20px 0 8px; font-size:11px; font-weight:600; letter-spacing:0.04em; text-transform:uppercase; color:#6e6e73; }
.team-row { display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid rgba(0,0,0,0.06); }
.team-row:last-of-type { border-bottom:0; }
.team-row-avatar { width:34px; height:34px; border-radius:50%; color:#fff; display:grid; place-items:center; font-size:13px; font-weight:600; flex-shrink:0; }
.team-row-body { flex:1; min-width:0; }
.team-row-name { margin:0; font-size:14px; font-weight:500; color:#1d1d1f; }
.team-row-sub { margin:2px 0 0; font-size:12px; color:#6e6e73; }
.team-pill { font-size:11px; font-weight:500; padding:3px 8px; border-radius:999px; flex-shrink:0; }
.team-pill--owner { background:#1d1d1f; color:#fff; }
.team-pill--lead  { background:#0a1e3a; color:#fff; }
.team-pill--crew  { background:rgba(10,30,58,0.08); color:#0a1e3a; }
.team-pill--office{ background:rgba(0,0,0,0.06); color:#1d1d1f; }
.team-pill--aff   { background:#0a5132; color:#fff; }
.team-invite-btn { margin-top:14px; width:100%; padding:12px; border-radius:10px; border:1px solid rgba(0,0,0,0.12); background:#fff; font-size:14px; font-weight:500; color:#1d1d1f; cursor:pointer; }
.team-link { display:flex; align-items:center; justify-content:space-between; padding:14px 0; border-bottom:1px solid rgba(0,0,0,0.06); font-size:14px; color:#1d1d1f; text-decoration:none; }
.team-link:last-of-type { border-bottom:0; }
.team-link-meta { color:#6e6e73; font-size:13px; }

/* ===== Spanish toggle (crew surfaces) ===== */
.lang-toggle {
  display:inline-flex; align-items:center; gap:2px;
  background:rgba(0,0,0,0.05); border-radius:999px; padding:3px;
  font-size:11px; font-weight:500;
}
.lang-toggle button {
  border:0; background:transparent; padding:4px 10px; border-radius:999px;
  color:#6e6e73; cursor:pointer; font:inherit;
}
.lang-toggle button.is-on { background:#fff; color:#1d1d1f; box-shadow:0 1px 2px rgba(0,0,0,0.06); }
