/* heydental.app/generate — Design my practice. Layered on /styles.css tokens. */

.g-body code, .g-body .g-source { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
.g-body code { font-size: 0.86em; background: #fff1e0; border-radius: 6px; padding: 1px 5px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.g-body :focus-visible { outline: 3px solid #fb923c; outline-offset: 2px; }

/* —— Header extras —— */
.g-draft { position: relative; }
.g-draft summary { list-style: none; cursor: pointer; }
.g-draft summary::-webkit-details-marker { display: none; }
.g-draft-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30;
  display: grid; min-width: 220px; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
}
.g-draft-menu button {
  text-align: left; border: 0; background: transparent; padding: 10px 12px; border-radius: 10px; font-weight: 700; font-size: 14px;
}
.g-draft-menu button:hover { background: var(--soft); }
.g-src-chip { white-space: nowrap; }
@media (max-width: 520px) { .g-src-chip { display: none; } }

/* —— Stage bar —— */
.g-flow {
  position: relative; list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px;
  margin: 0; padding: 12px 16px 6px;
}
.g-flow-step > * {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 10px 16px 10px 8px; font-size: 16px; font-weight: 800; color: var(--muted);
}
.g-flow-step button { cursor: pointer; }
.g-flow-step.st-todo button { color: var(--ink); border-style: dashed; }
.g-flow-num {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--soft); font-size: 13px;
}
.g-flow-step.st-done > * { color: var(--ok); border-color: #abefc6; background: var(--ok-bg); }
.g-flow-step.st-done .g-flow-num { background: #d1fadf; }
.g-flow-step.st-now > * { color: #fff; background: var(--brand); border-color: var(--brand); box-shadow: 0 10px 24px -14px rgba(245, 132, 43, 0.95); }
.g-flow-step.st-now .g-flow-num { background: rgba(255, 255, 255, 0.25); }

/* —— Robot rail —— */
.g-rail {
  position: sticky; top: 53px; z-index: 15;
  padding: 16px 20px 16px;
  background: color-mix(in srgb, #fff7ed 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.g-rail-meta {
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  max-width: 1180px; margin: 0 auto 12px; font-size: 18px;
}
.g-rail-meta span { color: var(--muted); }
.g-rail-steps {
  position: relative; list-style: none; display: flex; gap: 8px; margin: 0 auto; padding: 2px; max-width: 1180px;
  overflow-x: auto; scroll-snap-type: x proximity;
}
.g-rail-step { flex: 1; min-width: 128px; scroll-snap-align: start; }
.g-rail-step button {
  width: 100%; display: block; text-align: center; cursor: pointer;
  border-radius: 18px; border: 1px dashed var(--line); background: #fff; padding: 12px 8px 14px; color: inherit;
}
.g-rail-step button:disabled { cursor: default; }
.g-rail-face {
  display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 8px;
  border-radius: 18px; overflow: hidden; background: #fff7ed;
}
.g-rail-face img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.g-rail-lab { display: block; font-size: 16px; font-weight: 800; }
.g-rail-state { display: block; font-size: 13px; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
.g-rail-step.st-current button { border-style: solid; border-color: var(--brand); background: #fffaf5; box-shadow: 0 10px 28px -18px rgba(245, 132, 43, 0.9); }
.g-rail-step.st-next button { border-color: #fdba74; background: #fff7ed; }
.g-rail-step.st-waiting .g-rail-face img { opacity: 0.72; }
.g-rail-step.st-done button { border-style: solid; border-color: #abefc6; background: var(--ok-bg); }
.g-rail-step.st-done .g-rail-state { color: var(--ok); }
.g-rail-step.st-issue button { border-style: solid; border-color: #fda29b; background: #fef3f2; }
.g-rail-step.st-issue .g-rail-state { color: #b42318; }
.g-rail-meter { max-width: 1180px; margin: 10px auto 0; height: 6px; border-radius: 999px; background: #fde7d2; overflow: hidden; }
.g-rail-fill { height: 100%; background: linear-gradient(90deg, var(--brand), #fbbf24); transition: width 0.35s ease; }

/* —— Layout —— */
.g-wrap { max-width: 1180px; padding-top: 18px; }
.g-panel {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px;
  box-shadow: 0 18px 40px -34px rgba(124, 45, 18, 0.5); min-width: 0;
}
.g-panel h2 { font-size: 22px; margin-bottom: 12px; }
.g-pill {
  display: inline-block; border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 800; font-style: normal;
  background: var(--chip); color: var(--brand-deep); border: 1px solid var(--line);
}
.g-pill.ok { background: var(--ok-bg); color: var(--ok); border-color: #abefc6; }
.g-pill.warn { background: #fffaeb; color: #b54708; border-color: #fedf89; }
.g-pill.bad { background: #fef3f2; color: #b42318; border-color: #fda29b; }
.g-fine { color: var(--muted); font-size: 13px; margin: 10px 0 0; }
.g-fine.bad { color: #b42318; }
.g-link { border: 0; background: none; padding: 0; color: var(--brand-deep); font-weight: 700; text-decoration: underline; cursor: pointer; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.g-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 12px; padding-top: 0; }

/* —— Intro —— */
.g-intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; margin-top: 10px; }
.g-intro h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.06; }
.g-intro-art img { width: 100%; height: auto; border-radius: 24px; box-shadow: var(--shadow); }
.g-mommy {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #1c1917;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.g-mommy video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #1c1917;
}
.g-mommy-unmute {
  position: absolute;
  left: 12px;
  bottom: 44px;
  z-index: 2;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  color: #1c1917;
  background: #fff7ed;
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.28);
}
.g-mommy-unmute:hover { background: #ffedd5; }
.g-mommy-cap {
  margin: 0;
  padding: 10px 14px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #fde7d2;
  background: linear-gradient(180deg, #292524 0%, #1c1917 100%);
}
.g-start { margin-top: 22px; display: grid; gap: 12px; justify-items: start; }
.g-start-alt { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 700; }
.g-toggle { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; cursor: pointer; }
.g-toggle.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.g-cast {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.g-cast-card {
  width: 100%; height: 100%; display: grid; gap: 4px; justify-items: start; text-align: left; cursor: pointer;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px; color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.g-cast-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.g-cast-card img { width: 100%; height: 120px; object-fit: cover; object-position: center 42%; border-radius: 12px; background: var(--soft); margin-bottom: 6px; }
.g-cast-card strong { font-family: var(--display); font-size: 18px; }
.g-cast-card span { color: var(--muted); font-size: 13px; }
.g-cast-card code { font-size: 11px; }
.g-cast-card.first { border-color: var(--brand); }

/* —— Robot step hero —— */
.g-hero { display: grid; grid-template-columns: 148px 1fr minmax(200px, 260px); gap: 18px; align-items: center; }
.g-hero h1 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; margin-top: 8px; }
.g-hero .lede { font-size: var(--fs-lede); margin-top: 8px; }
.g-writes { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.g-hero-bot {
  position: relative; width: 148px; height: 148px; border-radius: 28px; overflow: hidden;
  background: #fff7ed; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.g-hero-bot img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.g-spark { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #fdba74; opacity: 0.6; }
.g-spark.s1 { left: 14%; top: 18%; }
.g-spark.s2 { left: 72%; top: 20%; background: #93c5fd; }
.g-spark.s3 { left: 48%; top: 76%; background: #86efac; }
.g-next {
  display: grid; grid-template-columns: 1fr 80px; gap: 10px; align-items: center;
  background: #fff; border: 1px dashed #fdba74; border-radius: 16px; padding: 12px; box-shadow: var(--shadow);
}
.g-next.apply { border-style: solid; border-color: var(--brand); }
.g-next .chip { margin: 0; font-size: 11px; padding: 3px 9px; }
.g-next strong { display: block; margin: 6px 0 2px; }
.g-next span { color: var(--muted); font-size: 13px; line-height: 1.35; }
.g-next img { width: 80px; height: 80px; border-radius: 14px; object-fit: cover; object-position: center 40%; background: var(--soft); }

/* —— Two panes —— */
.g-shell { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 16px; margin-top: 20px; align-items: start; }
@media (min-height: 880px) and (min-width: 901px) {
  .g-chunk { position: sticky; top: 200px; }
}
.g-tabs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.g-tabs button {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; font-weight: 800; font-size: 13px; cursor: pointer;
}
.g-tabs button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.g-file { margin-left: auto; font-size: 12px; color: var(--muted); }
.g-hint { color: var(--muted); font-size: 12.5px; margin: 0 0 8px; }
.g-source {
  width: 100%; min-height: 380px; resize: vertical; display: block;
  background: #1c1917; color: #fde7d2; border: 0; border-radius: 14px; padding: 14px;
  font-size: 12.5px; line-height: 1.55; white-space: pre; overflow: auto; tab-size: 2;
}
.g-source:focus { outline: 3px solid #fb923c; }
.g-source.tall { min-height: 320px; }
.g-preview { min-height: 200px; }
.g-valid { margin: 12px 0 0; font-size: 13px; font-weight: 700; }
.g-valid.ok { color: var(--ok); }
.g-issues { margin: 12px 0 0; padding: 10px 12px 10px 28px; border-radius: 12px; background: #fef3f2; border: 1px solid #fda29b; color: #912018; font-size: 13px; font-weight: 600; }
.g-issues li + li { margin-top: 4px; }
.g-issues li.warn { color: #93370d; }
.g-server-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.g-server { font-size: 12.5px; font-weight: 700; }
.g-server.ok { color: var(--ok); }
.g-server.bad { color: #b42318; }
.g-server.off { color: #93370d; }
.g-server.pending { color: var(--muted); }
.g-stepnav { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

/* —— Form controls —— */
.gf-section { border: 0; margin: 0 0 14px; padding: 0; min-width: 0; }
.gf-section + .gf-section { border-top: 1px solid #fde7d2; padding-top: 14px; }
.gf-section legend { font-weight: 800; font-size: 15px; margin-bottom: 6px; padding: 0; }
.gf-note { color: var(--muted); font-size: 12.5px; margin: 0 0 10px; }
.gf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.gf-grid .span2 { grid-column: 1 / -1; }
.ic-picks, .gf-picks {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #fed7aa;
  background: #fffdfa;
  border-radius: 12px;
}
.ic-pick-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ic-pick-chip {
  border: 1px solid var(--peach-line, #fbd9bd);
  background: var(--peach-soft, #fff4eb);
  color: var(--peach-deep, #d9661a);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 700;
}
.ic-picks-list {
  display: grid;
  gap: 4px;
  max-height: 220px;
  overflow: auto;
  padding-right: 4px;
}
.ic-picks-empty, .ic-picks-err { margin: 0; font-size: 13px; font-weight: 600; }
.ic-picks-err { color: #b42318; }
.ic-picks .gf-check { margin: 0; font-size: 14px; }
.ic-picks input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--brand-deep);
  flex: none;
}
.ic-picks input[type="search"],
.ic-picks input[aria-label="Other trading partner service id"] {
  width: 100%;
  min-width: 0;
  border: 1px solid #fed7aa;
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 500;
}
.gf-field { display: grid; gap: 4px; margin-bottom: 10px; font-size: 12.5px; font-weight: 800; color: #44403c; }
.gf-field small { font-weight: 600; color: var(--muted); }
.gf-label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gf-needed {
  display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px; background: #fff7ed; color: #c2410c; border: 1px solid #fdba74;
}
.gf-needed[hidden] { display: none !important; }
.gf-field.gf-required.is-needed input,
.gf-field.gf-required.is-needed textarea,
.gf-field.gf-required.is-needed select {
  border-color: #f5842b;
  box-shadow: 0 0 0 3px rgba(245, 132, 43, 0.22);
}
.g-body .gf-field input.gf-voice-flash,
.g-body .gf-field textarea.gf-voice-flash,
.g-body .gf-field select.gf-voice-flash,
.g-body .gf-day input.gf-voice-flash {
  border-color: #1e3a5f;
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.25);
  background: #eef4fb;
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

/* —— Voice fill bar + flying robots —— */
.g-voice {
  position: relative; display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin: 0 0 14px; padding: 10px 12px; border-radius: 14px;
  background: linear-gradient(135deg, #fff7ed, #ffedd5); border: 1px solid #fdba74;
}
.g-voice-hint { margin: 0 0 8px; }
.g-voice-status { font-size: 13px; font-weight: 700; color: #9a3412; flex: 1; min-width: 140px; }
.g-form { position: relative; }
.g-fly-layer {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 5;
}
.g-fly-bot {
  position: absolute; left: 0; top: 0; width: 56px; height: 56px; object-fit: cover; border-radius: 14px;
  box-shadow: 0 8px 20px -10px rgba(124, 45, 18, 0.55);
  animation: g-fly-arc 0.85s ease-in-out forwards;
}
@keyframes g-fly-arc {
  0% { transform: translate(var(--fly-x0), var(--fly-y0)) scale(0.6) rotate(-12deg); opacity: 0; }
  20% { opacity: 1; }
  70% { transform: translate(var(--fly-x1), var(--fly-y1)) scale(1.05) rotate(6deg); opacity: 1; }
  100% { transform: translate(var(--fly-x1), calc(var(--fly-y1) - 12px)) scale(0.4) rotate(18deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .g-fly-bot { animation-duration: 0.01ms; }
  .g-body .gf-field input.gf-voice-flash,
  .g-body .gf-field textarea.gf-voice-flash { transition: none; }
}
.g-body .gf-field input, .g-body .gf-field select, .g-body .gf-field textarea,
.g-body .gf-row input, .g-body .gf-row select, .g-body .gf-rule select, .g-body .gf-inline input, .g-body .gf-day input {
  width: 100%; min-width: 0; border: 1px solid #fed7aa; background: #fffdfa; border-radius: 10px; padding: 9px 10px; font-size: 14px; font-weight: 500;
}
.g-body .ic-picks input[type="checkbox"] {
  width: 18px; height: 18px; min-width: 18px; padding: 0; border: 0; background: transparent; border-radius: 0;
}
.g-body textarea { resize: vertical; }
.g-body input.bad { border-color: #f04438; background: #fef3f2; }
.gf-color { display: flex; align-items: center; gap: 8px; }
.g-body .gf-color input { width: 48px; height: 38px; padding: 2px; }
.gf-check { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
.gf-check input { width: 18px; height: 18px; accent-color: var(--brand-deep); flex: none; }
.gf-check span small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.gf-check.small { font-size: 12.5px; margin: 0; white-space: nowrap; }
.gf-hours { display: grid; gap: 6px; }
.gf-day { display: grid; grid-template-columns: 96px 1fr auto 1fr auto; gap: 8px; align-items: center; }
.gf-dayname { font-weight: 800; font-size: 13px; }
.gf-day.closed .gf-dayname { color: var(--muted); }
.g-body .gf-day input[type="time"] { padding: 7px 8px; }
.gf-day input:disabled { opacity: 0.4; }
.gf-rows { display: grid; gap: 8px; }
.gf-row { display: grid; gap: 6px; align-items: center; }
.gf-row-staff { grid-template-columns: 1.3fr 1fr 1.3fr auto 34px; }
.gf-row-menu { grid-template-columns: 1fr 1fr 1fr 34px; }
.gf-row-svc { grid-template-columns: 78px 1.6fr 56px 70px 40px 34px; }
.gf-row-agent { grid-template-columns: 132px 1.3fr 98px 1fr 34px; }
.gf-row-agent.bad { outline: 2px solid #fda29b; border-radius: 10px; }
.gf-row-media { grid-template-columns: 1fr 1fr 34px; }
.gf-head { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.gf-x {
  width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 18px; line-height: 1; cursor: pointer; color: var(--muted);
}
.gf-x:hover { color: #b42318; border-color: #fda29b; }
.gf-add {
  justify-self: start; border: 1px dashed #fdba74; background: #fff7ed; color: var(--brand-deep);
  border-radius: 10px; padding: 8px 12px; font-weight: 800; font-size: 13px; cursor: pointer;
}
.gf-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; font-size: 12px; color: var(--muted); font-weight: 700; }
.gf-chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 700; cursor: pointer; }
.gf-chip:hover { border-color: var(--brand); }
.gf-rule { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; background: #fff; }
.gf-rule.on { border-color: #abefc6; background: #f6fef9; }
.gf-rule .gf-check { margin: 0; }
.gf-rule-place { display: flex; gap: 8px; margin: 8px 0 0 26px; }
.gf-ic-group { margin: 12px 0 4px; }
.gf-ic-group-title {
  margin: 0 0 8px; font-size: 13px; font-weight: 800; color: #17324d;
}
.gf-ic-group-title small {
  display: block; font-weight: 600; color: var(--muted); font-size: 12px; margin-top: 2px;
}
.gf-ic-card .gf-ic-does,
.gf-ic-card .gf-ic-when {
  margin: 6px 0 0 26px; font-size: 12.5px; color: #3d4f5f; line-height: 1.4;
}
.gf-ic-when span {
  display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--brand-deep); margin-right: 6px;
}
.gf-ic-try { margin: 8px 0 0 26px; font-size: 12.5px; font-weight: 800; }
.gf-ic-try a { color: var(--brand-deep); }
.gf-credits {
  margin: 14px 0 4px; padding: 12px 14px; border-radius: 14px;
  background: #fff7ed; border: 1px solid #fdba74; color: #9a3412; font-size: 13px;
}
.gf-credits strong { display: block; margin-bottom: 4px; color: #7c2d12; }
.gf-credits p { margin: 0 0 6px; }
.gf-credits p:last-child { margin-bottom: 0; }
.pv-credits {
  margin: 8px 0 12px; padding: 10px 12px; border-radius: 12px;
  background: #fff7ed; border: 1px solid #fdba74; color: #9a3412; font-size: 12.5px;
}
.pv-ic-group h4 { margin: 12px 0 6px; font-size: 13px; }
.pv-ic-group h4 small { display: block; color: var(--muted); font-weight: 600; font-size: 12px; }
.gf-todo, .pv-todo {
  display: grid; gap: 4px; margin-bottom: 14px; padding: 12px 14px; border-radius: 14px;
  background: #fffaeb; border: 1px solid #fedf89; color: #93370d; font-size: 13px;
}
.gf-inline { display: flex; gap: 8px; margin-top: 4px; }

/* —— Previews —— */
.pv-kicker { margin: 0 0 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-deep); }
.pv-muted { color: var(--muted); font-size: 13.5px; line-height: 1.45; margin: 6px 0; }
.pv-empty { color: var(--muted); font-style: italic; font-size: 13px; }
.pv-h4, .pv-block h4, .pv-split h4 { margin: 12px 0 6px; font-size: 13px; }
.pv-block h4 small, .pv-split h4 small { color: var(--muted); font-weight: 600; }
.pv-card { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
.pv-band { height: 10px; background: var(--pv-accent); }
.pv-body { padding: 14px; }
.pv-body h3 { font-family: var(--display); font-size: 22px; margin: 0; }
.pv-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; margin: 8px 0; }
.pv-split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pv-hours { width: 100%; border-collapse: collapse; font-size: 13px; }
.pv-hours th { text-align: left; font-weight: 700; padding: 3px 0; width: 46px; }
.pv-hours td { padding: 3px 0; }
.pv-hours tr.closed td { color: var(--muted); }
.pv-people { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.pv-people li { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.pv-people small { display: block; color: var(--muted); }
.pv-avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); font-weight: 800; color: var(--brand-deep); flex: none; }
.pv-url { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
.pv-media { display: inline-grid; place-items: center; min-width: 38px; height: 26px; padding: 0 6px; border: 1px dashed #fdba74; border-radius: 8px; font-size: 10px; color: var(--brand-deep); background: #fff7ed; font-weight: 700; }

.pv-browser { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
.pv-chrome { display: flex; align-items: center; gap: 5px; padding: 8px 10px; background: #f5f0eb; }
.pv-chrome > span { width: 9px; height: 9px; border-radius: 50%; background: #e7ded5; }
.pv-chrome code { margin-left: 8px; font-size: 11px; background: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-bottom: 3px solid var(--pv-accent); }
.pv-nav strong { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.pv-menu { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; font-weight: 700; }
.pv-group small { display: block; font-weight: 500; color: var(--muted); font-size: 11px; }
.pv-page { padding: 14px; }
.pv-page h3 { font-family: var(--display); font-size: 20px; margin: 0 0 6px; }
.pv-hero { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 12px; background: color-mix(in srgb, var(--pv-accent) 16%, #fff); margin-bottom: 10px; }
.pv-hero .pv-media { width: 72px; height: 54px; }
.pv-hero p { margin: 2px 0 0; font-size: 13px; color: #44403c; }
.pv-list { margin: 0; padding-left: 18px; font-size: 13px; }
.pv-list small { color: var(--muted); }
.pv-cta { display: inline-block; margin-top: 10px; padding: 8px 14px; border-radius: 10px; background: var(--pv-accent); color: #fff; font-weight: 800; font-size: 13px; }
.pv-chip { display: inline-block; margin: 0 4px 4px 0; padding: 2px 8px; border-radius: 999px; background: var(--soft); font-size: 11.5px; font-weight: 700; }
.pv-form-stub { display: grid; gap: 4px; padding: 12px; border: 1px dashed #fdba74; border-radius: 12px; margin: 8px 0; font-size: 13px; }
.pv-form-stub span { color: var(--muted); }
.pv-form-stub .pv-embed { color: var(--ok); font-weight: 700; }
.pv-login { display: grid; gap: 6px; max-width: 260px; margin-top: 8px; }
.pv-login span { border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font-size: 12px; color: var(--muted); }
.pv-login b { background: var(--pv-accent); color: #fff; border-radius: 8px; padding: 8px; text-align: center; font-size: 13px; }
.pv-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 10px; border-top: 1px solid #f5f0eb; background: #fffcf8; }
.pv-tabs button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; cursor: pointer; }
.pv-tabs button.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.pv-rules { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pv-rules li { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 13px; }
.pv-rules small { display: block; color: var(--muted); }
.pv-rules em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--muted); text-align: right; }
.pv-dot { width: 10px; height: 10px; border-radius: 50%; background: #d6d3d1; }
.pv-rules li.on { border-color: #abefc6; background: #f6fef9; }
.pv-rules li.on .pv-dot { background: #12b76a; }
.pv-rules li.on em { color: var(--ok); }
.pv-rules li.bad { border-color: #fda29b; background: #fef3f2; }
.pv-rules li.bad .pv-dot { background: #f04438; }

.pv-prices { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.pv-prices li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 13.5px; }
.pv-prices small { display: block; color: var(--muted); font-size: 12px; }
.pv-fee { font-weight: 800; font-family: var(--display); font-size: 16px; }
.pv-fee .bad, .pv-fee b.bad { color: #b42318; font-family: var(--sans); font-size: 12px; }
.pv-book { font-size: 11.5px; font-weight: 800; border-radius: 999px; padding: 4px 10px; background: #f5f0eb; color: var(--muted); }
.pv-book.yes { background: var(--brand-deep); color: #fff; }

.pv-call { padding: 12px; border-radius: 16px; background: #fffaf5; border: 1px solid var(--line); display: grid; gap: 6px; }
.pv-bubble { max-width: 88%; padding: 9px 12px; border-radius: 14px; font-size: 13.5px; line-height: 1.4; }
.pv-bubble.bot { background: #fff; border: 1px solid var(--line); justify-self: start; border-bottom-left-radius: 4px; }
.pv-bubble.caller { background: #ffedd5; justify-self: end; border-bottom-right-radius: 4px; }
.pv-bubble.small { font-size: 12.5px; color: var(--muted); }
.pv-playbook { margin-top: 12px; }
.pv-playbook ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.pv-playbook li { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; font-size: 13px; background: #fff; }
.pv-playbook li.bad { border-color: #fda29b; background: #fef3f2; }
.pv-agent { font-weight: 800; color: var(--brand-deep); }
.pv-verb { font-weight: 800; padding: 1px 8px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11.5px; }

.pv-inbox ul { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.pv-inbox li { display: grid; grid-template-columns: 120px 1fr auto; gap: 10px; padding: 10px 12px; font-size: 13px; border-top: 1px solid #f5f0eb; }
.pv-inbox li:first-child { border-top: 0; }
.pv-inbox li.open { background: #fffaf5; }
.pv-inbox li.off { opacity: 0.5; }
.pv-from { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-subj { color: var(--muted); }
.pv-subj b { color: var(--ink); }
.pv-when { font-size: 11.5px; font-weight: 800; color: var(--brand-deep); }

.pv-phone { max-width: 300px; margin: 0 auto; padding: 12px; border-radius: 28px; border: 8px solid #1c1917; background: #fff; display: grid; gap: 8px; }
.pv-phone-top { text-align: center; font-weight: 800; font-size: 13px; padding-bottom: 6px; border-bottom: 1px solid #f5f0eb; }
.pv-sms { background: #f2f4f7; border-radius: 16px 16px 16px 4px; padding: 8px 11px; font-size: 13px; line-height: 1.4; max-width: 90%; }
.pv-sms small { display: block; font-size: 10.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.pv-sms.off { opacity: 0.5; }

.pv-files { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.pv-files li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px dashed #fdba74; border-radius: 12px; font-size: 13px; }
.pv-files em { font-style: normal; font-size: 11px; font-weight: 800; color: #b54708; text-transform: uppercase; }

.pv-admin { display: grid; grid-template-columns: 180px 1fr; gap: 14px; }
.pv-admin aside { background: #1c1917; color: #fde7d2; border-radius: 14px; padding: 12px; display: grid; gap: 10px; align-content: start; font-size: 13px; }
.pv-admin-group { display: grid; gap: 3px; }
.pv-admin-group small { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: #fdba74; font-weight: 800; }
.pv-admin-group .muted { opacity: 0.5; }

/* —— Review —— */
.g-review-head { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: end; }
.g-review-head h1 { font-size: clamp(30px, 4vw, 46px); }
.g-review-cta { display: grid; gap: 8px; justify-items: end; text-align: right; max-width: 360px; }
.g-files { display: grid; gap: 10px; margin-top: 20px; }
.g-file-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.g-file-card summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; }
.g-file-card[open] summary { margin-bottom: 10px; }
.g-file-card .chip { padding: 3px 9px; font-size: 11px; }
.g-file-actions { display: flex; gap: 8px; margin-top: 8px; }
.g-preview-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; margin-top: 18px; }

/* —— Apply show —— */
.g-apply { max-width: 980px; }
.g-apply-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.g-apply-head h1 { font-size: clamp(30px, 4vw, 44px); }
.g-yard { margin: 12px 0; border-radius: 22px; overflow: hidden; background: #fff7ed; box-shadow: var(--shadow); height: clamp(180px, 30vh, 380px); }
.g-yard img { width: 100%; height: 100%; object-fit: cover; transform-origin: 55% 45%; }
.g-apply-cast { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.g-apply-cast li { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-align: center; transition: background 0.3s ease, border-color 0.3s ease; }
.g-apply-cast img { width: 100%; height: 72px; object-fit: cover; object-position: center 42%; }
.g-apply-cast span { display: block; font-size: 12px; font-weight: 800; padding-top: 4px; }
.g-apply-cast em { display: block; font-style: normal; font-size: 10.5px; font-weight: 800; color: var(--muted); padding: 0 2px 7px; text-transform: uppercase; letter-spacing: 0.04em; }
.g-apply-cast li.st-wait img { opacity: 0.7; }
.g-apply-cast li.st-run { border-color: var(--brand); background: #fffaf5; }
.g-apply-cast li.st-run em { color: var(--brand-deep); }
.g-apply-cast li.st-done { border-color: #abefc6; background: var(--ok-bg); }
.g-apply-cast li.st-done em { color: var(--ok); }
.g-apply-cast li.st-bad { border-color: #fda29b; background: #fef3f2; }
.g-apply-cast li.st-bad em { color: #b42318; }
.g-meter { height: 14px; border-radius: 999px; background: #fde7d2; overflow: hidden; margin-top: 16px; }
.g-meter-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), #fbbf24); transition: width 0.12s linear; }
.g-apply-line { margin: 10px 0 0; font-weight: 700; color: #44403c; font-variant-numeric: tabular-nums; }

/* —— Ready —— */
.g-ready-head { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: center; margin-bottom: 20px; }
.g-ready-head > img { width: 200px; height: 200px; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); background: var(--soft); }
.g-ready-head h1 { font-size: clamp(30px, 4vw, 46px); margin-top: 8px; }
.g-ready-files { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 6px; }
.g-ready-files li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13.5px; }
.g-ready-cta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.g-load { margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--brand); max-width: 560px; }
.g-load p { margin: 6px 0 12px; color: #44403c; font-size: 14px; }

/* —— Motion (opt-in) —— */
@media (prefers-reduced-motion: no-preference) {
  .g-rail-step.st-current .g-rail-face img, .g-hero-bot img, .g-apply-cast li.st-run img { animation: g-pulse 2.6s ease-in-out infinite; }
  .g-apply-cast li.st-done img { animation: g-cheer 0.6s ease-out 1; }
  .g-spark { animation: g-spark 2.2s ease-in-out infinite; }
  .g-spark.s2 { animation-delay: 0.5s; }
  .g-spark.s3 { animation-delay: 1s; }
  .g-yard img { animation: g-yard-pan 12s ease-in-out infinite; }
  .g-ready-head > img { animation: g-cheer 0.9s ease-out 2; }
}
@keyframes g-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.04); opacity: 0.9; } }
@keyframes g-spark { 0%, 100% { opacity: 0.2; transform: scale(0.6); } 50% { opacity: 1; transform: scale(1.5); } }
@keyframes g-yard-pan {
  0%, 100% { transform: scale(1.02) translate(0, 0); }
  50% { transform: scale(1.1) translate(-2.5%, 1.5%); }
}
@keyframes g-cheer { 0% { transform: scale(1); } 40% { transform: scale(1.05); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .g-rail-fill, .g-meter-bar, .g-cast-card { transition: none; }
}

/* —— Responsive —— */
@media (max-width: 1100px) {
  .g-hero { grid-template-columns: 120px 1fr; }
  .g-hero-bot { width: 120px; height: 120px; }
  .g-next { grid-column: 1 / -1; }
  .g-apply-cast { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .g-intro, .g-shell, .g-preview-grid, .g-review-head { grid-template-columns: 1fr; }
  .g-intro-art { order: -1; }
  .g-mommy-unmute { bottom: 40px; }
  .g-cast { grid-template-columns: repeat(2, 1fr); }
  .g-review-cta { justify-items: start; text-align: left; }
  .g-ready-head { grid-template-columns: 1fr; }
  .g-ready-head > img { width: 140px; height: 140px; }
}
@media (max-width: 720px) {
  .g-rail { position: static; padding: 8px 10px 10px; }
  .g-rail-meta { font-size: 12px; }
  .g-rail-step { min-width: 70px; }
  .g-rail-face { width: 38px; height: 38px; }
  .g-flow { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  .g-flow-step { flex: none; }
  .g-hero { grid-template-columns: 84px 1fr; gap: 12px; align-items: start; }
  .g-hero-bot { width: 84px; height: 84px; border-radius: 20px; }
  .g-hero .lede { font-size: 18px; }
  .gf-grid { grid-template-columns: 1fr; }
  .gf-day { grid-template-columns: 1fr 1fr auto 1fr; }
  .gf-day .gf-dayname { grid-column: 1 / -1; }
  .gf-day .gf-check { grid-column: 1 / -1; }
  .gf-row-staff { grid-template-columns: 1fr 1fr 34px; }
  .gf-row-staff input[data-bind$=".email"] { grid-column: 1 / 2; }
  .gf-row-svc { grid-template-columns: 70px 1fr 34px; }
  .gf-row-svc.gf-head { display: none; }
  .gf-row-agent { grid-template-columns: 1fr 1fr 34px; }
  .gf-row-agent input[data-agent$=".trigger"], .gf-row-agent input[data-agent$=".rest"] { grid-column: span 2; }
  .gf-row-menu { grid-template-columns: 1fr 1fr 34px; }
  .gf-row-menu input[data-bind$=".href"] { grid-column: span 2; }
  .gf-rule-place { flex-wrap: wrap; margin-left: 0; }
  .pv-split, .pv-admin { grid-template-columns: 1fr; }
  .pv-inbox li { grid-template-columns: 1fr auto; }
  .pv-inbox .pv-subj { grid-column: 1 / -1; grid-row: 2; }
  .g-apply-head { flex-direction: column; }
  .g-stepnav { position: sticky; bottom: 0; z-index: 12; margin: 18px -18px 0; padding: 10px 18px; background: color-mix(in srgb, #fff7ed 94%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .g-stepnav .btn.xl { flex: 1; text-align: center; padding: 12px 14px; }
  .g-source { min-height: 280px; }
  .g-cast-card img { height: 96px; }
}
