/* Limintel dark theme.

   DarkLayout (every public page, and the default layout) and AdminLayout wrap the page
   in .theme-dark, and the tokens below are defined on that class. The palette comes from the apps themselves
   (BrutalCopy.App/Themes/Colors.axaml): blue is Brutal Copy, green is Brutal Zip. */

@font-face {
    font-family: 'Archivo';
    font-style: normal;
    font-weight: 600 800;
    font-display: swap;
    src: url('/fonts/archivo-latin.woff2') format('woff2');
    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;
}

html:has(.theme-dark) {
    background: #141618;
    color-scheme: dark;
    /* Without this, iOS Safari enlarges some text when the phone is turned on its side. */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.theme-dark {
    /* Legacy tokens, re-pointed so shared components (nav, footer, .btn) follow. */
    --bg-primary: #141618;
    --bg-secondary: #101214;
    --bg-tertiary: #1C1F23;
    --bg-elevated: #1C1F23;
    --bg-dark: #101214;
    --bg-dark-secondary: #1C1F23;
    --accent-primary: #2F79BA;
    --accent-hover: #3B89CE;
    --accent-light: rgba(47, 121, 186, 0.2);
    --accent-subtle: rgba(47, 121, 186, 0.12);
    --accent-secondary: #2DBE60;
    --accent-secondary-light: rgba(45, 190, 96, 0.16);
    --text-primary: #E6E8EB;
    --text-secondary: #C9D1DA;
    --text-muted: #9AA4B2;
    --border-color: #2E3338;
    --border-hover: #47505A;
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);

    /* New tokens. */
    --lx-ground: #141618;
    --lx-ground-alt: #101214;
    --lx-panel: #1C1F23;
    --lx-inset: #15181B;
    --lx-line: #262B31;
    --lx-border: #2E3338;
    --lx-border-strong: #47505A;
    --lx-text: #E6E8EB;
    --lx-text-2: #C9D1DA;
    --lx-text-3: #9AA4B2;
    --lx-copy: #2F79BA;
    --lx-copy-bright: #4C9BDD;
    --lx-copy-text: #6CB6EE;
    --lx-zip: #2DBE60;
    --lx-zip-text: #5BD98A;
    --lx-on-zip: #08170D;
    --lx-bar-rest: #66727F;
    --lx-display: 'Archivo', 'Segoe UI Variable Display', 'Segoe UI', system-ui, sans-serif;
    --lx-mono: 'Cascadia Code', 'Cascadia Mono', Consolas, ui-monospace, monospace;

    min-height: 100vh;
    background: var(--lx-ground);
    color: var(--lx-text);
}

/* :where keeps this at element specificity, so .btn and friends still win. */
:where(.theme-dark) a { color: var(--lx-copy-text); }
:where(.theme-dark) a:hover { color: #A5D3F6; }

.theme-dark :focus-visible {
    outline: 2px solid var(--lx-copy-text);
    outline-offset: 2px;
}

/* ── Shared chrome ───────────────────────────────────────────────────────── */

.theme-dark .site-nav {
    background: rgba(20, 22, 24, 0.94);
    border-bottom-color: var(--lx-line);
}

.theme-dark .nav-brand {
    color: #FFFFFF;
    font-family: var(--lx-display);
    font-weight: 800;
}

.theme-dark .nav-brand:hover { color: var(--lx-copy-text); }
/* ".nav-links a" outranks ".btn-primary", which gave the Download button the grey link
   colour (3:1 on its blue) and, on hover, the plain links' dark background. */
.theme-dark .nav-cta .btn-primary { color: #FFFFFF; }
.theme-dark .nav-cta .btn-primary:hover { color: #FFFFFF; background: var(--accent-hover); }
.theme-dark .site-footer { border-top: 1px solid var(--lx-line); }

/* ── Layout primitives ───────────────────────────────────────────────────── */

.lx-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.lx-section {
    padding: 72px 0 80px;
    border-top: 1px solid var(--lx-line);
}

.lx-section--alt { background: var(--lx-ground-alt); }

.lx-eyebrow {
    font-family: var(--lx-mono);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--lx-text-3);
}

.lx-h1,
.lx-h2,
.lx-h3 {
    margin: 0;
    font-family: var(--lx-display);
    font-weight: 800;
    color: #FFFFFF;
}

.lx-h1 {
    font-size: clamp(40px, 5.2vw, 70px);
    line-height: 1.02;
    letter-spacing: -0.03em;
}

.lx-h2 {
    font-size: clamp(28px, 3.2vw, 36px);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.lx-h3 {
    font-size: 28px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.lx-lead {
    margin: 0;
    font-size: 19px;
    line-height: 1.55;
    color: var(--lx-text-2);
}

.lx-body {
    margin: 0;
    font-size: 17px;
    color: var(--lx-text-2);
}

.lx-note {
    margin: 0;
    font-size: 14px;
    color: var(--lx-text-3);
}

.lx-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 32px;
    margin-bottom: 36px;
}

.lx-section-head > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lx-section-head .lx-body {
    max-width: 620px;
    color: #AEB7C2;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.lx-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.lx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.lx-btn--lg {
    min-height: 50px;
    padding: 0 22px;
    font-size: 16px;
}

.lx-btn--copy { background: var(--lx-copy); color: #FFFFFF; }
.lx-btn--copy:hover { background: #3B89CE; color: #FFFFFF; }

.lx-btn--zip { background: var(--lx-zip); color: var(--lx-on-zip); }
.lx-btn--zip:hover { background: #46D077; color: var(--lx-on-zip); }

.lx-btn--ghost {
    background: transparent;
    border-color: var(--lx-border-strong);
    color: var(--lx-text);
}

.lx-btn--ghost:hover {
    border-color: #6B7684;
    background: rgba(255, 255, 255, 0.04);
    color: #FFFFFF;
}

.lx-link {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 0 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.lx-link--zip,
.lx-link--zip:hover { color: var(--lx-zip-text); }
.lx-link:hover { text-decoration: underline; }

/* ── Hero ────────────────────────────────────────────────────────────────── */

.lx-hero { padding: 72px 0 80px; }

.lx-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: center;
    gap: 48px 56px;
}

.lx-hero-copy {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.lx-hero-copy .lx-lead { max-width: 520px; }
.lx-hero-copy .lx-actions { margin-top: 6px; }

/* ── Benchmark race ──────────────────────────────────────────────────────── */

.lx-race {
    background: var(--lx-panel);
    border: 1px solid var(--lx-border);
    border-radius: 10px;
    overflow: hidden;
}

.lx-race-tabs {
    display: flex;
    background: #232931;
    border-bottom: 1px solid var(--lx-border);
}

.lx-race-tab {
    min-height: 46px;
    padding: 0 20px;
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    color: #AEB7C2;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.lx-race-tab:hover { color: #FFFFFF; }

.lx-race-tab[aria-selected="true"] {
    background: var(--lx-panel);
    color: #FFFFFF;
    border-bottom-color: var(--lx-copy-bright);
}

.lx-race-tab[data-race-tab="zip"][aria-selected="true"] { border-bottom-color: var(--lx-zip); }

.lx-race-panel {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 26px 28px 24px;
}

.lx-race-panel[hidden] { display: none; }

.lx-race-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 24px;
}

.lx-race-task {
    font-family: var(--lx-mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--lx-text-3);
}

.lx-race-big {
    margin-top: 6px;
    font-family: var(--lx-display);
    font-weight: 800;
    font-size: clamp(40px, 4.4vw, 56px);
    line-height: 1;
    letter-spacing: -0.03em;
    color: #FFFFFF;
}

.lx-race-lead {
    font-size: 14px;
    font-weight: 600;
    color: var(--lx-copy-text);
}

.lx-race-panel[data-race-panel="zip"] .lx-race-lead { color: var(--lx-zip-text); }

.lx-race-rows {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lx-race-row {
    display: grid;
    grid-template-columns: 124px minmax(0, 1fr) 46px;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--lx-text-2);
}

.lx-race-row.is-win { color: #FFFFFF; font-weight: 700; }

.lx-race-time {
    font-family: var(--lx-mono);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.lx-race-track {
    display: block;
    height: 16px;
}

/* Bars are sized by time (shorter is faster) and all grow at the same speed,
   so the winner visibly stops first. --w is the final width, --d the duration. */
.lx-race-bar {
    display: block;
    width: var(--w);
    min-width: 6px;
    height: 16px;
    border-radius: 3px;
    background: var(--lx-bar-rest);
    animation: lx-race-grow var(--d) linear both;
}

.lx-race-row.is-win .lx-race-bar { background: var(--lx-copy-bright); }
.lx-race-panel[data-race-panel="zip"] .lx-race-row.is-win .lx-race-bar { background: var(--lx-zip); }

@keyframes lx-race-grow {
    from { width: 0; }
}

.lx-race-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 20px;
    padding-top: 16px;
    border-top: 1px solid var(--lx-border);
    font-size: 13px;
    color: var(--lx-text-3);
}

.lx-race-foot a {
    font-weight: 600;
    text-decoration: none;
}

.lx-race-foot a:hover { text-decoration: underline; }
.lx-race-panel[data-race-panel="zip"] .lx-race-foot a { color: var(--lx-zip-text); }

/* ── Replay rows (drawn app windows) ─────────────────────────────────────── */

.lx-replays {
    display: flex;
    flex-direction: column;
    gap: 96px;
}

.lx-replay {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 48px 64px;
}

.lx-replay--flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.lx-replay--flip .lx-replay-text { order: 2; }

.lx-replay-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lx-tilt { perspective: 1600px; }
.lx-tilt > .lx-win { transform: rotateY(-9deg) rotateX(3deg); }
.lx-tilt--left > .lx-win { transform: rotateY(9deg) rotateX(3deg); }

.lx-win {
    max-width: 640px;
    margin: 0 auto;
    border-radius: 9px;
    overflow: hidden;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.75), 0 12px 24px -12px rgba(0, 0, 0, 0.6);
    font-family: 'Segoe UI', system-ui, sans-serif;
    line-height: 1.4;
    cursor: default;
    user-select: none;
}

.lx-win-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.lx-win-name {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lx-win-tools {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
}

.lx-win-tool {
    display: flex;
    align-items: center;
    gap: 7px;
}

.lx-win-caps { display: flex; }

.lx-win-cap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 38px;
}

.lx-pill {
    display: inline-block;
    min-width: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: #1B222C;
    text-align: center;
    font-size: 12px;
}

.lx-slider {
    position: relative;
    display: block;
    height: 18px;
}

.lx-slider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 8px;
    height: 2px;
    background: #4A5463;
}

.lx-slider-fill {
    position: absolute;
    left: 0;
    top: 8px;
    height: 2px;
}

.lx-slider-thumb {
    position: absolute;
    top: 1px;
    width: 16px;
    height: 16px;
    margin-left: -8px;
    border-radius: 50%;
}

/* The graph is a canvas port of SpeedGraph.cs, drawn by js/showcase.js. */
.lx-graph { position: relative; }

.lx-graph canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.lx-graph-tip {
    position: absolute;
    z-index: 5;
    padding: 6px 8px;
    background: #1F1F1F;
    border: 1px solid #4A4A4A;
    border-radius: 4px;
    font-size: 11px;
    line-height: 1.35;
    color: #E0E0E0;
    white-space: nowrap;
    pointer-events: none;
}

.lx-graph-tip[hidden] { display: none; }
.lx-graph-tip b { display: block; color: #FFFFFF; }

/* Brutal Copy 2: CopyWindow */
.lx-win--copy {
    background: #141A23;
    border: 1px solid #3A4352;
    font-size: 13px;
    color: #E6E8EB;
}

.lx-win--copy .lx-win-bar {
    height: 38px;
    padding-left: 12px;
    background: #2B3441;
}

.lx-win--copy .lx-win-name { color: #FFFFFF; }

.lx-cw-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 20px 14px;
}

.lx-cw-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.lx-cw-titles { min-width: 0; }

.lx-cw-title {
    font-size: 17px;
    font-weight: 600;
    color: #FFFFFF;
}

.lx-cw-path {
    margin-top: 2px;
    font-size: 12px;
    color: #9AA4B2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lx-cw-pct {
    flex: none;
    text-align: right;
}

.lx-cw-pctnum {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
    color: #FFFFFF;
    font-variant-numeric: tabular-nums;
}

.lx-cw-pctlabel {
    font-size: 10px;
    letter-spacing: 0.08em;
    color: #9AA4B2;
}

.lx-cw-threads {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    color: #C9D1DA;
}

.lx-cw-threads .lx-slider {
    width: 220px;
    max-width: 45%;
}

.lx-cw-threads b {
    width: 20px;
    text-align: right;
    font-weight: 400;
    color: #FFFFFF;
}

.lx-win--copy .lx-slider-fill,
.lx-win--copy .lx-slider-thumb { background: #4C9BDD; }

.lx-win--copy .lx-graph {
    height: 124px;
    background: #18202C;
}

.lx-cw-tail {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding-left: 16px;
    font-family: var(--lx-mono);
    font-size: 12px;
}

.lx-cw-tail div {
    min-height: 17px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lx-cw-tail div:nth-child(1) { color: #566170; }
.lx-cw-tail div:nth-child(2) { color: #6A7686; }
.lx-cw-tail div:nth-child(3) { color: #8591A0; }
.lx-cw-tail div:nth-child(4) { color: #A8B3C0; }

.lx-cw-tail .is-current {
    position: relative;
    color: #FFFFFF;
}

.lx-cw-tail .is-current::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 4px;
    border-style: solid;
    border-width: 5px 0 5px 8px;
    border-color: transparent transparent transparent #4C9BDD;
}

.lx-cw-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding-top: 12px;
    border-top: 1px solid #2A3340;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.lx-cw-stats > div + div { border-left: 1px solid #2A3340; }

.lx-cw-stats span {
    display: block;
    font-size: 10px;
    letter-spacing: 0.06em;
    color: #9AA4B2;
}

.lx-cw-stats b {
    display: block;
    font-size: 14px;
    color: #FFFFFF;
}

.lx-cw-foot {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 20px;
    background: #10151C;
    border-top: 1px solid #2A3340;
    font-size: 11.5px;
    color: #9AA4B2;
    font-variant-numeric: tabular-nums;
}

/* Brutal Zip: ProgressWindow */
.lx-win--zip {
    background: #1B1B1B;
    border: 1px solid #3A3A3A;
    font-size: 12px;
    color: #E0E0E0;
}

.lx-win--zip .lx-win-bar {
    height: 40px;
    padding-left: 14px;
    background: #232B27;
    font-size: 13px;
}

.lx-win--zip .lx-win-name { color: #E8EAED; }

.lx-win--zip .lx-win-cap {
    width: 46px;
    height: 40px;
    margin-left: auto;
    flex: none;
}

.lx-zw-body {
    display: flex;
    flex-direction: column;
    padding: 14px 18px;
}

.lx-zw-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.lx-zw-pct {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.15;
    color: #27C75F;
    font-variant-numeric: tabular-nums;
}

.lx-zw-time { text-align: right; }

.lx-zw-eta {
    min-height: 18px;
    font-size: 13px;
}

.lx-zw-elapsed {
    font-size: 11px;
    color: #8C8C8C;
}

.lx-win--zip .lx-graph {
    height: 150px;
    background: #1F1F1F;
    border: 1px solid #3A3A3A;
    border-radius: 6px;
}

.lx-win--zip .lx-graph canvas { border-radius: 5px; }

.lx-zw-file {
    min-height: 17px;
    margin-top: 8px;
    color: #8C8C8C;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lx-zw-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.lx-zw-caption {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    color: #8C8C8C;
}

.lx-zw-bar {
    display: flex;
    height: 26px;
    border-radius: 4px;
    overflow: hidden;
}

.lx-zw-bar i { display: block; }

.lx-zw-legend {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 24px;
}

.lx-zw-legend > div {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr) 48px 62px;
    align-items: center;
    gap: 6px;
}

.lx-zw-legend i {
    display: block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.lx-zw-legend b { color: #FFFFFF; }
.lx-zw-legend span { text-align: right; }
.lx-zw-legend span + span { color: #8C8C8C; }

.lx-zw-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 12px;
    margin-top: 10px;
    font-variant-numeric: tabular-nums;
}

.lx-zw-threads {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.lx-zw-threads > span:first-child { color: #8C8C8C; }

.lx-zw-threads .lx-slider {
    width: 260px;
    max-width: 55%;
}

.lx-win--zip .lx-slider::before,
.lx-win--zip .lx-slider-fill,
.lx-win--zip .lx-slider-thumb { background: #1DB552; }

.lx-zw-threads b { color: #27C75F; }

.lx-zw-foot {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}

.lx-zw-check {
    flex: none;
    width: 18px;
    height: 18px;
    box-sizing: border-box;
    border: 1px solid #8C8C8C;
    border-radius: 3px;
}

.lx-zw-foot > span { flex: none; }

.lx-zw-foot .lx-zw-status {
    flex: 1 1 auto;
    min-width: 0;
    color: #8C8C8C;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lx-zw-btn {
    padding: 6px 12px;
    border: 1px solid #3A3A3A;
    border-radius: 4px;
}

.lx-zw-btn[hidden] { display: none; }

.lx-zw-btn--primary {
    padding: 6px 16px;
    border-color: #1DB552;
    background: #1DB552;
    color: #FFFFFF;
    font-weight: 600;
}

/* ── Videos ──────────────────────────────────────────────────────────────── */

.lx-videos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.lx-video {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.lx-video-frame {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--lx-border);
    border-radius: 10px;
    overflow: hidden;
    background: #0B0D10;
}

.lx-video-frame img,
.lx-video-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.lx-video-play {
    position: absolute;
    right: 14px;
    top: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 22px;
    background: #FFFFFF;
    color: #141618;
    font-size: 14px;
    font-weight: 700;
}

a.lx-video-frame:hover { border-color: var(--lx-border-strong); }
a.lx-video-frame:hover .lx-video-play { background: #DCE9F5; }

.lx-video h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    color: #FFFFFF;
}

.lx-video p {
    margin: 4px 0 0;
    font-size: 14px;
    color: var(--lx-text-3);
}

/* ── Product cards ───────────────────────────────────────────────────────── */

.lx-products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.lx-product {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 30px;
    background: var(--lx-panel);
    border: 1px solid var(--lx-border);
    border-radius: 10px;
}

.lx-product-head {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lx-product-head img {
    flex: none;
    width: 68px;
    height: 68px;
    object-fit: contain;
}

.lx-product-tag {
    margin-top: 4px;
    font-family: var(--lx-mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--lx-copy-text);
}

.lx-product--zip .lx-product-tag { color: var(--lx-zip-text); }

.lx-product-line {
    margin: 0;
    font-size: 18px;
    color: var(--lx-text);
}

.lx-checks {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 15px;
    color: var(--lx-text-2);
}

.lx-checks li {
    position: relative;
    padding-left: 28px;
}

.lx-checks li::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 6px;
    width: 11px;
    height: 6px;
    border-left: 2.5px solid var(--lx-copy-text);
    border-bottom: 2.5px solid var(--lx-copy-text);
    transform: rotate(-45deg);
}

.lx-product--zip .lx-checks li::before { border-color: var(--lx-zip-text); }

.lx-license {
    padding: 12px 14px;
    background: var(--lx-inset);
    border: 1px solid var(--lx-border);
    border-radius: 6px;
    font-size: 14px;
    color: var(--lx-text-2);
}

.lx-product .lx-actions {
    gap: 10px;
    margin-top: auto;
}

/* ── How we test ─────────────────────────────────────────────────────────── */

.lx-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.lx-step {
    padding: 24px;
    background: var(--lx-panel);
    border: 1px solid var(--lx-border);
    border-radius: 10px;
}

.lx-step-num {
    font-family: var(--lx-mono);
    font-size: 13px;
    color: var(--lx-text-3);
}

.lx-step h3 {
    margin: 8px 0 6px;
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
}

.lx-step p {
    margin: 0;
    font-size: 15px;
    color: var(--lx-text-2);
}

/* ── Founder ─────────────────────────────────────────────────────────────── */

.lx-quote {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 820px;
    margin: 0 auto;
}

.lx-quote blockquote {
    margin: 0;
    font-family: var(--lx-display);
    font-weight: 600;
    font-size: clamp(22px, 2.6vw, 28px);
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: #FFFFFF;
}

.lx-quote p {
    margin: 0;
    font-size: 15px;
    color: #AEB7C2;
}

.lx-quote a {
    font-weight: 600;
    text-decoration: none;
}

.lx-quote a:hover { text-decoration: underline; }

/* ── Product page: hero ──────────────────────────────────────────────────── */

.lx-product-mark {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--lx-display);
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
}

.lx-product-mark img {
    flex: none;
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.lx-caption {
    max-width: 640px;
    margin: 18px auto 0;
    font-size: 13px;
    text-align: center;
    color: var(--lx-text-3);
}

.lx-center { text-align: center; }

/* ── Drawn windows: expanded copy window ─────────────────────────────────── */

.lx-cw-tabs,
.lx-se-tabs {
    display: flex;
    gap: 2px;
    border-bottom: 1px solid #2A3340;
}

.lx-cw-tabs span,
.lx-se-tabs span {
    padding: 6px 14px;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    color: #9AA4B2;
}

.lx-cw-tabs .is-on,
.lx-se-tabs .is-on {
    color: #FFFFFF;
    border-bottom-color: #4C9BDD;
}

.lx-win--copy .lx-zw-breakdown { margin-top: 0; }
.lx-win--copy .lx-zw-caption { color: #9AA4B2; }
.lx-win--copy .lx-zw-legend { gap: 3px 20px; font-size: 12px; }

.lx-win--copy .lx-zw-legend > div {
    padding: 2px 6px;
    border-radius: 3px;
}

.lx-zw-legend > .is-selected {
    background: rgba(76, 155, 221, 0.2);
    box-shadow: inset 0 0 0 1px rgba(76, 155, 221, 0.55);
}

.lx-cw-selected {
    font-size: 12px;
    color: #C9D1DA;
}

.lx-cw-modes {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #C9D1DA;
}

.lx-radio {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.lx-radio::before {
    content: '';
    width: 12px;
    height: 12px;
    box-sizing: border-box;
    border: 1.5px solid #8591A0;
    border-radius: 50%;
}

.lx-radio.is-on { color: #FFFFFF; }

.lx-radio.is-on::before {
    border-color: #4C9BDD;
    background: radial-gradient(circle, #4C9BDD 0 3px, transparent 3.5px);
}

.lx-cw-prio {
    margin-left: auto;
    padding: 6px 18px;
    border-radius: 4px;
    background: #2F79BA;
    color: #FFFFFF;
    font-weight: 600;
}

/* ── Drawn windows: main app (Script and Dashboard tabs) ─────────────────── */

.lx-win--app {
    background: #141A23;
    border: 1px solid #3A4352;
    font-size: 12.5px;
    color: #E6E8EB;
}

.lx-win--app .lx-win-bar {
    height: 40px;
    padding-left: 12px;
    background: #2B3441;
}

.lx-win--app .lx-win-name {
    flex: none;
    color: #FFFFFF;
}

.lx-win--app .lx-win-cap { height: 40px; }
.lx-win--app .lx-win-caps { margin-left: auto; }

.lx-app-tabs {
    display: flex;
    min-width: 0;
    margin-left: 10px;
    overflow: hidden;
}

.lx-app-tabs span {
    display: flex;
    align-items: center;
    height: 40px;
    padding: 0 12px;
    color: #AEB7C2;
}

.lx-app-tabs .is-on {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 -2px 0 #4C9BDD;
    color: #FFFFFF;
}

.lx-se-tools {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-bottom: 1px solid #2A3340;
    white-space: nowrap;
    overflow: hidden;
}

.lx-tb {
    flex: none;
    padding: 3px 9px;
    border: 1px solid #3A4352;
    border-radius: 4px;
    font-size: 11.5px;
    color: #C9D1DA;
}

.lx-tb.is-dim { opacity: 0.45; }

.lx-se-note {
    margin-left: auto;
    padding-left: 10px;
    font-size: 11.5px;
    color: #9AA4B2;
}

.lx-code {
    padding: 10px 0;
    background: #10151C;
    font-family: var(--lx-mono);
    font-size: 12.5px;
    line-height: 21px;
    color: #D4D9E0;
}

.lx-ln {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
}

.lx-ln > i {
    position: relative;
    padding-right: 12px;
    font-style: normal;
    text-align: right;
    color: #566170;
}

.lx-ln > span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lx-ln.is-paused {
    background: rgba(240, 160, 50, 0.16);
    box-shadow: inset 3px 0 0 #F0A032;
}

.lx-ln.has-bp > i::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 6px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #DC5A5A;
}

.lx-code .c-com { color: #7FA36B; }
.lx-code .c-kw { color: #6CB6EE; }
.lx-code .c-str { color: #D9A27E; }
.lx-code .c-fn { color: #E3D7A0; }

.lx-se-tabs {
    padding: 0 8px;
    border-top: 1px solid #2A3340;
}

.lx-se-vars {
    padding: 6px 14px 14px;
    font-family: var(--lx-mono);
    font-size: 12px;
}

.lx-se-vars > div {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    padding: 4px 0;
}

.lx-se-vars .lx-se-vh {
    border-bottom: 1px solid #2A3340;
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: #9AA4B2;
}

.lx-db {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
}

.lx-db-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.lx-db-cards > div,
.lx-db-panel {
    background: #1B222C;
    border: 1px solid #2A3340;
    border-radius: 6px;
}

.lx-db-cards > div { padding: 9px 12px; }
.lx-db-panel { padding: 11px 12px; }

.lx-db-cards span {
    display: block;
    font-size: 11px;
    color: #9AA4B2;
}

.lx-db-cards b {
    display: block;
    font-size: 17px;
    color: #FFFFFF;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.lx-db-cards b.is-warn { color: #F0A032; }

.lx-db-h {
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #FFFFFF;
}

.lx-db-cap {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #9AA4B2;
}

.lx-db-bar {
    height: 16px;
    margin: 5px 0 8px;
    border-radius: 4px;
    background: #3C82DC;
}

.lx-db-legend {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 12px;
    font-size: 12px;
}

.lx-db-legend span:nth-child(even) { color: #9AA4B2; }

.lx-db-legend i {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 7px;
    border-radius: 50%;
}

.lx-db-table > div {
    display: grid;
    grid-template-columns: 1.5fr 0.7fr 1fr 1.4fr 0.8fr;
    gap: 8px;
    padding: 5px 0;
    border-top: 1px solid #2A3340;
    font-size: 11.5px;
    font-variant-numeric: tabular-nums;
}

.lx-db-table > .lx-db-th {
    border-top: 0;
    padding-top: 0;
    color: #9AA4B2;
}

.lx-db-table span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Drawn windows: Explorer context menu ────────────────────────────────── */

.lx-menu-stage {
    display: flex;
    justify-content: center;
    padding: 36px 24px;
    border: 1px solid var(--lx-border);
    border-radius: 10px;
    background: radial-gradient(120% 120% at 20% 0%, #1E3350 0%, #131A24 55%, #101214 100%);
}

.lx-menu {
    width: 310px;
    max-width: 100%;
    padding: 4px;
    background: #2B2B2B;
    border: 1px solid #454545;
    border-radius: 8px;
    box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.8);
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 13px;
    line-height: 1.4;
    color: #F2F2F2;
    cursor: default;
    user-select: none;
}

.lx-menu > div {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 36px;
    border-radius: 4px;
    white-space: nowrap;
}

.lx-menu > .has-icon { padding-left: 12px; }
.lx-menu > .is-hot { background: rgba(255, 255, 255, 0.1); }
.lx-menu > .is-off { color: #7D7D7D; }

.lx-menu img {
    flex: none;
    width: 16px;
    height: 16px;
}

.lx-menu kbd {
    margin-left: auto;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    font: inherit;
    color: #A6A6A6;
}

.lx-menu-more {
    flex: none;
    width: 6px;
    height: 6px;
    margin-left: auto;
    border-top: 1.5px solid #C4C4C4;
    border-right: 1.5px solid #C4C4C4;
    transform: rotate(45deg);
}

.lx-menu hr {
    height: 1px;
    margin: 4px 0;
    border: 0;
    background: #454545;
}

/* ── Feature cards and roadmap ───────────────────────────────────────────── */

.lx-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.lx-card {
    padding: 22px;
    background: var(--lx-panel);
    border: 1px solid var(--lx-border);
    border-radius: 10px;
}

.lx-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
    color: #FFFFFF;
}

.lx-card p {
    margin: 0;
    font-size: 14.5px;
    color: var(--lx-text-2);
}

.lx-roadmap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin-top: 24px;
    padding: 16px 20px;
    border: 1px dashed var(--lx-border-strong);
    border-radius: 10px;
    font-size: 14px;
}

.lx-roadmap strong {
    margin-right: 6px;
    color: #FFFFFF;
}

.lx-roadmap span {
    padding: 3px 11px;
    border: 1px solid var(--lx-border);
    border-radius: 14px;
    background: var(--lx-inset);
    font-size: 13px;
    color: var(--lx-text-2);
}

.lx-roadmap em {
    flex-basis: 100%;
    font-size: 13px;
    font-style: normal;
    color: var(--lx-text-3);
}

/* ── Benchmarks (BenchmarkChart.razor) ───────────────────────────────────── */

.lx-bench {
    padding: 24px;
    background: var(--lx-panel);
    border: 1px solid var(--lx-border);
    border-radius: 10px;
}

.lx-bench + .lx-bench { margin-top: 20px; }

.lx-bench-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 24px;
    margin-bottom: 20px;
}

.lx-bench-headline {
    font-family: var(--lx-display);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #FFFFFF;
}

.lx-bench-headline span { color: var(--lx-copy-text); }

.lx-bench-badge {
    padding: 6px 14px;
    border: 1px solid var(--lx-copy);
    border-radius: 16px;
    font-family: var(--lx-mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--lx-text-2);
}

.lx-bench-badge strong { color: #FFFFFF; }

.lx-bench-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.lx-bench-card {
    padding: 14px;
    background: var(--lx-inset);
    border: 1px solid var(--lx-line);
    border-radius: 8px;
}

.lx-bench-card-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
}

.lx-bench-num {
    font-family: var(--lx-mono);
    font-size: 12px;
    color: var(--lx-text-3);
}

.lx-bench-name {
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
}

.lx-bench-tag {
    margin-left: auto;
    font-size: 12px;
    color: var(--lx-text-3);
    white-space: nowrap;
}

.lx-bench-rows {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lx-bench-row {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr) auto 46px;
    align-items: baseline;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    color: var(--lx-text-2);
    font-variant-numeric: tabular-nums;
}

.lx-bench-row.is-win {
    background: rgba(47, 121, 186, 0.22);
    color: #FFFFFF;
    font-weight: 600;
}

.lx-bench-rank {
    font-family: var(--lx-mono);
    font-size: 12px;
    color: var(--lx-text-3);
}

.lx-bench-tool {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lx-bench-mult {
    text-align: right;
    color: var(--lx-text-3);
}

.lx-bench-row.is-win .lx-bench-rank,
.lx-bench-row.is-win .lx-bench-mult { color: var(--lx-copy-text); }

.lx-bench-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.lx-chip {
    min-width: 52px;
    min-height: 40px;
    padding: 0 14px;
    background: transparent;
    border: 1px solid var(--lx-border-strong);
    border-radius: 20px;
    color: var(--lx-text-2);
    font-family: var(--lx-mono);
    font-size: 13px;
    cursor: pointer;
}

.lx-chip:hover {
    border-color: #6B7684;
    color: #FFFFFF;
}

.lx-chip[aria-selected="true"] {
    background: var(--lx-copy);
    border-color: var(--lx-copy);
    color: #FFFFFF;
}

.lx-bench-caption {
    margin-bottom: 14px;
    font-size: 15px;
    font-weight: 600;
    color: #FFFFFF;
}

.lx-bench-caption span {
    font-weight: 400;
    color: var(--lx-text-3);
}

.lx-bench-bars {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.lx-bench-bar-row {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr) 118px;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    color: var(--lx-text-2);
}

.lx-bench-bar-track {
    display: block;
    height: 16px;
    border-radius: 3px;
    background: var(--lx-inset);
    overflow: hidden;
}

.lx-bench-bar-fill {
    display: block;
    min-width: 3px;
    height: 100%;
    border-radius: 3px;
    background: var(--lx-bar-rest);
}

.lx-bench-bar-val {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.lx-bench-bar-val span {
    margin-left: 6px;
    color: var(--lx-text-3);
}

.lx-bench-bar-row.is-win {
    color: #FFFFFF;
    font-weight: 600;
}

.lx-bench-bar-row.is-win .lx-bench-bar-fill { background: var(--lx-copy-bright); }
.lx-bench-bar-row.is-win .lx-bench-bar-val span { color: var(--lx-copy-text); }

.lx-bench-note { margin-top: 14px; }

/* ── Video + reproduce, download ─────────────────────────────────────────── */

.lx-proof {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: start;
    gap: 24px;
    margin-top: 40px;
    scroll-margin-top: 88px;
}

.lx-download {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 24px;
}

.lx-step > h3:first-child { margin-top: 0; }
.lx-step .lx-note { margin-top: 14px; }

.lx-files,
.lx-notes {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 14px 0 0;
    font-size: 14.5px;
    color: var(--lx-text-2);
}

.lx-files {
    padding: 0;
    list-style: none;
}

.lx-files strong { color: #FFFFFF; }

.lx-files a {
    font-family: var(--lx-mono);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.lx-notes { padding-left: 18px; }

.lx-section[id] { scroll-margin-top: 64px; }

/* ── Older shared components, on dark ────────────────────────────────────── */
/* PricingCard, DownloadCard, ComparisonTable and the review cards are styled by
   pricing.css / site.css / reviews.css through the legacy tokens re-pointed at
   the top of this file. These are the few places a token swap is not enough. */

.theme-dark { --warning: #F0A032; }

.theme-dark .btn-outline { border-color: var(--lx-border-strong); }

.theme-dark .btn-outline:hover {
    border-color: var(--lx-copy-bright);
    background: rgba(76, 155, 221, 0.12);
    color: #FFFFFF;
}

.theme-dark .badge-pro { color: var(--lx-copy-text); }
.theme-dark .badge-free { color: var(--lx-zip-text); }

.theme-dark code {
    background: var(--lx-inset);
    border: 1px solid var(--lx-border);
    color: var(--lx-text);
}

.theme-dark .feature-tab { color: #AEB7C2; }
.theme-dark .feature-tab:hover { color: #FFFFFF; }

.theme-dark .feature-tab.active {
    color: #FFFFFF;
    border-bottom-color: var(--lx-copy-bright);
}

.theme-dark .comparison-table { color: var(--lx-text-2); }
.theme-dark .comparison-table .comp-feature-col { color: var(--lx-text); }
.theme-dark .comp-highlight { background: rgba(47, 121, 186, 0.1); }
.theme-dark .comparison-table thead th.comp-highlight { background: rgba(47, 121, 186, 0.24); }
.theme-dark .check { color: var(--lx-zip-text); }

.theme-dark .review-verified {
    background: rgba(45, 190, 96, 0.16);
    color: var(--lx-zip-text);
}

.theme-dark .review-stars .star-empty { color: #47505A; }

.theme-dark .pricing-grid-3 { padding: 14px 0 20px; }
.theme-dark .pricing-grid-3 .pricing-card { background: var(--lx-panel); }
.theme-dark .pricing-grid-3 .pricing-card.featured { border-color: var(--lx-copy-bright); }

.theme-dark .pricing-features li::before,
.theme-dark .download-card .dl-reqs li::before { color: var(--lx-zip-text); }

.theme-dark .download-card { background: var(--lx-panel); }

/* Pricing page (pricing.css): controls, volume table, payment methods, FAQ. */
.lx-hero--plain { padding: 64px 0 56px; }

.lx-hero--plain .lx-wrap {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.lx-hero--plain .lx-lead { max-width: 640px; }

.theme-dark .pricing-controls {
    justify-content: flex-start;
    margin-bottom: 20px;
    padding: 18px 20px;
    background: var(--lx-panel);
    border: 1px solid var(--lx-border);
    border-radius: 10px;
}

.theme-dark .pricing-control-group label { color: var(--lx-text-3); }

.theme-dark .pricing-select,
.theme-dark .pricing-number,
.theme-dark .pricing-text {
    height: 40px;
    background: var(--lx-inset);
    border-color: var(--lx-border-strong);
    color: var(--lx-text);
}

.theme-dark .pricing-select:focus,
.theme-dark .pricing-number:focus,
.theme-dark .pricing-text:focus {
    border-color: var(--lx-copy-bright);
    box-shadow: 0 0 0 3px rgba(76, 155, 221, 0.25);
}

.theme-dark .referral-row .btn { min-height: 40px; }
.theme-dark .referral-status.valid { color: var(--lx-zip-text); }
.theme-dark .referral-status.invalid { color: #F58B8B; }

.theme-dark .volume-table-wrapper { margin: 0; }

.theme-dark .volume-table {
    margin: 0;
    background: var(--lx-panel);
    border: 1px solid var(--lx-border);
    color: var(--lx-text-2);
}

.theme-dark .volume-table th { color: var(--lx-text-3); }
.theme-dark .volume-table .active-tier { background: rgba(47, 121, 186, 0.2); }
.theme-dark .volume-table .active-tier td { color: #FFFFFF; }

.theme-dark .payment-grid { margin: 0; }

.theme-dark .payment-method {
    background: var(--lx-panel);
    color: var(--lx-text);
}

.theme-dark .payment-method:hover { border-color: var(--lx-border-strong); }
.theme-dark .payment-subtitle { text-align: left; }
.theme-dark .faq-list { margin: 0; }
.theme-dark .faq-item:first-child { padding-top: 0; }

/* ── Brutal Zip: page accent ─────────────────────────────────────────────── */
/* The accent tokens are named after Brutal Copy's blue. Inside .lx-accent-zip
   (the Brutal Zip page) they are re-pointed at Brutal Zip's green, so links,
   focus rings, tabs, chips and bars follow without a second set of rules. */

.lx-accent-zip {
    --lx-copy: #2DBE60;
    --lx-copy-bright: #2DBE60;
    --lx-copy-text: #5BD98A;
    --accent-primary: #2DBE60;
    --accent-hover: #46D077;
    --accent-light: rgba(45, 190, 96, 0.2);
    --accent-subtle: rgba(45, 190, 96, 0.1);
}

:where(.lx-accent-zip) a:hover { color: #A8ECC2; }

/* Green needs dark text where blue took white. */
.lx-accent-zip .lx-chip[aria-selected="true"],
.theme-dark .lx-accent-zip .btn-primary,
.theme-dark .lx-accent-zip .btn-primary:hover { color: var(--lx-on-zip); }

.lx-accent-zip .lx-bench-row.is-win { background: rgba(45, 190, 96, 0.18); }
.theme-dark .lx-accent-zip .btn-outline:hover { background: rgba(45, 190, 96, 0.12); }
.theme-dark .lx-accent-zip .comp-highlight { background: rgba(45, 190, 96, 0.08); }
.theme-dark .lx-accent-zip .comparison-table thead th.comp-highlight { background: rgba(45, 190, 96, 0.2); }

/* ── Drawn windows: Brutal Zip main app and Diagnostic Viewer ────────────── */

.lx-win--zapp {
    background: #1B1D1C;
    border: 1px solid #3A3A3A;
    font-size: 12.5px;
    color: #E0E0E0;
}

.lx-win--zapp .lx-win-bar {
    height: 40px;
    padding-left: 12px;
    background: #232B27;
}

.lx-win--zapp .lx-win-name {
    flex: none;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #E8EAED;
}

.lx-win--zapp .lx-win-name b { color: #27C75F; }
.lx-win--zapp .lx-win-cap { height: 40px; }
.lx-win--zapp .lx-win-caps { margin-left: auto; }
.lx-win--zapp .lx-app-tabs { margin-left: auto; }
.lx-win--zapp .lx-app-tabs + .lx-win-caps { margin-left: 6px; }

.lx-win--zapp .lx-app-tabs .is-on {
    background: none;
    box-shadow: inset 0 -2px 0 #27C75F;
    font-weight: 600;
}

.lx-win--zapp .lx-slider::before,
.lx-win--zapp .lx-slider-fill,
.lx-win--zapp .lx-slider-thumb { background: #1DB552; }

.lx-za-menu {
    display: flex;
    gap: 14px;
    margin-left: 6px;
    color: #AEB7B2;
}

.lx-za-body { padding: 12px; }

.lx-za-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    background: #202322;
    border: 1px solid #333836;
    border-radius: 8px;
}

.lx-za-h {
    font-weight: 600;
    color: #FFFFFF;
}

.lx-za-table { border: 1px solid #333836; }

.lx-za-table > div {
    display: grid;
    gap: 10px;
    padding: 6px 10px;
    border-top: 1px solid #2C302E;
    font-variant-numeric: tabular-nums;
}

.lx-za-table > .lx-za-th {
    border-top: 0;
    background: #232625;
    font-size: 11.5px;
    color: #9AA4A0;
}

.lx-za-table span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lx-za-table--create > div { grid-template-columns: 1.3fr 0.6fr 0.8fr 0.6fr 2.6fr; }
.lx-za-table--create > .is-selected { background: #303534; }
.lx-za-table--diag { margin: 0 10px 10px; }
.lx-za-table--diag > div { grid-template-columns: 34px minmax(0, 2.7fr) 0.8fr 1fr 1fr 1fr; }

.lx-za-table--diag > .is-selected {
    background: #1C7A40;
    color: #FFFFFF;
}

.lx-za-links {
    display: flex;
    gap: 16px;
    font-size: 12px;
}

.lx-za-opts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
}

.lx-za-label { color: #9AA4A0; }

.lx-za-select + .lx-za-label,
.lx-za-select + .lx-za-checkbox,
.lx-za-checkbox + .lx-za-label { margin-left: 8px; }

.lx-za-select {
    position: relative;
    min-width: 40px;
    padding: 4px 28px 4px 10px;
    border: 1px solid #6B716E;
    border-radius: 4px;
    color: #FFFFFF;
}

.lx-za-select::after {
    content: "";
    position: absolute;
    right: 10px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid #C4C4C4;
    border-bottom: 1.5px solid #C4C4C4;
    transform: translateY(-70%) rotate(45deg);
}

.lx-za-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #FFFFFF;
}

.lx-za-checkbox::before {
    content: "";
    width: 15px;
    height: 15px;
    box-sizing: border-box;
    border: 1px solid #8C8C8C;
    border-radius: 3px;
}

.lx-za-level {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lx-za-level .lx-slider {
    width: 200px;
    max-width: 38%;
}

.lx-za-level b { color: #27C75F; }

.lx-za-level .lx-zw-btn {
    margin-left: auto;
    white-space: nowrap;
}

.lx-za-status {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 12px;
    border-top: 1px solid #2C302E;
    font-size: 11px;
    color: #8C8C8C;
    white-space: nowrap;
    overflow: hidden;
}

.lx-za-tools {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
}

.lx-za-tools span {
    flex: none;
    padding: 5px 8px;
    border-radius: 4px;
}

.lx-za-tools .is-go {
    background: #1DB552;
    color: #FFFFFF;
    font-weight: 600;
}

.lx-za-tools .lx-za-find {
    flex: 1 1 80px;
    min-width: 0;
    margin-left: 4px;
    border: 1px solid #6B716E;
    color: #8C8C8C;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lx-za-tools--bar {
    padding: 8px 10px;
    border-bottom: 1px solid #2C302E;
}

.lx-za-tools--bar i {
    flex: none;
    width: 1px;
    height: 18px;
    margin: 0 6px;
    background: #3A3A3A;
}

.lx-za-crumbs {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    font-weight: 600;
    color: #27C75F;
}

.lx-za-crumbs i {
    width: 5px;
    height: 5px;
    border-top: 1.5px solid #6B716E;
    border-right: 1.5px solid #6B716E;
    transform: rotate(45deg);
}

.lx-za-split {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: 12px;
}

.lx-za-icons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px;
    padding: 8px;
    background: #1B1D1C;
    border: 1px solid #333836;
}

.lx-za-icons > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 4px;
    font-size: 11.5px;
    white-space: nowrap;
    overflow: hidden;
}

.lx-za-icons > .is-selected {
    background: #1C7A40;
    color: #FFFFFF;
}

.lx-za-file {
    display: block;
    width: 22px;
    height: 28px;
    background: #F2F2F2;
    clip-path: polygon(0 0, 66% 0, 100% 26%, 100% 100%, 0 100%);
}

.lx-za-preview {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.lx-za-preview > b {
    font-size: 13px;
    color: #FFFFFF;
}

.lx-za-preview > small {
    margin-bottom: 6px;
    font-size: 11px;
    color: #8C8C8C;
}

.lx-za-pre {
    flex: 1 1 auto;
    padding: 8px;
    background: #1B1D1C;
    border: 1px solid #333836;
    font-family: var(--lx-mono);
    font-size: 11.5px;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
}

.lx-za-pre .is-dim { color: #6B716E; }

.lx-za-preview .lx-za-links {
    justify-content: flex-end;
    margin-top: 8px;
}

.lx-za-foot {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 11px;
    color: #6B716E;
    white-space: nowrap;
    overflow: hidden;
}

.lx-za-map {
    margin: 10px;
    background: #161817;
    border: 1px solid #2C302E;
}

.lx-za-map-cap {
    padding: 4px 8px;
    font-size: 11px;
    color: #AEB7B2;
}

.lx-za-map-main {
    position: relative;
    height: 58px;
    background:
        linear-gradient(90deg, #26A232 0 89%, transparent 89%),
        repeating-linear-gradient(90deg, #26A232 0 3px, #1B6E25 3px 5px, #26A232 5px 9px, #17531D 9px 10px);
}

.lx-za-map-mark {
    position: absolute;
    left: 24.6%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #F2E600;
}

.lx-za-map-tip {
    position: absolute;
    left: 24.6%;
    top: 42px;
    z-index: 2;
    padding: 5px 8px;
    background: #232625;
    border: 1px solid #3A3A3A;
    border-radius: 5px;
    font-size: 11px;
    line-height: 1.4;
    white-space: nowrap;
}

.lx-za-map-tip b {
    display: block;
    font-weight: 600;
    color: #FFFFFF;
}

.lx-za-map-mini {
    position: relative;
    height: 10px;
    margin: 28px 0 8px;
    background: linear-gradient(90deg, #26A232 0 96%, #3A4270 96%);
}

.lx-za-map-mini i {
    position: absolute;
    left: 36.6%;
    top: -4px;
    bottom: -4px;
    width: 32.8%;
    border: 1px solid #27C75F;
}

/* ── Free vs Pro, why it is fast, cross-sell ─────────────────────────────── */

.lx-why { margin-top: 28px; }

.lx-plans {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
}

.lx-plan {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px;
    background: var(--lx-panel);
    border: 1px solid var(--lx-border);
    border-radius: 10px;
}

.lx-plan--pro { border-color: var(--lx-zip); }

.lx-plan-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.lx-plan h3,
.lx-plan-price {
    margin: 0;
    font-family: var(--lx-display);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #FFFFFF;
}

.lx-plan-price small {
    font-family: "Segoe UI", system-ui, sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--lx-text-3);
}

.lx-plan > p {
    margin: 0;
    font-size: 15px;
    color: var(--lx-text-2);
}

.lx-plan .lx-checks strong { color: #FFFFFF; }

.lx-plan .lx-btn {
    margin-top: auto;
    text-align: center;
}

.lx-plans-note { margin-top: 24px; }
.lx-coming { max-width: 720px; }

.lx-cross {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px 24px;
}

.lx-cross img {
    flex: none;
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.lx-cross > div {
    display: flex;
    flex: 1 1 320px;
    flex-direction: column;
    gap: 6px;
}

/* Four benchmark cards read better two-up than three and one. */
@media (min-width: 761px) {
    .lx-bench-grid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
    .lx-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lx-bench-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
    .lx-hero-grid,
    .lx-replay,
    .lx-replay--flip { grid-template-columns: minmax(0, 1fr); }

    .lx-proof,
    .lx-download { grid-template-columns: minmax(0, 1fr); }

    .lx-replay--flip .lx-replay-text { order: 0; }
    .lx-replays { gap: 72px; }

    /* Tilted windows are hard to read small, so they sit flat on tablets and phones. */
    .lx-tilt > .lx-win,
    .lx-tilt--left > .lx-win { transform: none; }

    .lx-steps { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
    .lx-hero,
    .lx-section { padding: 48px 0 56px; }

    .lx-wrap { padding: 0 16px; }

    .lx-videos,
    .lx-products { grid-template-columns: minmax(0, 1fr); }

    .lx-product { padding: 22px; }
    .lx-race-panel { padding: 20px 18px 18px; }
    .lx-race-row { grid-template-columns: 104px minmax(0, 1fr) 44px; gap: 8px; font-size: 13px; }
    .lx-win-tools { display: none; }
    .lx-cw-body { padding: 14px 14px 12px; }
    .lx-cw-foot { padding: 8px 14px; flex-wrap: wrap; }
    .lx-cw-stats b { font-size: 12.5px; }
    .lx-zw-body { padding: 12px 14px; }
    .lx-zw-legend { gap: 5px 12px; }
    .lx-zw-legend > div { grid-template-columns: 12px minmax(0, 1fr) 42px; }
    .lx-zw-legend span + span { display: none; }
    .lx-zw-foot .lx-zw-status { display: none; }
    .lx-zw-foot .lx-zw-btn--primary { margin-left: auto; }

    .lx-win-caps { margin-left: auto; }
    .lx-cards,
    .lx-bench-grid { grid-template-columns: minmax(0, 1fr); }
    .lx-bench { padding: 16px; }
    .lx-bench-bar-row { grid-template-columns: 96px minmax(0, 1fr) 88px; gap: 8px; font-size: 12.5px; }
    .lx-bench-bar-val span { display: none; }
    .lx-cw-modes { gap: 12px; flex-wrap: wrap; }
    .lx-win--copy .lx-zw-legend { gap: 3px 8px; }
    .lx-app-tabs span { padding: 0 8px; }
    .lx-app-tabs span:not(.is-on) { display: none; }
    .lx-se-note { display: none; }
    .lx-db { padding: 10px; }
    .lx-db-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lx-db-table > div { grid-template-columns: 1.5fr 0.7fr 1fr 1.4fr; }
    .lx-db-table span:nth-child(5) { display: none; }
    .lx-menu-stage { padding: 24px 12px; }
    .lx-roadmap { padding: 14px; }
    .theme-dark .pricing-grid-3 { grid-template-columns: minmax(0, 1fr); }

    .lx-za-menu { display: none; }
    .lx-za-body { padding: 8px; }
    .lx-za-panel { padding: 10px; }
    .lx-za-table--create > div { grid-template-columns: 1.4fr 0.7fr 0.9fr; }
    .lx-za-table--create span:nth-child(n+4) { display: none; }
    .lx-za-table--diag > div { grid-template-columns: 34px minmax(0, 1fr) 54px 84px; }
    .lx-za-table--diag span:nth-child(4),
    .lx-za-table--diag span:nth-child(5) { display: none; }
    .lx-za-split { grid-template-columns: minmax(0, 1fr); }
    .lx-za-level { flex-wrap: wrap; }
    .lx-za-level .lx-slider { width: 120px; max-width: none; }
    .lx-plans { grid-template-columns: minmax(0, 1fr); }
    .lx-plan { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    .lx-race-bar { animation: none; }
    .lx-btn { transition: none; }
}

/* ── Checkout and checkout success ───────────────────────────────────────── */
/* checkout.css still lays these pages out; its classes are shared with the light
   contact, support and recover-license forms, so the dark versions are scoped to
   .theme-dark here instead of being edited there.

   From 960px the order summary moves into a sticky side column, so the total stays
   in view while the details and payment cards are filled in. That is done with grid
   placement only: the markup order is still summary, details, payment, which is the
   order a phone (one column) shows them in. */

.lx-checkout {
    padding: 44px 0 88px;
    border-top: 0;
}

.theme-dark .checkout-layout {
    max-width: 640px;
    padding: 0;
}

.theme-dark .checkout-title {
    margin: 0 0 24px;
    font-family: var(--lx-display);
    font-size: clamp(30px, 3.6vw, 40px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #FFFFFF;
}

.theme-dark .checkout-card,
.theme-dark .checkout-success-card {
    background: var(--lx-panel);
    border-color: var(--lx-border);
    border-radius: 10px;
}

.theme-dark .checkout-card {
    margin-bottom: 20px;
    padding: 24px;
}

.theme-dark .checkout-card-title {
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom-color: var(--lx-line);
    font-family: var(--lx-display);
    font-size: 19px;
    color: #FFFFFF;
}

/* What is being bought: product icon, product name, plan. */
.checkout-product {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.checkout-product img {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 10px;
}

.checkout-product div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.checkout-product strong {
    font-size: 16px;
    color: #FFFFFF;
}

.checkout-product span {
    font-size: 14px;
    color: var(--lx-text-3);
}

/* Fields */
.theme-dark .checkout-field-group label {
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--lx-text-2);
}

.theme-dark .checkout-field {
    height: 44px;
    background: var(--lx-inset);
    border-color: var(--lx-border-strong);
    color: var(--lx-text);
    color-scheme: dark;
    font-size: 16px;    /* below 16px, iOS zooms the page when a field takes focus */
}

.theme-dark .checkout-field::placeholder { color: #808B98; }

.theme-dark .checkout-field:focus {
    border-color: var(--lx-copy-bright);
    box-shadow: 0 0 0 3px var(--accent-light);
}

/* Browser autofill paints its own light background; keep the field dark. */
.theme-dark .checkout-field:-webkit-autofill,
.theme-dark .checkout-field:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--lx-text);
    caret-color: var(--lx-text);
    box-shadow: 0 0 0 1000px var(--lx-inset) inset;
}

.theme-dark .checkout-field--mono {
    font-family: var(--lx-mono);
    font-size: 15px;
}

.theme-dark .checkout-note {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--lx-text-3);
}

.theme-dark .checkout-field-group .referral-row .btn { min-height: 44px; }

/* A <button> does not inherit the page font unless told to. */
.theme-dark button.btn { font-family: inherit; }

/* Seats */
.theme-dark .checkout-quantity-row { border-bottom-color: var(--lx-line); }

.theme-dark .checkout-qty-btn {
    width: 44px;
    height: 44px;
    background: var(--lx-inset);
    border-color: var(--lx-border-strong);
    color: var(--lx-text);
}

.theme-dark .checkout-qty-btn:hover:not(:disabled) { background: #262B31; }

.theme-dark .checkout-volume-hint {
    padding-bottom: 12px;
    font-size: 14px;
    color: var(--lx-zip-text);
}

/* Order rows */
.theme-dark .order-summary-rows {
    padding-top: 12px;
    border-top: 1px solid var(--lx-line);
}

.theme-dark .order-row {
    gap: 16px;
    font-size: 15px;
    color: var(--lx-text-2);
}

.theme-dark .order-row > span:last-child {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.theme-dark .order-row-discount {
    font-size: 14px;
    color: var(--lx-text-3);
}

.theme-dark .order-row-total {
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--lx-border);
    font-size: 19px;
    color: #FFFFFF;
}

.theme-dark .discount-tag {
    background: rgba(45, 190, 96, 0.16);
    color: var(--lx-zip-text);
    font-size: 12.5px;
}

/* Notices */
.theme-dark .checkout-notice {
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 15px;
}

.theme-dark .checkout-notice-warn {
    background: rgba(240, 160, 50, 0.12);
    border-color: rgba(240, 160, 50, 0.45);
    color: #F6C98A;
}

.theme-dark .checkout-notice-error,
.theme-dark .checkout-validation-error {
    background: rgba(229, 72, 77, 0.14);
    border: 1px solid rgba(245, 139, 139, 0.45);
    color: #FFB3B3;
}

.theme-dark .checkout-validation-error { font-size: 15px; }

.theme-dark .checkout-notice a {
    color: inherit;
    text-decoration: underline;
}

/* Payment buttons: card is the primary action in the page accent, PayPal keeps its
   own yellow (it is how people find it), crypto is the quieter outlined option. */
.theme-dark .checkout-payment-buttons { gap: 12px; }

.theme-dark .payment-btn {
    height: 52px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 16px;
}

.theme-dark .payment-btn:hover:not(:disabled) { opacity: 1; }

.theme-dark .payment-btn-stripe {
    background: var(--accent-primary);
    color: #FFFFFF;
}

.theme-dark .payment-btn-stripe:hover:not(:disabled) { background: var(--accent-hover); }

.theme-dark .lx-accent-zip .payment-btn-stripe { color: var(--lx-on-zip); }

.theme-dark .lx-accent-zip .payment-btn-stripe .spinner {
    border-color: rgba(8, 23, 13, 0.3);
    border-top-color: var(--lx-on-zip);
}

.theme-dark .payment-btn-paypal:hover:not(:disabled) { background: #FFD265; }

.theme-dark .payment-btn-crypto {
    background: transparent;
    border-color: #F7931A;
    color: #FFB454;
}

.theme-dark .payment-btn-crypto:hover:not(:disabled) { background: rgba(247, 147, 26, 0.12); }

.theme-dark .payment-btn-crypto .spinner {
    border-color: rgba(247, 147, 26, 0.35);
    border-top-color: #F7931A;
}

.theme-dark .payment-btn-crypto .discount-tag {
    background: rgba(247, 147, 26, 0.18);
    color: #FFC27A;
}

/* Crypto panel */
.theme-dark .crypto-panel {
    margin-top: 20px;
    padding: 20px;
    background: var(--lx-inset);
    border-color: var(--lx-border);
    border-radius: 10px;
}

.theme-dark .crypto-panel-title {
    font-family: var(--lx-display);
    font-size: 17px;
    color: #FFFFFF;
}

.theme-dark .crypto-coin-btn {
    min-height: 44px;
    background: var(--lx-panel);
    border: 1px solid var(--lx-border-strong);
    color: var(--lx-text-2);
    font-family: var(--lx-mono);
}

.theme-dark .crypto-coin-btn:hover { border-color: #F7931A; }

.theme-dark .crypto-coin-btn.active {
    background: rgba(247, 147, 26, 0.14);
    border-color: #F7931A;
    box-shadow: inset 0 0 0 1px #F7931A;
    color: #FFFFFF;
}

.theme-dark .crypto-amount {
    font-family: var(--lx-mono);
    font-size: 21px;
    color: #FFFFFF;
    /* checkout.css breaks this anywhere; an exact amount must not be split mid-number. */
    word-break: normal;
    overflow-wrap: anywhere;
}

.theme-dark .crypto-usd-equiv,
.theme-dark .crypto-countdown,
.theme-dark .crypto-note {
    font-size: 14px;
    color: var(--lx-text-3);
}

.theme-dark .crypto-note { line-height: 1.5; }
.theme-dark .crypto-countdown strong { color: #FFB454; }

.theme-dark .crypto-address-box {
    padding: 12px 14px;
    background: var(--lx-panel);
    border-color: var(--lx-border-strong);
    color: var(--lx-text);
    font-family: var(--lx-mono);
    font-size: 14px;
    line-height: 1.5;
}

.theme-dark .crypto-address-box:hover {
    background: #22262B;
    border-color: var(--lx-copy-bright);
}

/* Click to copy (showcase.js sets data-copied for a couple of seconds). */
[data-copy][data-copied]::after {
    content: "Copied";
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--lx-zip);
    color: var(--lx-on-zip);
    font-family: var(--font-sans, 'Segoe UI', system-ui, sans-serif);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.6;
    white-space: nowrap;
}

/* The clipboard was not available: the text has been selected instead. */
[data-copy][data-copied="manual"]::after {
    content: "Selected: press Ctrl+C";
    background: #F0A032;
    color: #1F1402;
}

/* Flows after the address rather than sitting on top of it, so a long address on a
   narrow screen is never covered. */
.crypto-address-box[data-copied]::after {
    display: inline-block;
    margin-left: 10px;
    vertical-align: middle;
}

/* Success page */
.theme-dark .checkout-success-card { padding: 44px 28px; }

.theme-dark .checkout-success-icon {
    background: rgba(45, 190, 96, 0.16);
    color: var(--lx-zip-text);
}

.theme-dark .checkout-success-title {
    margin: 0 0 12px;
    font-family: var(--lx-display);
    font-size: clamp(28px, 3.4vw, 36px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #FFFFFF;
}

.theme-dark .checkout-success-text {
    max-width: 480px;
    margin-bottom: 10px;
    font-size: 17px;
    color: var(--lx-text-2);
}

.checkout-key {
    margin: 24px 0;
    padding: 18px;
    background: var(--lx-inset);
    border: 1px solid var(--lx-border);
    border-radius: 10px;
    text-align: left;
}

.checkout-key label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--lx-mono);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--lx-text-3);
}

.checkout-key textarea {
    display: block;
    width: 100%;
    min-height: 152px;
    padding: 12px;
    background: var(--lx-ground-alt);
    border: 1px solid var(--lx-border-strong);
    border-radius: 6px;
    color: var(--lx-text);
    color-scheme: dark;
    font-family: var(--lx-mono);
    font-size: 13px;
    line-height: 1.5;
    word-break: break-all;
    resize: vertical;
}

.checkout-key textarea:focus {
    outline: none;
    border-color: var(--lx-copy-bright);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.theme-dark .checkout-key-copy {
    gap: 8px;
    margin-top: 10px;
    min-height: 40px;
}

.checkout-key p,
.checkout-success-foot {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--lx-text-3);
}

.checkout-success-foot { margin-top: 20px; }

@media (min-width: 960px) {
    .theme-dark .checkout-layout--split {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 380px;
        grid-auto-flow: row dense;
        align-items: start;
        column-gap: 28px;
        max-width: 1040px;
    }

    .checkout-layout--split > * { grid-column: 1; }

    .checkout-layout--split > .checkout-notice,
    .checkout-layout--split > .checkout-title { grid-column: 1 / -1; }

    /* Dense flow lets the summary take the second column beside the two cards that
       follow it in the markup, instead of pushing them down a row. */
    .checkout-layout--split > .checkout-card--summary {
        grid-column: 2;
        grid-row: span 2;
        position: sticky;
        top: 88px;      /* clears the 64px fixed nav */
    }
}

/* A short window cannot show the whole summary while it is pinned. */
@media (min-width: 960px) and (max-height: 700px) {
    .checkout-layout--split > .checkout-card--summary { position: static; }
}

@media (max-width: 760px) {
    .lx-checkout { padding: 28px 0 56px; }
    .theme-dark .checkout-card { padding: 18px; }
    .theme-dark .checkout-success-card { padding: 32px 18px; }
    .theme-dark .crypto-panel { padding: 16px; }
    .theme-dark .crypto-amount { font-size: 18px; }
}

/* checkout.css stacks the payment buttons at this width but leaves them "flex: 1",
   which in a column overrides their height and squeezes them to the text (25px). */
@media (max-width: 640px) {
    .theme-dark .payment-btn { flex: 0 0 52px; }
}

/* ── Contact, recover license, support ───────────────────────────────────── */
/* The two forms reuse the checkout card and field classes, which are already dark
   above. Markup order is heading, form, other ways to get help: that is the order a
   phone shows them in; from 900px the form takes a column of its own on the right.
   support-chat.css still lays the chat out and is re-pointed here. */

.lx-formpage,
.lx-support {
    padding: 56px 0 88px;
    border-top: 0;
}

.lx-formpage .lx-wrap,
.lx-support .lx-wrap { max-width: 1088px; }

.lx-formpage .lx-h1,
.lx-support .lx-h1 {
    font-size: clamp(34px, 4.4vw, 52px);
    line-height: 1.05;
    letter-spacing: -0.025em;
}

.lx-formpage-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
}

.lx-formpage-intro,
.lx-support-head {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lx-formpage-intro .lx-lead { max-width: 520px; }
.lx-formpage-form { min-width: 0; }
.theme-dark .lx-formpage-form .checkout-card { margin-bottom: 0; }

/* A short label with the answer or the link under it. */
.lx-quicklinks {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--lx-line);
    list-style: none;
}

.lx-quicklinks li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--lx-line);
}

/* A row that ends in a link gives the space to the link, so it is a full-height tap target. */
.lx-quicklinks li:has(> a) { padding-bottom: 2px; }

.lx-quicklinks span {
    font-size: 14px;
    color: var(--lx-text-3);
}

.lx-quicklinks a,
.lx-quicklinks strong {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.lx-quicklinks strong {
    margin-top: 2px;
    color: var(--lx-text);
}

.lx-quicklinks a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.lx-quicklinks a:hover { text-decoration: underline; }

/* Form bits the checkout does not have: a message box, a select, field errors. */
.theme-dark textarea.checkout-field {
    height: auto;
    min-height: 148px;
    padding: 10px 12px;
    line-height: 1.5;
    resize: vertical;
}

.theme-dark select.checkout-field { cursor: pointer; }

.theme-dark .validation-message {
    margin-top: 6px;
    font-size: 14px;
    color: #F58B8B;
}

.theme-dark .lx-formpage .checkout-validation-error { margin: 0 0 16px; }

.theme-dark .checkout-validation-error a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

.theme-dark .lx-form-submit {
    width: 100%;
    min-height: 48px;
    margin-top: 4px;
    font-size: 16px;
}

/* .btn has no disabled look of its own, so "Sending..." and the resend cooldown
   looked like a live button. */
.theme-dark button.btn:disabled {
    opacity: 0.55;
    box-shadow: none;
    transform: none;
    cursor: not-allowed;
}

.theme-dark button.btn-primary:disabled:hover { background: var(--accent-primary); }

/* Support chat */
.lx-support-head { margin-bottom: 28px; }
.lx-support-head .lx-lead { max-width: 620px; }

.theme-dark .chat-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    max-width: none;
}

/* The chat fills the window under the heading, within sensible limits. */
.theme-dark .chat-card {
    height: clamp(480px, calc(100vh - 330px), 720px);
    height: clamp(480px, calc(100dvh - 330px), 720px);
    margin-bottom: 0;
    padding: 0;
}

.theme-dark .chat-messages {
    gap: 18px;
    padding: 24px;
    scrollbar-color: var(--lx-border-strong) transparent;
}

.theme-dark .chat-messages::-webkit-scrollbar-thumb { background: var(--lx-border-strong); }

/* .chat-messages already pads this; the extra padding made the welcome scroll on a
   short laptop screen. */
.theme-dark .chat-welcome { padding: 0; }

.theme-dark .chat-welcome-icon {
    margin-bottom: 12px;
    color: var(--lx-copy-text);
    opacity: 1;
}

.theme-dark .chat-welcome h2 {
    margin: 0 0 8px;
    font-family: var(--lx-display);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: #FFFFFF;
}

.theme-dark .chat-welcome p {
    margin-bottom: 24px;
    font-size: 16px;
    color: var(--lx-text-2);
}

.theme-dark .chat-suggestions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    max-width: 560px;
}

.theme-dark .chat-suggestion {
    min-height: 48px;
    padding: 10px 14px;
    background: var(--lx-inset);
    border-color: var(--lx-border-strong);
    border-radius: 8px;
    color: var(--lx-text);
    font-family: inherit;
    font-size: 15px;
    line-height: 1.35;
}

.theme-dark .chat-suggestion:hover {
    background: rgba(76, 155, 221, 0.12);
    border-color: var(--lx-copy-bright);
    color: #FFFFFF;
}

.theme-dark .chat-message { gap: 12px; }

.theme-dark .chat-message-user .chat-message-avatar {
    background: var(--lx-line);
    color: var(--lx-text-2);
}

.theme-dark .chat-message-assistant .chat-message-avatar {
    background: var(--lx-copy);
    color: #FFFFFF;
}

.theme-dark .chat-message-content {
    font-size: 16px;
    line-height: 1.6;
    color: var(--lx-text);
    overflow-wrap: anywhere;
    word-break: normal;
}

/* Lines the first row of text up with the middle of the 32px avatar. */
.theme-dark .chat-message-assistant .chat-message-content { padding-top: 3px; }

.theme-dark .chat-message-user .chat-message-content {
    flex: 0 1 auto;
    padding: 8px 14px;
    background: var(--lx-inset);
    border: 1px solid var(--lx-border);
    border-radius: 8px;
}

.theme-dark .chat-message-content code {
    font-family: var(--lx-mono);
    font-size: 14px;
}

.theme-dark .chat-message-content a,
.theme-dark .chat-disclaimer a { color: var(--lx-copy-text); }

.theme-dark .chat-cursor { background: var(--lx-copy-text); }

.theme-dark .chat-input-area {
    padding: 14px 16px;
    border-top-color: var(--lx-line);
}

.theme-dark .chat-input-row { gap: 10px; }

.theme-dark .chat-input-row textarea {
    min-height: 44px;
    padding: 10px 12px;
    background: var(--lx-inset);
    border-color: var(--lx-border-strong);
    color: var(--lx-text);
    color-scheme: dark;
    font-size: 16px;    /* below 16px, iOS zooms the page when the box takes focus */
    line-height: 1.4;
}

.theme-dark .chat-input-row textarea::placeholder { color: #808B98; }

.theme-dark .chat-input-row textarea:focus {
    border-color: var(--lx-copy-bright);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.theme-dark .chat-send-btn {
    width: 44px;
    height: 44px;
}

.theme-dark .chat-input-meta {
    align-items: flex-start;
    gap: 14px;
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--lx-text-3);
}

.theme-dark .chat-char-count {
    flex: none;
    opacity: 1;
    font-variant-numeric: tabular-nums;
}

.theme-dark .chat-disclaimer { text-align: right; }

.theme-dark .chat-sidebar .checkout-card {
    top: 88px;      /* clears the 64px fixed nav */
    margin-bottom: 0;
}

.theme-dark .chat-sidebar-links { gap: 2px; }

.theme-dark .chat-sidebar-links a {
    gap: 10px;
    min-height: 44px;
    margin: 0 -10px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 15px;
    color: var(--lx-text);
    overflow-wrap: anywhere;
}

.theme-dark .chat-sidebar-links a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #FFFFFF;
}

.theme-dark .chat-sidebar-links svg {
    opacity: 1;
    color: var(--lx-text-3);
}

@media (min-width: 900px) {
    .lx-formpage-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
        grid-template-rows: auto 1fr;
        align-items: start;
        gap: 32px 64px;
    }

    .lx-formpage-intro { grid-column: 1; grid-row: 1; }
    .lx-quicklinks { grid-column: 1; grid-row: 2; }
    .lx-formpage-form { grid-column: 2; grid-row: 1 / span 2; }
}

/* One column sooner than support-chat.css (768px): beside a 300px sidebar the chat is
   too narrow to read on a small tablet. That file also lifts the links above the chat
   on a phone; the chat is what people came for, so it stays first. */
@media (max-width: 899px) {
    .theme-dark .chat-layout { grid-template-columns: minmax(0, 1fr); }
    .theme-dark .chat-sidebar { order: 0; }
    .theme-dark .chat-sidebar .checkout-card { position: static; }

    .theme-dark .chat-card {
        height: clamp(440px, calc(100vh - 150px), 640px);
        height: clamp(440px, calc(100dvh - 150px), 640px);
    }
}

@media (max-width: 768px) {
    .lx-formpage,
    .lx-support { padding: 32px 0 56px; }

    .lx-support-head { margin-bottom: 20px; }
}

@media (max-width: 480px) {
    .theme-dark .chat-messages { padding: 16px; }

    /* Keeps the four starter questions in view without scrolling the chat. */
    .theme-dark .chat-welcome-icon { display: none; }
    .theme-dark .chat-welcome p { margin-bottom: 16px; }
    .theme-dark .chat-suggestion { min-height: 44px; padding: 8px 12px; }
    .theme-dark .chat-input-area { padding: 12px; }
    .theme-dark .chat-suggestions { grid-template-columns: minmax(0, 1fr); }
    .theme-dark .chat-disclaimer { text-align: left; }
    .theme-dark .chat-input-meta { flex-direction: column-reverse; gap: 4px; }
}

/* ── About, reviews, knowledge base, legacy downloads, legal, notices ─────── */
/* kb.css, reviews.css and the legal/legacy rules in site.css still lay these pages out
   through the legacy tokens re-pointed at the top of this file. What follows is the
   type, the panels and the few places where a token swap is not enough. */

/* A heading beside its text from 900px, above it on anything narrower. */
.lx-splits {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.lx-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

.lx-prose {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 680px;
}

.lx-prose p {
    margin: 0;
    font-size: 17px;
    line-height: 1.7;
    color: var(--lx-text-2);
}

.lx-prose p.lx-sign {
    font-weight: 600;
    color: var(--lx-text);
}

.lx-prose .lx-actions { margin-top: 8px; }

.lx-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.lx-btn--block { width: 100%; }

.lx-btn[aria-disabled="true"] {
    opacity: 0.55;
    pointer-events: none;
}

/* A text link that is a button, for actions inside a sentence. */
.lx-textbtn {
    position: relative;
    padding: 0;
    background: none;
    border: 0;
    font: inherit;
    font-weight: 600;
    color: var(--lx-copy-text);
    cursor: pointer;
}

.lx-textbtn:hover {
    color: #A5D3F6;
    text-decoration: underline;
}

/* Keeps its place in the sentence, with a finger-sized area around it. */
.lx-textbtn::after {
    content: "";
    position: absolute;
    inset: -10px -8px;
}

.lx-callout {
    max-width: 860px;
    margin: 0 0 40px;
    padding: 18px 22px;
    background: var(--lx-panel);
    border: 1px solid var(--lx-border);
    border-left: 3px solid var(--lx-copy-bright);
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--lx-text-2);
}

.lx-callout strong { color: #FFFFFF; }

/* Form bits the review form adds to the checkout field classes. */
.lx-field-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--lx-text-2);
}

.lx-optional {
    font-weight: 400;
    color: var(--lx-text-3);
}

.lx-field-help {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--lx-text-3);
}

/* Honeypot: off screen for people, still in the page for bots. */
.lx-hp {
    position: absolute;
    left: -9999px;
}

/* Notices: 404, server error, maintenance, missing article */
.lx-status {
    display: flex;
    align-items: center;
    min-height: 62vh;
    border-top: 0;
}

.lx-status .lx-wrap {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
}

.lx-status .lx-h1 {
    font-size: clamp(34px, 4.4vw, 52px);
    line-height: 1.05;
    letter-spacing: -0.025em;
}

.lx-status .lx-lead { max-width: 560px; }
.lx-status .lx-actions { margin-top: 10px; }

/* Reviews */
.lx-reviews-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
    margin-bottom: 28px;
}

.theme-dark .review-summary {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px 12px;
    margin: 0;
    font-size: 16px;
    color: var(--lx-text-2);
}

.theme-dark .review-summary .review-stars { font-size: 22px; }

.theme-dark .review-summary strong {
    font-family: var(--lx-display);
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    color: #FFFFFF;
}

.theme-dark .review-filter-bar {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    margin: 0;
}

.theme-dark .review-filter-bar button {
    min-height: 44px;
    padding: 0 18px;
    background: transparent;
    border-color: var(--lx-border-strong);
    border-radius: 6px;
    color: var(--lx-text);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
}

.theme-dark .review-filter-bar button:hover {
    border-color: var(--lx-copy-bright);
    background: rgba(76, 155, 221, 0.12);
    color: #FFFFFF;
}

.theme-dark .review-filter-bar button.active {
    background: var(--lx-copy);
    border-color: var(--lx-copy);
    color: #FFFFFF;
}

.theme-dark .review-grid { gap: 16px; }

.theme-dark .review-grid .review-card {
    padding: 22px;
    background: var(--lx-panel);
    border-color: var(--lx-border);
    border-radius: 10px;
}

.theme-dark .review-grid .review-card:hover { box-shadow: none; }

.theme-dark .review-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
    color: #FFFFFF;
    overflow-wrap: anywhere;
}

.theme-dark .review-grid .review-body {
    margin-bottom: 14px;
    font-size: 15.5px;
    overflow-wrap: anywhere;
}

.theme-dark .review-grid .review-meta {
    flex-wrap: wrap;
    gap: 6px 12px;
    font-size: 13px;
}

.theme-dark .review-product-tag {
    color: var(--lx-copy-text);
    font-size: 12px;
}

.theme-dark .review-empty-state {
    padding: 24px 0;
    text-align: left;
    color: var(--lx-text-2);
}

.theme-dark .review-empty-state p { margin: 0; font-size: 17px; }

/* The rating is five buttons, so it works from the keyboard. Hovering previews the
   rating: every star up to the one under the pointer lights up. */
.theme-dark .review-star-input {
    gap: 0;
    margin-left: -8px;
}

.theme-dark .review-star-input button {
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 6px;
    color: #47505A;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.theme-dark .review-star-input button.filled { color: #F59E0B; }

@media (hover: hover) {
    .theme-dark .review-star-input:hover button { color: #F59E0B; }
    .theme-dark .review-star-input button:hover ~ button { color: #47505A; }
}

/* Knowledge base: hub */
.theme-dark .kb-product-section { margin-bottom: 56px; }
.theme-dark .kb-product-section:last-child { margin-bottom: 0; }

.theme-dark .kb-product-section h2 {
    margin: 0 0 8px;
    font-size: clamp(28px, 3.2vw, 36px);
    font-weight: 800;
    color: #FFFFFF;
}

.theme-dark .kb-product-section .kb-product-desc {
    margin: 0 0 24px;
    font-size: 17px;
    color: var(--lx-text-2);
}

.theme-dark .kb-article-grid { gap: 16px; }

.theme-dark .kb-card {
    display: flex;
    flex-direction: column;
    padding: 22px;
    background: var(--lx-panel);
    border-color: var(--lx-border);
    border-radius: 10px;
    transition: border-color 150ms ease, background-color 150ms ease;
}

.theme-dark .kb-card:hover,
.theme-dark .kb-related-card:hover {
    transform: none;
    box-shadow: none;
    background: #20242A;
    border-color: var(--lx-copy-bright);
}

.theme-dark .kb-card h3 {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: #FFFFFF;
}

.theme-dark .kb-card p {
    flex: 1;
    font-size: 14.5px;
    color: var(--lx-text-2);
}

.theme-dark .kb-card .kb-card-arrow {
    margin-top: 14px;
    font-size: 14px;
    color: var(--lx-copy-text);
}

/* Knowledge base: article */
.lx-kb-page {
    padding-top: 28px;
    border-top: 0;
}

.theme-dark .kb-article { max-width: 800px; }

.theme-dark .kb-breadcrumb {
    gap: 0 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--lx-text-3);
}

.theme-dark .kb-breadcrumb a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--lx-copy-text);
}

.theme-dark .kb-breadcrumb .kb-sep { color: var(--lx-border-strong); }

.theme-dark .kb-article-title {
    margin: 0 0 14px;
    font-family: var(--lx-display);
    font-size: clamp(32px, 4.4vw, 48px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: #FFFFFF;
}

.theme-dark .kb-article-summary {
    margin: 0 0 36px;
    font-size: 19px;
    line-height: 1.55;
    color: var(--lx-text-2);
}

.theme-dark .kb-video-wrap {
    border: 1px solid var(--lx-border);
    border-radius: 10px;
}

.theme-dark .kb-section { margin-bottom: 40px; }

.theme-dark .kb-section h2,
.theme-dark .kb-related h2 {
    margin: 0 0 16px;
    font-family: var(--lx-display);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #FFFFFF;
}

.theme-dark .kb-section h2 {
    padding-bottom: 10px;
    border-bottom: 1px solid var(--lx-line);
}

.theme-dark .kb-content p,
.theme-dark .kb-content ul,
.theme-dark .kb-content ol {
    font-size: 17px;
    color: var(--lx-text-2);
}

.theme-dark .kb-content strong { color: var(--lx-text); }

.theme-dark .kb-content code {
    padding: 0.1em 0.35em;
    font-family: var(--lx-mono);
    font-size: 0.86em;
    color: var(--lx-text);
    overflow-wrap: anywhere;
}

/* Command examples scroll sideways inside their box, never the page. */
.theme-dark .kb-content pre {
    margin: 0 0 16px;
    padding: 14px 16px;
    background: var(--lx-inset);
    border: 1px solid var(--lx-border);
    border-radius: 8px;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.6;
}

.theme-dark .kb-content pre code {
    padding: 0;
    background: none;
    border: 0;
    font-size: inherit;
    white-space: pre;
    overflow-wrap: normal;
}

/* The articles' tables had no styling of their own. */
.theme-dark .kb-content table {
    width: 100%;
    margin: 0 0 16px;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.5;
}

.theme-dark .kb-content th,
.theme-dark .kb-content td {
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.theme-dark .kb-content th {
    border-bottom: 1px solid var(--lx-border-strong);
    font-size: 13px;
    font-weight: 600;
    color: var(--lx-text-3);
}

.theme-dark .kb-content td {
    border-bottom: 1px solid var(--lx-line);
    color: var(--lx-text-2);
}

.theme-dark .kb-content th:first-child,
.theme-dark .kb-content td:first-child { padding-left: 0; }

/* A flag or a command in a cell stays in one piece. */
.theme-dark .kb-content td code {
    overflow-wrap: normal;
    white-space: nowrap;
}

.theme-dark .kb-screenshot {
    border-color: var(--lx-border);
    border-radius: 10px;
    box-shadow: none;
}

.theme-dark .kb-related {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--lx-line);
}

.theme-dark .kb-related-card {
    padding: 16px 18px;
    background: var(--lx-panel);
    border: 1px solid var(--lx-border);
    border-radius: 10px;
    transition: border-color 150ms ease, background-color 150ms ease;
}

.theme-dark .kb-related-card h3 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: #FFFFFF;
}

.theme-dark .kb-related-card p {
    font-size: 14px;
    color: var(--lx-text-2);
}

.lx-kb-foot { margin-top: 32px; }

/* Legacy downloads */
.lx-legacy .lx-h2 { margin-bottom: 20px; }
.lx-legacy .legacy-grid + .lx-h2 { margin-top: 48px; }
.lx-legacy-foot { margin-top: 40px; }

.theme-dark .legacy-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: 16px;
}

.theme-dark .legacy-card {
    padding: 24px;
    background: var(--lx-panel);
    border-color: var(--lx-border);
    border-radius: 10px;
}

.theme-dark .legacy-card.legacy-current {
    border-color: var(--lx-copy-bright);
    box-shadow: none;
}

.theme-dark .legacy-card-header { gap: 12px; }

.theme-dark .legacy-card h3 {
    margin: 0 0 4px;
    font-family: var(--lx-display);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.15;
    color: #FFFFFF;
}

.theme-dark .legacy-version {
    font-family: var(--lx-mono);
    font-size: 13px;
    color: var(--lx-text-3);
}

.theme-dark .legacy-meta {
    gap: 4px 18px;
    font-size: 13.5px;
    color: var(--lx-text-3);
}

.theme-dark .legacy-notes { margin-bottom: 20px; }

.theme-dark .legacy-notes li {
    display: flex;
    gap: 8px;
    padding: 3px 0;
    font-size: 14.5px;
}

.theme-dark .legacy-card > .lx-btn { margin-top: auto; }
.theme-dark .legacy-meta { margin-bottom: 16px; }

.theme-dark .legacy-notes li::before { color: var(--lx-zip-text); }
.theme-dark .badge-green { color: var(--lx-copy-text); }

.lx-badge-muted {
    background: var(--lx-line);
    color: var(--lx-text-3);
}

/* Legal pages: the text is untouched, only the type changes. */
.theme-dark .legal-content {
    max-width: 760px;
    padding: 56px 24px 88px;
}

.theme-dark .legal-content h1 {
    margin: 0 0 10px;
    font-family: var(--lx-display);
    font-size: clamp(34px, 4.4vw, 52px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: #FFFFFF;
}

.theme-dark .legal-content .last-updated {
    margin-bottom: 32px;
    font-family: var(--lx-mono);
    font-size: 13px;
    color: var(--lx-text-3);
}

.theme-dark .legal-content h2 {
    margin: 44px 0 12px;
    font-family: var(--lx-display);
    font-size: 23px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #FFFFFF;
}

.theme-dark .legal-content h3 {
    margin: 26px 0 8px;
    font-size: 17px;
    font-weight: 700;
    color: #FFFFFF;
}

.theme-dark .legal-content p,
.theme-dark .legal-content li {
    font-size: 17px;
    line-height: 1.7;
    color: var(--lx-text-2);
}

.theme-dark .legal-content strong { color: var(--lx-text); }
.theme-dark .legal-content ul { padding-left: 20px; }
.theme-dark .legal-content li { margin-bottom: 6px; }
.theme-dark .legal-content a { overflow-wrap: anywhere; }

@media (min-width: 900px) {
    .lx-split {
        grid-template-columns: 280px minmax(0, 1fr);
        gap: 24px 64px;
    }
}

@media (max-width: 899px) {
    .lx-cards--3 { grid-template-columns: minmax(0, 1fr); }
    .lx-splits { gap: 44px; }
}

@media (max-width: 760px) {
    .theme-dark .legal-content { padding: 32px 16px 56px; }
    .theme-dark .legal-content h2 { margin-top: 36px; }
    .lx-callout { margin-bottom: 32px; padding: 16px 18px; }
    .theme-dark .kb-product-section { margin-bottom: 44px; }
    .theme-dark .kb-section { margin-bottom: 32px; }

    /* A table too wide for a phone scrolls inside its section, never the page. */
    .theme-dark .kb-section { overflow-x: auto; }
    .theme-dark .kb-content th,
    .theme-dark .kb-content td { padding: 10px 8px; }
}

/* ── Affiliate dashboard ─────────────────────────────────────────────────── */
/* The login card reuses the checkout card and field classes; affiliate.css still lays
   out the stats and the tables. */

.lx-affiliate-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 32px;
    margin-bottom: 28px;
}

.lx-affiliate-head > div {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.lx-affiliate-head .lx-lead span {
    display: block;
    font-size: 15px;
    color: var(--lx-text-3);
    overflow-wrap: anywhere;
}

.lx-affiliate-head .btn { min-height: 44px; }

.theme-dark .affiliate-referral-box {
    margin-bottom: 16px;
    padding: 18px 20px;
    background: var(--lx-panel);
    border: 1px solid var(--lx-copy-bright);
    border-radius: 10px;
}

.theme-dark .affiliate-referral-box label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--lx-text-2);
}

/* A read-only value with its Copy button. */
.lx-copyrow {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lx-copyrow .checkout-field {
    flex: 1;
    min-width: 0;
    font-family: var(--lx-mono);
    font-size: 16px;    /* below 16px, iOS zooms the page when the box takes focus */
}

.lx-copyrow .btn {
    flex: none;
    min-height: 44px;
}

.theme-dark .affiliate-stats {
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.theme-dark .affiliate-stat {
    padding: 18px 12px;
    background: var(--lx-panel);
    border: 1px solid var(--lx-border);
    border-radius: 10px;
}

.theme-dark .affiliate-stat-value {
    font-family: var(--lx-display);
    font-size: 26px;
    font-weight: 800;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    color: #FFFFFF;
}

.theme-dark .affiliate-stat-value--pending { color: var(--warning); }
.theme-dark .affiliate-stat-value--paid { color: var(--lx-zip-text); }

.theme-dark .affiliate-stat-label {
    margin-top: 6px;
    font-size: 13px;
    color: var(--lx-text-3);
}

/* A table wider than its card scrolls inside the card, never the page. */
.lx-table-scroll { overflow-x: auto; }

.theme-dark .affiliate-table { font-size: 15px; }

.theme-dark .affiliate-table th {
    padding: 10px 12px;
    border-bottom: 1px solid var(--lx-border-strong);
    font-size: 13px;
    color: var(--lx-text-3);
}

.theme-dark .affiliate-table td {
    padding: 10px 12px;
    border-bottom-color: var(--lx-line);
    color: var(--lx-text-2);
    font-variant-numeric: tabular-nums;
}

.theme-dark .affiliate-table th:first-child,
.theme-dark .affiliate-table td:first-child { padding-left: 0; }

.theme-dark .affiliate-table td:first-child { white-space: nowrap; }
.theme-dark .affiliate-table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }

.lx-empty {
    margin: 0;
    font-size: 16px;
    color: var(--lx-text-2);
}

/* On a phone each row becomes a short list: a label beside each value. */
@media (max-width: 560px) {
    .theme-dark .affiliate-table,
    .theme-dark .affiliate-table tbody { display: block; }

    .theme-dark .affiliate-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .theme-dark .affiliate-table tr {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid var(--lx-line);
    }

    .theme-dark .affiliate-table tr:first-child { padding-top: 0; }
    .theme-dark .affiliate-table tr:last-child { padding-bottom: 0; border-bottom: 0; }

    .theme-dark .affiliate-table td {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 16px;
        padding: 3px 0;
        border: 0;
        text-align: right;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .theme-dark .affiliate-table td::before {
        content: attr(data-label);
        flex: none;
        font-size: 13px;
        text-align: left;
        color: var(--lx-text-3);
    }
}

/* ── Connection lost, page error ───────────────────────────────────────────
   Both elements are in App.razor, outside the layout, and carry .theme-dark for the
   tokens. blazor.web.js shows them: the first by putting one of four classes on it,
   the second by setting display: block. */

#components-reconnect-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 24px 16px;
    overflow-y: auto;
    background: rgba(16, 18, 20, 0.82);
}

#components-reconnect-modal.components-reconnect-show,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected { display: flex; }

/* A connection that comes straight back should not flash a dialog at anyone. */
#components-reconnect-modal.components-reconnect-show { animation: lx-reconnect-in 160ms ease 500ms both; }

@keyframes lx-reconnect-in {
    from { opacity: 0; visibility: hidden; }
    to { opacity: 1; visibility: visible; }
}

.lx-reconnect-card {
    width: 100%;
    max-width: 440px;
    padding: 24px;
    background: var(--lx-panel);
    border: 1px solid var(--lx-border);
    border-radius: 10px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}

.lx-reconnect-state { display: none; }

.components-reconnect-show .lx-reconnect-state--show,
.components-reconnect-failed .lx-reconnect-state--failed,
.components-reconnect-rejected .lx-reconnect-state--rejected { display: block; }

.lx-reconnect-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 8px;
    font-family: var(--lx-display);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    color: #FFFFFF;
}

.lx-reconnect-text {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: var(--lx-text-2);
}

.lx-reconnect-attempt {
    margin: 12px 0 0;
    font-family: var(--lx-mono);
    font-size: 13px;
    color: var(--lx-text-3);
}

/* "Try again" is one attempt of its own, not one of the counted ones. */
#components-reconnect-modal[data-manual] .lx-reconnect-attempt { display: none; }

.lx-reconnect-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.lx-reconnect-actions .lx-btn { font-family: inherit; }

.lx-reconnect-spinner {
    flex: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--lx-border-strong);
    border-top-color: var(--lx-copy-text);
    border-radius: 50%;
    animation: lx-reconnect-spin 900ms linear infinite;
}

@keyframes lx-reconnect-spin {
    to { transform: rotate(360deg); }
}

#blazor-error-ui {
    display: none;
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1900;
    min-height: 0;
    padding: 0 16px calc(16px + env(safe-area-inset-bottom, 0px));
    background: transparent;
    pointer-events: none;
}

.lx-errorbar {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 720px;
    margin: 0 auto;
    padding: 8px 8px 8px 16px;
    background: var(--lx-panel);
    border: 1px solid var(--lx-border);
    border-left: 3px solid #F58B8B;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
}

.lx-errorbar-text {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
    color: var(--lx-text);
}

.lx-errorbar .lx-btn {
    flex: none;
    min-height: 44px;
    padding: 0 16px;
}

.lx-errorbar-close {
    flex: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    color: var(--lx-text-3);
    cursor: pointer;
}

.lx-errorbar-close:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #FFFFFF;
}

@media (max-width: 480px) {
    .lx-reconnect-actions .lx-btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .lx-reconnect-spinner { animation: none; }
    #components-reconnect-modal.components-reconnect-show { animation-duration: 1ms; }
}
