/* Lykeva app: midnight and amber on light gray, Manrope (served from this site). */

@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --midnight: #0F1B33;
  --midnight-2: #22304D;
  --amber: #F2B04B;
  --bg: #F6F7FA;
  --surface: #FFFFFF;
  --line: #E3E6EC;
  --line-2: #EEF0F4;
  --fg: #16213A;
  --body: #3F4859;
  --muted: #5B6475;
  /* Approved, confirmed and sent are blue (never green). */
  --blue: #1E4FA3;
  --blue-tint: #E6EEFB;
  /* Waiting for the owner is an amber tint. */
  --amber-tint: #FDF1DC;
  --amber-ink: #7A4B00;
  --gray-tint: #EEF0F4;
  --problem: #A3271E;
  --problem-tint: #FBE9E7;
  --side-fg: #C9D1E3;
  --side-heading: #9AA6BF;
  --radius: 16px;
  --tabbar-h: 64px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 500 16px/1.5 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
a { color: var(--blue); }
a:hover { color: #16397A; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; overflow-wrap: anywhere; }
h2 { font-size: 18px; font-weight: 800; }
h3 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.grow { flex: 1; min-width: 0; }
.loading { padding: 32px 16px; color: var(--muted); }

/* --- Frame -------------------------------------------------------------------- */

.app { min-height: 100vh; }
.sidebar { display: none; }
main#view { padding: 20px 16px calc(var(--tabbar-h) + 32px + env(safe-area-inset-bottom)); max-width: 1180px; display: flex; flex-direction: column; gap: 20px; outline: none; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  background: var(--surface); border-top: 1px solid var(--line);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.tab {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 52px; color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 600; border-radius: 10px;
}
.tab[aria-current="page"] { color: var(--midnight); font-weight: 800; }
.tab .count { position: absolute; top: 2px; left: calc(50% + 6px); }

.count { background: var(--amber); color: var(--midnight); font-size: 12px; font-weight: 800; border-radius: 999px; padding: 0 7px; line-height: 20px; min-width: 20px; text-align: center; }
.count[hidden], .side-item[hidden], .tab[hidden] { display: none; }

@media (min-width: 900px) {
  .app { display: grid; grid-template-columns: 248px minmax(0, 1fr); }
  .tabbar { display: none; }
  .sidebar {
    display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
    background: var(--midnight); color: #FFFFFF; padding: 24px 16px;
  }
  main#view { padding: 32px 40px 48px; gap: 24px; }
  h1 { font-size: 32px; }
}

.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 20px; color: #FFFFFF; text-decoration: none; font-size: 20px; font-weight: 800; }
.brand:hover { color: #FFFFFF; }
.side-item {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 12px; border-radius: 10px;
  color: var(--side-fg); text-decoration: none; font-size: 15px; font-weight: 600;
}
a.side-item:hover { background: var(--midnight-2); color: #FFFFFF; }
.side-item[aria-current="page"] { background: var(--midnight-2); color: #FFFFFF; font-weight: 700; }
.side-item.soon { cursor: default; }
.side-heading { margin: 18px 12px 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--side-heading); }
.side-rule { height: 1px; background: var(--midnight-2); margin: 12px 8px; }
.soon-tag { background: var(--midnight-2); color: var(--side-fg); font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 8px; }
.soon-tag.light { background: var(--gray-tint); color: var(--body); }

/* --- Page parts --------------------------------------------------------------- */

.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 16px; }
.page-head > .grow { flex: 1 1 280px; }
.eyebrow { font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.sub { margin-top: 6px; color: var(--muted); font-size: 15px; }
.back { display: inline-block; margin-bottom: 8px; font-weight: 700; text-decoration: none; min-height: 24px; }
.head-actions, .inline-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { font-weight: 700; text-decoration: none; }
.section-title { margin-top: 8px; }
.hint { font-size: 13px; color: var(--muted); }
.empty { color: var(--muted); padding: 8px 0; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card.dark { background: var(--midnight); border-color: var(--midnight); color: #FFFFFF; }
.card.dark p { color: #DDE3EF; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.card-head a { font-size: 14px; font-weight: 700; text-decoration: none; }

.columns { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.columns > * { flex: 1 1 300px; }
.columns > .wide { flex: 2 1 520px; }
.stack { display: flex; flex-direction: column; gap: 16px; }

.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 700px) { .metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.metric { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.metric-label { font-size: 14px; font-weight: 600; color: var(--muted); }
.metric-value { font-size: 28px; font-weight: 800; margin-top: 4px; font-variant-numeric: tabular-nums; }
.metric-note { font-size: 13px; color: var(--muted); }
a.metric { color: inherit; text-decoration: none; }
a.metric:hover, a.metric:focus-visible { border-color: var(--blue); }

/* Home: one "at a glance" card per product in use, side by side (stacked on a phone). */
.card-note { font-size: 14px; color: var(--muted); margin: 8px 0 0; }
.glance-list { display: grid; grid-template-columns: minmax(0, 1fr) max-content; gap: 8px 16px; margin: 12px 0 0; }
.glance-row { display: contents; }
.glance-list dt { color: var(--body); }
.glance-list dd { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
.activity .product { color: var(--muted); font-weight: 600; }

/* Pills: done = blue, waiting = amber tint, live = midnight. */
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.pill.done { background: var(--blue-tint); color: var(--blue); }
.pill.waiting { background: var(--amber-tint); color: var(--amber-ink); }
.pill.live { background: var(--midnight); color: #FFFFFF; }
.pill.off { background: var(--gray-tint); color: var(--body); }
.pill.problem { background: var(--problem-tint); color: var(--problem); }

/* --- Lists -------------------------------------------------------------------- */

.rows { list-style: none; margin: 0 -20px; padding: 0; }
.rows > li { border-top: 1px solid var(--line-2); }
.rows > li:first-child { border-top: 0; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 20px; min-height: 56px; color: var(--fg); text-decoration: none; }
a.row:hover { background: var(--bg); color: var(--fg); }
.row.soon { color: var(--body); }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row-title { font-weight: 700; overflow-wrap: anywhere; }
.row-meta { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.row-age { font-size: 13px; color: var(--muted); white-space: nowrap; min-width: 52px; text-align: right; }
@media (max-width: 560px) {
  .row { flex-wrap: wrap; }
  .row-main { flex-basis: calc(100% - 60px); }
  .row-age { min-width: 0; }
}

.avatar { width: 40px; height: 40px; border-radius: 20px; background: var(--blue-tint); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; flex-shrink: 0; }
.avatar.big { width: 56px; height: 56px; border-radius: 28px; font-size: 20px; }
.contact-head { flex-direction: row; align-items: center; gap: 16px; }
.contact-head h1 { font-size: 26px; }

.activity { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.activity li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: 15px; }
.activity li > span:last-child { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.activity .dot { width: 9px; height: 9px; border-radius: 5px; margin-top: 7px; flex-shrink: 0; background: var(--midnight); }
.activity .done .dot { background: var(--blue); }
.activity .waiting .dot { background: var(--amber); }
.activity .problem .dot { background: var(--problem); }
.activity .when, .proof .when { font-size: 13px; font-weight: 500; color: var(--muted); }
a.plain { color: inherit; text-decoration: none; }
a.plain:hover { text-decoration: underline; }

.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tabs a { padding: 8px 14px; min-height: 40px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; }
.tabs a[aria-current="page"] { background: var(--midnight); color: #FFFFFF; }

.search input { width: 100%; }

/* --- Grow --------------------------------------------------------------------- */

.stage-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 700px) { .stage-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .stage-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.stage { border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.stage-name { font-weight: 800; }
.stage.live, .stage-card.live { background: var(--midnight); color: #FFFFFF; }
.stage.waiting, .stage-card.waiting { background: var(--amber-tint); color: #5C3900; }
.stage.off, .stage-card.off { background: var(--gray-tint); color: var(--body); }

.tiles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 800px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile { background: var(--bg); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.tile-label { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.goal { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.goal input { width: 100%; }

.stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 640px) { .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .stages { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stage-card { border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.stage-top { display: flex; align-items: center; gap: 10px; }
.step { width: 28px; height: 28px; border-radius: 14px; border: 2px solid currentColor; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }
.stage-card .stage-name { font-size: 17px; }
.stage-card .stage-status { font-weight: 700; font-size: 14px; }
.stage-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.stage-card li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; border-top: 1px solid rgba(127, 127, 127, 0.25); padding-top: 6px; }
.item-name { font-weight: 700; }
.item-state { text-align: right; opacity: 0.9; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.legend .key { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: -8px; }
.key.live { background: var(--midnight); }
.key.waiting { background: var(--amber-tint); border: 1px solid #E8C98F; }
.key.off { background: var(--gray-tint); border: 1px solid var(--line); }

/* --- Forms, buttons, review --------------------------------------------------- */

.form { display: flex; flex-direction: column; gap: 6px; }
label { font-size: 14px; font-weight: 700; color: var(--muted); margin-top: 8px; }
.form > label:first-child { margin-top: 0; }
input[type=text], input[type=url], input[type=search], input[type=tel], textarea {
  width: 100%; font: inherit; font-weight: 500; color: var(--fg); background: var(--surface);
  padding: 11px 14px; min-height: 44px; border: 1px solid #D5DAE3; border-radius: 12px;
}
textarea { resize: vertical; line-height: 1.5; }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--amber); outline-offset: 0; border-color: var(--midnight); }

button, .button {
  font: inherit; font-weight: 700; font-size: 15px; min-height: 44px; padding: 0 18px; border-radius: 12px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
  border: 1px solid #D5DAE3; background: var(--surface); color: var(--fg);
}
button:hover, .button:hover { color: var(--fg); border-color: var(--muted); }
button.primary, .button.primary { background: var(--midnight); border-color: var(--midnight); color: #FFFFFF; }
button.primary:hover, .button.primary:hover { background: #1B2A4A; color: #FFFFFF; }
.card.dark button.primary { background: var(--amber); border-color: var(--amber); color: var(--midnight); }
button.danger { background: var(--problem); border-color: var(--problem); color: #FFFFFF; }
button.link { border: 0; background: none; padding: 0; min-height: 0; color: var(--blue); text-decoration: underline; font-size: 14px; }
button.small { min-height: 40px; padding: 0 14px; font-size: 14px; }
button.full { width: 100%; }
button:disabled { opacity: 0.45; cursor: not-allowed; }

.summary .meta { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; margin: 0; align-items: center; }
.meta dt { font-size: 14px; color: var(--muted); }
.meta dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.check { background: var(--amber-tint); color: #5C3900; border-radius: 14px; padding: 12px 16px; }
.check ul { margin: 6px 0 0; padding-left: 20px; }
.banner { border-radius: 14px; padding: 12px 16px; font-weight: 600; }
.banner.waiting { background: var(--amber-tint); color: #5C3900; }
.banner.problem { background: var(--problem-tint); color: var(--problem); }
.banner ul { margin: 6px 0 0; padding-left: 20px; font-weight: 500; }
/* Answer Overview: what needs the owner's attention, each with where to act. */
.attention { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.attention li { display: flex; flex-direction: column; gap: 2px; }
.attention .hint { margin: 0; }
/* Answer Playbook (stage 3b): the live version and the draft side by side; the editors. */
.panel { background: var(--bg); border-radius: 12px; padding: 12px 16px; margin-bottom: 12px; }
.panel h3 { margin: 0 0 6px; }
.panel.draft { border: 2px solid var(--amber-tint); }
.services { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.hours-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; min-height: 44px; }
.hours-row label.check { min-width: 130px; }
.hours-times input { width: auto; }
.pronunciations li, .option-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 0; }
.notice { background: var(--bg); border-radius: 12px; padding: 10px 14px; font-size: 14px; }
dl.meta { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; margin: 0; }
/* Answer: what a waiting version changes from the live one (stage 2). */
.changes { margin: 8px 0 0; padding-left: 20px; }
.changes li { margin: 3px 0; overflow-wrap: anywhere; }
/* Answer: the minimal fee and price editors (stage 1). */
.price-row { border: 1px solid var(--line, #e5e5e5); border-radius: 12px; padding: 10px 14px; margin: 10px 0; }
.price-row legend { font-weight: 600; padding: 0 4px; }
.preview { color: var(--muted, #555); font-style: italic; overflow-wrap: anywhere; }
label.check { display: block; margin: 6px 0; }
.field-label { font-size: 13px; font-weight: 700; color: var(--muted); }
.subject-line { font-weight: 700; font-size: 17px; }
pre.body { white-space: pre-wrap; font: inherit; font-weight: 500; margin: 0; background: var(--bg); border-radius: 12px; padding: 14px; overflow-wrap: anywhere; }

/* The decision buttons stay in reach: pinned above the phone's tab bar, at the page foot on desktop. */
.decision-bar {
  position: sticky; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); z-index: 5;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px;
  box-shadow: 0 -4px 16px rgba(15, 27, 51, 0.06);
}
.decision-bar > button { flex: 1 1 0; min-height: 52px; }
.decision-bar > button.primary { flex: 2 1 0; }
.confirm-text { flex: 1 1 100%; font-weight: 700; }
@media (min-width: 900px) {
  .decision-bar { bottom: 16px; }
  .decision-bar > button, .decision-bar > button.primary { flex: 0 1 auto; min-width: 140px; }
  .confirm-text { flex: 1 1 auto; }
}
.status { min-height: 1.5em; font-weight: 600; }
.connection { padding-bottom: 12px; }
.connection > :not(.row) { margin: 4px 20px; }
.connection .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.calendar-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.calendar-detail { flex-basis: 100%; border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 12px; margin: 8px 0 0; }
.calendar-detail .choice { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0; }
.status.error { color: var(--problem); }

/* Contact page */
.perm { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 600; }
details summary { cursor: pointer; color: var(--blue); font-weight: 700; min-height: 32px; }
.proof ol { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.proof li { border-top: 1px solid var(--line-2); padding-top: 10px; font-size: 14px; }
.proof-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-weight: 700; }
.proof-source { color: var(--muted); }
.evidence { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 2px 12px; margin: 6px 0 0; font-size: 13px; }
.evidence dt { color: var(--muted); }
.evidence dd { margin: 0; overflow-wrap: anywhere; }
blockquote { margin: 0; color: var(--body); line-height: 1.5; border-left: 0; font-style: italic; }
.sources ul { margin: 6px 0 0; padding-left: 20px; font-size: 14px; overflow-wrap: anywhere; }

/* Strategy run progress */
.progress { list-style: none; padding: 0; margin: 0; }
.progress li { padding: 4px 0 4px 26px; position: relative; }
.progress li::before { position: absolute; left: 0; width: 18px; text-align: center; }
.progress li.done::before { content: "\2713"; color: var(--blue); font-weight: 800; }
.progress li.active::before { content: "\25CF"; color: var(--amber); animation: pulse 1.2s ease-in-out infinite; }
.progress li.error { color: var(--problem); }
.progress li.error::before { content: "!"; font-weight: 800; }
@keyframes pulse { 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .progress li.active::before { animation: none; } }

.signin-error { max-width: 36rem; margin: 15vh auto; padding: 0 16px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }

/* "Set up": configured but nothing real running yet. Outlined, so it reads apart from live and off. */
.stage.setup, .stage-card.setup { background: var(--surface); color: var(--fg); box-shadow: inset 0 0 0 2px var(--midnight); }
.key.setup { background: var(--surface); box-shadow: inset 0 0 0 2px var(--midnight); }
.legend .key { margin-right: 0; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.toolbar .search { flex: 1 1 280px; }
.check-label { display: inline-flex; align-items: center; gap: 8px; margin: 0; min-height: 44px; color: var(--fg); font-weight: 600; cursor: pointer; }
.check-label input { width: 20px; height: 20px; accent-color: var(--midnight); }
.contact-head { flex-wrap: wrap; }

/* Landing page previews: real device widths, scaled to fit. */
.previews { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.preview { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.preview figcaption { font-size: 13px; font-weight: 700; color: var(--muted); }
.preview-box { width: var(--w); height: var(--h); overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #FFFFFF; }
.preview-frame { border: 0; transform: scale(var(--s)); transform-origin: 0 0; display: block; }
@media (max-width: 899px) { .preview:last-child { display: none; } } /* the desktop preview doesn't fit a phone */
table.simple { width: 100%; border-collapse: collapse; font-size: 15px; }
table.simple th, table.simple td { text-align: left; padding: 8px 4px; border-top: 1px solid var(--line-2); }
table.simple th { color: var(--muted); font-size: 13px; }
table.simple .num { text-align: right; font-variant-numeric: tabular-nums; }
input[readonly] { background: var(--bg); color: var(--muted); }

/* Sequences */
.step-card h3 { margin: 0; }
.plain-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
select { font: inherit; color: var(--fg); background: var(--surface); padding: 10px 12px; min-height: 44px; border: 1px solid #D5DAE3; border-radius: 12px; max-width: 100%; }
.warn { background: var(--amber-tint); color: #5C3900; border-radius: 10px; padding: 10px 14px; }

/* Contact header: the name block keeps a readable width; the test-contact control wraps below on phones. */
.contact-head > .grow { flex: 1 1 220px; }
.contact-head > .inline-actions { flex: 0 1 auto; }

/* Ads: how an ad may look in Google, the go-live checks, campaign rows. */
.ad-previews { display: grid; gap: 12px; }
.ad-preview { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-family: Arial, Helvetica, sans-serif; }
.ad-sponsored { font-size: 12px; font-weight: 700; color: var(--fg); }
.ad-url { font-size: 13px; color: var(--body); overflow-wrap: anywhere; }
.ad-headline { font-size: 18px; line-height: 1.3; color: var(--blue); overflow-wrap: anywhere; }
.ad-description { font-size: 14px; color: var(--body); overflow-wrap: anywhere; }
.check.problem { background: var(--problem-tint); color: var(--problem); }
.checks { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 4px; }
.checks .ok { color: var(--fg); }
.checks .not-ok { color: var(--problem); font-weight: 600; }
.campaigns .campaign { display: grid; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.meta.compact { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 4px 16px; margin: 0; }
.meta.compact dt { font-size: 12px; color: var(--muted); }
.meta.compact dd { margin: 0 0 6px; font-weight: 600; color: var(--fg); }
details.change summary { cursor: pointer; color: var(--blue); font-weight: 600; min-height: 44px; display: flex; align-items: center; }
ul.plain { margin: 0; padding-left: 20px; }

/* Learn: tables of figures, tiles toned against their thresholds. */
.learn-table { margin-top: 16px; }
.learn-table h3 { margin: 0 0 8px; font-size: 15px; color: var(--fg); }
.table-scroll { overflow-x: auto; }
.learn-table table { border-collapse: collapse; width: 100%; font-size: 14px; }
.learn-table th, .learn-table td { padding: 6px 10px; border-bottom: 1px solid var(--line-2); text-align: left; white-space: nowrap; }
.learn-table th { color: var(--muted); font-weight: 600; font-size: 12px; }
.learn-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.metric-hint { font-size: 12px; color: var(--muted); margin-top: 2px; }
.metric.tone-ok .metric-value { color: var(--fg); }
.metric.tone-warn { background: var(--amber-tint); }
.metric.tone-problem { background: var(--problem-tint); }
.metric.tone-problem .metric-value { color: var(--problem); }
.learn-notes { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* Answer > Calls (stage 3c) */
.call-filters { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; }
.call-filters .field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 150px; min-width: 0; }
.call-filters .field.grow { flex: 3 1 260px; }
.call-filters label { margin-top: 0; }
.call-filters label.check { display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; color: var(--fg); font-weight: 600; }
.call-filters input[type=checkbox] { width: 20px; height: 20px; }
.search-row { display: flex; gap: 8px; }
.search-row input { flex: 1; min-width: 0; }
.calls-layout { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.calls-layout .call-list { flex: 999 1 460px; }
.calls-layout .call-panel { flex: 1 1 340px; }
.call-day h3 { margin: 4px 0; font-size: 13px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.call-list a.row[aria-current] { background: var(--blue-tint); }
.call-list .row .pill { flex-shrink: 0; }
.call-panel h2 { margin: 0; font-size: 18px; }
.call-panel h3 { margin: 4px 0 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.steps li { position: relative; padding-left: 18px; line-height: 1.45; }
.steps li::before { content: ''; position: absolute; left: 0; top: 0.5em; width: 8px; height: 8px; border-radius: 4px; background: var(--blue); }
.steps li.by-code::before { background: var(--amber-ink); }
.steps li.by-trouble::before { background: var(--problem); }
.inline-actions.center { justify-content: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.recording { display: flex; flex-direction: column; gap: 8px; }
.recording-player audio { width: 100%; }
/* R2: Answer's Products tab and a source's review. */
.sources, .unanswered { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.sources li, .unanswered li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.sources .hint, .unanswered .hint { flex-basis: 100%; margin: 0; overflow-wrap: anywhere; }
pre.source-text { white-space: pre-wrap; font: inherit; margin: 0; background: var(--bg); border-radius: 12px; padding: 14px; overflow-wrap: anywhere; max-height: 60vh; overflow-y: auto; }
