:root {
  --bg: #07090d;
  --bg-alt: #0a0e14;
  --surface: #0f141b;
  --surface-2: #151b24;
  --surface-3: #1c2430;
  --border: rgba(150, 178, 255, .11);
  --border-2: rgba(150, 178, 255, .22);

  --text: #eef2f8;
  --text-2: #a7b3c6;
  --text-3: #6d7a8c;

  --accent: #35d07f;
  --accent-2: #2bb96e;
  --accent-soft: rgba(53, 208, 127, .12);
  --cyan: #4cc9f0;
  --violet: #a78bfa;
  --blue: #6cb6ff;
  --amber: #e3b341;
  --red: #ff6b61;

  --grad: linear-gradient(115deg, #35d07f, #4cc9f0);
  --grad-soft: linear-gradient(115deg, rgba(53, 208, 127, .16), rgba(76, 201, 240, .16));
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, .8);
  --shadow-sm: 0 10px 30px -18px rgba(0, 0, 0, .7);
  --glow: 0 0 0 1px rgba(53, 208, 127, .12), 0 22px 70px -34px rgba(53, 208, 127, .55);

  --r: 16px;
  --r-sm: 10px;
  --r-xs: 7px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Roboto, "Helvetica Neue", Arial, sans-serif;
  --nav-h: 60px;
  --wrap: 1180px;
}

[data-theme="light"] {
  --bg: #f6f8fb;
  --bg-alt: #eef2f7;
  --surface: #ffffff;
  --surface-2: #f1f4f9;
  --surface-3: #e7ecf3;
  --border: rgba(18, 44, 84, .12);
  --border-2: rgba(18, 44, 84, .24);

  --text: #0d1520;
  --text-2: #4a586c;
  --text-3: #7c8899;

  --accent: #128a4b;
  --accent-2: #0f7340;
  --accent-soft: rgba(18, 138, 75, .10);
  --cyan: #0d7ea8;
  --violet: #6d4de0;
  --blue: #0a63c2;
  --amber: #9a6b12;
  --red: #c0392b;

  --grad: linear-gradient(115deg, #128a4b, #0d7ea8);
  --shadow: 0 24px 50px -30px rgba(13, 30, 58, .35);
  --shadow-sm: 0 10px 26px -18px rgba(13, 30, 58, .28);
  --glow: 0 0 0 1px rgba(18, 138, 75, .12), 0 20px 55px -32px rgba(18, 138, 75, .45);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(1000px 560px at 10% -8%, rgba(53, 208, 127, .17), transparent 62%),
    radial-gradient(900px 520px at 92% -6%, rgba(76, 201, 240, .15), transparent 62%),
    radial-gradient(820px 620px at 50% 112%, rgba(167, 139, 250, .12), transparent 62%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 95% 55% at 50% 0%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 95% 55% at 50% 0%, #000 25%, transparent 78%);
}

[data-theme="light"] body::before { opacity: .7; }
[data-theme="light"] body::after { opacity: .5; background-image:
    linear-gradient(rgba(18, 44, 84, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 44, 84, .05) 1px, transparent 1px); }

h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.25; letter-spacing: -.02em; }
p { margin: 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
ul, ol { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; color: inherit; }
code, kbd, pre { font-family: var(--mono); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent); color: #04120a; }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2c3543; border-radius: 8px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #3b4757; }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: #c3ccd8; border-color: var(--bg); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

.hero-grid > *, .dl-body > *, .cfg-shell > *, .specs > *, .foot-grid > * { min-width: 0; }

section { padding: 78px 0; }
section.tight { padding: 44px 0; }
.alt-bg {
  background: linear-gradient(180deg, rgba(255, 255, 255, .02), transparent 40%), var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
[data-theme="light"] .alt-bg { background: linear-gradient(180deg, rgba(255, 255, 255, .7), transparent 40%), var(--bg-alt); }

.sec-head { margin-bottom: 34px; max-width: 760px; }
.sec-head h2 { font-size: 30px; letter-spacing: -.03em; }
.sec-head h2::before {
  content: "";
  display: block;
  width: 36px; height: 3px; border-radius: 3px;
  background: var(--grad);
  margin-bottom: 15px;
}
.sec-head p { color: var(--text-2); margin-top: 9px; font-size: 15px; max-width: 660px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--accent); color: #04120a; padding: 9px 15px; font-weight: 650; font-size: 14px;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .nav { background: var(--bg); }
}
.nav-inner { height: 100%; display: flex; align-items: center; gap: 18px; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); font-size: 15px; white-space: nowrap; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 24px; height: 24px; border-radius: 7px; image-rendering: pixelated; box-shadow: 0 0 0 1px var(--border), 0 6px 16px -8px rgba(53, 208, 127, .6); }
.brand span b { font-weight: 700; }
.brand small { color: var(--text-3); font-weight: 450; font-size: 13px; letter-spacing: 0; }

.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  color: var(--text-2); font-size: 13.5px; padding: 7px 11px; border-radius: 999px; white-space: nowrap; transition: .15s;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.nav-links a.active { color: var(--text); background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(53, 208, 127, .25); }

.nav-actions { display: flex; align-items: center; gap: 8px; flex: none; }

.icon-btn {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2);
  font-size: 13px; font-family: var(--mono); transition: .15s;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-2); background: var(--surface-2); text-decoration: none; transform: translateY(-1px); }
.icon-btn svg { display: block; }

.nav-toggle { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; font-weight: 600; padding: 10px 18px;
  border-radius: 11px; border: 1px solid transparent; transition: .18s ease;
  white-space: nowrap; text-align: center; line-height: 1.3; text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.btn-primary {
  background: var(--grad); color: #04120a; font-weight: 700;
  box-shadow: 0 12px 30px -14px rgba(53, 208, 127, .75), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn-primary:hover { filter: brightness(1.07); color: #04120a; box-shadow: 0 16px 36px -14px rgba(53, 208, 127, .85), inset 0 1px 0 rgba(255, 255, 255, .35); }

.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--border-2); color: var(--text); }

.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 9px; }
.btn-lg { padding: 13px 24px; font-size: 15px; border-radius: 13px; }
.btn-block { width: 100%; }

.hero { padding: 74px 0 52px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 52px; align-items: center; }

.hero h1 {
  font-size: clamp(38px, 5.2vw, 56px);
  letter-spacing: -.035em;
  margin-bottom: 16px;
  background: linear-gradient(105deg, var(--text) 30%, var(--accent) 72%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead { color: var(--text-2); font-size: 16.5px; max-width: 500px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 28px; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--text-3); }

.term {
  position: relative;
  background: linear-gradient(180deg, rgba(24, 31, 42, .92), rgba(11, 15, 21, .96));
  border: 1px solid var(--border-2);
  border-radius: 15px; overflow: hidden; font-family: var(--mono); font-size: 12.5px;
  box-shadow: var(--glow), var(--shadow);
}
[data-theme="light"] .term { background: linear-gradient(180deg, #141a23, #0b0f15); }
.term-bar {
  display: flex; align-items: center; gap: 7px; padding: 10px 14px;
  background: rgba(255, 255, 255, .03); border-bottom: 1px solid var(--border);
  color: #8b97a8; font-size: 12px;
}
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #333c49; display: block; }
.term-bar i:nth-child(1) { background: #ff5f57; }
.term-bar i:nth-child(2) { background: #febc2e; }
.term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: 6px; }
.term-body { padding: 16px 17px; line-height: 1.9; color: #9aa7b8; overflow-x: auto; }
.term-body .l { white-space: pre; }
.term-body .g { color: var(--accent); }
.term-body .w { color: #eef2f8; }
.term-body .d { color: #6d7a8c; }
.term-body .b { color: var(--cyan); }
.term-caret { display: inline-block; width: 7px; height: 14px; background: var(--accent); vertical-align: -2px; animation: blink 1.1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.specs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px;
  margin-top: 52px;
}
.spec {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 17px 19px; box-shadow: var(--shadow-sm); transition: .18s;
}
.spec:hover { border-color: var(--border-2); transform: translateY(-2px); }
.spec dt { font-size: 11.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: .09em; margin-bottom: 6px; font-family: var(--mono); }
.spec dd { margin: 0; font-size: 17px; font-weight: 700; font-family: var(--mono); letter-spacing: -.01em; }

.dl-shell { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.dl-top {
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  background: linear-gradient(180deg, rgba(255, 255, 255, .02), transparent);
}
.dl-top h3 { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 9px; }

.seg { display: flex; gap: 3px; border: 1px solid var(--border); border-radius: 999px; padding: 3px; background: var(--bg-alt); }
.seg button {
  border: 0; background: transparent; color: var(--text-2);
  font-size: 13px; padding: 6px 14px; border-radius: 999px; font-family: var(--mono); transition: .15s;
}
.seg button:hover { background: var(--surface-2); color: var(--text); }
.seg button.on { background: var(--grad); color: #04120a; font-weight: 700; box-shadow: 0 6px 18px -8px rgba(53, 208, 127, .8); }
.seg button.off { display: none; }

.dl-body { padding: 20px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
.dl-main { display: flex; flex-direction: column; gap: 14px; }

.dl-big { font-size: 15px; }

.dl-status { font-size: 12.5px; color: var(--text-3); font-family: var(--mono); min-height: 19px; }
.dl-status.ok { color: var(--accent); }
.dl-status.warn { color: var(--amber); }
.dl-status.err { color: var(--red); }

.progress { height: 4px; background: var(--surface-2); border-radius: 3px; overflow: hidden; display: none; }
.progress.on { display: block; }
.progress > i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .25s; }

.dl-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px;
  padding: 4px 11px; color: var(--text-3); font-size: 12px; display: inline-flex; align-items: center; gap: 6px;
}
.chip b { color: var(--text); font-weight: 600; }
.chip.mono { font-family: var(--mono); font-size: 11.5px; }
.chip.green { border-color: rgba(53, 208, 127, .4); color: var(--accent); background: var(--accent-soft); }
.chip.blue { border-color: rgba(108, 182, 255, .35); color: var(--blue); background: rgba(108, 182, 255, .08); }

.hint-box {
  border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--bg-alt);
  padding: 14px 16px; font-size: 13px; color: var(--text-2); line-height: 1.75;
}
.hint-box b { color: var(--text); font-weight: 650; }
.hint-box p + p { margin-top: 7px; }
.hint-box code { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; font-size: 12px; }

.pkg-list { display: flex; flex-direction: column; gap: 8px; }
.pkg {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 12px 14px; background: var(--bg-alt); transition: .18s;
}
.pkg:hover { border-color: var(--border-2); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.pkg-info { flex: 1; min-width: 0; }
.pkg-name { display: block; font-size: 13.5px; font-weight: 650; }
.pkg-desc { display: block; font-size: 11.5px; color: var(--text-3); font-family: var(--mono); word-break: break-all; margin-top: 1px; }
.pkg-act { flex: none; }
.pkg-empty { color: var(--text-3); font-size: 13px; }
.pkg-ico { display: none; }

.mirrors { border-top: 1px solid var(--border); padding: 16px 20px 20px; background: var(--bg-alt); }
.mirrors h4 { font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 11px; display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-weight: 600; }
.mirror-row {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px;
  border: 1px solid var(--border); border-radius: var(--r-xs); background: var(--surface);
  margin-bottom: 6px; font-size: 13px;
}
.mirror-name { font-weight: 650; flex: none; width: 110px; }
.mirror-url { color: var(--text-3); font-family: var(--mono); font-size: 11.5px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mirror-state { flex: none; font-size: 11.5px; font-family: var(--mono); color: var(--text-3); }
.mirror-state.ok { color: var(--accent); }
.mirror-state.bad { color: var(--red); }
.mirror-state.test { color: var(--amber); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; }
.step {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 20px; box-shadow: var(--shadow-sm); transition: .18s;
}
.step:hover { border-color: var(--border-2); transform: translateY(-2px); }
.step-n {
  font-family: var(--mono); font-size: 13px; font-weight: 800; margin-bottom: 10px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block;
}
.step h4 { font-size: 15px; margin-bottom: 7px; }
.step p { font-size: 13.5px; color: var(--text-2); }

.req-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 13px; margin-top: 24px; }
.req {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 16px 18px; box-shadow: var(--shadow-sm); transition: .18s;
}
.req:hover { border-color: var(--border-2); }
.req b { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 4px; }
.req span { font-size: 13px; color: var(--text-2); }
.req-ico { display: none; }

.spec-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; border: 0; background: transparent; }
.spec-row {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 18px 20px; box-shadow: var(--shadow-sm); transition: .18s;
}
.spec-row:hover { border-color: var(--border-2); transform: translateY(-2px); }
.spec-row dt { font-size: 14.5px; color: var(--text); font-weight: 700; margin-bottom: 6px; letter-spacing: -.015em; }
.spec-row dd { margin: 0; font-size: 13.5px; color: var(--text-2); }
.spec-row dd code { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; font-size: 12.5px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.tab {
  background: transparent; border: 0; border-bottom: 2px solid transparent;
  color: var(--text-3); font-size: 14px; font-weight: 550; padding: 11px 15px; transition: .15s; margin-bottom: -1px;
}
.tab:hover { color: var(--text); }
.tab.on { color: var(--text); border-bottom-color: var(--accent); }
.tab-panel { display: none; padding-top: 20px; }
.tab-panel.on { display: block; }

.code-wrap { border-radius: var(--r-sm); overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); background: #0a0d12; box-shadow: var(--shadow-sm); }
.code-head {
  display: flex; align-items: center; gap: 9px; padding: 9px 13px;
  background: rgba(255, 255, 255, .035); border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.code-title { font-size: 12px; color: #8b97a8; font-family: var(--mono); }
.code-copy {
  margin-left: auto; background: transparent; border: 1px solid rgba(255, 255, 255, .14);
  color: #9aa7b8; font-size: 11.5px; font-family: var(--mono); padding: 4px 10px; border-radius: 7px; transition: .15s;
}
.code-copy:hover { color: #eef2f8; border-color: rgba(255, 255, 255, .3); }
.code-copy.done { color: var(--accent); border-color: var(--accent); }
pre.code {
  margin: 0; padding: 17px 19px; overflow-x: auto; font-size: 12.8px; line-height: 1.8;
  color: #c3cdda; background: transparent;
}
pre.code .c { color: #64707f; }
pre.code .k { color: #e08d7b; }
pre.code .s { color: #8fd0e0; }
pre.code .p { color: #d8b878; }

.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 520px; }
thead th {
  text-align: left; padding: 11px 15px; background: var(--surface-2);
  font-size: 11px; text-transform: uppercase; letter-spacing: .09em; color: var(--text-3);
  border-bottom: 1px solid var(--border); white-space: nowrap; font-weight: 700; font-family: var(--mono);
}
tbody td { padding: 11px 15px; border-bottom: 1px solid var(--border); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--surface-2); }
tbody tr.hide { display: none; }

tr.cmd-group-row td {
  background: var(--grad-soft); font-family: var(--mono); font-weight: 700; font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--accent); padding: 8px 15px;
}
tr.cmd-group-row:hover td { background: var(--grad-soft); }

td code {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px;
  padding: 2px 7px; font-size: 12.3px; color: var(--text); white-space: nowrap;
}
.td-cmd { width: 1%; white-space: nowrap; }
.td-act { width: 1%; white-space: nowrap; text-align: right; }

.copy-mini {
  background: transparent; border: 1px solid var(--border); color: var(--text-3);
  border-radius: 7px; padding: 3px 9px; font-size: 11.5px; font-family: var(--mono); transition: .15s;
}
.copy-mini:hover { color: var(--text); border-color: var(--border-2); }
.copy-mini.done { color: var(--accent); border-color: var(--accent); }

.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.input {
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  border-radius: var(--r-sm); padding: 9px 14px; font-size: 13.5px; font-family: inherit;
  outline: none; transition: .15s; min-width: 190px; flex: 1;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input::placeholder { color: var(--text-3); }
select.input { flex: none; min-width: 160px; cursor: pointer; font-family: var(--mono); font-size: 13px; }
.count-badge { font-size: 12.5px; color: var(--text-3); font-family: var(--mono); white-space: nowrap; }

.muted { color: var(--text-2); }
.err-text { color: var(--red); }
.warn-text { color: var(--amber); }

kbd {
  background: var(--surface-2); border: 1px solid var(--border); border-bottom-width: 2px;
  border-radius: 6px; padding: 2px 7px; font-size: 12px; color: var(--text); font-family: var(--mono);
}

.cfg-shell { display: grid; grid-template-columns: 1.05fr 1fr; gap: 22px; align-items: start; }
.cfg-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow-sm); }
.cfg-group { margin-bottom: 22px; }
.cfg-group:last-of-type { margin-bottom: 16px; }
.cfg-group > h4 {
  font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3);
  margin-bottom: 13px; padding-bottom: 8px; border-bottom: 1px solid var(--border);
  font-family: var(--mono); font-weight: 700;
}
.field { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: center; margin-bottom: 12px; }
.field label { font-size: 13px; font-family: var(--mono); color: var(--text); }
.field .hint { grid-column: 1 / -1; font-size: 11.5px; color: var(--text-3); margin-top: -2px; }
.field input[type="text"], .field input[type="number"], .field select {
  background: var(--bg); border: 1px solid var(--border); color: var(--text);
  border-radius: var(--r-xs); padding: 7px 11px; font-size: 12.5px; font-family: var(--mono);
  outline: none; width: 170px; transition: .15s;
}
.field input:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; justify-self: end; }
.field.wide { grid-template-columns: 1fr; }
.field.wide input { width: 100%; }

.cfg-out { position: sticky; top: calc(var(--nav-h) + 16px); }
.cfg-out .code-wrap { display: flex; flex-direction: column; }
.cfg-out pre.code { overflow: auto; max-height: 440px; }
.cfg-actions { display: flex; gap: 9px; flex-wrap: wrap; }

.faq { display: grid; gap: 10px; border: 0; background: transparent; }
.qa {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm);
  overflow: hidden; transition: .18s; box-shadow: var(--shadow-sm);
}
.qa:hover { border-color: var(--border-2); }
.qa[open] { border-color: var(--border-2); }
.qa summary {
  list-style: none; cursor: pointer; padding: 14px 18px; font-weight: 650; font-size: 14px;
  display: flex; align-items: center; gap: 12px; transition: .15s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { background: var(--surface-2); }
.qa summary::after { content: "+"; margin-left: auto; color: var(--accent); font-family: var(--mono); font-weight: 500; font-size: 16px; line-height: 1; }
.qa[open] summary::after { content: "−"; }
.qa-body { padding: 0 18px 16px; color: var(--text-2); font-size: 13.5px; }
.qa-body p + p { margin-top: 8px; }
.qa-body code { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; font-size: 12.5px; }

.notice {
  display: flex; gap: 12px; align-items: flex-start; padding: 15px 17px;
  border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface);
  font-size: 13.5px; margin-top: 20px; color: var(--text-2); box-shadow: var(--shadow-sm);
}
.notice b { color: var(--text); font-weight: 700; }
.notice p { margin-top: 5px; }
.notice code { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; font-size: 12.5px; }
.notice.warn { border-left: 3px solid var(--amber); background: linear-gradient(90deg, rgba(227, 179, 65, .09), transparent 45%), var(--surface); }
.notice.info { border-left: 3px solid var(--blue); background: linear-gradient(90deg, rgba(108, 182, 255, .09), transparent 45%), var(--surface); }
.notice.danger { border-left: 3px solid var(--red); background: linear-gradient(90deg, rgba(255, 107, 97, .09), transparent 45%), var(--surface); }
.notice-ico { display: none; }

footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 48px 0 24px; }
.foot-grid { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 32px; }
.foot-brand p { color: var(--text-2); font-size: 13px; margin-top: 12px; max-width: 330px; }
.foot-col h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); margin-bottom: 12px; font-family: var(--mono); font-weight: 700; }
.foot-col a { display: block; color: var(--text-2); font-size: 13.5px; padding: 4px 0; transition: .15s; }
.foot-col a:hover { color: var(--accent); text-decoration: none; }
.foot-bottom {
  margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  font-size: 12.5px; color: var(--text-3);
}

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-2); font-size: 16px;
  display: grid; place-items: center; font-family: var(--mono);
  opacity: 0; visibility: hidden; transition: .2s; box-shadow: var(--shadow-sm);
}
.to-top.on { opacity: 1; visibility: visible; }
.to-top:hover { color: var(--text); border-color: var(--border-2); transform: translateY(-2px); }

.toast-box { position: fixed; right: 20px; bottom: 70px; z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.toast {
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-2); border-left: 3px solid var(--accent);
  border-radius: var(--r-xs); padding: 11px 15px; font-size: 13px; font-family: var(--mono);
  max-width: 340px; color: var(--text-2); box-shadow: var(--shadow);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .toast { background: var(--surface); }
}
.toast.err { border-left-color: var(--red); }
.toast.warn { border-left-color: var(--amber); }
.toast.out { opacity: 0; transition: opacity .25s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .dl-body { grid-template-columns: 1fr; }
  .cfg-shell { grid-template-columns: 1fr; }
  .cfg-out { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .specs { grid-template-columns: repeat(2, 1fr); }
  .spec-list { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 12px; margin: 0; max-height: 0; overflow: hidden; transition: max-height .2s;
  }
  .nav-links.open { max-height: 440px; overflow-y: auto; }
  .nav-links a { padding: 11px 13px; border-radius: var(--r-xs); }
  .nav-toggle { display: grid; }
  .steps { grid-template-columns: 1fr; gap: 12px; }
  section { padding: 56px 0; }
  .hero { padding: 46px 0 38px; }
  .sec-head h2 { font-size: 26px; }
}

@media (max-width: 540px) {
  .wrap { padding: 0 16px; }
  .nav-inner { padding: 0 16px; }
  .hero-cta .btn { width: 100%; }
  .dl-top { flex-direction: column; align-items: stretch; }
  .seg { justify-content: center; }
  .field { grid-template-columns: 1fr; }
  .field input[type="text"], .field input[type="number"], .field select { width: 100%; }
  .field input[type="checkbox"] { justify-self: start; }
  .foot-grid { grid-template-columns: 1fr; }
  .brand small { display: none; }
  .specs { grid-template-columns: 1fr; }
  .toast-box { left: 16px; right: 16px; align-items: stretch; }
  .toast { max-width: none; }
  .mirror-name { width: 78px; }
}

@media print {
  .nav, .to-top, .toast-box, .hero-cta, .mirrors { display: none !important; }
  body::before, body::after { display: none; }
  body { background: #fff; color: #000; }
  section { padding: 18px 0; }
}
