:root {
  --surface: #fff;
  --surface-subtle: #f4f6f3;
  --surface-raised: #fff;
  --control: #fff;
  color-scheme: light;
}
html[data-theme="dark"] {
  --ink: #e5ede7;
  --muted: #a2b3a8;
  --bg: #101813;
  --line: #324438;
  --green: #94d8b0;
  --mint: #203b2c;
  --lime: #c4e895;
  --danger: #ffaaa2;
  --surface: #19251d;
  --surface-subtle: #142018;
  --surface-raised: #223128;
  --control: #1d2c23;
  color-scheme: dark;
  scrollbar-color: #4b6353 #142018;
}
.theme-control { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 0; color: var(--muted); line-height: 1; cursor: pointer; }
.theme-control-icon { width: 17px; height: 17px; display: flex; flex: none; }
.theme-control-icon svg { width: 100%; height: 100%; }
.theme-control:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.theme-control:hover { color: var(--green); background: var(--surface-subtle); }
.appearance-controls { position: absolute; inset-block-start: 32px; inset-inline-end: 32px; z-index: 10; display: flex; gap: 12px; align-items: center; }
html[data-theme="dark"] body { background: var(--bg); color: var(--ink); }
html[data-theme="dark"] :is(h1,h2,h3,h4) { color: var(--ink); }
html[data-theme="dark"] :is(dialog,.panel,.stat-card,.preview-panel,.doc-card,.auth-card,.portal-card,.plan-card,.advantage-card,.forum-topic-card,.forum-post,.forum-reply,.forum-composer,.forum-sidebar,.forum-form,.key-box,.operation-details,.admin-selection-bar,.calculator-card,.demo-card,.support-card,.tutorial-grid .doc-card) { background: var(--surface); color: var(--ink); border-color: var(--line); }
html[data-theme="dark"] :is(input,select,textarea) { color: var(--ink); background: var(--control); border-color: var(--line); accent-color: var(--green); }
html[data-theme="dark"] input::placeholder, html[data-theme="dark"] textarea::placeholder { color: var(--muted); opacity: .8; }
html[data-theme="dark"] :is(input,select,textarea):disabled { opacity: .55; }
html[data-theme="dark"] .button { background: #2c674b; border-color: #498662; color: #fff; }
html[data-theme="dark"] .button.secondary { background: var(--surface-raised); color: var(--ink); border-color: var(--line); }
html[data-theme="dark"] .button.danger { background: #923b3b; border-color: #b15450; color: #fff; }
html[data-theme="dark"] .button:disabled { background: var(--surface-raised); color: var(--muted); border-color: var(--line); }
html[data-theme="dark"] .workspace-header, html[data-theme="dark"] .public-header { background: #19251df2; border-color: var(--line); }
html[data-theme="dark"] .sidebar { background: #11291b; }
html[data-theme="dark"] .sidebar :is(a,.brand) { color: #dce9df; }
html[data-theme="dark"] .sidebar a.active { background: var(--lime); color: #193821; }
html[data-theme="dark"] :is(th,.pager,.docs-topic-select,.forum-empty,.estimate-grid,.demo-stats,.billing-breakdown,.plan-period-settings,.batch-selection>div) { background: var(--surface-subtle); border-color: var(--line); }
html[data-theme="dark"] :is(td,th,.panel-header,.toolbar,.preview-top,.preview-grid article,.portal-device,.admin-overview-action,.gift-preview,.license-section,.plan-period-settings,.forum-pagination) { border-color: var(--line); }
html[data-theme="dark"] :is(.pager button,.toolbar input,.toolbar select,.meter-row input,.meter-row select) { background: var(--control); color: var(--ink); border-color: var(--line); }
html[data-theme="dark"] :is(.notice,.integration-steps [aria-current]) { background: #223723; border-color: #435d3e; color: #c4ddaf; }
html[data-theme="dark"] :is(.error-panel,.portal-danger,.portal-warning) { background: #382423; border-color: #774d48; color: var(--danger); }
html[data-theme="dark"] :is(.badge,.tag,.role-pill,.feature-number) { background: var(--mint); color: var(--green); }
html[data-theme="dark"] :is(.badge.expired,.badge.suspended,.badge.disabled,.badge.pending,.plan-availability) { background: #3b3321; color: #efd898; }
html[data-theme="dark"] :is(.badge.revoked,.badge.failed) { background: #422a27; color: #ffc0b2; }
html[data-theme="dark"] code { background: #223629; color: #a3dfba; }
html[data-theme="dark"] :is(.code-block,.documentation-page pre,.documentation-page .code-block,.response-block) { background: #111b14; color: #e0eee3; border-color: var(--line); }
html[data-theme="dark"] .code-toolbar { background: #24332a; color: var(--muted); border-color: var(--line); }
html[data-theme="dark"] :is(.code-toolbar button,.code-tabs button) { background: var(--surface-raised); color: var(--ink); border-color: var(--line); }
html[data-theme="dark"] .code-block code { background: transparent; color: inherit; }
html[data-theme="dark"] .auth-page { background: linear-gradient(120deg,#13231a,#101813 70%); }
html[data-theme="dark"] .marketing-hero { background: radial-gradient(ellipse at center,#1f3527 0,transparent 72%); }
html[data-theme="dark"] :is(.marketing-hero p,.feature-copy p,.portal-meta,.documentation-page .docs-intro,.docs-nav-group,.docs-breadcrumbs) { color: var(--muted); }
html[data-theme="dark"] .sdk-strip { color: var(--muted); }
html[data-theme="dark"] :is(.feature-row,.feature-visual,.product-preview,.license-preview,.metrics-preview,.estimate-panel,.demo-stage,.marketing-cta) { background: var(--surface-subtle); border-color: var(--line); }
html[data-theme="dark"] :is(.callout,.demo-stats div) { background: var(--surface-subtle); color: var(--ink); border-color: var(--line); }
html[data-theme="dark"] .documentation-page { background: var(--bg); color: var(--ink); }
html[data-theme="dark"] :is(.docs-sidebar,.docs-bottom-links,.docs-pagination,.docs-body table,.docs-body td,.docs-body th,.docs-code-block,.docs-callout) { border-color: var(--line); }
html[data-theme="dark"] :is(.docs-sidebar-title,.docs-toc a,.docs-topic h1,.docs-topic h2,.docs-topic h3) { color: var(--ink); }
html[data-theme="dark"] .documentation-page .docs-toc a:hover, html[data-theme="dark"] .documentation-page .docs-toc a[aria-current="page"] { background: var(--mint); color: var(--green); }
html[data-theme="dark"] :is(.docs-callout,.docs-note,.docs-flow,.docs-api-next,.docs-body blockquote,.docs-start-steps,.docs-start-steps li,.sdk-summary,.docs-topic-select,.docs-code-block) { background: var(--surface-subtle); color: var(--ink); border-color: var(--line); }
html[data-theme="dark"] :is(.docs-page-title,.docs-start-steps strong) { color: var(--ink); }
html[data-theme="dark"] :is(.docs-start-steps span,.docs-inline-controls label) { color: var(--muted); }
html[data-theme="dark"] .documentation-page .docs-body a:not(.button) { color: var(--green); }
html[data-theme="dark"] :is(.portal-confirm,.portal-confirm-bar,.license-batchbar) { background: var(--surface-raised); color: var(--ink); border-color: var(--line); }
html[data-theme="dark"] .policy-tabs { background: var(--surface-subtle); }
html[data-theme="dark"] .policy-tab { color: var(--muted); background: transparent; }
html[data-theme="dark"] .policy-tab:hover, html[data-theme="dark"] .policy-tab[aria-selected="true"] { color: var(--green); background: var(--surface-raised); }
html[data-theme="dark"] .policy-tab[aria-selected="true"] .policy-tab-number { color: #153222; }
html[data-theme="dark"] .policy-footer { background: var(--surface); }
html[data-theme="dark"] dialog::backdrop { background: #030906b8; }
@media(max-width:760px) {
  .account-menu { flex-wrap: wrap; gap: 8px 12px; }
  .appearance-controls { inset-block-start: 76px; inset-inline-end: 18px; gap: 8px; }
}
