:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --panel: #ffffff;
  --panel-soft: #f9fbfd;
  --text: #172033;
  --muted: #667085;
  --line: #d9e2ec;
  --accent: #0f9f8f;
  --accent-strong: #0b766e;
  --blue: #2563eb;
  --amber: #b45309;
  --danger: #b42318;
  --code-bg: #101828;
  --code-text: #e6edf6;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d141b;
  --panel: #121b24;
  --panel-soft: #0f1821;
  --text: #e6edf5;
  --muted: #9aa8b7;
  --line: #263545;
  --accent: #2dd4bf;
  --accent-strong: #5eead4;
  --blue: #60a5fa;
  --amber: #fbbf24;
  --danger: #fb7185;
  --code-bg: #050a12;
  --code-text: #dbeafe;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, #eef8f6 0, rgba(238, 248, 246, 0) 260px),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

html[data-theme="dark"] body {
  background:
    linear-gradient(180deg, rgba(13, 148, 136, 0.16) 0, rgba(13, 148, 136, 0) 280px),
    radial-gradient(circle at 82% 0%, rgba(37, 99, 235, 0.16), transparent 330px),
    var(--bg);
}

a {
  color: var(--accent-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  padding: 24px 18px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 8px 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}

.brand-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo-link {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-soft);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  text-decoration: none;
}

.brand-logo-link:hover {
  border-color: rgba(15, 159, 143, 0.38);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
  text-decoration: none;
}

.brand-logo-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.brand-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: 0;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.7rem;
}

.theme-panel {
  display: flex;
  flex: 0 0 auto;
  margin: 0;
}

.theme-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-soft);
  color: var(--accent-strong);
  cursor: pointer;
  padding: 0;
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.theme-button:hover {
  border-color: rgba(15, 159, 143, 0.38);
  background: #eef6f5;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.theme-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.theme-icon {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
}

.theme-icon::before {
  content: "";
  position: absolute;
  transition:
    background-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

html[data-theme="light"] .theme-icon::before {
  left: 3px;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow:
    0 -8px 0 -5px #f59e0b,
    0 8px 0 -5px #f59e0b,
    8px 0 0 -5px #f59e0b,
    -8px 0 0 -5px #f59e0b,
    6px 6px 0 -5px #f59e0b,
    -6px 6px 0 -5px #f59e0b,
    6px -6px 0 -5px #f59e0b,
    -6px -6px 0 -5px #f59e0b;
}

html[data-theme="dark"] .theme-icon::before {
  left: 1px;
  top: 1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #dbeafe;
  box-shadow: inset -6px -2px 0 #64748b;
  transform: rotate(-12deg);
}

.theme-button[data-theme-choice="auto"]::after {
  content: "";
  position: absolute;
  right: 7px;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--panel-soft);
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  border-radius: 8px;
  color: #334155;
  padding: 8px 10px;
  font-size: 14px;
  text-decoration: none;
}

.nav a:hover {
  background: #eef6f5;
  color: var(--accent-strong);
}

.nav a.active {
  background: #e5faf6;
  color: #087668;
  font-weight: 700;
}

.nav-icon {
  display: block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  opacity: 0.86;
}

.nav a:hover .nav-icon,
.nav a.active .nav-icon {
  opacity: 1;
}

.nav-group {
  border-radius: 8px;
}

.nav-group summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  border-radius: 8px;
  color: #334155;
  cursor: pointer;
  font-size: 14px;
  list-style: none;
  padding: 8px 10px;
}

.nav-group summary::-webkit-details-marker {
  display: none;
}

.nav-group summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  margin-left: auto;
  transform: rotate(45deg);
  transition: transform 0.16s ease;
}

.nav-group[open] summary::after {
  transform: rotate(225deg);
}

.nav-group summary:hover {
  background: #eef6f5;
  color: var(--accent-strong);
}

.nav-group.active summary {
  color: #087668;
  font-weight: 700;
}

.nav-children {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 1px solid var(--line);
  margin: 2px 0 4px 10px;
  padding-left: 8px;
}

.nav-children a {
  min-height: 36px;
  padding-left: 10px;
}

.nav-disabled {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  border-radius: 8px;
  color: #94a3b8;
  cursor: not-allowed;
  font-size: 14px;
  padding: 8px 10px;
}

.main {
  min-width: 0;
  padding: 34px 26px 48px;
}

.content {
  width: min(980px, 100%);
  margin: 0 auto;
}

.hero {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 28px;
  margin-bottom: 22px;
}

.eyebrow {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

h1,
h2,
h3 {
  line-height: 1.25;
  letter-spacing: 0;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
}

h2 {
  margin: 34px 0 12px;
  font-size: 24px;
}

h3 {
  margin: 22px 0 8px;
  font-size: 18px;
}

p {
  margin: 10px 0;
}

.lead {
  max-width: 760px;
  color: #475467;
  font-size: 17px;
}

.overview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  padding: 22px;
}

.overview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.overview-head h2 {
  margin: 0 0 4px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 750;
  padding: 5px 10px;
  white-space: nowrap;
}

.status-pill[data-state="ready"] {
  border-color: #99f6e4;
  background: #ecfdf5;
  color: #087668;
}

.status-pill[data-state="error"] {
  border-color: #fecaca;
  background: #fff1f2;
  color: var(--danger);
}

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

.stat-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 18px;
}

.stat-card.primary {
  border-color: #99f6e4;
  background: #ecfdf5;
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.stat-card strong {
  display: block;
  margin: 8px 0;
  color: #0f172a;
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 820;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.stat-card p {
  color: var(--muted);
  margin: 0;
}

.overview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  margin-top: 16px;
  padding-top: 12px;
}

.overview-meta strong {
  color: #344054;
  font-weight: 750;
}

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

.card,
.callout,
.steps,
.pager {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.card {
  padding: 18px;
}

.card h3 {
  margin-top: 0;
}

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

.card .go {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  font-weight: 700;
}

.download-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.download-card-head h3 {
  margin: 0;
}

.download-card-icons {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 7px;
}

.download-card-icons img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  object-fit: cover;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 14px;
  margin: 16px 0;
}

.contact-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
}

.contact-card h3 {
  margin-top: 0;
}

.contact-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-title span {
  min-width: 0;
}

.contact-icon-link {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  text-decoration: none;
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.contact-icon-link:hover {
  border-color: rgba(15, 159, 143, 0.38);
  background: #eef6f5;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  text-decoration: none;
  transform: translateY(-1px);
}

.contact-icon-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.contact-icon-link img {
  display: block;
  width: 20px;
  height: 20px;
}

.contact-card h3 s {
  text-decoration-line: line-through;
  text-decoration-color: var(--danger);
  text-decoration-thickness: 2px;
  text-decoration-skip-ink: none;
}

.contact-card p {
  color: var(--muted);
}

.qr-contact {
  display: flex;
  flex-direction: column;
}

.qr-image {
  display: block;
  width: min(100%, 260px);
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  margin: 8px auto 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

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

.download-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
}

.download-card h3 {
  margin-top: 0;
}

.download-card p {
  color: var(--muted);
}

.download-card .button {
  margin-top: 8px;
}

.download-status {
  color: var(--muted);
  font-size: 13px;
  margin: -8px 0 16px;
}

.download-status[data-state="ready"] {
  color: var(--accent-strong);
}

.download-status[data-state="warning"] {
  color: var(--amber);
}

.download-status[data-state="error"] {
  color: var(--danger);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  font-weight: 750;
  font: inherit;
  padding: 9px 14px;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-strong);
  text-decoration: none;
}

.button[data-state="loading"] {
  cursor: progress;
  opacity: 0.86;
}

.button[data-state="error"] {
  border-color: var(--amber);
  background: var(--amber);
}

.button.secondary {
  background: #ffffff;
  color: var(--accent-strong);
}

.button.secondary:hover {
  background: #eef6f5;
}

.image-dialog {
  width: min(1180px, calc(100vw - 28px));
  max-height: min(92vh, 980px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
  padding: 0;
}

.image-dialog::backdrop {
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(3px);
}

.dialog-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  padding: 14px 16px;
}

.dialog-title {
  font-size: 18px;
  font-weight: 780;
}

.dialog-close {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 22px;
  line-height: 1;
}

.dialog-close:hover {
  background: #f1f5f9;
}

.gallery-tabs {
  background: var(--panel);
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  padding: 12px 16px;
}

.tab-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  padding: 8px 12px;
}

.tab-button:hover {
  border-color: rgba(15, 159, 143, 0.38);
  color: var(--accent-strong);
}

.tab-button.active {
  border-color: var(--accent);
  background: #e5faf6;
  color: var(--accent-strong);
}

.tab-star {
  color: var(--amber);
  line-height: 1;
}

.tab-panel[hidden] {
  display: none;
}

.image-gallery {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.screenshot-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  overflow: hidden;
}

.screenshot-card figcaption {
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  color: #344054;
  font-weight: 750;
  padding: 10px 12px;
}

.screenshot-card img {
  display: block;
  width: 100%;
  height: auto;
  background: #ffffff;
}

.gallery-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  border-top: 1px solid #fcd34d;
  background: #fffbeb;
  color: #92400e;
  font-weight: 750;
  padding: 12px 14px;
}

.gallery-note::before {
  content: "⚠";
  flex: 0 0 auto;
  color: var(--amber);
  line-height: 1.65;
}

.steps {
  counter-reset: step;
  padding: 8px 0;
}

.step {
  position: relative;
  padding: 18px 22px 18px 64px;
  border-bottom: 1px solid var(--line);
}

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

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e5faf6;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 800;
}

.step h3 {
  margin-top: 0;
}

.step img {
  display: block;
  width: min(100%, 760px);
  max-height: min(560px, 70vh);
  height: auto;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  margin: 14px auto 0;
}

.step-image-zoom {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 14px auto 0;
}

.screenshot-card .step-image-zoom {
  width: 100%;
  margin: 0;
}

.step-image-zoom img {
  margin: 0;
}

.step-image-zoom-button {
  position: absolute;
  right: 10px;
  top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  padding: 8px 11px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(10px);
}

.step-image-zoom-button::before {
  content: "⌕";
  font-size: 15px;
  line-height: 1;
}

.step-image-zoom-button:hover {
  border-color: rgba(15, 159, 143, 0.38);
  background: #ffffff;
  color: var(--accent-strong);
}

.step-image-zoom-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.step-image-dialog {
  width: min(var(--step-image-dialog-width, 760px), calc(100vw - 28px));
  max-width: calc(100vw - 28px);
  max-height: calc(100vh - 28px);
  overflow: hidden;
}

.step-image-dialog-body {
  box-sizing: border-box;
  overflow: auto;
  width: 100%;
  height: var(--step-image-dialog-body-height, auto);
  max-height: calc(100vh - 96px);
  padding: var(--step-image-dialog-padding, 16px);
  background: #f8fafc;
}

.step-image-dialog-body img {
  display: block;
  width: var(--step-image-dialog-image-width, auto);
  height: var(--step-image-dialog-image-height, auto);
  max-width: none;
  max-height: none;
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
  margin: auto;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.18);
  transition: opacity 0.14s ease;
}

.step-image-dialog[data-loading="true"] .step-image-dialog-body img {
  opacity: 0;
}

.callout {
  padding: 14px 16px;
  margin: 16px 0;
}

.callout strong {
  display: block;
  margin-bottom: 4px;
}

.callout.info {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.callout.warn {
  border-color: #fcd34d;
  background: #fffbeb;
}

.callout.danger {
  border-color: #fecaca;
  background: #fff1f2;
}

.config-accordion {
  margin: 18px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.config-accordion + .config-accordion {
  margin-top: 12px;
}

.config-accordion summary {
  position: relative;
  display: block;
  cursor: pointer;
  list-style: none;
  padding: 18px 54px 18px 18px;
  transition:
    background-color 0.16s ease,
    color 0.16s ease;
}

.config-accordion summary::-webkit-details-marker {
  display: none;
}

.config-accordion summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  color: var(--accent-strong);
  transform: translateY(-62%) rotate(45deg);
  transition: transform 0.16s ease;
}

.config-accordion[open] summary::after {
  transform: translateY(-38%) rotate(225deg);
}

.config-accordion summary:hover {
  background: #eef6f5;
  color: var(--accent-strong);
}

.config-accordion summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}

.config-accordion-title,
.config-accordion-desc {
  display: block;
}

.config-accordion-title {
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
}

.config-accordion summary:hover .config-accordion-title {
  color: var(--accent-strong);
}

.config-accordion-desc {
  max-width: 760px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
}

.config-accordion-body {
  border-top: 1px solid var(--line);
  padding: 4px 18px 20px;
}

.config-accordion-body > :first-child {
  margin-top: 14px;
}

.config-accordion-body h3 {
  margin-top: 22px;
}

.kv {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 10px 14px;
  padding: 16px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.kv dt {
  color: var(--muted);
  font-weight: 700;
}

.kv dd {
  margin: 0;
  min-width: 0;
}

code {
  border-radius: 6px;
  background: #eef2f7;
  color: #1d2939;
  padding: 2px 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.code-block {
  position: relative;
  margin: 14px 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--code-bg);
  color: var(--code-text);
}

.code-block pre {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
}

.code-block code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.copy {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  padding: 5px 9px;
}

.copy:hover {
  background: rgba(255, 255, 255, 0.16);
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

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

.table th {
  background: #f1f5f9;
  color: #344054;
  font-size: 14px;
}

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

.model-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-left: 6px;
  border: 1px solid rgba(245, 158, 11, 0.34);
  border-radius: 999px;
  background: #fffbeb;
  color: #d97706;
  vertical-align: middle;
}

.model-note[data-tone="danger"] {
  border-color: rgba(239, 68, 68, 0.34);
  background: #fef2f2;
  color: #dc2626;
}

.model-note-icon {
  display: block;
  width: 13px;
  height: 13px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pager {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 34px;
  padding: 12px;
}

.pager a {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
}

.pager a:hover {
  background: #eef6f5;
}

.pager span {
  color: var(--muted);
  font-size: 12px;
}

.mobile-nav {
  display: none;
  margin-bottom: 16px;
}

.mobile-nav select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  padding: 12px;
  font: inherit;
}

.muted {
  color: var(--muted);
}

.checklist {
  padding-left: 20px;
}

.checklist li {
  margin: 7px 0;
}

html[data-theme="dark"] .sidebar {
  background: rgba(15, 23, 32, 0.9);
}

html[data-theme="dark"] .brand-logo-link {
  border-color: rgba(94, 234, 212, 0.28);
  background: rgba(45, 212, 191, 0.1);
  box-shadow:
    0 0 0 1px rgba(94, 234, 212, 0.08),
    0 14px 30px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .nav a,
html[data-theme="dark"] .nav-group summary {
  color: #cbd5e1;
}

html[data-theme="dark"] .nav a:hover,
html[data-theme="dark"] .nav-group summary:hover,
html[data-theme="dark"] .pager a:hover,
html[data-theme="dark"] .contact-icon-link:hover,
html[data-theme="dark"] .button.secondary:hover {
  background: rgba(45, 212, 191, 0.1);
  color: var(--accent-strong);
}

html[data-theme="dark"] .button:not(.secondary) {
  border-color: rgba(94, 234, 212, 0.38);
  background: rgba(45, 212, 191, 0.14);
  color: #bffdf3;
  box-shadow:
    inset 0 0 0 1px rgba(94, 234, 212, 0.08),
    0 8px 22px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .button:not(.secondary):hover {
  border-color: rgba(94, 234, 212, 0.54);
  background: rgba(45, 212, 191, 0.22);
  color: #e6fffb;
  box-shadow:
    inset 0 0 0 1px rgba(94, 234, 212, 0.12),
    0 10px 26px rgba(0, 0, 0, 0.26);
}

html[data-theme="dark"] .button[data-state="error"] {
  border-color: rgba(251, 191, 36, 0.42);
  background: rgba(180, 83, 9, 0.18);
  color: #fde68a;
}

html[data-theme="dark"] .nav a.active,
html[data-theme="dark"] .nav-group.active summary {
  background: rgba(45, 212, 191, 0.16);
  color: var(--accent-strong);
}

html[data-theme="dark"] .lead,
html[data-theme="dark"] .card p,
html[data-theme="dark"] .contact-card p,
html[data-theme="dark"] .stat-card p {
  color: var(--muted);
}

html[data-theme="dark"] .download-card-icons img {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .step img {
  background: var(--panel-soft);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .step-image-zoom-button {
  border-color: rgba(94, 234, 212, 0.32);
  background: rgba(15, 24, 33, 0.88);
  color: #dbeafe;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .step-image-zoom-button:hover {
  border-color: rgba(94, 234, 212, 0.48);
  background: rgba(15, 24, 33, 0.96);
  color: var(--accent-strong);
}

html[data-theme="dark"] .step-image-dialog-body {
  background: var(--panel);
}

html[data-theme="dark"] .step-image-dialog-body img {
  background: var(--panel-soft);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .config-accordion summary:hover {
  background: rgba(45, 212, 191, 0.1);
}

html[data-theme="dark"] .model-note {
  border-color: rgba(251, 191, 36, 0.42);
  background: rgba(251, 191, 36, 0.14);
  color: #fbbf24;
}

html[data-theme="dark"] .model-note[data-tone="danger"] {
  border-color: rgba(248, 113, 113, 0.42);
  background: rgba(248, 113, 113, 0.14);
  color: #f87171;
}

html[data-theme="dark"] .stat-card strong,
html[data-theme="dark"] .overview-meta strong,
html[data-theme="dark"] .screenshot-card figcaption,
html[data-theme="dark"] .table th {
  color: #dbeafe;
}

html[data-theme="dark"] .status-pill {
  border-color: rgba(96, 165, 250, 0.36);
  background: rgba(37, 99, 235, 0.16);
  color: #93c5fd;
}

html[data-theme="dark"] .status-pill[data-state="ready"],
html[data-theme="dark"] .stat-card.primary {
  border-color: rgba(45, 212, 191, 0.42);
  background: rgba(20, 184, 166, 0.12);
  color: var(--accent-strong);
}

html[data-theme="dark"] .status-pill[data-state="error"] {
  border-color: rgba(251, 113, 133, 0.42);
  background: rgba(244, 63, 94, 0.13);
}

html[data-theme="dark"] .qr-image,
html[data-theme="dark"] .button.secondary,
html[data-theme="dark"] .image-dialog,
html[data-theme="dark"] .dialog-close,
html[data-theme="dark"] .mobile-nav select,
html[data-theme="dark"] .screenshot-card img {
  background: var(--panel);
}

html[data-theme="dark"] .gallery-note {
  border-top-color: rgba(251, 191, 36, 0.42);
  background: rgba(180, 83, 9, 0.16);
  color: #fde68a;
}

html[data-theme="dark"] .dialog-header,
html[data-theme="dark"] .tab-list,
html[data-theme="dark"] .screenshot-card figcaption,
html[data-theme="dark"] .table th {
  background: rgba(15, 24, 33, 0.96);
}

html[data-theme="dark"] .tab-button {
  background: var(--panel-soft);
  color: var(--muted);
}

html[data-theme="dark"] .tab-button.active {
  border-color: rgba(94, 234, 212, 0.42);
  background: rgba(45, 212, 191, 0.14);
  color: var(--accent-strong);
}

html[data-theme="dark"] code {
  background: #1b2938;
  color: #e2e8f0;
}

html[data-theme="dark"] .callout.info {
  border-color: rgba(96, 165, 250, 0.38);
  background: rgba(37, 99, 235, 0.13);
}

html[data-theme="dark"] .callout.warn {
  border-color: rgba(251, 191, 36, 0.42);
  background: rgba(180, 83, 9, 0.14);
}

html[data-theme="dark"] .callout.danger {
  border-color: rgba(251, 113, 133, 0.42);
  background: rgba(190, 18, 60, 0.14);
}

html[data-theme="dark"] .step::before {
  background: rgba(45, 212, 191, 0.15);
}

html[data-theme="dark"] .theme-button {
  background: var(--panel-soft);
}

html[data-theme="dark"] .contact-icon-link {
  border-color: rgba(94, 234, 212, 0.38);
  background: rgba(45, 212, 191, 0.12);
  box-shadow:
    0 0 0 1px rgba(94, 234, 212, 0.12),
    0 10px 24px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .contact-icon-link img {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

html[data-theme="dark"] .theme-button:hover {
  border-color: rgba(94, 234, 212, 0.4);
  background: rgba(45, 212, 191, 0.1);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .theme-button[data-theme-choice="auto"]::after {
  box-shadow: 0 0 0 2px var(--panel-soft);
}

@media (max-width: 840px) {
  .shell {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .main {
    padding: 18px 14px 34px;
  }

  .mobile-nav {
    display: block;
  }

  .theme-button {
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(12px);
  }

  html[data-theme="dark"] .theme-button {
    background: rgba(15, 23, 32, 0.9);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34);
  }

  .hero {
    padding: 20px;
  }

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

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

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

  .overview {
    padding: 18px;
  }

  .overview-head,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .overview-head {
    flex-direction: column;
  }

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

  .config-accordion summary {
    padding: 16px 48px 16px 16px;
  }

  .config-accordion summary::after {
    right: 18px;
  }

  .config-accordion-title {
    font-size: 18px;
  }

  .config-accordion-body {
    padding: 2px 14px 16px;
  }

  .step {
    padding-left: 56px;
  }

  .step-image-zoom-button {
    right: 8px;
    top: 8px;
    font-size: 12px;
    padding: 7px 9px;
  }

  .step-image-dialog-body {
    max-width: calc(100vw - 40px);
    max-height: calc(92vh - 60px);
    padding: 10px;
  }

  .pager {
    flex-direction: column;
  }
}
