* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #f2f3ef;
  color: #0f0f0f;
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
}
button, select { font: inherit; }
[hidden] { display: none !important; }
.demo-header {
  flex-shrink: 0;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 24px;
  background: #fff;
  color: #0f0f0f;
  border-bottom: 1px solid #e4e8e0;
}
.demo-header > a { display: block; flex-shrink: 0; padding: 0; background: transparent; }
.demo-header img { display: block; width: 150px; height: 50px; object-fit: contain; }
.demo-heading { min-width: 0; }
.demo-heading h1 { margin: 0; font-size: 20px; font-weight: 850; letter-spacing: -.5px; }
.demo-heading p { margin: 5px 0 0; color: #697174; font-size: 12px; }
.demo-badge { margin-left: auto; border: 1px solid #dce1d4; border-radius: 99px; padding: 7px 11px; color: #697174; font-size: 11px; white-space: nowrap; }
.demo-actions { display: flex; align-items: center; gap: 10px; }
.demo-header button, .demo-research-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 17px; border: 0; border-radius: 99px; background: #d2ff00; color: #0f0f0f; font-size: 12px; font-weight: 800; cursor: pointer; white-space: nowrap; text-decoration: none; }
.demo-research-link { background: #0f0f0f; color: #d2ff00; }
.demo-research-link:hover { background: #30332a; }
.demo-explanation { flex-shrink: 0; margin: 0; padding: 10px 16px; text-align: center; font-size: 13px; line-height: 18px; color: #353c30; }
#demo-status { flex-shrink: 0; margin: 0; padding: 0 16px 10px; text-align: center; font-size: 12px; line-height: 16px; color: #53594c; }
#retry-demo { margin: 20px auto; display: flex; }
.demo-split { flex: 1; min-height: 0; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; gap: 16px; max-width: 1800px; margin: 0 auto; padding: 0 20px; }
.demo-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #fff; border: 1px solid #dce0d3; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 18px #1f251009; }
.pane-toolbar { flex-shrink: 0; height: 64px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #e7e9e1; background: #fff; }
.pane-toolbar > div { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.pane-number { display: grid; place-items: center; background: #d2ff00; border-radius: 50%; width: 24px; height: 24px; font-size: 10px; font-weight: 800; }
.pane-toolbar h2 { margin: 0; font-size: 14px; letter-spacing: -.2px; }
.pane-toolbar label { min-width: 0; flex: 1; }
.pane-toolbar select { display: block; width: 100%; min-height: 40px; padding: 5px 22px 5px 9px; background: #f4f5f0; border: 1px solid #e2e5d9; border-radius: 8px; font-size: 12px; color: #20251a; cursor: pointer; text-overflow: ellipsis; }
.pane-toolbar a { display: flex; align-items: center; min-height: 40px; font-size: 10px; font-weight: 600; color: #53594c; text-decoration: none; white-space: nowrap; }
.pane-toolbar a:hover { text-decoration: underline; }
iframe { display: block; flex: 1; min-height: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.demo-footer { flex-shrink: 0; padding: 9px 12px; text-align: center; font-size: 10px; line-height: 14px; color: #676f5c; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
button:focus-visible, select:focus-visible, a:focus-visible { outline: 2px solid #0f0f0f; outline-offset: 3px; }
@media (max-width: 1050px) and (min-width: 761px) {
  .pane-toolbar { height: 96px; flex-wrap: wrap; gap: 2px 8px; padding: 7px 12px; }
  .pane-toolbar > div { flex: 1; }
  .pane-toolbar label { order: 3; flex-basis: 100%; }
  .pane-toolbar select { min-height: 38px; }
  .pane-toolbar a { min-height: 28px; }
}
@media (max-width: 760px), (max-width: 1000px) and (max-height: 500px) {
  body { height: auto; min-height: 100svh; overflow: visible; }
  .demo-header { min-height: 64px; padding: 8px 12px; gap: 8px 14px; flex-wrap: wrap; }
  .demo-header img { width: 108px; height: 36px; }
  .demo-heading h1 { font-size: 16px; letter-spacing: -.3px; }
  .demo-heading p, .demo-badge { display: none; }
  .demo-actions { margin-left: auto; }
  .demo-header button, .demo-research-link { padding: 9px 12px; font-size: 11px; }
  .demo-explanation { font-size: 12px; line-height: 17px; padding: 10px 14px; }
  #demo-status { font-size: 11px; line-height: 15px; padding: 0 14px 8px; }
  .demo-split { display: grid; grid-template-columns: minmax(0, 1fr); flex: none; gap: 16px; padding: 0 8px; }
  .demo-pane { height: calc(100svh - 124px); min-height: 400px; scroll-margin-top: 8px; border-radius: 12px; }
  .pane-toolbar { height: 92px; flex-wrap: wrap; gap: 1px 8px; padding: 7px 12px; }
  .pane-toolbar > div { flex: 1; }
  .pane-toolbar a { min-height: 30px; font-size: 10px; }
  .pane-toolbar label { order: 3; flex-basis: 100%; }
  .pane-toolbar select { min-height: 40px; font-size: 16px; }
  .demo-footer { padding: 12px 16px max(12px, env(safe-area-inset-bottom)); font-size: 10px; }
}
@media (max-width: 480px) {
  .demo-actions { width: 100%; justify-content: space-between; padding-top: 4px; border-top: 1px solid #edf0e7; }
  .demo-research-link { flex: 1; }
}
@media (min-width: 761px) and (max-width: 1000px) and (max-height: 500px) {
  .demo-pane { min-height: 520px; }
}
@media (max-width: 359px) {
  .demo-header { gap: 9px; padding-inline: 10px; }
  .demo-header img { width: 96px; height: 32px; }
  .demo-heading h1 { font-size: 14px; }
  .demo-header button { padding-inline: 10px; }
  .demo-split { padding-inline: 6px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
