#experience-demo:empty {
  display: none;
}
.ex-demo {
  --ex-bg: #0c1b22;
  --ex-surface: #152a32;
  --ex-line: #35515b;
  --ex-ink: #f1f7f7;
  --ex-muted: #c1d3d6;
  --ex-active: #87edf4;
  --ex-selected-text: #042129;
  background: var(--ex-bg);
  color: var(--ex-ink);
  border: 1px solid var(--ex-line);
  border-radius: 12px;
  padding: clamp(18px, 3.5vw, 42px);
  margin: 1.5rem 0 2rem;
  text-align: left;
  font-family: Geist, Arial, sans-serif;
  min-width: 0;
}
.ex-demo * {
  box-sizing: border-box;
}
.ex-heading {
  max-width: 64ch;
  margin-bottom: 1.35rem;
}
.ex-demo h2,
.ex-demo h3,
.ex-demo p,
.ex-demo dl,
.ex-demo dd {
  margin: 0;
}
.ex-heading h2 {
  color: var(--ex-ink);
  font-size: clamp(1.55rem, 2.9vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
  font-weight: 560;
}
.ex-heading p,
.ex-note,
.ex-caption {
  font-size: 0.94rem;
  line-height: 1.45;
  color: var(--ex-muted);
}
.ex-heading p {
  margin-top: 0.5rem;
}
.ex-note {
  margin: 1rem 0 !important;
}
.ex-demo h3 {
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
}
.ex-demo button,
.ex-demo input,
.ex-demo select {
  font: inherit;
}
.ex-picker {
  display: grid;
  gap: 0.38rem;
  width: fit-content;
  max-width: 100%;
  font-size: 0.83rem;
  color: var(--ex-ink);
  font-weight: 600;
}
.ex-picker input,
.ex-picker select {
  min-height: 43px;
  padding: 0.48rem 0.72rem;
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--ex-line);
  border-radius: 5px;
  color: var(--ex-ink);
  background: var(--ex-surface);
  font: inherit;
}
.ex-picker select {
  padding-right: 2rem;
}
.ex-picker input {
  width: 145px;
}
.ex-modes,
.ex-options,
.ex-controls,
.ex-web-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.ex-modes {
  padding: 1.15rem 0 0.75rem;
  border-bottom: 1px solid var(--ex-line);
  margin-bottom: 1.15rem;
}
.ex-tab,
.ex-button,
.ex-filter,
.ex-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  padding: 0.48rem 0.8rem;
  min-height: 40px;
  background: transparent;
  color: var(--ex-ink);
  border: 1px solid var(--ex-line);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.86rem !important;
  font-weight: 600;
  text-decoration: none;
}
.ex-tab[aria-pressed='true'],
.ex-filter[aria-pressed='true'] {
  color: var(--ex-selected-text);
  background: var(--ex-active);
  border-color: var(--ex-active);
}
.ex-tab:hover,
.ex-button:hover,
.ex-filter:hover,
.ex-link:hover {
  border-color: var(--ex-active);
}
.ex-button,
.ex-link {
  background: var(--ex-surface);
}
.ex-link {
  color: var(--ex-active);
}
.ex-link:after {
  content: '↗';
  margin-left: 0.42rem;
}
.ex-demo :focus-visible {
  outline: 2px solid var(--ex-active);
  outline-offset: 3px;
}
.ex-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--ex-line);
  border: 1px solid var(--ex-line);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 1rem !important;
}
.ex-stats > div {
  padding: clamp(9px, 1.7vw, 18px);
  background: var(--ex-surface);
  min-width: 0;
}
.ex-stats dt,
.ex-counter,
.ex-feature small,
.ex-device-title {
  font: 500 0.68rem/1.45 var(--mono, monospace);
  letter-spacing: 0.06em;
}
.ex-stats dt {
  color: var(--ex-muted);
  letter-spacing: 0;
}
.ex-stats dd {
  font-size: clamp(0.97rem, 2.4vw, 1.8rem);
  font-weight: 590;
  letter-spacing: -0.045em;
  line-height: 1.12;
  margin-top: 0.25rem;
  overflow-wrap: anywhere;
}
.ex-table {
  overflow-x: auto;
  margin-top: 0.8rem;
}
.ex-table table {
  border-collapse: collapse;
  width: 100%;
  color: var(--ex-ink);
  font-size: 0.86rem;
}
.ex-table :is(th, td) {
  padding: 0.66rem 0.52rem;
  border-bottom: 1px solid var(--ex-line);
  text-align: left;
}
.ex-table th {
  color: var(--ex-muted);
  font-weight: 500;
}
.ex-entry {
  display: flex;
  align-items: end;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.ex-output {
  flex: 1 0 100%;
  font-size: 0.9rem;
  color: var(--ex-active);
}
.ex-output:empty {
  display: none;
}
.ex-guide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.75fr);
  gap: clamp(16px, 4vw, 48px);
  align-items: center;
}
.ex-guide-phone {
  grid-template-columns: minmax(192px, 0.6fr) minmax(200px, 1fr);
}
.ex-guide-controls {
  min-width: 0;
}
.ex-guide-controls .ex-caption {
  margin: 1rem 0;
  max-width: 48ch;
}
.ex-controls .ex-counter {
  color: var(--ex-muted);
  min-width: 34px;
  text-align: center;
}
.ex-guide-controls > .ex-link {
  margin-top: 14px;
}
.ex-controls:empty {
  display: none;
}
.ex-device,
.ex-monitor {
  position: relative;
  overflow: hidden;
  border: 1px solid #54707b;
  background: #020b10;
  border-radius: 10px;
  padding: 5px;
}
.ex-device {
  width: min(254px, 100%);
  margin: auto;
  border: 1px solid #57727d;
  box-shadow:
    inset 0 0 0 2px #0a171d,
    0 12px 26px #0004;
  border-radius: 28px;
  padding: 7px;
}
.ex-device:before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 6px;
  background: #030809;
  border-radius: 6px;
}
.ex-display {
  color: #f0f8fa;
  overflow: hidden;
  background: #142a33;
  display: flex;
  flex-direction: column;
  border-radius: 5px;
  min-height: 170px;
}
html:not([data-experience='chamber']) .ex-demo {
  --ex-bg: #fcfcf8;
  --ex-surface: #f0f3ed;
  --ex-line: #c2cbc3;
  --ex-ink: #172b2c;
  --ex-muted: #445556;
  --ex-active: #115965;
  --ex-selected-text: #fff;
}
.ex-display .ex-feature small,
.ex-display .ex-device-title > span:last-child {
  color: #87edf4;
}
.ex-frame-status {
  font-size: 0.85rem;
  color: var(--ex-muted);
}
.ex-frame-status:empty {
  display: none;
}
.ex-device .ex-display {
  border-radius: 20px;
  min-height: 298px;
  justify-content: center;
  padding: 15px 0 13px;
}
.ex-device-title {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #d6e8ed;
  padding: 9px;
  font-size: 0.6rem;
  border-bottom: 1px solid #38515a;
  flex-wrap: wrap;
}
.ex-device-title > span:last-child {
  color: var(--ex-active);
}
.ex-shot {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: contain;
}
.ex-device .ex-shot {
  flex: 1;
  min-height: 0;
  max-height: 345px;
  background: #0c1a20;
  object-fit: contain;
}
.ex-feature {
  padding: 1rem;
  min-height: 145px;
  display: grid;
  align-content: center;
  gap: 0.75rem;
}
.ex-feature small {
  color: var(--ex-active);
}
.ex-feature p {
  font-size: 1.12rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
}
.ex-web {
  border: 1px solid var(--ex-line);
  border-radius: 8px;
  overflow: hidden;
}
.ex-window {
  position: relative;
  min-width: 0;
  background: #14252c;
}
.ex-window > img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 370px;
  object-fit: contain;
}
.ex-window iframe {
  width: 100%;
  height: clamp(310px, 57vh, 590px);
  display: block;
  background: white;
  border: 0;
}
.ex-web-actions {
  padding: 0.65rem 0.75rem;
  background: var(--ex-surface);
}
@media (max-width: 640px) {
  .ex-demo {
    padding: 16px;
    border-radius: 8px;
  }
  .ex-guide,
  .ex-guide-phone {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .ex-device {
    max-width: 225px;
  }
  .ex-device .ex-display {
    min-height: 235px;
  }
  .ex-modes {
    gap: 0.35rem;
  }
  .ex-tab,
  .ex-button,
  .ex-filter,
  .ex-link {
    padding: 0.46rem 0.58rem;
  }
  .ex-stats dt {
    font-size: 0.65rem;
  }
  .ex-table :is(th, td) {
    padding: 0.5rem 0.28rem;
  }
  .ex-entry {
    gap: 0.45rem;
  }
}
@media (max-width: 400px) {
  .ex-stats {
    grid-template-columns: 1fr;
  }
  .ex-stats > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }
  .ex-stats dd {
    margin-top: 0;
  }
  .ex-table table {
    font-size: 0.76rem;
  }
  .ex-entry {
    align-items: start;
    flex-direction: column;
  }
  .ex-output {
    flex: auto;
  }
  .ex-web-actions {
    padding: 0.5rem;
  }
}
