@font-face {
  font-family: "Hanken Grotesk";
  src: url("../../fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --shell: #0a1a5c;
  --shell-line: #2a3a80;
  --shell-text: #dbe4ff;
  --paper: #f6f8ff;
  --signal: #ff7a3d;
  --red: #c42b23;
  --red-fill: #d0342c;
  --red-tint: #fff3f2;
  --amber: #8a5300;
  --amber-fill: #ff9f0a;
  --amber-tint: #fff6e6;
  --green: #1c7036;
  --green-fill: #34c759;
  --green-tint: #e9f8ee;
  --grey: #5c5e66;
  --grey-tint: #ececef;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 450;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
  background: var(--shell);
}

button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; touch-action: manipulation; }
h1, h2, h3, h4, p, ul, ol, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
h1, h2, h3 { text-wrap: balance; letter-spacing: -0.02em; }
p { text-wrap: pretty; }
img { display: block; max-width: 100%; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.no-script { padding: 24px; color: var(--paper); }

.icon {
  flex: none;
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Shell */
.app {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100vh;
  height: 100svh;
  background: var(--shell);
}
.app.is-embed { display: block; height: auto; background: transparent; }
body:has(.is-embed) { overflow: auto; background: transparent; }

.guest-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 6px 16px;
  color: var(--shell-text);
}

.guest-note {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-right: auto;
  font-size: 0.875rem;
}
.guest-note strong {
  flex: none;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--shell);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.3;
}
.guest-detail { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.views {
  flex: none;
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--shell-line);
}
.views button {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--shell-text);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease;
}
.views button[aria-pressed="true"] { background: var(--paper); color: var(--shell); }

.guest-bar :focus-visible { outline: 3px solid #6aebf8; outline-offset: 2px; }
.guest-home { flex: none; color: var(--shell-text); font-size: 0.875rem; font-weight: 700; text-underline-offset: 3px; }

.stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
  background: #fff;
}
.framed .stage { border-radius: 14px; }
.stage[data-view="both"] { grid-template-columns: clamp(360px, 32%, 560px) minmax(0, 1fr); }
.stage[data-view="customer"] .side-owner,
.stage[data-view="owner"] .side-customer { display: none; }
.is-signed-out .side,
.is-signed-out .views { display: none; }

.side { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.stage[data-view="both"] .side-owner { border-left: 1px solid #d9dbe3; }

.signed-out:empty { display: none; }
.signed-out { grid-column: 1 / -1; display: grid; place-items: center; min-height: 0; padding: 24px; }

/* Customer side: the client's own colours, so a business can swap them */
.customer {
  --primary: #1f3a5f;
  --primary-ink: #fff;
  --ground: #f4f4f2;
  --card: #fff;
  --ink: #1a1a1a;
  --muted: #566274;
  --line: #dde1e8;
  --accent: #e07a1f;
  container: customer / inline-size;
  height: 100%;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #bcc1cc transparent;
  background: var(--ground);
  color: var(--ink);
}
.is-embed .customer { height: auto; overflow: visible; }
.customer :focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.customer ::selection { background: var(--primary); color: var(--primary-ink); }

.c-page { padding: clamp(24px, 6cqi, 48px) clamp(16px, 6cqi, 40px) 56px; }
.c-landing { display: grid; align-items: center; min-height: 100%; }
.c-wrap { display: grid; gap: 18px; width: 100%; max-width: 660px; margin-inline: auto; }
.is-stepping .c-wrap { animation: step-in 240ms var(--ease-out) both; }
.c-wrap.is-narrow { max-width: 560px; }
.c-wrap.is-wide { max-width: 760px; }

@keyframes step-in {
  from { opacity: 0; transform: translateY(8px); }
}

.c-wrap h1 { outline: none; font-size: clamp(2rem, 8.4cqi, 3.25rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.03em; }
.c-landing h1 { font-size: clamp(2.75rem, 13cqi, 5.25rem); line-height: 0.98; letter-spacing: -0.035em; }
.c-logo { width: auto; height: 48px; object-fit: contain; object-position: left; }
.c-brand { display: grid; gap: 4px; max-width: 34em; color: var(--muted); font-size: 0.9375rem; line-height: 1.4; }
.c-brand strong { color: var(--primary); font-size: 1.0625rem; font-weight: 800; letter-spacing: -0.01em; }
.c-lead { max-width: 30em; color: var(--muted); font-size: clamp(1.125rem, 4.4cqi, 1.3125rem); line-height: 1.4; }
.c-kicker { color: var(--primary); font-size: 0.9375rem; font-weight: 700; }
.c-text { max-width: 36em; color: var(--muted); font-size: 1.0625rem; }
.c-hint { color: var(--muted); font-size: 0.875rem; }
.c-hint.is-center { text-align: center; }
.c-guest { padding: 10px 12px; border-radius: 10px; background: #e8ebf7; color: #1b2a62; font-size: 0.875rem; }
.c-label { font-size: 0.9375rem; font-weight: 700; }
.c-error { padding: 10px 12px; border-radius: 10px; background: var(--red-tint); color: var(--red); font-size: 0.9375rem; font-weight: 600; }

.c-primary,
.c-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 160ms ease, transform 120ms var(--ease-out);
}
.c-primary { justify-self: start; background: var(--primary); color: var(--primary-ink); }
.c-primary.is-full { justify-self: stretch; width: 100%; }
.c-secondary { justify-self: start; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); }
.c-primary:active,
.c-secondary:active { transform: scale(0.97); }

.c-link { font-weight: 700; color: var(--ink); text-align: left; }
.c-sample {
  justify-self: start;
  min-height: 36px;
  padding: 0 14px;
  border: 1.5px dashed #9aa3b2;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
}

.c-card {
  display: grid;
  gap: 18px;
  padding: clamp(16px, 5cqi, 26px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}
.c-card.is-hero { gap: 0; padding: 0; overflow: hidden; }
.c-group { display: grid; gap: 10px; }

.field { display: grid; gap: 6px; }
.field label { font-size: 0.9375rem; font-weight: 600; }
.field input,
.field textarea,
.c-years input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1.5px solid var(--line, #dfe1e8);
  border-radius: 10px;
  background: #fff;
  color: inherit;
  font-size: 16px;
}
.field textarea { resize: vertical; line-height: 1.4; }
.field input::placeholder,
.field textarea::placeholder { color: #6b7280; }

.c-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.c-actions { display: flex; flex-wrap: wrap-reverse; justify-content: space-between; gap: 10px; }
.c-actions.is-start { justify-content: flex-start; flex-wrap: wrap; }
.c-actions .c-primary { flex: 1 1 auto; }
.c-actions.is-start .c-primary { flex: 0 1 auto; }
.c-zip { min-height: 24px; margin-top: 6px; display: grid; gap: 8px; }
.c-place { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.9375rem; }
.c-place .icon { color: var(--primary); }

.c-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.c-photos.is-large { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.c-photo { position: relative; aspect-ratio: 1; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #e7e9ee; }
.c-photo img { width: 100%; height: 100%; object-fit: cover; }
.c-photo button {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(26, 26, 26, 0.84);
  color: #fff;
  font-size: 0.75rem;
}

.c-question { display: grid; gap: 12px; padding: clamp(14px, 4.4cqi, 20px); border: 1px solid var(--line); border-radius: 12px; }
.c-question h2 { font-size: 1.0625rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.c-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.c-chip { min-height: 44px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 0.9375rem; font-weight: 600; transition: background-color 160ms ease, color 160ms ease; }
.c-chip[aria-pressed="true"] { border-color: var(--primary); background: var(--primary); color: var(--primary-ink); }
.c-years { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.c-years input { width: 96px; }

/* Report */
.c-report-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 0.9375rem; }
.c-tag { flex: none; padding: 4px 12px; border-radius: 999px; background: var(--amber-tint); color: var(--amber); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.02em; }
.c-sent { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; padding: 10px 14px; border-radius: 12px; background: var(--shell); color: var(--paper); font-size: 0.9375rem; }
.c-sent-open { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.stage[data-view="both"] .c-sent-open { display: none; }

.c-hero { display: grid; gap: 14px; padding: clamp(20px, 6cqi, 32px); background: #e9edf4; }
.c-hero-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; }
.c-hero-row > div:first-child { flex: 1 1 240px; display: grid; gap: 8px; }
.c-hero h1 { font-size: clamp(1.75rem, 7.4cqi, 2.625rem); }
.c-overall { flex: 0 1 auto; display: grid; justify-items: center; padding: 10px 16px; border-radius: 14px; text-align: center; }
.c-overall small { font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.08em; }
.c-overall strong { font-size: 1.125rem; font-weight: 800; }
.c-overall span { font-size: 0.8125rem; }

.is-red.c-overall, .grade.is-red { background: var(--red-tint); color: var(--red); }
.is-yellow.c-overall, .grade.is-yellow { background: var(--amber-tint); color: var(--amber); }
.is-green.c-overall, .grade.is-green { background: var(--green-tint); color: var(--green); }

.grade {
  flex: none;
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.score-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
.score-strip span, .bar { height: 6px; border-radius: 3px; }
.score-strip .is-red, .bar.is-red { background: var(--red-fill); }
.score-strip .is-yellow, .bar.is-yellow { background: var(--amber-fill); }
.score-strip .is-green, .bar.is-green { background: var(--green-fill); }

.c-section { display: grid; gap: 12px; padding: clamp(18px, 6cqi, 30px); border-top: 1px solid var(--line); }
.c-section h2, .c-cta h2 { font-size: 1.5rem; font-weight: 800; line-height: 1.15; }
.c-finding { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.c-finding-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.c-finding h3 { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }
.c-finding p { color: var(--muted); font-size: 0.9375rem; line-height: 1.4; }
.c-finding .c-action { padding-top: 10px; border-top: 1px solid var(--line); color: var(--ink); }
.c-priority { display: flex; align-items: center; gap: 6px; font-size: 0.9375rem; font-weight: 700; }
.c-priority .icon { color: var(--primary); }
.c-steps { display: grid; gap: 10px; }
.c-step { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
.c-step-number { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--primary); color: var(--primary-ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.c-step h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; }
.c-step p { margin-top: 2px; color: var(--muted); font-size: 0.9375rem; line-height: 1.4; }
.c-cta { gap: 12px; }
.c-social { display: flex; flex-wrap: wrap; gap: 8px; }
.c-social a { display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: 50%; color: var(--ink); }
.c-trust h3 { display: flex; align-items: center; gap: 8px; font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; }
.c-trust .icon { color: var(--primary); }
.c-claims { display: flex; flex-wrap: wrap; gap: 8px; }
.c-claims span { padding: 5px 12px; border-radius: 999px; background: #e9edf4; color: var(--primary); font-size: 0.8125rem; font-weight: 600; }
.c-disclaimer { color: var(--muted); font-size: 0.8125rem; text-align: center; }

/* Owner side */
.owner {
  --ink: #1d1d1f;
  --muted: #5f6168;
  --soft: #f5f5f7;
  --soft-hover: #ececef;
  --line: #e3e3e8;
  --link: #0062c4;
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  overflow: hidden;
  background: #fff;
  color: var(--ink);
}
.owner :focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.owner ::selection { background: var(--ink); color: #fff; }

.o-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 56px; padding: 0 16px; }
.o-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; }
.o-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 0.8125rem; }
.o-head-actions { display: flex; align-items: center; gap: 8px; }
.o-test { min-height: 34px; padding: 0 13px; border: 1.5px dashed #9b9da6; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; }
.o-icon-button { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--soft); font-size: 0.875rem; }

.o-frame { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; }
.o-tabs { order: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); height: 60px; border-top: 1px solid #ececef; }
.o-tab { display: grid; place-content: center; justify-items: center; gap: 2px; color: var(--muted); font-size: 0.75rem; font-weight: 600; transition: color 160ms ease; }
.o-tab .icon { width: 22px; height: 22px; stroke-width: 1.6; }
.o-tab[aria-current="page"] { color: var(--ink); }
.o-tab[aria-current="page"] .icon { stroke-width: 2.1; }

.o-main { order: 1; display: grid; min-height: 0; }
.o-list,
.owner[data-size="wide"] .o-side,
.sheet-body { scrollbar-width: thin; scrollbar-color: #c6c7ce transparent; }
.o-list { min-width: 0; min-height: 0; overflow-y: auto; padding: 8px 16px 24px; }
.o-side[hidden] { display: none; }
.o-setup[hidden] { display: none; }
.o-setup { position: absolute; inset: 0; z-index: 30; overflow-y: auto; background: #fff; }
.o-setup-body { display: grid; gap: 14px; max-width: 560px; margin-inline: auto; padding: 32px 20px; }
.o-setup-body h2 { font-size: 2rem; font-weight: 800; line-height: 1.1; }
.o-card { display: grid; gap: 14px; padding: 18px; border-radius: 16px; background: var(--soft); }

.owner[data-size="wide"] .o-frame { grid-template-rows: minmax(0, 1fr); grid-template-columns: 84px minmax(0, 1fr); border-top: 1px solid var(--line); }
.owner[data-size="wide"] .o-tabs { order: 0; grid-template-columns: minmax(0, 1fr); grid-auto-rows: 72px; align-content: start; height: auto; padding-top: 6px; border-top: 0; border-right: 1px solid var(--line); }
.owner[data-size="wide"] .o-main { grid-template-columns: minmax(330px, 2fr) minmax(0, 3fr); }
.owner[data-size="wide"][data-tab="settings"] .o-main { grid-template-columns: minmax(0, 1fr); }
.owner[data-size="wide"] .o-list { padding: 18px 18px 24px; }
.owner[data-size="wide"] .o-side { container: lead / inline-size; min-height: 0; overflow-y: auto; padding: 20px 24px 32px; border-left: 1px solid var(--line); }

.o-view { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.o-title { display: grid; gap: 4px; }
.o-title.is-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.o-title h2 { font-size: 1.875rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; }
.o-title p { color: var(--muted); font-size: 0.9375rem; line-height: 1.4; }
.is-overdue { color: var(--red); font-weight: 700; }
.o-title-actions { flex: none; display: flex; gap: 8px; }

.o-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.o-pill {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--soft);
  font-size: 0.875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: background-color 160ms ease, color 160ms ease, transform 120ms var(--ease-out);
}
.o-pill.is-call { background: var(--red-tint); color: var(--red); }
.o-pill[aria-pressed="true"] { background: var(--ink); color: #fff; }
.o-pill.is-call[aria-pressed="true"] { background: var(--red); color: #fff; }
.o-pill:active { transform: scale(0.97); }

.o-select-pill { position: relative; display: inline-flex; align-items: center; margin-left: auto; }
.o-select-pill select,
.o-status-select select { appearance: none; border: 0; background: none; font-weight: 700; cursor: pointer; }
.o-select-pill select { min-height: 38px; padding: 0 30px 0 14px; border-radius: 999px; background: var(--soft); font-size: 0.875rem; }
.o-select-pill .icon { position: absolute; right: 10px; pointer-events: none; font-size: 0.875rem; color: var(--muted); }

.o-rows { display: grid; gap: 8px; }
.o-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 72px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--soft);
  text-align: left;
  transition: background-color 160ms ease, transform 120ms var(--ease-out);
}
.o-row:active { transform: scale(0.99); }
.o-row[aria-current="true"],
.o-card-row[aria-current="true"] { background: #e7ecf8; }
.o-row-main { flex: 1; display: grid; gap: 2px; min-width: 0; }
.o-row-name { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; }
.o-row-name > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.o-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #c9c9d0; }
.o-dot.is-urgent { background: var(--red-fill); }
.o-row-meta { color: var(--muted); font-size: 0.875rem; line-height: 1.35; }
.o-row-meta .is-call { color: var(--red); font-weight: 700; }
.o-row-meta .is-late { color: var(--red); font-weight: 600; }
.o-row-meta .is-soon { color: var(--amber); font-weight: 600; }
.o-view-pill { flex: none; display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; background: #fff; font-size: 0.875rem; font-weight: 700; }

.is-flash { animation: arrive 2400ms ease-out both; }
@keyframes arrive {
  0%, 40% { background-color: #ffe9d9; }
}

.o-empty { padding: 34px 20px; border-radius: 16px; background: var(--soft); text-align: center; }
.o-empty h2 { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; }
.o-empty p { margin-top: 6px; color: var(--muted); font-size: 0.875rem; }
.o-empty-text { color: var(--muted); font-size: 0.875rem; }

.o-chip { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 38px; padding: 0 14px; border-radius: 999px; background: var(--soft); font-size: 0.875rem; font-weight: 600; }
.o-chip.is-sort { flex: none; width: 104px; }
.o-chip .icon { color: var(--muted); font-size: 0.875rem; }
.o-round { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff; }
.o-round.is-save { background: var(--green-tint); color: var(--green); }
.o-round.is-cancel { background: var(--soft); color: var(--muted); }

.o-search-row { display: flex; align-items: center; gap: 8px; }
.o-search { position: relative; flex: 1; min-width: 0; display: block; }
.o-search .icon { position: absolute; top: 50%; left: 13px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.o-search input { width: 100%; height: 40px; padding: 0 14px 0 38px; border: 0; border-radius: 999px; background: var(--soft); font-size: 16px; }
.o-search input::placeholder { color: var(--muted); }

.o-segments { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 3px; border-radius: 999px; background: var(--soft); }
.o-segments button { min-height: 36px; border-radius: 999px; color: var(--muted); font-size: 0.8125rem; font-weight: 600; transition: background-color 160ms ease, color 160ms ease; }
.o-segments button[aria-pressed="true"] { background: #fff; color: var(--ink); font-weight: 700; }
.o-segments.is-two { max-width: 240px; margin-bottom: 10px; }
.o-more { min-height: 40px; color: var(--link); font-size: 0.875rem; font-weight: 700; }

.o-card-row { display: grid; gap: 6px; padding: 14px; border-radius: 16px; background: var(--soft); cursor: pointer; transition: background-color 160ms ease; }
.o-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.o-card-name { min-width: 0; overflow: hidden; font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; text-align: left; white-space: nowrap; text-overflow: ellipsis; }
.o-status { flex: none; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
.o-status.is-red, .o-status-grid .is-red { background: var(--red-tint); color: var(--red); }
.o-status.is-amber, .o-status-grid .is-amber { background: var(--amber-tint); color: var(--amber); }
.o-status.is-green, .o-status-grid .is-green { background: var(--green-tint); color: var(--green); }
.o-status.is-grey, .o-status-grid .is-grey { background: var(--grey-tint); color: var(--grey); }
.o-card-meta { overflow: hidden; color: var(--muted); font-size: 0.875rem; white-space: nowrap; text-overflow: ellipsis; }
.o-card-bars { display: flex; align-items: center; gap: 3px; min-width: 0; }
.o-card-bars .bar { flex: none; width: 14px; height: 4px; border-radius: 2px; }
.o-card-bars small { margin-left: 6px; color: var(--muted); font-size: 0.8125rem; }
.o-age { margin-left: auto !important; font-variant-numeric: tabular-nums; font-weight: 600; }
.o-age.is-hot { color: var(--red) !important; font-weight: 800; }
.o-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.o-card-actions > div { flex: none; display: flex; gap: 6px; }
.o-card-actions p { min-width: 0; overflow: hidden; color: var(--muted); font-size: 0.8125rem; text-align: right; white-space: nowrap; text-overflow: ellipsis; }
.o-mini { min-height: 34px; padding: 0 13px; border-radius: 999px; background: #fff; font-size: 0.8125rem; font-weight: 600; transition: transform 120ms var(--ease-out); }
.o-mini.is-dark { background: var(--ink); color: #fff; }
.o-mini:active { transform: scale(0.96); }

.o-kicker { color: var(--muted); font-size: 0.8125rem; font-weight: 700; }
.o-subtitle { color: var(--muted); font-size: 0.9375rem; line-height: 1.4; }
.o-hint { color: var(--muted); font-size: 0.8125rem; }
.o-error { color: var(--red); font-size: 0.875rem; font-weight: 600; }
.o-guest { padding: 10px 12px; border-radius: 12px; background: #e8ebf7; color: #1b2a62; font-size: 0.875rem; }

.o-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  transition: background-color 160ms ease, transform 120ms var(--ease-out), opacity 160ms ease;
}
.o-button:active:not(:disabled) { transform: scale(0.98); }
.o-button:disabled { opacity: 0.45; cursor: not-allowed; }
.o-button.is-full { width: 100%; }
.o-button.is-tall { min-height: 54px; font-size: 1rem; }
.o-button.is-call { width: 100%; min-height: 54px; font-size: 1.0625rem; }
.o-button.is-small { min-height: 38px; padding: 0 14px; border-radius: 999px; font-size: 0.875rem; }
.o-button.is-soft { background: var(--soft); color: var(--ink); }
.o-text-button { min-height: 42px; padding: 0 12px; color: var(--muted); font-size: 0.9375rem; font-weight: 600; }
.o-text-button.is-full { width: 100%; }
.o-link { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; color: var(--link); font-size: 0.875rem; font-weight: 600; text-decoration: none; }
.o-link.is-small { min-height: 36px; font-size: 0.8125rem; }
.o-link.is-guide { justify-self: center; min-height: 42px; font-size: 0.9375rem; }
.o-link.is-center { display: flex; justify-content: center; width: 100%; min-height: 46px; font-size: 1rem; }

/* Lead */
.o-lead { display: grid; gap: 10px; min-width: 0; }
.o-lead-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.o-lead-who { min-width: 0; }
.o-lead-who h2 { font-size: 1.625rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.o-lead-contact { display: grid; justify-items: start; margin-top: 6px; color: var(--muted); font-size: 0.9375rem; line-height: 1.4; }
.o-lead-contact button { min-height: 28px; color: inherit; text-align: left; overflow-wrap: anywhere; text-decoration: underline; text-decoration-color: #c9c9d0; text-underline-offset: 3px; }
.o-lead-side { flex: none; display: grid; justify-items: end; gap: 4px; }
.o-age-pill { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: 0.875rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.o-age-pill i { width: 7px; height: 7px; border-radius: 50%; background: #8a8c94; }
.o-age-pill.is-hot { background: var(--red-tint); color: var(--red); }
.o-age-pill.is-hot i { background: var(--red-fill); }

.o-lead-columns { display: grid; gap: 14px; min-width: 0; }
.o-lead-facts { display: grid; gap: 8px; align-content: start; min-width: 0; }
.o-guide-slot { display: none; min-width: 0; }
.o-guide-slot.is-open { display: block; padding-top: 14px; border-top: 1px solid var(--line); }

.o-status-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 50px; padding: 6px 14px; border-radius: 12px; background: var(--soft); color: var(--muted); font-size: 0.9375rem; }
.o-status-select { position: relative; display: inline-flex; align-items: center; color: var(--ink); }
.o-status-select select { min-height: 38px; padding: 0 24px 0 6px; font-size: 0.9375rem; text-align: right; }
.o-status-select .icon { position: absolute; right: 2px; pointer-events: none; font-size: 0.875rem; color: var(--muted); }

.o-panel { display: grid; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--soft); }
.o-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; }
.o-panel h2, .o-panel-title { font-size: 0.9375rem; font-weight: 700; letter-spacing: -0.01em; }
.o-panel-meta { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.875rem; }
.o-bars { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 5px; }
.o-findings { display: grid; gap: 4px; font-size: 0.875rem; }
.o-findings li { display: flex; justify-content: space-between; gap: 12px; }
.o-findings span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.o-findings strong { flex: none; font-weight: 600; }
.o-findings .is-red { color: var(--red); }
.o-findings .is-yellow { color: var(--amber); }
.o-findings .is-green { color: var(--green); }
.o-photos p { color: var(--muted); font-size: 0.8125rem; font-weight: 600; }
.o-photos div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.o-photos img, .o-report-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.o-report-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }

.o-contact-actions { display: grid; gap: 8px; margin-top: 8px; }
.o-contact-actions > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.o-contact-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; padding: 12px; border-radius: 12px; background: var(--soft); }
.o-form-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }

.o-activity { display: grid; gap: 6px; }
.o-activity li { padding: 10px 12px; border-radius: 10px; background: #fff; }
.o-activity-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.o-activity-kind { font-size: 0.875rem; font-weight: 700; }
.o-activity-detail { margin-top: 2px; color: var(--muted); font-size: 0.875rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.o-activity time, .o-activity small { display: block; margin-top: 4px; color: var(--muted); font-size: 0.75rem; }
.o-note { display: grid; gap: 8px; margin-top: 4px; }
.o-note > div:last-child { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 0.75rem; }
.o-note .field textarea { min-height: 72px; border-color: transparent; }
.o-note-actions { display: flex; align-items: center; gap: 6px; }
.is-over { color: var(--red) !important; }

/* Call guide */
.o-guide { display: grid; gap: 10px; min-width: 0; }
.o-guide > header h2 { margin-top: 2px; font-size: 1.5rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; }
.o-step { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
.o-step-head { display: flex; align-items: center; gap: 8px; }
.o-step-head span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 0.75rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.o-step-head h3 { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }
.o-say { font-size: 0.9375rem; line-height: 1.5; }
.o-ask { font-size: 0.875rem; font-weight: 700; }
.o-cues { display: grid; gap: 6px; }
.o-cues li { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--soft); color: var(--muted); font-size: 0.875rem; line-height: 1.35; }
.o-cues strong { color: var(--ink); }

.o-disclosure { overflow: hidden; border-radius: 12px; background: var(--soft); }
.o-disclosure summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; padding: 8px 12px; font-size: 0.875rem; font-weight: 700; list-style: none; cursor: pointer; }
.o-disclosure summary::-webkit-details-marker { display: none; }
.o-disclosure .icon { transition: transform 200ms var(--ease-out); }
.o-disclosure[open] summary .icon { transform: rotate(180deg); }
.o-disclosure > div { display: grid; gap: 12px; padding: 0 12px 12px; }

.o-remedies { display: grid; gap: 10px; }
.o-remedy { display: grid; gap: 8px; min-width: 0; }
.o-remedy h4 { font-size: 0.9375rem; font-weight: 700; }
.o-remedy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; }
.o-remedy-side { display: grid; align-content: start; gap: 6px; min-width: 0; padding: 10px 12px; border-radius: 10px; font-size: 0.875rem; line-height: 1.4; }
.o-remedy-side.is-red { background: var(--red-tint); }
.o-remedy-side.is-yellow { background: var(--amber-tint); }
.o-remedy-side.is-green { background: var(--green-tint); }
.o-remedy-label { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); font-size: 0.75rem; font-weight: 700; }
.o-remedy-side .o-button.is-soft { background: #fff; }
.o-remedy-edit { display: grid; gap: 8px; }
.o-remedy-edit > div:last-child { display: flex; flex-wrap: wrap; gap: 6px; }
.o-remedy-edit .o-button.is-small { min-height: 36px; }

.o-prompts { display: grid; gap: 8px; }
.o-prompt { display: grid; gap: 4px; min-width: 0; padding: 10px 12px; border-radius: 10px; background: var(--soft); }
.o-prompt-title { color: var(--muted); font-size: 0.75rem; font-weight: 700; }
.o-script-pill { display: inline-flex; align-items: center; min-height: 34px; margin: 2px 4px; padding: 2px 12px; border-radius: 999px; background: #dfe7fa; color: #173a9b; font-size: 0.8125rem; font-weight: 700; overflow-wrap: anywhere; }
.o-script-pill.is-fixed { background: #fff; color: var(--ink); }
.o-pill-edit { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 2px 4px; vertical-align: middle; }
.o-pill-edit input { width: 150px; min-height: 40px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-size: 16px; }

.o-status-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.o-status-grid button { min-height: 40px; border: 1.5px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 0.8125rem; font-weight: 700; transition: background-color 160ms ease, color 160ms ease; }
.o-status-grid button[aria-pressed="true"] { border-color: transparent; }

.o-report { display: grid; gap: 14px; min-width: 0; }
.o-report-top { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font-size: 0.9375rem; }
.o-report-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.o-report-head h2 { font-size: 1.375rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
.o-report-group { display: grid; gap: 8px; }
.o-report-group > h3 { display: flex; align-items: center; gap: 6px; font-size: 1.0625rem; font-weight: 700; }
.o-report-item { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 0.875rem; line-height: 1.4; }
.o-report-item > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.o-report-item h4 { font-size: 0.9375rem; font-weight: 700; }
.o-report-item p { color: var(--muted); }
.o-report-item .o-report-action { padding-top: 8px; border-top: 1px solid var(--line); color: var(--ink); }
.o-report-question { display: grid; gap: 6px; }
.o-report-question p { color: var(--muted); font-size: 0.8125rem; font-weight: 600; }
.o-report-step { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 0.875rem; line-height: 1.4; }
.o-report-step > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--ink); color: #fff; font-weight: 800; }
.o-report-step h4 { font-size: 0.9375rem; font-weight: 700; }
.o-report-step p { color: var(--muted); }
.o-full-report { display: grid; gap: 8px; }
.o-full-report > h2 { font-size: 1.625rem; font-weight: 800; letter-spacing: -0.03em; }
.o-full-report .o-report { margin-top: 6px; }

.o-side-empty { display: grid; place-content: center; gap: 6px; min-height: 100%; color: var(--muted); text-align: center; }
.o-side-empty h2 { color: var(--ink); font-size: 1.25rem; font-weight: 700; }

/* Sheets */
.layer { position: absolute; inset: 0; z-index: 40; display: grid; align-items: end; justify-items: center; overflow: hidden; }
.scrim { position: absolute; inset: 0; width: 100%; height: 100%; background: rgba(12, 14, 24, 0.34); cursor: default; transition: opacity 200ms ease; }
.sheet {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: 100%;
  max-width: 560px;
  max-height: calc(100% - 20px);
  overflow: hidden;
  border-radius: 26px 26px 0 0;
  background: #fff;
  outline: none;
  transition: transform 280ms var(--ease-drawer), opacity 200ms ease;
}
.sheet.is-wide { max-width: 680px; }
.sheet-top { position: relative; display: grid; place-items: center; height: 34px; }
.sheet-handle { width: 52px; height: 5px; border-radius: 3px; background: #d9d9de; }
.sheet-close { position: absolute; top: 8px; right: 12px; z-index: 2; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 0.8125rem; }
.sheet-body { min-height: 0; overflow-y: auto; padding: 6px 18px 26px; }
.layer.is-leaving .scrim { opacity: 0; }
.layer.is-leaving .sheet { transform: translateY(100%); transition-duration: 200ms; }

@starting-style {
  .scrim { opacity: 0; }
  .sheet { transform: translateY(100%); }
}

.owner[data-size="wide"] .layer { align-items: center; }
.owner[data-size="wide"] .sheet { max-height: calc(100% - 40px); border-radius: 24px; }
.owner[data-size="wide"] .sheet-handle { visibility: hidden; }
.owner[data-size="wide"] .layer.is-leaving .sheet { transform: scale(0.98); opacity: 0; }

@starting-style {
  .owner[data-size="wide"] .sheet { transform: scale(0.98); opacity: 0; }
}

.o-sheet-list { display: grid; gap: 4px; }
.o-group-label { padding: 12px 14px 4px; color: var(--muted); font-size: 0.8125rem; font-weight: 600; }
.o-group { overflow: hidden; border-radius: 16px; background: var(--soft); }
.o-group-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 10px 14px;
  font-size: 1rem;
  text-align: left;
}
.o-group-row + .o-group-row::before,
.o-swipe + .o-group-row::before,
.o-swipe + .o-swipe::before { content: ""; position: absolute; top: 0; left: 14px; right: 0; height: 1px; background: var(--line); }
.o-swipe { position: relative; }
.o-group-row .icon { color: var(--link); }
.o-group-row.is-add { color: var(--link); font-weight: 600; }
.o-group-row.is-danger { color: var(--red); }
.o-group-value { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.o-group-text { flex: 1; display: grid; min-width: 0; }
.o-group-text small { overflow: hidden; color: var(--muted); font-size: 0.8125rem; white-space: nowrap; text-overflow: ellipsis; }
.o-group-text strong { overflow: hidden; font-size: 1.0625rem; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.o-group-empty { padding: 14px; color: var(--muted); font-size: 0.9375rem; }
.o-group-pad { display: grid; gap: 12px; padding: 14px; }

.o-row-label { flex: none; width: 36%; color: var(--muted); }
.o-row-value { min-width: 0; overflow: hidden; color: var(--muted); font-size: 0.9375rem; text-align: right; white-space: nowrap; text-overflow: ellipsis; }
.o-settings .o-row-label + .o-row-value { flex: 1; color: var(--ink); font-size: 1rem; }
.o-settings .o-row-label + .o-row-value.is-empty { color: #70727a; }
.o-row-input { flex: 1; min-width: 0; min-height: 32px; border: 0; border-bottom: 1.5px solid var(--link); background: none; font-size: 16px; text-align: right; outline: none; }
.o-row-end { display: inline-flex; align-items: center; gap: 4px; min-width: 0; max-width: 60%; }
.o-row-plain { min-width: 0; overflow-wrap: anywhere; }
.o-chevron { flex: none; display: inline-flex; }
.o-chevron .icon { color: #85878f; }

.o-sheet-form { display: grid; gap: 8px; }
.o-sheet-form > h2, .o-draft h2 { font-size: 1.625rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; }
.o-sheet-form form { display: grid; gap: 10px; margin-top: 8px; }
.o-sheet-form .field label, .o-contact-form .field label, .o-card .field label { color: var(--muted); font-size: 0.8125rem; font-weight: 600; }
.o-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.o-triple { display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: 8px; }
.o-done { display: grid; gap: 8px; margin-top: 8px; padding: 16px; border-radius: 16px; background: var(--soft); }
.o-done h3 { font-size: 1.0625rem; font-weight: 700; }

.o-draft { display: grid; gap: 10px; }
.o-draft-subject { font-weight: 700; font-size: 0.9375rem; }
.o-bubble { padding: 12px 14px; border-radius: 18px 18px 18px 6px; background: var(--soft); font-size: 0.9375rem; line-height: 1.45; }

.o-scorecard { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; }
.o-scorecard h3 { font-size: 1rem; font-weight: 700; }
.o-scorecard fieldset { display: grid; gap: 8px; padding: 10px 12px 12px; border: 1px solid var(--line); border-radius: 12px; }
.o-scorecard legend { padding: 0 4px; font-size: 0.875rem; font-weight: 700; }
.o-grade-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.o-grade-pick button { min-height: 40px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 0.875rem; font-weight: 700; }
.o-grade-pick .is-red { border-color: transparent; background: var(--red-tint); color: var(--red); }
.o-grade-pick .is-yellow { border-color: transparent; background: var(--amber-tint); color: var(--amber); }
.o-grade-pick .is-green { border-color: transparent; background: var(--green-tint); color: var(--green); }
.o-count { color: var(--muted); font-size: 0.75rem; text-align: right; }

/* Settings */
.o-settings { display: grid; gap: 6px; max-width: 620px; margin-inline: auto; padding-bottom: 12px; }
.o-settings > .o-title { margin-bottom: 6px; }
.o-settings-nav { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.o-settings-nav button { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: var(--link); font-weight: 500; }
.o-settings-nav .is-strong { font-weight: 700; }
.o-profile { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 68px; padding: 12px 14px; border-radius: 16px; background: var(--soft); text-align: left; }
.o-avatar { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; }
.o-network { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--red-fill); font-size: 0.8125rem; }
.o-group-row .o-network .icon { color: #fff; }
.o-add-mark { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--green-fill); font-size: 0.75rem; }
.o-add-mark .icon { color: #0b2913; }
.o-group-row.is-add { justify-content: flex-start; }
.o-swipe-remove { position: absolute; top: 0; right: 0; bottom: 0; z-index: 2; width: 96px; background: var(--red); color: #fff; font-weight: 700; }
.o-footnote { padding: 6px 14px 0; color: var(--muted); font-size: 0.8125rem; line-height: 1.4; }
.o-danger { width: 100%; min-height: 56px; margin-top: 10px; border-radius: 16px; background: var(--soft); color: var(--red); }
.o-sign-out { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 52px; margin-top: 12px; padding: 0 14px; border-radius: 16px; background: var(--soft); color: var(--red); text-align: left; }
.o-labelled { display: grid; gap: 4px; color: var(--muted); font-size: 0.875rem; font-weight: 600; }
.o-labelled input { min-height: 44px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font-size: 16px; font-weight: 450; }

.o-switch { position: relative; flex: none; width: 51px; height: 31px; border-radius: 999px; background: #8a8c94; transition: background-color 160ms ease; }
.o-switch span { position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; transition: transform 160ms var(--ease-out); }
.o-switch[aria-checked="true"] { background: #1f8f3f; }
.o-switch[aria-checked="true"] span { transform: translateX(20px); }

.o-push { display: flex; gap: 12px; margin-top: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; }
.o-push > div { flex: 1; min-width: 0; }
.o-push-mark { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--soft); }
.o-push-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.o-push h2 { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }
.o-push p { margin-top: 2px; color: var(--muted); font-size: 0.8125rem; line-height: 1.4; }

.o-code { margin: 0 0 8px; padding: 14px; overflow: hidden; border-radius: 16px; background: var(--soft); font-family: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace; font-size: 0.8125rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.o-live { flex: none; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.875rem; }
.o-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--green-fill); }
.o-embed-preview { display: grid; gap: 6px; }
.o-embed-preview h2 { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.02em; }
.o-embed-preview iframe { display: block; width: 100%; height: 520px; margin-top: 8px; border: 1px solid var(--line); border-radius: 14px; }

.o-signed-out { display: grid; justify-items: center; gap: 10px; max-width: 380px; color: #1d1d1f; text-align: center; }
.o-signed-out .o-mark { --ink: #1d1d1f; background: #1d1d1f; }
.o-signed-out h1 { font-size: 1.75rem; font-weight: 800; }
.o-signed-out p { color: #5f6168; }
.o-signed-out .o-button { --ink: #1d1d1f; background: #1d1d1f; }

/* Toasts and alerts */
.toasts { position: fixed; bottom: 72px; left: 50%; z-index: 80; display: grid; justify-items: center; gap: 6px; width: min(92vw, 420px); pointer-events: none; transform: translateX(-50%); }
.toast { padding: 9px 14px; border-radius: 12px; background: #1d1d1f; color: #fff; font-size: 0.875rem; font-weight: 500; text-align: center; transition: opacity 180ms ease, transform 180ms var(--ease-out); }
.toast-error { background: var(--red); }
.toast.is-leaving { opacity: 0; transform: translateY(6px); }

@starting-style {
  .toast { opacity: 0; transform: translateY(6px); }
}

.alerts { position: absolute; top: 8px; left: 8px; right: 8px; z-index: 60; display: grid; justify-items: center; gap: 6px; pointer-events: none; }
.alert { display: flex; align-items: stretch; width: min(100%, 430px); border-radius: 18px; background: #1d1d1f; color: #fff; pointer-events: auto; transition: opacity 180ms ease, transform 200ms var(--ease-out); }
.alert.is-leaving { opacity: 0; transform: translateY(-8px); }
.alert-open { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px; text-align: left; }
.alert-mark { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #fff; color: #1d1d1f; font-size: 0.875rem; }
.alert-mark.is-urgent { background: var(--red-fill); color: #fff; }
.alert-text { display: grid; min-width: 0; font-size: 0.8125rem; line-height: 1.3; }
.alert-text strong { font-size: 0.875rem; font-weight: 800; letter-spacing: 0.01em; }
.alert-close { flex: none; display: grid; place-items: center; width: 40px; color: #c9cad0; font-size: 0.875rem; }

@starting-style {
  .alert { opacity: 0; transform: translateY(-10px); }
}

@container lead (min-width: 860px) {
  .o-lead-columns { grid-template-columns: minmax(300px, 1fr) minmax(0, 1.35fr); gap: 22px; }
  .o-guide-slot { display: block; }
  .o-guide-slot.is-open { padding-top: 0; border-top: 0; }
  .o-link.is-guide { display: none; }
}

@container customer (max-width: 420px) {
  .c-primary { width: 100%; }
  .c-hero-row { display: grid; }
  .c-overall { justify-items: start; text-align: left; }
}

@media (hover: hover) and (pointer: fine) {
  .views button:not([aria-pressed="true"]):hover { color: #fff; }
  .c-secondary:hover { background: #f0f1f4; }
  .c-primary:hover { background: color-mix(in srgb, var(--primary) 88%, #000); }
  .c-sample:hover, .o-test:hover { background: rgba(0, 0, 0, 0.05); }
  .o-row:not([aria-current="true"]):hover, .o-card-row:not([aria-current="true"]):hover { background: #efeff2; }
  .o-chip:hover, .o-icon-button:hover { background: var(--soft-hover); }
  .o-mini:not(.is-dark):hover { background: var(--soft-hover); }
  .o-button:not(.is-soft):hover:not(:disabled) { background: #36363a; }
  .o-button.is-soft:hover { background: var(--soft-hover); }
  .o-tab:hover { color: var(--ink); }
}

/* In widescreen the page's own controls share this row */
@media (min-width: 705px) {
  .is-widescreen .guest-bar { padding-right: 262px; }
}

@media (max-width: 620px) {
  .guest-detail { display: none; }
  .views button { padding: 0 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .is-stepping .c-wrap { animation-name: fade; }
  .is-flash { animation-duration: 1600ms; }
  .sheet, .owner[data-size="wide"] .sheet { transition: opacity 180ms ease; }
  .layer.is-leaving .sheet, .owner[data-size="wide"] .layer.is-leaving .sheet { transform: none; opacity: 0; }
  .toast, .alert { transition: opacity 180ms ease; }
  .toast.is-leaving, .alert.is-leaving { transform: none; }
  .c-primary:active, .c-secondary:active, .o-button:active:not(:disabled), .o-pill:active, .o-row:active, .o-mini:active { transform: none; }

  @starting-style {
    .sheet, .owner[data-size="wide"] .sheet { transform: none; opacity: 0; }
    .toast, .alert { transform: none; }
  }
}

@keyframes fade {
  from { opacity: 0; }
}
