:root {
    --bg: #050807;
    --bg-elevated: rgba(10, 15, 13, 0.88);
    --panel: rgba(15, 22, 19, 0.9);
    --panel-strong: rgba(18, 27, 23, 0.96);
    --panel-soft: rgba(255, 255, 255, 0.04);
    --line: rgba(189, 255, 213, 0.1);
    --line-strong: rgba(189, 255, 213, 0.18);
    --text: #f3fbf6;
    --muted: #95a79d;
    --muted-strong: #bfd2c7;
    --accent: #9cff85;
    --accent-strong: #5ce488;
    --accent-soft: rgba(156, 255, 133, 0.12);
    --warn: #ffd36b;
    --danger: #ff7f88;
    --shadow-lg: 0 32px 80px rgba(0, 0, 0, 0.38);
    --shadow-md: 0 20px 48px rgba(0, 0, 0, 0.26);
    --radius-xl: 30px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
    --container: 1440px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 0% 0%, rgba(112, 255, 166, 0.18), transparent 24%),
        radial-gradient(circle at 100% 0%, rgba(67, 163, 127, 0.12), transparent 22%),
        radial-gradient(circle at 50% 100%, rgba(124, 255, 200, 0.08), transparent 18%),
        linear-gradient(180deg, #040705 0%, #060a09 34%, #050807 100%);
    font-family: "Inter", system-ui, sans-serif;
}

body.public-shell {
    position: relative;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

input,
textarea,
select {
    width: 100%;
    padding: 0.95rem 1.05rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    outline: none;
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(156, 255, 133, 0.5);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 4px rgba(156, 255, 133, 0.08);
}

textarea {
    min-height: 140px;
    resize: vertical;
}

label {
    display: block;
    color: var(--muted-strong);
    font-size: 0.94rem;
    line-height: 1.55;
}

label input,
label textarea,
label select {
    margin-top: 0.5rem;
}

summary {
    cursor: pointer;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    letter-spacing: -0.04em;
    line-height: 0.98;
}

h1 {
    font-size: clamp(2.4rem, 6vw, 5rem);
}

h2 {
    font-size: clamp(1.7rem, 3vw, 2.7rem);
}

h3 {
    font-size: 1.15rem;
}

p {
    margin: 0;
    color: var(--muted);
    line-height: 1.72;
}

ul {
    margin: 0;
    padding-left: 1.15rem;
}

.container {
    width: min(var(--container), calc(100% - 2rem));
    margin: 0 auto;
}

.page-shell {
    max-width: 860px;
}

.section {
    position: relative;
    padding: 4rem 0;
}

.site-chroma {
    position: fixed;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.14) 100%),
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.015) 0,
            rgba(255, 255, 255, 0.015) 1px,
            transparent 1px,
            transparent 160px
        );
    pointer-events: none;
    opacity: 0.45;
    z-index: -2;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(18px);
    background: rgba(4, 8, 7, 0.78);
    border-bottom: 1px solid var(--line);
}

.nav-shell,
.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 0;
}

.brand-cluster {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.brand {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.22rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.nav-note {
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    white-space: nowrap;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.9rem;
    height: 2.9rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
}

.nav-toggle-close {
    display: none;
}

.nav-menu {
    display: contents;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-nav,
.nav-actions,
.landing-actions,
.landing-meta,
.quick-filter-row,
.page-topper-actions,
.theme-card-meta,
.theme-overlay-actions,
.footer-column,
.download-modal-stack,
.stack-form,
.utility-band-panels,
.filter-bar,
.feature-list,
.detail-grid,
.landing-showcase,
.theme-shelf,
.gallery-grid,
.theme-grid,
.footer-grid,
.detail-grid-three,
.detail-grid-two {
    display: flex;
    gap: 0.9rem;
}

.site-nav {
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.site-nav a,
.nav-chip,
.download-card-link,
.theme-inline-link {
    border-radius: 999px;
    color: var(--muted);
    transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.site-nav a {
    padding: 0.55rem 0.8rem;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.nav-actions {
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-chip:hover,
.download-card-link:hover,
.theme-inline-link:hover {
    color: var(--text);
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.06);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    padding: 0.95rem 1.4rem;
    font-weight: 700;
    line-height: 1;
    transition: transform 160ms ease, filter 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.button:focus-visible,
.nav-chip:focus-visible,
.download-card-link:focus-visible,
.theme-inline-link:focus-visible,
.modal-close:focus-visible {
    outline: 2px solid rgba(156, 255, 133, 0.4);
    outline-offset: 2px;
}

.button-primary {
    color: #07120a;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
    box-shadow: 0 16px 34px rgba(92, 228, 136, 0.18);
}

.button-secondary {
    color: var(--accent);
    background: rgba(156, 255, 133, 0.08);
    border: 1px solid rgba(156, 255, 133, 0.18);
}

.button-ghost {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.button-compact {
    padding: 0.82rem 1.15rem;
    font-size: 0.9rem;
}

.button-block {
    width: 100%;
}

.site-main {
    position: relative;
    z-index: 1;
}

.eyebrow,
.utility-panel-label,
.footer-heading,
.theme-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.74rem;
}

.eyebrow {
    padding: 0.42rem 0.82rem;
    border-radius: 999px;
    border: 1px solid rgba(156, 255, 133, 0.18);
    background: rgba(156, 255, 133, 0.06);
    color: var(--accent);
}

.landing-deck,
.page-topper {
    position: relative;
    padding: 2rem 0 1.75rem;
}

.utility-ambient {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.utility-ambient::before {
    content: "";
    position: absolute;
    inset: -10%;
    background:
        radial-gradient(circle at 18% 24%, rgba(156, 255, 133, 0.18), transparent 20%),
        radial-gradient(circle at 82% 12%, rgba(115, 255, 205, 0.14), transparent 18%),
        linear-gradient(180deg, rgba(6, 9, 8, 0.3) 0%, rgba(6, 9, 8, 0.88) 100%),
        var(--ambient-a),
        var(--ambient-b),
        var(--ambient-c);
    background-size:
        auto,
        auto,
        auto,
        34% auto,
        30% auto,
        36% auto;
    background-position:
        center,
        center,
        center,
        -5% 12%,
        108% 20%,
        65% 120%;
    background-repeat: no-repeat;
    filter: saturate(1.15) blur(0px);
    opacity: 0.3;
    transform: scale(1.05);
    z-index: -2;
}

.utility-ambient::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5, 8, 7, 0.1) 0%, rgba(5, 8, 7, 0.86) 62%, rgba(5, 8, 7, 0.98) 100%);
    z-index: -1;
}

.landing-grid,
.page-topper-grid,
.utility-band-grid,
.theme-detail-grid,
.split-layout,
.detail-grid-two {
    display: grid;
    gap: 1.2rem;
}

.landing-grid {
    align-items: end;
    grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
}

.landing-copy,
.theme-detail-copy,
.utility-band-copy,
.page-topper-grid > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.landing-meta {
    flex-wrap: wrap;
}

.landing-meta span,
.theme-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.landing-showcase {
    flex-direction: column;
}

.ambient-card,
.theme-card,
.utility-panel,
.download-card,
.form-card,
.prose-card,
.addon-card,
.auth-card,
.metric-card,
.admin-panel,
.info-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.ambient-card,
.utility-panel,
.download-card,
.form-card,
.prose-card,
.addon-card-body,
.auth-card,
.metric-card,
.admin-panel,
.info-card {
    padding: 1.2rem;
}

.ambient-card {
    display: grid;
    gap: 0.85rem;
    backdrop-filter: blur(8px);
}

.ambient-card-media,
.detail-media-frame,
.download-modal-media,
.gallery-frame,
.addon-media {
    aspect-ratio: 16 / 9;
    border-radius: calc(var(--radius-lg) - 6px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at 20% 20%, rgba(156, 255, 133, 0.18), transparent 24%),
        linear-gradient(180deg, rgba(20, 30, 25, 0.94), rgba(9, 13, 12, 0.98));
    overflow: hidden;
}

.ambient-card-media img,
.detail-media-frame img,
.download-modal-media img,
.gallery-frame img,
.addon-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.75rem;
}

.ambient-card-copy {
    display: grid;
    gap: 0.25rem;
}

.ambient-card-copy strong {
    font-size: 1rem;
}

.ambient-card-copy span {
    color: var(--muted);
    font-size: 0.88rem;
}

.catalog-section {
    padding-top: 2rem;
}

.section-bar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.35rem;
}

.section-bar-tight {
    margin-top: 2rem;
}

.text-link {
    color: var(--accent);
    font-weight: 600;
}

.quick-filter-row {
    flex-wrap: wrap;
}

.theme-grid {
    flex-wrap: wrap;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.theme-grid-home {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.theme-shelf {
    overflow-x: auto;
    padding-bottom: 0.4rem;
    scroll-snap-type: x proximity;
}

.theme-shelf::-webkit-scrollbar {
    height: 10px;
}

.theme-shelf::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

.theme-shelf .theme-card {
    flex: 0 0 min(340px, 82vw);
    min-width: min(340px, 82vw);
    scroll-snap-align: start;
}

.theme-card {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.theme-media-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    border: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(10, 16, 14, 0.98), rgba(6, 10, 9, 0.94)),
        radial-gradient(circle at top right, rgba(156, 255, 133, 0.12), transparent 26%);
    box-shadow: var(--shadow-md);
}

.theme-media {
    display: block;
    aspect-ratio: 16 / 9;
    padding: 0.85rem;
}

.theme-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: calc(var(--radius-lg) - 6px);
    background:
        linear-gradient(180deg, rgba(20, 31, 26, 0.78), rgba(11, 18, 15, 0.9));
    padding: 0.6rem;
}

.theme-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem;
    background:
        linear-gradient(180deg, rgba(5, 8, 7, 0.15) 0%, rgba(5, 8, 7, 0.2) 24%, rgba(5, 8, 7, 0.94) 100%);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.theme-media-shell:hover .theme-overlay,
.theme-media-shell:focus-within .theme-overlay {
    opacity: 1;
    transform: translateY(0);
}

.theme-overlay-top,
.theme-overlay-bottom {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.6rem;
}

.theme-overlay-bottom {
    align-items: end;
}

.theme-overlay-copy {
    display: grid;
    gap: 0.3rem;
}

.theme-overlay-copy h3 {
    font-size: 1.08rem;
}

.theme-overlay-copy p {
    font-size: 0.86rem;
    color: rgba(243, 251, 246, 0.74);
}

.theme-status-badge {
    padding: 0.35rem 0.72rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted-strong);
}

.theme-status-badge-warn {
    color: var(--warn);
    border-color: rgba(255, 211, 107, 0.18);
    background: rgba(255, 211, 107, 0.1);
}

.theme-overlay-actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.45rem;
}

.theme-inline-link,
.download-card-link,
.download-modal-secondary {
    font-size: 0.88rem;
    font-weight: 600;
}

.theme-card-meta {
    flex-wrap: wrap;
    padding: 0 0.35rem;
}

.utility-band {
    position: relative;
}

.utility-band-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
    align-items: start;
}

.utility-band-grid.compact {
    align-items: stretch;
}

.utility-band-copy,
.utility-band-panels,
.faq-stack {
    height: 100%;
}

.utility-band-panels {
    flex-direction: column;
}

.feature-list {
    flex-direction: column;
    color: var(--muted);
    line-height: 1.7;
}

.feature-list li {
    margin: 0;
}

.utility-panel {
    display: grid;
    gap: 0.55rem;
    min-height: 100%;
}

.utility-panel-large {
    padding: 1.4rem;
}

.utility-panel strong,
.download-card h2 {
    font-size: 1.2rem;
    line-height: 1.15;
}

.filter-deck {
    display: grid;
    gap: 1rem;
}

.filter-bar {
    flex-wrap: wrap;
    align-items: center;
    padding: 1rem;
    border-radius: var(--radius-xl);
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
}

.filter-bar input,
.filter-bar select {
    flex: 1 1 160px;
}

.toggle-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    width: auto;
    padding: 0.7rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
}

.toggle-chip input {
    width: auto;
    margin: 0;
}

.page-topper-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    align-items: end;
}

.manager-topper {
    align-items: stretch;
}

.theme-detail-grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.95fr);
    align-items: center;
}

.theme-detail-preview {
    display: flex;
}

.detail-media-frame {
    width: 100%;
}

.split-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.78fr);
    align-items: start;
}

.split-layout-detail {
    gap: 1.4rem;
}

.detail-main,
.detail-sidebar {
    display: grid;
    gap: 1rem;
}

.detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-grid-three {
    flex-wrap: wrap;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.detail-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.callout {
    padding: 0.95rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
}

.callout-warn {
    color: var(--warn);
    border-color: rgba(255, 211, 107, 0.2);
    background: rgba(255, 211, 107, 0.08);
}

.download-card {
    display: grid;
    gap: 0.9rem;
    position: sticky;
    top: 6rem;
}

.gallery-grid {
    flex-wrap: wrap;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.gallery-grid-wide {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.faq-stack {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.faq-stack details {
    padding: 1rem 1.05rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow-md);
}

.faq-stack summary {
    font-weight: 700;
    color: var(--text);
}

.faq-stack p {
    margin-top: 0.65rem;
}

.form-shell {
    width: min(960px, 100%);
}

.form-card,
.stack-form {
    display: grid;
    gap: 1rem;
}

.field-grid {
    display: grid;
    gap: 1rem;
}

.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-full {
    grid-column: 1 / -1;
}

.addon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.addon-card {
    overflow: hidden;
}

.addon-media {
    border-radius: 0;
    border: 0;
    border-bottom: 1px solid var(--line);
}

.addon-card-body {
    display: grid;
    gap: 0.8rem;
}

.subtle-note {
    color: var(--muted-strong);
    font-size: 0.88rem;
}

.prose-card-public {
    width: min(900px, 100%);
}

.prose-card-public p + p {
    margin-top: 1rem;
}

.prose-card-public ul,
.prose-card-public ol {
    margin-top: 1rem;
}

.page-topper-centered,
.centered,
.centered-actions {
    text-align: center;
}

.centered-actions {
    justify-content: center;
}

.flash {
    width: min(var(--container), calc(100% - 2rem));
    margin: 1rem auto 0;
    padding: 0.95rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
}

.flash-success {
    background: rgba(156, 255, 133, 0.1);
    border-color: rgba(156, 255, 133, 0.16);
}

.flash-error {
    background: rgba(255, 127, 136, 0.1);
    border-color: rgba(255, 127, 136, 0.16);
}

.flash-info {
    background: rgba(255, 211, 107, 0.08);
    border-color: rgba(255, 211, 107, 0.16);
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(16px);
    z-index: 100;
}

.modal.is-open {
    display: flex;
}

.modal-panel {
    position: relative;
    width: min(560px, 100%);
    border-radius: calc(var(--radius-xl) + 2px);
    background: var(--panel-strong);
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow-lg);
    padding: 1.35rem;
}

.modal-panel-download {
    display: grid;
    gap: 1rem;
}

.modal-close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 0;
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
}

.download-modal-stack {
    flex-direction: column;
    align-items: stretch;
}

.download-modal-secondary {
    text-align: center;
    color: var(--muted-strong);
}

.site-footer {
    padding: 2.5rem 0 3rem;
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 1.25rem;
}

.footer-brand {
    display: grid;
    gap: 0.75rem;
}

.footer-column {
    flex-direction: column;
    gap: 0.65rem;
}

.footer-column a {
    color: var(--muted);
}

.footer-column a:hover {
    color: var(--text);
}

.footer-heading {
    color: var(--muted-strong);
}

.auth-shell {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 1rem;
}

.auth-card {
    width: min(440px, 100%);
}

.admin-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 1.25rem;
    background: rgba(7, 11, 10, 0.96);
    border-right: 1px solid var(--line);
}

.brand-admin {
    display: block;
    margin-bottom: 1rem;
}

.admin-nav {
    display: grid;
    gap: 0.35rem;
}

.admin-nav a {
    color: var(--muted);
    padding: 0.55rem 0.75rem;
    border-radius: 14px;
}

.admin-nav a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-logout {
    margin-top: 1rem;
}

.admin-main {
    padding: 1rem 1.25rem 2rem;
}

.admin-content {
    display: grid;
    gap: 1.25rem;
}

.admin-grid-cards {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.metric-card strong {
    display: block;
    margin-top: 0.5rem;
    font-size: 1.8rem;
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.toolbar-form {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 0.8rem 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: left;
    vertical-align: top;
}

.admin-form {
    display: grid;
    gap: 1rem;
}

.code-block {
    white-space: pre-wrap;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1rem;
    color: #d3f7e7;
}

@media (max-width: 1180px) {
    .landing-grid,
    .page-topper-grid,
    .theme-detail-grid,
    .split-layout,
    .utility-band-grid,
    .footer-grid,
    .detail-grid-three,
    .detail-grid-two,
    .two-col {
        grid-template-columns: 1fr;
    }

    .download-card {
        position: static;
    }

    .footer-grid {
        gap: 1rem;
    }
}

@media (max-width: 900px) {
    .nav-shell,
    .site-nav,
    .nav-actions,
    .section-bar,
    .landing-actions,
    .page-topper-actions,
    .theme-overlay-bottom,
    .toolbar,
    .toolbar-form {
        flex-direction: column;
        align-items: stretch;
    }

    .site-nav {
        width: 100%;
    }

    .site-nav a,
    .nav-chip,
    .button,
    .download-card-link {
        justify-content: center;
    }

    .theme-overlay {
        opacity: 1;
        transform: translateY(0);
        background: linear-gradient(180deg, rgba(5, 8, 7, 0.18) 0%, rgba(5, 8, 7, 0.38) 30%, rgba(5, 8, 7, 0.94) 100%);
    }

    .theme-overlay-actions {
        align-items: stretch;
    }

    .theme-shelf .theme-card {
        min-width: 88vw;
        flex-basis: 88vw;
    }
}

@media (max-width: 640px) {
    .container,
    .flash {
        width: min(var(--container), calc(100% - 1.1rem));
    }

    .landing-deck,
    .page-topper,
    .section {
        padding-top: 1.35rem;
        padding-bottom: 1.35rem;
    }

    .theme-grid,
    .theme-grid-home,
    .gallery-grid,
    .addon-grid {
        grid-template-columns: 1fr;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }
}

/* Public refresh override */

:root {
    --bg: #090b10;
    --bg-elevated: rgba(12, 15, 24, 0.92);
    --panel: rgba(17, 21, 32, 0.94);
    --panel-strong: rgba(22, 27, 40, 0.98);
    --panel-soft: rgba(255, 255, 255, 0.03);
    --line: rgba(255, 255, 255, 0.06);
    --line-strong: rgba(255, 255, 255, 0.12);
    --text: #f5f7fb;
    --muted: #97a0b4;
    --muted-strong: #c3cada;
    --accent: #88c7ff;
    --accent-strong: #5ba8ff;
    --accent-soft: rgba(136, 199, 255, 0.14);
    --warn: #ffbf7a;
    --danger: #ff8a9a;
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.34);
    --shadow-md: 0 14px 30px rgba(0, 0, 0, 0.26);
    --radius-xl: 16px;
    --radius-lg: 12px;
    --radius-md: 10px;
    --radius-sm: 8px;
    --container: 1460px;
}

body {
    background:
        radial-gradient(circle at top left, rgba(91, 168, 255, 0.12), transparent 24%),
        radial-gradient(circle at bottom right, rgba(255, 182, 112, 0.08), transparent 20%),
        linear-gradient(180deg, #07090e 0%, #090b10 52%, #0a0d14 100%);
    color: var(--text);
}

.site-chroma {
    opacity: 0.18;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.012) 0, rgba(255, 255, 255, 0.012) 1px, transparent 1px, transparent 180px);
}

.site-header {
    background: rgba(8, 11, 17, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
}

.nav-shell {
    padding: 0.75rem 0;
    gap: 1.25rem;
}

.brand {
    font-size: 1.08rem;
    letter-spacing: 0.01em;
}

.nav-note {
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
}

.site-nav {
    gap: 0.35rem;
}

.site-nav a,
.nav-chip,
.download-card-link,
.theme-inline-link,
.download-modal-secondary {
    border-radius: 8px;
}

.site-nav a {
    padding: 0.45rem 0.65rem;
    font-size: 0.92rem;
    color: var(--muted-strong);
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.nav-actions {
    gap: 0.6rem;
}

.button {
    border-radius: 10px;
    padding: 0.88rem 1.2rem;
    font-weight: 700;
    box-shadow: none;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    color: #08111d;
    background: linear-gradient(135deg, #cfe6ff 0%, #79beff 100%);
}

.button-secondary {
    color: #dbe8ff;
    background: rgba(136, 199, 255, 0.12);
    border: 1px solid rgba(136, 199, 255, 0.14);
}

.button-ghost {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.button-compact {
    padding: 0.72rem 0.95rem;
}

.button:focus-visible,
.nav-chip:focus-visible,
.download-card-link:focus-visible,
.theme-inline-link:focus-visible,
.modal-close:focus-visible {
    outline: 2px solid rgba(136, 199, 255, 0.42);
}

input,
textarea,
select {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.035);
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(136, 199, 255, 0.42);
    box-shadow: 0 0 0 4px rgba(136, 199, 255, 0.08);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 0.94;
}

h2 {
    font-size: clamp(1.45rem, 3vw, 2.2rem);
    line-height: 1;
}

p {
    color: var(--muted);
    line-height: 1.62;
}

.section {
    padding: 2rem 0;
}

.section-first {
    padding-top: 1.25rem;
}

.compact-top {
    padding: 1rem 0 0.4rem;
}

.compact-top-bar,
.motion-band,
.promo-band,
.page-topper-grid,
.split-layout,
.utility-band-grid.compact {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 1rem;
    align-items: start;
}

.compact-top-bar-wide {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
}

.compact-top-copy,
.promo-copy,
.motion-copy,
.theme-page-copy {
    display: grid;
    gap: 0.8rem;
}

.compact-top-actions {
    display: flex;
    align-items: start;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.metric-row,
.info-cluster {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.metric-chip,
.info-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.1rem;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted-strong);
    font-size: 0.82rem;
    letter-spacing: 0.02em;
}

.ui-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

.theme-card-platforms,
.platform-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.platform-icon {
    color: var(--muted-strong);
}

.eyebrow,
.utility-panel-label,
.footer-heading,
.theme-status-badge {
    border-radius: 7px;
    letter-spacing: 0.12em;
}

.eyebrow {
    padding: 0.4rem 0.62rem;
    color: var(--accent);
    background: rgba(136, 199, 255, 0.08);
    border: 0;
}

.section-bar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.95rem;
}

.section-bar-tight {
    margin-top: 1.1rem;
}

.quick-filter-row {
    flex-wrap: wrap;
}

.nav-chip {
    padding: 0.5rem 0.72rem;
    border: 0;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted-strong);
    letter-spacing: 0.06em;
    text-transform: none;
    font-size: 0.8rem;
}

.text-link {
    color: var(--muted-strong);
    font-size: 0.92rem;
}

.text-link:hover {
    color: var(--text);
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1rem;
}

.theme-grid-home {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.theme-shelf {
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.theme-shelf .theme-card {
    flex: 0 0 min(320px, 78vw);
    min-width: min(320px, 78vw);
}

.theme-card {
    gap: 0.55rem;
}

.theme-media-shell {
    border-radius: 12px;
    border: 0;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: var(--shadow-md);
}

.theme-media,
.ambient-card-media,
.detail-media-frame,
.download-modal-media,
.gallery-frame,
.addon-media {
    aspect-ratio: 16 / 9;
    border-radius: 12px;
}

.theme-media img,
.detail-media-frame img,
.download-modal-media img,
.gallery-frame img,
.addon-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.35rem;
}

.theme-overlay {
    padding: 0.8rem;
    background: linear-gradient(180deg, rgba(5, 7, 12, 0.05) 0%, rgba(5, 7, 12, 0.24) 30%, rgba(5, 7, 12, 0.96) 100%);
}

.theme-overlay-copy h3 {
    font-size: 1rem;
}

.theme-overlay-copy p {
    color: rgba(245, 247, 251, 0.68);
}

.theme-overlay-top,
.theme-overlay-bottom {
    gap: 0.7rem;
}

.theme-status-badge {
    padding: 0.32rem 0.56rem;
    background: rgba(255, 255, 255, 0.08);
    border: 0;
}

.theme-status-badge-warn {
    color: #ffd7ab;
    background: rgba(255, 191, 122, 0.14);
}

.theme-inline-link,
.download-card-link,
.download-modal-secondary {
    color: var(--muted-strong);
}

.theme-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.75rem;
    padding: 0 0.1rem;
}

.theme-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    color: var(--muted-strong);
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    text-transform: none;
}

.utility-panel,
.download-card,
.form-card,
.prose-card,
.addon-card,
.auth-card,
.metric-card,
.admin-panel,
.info-card,
.mini-feature,
.promo-band,
.motion-stage {
    background: var(--panel);
    border: 0;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.utility-panel,
.download-card,
.form-card,
.prose-card,
.addon-card-body,
.auth-card,
.metric-card,
.admin-panel,
.info-card,
.mini-feature,
.promo-band {
    padding: 1rem;
}

.utility-panel {
    gap: 0.5rem;
}

.utility-panel-large {
    padding: 1.15rem;
}

.promo-band {
    display: grid;
    gap: 1rem;
}

.promo-band-slim {
    gap: 0.85rem;
}

.mini-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.mini-feature {
    display: grid;
    gap: 0.45rem;
}

.mini-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    background: rgba(136, 199, 255, 0.1);
    color: var(--accent);
}

.motion-band {
    background: transparent;
    box-shadow: none;
}

.motion-stage {
    display: grid;
    gap: 0.9rem;
    padding: 0.9rem;
    overflow: hidden;
    position: relative;
    background:
        linear-gradient(180deg, rgba(17, 21, 32, 0.94), rgba(12, 15, 24, 0.98));
}

.motion-stage-screen {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    border-radius: 10px;
    background:
        radial-gradient(circle at 22% 26%, rgba(91, 168, 255, 0.22), transparent 16%),
        radial-gradient(circle at 78% 62%, rgba(255, 183, 111, 0.18), transparent 18%),
        linear-gradient(180deg, rgba(6, 8, 14, 0.98), rgba(10, 13, 19, 1));
}

.motion-stage-screen-compact {
    min-height: 100%;
}

.motion-line,
.motion-orb,
.motion-grid-overlay {
    position: absolute;
    inset: 0;
}

.motion-line {
    background: linear-gradient(90deg, transparent, rgba(136, 199, 255, 0.8), transparent);
    height: 1px;
    left: -20%;
    right: -20%;
    inset: auto;
    animation: motion-slide 10s linear infinite;
}

.motion-line-a {
    top: 24%;
}

.motion-line-b {
    top: 50%;
    animation-duration: 14s;
}

.motion-line-c {
    top: 72%;
    animation-duration: 18s;
}

.motion-orb {
    width: 14rem;
    height: 14rem;
    border-radius: 50%;
    filter: blur(24px);
    opacity: 0.36;
    animation: motion-drift 14s ease-in-out infinite;
}

.motion-orb-a {
    top: -3rem;
    left: -2rem;
    background: rgba(91, 168, 255, 0.4);
}

.motion-orb-b {
    right: -4rem;
    bottom: -5rem;
    background: rgba(255, 183, 111, 0.28);
    animation-duration: 18s;
}

.motion-grid-overlay {
    background:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.9) 18%, rgba(0, 0, 0, 0.9) 82%, transparent);
}

.motion-theme-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.motion-theme-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.5rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted-strong);
    font: inherit;
    cursor: pointer;
    text-align: left;
}

.motion-theme-link:hover {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text);
}

.motion-theme-icon {
    display: inline-flex;
    color: var(--accent);
}

@keyframes motion-slide {
    0% { transform: translateX(-10%); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateX(120%); opacity: 0; }
}

@keyframes motion-drift {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(1rem, -0.75rem, 0) scale(1.08); }
}

.theme-page-copy {
    margin-bottom: 1rem;
}

.detail-media-frame,
.gallery-frame,
.download-modal-media {
    border: 0;
    background:
        linear-gradient(180deg, rgba(17, 21, 32, 1), rgba(11, 14, 22, 1));
}

.lightbox-trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    text-align: left;
}

.preview-button-note {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.55rem;
    color: var(--muted-strong);
    font-size: 0.82rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.split-layout {
    grid-template-columns: minmax(0, 1.06fr) minmax(300px, 0.74fr);
}

.detail-main,
.detail-sidebar {
    display: grid;
    gap: 1rem;
}

.download-card {
    position: sticky;
    top: 5rem;
    gap: 0.8rem;
}

.callout {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 0.85rem;
    border-radius: 10px;
    background: rgba(255, 191, 122, 0.12);
    color: #ffd7ab;
}

.faq-stack {
    display: grid;
    gap: 0.7rem;
}

.faq-stack details {
    background: var(--panel);
    border-radius: 10px;
    padding: 0.9rem 1rem;
    box-shadow: var(--shadow-md);
}

.faq-stack summary {
    font-weight: 700;
    color: var(--text);
}

.site-footer {
    padding: 2rem 0 2.6rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) repeat(3, minmax(0, 0.7fr));
    gap: 1rem;
}

.footer-column {
    display: grid;
    gap: 0.5rem;
}

.footer-brand p {
    max-width: 30rem;
}

.filter-deck {
    gap: 0.8rem;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 0.75fr)) auto auto;
    gap: 0.7rem;
    align-items: center;
}

.toggle-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.85rem;
    padding: 0 0.8rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted-strong);
}

.toggle-chip input {
    width: auto;
    margin: 0;
}

.modal {
    padding: 1rem;
    background: rgba(5, 7, 12, 0.72);
}

.modal-panel,
.lightbox-panel {
    width: min(640px, 100%);
    border-radius: 14px;
    background: var(--panel-strong);
    border: 0;
    box-shadow: var(--shadow-lg);
    padding: 1rem;
}

.lightbox-panel {
    width: min(1180px, 100%);
    display: grid;
    gap: 0.75rem;
}

.lightbox-panel img {
    width: 100%;
    max-height: calc(100vh - 8rem);
    object-fit: contain;
}

#lightbox-caption {
    color: var(--muted-strong);
    font-size: 0.92rem;
}

.modal-close {
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
}

.download-modal-media-generic {
    padding: 0;
}

.download-modal-media-generic .motion-stage-screen {
    width: 100%;
    height: 100%;
    min-height: 0;
}

.utility-ambient::before {
    background:
        radial-gradient(circle at 18% 24%, rgba(91, 168, 255, 0.18), transparent 20%),
        radial-gradient(circle at 82% 18%, rgba(255, 183, 111, 0.14), transparent 18%),
        linear-gradient(180deg, rgba(7, 9, 14, 0.15), rgba(7, 9, 14, 0.8));
    background-repeat: no-repeat;
    opacity: 0.45;
    animation: motion-drift 18s ease-in-out infinite;
}

.utility-ambient::after {
    background: linear-gradient(180deg, rgba(8, 11, 17, 0.08), rgba(8, 11, 17, 0.92));
}

@media (max-width: 980px) {
    .nav-shell,
    .compact-top-bar,
    .compact-top-bar-wide,
    .motion-band,
    .promo-band,
    .split-layout,
    .utility-band-grid.compact,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .nav-shell {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .site-nav {
        grid-column: 1 / -1;
        order: 3;
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 0.4rem;
        padding-bottom: 0.15rem;
        scrollbar-width: none;
    }

    .site-nav::-webkit-scrollbar {
        display: none;
    }

    .nav-note {
        display: none;
    }

    .compact-top-actions,
    .section-bar {
        align-items: stretch;
        justify-content: flex-start;
    }

    .mini-feature-grid,
    .filter-bar,
    .motion-theme-list,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .download-card {
        position: static;
    }
}

@media (max-width: 640px) {
    .container,
    .flash {
        width: calc(100% - 1rem);
    }

    .section,
    .compact-top {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    h1 {
        font-size: clamp(1.8rem, 10vw, 2.5rem);
    }

    h2 {
        font-size: clamp(1.3rem, 7vw, 1.8rem);
    }

    .button {
        width: 100%;
        justify-content: center;
    }

    .theme-grid,
    .theme-grid-home {
        grid-template-columns: 1fr;
    }

    .theme-shelf .theme-card {
        min-width: 84vw;
        flex-basis: 84vw;
    }

    .theme-overlay {
        opacity: 1;
        transform: none;
        padding: 0.7rem;
        background: linear-gradient(180deg, rgba(5, 7, 12, 0.05) 0%, rgba(5, 7, 12, 0.22) 28%, rgba(5, 7, 12, 0.95) 100%);
    }

    .theme-overlay-bottom {
        display: grid;
        gap: 0.65rem;
        align-items: stretch;
    }

    .theme-overlay-actions {
        align-items: stretch;
    }

    .theme-card-meta {
        gap: 0.45rem 0.55rem;
    }

    .motion-stage-screen {
        min-height: 160px;
    }

    .lightbox-panel {
        padding: 0.75rem;
    }
}

.home-browser {
    padding-top: 0.85rem;
}

.filter-rail {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.filter-pill-row {
    display: flex;
    gap: 0.55rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    scrollbar-width: none;
}

.filter-pill-row::-webkit-scrollbar {
    display: none;
}

.filter-pill,
.category-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.2rem;
    padding: 0.48rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted-strong);
    font-size: 0.84rem;
    white-space: nowrap;
    transition: background 140ms ease, color 140ms ease, transform 140ms ease, opacity 140ms ease;
}

.filter-pill:hover,
.category-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

.filter-pill.active,
.category-pill.active {
    background: rgba(136, 199, 255, 0.16);
    color: #e6f2ff;
}

[data-catalog-root] {
    transition: opacity 180ms ease, transform 180ms ease;
}

[data-catalog-root].is-filtering {
    opacity: 0.3;
    transform: translateY(6px);
    pointer-events: none;
}

.theme-card {
    gap: 0.4rem;
}

.theme-overlay-trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.theme-media-shell {
    border-radius: 8px;
    background: transparent;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.theme-media {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0b0f16;
}

.theme-media img,
.detail-media-frame img,
.gallery-frame img,
.download-modal-media img {
    padding: 0;
}

.theme-overlay {
    padding: 0.68rem;
}

.theme-status-badge {
    font-size: 0.66rem;
}

.theme-overlay-copy h3 {
    font-size: 0.98rem;
}

.theme-overlay-copy p {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
}

.theme-card-body {
    display: grid;
    gap: 0.3rem;
    padding: 0 0.05rem;
}

.theme-card-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.98rem;
    line-height: 1.1;
    color: var(--text);
}

.theme-card-title:hover {
    color: #dcecff;
}

.theme-card-meta {
    padding: 0;
    gap: 0.4rem 0.55rem;
}

.theme-card-meta span,
.theme-card-meta a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
}

.theme-card-platforms {
    gap: 0.2rem;
}

.theme-shelf .theme-card {
    min-width: min(300px, 80vw);
    flex-basis: min(300px, 80vw);
}

.theme-grid {
    gap: 0.9rem;
}

.help-prose {
    display: grid;
    gap: 0.9rem;
}

.help-prose h2 {
    margin-top: 0.4rem;
}

.help-list {
    padding-left: 1.1rem;
    color: var(--muted-strong);
}

.submit-page {
    display: grid;
    gap: 1rem;
}

.submit-copy {
    display: grid;
    gap: 0.8rem;
    max-width: 720px;
}

.submit-form {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    background: var(--panel);
    box-shadow: var(--shadow-md);
}

.submit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.submit-grid label,
.captcha-row label {
    display: grid;
    gap: 0.45rem;
}

.field-span-2 {
    grid-column: 1 / -1;
}

.submit-checks {
    display: grid;
    gap: 0.7rem;
}

.captcha-row {
    max-width: 280px;
}

.auth-divider {
    position: relative;
    margin: 0.3rem 0;
    text-align: center;
    color: var(--muted);
}

.auth-divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.auth-divider span {
    position: relative;
    padding: 0 0.65rem;
    background: var(--panel);
}

@media (max-width: 980px) {
    .submit-grid {
        grid-template-columns: 1fr;
    }

    .field-span-2 {
        grid-column: auto;
    }
}

:root {
    --bg: #060912;
    --bg-elevated: rgba(10, 14, 24, 0.9);
    --panel: rgba(13, 17, 28, 0.82);
    --panel-strong: rgba(14, 18, 30, 0.94);
    --panel-soft: rgba(255, 255, 255, 0.03);
    --line: rgba(255, 255, 255, 0.06);
    --line-strong: rgba(255, 255, 255, 0.1);
    --text: #f4f7fb;
    --muted: #8993a7;
    --muted-strong: #c4ccda;
    --accent: #bfd4ff;
    --accent-strong: #dce7ff;
    --accent-soft: rgba(191, 212, 255, 0.14);
    --shadow-md: 0 16px 36px rgba(0, 0, 0, 0.22);
    --shadow-lg: 0 28px 72px rgba(0, 0, 0, 0.34);
}

body {
    background:
        radial-gradient(circle at 0% 0%, rgba(133, 168, 255, 0.12), transparent 24%),
        radial-gradient(circle at 100% 0%, rgba(95, 126, 214, 0.1), transparent 20%),
        radial-gradient(circle at 50% 100%, rgba(180, 198, 255, 0.06), transparent 18%),
        linear-gradient(180deg, #05070d 0%, #0a0d15 42%, #060912 100%);
}

.site-chroma {
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.1) 100%),
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.012) 0,
            rgba(255, 255, 255, 0.012) 1px,
            transparent 1px,
            transparent 160px
        );
    opacity: 0.24;
}

.site-header {
    background: rgba(6, 9, 16, 0.84);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.nav-shell {
    padding: 0.78rem 0;
}

.site-nav a {
    padding: 0.45rem 0.68rem;
    border-radius: 8px;
}

.site-nav a:hover,
.site-nav a.active {
    background: rgba(255, 255, 255, 0.06);
}

.button-primary {
    background: #d6e4ff;
    color: #09111f;
}

.button-primary:hover {
    background: #e3edff;
}

.button-secondary,
.button-ghost {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.button-secondary:hover,
.button-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
}

.nav-cta {
    padding: 0.72rem 0.95rem;
    border-radius: 10px;
}

.button-app-cta {
    position: relative;
    overflow: hidden;
    gap: 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: linear-gradient(135deg, rgba(245, 249, 255, 0.99) 0%, rgba(196, 221, 255, 0.99) 48%, rgba(112, 178, 255, 0.99) 100%);
    color: #071120;
    box-shadow: 0 16px 34px rgba(79, 148, 255, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.42);
    font-weight: 800;
    letter-spacing: -0.01em;
}

.button-app-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 18%, rgba(255, 255, 255, 0.34) 50%, transparent 82%);
    opacity: 0.68;
    transform: translateX(-58%);
    transition: transform 220ms ease;
    pointer-events: none;
}

.button-app-cta:hover::after {
    transform: translateX(30%);
}

.button-app-cta:hover {
    background: linear-gradient(135deg, rgba(249, 251, 255, 1) 0%, rgba(209, 229, 255, 1) 48%, rgba(124, 186, 255, 1) 100%);
    box-shadow: 0 18px 40px rgba(79, 148, 255, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.button-app-cta > * {
    position: relative;
    z-index: 1;
}

.button-app-cta .ui-icon {
    flex: 0 0 auto;
}

.home-browser {
    padding-top: 0.45rem;
}

.filter-rail {
    margin-bottom: 0.75rem;
}

.filter-pill-row {
    gap: 0.45rem;
}

.filter-pill,
.category-pill {
    min-height: 2rem;
    padding: 0.42rem 0.72rem;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted-strong);
}

.filter-pill.active,
.category-pill.active {
    background: rgba(191, 212, 255, 0.14);
    color: #edf3ff;
}

.filter-pill-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.38rem;
    font-size: 0.92rem;
    line-height: 1;
}

.theme-grid {
    gap: 0.75rem;
}

.theme-shelf {
    gap: 0.8rem;
}

.theme-shelf .theme-card {
    min-width: min(292px, 79vw);
    flex-basis: min(292px, 79vw);
}

.theme-media-shell {
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.theme-overlay {
    padding: 0.62rem;
    background: linear-gradient(180deg, rgba(4, 7, 12, 0.06) 0%, rgba(4, 7, 12, 0.18) 30%, rgba(4, 7, 12, 0.95) 100%);
}

.theme-status-badge {
    padding: 0.28rem 0.48rem;
    border-radius: 999px;
    background: rgba(5, 8, 14, 0.58);
}

.theme-card-body {
    gap: 0.22rem;
}

.theme-card-meta {
    gap: 0.34rem 0.48rem;
}

.theme-card-meta span,
.theme-card-meta a {
    font-size: 0.76rem;
}

.category-pill {
    min-height: 1.66rem;
    padding: 0.26rem 0.52rem;
    font-size: 0.74rem;
}

.detail-media-frame,
.gallery-frame,
.download-modal-media {
    border-radius: 8px;
}

.help-prose {
    gap: 0.7rem;
    max-width: 720px;
}

.help-prose details {
    padding: 0.72rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.help-prose details:last-of-type {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.submit-form {
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.submit-grid {
    gap: 0.78rem;
}

.submit-checks {
    gap: 0.6rem;
}

.captcha-row {
    max-width: 240px;
}

@media (max-width: 980px) {
    .nav-shell {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "brand cta"
            "nav nav";
        align-items: center;
    }

    .brand-cluster {
        grid-area: brand;
    }

    .nav-actions {
        grid-area: cta;
    }

    .site-nav {
        grid-area: nav;
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-bottom: 0.15rem;
        scrollbar-width: none;
    }

    .site-nav::-webkit-scrollbar {
        display: none;
    }

    .nav-note {
        display: none;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(var(--container), calc(100% - 1rem));
    }

    .nav-shell {
        grid-template-columns: 1fr;
        grid-template-areas:
            "brand"
            "nav"
            "cta";
        gap: 0.7rem;
    }

    .site-nav {
        gap: 0.45rem;
    }

    .site-nav a {
        padding: 0.44rem 0.62rem;
        font-size: 0.92rem;
        white-space: nowrap;
    }

    .nav-actions {
        justify-content: stretch;
    }

    .nav-actions .button {
        width: 100%;
        justify-content: center;
    }

    .section {
        padding: 1.35rem 0;
    }

    .section-first {
        padding-top: 0.85rem;
    }

    .theme-grid {
        grid-template-columns: 1fr;
        gap: 0.68rem;
    }

    .theme-shelf .theme-card {
        min-width: min(86vw, 286px);
        flex-basis: min(86vw, 286px);
    }

    .theme-card-title {
        font-size: 0.94rem;
    }
}

select {
    color-scheme: dark;
}

select option,
select optgroup {
    color: #f4f7fb;
    background: #0a1020;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.72rem;
}

.brand-mark {
    width: 1.55rem;
    height: 1.55rem;
    flex: 0 0 auto;
}

.brand-word {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.auth-brand {
    margin-bottom: 0.25rem;
}

.brand-admin .brand-word {
    font-size: 1rem;
}

.section-shelf {
    padding-top: 1rem;
    padding-bottom: 1.4rem;
}

.shelf-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.72rem;
}

.shelf-title {
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    line-height: 1;
    letter-spacing: -0.03em;
}

.theme-shelf {
    gap: 0.85rem;
    padding-bottom: 0.1rem;
    scrollbar-width: none;
}

.theme-shelf::-webkit-scrollbar {
    display: none;
}

.text-link {
    white-space: nowrap;
}

.site-footer {
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 0.72fr));
    gap: 1.1rem;
    padding-top: 1.2rem;
    padding-bottom: 1.45rem;
}

.footer-brand {
    gap: 0.55rem;
}

.footer-brand p {
    max-width: 20rem;
    font-size: 0.96rem;
}

.footer-column a {
    color: var(--muted);
}

.footer-column a:hover {
    color: var(--text);
}

.about-page {
    display: grid;
    gap: 1rem;
    max-width: 1080px;
}

.about-copy {
    display: grid;
    gap: 0.72rem;
    max-width: 760px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.about-card {
    display: grid;
    gap: 0.8rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.about-link-list,
.donation-grid {
    display: grid;
    gap: 0.7rem;
}

.about-link-card {
    display: grid;
    gap: 0.22rem;
    padding: 0.85rem 0.9rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.about-link-card strong {
    color: var(--text);
}

.about-link-card span {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .brand-word {
        font-size: 1rem;
    }

    .brand-mark {
        width: 1.42rem;
        height: 1.42rem;
    }

    .shelf-head {
        align-items: flex-end;
    }

    .footer-grid {
        padding-top: 1rem;
        padding-bottom: 1.1rem;
    }
}

.download-modal-stage {
    position: relative;
    display: grid;
}

.download-modal-view {
    grid-area: 1 / 1;
    display: grid;
    gap: 0.9rem;
    opacity: 0;
    transform: translateX(18px);
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
}

.download-modal-view.is-active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.download-modal-back {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: fit-content;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted-strong);
    font-weight: 600;
    cursor: pointer;
}

.download-modal-back .ui-icon {
    transform: rotate(180deg);
}

.about-flow {
    display: grid;
    gap: 1.2rem;
}

.help-support-block {
    display: grid;
    gap: 1rem;
    margin-top: 0.8rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.help-support-copy {
    display: grid;
    gap: 0.45rem;
}

.help-support-form {
    display: grid;
    gap: 0.95rem;
    padding: 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.about-hero,
.about-section {
    display: grid;
    gap: 0.75rem;
}

.about-lead {
    max-width: 46rem;
    font-size: clamp(1.02rem, 2vw, 1.18rem);
    color: var(--muted-strong);
    line-height: 1.7;
}

.about-pills {
    gap: 0.55rem;
    flex-wrap: wrap;
}

.about-inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.about-inline-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.4rem;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--muted-strong);
    font-weight: 600;
    transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.about-inline-link:hover {
    color: var(--text);
    background: rgba(191, 212, 255, 0.12);
    border-color: rgba(191, 212, 255, 0.16);
    transform: translateY(-1px);
}

.about-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(191, 212, 255, 0.16) 14%, rgba(191, 212, 255, 0.06) 86%, transparent);
}

.about-link-list {
    display: grid;
    gap: 0;
}

.about-link-line {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 140ms ease, color 140ms ease;
}

.about-link-line:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.about-link-line:hover {
    transform: translateX(3px);
}

.about-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    background: rgba(191, 212, 255, 0.1);
    color: #dfeaff;
}

.about-link-line:nth-child(2) .about-link-icon {
    background: rgba(255, 203, 133, 0.12);
    color: #ffd9a7;
}

.about-link-line:nth-child(3) .about-link-icon {
    background: rgba(193, 170, 255, 0.12);
    color: #dac8ff;
}

.about-link-line:nth-child(4) .about-link-icon {
    background: rgba(136, 222, 255, 0.12);
    color: #cbeeff;
}

.about-link-copy {
    display: grid;
    gap: 0.16rem;
}

.about-link-copy strong {
    color: var(--text);
    font-size: 1rem;
}

.about-link-copy span {
    color: var(--muted);
    font-size: 0.93rem;
    line-height: 1.55;
}

.about-link-arrow {
    color: var(--muted);
}

.about-donations {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.about-donate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.6rem;
    padding: 0.62rem 0.92rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-weight: 600;
    transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.about-donate:hover {
    background: rgba(191, 212, 255, 0.12);
    border-color: rgba(191, 212, 255, 0.14);
    transform: translateY(-1px);
}

.about-footnote {
    font-size: 0.96rem;
    color: var(--muted);
}

@media (max-width: 640px) {
    .about-link-line {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .about-link-arrow {
        display: none;
    }

    .about-donations {
        display: grid;
    }

    .about-donate {
        width: 100%;
        justify-content: flex-start;
    }

    .nav-shell {
        align-items: center;
        flex-wrap: wrap;
    }

    .nav-note {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-menu {
        display: none;
        width: 100%;
        grid-template-columns: 1fr;
        gap: 0.85rem;
        padding-top: 0.4rem;
    }

    .nav-shell.is-nav-open .nav-menu {
        display: grid;
    }

    .nav-shell.is-nav-open .nav-toggle-open {
        display: none;
    }

    .nav-shell.is-nav-open .nav-toggle-close {
        display: inline-flex;
    }

    .site-nav,
    .nav-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .site-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
    }

    .site-nav a,
    .nav-actions .button {
        width: 100%;
        justify-content: flex-start;
    }
}

.auth-stage {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
}

.auth-stack {
    width: min(100%, 28rem);
    display: grid;
    gap: 1rem;
}

.auth-shell .flash.container {
    width: 100%;
    margin: 0;
}

.auth-card {
    gap: 1rem;
    padding: 1.3rem 1.3rem 1.2rem;
    border-radius: 20px;
    background: rgba(13, 17, 31, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.34);
}

.auth-card h1 {
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    line-height: 0.96;
}

.auth-copy {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.auth-note-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.auth-note {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 2.2rem;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--muted-strong);
    font-size: 0.9rem;
}

.auth-form-slim {
    gap: 0.85rem;
}

.theme-overlay-copy {
    justify-items: start;
}

.theme-overlay-copy p {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    padding: 0.52rem 0.72rem;
    border-radius: 999px;
    background: rgba(10, 13, 24, 0.8);
    color: #f5f7ff;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.download-modal-media {
    margin-bottom: 1rem;
    border-radius: 18px;
    overflow: hidden;
}

.modal-panel-download {
    max-width: 40rem;
    padding: 1rem;
    border-radius: 24px;
    background: rgba(11, 14, 25, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.download-modal-stage {
    gap: 0;
}

.download-modal-view {
    gap: 1rem;
}

.download-modal-summary {
    display: grid;
    gap: 0.45rem;
}

.download-modal-summary h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 0.98;
}

.download-modal-meta {
    margin: 0;
    color: var(--muted-strong);
    font-size: 0.92rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.download-modal-view p {
    margin: 0;
    color: var(--muted);
    line-height: 1.68;
}

.download-modal-secondary {
    min-height: 2.6rem;
    border: 0;
    background: transparent;
    color: #dfe7ff;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.download-modal-secondary:hover {
    color: #ffffff;
}

.download-modal-back {
    color: #d2dbfb;
}

.admin-form-intro {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 1.1rem;
}

.admin-form-intro h2 {
    margin: 0;
}

.addon-image-preview {
    display: grid;
    gap: 0.55rem;
    margin: 1rem 0;
}

.addon-image-preview img {
    width: min(100%, 20rem);
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.template-variable-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0 0 1rem;
}

.template-variable-chip {
    min-height: 2.2rem;
    padding: 0.45rem 0.72rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted-strong);
    font: inherit;
    cursor: pointer;
}

.template-variable-chip:hover {
    background: rgba(223, 231, 255, 0.08);
    border-color: rgba(223, 231, 255, 0.14);
}

.email-editor-shell {
    display: grid;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.email-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.email-editor-toolbar button {
    min-width: 2.4rem;
    min-height: 2.4rem;
    padding: 0.45rem 0.7rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font: inherit;
    cursor: pointer;
}

.email-editor-toolbar button:hover {
    background: rgba(223, 231, 255, 0.08);
}

.email-editor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 1rem;
}

.email-editor-column {
    display: grid;
    gap: 0.55rem;
}

.email-editor {
    min-height: 26rem;
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text);
    line-height: 1.7;
    overflow: auto;
}

.email-editor:focus {
    outline: 1px solid rgba(223, 231, 255, 0.22);
}

.email-editor-hidden {
    display: none;
}

.email-source-toggle {
    display: grid;
    gap: 0.55rem;
}

.email-source-toggle summary {
    cursor: pointer;
    color: var(--muted-strong);
}

.email-source-toggle textarea {
    min-height: 14rem;
}

.email-preview-frame {
    width: 100%;
    min-height: 32rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    background: #090b14;
}

@media (max-width: 900px) {
    .email-editor-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .auth-stage {
        padding: 1.1rem 0.8rem;
    }

    .download-modal-summary h2 {
        font-size: 1.8rem;
    }
}

.nav-shell {
    position: relative;
}

@media (max-width: 640px) {
    .site-header {
        overflow: visible;
    }

    .nav-shell {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "brand toggle";
        align-items: center;
        gap: 0.75rem;
        padding: 0.72rem 0;
    }

    .brand-cluster {
        grid-area: brand;
        min-width: 0;
    }

    .brand-link {
        min-width: 0;
    }

    .brand-word {
        white-space: nowrap;
    }

    .nav-note {
        display: none;
    }

    .nav-toggle {
        grid-area: toggle;
        display: inline-flex;
        width: 2.8rem;
        height: 2.8rem;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.03);
        border-color: rgba(255, 255, 255, 0.06);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
    }

    .nav-menu {
        position: absolute;
        top: calc(100% + 0.45rem);
        left: 0;
        right: 0;
        display: none;
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0.8rem;
        align-items: stretch;
        border-radius: 16px;
        background: rgba(10, 14, 24, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.06);
        box-shadow: 0 24px 54px rgba(0, 0, 0, 0.34);
        z-index: 8;
    }

    .nav-shell.is-nav-open .nav-menu {
        display: grid;
    }

    .nav-shell.is-nav-open .nav-toggle-open {
        display: none;
    }

    .nav-shell.is-nav-open .nav-toggle-close {
        display: inline-flex;
    }

    .site-nav,
    .nav-actions {
        width: 100%;
    }

    .site-nav {
        display: grid;
        gap: 0.3rem;
    }

    .site-nav a {
        display: flex;
        align-items: center;
        min-height: 2.85rem;
        padding: 0.7rem 0.85rem;
        border-radius: 12px;
        font-size: 0.98rem;
        white-space: normal;
    }

    .nav-actions {
        display: grid;
        justify-content: stretch;
        padding-top: 0.15rem;
    }

    .nav-actions .button,
    .nav-cta {
        width: 100%;
        min-height: 3rem;
        padding: 0.85rem 1rem;
        justify-content: flex-start;
        align-items: center;
        text-align: left;
        white-space: normal;
        line-height: 1.2;
    }

    .nav-cta {
        display: flex;
    }
}

.theme-manager-page {
    padding-top: 1.35rem;
}

.theme-manager-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1.08fr);
    gap: clamp(1.2rem, 3vw, 2.25rem);
    align-items: center;
}

.theme-manager-hero-copy,
.theme-manager-flow-copy,
.theme-manager-animated-copy,
.theme-manager-faq-copy {
    display: grid;
    gap: 0.95rem;
}

.theme-manager-hero-copy h1 {
    max-width: 9ch;
    font-size: clamp(2.9rem, 7vw, 5.6rem);
}

.theme-manager-hero-copy p {
    max-width: 37rem;
    font-size: 1.04rem;
    color: #c9d4ee;
}

.theme-manager-hero-metrics .metric-chip {
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(255, 255, 255, 0.06);
    color: #dce6fb;
}

.theme-manager-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
}

.button-app-cta-large {
    min-height: 3.55rem;
    padding: 0.95rem 1.35rem;
    font-size: 1rem;
}

.theme-manager-hero-note {
    display: block;
    flex-basis: 100%;
    color: #dbe5fb;
    font-size: 0.86rem;
    font-weight: 600;
}

.theme-manager-inline-downloads {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.theme-manager-secondary {
    min-height: 3.1rem;
}

.theme-manager-proof-list {
    display: grid;
    gap: 0.62rem;
    margin-top: 0.25rem;
}

.theme-manager-proof-list span {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #d5def5;
    font-size: 0.92rem;
}

.theme-manager-proof-list .ui-icon {
    color: #99bbff;
}

.theme-manager-hero-art {
    position: relative;
    perspective: 2200px;
    transform-style: preserve-3d;
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    --move-x: 0px;
    --move-y: 0px;
    --pointer-x: 50%;
    --pointer-y: 24%;
}

.theme-manager-shot-shell {
    position: relative;
    z-index: 1;
    width: min(100%, 880px);
    margin-left: auto;
    padding: clamp(0.9rem, 2vw, 1.15rem);
    border-radius: 32px;
    border: 1px solid rgba(174, 204, 255, 0.14);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
        linear-gradient(180deg, rgba(14, 19, 34, 0.95), rgba(7, 10, 18, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 46px 120px rgba(4, 7, 16, 0.55);
    transform-style: preserve-3d;
    transform:
        translate3d(var(--move-x), var(--move-y), 0)
        rotateX(var(--tilt-y))
        rotateY(var(--tilt-x));
    transition: transform 180ms ease-out;
}

.theme-manager-shot-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(255, 255, 255, 0.2), transparent 26%),
        linear-gradient(125deg, rgba(147, 185, 255, 0.08), transparent 42%, rgba(255, 190, 124, 0.08));
    pointer-events: none;
}

.theme-manager-shot-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.95rem;
    transform: translateZ(30px);
}

.theme-manager-shot-dots {
    display: inline-flex;
    gap: 0.34rem;
}

.theme-manager-shot-dots span {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
}

.theme-manager-shot-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2rem;
    padding: 0 0.78rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #eaf0ff;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.theme-manager-shot-image {
    width: 100%;
    height: auto;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(5, 8, 15, 0.88);
    transform: translateZ(56px);
    filter: drop-shadow(0 42px 60px rgba(3, 5, 12, 0.4));
}

.theme-manager-hero-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(32px);
    opacity: 0.82;
    pointer-events: none;
}

.theme-manager-hero-orb-a {
    top: -2.5rem;
    right: 0;
    width: 12rem;
    height: 12rem;
    background: radial-gradient(circle, rgba(124, 184, 255, 0.42), transparent 68%);
}

.theme-manager-hero-orb-b {
    left: 18%;
    bottom: -1rem;
    width: 13.5rem;
    height: 13.5rem;
    background: radial-gradient(circle, rgba(255, 185, 108, 0.28), transparent 70%);
}

.theme-manager-hero-orb-c {
    right: 18%;
    top: 22%;
    width: 9rem;
    height: 9rem;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 72%);
}

.theme-manager-float {
    position: absolute;
    z-index: 3;
    display: grid;
    gap: 0.24rem;
    width: min(15rem, 44%);
    padding: 0.9rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 12, 22, 0.86);
    box-shadow: 0 22px 54px rgba(4, 7, 16, 0.36);
    backdrop-filter: blur(18px);
}

.theme-manager-float-label {
    color: #9cb0d8;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.theme-manager-float strong {
    font-size: 0.95rem;
    line-height: 1.36;
}

.theme-manager-float-left {
    left: -1rem;
    bottom: 1.4rem;
}

.theme-manager-float-right {
    top: 1.8rem;
    right: -0.8rem;
}

.theme-manager-float-bottom {
    right: 2.8rem;
    bottom: -1rem;
}

.theme-manager-flow-section {
    padding-top: 1.2rem;
}

.theme-manager-flow {
    display: grid;
    gap: 1.1rem;
}

.theme-manager-flow-copy {
    max-width: 46rem;
}

.theme-manager-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.theme-manager-feature-card {
    display: grid;
    gap: 0.82rem;
    padding: 1rem;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, rgba(18, 24, 40, 0.72), rgba(11, 15, 26, 0.82));
}

.theme-manager-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    color: #dce7ff;
}

.theme-manager-feature-card strong {
    font-size: 1rem;
}

.theme-manager-feature-card p {
    font-size: 0.93rem;
    line-height: 1.65;
}

.theme-manager-animated-band {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1fr);
    gap: 1rem;
    align-items: start;
}

.theme-manager-animated-copy {
    max-width: 38rem;
}

.theme-manager-animated-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.theme-manager-animated-link {
    display: grid;
    gap: 0.4rem;
    min-height: 5rem;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(22, 28, 44, 0.8), rgba(10, 14, 24, 0.92)),
        rgba(255, 255, 255, 0.03);
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.theme-manager-animated-link:hover {
    transform: translateY(-2px);
    border-color: rgba(165, 203, 255, 0.22);
    box-shadow: 0 18px 36px rgba(4, 7, 16, 0.28);
}

.theme-manager-animated-name,
.theme-manager-animated-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.theme-manager-animated-name {
    font-weight: 700;
}

.theme-manager-animated-meta {
    color: #cdd7ef;
    font-size: 0.84rem;
}

.theme-manager-section-bar {
    margin-bottom: 1.1rem;
}

.theme-manager-shelf {
    padding-bottom: 0.35rem;
}

.theme-manager-faq-section {
    padding-top: 3rem;
}

.theme-manager-faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
    gap: 1.4rem;
    align-items: start;
}

.theme-manager-faq-copy {
    max-width: 30rem;
}

.theme-manager-faq-list {
    display: grid;
}

.theme-manager-faq-list details {
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.theme-manager-faq-list details:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.theme-manager-faq-list summary {
    list-style: none;
    color: var(--text);
    font-weight: 600;
}

.theme-manager-faq-list summary::-webkit-details-marker {
    display: none;
}

.theme-manager-faq-list p {
    margin-top: 0.65rem;
}

.theme-manager-modal-panel {
    max-width: 42rem;
    padding: 1rem;
    background:
        linear-gradient(180deg, rgba(13, 18, 33, 0.98), rgba(8, 11, 20, 0.98)),
        rgba(9, 12, 20, 0.96);
}

.theme-manager-modal-media {
    background:
        linear-gradient(180deg, rgba(17, 23, 39, 0.92), rgba(8, 11, 20, 0.98)),
        rgba(255, 255, 255, 0.02);
}

.theme-manager-modal-copy {
    display: grid;
    gap: 0.55rem;
    margin-bottom: 0.95rem;
}

.theme-manager-modal-points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 0.95rem;
}

.theme-manager-modal-points span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.2rem;
    padding: 0 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: #dce4fb;
    font-size: 0.84rem;
    font-weight: 600;
}

@media (max-width: 1180px) {
    .theme-manager-hero {
        grid-template-columns: 1fr;
    }

    .theme-manager-shot-shell {
        margin-left: 0;
    }

    .theme-manager-float-left {
        left: 0.5rem;
    }

    .theme-manager-float-right {
        right: 0.5rem;
    }

    .theme-manager-float-bottom {
        right: 1.6rem;
    }
}

@media (max-width: 980px) {
    .theme-manager-feature-grid,
    .theme-manager-animated-band,
    .theme-manager-faq-grid {
        grid-template-columns: 1fr;
    }

    .theme-manager-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .theme-manager-animated-list {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .theme-manager-proof-list {
        gap: 0.5rem;
    }

    .theme-manager-proof-list span {
        font-size: 0.88rem;
    }

    .theme-manager-float {
        position: static;
        width: 100%;
        margin-top: 0.8rem;
    }

    .theme-manager-shot-shell {
        margin-bottom: 0.9rem;
    }

    .theme-manager-feature-grid,
    .theme-manager-animated-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .theme-manager-page {
        padding-top: 0.7rem;
    }

    .theme-manager-hero-copy h1 {
        font-size: 2.7rem;
    }

    .theme-manager-hero-actions,
    .theme-manager-inline-downloads,
    .theme-manager-modal-points {
        flex-direction: column;
        align-items: stretch;
    }

    .theme-manager-hero-note {
        font-size: 0.82rem;
    }

    .theme-manager-shot-shell {
        padding: 0.78rem;
        border-radius: 24px;
    }

    .theme-manager-shot-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .theme-manager-shot-label {
        white-space: normal;
    }

    .theme-manager-float {
        padding: 0.82rem 0.9rem;
        border-radius: 16px;
    }

    .theme-manager-feature-card,
    .theme-manager-animated-link {
        border-radius: 16px;
    }

    .theme-manager-modal-panel {
        padding: 0.9rem;
        border-radius: 20px;
    }
}

.theme-manager-page {
    padding-top: 1rem;
}

.theme-manager-minimal {
    display: grid;
    justify-items: center;
    gap: 1rem;
    text-align: center;
}

.theme-manager-minimal-copy {
    display: grid;
    gap: 0.85rem;
    max-width: 52rem;
}

.theme-manager-minimal-copy h1 {
    max-width: 12ch;
    margin: 0 auto;
    font-size: clamp(2.9rem, 8vw, 5.2rem);
}

.theme-manager-minimal-copy p {
    max-width: 38rem;
    margin: 0 auto;
    font-size: 1.04rem;
    color: #cbd6ee;
}

.theme-manager-minimal-actions {
    display: grid;
    justify-items: center;
    gap: 0.7rem;
}

.theme-manager-minimal-note {
    margin: 0;
    color: #dbe5fb;
    font-size: 0.86rem;
    font-weight: 600;
}

.theme-manager-minimal-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #c8d6f8;
    font-size: 0.94rem;
    font-weight: 600;
}

.theme-manager-minimal-metrics {
    justify-content: center;
}

.theme-manager-minimal-metrics .metric-chip {
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(255, 255, 255, 0.06);
    color: #dce6fb;
}

.theme-manager-minimal-shot {
    position: relative;
    width: min(100%, 1040px);
    margin-top: 0.45rem;
    perspective: 2200px;
    transform-style: preserve-3d;
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    --move-x: 0px;
    --move-y: 0px;
    --pointer-x: 50%;
    --pointer-y: 24%;
}

.theme-manager-minimal-frame {
    position: relative;
    padding: clamp(0.75rem, 1.8vw, 1rem);
    border-radius: 28px;
    border: 1px solid rgba(176, 207, 255, 0.12);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
        linear-gradient(180deg, rgba(14, 18, 30, 0.96), rgba(8, 10, 18, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.09),
        0 34px 90px rgba(4, 7, 16, 0.42);
    transform-style: preserve-3d;
    transform:
        translate3d(var(--move-x), var(--move-y), 0)
        rotateX(var(--tilt-y))
        rotateY(var(--tilt-x));
    transition: transform 180ms ease-out;
}

.theme-manager-minimal-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(255, 255, 255, 0.14), transparent 22%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 26%);
    pointer-events: none;
}

.theme-manager-minimal-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    transform: translateZ(24px);
}

.theme-manager-minimal-dots {
    display: inline-flex;
    gap: 0.34rem;
}

.theme-manager-minimal-dots span {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.24);
}

.theme-manager-minimal-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2rem;
    padding: 0 0.76rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: #dce7ff;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.theme-manager-minimal-image {
    width: 100%;
    height: auto;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(5, 8, 15, 0.88);
    transform: translateZ(40px);
    filter: drop-shadow(0 24px 38px rgba(3, 5, 12, 0.28));
}

.theme-manager-mini-faq-section {
    padding-top: 2.8rem;
}

.theme-manager-mini-faq {
    display: grid;
    gap: 1rem;
}

.theme-manager-mini-faq-copy {
    display: grid;
    gap: 0.55rem;
}

.theme-manager-mini-faq-list {
    display: grid;
}

.theme-manager-mini-faq-list details {
    padding: 0.9rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.theme-manager-mini-faq-list details:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.theme-manager-mini-faq-list summary {
    list-style: none;
    color: var(--text);
    font-weight: 600;
}

.theme-manager-mini-faq-list summary::-webkit-details-marker {
    display: none;
}

.theme-manager-mini-faq-list p {
    margin-top: 0.55rem;
}

@media (max-width: 640px) {
    .theme-manager-minimal-copy h1 {
        font-size: 2.75rem;
    }

    .theme-manager-inline-downloads,
    .theme-manager-modal-points {
        flex-direction: column;
        align-items: stretch;
    }

    .theme-manager-minimal-link {
        font-size: 0.9rem;
    }

    .theme-manager-minimal-frame {
        padding: 0.72rem;
        border-radius: 22px;
    }

    .theme-manager-minimal-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .theme-manager-minimal-label {
        white-space: normal;
    }
}

.modal {
    overflow-y: auto;
    overscroll-behavior: contain;
    padding:
        max(1rem, calc(env(safe-area-inset-top, 0px) + 0.75rem))
        1rem
        max(1rem, calc(env(safe-area-inset-bottom, 0px) + 0.75rem));
}

.modal.is-open {
    align-items: flex-start;
}

.modal-panel,
.lightbox-panel {
    max-height: calc(100dvh - 2rem);
    margin: auto 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.modal-panel-download {
    gap: 0.9rem;
}

.modal-close {
    z-index: 3;
}

.download-modal-media {
    margin-bottom: 0.7rem;
    flex-shrink: 0;
}

.download-modal-summary h2 {
    padding-right: 2.8rem;
}

.download-modal-view .button-block,
.download-modal-view .download-modal-secondary {
    min-height: 3rem;
}

@media (max-width: 900px), (max-height: 760px) {
    .modal {
        padding:
            max(0.85rem, calc(env(safe-area-inset-top, 0px) + 0.5rem))
            0.85rem
            max(0.85rem, calc(env(safe-area-inset-bottom, 0px) + 0.5rem));
    }

    .modal-panel,
    .lightbox-panel {
        width: min(100%, 38rem);
        max-height: calc(100dvh - 1.7rem);
        padding: 0.9rem;
        border-radius: 18px;
    }

    .download-modal-media {
        max-height: none;
        aspect-ratio: 16 / 9;
        border-radius: 12px;
    }

    .download-modal-media img {
        padding: 0.45rem;
    }

    .download-modal-stage,
    .download-modal-view {
        gap: 0.8rem;
    }

    .download-modal-summary h2 {
        font-size: clamp(1.6rem, 4vw, 2.2rem);
    }
}

@media (max-width: 640px) {
    .nav-menu .site-nav,
    .nav-menu .nav-actions {
        display: contents !important;
        width: auto;
    }

    .nav-menu {
        gap: 0.5rem;
        padding: 0.65rem;
        grid-auto-flow: row;
        align-content: start;
    }

    .nav-menu .site-nav a,
    .nav-menu .nav-actions .button,
    .nav-menu .nav-actions .nav-cta {
        display: flex;
        justify-self: stretch;
        width: 100%;
        min-height: 3rem;
        padding: 0.82rem 0.95rem;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.06);
        background: rgba(255, 255, 255, 0.035);
        color: var(--text);
        white-space: normal;
        line-height: 1.2;
        box-shadow: none;
        margin: 0;
    }

    .nav-menu .site-nav a:hover,
    .nav-menu .site-nav a.active {
        background: rgba(255, 255, 255, 0.07);
        border-color: rgba(255, 255, 255, 0.1);
        color: var(--text);
    }

    .nav-menu .nav-actions .button-app-cta {
        background: rgba(255, 255, 255, 0.035);
        color: var(--text);
        border-color: rgba(255, 255, 255, 0.06);
    }

    .nav-menu .nav-actions .button-app-cta::after {
        display: none;
    }

    .nav-menu .nav-actions .button-app-cta:hover {
        background: rgba(255, 255, 255, 0.07);
        box-shadow: none;
    }
}
