/* ============================================================================
   Discovery Platform · Story mode (Voyage)
   The Platform edition of HQ Play: the same story-demo language as HQ's centers
   (Anton display, one sun-yellow brush per heading, sticker pills, big rounded
   white cards on a warm canvas, cream dotted headers) in the Voyage palette.
   Applies only to the Discovery shell. Tenant-branded shells (e.g. ATP) keep
   their own look: every rule hangs off html[data-platform-brand='discovery'].
   ============================================================================ */

html[data-platform-brand='discovery'] {
  --ink: #16130a;
  --ink-2: rgb(22 19 10 / 72%);
  --ink-3: rgb(22 19 10 / 60%);
  --line: rgb(22 19 10 / 10%);
  --line-2: rgb(22 19 10 / 18%);
  --canvas: #f9f8f3;
  --cream: #fffbe6;
  --sun: #ffe14a;
  --sun-soft: #fff4b8;
  --hot: #ff5c8a;
  --hot-soft: #ffe1ea;
  --sky: #6aa8ff;
  --sky-soft: #e4efff;
  --grape: #7b5cff;
  --grape-soft: #ece6ff;
  --teal: #2fc6c6;
  --teal-soft: #d9f6f5;
  --green: #167a43;
  --green-soft: #dcf2e4;
  --spring: cubic-bezier(0.2, 0.9, 0.3, 1.3);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 1px 1px rgb(22 19 10 / 4%), 0 12px 28px -18px rgb(22 19 10 / 35%);
  --shadow-pop: 0 2px 6px rgb(22 19 10 / 10%), 0 24px 48px -20px rgb(22 19 10 / 45%);

  /* Remap the Platform tokens so every existing screen picks up the Voyage look. */
  --brand: var(--ink);
  --brand-hover: #000;
  --brand-accent: var(--hot);
  --brand-soft: var(--sun-soft);
  --brand-soft-border: #f2d53c;
  --bg: var(--canvas);
  --surface: #ffffff;
  --surface-2: #f3f1e8;
  --border: var(--line);
  --border-strong: var(--line-2);
  --text: var(--ink);
  --text-muted: var(--ink-2);
  --text-dim: var(--ink-3);
  --success: var(--green);
  --success-bg: var(--green-soft);
  --warning: #8a5a00;
  --warning-bg: var(--sun-soft);
  --danger: #b4234d;
  --danger-bg: var(--hot-soft);
  --info-bg: var(--sky-soft);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 24px;
  --shadow-sm: var(--shadow-card);
  --shadow: var(--shadow-card);
  --shadow-lg: var(--shadow-pop);
}

html[data-platform-brand='discovery'] body { background: var(--canvas); }
html[data-platform-brand='discovery'] ::selection { background: rgb(255 225 74 / 70%); }
html[data-platform-brand='discovery'] :focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* ── Type: Anton headings, one sun brush on the page title ── */
/* Anton's text box is 1.5em tall but its capitals are 0.87em, so a full-box brush on a
   tight line-height painted each wrapped line's yellow over the line above. The brush
   now covers only the capitals plus 0.15em above and below (0.19em to 1.357em of each
   line's box), and 1.15 spacing lets the lines touch without covering any letters. */
html[data-platform-brand='discovery'] .page-title {
  display: inline;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: 0.005em;
  padding: 0.04em 0.2em 0;
  background: linear-gradient(to bottom, transparent 0.19em, var(--sun) 0.19em, var(--sun) 1.357em, transparent 1.357em);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
html[data-platform-brand='discovery'] .page-head-row > div:first-child { line-height: 1.25; }
html[data-platform-brand='discovery'] .page-sub { margin-top: 12px; font-size: 15.5px; color: var(--ink-2); }
html[data-platform-brand='discovery'] .card-title,
html[data-platform-brand='discovery'] .stat-value {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
html[data-platform-brand='discovery'] .card-title { font-size: 21px; line-height: 1.05; }
html[data-platform-brand='discovery'] .stat-value { font-size: 34px; line-height: 1; }
html[data-platform-brand='discovery'] .stat-label { font-weight: 700; color: var(--ink-2); }

/* ── Shell: cream dotted top bar, warm sidebar with ink active pill ── */
html[data-platform-brand='discovery'] .topbar {
  background-color: color-mix(in srgb, var(--cream) 94%, transparent);
  background-image: radial-gradient(rgb(22 19 10 / 9%) 1.2px, transparent 1.3px);
  background-size: 16px 16px;
  border-bottom: 1px solid var(--line);
}
html[data-platform-brand='discovery'] .sidebar { background: #f4f2e9; border-right: 1px solid var(--line); }
html[data-platform-brand='discovery'] .nav-item { border-radius: 999px; font-weight: 600; color: var(--ink-2); }
html[data-platform-brand='discovery'] .nav-item:hover { background: #ebe8da; color: var(--ink); }
html[data-platform-brand='discovery'] .nav-item.is-active { background: var(--ink); color: #fff; box-shadow: 0 8px 18px -12px rgb(22 19 10 / 70%); }
html[data-platform-brand='discovery'] .nav-item.is-active svg { color: var(--sun); }
html[data-platform-brand='discovery'] .nav-label { color: var(--ink-3); }
html[data-platform-brand='discovery'] .bottom-nav { background: #fffdf3; border-top: 1px solid var(--line); }
html[data-platform-brand='discovery'] .bottom-nav-item.is-active { color: var(--ink); background: var(--sun); }

/* ── Surfaces ── */
html[data-platform-brand='discovery'] .card,
html[data-platform-brand='discovery'] .stat-tile {
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-card);
}
html[data-platform-brand='discovery'] .card { padding: 24px; }

/* ── Buttons: ink pills, sun on hover, pressed feel ── */
html[data-platform-brand='discovery'] .btn { border-radius: 999px; font-weight: 700; transition: background .15s, color .15s, transform .15s var(--spring), box-shadow .15s; }
html[data-platform-brand='discovery'] .btn-primary { background: var(--ink); color: #fff; box-shadow: 0 10px 20px -14px rgb(22 19 10 / 80%); }
html[data-platform-brand='discovery'] .btn-primary:hover:not(:disabled) { background: var(--ink); color: var(--sun); transform: translateY(-1px); }
html[data-platform-brand='discovery'] .btn-secondary { background: #fff; border-color: var(--line-2); color: var(--ink); }
html[data-platform-brand='discovery'] .btn-secondary:hover:not(:disabled) { background: var(--sun-soft); border-color: var(--ink); }
html[data-platform-brand='discovery'] .btn-ghost { color: var(--ink); text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 3px; text-underline-offset: 4px; }
html[data-platform-brand='discovery'] .btn-danger { background: var(--danger); }

/* ── Inputs ── */
html[data-platform-brand='discovery'] .input { border-radius: 14px; border-color: var(--line-2); }
html[data-platform-brand='discovery'] .input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgb(255 225 74 / 55%); }

/* ── Badges become sticker pills; chips become segmented pills ── */
html[data-platform-brand='discovery'] .badge {
  border: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
}
html[data-platform-brand='discovery'] .badge-success { background: var(--green-soft); color: var(--green); }
html[data-platform-brand='discovery'] .badge-warning { background: var(--sun); color: var(--ink); }
html[data-platform-brand='discovery'] .badge-danger { background: var(--hot-soft); color: #9c1640; }
html[data-platform-brand='discovery'] .badge-info { background: var(--sky-soft); color: #1d4f9c; }
html[data-platform-brand='discovery'] .badge-neutral { background: #efece1; color: var(--ink-2); }
html[data-platform-brand='discovery'] .chip { border-color: var(--line-2); color: var(--ink-2); font-weight: 700; }
html[data-platform-brand='discovery'] .chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--sun); }

/* ── Empty states ── */
html[data-platform-brand='discovery'] .empty-icon { background: var(--sun); color: var(--ink); }

/* ============================================================================
   Story-mode components (prefix sm-). Shared by Get connected, Google, Elcano.
   ============================================================================ */
.sm-display { font-family: var(--font-display, Anton, Impact, sans-serif); font-weight: 400; text-transform: uppercase; letter-spacing: 0.01em; line-height: 0.95; }
.sm-brush { display: inline; padding: 0.04em 0.18em 0; background: var(--sun, #ffe14a); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.sm-brush-hot { background: var(--hot, #ff5c8a); }
.sm-dots {
  background-color: var(--cream, #fffbe6);
  background-image: radial-gradient(rgb(22 19 10 / 9%) 1.2px, transparent 1.3px);
  background-size: 16px 16px;
}
.sm-sticker {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 10px;
  font-size: 11px; line-height: 1.2; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
  transform: rotate(-2.5deg); box-shadow: 0 6px 14px -8px rgb(0 0 0 / 50%);
}
.sm-sticker--flat { transform: none; box-shadow: none; }
.sm-sticker--sun { background: var(--sun, #ffe14a); color: var(--ink, #16130a); }
.sm-sticker--ink { background: var(--ink, #16130a); color: var(--sun, #ffe14a); }
.sm-sticker--hot { background: var(--hot, #ff5c8a); color: #fff; }
.sm-sticker--green { background: var(--green-soft, #dcf2e4); color: var(--green, #167a43); }
.sm-sticker--sky { background: var(--sky-soft, #e4efff); color: #1d4f9c; }
.sm-sticker--grape { background: var(--grape-soft, #ece6ff); color: #5b3fe0; }
.sm-sticker--muted { background: #efece1; color: var(--ink-2, rgb(22 19 10 / 72%)); }
.sm-tag { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 1px 8px; font-size: 11px; font-weight: 750; background: #efece1; color: var(--ink-2); white-space: nowrap; }
.sm-card { background: #fff; border-radius: 24px; box-shadow: inset 0 0 0 1px var(--line, rgb(22 19 10 / 10%)), var(--shadow-card); }
.sm-ai-badge { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 999px; background: var(--ink, #16130a); color: var(--sun, #ffe14a); font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; }
.sm-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--sun-soft); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ink, #16130a); flex: none; }
.sm-avatar--lg { width: 96px; height: 96px; }
.sm-bubble {
  position: relative; background: #fff; border-radius: 20px; padding: 14px 18px; font-size: 15.5px; line-height: 1.45;
  box-shadow: inset 0 0 0 2px var(--ink, #16130a), 6px 6px 0 var(--ink, #16130a);
}
.sm-bubble::before {
  content: ''; position: absolute; left: -11px; top: 22px; width: 18px; height: 18px; background: #fff;
  border-left: 2px solid var(--ink, #16130a); border-bottom: 2px solid var(--ink, #16130a); transform: rotate(45deg);
}
.sm-basis { font-size: 12px; color: var(--ink-3, rgb(22 19 10 / 60%)); }
.sm-unknown { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; background-image: repeating-linear-gradient(135deg, rgb(22 19 10 / 8%) 0 5px, transparent 5px 10px); color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  .sm-sticker { transform: none; }
  html[data-platform-brand='discovery'] .btn-primary:hover:not(:disabled) { transform: none; }
}

/* ============================================================================
   Get connected (onboarding voyage)
   ============================================================================ */
.gc { --gc-gap: 18px; display: grid; gap: var(--gc-gap); max-width: 1120px; }
.gc-kicker { margin: 0 0 8px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; color: var(--ink-3, rgb(22 19 10 / 60%)); }
.gc-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; padding: 30px 32px; align-items: center; }
.gc-title { margin: 0; font-size: clamp(44px, 6vw, 76px); line-height: 0.95; }
.gc-sub { margin: 16px 0 0; max-width: 520px; font-size: 16.5px; line-height: 1.5; color: var(--ink-2, rgb(22 19 10 / 72%)); }
.gc-progress { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 10px; margin-top: 22px; max-width: 420px; }
.gc-progress strong { font-size: 30px; }
.gc-progress span { font-weight: 700; color: var(--ink-2); }
.gc-bar { grid-column: 1 / -1; display: block; height: 14px; margin-top: 10px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 2px var(--ink, #16130a); overflow: hidden; }
.gc-bar > span { display: block; height: 100%; min-width: 14px; background: var(--ink, #16130a); border-radius: 999px; }
.gc-progress progress { grid-column: 1 / -1; width: 100%; height: 12px; margin-top: 8px; appearance: none; border: 0; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 2px var(--ink, #16130a); overflow: hidden; }
.gc-progress progress::-webkit-progress-bar { background: #fff; border-radius: 999px; }
.gc-progress progress::-webkit-progress-value { background: var(--ink, #16130a); border-radius: 999px; }
.gc-progress progress::-moz-progress-bar { background: var(--ink, #16130a); border-radius: 999px; }
.gc-navigator { display: flex; gap: 18px; align-items: flex-start; }
.gc-navigator-talk { display: grid; gap: 12px; min-width: 0; }
.gc-navigator-name { margin: 4px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; }
.gc-navigator-name span:last-child { color: var(--ink-3); }
.gc-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Route map: ports on a dashed sea lane, the ship parked at the next stop. */
.gc-map { list-style: none; margin: 0; padding: 18px 8px 6px; display: flex; gap: 0; overflow-x: auto; scrollbar-width: thin; }
.gc-stop { position: relative; flex: 1 0 104px; text-align: center; }
.gc-stop::before { content: ''; position: absolute; top: 37px; left: -50%; width: 100%; border-top: 3px dashed var(--line-2, rgb(22 19 10 / 18%)); z-index: 0; }
.gc-stop:first-child::before { display: none; }
.gc-stop[data-status='done']::before { border-top-style: solid; border-top-color: var(--ink, #16130a); }
.gc-stop a { position: relative; z-index: 1; display: inline-flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 6px 8px; color: var(--ink); text-decoration: none; border-radius: 16px; }
.gc-stop a:hover .gc-stop-label { text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 3px; }
.gc-stop .gc-mark { width: 40px; height: 40px; font-size: 17px; margin-top: 12px; }
.gc-stop.is-next .gc-mark { transform: scale(1.12); box-shadow: 0 0 0 4px var(--sun, #ffe14a), 0 0 0 6px var(--ink, #16130a); }
.gc-ship { position: absolute; top: -22px; font-size: 22px; animation: gc-bob 2.6s ease-in-out infinite; }
.gc-stop-label { font-size: 13px; font-weight: 750; line-height: 1.2; max-width: 104px; }
@keyframes gc-bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-4px) rotate(4deg); } }

/* Status marks: shape + glyph, never colour alone. */
.gc-mark { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-weight: 900; font-size: 15px; line-height: 1; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink, #16130a); transition: transform .2s var(--spring); }
.gc-mark--done { background: var(--ink); color: var(--sun); }
.gc-mark--almost { background: var(--sun); }
.gc-mark--attention { background: var(--hot); color: #fff; box-shadow: none; }
.gc-mark--discovery { background: var(--sky-soft); font-size: 14px; }
.gc-mark--unknown { background-image: repeating-linear-gradient(135deg, rgb(22 19 10 / 12%) 0 4px, transparent 4px 8px); }
.gc-mark--optional { box-shadow: inset 0 0 0 2px var(--line-2); color: var(--ink-3); border: 0; outline: 2px dashed var(--line-2); outline-offset: -2px; }

.gc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.gc-ports { display: grid; gap: 26px; }
.gc-group { display: grid; gap: 12px; }
.gc-group-title { margin: 0; font-size: 26px; }
.gc-port { overflow: hidden; scroll-margin-top: calc(var(--topbar-h, 62px) + 16px); }
.gc-port > summary { list-style: none; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 18px; cursor: pointer; border-radius: 24px; }
.gc-port > summary::-webkit-details-marker { display: none; }
.gc-port > summary:hover { background: #fffdf3; }
.gc-port[open] > summary { background: var(--cream, #fffbe6); }
.gc-port-main { display: grid; gap: 2px; min-width: 0; }
.gc-port-title { font-weight: 800; font-size: 16.5px; }
.gc-port-why { font-size: 13.5px; color: var(--ink-2); }
.gc-port-meta { display: grid; justify-items: end; gap: 6px; }
.gc-port-body { padding: 4px 18px 20px 66px; display: grid; gap: 14px; }
.gc-detail { margin: 0; font-weight: 600; }
.gc-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.gc-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.gc-link { display: grid; gap: 2px; padding: 12px 14px; border-radius: 16px; background: #fffdf3; color: var(--ink); text-decoration: none; box-shadow: inset 0 0 0 1px var(--line-2); }
.gc-link:hover { box-shadow: inset 0 0 0 2px var(--ink); background: var(--sun-soft); }
.gc-link small { color: var(--ink-3); }
.gc-port[data-status='optional'] > summary { opacity: 0.86; }

.gc-side { display: grid; gap: 16px; align-content: start; }
.gc-side-card { padding: 20px; }
.gc-side-card p { margin: 0 0 10px; }
.gc-side-title { margin: 0 0 8px; font-size: 24px; line-height: 1; }
.gc-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 14px; }
.gc-legend li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.gc-legend .gc-mark { width: 26px; height: 26px; font-size: 12px; }
.gc .account-more { padding: 16px 18px; }

@media (max-width: 1040px) {
  .gc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .gc-hero { grid-template-columns: 1fr; padding: 22px 18px; gap: 20px; }
  .gc-navigator { gap: 12px; }
  .gc-navigator .sm-avatar--lg { width: 56px; height: 56px; }
  .gc-title { font-size: 46px; }
  .gc-sub { font-size: 15px; }
  .gc-port > summary { grid-template-columns: auto minmax(0, 1fr); }
  .gc-port-meta { grid-column: 2; justify-items: start; grid-auto-flow: column; justify-content: start; }
  .gc-port-body { padding: 4px 16px 18px; }
  .gc-stop { flex-basis: 88px; }
}
@media (prefers-reduced-motion: reduce) { .gc-ship { animation: none; } }

/* ============================================================================
   Elcano (AI): the setup navigator panel and the "Ask Elcano" button
   ============================================================================ */
#assistant-panel { --line: rgb(22 19 10 / 12%); border: 0; border-radius: 26px; background: #fffdf5; box-shadow: inset 0 0 0 2px #16130a, 10px 10px 0 #16130a; top: 78px; bottom: 22px; right: 22px; }
#assistant-panel .assistant-header { display: flex; align-items: center; gap: 14px; background-color: #fffbe6; background-image: radial-gradient(rgb(22 19 10 / 9%) 1.2px, transparent 1.3px); background-size: 16px 16px; color: #16130a; border-bottom: 2px solid #16130a; }
#assistant-panel .assistant-header > div { flex: 1; min-width: 0; }
#assistant-panel .assistant-header .sm-avatar { width: 48px; height: 48px; }
#assistant-panel .assistant-header h2 { margin: 0; font-family: var(--font-display, Anton, Impact, sans-serif); font-weight: 400; text-transform: uppercase; font-size: 26px; line-height: 1; color: #16130a; display: flex; align-items: center; gap: 8px; }
#assistant-panel .assistant-header p { margin: 4px 0 0; color: rgb(22 19 10 / 65%); font-size: 12.5px; }
#assistant-panel .close-button { border-radius: 999px; background: #fff; color: #16130a; border: 2px solid #16130a; min-width: 44px; }
#assistant-panel .assistant-context { background: #ffe14a; color: #16130a; border-bottom: 1px solid rgb(22 19 10 / 12%); }
#assistant-panel .assistant-message .message-text { background: #fff; border-radius: 18px; box-shadow: inset 0 0 0 1px rgb(22 19 10 / 12%); }
#assistant-panel .assistant-message.from-user .message-text { background: #16130a; color: #fff; box-shadow: none; }
#assistant-panel .assistant-link { border-radius: 16px; border: 0; box-shadow: inset 0 0 0 1px rgb(22 19 10 / 18%); background: #fffdf3; color: #16130a; }
#assistant-panel .assistant-link:hover { background: #fff4b8; box-shadow: inset 0 0 0 2px #16130a; }
#assistant-panel .button { border-radius: 999px; background: #16130a; color: #fff; border: 0; font-weight: 700; }
#assistant-panel .button.secondary { background: #fff; color: #16130a; border: 2px solid #16130a; }
#assistant-panel .assistant-composer textarea { border-radius: 16px; border: 1px solid rgb(22 19 10 / 22%); }
#assistant-panel .assistant-composer textarea:focus { outline: none; border-color: #16130a; box-shadow: 0 0 0 4px rgb(255 225 74 / 55%); }
#assistant-panel .send-button { border-radius: 999px; background: #16130a; color: #ffe14a; border: 0; }

#elcano-fab { position: fixed; right: 20px; bottom: 20px; z-index: 190; display: inline-flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px; border: 0; border-radius: 999px; background: #16130a; color: #fff; font: 800 14px/1 var(--font, sans-serif); cursor: pointer; box-shadow: 0 14px 30px -14px rgb(22 19 10 / 80%); transition: transform .2s var(--spring, ease), color .15s; }
#elcano-fab img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 2px #ffe14a; }
#elcano-fab:hover { color: #ffe14a; transform: translateY(-2px) rotate(-1deg); }
body:has(#app[hidden]) #elcano-fab, body:has(#assistant-panel:not([hidden])) #elcano-fab { display: none; }
@media (max-width: 900px) {
  #elcano-fab { bottom: calc(var(--bottomnav-h, 62px) + 14px + env(safe-area-inset-bottom)); right: 12px; padding-right: 6px; }
  #elcano-fab span { display: none; }
}
@media (max-width: 600px) { #assistant-panel { box-shadow: inset 0 0 0 2px #16130a; } }

/* ============================================================================
   Google workspace (client-facing)
   ============================================================================ */
.gw { display: grid; gap: 18px; max-width: 1120px; }
.gw-head .page-sub { max-width: 640px; }
.gw-tabs .chip { text-decoration: none; }
.gw-range { margin-bottom: 4px; }
.gw-fresh { margin: 0 0 4px; }
.gw-note { margin: 0; padding: 12px 16px; border-radius: 16px; background: #fffdf3; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 14px; color: var(--ink-2); }
.gw .stat-tile .sm-basis { margin-top: 6px; }
.gw .stat-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.gw-empty { padding: 28px; display: grid; gap: 10px; justify-items: start; }
.gw-empty-title { margin: 0; font-size: 28px; }
.gw-empty p { margin: 0; }
.gw-table-wrap { overflow-x: auto; }
.gw-campaigns { display: grid; gap: 14px; }
.gw-campaign { display: grid; gap: 10px; padding: 16px; border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line-2); background: #fffefa; }
.gw-campaign-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.gw-campaign-head h3 { margin: 0; font-size: 17px; }
.gw-campaign-stickers { display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-start; }
.gw-error { margin: 0; padding: 10px 14px; border-radius: 14px; background: var(--hot-soft); color: #7d1235; font-weight: 600; }
.gw-ad summary { cursor: pointer; font-weight: 700; }
.gw-ad-preview { margin-top: 10px; padding: 14px 16px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); max-width: 560px; font-family: Arial, sans-serif; }
.gw-ad-preview p { margin: 0 0 4px; }
.gw-ad-url { font-size: 12.5px; color: #202124; }
.gw-ad-headline { font-size: 18px; color: #1a0dab; line-height: 1.3; }
.gw-start { display: grid; gap: 12px; padding: 18px; border-radius: 20px; box-shadow: inset 0 0 0 2px var(--ink); }
.gw-start p { margin: 0; }
.gw-start-title { font-size: 24px; margin: 0; }
.gw-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.gw-steps { list-style: none; margin: 14px 0 18px; padding: 0; display: grid; gap: 14px; }
.gw-steps li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }

/* ============================================================================
   Harbor funnel (prefix hf-): welcome, the signed celebration, the route from
   agreement to results, the results review and every thank-you / saved state.
   ============================================================================ */
.hf { display: grid; gap: 18px; max-width: 1120px; }
.hf-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; padding: 30px 32px; align-items: center; }
.hf-hero--ads { margin-bottom: 18px; }
.hf-hero-copy { position: relative; z-index: 1; min-width: 0; }
.hf-title { margin: 0; font-size: clamp(42px, 5.6vw, 72px); line-height: 0.98; }
.hf-lead { margin: 18px 0 0; font-size: 21px; line-height: 1.35; font-weight: 750; max-width: 30ch; }
.hf-sub { margin: 10px 0 0; max-width: 52ch; font-size: 16px; line-height: 1.55; color: var(--ink-2, rgb(22 19 10 / 72%)); }
.hf-go { margin-top: 22px; min-height: 56px; padding: 15px 28px; font-size: 17px; box-shadow: 0 16px 28px -16px rgb(22 19 10 / 85%), 0 0 0 4px var(--sun, #ffe14a); }
.hf-deal { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hf-deal li { display: grid; gap: 1px; padding: 10px 14px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 2px var(--ink, #16130a); min-width: 0; }
.hf-deal strong { font-family: var(--font-display, Anton, Impact, sans-serif); font-weight: 400; text-transform: uppercase; font-size: 20px; line-height: 1.05; }
.hf-deal span { font-size: 13px; color: var(--ink-2); }
.hf-hero-art { position: relative; z-index: 1; display: grid; justify-items: center; gap: 4px; }
.hf-hero-art img { width: min(220px, 60%); height: auto; filter: drop-shadow(0 18px 22px rgb(22 19 10 / 22%)); }
.hf-hero-art .sm-sticker { font-size: 13px; padding: 6px 14px; margin-top: -18px; }
.hf-guide-card { padding: 20px 22px; }
.hf-guide .sm-bubble { margin: 0; }

/* Confetti: scattered paper on the signed screen; it falls once, right after signing. */
.hf-confetti { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hf-confetti i { position: absolute; top: var(--y); left: var(--x); width: 10px; height: 16px; border-radius: 3px; background: var(--c); transform: rotate(var(--r)); opacity: .9; }
.hf-confetti i:nth-child(1) { --x: 4%; --y: 12%; --c: var(--hot); --r: 18deg; }
.hf-confetti i:nth-child(2) { --x: 14%; --y: 84%; --c: var(--sky); --r: -24deg; }
.hf-confetti i:nth-child(3) { --x: 31%; --y: 6%; --c: var(--sun); --r: 40deg; }
.hf-confetti i:nth-child(4) { --x: 47%; --y: 90%; --c: var(--grape); --r: -12deg; }
.hf-confetti i:nth-child(5) { --x: 56%; --y: 9%; --c: var(--teal); --r: 64deg; }
.hf-confetti i:nth-child(6) { --x: 66%; --y: 78%; --c: var(--hot); --r: -48deg; }
.hf-confetti i:nth-child(7) { --x: 74%; --y: 14%; --c: var(--sky); --r: 22deg; }
.hf-confetti i:nth-child(8) { --x: 84%; --y: 62%; --c: var(--sun); --r: -30deg; }
.hf-confetti i:nth-child(9) { --x: 93%; --y: 20%; --c: var(--grape); --r: 12deg; }
.hf-confetti i:nth-child(10) { --x: 90%; --y: 88%; --c: var(--teal); --r: 70deg; }
.hf-confetti i:nth-child(11) { --x: 40%; --y: 52%; --c: var(--sky); --r: -60deg; opacity: .35; }
.hf-confetti i:nth-child(12) { --x: 22%; --y: 40%; --c: var(--hot); --r: 30deg; opacity: .35; }
.hf-confetti i:nth-child(13) { --x: 62%; --y: 44%; --c: var(--sun); --r: -16deg; opacity: .5; }
.hf-hero.is-new .hf-confetti i { animation: hf-fall 1.4s var(--ease, ease-out) both; animation-delay: calc(var(--x) * 0.004s); }
@keyframes hf-fall { from { transform: translateY(-160px) rotate(0deg); opacity: 0; } to { transform: translateY(0) rotate(var(--r)); opacity: .9; } }

/* The route: seven illustrated stops from the agreement to results. */
.hf-route { display: grid; gap: 14px; }
.hf-route-head { display: flex; align-items: center; gap: 14px; }
.hf-route-head img { width: 64px; height: 64px; flex: none; }
.hf-route-head .gc-kicker { margin: 0 0 4px; }
.hf-route-title { margin: 0; font-size: 30px; line-height: 1; }
.hf-stops { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 12px; }
.hf-stop { position: relative; display: grid; align-content: start; gap: 8px; padding: 14px; min-width: 0; }
.hf-stop-art { width: 72px; height: 72px; }
.hf-stop-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.hf-stop-top .gc-mark { width: 28px; height: 28px; font-size: 13px; }
.hf-stop-top .sm-sticker { white-space: normal; }
.hf-stop-title { font-size: 15.5px; line-height: 1.2; }
.hf-stop-why { font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.hf-stop[data-status='upcoming'] .hf-stop-art { filter: grayscale(.55); opacity: .72; }
.hf-stop[data-status='done'] { background: #fffef6; }
.hf-stop.is-current { box-shadow: inset 0 0 0 3px var(--ink, #16130a), 6px 6px 0 var(--sun, #ffe14a); }

.hf-route-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.hf-route-list li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.hf-route-list .gc-mark { width: 26px; height: 26px; font-size: 12px; }
.hf-route-list strong { font-weight: 750; }
.hf-route-list small { display: block; margin-top: 2px; color: var(--ink-2); font-size: 13px; line-height: 1.45; }
.hf-route-list li[data-status='upcoming'] { color: var(--ink-3); }
.hf-route-list li.is-current strong { background: var(--sun-soft); box-shadow: 0 0 0 3px var(--sun-soft); border-radius: 4px; }

/* After launch: the results review, prepared by customer success (AI), run by a person. */
.hf-results { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; padding: 24px; align-items: start; }
.hf-results--compact { grid-template-columns: 1fr; padding: 20px; }
.hf-results-art { width: 120px; height: 120px; }
.hf-results-copy p { margin: 0 0 10px; }
.hf-results-title { margin: 0 0 10px; font-size: 26px; line-height: 1.02; }
.hf-results--compact .hf-results-title { font-size: 22px; }
.hf-results--compact p { font-size: 14px; }
.hf-people { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.hf-people li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hf-people .sm-avatar { width: 48px; height: 48px; }
.hf-people small { display: block; color: var(--ink-3); font-size: 12.5px; }
.hf-stand-in { object-fit: contain; padding: 4px; background: #fff; }

/* Thank-you and saved states. */
.hf-confirm { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; padding: 20px 24px; margin-bottom: 18px; box-shadow: inset 0 0 0 2px var(--ink, #16130a), 8px 8px 0 var(--sun, #ffe14a); }
.hf .hf-confirm { margin-bottom: 0; }
.hf-confirm-art { width: 88px; height: 88px; }
.hf-confirm p { margin: 6px 0 0; color: var(--ink-2); max-width: 60ch; }
.hf-confirm .gc-kicker { margin: 0 0 6px; color: var(--green, #167a43); }
.hf-confirm-title { margin: 0; font-size: 28px; line-height: 1; }
.hf-confirm .gc-actions { margin-top: 12px; }

/* The agreement: read it, then sign it. */
.hf-sign, .hf-paper, .hf-next-card { padding: 24px; display: grid; gap: 16px; }
.hf-sign-head, .hf-next-card { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
.hf-sign-head { display: grid; gap: 18px; }
.hf-sign-head img, .hf-next-card img { width: 96px; height: 96px; }
.hf-sign-head p, .hf-next-card p { margin: 6px 0 0; max-width: 64ch; }
.hf-sign-head .gc-kicker, .hf-next-card .gc-kicker { margin: 0 0 6px; }
.hf-sign-title, .hf-next-title { margin: 0; font-size: 30px; line-height: 1; }
.hf-doc { border-radius: 18px; background: #fffdf3; box-shadow: inset 0 0 0 1px var(--line-2); }
.hf-doc > summary { cursor: pointer; padding: 14px 16px; font-weight: 750; border-radius: 18px; }
.hf-doc > summary:hover { background: var(--sun-soft); }
.hf-doc-body { max-height: 420px; overflow: auto; padding: 4px 18px 16px; overflow-wrap: anywhere; }
.hf-doc-body h3 { margin: 18px 0 6px; font-size: 16px; }
.hf-doc-actions { margin: 0; }
.hf-sign-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 18px; padding: 20px; border-radius: 20px; background: var(--cream, #fffbe6); box-shadow: inset 0 0 0 2px var(--ink, #16130a); }
.hf-sign-form .field { margin-bottom: 12px; min-width: 0; }
.hf-wide { grid-column: 1 / -1; }
.hf-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; }
.hf-check input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--ink, #16130a); }
.hf-sign-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hf-sign-submit p:empty { display: none; }
.hf-sign-submit p { margin: 0; color: var(--danger, #b4234d); font-weight: 650; }
.hf-owner-note { margin: 0; padding: 14px 16px; border-radius: 16px; background: var(--sky-soft, #e4efff); font-weight: 600; }
.hf-signed-by { margin: 0; font-weight: 700; }

/* Get connected: what each account does for you, and the website-first gate. */
.gc-benefit { margin: 0; padding: 12px 14px; border-radius: 16px; background: #fffdf3; box-shadow: inset 0 0 0 1px var(--line); font-size: 14.5px; line-height: 1.5; }
.gc-gate-note { margin: -4px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.hf-site-steps li { padding: 2px 0; }
.hf-site-steps li.is-current { font-weight: 750; }
.hf-site-steps li.is-current::marker { content: '➜  '; }
.hf-site-work { display: grid; gap: 12px; }
.hf-site-work .setup-section { margin: 0; padding: 16px; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line-2); border: 0; background: #fff; }

@media (max-width: 1040px) {
  .hf-hero { grid-template-columns: 1fr; }
  .hf-hero-art { justify-items: start; }
  .hf-hero-art img { width: 160px; }
}
@media (max-width: 760px) {
  .hf-hero { padding: 22px 18px; gap: 18px; }
  .hf-title { font-size: 44px; }
  .hf-lead { font-size: 18px; }
  .hf-sub { font-size: 15px; }
  .hf-go { width: 100%; justify-content: center; text-align: center; }
  .hf-guide { gap: 12px; }
  .hf-guide .sm-avatar--lg { width: 56px; height: 56px; }
  .hf-stops { grid-template-columns: 1fr; gap: 10px; }
  .hf-stop { grid-template-columns: 56px minmax(0, 1fr); column-gap: 12px; row-gap: 4px; padding: 12px 14px; }
  .hf-stop-art { grid-row: 1 / span 3; width: 56px; height: 56px; }
  .hf-route-title { font-size: 26px; }
  .hf-results { grid-template-columns: 1fr; padding: 20px 18px; }
  .hf-results-art { width: 88px; height: 88px; }
  .hf-confirm { grid-template-columns: 64px minmax(0, 1fr); padding: 16px 18px; gap: 14px; }
  .hf-confirm-art { width: 64px; height: 64px; }
  .hf-confirm-title { font-size: 24px; }
  .hf-sign, .hf-paper, .hf-next-card { padding: 18px 16px; }
  .hf-sign-head, .hf-next-card { grid-template-columns: 1fr; gap: 10px; }
  .hf-sign-head img, .hf-next-card img { width: 72px; height: 72px; }
  .hf-sign-title, .hf-next-title { font-size: 26px; }
  .hf-sign-form { grid-template-columns: 1fr; padding: 16px; }
  .hf-sign-submit .btn { width: 100%; }
  .hf-doc-body { max-height: 340px; padding: 4px 14px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .hf-hero.is-new .hf-confetti i { animation: none; }
}
