:root {
  --ink: #172026;
  --muted: #5d6670;
  --paper: #f8faf7;
  --surface: #ffffff;
  --line: #d9e0dc;
  --green: #1f9d78;
  --mint: #dff8ed;
  --blue: #375dfb;
  --sky: #e8f1ff;
  --coral: #ff6b4a;
  --apricot: #ffe6d9;
  --yellow: #e7b416;
  --night: #10171b;
  --night-2: #172226;
  --shadow: 0 18px 55px rgba(23, 32, 38, 0.12);
  --shadow-soft: 0 10px 28px rgba(23, 32, 38, 0.08);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(23, 32, 38, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 32, 38, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 24px 24px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  letter-spacing: 0;
}

body::selection {
  color: var(--night);
  background: #b7f1d6;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

.site-frame {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 12px 28px;
  border-bottom: 1px solid rgba(23, 32, 38, 0.1);
  background: rgba(248, 250, 247, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: white;
  background: var(--night);
  border: 2px solid #253239;
  border-radius: var(--radius);
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  line-height: 1.1;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border: 1px solid rgba(23, 32, 38, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--ink);
  background: var(--mint);
  outline: none;
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 290px;
}

.segmented {
  display: inline-flex;
  padding: 4px;
  border: 1px solid rgba(23, 32, 38, 0.12);
  border-radius: var(--radius);
  background: white;
}

.segment {
  min-height: 34px;
  padding: 0 12px;
  color: var(--muted);
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-size: 14px;
}

.segment.is-active {
  color: white;
  background: var(--night);
}

.icon-command,
.icon-only {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid rgba(23, 32, 38, 0.13);
  border-radius: var(--radius);
  color: white;
  background: var(--green);
  box-shadow: 0 9px 18px rgba(31, 157, 120, 0.24);
}

.icon-command {
  padding: 0 14px;
}

.icon-only {
  width: 44px;
  padding: 0;
  color: var(--ink);
  background: white;
  box-shadow: none;
}

.icon-command svg,
.icon-only svg,
.panel-icon svg,
.resource-card svg,
.rhythm-card svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.1;
}

.band {
  padding: 84px 28px;
  scroll-margin-top: 92px;
}

.section-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.stage {
  padding-top: 24px;
  padding-bottom: 24px;
}

.stage .section-inner {
  width: min(100%, 1320px);
}

.stage-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.62fr) minmax(680px, 1.38fr);
  gap: 28px;
  align-items: center;
  min-height: calc(100vh - 120px);
}

.agenda-stage {
  grid-template-columns: minmax(390px, 0.76fr) minmax(560px, 1fr);
  gap: 64px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.04;
}

h1 {
  max-width: 760px;
  font-size: 52px;
}

h1 span {
  display: block;
  white-space: nowrap;
}

h2 {
  font-size: 38px;
}

h3 {
  font-size: 21px;
}

.lead {
  max-width: 680px;
  margin: 16px 0 0;
  color: #38454d;
  font-size: 17px;
  line-height: 1.75;
}

.stage-copy {
  min-width: 0;
}

.talk-plan {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.plan-card,
.rhythm-card,
.vendor-card,
.resource-card,
.explain-panel,
.training-panel,
.memory-demo,
.tool-card {
  border: 1px solid rgba(23, 32, 38, 0.12);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.plan-card {
  min-height: 142px;
  padding: 14px;
}

.plan-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 32px;
  margin-bottom: 14px;
  color: var(--night);
  background: var(--mint);
  border-radius: 6px;
  font-weight: 900;
}

.plan-card h2 {
  font-size: 21px;
}

.plan-card p,
.rhythm-card p,
.vendor-card p,
.explain-panel p,
.training-panel span,
.memory-demo p,
.tool-card p,
.resource-card span,
.section-heading p {
  color: var(--muted);
  line-height: 1.65;
}

.plan-card p {
  margin: 10px 0 0;
  font-size: 14px;
}

.agenda-panel {
  min-width: 0;
  padding: 26px;
  border: 1px solid rgba(23, 32, 38, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(246, 250, 248, 0.92)),
    white;
  box-shadow: var(--shadow);
}

.agenda-head {
  display: grid;
  gap: 8px;
  max-width: 680px;
  margin-bottom: 20px;
}

.agenda-head h2 {
  font-size: 34px;
}

.agenda-head span {
  color: var(--muted);
  line-height: 1.65;
}

.agenda-panel .talk-plan {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
}

.agenda-panel .plan-card {
  min-height: 178px;
}

.agenda-route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr) 20px minmax(0, 1fr) 20px minmax(0, 1fr) 20px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  margin-top: 18px;
  padding: 12px;
  border: 1px solid rgba(31, 157, 120, 0.18);
  border-radius: var(--radius);
  background: rgba(223, 248, 237, 0.46);
}

.agenda-route span {
  display: grid;
  place-items: center;
  min-height: 36px;
  color: #174232;
  border: 1px solid rgba(31, 157, 120, 0.16);
  border-radius: 6px;
  background: white;
  font-size: 13px;
  font-weight: 900;
}

.agenda-route svg {
  width: 18px;
  height: 18px;
  justify-self: center;
  color: var(--green);
}

.simulator-page {
  min-height: calc(100vh - 72px);
  padding-top: 32px;
  padding-bottom: 40px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(236, 248, 243, 0.42)),
    rgba(255, 255, 255, 0.46);
  border-top: 1px solid rgba(23, 32, 38, 0.08);
  border-bottom: 1px solid rgba(23, 32, 38, 0.08);
}

.simulator-inner {
  width: min(100%, 1480px);
}

.simulator-board {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
  height: calc(100vh - 144px);
  min-height: calc(100vh - 144px);
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(23, 32, 38, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 250, 248, 0.98)),
    white;
  box-shadow: var(--shadow);
}

.simulator-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}

.simulator-title-row h2 {
  max-width: 900px;
  font-size: 32px;
}

.simulator-title-row p:last-child {
  max-width: 900px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.simulator-controls,
.prompt-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.context-workbench {
  display: grid;
  grid-template-columns: minmax(380px, 0.95fr) minmax(0, 1.75fr);
  gap: 14px;
  min-height: 0;
}

.context-left-rail {
  min-height: 0;
}

.simulator-page .dialogue-column,
.simulator-page .context-window-card,
.prompt-inspector,
.request-composer,
.prompt-code-panel {
  border: 1px solid rgba(23, 32, 38, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(23, 32, 38, 0.07);
}

.simulator-page .dialogue-column {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
  min-height: 0;
  padding: 14px;
}

.simulator-page .round-track {
  min-height: 0;
  max-height: none;
  margin: 10px 0;
  padding-right: 2px;
}

.chat-thread {
  display: grid;
  align-content: start;
  gap: 10px;
  overflow: auto;
  padding: 8px 4px 8px 0;
}

.dialogue-message {
  display: grid;
  gap: 5px;
  max-width: 86%;
  padding: 11px 12px;
  border: 1px solid rgba(23, 32, 38, 0.1);
  border-radius: var(--radius);
  box-shadow: 0 8px 18px rgba(23, 32, 38, 0.05);
}

.dialogue-message.assistant {
  justify-self: start;
  background: #f7fbfa;
}

.dialogue-message.user {
  justify-self: end;
  color: white;
  border-color: rgba(16, 23, 27, 0.08);
  background: var(--night);
}

.dialogue-message.is-active {
  box-shadow: 0 0 0 3px rgba(31, 157, 120, 0.14);
}

.dialogue-message span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.dialogue-message.user span {
  color: #b7f1d6;
}

.dialogue-message p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

.chat-input-surface {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
  padding-top: 10px;
  border-top: 1px solid rgba(23, 32, 38, 0.1);
}

.chat-input-line {
  display: grid;
  gap: 4px;
  min-height: 54px;
  padding: 9px 11px;
  border: 1px solid rgba(55, 93, 251, 0.18);
  border-radius: var(--radius);
  background: var(--sky);
}

.chat-input-line span {
  color: #42617e;
  font-size: 12px;
  font-weight: 900;
}

.chat-input-line strong {
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

.simulator-page .context-window-card {
  min-height: 0;
  padding: 14px;
}

.inspector-context-card {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  overflow: hidden;
}

.context-usage-stack {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.context-window-top strong small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.simulator-page .context-row {
  min-height: 34px;
  padding: 4px 6px;
  border-radius: 5px;
  cursor: pointer;
}

.simulator-page .context-row:hover {
  background: rgba(223, 248, 237, 0.6);
}

.inspector-context-card .context-rows {
  min-height: 0;
  overflow: auto;
}

.prompt-inspector {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 14px;
}

.prompt-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.prompt-toolbar h3 {
  font-size: 24px;
}

.prompt-toolbar span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.prompt-tabs {
  display: flex;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 2px;
}

.prompt-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 11px;
  color: var(--muted);
  border: 1px solid rgba(23, 32, 38, 0.12);
  border-radius: 999px;
  background: white;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.prompt-tab small {
  color: inherit;
  font-size: 11px;
  opacity: 0.72;
}

.prompt-tab em {
  color: inherit;
  font-size: 12px;
  font-style: normal;
  opacity: 0.78;
}

.prompt-tab.is-active {
  color: #174232;
  border-color: rgba(31, 157, 120, 0.28);
  background: var(--mint);
}

@media (min-width: 821px) {
  .prompt-tab:not(.is-active) small {
    display: none;
  }
}

.prompt-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.prompt-viewer-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
  overflow: hidden;
}

.context-label {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}

.context-label strong {
  font-size: 13px;
}

.context-label small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.context-carry {
  display: grid;
  gap: 8px;
  min-height: 0;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(31, 157, 120, 0.14);
  border-radius: var(--radius);
  background: rgba(223, 248, 237, 0.34);
}

.context-carry > span {
  color: #47615b;
  font-size: 12px;
  font-weight: 900;
}

.context-carry-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.context-carry-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  color: #174232;
  border: 1px solid rgba(31, 157, 120, 0.16);
  border-radius: 999px;
  background: var(--mint);
  font-size: 11px;
  font-weight: 900;
}

.request-composer {
  display: grid;
  grid-template-rows: auto auto 122px auto;
  gap: 8px;
  min-height: 0;
  padding: 12px;
}

.simulator-page .pack-flow {
  grid-template-columns: 1fr;
  gap: 10px;
}

.simulator-page .pack-source,
.simulator-page .request-box {
  min-height: 88px;
  padding: 9px;
}

.simulator-page .model-core {
  min-height: 122px;
}

.simulator-page .model-core canvas,
.simulator-page .model-core #networkCanvas {
  height: 122px;
}

.simulator-page .compare-strip {
  gap: 6px;
  margin-top: 0;
}

.simulator-page .compare-strip > div {
  min-height: 42px;
  padding: 6px 8px;
}

.simulator-page .compare-strip span {
  font-size: 11px;
}

.simulator-page .compare-strip strong {
  font-size: 12px;
  line-height: 1.25;
}

.prompt-code-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(16, 23, 27, 0.98), rgba(18, 30, 34, 0.98)),
    var(--night);
}

.prompt-code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 46px;
  padding: 0 14px;
  color: #d7fff0;
  border-bottom: 1px solid rgba(223, 248, 237, 0.12);
}

.prompt-code-head span {
  font-size: 13px;
  font-weight: 900;
}

.prompt-code-head strong {
  color: #92cdbc;
  font-size: 12px;
}

.prompt-code,
.prompt-modal-body {
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: auto;
  color: #dfeee9;
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", "Menlo", monospace;
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  tab-size: 2;
}

.prompt-code {
  height: 100%;
  padding: 14px;
}

.prompt-modal[hidden],
.model-sim-modal[hidden] {
  display: none;
}

.prompt-modal,
.model-sim-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 28px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(16, 23, 27, 0.62);
  backdrop-filter: blur(10px);
}

.prompt-modal-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1180px, 94vw);
  height: min(820px, 88vh);
  overflow: hidden;
  border: 1px solid rgba(223, 248, 237, 0.18);
  border-radius: var(--radius);
  background: var(--night);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.prompt-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  color: white;
  border-bottom: 1px solid rgba(223, 248, 237, 0.12);
}

.prompt-modal-body {
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(16, 23, 27, 0.98), rgba(18, 30, 34, 0.98)),
    var(--night);
}

.model-sim-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1120px, 94vw);
  max-height: min(820px, 88vh);
  overflow: hidden;
  border: 1px solid rgba(23, 32, 38, 0.14);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.26);
}

.model-sim-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(23, 32, 38, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 248, 0.98)),
    white;
}

.model-sim-body {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  gap: 14px;
  align-items: start;
  min-height: 0;
  padding: 18px;
  overflow: auto;
  background: #f7faf8;
}

.sim-input-panel,
.sim-output-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  max-height: calc(88vh - 150px);
  overflow: auto;
  padding: 16px;
  border: 1px solid rgba(23, 32, 38, 0.12);
  border-radius: var(--radius);
  background: white;
}

.sim-input-panel h3,
.sim-output-panel h3 {
  font-size: 20px;
}

.sim-prompt-box {
  max-height: min(360px, 42vh);
  overflow: auto;
  margin: 0;
  padding: 13px;
  color: #dfeee9;
  border-radius: var(--radius);
  background: var(--night);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", "Menlo", monospace;
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.sim-step-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sim-step-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.sim-step-list span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 24px;
  color: #174232;
  border-radius: 6px;
  background: var(--mint);
  font-weight: 900;
}

.sim-preview-frame {
  overflow: hidden;
  border: 1px solid rgba(23, 32, 38, 0.12);
  border-radius: var(--radius);
  background: #0f1a1e;
}

.sim-preview-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.video-placeholder {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 330px;
  overflow: hidden;
  color: #d7fff0;
  background:
    linear-gradient(135deg, rgba(31, 157, 120, 0.26), transparent),
    radial-gradient(circle at 70% 26%, rgba(127, 177, 255, 0.26), transparent 34%),
    #0f1a1e;
}

.video-placeholder::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(223, 248, 237, 0.18);
  border-radius: var(--radius);
}

.video-placeholder-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  justify-items: center;
  max-width: 420px;
  padding: 20px;
  text-align: center;
}

.video-placeholder-content svg {
  width: 44px;
  height: 44px;
}

.video-placeholder-content strong {
  font-size: 20px;
}

.video-placeholder-content span {
  color: #b9d4cd;
  line-height: 1.55;
}

.sim-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.copy-prompt-button {
  justify-self: start;
}

body.has-modal {
  overflow: hidden;
}

.demo-console {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(23, 32, 38, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 250, 0.98)),
    white;
  box-shadow: var(--shadow);
}

.demo-console::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 18px, rgba(23, 32, 38, 0.04) 18px 19px),
    linear-gradient(transparent 0 18px, rgba(23, 32, 38, 0.04) 18px 19px);
  background-size: 38px 38px;
}

.console-head,
.prompt-row,
.chat-lab,
.behind-panel,
.context-lane,
.token-meter {
  position: relative;
  z-index: 1;
}

.console-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.console-head h2 {
  font-size: 25px;
}

.prompt-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}

.prompt-chip {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(23, 32, 38, 0.12);
  border-radius: 999px;
  color: var(--muted);
  background: white;
  font-size: 14px;
}

.prompt-chip.is-selected {
  color: var(--night);
  border-color: rgba(31, 157, 120, 0.32);
  background: var(--mint);
}

.context-console {
  padding: 14px;
}

.simulator-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 304px;
  gap: 12px;
  margin-top: 12px;
}

.dialogue-column,
.context-window-card,
.packing-lab {
  border: 1px solid rgba(23, 32, 38, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 28px rgba(23, 32, 38, 0.07);
}

.dialogue-column {
  display: grid;
  grid-template-rows: auto minmax(144px, 1fr) auto auto;
  min-height: 318px;
  padding: 12px;
}

.mini-heading,
.packing-head,
.context-window-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.mini-heading strong,
.packing-head strong,
.context-window-top strong {
  display: block;
  font-size: 15px;
}

.mini-heading span,
.packing-head span,
.context-window-top span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.round-track {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 148px;
  max-height: 170px;
  margin: 10px 0;
  overflow: auto;
}

.round-card {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid rgba(23, 32, 38, 0.1);
  border-radius: var(--radius);
  background: white;
}

.round-card.is-active {
  border-color: rgba(31, 157, 120, 0.44);
  box-shadow: 0 0 0 3px rgba(31, 157, 120, 0.11);
}

.round-card.is-carried::after {
  content: "随本轮一起携带";
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 7px;
  color: #174232;
  background: var(--mint);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.round-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.round-meta span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 24px;
  color: #174232;
  background: var(--mint);
  border-radius: 6px;
}

.round-text {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.round-answer {
  margin: 0;
  color: var(--muted);
  display: -webkit-box;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.surface-message {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(55, 93, 251, 0.18);
  border-radius: var(--radius);
  background: var(--sky);
}

.surface-message span {
  color: #42617e;
  font-size: 12px;
  font-weight: 800;
}

.surface-message strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.sim-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 10px;
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 12px;
  color: var(--ink);
  border: 1px solid rgba(23, 32, 38, 0.13);
  border-radius: var(--radius);
  background: white;
}

.ghost-button svg {
  width: 16px;
  height: 16px;
}

.context-window-card {
  min-height: 318px;
  padding: 14px;
}

.context-window-top {
  align-items: center;
  margin-bottom: 10px;
}

.context-window-top strong {
  color: #7b8084;
  font-size: 16px;
  font-weight: 700;
}

.context-window-top span {
  font-size: 16px;
  font-weight: 800;
}

.context-progress {
  display: flex;
  overflow: hidden;
  height: 8px;
  margin-bottom: 13px;
  border-radius: 999px;
  background: #e5e7e7;
}

.context-progress span {
  display: block;
  min-width: 2px;
  transform-origin: left center;
}

.context-rows {
  display: grid;
  gap: 5px;
}

.context-row {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  color: #20262b;
  font-size: 14px;
  line-height: 1.3;
}

.context-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.context-row .context-size {
  color: #7b8084;
  font-variant-numeric: tabular-nums;
}

.context-row .context-percent {
  min-width: 46px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.window-note {
  margin: 10px 0 0;
  padding: 10px;
  color: #47615b;
  background: var(--mint);
  border: 1px solid rgba(31, 157, 120, 0.16);
  border-radius: var(--radius);
  font-size: 12px;
  line-height: 1.45;
}

.packing-lab {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  padding: 12px;
}

.packing-head {
  margin-bottom: 8px;
}

.packing-head > div > span {
  display: block;
  margin-top: 3px;
}

.pack-flow {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(220px, 1fr) minmax(220px, 0.9fr);
  gap: 10px;
  align-items: stretch;
}

.pack-source,
.request-box,
.model-core {
  min-height: 130px;
  border: 1px solid rgba(23, 32, 38, 0.11);
  border-radius: var(--radius);
}

.pack-source {
  padding: 10px;
  background: #f8faf9;
}

.source-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.pack-items,
.request-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pack-chip,
.request-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  will-change: transform;
}

.pack-chip {
  color: var(--ink);
  background: white;
  border: 1px solid rgba(23, 32, 38, 0.11);
}

.request-box {
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(223, 248, 237, 0.45), rgba(255, 255, 255, 0.92)),
    white;
}

.request-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.request-title svg {
  width: 18px;
  height: 18px;
  color: var(--green);
}

.request-chip {
  color: #174232;
  background: var(--mint);
  border: 1px solid rgba(31, 157, 120, 0.18);
}

.model-core {
  position: relative;
  overflow: hidden;
  background: #0f1a1e;
}

.model-core canvas {
  display: block;
  width: 100%;
  height: 130px;
}

.compare-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1.45fr);
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.compare-strip > div {
  min-height: 48px;
  padding: 9px 10px;
  border-radius: var(--radius);
  background: white;
  border: 1px solid rgba(23, 32, 38, 0.1);
}

.compare-strip span,
.compare-strip strong {
  display: block;
}

.compare-strip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.compare-strip strong {
  margin-top: 3px;
  font-size: 14px;
  line-height: 1.35;
}

.compare-strip svg {
  width: 22px;
  height: 22px;
  justify-self: center;
  color: var(--green);
}

.sr-only {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.chat-lab {
  overflow: hidden;
  border: 1px solid rgba(23, 32, 38, 0.13);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 12px 28px rgba(23, 32, 38, 0.08);
}

.conversation-list {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 246px;
  max-height: 288px;
  padding: 16px;
  overflow: auto;
  background:
    linear-gradient(180deg, #f7faf9, #ffffff 42%),
    white;
}

.chat-bubble {
  max-width: 92%;
  padding: 14px 15px;
  border-radius: var(--radius);
  font-size: 15px;
  line-height: 1.65;
}

.chat-bubble.user {
  justify-self: end;
  color: white;
  background: var(--night);
}

.chat-bubble.assistant {
  justify-self: start;
  color: var(--ink);
  background: #eef7ff;
  border: 1px solid #cadef8;
}

.chat-bubble.system {
  justify-self: center;
  max-width: 100%;
  padding: 8px 10px;
  color: #55706a;
  background: var(--mint);
  border: 1px solid rgba(31, 157, 120, 0.18);
  font-size: 12px;
  font-weight: 800;
}

.typing-caret::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 1.15em;
  margin-left: 3px;
  vertical-align: -0.18em;
  background: var(--green);
  animation: blink 0.8s steps(2, start) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid rgba(23, 32, 38, 0.09);
  background: #fbfdfc;
}

.chat-input-wrap {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(23, 32, 38, 0.13);
  border-radius: var(--radius);
  background: white;
}

.chat-input-wrap input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  color: var(--ink);
  background: transparent;
}

.send-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  color: white;
  border: 1px solid rgba(31, 157, 120, 0.18);
  border-radius: var(--radius);
  background: var(--green);
  box-shadow: 0 9px 18px rgba(31, 157, 120, 0.2);
}

.send-button svg {
  width: 17px;
  height: 17px;
}

.behind-panel {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(23, 32, 38, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.behind-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.behind-head strong,
.behind-head span {
  display: block;
}

.behind-head strong {
  font-size: 15px;
}

.behind-head span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.status-pill {
  display: inline-flex !important;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  color: #174232 !important;
  background: var(--mint);
  border-radius: 999px;
  font-size: 12px !important;
  font-weight: 800;
  white-space: nowrap;
}

.thinking-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.thinking-step {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 8px;
  color: var(--muted);
  border: 1px solid rgba(23, 32, 38, 0.1);
  border-radius: 6px;
  background: white;
  font-size: 12px;
  font-weight: 800;
}

.thinking-step svg {
  width: 15px;
  height: 15px;
}

.thinking-step.is-active {
  color: #174232;
  border-color: rgba(31, 157, 120, 0.28);
  background: var(--mint);
}

.pipeline {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  border: 1px solid rgba(23, 32, 38, 0.12);
  border-radius: var(--radius);
  background: #0f1a1e;
}

#networkCanvas {
  display: block;
  width: 100%;
  height: 150px;
}

.model-core #networkCanvas {
  height: 130px;
}

.core-label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 28px);
  padding: 8px 10px;
  color: #d7fff0;
  background: rgba(16, 23, 27, 0.76);
  border: 1px solid rgba(223, 248, 237, 0.22);
  border-radius: 999px;
  font-size: 13px;
}

.context-lane {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.context-card {
  min-height: 74px;
  padding: 12px;
  border: 1px solid rgba(23, 32, 38, 0.11);
  border-radius: var(--radius);
  background: white;
}

.context-card strong,
.context-card span {
  display: block;
}

.context-card strong {
  margin-bottom: 8px;
  font-size: 14px;
}

.context-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.token-meter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.token {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  color: #174232;
  background: var(--mint);
  border: 1px solid rgba(31, 157, 120, 0.18);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}

.light-band {
  background: rgba(255, 255, 255, 0.58);
  border-top: 1px solid rgba(23, 32, 38, 0.08);
  border-bottom: 1px solid rgba(23, 32, 38, 0.08);
}

.module-band {
  padding-top: 58px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-heading.compact {
  max-width: 640px;
}

.section-heading h2 + p,
.section-heading p:last-child {
  margin: 14px 0 0;
  font-size: 17px;
}

.module-rhythm {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.rhythm-card {
  min-height: 214px;
  padding: 24px;
}

.rhythm-card svg {
  width: 26px;
  height: 26px;
  margin-bottom: 36px;
  color: var(--green);
}

.rhythm-card p {
  margin: 14px 0 0;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 0.58fr);
  gap: 44px;
  align-items: start;
}

.basics-band {
  padding-top: 54px;
  padding-bottom: 54px;
}

.basics-layout {
  display: grid;
  grid-template-columns: minmax(390px, 0.94fr) minmax(560px, 1.06fr);
  gap: 24px;
  align-items: stretch;
}

.basics-left,
.basics-right {
  min-width: 0;
}

.basics-left {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 26px;
  border: 1px solid rgba(23, 32, 38, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 251, 249, 0.96)),
    white;
  box-shadow: var(--shadow-soft);
}

.basics-left h2 {
  font-size: 38px;
}

.basics-left > p {
  margin: 0;
  color: #38454d;
  font-size: 17px;
  line-height: 1.68;
}

.model-equation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr) 22px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(31, 157, 120, 0.2);
  border-radius: var(--radius);
  background: rgba(223, 248, 237, 0.42);
}

.model-equation span,
.model-equation strong {
  display: grid;
  place-items: center;
  min-height: 36px;
  padding: 0 8px;
  text-align: center;
  border: 1px solid rgba(23, 32, 38, 0.1);
  border-radius: 6px;
  background: white;
  font-size: 13px;
  font-weight: 900;
}

.model-equation strong {
  grid-column: 1 / -1;
  color: #174232;
  background: var(--mint);
}

.model-equation svg {
  width: 16px;
  height: 16px;
  justify-self: center;
  color: var(--green);
}

.foundation-points {
  display: grid;
  gap: 10px;
}

.foundation-points article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(23, 32, 38, 0.1);
  border-radius: var(--radius);
  background: white;
}

.foundation-points article > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 32px;
  color: #174232;
  background: var(--mint);
  border-radius: 6px;
  font-weight: 900;
}

.foundation-points h3 {
  font-size: 18px;
}

.foundation-points p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.basics-right {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
}

.model-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.model-type-grid .explain-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  min-height: 184px;
  padding: 16px;
}

.model-type-grid .panel-icon {
  width: 42px;
  height: 42px;
}

.model-type-grid .explain-panel h3 {
  font-size: 19px;
}

.model-type-grid .explain-panel p {
  margin: 0;
  font-size: 13px;
  line-height: 1.58;
}

.model-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mini-sim-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  color: #174232;
  border: 1px solid rgba(31, 157, 120, 0.2);
  border-radius: 6px;
  background: var(--mint);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.mini-sim-button svg {
  width: 14px;
  height: 14px;
}

.mini-sim-button:hover,
.mini-sim-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(31, 157, 120, 0.16);
  outline: none;
}

.basics-right .training-panel,
.basics-right .memory-demo {
  padding: 18px;
}

.basics-right .timeline-head {
  margin-bottom: 14px;
}

.basics-right .timeline-head h3 {
  font-size: 21px;
}

.basics-right .track-step {
  min-height: 94px;
  padding: 12px;
}

.basics-right .track-step span {
  margin-top: 9px;
  font-size: 12px;
  line-height: 1.5;
}

.basics-right .memory-demo {
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 18px;
}

.basics-right .memory-demo h3 {
  font-size: 21px;
}

.basics-right .memory-demo p {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.65;
}

.basics-right .memory-stack {
  gap: 7px;
}

.basics-right .memory-stack span {
  padding: 8px 10px;
  font-size: 12px;
}

.sticky-copy {
  position: sticky;
  top: 108px;
}

.stacked-panels {
  display: grid;
  gap: 14px;
}

.explain-panel {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  padding: 20px;
}

.panel-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: var(--green);
  background: var(--mint);
  border-radius: var(--radius);
}

.explain-panel p {
  margin: 10px 0 0;
}

.training-panel,
.memory-demo {
  padding: 22px;
}

.timeline-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.timeline-head span {
  max-width: 220px;
  font-size: 13px;
  text-align: right;
}

.training-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.track-step {
  min-height: 116px;
  padding: 14px;
  border: 1px solid rgba(23, 32, 38, 0.11);
  border-radius: var(--radius);
  background: #f5f8f9;
}

.track-step.is-hot {
  background: var(--apricot);
  border-color: rgba(255, 107, 74, 0.22);
}

.track-step strong,
.track-step span {
  display: block;
}

.track-step span {
  margin-top: 12px;
  font-size: 13px;
}

.memory-demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 22px;
  align-items: center;
  background: var(--night);
  color: white;
}

.memory-demo p {
  color: #c8d4d0;
}

.memory-stack {
  display: grid;
  gap: 8px;
}

.memory-stack span {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--night);
  background: var(--mint);
  font-size: 13px;
  font-weight: 800;
}

.vendor-band {
  background:
    linear-gradient(90deg, rgba(223, 248, 237, 0.45), transparent 34%),
    linear-gradient(180deg, rgba(232, 241, 255, 0.55), transparent 42%),
    var(--paper);
}

.vendor-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.vendor-card {
  min-height: 190px;
  padding: 22px;
}

.vendor-dot {
  display: block;
  width: 34px;
  height: 6px;
  margin-bottom: 28px;
  border-radius: 999px;
  background: var(--green);
}

.vendor-dot.openai {
  background: var(--green);
}

.vendor-dot.anthropic {
  background: var(--coral);
}

.vendor-dot.google {
  background: var(--blue);
}

.vendor-dot.china {
  background: var(--yellow);
}

.vendor-dot.open {
  background: #7d5dfc;
}

.vendor-dot.media {
  background: #111827;
}

.tools-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  max-width: none;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(100%, 340px);
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(23, 32, 38, 0.14);
  border-radius: var(--radius);
  background: white;
}

.search-box svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: none;
  color: var(--ink);
  background: transparent;
}

.tool-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.filter-button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(23, 32, 38, 0.12);
  border-radius: 999px;
  color: var(--muted);
  background: white;
  font-size: 14px;
}

.filter-button.is-active {
  color: white;
  border-color: var(--night);
  background: var(--night);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.tool-card {
  display: grid;
  gap: 12px;
  min-height: 214px;
  padding: 18px;
}

.tool-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tool-card h3 {
  font-size: 19px;
}

.tool-card p {
  margin: 0;
  font-size: 14px;
}

.tool-card .tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  color: #174232;
  background: var(--mint);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.tool-actions {
  align-self: end;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.tool-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(31, 157, 120, 0.2);
  border-radius: 6px;
  color: var(--green);
  background: rgba(223, 248, 237, 0.55);
  font-size: 13px;
  font-weight: 800;
}

.tool-link.is-secondary {
  color: var(--blue);
  border-color: rgba(55, 93, 251, 0.18);
  background: var(--sky);
}

.tool-link:hover,
.tool-link:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(23, 32, 38, 0.08);
  outline: none;
}

.dark-band {
  color: white;
  background:
    linear-gradient(90deg, rgba(31, 157, 120, 0.18), transparent),
    var(--night);
}

.dark-band .eyebrow {
  color: #91f0cb;
}

.dark-band p {
  color: #c9d5d1;
  line-height: 1.7;
}

.flow-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.4fr) minmax(0, 0.6fr);
  gap: 40px;
  align-items: center;
}

.agent-loop {
  display: none;
}

.resource-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.resource-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 8px 14px;
  min-height: 132px;
  padding: 18px;
}

.resource-card svg {
  grid-row: span 2;
  width: 28px;
  height: 28px;
  color: var(--green);
}

.resource-card span {
  font-size: 14px;
}

.lab-band {
  padding-top: 64px;
  background:
    linear-gradient(180deg, rgba(232, 241, 255, 0.35), transparent 30%),
    var(--paper);
}

.lab-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.lab-panel {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(23, 32, 38, 0.12);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.lab-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.lab-head h3 {
  margin-top: 10px;
  font-size: 23px;
}

.lab-head p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.lab-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  color: #174232;
  background: var(--mint);
  border: 1px solid rgba(31, 157, 120, 0.18);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.lab-switch {
  flex: 0 0 auto;
}

.panel-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.lab-note {
  margin: 0;
  padding: 9px 11px;
  color: #47615b;
  background: var(--mint);
  border: 1px solid rgba(31, 157, 120, 0.16);
  border-radius: var(--radius);
  font-size: 12.5px;
  line-height: 1.5;
}

.lab-note.is-dim {
  color: var(--muted);
  background: #f4f7f5;
  border-color: rgba(23, 32, 38, 0.09);
}

.wordlab-body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 14px;
  align-items: stretch;
}

.sentence-panel,
.candidate-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(23, 32, 38, 0.1);
  border-radius: var(--radius);
  background: #fbfdfc;
}

.sentence-panel {
  grid-template-rows: auto minmax(0, 1fr) auto auto;
}

.sentence-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  align-content: flex-start;
  min-height: 96px;
  padding: 12px;
  border: 1px solid rgba(23, 32, 38, 0.1);
  border-radius: var(--radius);
  background: white;
  font-size: 17px;
  line-height: 1.5;
}

.sentence-seed {
  color: var(--muted);
  font-weight: 700;
}

.sentence-word {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  color: #174232;
  background: var(--mint);
  border: 1px solid rgba(31, 157, 120, 0.22);
  border-radius: 6px;
  font-weight: 800;
}

.sentence-word.is-end {
  background: white;
  color: var(--ink);
  border-color: rgba(23, 32, 38, 0.14);
}

.sentence-caret {
  display: inline-block;
  width: 9px;
  height: 1.2em;
  background: var(--green);
  border-radius: 2px;
  animation: blink 0.85s steps(2, start) infinite;
}

.wordlab-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.candidate-list {
  display: grid;
  align-content: start;
  gap: 8px;
}

.candidate-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  overflow: hidden;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(23, 32, 38, 0.12);
  border-radius: var(--radius);
  background: white;
  text-align: left;
}

.candidate-option:hover,
.candidate-option:focus-visible {
  outline: none;
  border-color: rgba(31, 157, 120, 0.5);
  box-shadow: 0 0 0 3px rgba(31, 157, 120, 0.12);
}

.candidate-bar {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, rgba(31, 157, 120, 0.16), rgba(31, 157, 120, 0.05));
  pointer-events: none;
}

.candidate-option strong {
  position: relative;
  font-size: 15px;
}

.candidate-option em {
  position: relative;
  color: var(--green);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.candidate-done {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding: 14px;
  border: 1px dashed rgba(31, 157, 120, 0.35);
  border-radius: var(--radius);
  background: rgba(223, 248, 237, 0.4);
}

.candidate-done svg {
  width: 26px;
  height: 26px;
  color: var(--green);
}

.candidate-done p {
  margin: 0;
  color: #2f4c43;
  font-size: 13.5px;
  line-height: 1.6;
}

.token-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.token-box {
  width: 100%;
}

.token-presets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.token-output {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-content: flex-start;
  min-height: 86px;
  padding: 12px;
  border: 1px solid rgba(23, 32, 38, 0.1);
  border-radius: var(--radius);
  background: #fbfdfc;
}

.token-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 8px;
  border-radius: 6px;
  font-family: "SFMono-Regular", Consolas, "Menlo", monospace;
  font-size: 13px;
  font-weight: 700;
}

.token-stats {
  display: flex;
  align-items: baseline;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}

.token-stats strong {
  color: var(--green);
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

.token-stats-note {
  margin-left: auto;
  font-size: 12px;
}

.window-scale {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(23, 32, 38, 0.1);
  border-radius: var(--radius);
  background: #fbfdfc;
}

.scale-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) minmax(120px, auto);
  gap: 10px;
  align-items: center;
}

.scale-row em {
  color: var(--ink);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.scale-row small {
  color: var(--muted);
  font-size: 12px;
}

.scale-bar {
  display: block;
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: #e8ecea;
}

.scale-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), #63c9a8);
}

.sim-mode {
  flex: 0 0 auto;
}

.context-workbench.mode-story .prompt-inspector {
  display: none;
}

.context-workbench.mode-pro .story-stage {
  display: none;
}

.story-stage {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 12px;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 16px;
  border: 1px solid rgba(23, 32, 38, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(23, 32, 38, 0.07);
}

.story-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.story-head h3 {
  font-size: 22px;
}

.story-head span {
  display: block;
  max-width: 560px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.story-shelf {
  padding: 12px;
  border: 1px solid rgba(23, 32, 38, 0.1);
  border-radius: var(--radius);
  background: #fbfdfc;
}

.story-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.story-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 10px;
  color: var(--ink);
  border: 1px solid rgba(23, 32, 38, 0.12);
  border-left: 4px solid var(--chip-color, var(--green));
  border-radius: 6px;
  background: white;
  font-size: 12.5px;
  font-weight: 800;
}

.story-flight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 128px;
}

.story-envelope,
.story-model {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 16px;
  border-radius: var(--radius);
  text-align: center;
}

.story-envelope {
  border: 1px solid rgba(31, 157, 120, 0.24);
  background: rgba(223, 248, 237, 0.5);
  color: #174232;
}

.story-envelope svg,
.story-model svg {
  width: 26px;
  height: 26px;
}

.story-envelope span {
  font-size: 13px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.story-arrow {
  display: grid;
  place-items: center;
  color: var(--green);
}

.story-arrow svg {
  width: 30px;
  height: 30px;
}

.story-model {
  color: #d7fff0;
  border: 1px solid rgba(223, 248, 237, 0.2);
  background: var(--night);
}

.story-model span {
  color: #a9c7bd;
  font-size: 12px;
  line-height: 1.45;
}

.story-reply {
  padding: 12px;
  border: 1px solid rgba(23, 32, 38, 0.1);
  border-radius: var(--radius);
  background: #f7fbfa;
}

.story-reply p {
  min-height: 3.2em;
  margin: 0;
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.7;
}

.chat-divider {
  display: grid;
  place-items: center;
  margin: 4px 0;
}

.chat-divider span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 11px;
  color: #8a3d22;
  background: var(--apricot);
  border: 1px solid rgba(255, 107, 74, 0.25);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 900;
}

.compare-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.dark-band .prompt-chip {
  color: #c9d5d1;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

.dark-band .prompt-chip.is-selected {
  color: var(--night);
  background: #91f0cb;
  border-color: transparent;
}

.compare-duel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.duel-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 300px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
}

.duel-card.is-tooled {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  border-color: rgba(145, 240, 203, 0.34);
  background: rgba(31, 157, 120, 0.1);
}

.duel-card header {
  display: grid;
  gap: 8px;
}

.duel-tag {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 900;
}

.duel-card.is-bare .duel-tag {
  color: #ffc9b8;
  background: rgba(255, 107, 74, 0.14);
  border: 1px solid rgba(255, 107, 74, 0.3);
}

.duel-card.is-tooled .duel-tag {
  color: #91f0cb;
  background: rgba(31, 157, 120, 0.16);
  border: 1px solid rgba(145, 240, 203, 0.3);
}

.duel-card header strong {
  color: white;
  font-size: 16px;
  line-height: 1.45;
}

.duel-body {
  min-height: 74px;
  margin: 0;
  padding: 12px;
  color: #e3edea;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(16, 23, 27, 0.55);
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-line;
}

.duel-steps {
  display: grid;
  gap: 6px;
}

.duel-step {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 10px;
  color: #9db4ac;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 700;
  opacity: 0.55;
}

.duel-step svg {
  width: 14px;
  height: 14px;
}

.duel-step.is-done {
  color: #baf3dc;
  border-style: solid;
  border-color: rgba(145, 240, 203, 0.4);
  background: rgba(31, 157, 120, 0.14);
  opacity: 1;
}

.duel-card footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: 46px;
}

.duel-verdict {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.duel-verdict.is-bad {
  color: #ffc9b8;
  background: rgba(255, 107, 74, 0.16);
  border: 1px solid rgba(255, 107, 74, 0.34);
}

.duel-verdict.is-good {
  color: #91f0cb;
  background: rgba(31, 157, 120, 0.18);
  border: 1px solid rgba(145, 240, 203, 0.34);
}

.duel-card footer p {
  margin: 0;
  color: #b7c6c1;
  font-size: 12.5px;
  line-height: 1.55;
}

.agent-intro {
  display: grid;
  grid-template-columns: minmax(300px, 0.42fr) minmax(0, 0.58fr);
  gap: 34px;
  align-items: start;
  margin-top: 46px;
  padding-top: 38px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.agent-intro h3 {
  color: white;
  font-size: 26px;
}

.agent-intro p {
  margin: 12px 0 0;
  font-size: 15px;
}

.agent-copy > p strong {
  color: #91f0cb;
}

.agent-signals {
  margin-top: 20px;
  padding: 14px;
  border: 1px solid rgba(145, 240, 203, 0.24);
  border-radius: var(--radius);
  background: rgba(31, 157, 120, 0.1);
}

.agent-signals strong {
  display: block;
  color: #baf3dc;
  font-size: 13.5px;
}

.agent-signals ul {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.agent-signals li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  color: #d5e3de;
  font-size: 13px;
  line-height: 1.5;
}

.agent-signals em {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--night);
  background: #91f0cb;
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.chat-way {
  margin-top: 14px;
  padding: 13px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.chat-way > span {
  display: block;
  color: #9db4ac;
  font-size: 12px;
  font-weight: 900;
}

.chat-way p {
  margin: 8px 0 0;
  color: #cfdad6;
  font-size: 13px;
  line-height: 1.6;
}

.chat-way small {
  display: block;
  margin-top: 8px;
  color: #ffc9b8;
  font-size: 12px;
}

.agent-theater {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(145, 240, 203, 0.2);
  border-radius: var(--radius);
  background: rgba(16, 23, 27, 0.55);
}

.theater-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.theater-task > span {
  display: block;
  color: #9db4ac;
  font-size: 12px;
  font-weight: 900;
}

.theater-task strong {
  display: block;
  margin-top: 5px;
  color: white;
  font-size: 17px;
  line-height: 1.45;
}

.theater-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.theater-picker {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.loop-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.loop-chip {
  display: grid;
  place-items: center;
  min-height: 34px;
  padding: 4px 6px;
  color: #9db4ac;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  transition: all 0.25s ease;
}

.loop-chip.is-live {
  color: var(--night);
  background: #91f0cb;
  border-color: transparent;
  box-shadow: 0 0 14px rgba(145, 240, 203, 0.35);
}

.loop-chip.is-done {
  color: #baf3dc;
  border-color: rgba(145, 240, 203, 0.34);
  background: rgba(31, 157, 120, 0.14);
}

.agent-log {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 300px;
  max-height: 380px;
  overflow: auto;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(15, 26, 30, 0.85);
}

.log-placeholder {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 60px 20px;
  color: #7d948c;
  text-align: center;
  font-size: 13px;
}

.log-placeholder svg {
  width: 26px;
  height: 26px;
}

.log-entry {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}

.log-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 8px;
  color: #9db4ac;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 900;
  white-space: nowrap;
}

.log-badge svg {
  width: 13px;
  height: 13px;
}

.log-entry.is-tool .log-badge {
  color: #a5c8ff;
  border-color: rgba(127, 177, 255, 0.36);
  background: rgba(55, 93, 251, 0.14);
}

.log-entry.is-result .log-badge {
  color: #f4d56a;
  border-color: rgba(244, 213, 106, 0.36);
  background: rgba(231, 180, 22, 0.12);
}

.log-entry.is-fix {
  border-color: rgba(255, 107, 74, 0.4);
  background: rgba(255, 107, 74, 0.08);
}

.log-entry.is-fix .log-badge {
  color: #ffc9b8;
  border-color: rgba(255, 107, 74, 0.4);
  background: rgba(255, 107, 74, 0.14);
}

.log-entry.is-done {
  border-color: rgba(145, 240, 203, 0.4);
  background: rgba(31, 157, 120, 0.12);
}

.log-entry.is-done .log-badge {
  color: var(--night);
  background: #91f0cb;
  border-color: transparent;
}

.log-body strong {
  display: block;
  color: white;
  font-size: 13.5px;
}

.log-body p {
  margin: 6px 0 0;
  color: #c3d2cd;
  font-size: 13px;
  line-height: 1.6;
}

.log-tool {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 8px;
  color: #a5c8ff;
  border: 1px solid rgba(127, 177, 255, 0.28);
  border-radius: 6px;
  background: rgba(16, 23, 27, 0.8);
  font-family: "SFMono-Regular", Consolas, "Menlo", monospace;
  font-size: 11.5px;
}

.theater-note {
  margin: 0;
  color: #9db4ac;
  font-size: 12.5px;
  line-height: 1.55;
}

.theater-note strong {
  color: #ffc9b8;
}

.coding-band {
  padding-top: 72px;
}

.coding-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  gap: 22px;
  align-items: start;
}

.coding-flow {
  display: grid;
  gap: 12px;
}

.coding-step {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(23, 32, 38, 0.12);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.coding-step > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 38px;
  color: #174232;
  background: var(--mint);
  border-radius: 8px;
  font-size: 17px;
  font-weight: 900;
}

.coding-step h3 {
  font-size: 19px;
}

.coding-step p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.coding-demo {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(23, 32, 38, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(246, 250, 248, 0.98)),
    white;
  box-shadow: var(--shadow);
}

.coding-demo-head strong {
  display: block;
  font-size: 17px;
}

.coding-demo-head span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12.5px;
}

.coding-prompt {
  margin: 0;
  padding: 14px;
  color: #dfeee9;
  border-radius: var(--radius);
  background: var(--night);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", "Menlo", monospace;
  font-size: 12.5px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.coding-demo .ghost-button {
  justify-self: start;
}

.coding-tips {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.coding-tips li {
  padding: 10px 12px;
  color: var(--muted);
  border: 1px solid rgba(23, 32, 38, 0.09);
  border-radius: 6px;
  background: white;
  font-size: 13px;
  line-height: 1.55;
}

.coding-tips strong {
  color: var(--ink);
}

.tool-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.access-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 900;
  white-space: nowrap;
}

.access-chip.is-cn {
  color: #174232;
  background: rgba(223, 248, 237, 0.8);
  border: 1px solid rgba(31, 157, 120, 0.22);
}

.access-chip.is-vpn {
  color: #8a3d22;
  background: var(--apricot);
  border: 1px solid rgba(255, 107, 74, 0.24);
}

.vendor-dot.xai {
  background: #0ea5e9;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 26px;
  color: var(--muted);
  text-align: center;
}

.takeaway-band {
  padding-top: 40px;
}

.takeaway-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 34px;
  padding: 34px;
  color: white;
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(31, 157, 120, 0.22), transparent 46%),
    radial-gradient(circle at 86% 12%, rgba(127, 177, 255, 0.2), transparent 40%),
    var(--night);
  box-shadow: var(--shadow);
}

.takeaway-copy .eyebrow {
  color: #91f0cb;
}

.takeaway-copy h2 {
  font-size: 34px;
}

.takeaway-rules {
  display: grid;
  gap: 14px;
  margin: 22px 0 0;
  padding: 0 0 0 22px;
}

.takeaway-rules li {
  padding-left: 6px;
}

.takeaway-rules li::marker {
  color: #91f0cb;
  font-weight: 900;
}

.takeaway-rules strong {
  display: block;
  font-size: 17px;
}

.takeaway-rules span {
  display: block;
  margin-top: 5px;
  color: #b7c6c1;
  font-size: 13.5px;
  line-height: 1.6;
}

.takeaway-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.takeaway-actions .ghost-button {
  color: white;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.24);
}

.takeaway-list {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
}

.takeaway-list strong {
  font-size: 16px;
}

.takeaway-list ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.takeaway-list li {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 36px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(16, 23, 27, 0.5);
  font-size: 13px;
}

.takeaway-list em {
  color: #91f0cb;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.takeaway-list p {
  margin: 0;
  color: #9fb1ab;
  font-size: 12.5px;
  line-height: 1.55;
}

.metaphor-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1fr) 26px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 26px;
  padding: 16px;
  border: 1px solid rgba(31, 157, 120, 0.2);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(223, 248, 237, 0.55), rgba(232, 241, 255, 0.4)),
    white;
}

.metaphor-role {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 12px 10px;
  text-align: center;
  border: 1px solid rgba(23, 32, 38, 0.1);
  border-radius: var(--radius);
  background: white;
}

.metaphor-emoji {
  font-size: 26px;
  line-height: 1;
}

.metaphor-role strong {
  font-size: 15px;
}

.metaphor-role small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.metaphor-banner > svg {
  width: 20px;
  height: 20px;
  justify-self: center;
  color: var(--green);
}

.menu-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 26px;
  align-items: start;
}

.menu-board {
  overflow: hidden;
  border: 2px solid #2c2318;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 252, 244, 0.97), rgba(252, 246, 233, 0.97)),
    #fcf6e9;
  box-shadow: var(--shadow);
}

.menu-board-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 18px;
  color: #fdf6e3;
  background: #2c2318;
  text-align: center;
}

.menu-board-head strong {
  display: block;
  font-size: 18px;
  letter-spacing: 2px;
}

.menu-board-head small {
  display: block;
  margin-top: 3px;
  color: #cbb98e;
  font-size: 12px;
  letter-spacing: 1px;
}

.menu-star {
  color: #e7b416;
  font-size: 14px;
}

.menu-list {
  display: grid;
  max-height: 560px;
  overflow: auto;
  padding: 10px;
}

.menu-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) minmax(20px, auto) auto;
  gap: 10px;
  align-items: center;
  min-height: 56px;
  padding: 8px 10px;
  border: 0;
  border-bottom: 1px dashed rgba(44, 35, 24, 0.18);
  border-radius: 6px;
  background: transparent;
  text-align: left;
}

.menu-item:last-child {
  border-bottom: 0;
}

.menu-item:hover,
.menu-item:focus-visible {
  outline: none;
  background: rgba(231, 180, 22, 0.12);
}

.menu-item.is-active {
  background: rgba(231, 180, 22, 0.2);
  box-shadow: inset 3px 0 0 #b98a12;
}

.menu-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(44, 35, 24, 0.14);
  border-radius: 8px;
  background: white;
  font-size: 19px;
}

.menu-text {
  min-width: 0;
}

.menu-text strong {
  display: block;
  color: #2c2318;
  font-size: 15.5px;
}

.menu-text small {
  display: block;
  margin-top: 2px;
  color: #8a7a5c;
  font-size: 12px;
}

.menu-dots {
  align-self: end;
  height: 14px;
  border-bottom: 2px dotted rgba(44, 35, 24, 0.3);
}

.menu-price {
  color: #b98a12;
  font-size: 13px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.receipt-side {
  position: sticky;
  top: 96px;
}

.receipt-printer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 16px;
  color: #d9e2e8;
  border-radius: var(--radius) var(--radius) 4px 4px;
  background: linear-gradient(180deg, #3a464e, #2a343b);
  box-shadow: var(--shadow);
}

.receipt-printer strong {
  font-size: 13.5px;
  letter-spacing: 1px;
}

.printer-light {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #4ade80;
  box-shadow: 0 0 8px 1px rgba(74, 222, 128, 0.45);
}

.printer-slot-line {
  flex: 1;
  height: 5px;
  margin-left: 6px;
  border-radius: 999px;
  background: #171e23;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.7);
}

.receipt-slot {
  position: relative;
  z-index: 1;
  overflow: hidden;
  margin: 0 10px;
  padding-bottom: 6px;
}

.receipt-paper {
  position: relative;
  padding: 16px 18px 22px;
  color: #333a35;
  background:
    repeating-linear-gradient(0deg, rgba(23, 32, 38, 0.014) 0 2px, transparent 2px 4px),
    #fffdf8;
  border: 1px solid rgba(23, 32, 38, 0.12);
  border-top: 0;
  box-shadow: 0 14px 30px rgba(23, 32, 38, 0.14);
  font-family: "SFMono-Regular", Consolas, "Menlo", "PingFang SC", monospace;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7px), 96% 100%, 92% calc(100% - 7px), 88% 100%, 84% calc(100% - 7px), 80% 100%, 76% calc(100% - 7px), 72% 100%, 68% calc(100% - 7px), 64% 100%, 60% calc(100% - 7px), 56% 100%, 52% calc(100% - 7px), 48% 100%, 44% calc(100% - 7px), 40% 100%, 36% calc(100% - 7px), 32% 100%, 28% calc(100% - 7px), 24% 100%, 20% calc(100% - 7px), 16% 100%, 12% calc(100% - 7px), 8% 100%, 4% calc(100% - 7px), 0 100%);
}

.receipt-head {
  display: grid;
  gap: 3px;
  margin-bottom: 12px;
  text-align: center;
}

.receipt-head strong {
  font-size: 17px;
  letter-spacing: 4px;
}

.receipt-head span {
  color: #7d857f;
  font-size: 11.5px;
  letter-spacing: 1px;
}

.receipt-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.receipt-icon {
  font-size: 22px;
}

.receipt-dish strong {
  display: block;
  font-size: 16px;
}

.receipt-dish small {
  display: block;
  margin-top: 2px;
  color: #7d857f;
  font-size: 11.5px;
}

.receipt-dish em {
  color: #b98a12;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.receipt-divider {
  height: 0;
  margin: 12px 0;
  border-top: 1px dashed rgba(51, 58, 53, 0.35);
}

.receipt-block {
  margin-bottom: 10px;
}

.receipt-block:last-of-type {
  margin-bottom: 0;
}

.receipt-label {
  display: block;
  margin-bottom: 4px;
  color: #1f9d78;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 1px;
}

.receipt-block p {
  margin: 0;
  font-size: 13px;
  line-height: 1.68;
}

.receipt-foot {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}

.receipt-foot span:first-child {
  color: #7d857f;
  font-size: 11px;
  letter-spacing: 1px;
}

.receipt-barcode {
  width: 72%;
  height: 26px;
  background:
    repeating-linear-gradient(90deg, #333a35 0 2px, transparent 2px 4px, #333a35 4px 7px, transparent 7px 9px, #333a35 9px 10px, transparent 10px 13px);
}


@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1120px) {
  h1 {
    font-size: 52px;
  }

  .topbar {
    flex-wrap: wrap;
  }

  .brand,
  .top-actions {
    min-width: 0;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .stage-grid,
  .split-layout,
  .basics-layout,
  .flow-layout,
  .context-workbench,
  .prompt-viewer-layout,
  .model-sim-body,
  .lab-grid,
  .coding-layout,
  .takeaway-panel,
  .agent-intro {
    grid-template-columns: 1fr;
  }

  .coding-demo {
    position: static;
  }

  .stage-grid {
    min-height: 0;
  }

  .simulator-board {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .context-left-rail {
    grid-template-columns: minmax(0, 1fr) 340px;
    grid-template-rows: auto;
  }

  .sticky-copy,
  .receipt-side {
    position: static;
  }

  .tool-grid,
  .vendor-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .simulator-shell {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
}

@media (max-width: 820px) {
  .band {
    padding: 62px 18px;
  }

  .topbar {
    padding: 10px 16px;
  }

  .brand small,
  .main-nav {
    display: none;
  }

  .top-actions {
    width: 100%;
    justify-content: space-between;
  }

  h1 {
    font-size: 38px;
  }

  h1 span {
    display: inline;
    white-space: normal;
  }

  h2 {
    font-size: 30px;
  }

  .lead {
    font-size: 17px;
  }

  .talk-plan,
  .agenda-panel .talk-plan,
  .module-rhythm,
  .simulator-shell,
  .pack-flow,
  .context-left-rail,
  .context-lane,
  .model-type-grid,
  .training-track,
  .tool-grid,
  .vendor-map,
  .resource-list,
  .agent-loop,
  .wordlab-body,
  .token-input-row,
  .compare-duel,
  .story-flight {
    grid-template-columns: 1fr;
  }

  .lab-head {
    display: grid;
  }

  .lab-switch {
    justify-self: start;
  }

  .story-arrow svg {
    transform: rotate(90deg);
  }

  .scale-row {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .scale-row small {
    grid-column: 2;
  }

  .token-stats-note {
    display: none;
  }

  .duel-card {
    min-height: 0;
  }

  .takeaway-panel {
    padding: 22px;
  }

  .takeaway-copy h2 {
    font-size: 28px;
  }

  .agenda-route {
    grid-template-columns: 1fr;
  }

  .agenda-route svg {
    transform: rotate(90deg);
  }

  .simulator-page {
    padding-top: 22px;
    padding-bottom: 28px;
  }

  .simulator-board {
    padding: 12px;
  }

  .simulator-title-row,
  .prompt-toolbar {
    display: grid;
  }

  .simulator-title-row h2 {
    font-size: 28px;
  }

  .simulator-controls,
  .prompt-actions {
    justify-content: stretch;
  }

  .simulator-controls .ghost-button,
  .simulator-controls .send-button,
  .prompt-actions .ghost-button {
    flex: 1;
  }

  .demo-console {
    padding: 16px;
  }

  .chat-bubble {
    max-width: 100%;
  }

  .dialogue-column,
  .context-window-card {
    min-height: 0;
  }

  .pack-flow {
    gap: 10px;
  }

  .compare-strip {
    grid-template-columns: 1fr;
  }

  .compare-strip svg {
    transform: rotate(90deg);
  }

  .memory-demo {
    grid-template-columns: 1fr;
  }

  .basics-band {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .basics-left {
    padding: 20px;
  }

  .model-equation {
    grid-template-columns: 1fr;
  }

  .model-equation svg {
    transform: rotate(90deg);
  }

  .basics-right .memory-demo {
    grid-template-columns: 1fr;
  }

  .model-sim-modal {
    padding: 16px;
  }

  .model-sim-body {
    padding: 12px;
  }

  .menu-layout {
    grid-template-columns: 1fr;
  }

  .receipt-side {
    position: static;
  }

  .metaphor-banner {
    grid-template-columns: 1fr;
  }

  .metaphor-banner > svg {
    transform: rotate(90deg);
  }

  .tools-heading {
    display: grid;
  }

  .search-box {
    width: 100%;
  }

  .resource-card {
    min-height: 112px;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }

  .segmented {
    flex: 1 1 auto;
  }

  .segment {
    flex: 1;
    padding: 0 8px;
  }

  .icon-command span {
    display: none;
  }

  .icon-command {
    width: 44px;
    padding: 0;
  }

  .stage {
    padding-top: 38px;
  }

  h1 {
    font-size: 32px;
  }

  .console-head {
    align-items: center;
  }

  .console-head h2 {
    font-size: 22px;
  }

  .sim-actions {
    grid-template-columns: 1fr;
  }

  .context-window-top {
    align-items: flex-start;
    display: grid;
  }

  .context-row {
    grid-template-columns: 14px minmax(0, 1fr) auto;
  }

  .context-row .context-percent {
    display: none;
  }

  .pack-chip,
  .request-chip {
    max-width: 100%;
  }

  .timeline-head {
    display: block;
  }

  .timeline-head span {
    display: block;
    max-width: none;
    margin-top: 10px;
    text-align: left;
  }
}
