:root {
  --canvas: #edf2f7;
  --surface: #f8fbff;
  --surface-strong: #ffffff;
  --ink: #0d1728;
  --muted: #59697c;
  --soft: #7a899a;
  --line: #c8d4e2;
  --line-soft: #dfe7ef;
  --accent: #1648d8;
  --accent-dark: #0e35ac;
  --accent-soft: #dfe8ff;
  --signal: #28a875;
  --warning: #cf8417;
  --danger: #c94242;
  --radius: 6px;
  --radius-outer: 7px;
  --shadow-ring: 0 0 0 1px rgba(86, 111, 143, 0.18), 0 0 0 5px rgba(255, 255, 255, 0.48), 0 24px 64px rgba(45, 68, 97, 0.13);
  --sans: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 4%, transparent 0 138px, rgba(69, 91, 122, 0.08) 139px 140px, transparent 141px 187px, rgba(69, 91, 122, 0.06) 188px 189px, transparent 190px),
    linear-gradient(180deg, #f3f6fa 0, var(--canvas) 34%, #e9eff5 100%);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(22, 72, 216, 0.42);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 8px 12px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--accent);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid rgba(113, 134, 160, 0.2);
  background: rgba(243, 246, 250, 0.82);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 5px;
  color: #fff;
  background: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25), 0 0 0 3px rgba(22, 72, 216, 0.09);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.brand-name {
  font-size: 17px;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.brand-en {
  padding-left: 2px;
  color: var(--soft);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding-inline: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 610;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--accent);
}

.hero {
  display: grid;
  min-height: 660px;
  grid-template-columns: minmax(0, 0.84fr) minmax(500px, 1.16fr);
  gap: 76px;
  align-items: start;
  padding-block: 68px 76px;
}

.hero-copy {
  padding-top: 78px;
}

.eyebrow,
.micro-label,
.mono-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.35;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  margin: 0 0 18px;
  align-items: center;
  gap: 8px;
  color: var(--accent);
}

.status-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(13, 23, 40, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(13, 23, 40, 0.04);
}

.status-dot--green { background: var(--signal); }
.status-dot--blue { background: #3970ff; }
.status-dot--amber { background: var(--warning); }

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

h1,
h2,
h3 {
  text-wrap: balance;
}

p,
li,
dd {
  text-wrap: pretty;
}

.hero h1 {
  margin: 0;
  font-size: clamp(38px, 4.3vw, 58px);
  font-weight: 730;
  letter-spacing: -0.055em;
  line-height: 1.1;
}

.hero-lead {
  max-width: 520px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  margin-top: 28px;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 680;
  line-height: 1.35;
  text-decoration: none;
  transition: transform 140ms ease, opacity 140ms ease;
}

.button:active {
  transform: scale(0.96);
}

.button--primary {
  color: #fff;
  background: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2), 0 4px 12px rgba(22, 72, 216, 0.2);
}

.button--primary:hover {
  background: var(--accent-dark);
}

.text-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
}

.trust-strip {
  display: grid;
  margin: 36px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  gap: 8px;
  list-style: none;
}

.trust-strip li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.trust-strip span {
  color: var(--soft);
  font-family: var(--mono);
  font-size: 9px;
}

.instrument {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(100, 124, 153, 0.34);
  border-radius: var(--radius-outer);
  background: var(--surface);
  box-shadow: var(--shadow-ring);
}

.instrument::after {
  position: absolute;
  top: 10px;
  right: 10px;
  bottom: 10px;
  left: 10px;
  z-index: 0;
  border: 1px solid rgba(142, 160, 182, 0.18);
  border-radius: 4px;
  content: "";
  pointer-events: none;
}

.instrument > * {
  position: relative;
  z-index: 1;
}

.instrument-topline,
.flow-head {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--soft);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.instrument-topline > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.instrument-state {
  width: 72px;
  color: var(--accent);
  text-align: right;
}

.instrument-head {
  display: flex;
  min-height: 95px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px 18px;
}

.instrument-head h2 {
  margin: 6px 0 0;
  font-size: 24px;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.micro-label,
.mono-label {
  color: var(--soft);
}

.language-tabs,
.mode-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
}

.micro-control,
.mode-control {
  position: relative;
  min-width: 40px;
  min-height: 40px;
  padding: 5px 8px;
  border: 0;
  border-radius: 4px;
  color: var(--soft);
  background: transparent;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  transition: transform 120ms ease, opacity 120ms ease;
}

.micro-control::after,
.mode-control::after {
  position: absolute;
  right: 8px;
  bottom: 5px;
  left: 8px;
  height: 2px;
  background: var(--accent);
  content: "";
  opacity: 0;
  transform: scaleX(0.35);
  transform-origin: left;
  transition: transform 140ms ease, opacity 140ms ease;
}

.micro-control.is-active,
.mode-control.is-active {
  color: var(--accent);
  background: var(--accent-soft);
}

.micro-control.is-active::after,
.mode-control.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.micro-control:active,
.mode-control:active {
  transform: scale(0.96);
}

.translation-stage {
  min-height: 280px;
  margin: 0 24px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(99, 122, 150, 0.07) 1px, transparent 1px),
    var(--surface-strong);
  background-size: 100% 34px;
  box-shadow: inset 0 0 0 4px rgba(228, 235, 243, 0.48);
}

.translation-pane {
  min-height: 105px;
  padding: 14px 16px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: rgba(248, 251, 255, 0.94);
}

.translation-pane--target {
  border-color: #c8d6fa;
  background: rgba(237, 243, 255, 0.95);
}

.translation-pane header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--soft);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.07em;
}

.pane-index {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: #fff;
  font-size: 9px;
}

.pane-index--accent {
  border-color: #aac0fa;
  color: var(--accent);
}

.translation-pane p {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.65;
}

.signal-trace {
  position: relative;
  height: 20px;
  overflow: hidden;
}

.signal-trace::before {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--line-soft);
  content: "";
}

.signal-trace span {
  position: absolute;
  top: calc(50% - 1px);
  left: 0;
  width: 38%;
  height: 2px;
  background: var(--accent);
  transform: translateX(-110%);
}

.translation-stage.is-tracing .signal-trace span {
  animation: trace 640ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

@keyframes trace {
  from { transform: translateX(-110%); }
  to { transform: translateX(365%); }
}

.instrument-controls {
  display: grid;
  min-height: 98px;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px 16px;
  padding: 16px 24px 20px;
}

.mode-tabs {
  justify-content: flex-end;
}

.mode-control {
  min-width: 58px;
}

.demo-note {
  display: flex;
  grid-column: 1 / -1;
  margin: 0;
  align-items: center;
  gap: 8px;
  color: var(--soft);
  font-size: 10px;
}

.readout-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.readout-bar > div {
  display: grid;
  min-height: 90px;
  align-content: center;
  gap: 7px;
  padding: 14px 22px;
  border-right: 1px solid var(--line);
}

.readout-bar > div:first-child { padding-left: 0; }
.readout-bar > div:last-child { border-right: 0; }

.readout-bar strong {
  font-size: 13px;
  font-weight: 680;
}

.indexed-section,
.download-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: 92px;
  padding-block: 118px;
}

.section-intro h2 {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 720;
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.section-intro > p:not(.eyebrow) {
  max-width: 440px;
  margin: 20px 0 0;
  color: var(--muted);
}

.section-intro > .text-link {
  margin-top: 18px;
}

.indexed-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.indexed-list li {
  display: grid;
  min-height: 132px;
  grid-template-columns: 44px 1fr auto;
  align-items: start;
  gap: 16px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.row-index,
.row-code {
  color: var(--soft);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.row-code {
  padding-top: 4px;
  color: var(--accent);
  text-align: right;
}

.indexed-list h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.indexed-list p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.data-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #e3eaf2;
}

.data-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: 92px;
  align-items: start;
  padding-block: 116px;
}

.section-intro--sticky {
  position: sticky;
  top: 96px;
}

.flow-instrument {
  overflow: hidden;
  border: 1px solid rgba(98, 119, 145, 0.38);
  border-radius: var(--radius-outer);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.45), 0 18px 40px rgba(45, 68, 97, 0.1);
}

.flow-head {
  justify-content: flex-start;
}

.flow-head > :last-child {
  margin-left: auto;
}

.flow-list {
  margin: 0;
}

.flow-list > div {
  display: grid;
  grid-template-columns: minmax(170px, 0.65fr) minmax(230px, 1.35fr);
  gap: 8px 24px;
  padding: 26px 24px;
  border-bottom: 1px solid var(--line-soft);
}

.flow-list > div:last-child {
  border-bottom: 0;
}

.flow-list dt {
  grid-row: 1 / span 2;
  font-size: 13px;
  font-weight: 680;
}

.flow-list dd {
  display: flex;
  margin: 0;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.flow-list p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.flow-node,
.flow-state {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.flow-node--accent {
  border-color: #adc1f8;
  color: var(--accent);
  background: var(--accent-soft);
}

.flow-node--muted {
  color: var(--soft);
  background: #f0f3f6;
  text-decoration: line-through;
}

.flow-state {
  margin-left: auto;
  border: 0;
  color: var(--signal);
  background: transparent;
}

.flow-arrow {
  color: var(--accent);
  font-family: var(--mono);
}

.flow-muted {
  background: #f1f4f7;
}

.download-list {
  border-top: 1px solid var(--line);
}

.download-list > a,
.download-disabled {
  display: grid;
  min-height: 94px;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.download-list > a {
  transition: transform 140ms ease;
}

.download-list > a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.download-list > a:active {
  transform: scale(0.98);
}

.browser-code {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  background: var(--surface);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
}

.download-list strong,
.download-list small {
  display: block;
}

.download-list strong {
  font-size: 15px;
}

.download-list small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.download-action {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
}

.download-disabled {
  color: var(--soft);
}

.download-disabled .browser-code,
.download-disabled .download-action {
  color: var(--soft);
}

.download-footnote {
  grid-column: 2;
  margin: -72px 0 0;
  color: var(--soft);
  font-size: 11px;
}

.download-footnote a {
  margin-inline: 3px;
  color: var(--accent);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #e3eaf2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 64px;
  padding-block: 54px;
}

.brand--footer {
  min-height: 36px;
}

.footer-grid > div:first-child > p,
.footer-meta p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.footer-grid nav {
  display: grid;
  align-content: start;
  gap: 4px;
}

.footer-grid nav a,
.footer-meta a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.footer-meta {
  text-align: right;
}

.footer-meta a {
  justify-content: flex-end;
  color: var(--accent);
}

.footer-meta .preflight {
  color: #8a5b13;
}

/* Content and legal pages */
.page-main {
  min-height: 65vh;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(300px, 0.42fr);
  gap: 80px;
  align-items: end;
  padding-block: 84px 62px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 730;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.page-hero .page-summary {
  margin: 20px 0 0;
  max-width: 680px;
  color: var(--muted);
  font-size: 16px;
}

.page-stamp {
  justify-self: end;
  width: min(100%, 300px);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(248, 251, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.4);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.8;
}

.page-stamp span {
  display: block;
  color: var(--soft);
}

.page-stamp strong {
  color: var(--accent);
  font-weight: 700;
}

.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 720px);
  justify-content: space-between;
  gap: 72px;
  padding-block: 64px 118px;
}

.toc {
  position: sticky;
  top: 92px;
  align-self: start;
}

.toc p {
  margin: 0 0 12px;
  color: var(--soft);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.toc nav {
  display: grid;
  border-top: 1px solid var(--line);
}

.toc a {
  display: flex;
  min-height: 40px;
  align-items: center;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}

.toc a:hover {
  color: var(--accent);
}

.prose {
  min-width: 0;
}

.prose section {
  margin-bottom: 58px;
  scroll-margin-top: 92px;
}

.prose h2 {
  margin: 0 0 18px;
  font-size: 25px;
  letter-spacing: -0.03em;
}

.prose h3 {
  margin: 30px 0 10px;
  font-size: 16px;
  letter-spacing: -0.015em;
}

.prose p,
.prose li,
.prose dd {
  color: #425267;
}

.prose p {
  margin: 0 0 15px;
}

.prose ul,
.prose ol {
  margin: 12px 0 20px;
  padding-left: 22px;
}

.prose li + li {
  margin-top: 8px;
}

.prose a {
  color: var(--accent);
}

.notice {
  margin: 0 0 34px;
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--accent-soft);
  color: #233b72;
}

.notice--warning {
  border-left-color: var(--warning);
  background: #fff1d9;
  color: #694814;
}

.notice p:last-child,
.notice:last-child {
  margin-bottom: 0;
}

.data-table-wrap {
  overflow-x: auto;
  margin-block: 20px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.data-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 12px;
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
  text-align: left;
}

.data-table th {
  color: var(--soft);
  background: #eef3f8;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.definition-list {
  border-top: 1px solid var(--line);
}

.definition-list > div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}

.definition-list dt {
  font-weight: 680;
}

.definition-list dd {
  margin: 0;
}

.step-list {
  margin: 24px 0;
  padding: 0;
  counter-reset: steps;
  list-style: none;
}

.step-list li {
  position: relative;
  min-height: 76px;
  padding: 6px 0 22px 58px;
  border-bottom: 1px solid var(--line-soft);
  counter-increment: steps;
}

.step-list li + li {
  padding-top: 22px;
}

.step-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  background: var(--surface);
  content: counter(steps, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
}

.step-list li + li::before {
  top: 18px;
}

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

.step-list span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-block: 24px;
  border: 1px solid var(--line);
  background: var(--line);
}

.support-grid > div {
  min-height: 150px;
  padding: 22px;
  background: var(--surface);
}

.support-grid h3 {
  margin: 0 0 8px;
}

.support-grid p {
  margin: 0;
  font-size: 13px;
}

.download-compact {
  display: grid;
  margin-block: 18px 30px;
  border-top: 1px solid var(--line);
}

.download-compact a,
.download-compact .unavailable {
  display: grid;
  min-height: 64px;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line-soft);
  text-decoration: none;
}

.download-compact a:hover {
  color: var(--accent);
}

.download-compact small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.unavailable {
  color: var(--soft);
}

.version-entry {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 36px;
  padding-block: 34px;
  border-top: 1px solid var(--line);
}

.version-entry time,
.version-badge {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
}

.version-badge {
  width: fit-content;
  margin-top: 8px;
  padding: 3px 6px;
  border-radius: 3px;
  color: var(--accent);
  background: var(--accent-soft);
}

.version-entry h2 {
  margin-top: 0;
}

.not-found {
  display: grid;
  min-height: calc(100vh - 67px);
  place-items: center;
  padding: 48px 24px;
}

.not-found-panel {
  width: min(560px, 100%);
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-outer);
  background: var(--surface);
  box-shadow: var(--shadow-ring);
}

.not-found-code {
  margin: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 76px;
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 1;
}

.not-found h1 {
  margin: 24px 0 12px;
  font-size: 28px;
}

.not-found p {
  color: var(--muted);
}

.not-found .button {
  margin-top: 12px;
}

.reveal-a,
.reveal-b {
  animation: reveal 520ms both cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal-b {
  animation-delay: 100ms;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (hover: hover) and (pointer: fine) {
  .button:hover {
    transform: translateY(-1px);
  }

  .micro-control:hover,
  .mode-control:hover {
    opacity: 0.72;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .hero-copy {
    max-width: 680px;
    padding-top: 12px;
  }

  .instrument {
    width: min(620px, 100%);
    justify-self: end;
  }

  .indexed-section,
  .download-section,
  .data-layout {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .section-intro--sticky {
    position: static;
  }

  .download-footnote {
    grid-column: 1;
    margin-top: -28px;
  }

  .page-hero {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .page-stamp {
    justify-self: start;
  }

  .legal-layout {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 48px;
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(100% - 28px, 1120px);
  }

  .header-inner {
    min-height: 60px;
  }

  .brand-en {
    display: none;
  }

  .site-nav a:first-child {
    display: none;
  }

  .site-nav a {
    padding-inline: 8px;
  }

  .hero {
    gap: 42px;
    padding-block: 42px 64px;
  }

  .hero-copy {
    padding-top: 0;
  }

  .hero h1 {
    font-size: clamp(36px, 11vw, 48px);
  }

  .instrument-head {
    display: grid;
    padding-inline: 18px;
  }

  .language-tabs {
    justify-content: flex-start;
  }

  .translation-stage {
    min-height: 304px;
    margin-inline: 14px;
    padding: 9px;
  }

  .translation-pane {
    min-height: 116px;
    padding-inline: 12px;
  }

  .instrument-controls {
    grid-template-columns: 1fr;
    padding-inline: 18px;
  }

  .mode-tabs {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .demo-note {
    grid-column: 1;
  }

  .readout-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .readout-bar > div {
    min-height: 78px;
    padding: 12px;
  }

  .readout-bar > div:nth-child(2) {
    border-right: 0;
  }

  .readout-bar > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .readout-bar > div:first-child {
    padding-left: 12px;
  }

  .indexed-section,
  .download-section,
  .data-layout {
    gap: 38px;
    padding-block: 78px;
  }

  .indexed-list li {
    grid-template-columns: 34px 1fr;
  }

  .row-code {
    display: none;
  }

  .flow-list > div {
    grid-template-columns: 1fr;
    padding-inline: 18px;
  }

  .flow-list dt {
    grid-row: auto;
  }

  .flow-state {
    margin-left: 0;
  }

  .download-list > a,
  .download-disabled {
    grid-template-columns: 48px 1fr;
  }

  .download-action {
    grid-column: 2;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-meta,
  .footer-meta a {
    justify-content: flex-start;
    text-align: left;
  }

  .page-hero {
    padding-block: 54px 42px;
  }

  .page-hero h1 {
    font-size: clamp(38px, 13vw, 52px);
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 42px;
    padding-block: 42px 82px;
  }

  .toc {
    position: static;
  }

  .toc nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .toc a:nth-child(odd) {
    padding-right: 12px;
  }

  .definition-list > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .support-grid {
    grid-template-columns: 1fr;
  }

  .version-entry {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .not-found-panel {
    padding: 32px 24px;
  }
}

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

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

@media print {
  body {
    background: #fff;
  }

  .site-header,
  .site-footer,
  .toc,
  .hero-actions {
    display: none;
  }

  .page-hero,
  .legal-layout {
    display: block;
    width: 100%;
    padding-block: 24px;
  }

  .page-stamp {
    margin-top: 24px;
    box-shadow: none;
  }
}
