:root {
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #262b28;
  background: #fff;
  font-synthesis: none;
  --muted: #727974;
  --line: #e1e5e2;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --masthead-height: 48px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
select,
textarea,
input {
  font: inherit;
}
button,
select {
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid #6a8977;
  outline-offset: -2px;
}
.masthead {
  height: var(--masthead-height);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
}
.brand {
  white-space: nowrap;
  flex-shrink: 0;
  color: #39473e;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.header-actions .tour-trigger {
  font-size: 13px;
}
.github-link {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  color: var(--muted);
}
.github-link svg {
  width: 20px;
  height: 20px;
}
.github-link:hover {
  background: #f0f5f0;
  color: #39473e;
}
.tour-dialog {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
  color: #262b28;
}
.tour-dialog::backdrop {
  background: transparent;
}
.tour-highlight {
  position: fixed;
  border: 2px solid #729b80;
  border-radius: 6px;
  box-shadow: 0 0 0 100vmax rgb(20 32 24 / 50%);
  pointer-events: none;
}
.tour-card {
  position: fixed;
  width: min(340px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 16px;
  border: 1px solid #d2ded6;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 40px rgb(0 0 0 / 18%);
  font-size: 13px;
  line-height: 1.55;
}
.tour-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
#tour-count {
  font: 11px var(--mono);
  color: var(--muted);
}
.tour-close {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 5px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
}
.tour-close svg {
  width: 18px;
  height: 18px;
}
.tour-close:hover {
  background: #f0f5f0;
}
#tour-title {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 600;
  color: #283a2e;
}
#tour-body p {
  margin: 10px 0 0;
}
#tour-body code {
  font: 12px var(--mono);
}
.tour-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.tour-actions .control-button {
  min-height: 32px;
  padding: 5px 12px;
  font-size: 13px;
}
.tour-next {
  margin-left: auto;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  min-width: 0;
}
.example-picker {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  font-size: 13px;
  color: var(--muted);
}
.example-picker label {
  position: absolute;
  top: 50%;
  left: 10px;
  z-index: 1;
  transform: translateY(-50%);
  white-space: nowrap;
  pointer-events: none;
}
.example-picker select {
  appearance: none;
  min-width: 0;
  max-width: 270px;
  border: 1px solid #cbd4cd;
  border-radius: 5px;
  padding: 6px 34px 6px 72px;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2339473e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat right 10px center / 16px 16px;
  color: #39473e;
  font-size: 13px;
}
.example-picker select:hover:not(:disabled) {
  border-color: #729b80;
}
.workspace {
  display: grid;
  grid-template-columns: var(--pane-columns, 35fr 6px 32.5fr 6px 32.5fr);
  height: calc(100dvh - var(--masthead-height));
  min-height: 0;
}
.pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.pane + .pane {
  border-left: 1px solid var(--line);
}
.pane-heading {
  height: 40px;
  flex-shrink: 0;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.pane-heading h2 {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.file-label {
  color: var(--muted);
  font: 12px var(--mono);
}
.code-editor {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.splitter {
  cursor: col-resize;
  touch-action: none;
  background: #f1f4f2;
  border-inline: 1px solid var(--line);
}
.splitter:hover,
.splitter:focus-visible {
  background: #b9c9be;
}
.output-status {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  min-height: 40px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
}
.output-status[hidden] {
  display: none;
}
.output-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--line);
}
.output-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
}
.output-controls .quiet {
  padding: 6px 0;
  font-size: 13px;
}
.output-controls .primary {
  margin-left: auto;
  min-height: 30px;
  padding: 5px 10px;
  font-size: 13px;
}
.control-button {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  color: #39473e;
  padding: 8px 6px;
  min-height: 36px;
  font-size: 14px;
}
.control-button[hidden] {
  display: none;
}
.control-button:hover:not(:disabled) {
  background: #f0f5f0;
}
.control-button.primary {
  background: #283a2e;
  color: white;
  border-color: #283a2e;
}
.control-button.primary:hover:not(:disabled) {
  background: #3c5745;
}
.control-button:disabled {
  opacity: 0.45;
  cursor: default;
}
#output-mode {
  font-size: 12px;
  color: var(--muted);
}
.control-spacer {
  flex: 1;
}
.quiet {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 6px 4px;
  font-size: 14px;
}
.quiet:disabled {
  opacity: 0.4;
  cursor: default;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.app-stage {
  position: relative;
  flex: 1;
  display: flex;
  overflow: hidden;
  padding: 28px 22px;
  min-height: 0;
}
.reload-button {
  position: absolute;
  top: 28px;
  right: 22px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 6px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
}
.reload-button svg {
  display: block;
  width: 20px;
  height: 20px;
}
.reload-button:hover:not(:disabled) {
  background: #f0f5f0;
  color: #283a2e;
}
.reload-button:disabled {
  opacity: 0.4;
  cursor: default;
}
.app-stage iframe {
  width: 100%;
  height: 285px;
  border: 0;
}
.run {
  min-width: 58px;
  min-height: 32px;
  border: 0;
  border-radius: 4px;
  background: #283a2e;
  color: white;
  padding: 6px 12px;
  font-size: 14px;
}
.run:disabled {
  opacity: 0.45;
  cursor: default;
}
.timeline {
  padding: 0 16px 12px;
}
.timeline-scrub {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.timeline[hidden],
.timeline-scrub[hidden],
#result[hidden] {
  display: none;
}
.scrubber {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  accent-color: #283a2e;
  cursor: ew-resize;
}
.scrubber:disabled {
  cursor: default;
  opacity: 0.4;
}
#position {
  font: 12px var(--mono);
  white-space: nowrap;
}
#result {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.timeline-scrub[hidden] + #result {
  margin-top: 0;
}
#result.failure,
#result.error {
  color: #b0372f;
}
#result.failure {
  margin-top: 12px;
  padding: 12px 14px;
  border-left: 3px solid #b0372f;
  border-radius: 4px;
  background: #fff1ee;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}
.bombadil-report {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 400;
  color: #4e5751;
}
.bombadil-report summary {
  width: fit-content;
  cursor: pointer;
  font-weight: 500;
}
.bombadil-report-body {
  max-height: min(35dvh, 320px);
  overflow: auto;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #e8d5d0;
  border-radius: 4px;
  background: #fff;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.bombadil-report-body pre,
.bombadil-report-body code,
.bombadil-report-body time {
  font: 11px/1.6 var(--mono);
}
.bombadil-report-body pre {
  margin: 8px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.bombadil-snapshots {
  margin: 6px 0;
}
.historical {
  padding: 1px;
  color: #262b28;
}
.historical h2 {
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -1px;
  margin: 0 0 20px;
}
.history-input {
  padding: 12px 0;
  color: #727974;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}
.history-todo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  overflow-wrap: anywhere;
}
.history-todo.done {
  color: #929a94;
  text-decoration: line-through;
}
.history-footer {
  padding: 12px 0;
  font-size: 12px;
  color: var(--muted);
}
.hidden {
  display: none !important;
}
.boot {
  padding: 20px;
  color: var(--muted);
}
@media (max-width: 1100px) {
  .splitter {
    display: none;
  }
  .workspace {
    grid-template-columns: 1fr 1fr;
    height: auto;
    min-height: calc(100dvh - var(--masthead-height));
  }
  .behaviors-pane,
  .tests-pane {
    height: 540px;
  }
  .output-pane {
    grid-column: 1 / -1;
    height: calc(100dvh - var(--masthead-height));
    min-height: 0;
    border-left: 0 !important;
    border-top: 1px solid var(--line);
  }
}
@media (max-width: 650px) {
  :root {
    --masthead-height: 84px;
  }
  .masthead {
    display: grid;
    grid-template-columns: 1fr auto auto;
    grid-template-rows: 32px 32px;
    gap: 4px 8px;
    padding: 8px 12px;
  }
  .header-actions {
    display: contents;
  }
  .tour-trigger {
    grid-column: 2;
    grid-row: 1;
  }
  .github-link {
    grid-column: 3;
    grid-row: 1;
  }
  .example-picker {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .example-picker select {
    flex: 1;
    max-width: none;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .pane + .pane {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .behaviors-pane {
    height: 550px;
  }
  .tests-pane {
    height: 390px;
  }
}
