
:root {
  --ink: #101624;
  --muted: #526070;
  --line: #d8dee8;
  --paper: #ffffff;
  --soft: #f4f7fb;
  --night: #07111a;
  --steel: #152536;
  --gold: #d9b765;
  --blue: #0b72d9;
  --red: #e0312d;
  --green: #16a34a;
  --shadow: 0 18px 50px rgba(16, 22, 36, 0.12);
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.58;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px 28px;
  color: #fff;
  background: rgba(7, 17, 26, 0.96);
  border-bottom: 1px solid rgba(217, 183, 101, 0.32);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 240px;
  text-decoration: none;
  font-weight: 800;
}

.brand img {
  width: 172px;
  max-height: 42px;
  object-fit: contain;
}

.brand span {
  color: var(--gold);
  white-space: nowrap;
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topbar nav a {
  padding: 8px 10px;
  color: #e8eef7;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
}

.topbar nav a:hover,
.topbar nav a:focus {
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.manual-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  max-width: 1480px;
  margin: 0 auto;
  padding: 28px;
}

.toc {
  position: relative;
}

.toc-inner {
  position: sticky;
  top: 96px;
  padding: 20px;
  color: #eef4ff;
  background: var(--night);
  border: 1px solid rgba(217, 183, 101, 0.28);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.toc-title {
  margin: 0 0 16px;
  color: var(--gold);
  font-weight: 800;
}

.toc label {
  display: block;
  margin-bottom: 8px;
  color: #cbd7e6;
  font-size: 13px;
}

#docSearch {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  color: #0f172a;
  background: #fff;
  border: 1px solid #c7d0dc;
  border-radius: 6px;
}

.toc nav {
  display: grid;
  gap: 4px;
  margin-top: 18px;
}

.toc nav a {
  display: block;
  padding: 8px 10px;
  color: #e7edf7;
  text-decoration: none;
  border-left: 3px solid transparent;
  border-radius: 4px;
  font-size: 14px;
}

.toc nav a.active,
.toc nav a:hover,
.toc nav a:focus {
  color: #fff;
  background: rgba(11, 114, 217, 0.28);
  border-left-color: var(--gold);
  outline: none;
}

.content {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.intro-band,
.section-band,
.source-note,
.cta-band {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 10px 32px rgba(16, 22, 36, 0.06);
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 26px;
  align-items: center;
  padding: 34px;
  overflow: hidden;
  border-top: 5px solid var(--gold);
}

.intro-copy {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  font-size: clamp(34px, 3.6vw, 54px);
}

h2 {
  font-size: clamp(26px, 3vw, 40px);
}

h3 {
  font-size: 19px;
}

.lead {
  max-width: 760px;
  color: #273244;
  font-size: 20px;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.status-grid div {
  min-height: 90px;
  padding: 14px;
  color: #fff;
  background: var(--steel);
  border-radius: 8px;
  border-top: 4px solid var(--gold);
}

.status-grid strong,
.status-grid span {
  display: block;
  overflow-wrap: anywhere;
}

.status-grid strong {
  font-size: 19px;
}

.status-grid span {
  margin-top: 5px;
  color: #dbe6f4;
  font-size: 13px;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.intro-visual {
  margin: 0;
}

.intro-visual img,
.media-frame img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
}

figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.source-note {
  padding: 18px 22px;
  border-left: 5px solid var(--green);
}

.source-note a {
  color: #075ea7;
  font-weight: 700;
}

.section-band {
  padding: 32px;
}

.section-heading {
  max-width: 960px;
}

.section-heading p {
  color: #334155;
  font-size: 18px;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 520px);
  gap: 28px;
  align-items: start;
}

.inline-section {
  margin-top: 28px;
}

.media-frame {
  margin: 0;
}

.quick-screenshot {
  max-width: 780px;
  margin-top: 24px;
}

.race-menu-screenshot {
  max-width: 620px;
}

.media-gallery {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.import-screenshots {
  grid-template-columns: minmax(190px, 0.75fr) minmax(310px, 1.45fr) minmax(280px, 1fr);
  align-items: start;
}

.import-screenshots .media-frame {
  margin: 0;
}

.passage-test-screenshot {
  max-width: 960px;
}

.print-workflow {
  display: grid;
  gap: 20px;
  margin-top: 26px;
}

.notice-card {
  padding: 20px;
  background: #fff9e8;
  border: 1px solid rgba(217, 183, 101, 0.5);
  border-radius: 8px;
}

.notice-card h3 {
  margin-bottom: 8px;
  color: #7c5b13;
}

.notice-card p {
  margin: 8px 0 0;
  color: #28354a;
}

.ecosystem-terms {
  margin-top: 20px;
}

.ecosystem-terms .check-list {
  margin-bottom: 0;
}

.print-screenshots {
  grid-template-columns: minmax(260px, 0.86fr) minmax(360px, 1.14fr);
  align-items: start;
}

.print-wide-screenshot {
  grid-column: 1 / -1;
}

.led-panel-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 22px;
  align-items: start;
  margin-top: 26px;
}

.led-panel-card {
  padding: 20px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.led-panel-card h3 {
  color: var(--steel);
}

.led-panel-card p {
  margin: 10px 0 0;
  color: #334155;
}

.led-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.led-panel-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  color: #101624;
  background: var(--gold);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 800;
}

.led-panel-actions a.secondary {
  color: #f8fafc;
  background: var(--steel);
}

.led-panel-screenshots {
  grid-template-columns: minmax(210px, 0.75fr) minmax(320px, 1.25fr);
  align-items: start;
  margin-top: 0;
}

.led-settings-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.led-settings-list li {
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.led-settings-list strong {
  display: block;
  color: var(--blue);
}

.media-frame.narrow {
  max-width: 330px;
}

.media-stack {
  display: grid;
  gap: 16px;
}

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

.steps li {
  position: relative;
  min-height: 82px;
  padding: 18px 18px 18px 68px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: var(--blue);
  border-radius: 50%;
  font-weight: 800;
}

.compact-steps {
  margin-top: 16px;
}

.compact-steps li {
  min-height: auto;
}

.check-list,
.split-list ul,
.version-card ul {
  padding-left: 20px;
}

.check-list li,
.split-list li,
.version-card li {
  margin: 8px 0;
}

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

.feature-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature {
  min-height: 148px;
  padding: 18px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature h3 {
  margin-bottom: 8px;
  color: var(--steel);
}

.feature p {
  margin: 0;
  color: #334155;
}

.split-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.split-list > div {
  padding: 20px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

details {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

summary {
  min-height: 52px;
  padding: 14px 18px;
  cursor: pointer;
  color: var(--steel);
  font-weight: 800;
}

details p {
  margin: 0;
  padding: 0 18px 18px;
  color: #334155;
}

.version-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.version-card {
  padding: 18px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.version-card.current {
  border-color: rgba(217, 183, 101, 0.9);
  box-shadow: inset 0 0 0 2px rgba(217, 183, 101, 0.18);
}

.version-tag {
  margin: 0 0 6px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px;
  color: #fff;
  background: linear-gradient(120deg, var(--night), #143d5c 65%, #1d2635);
  border-color: rgba(255, 255, 255, 0.08);
}

.cta-band p {
  max-width: 820px;
  color: #e5edf7;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  color: #111827;
  background: var(--gold);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}

.hidden-by-search {
  display: none !important;
}

footer {
  max-width: 1480px;
  margin: 0 auto;
  padding: 22px 28px 42px;
  color: var(--muted);
  font-size: 14px;
}

footer p {
  margin: 4px 0;
}

@media (max-width: 1100px) {
  .manual-layout {
    grid-template-columns: 1fr;
  }

  .content {
    order: 1;
  }

  .toc {
    order: 2;
  }

  .toc-inner {
    position: static;
  }

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

  .intro-band,
  .two-col {
    grid-template-columns: 1fr;
  }

  .intro-visual {
    max-width: 560px;
  }

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

@media (max-width: 720px) {
  .topbar {
    position: static;
    align-items: flex-start;
    padding: 16px;
  }

  .brand {
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .brand img {
    width: 150px;
  }

  .topbar,
  .cta-band {
    flex-direction: column;
  }

  .topbar nav {
    justify-content: flex-start;
  }

  .manual-layout {
    padding: 14px;
  }

  .intro-band,
  .section-band,
  .cta-band {
    padding: 22px;
  }

  .status-grid,
  .feature-grid,
  .feature-grid.compact,
  .split-list,
  .version-grid,
  .import-screenshots,
  .led-panel-layout,
  .led-panel-screenshots,
  .print-screenshots {
    grid-template-columns: 1fr;
  }

  .print-wide-screenshot {
    grid-column: auto;
  }

  .toc nav {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 38px;
  }

  .lead {
    font-size: 18px;
  }

  .button {
    width: 100%;
  }
}


/* Elite V3 i18n */
.language-switcher {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 1480px;
  margin: 14px auto 0;
  padding: 0 28px;
}

.language-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  min-width: 42px;
  padding: 6px 10px;
  color: #dfe8f3;
  background: #07111a;
  border: 1px solid rgba(217, 183, 101, 0.32);
  border-radius: 6px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}

.language-switcher a.active {
  color: #111827;
  background: var(--gold);
  border-color: var(--gold);
}

.subscribe-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 28px;
  align-items: center;
  padding: 28px 32px;
  color: #f8fafc;
  background: #07111a;
  border: 1px solid rgba(217, 183, 101, 0.34);
  box-shadow: 0 10px 32px rgba(16, 22, 36, 0.1);
}

.subscribe-band h2 {
  color: #fff;
}

.subscribe-band p {
  color: #dce7f3;
}

.subscribe-form {
  display: grid;
  gap: 10px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.subscribe-form label {
  color: #f8fafc;
  font-weight: 800;
}

.subscribe-row {
  display: flex;
  gap: 8px;
}

.subscribe-row input {
  width: 100%;
  min-height: 46px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  font: inherit;
}

.subscribe-row button {
  min-height: 46px;
  padding: 0 16px;
  color: #111827;
  background: var(--gold);
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.subscribe-privacy,
.subscribe-feedback {
  margin: 0;
  font-size: 13px;
}

.subscribe-feedback {
  min-height: 22px;
  color: #f4d47b !important;
  font-weight: 800;
}

.illustrated-steps li {
  display: block;
}

.illustrated-steps .step-copy {
  max-width: 1080px;
}

.illustrated-steps .step-media,
.illustrated-steps .step-gallery {
  margin-top: 16px;
}

.illustrated-steps .quick-screenshot {
  max-width: min(100%, 780px);
}

.illustrated-steps .race-menu-screenshot {
  max-width: min(100%, 620px);
}

.illustrated-steps .passage-test-screenshot {
  max-width: min(100%, 960px);
}

.illustrated-steps .import-screenshots {
  margin-top: 16px;
}

.illustrated-steps figcaption {
  font-size: 12px;
  line-height: 1.45;
}

html[dir="rtl"] body {
  direction: rtl;
}

html[dir="rtl"] .topbar nav,
html[dir="rtl"] .intro-actions,
html[dir="rtl"] .language-switcher {
  justify-content: flex-start;
}

html[dir="rtl"] .brand {
  direction: ltr;
}

html[dir="rtl"] .toc nav a {
  border-left: 0;
  border-right: 3px solid transparent;
}

html[dir="rtl"] .toc nav a.active,
html[dir="rtl"] .toc nav a:hover,
html[dir="rtl"] .toc nav a:focus {
  border-right-color: var(--gold);
}

html[dir="rtl"] .source-note {
  border-left: 1px solid var(--line);
  border-right: 5px solid var(--green);
}

html[dir="rtl"] .steps li {
  padding: 18px 68px 18px 18px;
}

html[dir="rtl"] .steps li::before {
  left: auto;
  right: 18px;
}

html[dir="rtl"] .check-list,
html[dir="rtl"] .split-list ul,
html[dir="rtl"] .version-card ul {
  padding-left: 0;
  padding-right: 20px;
}

html[lang="zh-CN"] body {
  font-family: "Microsoft YaHei", "SimSun", Arial, Helvetica, sans-serif;
}

html[lang="th"] body {
  font-family: "Noto Sans Thai", Tahoma, Arial, Helvetica, sans-serif;
}

html[lang="ar"] body {
  font-family: "Noto Sans Arabic", Tahoma, Arial, Helvetica, sans-serif;
}

@media (max-width: 720px) {
  .language-switcher {
    justify-content: flex-start;
    padding: 0 14px;
  }

  .language-switcher a {
    flex: 1 1 42px;
  }

  .subscribe-band {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .subscribe-row {
    flex-direction: column;
  }

  .illustrated-steps .import-screenshots {
    grid-template-columns: 1fr;
  }
}
