:root {
    --font-heading: "Space Grotesk", "Segoe UI", sans-serif;
    --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
    --font-mono: "IBM Plex Mono", "SFMono-Regular", monospace;
    --bg-base: #07131d;
    --bg-surface: #0d1d2b;
    --bg-elevated: rgba(11, 24, 35, 0.84);
    --bg-panel: rgba(11, 24, 35, 0.72);
    --bg-soft: rgba(255, 255, 255, 0.05);
    --line: rgba(135, 170, 193, 0.2);
    --line-strong: rgba(115, 244, 211, 0.38);
    --accent: #73f4d3;
    --accent-strong: #f6b05e;
    --accent-glow: rgba(115, 244, 211, 0.2);
    --text-1: #f3f7fb;
    --text-2: #acc0cf;
    --text-3: #7b95a9;
    --success: #8af0c7;
    --danger: #ff9f97;
    --shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.34);
    --shadow-md: 0 18px 40px rgba(0, 0, 0, 0.24);
    --radius-xl: 30px;
    --radius-lg: 24px;
    --radius-md: 18px;
}

* {
    box-sizing: border-box;
}

body,
h1,
h2,
h3,
p,
ul {
    margin: 0;
}

ul {
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text-1);
    font-family: var(--font-body);
    background:
        radial-gradient(circle at top left, rgba(115, 244, 211, 0.12), transparent 28%),
        radial-gradient(circle at 85% 14%, rgba(246, 176, 94, 0.12), transparent 20%),
        linear-gradient(160deg, #07131d 0%, #0c1d2d 48%, #13293d 100%);
    position: relative;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
}

body::before {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 92%);
}

body::after {
    background:
        radial-gradient(circle at 20% 10%, rgba(115, 244, 211, 0.09), transparent 24%),
        radial-gradient(circle at 80% 22%, rgba(246, 176, 94, 0.1), transparent 22%),
        radial-gradient(circle at 50% 100%, rgba(115, 244, 211, 0.06), transparent 28%);
    opacity: 0.85;
}

a {
    color: inherit;
}

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

button,
.action-link {
    min-height: 48px;
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 0.82rem 1.3rem;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.98rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease,
        background 180ms ease,
        color 180ms ease;
    touch-action: manipulation;
}

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

button:focus-visible,
.action-link:focus-visible,
input:focus-visible,
select:focus-visible,
.upload-dropzone:focus-visible,
.file-row:focus-visible,
.viewer-card:focus-visible,
.header-link:focus-visible,
.brand-lockup:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(115, 244, 211, 0.18);
    border-color: var(--line-strong);
}

button:disabled,
select:disabled {
    opacity: 0.56;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.primary-btn {
    color: #081117;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
    box-shadow: 0 12px 32px rgba(115, 244, 211, 0.22);
}

.primary-btn:hover {
    box-shadow: 0 18px 38px rgba(115, 244, 211, 0.28);
}

.secondary-btn {
    color: var(--text-1);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--line);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.danger-btn {
    color: #ffd9d6;
    background: rgba(255, 108, 99, 0.12);
    border-color: rgba(255, 136, 128, 0.28);
}

.danger-btn:hover {
    background: rgba(255, 108, 99, 0.18);
}

input,
select {
    width: 100%;
    min-height: 52px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(4, 10, 16, 0.5);
    color: var(--text-1);
    padding: 0.88rem 1rem;
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        background 180ms ease;
}

input::placeholder {
    color: rgba(172, 192, 207, 0.72);
}

label {
    display: inline-block;
    margin-bottom: 0.6rem;
    color: #d4e0eb;
    font-size: 0.92rem;
    font-weight: 600;
}

code {
    font-family: var(--font-mono);
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 48px;
    position: relative;
    z-index: 1;
}

.skip-link {
    position: fixed;
    left: 16px;
    top: -56px;
    z-index: 1001;
    padding: 0.8rem 1rem;
    border-radius: 14px;
    background: #edf7ff;
    color: #081117;
    text-decoration: none;
    font-weight: 700;
    transition: top 180ms ease;
}

.skip-link:focus {
    top: 16px;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    border-radius: 22px;
}

.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    position: relative;
    background:
        linear-gradient(145deg, rgba(115, 244, 211, 0.2), rgba(246, 176, 94, 0.16)),
        rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 24px rgba(0, 0, 0, 0.18);
}

.brand-mark::before,
.brand-mark::after {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 10px;
}

.brand-mark::before {
    border: 2px solid rgba(115, 244, 211, 0.72);
}

.brand-mark::after {
    inset: 17px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.brand-copy {
    display: grid;
    gap: 2px;
}

.brand-copy strong {
    font-family: var(--font-heading);
    font-size: 1.04rem;
    line-height: 1;
    letter-spacing: -0.03em;
}

.brand-copy span {
    color: var(--text-3);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.header-link {
    padding: 0.82rem 1.1rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-2);
    text-decoration: none;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background 180ms ease,
        color 180ms ease;
}

.header-link:hover {
    color: var(--text-1);
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.page-stack {
    display: grid;
    gap: 24px;
}

.page-stack > * {
    animation: rise-in 520ms ease both;
}

.page-stack > *:nth-child(2) {
    animation-delay: 80ms;
}

.page-stack > *:nth-child(3) {
    animation-delay: 160ms;
}

.page-stack > *:nth-child(4) {
    animation-delay: 220ms;
}

.panel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    border: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
        var(--bg-panel);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(18px);
}

.panel::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: calc(var(--radius-xl) - 1px);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 24%),
        linear-gradient(135deg, rgba(115, 244, 211, 0.05), transparent 32%);
    pointer-events: none;
}

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

.eyebrow {
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.section-title,
h1,
h2,
h3 {
    font-family: var(--font-heading);
    letter-spacing: -0.04em;
}

.section-title {
    margin: 0;
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1.05;
}

.logo {
    margin: 14px 0 0;
    font-size: clamp(2.9rem, 7vw, 5.6rem);
    line-height: 0.92;
    max-width: 11ch;
}

.subtitle,
.access-copy,
.viewer-description,
.support-copy,
.token-help,
.status-copy,
.sample-panel p,
.modal p,
.file-info p {
    color: var(--text-2);
    line-height: 1.65;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.status {
    min-height: 1.4rem;
    color: var(--text-3);
    font-size: 0.92rem;
    line-height: 1.5;
}

.status.success {
    color: var(--success);
}

.status.error {
    color: var(--danger);
}

.landing-body .site-header {
    margin-bottom: 30px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.34fr) minmax(320px, 0.86fr);
    gap: 24px;
    align-items: stretch;
}

.hero-copy,
.access-panel,
.sample-panel,
.workspace-panel,
.library-panel,
.support-panel,
.dashboard-hero {
    padding: clamp(24px, 3vw, 36px);
}

.hero-copy .subtitle {
    margin-top: 18px;
    max-width: 59ch;
    font-size: 1.08rem;
}

.hero-actions {
    margin-top: 26px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.hero-stat,
.summary-pill,
.meta-card {
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: var(--shadow-md);
}

.hero-stat-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.9rem;
    line-height: 1;
    color: var(--text-1);
}

.hero-stat-copy {
    margin: 10px 0 0;
    color: var(--text-2);
    line-height: 1.55;
}

.workspace-points {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.workspace-points li {
    display: grid;
    grid-template-columns: 14px 1fr;
    gap: 12px;
    align-items: start;
    color: #d6e4ee;
    line-height: 1.6;
}

.workspace-points li::before {
    content: "";
    width: 10px;
    height: 10px;
    margin-top: 0.45rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    box-shadow: 0 0 18px rgba(115, 244, 211, 0.3);
}

.access-panel {
    display: grid;
    gap: 18px;
}

.access-panel form,
.modal form,
.support-panel form,
.default-viewer-panel form {
    display: grid;
    gap: 12px;
    margin-top: 6px;
}

.access-aside {
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.access-badge,
.shortcut-badge,
.library-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(115, 244, 211, 0.24);
    background: rgba(115, 244, 211, 0.1);
    color: var(--accent);
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.utility-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.42fr) minmax(300px, 0.78fr);
    gap: 24px;
    align-items: start;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

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

.viewer-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px;
    min-height: 100%;
    text-decoration: none;
    color: inherit;
    border-radius: var(--radius-xl);
    border: 1px solid var(--line);
    background:
        radial-gradient(circle at top right, rgba(115, 244, 211, 0.08), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)),
        rgba(10, 20, 29, 0.72);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition:
        transform 220ms ease,
        border-color 220ms ease,
        box-shadow 220ms ease,
        background 220ms ease;
}

.viewer-card::after {
    content: "";
    position: absolute;
    inset: auto auto -80px -30px;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(115, 244, 211, 0.14), transparent 70%);
    pointer-events: none;
}

.viewer-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
    box-shadow: 0 34px 92px rgba(0, 0, 0, 0.4);
}

.viewer-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.viewer-icon svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
}

.viewer-kicker {
    color: var(--accent-strong);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.viewer-name {
    margin: 2px 0 0;
    font-size: 1.5rem;
}

.viewer-features {
    list-style: none;
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.viewer-features li {
    display: grid;
    grid-template-columns: 14px 1fr;
    gap: 10px;
    align-items: start;
    color: var(--text-2);
    line-height: 1.55;
}

.viewer-features li::before {
    content: "/";
    color: var(--accent);
    font-family: var(--font-mono);
}

.viewer-btn {
    margin-top: auto;
}

.sample-panel {
    display: grid;
    gap: 18px;
}

.sample-details {
    display: grid;
    gap: 12px;
}

.sample-item {
    padding: 16px 18px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.sample-item strong {
    display: block;
    margin-bottom: 6px;
    color: var(--text-1);
}

.site-footer {
    margin-top: 28px;
    padding: 16px 4px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--text-3);
    font-size: 0.88rem;
}

.site-footer a {
    color: var(--accent);
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(3, 10, 16, 0.7);
    backdrop-filter: blur(14px);
}

.modal-backdrop.visible {
    display: flex;
}

.modal {
    width: min(100%, 560px);
    padding: 30px;
    border-radius: 32px;
    border: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)),
        rgba(9, 19, 28, 0.94);
    box-shadow: 0 42px 110px rgba(0, 0, 0, 0.45);
}

.modal h2,
.modal h3 {
    margin: 12px 0 0;
    font-size: clamp(1.55rem, 3vw, 2rem);
}

.modal-header {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.token-box {
    margin-top: 20px;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(115, 244, 211, 0.18);
    background:
        linear-gradient(180deg, rgba(115, 244, 211, 0.08), rgba(115, 244, 211, 0.04)),
        rgba(6, 16, 24, 0.76);
}

.token-box strong {
    display: block;
    color: var(--text-1);
}

.token-box code {
    display: block;
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(4, 10, 16, 0.74);
    color: #e7f5ff;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.dashboard-hero-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.9fr);
    gap: 22px;
    align-items: end;
}

.dashboard-hero h1 {
    margin: 14px 0 0;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 0.98;
}

.dashboard-hero p {
    margin-top: 16px;
    max-width: 58ch;
}

.summary-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.summary-pill span,
.meta-card span {
    display: block;
    color: var(--text-3);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.summary-pill strong,
.meta-card strong {
    display: block;
    margin-top: 10px;
    color: var(--text-1);
    line-height: 1.5;
}

.workspace-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(320px, 0.84fr);
    gap: 24px;
    align-items: start;
}

.workspace-panel h2,
.library-panel h2,
.support-panel h2 {
    margin: 0;
    font-size: clamp(1.55rem, 2.6vw, 2rem);
}

.workspace-panel h3,
.library-card h3,
.upload-panel h3,
.default-viewer-panel h3,
.action-card h3 {
    margin: 0;
    font-size: 1.32rem;
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.default-viewer-panel,
.upload-panel,
.library-card,
.action-card {
    padding: 24px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: var(--shadow-md);
}

.default-viewer-panel {
    margin-top: 20px;
}

.actions {
    display: grid;
    gap: 18px;
}

.action-card {
    position: sticky;
    top: 24px;
}

.quick-list {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.quick-item {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 12px;
    align-items: start;
    color: #d8e7f0;
    line-height: 1.6;
}

.quick-index {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.92rem;
    font-weight: 600;
}

.library-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
}

.library-shell {
    display: grid;
    grid-template-columns: minmax(300px, 0.88fr) minmax(0, 1.24fr);
    gap: 20px;
    margin-top: 22px;
}

.upload-dropzone {
    margin-top: 18px;
    min-height: 250px;
    padding: 32px 24px;
    border-radius: 30px;
    border: 1px dashed rgba(115, 244, 211, 0.34);
    background:
        radial-gradient(circle at top, rgba(115, 244, 211, 0.14), transparent 56%),
        rgba(3, 10, 16, 0.42);
    display: grid;
    place-items: center;
    text-align: center;
    cursor: pointer;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        background 180ms ease;
}

.upload-dropzone:hover,
.upload-dropzone.drag-active {
    transform: translateY(-1px);
    border-color: rgba(246, 176, 94, 0.44);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.22);
    background:
        radial-gradient(circle at top, rgba(246, 176, 94, 0.14), transparent 56%),
        rgba(3, 10, 16, 0.5);
}

.upload-mark {
    width: 72px;
    height: 72px;
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 0.16em;
    color: var(--accent);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.upload-dropzone strong {
    display: block;
    margin-top: 18px;
    color: var(--text-1);
    font-size: 1.12rem;
}

.upload-dropzone p {
    margin: 10px auto 0;
    max-width: 34ch;
}

.file-picker {
    margin-top: 16px;
}

.selected-file {
    min-height: 88px;
    display: grid;
    gap: 6px;
    align-content: center;
    margin-top: 16px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(4, 10, 16, 0.44);
}

.selected-file strong {
    color: var(--text-1);
}

.library-topline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.library-pill {
    color: #d8faf2;
}

.library-list {
    margin-top: 16px;
    display: grid;
    gap: 12px;
}

.file-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
        rgba(4, 10, 16, 0.4);
    cursor: pointer;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        background 180ms ease;
}

.file-row:hover,
.file-row:focus-visible {
    transform: translateY(-1px);
    border-color: var(--line-strong);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.24);
    background:
        linear-gradient(180deg, rgba(115, 244, 211, 0.08), rgba(255, 255, 255, 0.02)),
        rgba(4, 10, 16, 0.48);
}

.file-copy {
    min-width: 0;
}

.file-name {
    display: block;
    color: var(--text-1);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.file-meta {
    margin-top: 6px;
    color: var(--text-2);
    font-size: 0.9rem;
    line-height: 1.5;
}

.library-empty {
    margin-top: 16px;
    padding: 22px;
    text-align: center;
    border-radius: 24px;
    border: 1px dashed rgba(255, 255, 255, 0.16);
    color: var(--text-2);
    background: rgba(255, 255, 255, 0.02);
}

.library-hint {
    margin-top: 10px;
    color: var(--text-3);
    font-size: 0.9rem;
}

.hidden {
    display: none !important;
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 980px) {
    .hero-grid,
    .utility-grid,
    .dashboard-hero-shell,
    .workspace-grid,
    .library-shell {
        grid-template-columns: 1fr;
    }

    .action-card {
        position: static;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100%, calc(100% - 20px));
        padding: 16px 0 28px;
    }

    .site-header,
    .header-actions,
    .section-heading,
    .library-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-stats,
    .viewer-grid,
    .summary-strip,
    .meta-grid {
        grid-template-columns: 1fr;
    }

    .button-row {
        flex-direction: column;
    }

    .button-row > * {
        width: 100%;
    }

    .file-row {
        flex-direction: column;
        align-items: stretch;
    }
}

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

    *,
    *::before,
    *::after {
        animation: none !important;
        transition-duration: 1ms !important;
        transition-delay: 0ms !important;
        scroll-behavior: auto !important;
    }
}
