:root {
    --ink: #0A0C0F;
    --ink-2: #11151A;
    --ink-3: #171C22;
    --line-dark: #252C35;
    --screen: #F0F2F5;
    --screen-muted: #98A2AF;
    --red: #E8453C;
    --red-bright: #FF5C52;
    --red-action: #C3342C;
    --red-deep: #B52F28;
    --paper: #E9EBED;
    --paper-2: #E1E4E7;
    --paper-ink: #14171B;
    --paper-muted: #59616C;
    --paper-line: #C9CED5;
    --green: #176B41;
    --green-dark: #3DBE7A;
    --amber: #8A5A12;
    --amber-dark: #F0B44C;
    --font-display: "Bahnschrift", "DIN Alternate", "Arial Narrow", "Microsoft YaHei UI", "PingFang SC", sans-serif;
    --font-body: "Microsoft YaHei UI", "PingFang SC", "Noto Sans SC", "Segoe UI", sans-serif;
    --font-mono: "Cascadia Mono", Consolas, "SFMono-Regular", "Courier New", monospace;
    --wrap: 1180px;
    --gutter: 28px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--paper-ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    text-rendering: optimizeLegibility;
}

::selection {
    background: var(--red);
    color: #fff;
}

img,
svg {
    display: block;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

code {
    font-family: var(--font-mono);
    font-size: 0.92em;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.025em;
}

:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 3px;
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    background: var(--red-action);
    color: #fff;
    padding: 10px 16px;
    text-decoration: none;
}

.skip-link:focus {
    top: 12px;
}

.muted {
    color: var(--paper-muted);
}

/* ---------- top bar ---------- */

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(10, 12, 15, 0.94);
    border-bottom: 1px solid var(--line-dark);
    color: var(--screen);
}

.topbar-inner {
    display: flex;
    align-items: center;
    gap: 34px;
    min-height: 64px;
}

.scroll-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    pointer-events: none;
}

.scroll-progress span {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: 0 50%;
    will-change: transform;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--red);
    text-decoration: none;
    flex: none;
}

.brand-mark {
    width: 24px;
    height: 24px;
    flex: none;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--screen);
}

.brand-sub {
    font-size: 12px;
    color: var(--screen-muted);
    padding-left: 12px;
    border-left: 1px solid var(--line-dark);
    line-height: 1;
}

.nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav a {
    position: relative;
    color: var(--screen-muted);
    text-decoration: none;
    font-size: 14px;
    line-height: 64px;
    transition: color 0.15s ease;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 17px;
    height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.18s ease;
}

.nav a:hover,
.nav a.is-active {
    color: var(--screen);
}

.nav a.is-active::after,
.nav a:hover::after {
    transform: scaleX(1);
}

.version-chip {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line-dark);
    padding: 6px 10px;
    text-decoration: none;
    font-size: 12px;
    color: var(--screen-muted);
    flex: none;
}

.version-chip:hover {
    border-color: #3a4350;
}

.version-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
}

.version-chip-value {
    font-family: var(--font-display);
    font-size: 13px;
    color: var(--screen);
    font-variant-numeric: tabular-nums;
}

.version-chip-channel {
    font-size: 11px;
    padding-left: 8px;
    border-left: 1px solid var(--line-dark);
}

.version-chip-channel.is-stable {
    color: var(--green-dark);
}

.version-chip-channel.is-beta {
    color: var(--amber-dark);
}

/* ---------- buttons and links ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-icon {
    width: 15px;
    height: 15px;
    flex: none;
}

.btn-icon svg {
    width: 100%;
    height: 100%;
}

.btn-primary {
    background: var(--red-action);
    color: #fff;
}

.btn-primary:hover {
    background: var(--red-deep);
}

.btn-dark {
    background: var(--ink);
    color: var(--screen);
}

.btn-dark:hover {
    background: #20262e;
}

.btn-ghost {
    border-color: var(--paper-ink);
    color: var(--paper-ink);
    background: transparent;
}

.btn-ghost:hover {
    background: var(--paper-ink);
    color: var(--paper);
}

.btn-ghost-dark {
    border-color: rgba(255, 255, 255, 0.24);
    color: var(--screen);
    background: transparent;
}

.btn-ghost-dark:hover {
    border-color: var(--screen);
}

.btn.is-disabled {
    opacity: 0.4;
    pointer-events: none;
}

.btn-full {
    width: 100%;
}

.link-quiet {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    text-decoration-color: rgba(20, 23, 27, 0.35);
    font-size: 13.5px;
}

.link-quiet:hover {
    text-decoration-color: currentColor;
}

.screen .link-quiet,
.player .link-quiet {
    color: var(--screen-muted);
    text-decoration-color: rgba(255, 255, 255, 0.25);
}

.screen .link-quiet:hover,
.player .link-quiet:hover {
    color: var(--screen);
}

/* ---------- screen hero ---------- */

.screen {
    position: relative;
    overflow: hidden;
    background: var(--ink);
    color: var(--screen);
    padding: 66px 0 72px;
    border-bottom: 1px solid #000;
}

.screen::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(90% 70% at 78% -10%, rgba(232, 69, 60, 0.16), transparent 62%),
        radial-gradient(70% 60% at 8% 110%, rgba(232, 69, 60, 0.05), transparent 70%);
    pointer-events: none;
}

.screen-film {
    position: absolute;
    inset: -12% -4%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translate3d(0, var(--film-y, 0px), 0);
    will-change: transform;
}

.screen-film picture,
.screen-film img {
    display: block;
    width: 100%;
    height: 100%;
}

.screen-film img {
    object-fit: cover;
    object-position: center 44%;
    opacity: 0.26;
    filter: saturate(0.55) contrast(1.06) brightness(0.6) blur(2px);
    transform: scale(1.05);
    animation: film-drift 32s ease-in-out infinite alternate;
    will-change: transform;
}

.screen-film-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10, 12, 15, 0.62) 0%, rgba(10, 12, 15, 0.16) 34%, rgba(10, 12, 15, 0.52) 72%, #0A0C0F 100%),
        linear-gradient(90deg, rgba(10, 12, 15, 0.86) 0%, rgba(10, 12, 15, 0.5) 38%, rgba(10, 12, 15, 0.38) 58%, rgba(10, 12, 15, 0.3) 72%, rgba(10, 12, 15, 0.52) 100%);
}

.screen-grain {
    position: absolute;
    inset: -6%;
    z-index: 2;
    opacity: 0.055;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
    animation: grain-shift 6s steps(1) infinite;
}

.hero {
    position: relative;
    z-index: 3;
}

@keyframes film-drift {
    from {
        transform: scale(1.05) translate3d(-1.2%, -1%, 0);
    }
    to {
        transform: scale(1.12) translate3d(1.4%, 1.1%, 0);
    }
}

@keyframes grain-shift {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }
    8% {
        transform: translate3d(-2%, 1%, 0);
    }
    16% {
        transform: translate3d(1%, -2%, 0);
    }
    25% {
        transform: translate3d(-1%, -1%, 0);
    }
    33% {
        transform: translate3d(2%, 1%, 0);
    }
    41% {
        transform: translate3d(-2%, -2%, 0);
    }
    50% {
        transform: translate3d(1%, 2%, 0);
    }
    58% {
        transform: translate3d(-1%, 2%, 0);
    }
    66% {
        transform: translate3d(2%, -1%, 0);
    }
    75% {
        transform: translate3d(-2%, 1%, 0);
    }
    83% {
        transform: translate3d(1%, -2%, 0);
    }
    91% {
        transform: translate3d(-1%, 1%, 0);
    }
}

.hero-head {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 64px;
    align-items: end;
    padding-bottom: 52px;
}

.hero h1 {
    margin: 0;
    font-size: clamp(40px, 5.7vw, 78px);
    line-height: 1.04;
    letter-spacing: -0.04em;
    font-weight: 600;
    max-width: 11em;
}

.lede {
    margin: 0 0 28px;
    max-width: 46ch;
    font-size: 16.5px;
    line-height: 1.8;
    color: var(--screen-muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-note {
    margin: 18px 0 0;
    font-size: 12.5px;
    color: #7d8795;
    font-variant-numeric: tabular-nums;
}

/* ---------- bands ---------- */

.band {
    background: var(--paper);
    padding: 78px 0;
}

.band-alt {
    background: var(--paper-2);
}

.band-download {
    padding-top: 66px;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--paper-ink);
    margin-bottom: 8px;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(30px, 3.6vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.section-link {
    font-size: 13.5px;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
    white-space: nowrap;
}

.section-note {
    font-size: 12.5px;
    color: var(--paper-muted);
}

.band-foot {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding-top: 20px;
    font-size: 12.5px;
    color: var(--paper-muted);
}

.band-foot a {
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}

.empty-line {
    padding: 44px 0;
    color: var(--paper-muted);
}

/* ---------- platform list ---------- */

.platform-list {
    position: relative;
}

.platform-playhead {
    position: absolute;
    left: -14px;
    top: 0;
    width: 2px;
    height: 0;
    background: var(--red);
    opacity: 0;
    transition: top 0.34s cubic-bezier(0.2, 0.8, 0.2, 1), height 0.22s ease, opacity 0.2s ease;
}

.platform-playhead::before {
    content: "";
    position: absolute;
    left: -3px;
    top: 0;
    width: 8px;
    height: 8px;
    background: var(--red);
}

.platform-list.is-ready .platform-playhead {
    opacity: 1;
}

.platform-track {
    border-bottom: 1px solid var(--paper-line);
}

.platform-trigger {
    display: grid;
    grid-template-columns: minmax(190px, 1.05fr) 100px minmax(0, 1.15fr) 22px;
    gap: 22px;
    align-items: center;
    width: 100%;
    padding: 20px 0;
    background: none;
    border: 0;
    text-align: left;
    color: inherit;
    cursor: pointer;
    font-family: inherit;
}

.platform-trigger:hover .platform-name strong {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.platform-track.is-open .platform-name strong {
    color: var(--red-deep);
}

.platform-os {
    display: block;
    font-size: 11.5px;
    color: var(--paper-muted);
    line-height: 1.4;
}

.platform-name strong {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.platform-summary {
    font-size: 12.5px;
    color: var(--paper-muted);
    font-variant-numeric: tabular-nums;
}

.platform-toggle {
    position: relative;
    justify-self: end;
    width: 14px;
    height: 14px;
}

.platform-toggle::before,
.platform-toggle::after {
    content: "";
    position: absolute;
    background: var(--paper-muted);
    transition: transform 0.24s ease, background-color 0.2s ease;
}

.platform-toggle::before {
    left: 0;
    right: 0;
    top: 6.5px;
    height: 1px;
}

.platform-toggle::after {
    top: 0;
    bottom: 0;
    left: 6.5px;
    width: 1px;
}

.platform-track.is-open .platform-toggle::before {
    background: var(--red-deep);
}

.platform-track.is-open .platform-toggle::after {
    transform: scaleY(0);
}

.state-ok,
.state-wait {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    white-space: nowrap;
}

.state-ok {
    color: var(--green);
}

.state-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
}

.state-wait {
    color: var(--paper-muted);
}

.platform-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.38s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.platform-track.is-open .platform-panel {
    grid-template-rows: 1fr;
}

.platform-panel-inner {
    overflow: hidden;
    min-height: 0;
}

.platform-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--paper-line);
}

.platform-facts span {
    display: block;
    margin-bottom: 2px;
    font-size: 11px;
    color: var(--paper-muted);
}

.platform-facts strong,
.platform-facts code {
    font-size: 13px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.platform-facts code {
    font-weight: 400;
}

.platform-note {
    margin: 14px 0 0;
    max-width: 75ch;
    font-size: 13px;
    color: var(--paper-muted);
}

.platform-panel-inner > .platform-note:last-child {
    padding-bottom: 24px;
}

.platform-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    padding: 16px 0 24px;
}

.platform-actions .btn {
    min-height: 40px;
    font-size: 13.5px;
}

/* ---------- releases ---------- */

.release-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
    margin-top: 12px;
}

.release-index {
    position: sticky;
    top: 92px;
    align-self: start;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding-top: 24px;
}

.release-index .release-channel {
    margin-top: 0;
}

.release-index-version {
    font-family: var(--font-display);
    font-size: clamp(34px, 3.6vw, 46px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.release-index-version.is-rolling {
    animation: index-roll 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes index-roll {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.release-index-title {
    max-width: 22ch;
    font-size: 13px;
    line-height: 1.55;
    color: var(--paper-muted);
}

.release-index-date {
    margin-top: 4px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--paper-muted);
    font-variant-numeric: tabular-nums;
}

.release-list {
    margin-top: 0;
}

.release-row.is-current .release-version strong {
    color: var(--red-deep);
}

.release-row {
    display: grid;
    grid-template-columns: 172px minmax(0, 1fr) 108px;
    gap: 32px;
    align-items: start;
    padding: 24px 0;
    border-bottom: 1px solid var(--paper-line);
    color: inherit;
    text-decoration: none;
}

.release-version strong {
    display: block;
    font-family: var(--font-display);
    font-size: 31px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.release-channel {
    display: inline-flex;
    align-items: center;
    margin-top: 6px;
    padding: 1px 7px;
    border: 1px solid currentColor;
    font-size: 11px;
    line-height: 1.6;
}

.release-channel.is-stable {
    color: var(--green);
}

.release-channel.is-beta {
    color: var(--amber);
}

.release-body h3 {
    margin: 2px 0 6px;
    font-size: 19px;
    line-height: 1.4;
    letter-spacing: -0.015em;
}

.release-row:hover .release-body h3 {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.release-notes {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
    color: var(--paper-muted);
}

.release-notes li {
    position: relative;
    padding-left: 12px;
    margin: 2px 0;
}

.release-notes li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 4px;
    height: 4px;
    background: var(--paper-line);
}

.release-date {
    justify-self: end;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--paper-muted);
    font-variant-numeric: tabular-nums;
    padding-top: 8px;
}

/* ---------- update model ---------- */

.update-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 64px;
    align-items: start;
}

.update-copy h2 {
    margin: 0 0 18px;
    font-size: clamp(30px, 3.6vw, 46px);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.lede-dark {
    margin: 0 0 28px;
    font-size: 15.5px;
    line-height: 1.8;
    color: var(--paper-muted);
    max-width: 48ch;
}

.rules {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rules li {
    position: relative;
    padding: 0 0 0 20px;
    margin: 16px 0;
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--paper-muted);
}

.rules li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    background: var(--red);
}

.rules li strong {
    display: block;
    font-size: 14px;
    color: var(--paper-ink);
    margin-bottom: 1px;
}

.rules li code {
    color: var(--paper-ink);
    font-size: 11.5px;
    overflow-wrap: anywhere;
}

.manual-panel {
    background: #F2F4F5;
    border: 1px solid var(--paper-line);
    border-top: 3px solid var(--paper-ink);
    padding: 26px;
}

.manual-panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--paper-line);
}

.manual-panel-head span {
    font-size: 12.5px;
    color: var(--paper-muted);
}

.manual-panel-head strong {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.035em;
    font-variant-numeric: tabular-nums;
}

.manual-panel p {
    margin: 0 0 20px;
    max-width: 40ch;
    font-size: 13.5px;
    color: var(--paper-muted);
}

.manual-panel .btn {
    width: 100%;
    margin-bottom: 16px;
}

.manual-panel-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--paper-muted);
    font-variant-numeric: tabular-nums;
}

.manual-panel .link-quiet {
    font-size: 12.5px;
}

/* ---------- page head ---------- */

.page-head {
    background: var(--ink);
    color: var(--screen);
    padding: 58px 0 52px;
    border-bottom: 1px solid #000;
}

.page-head-small {
    padding: 50px 0 46px;
}

.page-path {
    margin: 0 0 22px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: #75808d;
    letter-spacing: 0.03em;
}

.page-head-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 48px;
    align-items: end;
}

.page-head h1 {
    margin: 0 0 14px;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.page-lede {
    margin: 0;
    max-width: 60ch;
    color: var(--screen-muted);
    font-size: 15px;
    line-height: 1.8;
}

.page-head-meta {
    min-width: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
    padding-left: 26px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.page-head-meta .meta-label {
    font-size: 11.5px;
    color: #75808d;
}

.page-head-meta strong {
    font-family: var(--font-display);
    font-size: 42px;
    line-height: 1.1;
    font-weight: 500;
    letter-spacing: -0.035em;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.page-head-meta span:last-child {
    font-size: 12px;
    color: #75808d;
}

/* ---------- download page ---------- */

.channel-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--paper-line);
    margin-bottom: 30px;
    overflow-x: auto;
}

.channel-tabs a {
    position: relative;
    padding: 12px 18px;
    color: var(--paper-muted);
    text-decoration: none;
    font-size: 13.5px;
    white-space: nowrap;
}

.channel-tabs a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: transparent;
}

.channel-tabs a:hover {
    color: var(--paper-ink);
}

.channel-tabs a.is-active {
    color: var(--paper-ink);
}

.channel-tabs a.is-active::after {
    background: var(--red);
}

.notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 16px;
    margin-bottom: 26px;
    border-left: 3px solid var(--red);
    background: rgba(232, 69, 60, 0.07);
    font-size: 13px;
}

.notice a {
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}

.release-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 48px;
    padding: 8px 0 34px;
    border-bottom: 1px solid var(--paper-line);
}

.release-summary h2 {
    margin: 0 0 14px;
    font-size: clamp(24px, 2.8vw, 34px);
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.summary-notes {
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 70ch;
    font-size: 14px;
    color: var(--paper-muted);
}

.summary-notes li {
    position: relative;
    padding-left: 14px;
    margin: 5px 0;
}

.summary-notes li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 5px;
    height: 5px;
    background: var(--red);
}

.summary-aside {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-left: 1px solid var(--paper-line);
    padding-left: 26px;
    font-size: 13px;
    color: var(--paper-muted);
}

.summary-aside a {
    margin-top: 8px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.download-item {
    padding: 28px 0;
    border-bottom: 1px solid var(--paper-line);
}

.download-item-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.download-item-head h3 {
    margin: 0;
    font-size: 24px;
    letter-spacing: -0.02em;
}

.file-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 16px;
}

.download-item.is-pending {
    padding: 22px 0;
}

.download-item.is-pending .download-item-head {
    margin-bottom: 6px;
}

.download-item.is-pending h3 {
    color: var(--paper-muted);
}

.pending-note {
    margin: 0;
    font-size: 13px;
    color: var(--paper-muted);
}

.file-meta dt {
    font-size: 11px;
    color: var(--paper-muted);
    margin-bottom: 2px;
}

.file-meta dd {
    margin: 0;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.hash-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border: 1px solid var(--paper-line);
    margin-bottom: 14px;
    font-size: 11.5px;
}

.hash-row > span {
    flex: none;
    color: var(--paper-muted);
}

.hash-row code {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 11.5px;
}

.copy-btn {
    flex: none;
    background: none;
    border: 1px solid var(--paper-line);
    padding: 3px 9px;
    font-size: 11px;
    cursor: pointer;
}

.copy-btn:hover {
    border-color: var(--paper-ink);
}

.install-note {
    margin: 0 0 16px;
    font-size: 13px;
    color: var(--paper-muted);
    max-width: 75ch;
}

.download-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}

.manual-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-top: 44px;
    padding-top: 24px;
    border-top: 2px solid var(--paper-ink);
}

.manual-note strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}

.manual-note p {
    margin: 0;
    font-size: 13px;
    color: var(--paper-muted);
    max-width: 65ch;
}

.version-table {
    margin-top: 4px;
}

.version-row {
    display: grid;
    grid-template-columns: 116px 82px minmax(0, 1fr) 108px;
    gap: 18px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--paper-line);
    color: inherit;
    text-decoration: none;
    font-size: 13.5px;
}

.version-row > strong {
    font-family: var(--font-display);
    font-size: 17px;
    font-variant-numeric: tabular-nums;
}

.version-row:hover > span:nth-child(3) {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.version-row .release-channel {
    margin-top: 0;
    justify-self: start;
}

.version-row-date {
    justify-self: end;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--paper-muted);
}

.empty-block {
    padding: 64px 0;
    max-width: 560px;
}

.empty-block h2 {
    margin: 0 0 10px;
    font-size: 30px;
}

.empty-block p {
    margin: 0 0 22px;
    color: var(--paper-muted);
    font-size: 14px;
}

.empty-block-left {
    padding: 28px 0 48px;
}

.empty-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ---------- changelog ---------- */

.log-list {
    margin-top: 6px;
}

.log-item {
    display: grid;
    grid-template-columns: 196px minmax(0, 1fr);
    gap: 56px;
    padding: 44px 0;
    border-top: 1px solid var(--paper-line);
    scroll-margin-top: 88px;
}

.log-item:first-child {
    border-top: 0;
}

.log-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.log-meta .release-channel {
    margin-top: 0;
}

.log-version {
    font-family: var(--font-display);
    font-size: 38px;
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: -0.035em;
    font-variant-numeric: tabular-nums;
}

.log-meta time {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--paper-muted);
}

.log-body h2 {
    margin: 0 0 12px;
    font-size: clamp(22px, 2.5vw, 29px);
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.log-notes {
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 70ch;
    font-size: 14px;
    color: var(--paper-muted);
}

.log-notes li {
    position: relative;
    padding-left: 15px;
    margin: 5px 0;
}

.log-notes li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 5px;
    height: 5px;
    background: var(--red);
}

.log-artifacts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.artifact-chip {
    display: inline-flex;
    flex-direction: column;
    gap: 1px;
    padding: 7px 11px;
    border: 1px solid var(--paper-line);
    color: inherit;
    text-decoration: none;
    font-size: 11.5px;
    line-height: 1.5;
}

.artifact-chip span:first-child {
    font-size: 12.5px;
}

.artifact-chip span:last-child {
    color: var(--paper-muted);
    font-size: 11px;
}

a.artifact-chip:hover {
    border-color: var(--paper-ink);
}

.artifact-chip.is-disabled {
    opacity: 0.55;
}

/* ---------- footer ---------- */

.footer {
    background: var(--ink);
    color: var(--screen-muted);
    padding: 54px 0 22px;
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) 200px 260px;
    gap: 44px;
    padding-bottom: 36px;
}

.footer-brand {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.footer-brand .brand-mark {
    width: 28px;
    height: 28px;
    margin-top: 2px;
}

.footer-brand strong {
    display: block;
    font-family: var(--font-display);
    font-size: 16px;
    color: var(--screen);
    font-weight: 600;
}

.footer-brand p {
    margin: 4px 0 0;
    font-size: 12.5px;
    max-width: 34ch;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 13px;
}

.footer-nav a {
    text-decoration: none;
    width: fit-content;
}

.footer-nav a:hover {
    color: var(--screen);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-help span {
    display: block;
    font-size: 11.5px;
    color: #75808d;
}

.footer-help p {
    margin: 4px 0 8px;
    max-width: 28ch;
    font-size: 12px;
}

.footer-help a {
    font-size: 12.5px;
    color: var(--screen);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line-dark);
    font-size: 11.5px;
    color: #8a95a3;
}

/* ---------- responsive ---------- */

@media (max-width: 1040px) {
    .hero-head {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
        padding-bottom: 40px;
    }

    .hero h1 {
        max-width: 14em;
    }

    .player-stage {
        grid-template-columns: minmax(0, 1fr) 250px;
        gap: 30px;
    }

    .player-stage::after {
        right: 270px;
    }

    .update-grid {
        gap: 40px;
    }

    .release-layout {
        grid-template-columns: 200px minmax(0, 1fr);
        gap: 32px;
    }

    .release-index-version {
        font-size: 38px;
    }

    .footer-main {
        grid-template-columns: minmax(0, 1fr) 160px 230px;
        gap: 30px;
    }
}

@media (max-width: 880px) {
    .release-layout {
        display: block;
    }

    .release-index {
        display: none;
    }

    .player-stage {
        grid-template-columns: minmax(0, 1fr);
        padding: 32px 28px;
    }

    .player-side {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-left: 0;
        padding-top: 22px;
        display: block;
    }

    .artifact-meta {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 24px;
    }

    .player-stage::after {
        right: 30px;
        top: 30px;
        width: 130px;
        height: 130px;
    }

    .timeline-wrap {
        padding: 18px 28px 22px;
    }

    .update-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .page-head-grid {
        grid-template-columns: minmax(0, 1fr) 170px;
        gap: 30px;
    }

    .release-summary {
        grid-template-columns: minmax(0, 1fr) 180px;
        gap: 30px;
    }

    .log-item {
        grid-template-columns: 150px minmax(0, 1fr);
        gap: 32px;
    }

    .log-version {
        font-size: 31px;
    }

    .footer-main {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .footer-help {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    :root {
        --gutter: 20px;
    }

    .topbar-inner {
        flex-wrap: wrap;
        gap: 0 18px;
        padding: 9px var(--gutter);
        min-height: 58px;
    }

    .brand-sub {
        display: none;
    }

    .nav {
        order: 3;
        width: 100%;
        gap: 22px;
        border-top: 1px solid var(--line-dark);
        margin-top: 8px;
    }

    .nav a {
        line-height: 42px;
        font-size: 13.5px;
    }

    .nav a::after {
        bottom: 9px;
    }

    .version-chip {
        margin-left: auto;
    }

    .screen {
        padding: 44px 0 56px;
    }

    .screen-film {
        inset: -2%;
    }

    .screen-film img {
        opacity: 0.2;
        filter: saturate(0.5) contrast(1.04) brightness(0.62) blur(1.5px);
        object-position: center 46%;
    }

    .screen-grain {
        opacity: 0.045;
    }

    .hero h1 {
        font-size: clamp(36px, 9.2vw, 52px);
    }

    .lede {
        font-size: 15px;
    }

    .player-version {
        font-size: clamp(44px, 12vw, 72px);
    }

    .timeline-head span:last-child {
        display: none;
    }

    .marker {
        flex: 0 0 92px;
    }

    .band {
        padding: 56px 0;
    }

    .section-head {
        align-items: baseline;
    }

    .band-foot {
        flex-direction: column;
        gap: 6px;
    }

    .platform-playhead {
        left: -10px;
    }

    .platform-trigger {
        grid-template-columns: minmax(0, 1fr) auto 20px;
        gap: 4px 12px;
        padding: 18px 0;
    }

    .platform-name {
        grid-column: 1;
        grid-row: 1;
    }

    .platform-state {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }

    .platform-toggle {
        grid-column: 3;
        grid-row: 1;
    }

    .platform-summary {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .platform-facts {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .platform-facts div {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 16px;
    }

    .platform-facts span {
        margin-bottom: 0;
    }

    .platform-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .release-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 6px 16px;
        padding: 20px 0;
    }

    .release-version {
        grid-column: 1;
        grid-row: 1;
    }

    .release-date {
        grid-column: 2;
        grid-row: 1;
        padding-top: 4px;
    }

    .release-body {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .release-version strong {
        font-size: 26px;
    }

    .page-head {
        padding: 42px 0 38px;
    }

    .page-head-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .page-head-meta {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
        padding-left: 0;
        padding-top: 14px;
        flex-direction: row;
        align-items: baseline;
        gap: 12px;
    }

    .page-head-meta strong {
        font-size: 26px;
    }

    .release-summary {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .summary-aside {
        border-left: 0;
        border-top: 1px solid var(--paper-line);
        padding-left: 0;
        padding-top: 14px;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 14px;
    }

    .summary-aside a {
        margin-top: 0;
    }

    .file-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .download-item-head {
        flex-direction: column;
        gap: 6px;
    }

    .manual-note {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .version-row {
        grid-template-columns: 96px 76px minmax(0, 1fr);
    }

    .version-row-date {
        display: none;
    }

    .log-item {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        padding: 32px 0;
    }

    .log-meta {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
    }

    .log-version {
        font-size: 26px;
    }

    .log-meta time {
        order: 3;
    }

    .log-meta .link-quiet {
        order: 4;
        margin-left: auto;
    }

    .footer-main {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
    }

    .footer-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .hero-actions .btn {
        width: 100%;
    }

    .player-bar {
        flex-wrap: wrap;
        gap: 4px 10px;
        padding: 8px 14px;
    }

    .player-path {
        display: none;
    }

    .player-channel {
        margin-left: auto;
    }

    .player-stage {
        padding: 26px 18px;
    }

    .timeline-wrap {
        padding: 16px 18px 20px;
    }

    .hash-row {
        flex-wrap: wrap;
    }

    .hash-row code {
        flex: 1 1 100%;
        order: 3;
    }

    .copy-btn {
        margin-left: auto;
    }
}

/* ---------- source directory ---------- */

.band-sources {
    border-top: 1px solid var(--paper-line);
}

.source-lede {
    margin: 16px 0 26px;
    max-width: 72ch;
    font-size: 14px;
    color: var(--paper-muted);
}

.source-disclaimer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    border-left: 3px solid var(--red);
    background: var(--paper-2);
    padding: 18px 22px;
    margin-bottom: 28px;
}

.source-disclaimer strong {
    display: block;
    margin-bottom: 2px;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
}

.source-disclaimer p {
    margin: 0;
    max-width: 78ch;
    font-size: 13px;
    line-height: 1.7;
    color: var(--paper-muted);
}

.source-disclaimer .link-quiet {
    flex: none;
    font-size: 12.5px;
}

.source-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 2px solid var(--paper-ink);
    border-left: 1px solid var(--paper-line);
}

.source-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 26px 26px 22px;
    border-right: 1px solid var(--paper-line);
    border-bottom: 1px solid var(--paper-line);
    background: rgba(255, 255, 255, 0.12);
}

.source-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.source-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 44px;
    height: 44px;
    background: var(--red);
    color: #fff;
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 600;
}

.source-title {
    min-width: 0;
    flex: 1;
}

.source-title h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.source-host {
    display: block;
    margin-top: 2px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--paper-muted);
    overflow-wrap: anywhere;
}

.source-badge {
    flex: none;
    border: 1px solid var(--red-deep);
    color: var(--red-deep);
    padding: 1px 7px;
    font-size: 11px;
    line-height: 1.7;
}

.source-badge-local {
    border-color: var(--paper-ink);
    background: var(--paper-2);
    color: var(--paper-ink);
}

.source-package-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--paper-ink);
    background: var(--paper-2);
}

.source-package-link:hover {
    background: var(--paper-ink);
    border-color: var(--paper-ink);
    color: #fff;
}

.source-strip-local {
    display: inline-flex;
    margin-left: 8px;
    padding: 0 5px;
    border: 1px solid var(--paper-line);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--paper-muted);
    vertical-align: 2px;
}

.source-summary {
    margin: 18px 0 0;
    font-size: 14.5px;
    line-height: 1.65;
}

.source-description {
    margin: 8px 0 0;
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--paper-muted);
}

.source-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
}

.source-tags span {
    border: 1px solid var(--paper-line);
    padding: 1px 7px;
    font-size: 11px;
    line-height: 1.7;
    color: var(--paper-muted);
}

.source-card-foot {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
    padding-top: 20px;
}

.source-hint {
    font-size: 11.5px;
    color: var(--paper-muted);
}

.source-wait {
    border: 1px dashed var(--paper-line);
    padding: 3px 9px;
    font-size: 11.5px;
    color: var(--paper-muted);
}

.source-cta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 42px;
    background: var(--ink);
    color: var(--screen);
}

.source-cta-block {
    padding: 30px 32px 32px;
    border-right: 1px solid var(--line-dark);
}

.source-cta-block:last-child {
    border-right: 0;
}

.source-cta-dev {
    background: var(--ink-2);
}

.source-cta-kicker {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--red-bright);
}

.source-cta-block h2 {
    margin: 0 0 8px;
    font-size: 27px;
    letter-spacing: -0.03em;
}

.source-cta-block p {
    margin: 0 0 20px;
    max-width: 46ch;
    font-size: 13px;
    line-height: 1.7;
    color: var(--screen-muted);
}

.source-cta-block .btn-ghost {
    border-color: #3a4350;
    color: var(--screen);
}

.source-cta-block .btn-ghost:hover {
    border-color: var(--screen);
}

.source-footnote {
    margin: 18px 0 0;
    font-size: 11.5px;
    color: var(--paper-muted);
}

/* home strip */

.source-strip {
    border-top: 1px solid var(--paper-line);
}

.source-strip-item {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--paper-line);
    color: inherit;
    text-decoration: none;
}

.source-strip-item:hover .source-strip-body strong {
    color: var(--red-deep);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.source-strip-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--paper-2);
    border: 1px solid var(--paper-line);
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--red-deep);
}

.source-strip-body {
    min-width: 0;
}

.source-strip-body strong {
    display: block;
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.25;
    transition: color 0.15s ease;
}

.source-strip-body span {
    display: block;
    margin-top: 1px;
    font-size: 12.5px;
    color: var(--paper-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.source-strip-host {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--paper-muted);
    white-space: nowrap;
}

/* ---------- source submission ---------- */

.source-form-wrap {
    max-width: 900px;
}

.alert-error {
    border-left: 3px solid var(--red);
    background: #F3E4E2;
    padding: 18px 22px;
    margin-bottom: 24px;
}

.alert-error strong {
    display: block;
    margin-bottom: 4px;
    font-family: var(--font-display);
    font-size: 17px;
}

.alert-error ul {
    margin: 0;
    padding-left: 18px;
    font-size: 13px;
    color: var(--paper-muted);
}

.source-form {
    border-top: 2px solid var(--paper-ink);
    padding-top: 26px;
}

.source-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 26px;
}

.source-form .field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.source-form .field-wide {
    grid-column: 1 / -1;
}

.source-form .field > span {
    margin-bottom: 6px;
    font-size: 12.5px;
    font-weight: 600;
}

.source-form .field input[type="text"],
.source-form .field input[type="url"],
.source-form .field textarea {
    width: 100%;
    border: 1px solid var(--paper-line);
    background: #F4F5F6;
    padding: 11px 12px;
    font-size: 14px;
    font-family: inherit;
    border-radius: 0;
}

.source-form .field textarea {
    resize: vertical;
    line-height: 1.6;
}

.source-form .field input:focus,
.source-form .field textarea:focus {
    outline: 2px solid var(--red);
    outline-offset: -1px;
    background: #fff;
}

.source-form .field small {
    margin-top: 5px;
    font-size: 11.5px;
    line-height: 1.55;
    color: var(--paper-muted);
}

.source-agree {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 26px 0 0;
    padding: 16px 0;
    border-top: 1px solid var(--paper-line);
}

.source-agree input {
    margin-top: 3px;
}

.source-agree strong {
    display: block;
    font-size: 13.5px;
}

.source-agree small {
    display: block;
    margin-top: 2px;
    font-size: 11.5px;
    color: var(--paper-muted);
}

.source-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.source-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--paper-line);
}

.source-form-actions p {
    margin: 0;
    max-width: 58ch;
    font-size: 11.5px;
    color: var(--paper-muted);
}

.source-success {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    border-left: 3px solid var(--green);
    background: var(--paper-2);
    padding: 28px 30px;
}

.source-success-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 44px;
    height: 44px;
    background: var(--green);
    color: #fff;
    font-size: 22px;
}

.source-success h2 {
    margin: 0 0 6px;
    font-size: 28px;
}

.source-success p {
    margin: 0 0 18px;
    max-width: 68ch;
    font-size: 13.5px;
    line-height: 1.75;
    color: var(--paper-muted);
}

/* ---------- developer page ---------- */

.dev-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 2px solid var(--paper-ink);
}

.dev-steps article {
    padding: 24px 26px 26px 0;
    border-right: 1px solid var(--paper-line);
}

.dev-steps article:last-child {
    border-right: 0;
    padding-right: 0;
}

.dev-step-num {
    display: block;
    margin-bottom: 16px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--red-deep);
}

.dev-steps h2 {
    margin: 0 0 6px;
    font-size: 22px;
    letter-spacing: -0.02em;
}

.dev-steps p {
    margin: 0;
    max-width: 34ch;
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--paper-muted);
}

.dev-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin-top: 54px;
    border-top: 1px solid var(--paper-line);
}

.dev-copy {
    padding: 30px 32px 10px 0;
    border-right: 1px solid var(--paper-line);
}

.dev-copy:last-child {
    border-right: 0;
    padding-right: 0;
    padding-left: 32px;
}

.dev-copy h2 {
    margin: 0 0 10px;
    font-size: 26px;
    letter-spacing: -0.03em;
}

.dev-copy p {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--paper-muted);
}

.dev-note {
    font-size: 11.5px !important;
}

.code-block {
    margin: 0 0 18px;
    padding: 18px 20px;
    background: var(--ink);
    color: var(--screen);
    overflow-x: auto;
    border-left: 3px solid var(--red);
}

.code-block code,
.doc-raw code {
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.75;
    white-space: pre;
}

.dev-endpoints {
    margin-top: 54px;
}

.dev-endpoint-row {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 78px;
    gap: 24px;
    align-items: baseline;
    padding: 12px 0;
    border-bottom: 1px solid var(--paper-line);
    font-size: 13px;
}

.dev-endpoint-row code {
    font-size: 12px;
    overflow-wrap: anywhere;
}

.dev-endpoint-row span {
    color: var(--paper-muted);
}

.dev-req,
.dev-opt {
    justify-self: end;
    font-size: 11px;
    white-space: nowrap;
}

.dev-req {
    color: var(--red-deep) !important;
}

.dev-docs {
    margin-top: 54px;
}

.dev-doc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--paper-line);
    border-left: 1px solid var(--paper-line);
}

.dev-doc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 20px 22px 22px;
    border-right: 1px solid var(--paper-line);
    border-bottom: 1px solid var(--paper-line);
    color: inherit;
    text-decoration: none;
}

.dev-doc-card:hover {
    background: var(--paper-2);
}

.dev-doc-kind {
    margin-bottom: 6px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--red-deep);
}

.dev-doc-card strong {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.dev-doc-card span:not(.dev-doc-kind):not(.dev-doc-arrow) {
    font-size: 12px;
    color: var(--paper-muted);
}

.dev-doc-arrow {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 15px;
    color: var(--paper-muted);
    transition: transform 0.15s ease, color 0.15s ease;
}

.dev-doc-card:hover .dev-doc-arrow {
    transform: translateX(3px);
    color: var(--red-deep);
}

/* raw docs */

.doc-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--paper-line);
    font-size: 11.5px;
    color: var(--paper-muted);
}

.page-file-name {
    font-size: 20px !important;
    overflow-wrap: anywhere;
}

.doc-raw {
    margin: 20px 0 0;
    padding: 24px 26px;
    max-height: 74vh;
    overflow: auto;
    background: #F2F4F5;
    border: 1px solid var(--paper-line);
    border-top: 2px solid var(--paper-ink);
}

.doc-raw code {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    .source-grid,
    .source-cta,
    .dev-steps,
    .dev-grid,
    .dev-doc-grid,
    .source-form-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .source-card:nth-child(odd) {
        border-right: 1px solid var(--paper-line);
    }

    .source-cta-block,
    .dev-steps article,
    .dev-copy {
        border-right: 0;
        border-bottom: 1px solid var(--line-dark);
    }

    .dev-steps article,
    .dev-copy {
        border-bottom-color: var(--paper-line);
        padding: 22px 0;
    }

    .dev-copy:last-child {
        padding-left: 0;
    }

    .source-cta-block:last-child {
        border-bottom: 0;
    }

    .source-disclaimer {
        flex-direction: column;
        gap: 10px;
    }

    .source-strip-item {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .source-strip-host {
        grid-column: 2;
    }
}

@media (max-width: 720px) {
    .source-card {
        padding: 22px 20px 20px;
    }

    .source-title h2 {
        font-size: 21px;
    }

    .source-form-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .dev-endpoint-row {
        grid-template-columns: minmax(0, 1fr) 64px;
        gap: 4px 16px;
    }

    .dev-endpoint-row code {
        grid-column: 1 / -1;
    }

    .dev-req,
    .dev-opt {
        grid-column: 2;
        grid-row: 2;
    }

    .dev-endpoint-row span:not(.dev-req):not(.dev-opt) {
        grid-column: 1;
        grid-row: 2;
    }

    .doc-raw {
        padding: 16px;
    }

    .doc-raw code {
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .screen-film img {
        animation: none !important;
        transform: scale(1.06);
    }

    .screen-grain {
        animation: none !important;
    }
}
