:root {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  color: #202a25;
  background: #f9faf7;
  --muted: #56665e;
  --line: #dce3da;
  --accent: #185e48;
  --selected: #dfede4;
}
* { box-sizing: border-box; }
body { margin: 0; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: #c0dfcb; color: #17372c; }
.top {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; padding: 0 32px; border-bottom: 1px solid var(--line); background: #fff;
}
.brand { color: inherit; text-decoration: none; font-size: 15px; font-weight: 700; }
.connection { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.connection::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #9f681d; }
.connection.online::before { background: #21825d; }
.workspace { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: calc(100svh - 64px); }
.sidebar { padding: 30px 16px; border-right: 1px solid var(--line); background: #eff3ed; }
.section-title { display: flex; justify-content: space-between; align-items: baseline; margin: 0 9px 16px; gap: 8px; }
.section-title h2 { font-size: 14px; margin: 0; }
.section-title span, small { font-size: 12px; color: var(--muted); }
.sources { display: grid; gap: 5px; }
.sources button {
  display: flex; gap: 8px; align-items: center; justify-content: space-between;
  padding: 11px 12px; text-align: left; border: 1px solid transparent; border-radius: 7px;
  background: transparent; color: #26372e; overflow-wrap: anywhere;
}
.sources button:hover { background: #e5ebe3; }
.sources button[aria-pressed="true"] { background: var(--selected); color: #124834; border-color: #bdd9c8; font-weight: 650; }
.stage { width: 100%; max-width: 1220px; padding: 39px clamp(20px, 5vw, 72px); margin: 0 auto; }
.stage-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 0 0 24px; }
h1 { margin: 0 0 8px; font-size: 32px; letter-spacing: -.03em; }
.muted { color: var(--muted); font-size: 13px; margin: 0; }
.demo { margin: 4px 0 0; font-size: 12px; color: #6a511c; }
.slide { border: 1px solid var(--line); background: white; border-radius: 14px; overflow: hidden; min-height: 315px; }
.slide-top { padding: 23px 26px 18px; border-bottom: 1px solid var(--line); }
.slide-top h2 { margin: 0; font-size: 18px; line-height: 1.5; max-height: 8rem; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.slide-top .muted:not(:empty) { margin-bottom: 8px; }
.answer { padding: 22px 26px; white-space: pre-wrap; line-height: 1.65; overflow-wrap: anywhere; }
.code-answer { padding: 16px; }
pre {
  margin: 0; padding: 17px 19px; overflow: auto; border-radius: 8px;
  max-height: min(62vh, 600px); background: #192420; color: #e1eee7; line-height: 1.55;
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 14px; white-space: pre;
}
.hljs-keyword, .hljs-selector-tag { color: #f2aecc; }
.hljs-string, .hljs-regexp, .hljs-attr { color: #b4e6b2; }
.hljs-title, .hljs-built_in { color: #9ad3ff; }
.hljs-number, .hljs-literal { color: #f8c992; }
.hljs-comment { color: #a6baad; }
.navigation { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 17px; }
.navigation span { font-variant-numeric: tabular-nums; }
.navigation button { min-height: 40px; padding: 0 14px; border: 1px solid #bbcbbf; border-radius: 7px; color: #194d3a; background: #fff; }
.navigation button:hover:enabled { background: var(--selected); }
.navigation button:disabled { color: #606f66; opacity: .65; }
.sample { width: min(720px, 100%); margin: 40px auto; padding: 0 20px; }
.sample p { line-height: 1.6; }
@media (max-width: 670px) {
  .top { padding: 0 16px; }
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .sidebar { padding: 14px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .section-title { margin: 0 0 8px; }
  .sources { display: flex; flex-wrap: wrap; }
  .stage { padding: 22px 16px; }
  h1 { font-size: 25px; }
  .slide-top, .answer { padding: 16px; }
}
