:root {
    color-scheme: dark;
    --ink: #060914;
    --ink-soft: #0a1022;
    --canvas: #050814;
    --surface: #0d1428;
    --surface-raised: #121b34;
    --surface-soft: rgba(12, 20, 40, 0.78);
    --paper: #f3f7ff;
    --paper-muted: #dce7f7;
    --text: #f4f8ff;
    --muted: #94a3bd;
    --muted-strong: #c2cee1;
    --acid: #65e2ff;
    --acid-soft: #34c7ee;
    --coral: #ffb15c;
    --aqua: #77f2c8;
    --danger: #ff7d8c;
    --border: rgba(157, 198, 255, 0.13);
    --border-strong: rgba(157, 198, 255, 0.24);
    --shadow: 0 30px 90px rgba(0, 3, 12, 0.52);
    --shadow-soft: 0 18px 48px rgba(0, 3, 12, 0.34);
    --radius-xl: 32px;
    --radius-lg: 22px;
    --radius-md: 15px;
    --container-width: 1240px;
    --font-body: "Space Grotesk", sans-serif;
    --font-display: "Syne", sans-serif;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    position: relative;
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    background:
        radial-gradient(circle at calc(12% + var(--pointer-x, 0px)) calc(-8% + var(--pointer-y, 0px)), rgba(255, 177, 92, 0.12), transparent 32rem),
        radial-gradient(circle at calc(86% + var(--pointer-x, 0px)) calc(8% + var(--pointer-y, 0px)), rgba(101, 226, 255, 0.12), transparent 33rem),
        radial-gradient(circle at 52% 70%, rgba(79, 107, 255, 0.08), transparent 42rem),
        linear-gradient(180deg, #080d1d 0%, #040711 100%);
    font-family: var(--font-body);
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -2;
    content: "";
    pointer-events: none;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.6) 0 1px, transparent 1.4px),
        radial-gradient(circle, rgba(101, 226, 255, 0.48) 0 1px, transparent 1.5px),
        linear-gradient(rgba(125, 169, 229, 0.024) 1px, transparent 1px),
        linear-gradient(90deg, rgba(125, 169, 229, 0.024) 1px, transparent 1px);
    background-position: 0 0, 28px 44px, 0 0, 0 0;
    background-size: 92px 92px, 137px 137px, 72px 72px, 72px 72px;
    mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.45) 72%, transparent 100%);
}

body::after {
    position: fixed;
    right: -18rem;
    bottom: -22rem;
    z-index: -1;
    width: 48rem;
    height: 48rem;
    content: "";
    pointer-events: none;
    border: 1px solid rgba(101, 226, 255, 0.1);
    border-radius: 50%;
    box-shadow:
        0 0 0 6rem rgba(101, 226, 255, 0.018),
        0 0 0 12rem rgba(101, 226, 255, 0.01);
}

::selection {
    color: var(--ink);
    background: var(--acid);
}

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

a:hover {
    color: inherit;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

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

h1,
h2,
h3,
h4,
p {
    margin-top: 0;
}

h1,
h2,
h3,
h4,
.brand-mark__word,
.download-card__title,
.story-card__title,
.metric-card__value {
    font-family: var(--font-display);
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    letter-spacing: -0.035em;
}

h1 {
    font-size: clamp(2.55rem, 6vw, 5rem);
    line-height: 0.98;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.04;
}

h3 {
    font-size: clamp(1.35rem, 2.4vw, 1.9rem);
    line-height: 1.15;
}

code {
    font-size: 0.84em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--acid);
    outline-offset: 4px;
}

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

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 100;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    color: var(--ink);
    background: var(--acid);
    font-weight: 800;
    transform: translateY(-150%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

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

.site-shell {
    position: relative;
    min-height: 100vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 0.8rem 0 0;
}

.site-header__inner {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 4.6rem;
    gap: 1.25rem;
    padding: 0.65rem 0.75rem 0.65rem 1.15rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(6, 10, 23, 0.82);
    box-shadow: 0 12px 44px rgba(0, 2, 10, 0.4);
    backdrop-filter: blur(22px) saturate(130%);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 0.85rem;
}

.brand-orbit {
    position: relative;
    display: grid;
    width: 2.15rem;
    height: 2.15rem;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(101, 226, 255, 0.38);
    border-radius: 50%;
    transform: rotate(-18deg);
}

.brand-orbit::before {
    width: 0.68rem;
    height: 0.68rem;
    content: "";
    border-radius: 50%;
    background: linear-gradient(135deg, #fff 0%, var(--acid) 55%, #6a7cff 100%);
    box-shadow: 0 0 18px rgba(101, 226, 255, 0.72);
}

.brand-orbit::after {
    position: absolute;
    width: 2.7rem;
    height: 0.85rem;
    content: "";
    border: 1px solid rgba(255, 177, 92, 0.75);
    border-radius: 50%;
}

.brand-orbit i {
    position: absolute;
    right: -0.36rem;
    width: 0.3rem;
    height: 0.3rem;
    border-radius: 50%;
    background: var(--coral);
    box-shadow: 0 0 10px rgba(255, 177, 92, 0.85);
}

.brand-mark__copy {
    display: grid;
    min-width: 0;
    gap: 0.18rem;
}

.brand-mark__word {
    color: var(--text);
    font-size: 0.96rem;
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1;
}

.brand-mark__word strong {
    color: var(--acid);
    font-weight: 800;
}

.brand-mark__tagline {
    color: var(--muted);
    font-size: 0.62rem;
    line-height: 1;
}

.site-header__menu {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    gap: 1rem;
}

.site-nav,
.auth-nav,
.site-footer__links,
.hero-panel__actions,
.hero-panel__footnote,
.detail-hero__meta,
.detail-hero__stats,
.download-card__meta,
.download-card__footer,
.download-card__stats,
.story-card__meta,
.story-card__footer,
.filter-bar__actions,
.toggle-row,
.editor-actions,
.editor-list__actions,
.table-actions,
.asset-row__headline,
.asset-row__meta,
.media-gallery__meta,
.admin-dashboard__actions,
.chip-cloud {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.site-nav {
    justify-content: center;
    flex: 1 1 auto;
    gap: 0.2rem;
}

.site-nav a {
    position: relative;
    padding: 0.66rem 0.78rem;
    border-radius: 10px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a::after {
    position: absolute;
    right: 0.75rem;
    bottom: 0.4rem;
    left: 0.75rem;
    height: 2px;
    content: "";
    background: var(--acid);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s var(--ease-out);
}

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

.site-nav a.is-active::after {
    transform: scaleX(1);
}

.auth-nav {
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: 0.45rem;
}

.auth-nav form {
    margin: 0;
}

.auth-nav__link,
.auth-nav__profile {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    max-width: 12rem;
    padding: 0.65rem 0.7rem;
    overflow: hidden;
    color: var(--muted-strong);
    font-size: 0.82rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-nav__link:hover,
.auth-nav__profile:hover {
    color: var(--text);
}

.auth-nav__status,
.status-dot,
.admin-health-card__status {
    width: 0.52rem;
    height: 0.52rem;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--acid);
    box-shadow: 0 0 0 4px rgba(101, 226, 255, 0.1), 0 0 16px rgba(101, 226, 255, 0.38);
}

.site-menu-toggle {
    display: none;
    align-items: center;
    gap: 0.65rem;
    margin-left: auto;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 11px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    font-weight: 700;
    cursor: pointer;
}

.site-menu-toggle__icon {
    display: grid;
    width: 1.1rem;
    gap: 0.26rem;
}

.site-menu-toggle__icon i {
    display: block;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.2s ease;
}

.site-menu-toggle[aria-expanded="true"] .site-menu-toggle__icon i:first-child {
    transform: translateY(3px) rotate(45deg);
}

.site-menu-toggle[aria-expanded="true"] .site-menu-toggle__icon i:last-child {
    transform: translateY(-3px) rotate(-45deg);
}

.site-banner {
    margin-top: 1rem;
    padding: 0.95rem 1.1rem;
    border: 1px solid rgba(119, 242, 200, 0.28);
    border-radius: var(--radius-md);
    color: #d9fff4;
    background: rgba(35, 112, 91, 0.2);
    box-shadow: var(--shadow-soft);
}

.site-main {
    min-height: 65vh;
    padding: clamp(2rem, 5vw, 4.5rem) 0 clamp(4rem, 8vw, 7rem);
}

.site-main > .container > * {
    animation: stage-in 0.62s var(--ease-out) both;
}

.site-main > .container > .container {
    width: 100%;
    max-width: none;
    padding: 0;
}

.page-shell,
.section-block,
.editor-shell {
    display: grid;
    gap: clamp(1.25rem, 2.5vw, 2rem);
}

.page-shell > * + *,
.section-block + .section-block,
.editor-shell > * + * {
    margin-top: clamp(0.5rem, 1vw, 1rem);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--acid);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    line-height: 1;
    text-transform: uppercase;
}

.section-heading,
.page-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
}

.section-heading > div,
.page-intro > div {
    display: grid;
    gap: 0.5rem;
}

.section-heading h1,
.section-heading h2,
.page-intro h1,
.page-intro h2 {
    max-width: 14ch;
    margin: 0;
}

.section-heading h1 {
    font-size: clamp(2.35rem, 5vw, 4.4rem);
}

.section-heading h2 {
    font-size: clamp(1.9rem, 3.6vw, 3rem);
}

.section-heading p,
.page-intro p,
.feature-panel p,
.empty-state p,
.detail-hero__content > p,
.admin-hero p,
.admin-health-card p {
    max-width: 48rem;
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.section-heading > p,
.page-intro > p {
    max-width: 34rem;
}

.page-intro {
    position: relative;
    align-items: end;
    min-height: 18rem;
    padding: clamp(2rem, 5vw, 4.5rem);
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 88% 15%, rgba(101, 226, 255, 0.13), transparent 22rem),
        linear-gradient(120deg, rgba(80, 102, 255, 0.08), transparent 46%),
        var(--surface-soft);
    box-shadow: var(--shadow);
}

.page-intro::before {
    position: absolute;
    top: -7rem;
    right: -4rem;
    width: 21rem;
    height: 21rem;
    content: "";
    border: 1px solid rgba(101, 226, 255, 0.2);
    border-radius: 50%;
    box-shadow: 0 0 0 3rem rgba(101, 226, 255, 0.025), 0 0 0 6rem rgba(101, 226, 255, 0.012);
}

.page-intro--notes {
    background:
        linear-gradient(120deg, rgba(255, 177, 92, 0.11), transparent 40%),
        var(--surface-soft);
}

.page-intro--notes::before {
    border-color: rgba(255, 177, 92, 0.24);
    box-shadow: 0 0 0 3rem rgba(255, 177, 92, 0.025), 0 0 0 6rem rgba(255, 177, 92, 0.012);
}

.page-intro > * {
    position: relative;
    z-index: 1;
}

.page-intro h1 {
    max-width: 11ch;
}

.hero-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(330px, 0.72fr);
    min-height: 40rem;
    overflow: hidden;
    border-radius: 38px;
    color: var(--text);
    background:
        radial-gradient(circle at 16% 18%, rgba(91, 113, 255, 0.24), transparent 29rem),
        radial-gradient(circle at 82% 72%, rgba(101, 226, 255, 0.13), transparent 26rem),
        linear-gradient(135deg, #101a35 0%, #080d1d 58%, #10152d 100%);
    box-shadow: 0 42px 100px rgba(0, 2, 14, 0.58);
}

.hero-panel::before {
    position: absolute;
    top: -16rem;
    left: -10rem;
    width: 37rem;
    height: 37rem;
    content: "";
    border: 1px solid rgba(146, 190, 255, 0.11);
    border-radius: 50%;
    box-shadow: 0 0 0 4rem rgba(101, 226, 255, 0.018), 0 0 0 8rem rgba(101, 226, 255, 0.009);
}

.hero-panel::after {
    position: absolute;
    top: 0;
    left: clamp(1.8rem, 5vw, 4.5rem);
    width: 8rem;
    height: 0.45rem;
    content: "";
    background: var(--coral);
}

.hero-panel__body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.55rem;
    padding: clamp(2.5rem, 6vw, 5.4rem);
}

.hero-panel__signal {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--muted-strong);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-panel__signal .status-dot {
    width: 0.55rem;
    height: 0.55rem;
    background: var(--acid);
    box-shadow: 0 0 0 4px rgba(101, 226, 255, 0.12), 0 0 18px rgba(101, 226, 255, 0.4);
}

.hero-panel h1 {
    max-width: 10ch;
    margin: 0;
    font-size: clamp(3.1rem, 6.6vw, 6.15rem);
    line-height: 0.92;
    letter-spacing: -0.065em;
}

.hero-panel__lede {
    max-width: 48rem;
    margin: 0;
    color: var(--muted-strong);
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.8;
}

.hero-panel__actions {
    gap: 0.7rem;
}

.hero-panel__footnote {
    gap: 1.2rem;
    padding-top: 0.35rem;
    color: var(--muted);
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-panel__footnote span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.hero-panel__footnote span::before {
    width: 0.3rem;
    height: 0.3rem;
    content: "";
    border-radius: 50%;
    background: var(--coral);
}

.hero-panel__stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 0.75rem;
    overflow: hidden;
    border-radius: 30px;
    color: var(--text);
    background: rgba(147, 190, 255, 0.13);
}

.hero-panel__stats-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    grid-column: 1 / -1;
    padding: 1.5rem;
    background: var(--ink-soft);
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-panel__stats-head strong {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--acid);
}

.hero-panel__stats-head strong::before {
    width: 0.45rem;
    height: 0.45rem;
    content: "";
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 12px currentColor;
}

.metric-card {
    display: grid;
    align-content: center;
    min-height: 9.4rem;
    gap: 0.45rem;
    padding: 1.35rem;
    border: 0;
    background: var(--ink-soft);
    transition: background 0.2s ease;
}

.metric-card:hover {
    background: #111b34;
}

.metric-card--accent {
    background: #0d2332;
}

.metric-card__value {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.055em;
}

.metric-card--accent .metric-card__value {
    color: var(--acid);
}

.metric-card__label {
    color: var(--muted);
    font-size: 0.77rem;
    font-weight: 700;
}

.button,
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.9rem;
    gap: 0.45rem;
    padding: 0.8rem 1.15rem;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--ink);
    background: var(--acid);
    box-shadow: none;
    font-weight: 800;
    line-height: 1.1;
    cursor: pointer;
    transition: transform 0.2s var(--ease-out), background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.button:hover,
.btn-primary:hover {
    color: var(--ink);
    background: #a8efff;
    box-shadow: 0 12px 30px rgba(101, 226, 255, 0.18);
    transform: translateY(-2px);
}

.button--quiet,
.button--ghost {
    color: var(--text);
    background: rgba(255, 255, 255, 0.045);
    border-color: var(--border);
}

.button--quiet:hover,
.button--ghost:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.09);
    border-color: var(--border-strong);
    box-shadow: none;
}

.hero-panel .button--quiet,
.hero-panel .button--ghost {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-strong);
}

.hero-panel .button--quiet:hover,
.hero-panel .button--ghost:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.09);
}

.button--danger {
    color: #ffd8d5;
    background: rgba(255, 118, 111, 0.1);
    border-color: rgba(255, 118, 111, 0.25);
}

.button--danger:hover {
    color: #fff;
    background: rgba(255, 118, 111, 0.17);
    border-color: rgba(255, 118, 111, 0.45);
    box-shadow: none;
}

.button--small {
    min-height: 2.35rem;
    padding: 0.58rem 0.78rem;
    border-radius: 9px;
    font-size: 0.78rem;
}

.button--wide {
    width: 100%;
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 1.7rem;
    padding: 0.3rem 0.52rem;
    border: 1px solid var(--border);
    border-radius: 7px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.035);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pill--soft {
    color: #b9f4ff;
    background: rgba(101, 226, 255, 0.09);
    border-color: rgba(101, 226, 255, 0.18);
}

.pill--warning {
    color: #ffe0bd;
    background: rgba(255, 177, 92, 0.1);
    border-color: rgba(255, 177, 92, 0.22);
}

.pill--pending {
    color: #d6d9ff;
    background: rgba(117, 128, 255, 0.12);
    border-color: rgba(136, 146, 255, 0.28);
}

.section-link {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 0.4rem;
    color: var(--acid);
    font-size: 0.86rem;
    font-weight: 800;
}

.section-link span {
    transition: transform 0.2s var(--ease-out);
}

.section-link:hover span {
    transform: translate(2px, -2px);
}

.card-grid,
.metrics-grid,
.info-grid,
.security-grid,
.trust-grid,
.value-grid,
.preview-grid,
.admin-health-grid {
    display: grid;
    gap: 1rem;
}

.card-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.card-grid--compact {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.card-grid--compact > :only-child {
    display: grid;
    grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
    grid-column: 1 / -1;
}

.download-card,
.story-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface-soft);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s var(--ease-out), border-color 0.3s ease, background 0.3s ease;
}

.download-card:hover,
.story-card:hover {
    border-color: rgba(101, 226, 255, 0.3);
    background: rgba(15, 27, 52, 0.94);
    transform: translateY(-6px);
}

.story-card:hover {
    border-color: rgba(255, 177, 92, 0.3);
}

.download-card__visual,
.story-card__visual {
    display: grid;
    min-height: 15rem;
    overflow: hidden;
    background: #090a08;
}

.download-card__visual img,
.story-card__visual img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.55s var(--ease-out), filter 0.3s ease;
}

.download-card__visual img {
    object-fit: contain;
    padding: 0.75rem;
    background:
        radial-gradient(circle at 50% 0%, rgba(101, 226, 255, 0.12), transparent 50%),
        #090a08;
}

.download-card:hover .download-card__visual img,
.story-card:hover .story-card__visual img {
    transform: scale(1.025);
}

.download-card__placeholder,
.story-card__placeholder {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    min-height: 15rem;
    padding: 1.35rem;
    overflow: hidden;
    color: var(--text);
    background:
        linear-gradient(135deg, rgba(101, 226, 255, 0.13), transparent 48%),
        repeating-linear-gradient(135deg, transparent 0 18px, rgba(255, 255, 255, 0.025) 18px 19px),
        #0c0e0a;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.story-card__placeholder {
    background:
        linear-gradient(135deg, rgba(255, 177, 92, 0.16), transparent 50%),
        repeating-linear-gradient(90deg, transparent 0 52px, rgba(255, 255, 255, 0.025) 52px 53px),
        #0c0e0a;
}

.download-card__placeholder::after,
.story-card__placeholder::after {
    position: absolute;
    right: -3rem;
    bottom: -3rem;
    width: 11rem;
    height: 11rem;
    content: "";
    border: 1px solid rgba(101, 226, 255, 0.2);
    border-radius: 50%;
    box-shadow: 0 0 0 2rem rgba(101, 226, 255, 0.02);
}

.story-card__placeholder::after {
    border-color: rgba(255, 177, 92, 0.25);
    box-shadow: 0 0 0 2rem rgba(255, 177, 92, 0.025);
}

.download-card__placeholder-mark,
.story-card__placeholder-mark {
    position: relative;
    z-index: 1;
    color: var(--acid);
    font-family: var(--font-display);
    font-size: clamp(5rem, 10vw, 8rem);
    font-weight: 800;
    letter-spacing: -0.09em;
    line-height: 0.8;
}

.story-card__placeholder-mark {
    color: var(--coral);
}

.story-card__placeholder-index {
    position: relative;
    z-index: 1;
}

.download-card__body,
.story-card__body {
    display: grid;
    align-content: start;
    gap: 1.05rem;
    min-width: 0;
    padding: 1.35rem;
}

.download-card__meta,
.story-card__meta {
    min-height: 1.7rem;
    gap: 0.4rem;
}

.story-card__meta {
    color: var(--muted);
    font-size: 0.78rem;
}

.stack {
    display: grid;
    gap: 0.9rem;
}

.stack--tight {
    gap: 0.55rem;
}

.download-card__title,
.story-card__title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
    color: var(--text);
    font-size: clamp(1.18rem, 2vw, 1.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.card-arrow {
    flex: 0 0 auto;
    color: var(--acid);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: transform 0.25s var(--ease-out);
}

.story-card .card-arrow {
    color: var(--coral);
}

.download-card:hover .card-arrow,
.story-card:hover .card-arrow {
    transform: translate(3px, -3px);
}

.download-card__summary,
.story-card__summary {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.download-card__footer,
.story-card__footer {
    align-self: end;
    justify-content: space-between;
    gap: 0.7rem;
    padding-top: 0.25rem;
}

.download-card__stats {
    gap: 0.75rem;
    color: var(--muted-strong);
    font-size: 0.75rem;
    font-weight: 700;
}

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

.feature-panel,
.empty-state,
.editor-card,
.table-shell,
.info-strip,
.account-secret,
.admin-health-card,
.trust-callout {
    border: 1px solid var(--border);
    background: var(--surface-soft);
    box-shadow: var(--shadow-soft);
}

.feature-panel {
    position: relative;
    min-height: 18rem;
    padding: 1.6rem;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.feature-panel::after {
    position: absolute;
    right: -2rem;
    bottom: -2rem;
    width: 8rem;
    height: 8rem;
    content: "";
    border: 1px solid var(--border);
    border-radius: 50%;
}

.feature-panel__index {
    display: block;
    margin-bottom: clamp(3rem, 8vw, 6rem);
    color: var(--muted);
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 800;
}

.feature-panel h2,
.feature-panel h3,
.empty-state h2,
.empty-state h3 {
    max-width: 17ch;
    margin: 0.65rem 0 0.75rem;
}

.feature-list {
    display: grid;
    gap: 0.9rem;
    margin: 1.35rem 0 0;
    padding: 0;
    color: var(--muted-strong);
    list-style: none;
}

.feature-list li {
    position: relative;
    padding-left: 1.25rem;
    line-height: 1.55;
}

.feature-list li::before {
    position: absolute;
    top: 0.62em;
    left: 0;
    width: 0.38rem;
    height: 0.38rem;
    content: "";
    border-radius: 50%;
    background: var(--acid);
}

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

.trust-grid .feature-panel {
    min-height: 30rem;
}

.trust-grid .feature-panel:nth-child(2) .feature-list li::before {
    background: var(--coral);
}

.trust-grid .feature-panel:nth-child(3) .feature-list li::before {
    background: var(--aqua);
}

.trust-callout {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.4rem;
    border-radius: var(--radius-md);
}

.trust-callout strong {
    display: block;
    margin-bottom: 0.2rem;
}

.trust-callout p {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.filter-bar,
.editor-grid {
    display: grid;
    gap: 1rem;
}

.filter-bar {
    grid-template-columns: minmax(0, 1.5fr) minmax(190px, 0.65fr) auto;
    align-items: end;
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: rgba(10, 17, 35, 0.86);
    box-shadow: var(--shadow-soft);
}

.filter-bar__actions {
    gap: 0.55rem;
}

.info-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.9rem 1.1rem;
    border-radius: var(--radius-md);
    color: var(--muted);
    font-size: 0.82rem;
}

.info-strip strong,
.info-strip a {
    color: var(--text);
}

.info-strip a {
    text-decoration: underline;
    text-decoration-color: rgba(101, 226, 255, 0.45);
    text-underline-offset: 3px;
}

.empty-state {
    position: relative;
    min-height: 20rem;
    padding: clamp(2rem, 5vw, 4rem);
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.empty-state--compact {
    min-height: 0;
}

.empty-state__mark {
    position: absolute;
    right: 1.5rem;
    bottom: -1.5rem;
    color: rgba(101, 226, 255, 0.08);
    font-family: var(--font-display);
    font-size: 12rem;
    font-weight: 800;
    line-height: 1;
}

.empty-state .button {
    margin-top: 1rem;
}

.detail-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.82fr);
    gap: 1rem;
    min-height: 36rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: rgba(19, 22, 15, 0.88);
    box-shadow: var(--shadow);
}

.detail-hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.35rem;
    min-width: 0;
    padding: clamp(1.5rem, 4vw, 3.7rem);
}

.detail-hero__content h1 {
    max-width: 12ch;
    margin: 0;
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    line-height: 0.94;
}

.detail-hero__meta,
.detail-hero__stats {
    gap: 0.45rem;
}

.detail-hero__stats {
    gap: 1rem;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.detail-hero__stats span {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.detail-hero__stats span:not(:last-child)::after {
    width: 0.25rem;
    height: 0.25rem;
    content: "";
    border-radius: 50%;
    background: var(--coral);
}

.detail-hero__visual {
    display: grid;
    min-height: 34rem;
    overflow: hidden;
    border-radius: 25px;
    background:
        radial-gradient(circle at top, rgba(101, 226, 255, 0.12), transparent 50%),
        #080a07;
}

.detail-hero__visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

.detail-hero__visual .download-card__placeholder,
.detail-hero__visual .story-card__placeholder {
    min-height: 100%;
}

.rich-copy,
.release-notes {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--paper-muted);
    background: rgba(10, 17, 35, 0.7);
    box-shadow: var(--shadow-soft);
    font-size: clamp(1rem, 1.4vw, 1.1rem);
    line-height: 1.9;
    white-space: pre-line;
}

.rich-copy {
    max-width: 62rem;
    padding: clamp(1.5rem, 4vw, 3rem);
}

.release-notes {
    position: relative;
    padding: clamp(1.5rem, 4vw, 2.6rem) clamp(1.5rem, 4vw, 3rem) clamp(1.5rem, 4vw, 2.6rem) clamp(2rem, 5vw, 4rem);
    overflow: hidden;
}

.release-notes::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0.45rem;
    content: "";
    background: var(--acid);
}

.media-gallery {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: #090b08;
    box-shadow: var(--shadow);
}

.media-gallery__stage-shell {
    position: relative;
    display: grid;
    min-height: min(68vw, 44rem);
    place-items: center;
    background:
        radial-gradient(circle at 50% 0%, rgba(101, 226, 255, 0.09), transparent 52%),
        #080a07;
}

.media-gallery__stage {
    display: grid;
    width: 100%;
    height: 100%;
    margin: 0;
    place-items: center;
}

.media-gallery__stage img {
    width: 100%;
    height: min(68vw, 44rem);
    object-fit: contain;
    padding: 1.25rem;
}

.media-gallery__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    width: 3rem;
    height: 3rem;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    color: var(--text);
    background: rgba(10, 12, 8, 0.8);
    place-items: center;
    cursor: pointer;
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
}

.media-gallery__nav:hover {
    color: var(--ink);
    background: var(--acid);
}

.media-gallery__nav span {
    margin-top: -0.12rem;
    font-size: 2rem;
    line-height: 1;
}

.media-gallery__nav--prev {
    left: 1rem;
}

.media-gallery__nav--next {
    right: 1rem;
}

.media-gallery__meta {
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
}

.media-gallery__copy {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.media-gallery__counter {
    color: var(--acid);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.media-gallery__caption {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.media-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.6rem;
    padding: 0 1rem 1rem;
}

.media-gallery__thumb {
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    opacity: 0.58;
    transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.media-gallery__thumb:hover,
.media-gallery__thumb.is-active {
    border-color: var(--acid);
    opacity: 1;
    transform: translateY(-2px);
}

.media-gallery__thumb img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.asset-list,
.editor-list {
    display: grid;
    gap: 0.7rem;
}

.asset-row,
.editor-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    gap: 1.2rem;
    padding: 1.2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: rgba(10, 17, 35, 0.72);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.asset-row:hover,
.editor-list__item:hover {
    border-color: var(--border-strong);
    background: rgba(26, 30, 22, 0.82);
}

.asset-row__copy {
    display: grid;
    min-width: 0;
    gap: 0.75rem;
}

.asset-row__headline,
.asset-row__meta {
    gap: 0.6rem;
}

.asset-row h3 {
    margin: 0;
    font-size: 1.1rem;
}

.asset-row__meta {
    color: var(--muted);
    font-size: 0.78rem;
}

.checksum-block {
    display: inline-block;
    max-width: 100%;
    padding: 0.65rem 0.8rem;
    overflow-wrap: anywhere;
    border: 1px solid rgba(119, 242, 200, 0.14);
    border-radius: 8px;
    color: #b7efdf;
    background: rgba(119, 242, 200, 0.045);
}

.field-group {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    gap: 0.45rem;
}

.field-group label,
.form-label {
    color: var(--muted-strong);
    font-size: 0.77rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.field-group--wide {
    grid-column: 1 / -1;
}

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

.form-control,
.form-select {
    width: 100%;
    min-height: 3.2rem;
    padding: 0.82rem 0.95rem;
    border: 1px solid var(--border-strong);
    border-radius: 11px;
    color: var(--text);
    background-color: rgba(8, 10, 7, 0.7);
    box-shadow: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.form-control:hover,
.form-select:hover {
    border-color: rgba(101, 226, 255, 0.28);
}

.form-control:focus,
.form-select:focus {
    color: var(--text);
    background-color: rgba(8, 10, 7, 0.92);
    border-color: var(--acid);
    box-shadow: 0 0 0 4px rgba(101, 226, 255, 0.08);
}

.form-control:disabled,
.form-control[readonly] {
    color: var(--muted);
    background: rgba(255, 255, 255, 0.025);
}

.form-control::placeholder {
    color: #6f7568;
}

textarea.form-control {
    min-height: 7rem;
    resize: vertical;
}

.form-select {
    --bs-form-select-bg-img: none;
    padding-right: 2.6rem;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--muted) 50%),
        linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
    background-repeat: no-repeat;
    background-size: 5px 5px, 5px 5px;
}

input[type="file"].form-control {
    padding: 0.45rem;
    color: var(--muted);
}

input[type="file"]::file-selector-button {
    min-height: 2.3rem;
    margin-right: 0.75rem;
    padding: 0.55rem 0.8rem;
    border: 0;
    border-radius: 8px;
    color: var(--ink);
    background: var(--acid);
    font-weight: 800;
    cursor: pointer;
}

.file-selection,
.form-note,
.table-subtle {
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 1.5;
}

.file-selection {
    display: block;
    margin-top: 0.15rem;
}

.text-danger,
.field-validation-error {
    color: #ff9b95 !important;
    font-size: 0.76rem;
}

.validation-summary {
    padding: 0.9rem 1rem;
    border: 1px solid rgba(255, 118, 111, 0.3);
    border-radius: 11px;
    color: #ffc0bc;
    background: rgba(255, 118, 111, 0.08);
}

.validation-summary:empty,
.validation-summary-valid {
    display: none;
}

.validation-summary ul {
    margin: 0;
    padding-left: 1.1rem;
}

.editor-card {
    padding: clamp(1.25rem, 3vw, 2rem);
    border-radius: var(--radius-lg);
}

.editor-card__header {
    margin-bottom: 1.35rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.editor-card__header h2 {
    margin: 0 0 0.3rem;
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
}

.editor-card__header p {
    max-width: 52rem;
    margin: 0.35rem 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.toggle-row {
    gap: 0.65rem;
    margin-top: 1.25rem;
}

.toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.6rem;
    padding: 0.5rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--muted-strong);
    background: rgba(255, 255, 255, 0.025);
    cursor: pointer;
}

.toggle input {
    width: 1rem;
    height: 1rem;
    margin: 0;
    accent-color: var(--acid-soft);
}

.editor-actions {
    gap: 0.65rem;
}

.editor-list__item > div:first-child {
    min-width: 0;
}

.editor-list__actions,
.table-actions {
    justify-content: flex-end;
    gap: 0.45rem;
}

.editor-list__actions form,
.table-actions form,
.hero-panel__actions form {
    margin: 0;
}

.preview-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-bottom: 1.25rem;
}

.preview-grid--compact {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.preview-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: rgba(8, 10, 7, 0.65);
}

.preview-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: contain;
    padding: 0.55rem;
    background: #080a07;
}

.preview-card figcaption,
.preview-card > span {
    display: block;
    padding: 0.75rem;
    color: var(--muted);
    font-size: 0.75rem;
}

.preview-card--editor {
    cursor: pointer;
}

.preview-card__toggle {
    border-top: 1px solid var(--border);
}

.preview-card__toggle input {
    margin-right: 0.35rem;
    accent-color: var(--danger);
}

.admin-tabs {
    display: flex;
    align-items: center;
    max-width: 100%;
    gap: 0.25rem;
    padding: 0.35rem;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: rgba(10, 17, 35, 0.74);
    scrollbar-width: none;
}

.admin-tabs::-webkit-scrollbar {
    display: none;
}

.admin-tabs__link {
    flex: 0 0 auto;
    padding: 0.68rem 0.85rem;
    border-radius: 9px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    transition: color 0.2s ease, background 0.2s ease;
}

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

.admin-tabs__link.is-active {
    color: var(--ink);
    background: var(--acid);
}

.admin-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    min-height: 20rem;
    gap: 2rem;
    padding: clamp(2rem, 5vw, 4rem);
    overflow: hidden;
    border-radius: var(--radius-xl);
    color: var(--ink);
    background:
        radial-gradient(circle at 86% 12%, rgba(101, 226, 255, 0.34), transparent 18rem),
        radial-gradient(circle at 68% 90%, rgba(255, 177, 92, 0.22), transparent 15rem),
        var(--paper);
    box-shadow: var(--shadow);
}

.admin-hero h1 {
    max-width: 10ch;
    margin: 0.55rem 0 0.75rem;
    font-size: clamp(2.8rem, 6vw, 5.4rem);
}

.admin-hero p {
    max-width: 36rem;
    color: #555b4e;
}

.admin-hero .eyebrow {
    color: #087b98;
}

.admin-dashboard__actions {
    justify-content: flex-end;
    gap: 0.55rem;
}

.admin-hero .button {
    color: var(--text);
    background: var(--ink);
}

.admin-hero .button:hover {
    color: var(--text);
    background: #24271f;
}

.admin-hero .button--quiet {
    color: var(--ink);
    background: transparent;
    border-color: rgba(11, 12, 9, 0.18);
}

.admin-hero .button--quiet:hover {
    color: var(--ink);
    background: rgba(11, 12, 9, 0.06);
}

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

.metrics-grid .metric-card {
    min-height: 9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

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

.admin-health-card {
    display: flex;
    align-items: flex-start;
    min-height: 11rem;
    gap: 1rem;
    padding: 1.4rem;
    border-radius: var(--radius-lg);
}

.admin-health-card__status {
    margin-top: 0.25rem;
}

.admin-health-card h2 {
    margin: 0.55rem 0 0.25rem;
    font-size: 2rem;
}

.table-shell {
    overflow-x: auto;
    border-radius: var(--radius-lg);
}

.custom-table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text);
    width: 100%;
    min-width: 760px;
    margin: 0;
    color: var(--text);
}

.custom-table thead th {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--border-strong);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.025);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.custom-table tbody td {
    padding: 0.9rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border);
    color: var(--muted-strong);
    background: transparent;
    font-size: 0.82rem;
}

.custom-table tbody tr:last-child td {
    border-bottom: 0;
}

.custom-table tbody tr {
    transition: background 0.2s ease;
}

.custom-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.025);
}

.custom-table strong {
    color: var(--text);
}

.chip-cloud {
    gap: 0.7rem;
}

.chip-cloud__item {
    display: grid;
    gap: 0.2rem;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.025);
}

.chip-cloud__item:hover {
    border-color: rgba(101, 226, 255, 0.25);
}

.chip-cloud__item span {
    color: var(--muted);
    font-size: 0.74rem;
}

.account-secret {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.4rem;
    border-color: rgba(119, 242, 200, 0.28);
    border-radius: var(--radius-lg);
}

.account-secret h2 {
    margin: 0.45rem 0 0;
    font-size: 1.6rem;
}

.account-secret p {
    margin: 0.35rem 0 0;
    color: var(--muted);
}

.account-secret__password {
    display: grid;
    min-width: min(100%, 17rem);
    gap: 0.4rem;
    color: var(--muted);
    font-size: 0.76rem;
}

.account-secret__password code {
    padding: 0.75rem;
    overflow-wrap: anywhere;
    border: 1px solid rgba(119, 242, 200, 0.2);
    border-radius: 9px;
    color: #caffef;
    background: rgba(119, 242, 200, 0.05);
}

.account-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
    min-height: 40rem;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--surface-soft);
    box-shadow: var(--shadow);
}

.account-shell__intro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.2rem;
    padding: clamp(2rem, 6vw, 5rem);
    background:
        radial-gradient(circle at 8% 10%, rgba(101, 226, 255, 0.14), transparent 25rem),
        radial-gradient(circle at 88% 80%, rgba(255, 177, 92, 0.08), transparent 22rem),
        repeating-linear-gradient(135deg, transparent 0 42px, rgba(255, 255, 255, 0.02) 42px 43px);
}

.account-shell__intro h1 {
    max-width: 9ch;
    margin: 0;
}

.account-shell__intro > p {
    max-width: 35rem;
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.account-shell__trust {
    display: grid;
    gap: 0.65rem;
    margin-top: 1rem;
    color: var(--muted-strong);
    font-size: 0.8rem;
}

.account-shell__trust span {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.account-shell__trust i {
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: var(--acid);
    box-shadow: 0 0 10px rgba(101, 226, 255, 0.38);
}

.account-card {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    justify-content: center;
    gap: 1rem;
    padding: clamp(1.5rem, 4vw, 3rem);
    color: var(--ink);
    background: var(--paper);
}

.account-card__header {
    margin-bottom: 0.35rem;
}

.account-card__header .eyebrow {
    color: #087b98;
}

.account-card__header h2 {
    margin: 0.45rem 0 0;
    font-size: 2rem;
}

.account-card .field-group label {
    color: #4e5448;
}

.account-card .form-control {
    color: var(--ink);
    background: #fff;
    border-color: rgba(11, 12, 9, 0.18);
}

.account-card .form-control::placeholder {
    color: #92978c;
}

.account-card .form-control:focus {
    color: var(--ink);
    background: #fff;
    border-color: #149fc1;
    box-shadow: 0 0 0 4px rgba(20, 159, 193, 0.1);
}

.account-card .form-note {
    color: #6c7265;
}

.account-card .toggle {
    color: #4e5448;
    border-color: rgba(11, 12, 9, 0.14);
    background: rgba(11, 12, 9, 0.025);
}

.account-card .validation-summary {
    color: #9a2f2a;
    background: rgba(194, 49, 42, 0.07);
}

.account-card__foot {
    margin: 0.25rem 0 0;
    color: #656b5e;
    font-size: 0.82rem;
    text-align: center;
}

.account-card__foot a {
    color: var(--ink);
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: #149fc1;
    text-underline-offset: 3px;
}

.account-card .toggle--card strong {
    color: var(--ink);
}

.account-card .toggle--card small {
    color: #687386;
}

.account-card .account-request {
    border-color: rgba(20, 159, 193, 0.2);
    background: rgba(20, 159, 193, 0.06);
}

.error-shell {
    display: grid;
    grid-template-columns: minmax(180px, 0.45fr) minmax(0, 1fr);
    align-items: center;
    min-height: 32rem;
    gap: clamp(2rem, 5vw, 5rem);
    padding: clamp(2rem, 6vw, 5rem);
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--surface-soft);
    box-shadow: var(--shadow);
}

.error-shell__code {
    color: var(--coral);
    font-family: var(--font-display);
    font-size: clamp(7rem, 18vw, 14rem);
    font-weight: 800;
    letter-spacing: -0.12em;
    line-height: 0.7;
}

.error-shell h1 {
    max-width: 8ch;
    margin: 0.55rem 0 1rem;
}

.error-shell p {
    max-width: 35rem;
    color: var(--muted);
    line-height: 1.7;
}

.error-shell__request {
    margin-top: 1.5rem;
    font-size: 0.75rem;
}

.error-shell__request code {
    color: var(--muted-strong);
}

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

.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.3rem 0;
    border-top: 1px solid var(--border);
}

.site-footer__brand p {
    margin: 0.35rem 0 0;
    color: var(--muted);
    font-size: 0.77rem;
}

.site-footer__links {
    justify-content: flex-end;
    gap: 0.25rem;
}

.site-footer__links a {
    padding: 0.55rem 0.65rem;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.site-footer__links a:hover {
    color: var(--text);
}

/* The packaged Identity settings pages still use Bootstrap's structural classes. */
.site-main > .container > h1 {
    margin-bottom: 0.5rem;
}

.site-main > .container > h2 {
    margin-bottom: 1rem;
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0;
}

.site-main hr {
    margin: 1.25rem 0;
    border-color: var(--border);
    opacity: 1;
}

.site-main .nav-pills {
    gap: 0.3rem;
    padding: 0.4rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-soft);
}

.site-main .nav-pills .nav-link {
    border-radius: 9px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.site-main .nav-pills .nav-link:hover {
    color: var(--text);
}

.site-main .nav-pills .nav-link.active {
    color: var(--ink);
    background: var(--acid);
}

.site-main .row > [class*="col-md"] > form,
.site-main .row > [class*="col-sm"] > form {
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface-soft);
}

.site-main .form-floating > label {
    color: var(--muted);
}

.site-main .form-floating > .form-control:focus ~ label,
.site-main .form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--muted);
}

.site-main .btn,
.site-main .btn-primary {
    border-radius: 11px;
    font-weight: 800;
}

.site-main .alert {
    border-color: var(--border);
    border-radius: 11px;
    color: var(--text);
    background: var(--surface-soft);
}

/* Repository workspace and media system */
.page-intro--admin {
    min-height: 15rem;
    padding: clamp(1.7rem, 4vw, 3.4rem);
}

.page-intro--edit {
    align-items: center;
}

.page-intro__meta,
.page-intro__actions {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.page-intro__meta {
    margin-top: 0.85rem;
    color: var(--muted);
    font-size: 0.78rem;
}

.page-intro__meta span + span::before {
    margin-right: 0.65rem;
    content: "•";
    color: var(--acid);
}

.section-block--flush {
    margin-top: 0 !important;
}

.editor-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    align-items: start;
    gap: 1rem;
}

.editor-workspace__main,
.editor-workspace__sidebar {
    display: grid;
    min-width: 0;
    gap: 1rem;
}

.editor-workspace__sidebar {
    position: sticky;
    top: 6.4rem;
}

.editor-card__header--numbered {
    display: grid;
    grid-template-columns: 2.4rem minmax(0, 1fr);
    align-items: start;
    gap: 0.85rem;
}

.editor-card__header--numbered > span {
    display: grid;
    width: 2.4rem;
    height: 2.4rem;
    place-items: center;
    border: 1px solid rgba(101, 226, 255, 0.24);
    border-radius: 50%;
    color: var(--acid);
    background: rgba(101, 226, 255, 0.06);
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.editor-card__header--numbered h2 {
    margin-top: 0;
}

.form-control--editor {
    min-height: 11rem;
    line-height: 1.65;
}

.input-prefix {
    display: flex;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: rgba(5, 9, 20, 0.62);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-prefix:focus-within {
    border-color: rgba(101, 226, 255, 0.45);
    box-shadow: 0 0 0 4px rgba(101, 226, 255, 0.08);
}

.input-prefix > span {
    display: flex;
    align-items: center;
    padding: 0 0 0 0.9rem;
    color: var(--muted);
    font-size: 0.79rem;
    white-space: nowrap;
}

.input-prefix .form-control {
    border: 0;
    background: transparent;
    box-shadow: none;
}

.publish-card,
.danger-card,
.quick-create,
.request-card,
.mini-metric,
.video-card,
.editor-video-card {
    border: 1px solid var(--border);
    background: rgba(10, 17, 35, 0.82);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.publish-card {
    display: grid;
    gap: 1.1rem;
    padding: 1.2rem;
    border-radius: var(--radius-lg);
}

.publish-card__status {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--border);
    color: var(--muted-strong);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.status-dot--warning {
    background: var(--coral);
    box-shadow: 0 0 0 4px rgba(255, 177, 92, 0.1), 0 0 16px rgba(255, 177, 92, 0.34);
}

.publish-card__toggles,
.publish-card__actions {
    display: grid;
    gap: 0.65rem;
}

.toggle--card {
    align-items: flex-start;
    width: 100%;
    min-height: 4rem;
    padding: 0.8rem;
}

.toggle--card > span {
    display: grid;
    gap: 0.18rem;
}

.toggle--card strong {
    color: var(--text);
    font-size: 0.8rem;
}

.toggle--card small {
    color: var(--muted);
    font-size: 0.69rem;
    font-weight: 500;
    line-height: 1.45;
}

.toggle--danger input {
    accent-color: var(--danger);
}

.publish-card__summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--border);
}

.publish-card__summary > span {
    display: grid;
    gap: 0.18rem;
    padding: 0.75rem 0.55rem;
    background: #0a1022;
    text-align: center;
}

.publish-card__summary small {
    color: var(--muted);
    font-size: 0.61rem;
    text-transform: uppercase;
}

.publish-card__summary strong {
    font-family: var(--font-display);
    font-size: 1.1rem;
}

.danger-card {
    padding: 1.1rem;
    border-color: rgba(255, 125, 140, 0.2);
    border-radius: var(--radius-md);
    background: rgba(73, 18, 32, 0.18);
}

.danger-card strong {
    color: #ffd8dd;
}

.danger-card p {
    margin: 0.35rem 0 0.85rem;
    color: var(--muted);
    font-size: 0.74rem;
    line-height: 1.5;
}

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

.upload-field--wide {
    grid-column: 1 / -1;
}

.upload-dropzone {
    position: relative;
    display: grid;
    min-height: 12rem;
    place-items: center;
    align-content: center;
    gap: 0.45rem;
    padding: 1.2rem;
    overflow: hidden;
    border: 1px dashed rgba(101, 226, 255, 0.32);
    border-radius: 16px;
    background:
        radial-gradient(circle at 50% 0%, rgba(101, 226, 255, 0.09), transparent 70%),
        rgba(4, 9, 22, 0.55);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.22s ease, background 0.22s ease, transform 0.22s var(--ease-out), box-shadow 0.22s ease;
}

.upload-dropzone:hover,
.upload-dropzone.is-dragover {
    border-color: rgba(101, 226, 255, 0.78);
    background:
        radial-gradient(circle at 50% 0%, rgba(101, 226, 255, 0.16), transparent 75%),
        rgba(7, 17, 34, 0.8);
    box-shadow: inset 0 0 0 1px rgba(101, 226, 255, 0.12), 0 14px 34px rgba(0, 7, 20, 0.32);
    transform: translateY(-2px);
}

.upload-dropzone--video {
    border-color: rgba(255, 177, 92, 0.34);
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 177, 92, 0.1), transparent 70%),
        rgba(4, 9, 22, 0.55);
}

.upload-dropzone--video:hover,
.upload-dropzone--video.is-dragover {
    border-color: rgba(255, 177, 92, 0.78);
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 177, 92, 0.17), transparent 75%),
        rgba(20, 15, 24, 0.82);
}

.upload-dropzone input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.upload-dropzone__icon {
    display: grid;
    width: 2.6rem;
    height: 2.6rem;
    place-items: center;
    border: 1px solid rgba(101, 226, 255, 0.3);
    border-radius: 50%;
    color: var(--acid);
    background: rgba(101, 226, 255, 0.08);
    font-size: 1.2rem;
}

.upload-dropzone__icon--video {
    padding-left: 0.12rem;
    border-color: rgba(255, 177, 92, 0.34);
    color: var(--coral);
    background: rgba(255, 177, 92, 0.08);
}

.upload-dropzone strong {
    color: var(--text);
    font-size: 0.88rem;
}

.upload-dropzone small {
    max-width: 25rem;
    color: var(--muted);
    font-size: 0.7rem;
    line-height: 1.45;
}

.file-selection {
    display: grid;
    gap: 0.35rem;
    margin-top: 0.45rem;
    color: var(--muted);
    font-size: 0.72rem;
}

.file-selection__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
}

.file-selection__item strong {
    min-width: 0;
    overflow: hidden;
    color: var(--muted-strong);
    font-size: 0.71rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-selection__item span {
    flex: 0 0 auto;
    color: var(--muted);
}

.upload-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-top: 1rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid rgba(255, 177, 92, 0.18);
    border-radius: 11px;
    color: var(--muted);
    background: rgba(255, 177, 92, 0.05);
    font-size: 0.72rem;
    line-height: 1.5;
}

.upload-notice strong {
    flex: 0 0 auto;
    color: #ffe3c4;
}

.editor-shell.is-submitting .upload-dropzone {
    pointer-events: none;
    opacity: 0.56;
    transform: none;
}

.upload-error {
    margin-bottom: 1rem;
    border-color: rgba(255, 126, 126, 0.42);
    background: rgba(92, 24, 35, 0.45);
}

.editor-list__file,
.table-member,
.request-card__identity {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 0.75rem;
}

.file-type {
    display: grid;
    width: 2.8rem;
    height: 2.8rem;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(101, 226, 255, 0.2);
    border-radius: 10px;
    color: var(--acid);
    background: rgba(101, 226, 255, 0.06);
    font-size: 0.57rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.editor-subheading {
    margin: 0.5rem 0 0.8rem;
    color: var(--muted-strong);
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.editor-video-grid,
.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 1rem;
}

.editor-video-card,
.video-card {
    overflow: hidden;
    border-radius: var(--radius-md);
}

.editor-video-card video,
.video-card video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #02040a;
}

.editor-video-card > span,
.video-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.8rem;
}

.editor-video-card > span > strong,
.editor-video-card > span > small {
    display: block;
}

.editor-video-card > span > small,
.video-card__meta span {
    color: var(--muted);
    font-size: 0.7rem;
}

.editor-video-card .preview-card__toggle {
    border-top: 1px solid var(--border);
}

.video-card__meta > div {
    display: grid;
    min-width: 0;
    gap: 0.15rem;
}

.uploader-card {
    display: flex;
    align-items: center;
    max-width: 27rem;
    gap: 0.7rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.035);
}

.uploader-card > div {
    display: grid;
    gap: 0.04rem;
}

.uploader-card span,
.uploader-card small {
    color: var(--muted);
    font-size: 0.67rem;
}

.uploader-card strong {
    color: var(--text);
    font-size: 0.84rem;
}

.member-avatar {
    display: grid;
    width: 2.65rem;
    height: 2.65rem;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(101, 226, 255, 0.26);
    border-radius: 50%;
    color: var(--acid);
    background:
        radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.16), transparent 30%),
        rgba(101, 226, 255, 0.08);
    font-family: var(--font-display);
    font-weight: 800;
}

.member-avatar--small {
    width: 2.15rem;
    height: 2.15rem;
    font-size: 0.75rem;
}

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

.mini-metric {
    display: grid;
    min-height: 7rem;
    align-content: center;
    gap: 0.2rem;
    padding: 1rem;
    border-radius: var(--radius-md);
}

.mini-metric > span {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
}

.mini-metric small {
    color: var(--muted);
}

.mini-metric--attention,
.metric-card--attention {
    border-color: rgba(255, 177, 92, 0.28) !important;
    background: rgba(65, 41, 26, 0.42) !important;
}

.request-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
    gap: 0.8rem;
}

.request-card {
    display: grid;
    align-content: start;
    gap: 0.9rem;
    padding: 1rem;
    border-radius: var(--radius-md);
}

.request-card__identity h3 {
    margin: 0;
    font-size: 1rem;
}

.request-card__identity p {
    margin: 0.12rem 0 0;
    color: var(--muted);
    font-size: 0.72rem;
}

.request-card__message {
    min-height: 3.6rem;
    margin: 0;
    color: var(--muted-strong);
    font-size: 0.8rem;
    line-height: 1.6;
}

.request-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    color: var(--muted);
    font-size: 0.66rem;
}

.request-card__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-create {
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.quick-create summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem;
    cursor: pointer;
    list-style: none;
}

.quick-create summary::-webkit-details-marker {
    display: none;
}

.quick-create summary > span:first-child {
    display: grid;
    gap: 0.15rem;
}

.quick-create summary small,
.quick-create__action {
    color: var(--muted);
    font-size: 0.72rem;
}

.quick-create__action {
    color: var(--acid);
    font-weight: 800;
}

.quick-create[open] .quick-create__action {
    font-size: 0;
}

.quick-create[open] .quick-create__action::after {
    content: "Close form";
    font-size: 0.72rem;
}

.quick-create__form {
    display: grid;
    gap: 1rem;
    padding: 1.2rem;
    border-top: 1px solid var(--border);
}

.table-member > div {
    min-width: 0;
}

.account-request {
    display: grid;
    gap: 0.7rem;
    padding: 0.75rem;
    border: 1px solid rgba(101, 226, 255, 0.16);
    border-radius: 13px;
    background: rgba(101, 226, 255, 0.045);
}

.account-request .toggle--card {
    padding: 0;
    border: 0;
    background: transparent;
}

.account-request [data-request-upload-details] {
    display: none;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(6, 9, 20, 0.12);
}

.account-request.is-open [data-request-upload-details] {
    display: grid;
}

.metric-card[href] {
    color: var(--text);
}

.custom-table .table-actions {
    justify-content: flex-end;
    gap: 0.4rem;
}

.custom-table .table-actions form {
    display: inline-flex;
}

@keyframes stage-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes orbit-drift {
    from {
        background-position: 0 0, 28px 44px, 0 0, 0 0;
    }

    to {
        background-position: 92px 46px, -109px 112px, 0 0, 0 0;
    }
}

body::before {
    animation: orbit-drift 48s linear infinite;
}

@media (min-width: 992px) {
    .card-grid > :nth-child(2) {
        animation-delay: 0.06s;
    }

    .card-grid > :nth-child(3) {
        animation-delay: 0.12s;
    }

    .card-grid > :nth-child(4) {
        animation-delay: 0.18s;
    }
}

@media (max-width: 1100px) {
    .site-menu-toggle {
        display: inline-flex;
    }

    .site-header__menu {
        position: absolute;
        top: calc(100% + 0.55rem);
        right: 0;
        left: 0;
        display: none;
        align-items: stretch;
        flex-direction: column;
        gap: 0.8rem;
        padding: 0.8rem;
        border: 1px solid var(--border);
        border-radius: 16px;
        background: rgba(6, 10, 23, 0.97);
        box-shadow: var(--shadow);
        backdrop-filter: blur(22px);
    }

    .site-header__menu.is-open {
        display: flex;
        animation: stage-in 0.25s var(--ease-out) both;
    }

    .site-nav {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
    }

    .site-nav a {
        text-align: center;
    }

    .auth-nav {
        justify-content: space-between;
        padding-top: 0.75rem;
        border-top: 1px solid var(--border);
    }

    .hero-panel {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 0.6fr);
    }

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

    .trust-grid > :last-child,
    .value-grid > :last-child {
        grid-column: 1 / -1;
    }

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

    .editor-workspace {
        grid-template-columns: 1fr;
    }

    .editor-workspace__sidebar {
        position: static;
        grid-row: 1;
    }

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

    .publish-card__status,
    .publish-card__toggles,
    .publish-card__summary,
    .publish-card__actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .hero-panel,
    .detail-hero,
    .account-shell {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        min-height: 0;
    }

    .hero-panel__stats {
        min-height: 25rem;
    }

    .detail-hero__visual {
        min-height: min(80vw, 34rem);
        grid-row: 1;
    }

    .card-grid--compact > :only-child {
        grid-template-columns: 1fr;
    }

    .admin-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-dashboard__actions {
        justify-content: flex-start;
    }

    .page-intro--edit {
        align-items: flex-start;
    }

    .page-intro__actions {
        justify-content: flex-start;
    }

    .filter-bar {
        grid-template-columns: 1fr 1fr;
    }

    .filter-bar__actions {
        grid-column: 1 / -1;
    }
}

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

    .site-header {
        padding-top: 0.5rem;
    }

    .site-header__inner {
        min-height: 4.1rem;
        padding-left: 0.9rem;
        border-radius: 16px;
    }

    .brand-mark__tagline {
        display: none;
    }

    .site-menu-toggle__label {
        display: none;
    }

    .site-main {
        padding-top: 2rem;
    }

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

    .section-heading,
    .page-intro,
    .site-footer__inner,
    .account-secret {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-intro {
        min-height: 25rem;
        justify-content: flex-end;
        padding: 1.6rem;
    }

    .page-intro h1 {
        font-size: clamp(2.65rem, 13vw, 4.4rem);
    }

    .hero-panel {
        border-radius: 26px;
    }

    .hero-panel__body {
        padding: 2rem 1.35rem 1.5rem;
    }

    .hero-panel h1 {
        font-size: clamp(3rem, 15vw, 5rem);
    }

    .hero-panel__stats {
        min-height: 24rem;
        margin: 0.5rem;
        border-radius: 22px;
    }

    .hero-panel__footnote {
        gap: 0.65rem;
    }

    .card-grid,
    .card-grid--compact,
    .value-grid,
    .trust-grid,
    .metrics-grid,
    .admin-health-grid,
    .preview-grid,
    .preview-grid--compact {
        grid-template-columns: 1fr;
    }

    .trust-grid > :last-child,
    .value-grid > :last-child {
        grid-column: auto;
    }

    .feature-panel,
    .trust-grid .feature-panel {
        min-height: 22rem;
    }

    .feature-panel__index {
        margin-bottom: 3rem;
    }

    .detail-hero {
        padding: 0.55rem;
        border-radius: 25px;
    }

    .detail-hero__content {
        padding: 1.4rem 1rem 1.6rem;
    }

    .detail-hero__visual {
        min-height: 20rem;
        border-radius: 20px;
    }

    .filter-bar,
    .editor-grid {
        grid-template-columns: 1fr;
    }

    .upload-grid,
    .admin-metric-row {
        grid-template-columns: 1fr;
    }

    .upload-field--wide {
        grid-column: auto;
    }

    .filter-bar__actions,
    .field-group--wide {
        grid-column: auto;
    }

    .trust-callout {
        grid-template-columns: auto 1fr;
    }

    .trust-callout .section-link {
        grid-column: 1 / -1;
    }

    .asset-row,
    .editor-list__item {
        align-items: stretch;
        flex-direction: column;
    }

    .asset-row > .button,
    .editor-list__actions {
        align-self: stretch;
    }

    .editor-list__actions {
        justify-content: flex-start;
    }

    .responsive-table,
    .responsive-table tbody,
    .responsive-table tr,
    .responsive-table td {
        display: block;
        width: 100%;
    }

    .responsive-table {
        min-width: 0;
    }

    .responsive-table thead {
        display: none;
    }

    .responsive-table tbody {
        display: grid;
        gap: 0.7rem;
        padding: 0.7rem;
    }

    .responsive-table tbody tr {
        padding: 0.65rem;
        border: 1px solid var(--border);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.025);
    }

    .responsive-table tbody td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 2.6rem;
        gap: 1rem;
        padding: 0.55rem;
        border-bottom: 1px solid var(--border);
        text-align: right;
    }

    .responsive-table tbody td:last-child {
        border-bottom: 0;
    }

    .responsive-table tbody td::before {
        flex: 0 0 auto;
        content: attr(data-label);
        color: var(--muted);
        font-size: 0.66rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .responsive-table tbody td:first-child {
        align-items: flex-start;
        flex-direction: column;
        text-align: left;
    }

    .responsive-table tbody td:first-child::before {
        display: none;
    }

    .responsive-table .table-actions {
        justify-content: flex-end;
    }

    .responsive-table tbody td[data-label="Actions"] {
        align-items: stretch;
        flex-direction: column;
    }

    .responsive-table tbody td[data-label="Actions"]::before {
        align-self: flex-start;
    }

    .responsive-table tbody td[data-label="Actions"] .table-actions {
        width: 100%;
    }

    .account-shell {
        border-radius: 25px;
    }

    .account-shell__intro,
    .account-card {
        padding: 2rem 1.35rem;
    }

    .publish-card {
        grid-template-columns: 1fr;
    }

    .publish-card__status,
    .publish-card__toggles,
    .publish-card__summary,
    .publish-card__actions {
        grid-column: auto;
    }

    .upload-notice,
    .page-intro__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .page-intro__actions .button,
    .request-card__actions form,
    .request-card__actions .button {
        width: 100%;
    }

    .error-shell {
        grid-template-columns: 1fr;
    }

    .site-footer__links {
        justify-content: flex-start;
    }

    .site-main .row > [class*="col-md"] {
        width: 100%;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .admin-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow: visible;
    }

    .admin-tabs__link {
        width: 100%;
        padding-inline: 0.55rem;
        text-align: center;
    }

    .brand-mark__word {
        font-size: 0.88rem;
    }

    .hero-panel__stats {
        grid-template-columns: 1fr 1fr;
    }

    .metric-card {
        min-height: 8rem;
        padding: 1rem;
    }

    .hero-panel__actions,
    .editor-actions,
    .admin-dashboard__actions {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .hero-panel__actions .button,
    .editor-actions .button,
    .admin-dashboard__actions .button {
        width: 100%;
    }

    .download-card__footer,
    .story-card__footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .media-gallery__nav {
        width: 2.55rem;
        height: 2.55rem;
    }

    .media-gallery__nav--prev {
        left: 0.5rem;
    }

    .media-gallery__nav--next {
        right: 0.5rem;
    }

    .media-gallery__meta,
    .media-gallery__copy {
        align-items: flex-start;
        flex-direction: column;
    }

    .table-actions {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .table-actions .button,
    .table-actions form,
    .table-actions form .button {
        width: 100%;
    }

    .request-card__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .quick-create summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .editor-card__header--numbered {
        grid-template-columns: 2rem minmax(0, 1fr);
    }

    .editor-card__header--numbered > span {
        width: 2rem;
        height: 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
