:root {
  --navy: #0B1220;
  --ink: #152033;
  --muted: #5B6B80;
  --line: #D7DEE8;
  --paper: #F4F7FB;
  --card: #fff;
  --blue: #2563EB;
  --elec: #397FF4;
  --deep: #0C52C6;
  --teal: #1FB6A6;
  --violet: #7C5CF0;
  --ok: #065F46;
  --ok-bg: #ECFDF5;
  --warn-bg: #FFFBEB;
  --warn: #92400E;
  --radius: 14px;
  --shadow: 0 14px 40px -24px rgba(15, 23, 42, .28);
  --side: 300px;
  --toc: 200px;
  --header: 64px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 420px at 100% -10%, rgba(57, 127, 244, .08), transparent 55%),
    var(--paper);
  font: 16px/1.55 "Segoe UI", system-ui, sans-serif;
}
body.nav-open { overflow: hidden; }
a { color: var(--blue); }
img, svg { max-width: 100%; }
code { font-family: Consolas, Menlo, monospace; font-size: .9em; background: #EEF2F7; padding: 1px 5px; border-radius: 4px; }

.top {
  position: sticky; top: 0; z-index: 30;
  background: rgba(11, 18, 32, .88);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: #E8F0FF;
}
.top-bar {
  height: 2px;
  background: linear-gradient(90deg, #397FF4 0%, #7C5CF0 48%, #1FB6A6 100%);
}
.top-inner {
  display: flex; align-items: center; gap: 18px;
  height: calc(var(--header) - 2px); padding: 0 18px 0 14px;
}
.top-left, .top-right { display: flex; align-items: center; gap: 10px; }
.top-right { margin-left: auto; }
.brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff;
}
.brand-logo {
  display: block; height: 22px; width: auto; flex-shrink: 0;
}
.brand-hub {
  font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: #9EC5FF; background: rgba(57, 127, 244, .22);
  border: 1px solid rgba(158, 197, 255, .28);
  padding: 4px 8px; border-radius: 999px;
}
.top-pills {
  display: flex; gap: 4px; padding: 4px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
}
.top-pills a {
  color: #C5D4EA; text-decoration: none; font-size: 12.5px; font-weight: 700;
  padding: 6px 12px; border-radius: 999px;
}
.top-pills a:hover { color: #fff; background: rgba(255,255,255,.06); }
.top-pills a[aria-current="page"] { color: #fff; background: rgba(57, 127, 244, .35); }
.cmdk {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 10px 0 12px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06);
  color: #D5E2F5; font: inherit; font-size: 12.5px; font-weight: 650; cursor: pointer;
}
.cmdk:hover { background: rgba(255,255,255,.1); color: #fff; }
.cmdk kbd, kbd {
  font: 10px/1 ui-monospace, Consolas, monospace;
  padding: 3px 6px; border-radius: 6px;
  background: rgba(11,18,32,.55); border: 1px solid rgba(255,255,255,.12); color: #9EC5FF;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 7px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  text-decoration: none; border: 1px solid transparent; white-space: nowrap;
}
.btn-solid { background: var(--elec); color: #fff; }
.btn-solid:hover { background: var(--deep); color: #fff; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.btn-outline:hover { background: rgba(255,255,255,.08); color: #fff; }
.btn-ghost { background: transparent; color: #C5D4EA; }
.btn-ghost:hover { color: #fff; }
.menu-btn {
  display: none; width: 38px; height: 38px; border: 0; border-radius: 10px;
  background: rgba(255,255,255,.06); padding: 10px 9px; cursor: pointer;
}
.menu-btn span { display: block; height: 2px; background: #fff; margin: 4px 0; border-radius: 2px; }

.layout { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: calc(100vh - var(--header)); }
.main { min-width: 0; }
.side {
  position: sticky; top: var(--header); height: calc(100vh - var(--header));
  overflow: auto; background: #0F1728; color: #E8EEF8;
  border-right: 1px solid rgba(255,255,255,.06); padding: 12px 10px 48px;
}
.side-search { padding: 2px 4px 10px; }
.search-box {
  display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px;
  border-radius: 12px; border: 1px solid rgba(148,163,184,.18); background: rgba(7,11,20,.45);
  color: #8B9BB4;
}
.search-box:focus-within { border-color: rgba(57,127,244,.7); box-shadow: 0 0 0 3px rgba(57,127,244,.16); }
.search-box input {
  flex: 1; min-width: 0; border: 0; outline: none; background: transparent;
  color: #EEF3FB; font: inherit; font-size: 13px;
}
.search-box input::placeholder { color: #6B7C96; }
.search-meta { font-size: 10px; color: #6B7C96; letter-spacing: .04em; }
.jumps { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 4px 12px; }
.jump {
  border: 1px solid rgba(148,163,184,.16); background: rgba(255,255,255,.04);
  color: #C5D4EA; font: inherit; font-size: 11px; font-weight: 700;
  padding: 5px 9px; border-radius: 999px; cursor: pointer;
}
.jump:hover, .jump.is-on { background: rgba(57,127,244,.28); border-color: rgba(57,127,244,.45); color: #fff; }
.side-block { padding: 0 4px 10px; }
.side-kicker {
  font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: #7C8BA3; padding: 4px 8px 6px;
}
.side-block .nav { padding-left: 10px; }
.sec { margin-bottom: 4px; }
.sec-btn {
  display: flex; align-items: center; gap: 8px; width: 100%;
  border: 0; background: transparent; color: #9EC5FF; cursor: pointer;
  font: inherit; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 10px 8px 6px;
}
.dot {
  width: 7px; height: 7px; border-radius: 99px; background: #397FF4;
  box-shadow: 0 0 0 3px rgba(57,127,244,.18);
}
.sec[data-sec="affiliate"] .dot { background: #1FB6A6; box-shadow: 0 0 0 3px rgba(31,182,166,.18); }
.sec[data-sec="reseller"] .dot { background: #7C5CF0; box-shadow: 0 0 0 3px rgba(124,92,240,.18); }
.sec[data-sec="more"] .dot { background: #94A3B8; box-shadow: 0 0 0 3px rgba(148,163,184,.16); }
.sec-count {
  margin-left: auto; font-size: 10px; font-weight: 700; letter-spacing: 0;
  color: #7C8BA3; background: rgba(255,255,255,.06); padding: 1px 6px; border-radius: 999px;
}
.sec-line { display: none; }
.sec-body { display: none; padding-bottom: 6px; }
.sec.is-open .sec-body { display: block; }
.grp { margin: 0 2px; }
.grp-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%;
  border: 0; background: transparent; color: #D5E2F5; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 700; padding: 7px 10px; border-radius: 10px;
}
.grp-btn:hover { background: rgba(255,255,255,.05); }
.grp.is-open .grp-btn { color: #fff; }
.chev { opacity: .55; transition: transform .15s ease; }
.grp.is-open .chev { transform: rotate(90deg); }
.kids { display: none; padding: 0 0 4px 8px; }
.grp.is-open .kids { display: block; }
.nav-row { display: flex; align-items: center; }
.nav {
  flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px;
  color: #C5D4EA; text-decoration: none; font-size: 13px;
  padding: 6px 8px; border-radius: 9px;
}
.nav:hover { background: rgba(255,255,255,.05); color: #fff; }
.nav[aria-current="page"], .nav.is-cursor {
  background: rgba(57,127,244,.22); color: #fff; font-weight: 700;
}
.nav-path { display: none; font-size: 10.5px; color: #7C8BA3; font-weight: 600; }
.side-block .nav-path { display: block; }
.star {
  width: 28px; height: 28px; border: 0; background: transparent; color: #6B7C96;
  border-radius: 8px; cursor: pointer; opacity: 0; flex-shrink: 0;
}
.nav-row:hover .star, .star.is-on { opacity: 1; }
.star.is-on { color: #FBBF24; }
.star:hover { background: rgba(255,255,255,.06); color: #FBBF24; }
.side.is-filtering .star { display: none; }
.side.is-filtering .is-miss { display: none !important; }
.side-empty { font-size: 13px; color: #9EC5FF; padding: 12px 10px; }
.side-mask { display: none; }

.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) var(--toc); gap: 8px; }
.article { max-width: 760px; padding: 28px 32px 80px; }
.crumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }
.kicker { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--elec); }
h1 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.03em; line-height: 1.15; margin: 6px 0 10px; }
.lede { font-size: 17px; color: #334155; margin: 0 0 16px; }
.meta-line { font-size: 12.5px; color: var(--muted); margin-bottom: 22px; }
h2 { font-size: 20px; margin: 32px 0 8px; letter-spacing: -.02em; }
h3 { font-size: 16px; margin: 18px 0 6px; }
.article p { margin: 0 0 12px; }
.article ol, .article ul { margin: 0 0 14px; padding-left: 20px; }
.article li { margin: 4px 0; }
.callout { border-radius: 12px; padding: 12px 14px; margin: 14px 0; font-size: 14.5px; border: 1px solid; }
.tip { background: var(--ok-bg); border-color: #A7F3D0; }
.note { background: #EFF6FF; border-color: #BFDBFE; }
.warn { background: var(--warn-bg); border-color: #FCD34D; color: var(--warn); }
.shot { margin: 14px 0 20px; }
.shot-img {
  width: 100%; height: auto; display: block; border-radius: 12px;
  background: #0B1220; aspect-ratio: 1280 / 720;
}
.shot .shot-img + .shot-img { margin-top: 10px; }
.shot figcaption { font-size: 12px; color: var(--muted); padding: 8px 2px 0; }
.toc {
  position: sticky; top: calc(var(--header) + 16px); align-self: start;
  padding: 28px 12px 40px 0; font-size: 12.5px;
}
.toc b { display: block; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.toc a { display: block; color: #475569; text-decoration: none; padding: 4px 0; }
.toc a:hover { color: var(--blue); }
.hero {
  background: linear-gradient(135deg, #0B1220 0%, #123056 50%, #0C52C6 85%, #1FB6A6 140%);
  color: #fff; border-radius: 22px; padding: 28px 24px 22px; margin-bottom: 18px;
}
.hero h1 { margin: 0 0 8px; color: #fff; }
.hero p { margin: 0; color: #D5E2F5; max-width: 640px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 12px 0 20px; }
.card {
  display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; text-decoration: none; color: inherit; box-shadow: var(--shadow);
}
.card:hover { border-color: #BFDBFE; }
.card h2, .card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 13.5px; }
.related { display: grid; gap: 8px; margin: 10px 0 20px; }
.related a { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; text-decoration: none; color: var(--ink); font-weight: 650; }
.cta-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0; }
.cta-row .btn-solid { color: #fff; }
.cta-row .btn-outline { color: var(--navy); border-color: var(--line); background: #fff; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 8px 0; }
.faq summary { cursor: pointer; font-weight: 700; }

.article:has(#compose) ol {
  list-style: none; padding: 0; margin: 12px 0 18px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  counter-reset: step;
}
.article:has(#compose) ol li {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 14px 14px 52px; position: relative; min-height: 88px;
}
.article:has(#compose) ol li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 12px; top: 14px;
  font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--elec);
}
.dmca-box {
  margin: 18px 0; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff;
}
.dmca-box label { display: block; font-size: 13px; font-weight: 700; margin: 0 0 10px; }
.dmca-box input[type="text"], .dmca-box input[type="url"], .dmca-box input[type="email"], .dmca-box input[type="tel"] {
  display: block; width: 100%; margin-top: 4px; height: 42px; border: 1px solid #E2E8F0; border-radius: 10px; padding: 0 12px; font: inherit;
}
.dmca-box .check { display: flex; gap: 8px; font-weight: 600; align-items: flex-start; }
.dmca-box .check input { margin-top: 3px; }
.dmca-err { color: #B91C1C; font-size: 13px; }
@media (max-width: 640px) {
  .article:has(#compose) ol { grid-template-columns: 1fr; }
}

footer.site {
  background:
    radial-gradient(700px 280px at 0% 0%, rgba(57,127,244,.16), transparent 50%),
    radial-gradient(500px 220px at 100% 20%, rgba(124,92,240,.12), transparent 46%),
    #070B14;
  color: #A9C0E0; border-top: 1px solid rgba(255,255,255,.06);
}
footer.site a { color: #D5E2F5; text-decoration: none; }
footer.site a:hover { color: #fff; }
.foot-grid {
  max-width: 1180px; margin: 0 auto; padding: 48px 28px 28px;
  display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 28px;
}
.foot-brand {
  padding: 22px 20px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.foot-brand .brand { margin: 0 0 16px; }
.foot-brand .brand-logo { height: 24px; }
.foot-lede {
  margin: 0; max-width: 240px;
  font-size: 15px; font-weight: 700; line-height: 1.35; color: #E8F0FF;
}
.foot-note {
  margin: 8px 0 0; max-width: 240px;
  font-size: 13px; line-height: 1.5; color: #8AA0BE;
}
.foot-cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.foot-cta .btn { padding: 8px 14px; }
.foot-grid h2 {
  margin: 0 0 12px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #7C8BA3;
}
.foot-grid a { display: block; font-size: 13.5px; font-weight: 650; padding: 4px 0; }
.foot-bar {
  max-width: 1180px; margin: 0 auto; padding: 14px 28px 28px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.06); font-size: 12px; color: #6B7C96;
}

.palette[hidden] { display: none !important; }
.palette {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(7, 11, 20, .55); backdrop-filter: blur(8px);
  display: grid; place-items: start center; padding: 12vh 16px 16px;
}
.palette-card {
  width: min(560px, 100%); background: #101827; color: #E8EEF8;
  border: 1px solid rgba(255,255,255,.1); border-radius: 18px;
  box-shadow: 0 30px 80px -24px rgba(0,0,0,.6); overflow: hidden;
}
.palette-search { margin: 12px; height: 44px; }
.palette-hits { max-height: 360px; overflow: auto; padding: 0 8px 12px; }
.phit {
  width: 100%; display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  border: 0; background: transparent; color: #E8EEF8; text-align: left;
  padding: 10px 12px; border-radius: 10px; cursor: pointer; font: inherit;
}
.phit small { color: #7C8BA3; font-size: 11px; }
.phit.is-sel, .phit:hover { background: rgba(57,127,244,.22); }
.palette-empty { padding: 12px; color: #9EC5FF; font-size: 13.5px; }

@media (max-width: 1180px) {
  .btn-ghost { display: none; }
}
@media (max-width: 1080px) {
  .article-wrap { grid-template-columns: 1fr; }
  .toc { display: none; }
  .top-pills { display: none; }
}
@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
  .side {
    display: none; position: fixed; inset: var(--header) auto 0 0; width: min(320px, 90vw);
    z-index: 25; height: auto;
  }
  .side.open { display: block; }
  .side-mask.open {
    display: block; position: fixed; inset: var(--header) 0 0 0;
    background: rgba(11,18,32,.48); z-index: 20;
  }
  .menu-btn { display: block; }
  .grid { grid-template-columns: 1fr; }
  .article { padding: 18px 16px 72px; }
  .foot-grid { grid-template-columns: 1fr 1fr; padding: 32px 18px 18px; }
  .cmdk span, .cmdk kbd { display: none; }
}
@media (max-width: 640px) {
  .btn-outline { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
  .top-inner { padding-right: 10px; }
  .brand-logo { height: 18px; }
  .foot-cta .btn-outline { display: inline-flex; }
}
