/* MG Ventures booking page, v3 (2026-09-29).
   CTRL palette: near-black ground, white text, grey hairlines, CTRL red used sparingly (primary action, the mark's point).
   "More red" pass (owner, 2026-09-29): red step numbers, red borders and a soft red glow on the selected host, company,
   topic, length and time, a red point under the chosen day, a red top edge on the card, a faint red wash in the ground
   and a soft glow on the red button. Surfaces stay near-black; red text only at small sizes.
   Green only means "open" (available days, live calendar). No purple, violet, blue or orange anywhere. */

@font-face {
  font-family: "Geist";
  src: url("fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #050506;
  --card: #0a0a0d;
  --s1: #0e0e11;
  --s2: #141419;
  --s3: #1c1c22;
  --tx: #ffffff;
  --tx-2: #b4b4bb;
  --tx-3: #8a8a93;
  --tx-off: #4a4a52;
  --line: rgba(255, 255, 255, 0.12);
  --line-2: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.3);
  --red: #ff4d3d;
  --red-btn: #d02e1a;
  --red-btn-hover: #b92816;
  --red-text: #ff6b5c;
  --red-brand: #e0341f;
  --red-line: rgba(255, 77, 61, 0.66);
  --red-ring: rgba(255, 77, 61, 0.22);
  --red-wash: linear-gradient(180deg, rgba(224, 52, 31, 0.13), rgba(224, 52, 31, 0.04));
  --red-glow: 0 10px 28px -12px rgba(224, 52, 31, 0.55);
  --ok: #4ade80;
  --ok-tint: rgba(74, 222, 128, 0.1);
  --ok-line: rgba(74, 222, 128, 0.32);
  --warn: #fbbf24;
  --bad: #f87171;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --r-card: 22px;
  --r: 12px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --gutter: clamp(12px, 2.6vw, 48px);
  --topbar-h: 76px;
  --pad-y: clamp(14px, 2.2vw, 36px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--tx);
  font: 400 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
p { margin: 0; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
[hidden] { display: none !important; }
.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;
}
:focus-visible { outline: 2px solid var(--tx); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; }

/* ---------- ground: faint grid, fading out toward the edges */
.ground {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    radial-gradient(60% 55% at 50% 0%, rgba(224, 52, 31, 0.16), transparent 72%);
  background-size: 48px 48px, 48px 48px, 100% 100%;
  background-position: -1px -1px, -1px -1px, 0 0;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 85%);
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 85%);
}

/* ---------- top bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--topbar-h);
  padding: 12px var(--gutter);
  background: var(--bg);
  border-bottom: 1px solid var(--line-2);
}
.tb-left, .tb-right { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; border-radius: 10px; }
.badge {
  width: 36px; height: 36px; flex: none;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--s1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.badge svg { width: 26px; height: 26px; }
.mk { fill: none; stroke: #fff; stroke-width: 2.9; stroke-linecap: round; stroke-linejoin: round; }
.mk-dot { fill: var(--red); }
.brand-name { font-weight: 600; font-size: 19px; letter-spacing: -0.015em; white-space: nowrap; }
.tb-slash { color: var(--tx-off); font-size: 20px; font-weight: 300; }
.tb-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--s1);
  font: 500 12.5px/1 var(--mono);
  color: var(--tx-2);
  white-space: nowrap;
}
.tb-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.tz-chip {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--s1);
  color: var(--tx-2);
  font-size: 14px;
  white-space: nowrap;
}
.tz-chip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.tz-short { display: none; font-family: var(--mono); font-size: 13px; }
.info { position: relative; }
.info-btn {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 0; border-radius: 10px;
  background: transparent;
  color: var(--tx-2);
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}
.info-btn:hover, .info-btn[aria-expanded="true"] { background: var(--s2); color: var(--tx); }
.info-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.info-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  width: min(340px, calc(100vw - 24px));
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--s1);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
  color: var(--tx-2);
  font-size: 14px;
  display: grid;
  gap: 8px;
}
.info-title { color: var(--tx); font-weight: 600; }

/* ---------- stage and the split card (full width, fills the height) */
.stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--pad-y) var(--gutter);
}
.card {
  flex: 1;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 44fr) minmax(0, 56fr);
  border: 1px solid var(--line-2);
  border-radius: var(--r-card);
  background: var(--card);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 30px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  overflow: clip;
  position: relative;
}
.card::before, .about-card::before {
  content: "";
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 77, 61, 0.75) 50%, transparent);
  pointer-events: none;
}
.card.enter { animation: rise 0.36s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.panel {
  min-width: 0;
  padding: clamp(20px, 2.4vw, 42px) clamp(18px, 2.8vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.panel-config, .panel-summary { background: rgba(255, 255, 255, 0.012); border-right: 1px solid var(--line-2); }
/* The calendar stays in view while the longer left column scrolls, so Continue is always reachable. */
.panel-cal {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: calc(100vh - var(--topbar-h) - 2 * var(--pad-y) - 2px);
  min-height: calc(100dvh - var(--topbar-h) - 2 * var(--pad-y) - 2px);
}

.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mono-title {
  margin: 0;
  font: 500 15px/1.2 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tx);
}
.status, .step-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 9px;
  border-radius: 7px;
  font: 600 12px/1.2 var(--mono);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.status { color: var(--ok); background: var(--ok-tint); box-shadow: inset 0 0 0 1px var(--ok-line); }
.status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status[data-state="loading"] { color: var(--tx-2); background: var(--s2); box-shadow: inset 0 0 0 1px var(--line); }
.status[data-state="loading"] i { animation: blink 1.2s ease-in-out infinite; }
.status[data-state="error"] { color: var(--bad); background: rgba(248, 113, 113, 0.1); box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.3); }
@keyframes blink { 50% { opacity: 0.25; } }
.step-badge { color: var(--tx-2); background: var(--s2); box-shadow: inset 0 0 0 1px var(--line); }

.group { display: grid; gap: 12px; }
.label { font-size: 15px; font-weight: 500; color: var(--tx); margin-bottom: 2px; }
.label .num { color: var(--red-text); font-weight: 600; }
.label-row { display: flex; width: 100%; justify-content: space-between; align-items: baseline; gap: 12px; }
.dur-note { font: 500 13px/1 var(--mono); color: var(--tx-3); white-space: nowrap; }
.note { font-size: 13.5px; color: var(--tx-3); min-height: 0; }
.note:empty { display: none; }
.opt { color: var(--tx-3); font-weight: 400; font-size: 13px; }

/* radios are real inputs, visually hidden, with the label as the target */
.host input, .co input, .purpose input, .len input, .day input, .slot input, .chip input {
  position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none;
}

/* ---------- hosts */
.hosts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: var(--bg);
}
.host {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 88px;
  padding: 10px 6px;
  border-radius: 11px;
  border: 1px solid transparent;
  color: var(--tx-2);
  cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.host:hover { background: var(--s1); color: var(--tx); }
.host:has(input:checked) { background: var(--red-wash), var(--s2); border-color: var(--red-line); color: var(--tx); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), var(--red-glow); }
.host:has(input:focus-visible) { outline: 2px solid var(--tx); outline-offset: 2px; }
.host-name { font-weight: 600; font-size: 15px; }
.avs { display: flex; align-items: center; }
.av { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--s3); box-shadow: 0 0 0 2px var(--card); }
.avs-pair .av + .av { margin-left: -12px; }
.av-lg { width: 48px; height: 48px; }

.host-card {
  display: flex; align-items: center; gap: 16px;
  padding: 13px 18px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: var(--s1);
}
.hc-name { font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.hc-sub { color: var(--tx-2); font-size: 14px; }

/* ---------- companies */
.companies { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.co {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  min-height: 68px;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--s1);
  cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.co:hover { border-color: var(--line); background: var(--s2); }
.co:has(input:checked) { border-color: var(--red-line); background: var(--red-wash), var(--s2); box-shadow: 0 0 0 1px var(--red-ring) inset, var(--red-glow); }
.co:has(input:focus-visible) { outline: 2px solid var(--tx); outline-offset: 2px; }
.co-logo {
  flex: none;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.co-logo svg { width: 26px; height: 26px; fill: none; }
.co-logo-ctrl path { stroke: #fff; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.co-logo-me svg { width: 22px; height: 22px; stroke: var(--tx-2); stroke-width: 1.7; stroke-linecap: round; }
.co-logo-em img { width: 24px; height: auto; }
.co-text { display: grid; gap: 1px; min-width: 0; }
.co-name { font-weight: 600; font-size: 14.5px; line-height: 1.25; }
.co-name-ctrl { font-size: 12.5px; letter-spacing: 0.16em; }
.co-sub { font-size: 12.5px; color: var(--tx-3); }

/* ---------- topics */
.purposes { display: grid; gap: 10px; }
.purpose {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  min-height: 66px;
  padding: 12px 16px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--s1);
  cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.purpose:hover { border-color: var(--line); background: var(--s2); }
.purpose:has(input:checked) { border-color: var(--red-line); background: var(--red-wash), var(--s2); box-shadow: 0 0 0 1px var(--red-ring) inset, var(--red-glow); }
.purpose:has(input:focus-visible) { outline: 2px solid var(--tx); outline-offset: 2px; }
.p-icon {
  flex: none;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--s2);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--tx-2);
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}
.p-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.purpose:has(input:checked) .p-icon { background: var(--red-btn); color: #fff; box-shadow: none; }
.p-text { display: grid; gap: 2px; min-width: 0; flex: 1; }
.p-name { font-weight: 600; font-size: 15px; }
.p-desc { font-size: 13.5px; color: var(--tx-2); }
.p-tag { align-self: flex-start; font: 500 11.5px/1 var(--mono); color: var(--tx-3); letter-spacing: 0.04em; white-space: nowrap; padding-top: 3px; }

.invest { display: grid; gap: 10px; padding: 14px 16px; border: 1px dashed var(--line); border-radius: 14px; }
.invest-label { font-size: 14px; font-weight: 500; float: left; width: 100%; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; clear: both; }
.chip span, .len span {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--s1);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.chip { position: relative; }
.chip span:hover, .len span:hover { border-color: var(--line-strong); }
.chip input:checked + span, .len input:checked + span { background: var(--red-wash), var(--s2); border-color: var(--red-line); color: var(--tx); font-weight: 600; box-shadow: 0 0 0 1px var(--red-ring) inset; }
.chip input:focus-visible + span, .len input:focus-visible + span { outline: 2px solid var(--tx); outline-offset: 2px; }
.len input:disabled + span { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }

.lengths { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.len { position: relative; }
.len span { width: 100%; min-height: 48px; font-family: var(--mono); font-size: 14px; }

/* ---------- calendar */
.panel-cal { gap: 20px; }
.cal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cal-title { margin: 0; display: flex; align-items: center; gap: 12px; font-size: clamp(22px, 1.9vw, 28px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.gmt-chip { font: 500 12.5px/1 var(--mono); color: var(--tx-2); padding: 6px 9px; border-radius: 999px; background: var(--s2); box-shadow: inset 0 0 0 1px var(--line); letter-spacing: 0.02em; }
.gmt-chip:empty { display: none; }
.cal-sub { margin-top: 6px; color: var(--tx-2); font-size: 14.5px; }
.cal-nav { display: flex; align-items: center; padding: 4px; gap: 2px; border: 1px solid var(--line); border-radius: 12px; background: var(--s1); }
.nav-btn {
  min-width: 44px; height: 44px;
  display: grid; place-items: center;
  padding: 0 10px;
  border: 0; border-radius: 9px;
  background: transparent;
  color: var(--tx-2);
  font-weight: 600; font-size: 15px;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}
.nav-btn:hover:not(:disabled) { background: var(--s3); color: var(--tx); }
.nav-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.nav-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-today { padding: 0 16px; color: var(--tx); }

.weekdays, .days-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(4px, 0.7vw, 10px); }
.weekdays span { text-align: center; font: 500 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--tx-3); }
.days-grid { min-height: 0; }
/* Space held for the calendar and the topic list until app.js draws them, so nothing jumps on load. */
.days-grid.boot { min-height: calc(5 * clamp(46px, 5.6vh, 60px) + 4 * clamp(4px, 0.7vw, 10px)); }
.purposes.boot { min-height: 218px; }
.tz-chip.boot { visibility: hidden; }
.day-blank { display: block; }
.day { position: relative; display: block; }
.day span {
  position: relative;
  display: grid; place-items: center;
  height: clamp(46px, 5.6vh, 60px);
  min-height: 44px;
  border-radius: 12px;
  font-weight: 600; font-size: 15px;
  font-variant-numeric: tabular-nums;
  color: var(--tx-off);
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.day.is-open span {
  color: var(--tx);
  background: var(--s1);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer;
}
.day.is-open span::after {
  content: "";
  position: absolute;
  bottom: 7px; left: 50%;
  width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%;
  background: var(--ok);
}
.day.is-open span:hover { background: var(--s3); box-shadow: inset 0 0 0 1px var(--line-strong); }
.day.is-empty span { color: var(--tx-off); }
.day.is-today span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--red); }
.day input:checked + span { background: var(--tx); color: var(--bg); box-shadow: 0 8px 24px -6px rgba(224, 52, 31, 0.45); }
.day input:checked + span::after { background: var(--red-brand); }
.day input:focus-visible + span { outline: 2px solid var(--tx); outline-offset: 2px; }
.days.is-loading .day span { color: transparent; background: var(--s1); box-shadow: none; animation: pulse 1.2s ease-in-out infinite; }
.days.is-loading .day span::after { display: none; }
@keyframes pulse { 50% { opacity: 0.5; } }

.slots-wrap { display: grid; gap: 14px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.slots-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.slots-title { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: var(--tx-2); }
.slots-title strong { color: var(--tx); font-weight: 600; }
.slots-title svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--ok); stroke-width: 1.9; stroke-linecap: round; }
.slots-count { font: 500 13px/1 var(--mono); color: var(--tx-2); white-space: nowrap; }
.slots-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
  max-height: 232px; overflow-y: auto; overscroll-behavior: contain;
  padding: 3px; margin: -3px;
  scrollbar-width: thin; scrollbar-color: var(--s3) transparent;
}
.slot { position: relative; display: block; }
.slot > span {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  white-space: nowrap;
  min-height: 50px;
  padding: 0 14px 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--s1);
  font: 500 14.5px/1 var(--mono);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 0.16s var(--ease), border-color 0.16s var(--ease), color 0.16s var(--ease);
}
.slot > span svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--tx-3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.18s var(--ease); }
.slot > span:hover { border-color: var(--line-strong); background: var(--s2); }
.slot > span:hover svg { transform: translateX(2px); }
.slot input:checked + span { background: var(--red-wash), var(--s2); border-color: var(--red-line); color: var(--tx); font-weight: 600; box-shadow: 0 0 0 1px var(--red-ring) inset, var(--red-glow); }
.slot input:checked + span svg { stroke: var(--red-text); }
.slot input:focus-visible + span { outline: 2px solid var(--tx); outline-offset: 2px; }
.slot-skel { height: 50px; border-radius: 12px; background: var(--s1); animation: pulse 1.2s ease-in-out infinite; }
.state { display: grid; gap: 10px; color: var(--tx-2); font-size: 14.5px; }
.state:empty { display: none; }
.state-title { color: var(--tx); font-weight: 600; }
.state-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.link-btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 11px; background: var(--s1);
  font-weight: 600; font-size: 14px; text-decoration: none;
}
.link-btn:hover { border-color: var(--line-strong); }

.cal-foot {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line-2);
}
.hint { color: var(--tx-2); font-size: 14px; min-width: 0; }
.hint.is-alert { color: var(--red-text); font-weight: 600; }

/* ---------- buttons */
.btn-primary {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border: 0; border-radius: 12px;
  background: var(--red-btn);
  color: #fff;
  font-weight: 600; font-size: 15.5px;
  text-decoration: none;
  white-space: nowrap;
  flex: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 10px 30px -10px rgba(224, 52, 31, 0.7);
  transition: background-color 0.18s var(--ease), transform 0.12s var(--ease), box-shadow 0.18s var(--ease);
}
.btn-primary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.18s var(--ease); }
.btn-primary:hover { background: var(--red-btn-hover); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-primary:active { transform: scale(0.985); }
.btn-primary[aria-disabled="true"] { background: var(--s3); color: var(--tx-2); box-shadow: none; }
.btn-primary[aria-busy="true"] { cursor: progress; background: var(--red-btn-hover); }
.btn-wide { width: 100%; }
.btn-ghost, .btn-back {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 20px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--s1);
  font-weight: 600; font-size: 15px;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.btn-ghost:hover, .btn-back:hover { border-color: var(--line-strong); background: var(--s2); }
.btn-back { align-self: flex-start; margin-top: auto; }
.btn-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- step 2 */
.sum-title { margin: 0; font-size: clamp(26px, 2.4vw, 34px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.sum-lede { color: var(--tx-2); font-size: 15px; max-width: 46ch; margin-top: -12px; }
.summary { margin: 0; border: 1px solid var(--line-2); border-radius: 16px; background: var(--s1); padding: 4px 18px; }
.summary .row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: center; padding: 13px 0; }
.summary .row + .row { border-top: 1px solid var(--line-2); }
.summary dt { font: 500 12px/1.3 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--tx-3); }
.summary dd { margin: 0; font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 10px; min-width: 0; overflow-wrap: anywhere; }
.sum-logo { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2); }
.sum-logo:empty { display: none; }
.sum-logo svg { width: 19px; height: 19px; fill: none; }
.sum-logo img { width: 17px; height: auto; }
.sum-logo .co-ctrl-path { stroke: #fff; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.sum-logo .me-path { stroke: var(--tx-2); stroke-width: 1.8; stroke-linecap: round; }

.panel-form { justify-content: center; }
#form { display: grid; gap: 20px; width: 100%; max-width: 720px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 500; font-size: 14.5px; }
.field input, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--s1);
  font-size: 16px;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.field input:hover, .field textarea:hover { border-color: var(--line-strong); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--tx); background: var(--s2); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--tx); outline-offset: 1px; }
.field input[aria-invalid="true"] { border-color: var(--red-text); }
.help { font-size: 13px; color: var(--tx-3); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error {
  padding: 12px 14px;
  border: 1px solid rgba(255, 107, 92, 0.4);
  border-radius: 12px;
  background: rgba(255, 77, 61, 0.08);
  color: var(--tx);
  font-size: 14.5px;
  display: grid; gap: 10px;
}
.form-error-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.form-error-actions button, .form-error-actions a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--s1);
  font-weight: 600; font-size: 14px; text-decoration: none;
}

/* ---------- step 3 */
.view-done { grid-template-columns: minmax(0, 1fr); place-items: center; }
.done { width: min(640px, 100%); padding: clamp(28px, 4vw, 64px) clamp(18px, 3vw, 40px); display: grid; justify-items: center; gap: 18px; text-align: center; }
.check { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--ok-tint); box-shadow: inset 0 0 0 1px var(--ok-line); }
.check svg { width: 30px; height: 30px; fill: none; stroke: var(--ok); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.done-title { margin: 0; font-size: clamp(28px, 3vw, 40px); font-weight: 600; letter-spacing: -0.02em; }
.done-lede { color: var(--tx-2); font-size: 15.5px; max-width: 52ch; }
.done-lede strong { color: var(--tx); overflow-wrap: anywhere; }
.done-list { width: 100%; text-align: left; }
.done-list a { display: inline-flex; align-items: center; min-height: 44px; color: var(--tx); text-decoration: underline; text-underline-offset: 3px; }
.done-list .row { padding: 10px 0; }
.done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }

.noscript { color: var(--tx-2); padding: 20px 0; }
.noscript a { color: var(--tx); }

/* ---------- who we are (accolades pass, 2026-09-29): one card below the booking card, same surfaces and red edge.
   The booking card keeps the first screen; this section starts below it on desktop and stacks on phones. */
.about { padding: 0 var(--gutter) var(--pad-y); }
.about-card {
  position: relative;
  display: grid;
  gap: 26px;
  padding: clamp(20px, 2.4vw, 42px) clamp(18px, 2.8vw, 48px);
  border: 1px solid var(--line-2);
  border-radius: var(--r-card);
  background: var(--card);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 30px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  overflow: clip;
}
.about-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 10px; }
.stat {
  position: relative;
  display: flex; flex-direction: column; gap: 6px;
  min-width: 0;
  padding: 18px 18px 16px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--s1);
}
.stat:not(.stat-badge)::before { content: ""; width: 14px; height: 2px; border-radius: 2px; background: var(--red); margin-bottom: 8px; }
.stat-num { font-size: clamp(26px, 2.3vw, 34px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-title { font-weight: 600; font-size: 15px; line-height: 1.3; }
.stat-label { font-size: 13.5px; line-height: 1.45; color: var(--tx-2); }
.stat-icon {
  width: 36px; height: 36px; flex: none;
  display: grid; place-items: center;
  margin-bottom: 4px;
  border-radius: 10px;
  background: var(--s2);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--red-text);
}
.stat-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.founders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.founder {
  display: grid; align-content: start; gap: 16px;
  min-width: 0;
  padding: 20px 22px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: var(--s1);
}
.founder-head { display: flex; align-items: center; gap: 16px; min-width: 0; }
.founder-photo { width: 64px; height: 64px; flex: none; border-radius: 50%; object-fit: cover; background: var(--s3); box-shadow: 0 0 0 2px var(--s1), 0 0 0 3px var(--red-line); }
.founder-id { min-width: 0; }
.founder-name { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.founder-title { color: var(--tx-2); font-size: 14px; }
.founder-lines { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line-2); display: grid; gap: 10px; }
.founder-lines li { position: relative; padding-left: 20px; font-size: 14.5px; line-height: 1.45; }
.founder-lines li::before { content: ""; position: absolute; left: 2px; top: 0.66em; width: 8px; height: 2px; border-radius: 2px; background: var(--red); }

.orgs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
.org-group { display: grid; align-content: start; gap: 12px; min-width: 0; }
.org-label { margin: 0; font: 500 12px/1.2 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--tx-3); }
.org-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 10px; }
.org {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  min-width: 0; min-height: 72px;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--s1);
}
.org-brand { justify-content: center; flex-wrap: wrap; gap: 10px; }
.org-mark { max-width: 100%; height: auto; }
.org-brand .co-name { font-size: 15px; }

/* Held claims, previews only (window.MG_SHOW_PENDING). Dashed edge plus a "Pending <ledger id>" chip. */
.pending-note { padding: 10px 14px; border: 1px dashed var(--line-strong); border-radius: 12px; font: 500 13px/1.45 var(--mono); color: var(--tx); }
.is-pending { border-style: dashed; border-color: var(--line-strong); }
.pending-chip {
  position: absolute; top: 8px; right: 8px;
  padding: 4px 6px;
  border-radius: 6px;
  background: var(--s3);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font: 600 10.5px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tx);
  white-space: nowrap;
}
.org-brand.is-pending { padding-top: 34px; }
.org-pending { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.org-pending .pending-chip { position: static; }

/* ---------- our companies (companies pass, 2026-09-30): every company on Gokul's list that is cleared to show, in his
   order, one linked card each. Logos keep their own colours on a dark tile; a light tile only where the logo is dark ink
   (Rooted Living, FaceCard). FaceCard's site has no logo image, so its tile is its own wordmark style set in text. */
.org-group-all { grid-column: 1 / -1; }
.ventures { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 10px; }
.venture { display: flex; min-width: 0; }
.venture-link {
  flex: 1;
  display: flex; flex-direction: column; gap: 6px;
  min-width: 0;
  padding: 12px 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--s1);
  color: var(--tx);
  text-decoration: none;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.venture-link:hover { border-color: var(--red-line); background: var(--red-wash), var(--s2); box-shadow: 0 0 0 1px var(--red-ring) inset; }
.venture-logo {
  height: 72px;
  display: grid; place-items: center;
  margin-bottom: 6px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line-2);
  overflow: hidden;
}
.venture-logo.is-light { background: #f7f7f5; box-shadow: none; }
.v-mark { width: 44px; height: 44px; border-radius: 9px; }
.v-mark-wide { width: 67px; }
.v-mark-em { width: 38px; height: 40px; }
.v-word { max-width: 100%; height: auto; }
.v-text { font: 800 19px/1 var(--sans); letter-spacing: -0.06em; color: #20211f; }
.venture-name { font-weight: 600; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.venture-sub { font-size: 13px; line-height: 1.45; color: var(--tx-2); }
.venture-url { display: block; margin-top: auto; padding-top: 6px; font: 500 11.5px/1.35 var(--mono); color: var(--tx-3); overflow-wrap: anywhere; }
.venture-url svg { display: inline-block; width: 12px; height: 12px; margin-left: 4px; vertical-align: -1px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.venture-link:hover .venture-url { color: var(--tx); }

@media (max-width: 1100px) {
  .orgs { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .founders { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .about-card { gap: 22px; padding: 20px 16px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stat { padding: 14px; }
  .stat-wide, .stat-badge { grid-column: 1 / -1; }
  .founder { padding: 18px 16px; }
  .founder-photo { width: 56px; height: 56px; }
  .ventures { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .venture-link { padding: 10px 10px 12px; gap: 5px; }
  .venture-logo { height: 60px; padding: 0 8px; margin-bottom: 4px; }
  .v-mark { width: 40px; height: 40px; border-radius: 8px; }
  .v-mark-wide { width: 61px; }
  .v-text { font-size: 17px; }
  .venture-name { font-size: 14px; }
  .venture-sub { font-size: 12.5px; }
  .venture-url { font-size: 11px; }
}

/* ---------- widths */
@media (max-width: 1100px) {
  .tb-slash, .tb-pill { display: none; }
}
@media (max-width: 900px) {
  :root { --topbar-h: 64px; }
  .card { grid-template-columns: minmax(0, 1fr); flex: none; }
  .panel-config, .panel-summary { border-right: 0; border-bottom: 1px solid var(--line-2); }
  .panel-cal { position: static; min-height: 0; }
  .slots-grid { max-height: none; overflow: visible; }
  .panel-form { justify-content: flex-start; }
  .btn-back { margin-top: 0; }
}
@media (max-width: 560px) {
  body { font-size: 14.5px; }
  .tz-full { display: none; }
  .tz-short { display: inline; }
  .tz-chip { padding: 0 10px; gap: 7px; }
  .brand-name { font-size: 17px; }
  .badge { width: 34px; height: 34px; }
  .panel { gap: 22px; padding-left: 16px; padding-right: 16px; }
  .panel-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .host { min-height: 88px; }
  .co { flex-direction: column; align-items: flex-start; padding: 12px; gap: 10px; min-height: 0; }
  .co-logo { width: 34px; height: 34px; }
  .co-logo svg { width: 22px; height: 22px; }
  .co-name { font-size: 13.5px; }
  .co-name-ctrl { font-size: 11.5px; letter-spacing: 0.12em; }
  .co-sub { font-size: 12px; }
  .purpose { padding: 12px 13px; gap: 12px; }
  .p-icon { width: 38px; height: 38px; }
  .p-tag { display: none; }
  .lengths { gap: 8px; }
  .len span { font-size: 13px; padding: 0 6px; }
  .cal-nav { width: 100%; justify-content: space-between; }
  .nav-today { flex: 1; }
  .weekdays span { font-size: 10.5px; letter-spacing: 0.06em; }
  .day span { border-radius: 10px; font-size: 14px; }
  .day.is-open span::after { bottom: 5px; width: 4px; height: 4px; margin-left: -2px; }
  .slot > span { justify-content: center; padding: 0 6px; font-size: 13.5px; }
  .slot > span svg { display: none; }
  .cal-foot { flex-direction: column-reverse; align-items: stretch; }
  .cal-foot .btn-primary { width: 100%; }
  .summary .row { grid-template-columns: 84px minmax(0, 1fr); }
  .done-actions > * { flex: 1 1 100%; }
}
@media (max-width: 400px) {
  .weekdays, .days-grid { gap: 3px; }
}
@media (max-width: 359px) {
  .slots-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .companies { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .card.enter, .status i, .days.is-loading .day span, .slot-skel { animation: none !important; }
}
