:root {
  color-scheme: light;
  --zm-bg: #f5f6f6;
  --zm-card: #fff;
  --zm-ink: #28343e;
  --zm-muted: #6c7881;
  --zm-accent: #f8931e;
  --zm-on-accent: #28343e;
  --zm-line: #dce1e4;
  --navy: #3b4c5b;
  --shell-navy: #2b3b49;
}
html { scroll-behavior: smooth; }
html:not([data-technical="show"]) .technical,
html[data-prereleases="hide"] .prereleases { display: none !important; }

.overview { margin: 0; background: var(--zm-bg); color: var(--zm-ink); font: 14px/1.5 Arial, Helvetica, sans-serif; }
.overview * { box-sizing: border-box; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 62px; padding: 9px max(24px, calc((100vw - 1120px)/2)); background: var(--shell-navy); }
.brand { display: inline-flex; align-items: center; gap: 20px; color: #fff; text-decoration: none; font-size: 13px; font-weight: 600; white-space: nowrap; }
.brand img { width: 186px; height: auto; display: block; }
.brand span { padding-left: 20px; border-left: 1px solid #ffffff55; }
.settings-button, .viewer .settings-button { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 5px; color: #fff; background: transparent; cursor: pointer; }
.settings-button:hover, .viewer .settings-button:hover:not(:disabled) { background: #ffffff20; border-color: transparent; }

.hero { max-width: 1120px; margin: auto; padding: 62px 24px 54px; border-bottom: 1px solid var(--zm-line); }
.hero-copy { max-width: 650px; }
.eyebrow { margin: 0 0 12px; color: var(--zm-muted); font-size: 12px; font-weight: 600; letter-spacing: .03em; }
.hero h1 { margin: 0 0 12px; color: var(--navy); font-size: clamp(34px, 4vw, 50px); font-weight: 700; line-height: 1.1; letter-spacing: -.035em; }
.hero-description { max-width: 570px; margin: 0 0 25px; color: var(--zm-muted); font-size: 17px; line-height: 1.5; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }
.primary-link { display: inline-flex; align-items: center; gap: 15px; padding: 10px 15px; border-radius: 5px; color: #fff; background: var(--zm-accent); text-decoration: none; font-size: 13px; font-weight: 700; }
.primary-link:hover { background: #e98410; }
.text-link { color: var(--navy); text-decoration: none; font-size: 13px; font-weight: 600; }
.text-link:hover { color: #c36b0a; }

.overview main { max-width: 1120px; margin: auto; padding: 36px 24px 54px; }
.section-intro { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.section-intro h2 { margin: 0; color: var(--navy); font-size: 24px; }
.section-intro>span { color: var(--zm-muted); font-size: 12px; }
.era-nav { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0 30px; }
.era-nav a { padding: 5px 12px; border: 1px solid var(--zm-line); border-radius: 4px; color: var(--navy); background: #fff; text-decoration: none; font-size: 12px; }
.era-nav a:hover { color: #fff; background: var(--navy); border-color: var(--navy); }
.release-era { margin: 0 0 36px; scroll-margin-top: 20px; }
.release-era>h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 13px; padding-bottom: 8px; border-bottom: 1px solid var(--zm-line); color: var(--navy); font-size: 16px; font-weight: 700; }
.era-number { display: none; }
.range { margin-left: auto; color: var(--zm-muted); font-size: 12px; font-weight: 400; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(224px, 1fr)); gap: 11px; }
.card { padding: 15px 16px 13px; border: 1px solid var(--zm-line); border-radius: 5px; background: #fff; box-shadow: 0 2px 4px #2434400a; }
.card:hover { border-color: #b5c2cb; box-shadow: 0 3px 10px #24344018; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vnum { color: var(--navy); font-size: 21px; font-weight: 700; }
.meta { margin-top: 3px; color: var(--zm-muted); font-size: 12px; }
.meta.small { font-size: 11px; }
.links { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.open { padding: 5px 9px; border-radius: 4px; color: var(--navy); background: #ebedee; text-decoration: none; font-size: 12px; font-weight: 600; }
.open:first-child { color: #fff; background: var(--navy); }
.open:hover, .open:first-child:hover { color: #fff; background: #ed8917; }
.changelog-button { margin-left: auto; padding: 4px 0; border: 0; color: var(--zm-muted); background: transparent; font-size: 11px; }
.changelog-button:hover { color: #ba680d; background: transparent; }
.technical { margin-top: 10px; color: var(--zm-muted); font-size: 12px; }
.technical summary, .prereleases>summary { cursor: pointer; }
.technical summary { font-size: 11px; }
.prereleases { margin-top: 14px; }
.prereleases>summary { margin-bottom: 12px; color: var(--zm-muted); font-size: 12px; }
.badge { color: #a95b0d; font-size: 10px; }
.archive-technical { padding: 11px 13px; border: 1px solid var(--zm-line); border-radius: 5px; background: #fff; }
.archive-technical p { margin: 8px 0 0; }
.overview footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; max-width: 1072px; margin: auto; padding: 18px 0 28px; border-top: 1px solid var(--zm-line); color: var(--zm-muted); font-size: 11px; }
.overview footer p { margin: 0; }
.overview footer .technical { width: 100%; }

.settings-panel { position: fixed; inset: 56px 16px auto auto; width: min(300px, calc(100vw - 32px)); margin: 0; padding: 16px 18px; border: 1px solid var(--zm-line); border-radius: 6px; color: var(--zm-ink); background: #fff; box-shadow: 0 12px 35px #1d35402b; font: 13px/1.4 Arial, Helvetica, sans-serif; }
.settings-panel::backdrop { background: transparent; }
.settings-heading { display: flex; align-items: center; justify-content: space-between; }
.settings-heading h2 { margin: 0; font-size: 15px; }
.settings-heading button { padding: 0 4px; border: 0; color: var(--zm-muted); background: none; cursor: pointer; font-size: 22px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--zm-line); cursor: pointer; }
.setting-row:first-of-type { margin-top: 12px; }
.setting-row strong { font-size: 12px; }
.setting-row input { appearance: none; position: relative; width: 34px; height: 20px; margin: 0; border-radius: 20px; background: #bcc5cb; cursor: pointer; flex-shrink: 0; }
.setting-row input:after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; }
.setting-row input:checked { background: var(--zm-accent); }
.setting-row input:checked:after { transform: translateX(14px); }
#current-technical { padding-top: 12px; border-top: 1px solid var(--zm-line); white-space: pre-line; font-size: 11px; }
#current-technical:empty { display: none; }

.viewer { background: var(--zm-bg); font-family: Arial, Helvetica, sans-serif; }
.viewer .timebar { gap: 14px; padding: 7px 16px; min-height: 55px; border: 0; background: var(--shell-navy); color: #fff; }
.viewer .back-link { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 12px; }
.viewer .back-link img { width: 29px; height: 29px; }
.viewer .back-link:hover span { text-decoration: underline; }
.viewer button, .viewer select { border-radius: 4px; }
.viewer .version-controls button, .viewer .timebar-actions button:not(.primary):not(.settings-button) { color: #fff; border-color: #ffffff4a; background: transparent; }
.viewer .version-controls button:hover:not(:disabled), .viewer .timebar-actions button:not(.primary):not(.settings-button):hover:not(:disabled) { background: #ffffff20; }
.viewer #version-select, .viewer .locale-select { color: var(--navy); border-color: #fff; background: #fff; }
.viewer #version-select { min-width: 116px; font-size: 12px; }
.viewer .locale-select { width: 49px; }
.viewer .version-date span, .viewer .mini-timeline label, .viewer .timeline-years { color: #d0d9df; }
.viewer .version-date time { color: #fff; }
.viewer #timeline { accent-color: var(--zm-accent); }
.viewer #current-year { color: #fff; }
.viewer button.primary { color: #fff !important; border-color: var(--zm-accent); background: var(--zm-accent); }
.viewer button.primary:hover:not(:disabled) { background: #e98410; }
.viewer #timeline-preview { color: var(--navy); background: #fff; }
.viewer .settings-panel { top: 56px; }
.viewer .viewer-notice { border-radius: 5px; }
.viewer button:focus-visible, .overview :focus-visible, .settings-panel :focus-visible { outline: 2px solid var(--zm-accent); outline-offset: 2px; }

@media (max-width: 920px) {
  .viewer .timebar { flex-wrap: wrap; gap: 7px 12px; }
  .viewer .mini-timeline { order: 5; flex: 1 1 180px; max-width: none; }
  .viewer .timebar-actions { order: 6; margin-left: auto; }
}
@media (max-width: 620px) {
  .site-header { padding-inline: 15px; }
  .brand img { width: 140px; }
  .brand { gap: 10px; font-size: 11px; }
  .brand span { padding-left: 10px; }
  .hero { padding: 40px 18px 34px; }
  .hero h1 { font-size: 35px; }
  .hero-description { font-size: 15px; }
  .overview main { padding: 28px 18px 40px; }
  .section-intro h2 { font-size: 21px; }
  .overview footer { margin: 0 18px; }
  .viewer .timebar { padding: 7px 10px; }
  .viewer .back-link span { display: none; }
  .viewer .version-date { min-width: auto; }
  .viewer .timebar-actions button { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .setting-row input:after { transition: none; } }
