/* Copyright (c) 2026 Ruslan Kireev. All rights reserved. */
/* GAS Music Studio online help (gas-promo.com/wiki): the gas-promo.com header and footer around a
   workspace drawn like the app — the Live theme greys (Themes/LiveTheme.axaml), turquoise accent,
   device frames for cards, the system UI font with Normal and SemiBold only. */
:root {
  /* site (studio.css) */
  --font-display: "Unbounded", "Exo 2", "Segoe UI", sans-serif;
  --font-site: "Exo 2", "Inter", "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  --site-bg: #0b0c0d;
  --site-line: rgba(190, 200, 210, 0.13);
  --site-text: #f1f3f5;
  --site-muted: #9aa4ae;
  --mint: #3ee8b0;
  --mint-dim: #1cc492;
  /* app (Nd.Brush.*) */
  --font-app: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto, sans-serif;
  --bg: #2b2b2b;
  --panel: #363636;
  --raised: #474747;
  --border: #1e1e1e;
  --text: #ececec;
  --dim: #a4a4a4;
  --accent: #35c2a6;
  --on-accent: #0d2a24;
  --device: #2b2e33;
  --device-text: #c9ced6;
  --control: #24272c;
  --gold: #e0b75a;
  --bar: 50px;
  --side: 280px;
}

* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--bar) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--font-app); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
.wk-ico { width: 14px; height: 14px; flex: none; }

/* ---- site header and footer (as on gas-promo.com/studio) ---------------------------------- */
.st-wrap { width: min(1200px, 100% - 32px); margin: 0 auto; }
.st-header { background: var(--site-bg); border-bottom: 1px solid var(--site-line); font-family: var(--font-site); }
.st-header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.st-brand { display: flex; align-items: center; gap: 10px; color: var(--site-text); font: 600 14px var(--font-display); letter-spacing: .04em; white-space: nowrap; }
.st-brand:hover { text-decoration: none; }
.st-brand-logo { height: 38px; width: auto; }
.st-nav { display: flex; gap: 22px; margin-left: auto; }
.st-nav a { color: var(--site-muted); font-size: 15px; transition: color .15s; }
.st-nav a:hover, .st-nav a.active { color: var(--site-text); text-decoration: none; }
.st-nav a.active { box-shadow: inset 0 -2px 0 var(--mint); padding-bottom: 2px; }
.st-header-tools { display: flex; align-items: center; gap: 12px; }
.st-btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; font: 600 13px var(--font-site); padding: 8px 16px; }
.st-btn-mint { background: var(--mint); color: #111; }
.st-btn-mint:hover { background: #96f6d4; text-decoration: none; }
.st-footer { border-top: 1px solid var(--site-line); padding: 32px 0 26px; background: #090a0b; font: 14px/1.6 var(--font-site); color: var(--site-muted); }
.st-footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.st-footer-brand { display: flex; align-items: center; gap: 12px; }
.st-footer-brand img { border-radius: 8px; }
.st-footer-brand strong { color: var(--mint); }
.st-footer a { color: inherit; }
.st-footer a:hover { color: var(--mint); text-decoration: none; }
.legal-line { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--site-line); font-size: 13px; }

/* ---- help bar: the app's control bar ------------------------------------------------------ */
.wk-bar {
  position: sticky; top: 0; z-index: 30; height: var(--bar);
  display: flex; align-items: center; gap: 12px; padding: 0 16px;
  background: var(--panel); border-bottom: 1px solid var(--border); box-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset;
}
.wk-title { display: flex; align-items: center; gap: 8px; width: calc(var(--side) - 28px); color: var(--text); font-size: 14px; white-space: nowrap; }
.wk-title:hover { text-decoration: none; }
.wk-title img { border-radius: 5px; }
.wk-title b { font-weight: 600; color: var(--accent); }
.wk-menu { display: none; }
.wk-search { position: relative; flex: 0 1 560px; display: flex; align-items: center; }
.wk-search > .wk-ico, .wk-hero-search > .wk-ico { position: absolute; left: 10px; color: var(--dim); pointer-events: none; }
.wk-search input, .wk-hero-search input {
  width: 100%; height: 32px; padding: 0 36px 0 32px; border-radius: 4px;
  border: 1px solid var(--border); background: var(--control); color: var(--text); font: 14px var(--font-app); outline: none;
}
.wk-search input:focus, .wk-hero-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.wk-search kbd { position: absolute; right: 8px; }
.wk-search input:focus ~ kbd { display: none; }
.wk-tb {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 3px;
  background: var(--raised); border: 1px solid var(--border); color: var(--text); font-size: 13px; font-weight: 600; white-space: nowrap;
}
.wk-tb:hover { background: #555; text-decoration: none; }
.wk-ver { margin-left: auto; color: var(--dim); font: 12px var(--font-mono); white-space: nowrap; }

.wk-results {
  position: absolute; z-index: 40; top: 38px; left: 0; width: min(660px, calc(100vw - 32px)); max-height: min(70vh, 560px); overflow: auto;
  background: var(--panel); border: 1px solid var(--border); border-radius: 4px; box-shadow: 0 16px 44px rgba(0, 0, 0, .55); padding: 4px;
}
.wk-results a { display: block; padding: 8px 10px; border-radius: 3px; color: var(--text); }
.wk-results a:hover, .wk-results a.sel { background: var(--raised); text-decoration: none; }
.wk-results b { display: block; font-weight: 600; }
.wk-results small { display: block; color: var(--accent); font-size: 12px; }
.wk-results span { display: block; color: var(--dim); font-size: 13px; line-height: 1.45; }
.wk-results mark { background: rgba(53, 194, 166, .28); color: var(--text); border-radius: 2px; padding: 0 1px; }
.wk-results .empty { padding: 10px; color: var(--dim); font-size: 14px; }

/* ---- layout and side panel: the app's browser --------------------------------------------- */
.wk-layout { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: calc(100vh - var(--bar)); }
.wk-side {
  position: sticky; top: var(--bar); height: calc(100vh - var(--bar)); overflow-y: auto;
  background: var(--panel); border-right: 1px solid var(--border); padding: 10px 8px 40px; font-size: 14px;
}
.wk-side-link, .wk-topic summary {
  display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 3px; color: var(--text); font-weight: 600; cursor: pointer;
}
.wk-side-link:hover, .wk-topic summary:hover { background: var(--raised); text-decoration: none; }
.wk-side-link.on { background: var(--accent); color: var(--on-accent); }
.wk-side .wk-ico { color: var(--accent); }
.wk-side-link.on .wk-ico { color: var(--on-accent); }
.wk-topic { margin: 2px 0; }
.wk-topic summary { list-style: none; }
.wk-topic summary::-webkit-details-marker { display: none; }
.wk-topic summary::after { content: ""; margin-left: auto; width: 6px; height: 6px; border: solid var(--dim); border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg); transition: transform .15s; }
.wk-topic[open] summary::after { transform: rotate(45deg); }
.wk-side ul { list-style: none; margin: 0; padding: 0; }
.wk-topic > ul { padding: 2px 0 6px 14px; }
.wk-ch { display: flex; gap: 8px; padding: 4px 8px; border-radius: 3px; color: var(--dim); line-height: 1.35; }
.wk-ch:hover { color: var(--text); background: var(--raised); text-decoration: none; }
.wk-ch .n, .wk-more .n { color: var(--accent); font: 11px/1.6 var(--font-mono); min-width: 20px; }
.wk-ch.open { color: var(--text); }
.wk-ch.on { background: var(--accent); color: var(--on-accent); }
.wk-ch.on .n { color: var(--on-accent); }
.wk-sub { margin: 2px 0 6px 26px !important; border-left: 1px solid var(--border); }
.wk-sub a { display: block; padding: 3px 10px; color: var(--dim); font-size: 13px; line-height: 1.35; border-radius: 0 3px 3px 0; }
.wk-sub a:hover { color: var(--text); text-decoration: none; }
.wk-sub a.on { color: var(--accent); box-shadow: inset 2px 0 0 var(--accent); }

.wk-main { min-width: 0; width: 100%; max-width: 920px; margin: 0 auto; padding: 30px 44px 40px; }
.wk-home .wk-main { max-width: 1180px; }
.wk-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--dim); margin-bottom: 14px; }
.wk-crumbs a { color: var(--dim); }
.wk-crumbs a:hover { color: var(--accent); }

/* ---- text ------------------------------------------------------------------------------- */
h1 { font: 600 30px/1.25 var(--font-app); margin: 0 0 20px; letter-spacing: -.01em; }
h1 .num, h2 .num { color: var(--accent); font-family: var(--font-mono); font-weight: 500; margin-right: 12px; }
h2 { font: 600 20px/1.35 var(--font-app); margin: 36px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
h2 .num { font-size: .85em; }
h2 small { color: var(--dim); font: 12px var(--font-mono); margin-left: 6px; }
h3 { font-size: 17px; margin: 24px 0 8px; }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 6px; }
li::marker { color: var(--dim); }
b, strong { font-weight: 600; }
a.dev { color: inherit; border-bottom: 1px dotted var(--accent); }
a.dev:hover { color: var(--accent); text-decoration: none; }
code { font: 13.5px var(--font-mono); background: var(--control); border: 1px solid var(--border); border-radius: 3px; padding: 0 4px; }
kbd {
  display: inline-block; font: 600 12px/1.5 var(--font-app); color: var(--text); background: var(--raised); white-space: nowrap;
  border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 3px; padding: 0 5px; min-width: 20px; text-align: center;
}
figure { margin: 20px 0 26px; text-align: center; }
figure img { border: 1px solid var(--border); border-radius: 4px; cursor: zoom-in; background: #000; }
figcaption { color: var(--dim); font-size: 13px; margin-top: 6px; }
.tip, .note { padding: 10px 14px; border-radius: 4px; margin: 18px 0; background: var(--device); border: 1px solid var(--border); border-left: 3px solid var(--accent); color: var(--device-text); }
.note { border-left-color: var(--gold); }
.tip b:first-child, .note b:first-child { display: block; margin-bottom: 2px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.tip b:first-child { color: var(--accent); }
.note b:first-child { color: var(--gold); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.grid2 figure { margin: 0; }
.wk-table { overflow-x: auto; margin: 14px 0 22px; border: 1px solid var(--border); border-radius: 4px; background: var(--device); }
table { border-collapse: collapse; width: 100%; font-size: 14px; color: var(--device-text); }
th, td { text-align: left; vertical-align: top; padding: 7px 12px; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: 0; }
th { background: var(--raised); color: var(--text); font-weight: 600; font-size: 13px; }
.wk-lead { font-size: 18px; color: var(--device-text); }
.wk-tag { display: inline-flex; align-items: center; gap: 6px; margin: -8px 0 14px; padding: 2px 10px; border-radius: 3px; background: var(--raised); color: var(--dim); font-size: 13px; }
.wk-tag .wk-ico { color: var(--accent); }
.wk-stamp { margin: 34px 0 0; color: var(--dim); font-size: 13px; }

/* ---- device-frame cards ------------------------------------------------------------------ */
.wk-panel { display: flex; flex-direction: column; background: var(--device); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; color: var(--device-text); }
a.wk-panel:hover { border-color: var(--accent); text-decoration: none; }
a.wk-panel:hover .wk-panel-head { background: #505050; }
.wk-panel-head {
  display: flex; align-items: center; gap: 8px; min-height: 26px; padding: 3px 10px; background: var(--raised);
  border-bottom: 1px solid var(--border); color: var(--text); font-size: 13px; font-weight: 600; line-height: 1.35;
}
.wk-panel-head i { width: 8px; height: 8px; border-radius: 2px; background: var(--accent); flex: none; }
.wk-panel-head .n { color: var(--accent); font: 11px var(--font-mono); }
.wk-panel-head small { margin-left: auto; color: var(--dim); font: 11px var(--font-mono); }
.wk-panel-body { display: flex; flex-direction: column; gap: 8px; padding: 10px; font-size: 14px; line-height: 1.5; flex: 1; }
.wk-panel .pic { display: flex; align-items: center; justify-content: center; height: 84px; overflow: hidden; border-radius: 3px; background: #151719; }
.wk-panel .pic img { max-height: 84px; width: auto; object-fit: contain; }
.wk-panel .txt { color: var(--dim); }

.wk-list-title { display: flex; align-items: baseline; gap: 12px; }
.wk-list-title a { margin-left: auto; font: 400 14px var(--font-app); }
.wk-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.wk-devices { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-bottom: 8px; }
.wk-more { list-style: none; padding: 0; columns: 2; column-gap: 24px; font-size: 14px; }
.wk-more li { break-inside: avoid; margin-bottom: 4px; }
.wk-more a { display: flex; gap: 8px; color: var(--dim); }
.wk-more a:hover, .wk-more a.on { color: var(--accent); text-decoration: none; }
.wk-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.wk-chips > span { color: var(--dim); margin-right: 4px; font-size: 14px; }
.wk-chips a { padding: 2px 10px; border-radius: 3px; border: 1px solid var(--border); background: var(--raised); font-size: 13px; color: var(--text); }
.wk-chips a:hover { background: var(--accent); color: var(--on-accent); text-decoration: none; }
.wk-device-pic { text-align: left; }
.wk-detail { padding: 12px 14px 4px; margin: 0 0 12px; background: var(--device); border: 1px solid var(--border); border-radius: 4px; color: var(--device-text); }
.wk-from { font-size: 13px; color: var(--dim); }
.wk-release { margin-bottom: 12px; }
.wk-release .wk-panel-body ul { margin: 0 0 6px; }
.wk-kind { margin: 0; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); }
.wk-kind-fixed { color: var(--gold); }
.wk-kind-improved { color: #7fb8ff; }

/* ---- home -------------------------------------------------------------------------------- */
.wk-hero { padding: 10px 0 12px; }
.wk-eyebrow { display: inline-block; margin: 0 0 10px; padding: 2px 10px; border-radius: 3px; background: var(--raised); color: var(--accent); font: 12px var(--font-mono); }
.wk-hero h1 { font: 700 44px/1.1 var(--font-display); letter-spacing: -.02em; margin-bottom: 14px; }
.wk-hero .wk-lead { max-width: 760px; }
.wk-hero-search { position: relative; display: flex; align-items: center; max-width: 640px; margin: 20px 0 16px; }
.wk-hero-search input { height: 44px; font-size: 16px; padding-left: 34px; }
.wk-hero-search .wk-results { top: 50px; }
.wk-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; margin-top: 24px; }
.wk-topic-card .wk-panel-head { font-size: 14px; min-height: 32px; }
.wk-topic-card .wk-panel-head .wk-ico { color: var(--accent); }
.wk-topic-card ul { list-style: none; padding: 0; margin: 0; }
.wk-topic-card li { margin: 0 0 2px; }
.wk-topic-card li a { display: flex; gap: 8px; color: var(--text); }
.wk-topic-card li .n { color: var(--accent); font: 11px/1.9 var(--font-mono); min-width: 20px; }
.wk-releases { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }

/* ---- pager ------------------------------------------------------------------------------- */
.wk-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 44px 0 0; }
.wk-pager a { display: block; padding: 10px 14px; border: 1px solid var(--border); border-radius: 4px; color: var(--text); background: var(--panel); font-weight: 600; font-size: 14px; }
.wk-pager a:hover { border-color: var(--accent); text-decoration: none; }
.wk-pager small { display: block; color: var(--dim); font-size: 12px; font-weight: 400; }
.wk-pager .next { text-align: right; }

/* ---- image viewer, drawer ---------------------------------------------------------------- */
.wk-zoom { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .9); display: flex; align-items: center; justify-content: center; padding: 20px; cursor: zoom-out; }
.wk-zoom img { max-width: 100%; max-height: 100%; border-radius: 4px; }
.wk-scrim { position: fixed; inset: var(--bar) 0 0; z-index: 24; background: rgba(0, 0, 0, .55); }

@media (max-width: 1100px) {
  .st-nav { display: none; }
  .st-header-tools { margin-left: auto; }
  .wk-main { padding: 26px 28px 36px; }
  .wk-ver { display: none; }
}
@media (max-width: 860px) {
  :root { --bar: 52px; }
  body { font-size: 16px; }
  .st-header-inner { height: 56px; }
  .st-brand-logo { height: 32px; }
  .wk-bar { gap: 8px; padding: 0 10px; }
  .wk-menu {
    display: inline-flex; align-items: center; justify-content: center; flex: none; width: 34px; height: 32px; border-radius: 3px;
    border: 1px solid var(--border); background: var(--raised); cursor: pointer; padding: 0;
  }
  .wk-menu span, .wk-menu span::before, .wk-menu span::after { display: block; width: 16px; height: 2px; background: var(--text); border-radius: 1px; position: relative; }
  .wk-menu span::before, .wk-menu span::after { content: ""; position: absolute; left: 0; }
  .wk-menu span::before { top: -5px; }
  .wk-menu span::after { top: 5px; }
  .wk-title { display: none; }
  .wk-search { flex: 1 1 auto; }
  .wk-search kbd { display: none; }
  .wk-results { width: calc(100vw - 20px); left: -44px; }
  .wk-layout { display: block; }
  .wk-side {
    position: fixed; top: var(--bar); left: 0; bottom: 0; z-index: 25; width: min(320px, 86vw); height: auto;
    transform: translateX(-102%); transition: transform .2s ease; box-shadow: 10px 0 40px rgba(0, 0, 0, .5);
  }
  body.side-open .wk-side { transform: none; }
  .wk-main { padding: 20px 16px 28px; }
  h1 { font-size: 24px; }
  h1 .num { margin-right: 8px; }
  h2 { font-size: 18px; margin-top: 30px; }
  .wk-hero h1 { font-size: 32px; }
  .wk-lead { font-size: 17px; }
  figure img { width: 100% !important; }
  .grid2 { grid-template-columns: 1fr; }
  .wk-topics, .wk-releases { grid-template-columns: 1fr; }
  .wk-features { grid-template-columns: 1fr; }
  .wk-devices { grid-template-columns: 1fr 1fr; gap: 8px; }
  .wk-panel .pic { height: 60px; }
  .wk-panel .pic img { max-height: 60px; }
  .wk-more { columns: 1; }
  .wk-pager { grid-template-columns: 1fr; }
  .wk-pager .next { text-align: left; }
  table { font-size: 13px; }
  th, td { padding: 6px 9px; }
}
@media (max-width: 420px) {
  .wk-devices { grid-template-columns: 1fr; }
  .wk-tb { padding: 0 8px; }
  .wk-hero h1 { font-size: 28px; }
}
