/* Apexium: monochrome by default. One neutral ramp, hairlines, soft type (Manrope), no glow. */
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-cyrillic.woff2") format("woff2");
  font-weight: 200 800; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
  font-weight: 200 800; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0a0c0b;
  --s1: #101312;
  --s2: #151917;
  --s3: #1b201e;
  --line: rgba(226, 236, 230, .08);
  --line-2: rgba(226, 236, 230, .14);
  --text: #e6ebe8;
  --dim: #9aa49f;
  --mute: #6b746f;
  --accent: #f2f4f3;
  --accent-ink: #0a0b0b;
  --danger: #f2777a;
  --warn: #e8c063;
  --r: 14px;
  --r-in: 10px;
  --r-sm: 8px;
  --wrap: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 450 16px/1.6 "Manrope", system-ui, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(255, 255, 255, .25); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.num { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dim { color: var(--dim); }
.mute { color: var(--mute); }
.link { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); transition: text-decoration-color .2s; }
.link:hover { text-decoration-color: var(--text); }

/* ---------------- top bar ---------------- */
.top { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.top .wrap { height: 60px; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 17px; }
.brand svg { width: 22px; height: 22px; color: var(--text); flex: none; }
@media (max-width: 1100px) and (min-width: 901px) { .top .wrap { gap: 18px; } .menu a { padding: 6px 9px; } }
.menu { display: flex; gap: 4px; }
.menu a { padding: 6px 12px; border-radius: var(--r-sm); color: var(--dim); font-size: 14.5px; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--text); background: var(--s2); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; font-size: 13px; }
.lang a { padding: 5px 9px; color: var(--mute); }
.lang a[aria-current="true"] { color: var(--text); background: var(--s2); }
.btn.burger, .menu .mobile-login { display: none; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: var(--r-in);
  border: 1px solid var(--line-2); background: var(--s1); color: var(--text);
  font-size: 14.5px; font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.btn:hover { background: var(--s2); border-color: rgba(226, 236, 230, .22); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #fff; border-color: #fff; color: var(--accent-ink); }
.btn-quiet { border-color: transparent; background: transparent; color: var(--dim); }
.btn-quiet:hover { background: var(--s2); color: var(--text); border-color: transparent; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15.5px; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .5; cursor: default; pointer-events: none; }
.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------- hero ---------------- */
.hero { padding: 64px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.hero.showcase .wrap { display: block; }
.hero-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: end; margin-bottom: 40px; }
.hero-top h1 { margin-bottom: 0; }
.hero-top .hero-actions { margin-top: 24px; }
.status-line { display: inline-flex; align-items: center; gap: 8px; color: var(--dim); font-size: 13.5px; }
.status-line i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
h1 { margin: 18px 0 18px; font-size: clamp(34px, 4.4vw, 54px); line-height: 1.08; letter-spacing: -.025em; font-weight: 600; }
.lede { margin: 0; color: var(--dim); font-size: 17.5px; max-width: 520px; }
.hero-actions { display: flex; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
.hero-facts { display: flex; gap: 28px; margin: 34px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; flex-wrap: wrap; }
.hero-facts b { display: block; font-weight: 500; font-size: 20px; }
.hero-facts span { color: var(--mute); font-size: 13.5px; }

/* the live menu */
.frame { position: relative; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--s1); overflow: hidden; }
.frame-bar { display: flex; align-items: center; justify-content: space-between; padding: 0 14px; height: 38px; border-bottom: 1px solid var(--line); color: var(--mute); font-size: 12.5px; }
.frame-bar span { display: inline-flex; align-items: center; gap: 8px; }
.frame-bar i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.frame-bar a:hover { color: var(--text); }
.frame-view { position: relative; overflow: hidden; background: #0d100f; }
.frame-view iframe { border: 0; transform-origin: 0 0; background: transparent; }
.frame-note { margin: 12px 2px 0; color: var(--mute); font-size: 13.5px; }

/* ---------------- sections ---------------- */
.section { padding: 96px 0 0; }
.head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; margin-bottom: 40px; align-items: end; }
.kicker { display: flex; align-items: center; gap: 12px; color: var(--mute); font-size: 13.5px; margin-bottom: 14px; }
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--line-2); box-shadow: inset 6px 0 0 var(--accent); }
h2 { margin: 0; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.15; letter-spacing: -.02em; font-weight: 600; }
.head p { margin: 0; color: var(--dim); font-size: 16.5px; max-width: 560px; }

.features { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px; }
.panel { border: 1px solid var(--line); border-radius: var(--r); background: var(--s1); padding: 24px; }
.panel h3 { margin: 0 0 6px; font-size: 18px; font-weight: 500; }
.panel p { margin: 0; color: var(--dim); }
.feature-main { display: flex; flex-direction: column; gap: 20px; }
.ledger { border: 1px solid var(--line); border-radius: var(--r-in); overflow: hidden; background: var(--bg); }
.ledger-row { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 14px; }
.ledger-row:first-child { border-top: 0; color: var(--mute); font-size: 12.5px; }
.ledger-row b { font-weight: 500; }
.ledger-row .ok { color: var(--accent); }
.feature-list { display: flex; flex-direction: column; }
.feature-list .item { padding: 18px 0; border-top: 1px solid var(--line); }
.feature-list .item:first-child { border-top: 0; padding-top: 4px; }
.feature-list h3 { font-size: 16px; }
.feature-list p { font-size: 15px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; border: 1px solid var(--line); border-radius: var(--r); }
.facts div { padding: 20px 24px; border-left: 1px solid var(--line); }
.facts div:first-child { border-left: 0; }
.facts b { display: block; font-size: 15.5px; font-weight: 500; margin-bottom: 4px; }
.facts span { color: var(--dim); font-size: 14.5px; }

.bundle { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; }
.bundle p { color: var(--dim); margin: 14px 0 0; }
.mods { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; align-content: flex-start; }
.mods li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--dim); font-size: 14px; background: var(--s1); }
.mods li.core { color: var(--text); border-color: var(--line-2); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.steps li { padding: 22px 24px 0 0; }
.steps .n { color: var(--mute); font-size: 13px; font-variant-numeric: tabular-nums; }
.steps h3 { margin: 10px 0 6px; font-weight: 500; font-size: 17px; }
.steps p { margin: 0; color: var(--dim); font-size: 15px; }

/* ---------------- pricing desk ---------------- */
.desk { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.desk-left { padding: 24px; display: flex; flex-direction: column; gap: 26px; }
.desk-right { padding: 24px; background: var(--s1); border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.field-label { color: var(--mute); font-size: 13px; margin-bottom: 10px; display: block; }
.plans { display: flex; flex-direction: column; gap: 8px; }
.plan {
  display: grid; grid-template-columns: 18px 1fr auto; gap: 14px; align-items: center; width: 100%; text-align: left;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-in); background: var(--s1); cursor: pointer;
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.plan:hover { border-color: var(--line-2); }
.plan[aria-checked="true"] { border-color: rgba(255, 255, 255, .55); background: var(--s2); }
.plan .dot { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line-2); }
.plan[aria-checked="true"] .dot { border: 5px solid var(--accent); }
.plan b { font-weight: 500; }
.plan small { display: block; color: var(--mute); font-size: 13px; }
.plan .price { font-variant-numeric: tabular-nums; font-weight: 500; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: var(--r-in); }
.seg button { border: 0; background: transparent; color: var(--dim); padding: 6px 12px; border-radius: var(--r-sm); cursor: pointer; font-size: 14px; }
.seg button[aria-pressed="true"] { background: var(--s3); color: var(--text); }
.methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.method {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--r-in);
  background: var(--s1); cursor: pointer; text-align: left; font-size: 14px; transition: border-color .15s var(--ease);
}
.method:hover { border-color: var(--line-2); }
.method[aria-checked="true"] { border-color: rgba(255, 255, 255, .55); }
.method svg { width: 18px; height: 18px; stroke: var(--dim); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.method[aria-checked="true"] svg { stroke: var(--accent); }
.method small { display: block; color: var(--mute); font-size: 12px; }
.empty-methods { color: var(--mute); font-size: 14px; padding: 12px 0; }
.promo { display: flex; gap: 8px; }
.input {
  width: 100%; height: 42px; padding: 0 12px; border-radius: var(--r-in); border: 1px solid var(--line-2); background: var(--bg);
  outline: none; transition: border-color .15s var(--ease);
}
.input::placeholder { color: var(--mute); }
.input:focus { border-color: rgba(255, 255, 255, .6); }
textarea.input { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; }
.hint { font-size: 13px; color: var(--mute); min-height: 18px; margin-top: 6px; }
.hint.ok { color: var(--accent); }
.hint.bad { color: var(--danger); }
.total-rows { display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; }
.total-rows div { display: flex; justify-content: space-between; gap: 12px; color: var(--dim); }
.total-rows .sum { color: var(--text); font-size: 28px; font-weight: 500; padding-top: 12px; border-top: 1px solid var(--line); }
.desk-right .fine { color: var(--mute); font-size: 13px; margin: 0; }
.includes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; color: var(--dim); font-size: 14.5px; }
.includes li { display: flex; gap: 10px; }
.includes li::before { content: ""; width: 10px; height: 1px; margin-top: 12px; background: var(--accent); flex: none; }

/* ---------------- faq ---------------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; display: flex; justify-content: space-between; gap: 24px; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--mute); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 18px; color: var(--dim); max-width: 760px; }

/* ---------------- footer ---------------- */
.foot { margin-top: 110px; border-top: 1px solid var(--line); padding: 40px 0 34px; color: var(--mute); font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; }
.foot h4 { margin: 0 0 10px; color: var(--text); font-size: 14px; font-weight: 500; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.foot a:hover { color: var(--text); }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); }

/* ---------------- forms / auth ---------------- */
.narrow { width: min(440px, 100% - 32px); margin: 64px auto 0; }
.card { border: 1px solid var(--line); border-radius: var(--r); background: var(--s1); padding: 28px; }
.card h1 { font-size: 26px; margin: 0 0 6px; }
.card > p { margin: 0 0 22px; color: var(--dim); }
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 6px; color: var(--dim); font-size: 13.5px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 18px; color: var(--dim); font-size: 14px; }
.check input { margin-top: 4px; accent-color: var(--accent); }
.form-error { min-height: 20px; color: var(--danger); font-size: 14px; margin: 2px 0 10px; }
.w-full { width: 100%; }
.alt { margin: 18px 0 0; text-align: center; color: var(--mute); font-size: 14px; }

/* ---------------- account ---------------- */
.account { padding-top: 40px; }
.account-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.account-head h1 { margin: 0; font-size: 30px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 10px 14px; color: var(--dim); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.tabs button[hidden] { display: none; }
body[data-account-page] [data-guest] { display: none; }
@media (max-width: 560px) {
  .account .tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .account .tabs button { min-width: 0; padding-inline: 6px; white-space: normal; overflow-wrap: anywhere; }
}
.grid-2 { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.big { font-size: 40px; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin: 6px 0 4px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--dim); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mute); }
.pill.on { color: var(--accent); } .pill.on::before { background: var(--accent); }
.pill.warn { color: var(--warn); } .pill.warn::before { background: var(--warn); }
.meter { height: 4px; border-radius: 999px; background: var(--s3); margin-top: 18px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .6s var(--ease); }
.rows { display: flex; flex-direction: column; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.row:first-child { border-top: 0; }
.row small { display: block; color: var(--mute); font-size: 13px; }
.empty { color: var(--mute); font-size: 14.5px; padding: 8px 0; }
.inline-form { display: flex; gap: 8px; }
.code-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; border: 1px dashed var(--line-2); border-radius: var(--r-in); }
.code-card b { font-size: 24px; letter-spacing: .08em; font-weight: 500; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-in); margin-top: 16px; }
.stat-grid div { padding: 14px 16px; border-left: 1px solid var(--line); }
.stat-grid div:first-child { border-left: 0; }
.stat-grid b { display: block; font-size: 20px; font-weight: 500; font-variant-numeric: tabular-nums; }
.stat-grid span { color: var(--mute); font-size: 13px; }
[data-tab-panel][hidden] { display: none; }
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 8px); opacity: 0; pointer-events: none;
  padding: 10px 16px; border-radius: var(--r-in); background: var(--s3); border: 1px solid var(--line-2); font-size: 14px;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { border-color: rgba(242, 119, 122, .5); }

/* ---------------- partners ---------------- */
.split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 48px; align-items: center; }
.terms-list { list-style: none; margin: 26px 0 0; padding: 0; border-top: 1px solid var(--line); }
.terms-list li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.terms-list b { font-weight: 500; font-size: 18px; font-variant-numeric: tabular-nums; }
.terms-list span { color: var(--dim); }
.preview-tag { color: var(--mute); font-size: 12.5px; }
.cards-3 { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); gap: 16px; }

/* ---------------- documents ---------------- */
.doc { width: min(760px, 100% - 48px); margin: 56px auto 0; }
.doc h1 { font-size: 34px; margin: 0 0 8px; }
.doc .updated { color: var(--mute); font-size: 14px; margin-bottom: 36px; }
.doc h2 { font-size: 20px; margin: 34px 0 10px; }
.doc p, .doc li { color: var(--dim); }
.doc ul, .doc ol { padding-left: 20px; }
.doc li { margin: 6px 0; }
.doc .todo { color: var(--warn); }

.notfound { min-height: 60vh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; padding-top: 40px; }
.notfound .code { font-size: clamp(110px, 18vw, 220px); line-height: .9; font-weight: 500; letter-spacing: -.05em; color: var(--s3); font-variant-numeric: tabular-nums; }
.notfound h1 { margin-top: 0; }
.trace { border: 1px solid var(--line); border-radius: var(--r-in); background: var(--s1); padding: 16px; font-size: 14px; color: var(--dim); }
.trace div { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-top: 1px solid var(--line); }
.trace div:first-child { border-top: 0; }

/* ---------------- consent ---------------- */
.consent {
  position: fixed; left: 24px; bottom: 24px; z-index: 50; width: min(420px, 100% - 48px);
  border: 1px solid var(--line-2); border-radius: var(--r); background: var(--s1); padding: 18px; font-size: 14px;
}
.consent p { margin: 0 0 12px; color: var(--dim); }
.consent label { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; color: var(--dim); }
.consent label b { color: var(--text); font-weight: 500; display: block; }
.consent input { margin-top: 4px; accent-color: var(--accent); }
.consent .row-btns { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.consent[hidden] { display: none; }

/* ---------------- motion: one fade-rise on load ---------------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .5s var(--ease) both; }
  .rise.d1 { animation-delay: .06s; } .rise.d2 { animation-delay: .12s; } .rise.d3 { animation-delay: .18s; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } }
}

/* ---------------- responsive ---------------- */
@media (max-width: 1000px) {
  .hero .wrap, .hero-top, .head, .features, .bundle, .desk, .grid-2, .split, .cards-3, .notfound { grid-template-columns: 1fr; }
  .desk-right { border-left: 0; border-top: 1px solid var(--line); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .menu { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; padding: 8px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .menu.open { display: flex; }
  .menu .mobile-login { display: block; }
  .btn.burger { display: inline-flex; }
  .top-actions .btn-quiet:not(.burger) { display: none; }
  .menu a { display: flex; align-items: center; min-height: 44px; }
}
@media (max-width: 760px) {
  .steps, .facts, .stat-grid { grid-template-columns: 1fr; }
  .facts div, .stat-grid div { border-left: 0; border-top: 1px solid var(--line); }
  .facts div:first-child, .stat-grid div:first-child { border-top: 0; }
  .terms-list li { grid-template-columns: 1fr; gap: 2px; }
  .inline-form { flex-direction: column; }
  .wrap { width: min(var(--wrap), 100% - 32px); }
}
.foot button { background: none; border: 0; padding: 0; color: inherit; font-size: 14px; cursor: pointer; height: auto; }
.foot button:hover { color: var(--text); }


/* =====================================================================================================
   Landing (v4): left-aligned hero with live HUD, compact feature tiles, three price cards.
   ===================================================================================================== */
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.px { image-rendering: pixelated; image-rendering: crisp-edges; width: 16px; height: 16px; flex: none; }
.ico { width: 15px; height: 15px; flex: none; }
.section { padding: 112px 0 0; }
.section.first { padding-top: 64px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap; margin-bottom: 28px; }
.sec-head h2 { font-size: clamp(30px, 3.4vw, 42px); font-weight: 600; letter-spacing: -.025em; line-height: 1.1; }
.sec-head p { margin: 0; color: var(--dim); max-width: 440px; }

/* hero */
.stage { position: relative; overflow: hidden; padding-top: 40px; }
.stage-bg { position: absolute; inset: 0; pointer-events: none; }
.stage-bg::before { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; opacity: .5;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 72% 34%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 55% at 72% 34%, #000 10%, transparent 75%); }
.debug { position: absolute; top: 14px; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 11px; line-height: 1.7; color: var(--mute); }
.debug.left { left: 24px; } .debug.right { right: 24px; text-align: right; }
.debug b { color: var(--dim); font-weight: 500; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 32px; align-items: center; min-height: 440px; padding: 40px 0 24px; }
.display { margin: 0 0 18px; font-size: clamp(38px, 5vw, 64px); line-height: 1.04; font-weight: 600; letter-spacing: -.035em; max-width: 13ch; }
.statement .lede { max-width: 470px; }
.scene { position: relative; height: 420px; }
.ghost { position: absolute; opacity: .45; filter: saturate(.7); transition: opacity .5s var(--ease), transform .5s var(--ease), filter .5s var(--ease); }
.ghost:hover { opacity: 1; filter: none; transform: translateY(-3px); z-index: 2; }
.ghost.g1 { left: 0; top: 6px; } .ghost.g2 { right: 0; top: 40px; } .ghost.g3 { left: 30px; top: 300px; } .ghost.g4 { right: 26px; top: 238px; }
.gv { transition: opacity .55s var(--ease), transform .55s var(--ease); }
.ghost .gv:not(.on) { position: absolute; left: 0; top: 0; opacity: 0; transform: translateY(10px) scale(.98); pointer-events: none; }
.showcase { margin-top: 24px; }
.frame { border-radius: 16px; }
.menu-host { position: relative; overflow: hidden; background: #070808; }

/* HUD widgets (Apexium style: rows carry their own progress fill) */
.hud { width: 236px; padding: 6px; border-radius: 12px; background: rgba(13, 15, 14, .94); border: 1px solid var(--line); font-size: 13px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.hud.wide { width: 100%; max-width: 420px; }
.hud h5 { display: flex; align-items: center; gap: 8px; margin: 0; padding: 6px 8px 8px; font-size: 12.5px; font-weight: 600; color: var(--dim); }
.hud h5 .px { width: 14px; height: 14px; }
.hud h5 em { margin-left: auto; font-style: normal; color: var(--mute); font-weight: 500; font-variant-numeric: tabular-nums; }
.hud h5 em.live { display: inline-flex; align-items: center; gap: 6px; color: var(--dim); }
.hud h5 em.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--text); animation: blinkDot 1.6s ease-in-out infinite; }
@keyframes blinkDot { 50% { opacity: .25; } }
.hud-rows { display: flex; flex-direction: column; gap: 3px; }
.hr { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 30px; padding: 0 9px; border-radius: 8px; background: rgba(255, 255, 255, .035); overflow: hidden; }
.hr .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(255, 255, 255, .075); transition: width 1s linear; }
.hn { position: relative; display: flex; align-items: center; gap: 9px; min-width: 0; white-space: nowrap; color: var(--text); }
.hr b { position: relative; font-weight: 600; font-variant-numeric: tabular-nums; }
.hr b.soon { color: #ff9b8f; }
.hr kbd, .hud kbd { font: 600 11px/1 "Manrope", system-ui, sans-serif; padding: 4px 7px; border-radius: 6px; background: var(--s3); color: var(--dim); }
.hud .badge { font-style: normal; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--s3); }
.badge.gold { color: #f2c94c; } .badge.green { color: #7bd88f; } .badge.blue { color: #8fb4ff; }
.hr.enter { animation: rowIn .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rowIn { from { opacity: 0; transform: translateX(-10px); height: 0; } to { height: 30px; } }
.hr.leave { opacity: 0; height: 0 !important; margin-top: -3px; transition: opacity .3s var(--ease), height .4s var(--ease), margin .4s var(--ease); }
.hr b.bump { animation: bump .5s var(--ease); }
@keyframes bump { 30% { transform: translateY(-3px); color: #fff; } }

/* nameplates and markers */
.plate { display: inline-flex; align-items: center; gap: 9px; height: 34px; padding: 0 6px 0 12px; border-radius: 10px; background: rgba(13, 15, 14, .94); border: 1px solid var(--line); font-size: 13.5px; white-space: nowrap; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.plate .role { display: inline-flex; align-items: center; gap: 5px; color: #f2c94c; font-weight: 600; }
.plate .role.red { color: #ff8577; }
.plate .bolt { width: 10px; height: 10px; }
.plate .pn { font-weight: 500; }
.plate .hp { padding: 3px 8px; border-radius: 7px; background: #3a1414; color: #ffb3a8; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; transition: background-color .4s, color .4s; }
.plate .hp.low { background: #7a1d1d; color: #fff; }
.pin { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 9px; border-radius: 10px; background: rgba(13, 15, 14, .94); border: 1px solid var(--line); font-size: 13.5px; white-space: nowrap; }
.pin b { color: var(--dim); font-weight: 600; font-variant-numeric: tabular-nums; }

/* feature tiles */
.bento3 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.tile { position: relative; grid-column: span 6; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); background: var(--s1); overflow: hidden; }
.tile.w7 { grid-column: span 7; } .tile.w5 { grid-column: span 5; } .tile.w12 { grid-column: span 12; }
.tile-view { padding: 18px; border-bottom: 1px solid var(--line); background: var(--bg); flex: 1; }
.tile-text { padding: 16px 20px 20px; }
.tile-text h3 { margin: 0 0 6px; font-size: 16.5px; font-weight: 600; }
.tile-text p { margin: 0; color: var(--dim); font-size: 14.5px; }
.hud-pair { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.hud-pair .hud { flex: 1 1 200px; width: auto; }
.marks { display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 5px 11px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); font-size: 13px; color: var(--dim); transition: border-color .25s var(--ease), color .25s var(--ease); }
.chip:hover { border-color: var(--line-2); color: var(--text); }

/* purchase log */
.feed { display: flex; flex-direction: column; gap: 4px; }
.fr { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; height: 38px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--s1); font-size: 13.5px; overflow: hidden; }
.fr .fn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.fr .fn small { color: var(--mute); font-size: 12.5px; }
.fr .fp { font-variant-numeric: tabular-nums; font-weight: 600; }
.fr .fs { color: var(--mute); font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fr .fs b { color: var(--text); font-weight: 600; }
.fr.enter { animation: feedIn .5s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes feedIn { from { opacity: 0; transform: translateY(-8px); height: 0; } to { height: 38px; } }
.fr.leave { opacity: 0; height: 0; margin-top: -4px; border-width: 0; transition: opacity .3s, height .4s, margin .4s; }

/* pricing */
.price-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.seg { position: relative; display: inline-flex; gap: 0; padding: 4px; height: 44px; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--s1); flex-wrap: nowrap; }
.seg button { position: relative; z-index: 1; height: 34px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; color: var(--dim); font-size: 13.5px; font-weight: 500; cursor: pointer; transition: color .25s var(--ease); }
.seg button:hover, .seg button[aria-pressed="true"] { color: var(--text); }
.seg-thumb { position: absolute; left: 4px; top: 4px; height: 34px; border-radius: 8px; background: var(--s3); transition: transform .35s cubic-bezier(.3, .9, .3, 1), width .35s cubic-bezier(.3, .9, .3, 1); }
.promo-wrap { position: relative; }
.price-controls .promo { display: flex; height: 44px; padding: 4px; gap: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--s1); width: min(340px, 100%); transition: border-color .2s; }
.price-controls .promo:focus-within { border-color: var(--line-2); }
.price-controls .promo .input { height: 34px; border: 0; background: transparent; padding: 0 10px; min-width: 0; flex: 1; }
.price-controls .promo .btn { height: 34px; padding: 0 14px; border-radius: 8px; }
.price-controls .hint { position: absolute; left: 6px; top: 100%; margin-top: 6px; white-space: nowrap; }
.price-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pcard { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--s1); }
.pcard.best { border-color: rgba(255, 255, 255, .28); }
.pcard-top { display: flex; justify-content: space-between; align-items: center; }
.pname { font-weight: 600; font-size: 15px; }
.tag { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 7px; background: var(--text); color: var(--bg); }
.amount { display: flex; flex-direction: column; gap: 2px; }
.amount .val { font-size: 44px; font-weight: 600; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.amount .val.swap { animation: valIn .5s var(--ease); }
@keyframes valIn { from { opacity: .3; transform: translateY(6px); } }
.amount small { color: var(--mute); font-size: 13.5px; }
.amount .old { color: var(--mute); font-size: 14px; height: 0; opacity: 0; overflow: hidden; transition: height .3s var(--ease), opacity .3s var(--ease); }
.amount .old.on { height: 20px; opacity: 1; }
.feat { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; color: var(--dim); font-size: 13.5px; }
.feat li { display: flex; align-items: center; gap: 8px; }
.feat li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--dim); flex: none; }
.micon { display: inline-flex; flex: none; width: 16px; height: 16px; }
.micon svg { width: 100%; height: 100%; }
.pay-steps { margin: 8px 0 0; padding-left: 18px; color: var(--text); font-size: 12.5px; line-height: 1.5; opacity: .86; }
.pay-steps li { margin: 3px 0; }
.amount-row { display: flex; align-items: center; gap: 8px; }
.micon[hidden] { display: none; }
.link-btn { padding: 0; border: 0; background: none; color: var(--dim); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--text); }
.crypto-howto { margin: 8px 0 0; padding-left: 18px; color: var(--dim); font-size: 12.5px; line-height: 1.5; }
.crypto-howto li { margin: 3px 0; }
.payment-networks { display: flex; flex-wrap: wrap; gap: 5px 11px; padding: 0; margin: 0; list-style: none; }
.payment-networks li { display: inline-flex; align-items: center; gap: 4px; color: var(--dim); font-size: 12px; line-height: 20px; white-space: nowrap; }
.payment-networks img { flex: none; width: 16px; height: 16px; object-fit: contain; }
.btn-outline { background: transparent; border-color: var(--line-2); }
.btn-outline:hover { background: var(--s2); }
.price-note { color: var(--mute); font-size: 13.5px; margin-top: 18px; }

/* faq, download */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: start; }
.faq-grid .sec-head { display: block; margin: 0; }
.faq-grid .sec-head p { margin-top: 12px; }
.faq summary { transition: color .2s var(--ease); }
.faq summary:hover { color: #fff; }
.faq details p { animation: none; }
.motion .faq details[open] p { animation: faqIn .35s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-4px); } }
.dl-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 48px; align-items: center; }
.dl-grid h1 { margin-top: 0; }
.dl-grid .dim { margin-top: 16px; font-size: 14px; }
.steps { border-top: 0; grid-template-columns: 1fr; gap: 10px; }
.steps li { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-in); background: var(--s1); }
.steps h3 { margin: 0 0 4px; }

/* forms and account fixes */
.check { margin: 6px 0 6px; }
.form-error:empty { min-height: 0; margin: 0 0 12px; }
.tabs { scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { transition: color .2s var(--ease), border-color .25s var(--ease); }

/* motion */
@media (prefers-reduced-motion: no-preference) {
  .top { transition: background-color .3s var(--ease), border-color .3s var(--ease); }
  .motion .top:not(.scrolled) { border-bottom-color: transparent; background: transparent; }
  .motion .top.scrolled { background: rgba(10, 12, 11, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .motion .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .8s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--i, 0) * 60ms); }
  .motion .rv.in { opacity: 1; transform: none; }
  .btn { transition: transform .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease); }
  .btn:active { transform: scale(.98); }
  .tile::before, .pcard::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s var(--ease); z-index: 2;
    background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .05), transparent 60%); }
  .tile:hover::before, .pcard:hover::before { opacity: 1; }
  .motion .tile.rv.in, .motion .pcard.rv.in { transition: opacity .7s var(--ease), transform .45s cubic-bezier(.16, 1, .3, 1), border-color .3s var(--ease); }
  .motion .tile.rv.in:hover, .motion .pcard.rv.in:hover { transform: translateY(-3px); border-color: var(--line-2); }
  .menu a { transition: color .2s var(--ease), background-color .2s var(--ease); }
}

@media (max-width: 1000px) {
  .hero-grid, .faq-grid, .dl-grid { grid-template-columns: 1fr; }
  .scene { height: 360px; }
  .bento3 .tile, .bento3 .tile.w7, .bento3 .tile.w5 { grid-column: span 12; }
  .price-cards { grid-template-columns: 1fr; }
  .debug { display: none; }
}
@media (max-width: 760px) {
  .menu-host { overflow-x: auto; overscroll-behavior-x: contain; }
  .scene { display: none; }
  .hero-grid { min-height: 0; padding-bottom: 8px; }
  .section { padding-top: 80px; }
}

/* =====================================================================================================
   Menu example (menu-demo.js): a 1240×760 window scaled into the frame. Real Apexium layout, every state animated.
   --mx-k scales every duration (1 smooth, .55 fast, 0 off).
   ===================================================================================================== */
.mx { --mx-acc: #fff; --mx-tint: #3e63dd; --mx-tint-a: .2; --mx-blur: 12px; --mx-k: 1; --mx-sidebar-width: 228px;
  --mx-bg: #0b0c0c; --mx-s1: #111313; --mx-s2: #171a19; --mx-s3: #1f2321; --mx-line: rgba(255, 255, 255, .07); --mx-line2: rgba(255, 255, 255, .13);
  --mx-text: #eef1f0; --mx-dim: #9ca5a1; --mx-mute: #67706c; --mx-gap: 10px; --mx-pad: 14px;
  --mx-ease: cubic-bezier(.25, .9, .3, 1); --mx-t: calc(.32s * var(--mx-k)); --mx-tf: calc(.18s * var(--mx-k));
  position: absolute; left: 0; top: 0; width: 1240px; height: 760px; transform-origin: 0 0;
  display: grid; grid-template-columns: var(--mx-sidebar-width) 1fr; background: var(--mx-bg); color: var(--mx-text);
  font: 500 13px/1.4 "Manrope", system-ui, sans-serif; overflow: hidden; user-select: none;
  transition: background-color var(--mx-t), color var(--mx-t); }
.mx[data-palette="1"] { --mx-bg: #0a0c14; --mx-s1: #10131d; --mx-s2: #161a27; --mx-s3: #1d2232; }
.mx[data-palette="2"] { --mx-bg: #101010; --mx-s1: #171717; --mx-s2: #1d1d1d; --mx-s3: #262626; }
.mx[data-palette="3"] { --mx-bg: #0a100c; --mx-s1: #0f1812; --mx-s2: #142018; --mx-s3: #1b2b21; }
.mx[data-palette="4"] { --mx-bg: #130d0b; --mx-s1: #1b1310; --mx-s2: #231915; --mx-s3: #2e211b; }
.mx.light { --mx-bg: #eceeed; --mx-s1: #fff; --mx-s2: #f4f5f4; --mx-s3: #e5e8e6; --mx-line: rgba(0, 0, 0, .08); --mx-line2: rgba(0, 0, 0, .15);
  --mx-text: #151817; --mx-dim: #535d59; --mx-mute: #8a9490; }
.mx.light.acc-default { --mx-acc: #151817 !important; }
.mx[data-density="0"] { --mx-gap: 6px; --mx-pad: 10px; }
.mx[data-density="2"] { --mx-gap: 14px; --mx-pad: 18px; }
.mx :where(button) { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.mx :where(input) { font: inherit; color: inherit; }
.mx-i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mx-px { width: 16px; height: 16px; image-rendering: pixelated; flex: none; }
.mx-px.big { width: 24px; height: 24px; }
.mx-px.ava { width: 30px; height: 30px; border-radius: 6px; }

/* sidebar */
.mx-side { display: flex; flex-direction: column; gap: 2px; padding: 16px 12px; border-right: 1px solid var(--mx-line); background: var(--mx-s1); transition: background-color var(--mx-t); }
.mx.glass .mx-side, .mx.glass .mx-mod { background: color-mix(in srgb, var(--mx-tint) calc(var(--mx-tint-a) * 100%), color-mix(in srgb, var(--mx-s1) 60%, transparent)); -webkit-backdrop-filter: blur(var(--mx-blur)); backdrop-filter: blur(var(--mx-blur)); }
.mx.glass { background: radial-gradient(700px 380px at 72% 18%, color-mix(in srgb, var(--mx-tint) 32%, transparent), transparent), var(--mx-bg); }
.mx-brand { display: flex; align-items: center; gap: 9px; padding: 2px 8px 16px; font-size: 16px; font-weight: 700; }
.mx-brand em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 600; color: var(--mx-mute); padding: 2px 7px; border-radius: 6px; background: var(--mx-s3); }
.mx-logo { width: 20px; height: 20px; fill: var(--mx-text); stroke: none; }
.mx-cap { padding: 12px 10px 6px; color: var(--mx-mute); font-size: 11.5px; font-weight: 600; }
.mx-nav { display: flex; flex-direction: column; gap: 2px; }
.mx-nav-it { position: relative; display: flex; align-items: center; gap: 11px; height: 36px; padding: 0 10px; border-radius: 9px; color: var(--mx-dim); font-size: 13.5px; font-weight: 600; transition: background-color var(--mx-tf), color var(--mx-tf); }
.mx-nav-it span { flex: 1; }
.mx-nav-it:hover { background: var(--mx-s2); color: var(--mx-text); }
.mx-nav-it.on { background: var(--mx-s3); color: var(--mx-text); }
.mx-nav-it::before { content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--mx-acc); transform: scaleY(0); transition: transform var(--mx-t) var(--mx-ease); }
.mx-nav-it.on::before { transform: scaleY(1); }
.mx-count { font-size: 11.5px; font-weight: 700; color: var(--mx-mute); font-variant-numeric: tabular-nums; transition: color var(--mx-tf); }
.mx-nav-it.on .mx-count { color: var(--mx-text); }
.mx-grow { flex: 1; }
.mx-profile { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 9px 10px; border: 1px solid var(--mx-line); border-radius: 12px; background: var(--mx-s2); }
.mx-profile b { display: block; font-size: 13px; } .mx-profile small { color: var(--mx-mute); font-size: 11.5px; }

/* main */
.mx-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.mx-bar {
  display: grid; grid-template-columns: 1fr minmax(0, min(44%, 420px)) 1fr;
  align-items: center; gap: 8px var(--mx-gap); padding: 14px 18px; border-bottom: 1px solid var(--mx-line);
  width: min(100%, calc(var(--mx-visible-width, 1240px) - var(--mx-sidebar-width)));
}
.mx-title { min-width: 0; }
.mx-title h3 { margin: 0; font-size: 17px; font-weight: 700; }
.mx-title small { color: var(--mx-mute); font-size: 12px; }
.mx-search-box { display: flex; align-items: center; gap: 9px; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--mx-line); border-radius: 11px; background: var(--mx-s1); color: var(--mx-mute); transition: border-color var(--mx-tf), background-color var(--mx-tf); }
.mx-narrow .mx-bar { grid-template-columns: minmax(0, 1fr); }
.mx-narrow .mx-search-box { width: min(100%, 420px); justify-self: center; }
.mx-narrow .mx-search-box kbd { display: none; }
.mx-search-box:focus-within { border-color: var(--mx-line2); background: var(--mx-s2); }
.mx-search { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 13.5px; color: var(--mx-text); }
.mx-search::placeholder { color: var(--mx-mute); }
.mx-search-box kbd { font: 600 11px/1 "Manrope", sans-serif; color: var(--mx-mute); padding: 4px 6px; border-radius: 6px; background: var(--mx-s3); }
.mx-content { flex: 1; min-height: 0; overflow: auto; display: grid; grid-template-columns: 1fr 1fr; gap: var(--mx-gap); align-content: start; padding: 14px 18px 24px;
  scrollbar-width: thin; scrollbar-color: var(--mx-s3) transparent; transition: opacity var(--mx-tf), transform var(--mx-t) var(--mx-ease); }
.mx-content.leaving { opacity: 0; transform: translateY(6px); }
.mx-content.entering { opacity: 0; transform: translateY(-6px); transition: none; }
.mx-col { display: flex; flex-direction: column; gap: var(--mx-gap); min-width: 0; }

/* function cards */
.mx-mod { border: 1px solid var(--mx-line); border-radius: 14px; background: var(--mx-s1); transition: border-color var(--mx-t), background-color var(--mx-t); }
.mx-mod.active { border-color: var(--mx-line2); }
.mx-mod-head { display: flex; align-items: center; gap: 12px; padding: 12px var(--mx-pad); cursor: pointer; border-radius: 14px; outline: none; }
.mx-mod-head:focus-visible { box-shadow: 0 0 0 2px var(--mx-line2) inset; }
.mx-mod-head.flat { cursor: default; border-bottom: 1px solid var(--mx-line); border-radius: 16px 16px 0 0; }
.mx-mod-name { flex: 1; min-width: 0; }
.mx-mod-name h4 { margin: 0; font-size: 14.5px; font-weight: 700; transition: color var(--mx-tf); }
.mx-mod:not(.active) .mx-mod-name h4 { color: var(--mx-dim); }
.mx-mod-name small { display: block; color: var(--mx-mute); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-chev { display: grid; place-items: center; width: 24px; height: 24px; color: var(--mx-mute); transition: transform var(--mx-t) var(--mx-ease), color var(--mx-tf); }
.mx-mod.open .mx-chev { transform: rotate(180deg); color: var(--mx-text); }
.mx-mod-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--mx-t) var(--mx-ease); }
.mx-mod.open .mx-mod-body { grid-template-rows: 1fr; }
.mx-mod-inner { min-height: 0; overflow: hidden; padding: 0 var(--mx-pad); opacity: 0; transition: opacity var(--mx-t), padding var(--mx-t) var(--mx-ease); }
.mx-mod.open .mx-mod-inner { opacity: 1; padding-bottom: var(--mx-pad); }
.mx-switch { position: relative; display: block; width: 34px; height: 20px; border-radius: 10px; background: var(--mx-s3); box-shadow: inset 0 0 0 1px var(--mx-line2); transition: background-color var(--mx-t); flex: none; }
.mx-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--mx-dim); transition: transform var(--mx-t) cubic-bezier(.4, 1.5, .5, 1), background-color var(--mx-t); }
.mx-switch-btn.on .mx-switch, .mx-row.on .mx-switch { background: var(--mx-acc); box-shadow: none; }
.mx-switch-btn.on .mx-switch::after, .mx-row.on .mx-switch::after { transform: translateX(14px); background: var(--mx-bg); }
.mx-switch-btn { padding: 4px; border-radius: 12px; }

/* settings */
.mx-set { padding: 4px 0; border-radius: 10px; transition: background-color .6s; }
.mx-set.flash, .mx-mod.flash { animation: mxFlash calc(1.6s * var(--mx-k)) var(--mx-ease); }
@keyframes mxFlash { 0%, 40% { background: color-mix(in srgb, var(--mx-acc) 14%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--mx-acc) 14%, transparent); } }
.mx-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 26px; }
.mx-lab { font-weight: 600; font-size: 13px; }
.mx-chip { padding: 2px 8px; border-radius: 7px; background: var(--mx-s3); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mx-select, .mx-row, .mx-bind { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 12px; border: 1px solid var(--mx-line); border-radius: 10px; background: var(--mx-bg); transition: border-color var(--mx-tf), background-color var(--mx-tf); }
.mx-select:hover, .mx-row:hover, .mx-bind:hover { border-color: var(--mx-line2); }
.mx-select .mx-lab, .mx-row .mx-lab, .mx-bind .mx-lab { flex: 1; }
.mx-val { color: var(--mx-dim); max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-val.swap { animation: mxSwap var(--mx-t) var(--mx-ease); }
@keyframes mxSwap { from { opacity: 0; transform: translateY(5px); } }
.mx-select > .mx-i { color: var(--mx-mute); width: 14px; height: 14px; }
.mx-bind { margin: 2px 0 4px; }
.mx-bind kbd { font: 700 11.5px/1 "Manrope", sans-serif; padding: 5px 8px; border-radius: 7px; background: var(--mx-s3); color: var(--mx-text); transition: background-color var(--mx-tf); }
.mx-bind.listening kbd { background: var(--mx-acc); color: var(--mx-bg); animation: mxPulse 1s ease-in-out infinite; }
@keyframes mxPulse { 50% { opacity: .55; } }
.mx-range { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; margin: 2px 0 0; background: transparent; --p: 50%; cursor: pointer; }
.mx-range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--mx-acc) var(--p), var(--mx-s3) var(--p)); }
.mx-range::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--mx-acc) var(--p), var(--mx-s3) var(--p)); }
.mx-range::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -5px; border-radius: 50%; background: var(--mx-acc); border: 3px solid var(--mx-bg); box-shadow: 0 0 0 1px var(--mx-line2); transition: transform var(--mx-tf); }
.mx-range::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: var(--mx-acc); border: 3px solid var(--mx-bg); }
.mx-range:hover::-webkit-slider-thumb { transform: scale(1.15); }
.mx-seg { position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr); padding: 3px; margin-top: 4px; border: 1px solid var(--mx-line); border-radius: 10px; background: var(--mx-bg); }
.mx-seg button { position: relative; z-index: 1; height: 30px; text-align: center; color: var(--mx-dim); font-weight: 600; transition: color var(--mx-t); }
.mx-seg button.on { color: var(--mx-text); }
.mx-seg-thumb { position: absolute; left: 3px; top: 3px; bottom: 3px; width: calc((100% - 6px) / var(--n)); border-radius: 7px; background: var(--mx-s3); transition: transform var(--mx-t) var(--mx-ease); }
.mx-color { display: inline-flex; align-items: center; gap: 8px; }
.mx-hex { color: var(--mx-dim); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mx-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(127, 127, 127, .45); transition: background-color var(--mx-t); }
.mx-list { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.mx-li-row { display: flex; gap: 4px; }
.mx-li { flex: 1; display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: 9px; background: var(--mx-bg); border: 1px solid var(--mx-line); color: var(--mx-mute); font-weight: 600; transition: color var(--mx-tf), border-color var(--mx-tf); }
.mx-li span { flex: 1; }
.mx-li .mx-px { opacity: .5; transition: opacity var(--mx-t); }
.mx-li.on { color: var(--mx-text); }
.mx-li.on .mx-px { opacity: 1; }
.mx-tick { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--mx-line2); color: transparent; transition: background-color var(--mx-tf), color var(--mx-tf); }
.mx-tick .mx-i { width: 12px; height: 12px; stroke-width: 3; transform: scale(.5); transition: transform var(--mx-t) cubic-bezier(.4, 1.6, .5, 1); }
.mx-li.on .mx-tick { background: var(--mx-acc); color: var(--mx-bg); box-shadow: none; }
.mx-li.on .mx-tick .mx-i { transform: scale(1); }
.mx-gear { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--mx-bg); border: 1px solid var(--mx-line); color: var(--mx-dim); transition: color var(--mx-tf), transform var(--mx-t) var(--mx-ease); }
.mx-gear:hover { color: var(--mx-text); transform: rotate(45deg); }
.mx-wide { width: 100%; height: 38px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--mx-line); border-radius: 10px; background: var(--mx-bg); font-weight: 600; transition: border-color var(--mx-tf), transform var(--mx-tf); }
.mx-wide:hover { border-color: var(--mx-line2); }
.mx-wide:active { transform: scale(.98); }
.mx-wide.narrow { width: auto; margin: 0; padding: 0 16px; flex: none; }
.mx-wide.spin .mx-i { animation: mxSpin calc(.7s * var(--mx-k)) var(--mx-ease); }
@keyframes mxSpin { to { transform: rotate(-360deg); } }

/* popovers: dropdowns, palette, search results */
.mx-pop { position: absolute; z-index: 30; display: flex; flex-direction: column; gap: 2px; padding: 5px; border: 1px solid var(--mx-line2); border-radius: 12px; background: var(--mx-s2);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45); transform-origin: top center; animation: mxPopIn var(--mx-t) var(--mx-ease); }
.mx-pop.out { opacity: 0; transform: translateY(-4px) scale(.98); transition: opacity var(--mx-tf), transform var(--mx-tf); pointer-events: none; }
@keyframes mxPopIn { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
.mx-opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 32px; padding: 6px 10px; border-radius: 8px; color: var(--mx-dim); transition: background-color var(--mx-tf), color var(--mx-tf); }
.mx-opt:hover, .mx-opt.hot { background: var(--mx-s3); color: var(--mx-text); }
.mx-opt .mx-i { width: 14px; height: 14px; opacity: 0; transform: scale(.4); transition: opacity var(--mx-tf), transform var(--mx-t) cubic-bezier(.4, 1.6, .5, 1); }
.mx-opt.on { color: var(--mx-text); }
.mx-opt.on .mx-i { opacity: 1; transform: none; }
.mx-results .mx-opt { flex-direction: column; align-items: flex-start; gap: 0; }
.mx-results small { color: var(--mx-mute); font-size: 11.5px; }
.mx-none { padding: 10px; color: var(--mx-mute); }
.mx-swatches { display: flex; align-items: center; justify-content: space-between; padding: 4px; }
.mx-sw { position: relative; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; transition: transform var(--mx-tf); }
.mx-sw::after { content: ""; width: 20px; height: 20px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(127, 127, 127, .4); }
.mx-sw::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 2px var(--mx-text); opacity: 0; transform: scale(.7); transition: opacity var(--mx-tf), transform var(--mx-t) var(--mx-ease); }
.mx-sw.on::before { opacity: 1; transform: none; }
.mx-sw:hover { transform: scale(1.1); }
.mx-sw.pip { color: var(--mx-dim); cursor: pointer; }
.mx-sw.pip::after { display: none; }
.mx-sw.pip.on { color: var(--c); }
.mx-picker { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; border: 0; padding: 0; }

/* pages: configs, friends, waypoints */
.mx-page { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.mx-add { display: flex; gap: 8px; }
.mx-input { flex: 1; height: 38px; padding: 0 12px; border: 1px solid var(--mx-line); border-radius: 10px; background: var(--mx-s1); outline: none; transition: border-color var(--mx-tf); }
.mx-input:focus { border-color: var(--mx-line2); }
.mx-input.bad { animation: mxShake .4s; border-color: #e5484d; }
@keyframes mxShake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.mx-rows { display: flex; flex-direction: column; gap: 6px; }
.mx-entry { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--mx-line); border-radius: 12px; background: var(--mx-s1); transition: border-color var(--mx-t), opacity var(--mx-t), transform var(--mx-t) var(--mx-ease); }
.mx-entry > div { flex: 1; min-width: 0; }
.mx-entry b { display: block; font-size: 13.5px; } .mx-entry small { color: var(--mx-mute); font-size: 12px; }
.mx-entry.on { border-color: var(--mx-line2); }
.mx-entry.enter { animation: mxEnter var(--mx-t) var(--mx-ease); }
@keyframes mxEnter { from { opacity: 0; transform: translateY(-8px); } }
.mx-entry.leave { opacity: 0; transform: translateX(16px); }
.mx-small { height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--mx-line2); font-weight: 600; font-size: 12px; transition: background-color var(--mx-tf), color var(--mx-tf); }
.mx-small.on { background: var(--mx-acc); color: var(--mx-bg); border-color: transparent; cursor: default; }
.mx-x { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: var(--mx-dim); transition: background-color var(--mx-tf), color var(--mx-tf); }
.mx-x:hover { background: var(--mx-s3); color: var(--mx-text); }

/* element settings window */
.mx-modal { position: absolute; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; gap: 64px; background: rgba(0, 0, 0, .5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: mxFade var(--mx-t) ease-out; }
.mx-modal.out { opacity: 0; transition: opacity var(--mx-t); }
.mx-modal.out .mx-panel { transform: translateY(10px) scale(.98); transition: transform var(--mx-t) var(--mx-ease); }
@keyframes mxFade { from { opacity: 0; } }
.mx-panel { width: 360px; max-height: 600px; display: flex; flex-direction: column; border: 1px solid var(--mx-line2); border-radius: 16px; background: var(--mx-s1); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); animation: mxPanelIn calc(.4s * var(--mx-k)) var(--mx-ease); }
@keyframes mxPanelIn { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.mx-panel-body { overflow: auto; padding: 8px var(--mx-pad) var(--mx-pad); display: flex; flex-direction: column; gap: 4px; }
.mx-prev { min-width: 280px; display: grid; place-items: center; animation: mxPanelIn calc(.5s * var(--mx-k)) var(--mx-ease); }
.mx-widget { min-width: 240px; display: flex; flex-direction: column; gap: 6px; transform: scale(var(--sz, 1)); opacity: var(--op, 1); transition: transform var(--mx-t) var(--mx-ease), opacity var(--mx-t), filter var(--mx-t); }
.mx-widget.off { opacity: calc(var(--op, 1) * .3); filter: grayscale(1); }
.mx-wh { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 10px; background: var(--mx-s2); border: 1px solid var(--mx-line); font-weight: 700; transition: align-self var(--mx-t); }
.mx-wh.align1 { align-self: center; } .mx-wh.align2 { align-self: flex-end; }
.mx-wb { display: flex; flex-direction: column; gap: 3px; padding: 6px; border-radius: 12px; background: var(--mx-s2); border: 1px solid var(--mx-line); }
.mx-pr { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 30px; padding: 0 8px; border-radius: 8px; background: rgba(127, 127, 127, .06); }
.mx-pr span { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; }
.mx-pr em { font-style: normal; color: var(--mx-dim); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* toasts */
.mx-toasts { position: absolute; right: 18px; bottom: 18px; z-index: 50; display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
.mx-toast { display: flex; align-items: center; gap: 9px; padding: 10px 14px; border-radius: 11px; background: var(--mx-s3); border: 1px solid var(--mx-line2); font-weight: 600; box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
  animation: mxToastIn calc(.4s * var(--mx-k)) cubic-bezier(.2, 1.3, .4, 1); transition: opacity var(--mx-t), transform var(--mx-t); }
.mx-toast.out { opacity: 0; transform: translateX(24px); }
@keyframes mxToastIn { from { opacity: 0; transform: translateY(14px) scale(.95); } }

/* ---------------- hero scene: slots that swap client functions smoothly ---------------- */
.scene .slot { position: absolute; opacity: .5; filter: saturate(.75); transition: opacity .5s var(--ease), filter .5s var(--ease), transform .5s var(--ease); }
.scene .slot:hover { opacity: 1; filter: none; transform: translateY(-3px); z-index: 3; }
.scene .slot.in > * { animation: slotIn .8s cubic-bezier(.2, .8, .2, 1) both; }
.scene .slot.out > * { opacity: 0; transform: translateY(-10px) scale(.96); filter: blur(6px); transition: opacity .6s var(--ease), transform .6s var(--ease), filter .6s var(--ease); }
@keyframes slotIn { from { opacity: 0; transform: translateY(14px) scale(.96); filter: blur(8px); } }
.hud.target { width: 220px; padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.hud .tg { display: flex; align-items: center; gap: 10px; }
.hud .tg .px { width: 30px; height: 30px; border-radius: 6px; }
.hud .tg > div { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.hud .tg b { font-weight: 600; }
.hud .bar { height: 5px; border-radius: 3px; background: var(--s3); overflow: hidden; }
.hud .bar-fill { display: block; height: 100%; background: linear-gradient(90deg, #ff7b6e, #ffd2cc); transition: width .9s var(--ease); }
.hud .armor { display: flex; align-items: center; gap: 10px; }
.hud .armor .px { width: 20px; height: 20px; }
.arraylist { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.arraylist span { padding: 3px 10px; border-radius: 6px 0 0 6px; background: rgba(13, 15, 14, .9); border-right: 2px solid var(--text); font-size: 13px; font-weight: 600; }
.watermark { display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px; border-radius: 10px; background: rgba(13, 15, 14, .94); border: 1px solid var(--line); font-size: 13px; color: var(--dim); white-space: nowrap; }
.watermark .wm { color: var(--text); font-weight: 700; }
.watermark b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.toast-hud { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px 0 12px; border-radius: 11px; background: rgba(13, 15, 14, .94); border: 1px solid var(--line); font-size: 13.5px; color: var(--dim); white-space: nowrap; }
.toast-hud b { color: var(--text); font-weight: 600; }
.toast-hud .dot { width: 8px; height: 8px; border-radius: 50%; background: #7bd88f; box-shadow: 0 0 0 4px rgba(123, 216, 143, .15); }
.pin small { color: var(--mute); }

/* ---------------- menu polish: sliders, pipette ---------------- */
.mx-range { height: 24px; }
.mx-range::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--mx-acc) var(--p), var(--mx-s3) var(--p)); box-shadow: inset 0 0 0 1px var(--mx-line); }
.mx-range::-moz-range-track { height: 8px; border-radius: 4px; background: var(--mx-s3); }
.mx-range::-moz-range-progress { height: 8px; border-radius: 4px; background: var(--mx-acc); }
.mx-range::-webkit-slider-thumb { width: 20px; height: 20px; margin-top: -6px; border-radius: 50%; background: var(--mx-bg); border: 0;
  box-shadow: inset 0 0 0 5px var(--mx-acc), 0 2px 8px rgba(0, 0, 0, .45); transition: transform var(--mx-tf), box-shadow var(--mx-tf); }
.mx-range::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--mx-bg); border: 4px solid var(--mx-acc); box-shadow: 0 2px 8px rgba(0, 0, 0, .45); }
.mx-range:hover::-webkit-slider-thumb { transform: scale(1.1); }
.mx-range:active::-webkit-slider-thumb { transform: scale(1.18); box-shadow: inset 0 0 0 6px var(--mx-acc), 0 0 0 6px color-mix(in srgb, var(--mx-acc) 18%, transparent); }
.mx-range:focus-visible { outline: none; }
.mx-range:focus-visible::-webkit-slider-thumb { box-shadow: inset 0 0 0 5px var(--mx-acc), 0 0 0 4px color-mix(in srgb, var(--mx-acc) 30%, transparent); }
.mx-sw.pip { border-radius: 9px; width: 30px; height: 30px; color: var(--mx-text); background: var(--mx-s3); box-shadow: inset 0 0 0 1px var(--mx-line2); }
.mx-sw.pip:hover { background: var(--mx-s2); }
.mx-sw.pip::before { border-radius: 9px; }
.mx-sw.pip.on { color: var(--mx-text); background: color-mix(in srgb, var(--c) 35%, var(--mx-s3)); }
.mx-sw.pip .mx-i { width: 15px; height: 15px; }
.mx-nav-it .mx-i { width: 17px; height: 17px; stroke-width: 1.7; }

/* ---------------- menu: smooth custom slider + editable value ---------------- */
.mx-track { --p: 50%; position: relative; height: 26px; margin-top: 2px; cursor: pointer; touch-action: none; outline: none; }
.mx-rail, .mx-fill { position: absolute; left: 0; top: 50%; height: 8px; margin-top: -4px; border-radius: 4px; }
.mx-rail { right: 0; background: var(--mx-s3); box-shadow: inset 0 0 0 1px var(--mx-line); }
.mx-fill { width: var(--p); background: var(--mx-acc); }
.mx-thumb { position: absolute; top: 50%; left: var(--p); width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: var(--mx-bg);
  box-shadow: inset 0 0 0 5px var(--mx-acc), 0 2px 8px rgba(0, 0, 0, .45); transition: transform var(--mx-tf) var(--mx-ease), box-shadow var(--mx-tf); }
.mx-track:hover .mx-thumb { transform: scale(1.08); }
.mx-track.drag .mx-thumb { transform: scale(1.18); box-shadow: inset 0 0 0 6px var(--mx-acc), 0 0 0 7px color-mix(in srgb, var(--mx-acc) 16%, transparent); }
.mx-track:focus-visible .mx-thumb { box-shadow: inset 0 0 0 5px var(--mx-acc), 0 0 0 4px color-mix(in srgb, var(--mx-acc) 30%, transparent); }
.mx-edit { cursor: text; transition: background-color var(--mx-tf), box-shadow var(--mx-tf); }
.mx-edit:hover { box-shadow: inset 0 0 0 1px var(--mx-line2); }
.mx-chip-input { width: 72px; height: 24px; padding: 0 8px; border: 0; border-radius: 7px; outline: none; text-align: right; font: 700 12px/1 "Manrope", sans-serif;
  color: var(--mx-text); background: var(--mx-s3); box-shadow: inset 0 0 0 1.5px var(--mx-acc); animation: mxSwap var(--mx-tf) var(--mx-ease); }

/* ---------------- tuning round 2 ---------------- */
.display em { font-style: normal; color: var(--mute); }
.hero-grid { min-height: 520px; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.scene { height: 500px; }
.scene .hud, .scene .hud.target { width: 196px; font-size: 12.5px; }
.scene .hr { height: 27px; }
.scene .plate, .scene .pin, .scene .watermark { height: 31px; font-size: 12.5px; }
.scene .toast-hud { height: 34px; font-size: 12.5px; }
.scene .arraylist span { font-size: 12px; padding: 2px 9px; }
.scene .hud .armor .px { width: 16px; height: 16px; }
/* slimmer slider */
.mx-track { height: 22px; }
.mx-rail, .mx-fill { height: 4px; margin-top: -2px; border-radius: 2px; }
.mx-thumb { width: 14px; height: 14px; margin: -7px 0 0 -7px; box-shadow: inset 0 0 0 3.5px var(--mx-acc), 0 1px 4px rgba(0, 0, 0, .4); }
.mx-track.drag .mx-thumb { transform: scale(1.2); box-shadow: inset 0 0 0 4px var(--mx-acc), 0 0 0 5px color-mix(in srgb, var(--mx-acc) 16%, transparent); }
.mx-track:focus-visible .mx-thumb { box-shadow: inset 0 0 0 3.5px var(--mx-acc), 0 0 0 3px color-mix(in srgb, var(--mx-acc) 30%, transparent); }
/* compact value editor: same size as the chip it replaces */
.mx-chip-input { width: 6ch; min-width: 0; height: auto; padding: 2px 8px; border-radius: 7px; font-size: 12px; line-height: 1.4; box-shadow: inset 0 0 0 1px var(--mx-line2); animation: none; }
.mx-chip-input:focus { box-shadow: inset 0 0 0 1px var(--mx-acc); }

/* Cloud presets and waypoint editor in the interactive menu. */
.mx-library { max-width: 100%; }
.mx-library-tabs, .mx-row-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.mx-library-tabs > button[aria-pressed="true"] { background: var(--mx-acc); color: var(--mx-bg); border-color: transparent; }
.mx-formline { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 8px; align-items: center; }
.mx-formline .mx-input, .mx-marker-form .mx-input { min-width: 0; width: 100%; color: var(--mx-text); }
.mx-formline button { justify-self: stretch; white-space: nowrap; }
.mx-library .mx-entry { align-items: start; }
.mx-library .mx-entry b { overflow-wrap: anywhere; }
.mx-library .mx-entry .mx-px { margin-top: 8px; }
.mx-library .mx-entry > div { align-self: center; }
.mx-library .mx-row-actions { justify-content: flex-end; }
.mx-marker-form { display: grid; gap: 10px; background: var(--mx-s1); border: 1px solid var(--mx-line2); border-radius: 12px; padding: 12px; }
.mx-marker-xyz[hidden], .mx-marker-slot:empty, .mx-status:empty { display: none; }
.mx-marker-pos small, .mx-marker-xyz small, .mx-status { color: var(--mx-dim); font-size: 12px; }
.mx-status { margin: 0; }
.mx-formline .mx-field-feedback { grid-column: 1 / -1; }
.mx-field-feedback { padding-inline: 2px; }
.mx .mx-input[aria-invalid="true"] { border-color: var(--mx-dim); }
.mx-marker-head, .mx-marker-pos, .mx-coords { display: flex; align-items: center; gap: 10px; }
.mx-marker-head { justify-content: space-between; padding: 8px 12px; border: 1px solid var(--mx-line); border-radius: 12px; background: var(--mx-s1); }
.mx-marker-pos b { display: block; font-variant-numeric: tabular-nums; }
.mx-marker-form.enter { animation: mxEnter var(--mx-t) var(--mx-ease); }
.mx-marker-form .mx-row-actions { justify-content: flex-end; }
.mx-marker-xyz { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mx-marker-xyz label { display: grid; gap: 4px; }
.mx .mx-small:disabled, .mx .mx-wide:disabled { opacity: .48; cursor: wait; }
.mx-marker-form :focus-visible, .mx-library :focus-visible, .mx-marker-head :focus-visible { outline: 2px solid var(--mx-acc); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .mx-marker-form.enter { animation: none; }
}
@media (max-width: 1000px) { .hero-grid { grid-template-columns: 1fr; } }

/* promo status sits to the right of the Apply button */
.promo-wrap { display: flex; align-items: center; gap: 10px; max-width: 100%; min-width: 0; }
.price-controls .promo { flex: 0 1 340px; min-width: 0; }
.price-controls .hint { position: static; margin: 0; min-height: 0; flex: 0 0 auto; max-width: 44%; white-space: normal; font-size: 13.5px; }
.price-controls .hint.ok { color: #69d99c; }
.price-controls .hint:empty { display: none; }
.price-controls .hint.ok, .price-controls .hint.bad { animation: hintIn .35s var(--ease); }
@keyframes hintIn { from { opacity: 0; transform: translateX(-6px); } }

/* Keep main controls readable and within reach on phones. */
@media (max-width: 760px) {
  html { scroll-padding-top: calc(68px + env(safe-area-inset-top)); }
  .top { padding-top: env(safe-area-inset-top); }
  .wrap { width: min(var(--wrap), calc(100% - max(16px, env(safe-area-inset-left)) - max(16px, env(safe-area-inset-right)))); }
  .top .wrap { height: 56px; gap: 10px; }
  .top .brand { gap: 5px; }
  .top-actions { gap: 5px; }
  .top-actions .btn { min-height: 44px; padding-inline: 10px; font-size: 13px; }
  .top-actions .btn.burger { width: 44px; padding: 0; }
  .top-actions .lang a { display: grid; place-items: center; min-height: 42px; padding: 0 7px; }
  .menu { top: 100%; }
  .stage { padding-top: 0; }
  .hero-grid { min-height: 0; padding-block: 30px 8px; }
  .display { font-size: clamp(32px, 8.8vw, 48px); }
  .hero-actions { margin-top: 22px; }
  .hero-actions .btn { min-height: 44px; max-width: 100%; white-space: normal; text-align: center; }
  .sec-head { gap: 12px; margin-bottom: 18px; }
  .section { padding-top: 58px; }
  .account { padding-top: 24px; }
  .account-head > div, .row > div { min-width: 0; overflow-wrap: anywhere; }
  .row { gap: 10px; flex-wrap: wrap; }
  .row .btn, .tabs button { min-height: 44px; }
  .narrow, .doc { margin-top: 30px; }
  .doc { overflow-wrap: anywhere; }
  .doc h1 { font-size: clamp(24px, 7.2vw, 34px); }
  .motion #pricing :is(.pcard, .sec-head, .price-controls).rv { opacity: 1; transform: none; }
  .card { padding: 18px; }
  .code-card { flex-wrap: wrap; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .foot-grid > div { min-width: 0; }
  .foot a, .foot button { overflow-wrap: anywhere; }
  .foot-bottom { gap: 10px; }
  .consent { inset-inline: 16px; bottom: max(12px, env(safe-area-inset-bottom)); width: auto; max-height: calc(100dvh - 76px); overflow-y: auto; padding: 14px; }
  .consent .btn { min-height: 44px; }
  .toast { width: max-content; max-width: calc(100% - 32px); overflow-wrap: anywhere; }
  .price-controls { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; width: 100%; height: auto; }
  .seg-thumb { display: none; }
  .seg button { height: 44px; padding-inline: 2px; }
  .promo-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .price-controls .promo { width: 100%; height: 52px; }
  .price-controls .promo .input, .price-controls .promo .btn { height: 42px; }
  .price-controls .hint { max-width: 100%; }
  .price-cards { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .pcard { padding: 17px; gap: 12px; }
  .feat { gap: 6px 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); font-size: 13px; }
  .co-m { min-height: 58px; }
  .payment-networks { gap: 6px 9px; }
  .menu-host { height: clamp(460px, 72svh, 600px); overflow: hidden; }
  .mx-mobile { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); width: 100%; height: 100%; }
  .mx-mobile .mx-side { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 6px; border-right: 0; border-bottom: 1px solid var(--mx-line); }
  .mx-mobile .mx-side > :is(.mx-brand, .mx-cap, .mx-profile, .mx-grow) { display: none; }
  .mx-mobile .mx-side > nav:first-of-type { grid-column: 1 / -1; }
  .mx-mobile .mx-side .mx-nav { flex-direction: row; overflow-x: auto; overscroll-behavior-x: contain; }
  .mx-mobile .mx-nav-it { flex: none; height: 44px; gap: 6px; padding-inline: 8px; white-space: nowrap; }
  .mx-mobile .mx-nav-it::before { display: none; }
  .mx-mobile .mx-search-box, .mx-mobile .mx-bar { width: 100%; }
  .mx-mobile .mx-bar { padding: 9px 12px; }
  .mx-mobile .mx-content { grid-template-columns: minmax(0, 1fr); padding: 10px 10px 16px; }
  .mx-mobile .mx-formline { grid-template-columns: minmax(0, 1fr); }
  .mx-mobile .mx-library .mx-entry { flex-wrap: wrap; }
  .mx-mobile .mx-library .mx-row-actions { justify-content: flex-start; }
}
@media (max-width: 360px) {
  .top .wrap { gap: 6px; }
  .top-actions .btn { padding-inline: 7px; }
  .top-actions .lang a { padding-inline: 5px; }
  .pcard { padding: 14px; }
  .amount .val { font-size: 39px; }
}
@media (max-width: 760px), (pointer: coarse) {
  input.input, textarea.input, select.input, .mx-mobile input:is(.mx-search, .mx-input, .mx-chip-input) { font-size: 16px; }
  button, a { touch-action: manipulation; }
}

/* Visual examples stay in the same frame while the selected image fades in. */
.visual-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
  grid-template-areas: "intro stage" "controls stage";
  align-content: center;
  align-items: center;
}
.visual-showcase .tile-text { grid-area: intro; align-self: end; padding-bottom: 12px; }
.visual-stage { grid-area: stage; position: relative; aspect-ratio: 12 / 7; min-width: 0; overflow: hidden; }
.visual-frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .32s var(--ease); pointer-events: none; }
.visual-frame[aria-hidden="false"] { opacity: 1; }
.visual-controls { grid-area: controls; align-self: start; display: grid; justify-items: start; gap: 8px; padding: 0 20px 20px; }
.visual-controls .chip { min-height: 36px; cursor: pointer; }
.visual-controls .chip[aria-pressed="true"] { border-color: var(--line-2); background: var(--s3); color: var(--text); }
.visual-autoplay { min-height: 36px; padding: 0 8px; border: 0; background: transparent; color: var(--dim); font-size: 13px; cursor: pointer; }
.visual-autoplay::before { content: "▶"; display: inline-block; width: 16px; margin-right: 5px; color: var(--text); }
.visual-autoplay[aria-pressed="true"]::before { content: "❚❚"; font-size: 10px; }
@media (max-width: 760px) {
  .visual-showcase { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "stage" "controls"; }
  .visual-controls { padding: 12px 14px 14px; }
  .visual-controls .chip, .visual-autoplay { min-height: 44px; }
  .visual-controls .chip { padding-inline: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .visual-frame { transition: none; }
}

/* Plan cards: price, features, one Buy button and the ways to pay as a quiet row of icons. */
.pcard-buy { width: 100%; height: 48px; border-radius: 12px; justify-content: center; gap: 8px; margin-top: auto; font-weight: 600; }
.btn-arrow { display: inline-flex; width: 16px; height: 16px; }
.btn-arrow svg { width: 100%; height: 100%; }
.pcard-ways { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--mute); font-size: 12px; line-height: 1.3; }
.pcard-ways .micon { width: 15px; height: 15px; opacity: .85; }
.pcard-ways span:last-child { margin-left: 4px; }
.pcard.best { background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, 0) 55%), var(--s1); }
.pcard.best::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; padding: 1px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .06) 45%, rgba(255, 255, 255, .22));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.promo.shake, .co-pay.shake { animation: coShake .36s cubic-bezier(.36, .07, .19, .97); }
@keyframes coShake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }

/* Checkout sheet: a centred dialog on wide screens, a bottom sheet on phones. */
html.co-lock { overflow: hidden; }
.co { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; }
.co-backdrop { position: absolute; inset: 0; background: rgba(4, 5, 5, .62); -webkit-backdrop-filter: blur(10px) saturate(120%); backdrop-filter: blur(10px) saturate(120%);
  opacity: 0; transition: opacity .3s var(--ease); }
.co.open .co-backdrop { opacity: 1; }
.co-panel { position: relative; width: min(520px, 100%); max-height: min(860px, calc(100svh - 48px)); display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line-2); border-radius: 20px; background: linear-gradient(180deg, #141816, #0f1211 40%);
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .02) inset;
  opacity: 0; transform: translateY(18px) scale(.975); transition: opacity .28s var(--ease), transform .42s cubic-bezier(.16, 1, .3, 1); }
.co.open .co-panel { opacity: 1; transform: none; }
.co-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 14px; }
.co-eyebrow { display: block; color: var(--mute); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.co-title { margin: 4px 0 2px; font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.co-sub { margin: 0; color: var(--dim); font-size: 13.5px; }
.co-x { display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--dim);
  cursor: pointer; transition: color .2s var(--ease), background-color .2s var(--ease), transform .3s var(--ease); }
.co-x:hover { color: var(--text); background: var(--s2); transform: rotate(90deg); }
.co-x-icon { display: inline-flex; width: 16px; height: 16px; }
.co-x-icon svg { width: 100%; height: 100%; }
.co-body { display: flex; flex-direction: column; gap: 14px; padding: 4px 24px 22px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.co-body > * { flex-shrink: 0; }
.co-label { color: var(--mute); font-size: 12.5px; margin-bottom: -6px; }
.co-methods { display: grid; gap: 6px; }
.co-m { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto 18px; align-items: center; gap: 12px; min-height: 60px; padding: 10px 14px 10px 12px;
  border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .015); color: var(--text); text-align: left; cursor: pointer;
  transition: border-color .22s var(--ease), background-color .22s var(--ease), opacity .22s var(--ease), transform .22s var(--ease); }
.co-m:hover:not([aria-disabled="true"]) { border-color: var(--line-2); background: rgba(255, 255, 255, .035); }
.co-m[aria-checked="true"] { border-color: rgba(255, 255, 255, .62); background: rgba(255, 255, 255, .055); }
.co-m[aria-disabled="true"] { cursor: default; opacity: .48; }
.co-m-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--s3); color: var(--text); }
.co-m-ico svg { width: 19px; height: 19px; }
.co-m-text { display: grid; min-width: 0; line-height: 1.3; }
.co-m-text b { font-weight: 600; font-size: 14.5px; }
.co-m-text small { color: var(--dim); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-m-side { display: inline-flex; align-items: center; gap: 4px; color: var(--dim); font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.co-m[aria-checked="true"] .co-m-side { color: var(--text); }
.co-side-star { width: 14px; height: 14px; }
.co-soon { padding: 2px 8px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 11.5px; color: var(--mute); }
.co-m-dot { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); transition: border-color .22s var(--ease), box-shadow .22s var(--ease); }
.co-m[aria-checked="true"] .co-m-dot { border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--bg), inset 0 0 0 9px var(--accent); }
.co-m[aria-disabled="true"] .co-m-dot { border-style: dashed; }
.co-detail { overflow: hidden; }
.co-detail.empty { display: none; }
.co-detail-inner { padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(0, 0, 0, .25); }
.co-detail-inner.in > * { animation: coIn .38s var(--ease) both; }
.co-detail-inner.in > :nth-child(2) { animation-delay: 50ms; }
.co-detail-inner.in > :nth-child(3) { animation-delay: 100ms; }
@keyframes coIn { from { opacity: 0; transform: translateY(6px); } }
.co-detail .pay-steps { margin: 0; font-size: 13px; }
.co-detail .crypto-howto { margin-top: 8px; }
.co-detail-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.co-detail-head .link-btn { font-size: 12.5px; }
.co-note { margin: 8px 0 0; color: var(--dim); font-size: 12.5px; line-height: 1.5; }
.co-detail-inner > .co-note:first-child { margin-top: 0; }
.co-promo .promo { display: flex; height: 46px; padding: 4px; gap: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); transition: border-color .2s var(--ease); }
.co-promo .promo:focus-within { border-color: var(--line-2); }
.co-promo .input { height: 36px; border: 0; background: transparent; padding: 0 10px; min-width: 0; flex: 1; text-transform: uppercase; }
.co-promo .input::placeholder { text-transform: none; }
.co-promo .btn { height: 36px; padding: 0 14px; border-radius: 8px; }
.co-promo .hint { margin-top: 4px; min-height: 0; }
.co-promo .hint:empty { display: none; }
.co-sum { display: grid; gap: 4px; margin: 0; padding-top: 12px; border-top: 1px solid var(--line); }
.co-sum-row { display: flex; justify-content: space-between; gap: 12px; color: var(--dim); font-size: 13.5px; }
.co-sum-row dt, .co-sum-row dd { margin: 0; }
.co-sum-row dd { font-variant-numeric: tabular-nums; }
.co-sum-row:nth-child(2) dd { color: var(--text); }
.co-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: -6px; }
.co-total > span:first-child { color: var(--dim); font-size: 14px; }
.co-total-val { display: inline-flex; align-items: center; gap: 6px; }
.co-total-val strong { font-size: 34px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.co-total-val strong.swap { animation: valIn .5s var(--ease); }
.co-total-star { width: 24px; height: 24px; }
.co .form-error { margin: -4px 0 0; }
.co .form-error:empty { display: none; }
.co-pay { position: relative; width: 100%; height: 52px; border-radius: 14px; justify-content: center; gap: 8px; font-size: 15.5px; font-weight: 600; overflow: hidden; }
.co-pay::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%); transform: translateX(-120%); pointer-events: none; }
.co-pay[aria-busy="true"] > span:first-child { opacity: .55; }
.co-fine { margin: -4px 0 0; color: var(--mute); font-size: 12px; line-height: 1.5; }
.co-lock-icon { display: inline-block; width: 13px; height: 13px; margin-right: 5px; vertical-align: -2px; }
.co-lock-icon svg { width: 100%; height: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .co.open .co-m { animation: coRow .46s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(80ms + var(--i, 0) * 45ms); }
  .co.open .co-pay::after { animation: coSheen 1.1s .55s var(--ease) both; }
  .co-pay:hover::after { animation: coSheen .9s var(--ease); }
  .co-m:active:not([aria-disabled="true"]) { transform: scale(.99); }
  .pcard-buy .btn-arrow { transition: transform .25s var(--ease); }
  .pcard-buy:hover .btn-arrow, .co-pay:hover .btn-arrow { transform: translateX(3px); }
}
@keyframes coRow { from { opacity: 0; transform: translateY(10px); } }
@keyframes coSheen { from { transform: translateX(-120%); } to { transform: translateX(120%); } }
@media (prefers-reduced-motion: reduce) {
  .co-backdrop, .co-panel { transition: none; }
}
@media (max-width: 640px) {
  .co { place-items: end stretch; padding: 0; }
  .co-panel { width: 100%; max-height: 92svh; border-radius: 22px 22px 0 0; border-bottom: 0; transform: translateY(40px); }
  .co-panel::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--line-2); }
  .co-head { padding: 24px 18px 12px; }
  .co-body { padding: 4px 18px calc(18px + env(safe-area-inset-bottom)); }
  .co-title { font-size: 22px; }
  .co-m { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; padding-right: 12px; }
  .co-m-dot { display: none; }
  .co-total-val strong { font-size: 28px; }
}

/* Launcher page: paused download, live status of the services the launcher talks to. */
.dl-grid { align-items: start; }
.dl-main h1 { margin-top: 14px; }
.dl-side { display: grid; gap: 14px; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 10px; border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(255, 255, 255, .03); color: var(--dim); font-size: 12.5px; font-weight: 500; }
.live-pill i, .sdot { position: relative; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--mute); transition: background-color .4s var(--ease); }
.live-pill[data-state="ok"] i, [data-state="ok"] > .sdot { background: #f2f4f3; }
.live-pill[data-state="down"] i, [data-state="down"] > .sdot { background: var(--danger); }
.btn-paused { cursor: not-allowed; gap: 10px; color: var(--dim); border-style: dashed; border-color: var(--line-2); background: rgba(255, 255, 255, .02); }
.btn-paused:hover { background: rgba(255, 255, 255, .02); border-color: var(--line-2); }
.btn-paused small { padding: 2px 8px; border-radius: 999px; background: var(--s3); color: var(--mute); font-size: 11.5px; font-weight: 500; }
.dl-paused { display: grid; gap: 10px; justify-items: start; margin-top: 26px; }
.dl-paused p { max-width: 46ch; margin: 0; color: var(--dim); font-size: 14px; line-height: 1.6; }
.dl-main .hero-actions { margin-top: 18px; }
.status-card { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, 0) 60%), var(--s1); }
.status-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.status-sum { color: var(--dim); font-size: 13px; transition: color .3s var(--ease); }
.status-card[data-state="ok"] .status-sum { color: var(--text); }
.status-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; }
.status-list li { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.status-list em { font-style: normal; color: var(--mute); font-size: 12.5px; }
.status-list li[data-state="ok"] em { color: var(--dim); }
.status-card small { font-size: 12px; }
@media (prefers-reduced-motion: no-preference) {
  .live-pill[data-state="ok"] i::after, [data-state="ok"] > .sdot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid rgba(242, 244, 243, .5);
    animation: livePulse 2.4s var(--ease) infinite; }
  .status-list li:nth-child(2) .sdot::after { animation-delay: .3s; }
  .status-list li:nth-child(3) .sdot::after { animation-delay: .6s; }
  .status-list li:nth-child(4) .sdot::after { animation-delay: .9s; }
  .status-list li:nth-child(5) .sdot::after { animation-delay: 1.2s; }
  .status-list em { transition: color .3s var(--ease); }
}
@keyframes livePulse { 0% { opacity: .9; transform: scale(.6); } 70%, 100% { opacity: 0; transform: scale(1.6); } }
.account-head .btn-paused { height: 40px; font-size: 13.5px; }
.account-head .btn-paused svg { width: 15px; height: 15px; }

/* Checkout sheet scrolls without a visible scrollbar. */
.co-body { scrollbar-width: none; }
.co-body::-webkit-scrollbar { display: none; }
.co-m-ico svg[viewBox="0 0 97.3 120"] { width: 16px; height: 20px; }

/* Signed-in header: e-mail with its first letter instead of a plain "Account". */
.member-chip { gap: 8px; max-width: 260px; padding-left: 6px; }
.member-avatar { display: inline-grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%;
  background: linear-gradient(145deg, #f2f4f3, #9aa49f); color: #0a0b0b; font-size: 12.5px; font-weight: 700; }
.member-email { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
@media (max-width: 760px) { .member-chip { max-width: 160px; } }
@media (max-width: 420px) { .member-chip .member-email { display: none; } .member-chip { padding: 0 6px; } }

/* E-mail confirmation: six digit boxes. */
.vcode { display: grid; gap: 14px; justify-items: center; text-align: center; }
.vcode-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--s2); color: var(--text);
  transition: background-color .4s var(--ease), color .4s var(--ease), transform .4s cubic-bezier(.16, 1, .3, 1); }
.vcode-icon svg { width: 26px; height: 26px; }
.vcode.done .vcode-icon { background: var(--accent); color: var(--accent-ink); transform: scale(1.06); }
.vcode-title { margin: 2px 0 0; font-size: 26px; }
.vcode.compact .vcode-title { font-size: 20px; }
.vcode-lead { margin: -6px 0 4px; max-width: 40ch; color: var(--dim); font-size: 14.5px; }
.vcode-lead b { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.vcode-boxes { display: grid; grid-template-columns: repeat(6, minmax(0, 52px)); gap: 8px; justify-content: center; width: 100%; }
.vcode-box { width: 100%; height: 60px; padding: 0; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg); color: var(--text);
  font-size: 26px; font-weight: 600; text-align: center; caret-color: transparent; font-variant-numeric: tabular-nums;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), transform .2s var(--ease); }
.vcode-box:focus { outline: none; border-color: rgba(255, 255, 255, .7); background: var(--s2); }
.vcode-box.on { border-color: rgba(255, 255, 255, .4); }
.vcode .form-error { margin: 0; min-height: 0; }
.vcode .form-error:empty { display: none; }
.vcode .btn { max-width: 360px; }
.vcode-resend { font-size: 13.5px; text-decoration: none; }
.vcode-resend:disabled { color: var(--mute); cursor: default; }
.vcode-resend:not(:disabled) { text-decoration: underline; }
.vcode.bad .vcode-boxes { animation: coShake .36s cubic-bezier(.36, .07, .19, .97); }
.vcode.bad .vcode-box { border-color: rgba(242, 119, 122, .6); }
.vcode.done .vcode-boxes, .vcode.done .btn, .vcode.done .vcode-resend { opacity: .35; pointer-events: none; transition: opacity .3s var(--ease); }
.verify-slot { margin: 0 0 22px; padding: 26px 22px; border: 1px solid var(--line-2); border-radius: var(--r); background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, 0) 70%), var(--s1);
  transition: opacity .4s var(--ease), transform .4s var(--ease); }
.verify-slot.closing { opacity: 0; transform: translateY(-8px); }
@media (prefers-reduced-motion: no-preference) {
  .vcode > * { animation: coIn .45s var(--ease) both; }
  .vcode > :nth-child(2) { animation-delay: 40ms; } .vcode > :nth-child(3) { animation-delay: 80ms; } .vcode > :nth-child(4) { animation-delay: 120ms; }
  .vcode-box.on { animation: boxPop .22s var(--ease); }
}
@keyframes boxPop { 50% { transform: scale(1.06); } }
@media (max-width: 420px) { .vcode-boxes { gap: 6px; } .vcode-box { height: 52px; font-size: 22px; } }

/* Passkeys: sign-in button on the login page and the list in the account. */
.passkey-alt { display: grid; gap: 12px; margin: 16px 0 18px; }
.or-line { display: flex; align-items: center; gap: 12px; color: var(--mute); font-size: 12.5px; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.passkey-alt .btn svg, .passkeys .btn svg { width: 17px; height: 17px; }
.passkey-alt .form-error:empty { display: none; }
.passkeys .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.passkeys h3 { margin: 0; }
.passkey-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.passkey-list .empty { color: var(--mute); font-size: 13.5px; }
.passkey-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px;
  transition: opacity .26s var(--ease), transform .26s var(--ease); }
.passkey-item div { display: grid; min-width: 0; }
.passkey-item small { color: var(--mute); font-size: 12.5px; }
.passkey-item.leaving { opacity: 0; transform: translateX(10px); }
