body { line-height: 1.55; }
.header-inner {
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px 22px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; min-height: 44px; white-space: nowrap; }
.brand-mark { display: block; flex: none; width: 54px; height: 34px; }
.wordmark { display: grid; gap: 4px; line-height: 1.08; }
.wordmark strong { font-size: 18px; font-weight: 700; letter-spacing: .045em; }
.wordmark small { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .22em; }
.nav { display: flex; align-items: center; gap: 5px; }
.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 550;
  border-radius: 8px;
  white-space: nowrap;
  transition: color .18s, background .18s;
}
.nav a:is(:hover,:focus-visible) { color: var(--nav-ink); background: var(--nav-hover); }
.nav a[aria-current] { color: var(--nav-ink); background: var(--nav-active); }
.header-actions { display: flex; justify-content: flex-end; }
.share-arrow { color: var(--blue); font-size: 15px; }
.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 16px;
  transform: translateY(calc(-100% - 15px));
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--page);
  background: var(--ink);
}
.skip-link:focus { transform: none; }

.back-link { display: inline-flex; align-items: center; min-height: 36px; gap: 6px; font-size: 14px; color: var(--blue); }
.back-link:is(:hover,:focus-visible) { text-decoration: underline; text-underline-offset: 4px; }
.intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 24px;
  margin: clamp(24px, 3.8vw, 55px) 0 clamp(22px, 3vw, 36px);
}
.intro h1 { font-size: clamp(34px,4.1vw,58px); font-weight: 680; line-height: 1.13; letter-spacing: -.033em; margin: 8px 0 0; }
.intro p { margin: 12px 0 0; color: var(--muted); font-size: clamp(15px,1.3vw,16px); line-height: 1.68; text-wrap: pretty; }
.history-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.history-heading h2 { font-size: clamp(20px,1.6vw,23px); margin: 0; font-weight: 650; line-height: 1.3; letter-spacing: -.02em; }
.history-heading p { font-size: 14px; color: var(--muted); margin: 5px 0 0; line-height: 1.58; text-wrap: pretty; }
tbody tr:hover { background: color-mix(in srgb,var(--ink) 2.5%,transparent); }
.row-action { font-weight: 550; }

@media (max-width: 760px) {
  .header-inner { min-height: 65px; gap: 8px; }
  .nav { gap: 2px; }
  .nav a { padding-inline: 10px; }
}
@media (max-width: 570px) {
  .header-inner { grid-template-columns: minmax(0,1fr) auto; gap: 0 12px; padding-block: 5px 8px; }
  .brand { gap: 8px; }
  .brand-mark { width: 44px; height: 28px; }
  .wordmark strong { font-size: 16px; }
  .wordmark small { font-size: 8px; }
  .desktop-label { display: none; }
  .nav { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 4px; }
  .nav a { padding-inline: 5px; }
  .intro { display: grid; margin-top: 20px; gap: 11px; }
  .intro p { margin-top: 8px; }
  .intro .guide-jump { display: flex; width: fit-content; min-height: 34px; margin: 3px 0 0; }
}

.guide-jump {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-weight: 650;
  white-space: nowrap;
  text-underline-offset: 4px;
}
.guide-jump:is(:hover,:focus-visible) { text-decoration: underline; }
.intro .guide-jump { margin-inline-start: 7px; }
.workspace-guide {
  --guide-panel: var(--panel,var(--surface));
  display: grid;
  grid-template-columns: minmax(0,1.09fr) minmax(0,.91fr);
  gap: clamp(18px,3.1vw,46px);
  align-items: center;
  margin-top: 28px;
  padding: clamp(15px,2.7vw,38px);
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--guide-panel);
}
.guide-media {
  position: relative;
  isolation: isolate;
  overflow: clip;
  min-width: 0;
  aspect-ratio: 1.8;
  border-radius: 10px;
  background: #000;
}
.guide-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.guide-video img { clip-path: inset(0); transition: transform .38s cubic-bezier(.24,.68,.26,1), clip-path .38s ease; }
[data-view="source"] .guide-video img { clip-path: inset(0 50% 0 0); transform: translateX(43%) scale(1.76); }
[data-view="response"] .guide-video img { clip-path: inset(0 0 0 50%); transform: translateX(-43%) scale(1.76); }
.guide-brain img { position: absolute; inset: 0; transition: opacity .24s ease; }
.guide-brain img[aria-hidden="true"] { opacity: 0; }
.guide-copy { min-width: 0; }
.guide-copy h2 { margin: 0; font-size: clamp(23px,2.4vw,32px); font-weight: 650; line-height: 1.28; letter-spacing: -.025em; text-wrap: balance; }
.guide-copy p { color: var(--muted); font-size: 15px; line-height: 1.64; text-wrap: pretty; }
.guide-copy > p { margin: 10px 0 0; }
.guide-options { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 17px; }
.guide-options button {
  min-height: 42px;
  padding: 7px 11px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--guide-panel);
  font-size: 14px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.guide-options button:is(:hover,[aria-pressed="true"]) {
  color: var(--blue);
  border-color: var(--blue);
  background: color-mix(in srgb,var(--guide-panel) 91%,var(--blue));
}
.guide-options button { font-weight: 600; }
.guide-explanation { min-height: 3.5em; margin-top: 11px; }
.guide-explanation p { margin: 0; }
.guide-copy > a { margin-top: 12px; min-height: 34px; }
@media (max-width: 760px) {
  .workspace-guide { grid-template-columns: minmax(0,1fr); }
  .guide-explanation { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .guide-media img, .guide-options button { transition: none; }
}
