:root {
  --bg: #0b0c0f;
  --bg-2: #12141a;
  --text: #f3f4f5;
  --muted: #a8adb8;
  --green: #1dcc66;
  --line: rgba(255, 255, 255, 0.08);
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 "YS Text", "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--green); }
img { max-width: 100%; height: auto; display: block; border-radius: 14px; border: 1px solid var(--line); }
.wrap { max-width: 820px; margin: 0 auto; padding: 0 20px; }
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; }
.brand img { border: 0; border-radius: 6px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 12px; background: var(--green); color: #04150b; font-weight: 700; text-decoration: none; }
.btn--sm { padding: 8px 14px; font-size: 14px; }
.crumbs { margin: 28px 0 0; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.15; margin: 12px 0 16px; }
h2 { font-size: 24px; margin: 40px 0 12px; }
h3 { font-size: 18px; margin: 20px 0 6px; }
.lead { font-size: 19px; color: #d6d8dd; }
.hero-img { margin: 28px 0; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 16px 16px 16px 64px; margin: 0 0 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 16px; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: rgba(29, 204, 102, 0.16); color: var(--green); font-weight: 700; }
.steps strong { display: block; }
.cta { margin: 40px 0; padding: 28px; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line); text-align: center; }
.cta p { color: var(--muted); }
.related { padding: 0; list-style: none; }
.related li { margin: 8px 0; }
footer { margin-top: 56px; padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
footer a { color: var(--muted); }

.top-nav { display: flex; align-items: center; gap: 18px; font-size: 15px; }
.top-nav > a:not(.btn) { color: var(--text); text-decoration: none; opacity: .8; }
.top-nav > a:not(.btn):hover { opacity: 1; }
.langs { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; }
.langs a { padding: 2px 8px; border-radius: 7px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-decoration: none; }
.langs a:hover { color: var(--text); }
.langs a.is-current { background: var(--bg-2); color: var(--text); }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--green); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
code { padding: 1px 6px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line); font-size: .9em; }
.wrap--wide { max-width: 980px; }
html { scroll-padding-top: 16px; scroll-behavior: smooth; }
h4 { font-size: 16px; margin: 22px 0 6px; color: #e4e6ea; }
kbd { display: inline-block; padding: 3px 10px; border-radius: 8px; background: rgba(29, 204, 102, 0.12); border: 1px solid rgba(29, 204, 102, 0.28); color: #c9f5da; font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.note { color: var(--muted); font-size: 15px; }

/* Version history */
.stores { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 24px 0; }
.store { display: grid; gap: 2px; padding: 16px 18px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
a.store:hover { border-color: var(--green); }
.store__name { font-weight: 700; }
.store__ver { color: var(--green); font-weight: 600; }
.store__pending { color: #f5c46b; font-weight: 600; }
.store__browsers { color: var(--muted); font-size: 13px; }
.toc { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; margin: 28px 0 8px; }
.toc a { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 14px; line-height: 1.35; }
.toc a:hover { border-color: var(--green); }
.toc b { min-width: 44px; color: var(--green); font-size: 18px; }
.toc em { font-style: normal; }
.rel { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.rel h2 { margin-top: 10px; font-size: clamp(24px, 4vw, 32px); line-height: 1.2; }
.rel__head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 15px; }
.rel__ver { padding: 4px 12px; border-radius: 10px; background: rgba(29, 204, 102, 0.16); color: var(--green); font-weight: 800; font-size: 18px; }
.rel__badge { padding: 3px 10px; border-radius: 999px; background: var(--green); color: #04150b; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 20px 0 8px; list-style: none; }
.chips a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 14px; }
.chips a:hover { border-color: var(--green); }
.feat { margin: 28px 0; padding: 28px; border-radius: 20px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)); border: 1px solid var(--line); }
.feat h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; font-size: 24px; }
.feat__emoji { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(29, 204, 102, 0.12); font-size: 22px; }
.feat__short { font-size: 18px; color: #d6d8dd; margin: 0 0 6px; }
.feat__where { color: var(--muted); font-size: 14px; margin: 0; }
.feat__where span, .feat__voice > span { color: var(--text); font-weight: 600; }
.feat .steps li { background: rgba(0, 0, 0, 0.18); }
.feat__voice { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 20px 0 0; }
.feat__links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 16px 0 0; }
.feat__links a { font-weight: 600; }
.shot { margin: 20px 0; }
.shot img { width: 100%; }
.shot figcaption { margin-top: 8px; color: var(--muted); font-size: 14px; }
.briefs { padding: 0; margin: 20px 0; list-style: none; display: grid; gap: 10px; }
.brief { display: flex; gap: 14px; padding: 16px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.brief strong { display: block; }
.brief p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.brief .shot { margin: 12px 0 0; }
.brief .feat__links { margin-top: 8px; font-size: 15px; }

/* Credits */
.credits { padding: 0; list-style: none; display: grid; gap: 8px; }
.credits li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 4px 16px; align-items: baseline; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); font-size: 15px; }
.credits span { color: #d6d8dd; }
.credits a { grid-column: 2; font-size: 14px; word-break: break-word; }
.credits em { grid-column: 3; grid-row: 1; font-style: normal; color: var(--muted); font-size: 13px; white-space: nowrap; }

/* Voice commands */
.voice-list { padding: 0; list-style: none; display: grid; gap: 8px; }
.voice-list li { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.voice-list li > span:last-child { color: var(--muted); font-size: 15px; }
.voice-list__say { display: flex; flex-wrap: wrap; gap: 6px; }

@media (max-width: 640px) {
  .feat { padding: 20px 16px; }
  .feat h3 { font-size: 20px; }
  .voice-list li { grid-template-columns: 1fr; gap: 8px; }
  .credits li { grid-template-columns: 1fr; }
  .credits a, .credits em { grid-column: 1; grid-row: auto; }
  .top-nav { gap: 12px; }
}
