/* Fortly’s architectural opening leads into an interactive HTML product tour. */
.wrap {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 48px;
}
.site-header {
  height: 96px;
  display: flex;
  align-items: center;
  gap: 38px;
  position: relative;
  z-index: 10;
}
.brand {
  display: block;
  flex: none;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}
.site-header nav > a,
.signin {
  font-size: 12px;
  font-weight: 600;
}
.site-header nav > a {
  display: flex;
  align-items: center;
  gap: 5px;
}
.site-header nav .icon {
  width: 13px;
  height: 13px;
}
.site-header nav > a:hover,
.signin:hover {
  color: var(--rust);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-actions > .btn {
  min-height: 40px;
  padding: 10px 15px;
  font-size: 12px;
}
.mobile-menu,
.nav-theme {
  display: none;
}
.hero {
  padding-top: 64px;
  padding-bottom: 42px;
  text-align: center;
}
.hero-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font: 500 9px/1.7 var(--mono);
  letter-spacing: 0.12em;
}
.hero h1 {
  font-size: clamp(52px, 6.6vw, 88px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  word-spacing: 0.06em;
  margin: 25px 0 24px;
  font-weight: 650;
}
.hero h1 > span {
  color: var(--rust);
}
.hero-description {
  font-size: 17px;
  line-height: 1.8;
  letter-spacing: -0.015em;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 27px;
}
.hero-actions .btn {
  min-height: 46px;
  padding: 13px 20px;
  font-size: 12px;
}
.hero-footnote {
  font-size: 11px;
  margin-top: 13px;
}
.hero .btn-quiet {
  border-color: var(--line);
}
.hero .btn-quiet .icon {
  width: 15px;
  height: 15px;
}
.tour-section {
  position: relative;
  padding-top: 14px;
  padding-bottom: 45px;
  scroll-margin-top: 18px;
}
.tour-anchor {
  position: absolute;
  top: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
  scroll-margin-top: 18px;
}
.tour-aura {
  position: absolute;
  inset: 0 8px 25px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 90%, #f9731626, transparent 66%);
  filter: blur(20px);
  transition: opacity 420ms ease;
}
:root:not([data-theme="dark"])
  .tour-section:has(.tour-window[data-intro="true"])
  .tour-aura {
  opacity: 0;
}
/* The sample console and its app dialog inherit the page's active theme.
   Light fallbacks match the console; shared dark ramp values override them. */
.tour-window,
#sample-app-dialog {
  --ti: var(--s12, #20251e);
  --tm: var(--s9, #5f6c55);
  --ttext: var(--s11, #48533e);
  --tl: var(--s6, #dce0d5);
  --tstrong: var(--s7, #c6cdbd);
  --tframe-edge: var(--s7, #dce0d5);
  --ts: var(--s2, #ffffff);
  --tg: var(--s1, #f6f5f1);
  --tsoft: var(--s4, #e8ebe1);
  --tk: var(--k11, #15803d);
  --tkg: var(--k3, #eaf8ef);
  --tkl: color-mix(in srgb, var(--tk) 30%, var(--ts));
  --torange: var(--a11, #c2410c);
  --taccent-bg: var(--a3, #fff0e5);
  --taccent-edge: var(--a7, #fdba74);
  --tprimary: var(--ember);
  --tprimary-hover: #fb923c;
  --tprimary-ink: #24180e;
  --tinfo: var(--demo-info, #1d4ed8);
  --tinfo-bg: color-mix(in srgb, var(--tinfo) 12%, var(--tg));
  --tinfo-edge: color-mix(in srgb, var(--tinfo) 40%, var(--tl));
}
.tour-window {
  --tour-frame-shadow: 0 12px 32px -16px #10182838;
  --tour-intro-edge: transparent;
  --tour-intro-shadow: none;
  position: relative;
  display: grid;
  grid-template-columns: 174px minmax(0, 1fr);
  grid-template-rows: 47px minmax(0, 1fr);
  height: 624px;
  background: var(--tg);
  color: var(--ti);
  border: 1px solid var(--tframe-edge);
  border-radius: 13px;
  box-shadow: var(--tour-frame-shadow);
  transition:
    border-color 420ms ease,
    box-shadow 420ms ease;
  overflow: hidden;
  text-align: left;
}
.tour-topbar {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 20px;
  border-bottom: 1px solid var(--tl);
  font-size: 9px;
  min-width: 0;
}
.tour-command {
  border: 1px solid var(--tl);
  border-radius: 5px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--tm);
  flex: 1;
  max-width: 310px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
}
.tour-command .icon {
  width: 12px;
  height: 12px;
}
.tour-command kbd {
  margin-left: auto;
  border: 1px solid var(--tl);
  border-radius: 3px;
  padding: 0 3px;
  color: var(--tm);
  font-size: 8px;
}
.tour-agent {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 8px;
  white-space: nowrap;
  color: var(--tm);
}
.tour-agent .dot {
  width: 4px;
  height: 4px;
  background: #f97316;
}
.tour-top-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.tour-top-right > .icon {
  width: 13px;
  height: 13px;
  color: var(--tm);
}
.tour-avatar {
  height: 21px;
  width: 21px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #36bdd0;
  color: #0c2024;
  font-size: 9px;
  font-weight: 700;
}
.tour-user {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
}
.tour-user .icon {
  height: 10px;
  width: 10px;
  color: var(--tm);
}
.tour-mobile-brand {
  display: none;
}
.tour-sidebar {
  grid-row: 1/-1;
  grid-column: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 22px 12px 17px;
  border-right: 1px solid var(--tl);
  background: var(--ts);
  font-size: 10px;
  min-width: 0;
}
.tour-brand {
  padding: 0 7px 16px;
}
.tour-brand .logo-lockup {
  --logo-width: 104px;
}
.tour-brand .logo-tm {
  color: var(--ttext);
}
.tour-project {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--tl);
  border-radius: 6px;
  padding: 8px;
  margin-bottom: 12px;
  background: var(--tg);
  font-size: 9px;
}
.tour-project-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 23px;
  height: 23px;
  border-radius: 6px;
  background: #50bd80;
  color: #102c20;
  font-weight: 700;
}
.tour-project > .icon {
  margin-left: auto;
  width: 10px;
  height: 10px;
  color: var(--tm);
}
.tour-nav-label {
  font: 400 7px/1.5 var(--mono);
  color: var(--tm);
  letter-spacing: 0.1em;
  padding: 12px 8px 7px;
}
.tour-nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border-radius: 5px;
  color: var(--tm);
}
.tour-nav-item .icon {
  width: 12px;
  height: 12px;
}
.tour-nav-item.active {
  color: var(--ti);
  background: var(--tsoft);
}
.tour-nav-item.active .icon {
  color: var(--torange);
}
.tour-sidebar-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--tm);
  padding: 8px;
}
.tour-sidebar-bottom .icon {
  width: 12px;
  height: 12px;
}
.tour-main {
  grid-column: 2;
  grid-row: 2;
  padding: 23px 28px;
  min-width: 0;
  overflow: hidden;
}
.tour-project-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 25px;
}
.tour-title-line {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  line-height: 1.5;
}
.tour-title-line > strong {
  font-weight: 650;
  letter-spacing: -0.02em;
}
.tour-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: 500 8px/1.6 var(--sans);
  padding: 2px 7px;
  border: 1px solid var(--tkl);
  background: var(--tkg);
  color: var(--tk);
  border-radius: 14px;
  white-space: nowrap;
}
.tour-status i {
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
}
.tour-status.neutral {
  color: var(--tm);
  border-color: var(--tl);
  background: var(--tsoft);
}
.tour-project-meta {
  display: block;
  font-size: 9px;
  color: var(--tm);
  margin-top: 4px;
}
.tour-open {
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--tl);
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 8px;
  background: var(--ts);
  white-space: nowrap;
}
.tour-open .icon {
  width: 10px;
  height: 10px;
}

.tour-scene-heading {
  margin-bottom: 20px;
}
.tour-scene-heading h2 {
  font-size: 19px;
  letter-spacing: -0.035em;
  line-height: 1.4;
}
.tour-scene-heading p {
  font-size: 9px;
  color: var(--tm);
  line-height: 1.7;
  margin-top: 4px;
}
.tour-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-block: 15px;
}
.tour-metrics > span {
  font-size: 8px;
  color: var(--tm);
  border: 1px solid var(--tl);
  border-radius: 6px;
  padding: 12px;
  background: var(--ts);
}
.tour-metrics strong {
  display: block;
  color: var(--ti);
  font-size: 21px;
  line-height: 1.3;
  margin-block: 8px 5px;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.tour-metrics > span > small {
  font-size: 7px;
}
.tour-metrics strong small {
  font-size: 11px;
  font-weight: 400;
}
.tour-chart-card {
  border: 1px solid var(--tl);
  border-radius: 6px;
  padding: 12px;
  background: var(--ts);
}
.tour-chart-card > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
}
.tour-chart-card > div:first-child > span {
  font-size: 7px;
  color: var(--tm);
}
.tour-chart {
  width: 100%;
  height: 144px;
  margin-top: 14px;
  overflow: visible;
}
.chart-grid {
  stroke: var(--tl);
  stroke-width: 1;
  fill: none;
}
.tour-chart-line {
  fill: none;
  stroke: var(--torange);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 950;
  stroke-dashoffset: 0;
  animation: chart-draw 1.5s ease both;
}
.tour-chart-axis {
  display: flex;
  justify-content: space-between;
  font-size: 7px;
  color: var(--tm);
}
.tour-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 17px;
  font-size: 11px;
  color: var(--muted);
  min-height: 20px;
}
.tour-caption small {
  font: 400 8px/1.6 var(--mono);
  white-space: nowrap;
}
.platform-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 45px;
  padding-top: 50px;
  padding-bottom: 65px;
  border-bottom: 1px solid var(--line);
}
.platform-intro h2 {
  font-size: 32px;
  margin: 14px 0 12px;
  letter-spacing: -0.045em;
}
.platform-intro > div > p:last-child {
  font-size: 13px;
}
.platform-pieces {
  display: grid;
  grid-template-columns: repeat(4, minmax(65px, 1fr));
  gap: 20px;
  text-align: center;
}
.platform-pieces > a {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 12px;
  font-size: 11px;
}
.platform-pieces > a > .icon {
  width: 31px;
  height: 31px;
  box-sizing: content-box;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--rust);
  transition:
    transform 0.2s,
    background 0.2s;
}
.platform-pieces > a:hover > .icon {
  transform: translateY(-4px);
  background: var(--soft);
}
.platform-pieces strong {
  font-weight: 500;
}
.section-space {
  padding-block: 95px;
}
.section-copy h2,
.section-top h2 {
  font-size: clamp(31px, 3.2vw, 43px);
  line-height: 1.15;
  letter-spacing: -0.05em;
  margin-top: 17px;
}
.section-copy > p:not(.eyebrow) {
  font-size: 14px;
  line-height: 1.85;
  max-width: 390px;
  margin-top: 23px;
}
.section-copy > .text-link {
  margin-top: 24px;
}
.source-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 95px;
  align-items: center;
}
.frameworks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  max-width: 400px;
  margin-top: 35px;
}
.frameworks > span {
  flex-basis: 100%;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 2px;
}
.frameworks > strong {
  font-size: 12px;
  font-weight: 500;
}
.frameworks > a {
  display: flex;
  gap: 3px;
  align-items: center;
  font-size: 10px;
  color: var(--rust);
}
.frameworks .icon {
  width: 12px;
  height: 12px;
}
.source-paths {
  border-block: 1px solid var(--line);
}
.source-paths > a {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.2s;
}
.source-paths > a:hover {
  padding-left: 6px;
}
.source-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel);
  flex-shrink: 0;
  color: var(--rust);
}
.source-mark .icon {
  width: 23px;
  height: 23px;
}
.source-paths > a > span:nth-child(2) {
  min-width: 0;
}
.source-paths strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
.source-paths small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.6;
}
.source-paths > a > .icon {
  margin-left: auto;
  width: 15px;
  height: 15px;
  color: var(--muted);
}
.source-apps {
  width: 48px;
  height: 48px;
  position: relative;
  flex-shrink: 0;
}
.source-apps > img {
  padding: 7px;
  box-sizing: content-box;
  width: 25px;
  height: 25px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  position: absolute;
}
.source-apps > img:first-child {
  left: 0;
  top: 0;
}
.source-apps > img:last-child {
  right: -4px;
  bottom: -3px;
  box-shadow: -3px -3px 0 var(--bg);
}
.source-paths > p {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 16px 0;
  font-size: 10px;
}
.source-paths > p > .icon {
  width: 14px;
  height: 14px;
}
.source-paths > p > a {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--ink);
}
.source-paths > p > a > .icon {
  width: 10px;
  height: 10px;
}
.data-section {
  background: var(--soft);
  border-block: 1px solid var(--line);
}
.section-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 45px;
  margin-bottom: 38px;
}
.section-top > p,
.section-top > div > p:not(.eyebrow) {
  font-size: 13px;
  line-height: 1.9;
}
.section-top > div > .text-link {
  margin-top: 15px;
}
.data-workbench {
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 12px 35px #20221f08;
}
.workbench-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.workbench-bar > .icon {
  color: var(--muted);
  width: 16px;
  height: 16px;
}
.workbench-bar > strong {
  font-weight: 600;
}
.workbench-schema {
  color: var(--muted);
  font-size: 10px;
  margin-left: 10px;
}
.sample-label {
  font: 400 8px/1.5 var(--mono);
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-left: auto;
  white-space: nowrap;
}
.workbench-tabs {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-inline: 22px;
  border-bottom: 1px solid var(--line);
}
.workbench-tabs > button {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  padding: 15px 2px 13px;
  font-size: 11px;
  white-space: nowrap;
}
.workbench-tabs > button[aria-selected="true"] {
  border-color: var(--ember);
  color: var(--ink);
  font-weight: 600;
}
.data-pane {
  min-height: 263px;
}
.records-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 10px;
  color: var(--muted);
  padding: 17px 22px;
}
.records-toolbar > span:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
}
.records-toolbar .icon {
  width: 13px;
  height: 13px;
}
.records-filter {
  font: 400 9px var(--mono);
  border: 1px solid var(--line);
  padding: 4px 7px;
  border-radius: 4px;
}
.table-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
}
.records-table {
  border-collapse: collapse;
  width: 100%;
  white-space: nowrap;
  font-size: 11px;
}
.records-table th,
.records-table td {
  text-align: left;
  padding: 14px 22px;
  border-block: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.records-table th {
  font-weight: 500;
  font-size: 11px;
  background: var(--bg);
}
.records-table th > .icon {
  display: inline-block;
  vertical-align: middle;
  width: 11px;
  height: 11px;
  color: var(--rust);
  margin-right: 4px;
}
.records-table th small {
  font: 400 8px var(--mono);
  color: var(--muted);
  margin-left: 7px;
}
.records-table td.mono {
  font-size: 10px;
}
.records-table tbody tr:hover {
  background: var(--soft);
}
.record-pill {
  border: 1px solid color-mix(in srgb, var(--green) 30%, var(--line));
  color: var(--green);
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 9px;
  display: inline-block;
  line-height: 1.5;
  background: var(--panel);
}
.record-pill.building {
  color: var(--rust);
  border-color: var(--line);
}
.record-pill.neutral {
  color: var(--muted);
  border-color: var(--line);
}
.muted {
  color: var(--muted);
}
.data-pane-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 13px 22px;
  color: var(--muted);
  font-size: 9px;
}
.relationship-map {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 110px;
  padding: 20px 75px;
  position: relative;
  min-height: 240px;
}
.relationship-map > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  stroke: var(--rust);
  stroke-width: 1.2;
  fill: none;
}
.relationship-node {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  position: relative;
  z-index: 1;
  width: 240px;
  overflow: hidden;
  box-shadow: 0 3px 8px #20221f05;
}
.relationship-node h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  font-size: 11px;
  letter-spacing: 0;
}
.relationship-node .icon {
  width: 12px;
  height: 12px;
  color: var(--muted);
}
.relationship-node > span {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  font-size: 10px;
}
.relationship-node small {
  font: 400 8px var(--mono);
  color: var(--muted);
  margin-left: auto;
}
.relationship-many {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.api-pane {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  padding: 28px 34px;
  align-items: center;
}
.api-pane h3 {
  font-size: 23px;
  line-height: 1.2;
  margin: 12px 0;
}
.api-pane > div > p:not(.eyebrow) {
  font-size: 11px;
  line-height: 1.8;
  max-width: 340px;
}
.api-pane .text-link {
  font-size: 10px;
  margin-top: 14px;
}
.api-example {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 7px;
  overflow: hidden;
  font-size: 10px;
  min-width: 0;
}
.api-example > div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border-bottom: 1px solid var(--line);
}
.api-method {
  font: 500 9px var(--mono);
  color: var(--green);
}
.api-example code {
  font-size: 10px;
}
.api-example > pre {
  margin: 0;
  padding: 20px 15px;
  overflow: auto;
  font-size: 10px;
  line-height: 1.9;
}
.api-example > span {
  display: flex;
  gap: 6px;
  padding: 12px 15px;
  color: var(--muted);
  font-size: 8px;
  border-top: 1px solid var(--line);
  line-height: 1.7;
}
.api-example > span .icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  margin-top: 2px;
}
.operations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.traffic-demo,
.recovery-demo {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px;
  background: var(--panel);
  min-width: 0;
}
.operation-head {
  display: flex;
  align-items: center;
  gap: 9px;
}
.operation-head > .icon {
  width: 17px;
  height: 17px;
  color: var(--rust);
}
.operation-head > h3 {
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.025em;
}
.operation-head .sample-label {
  font-size: 7px;
}
.traffic-demo > p:not(.chart-instruction),
.recovery-demo > p {
  font-size: 11px;
  line-height: 1.8;
  margin-top: 11px;
}
.traffic-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin: 24px 0 18px;
}
.traffic-toolbar > strong {
  font-size: 25px;
  letter-spacing: -0.04em;
  font-weight: 600;
}
.traffic-toolbar > strong > small {
  font-size: 10px;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--muted);
  margin-left: 5px;
}
.traffic-toolbar [role="group"] {
  display: flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.traffic-toolbar button {
  background: transparent;
  border: 0;
  border-radius: 3px;
  font-size: 9px;
  color: var(--muted);
  padding: 5px 8px;
  min-height: 29px;
  min-width: 30px;
}
.traffic-toolbar [aria-pressed="true"] {
  background: var(--soft);
  color: var(--ink);
}
.traffic-chart {
  height: 190px;
  position: relative;
  cursor: crosshair;
  touch-action: pan-y;
}
.traffic-chart > svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.traffic-grid {
  stroke: var(--line);
  stroke-width: 1;
  fill: none;
}
.traffic-path {
  stroke: #f97316;
  stroke-width: 2;
  fill: none;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.traffic-chart line {
  stroke: var(--muted);
  stroke-dasharray: 2 4;
  opacity: 0;
}
.traffic-chart circle {
  stroke: var(--panel);
  stroke-width: 2;
  fill: #f97316;
  opacity: 0;
}
.traffic-chart[data-inspect="true"] line,
.traffic-chart[data-inspect="true"] circle {
  opacity: 1;
}
.traffic-tooltip {
  position: absolute;
  top: 5px;
  left: 10px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  max-width: calc(100% - 16px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 8px 11px;
  font-size: 9px;
  box-shadow: 0 3px 10px #20221f0b;
  pointer-events: none;
  line-height: 1.6;
}
.traffic-tooltip > span {
  color: var(--muted);
}
.traffic-axis {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font: 400 8px var(--mono);
  margin-top: 10px;
}
.chart-instruction {
  font-size: 9px;
  line-height: 1.6;
  margin-top: 14px;
}
.traffic-demo > .text-link {
  font-size: 11px;
  margin-top: 20px;
}
.recovery-tabs {
  display: flex;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  padding: 3px;
  margin-top: 23px;
}
.recovery-tabs > button {
  flex: 1;
  min-height: 32px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 10px;
  color: var(--muted);
}
.recovery-tabs > button[aria-pressed="true"] {
  background: var(--panel);
  border-color: var(--line);
  color: var(--ink);
}
.recovery-result {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 18px;
  background: var(--bg);
  min-height: 185px;
}
.recovery-result-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.recovery-result-title > .icon {
  color: var(--green);
  width: 16px;
  height: 16px;
}
.recovery-result-title > strong {
  font-size: 12px;
  line-height: 1.6;
}
.recovery-result-title > .record-pill {
  margin-left: auto;
  font-size: 8px;
}
.recovery-result > p {
  font-size: 10px;
  line-height: 1.8;
  margin: 10px 0 16px;
}
.recovery-release {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-block: 12px;
  border-block: 1px solid var(--line);
  font-size: 9px;
  color: var(--muted);
}
.recovery-release > .icon {
  width: 12px;
  height: 12px;
}
.recovery-release > span:last-child {
  margin-left: auto;
  font-size: 8px;
}
.recovery-preserved {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 9px;
  color: var(--muted);
  margin-top: 13px;
  line-height: 1.7;
}
.recovery-preserved > .icon {
  color: var(--green);
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  margin-top: 2px;
}
.recovery-result[data-outcome="failed"] .recovery-result-title > .icon,
.recovery-result[data-outcome="failed"] .record-pill {
  color: #d13238;
}
.recovery-result[data-outcome="failed"] .record-pill {
  border-color: #d1323850;
}
.recovery-demo > .recovery-note {
  font-size: 9px;
  line-height: 1.8;
  margin-top: 16px;
}
.recovery-demo > .text-link {
  font-size: 11px;
  margin-top: 20px;
}
.rest-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  padding-top: 24px;
  padding-bottom: 85px;
}
.rest-copy h2 {
  font-size: 34px;
  line-height: 1.2;
  margin: 16px 0 20px;
}
.rest-copy > p {
  font-size: 13px;
  line-height: 1.9;
}
.rest-copy > .text-link {
  margin-top: 24px;
}
.pricing-section {
  padding-block: 85px;
  border-block: 1px solid var(--line);
  background: var(--soft);
}
.pricing-section .section-top {
  align-items: flex-start;
}
.pricing-section .section-top h2 {
  max-width: 420px;
}
.pricing-section .section-top > p {
  max-width: 415px;
}
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.plan {
  padding: 29px 25px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.plan .head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.plan .name {
  font-size: 13px;
  font-weight: 600;
}
.plan .tag {
  font: 500 8px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--rust);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 4px 6px;
}
.plan .price {
  font-size: 43px;
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.3;
  color: var(--ink);
  margin-top: 20px;
}
.plan .price small {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
}
.plan .fine {
  font-size: 11px;
  margin-top: 8px;
}
.plans ul {
  list-style: none;
  padding: 0;
  margin: 24px 0 28px;
}
.plans li {
  position: relative;
  font-size: 11px;
  line-height: 1.8;
  padding-left: 18px;
  margin: 8px 0;
}
.plans li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: 10px;
}
.plans li.bound {
  font-size: 9px;
  color: var(--muted);
  margin-top: -7px;
  padding-left: 18px;
}
.plans li.bound::before {
  display: none;
}
.plan .btn {
  width: 100%;
  font-size: 11px;
  margin-top: auto;
  min-height: 42px;
}
.plan.lead {
  border-color: var(--rust);
  background: var(--panel);
  box-shadow: 0 5px 25px #f9731609;
}
.plan .primary {
  background: var(--ember);
  border-color: var(--ember);
  color: #24180e;
}
.plan .primary:hover {
  background: #fb923c;
}
.pricing-section .note {
  font-size: 10px;
  line-height: 1.9;
  max-width: 900px;
  margin: 20px auto 0;
  text-align: center;
}
.pricing-section .note > a {
  color: var(--ink);
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pricing-section .note .icon {
  display: inline-block;
  width: 11px;
  height: 11px;
  vertical-align: middle;
}
.faq {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 100px;
}
.faq h2 {
  font-size: 36px;
  margin: 18px 0 24px;
}
.faq > .text-link {
  font-size: 11px;
}
.faq-list {
  border-top: 1px solid var(--line);
}
.faq-list details {
  border-bottom: 1px solid var(--line);
}
.faq-list summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary > .icon {
  width: 15px;
  height: 15px;
  color: var(--muted);
  transition: transform 0.2s;
}
.faq-list details[open] summary > .icon {
  transform: rotate(45deg);
}
.faq-list p {
  font-size: 12px;
  line-height: 1.9;
  padding: 0 25px 20px 0;
}
.faq-list p > a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--ink);
}
.closing {
  position: relative;
  padding-top: 65px;
  padding-bottom: 85px;
  border-top: 1px solid var(--line);
}
.closing h2 {
  font-size: clamp(42px, 5vw, 65px);
  line-height: 1.09;
  margin: 23px 0;
}
.closing h2 > span {
  color: var(--rust);
}
.closing > p:not(.eyebrow) {
  font-size: 13px;
}
.closing > div {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 26px;
}
.closing-index {
  position: absolute;
  right: 60px;
  bottom: 85px;
  font-size: 45px;
  color: var(--muted);
  letter-spacing: -0.07em;
}
.footer {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  border-top: 1px solid var(--line);
  padding-block: 35px;
}
.footer .logo-lockup {
  --logo-width: 110px;
}
.footer p {
  font-size: 11px;
  margin: 10px 0 15px;
}
.footer small {
  font-size: 9px;
  color: var(--muted);
}
.footer nav {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding-top: 8px;
  font-size: 11px;
}
.footer nav > a:hover {
  color: var(--rust);
}
.tm {
  margin-left: 0.12em;
  font-size: 0.62em;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 0;
  vertical-align: super;
}
.text-link > .icon,
.btn > .icon {
  transition: transform 0.2s;
}
.text-link:hover > .icon,
.btn:hover > .icon {
  transform: translateX(2px);
}
@keyframes log-enter {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes chart-draw {
  from {
    stroke-dashoffset: 950;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
@keyframes typing {
  to {
    clip-path: inset(0);
  }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .github-mark > img {
    filter: invert(1);
  }
  :root:not([data-theme="light"])
    .recovery-result[data-outcome="failed"]
    .recovery-result-title
    > .icon,
  :root:not([data-theme="light"])
    .recovery-result[data-outcome="failed"]
    .record-pill {
    color: #ff797d;
  }
}
:root[data-theme="dark"] .github-mark > img {
  filter: invert(1);
}
:root[data-theme="dark"]
  .recovery-result[data-outcome="failed"]
  .recovery-result-title
  > .icon,
:root[data-theme="dark"] .recovery-result[data-outcome="failed"] .record-pill {
  color: #ff797d;
}
@media (min-width: 1600px) {
  .wrap {
    max-width: 1380px;
    padding-inline: 64px;
  }
  .hero {
    padding-top: 82px;
  }
  .hero h1 {
    font-size: 96px;
  }
  .tour-window {
    height: 663px;
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .tour-main {
    padding: 29px 34px;
  }
  .tour-scene-heading {
    margin-bottom: 24px;
  }
}
@media (max-width: 1100px) {
  .wrap {
    padding-inline: 30px;
  }
  .site-header {
    gap: 20px;
  }
  .site-header nav {
    gap: 18px;
  }
  .header-actions {
    gap: 14px;
  }
  .tour-window {
    grid-template-columns: 150px minmax(0, 1fr);
  }
  .tour-agent {
    display: none;
  }
  .tour-main {
    padding: 23px;
  }
  .tour-sidebar {
    padding-inline: 9px;
  }
  .source-section {
    gap: 50px;
  }
  .platform-intro {
    gap: 30px;
  }
  .platform-pieces {
    gap: 13px;
  }
  .platform-pieces > a > .icon {
    padding: 14px;
    width: 27px;
    height: 27px;
  }
  .platform-intro h2 {
    font-size: 28px;
  }
  .section-top {
    gap: 35px;
  }
  .operation-head .sample-label {
    display: none;
  }
  .relationship-map {
    padding-inline: 50px;
  }
  .api-pane {
    gap: 30px;
  }
  .rest-section {
    gap: 40px;
  }
  .faq {
    gap: 65px;
  }
  .footer nav {
    gap: 18px;
  }
}
@media (max-width: 800px) {
  .site-header {
    height: 78px;
    gap: 16px;
  }
  .site-header .logo-lockup {
    --logo-width: 112px;
  }
  .site-header nav {
    display: none;
    position: absolute;
    top: 77px;
    left: 20px;
    right: 20px;
    z-index: 20;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 9px;
    box-shadow: 0 10px 30px #0002;
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .site-header nav.open {
    display: flex;
  }
  .site-header nav > a {
    padding: 12px;
    min-height: 43px;
  }
  .site-header nav .nav-theme {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 6px;
    padding: 12px;
    border-top: 1px solid var(--line);
    font-size: 11px;
    color: var(--muted);
  }
  .header-actions {
    margin-left: auto;
    gap: 8px;
  }
  .header-actions > .signin {
    display: none;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .header-actions > .btn {
    font-size: 10px;
    padding: 9px 12px;
    min-height: 38px;
  }
  .header-actions > .btn > .icon {
    width: 13px;
    height: 13px;
  }
  .hero {
    padding-top: 43px;
    padding-bottom: 33px;
  }
  .hero h1 {
    font-size: 64px;
  }
  .hero-description {
    font-size: 15px;
  }
  .hero-note {
    font-size: 8px;
    letter-spacing: 0.08em;
  }
  .tour-window {
    grid-template-columns: 126px minmax(0, 1fr);
    height: 591px;
  }
  .tour-sidebar {
    padding-top: 19px;
    font-size: 8px;
  }
  .tour-brand {
    padding-left: 4px;
  }
  .tour-brand .logo-lockup {
    --logo-width: 86px;
  }
  .tour-project {
    padding: 6px;
    gap: 5px;
    font-size: 8px;
  }
  .tour-project-avatar {
    width: 19px;
    height: 19px;
  }
  .tour-nav-label {
    font-size: 6px;
  }
  .tour-nav-item {
    gap: 7px;
    padding: 8px 6px;
  }
  .tour-topbar {
    padding-inline: 15px;
  }
  .tour-command {
    font-size: 8px;
    max-width: 250px;
  }
  .tour-top-right {
    gap: 8px;
  }
  .tour-top-right > span:first-child,
  .tour-top-right > .icon {
    display: none;
  }
  .tour-main {
    padding: 20px 18px;
  }
  .tour-scene-heading h2 {
    font-size: 17px;
  }
  .tour-scene-heading p {
    font-size: 8px;
  }
  .tour-caption {
    font-size: 10px;
  }
  .tour-caption small {
    font-size: 7px;
  }
  .tour-metrics > span {
    padding: 10px;
  }
  .tour-metrics > span > small {
    font-size: 6px;
  }
  .tour-metrics strong {
    font-size: 18px;
  }
  .platform-intro {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    padding-top: 30px;
    padding-bottom: 50px;
  }
  .platform-pieces {
    width: 100%;
    grid-template-columns: repeat(4, 1fr);
    max-width: 450px;
    gap: 15px;
  }
  .platform-pieces > a > .icon {
    padding: 16px;
  }
  .section-space {
    padding-block: 68px;
  }
  .source-section {
    gap: 30px;
    grid-template-columns: 1fr 1fr;
  }
  .section-copy > p:not(.eyebrow) {
    font-size: 12px;
  }
  .source-paths strong {
    font-size: 11px;
  }
  .source-paths small {
    font-size: 10px;
  }
  .source-paths > a {
    gap: 12px;
  }
  .source-mark {
    height: 39px;
    width: 39px;
  }
  .source-apps {
    height: 39px;
    width: 39px;
  }
  .source-apps > img {
    width: 20px;
    height: 20px;
    padding: 6px;
  }
  .source-mark img {
    width: 24px;
    height: 24px;
  }
  .source-paths > p {
    font-size: 9px;
    flex-wrap: wrap;
  }
  .section-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }
  .section-top h2 {
    font-size: 36px;
  }
  .section-top > p,
  .section-top > div > p:not(.eyebrow) {
    font-size: 12px;
  }
  .relationship-map {
    gap: 70px;
    padding-inline: 30px;
  }
  .relationship-node {
    width: 210px;
  }
  .api-pane {
    padding: 25px;
    gap: 25px;
  }
  .api-pane h3 {
    font-size: 21px;
  }
  .api-example code {
    font-size: 9px;
  }
  .api-example > pre {
    padding-inline: 12px;
  }
  .operations-grid {
    gap: 16px;
  }
  .traffic-demo,
  .recovery-demo {
    padding: 20px;
  }
  .operation-head {
    gap: 7px;
  }
  .operation-head > h3 {
    font-size: 14px;
  }
  .recovery-result {
    padding: 13px;
  }
  .recovery-result-title {
    flex-wrap: wrap;
    gap: 5px;
  }
  .recovery-result-title > strong {
    font-size: 11px;
  }
  .recovery-result-title > .record-pill {
    font-size: 7px;
  }
  .recovery-tabs > button {
    font-size: 9px;
  }
  .rest-section {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-bottom: 65px;
  }
  .rest-playground {
    max-width: 570px;
    width: 100%;
    margin-inline: auto;
  }
  .rest-copy {
    max-width: 570px;
    width: 100%;
    margin-inline: auto;
  }
  .plans {
    gap: 12px;
  }
  .plan {
    padding: 23px 18px;
  }
  .plans li {
    font-size: 10px;
  }
  .plan .fine {
    font-size: 10px;
  }
  .plan .price {
    font-size: 35px;
  }
  .plan .name {
    font-size: 12px;
  }
  .plan .tag {
    font-size: 6px;
  }
  .plan .btn {
    font-size: 10px;
  }
  .faq {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .faq h2 {
    margin-block: 13px 20px;
  }
  .footer {
    gap: 25px;
  }
  .footer nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 320px;
    gap: 14px 20px;
    font-size: 10px;
  }
  .closing {
    padding-block: 60px;
  }
  .closing-index {
    font-size: 32px;
    right: 35px;
    bottom: 65px;
  }
}
@media (max-width: 600px) {
  .wrap {
    padding-inline: 20px;
  }
  .site-header {
    gap: 10px;
  }
  .site-header .logo-lockup {
    --logo-width: 104px;
  }
  .header-actions {
    gap: 5px;
  }
  .header-actions > .btn {
    font-size: 9px;
    padding: 9px 10px;
  }
  .hero {
    padding-top: 35px;
    padding-bottom: 27px;
  }
  .hero-note {
    font-size: 7px;
    letter-spacing: 0.055em;
  }
  .hero h1 {
    font-size: clamp(42px, 9.8vw, 59px);
    margin: 24px 0 19px;
    letter-spacing: -0.045em;
  }
  .hero-description {
    font-size: 12px;
    line-height: 1.9;
    max-width: 345px;
    margin-inline: auto;
  }
  .hero-actions {
    gap: 8px;
    margin-top: 23px;
  }
  .hero-actions .btn {
    font-size: 10px;
    padding: 11px 13px;
    gap: 7px;
    min-height: 43px;
  }
  .hero-actions .icon {
    width: 14px;
    height: 14px;
  }
  .hero-footnote {
    font-size: 9px;
    margin-top: 12px;
  }
  .tour-section {
    padding-top: 8px;
    padding-bottom: 27px;
  }
  .tour-aura {
    inset-inline: 0;
    filter: blur(12px);
  }
  .tour-window {
    height: 554px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 42px minmax(0, 1fr);
    border-radius: 9px;
  }
  .tour-topbar {
    grid-column: 1;
    gap: 10px;
    padding-inline: 13px;
  }
  .tour-mobile-brand {
    display: block;
  }
  .tour-mobile-brand > img {
    width: 78px;
  }
  .tour-command,
  .tour-user,
  .tour-sidebar {
    display: none;
  }
  .tour-top-right > span:first-child,
  .tour-top-right > .icon {
    display: block;
  }
  .tour-top-right {
    gap: 10px;
    color: var(--tm);
    font-size: 8px;
  }
  .tour-avatar {
    width: 18px;
    height: 18px;
  }
  .tour-main {
    grid-column: 1;
    padding: 17px 15px;
  }
  .tour-project-heading {
    margin-bottom: 21px;
  }
  .tour-title-line {
    gap: 7px;
    font-size: 12px;
  }
  .tour-title-line .tour-status {
    font-size: 7px;
  }
  .tour-project-meta {
    font-size: 7px;
  }
  .tour-open {
    font-size: 7px;
    gap: 4px;
    padding: 4px 5px;
  }
  .tour-open > .icon {
    width: 9px;
    height: 9px;
  }
  .tour-scene-heading {
    margin-bottom: 16px;
  }
  .tour-scene-heading h2 {
    font-size: 16px;
  }
  .tour-scene-heading p {
    font-size: 8px;
  }
  .tour-caption {
    flex-direction: column;
    gap: 7px;
    font-size: 9px;
    text-align: center;
    margin-top: 14px;
    min-height: 46px;
    line-height: 1.7;
  }
  .tour-caption small {
    font-size: 6px;
    letter-spacing: 0.015em;
  }
  .tour-metrics {
    gap: 6px;
    margin-block: 13px;
  }
  .tour-metrics > span {
    padding: 10px 7px;
    font-size: 7px;
  }
  .tour-metrics strong {
    font-size: 18px;
    margin-block: 7px 5px;
  }
  .tour-metrics > span > small {
    font-size: 5.5px;
    line-height: 1.5;
    display: block;
  }
  .tour-metrics strong small {
    font-size: 9px;
  }
  .tour-chart-card {
    padding: 10px;
  }
  .tour-chart-card > div:first-child {
    font-size: 8px;
  }
  .tour-chart {
    height: 134px;
    margin-top: 18px;
  }
  .tour-chart-axis {
    font-size: 6px;
  }
  .platform-intro {
    padding-top: 21px;
    padding-bottom: 40px;
    gap: 26px;
  }
  .platform-intro .eyebrow {
    font-size: 8px;
  }
  .platform-intro h2 {
    font-size: 27px;
    line-height: 1.18;
    margin: 13px 0;
  }
  .platform-intro > div > p:last-child {
    font-size: 11px;
  }
  .platform-pieces {
    gap: 9px;
    max-width: 380px;
  }
  .platform-pieces > a {
    font-size: 8px;
    gap: 9px;
  }
  .platform-pieces > a > .icon {
    padding: 13px;
    width: 23px;
    height: 23px;
    border-radius: 9px;
  }
  .section-space {
    padding-block: 50px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 0.12em;
  }
  .source-section {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .section-copy h2,
  .section-top h2 {
    font-size: 32px;
    line-height: 1.18;
    margin-top: 15px;
  }
  .section-copy > p:not(.eyebrow) {
    font-size: 12px;
    margin-top: 18px;
    max-width: 390px;
  }
  .section-copy > .text-link {
    font-size: 11px;
    margin-top: 20px;
  }
  .frameworks {
    margin-top: 24px;
    gap: 8px 16px;
  }
  .frameworks > strong {
    font-size: 10px;
  }
  .frameworks > span {
    font-size: 9px;
  }
  .source-paths strong {
    font-size: 12px;
  }
  .source-paths small {
    font-size: 10px;
  }
  .source-paths > a {
    padding-block: 20px;
    gap: 15px;
  }
  .source-mark {
    height: 43px;
    width: 43px;
  }
  .source-apps {
    height: 43px;
    width: 43px;
  }
  .source-paths > p {
    font-size: 10px;
  }
  .section-top {
    gap: 18px;
    margin-bottom: 27px;
  }
  .section-top > p,
  .section-top > div > p:not(.eyebrow) {
    font-size: 11px;
    line-height: 1.9;
  }
  .section-top .text-link {
    font-size: 10px;
  }
  .desktop-break {
    display: none;
  }
  .workbench-bar {
    gap: 7px;
    padding: 15px 14px;
    font-size: 10px;
    flex-wrap: wrap;
  }
  .workbench-schema {
    font-size: 8px;
    margin-left: 3px;
  }
  .workbench-bar .sample-label {
    flex-basis: 100%;
    font-size: 6px;
    padding-left: 23px;
    letter-spacing: 0.07em;
  }
  .workbench-tabs {
    padding-inline: 12px;
    gap: 18px;
  }
  .workbench-tabs > button {
    font-size: 9px;
    padding-block: 13px 11px;
  }
  .data-pane {
    min-height: 270px;
  }
  .records-toolbar {
    padding: 14px;
    font-size: 8px;
    gap: 7px;
    flex-wrap: wrap;
  }
  .records-toolbar .icon {
    height: 11px;
    width: 11px;
  }
  .records-filter {
    font-size: 7px;
    padding: 3px 6px;
  }
  .records-table {
    font-size: 9px;
  }
  .records-table th,
  .records-table td {
    padding: 14px;
  }
  .records-table th {
    font-size: 9px;
  }
  .records-table th small {
    font-size: 7px;
  }
  .records-table td.mono {
    font-size: 8px;
  }
  .record-pill {
    font-size: 8px;
  }
  .data-pane-foot {
    padding: 12px 14px;
    font-size: 8px;
    line-height: 1.7;
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
  .relationship-map {
    gap: 25px;
    padding: 20px 15px;
    min-height: 270px;
    align-items: center;
  }
  .relationship-node {
    width: 100%;
    max-width: 143px;
  }
  .relationship-node h3 {
    font-size: 9px;
    padding: 9px 8px;
    gap: 5px;
  }
  .relationship-node > span {
    font-size: 8px;
    padding: 6px 8px;
    gap: 3px;
    flex-wrap: wrap;
  }
  .relationship-node .icon {
    width: 10px;
    height: 10px;
  }
  .relationship-node small {
    font-size: 6px;
  }
  .relationship-many {
    gap: 15px;
    width: 50%;
  }
  .relationship-map > .relationship-node {
    width: 43%;
  }
  .relationship-map > svg {
    stroke-width: 2;
  }
  .api-pane {
    grid-template-columns: 1fr;
    padding: 22px 16px;
    gap: 22px;
  }
  .api-pane h3 {
    font-size: 23px;
  }
  .api-pane > div > p:not(.eyebrow) {
    font-size: 11px;
    max-width: 100%;
  }
  .api-example code {
    font-size: 9px;
  }
  .api-example > span {
    font-size: 7px;
  }
  .operations-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .traffic-demo,
  .recovery-demo {
    padding: 20px;
  }
  .operation-head > h3 {
    font-size: 15px;
  }
  .traffic-demo > p:not(.chart-instruction),
  .recovery-demo > p {
    font-size: 10px;
  }
  .traffic-chart {
    height: 172px;
  }
  .traffic-toolbar {
    margin-block: 22px 15px;
  }
  .traffic-toolbar > strong {
    font-size: 25px;
  }
  .traffic-tooltip {
    padding: 7px 9px;
    font-size: 8px;
    gap: 8px;
  }
  .traffic-demo > .text-link,
  .recovery-demo > .text-link {
    font-size: 10px;
  }
  .recovery-tabs > button {
    font-size: 9px;
    min-height: 35px;
  }
  .recovery-result {
    padding: 15px;
    min-height: 180px;
  }
  .recovery-result-title > strong {
    font-size: 11px;
  }
  .recovery-result-title > .record-pill {
    font-size: 7px;
  }
  .recovery-release {
    font-size: 8px;
    gap: 6px;
  }
  .recovery-release > span:last-child {
    font-size: 7px;
  }
  .recovery-result > p {
    font-size: 10px;
  }
  .recovery-preserved {
    font-size: 8px;
  }
  .recovery-demo > .recovery-note {
    font-size: 9px;
  }
  .rest-section {
    padding-top: 5px;
    padding-bottom: 50px;
    gap: 32px;
  }
  .rest-copy h2 {
    font-size: 29px;
  }
  .rest-copy > p {
    font-size: 12px;
  }
  .rest-copy > .text-link {
    font-size: 11px;
  }
  .pricing-section {
    padding-block: 50px;
  }
  .pricing-section .section-top h2 {
    max-width: 310px;
  }
  .pricing-section .section-top > p {
    font-size: 11px;
    max-width: 100%;
  }
  .plans {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .plan {
    padding: 25px;
  }
  .plan .name {
    font-size: 13px;
  }
  .plan .tag {
    font-size: 8px;
  }
  .plan .price {
    font-size: 42px;
    margin-top: 18px;
  }
  .plan .fine {
    font-size: 11px;
  }
  .plans ul {
    margin-block: 21px 24px;
  }
  .plans li {
    font-size: 11px;
  }
  .plans li.bound {
    font-size: 9px;
  }
  .plan .btn {
    font-size: 11px;
  }
  .pricing-section .note {
    font-size: 9px;
    text-align: left;
    margin-top: 18px;
    line-height: 1.9;
  }
  .pricing-section .note > a {
    white-space: normal;
  }
  .faq {
    gap: 24px;
  }
  .faq h2 {
    font-size: 31px;
    margin-block: 15px 20px;
  }
  .faq .text-link {
    font-size: 11px;
  }
  .faq-list summary {
    font-size: 11px;
    padding-block: 18px;
  }
  .faq-list p {
    font-size: 11px;
    padding-right: 8px;
  }
  .closing {
    padding-block: 50px;
  }
  .closing h2 {
    font-size: 45px;
    margin-block: 20px;
  }
  .closing > p:not(.eyebrow) {
    font-size: 11px;
    max-width: 260px;
  }
  .closing > div {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin-top: 23px;
  }
  .closing .btn {
    font-size: 11px;
  }
  .closing .text-link {
    font-size: 10px;
  }
  .closing-index {
    font-size: 25px;
    right: 20px;
    bottom: 50px;
  }
  .footer {
    flex-direction: column;
    gap: 25px;
    padding-block: 30px;
  }
  .footer p {
    font-size: 10px;
  }
  .footer nav {
    justify-content: flex-start;
    max-width: 100%;
    gap: 14px 22px;
    font-size: 10px;
    padding-top: 0;
  }
  .footer .logo-lockup {
    --logo-width: 104px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tour-scene,
  .tour-chart-line {
    animation: none !important;
  }
  .platform-pieces > a:hover > .icon {
    transform: none;
  }
  .source-paths > a:hover {
    padding-left: 0;
  }
}
.tour-status.building {
  background: var(--tinfo-bg);
  border-color: var(--tinfo-edge);
  color: var(--tinfo);
}
.tour-window[data-playing="false"] * {
  animation-play-state: paused !important;
}
/* Keep the phone tour readable by using the console's compact composition. */
@media (max-width: 600px) {
  .tour-window {
    height: 640px;
  }
  .tour-project-meta {
    font-size: 8px;
  }
  .tour-title-line {
    font-size: 13px;
  }
  .tour-title-line .tour-status {
    font-size: 8px;
  }
  .tour-open {
    font-size: 8px;
    padding: 5px 6px;
  }
  .tour-scene-heading h2 {
    font-size: 17px;
  }
  .tour-scene-heading p {
    font-size: 9px;
  }
  .tour-metrics {
    margin-block: 18px;
    gap: 7px;
  }
  .tour-metrics > span {
    font-size: 8px;
    padding-block: 13px;
  }
  .tour-metrics strong {
    font-size: 21px;
  }
  .tour-metrics > span > small {
    font-size: 7px;
  }
  .tour-chart {
    height: 160px;
  }
  .tour-chart-card > div:first-child {
    font-size: 10px;
  }
  .tour-chart-card > div:first-child > span {
    font-size: 8px;
  }
  .tour-chart-axis {
    font-size: 7px;
  }
  .tour-caption small {
    font-size: 7px;
  }
  .tour-caption {
    font-size: 10px;
  }
}
#sample-app-dialog {
  width: min(610px, calc(100% - 32px));
  padding: 0;
  border-radius: 12px;
}
#sample-app-dialog::backdrop {
  background: var(--scrim, #10141180);
}
.sample-browser {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 15px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
  font: 400 9px var(--mono);
  color: var(--muted);
}
.sample-browser-dots {
  display: flex;
  align-items: center;
  gap: 4px;
}
.sample-browser-dots > i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.6;
}
.sample-browser > .icon-btn {
  margin-left: auto;
  font-size: 22px;
  height: 26px;
  width: 26px;
}
.sample-app-content {
  padding: 30px;
}
.sample-app-content h2 {
  font-size: 32px;
  margin: 15px 0 6px;
}
.sample-app-content > p:not(.eyebrow) {
  font-size: 12px;
}
.sample-app-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 27px;
}
.sample-app-list > div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.sample-project-symbol {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
  font-size: 13px;
  font-weight: 600;
  width: 33px;
  height: 33px;
  flex-shrink: 0;
}
.sample-app-list strong {
  font-size: 12px;
  font-weight: 600;
  display: block;
}
.sample-app-list small {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 3px;
}
.sample-app-list .record-pill {
  margin-left: auto;
  font-size: 8px;
}
.sample-app-content > .sample-app-note {
  font-size: 10px !important;
  margin: 20px 0;
  line-height: 1.9;
}
.sample-app-content > .btn {
  font-size: 11px;
}
.tour-open:disabled {
  opacity: 0.5;
  cursor: default;
}
@media (max-width: 600px) {
  .sample-browser {
    font-size: 7px;
    gap: 10px;
  }
  .sample-app-content {
    padding: 23px 18px;
  }
  .sample-app-content h2 {
    font-size: 27px;
  }
  .sample-app-list > div {
    padding: 12px 10px;
    gap: 9px;
    flex-wrap: wrap;
  }
  .sample-app-list strong {
    font-size: 11px;
  }
  .sample-app-list small {
    font-size: 9px;
  }
  .sample-app-list .record-pill {
    font-size: 7px;
  }
  .sample-app-list .sample-project-symbol {
    width: 27px;
    height: 27px;
    font-size: 11px;
  }
}
.tour-mobile-brand .logo-tm {
  color: var(--ttext);
}
.traffic-path {
  stroke: var(--rust);
}
.traffic-chart circle {
  fill: var(--rust);
}
.no-script-note {
  padding-block: 18px;
  font-size: 12px;
}
.no-script-note > a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 600px) {
  .hero h1 {
    font-size: clamp(36px, 10.8vw, 59px);
  }
  .tour-window {
    height: 650px;
  }
}
/* The chapter rail belongs to the product frame. On phones it scrolls
   horizontally, keeping readable labels and playback on the same row. */
.tour-window {
  border-bottom: 0;
  border-radius: 13px 13px 0 0;
  height: 660px;
}
.tour-caption {
  margin-top: 18px;
}
@media (max-width: 800px) {
  .tour-window {
    height: 625px;
  }
}
@media (max-width: 600px) {
  .tour-window {
    height: 670px;
    border-radius: 9px 9px 0 0;
  }
  .tour-caption {
    font-size: 10px;
    margin-top: 15px;
  }
}
@media (max-width: 370px) {
  .tour-window {
    height: 710px;
  }
}
@media (max-width: 1000px) {
  .site-header {
    height: 78px;
    gap: 16px;
  }
  .site-header .logo-lockup {
    --logo-width: 112px;
  }
  .site-header nav {
    display: none;
    position: absolute;
    top: 77px;
    inset-inline: 20px;
    z-index: 20;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 9px;
    box-shadow: 0 10px 30px #0002;
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
  }
  .site-header nav.open {
    display: flex;
  }
  .site-header nav > a {
    padding: 12px;
    min-height: 43px;
  }
  .site-header nav .nav-theme {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 6px;
    padding: 12px;
    border-top: 1px solid var(--line);
    font-size: 11px;
    color: var(--muted);
  }
  .header-actions {
    margin-left: auto;
    gap: 8px;
  }
  .header-actions > .theme,
  .header-actions > .signin {
    display: none;
  }
  .mobile-menu {
    display: inline-flex;
  }
}
@media (max-width: 600px) {
  .site-header {
    gap: 10px;
  }
  .site-header .logo-lockup {
    --logo-width: 104px;
  }
  .header-actions {
    gap: 5px;
  }
}
/* A product journey, rather than player chrome. Five direct chapters keep
   the same hierarchy on a phone and a desktop, without tiny media buttons. */
.tour-window {
  border: 1px solid var(--tframe-edge);
  border-radius: 13px;
  height: 660px;
}
.tour-controls {
  width: 100%;
  max-width: 1000px;
  margin: 27px auto 0;
  padding: 0;
}
.tour-chapters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  min-width: 0;
}
.tour-chapters > button {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 7px 11px;
  min-width: 0;
  padding: 19px 7px 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
  color: var(--muted);
  transition: color 0.2s;
}
.chapter-progress {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  overflow: hidden;
  background: var(--line);
  border-radius: 3px;
}
.chapter-progress > i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}
.chapter-order {
  font: 400 9px/1.5 var(--mono);
  color: var(--muted);
}
.chapter-label {
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--muted);
}
.chapter-hint {
  grid-column: 2;
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted);
}
.tour-chapters > button:hover .chapter-label,
.tour-chapters > button[aria-selected="true"] .chapter-label,
.tour-chapters > button[aria-selected="true"] .chapter-order {
  color: var(--rust);
}
.tour-chapters > button[data-visited="true"] .chapter-progress > i {
  background: var(--muted);
  opacity: 0.5;
}
.tour-chapters > button[aria-selected="true"] .chapter-progress {
  background: color-mix(in srgb, var(--ember) 20%, var(--line));
}
.tour-chapters > button:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 4px;
  border-radius: 3px;
}
.tour-caption {
  margin-top: 19px;
}
@media (max-width: 1100px) {
  .tour-chapters {
    gap: 18px;
  }
  .tour-chapters > button {
    gap: 6px 9px;
    padding-inline: 4px;
  }
  .chapter-label {
    font-size: 12px;
  }
  .chapter-hint {
    font-size: 9px;
  }
}
@media (max-width: 800px) {
  .tour-window {
    height: 625px;
  }
  .tour-controls {
    margin-top: 23px;
  }
  .tour-chapters {
    gap: 14px;
  }
  .tour-chapters > button {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 5px;
    padding: 15px 3px 8px;
  }
  .chapter-order {
    font-size: 8px;
  }
  .chapter-label {
    font-size: 11px;
  }
  .chapter-hint {
    display: none;
  }
}
@media (max-width: 600px) {
  .tour-window {
    height: 670px;
    border-radius: 9px;
  }
  .tour-controls {
    margin-top: 20px;
  }
  .tour-chapters {
    gap: 9px;
  }
  .tour-chapters > button {
    min-height: 62px;
    padding: 13px 0 7px;
    gap: 4px;
  }
  .chapter-order {
    font-size: 8px;
  }
  .chapter-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: -0.02em;
  }
  .tour-caption {
    margin-top: 15px;
  }
}
@media (max-width: 370px) {
  .tour-window {
    height: 710px;
  }
  .tour-chapters {
    gap: 7px;
  }
  .chapter-label {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tour-chapters > button {
    transition: none;
  }
  .chapter-progress > i {
    will-change: auto;
  }
}
@media (max-width: 600px) {
  .chapter-label {
    font-size: 11px;
  }
}
@media (max-width: 370px) {
  .chapter-label {
    font-size: 10px;
  }
}

/* The brand activation is the first scene of the product, in the same frame. */
.hero {
  padding-top: 40px;
  padding-bottom: 24px;
}
.hero h1 {
  margin-block: 20px;
}
.hero-actions {
  margin-top: 22px;
}
.tour-intro {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  text-align: center;
  opacity: calc(1 - var(--opening-art-out, 0));
  pointer-events: none;
}
.tour-window[data-intro="true"] > :not(.tour-intro, .demo-guide) {
  opacity: var(--opening-out, 0);
}
.tour-window[data-intro="true"] .tour-main {
  transform: translateY(calc((1 - var(--opening-out, 0)) * 12px));
}
.tour-intro-copy {
  position: absolute;
  z-index: 1;
  top: 34px;
  inset-inline: 20px;
}
.tour-intro-eyebrow {
  font: 500 9px/1.8 var(--mono);
  letter-spacing: 0.13em;
  color: var(--muted);
}
.tour-intro h2 {
  margin: 12px 0 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.tour-intro h2 span {
  color: var(--rust);
}
.tour-intro-canvas {
  position: absolute;
  top: 80px;
  left: 50%;
  width: min(100%, 870px);
  aspect-ratio: 3 / 2;
  transform: translateX(-50%);
  mask-image:
    linear-gradient(to right, transparent, #000 9%, #000 91%, transparent),
    linear-gradient(to bottom, transparent, #000 18%, #000 88%, transparent);
  mask-composite: intersect;
  will-change: transform;
}
.tour-intro-canvas > picture,
.tour-intro-canvas img,
.tour-intro-canvas > svg {
  display: block;
  width: 100%;
  height: 100%;
}
.tour-intro img {
  object-fit: contain;
}
.tour-intro-canvas > svg {
  position: absolute;
  inset: 0;
}
.tour-intro-resources svg {
  flex: none;
  width: 14px;
  height: 14px;
}
.tour-intro-resource {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.tour-app-mark path:first-child {
  fill: var(--rust);
}
.tour-intro-resources {
  position: absolute;
  bottom: 29px;
  inset-inline: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--muted);
  font: 500 10px/1.8 var(--mono);
}
.tour-intro-resources i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--rust);
}
.tour-current,
.tour-signal {
  stroke: var(--rust);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 9 105;
  stroke-dashoffset: 10;
  opacity: 0;
}
.tour-signal {
  stroke: var(--rust);
  stroke-width: 2;
  stroke-dasharray: 5 110;
  opacity: 0.8;
}
@media (max-width: 600px) {
  .hero {
    padding-top: 28px;
    padding-bottom: 18px;
  }
  .tour-intro-copy {
    top: 45px;
  }
  .tour-intro-eyebrow {
    font-size: 8px;
  }
  .tour-intro h2 {
    font-size: 31px;
    margin-top: 16px;
  }
  .tour-intro-canvas {
    top: 200px;
    width: 120%;
    mask-image:
      linear-gradient(
        to right,
        transparent 9%,
        #000 18%,
        #000 82%,
        transparent 91%
      ),
      linear-gradient(to bottom, transparent, #000 18%, #000 88%, transparent);
  }
  .tour-intro-resources {
    bottom: 60px;
    gap: 8px;
    font-size: 8px;
  }
  .tour-intro-resource {
    gap: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tour-intro {
    display: none;
    transition: none;
  }
  .tour-intro-canvas,
  .tour-current,
  .tour-signal {
    animation: none !important;
  }
}

.tour-window[data-intro="true"] {
  border-color: var(--tour-intro-edge);
  box-shadow: var(--tour-intro-shadow);
  background: var(--bg);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"])
    .tour-section:has(.tour-window[data-intro="true"])
    .tour-aura {
    opacity: 1;
  }
  :root:not([data-theme="light"]) .tour-window {
    --tour-frame-shadow: 0 22px 70px -30px #161a215c, 0 0 0 6px #f9731604;
    --tour-intro-edge: var(--line);
    --tour-intro-shadow: var(--tour-frame-shadow);
  }
}
:root[data-theme="dark"] .tour-window {
  --tour-frame-shadow: 0 22px 70px -30px #161a215c, 0 0 0 6px #f9731604;
  --tour-intro-edge: var(--line);
  --tour-intro-shadow: var(--tour-frame-shadow);
}

.tour-circuit-bed {
  stroke: var(--bg);
  stroke-opacity: 0.72;
  stroke-width: 11;
  stroke-linejoin: round;
}
.tour-core-shade {
  fill: #0f1218;
  fill-opacity: 0.42;
}
.tour-core-light {
  transform-box: fill-box;
  transform-origin: center bottom;
  transform: scaleY(0.12);
  opacity: 0.25;
}
@media (prefers-reduced-motion: reduce) {
  .tour-core-light {
    animation: none !important;
  }
}

/* Detailed sample journey. The native icon sprite matches the console's Phosphor set. */
.demo-icon {
  fill: currentColor;
  stroke: none;
  flex: none;
}
.demo-scene [hidden],
.demo-footer [hidden] {
  display: none !important;
}
.chapter-label {
  display: flex;
  align-items: center;
  gap: 7px;
}
.chapter-label .demo-icon {
  width: 14px;
  height: 14px;
}
.demo-scene .tour-scene-heading {
  margin-bottom: 13px;
}
.demo-scene .tour-scene-heading h2 {
  font-size: 18px;
}
.demo-scene .tour-scene-heading p {
  font-size: 10px;
}
.demo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 31px;
  padding: 7px 9px;
  border: 1px solid var(--tl);
  border-radius: 5px;
  background: var(--ts);
  color: var(--ti);
  font-size: 10px;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.demo-button:hover {
  border-color: var(--tstrong);
  background: var(--tsoft);
}
.demo-button:focus-visible,
.demo-repo:focus-visible,
.demo-request-row:focus-visible,
.demo-field input:focus-visible,
.demo-add-form input:focus-visible,
.demo-permission input:focus-visible,
.demo-log-group summary:focus-visible {
  outline: 2px solid var(--torange);
  outline-offset: 3px;
}
.demo-button.primary {
  background: var(--tprimary);
  color: var(--tprimary-ink);
  border-color: var(--tprimary);
  font-weight: 650;
}
.demo-button.primary:hover {
  background: var(--tprimary-hover);
  border-color: var(--tprimary-hover);
}
.demo-button .icon {
  width: 13px;
  height: 13px;
}
.demo-button:disabled {
  opacity: 0.5;
  cursor: default;
}
.demo-steps {
  display: flex;
  gap: 5px;
  padding: 0;
  margin: 0;
}
.demo-steps .demo-button {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  justify-content: start;
  flex: 1;
  min-width: 0;
  padding: 9px 7px;
  text-align: left;
  border-color: transparent;
  border-radius: 6px;
  background: transparent;
}
.demo-steps .demo-button:hover {
  background: var(--ts);
  border-color: var(--tl);
}
.demo-steps .demo-button[aria-pressed="true"] {
  background: var(--ts);
  border-color: var(--tstrong);
}
.demo-step-number {
  display: grid;
  place-items: center;
  color: var(--tm);
  border: 1px solid var(--tl);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font: 500 7px/1 var(--mono);
}
.demo-steps [aria-pressed="true"] .demo-step-number {
  color: var(--torange);
  border-color: var(--taccent-edge);
  background: var(--taccent-bg);
}
.demo-steps [data-done="true"] .demo-step-number {
  color: var(--tk);
  border-color: var(--tkl);
}
.demo-steps strong {
  display: block;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.7;
}
.demo-steps small {
  display: block;
  font-size: 8px;
  line-height: 1.5;
  color: var(--tm);
  margin-top: 2px;
}
.demo-card,
.demo-workspace,
.demo-mini-browser {
  border: 1px solid var(--tl);
  border-radius: 8px;
  background: var(--ts);
  overflow: hidden;
}
.demo-card-title {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 15px;
  min-height: 48px;
  border-bottom: 1px solid var(--tl);
}
.demo-card-title > .icon {
  width: 19px;
  height: 19px;
  color: var(--tm);
}
.demo-card-title strong,
.demo-card-title h3 {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}
.demo-card-title small {
  display: block;
  font-size: 9px;
  color: var(--tm);
  line-height: 1.7;
  margin-top: 3px;
}
.demo-card-title .demo-tag {
  margin-left: auto;
}
.demo-tag {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 3px 6px;
  border: 1px solid var(--tl);
  border-radius: 4px;
  background: var(--tg);
  color: var(--tm);
  font-size: 8px;
  line-height: 1.5;
}
.demo-tag.success {
  color: var(--tk);
  border-color: var(--tkl);
  background: var(--tkg);
}
.demo-config {
  margin: 0;
  padding: 4px 15px;
  font-size: 10px;
}
.demo-config > div {
  display: grid;
  grid-template-columns: 135px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--tl);
}
.demo-config > div:last-child {
  border-bottom: 0;
}
.demo-config dt {
  color: var(--tm);
}
.demo-config dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
.demo-config code {
  font: 400 9px/1.6 var(--mono);
}
.demo-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 9px;
  padding: 11px 14px;
  border-top: 1px solid var(--tl);
}
.demo-footer > span {
  font-size: 9px;
  line-height: 1.7;
  color: var(--tm);
  flex: 1 1 140px;
}
.demo-footer > div {
  display: flex;
  gap: 7px;
}
.demo-source {
  max-width: 460px;
  margin: 18px auto;
  padding: 8px;
  border: 1px solid var(--tl);
  border-radius: 9px;
  background: var(--ts);
}
.demo-source-search {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--tstrong);
  border-radius: 5px;
  font: 400 10px/1.5 var(--mono);
  background: var(--tg);
}
.demo-source-search .icon {
  width: 14px;
  height: 14px;
  color: var(--tm);
}
.demo-source-search small {
  font: 400 8px/1.5 var(--sans);
  color: var(--tm);
  margin-left: auto;
}
.demo-repo {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding: 17px 12px;
  border-radius: 5px;
  border: 1px solid var(--tstrong);
  background: var(--tsoft);
  color: var(--ti);
  text-align: left;
  cursor: pointer;
}
.demo-repo > .icon:first-child {
  width: 25px;
  height: 25px;
}
.demo-repo > .icon:last-child {
  margin-left: auto;
  width: 13px;
  height: 13px;
  color: var(--torange);
}
.demo-repo strong {
  font-size: 12px;
}
.demo-repo small {
  display: block;
  font-size: 9px;
  margin-top: 6px;
  color: var(--tm);
}
.demo-provenance {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 15px;
  font-size: 9px;
  color: var(--tm);
}
.demo-provenance .icon {
  width: 12px;
  height: 12px;
}
.demo-provenance code {
  font-size: 9px;
  margin-left: 6px;
}
.demo-provenance > span:last-child {
  margin-left: auto;
}
.demo-release-icon {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 7px;
  background: var(--tkg);
  color: var(--tk);
  flex: none;
}
.demo-release-icon .icon {
  width: 18px;
  height: 18px;
}
.demo-release-icon.is-building {
  color: var(--torange);
  background: var(--taccent-bg);
}

.demo-log-group {
  border-top: 1px solid var(--tl);
}
.demo-log-group summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 10px;
  min-height: 34px;
}
.demo-log-group summary::-webkit-details-marker {
  display: none;
}
.demo-log-group summary > .icon {
  width: 12px;
  height: 12px;
  transform: rotate(-90deg);
  transition: transform 0.2s;
}
.demo-log-group[open] summary > .icon {
  transform: none;
}
.demo-log-group summary > span {
  margin-left: auto;
  font-size: 8px;
  color: var(--tm);
}
.demo-log-stream {
  height: 126px;
  overflow: auto;
  padding: 10px 14px;
  background: var(--tg);
  font: 400 9px/1.9 var(--mono);
  color: var(--ttext);
  scrollbar-width: thin;
}
.demo-log-stream > span {
  display: flex;
  gap: 11px;
  align-items: baseline;
  animation: log-enter 0.2s ease both;
}
.demo-log-stream i {
  font-style: normal;
  color: var(--tm);
  font-size: 8px;
  flex: none;
}
.demo-log-success {
  color: var(--tk);
}
.demo-workspace {
  display: grid;
  grid-template-columns: 115px minmax(0, 1fr);
}
.demo-db-sidebar {
  padding: 14px 9px;
  background: var(--tg);
  border-right: 1px solid var(--tl);
  display: flex;
  flex-direction: column;
  font-size: 10px;
  min-width: 0;
  gap: 10px;
}
.demo-db-sidebar > strong {
  font-size: 10px;
  font-weight: 600;
}
.demo-db-sidebar > small {
  color: var(--tm);
  font-size: 8px;
}
.demo-db-sidebar > span {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 5px;
  min-width: 0;
}
.demo-db-sidebar .selected {
  border-radius: 4px;
  background: var(--tsoft);
  border-left: 2px solid var(--torange);
}
.demo-db-sidebar .selected > span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.demo-db-sidebar .icon {
  width: 13px;
  height: 13px;
}
.demo-db-sidebar .demo-db-hint {
  padding: 4px;
  font-size: 8px;
  color: var(--tm);
  line-height: 1.6;
  margin-top: auto;
}
.demo-db-content {
  min-width: 0;
}
.demo-db-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border-bottom: 1px solid var(--tl);
  font-size: 10px;
}
.demo-field {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  font-size: 10px;
}
.demo-field label {
  flex: none;
  color: var(--tm);
}
.demo-field input,
.demo-add-form input {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--tstrong);
  border-radius: 4px;
  background: var(--tg);
  color: var(--ti);
  padding: 7px 9px;
  font-size: 11px;
  outline-offset: 2px;
}
.demo-column,
.demo-column-head {
  display: grid;
  grid-template-columns: 1fr 0.65fr 1.1fr;
  gap: 9px;
  margin-inline: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--tl);
  font-size: 10px;
}
.demo-column-head {
  font-size: 8px;
  color: var(--tm);
  padding-top: 3px;
}
.demo-column code {
  font-size: 9px;
  color: var(--ttext);
}
.demo-column > span:last-child {
  color: var(--tm);
  font-size: 9px;
}
.demo-column:last-of-type {
  border-bottom: 0;
}
.demo-table-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  font-size: 11px;
}
.demo-table-toolbar .demo-button {
  margin-left: auto;
}
.demo-record-scroll {
  max-height: 130px;
  min-height: 90px;
  overflow: auto;
  scrollbar-width: thin;
}
.demo-records {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
  white-space: nowrap;
}
.demo-records th,
.demo-records td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--tl);
}
.demo-records th {
  font-weight: 500;
  color: var(--tm);
  background: var(--tg);
  position: sticky;
  top: 0;
}
.demo-records th small {
  font: 400 8px var(--mono);
  padding-left: 4px;
}
.demo-records td:nth-child(2) {
  white-space: normal;
  min-width: 90px;
  overflow-wrap: anywhere;
}
.demo-add-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  padding: 10px 12px;
  border-top: 1px solid var(--tl);
}
.demo-add-form > label {
  font-size: 9px;
  color: var(--tm);
}
.demo-add-form input {
  flex: 1 1 120px;
  width: auto;
}
.demo-access-header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border-bottom: 1px solid var(--tl);
}
.demo-access-header > .icon {
  width: 18px;
  height: 18px;
  color: var(--tm);
}
.demo-access-header strong {
  font-size: 11px;
}
.demo-access-header small {
  display: block;
  font-size: 9px;
  color: var(--tm);
  line-height: 1.6;
}
.demo-access-header .demo-tag {
  margin-left: auto;
}
.demo-permission {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--tl);
  cursor: pointer;
}
.demo-permission strong {
  font-size: 10px;
  font-weight: 550;
}
.demo-permission small {
  display: block;
  font-size: 8px;
  line-height: 1.6;
  color: var(--tm);
}
.demo-permission input {
  accent-color: var(--torange);
  width: 17px;
  height: 17px;
  margin-left: auto;
  flex: none;
  cursor: pointer;
}
.demo-review {
  min-height: 174px;
  padding: 17px 14px;
}
.demo-review h3 {
  font-size: 13px;
  margin: 8px 0 11px;
  overflow-wrap: anywhere;
}
.demo-review p {
  font-size: 10px;
  line-height: 1.8;
  max-width: 470px;
}
.demo-muted {
  color: var(--tm);
  margin-top: 12px;
}
.demo-kicker {
  font: 500 8px/1.7 var(--mono);
  letter-spacing: 0.08em;
  color: var(--tm);
}
.demo-request-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--tl);
  font-size: 10px;
}
.demo-request-bar > strong {
  color: var(--tk);
  font: 600 9px var(--mono);
}
.demo-request-bar > code {
  font-size: 9px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.demo-request-bar .demo-button {
  margin-left: auto;
  flex: none;
}
.demo-response,
.demo-code {
  margin: 0;
  padding: 12px 14px;
  background: var(--tg);
  color: var(--ttext);
  font: 400 10px/1.8 var(--mono);
  overflow: auto;
  max-height: 174px;
  scrollbar-width: thin;
  white-space: pre;
}
.demo-response {
  min-height: 125px;
}
.demo-response.compact {
  max-height: 110px;
  min-height: 65px;
}
.demo-code {
  padding-block: 20px;
}
.demo-variable-note {
  color: var(--tm);
  padding: 4px 15px 13px;
  font-size: 10px;
  line-height: 1.8;
}
.demo-change {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--tl);
}
.demo-change .icon {
  width: 16px;
  height: 16px;
  color: var(--tm);
}
.demo-change strong {
  font-size: 11px;
  font-weight: 550;
}
.demo-change small {
  display: block;
  color: var(--tm);
  font-size: 9px;
  margin-top: 4px;
}
.demo-mini-address {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--tl);
  background: var(--tg);
  font: 400 9px/1.5 var(--mono);
}
.demo-mini-address > .icon {
  width: 14px;
  height: 14px;
  color: var(--tk);
}
.demo-mini-address .demo-tag {
  margin-left: auto;
}
.demo-served-app {
  padding: 15px;
}
.demo-served-app h3 {
  font-size: 22px;
  letter-spacing: -0.03em;
  margin: 5px 0;
}
.demo-served-app > p {
  font-size: 10px;
  color: var(--tm);
}
.demo-app-records {
  display: grid;
  gap: 6px;
  margin-top: 13px;
  max-height: 144px;
  overflow: auto;
  scrollbar-width: thin;
}
.demo-app-records > div {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--tl);
  border-radius: 5px;
  background: var(--tg);
}
.demo-app-symbol {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--tkg);
  color: var(--tk);
  font-size: 9px;
  flex: none;
}
.demo-app-records strong {
  font-size: 10px;
  font-weight: 550;
  min-width: 0;
  overflow-wrap: anywhere;
}
.demo-app-records small {
  margin-left: auto;
  font-size: 8px;
  color: var(--tm);
  flex: none;
}
.demo-app-empty {
  font-size: 11px;
  line-height: 1.8;
  color: var(--tm);
  padding-block: 12px;
}
#sample-app-dialog .demo-app-records {
  max-height: 350px;
}
#sample-app-dialog .demo-app-records > div {
  background: var(--panel);
  border-color: var(--line);
}
#sample-app-dialog .demo-app-records strong {
  color: var(--ink);
  font-size: 14px;
}
#sample-app-dialog .demo-app-records small,
#sample-app-dialog .demo-app-empty {
  color: var(--muted);
}
#sample-app-dialog .demo-app-records small {
  font-size: 11px;
}
.demo-monitor-next {
  margin-top: 12px;
}
.demo-request-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 17px 14px;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--tl);
  color: var(--ti);
  background: transparent;
  font-size: 10px;
}
button.demo-request-row {
  cursor: pointer;
}
button.demo-request-row:hover {
  background: var(--tsoft);
}
.demo-request-row strong {
  font-size: 11px;
  font-weight: 550;
  overflow-wrap: anywhere;
}
.demo-request-row small {
  display: block;
  color: var(--tm);
  font-size: 9px;
  margin-top: 5px;
}
.demo-request-row > span:nth-last-child(2) {
  margin-left: auto;
  white-space: nowrap;
  color: var(--tm);
}
.demo-request-row > .icon {
  width: 12px;
  height: 12px;
}
.demo-http {
  color: var(--tk);
  border: 1px solid var(--tkl);
  border-radius: 4px;
  padding: 3px 5px;
  font: 400 8px var(--mono);
}
@media (max-width: 1100px) {
  .demo-steps .demo-button {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 7px 6px;
  }
  .demo-steps small {
    display: none;
  }
}
@media (max-width: 600px) {
  .demo-scene .tour-scene-heading h2 {
    font-size: 18px;
  }
  .demo-scene .tour-scene-heading p {
    font-size: 10px;
    line-height: 1.7;
  }
  .demo-scene .tour-scene-heading {
    margin-bottom: 11px;
  }
  .demo-steps {
    gap: 3px;
  }
  .demo-steps .demo-button {
    gap: 3px;
    padding: 6px 3px;
    justify-items: center;
    text-align: center;
  }
  .demo-steps strong {
    font-size: 10px;
  }
  .demo-step-number {
    font-size: 7px;
    width: 16px;
    height: 16px;
  }
  .demo-card-title {
    padding: 11px 12px;
    min-height: 49px;
    gap: 7px;
  }
  .demo-card-title strong,
  .demo-card-title h3 {
    font-size: 11px;
  }
  .demo-card-title small {
    font-size: 8px;
  }
  .demo-card-title .demo-tag {
    font-size: 7px;
    padding: 3px 4px;
  }
  .demo-config {
    padding-inline: 12px;
  }
  .demo-config > div {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 7px;
    padding-block: 10px;
  }
  .demo-footer {
    padding: 10px 12px;
    gap: 8px;
  }
  .demo-footer > span {
    font-size: 9px;
    flex-basis: 100%;
  }
  .demo-footer > .demo-button,
  .demo-footer > div {
    margin-left: auto;
  }
  .demo-source {
    margin-top: 8px;
  }
  .demo-source-search {
    font-size: 9px;
    gap: 6px;
    padding: 10px 8px;
  }
  .demo-repo {
    padding: 15px 9px;
    gap: 9px;
  }
  .demo-repo strong {
    font-size: 11px;
  }
  .demo-provenance {
    font-size: 8px;
    gap: 5px;
    padding-inline: 12px;
    flex-wrap: wrap;
  }
  .demo-provenance code {
    font-size: 8px;
  }
  .demo-provenance > span:last-child {
    display: none;
  }
  .demo-log-stream {
    font-size: 9px;
    height: 111px;
    padding-inline: 12px;
  }
  .demo-log-stream > span {
    gap: 7px;
  }
  .demo-workspace {
    grid-template-columns: 1fr;
  }
  .demo-db-sidebar {
    display: none;
  }
  .demo-db-tabs {
    font-size: 10px;
    padding: 9px 12px;
  }
  .demo-records th,
  .demo-records td {
    font-size: 10px;
    padding: 8px 10px;
  }
  .demo-records th small {
    display: none;
  }
  .demo-column,
  .demo-column-head {
    font-size: 10px;
    grid-template-columns: 0.8fr 0.6fr 1.2fr;
    gap: 6px;
    margin-inline: 12px;
    padding-block: 9px;
  }
  .demo-field {
    padding: 10px 12px;
    font-size: 10px;
  }
  .demo-permission {
    padding: 7px 12px;
  }
  .demo-permission small {
    font-size: 8px;
  }
  .demo-access-header {
    padding: 9px 12px;
  }
  .demo-access-header strong {
    font-size: 10px;
  }
  .demo-access-header small {
    font-size: 8px;
  }
  .demo-request-bar {
    gap: 7px;
    padding-inline: 10px;
  }
  .demo-request-bar > code {
    font-size: 8px;
  }
  .demo-request-bar .demo-button {
    font-size: 9px;
    padding: 6px;
  }
  .demo-response,
  .demo-code {
    font-size: 9px;
    max-height: 140px;
    padding: 11px 12px;
  }
  .demo-response {
    min-height: 100px;
  }
  .demo-review {
    min-height: 166px;
    padding: 13px 12px;
  }
  .demo-served-app {
    padding: 12px;
  }
  .demo-app-records {
    max-height: 125px;
    gap: 5px;
  }
  .demo-app-records > div {
    padding: 7px;
    gap: 6px;
  }
  .demo-app-records strong {
    font-size: 10px;
  }
  .demo-app-records small {
    font-size: 7px;
  }
  .demo-mini-address {
    padding: 10px 12px;
    font-size: 8px;
  }
  .demo-request-row {
    padding: 13px 11px;
    gap: 7px;
  }
  .demo-request-row strong {
    font-size: 10px;
  }
  .demo-request-row small {
    font-size: 8px;
  }
  .chapter-label {
    gap: 4px;
  }
  .chapter-label .demo-icon {
    width: 12px;
    height: 12px;
  }
}
@media (max-width: 370px) {
  .demo-button {
    font-size: 9px;
    padding: 6px 7px;
  }
  .demo-steps strong {
    font-size: 9px;
  }
  .demo-card-title .demo-tag {
    max-width: 80px;
    white-space: normal;
  }
  .demo-card-title > .demo-release-icon {
    display: none;
  }
  .demo-request-bar > code {
    font-size: 7px;
  }
  .chapter-label {
    gap: 3px;
    font-size: 10px;
  }
  .chapter-label .demo-icon {
    width: 10px;
    height: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .demo-button,
  .demo-log-group summary > .icon {
    transition: none;
  }
  .demo-release-icon .icon,
  .demo-log-stream > span {
    animation: none !important;
  }
}

/* Explicitly expanded logs and record forms remain reachable inside the console. */
.tour-main {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--tstrong) transparent;
}
.demo-code {
  max-height: 190px;
}
@media (max-width: 600px) {
  .demo-code {
    max-height: 166px;
  }
}

.tour-window .demo-review p {
  color: var(--ti);
}
.tour-window .demo-review p.demo-muted {
  color: var(--tm);
}

.demo-scene .tour-chart {
  height: 132px;
}
@media (max-width: 600px) {
  .demo-scene .tour-metrics {
    margin-block: 10px;
  }
  .demo-scene .tour-metrics > span {
    padding-block: 10px;
  }
  .demo-scene .tour-metrics strong {
    font-size: 19px;
  }
  .demo-scene .tour-chart {
    height: 110px;
  }
}

@media (max-width: 600px) {
  .demo-field input,
  .demo-add-form input {
    font-size: 16px;
  }
}
/* Keep the overview compact across the shorter tablet console frame. */
#tour-observe .tour-metrics {
  margin-block: 10px;
  gap: 7px;
}
#tour-observe .tour-metrics > span {
  padding: 10px;
  font-size: 9px;
}
#tour-observe .tour-metrics strong {
  font-size: 22px;
  margin-block: 6px 4px;
}
#tour-observe .tour-metrics > span > small {
  font-size: 8px;
  line-height: 1.5;
}
#tour-observe .tour-chart {
  height: 110px;
  margin-top: 12px;
}
@media (max-width: 600px) {
  #tour-observe .tour-metrics > span {
    padding: 9px 7px;
    font-size: 8px;
  }
  #tour-observe .tour-metrics strong {
    font-size: 19px;
  }
  #tour-observe .tour-metrics > span > small {
    font-size: 7px;
  }
}
@media (min-width: 601px) and (max-width: 1100px) {
  .tour-main {
    padding: 16px 18px;
  }
  .tour-project-heading {
    margin-bottom: 18px;
  }
  .demo-scene .tour-scene-heading {
    margin-bottom: 10px;
  }
  .demo-log-stream {
    height: 110px;
  }
  .demo-permission {
    padding-block: 6px;
  }
  .demo-permission strong {
    display: block;
    line-height: 1.4;
  }
  .demo-permission small {
    line-height: 1.5;
  }
}
/* Responses scroll within their pane, keeping request controls and next actions visible. */
.demo-response {
  max-height: 130px;
  min-height: 100px;
}
.demo-request-bar > code {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --demo-info: #8fbaff;
  }
}
:root[data-theme="dark"] {
  --demo-info: #8fbaff;
}

/* A single director owns the opening and walkthrough; motion never resets on a
   status render. The guide is decorative and cannot intercept real input. */
.demo-guide {
  position: absolute;
  z-index: 8;
  top: 0;
  left: 0;
  width: 20px;
  height: 24px;
  pointer-events: none;
  opacity: 0;
  transition:
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 180ms ease;
  will-change: transform;
}
.demo-guide svg {
  display: block;
  width: 20px;
  height: 24px;
  fill: var(--ti);
  stroke: var(--ts);
  stroke-width: 1.5;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 2px #0003);
}
.demo-guide i {
  position: absolute;
  top: -12px;
  left: -12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--torange);
  background: var(--taccent-bg);
  opacity: 0;
  transform: scale(0.5);
}
.tour-window[data-playing="true"][data-intro="false"]
  .demo-guide[data-visible="true"] {
  opacity: 1;
}
.demo-guide[data-click="true"] i {
  animation: demo-click 580ms ease-out both;
}
.demo-guided {
  transition:
    box-shadow 240ms ease,
    border-color 240ms ease;
}
.tour-window[data-playing="true"][data-intro="false"] .demo-guided {
  box-shadow: 0 0 0 2px var(--taccent-edge);
}
@keyframes demo-click {
  0% {
    opacity: 0.65;
    transform: scale(0.45);
  }
  100% {
    opacity: 0;
    transform: scale(1.45);
  }
}
.demo-records tbody tr {
  animation: demo-row-in 280ms ease-out both;
}
@keyframes demo-row-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media (max-width: 600px) {
  .demo-guide {
    width: 16px;
    height: 20px;
  }
  .demo-guide svg {
    width: 16px;
    height: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .demo-guide {
    display: none;
  }
  .demo-records tbody tr {
    animation: none;
  }
}

#demo-app-code {
  height: 190px;
}
@media (max-width: 600px) {
  #demo-app-code {
    height: 166px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .demo-app-records > div {
    animation: demo-row-in 360ms ease both;
  }
  .demo-app-records > div:nth-child(2) {
    animation-delay: 80ms;
  }
  .demo-app-records > div:nth-child(3) {
    animation-delay: 160ms;
  }
}

.tour-window[data-autoplay="false"]
  :is(
    .demo-records tbody tr,
    .demo-log-stream > span,
    .demo-app-records > div,
    .tour-chart-line
  ) {
  animation: none;
}

/* Playback and the chapter timeline share one quiet, persistent tour header. */
.tour-section:focus {
  outline: none;
}
.tour-session {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 10px;
  margin-bottom: 0;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 4px 14px -10px #0003;
}
.tour-session > .tour-aura {
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    ellipse at var(--chapter-position, 10%) 0%,
    #f9731626,
    transparent 65%
  );
  filter: none;
}
.tour-session .tour-controls {
  grid-column: 2;
  grid-row: 1 / 3;
  width: 100%;
  max-width: none;
  margin: 0;
}
.tour-session .tour-chapters {
  gap: 0;
}
.tour-session .tour-chapters > button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 28px;
  padding: 3px 3px 6px;
  border-radius: 5px 5px 0 0;
  text-align: center;
}
.tour-session .chapter-progress {
  inset: auto 0 0;
  height: 1px;
  border-radius: 0;
}
.tour-session .chapter-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 500;
}
.tour-session .chapter-label .icon {
  width: 13px;
  height: 13px;
}
.tour-session .chapter-order,
.tour-session .chapter-hint {
  display: none;
}
.tour-session .tour-chapters > button:hover {
  background: color-mix(in srgb, var(--ink) 3%, transparent);
}
.tour-session .tour-chapters > button[aria-selected="true"] .chapter-label {
  font-weight: 650;
}
.tour-session .tour-chapters > button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -3px;
}
.tour-session-mark {
  grid-column: 1;
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 5px;
  border: 1px solid color-mix(in srgb, var(--rust) 18%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--rust) 4%, var(--panel));
  color: var(--rust);
  transition:
    background 160ms ease,
    border-color 160ms ease;
}
.tour-session-mark:hover {
  background: color-mix(in srgb, var(--rust) 8%, var(--panel));
  border-color: color-mix(in srgb, var(--rust) 35%, var(--line));
}
.tour-session-mark:active {
  transform: translateY(1px);
}
.tour-session-mark svg {
  width: 16px;
  height: 16px;
}
.tour-session-play {
  fill: currentColor;
}
.tour-session-pause,
.tour-session-replay {
  display: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tour-session[data-action="pause"] .tour-session-play,
.tour-session[data-action="replay"] .tour-session-play {
  display: none;
}
.tour-session[data-action="pause"] .tour-session-pause,
.tour-session[data-action="replay"] .tour-session-replay {
  display: block;
}
.tour-session-copy {
  display: contents;
}
#tour-session-note {
  grid-column: 1 / -1;
  grid-row: 3;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  padding: 4px 0;
}
.tour-session-position {
  display: none;
}
.tour-session-action {
  grid-column: 3;
  justify-self: end;
  grid-row: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 28px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  font-size: 10px;
  font-weight: 550;
  line-height: 1.4;
  color: var(--ink);
}
.tour-session-action:hover {
  background: var(--soft);
}
.tour-session[data-action="replay"] .tour-session-action {
  color: var(--rust);
  border-color: color-mix(in srgb, var(--rust) 18%, var(--line));
  background: color-mix(in srgb, var(--rust) 4%, var(--panel));
}
.tour-session[data-action="replay"] .tour-session-action:hover {
  border-color: color-mix(in srgb, var(--rust) 35%, var(--line));
  background: color-mix(in srgb, var(--rust) 8%, var(--panel));
}
.tour-session-action .icon {
  width: 12px;
  height: 12px;
}
.tour-session-mark:focus-visible,
.tour-session-action:focus-visible,
.tour-step-controls .demo-button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.tour-window {
  scroll-margin-top: 16px;
}
.tour-session:not([hidden]) + .tour-window {
  border-radius: 0 0 13px 13px;
}
.tour-step-slot {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-height: 24px;
}
.tour-step-slot[data-intro="true"] {
  visibility: hidden;
  pointer-events: none;
}
.tour-step-picker {
  grid-column: var(--active-chapter, 1);
  justify-self: center;
  min-width: 0;
}
.tour-step-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 24px;
  padding: 3px 5px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
  white-space: nowrap;
  transition:
    color 150ms ease,
    background 150ms ease;
}
.tour-step-trigger .icon {
  width: 11px;
  height: 11px;
  transition: transform 150ms ease;
}
.tour-step-trigger:hover,
.tour-step-trigger[aria-expanded="true"] {
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 4%, transparent);
}
.tour-step-trigger[aria-expanded="true"] .icon {
  transform: rotate(180deg);
}
.tour-step-trigger:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}
.tour-step-controls {
  position: fixed;
  inset: auto;
  width: 224px;
  max-width: calc(100vw - 16px);
  margin: 0;
  padding: 5px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  color: var(--ink);
  box-shadow:
    0 10px 35px -10px #0004,
    0 2px 8px #0001;
}
.tour-step-menu-heading {
  margin: 5px 8px 6px;
  color: var(--muted);
  font: 500 9px/1.6 var(--mono);
}
.tour-step-controls .demo-steps {
  display: grid;
  gap: 2px;
  width: 100%;
  margin: 0;
}
.tour-step-controls .demo-button {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 6px 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}
.tour-step-controls .demo-button::before,
.tour-step-controls .demo-button::after,
.tour-step-controls .demo-stage-track {
  display: none;
}
.tour-step-controls .demo-button:hover,
.tour-step-controls .demo-button:focus-visible {
  background: var(--soft);
}
.tour-step-controls .demo-button[aria-pressed="true"] {
  color: var(--rust);
  background: color-mix(in srgb, var(--rust) 6%, var(--panel));
}
.tour-step-controls .demo-step-number {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  font: 500 9px/1 var(--mono);
}
.tour-step-controls [aria-pressed="true"] .demo-step-number {
  color: var(--rust);
  background: transparent;
}
.tour-step-controls .demo-steps strong {
  font-size: 11px;
  font-weight: 550;
  line-height: 1.5;
}
.tour-step-controls .demo-steps small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}
@media (max-width: 800px) {
  .tour-session .tour-controls {
    grid-column: 2 / -1;
  }
  .tour-session-action {
    grid-column: 1 / -1;
    grid-row: 3;
    min-height: 24px;
    padding: 2px 5px;
    border: 0;
    font-size: 9px;
  }
}
@media (max-width: 500px) {
  .tour-session .chapter-label {
    font-size: 10px;
  }
  .tour-session .chapter-label .icon {
    display: none;
  }
  .tour-step-slot[data-chapter-index="0"] .tour-step-picker {
    justify-self: start;
  }
  .tour-step-slot[data-chapter-index="4"] .tour-step-picker {
    justify-self: end;
  }
}
.demo-product-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 13px 0 18px;
}
.demo-product-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  border: 0;
  border-bottom: 2px solid var(--tl);
  background: none;
  color: var(--tm);
  font-size: 10px;
  cursor: pointer;
}
.demo-product-tabs .icon {
  width: 12px;
  height: 12px;
}
.demo-product-tabs button[aria-pressed="true"] {
  color: var(--torange);
  border-color: var(--torange);
  font-weight: 600;
}
.demo-product-tabs button:hover {
  color: var(--ti);
  background: var(--tsoft);
}
.demo-product-tabs button:focus-visible,
.demo-output-tabs button:focus-visible,
.demo-log-entry-meta button:focus-visible,
.demo-db-tabs button:focus-visible {
  outline: 2px solid var(--torange);
  outline-offset: 2px;
}
.tour-status > .icon {
  width: 10px;
  height: 10px;
}
.tour-title-line {
  flex-wrap: wrap;
}
.demo-setup-card {
  max-width: 660px;
  margin: 0 auto;
  padding: 16px 18px 0;
  border: 1px solid var(--tl);
  border-radius: 10px;
  background: var(--ts);
}
.demo-setup-card h3 {
  margin: 10px 0 4px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.demo-setup-card > p {
  margin: 0;
  color: var(--tm);
  font-size: 10px;
  line-height: 1.7;
}
.demo-setup-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--tm);
  font-size: 9px;
}
.demo-setup-breadcrumb .icon {
  width: 13px;
  height: 13px;
}
.demo-setup-breadcrumb > span {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
}
.demo-setup-breadcrumb button {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 0;
  padding: 3px 0;
  color: var(--tm);
  background: none;
  cursor: pointer;
}
.demo-setup-breadcrumb button .icon {
  transform: rotate(180deg);
}
.demo-setup-stages {
  display: flex;
  gap: 19px;
  margin: 12px 0 14px;
  padding: 0 0 13px;
  list-style: none;
  border-bottom: 1px solid var(--tl);
}
.demo-setup-stages li {
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: 9px;
  color: var(--tm);
}
.demo-setup-stages b {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 1px solid var(--tl);
  border-radius: 4px;
  font: 8px var(--mono);
}
.demo-setup-stages [aria-current="step"] {
  color: var(--ti);
  font-weight: 600;
}
.demo-setup-stages [aria-current="step"] b {
  background: var(--taccent-bg);
  border-color: var(--taccent-edge);
  color: var(--torange);
}
.demo-connected {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 9px;
  color: var(--tm);
  margin-bottom: 10px;
}
.demo-connected .icon {
  width: 13px;
  height: 13px;
}
.demo-connected strong {
  color: var(--ti);
  font-weight: 550;
}
.demo-connected small {
  margin-left: auto;
  font-size: 9px;
}
.demo-source-search input {
  border: 0;
  outline: none;
  padding: 0;
  background: none;
  font: 10px var(--sans);
  color: var(--ti);
  width: 100%;
  min-width: 0;
}
.demo-source-search:focus-within {
  outline: 2px solid var(--torange);
  outline-offset: 2px;
}
.demo-source {
  margin-bottom: 16px;
}
.demo-repo-empty {
  text-align: center;
  padding: 15px 8px;
}
.demo-repo-empty strong {
  display: block;
  font-size: 11px;
  margin-bottom: 10px;
}
.demo-selection {
  display: flex;
  gap: 10px;
  align-items: center;
  background: var(--tg);
  border: 1px solid var(--tl);
  border-radius: 6px;
  padding: 11px;
  margin-bottom: 13px;
}
.demo-selection > .icon {
  width: 19px;
  height: 19px;
  flex: none;
}
.demo-selection > span {
  min-width: 0;
  flex: 1;
}
.demo-selection strong,
.demo-selection small {
  display: block;
}
.demo-selection strong {
  font-size: 11px;
}
.demo-selection small {
  font-size: 9px;
  color: var(--tm);
  margin-top: 3px;
}
.demo-selection button {
  font-size: 9px;
  color: var(--tm);
  background: none;
  border: 0;
  cursor: pointer;
}
.demo-config-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--ttext);
  font-size: 10px;
}
.demo-config-field input {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--tl);
  border-radius: 5px;
  color: var(--ti);
  background: var(--tg);
  font: 10px var(--mono);
}
.demo-auto-deploy {
  display: flex;
  align-items: start;
  gap: 8px;
  margin: 13px 0;
  font-size: 10px;
  cursor: pointer;
}
.demo-auto-deploy input {
  accent-color: var(--torange);
  margin: 2px 0 0;
}
.demo-auto-deploy strong,
.demo-auto-deploy small {
  display: block;
}
.demo-auto-deploy strong {
  font-size: 10px;
  font-weight: 550;
}
.demo-auto-deploy small {
  color: var(--tm);
  font-size: 9px;
  line-height: 1.7;
  margin-top: 3px;
}
.demo-setup-advanced {
  border-top: 1px solid var(--tl);
  padding: 11px 0;
  color: var(--tm);
  font-size: 10px;
}
.demo-setup-advanced summary {
  cursor: pointer;
}
.demo-setup-advanced summary > span {
  float: right;
  font-size: 9px;
}
.demo-setup-advanced p {
  font-size: 10px;
  line-height: 1.7;
  margin: 12px 0 0;
}
.demo-setup-card > .demo-footer {
  margin: 0 -18px;
}
.demo-product-stages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 17px 15px;
  border-top: 1px solid var(--tl);
}
.demo-product-stages li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.demo-product-stages li:not(:last-child)::after {
  content: "";
  position: absolute;
  height: 1px;
  top: 10px;
  left: 29px;
  right: 0;
  background: var(--tl);
}
.demo-product-stages [data-state="done"]::after {
  background: var(--tkl);
}
.demo-product-stage-mark {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border: 1px solid var(--tl);
  border-radius: 50%;
  color: var(--tm);
  font: 9px var(--mono);
}
.demo-product-stage-mark .icon {
  width: 11px;
  height: 11px;
}
.demo-product-stages [data-state="done"] .demo-product-stage-mark {
  color: var(--tk);
  border-color: var(--tkl);
  background: var(--tkg);
}
.demo-product-stages [data-state="active"] .demo-product-stage-mark {
  color: var(--tinfo);
  border-color: var(--tinfo-edge);
  background: var(--tinfo-bg);
}
.demo-product-stages strong {
  font-size: 10px;
  font-weight: 550;
  display: block;
}
.demo-product-stages small {
  display: block;
  font-size: 9px;
  line-height: 1.6;
  color: var(--tm);
  margin-top: 3px;
}
.demo-release-icon.is-building .icon,
.tour-status.building > .icon,
.demo-product-stages [data-state="active"] .icon {
  animation: tour-status-spin 1s linear infinite;
}
@keyframes tour-status-spin {
  to {
    transform: rotate(360deg);
  }
}
.demo-output-tabs {
  display: flex;
  border-bottom: 1px solid var(--tl);
  background: var(--tg);
}
.demo-output-tabs button {
  display: flex;
  align-items: center;
  gap: 5px;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 9px 12px;
  background: none;
  color: var(--tm);
  cursor: pointer;
  font-size: 10px;
}
.demo-output-tabs .icon {
  width: 12px;
  height: 12px;
}
.demo-output-tabs [aria-pressed="true"] {
  border-color: var(--torange);
  color: var(--ti);
}
.demo-output-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-bottom: 1px solid var(--tl);
}
.demo-output-tools label {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
}
.demo-output-tools label > .icon {
  width: 12px;
  height: 12px;
  color: var(--tm);
}
.demo-output-tools input {
  width: 100%;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--ti);
  font-size: 10px;
}
.demo-output-tools label:focus-within {
  outline: 2px solid var(--torange);
  outline-offset: 2px;
}
.demo-output-tools .demo-button {
  min-height: 25px;
  padding: 4px;
}
.demo-log-empty {
  padding: 12px;
  color: var(--tm);
  font-size: 10px;
}
.demo-tag.info {
  color: var(--tinfo);
  border-color: var(--tinfo-edge);
  background: var(--tinfo-bg);
}
.demo-db-tabs {
  display: block;
}
.demo-db-tabs > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 10px;
}
.demo-db-tabs > div > small {
  width: 100%;
  font-size: 8px;
  color: var(--tm);
}
.demo-db-tabs > div > strong {
  font-size: 13px;
}
#demo-db-section {
  font-size: 9px;
  color: var(--tm);
}
.demo-db-tabs nav {
  display: flex;
  gap: 2px;
  margin: 10px -13px -10px;
  padding: 0 10px;
}
.demo-db-tabs button {
  font-size: 9px;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 8px 10px;
  background: none;
  color: var(--tm);
  cursor: pointer;
}
.demo-db-tabs [aria-pressed="true"] {
  color: var(--torange);
  border-color: var(--torange);
}
.demo-runtime-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--tm);
  font-size: 9px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--tl);
}
.demo-log-entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 9px;
  color: var(--tm);
  padding: 10px 12px;
  border-bottom: 1px solid var(--tl);
}
.demo-log-entry-meta button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  color: var(--torange);
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 9px;
}
.demo-log-entry-meta .icon {
  width: 12px;
  height: 12px;
}
.demo-request-row time {
  font: 9px var(--mono);
  color: var(--tm);
}
#demo-log-entry {
  height: 130px;
  margin: 0;
}
@media (max-width: 700px) {
  .demo-setup-card {
    padding: 12px 13px 0;
  }
  .demo-setup-card h3 {
    font-size: 17px;
  }
  .demo-setup-stages {
    gap: 13px;
  }
  .demo-setup-card > .demo-footer {
    margin-inline: -13px;
  }
  .demo-product-stages {
    padding: 13px 10px;
    gap: 8px;
  }
  .demo-product-stages strong {
    font-size: 9px;
  }
  .demo-product-stages small {
    font-size: 8px;
  }
  .demo-runtime-toolbar {
    flex-direction: column;
  }
  .demo-request-row time {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .demo-release-icon.is-building .icon,
  .tour-status.building > .icon,
  .demo-product-stages [data-state="active"] .icon {
    animation: none;
  }
}
/* The compact preview keeps the same configuration hierarchy as ProjectSetup. */
.demo-release-icon.is-building {
  color: var(--tinfo);
  background: var(--tinfo-bg);
}
@media (min-width: 900px) {
  .demo-setup-card:has(.demo-config-field) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 18px;
  }
  .demo-setup-card:has(.demo-config-field) .demo-setup-breadcrumb {
    grid-column: 1 / -1;
  }
  .demo-setup-card:has(.demo-config-field) h3 {
    grid-column: 1;
    grid-row: 2;
  }
  .demo-setup-card:has(.demo-config-field) > p {
    grid-column: 1;
    grid-row: 3;
  }
  .demo-setup-card:has(.demo-config-field) .demo-setup-stages {
    grid-column: 2;
    grid-row: 2 / 4;
    align-self: center;
    justify-content: end;
    margin: 0;
    padding: 0;
    border: 0;
    gap: 9px;
  }
  .demo-setup-card:has(.demo-config-field) .demo-selection {
    grid-column: 1 / -1;
    margin-top: 14px;
  }
  .demo-setup-card:has(.demo-config-field) .demo-auto-deploy {
    align-self: center;
    margin: 12px 0 0;
  }
  .demo-setup-card:has(.demo-config-field) .demo-setup-advanced {
    grid-column: 1 / -1;
    margin-top: 14px;
  }
  .demo-setup-card:has(.demo-config-field) .demo-footer {
    grid-column: 1 / -1;
  }
}
.tour-window[data-enhanced="true"] #demo-build-details > summary {
  display: none;
}
#tour-logs {
  height: 100px;
}
#demo-toggle-output {
  margin-left: 2px;
  font-size: 9px;
  background: transparent;
}
.demo-release > .demo-card-title {
  flex-wrap: wrap;
}
.tour-step-controls[data-intro="true"] {
  visibility: hidden;
  pointer-events: none;
}
.tour-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.tour-chart-line {
  stroke: var(--tk);
}
.demo-chart-ranges {
  display: flex;
  align-items: center;
  border: 1px solid var(--tl);
  border-radius: 5px;
  padding: 2px;
  gap: 1px;
}
.demo-chart-ranges button {
  color: var(--tm);
  border: 0;
  padding: 4px 5px;
  border-radius: 3px;
  background: none;
  font-size: 8px;
  cursor: pointer;
}
.demo-chart-ranges [aria-pressed="true"] {
  color: var(--ti);
  background: var(--tsoft);
}
.demo-chart-ranges button:focus-visible,
.tour-chart:focus-visible {
  outline: 2px solid var(--torange);
  outline-offset: 2px;
}
.demo-chart-inspection {
  color: var(--tm);
  font: 9px/1.6 var(--mono);
  padding: 4px 14px;
  margin: 0;
}
@media (max-width: 700px) {
  .tour-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.demo-setup-card {
  max-width: none;
  margin-inline: 0;
}
.tour-status.neutral i {
  background: transparent;
  border: 1px solid var(--tm);
}
.tour-status.building i {
  animation: tour-status-pulse 1.5s ease-in-out infinite;
}
@keyframes tour-status-pulse {
  50% {
    opacity: 0.35;
  }
}
#tour-update-note {
  margin: 4px 0 0;
  color: var(--tm);
  font-size: 9px;
  line-height: 1.6;
}
@media (prefers-reduced-motion: reduce) {
  .tour-status.building i {
    animation: none;
  }
}
button.tour-nav-item {
  width: 100%;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
}
button.tour-nav-item:hover {
  background: var(--tsoft);
}
button.tour-nav-item:focus-visible {
  outline: 2px solid var(--torange);
  outline-offset: -2px;
}
#demo-chart-guide {
  stroke: var(--tm);
  stroke-width: 1px;
  stroke-dasharray: 3 4;
  opacity: 0.5;
}
#demo-chart-point {
  fill: var(--tk);
  stroke: var(--ts);
  stroke-width: 2px;
}
.tour-project-heading > div {
  min-width: 0;
  flex: 1;
}
.tour-project-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tour-window:not([data-enhanced="true"])
  :is(.demo-output-tabs, .demo-output-tools, #demo-toggle-output) {
  display: none;
}
#demo-copy-logs[data-copied="true"],
#demo-copy-entry[data-copied="true"] {
  color: var(--tk);
}
@media (max-width: 600px) {
  #demo-repo-query,
  .demo-config-field input,
  .demo-output-tools input {
    font-size: 16px;
  }
}

.demo-api-controls { display:flex; align-items:center; gap:6px; padding:10px 14px; border-bottom:1px solid var(--tl); }
.demo-api-controls[hidden] { display:none; }
.demo-api-controls [aria-pressed="true"] { color:var(--torange); border-color:var(--torange); background:var(--taccent-bg); }
.demo-settings-dialog { width:min(480px,calc(100vw - 32px)); max-height:calc(100dvh - 48px); overflow:auto; padding:0; border:1px solid var(--tstrong); border-radius:12px; background:var(--ts); color:var(--ti); box-shadow:0 24px 80px #0005; }
.demo-settings-dialog::backdrop { background:#0009; }
.demo-settings-body { display:flex; flex-direction:column; gap:10px; padding:18px; font-size:12px; line-height:1.7; }
.demo-settings-body code { overflow-wrap:anywhere; color:var(--tm); }
.demo-settings-body a { color:var(--torange); }
.demo-db-tabs nav { flex-wrap:wrap; }

#demo-permissions:not([hidden]) { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
#demo-permissions .demo-permission { min-width:0; }
#demo-permissions .demo-permission:nth-child(2n) { border-left:1px solid var(--tl); }
@media(max-width:600px) { #demo-permissions:not([hidden]) { grid-template-columns:1fr; } #demo-permissions .demo-permission:nth-child(2n) { border-left:0; } }
/* Match dashboard ProjectSwitcher trigger and popup metrics; sample data stays local. */
.tour-project { width:100%; height:46px; gap:10px; padding:0 8px 0 10px; border:1px solid var(--tl); border-radius:9px; color:var(--ti); text-align:left; cursor:pointer; font:inherit; background:var(--tg); }
.tour-project strong { min-width:0; flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13px; font-weight:620; line-height:1.25; }
.tour-project:hover,.tour-project[aria-expanded="true"] { background:var(--tsoft); border-color:var(--tstrong); }
.tour-project-avatar { width:26px; height:26px; border-radius:6px; background:#7c8cf8; color:#0F1218; font-size:11px; font-weight:600; line-height:1; letter-spacing:-.02em; }
.tour-project > .icon { width:14px; height:14px; flex-shrink:0; margin:0; }
.demo-project-popover { position:fixed; inset:auto; margin:0; padding:0; width:262px; max-width:calc(100vw - 16px); overflow:hidden; border:1px solid var(--tstrong); border-radius:11px; background:var(--ts); color:var(--ti); box-shadow:0 12px 32px -8px #0005; font-size:13px; }
.demo-project-search { display:flex; align-items:center; gap:8px; padding:8px 10px; border-bottom:1px solid var(--tl); }
.demo-project-search > .icon { width:14px; height:14px; color:var(--tm); flex-shrink:0; }
.demo-project-search input { min-width:0; width:100%; border:0; padding:0; outline:0; font:inherit; color:var(--ti); background:transparent; }
.demo-project-search input::placeholder { color:var(--tm); }
#demo-project-options { max-height:300px; overflow-y:auto; padding:4px 0; }
#demo-project-options button { display:flex; width:100%; align-items:center; gap:10px; padding:7px 10px; border:0; text-align:left; background:transparent; color:var(--ti); cursor:pointer; font:inherit; }
#demo-project-options button[data-active="true"] { background:var(--tsoft); }
#demo-project-options .tour-project-avatar { width:22px; height:22px; font-size:10px; }
.demo-project-name { min-width:0; flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.demo-project-all { display:grid; place-items:center; width:22px; height:22px; flex-shrink:0; border:1px solid var(--tl); border-radius:6px; color:var(--tm); }
.demo-project-all > .icon { width:12px; height:12px; }
#demo-project-options button > .icon,.demo-project-check-space { width:14px; height:14px; flex-shrink:0; color:var(--torange); }
.demo-project-dot { width:6px; height:6px; flex-shrink:0; border-radius:50%; background:var(--tk); }
#demo-project-options #demo-project-option-all { border-bottom:1px solid var(--tl); margin-bottom:4px; padding-bottom:11px; }
#demo-project-options p { margin:0; padding:12px; color:var(--tm); font-size:12.5px; }
.demo-project-create { display:flex; align-items:center; gap:8px; width:100%; padding:8px 10px; border:0; border-top:1px solid var(--tl); font-size:12.5px; color:var(--ttext); background:transparent; cursor:pointer; }
.demo-project-create:hover { background:var(--tsoft); color:var(--ti); }
.demo-project-create > .icon { width:14px; height:14px; }
.demo-project-card { display:flex; align-items:center; gap:12px; padding:12px; border:1px solid var(--tl); border-radius:9px; background:var(--tg); color:var(--ti); text-align:left; cursor:pointer; }
.demo-project-card > span:nth-child(2) { display:flex; flex:1; min-width:0; flex-direction:column; gap:4px; }
.demo-project-card small { overflow-wrap:anywhere; color:var(--tm); font-size:10px; }
.demo-project-live { color:var(--tk); font-size:11px; }

@media(min-width:601px) { .tour-window { grid-template-columns:200px minmax(0,1fr); } }

/* Project-scoped native PostgreSQL connection in the product tour. */
.demo-database-heading-row { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; }
.demo-database-actions { display:flex; flex-wrap:wrap; gap:8px; }
.demo-migration-workflows { display:grid; gap:16px; }
.demo-migration-workflows > div { display:grid; min-width:0; gap:8px; }
.demo-native-meta { display:flex; flex-wrap:wrap; gap:8px 14px; color:var(--tm); font-size:11px; }
.demo-native-uri { display:block; max-width:100%; padding:10px; border:1px solid var(--tstrong); border-radius:7px; background:var(--ts); line-height:1.7; }
.demo-native-fields { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px 20px; margin:0; }
.demo-native-fields div { min-width:0; }
.demo-native-fields dt { color:var(--tm); font-size:11px; }
.demo-native-fields dd { margin:0; overflow-wrap:anywhere; }
