:root {
  color-scheme: light;
  --accent: #E57373;
  --accent-hover: #FFA4A2;
  --accent-soft: rgba(229, 115, 115, 0.12);
  --accent-ring: rgba(229, 115, 115, 0.28);
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: #fffefe;
  --panel-soft: rgba(255, 248, 248, 0.95);
  --line: #e7d4d4;
  --line-strong: #d9c1c1;
  --text: #18212b;
  --muted: #5f6f82;
  --shadow: 0 18px 50px rgba(23, 33, 43, 0.08);
  --shadow-soft: 0 8px 24px rgba(23, 33, 43, 0.055);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  min-height: 100%;
  overflow-y: auto;
}

body {
  margin: 0;
  min-height: 100%;
  overflow-x: clip;
  font-family: "Microsoft YaHei UI", "PingFang SC", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 164, 162, 0.26), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.82), transparent 24%),
    linear-gradient(180deg, #fff6f5 0%, #f8eeee 48%, #eef1f5 100%);
}

a {
  color: inherit;
}

.page-shell {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(229, 115, 115, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, var(--panel-soft) 100%),
    var(--panel);
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -80px -150px auto;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(229, 115, 115, 0.08);
  pointer-events: none;
}

.hero-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: clamp(16px, 3vw, 32px);
  align-items: center;
}

.hero-copy {
  min-width: 0;
  padding-left: clamp(8px, 1.6vw, 22px);
}

.hero-kicker,
.eyebrow {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-kicker {
  margin: 0 0 24px;
}

.eyebrow {
  margin: 0 0 14px;
}

.hero h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(2.25rem, 5.2vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-lead {
  max-width: 620px;
  margin: 24px 0 0;
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  line-height: 1.85;
  color: var(--muted);
}

.hero-visual {
  justify-self: center;
  width: min(100%, 320px);
  padding: 22px;
  border: 1px solid rgba(217, 193, 193, 0.78);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 245, 245, 0.76));
  box-shadow: var(--shadow-soft);
}

.mini-device {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto auto;
  gap: 14px 16px;
  align-items: center;
  justify-items: center;
  min-height: 164px;
  padding: 26px 16px 18px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, #fff 0%, #f1e9e8 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 22px 36px rgba(23, 33, 43, 0.12);
}

.mini-side-key,
.mini-main-key {
  display: grid;
  place-items: center;
  border: 1px solid rgba(24, 33, 43, 0.1);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f8f5f5);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow:
    inset 0 1px 0 #fff,
    0 10px 18px rgba(23, 33, 43, 0.08);
}

.mini-side-key {
  width: min(100%, 88px);
  min-height: 52px;
  border-radius: 15px;
  font-size: 0.82rem;
}

.mini-main-key {
  grid-column: 1 / -1;
  width: min(52%, 136px);
  aspect-ratio: 1 / 0.94;
  min-height: 0;
  border-radius: 12px;
  font-size: 1.08rem;
}

.mini-left-key {
  grid-column: 1;
  grid-row: 2;
}

.mini-right-key {
  grid-column: 3;
  grid-row: 2;
}

.mini-indicator,
.mini-backlight {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.mini-indicator {
  position: static;
  grid-column: 2;
  grid-row: 2;
  background: #24c06f;
  box-shadow: 0 0 0 5px rgba(36, 192, 111, 0.12), 0 0 18px rgba(36, 192, 111, 0.5);
  animation: demo-envelope 3000ms ease-in-out infinite;
}

.mini-backlight {
  top: 42px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(24, 33, 43, 0.22),
    0 0 0 6px rgba(255, 255, 255, 0.9),
    0 0 20px rgba(229, 115, 115, 0.35);
  animation: mini-backlight-pulse 1600ms ease-in-out infinite;
}

.hero-visual p {
  margin: 16px 0 0;
  color: var(--muted);
  text-align: center;
  font-weight: 750;
}

.starter-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 32px;
}

.starter-strip > span,
.starter-action {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid rgba(217, 193, 193, 0.78);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font-weight: 750;
  text-decoration: none;
}

.starter-action {
  position: relative;
  border-color: rgba(229, 115, 115, 0.45);
  box-shadow: 0 12px 26px rgba(229, 115, 115, 0.1);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.starter-action:hover,
.starter-action:focus-visible {
  border-color: rgba(229, 115, 115, 0.86);
  box-shadow: 0 16px 32px rgba(229, 115, 115, 0.18);
  transform: translateY(-1px);
  outline: none;
}

.starter-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.starter-copy strong {
  font-size: 1rem;
  line-height: 1.25;
}

.starter-title-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.starter-copy small {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 680;
  line-height: 1.35;
}

.starter-copy em {
  display: inline-flex;
  width: fit-content;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 850;
}

.starter-strip b {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
}

.hero-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  margin-top: 16px;
}

.hero-step,
  .timeline-card,
  .note-card,
  .light-card,
  .status-card,
.step-card,
.function-key-card,
.mapping-card,
.group-card,
.faq-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.hero-step {
  position: relative;
  z-index: 1;
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.hero-step-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.84rem;
}

.hero-step-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-step-head .hero-step-tag {
  margin-bottom: 0;
}

.hero-step strong {
  display: block;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.hero-step p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.hero-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(229, 115, 115, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.hero-link-button:hover,
.hero-link-button:focus-visible {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(229, 115, 115, 0.28);
}

.inline-link {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.inline-link:hover,
.inline-link:focus-visible {
  color: var(--accent-hover);
}

.hero-light-note {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font-weight: 650;
}

.section-nav {
  position: sticky;
  top: 16px;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  background: rgba(255, 252, 252, 0.86);
  box-shadow: 0 12px 30px rgba(23, 33, 43, 0.06);
  overscroll-behavior-y: auto;
  touch-action: pan-x pan-y;
}

.section-nav a {
  padding: 7px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.section-nav a:hover,
.section-nav a:focus-visible,
.section-nav a.is-active {
  background: var(--panel-strong);
  color: var(--text);
  box-shadow: 0 6px 14px rgba(229, 115, 115, 0.1);
  transform: translateY(-1px);
}

.section-nav a.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
}

.page-search {
  display: flex;
  flex: 1 1 280px;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  min-width: 240px;
  flex-wrap: nowrap;
}

.page-search input {
  width: min(260px, 100%);
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.page-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.page-search button {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}

.page-search button:hover,
.page-search button:focus-visible {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.page-search-status {
  flex: 0 0 auto;
  min-width: 40px;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: right;
}

.language-switch {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0;
  align-items: center;
  min-height: 40px;
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.language-switch select {
  min-width: 104px;
  padding: 7px 28px 7px 10px;
  border: 0;
  border-radius: 999px;
  background: var(--panel-strong);
  color: var(--text);
  font: inherit;
  outline: none;
  cursor: pointer;
}

.language-switch:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

:lang(en) .section-nav {
  gap: 8px;
}

:lang(en) .section-nav a {
  padding-inline: 12px;
}

:lang(en) .page-search {
  flex-basis: 220px;
  min-width: 210px;
}

:lang(en) .page-search input {
  width: min(220px, 100%);
}

:lang(en) .language-switch {
  gap: 0;
  padding-left: 6px;
}

:lang(en) .language-switch select {
  min-width: 88px;
}

:lang(en) .scenario-step-main {
  grid-template-columns: 1fr;
  gap: 4px;
}

:lang(en) .main-key-actions {
  padding-left: 0;
}

:lang(en) .main-key-actions div {
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 6px;
}

:lang(en) .mapping-card,
:lang(en) .faq-card,
:lang(en) .function-key-card {
  padding: 20px;
}

html[lang="en"] .scenario-step-main {
  grid-template-columns: 1fr;
  gap: 4px;
}

html[lang="en"] .main-key-actions {
  padding-left: 0;
}

html[lang="en"] .main-key-actions div {
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 6px;
}

.search-hit {
  border-color: var(--accent) !important;
  box-shadow:
    0 0 0 4px rgba(229, 115, 115, 0.16),
    var(--shadow) !important;
}

.content {
  display: grid;
  gap: 24px;
}

.panel {
  scroll-margin-top: 96px;
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.panel-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

.panel-heading h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  letter-spacing: -0.04em;
}

.panel-heading p:last-child {
  margin: 10px 0 0;
  line-height: 1.8;
  color: var(--muted);
}

.timeline-grid,
.status-grid,
.steps-grid,
.function-key-grid,
.group-grid,
.faq-grid,
.split-note-grid {
  display: grid;
  gap: 22px;
}

.beginner-layout {
  display: grid;
  grid-template-columns: minmax(420px, 0.52fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  margin: -6px 0 22px;
}

.beginner-map,
.beginner-summary {
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line) 82%);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
}

.beginner-map {
  display: grid;
  padding: 4px 18px;
}

.beginner-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
}

.beginner-step:last-child {
  border-bottom: 0;
}

.beginner-step-index {
  display: inline-grid;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  line-height: 1;
}

.beginner-step-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
}

.beginner-step-copy {
  display: grid;
  gap: 5px;
}

.beginner-step-copy strong,
.beginner-summary strong {
  color: var(--text);
  font-size: 1.02rem;
}

.beginner-step-copy p,
.beginner-summary p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.beginner-summary {
  display: grid;
  grid-template-rows: auto auto auto auto;
  gap: 18px;
  align-content: space-between;
  padding: 18px;
  background:
    radial-gradient(circle at 16% 12%, rgba(229, 115, 115, 0.1), transparent 30%),
    color-mix(in srgb, var(--accent) 7%, #fff 93%);
}

.building-scene {
  display: grid;
  grid-template-columns: 28px repeat(5, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  min-height: 158px;
  padding: 18px 12px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--line) 86%);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.48));
}

.building-levels {
  display: grid;
  grid-template-rows: 14px repeat(3, 28px);
  gap: 6px;
  align-self: end;
  padding: 12px 0 8px;
}

.building-levels::before {
  content: "";
}

.building-levels span {
  display: grid;
  align-items: center;
  justify-items: end;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.building-tower {
  --tower-color: var(--accent);
  position: relative;
  display: grid;
  grid-template-rows: 14px repeat(3, 28px);
  gap: 6px;
  align-content: end;
  min-width: 0;
  padding: 12px 6px 8px;
  border: 1px solid color-mix(in srgb, var(--tower-color) 24%, var(--line) 76%);
  border-top: 5px solid var(--tower-color);
  border-radius: 9px 9px var(--radius-sm) var(--radius-sm);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.74));
  box-shadow: 0 12px 20px rgba(122, 58, 58, 0.08);
}

.building-tower::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 8px;
  right: 8px;
  height: 14px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: color-mix(in srgb, var(--tower-color) 72%, #fff 28%);
}

.building-tower span {
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.building-floor {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  align-items: center;
  padding: 5px 4px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--tower-color) 9%, #fff 91%);
}

.building-floor i {
  display: block;
  justify-self: center;
  width: 100%;
  max-width: 12px;
  aspect-ratio: 1;
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--tower-color) 24%, transparent);
  border-radius: 3px;
  background: color-mix(in srgb, var(--tower-color) 18%, #fff 82%);
}

.tower-ble1 {
  --tower-color: #b7c0ca;
}

.tower-ble2 {
  --tower-color: #2452ff;
}

.tower-ble3 {
  --tower-color: #24c06f;
}

.tower-24g {
  --tower-color: #f24c3d;
}

.tower-usb {
  --tower-color: #e350d0;
}

.beginner-total {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line) 78%);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent);
  font-size: 1.08rem;
  font-weight: 900;
}

.building-legend {
  display: grid;
  justify-items: start;
  gap: 8px;
}

.building-legend span {
  padding: 6px 9px;
  border: 1px solid rgba(24, 33, 43, 0.06);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.35;
}

.guide-light-row,
.guide-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding-left: 0;
}

.guide-light-row span,
.guide-action-row span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid rgba(24, 33, 43, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.25;
}

.guide-light-row .layer-dots {
  gap: 3px;
}

.guide-light-row .layer-dots i {
  width: 8px;
  height: 8px;
}

.guide-light-row,
.guide-action-row {
  margin: 2px 0 4px;
}

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

  .beginner-step-body {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.timeline-grid,
.steps-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.function-key-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-steps,
.light-layout {
  margin-top: 24px;
}

.split-note-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 22px;
}

.status-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin-top: 24px;
}

.timeline-card,
.status-card,
.step-card,
.function-key-card,
.note-card,
.group-card,
.faq-card {
  padding: 22px;
}

.timeline-card h3,
.note-card h3,
.light-card h3,
.status-card h3,
.step-card h3,
.function-key-card h3,
.mapping-card h3,
.group-card h3,
.faq-card h3 {
  margin: 0 0 12px;
  font-size: 1.08rem;
}

.timeline-card p,
.note-card p,
.light-card p,
.status-card p,
.step-card p,
.function-key-card p,
.mapping-card p,
.group-card p,
.faq-card p,
.note-card li,
.function-key-card li,
.light-card li {
  margin: 0;
  line-height: 1.78;
  color: var(--muted);
}

.muted {
  margin-top: 10px !important;
  color: #718195;
}

.callout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid var(--accent-ring);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(229, 115, 115, 0.08));
  line-height: 1.75;
}

.callout.secondary {
  margin-bottom: 22px;
}

.table-card {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th,
td {
  padding: 18px 18px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}

th:last-child,
td:last-child {
  border-right: 0;
}

tbody tr:last-child td {
  border-bottom: 0;
}

thead th {
  background: rgba(229, 115, 115, 0.08);
  font-size: 0.95rem;
}

.light-layout,
.switch-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 22px;
}

.light-card {
  padding: 24px;
}

.light-list,
.plain-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.light-list li {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.swatch {
  width: 14px;
  height: 14px;
  display: inline-block;
  margin-right: 10px;
  border: 1px solid rgba(24, 33, 43, 0.14);
  border-radius: 999px;
  vertical-align: middle;
}

.white { background: #ffffff; }
.blue { background: #2452ff; }
.green { background: #24c06f; }
.red { background: #f24c3d; }
.magenta { background: #e350d0; }

.light-demo {
  width: 11px;
  height: 11px;
  display: inline-block;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(24, 33, 43, 0.16);
  vertical-align: middle;
}

.light-demo.white {
  background: #fff;
}

.light-demo.blue {
  background: #2452ff;
}

.light-demo.green {
  background: #24c06f;
}

.light-demo.orange {
  background: #ff8c00;
}

.light-demo.red {
  background: #f24c3d;
}

.light-demo.magenta {
  background: #e350d0;
}

.light-demo.breathe {
  animation: demo-breathe 700ms ease-in-out infinite;
}

.light-demo.breathe.slow {
  animation-duration: 1200ms;
}

.light-demo.blink {
  animation: demo-blink 300ms steps(2, end) infinite;
}

.light-demo.envelope {
  animation: demo-envelope 3000ms ease-in-out infinite;
}

.status-light-row {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 14px;
  margin-bottom: 8px;
}

.status-title {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.status-lights {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.function-key-card {
  min-height: 210px;
  box-shadow: var(--shadow-soft);
}

.function-key-title {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.function-key-title span {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 800;
}

.function-key-note {
  margin-top: 14px !important;
}

.battery-flow,
.inline-light-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
}

.battery-flow span,
.inline-light-note {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font-weight: 650;
}

.battery-flow span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.inline-light-note {
  border-radius: 18px;
  color: var(--muted);
  line-height: 1.65;
}

.mini-steps {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
  padding-left: 18px;
}

.subsection-heading {
  display: flex;
  gap: 14px;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 26px;
}

.subsection-heading h3,
.subsection-heading p {
  margin: 0;
}

.subsection-heading p {
  color: var(--muted);
  line-height: 1.7;
}

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

.effect-panel {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.effect-heading {
  display: flex;
  gap: 14px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}

.effect-heading h3 {
  margin: 0;
  font-size: 1.08rem;
}

.effect-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.effect-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
}

.effect-list span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font-weight: 650;
}

.power-stage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.power-stage-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
}

.power-stage-time {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(24, 33, 43, 0.06);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.power-stage-card h4 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.power-stage-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.power-note {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(0, 113, 227, 0.08);
  color: var(--muted);
  line-height: 1.75;
}

.effect-demo {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(24, 33, 43, 0.16);
}

.effect-off {
  background: #fff;
  opacity: 0.28;
}

.effect-random {
  background: #2452ff;
  animation: effect-random 900ms steps(1, end) infinite;
}

.effect-smooth {
  background: #fff;
  animation: effect-smooth 1400ms ease-in-out infinite;
}

.effect-breathe {
  background: #fff;
  animation: demo-breathe 1400ms ease-in-out infinite;
}

.effect-solid {
  background: #fff;
}

.effect-rainbow {
  background: conic-gradient(#f24c3d, #ff8c00, #24c06f, #2452ff, #e350d0, #f24c3d);
  animation: effect-spin 1800ms linear infinite;
}

@keyframes effect-random {
  0% { background: #2452ff; }
  25% { background: #24c06f; }
  50% { background: #ff8c00; }
  75% { background: #e350d0; }
}

@keyframes effect-smooth {
  0%, 100% { opacity: 0.42; }
  50% { opacity: 1; }
}

@keyframes effect-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes demo-breathe {
  0%, 100% {
    opacity: 0.35;
    transform: scale(0.82);
  }
  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}

@keyframes demo-blink {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0.18;
  }
}

@keyframes demo-envelope {
  0%, 100% {
    opacity: 0.12;
    transform: scale(0.76);
  }
  35%, 65% {
    opacity: 1;
    transform: scale(1.14);
  }
}

@keyframes mini-backlight-pulse {
  0%, 100% {
    opacity: 0.42;
    transform: translateX(-50%) scale(0.82);
    box-shadow:
      0 0 0 1px rgba(24, 33, 43, 0.22),
      0 0 0 5px rgba(255, 255, 255, 0.72),
      0 0 12px rgba(229, 115, 115, 0.2);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.16);
    box-shadow:
      0 0 0 1px rgba(24, 33, 43, 0.22),
      0 0 0 7px rgba(255, 255, 255, 0.95),
      0 0 24px rgba(229, 115, 115, 0.46);
  }
}

.step-card {
  position: relative;
  padding-top: 64px;
}

.step-number {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.device-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
  color: var(--text);
  font-weight: 650;
}

.device-flow span,
.effect-flow span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.device-flow b,
.effect-flow b {
  color: var(--muted);
  font-weight: 500;
}

.effect-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 14px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 650;
}

.effect-flow span {
  gap: 5px;
  padding: 5px 7px;
  white-space: nowrap;
}

.device-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(24, 33, 43, 0.16);
}

.dot-ble1 { background: #fff; }
.dot-ble2 { background: #2452ff; }
.dot-ble3 { background: #24c06f; }
.dot-24g { background: #f24c3d; }
.dot-usb { background: #e350d0; }

.layer-flow {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.layer-flow.compact {
  gap: 8px;
}

.layer-flow > span {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--text);
  font-weight: 650;
}

.pulse-dots {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 5px;
  align-items: center;
  min-width: 43px;
}

.pulse-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px rgba(24, 33, 43, 0.12);
  animation: layer-pulse 1400ms ease-in-out infinite;
}

.pulse-dots i:nth-child(2) {
  animation-delay: 150ms;
}

.pulse-dots i:nth-child(3) {
  animation-delay: 300ms;
}

@keyframes layer-pulse {
  0%, 100% {
    opacity: 0.38;
    transform: scale(0.86);
  }
  48% {
    opacity: 1;
    transform: scale(1.12);
    box-shadow: 0 0 0 1px rgba(24, 33, 43, 0.16);
  }
}

.switch-grid {
  margin-top: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.note-card ol {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.note-card li + li {
  margin-top: 10px;
}

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

.mapping-card {
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.mapping-title {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.mapping-title-text {
  min-width: 0;
}

.title-switch-action {
  margin-left: auto;
  padding: 5px 9px;
  border: 1px solid rgba(229, 115, 115, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--accent);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  cursor: pointer;
}

.title-switch-action:hover,
.title-switch-action:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-hover);
  outline: none;
}

.layer-dots {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 5px;
  align-items: center;
}

.layer-dots i {
  display: block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(24, 33, 43, 0.16);
  animation: layer-pulse 1400ms ease-in-out infinite;
}

.layer-dots i:nth-child(2) {
  animation-delay: 150ms;
}

.layer-dots i:nth-child(3) {
  animation-delay: 300ms;
}

.device-ble1 i {
  background: #fff;
}

.device-ble2 i {
  background: #2452ff;
}

.device-ble3 i {
  background: #24c06f;
}

.device-24g i {
  background: #f24c3d;
}

.device-usb i {
  background: #e350d0;
}

.device-wired i {
  background: linear-gradient(135deg, #f24c3d 0%, #e350d0 100%);
}

.key-combo,
.light-combo {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
  font-weight: 800;
  color: var(--text);
}

.key-combo .layer-dots,
.light-combo .layer-dots {
  vertical-align: middle;
}

.light-combo .layer-dots {
  gap: 4px;
}

.light-combo .layer-dots i:not(:first-child) {
  display: none;
}

.light-combo .layer-dots::after {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1;
  margin-left: 4px;
}

.light-combo .dots-1::after {
  content: "x 1";
}

.light-combo .dots-2::after {
  content: "x 2";
}

.light-combo .dots-3::after {
  content: "x 3";
}

.light-combo .static-light::after {
  content: "";
  margin-left: 0;
}

.light-combo .static-light.device-ble1::after {
  content: "BLE1";
  margin-left: 4px;
}

.light-combo .static-light.device-ble2::after {
  content: "BLE2";
  margin-left: 4px;
}

.light-combo .static-light.device-ble3::after {
  content: "BLE3";
  margin-left: 4px;
}

.light-combo .static-light.device-24g::after {
  content: "2.4G";
  margin-left: 4px;
}

.light-combo .static-light.device-usb::after {
  content: "USB";
  margin-left: 4px;
}

.light-combo .static-light i {
  animation: none;
  opacity: 1;
  transform: none;
}

.mapping-card.wide {
  grid-column: span 1;
}

.mapping-card p + p,
.group-card p + p,
.faq-card p + p {
  margin-top: 6px;
}

.scenario-card {
  display: grid;
  align-content: start;
  gap: 8px;
}

.device-scenario-card {
  grid-column: 1 / -1;
  gap: 10px;
  padding: 24px 26px;
}

.scenario-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(229, 115, 115, 0.14);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 248, 248, 0.56));
}

.scenario-card h3 {
  margin-bottom: 0;
}

.scenario-mode h4 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 10px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.35;
}

.scenario-mode p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.scenario-card p {
  line-height: 1.65;
}

.scenario-pairing-note {
  white-space: nowrap;
}

.beginner-intro-note {
  white-space: nowrap;
}

.scenario-mode {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 100%;
  padding: 14px 16px 16px;
}

.scenario-mode + .scenario-mode {
  margin-top: 0;
  border-left: 1px solid rgba(229, 115, 115, 0.14);
}

.scenario-mode h4 {
  margin: 0;
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 900;
}

.scenario-examples {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

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

.scenario-steps li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: baseline;
  line-height: 1.65;
  counter-increment: scenario-step;
  color: var(--muted);
}

.scenario-steps li::before {
  content: counter(scenario-step);
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(229, 115, 115, 0.18);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
}

.scenario-steps strong {
  color: inherit;
}

.scenario-steps li > span {
  min-width: 0;
}

.scenario-step-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
}

.main-key-actions {
  display: grid;
  gap: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(229, 115, 115, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.54);
}

.main-key-actions div {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: stretch;
  min-height: 34px;
}

.main-key-actions div + div {
  border-top: 1px solid rgba(229, 115, 115, 0.1);
}

.main-key-actions dt {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  padding: 7px 8px;
  border-right: 1px solid rgba(229, 115, 115, 0.1);
  background: rgba(229, 115, 115, 0.08);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.35;
  white-space: nowrap;
  margin: 0;
}

.main-key-actions dt::after {
  content: "";
}

.main-key-actions dd {
  display: flex;
  align-items: center;
  margin: 0;
  min-width: 0;
  padding: 7px 10px;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 720;
  line-height: 1.5;
}

.scenario-mode .main-key-actions {
  gap: 0;
}

.scenario-mode .main-key-actions dd {
  color: var(--text);
}

.scenario-mode .inline-action {
  display: inline;
  width: auto;
  max-width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 850;
  line-height: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.scenario-mode .inline-action:hover,
.scenario-mode .inline-action:focus-visible {
  color: var(--accent-hover);
  outline: none;
}

.scenario-note {
  padding-top: 0;
  color: var(--muted);
}

.faq-steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.35em;
  color: var(--muted);
  line-height: 1.78;
}

.action-set[hidden] {
  display: none;
}

.inline-action {
  font: inherit;
  color: var(--accent);
  cursor: pointer;
}

.inline-action {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  line-height: 1.78;
}

.inline-action:hover,
.inline-action:focus-visible {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.group-entry {
  margin-bottom: 10px !important;
  font-size: 0.94rem;
  color: #718195 !important;
}

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

.faq-card {
  box-shadow: var(--shadow-soft);
}

.faq-card .faq-red-note {
  color: var(--accent);
  font-weight: 800;
}

.faq-upgrade-card {
  display: grid;
  gap: 10px;
  border-color: var(--line-strong);
  background: var(--panel-soft);
}

.faq-upgrade-card h3,
.faq-upgrade-card p {
  margin-bottom: 0;
}

.faq-upgrade-button {
  width: fit-content;
  margin-top: 2px;
  padding: 8px 12px;
  font-size: 0.88rem;
}

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

.page-footer {
  margin-top: 24px;
  padding: 26px 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.8;
}

.page-footer p {
  margin: 0;
}

.page-footer p + p {
  margin-top: 4px;
}

code {
  padding: 0.2em 0.45em;
  border-radius: 8px;
  background: rgba(229, 115, 115, 0.08);
  font-family: "Consolas", "SFMono-Regular", monospace;
  font-size: 0.92em;
}

@media (max-width: 1024px) {
  .hero-top {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    justify-self: stretch;
  }

  .starter-strip,
  .hero-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-grid,
  .status-grid,
    .steps-grid,
    .split-note-grid,
    .mapping-grid,
    .group-grid,
    .faq-grid,
    .switch-grid,
    .power-stage-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 720px) {
  .page-shell {
    width: min(calc(100% - 24px), var(--max-width));
    padding: 14px 0 40px;
  }

  .hero {
    padding: 16px;
    border-radius: 26px;
  }

  .panel {
    padding: 22px 16px;
  }

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

  .hero-kicker {
    margin-bottom: 12px;
    font-size: 0.76rem;
    letter-spacing: 0.14em;
  }

  .hero h1 {
    font-size: clamp(2rem, 9.5vw, 2.75rem);
    line-height: 1.05;
  }

  .section-nav {
    top: 8px;
    flex-wrap: nowrap;
    align-items: center;
    gap: 5px;
    margin: 12px 0;
    padding: 5px;
    border-radius: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    box-shadow:
      inset -26px 0 20px -22px rgba(229, 115, 115, 0.5),
      0 12px 30px rgba(23, 33, 43, 0.06);
  }

  .section-nav::-webkit-scrollbar {
    display: none;
  }

  .section-nav::after {
    content: "›";
    position: sticky;
    right: -6px;
    display: inline-flex;
    flex: 0 0 28px;
    align-self: stretch;
    align-items: center;
    justify-content: center;
    margin-left: -18px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 252, 252, 0), rgba(255, 252, 252, 0.96) 46%);
    color: var(--accent);
    font-size: 1.35rem;
    font-weight: 900;
    pointer-events: none;
  }

  .section-nav a {
    flex: 0 0 auto;
    padding: 6px 9px;
    white-space: nowrap;
    font-size: 0.84rem;
  }

  .section-nav a:hover,
  .section-nav a:focus-visible,
  .section-nav a.is-active {
    box-shadow: inset 0 0 0 1px rgba(229, 115, 115, 0.18);
    transform: none;
  }

  .timeline-grid,
  .status-grid,
    .function-key-grid,
    .compact-status,
    .steps-grid,
    .split-note-grid,
    .mapping-grid,
    .group-grid,
    .faq-grid,
    .notes-grid,
    .switch-grid,
    .power-stage-grid {
      grid-template-columns: 1fr;
    }

  .scenario-mode-grid {
    grid-template-columns: 1fr;
  }

  .scenario-pairing-note {
    white-space: normal;
  }

  .beginner-intro-note {
    white-space: normal;
  }

  .scenario-mode + .scenario-mode {
    border-top: 1px solid rgba(229, 115, 115, 0.14);
    border-left: 0;
  }

  .hero-flow {
    grid-template-columns: 1fr;
  }

  .starter-strip {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 18px;
  }

  .starter-strip > span,
  .starter-action {
    gap: 7px;
    min-height: 0;
    padding: 9px 11px;
    border-radius: 16px;
  }

  .starter-strip b {
    width: 26px;
    height: 26px;
    font-size: 0.86rem;
  }

  .starter-copy {
    gap: 2px;
  }

  .starter-copy strong {
    font-size: 0.96rem;
  }

  .starter-copy small {
    display: block;
    gap: 4px;
    font-size: 0.84rem;
    line-height: 1.32;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .starter-copy small > span {
    display: block;
  }

  .panel,
  .beginner-layout,
  .beginner-summary,
  .building-scene,
  .starter-strip > span {
    min-width: 0;
  }

  .panel-heading p,
  .beginner-step-copy p {
    overflow-wrap: anywhere;
  }

  .beginner-summary {
    grid-template-rows: auto auto auto auto;
    gap: 12px;
    align-content: start;
    padding: 12px;
  }

  .building-scene {
    grid-template-columns: 18px repeat(5, 36px);
    gap: 4px;
    justify-content: center;
    min-height: 0;
    padding: 12px 6px 9px;
  }

  .beginner-step {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    padding: 14px 0;
  }

  .building-levels,
  .building-tower {
    grid-template-rows: 11px repeat(3, 28px);
    gap: 4px;
  }

  .building-levels {
    padding: 10px 0 6px;
  }

  .building-levels span {
    font-size: 0.62rem;
  }

  .building-tower {
    padding: 9px 2px 6px;
    border-top-width: 4px;
    border-radius: 8px 8px var(--radius-sm) var(--radius-sm);
  }

  .building-tower::before {
    top: -12px;
    left: 5px;
    right: 5px;
    height: 12px;
  }

  .building-tower span {
    font-size: 0.54rem;
  }

  .building-floor {
    gap: 2px;
    padding: 4px 1px;
  }

  .building-floor i {
    max-width: 6px;
  }

  .beginner-total {
    min-height: 34px;
    font-size: 0.96rem;
  }

  .building-legend {
    gap: 6px;
  }

  .building-legend span {
    padding: 5px 8px;
    font-size: 0.78rem;
  }

  .hero-visual {
    justify-self: center;
    width: min(100%, 242px);
    padding: 12px;
    border-radius: 18px;
  }

  .mini-device {
    min-height: 118px;
    gap: 10px 12px;
    padding: 20px 10px 12px;
    border-radius: 16px;
  }

  .mini-side-key {
    width: min(100%, 64px);
    min-height: 38px;
    border-radius: 13px;
    font-size: 0.72rem;
  }

  .mini-main-key {
    width: min(56%, 100px);
    min-height: 0;
    font-size: 0.9rem;
  }

  .mini-backlight {
    top: 32px;
  }

  .page-search {
    flex: 0 0 188px;
    min-width: 188px;
    gap: 6px;
    justify-content: flex-start;
  }

  .page-search input {
    width: 96px;
    padding: 8px 10px;
    font-size: 0.86rem;
  }

  .page-search button {
    padding: 8px 10px;
    font-size: 0.86rem;
  }

  .page-search-status {
    min-width: 26px;
    font-size: 0.78rem;
  }

  .language-switch {
    flex: 0 0 auto;
    gap: 0;
    min-height: 34px;
    padding: 2px 4px;
    white-space: nowrap;
    font-size: 0.82rem;
  }

  .language-switch select {
    min-width: 76px;
    padding: 6px 22px 6px 8px;
  }

  table {
    min-width: 620px;
  }

  .callout {
    flex-direction: column;
  }
}
