.hex-download-hero { background: radial-gradient(ellipse at 76% 45%, #5eead416, transparent 46%), radial-gradient(ellipse at 18% 0%, #ffc7f014, transparent 46%); border-bottom: 1px solid var(--pt-panel); }
.hex-download-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, .64fr); align-items: center; gap: 24px; padding-block: clamp(40px, 7vw, 88px); }
.hex-download-illustration { display: flex; justify-content: center; align-items: center; gap: clamp(3px, 1vw, 14px); min-height: 160px; }
.hex-download-device { display: grid; place-items: center; width: clamp(62px, 9vw, 112px); aspect-ratio: 1; border: 1px solid #ffffff1a; border-radius: 25%; box-shadow: 0 14px 35px #0005; }
.hex-download-device-phone { color: var(--pt-pink); background: #312632; transform: translateY(15px) rotate(-13deg); font-size: clamp(24px, 4vw, 42px); }
.hex-download-device-desktop { color: var(--pt-teal); background: #1e3533; transform: translateY(15px) rotate(13deg); font-size: clamp(24px, 4vw, 42px); }
.hex-download-device-main { width: clamp(85px, 12vw, 148px); background: var(--pt-surface); border-color: #5eead45e; transform: translateY(-10px); }
.hex-download-device-main img { width: 69%; height: auto; }
.hex-download-section-title { font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 760; letter-spacing: -.02em; margin-bottom: 16px; }
.hex-download-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hex-platform { border: 1px solid var(--pt-panel); border-radius: 17px; overflow: hidden; background: var(--pt-surface); overflow-wrap: anywhere; }
.hex-platform-head { padding: 20px; background: linear-gradient(145deg,#ffffff09,transparent); }
.hex-platform-icon { display: grid; place-items: center; width: 43px; height: 43px; color: var(--pt-teal); background: #5eead420; border-radius: 11px; margin-bottom: 13px; font-size: 1.12rem; }
.hex-platform-android .hex-platform-icon { color: var(--pt-pink); background: #ffc7f021; }
.hex-platform-ios .hex-platform-icon { color: #d5c4ff; background: #bba4ff24; }
.hex-platform-head h3 { font-size: 1.25rem; font-weight: 750; margin-bottom: 5px; }
.hex-platform-head p { color: var(--pt-muted); margin: 0; font-size: .86rem; }
.hex-platform-source { border-top: 1px solid var(--pt-panel); padding: 12px 20px; }
.hex-source-label { display: block; font-size: .85rem; font-weight: 700; }
.hex-release-status { display: inline-flex; gap: 7px; align-items: center; margin-top: 5px; font-size: .78rem; color: var(--pt-muted); }
.hex-release-status span { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.hex-platform-release { display: grid; justify-items: start; gap: 5px; margin-top: 12px; }
.hex-platform-release small { color: var(--pt-muted); }
.hex-download-help { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 26px; color: var(--pt-teal); font-size: .9rem; }
.hex-admin-release-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-block: 3px 18px; }
.hex-admin-release-head h1 { margin: 0; font-size: 1.65rem; font-weight: 760; }
.hex-admin-release-head p { margin: 4px 0 0; color: var(--pt-muted); font-size: .88rem; }
.hex-admin-release-counts { display: flex; gap: 6px; align-items: flex-start; }
.hex-admin-release-counts span, .hex-admin-release-badge { border: 1px solid var(--pt-panel); border-radius: 20px; padding: 3px 9px; color: var(--pt-muted); font-size: .75rem; white-space: nowrap; }
.hex-admin-release-badge.is-live { color: var(--pt-teal); background: #5eead411; }
.hex-admin-release-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 14px; align-items: start; }
.hex-admin-release-panel { padding: 17px; border: 1px solid var(--pt-panel); border-radius: 13px; background: var(--pt-surface); min-width: 0; }
.hex-admin-release-panel h2 { font-weight: 700; font-size: 1rem; margin-bottom: 13px; }
.hex-admin-upload { padding: 13px; border: 1px dashed #5eead453; border-radius: 9px; background: var(--pt-bg); }
.hex-admin-upload .form-text { font-size: .75rem; }
.hex-admin-release-item { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 9px; padding: 12px 0; border-top: 1px solid var(--pt-panel); overflow-wrap: anywhere; }
.hex-admin-release-item strong { font-size: .92rem; }
.hex-admin-release-item small { display: block; color: var(--pt-muted); }
.hex-admin-release-actions { display: flex; align-items: center; gap: 7px; }
@media (max-width: 850px) { .hex-admin-release-grid { grid-template-columns: 1fr; } }
@media (max-width: 767px) {
    .hex-download-hero-inner, .hex-download-grid { grid-template-columns: 1fr; }
    .hex-download-illustration { min-height: 100px; justify-content: flex-start; margin-left: 12px; }
}

.hex-platform { scroll-margin-top: 14px; }
.hex-platform.is-detected { border-color: #5eead47a; box-shadow: 0 0 0 1px #5eead420; }
.hex-platform.is-detected .hex-platform-head { background: linear-gradient(145deg, #5eead418, transparent); }


.hex-release-button { padding: 10px 16px; border-radius: 9px; }
.hex-release-metadata { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; color: var(--pt-muted); font-size: .85rem; }
.hex-scan-link { white-space: nowrap; }
.hex-admin-scan-form { padding: 0 0 12px; color: var(--pt-muted); }
.hex-platform-brand, .hex-platform-browser { display: none; }
.hex-download-help { flex-wrap: wrap; gap: 8px 20px; }
.hex-download-help a { display: inline-flex; gap: 6px; align-items: center; }
.hex-download-device-detected .hex-download-hero { display: none; }
.hex-download-device-detected #platforms { padding-block: clamp(28px, 7vw, 95px) 45px; }
.hex-detected-platform:not([hidden]) {
    display: flex; justify-content: center; align-items: center; flex-wrap: wrap;
    gap: 4px 12px; margin: 16px auto 0; color: var(--pt-muted); font-size: .85rem;
}
.hex-detected-platform .btn { padding: 4px 0; }
.hex-download-grid.is-single-platform { grid-template-columns: minmax(0, 790px); justify-content: center; }
.hex-download-device-detected #platforms:has(.is-single-platform) .hex-download-section-title { display: none; }
.hex-download-grid.is-single-platform .hex-platform.is-detected {
    --download-accent: #5eead419;
    padding: clamp(23px, 5vw, 55px);
    border: 1px solid #ffffff16;
    border-radius: 23px;
    background: radial-gradient(ellipse at 10% 0%, var(--download-accent), transparent 66%), var(--pt-surface);
    box-shadow: 0 22px 64px #0004;
}
.hex-download-grid.is-single-platform .hex-platform-android { --download-accent: #ffc7f025; }
.hex-download-grid.is-single-platform .hex-platform-ios { --download-accent: #bba4ff24; }
.hex-download-grid.is-single-platform .hex-platform-head {
    display: flex; align-items: center; gap: clamp(13px, 3vw, 24px); padding: 0; background: none;
}
.hex-download-grid.is-single-platform .hex-platform-icon {
    width: clamp(48px, 8vw, 82px); height: clamp(48px, 8vw, 82px); font-size: clamp(25px, 4vw, 43px);
    border-radius: 22%; margin: 0; flex: 0 0 auto;
}
.hex-download-grid.is-single-platform .hex-platform-brand { display: inline; }
.hex-download-grid.is-single-platform .hex-platform-head h3 {
    font-size: clamp(1.55rem, 4.3vw, 3.65rem); line-height: 1.04; letter-spacing: -.055em; margin: 0 0 6px;
}
.hex-download-grid.is-single-platform .hex-platform-head p { font-size: clamp(.84rem, 1.65vw, 1rem); }
.hex-download-grid.is-single-platform .hex-platform-downloads { display: grid; justify-items: start; gap: 10px; margin-top: clamp(18px, 3vw, 29px); }
.hex-download-grid.is-single-platform .hex-platform-source { min-width: 0; max-width: 100%; padding: 0; border: 0; }
.hex-download-grid.is-single-platform .hex-source-label { display: none; }
.hex-download-grid.is-single-platform .hex-platform-android .hex-source-label { display: block; }
.hex-download-grid.is-single-platform .hex-platform-release { gap: 8px; margin: 0 0 12px; }
.hex-download-grid.is-single-platform .hex-release-status { font-size: .95rem; }
.hex-download-grid.is-single-platform .hex-release-button { padding: 13px 21px; font-size: 1.03rem; }
.hex-download-grid.is-single-platform .hex-platform-browser { display: inline-block; }
#platforms:has(.is-single-platform .hex-platform.is-detected .hex-platform-browser) .hex-download-help a:first-child { display: none; }
@media (max-width: 420px) {
    .hex-download-grid.is-single-platform .hex-platform-icon { width: 42px; height: 42px; font-size: 22px; }
    .hex-download-grid.is-single-platform .hex-platform-head { align-items: flex-start; }
    .hex-detected-platform:not([hidden]) { justify-content: flex-start; }
}

.hex-platform-select { display: inline-flex; align-items: center; gap: 6px; margin: 12px 20px 16px; font-size: .88rem; }
.hex-download-changelog { display: none; }
.hex-download-grid.is-single-platform { grid-template-columns: minmax(0, 1110px); }
.hex-download-grid.is-single-platform .hex-platform.is-detected {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    padding: 0;
    gap: 0;
    background: var(--pt-surface);
}
.hex-download-grid.is-single-platform .hex-download-pick {
    grid-column: 2; grid-row: 1;
    min-width: 0; padding: clamp(20px, 4vw, 45px);
    border-left: 1px solid var(--pt-panel);
    background: radial-gradient(ellipse at top right, var(--download-accent), transparent 80%);
}
.hex-download-grid.is-single-platform .hex-platform-head h3 { font-size: clamp(1.4rem, 3vw, 2.5rem); }
.hex-download-grid.is-single-platform .hex-platform-icon { width: 52px; height: 52px; font-size: 26px; }
.hex-download-grid.is-single-platform .hex-platform-select { display: none; }
.hex-download-grid.is-single-platform .hex-download-changelog {
    display: block; min-width: 0;
    grid-column: 1; grid-row: 1;
    padding: clamp(20px, 4vw, 45px);
}
.hex-download-changelog h3 { font-weight: 750; font-size: clamp(1.35rem, 3vw, 2rem); margin-bottom: 12px; }
.hex-changelog-release { color: var(--pt-teal); font-size: .9rem; font-weight: 700; }
.hex-changelog-highlights { padding-left: 1.2rem; margin-bottom: 0; line-height: 1.6; overflow-wrap: anywhere; }
.hex-changelog-highlights li + li { margin-top: .4rem; }
.hex-changelog-highlights li::marker { color: var(--pt-teal); }
@media (max-width: 767px) {
    .hex-download-grid.is-single-platform .hex-platform.is-detected { grid-template-columns: minmax(0, 1fr); }
    .hex-download-grid.is-single-platform .hex-download-pick { grid-column: 1; grid-row: 1; border-left: 0; }
    .hex-download-grid.is-single-platform .hex-download-changelog { grid-column: 1; grid-row: 2; border-top: 1px solid var(--pt-panel); }
}
