:root {
    --ink: #151b2b;
    --ink-deep: #0d1220;
    --ink-soft: #2b3448;
    --paper: #f3ecdf;
    --paper-light: #fcfaf6;
    --velvet: #9e3f52;
    --velvet-dark: #752d3d;
    --copper: #d46f54;
    --gold: #d2a753;
    --sage: #557d77;
    --text: #202536;
    --muted: #697080;
    --line: #d9d0c1;
    --white-line: rgba(255, 255, 255, 0.18);
    --shadow: 0 18px 45px rgba(13, 18, 32, 0.12);
    --radius-large: 28px;
    --radius: 18px;
    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    --sans: Inter, Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: light;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--text);
    background: var(--paper);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.pdf-viewer-page {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: #ded7ca;
}

.pdf-viewer-shell {
    height: 100%;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}

.pdf-viewer-toolbar {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: calc(8px + env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 8px max(14px, env(safe-area-inset-left));
    color: var(--ink);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 4px 16px rgba(13, 18, 32, 0.1);
}

.pdf-viewer-back {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px 0 10px;
    color: white;
    background: var(--velvet);
    border-radius: 999px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.pdf-viewer-back span {
    margin-top: -2px;
    font-family: var(--serif);
    font-size: 25px;
    font-weight: 400;
    line-height: 1;
}

.pdf-viewer-download {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    color: var(--ink);
    background: var(--paper-light);
    border: 1px solid var(--line);
    border-radius: 999px;
    text-align: center;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.15;
}

.pdf-viewer-download[aria-disabled="true"] {
    opacity: 0.65;
    pointer-events: none;
}

.pdf-viewer-title {
    min-width: 0;
    display: grid;
    line-height: 1.25;
}

.pdf-viewer-title strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--serif);
    font-size: 17px;
}

.pdf-viewer-title small {
    color: var(--muted);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pdf-viewer-content {
    min-height: 0;
    padding: 10px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.pdf-viewer-status {
    position: sticky;
    top: 0;
    z-index: 1;
    width: fit-content;
    margin: 0 auto 10px;
    padding: 5px 11px;
    color: var(--ink-soft);
    background: rgba(252, 250, 246, 0.94);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 3px 10px rgba(13, 18, 32, 0.08);
    font-size: 11px;
    font-weight: 750;
}

.pdf-viewer-status[data-state="error"] {
    color: var(--velvet-dark);
}

.pdf-document {
    display: grid;
    justify-items: center;
    gap: 12px;
    width: 100%;
}

.pdf-rendered-page {
    position: relative;
    width: 100%;
    max-width: 1400px;
    overflow: hidden;
    background: #f8f5ef;
    border-radius: 5px;
    box-shadow: 0 5px 18px rgba(13, 18, 32, 0.16);
}

.pdf-rendered-page::before {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(110deg, #f8f5ef 30%, #fff 48%, #f8f5ef 66%);
    background-size: 250% 100%;
    animation: pdf-page-loading 1.4s ease-in-out infinite;
}

.pdf-rendered-page canvas {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    display: block;
    visibility: hidden;
    background: white;
}

.pdf-rendered-page.is-rendered canvas {
    visibility: visible;
}

.pdf-rendered-page.is-rendered::before {
    display: none;
}

.pdf-rendered-page.has-error::before {
    content: "Page indisponible";
    display: grid;
    place-items: center;
    color: var(--velvet-dark);
    background: var(--paper-light);
    animation: none;
    font-size: 13px;
    font-weight: 750;
}

.pdf-rendered-page-label {
    position: absolute;
    right: 7px;
    bottom: 7px;
    z-index: 2;
    padding: 2px 7px;
    color: white;
    background: rgba(13, 18, 32, 0.62);
    border-radius: 999px;
    font-size: 9px;
    font-weight: 750;
}

.pdf-viewer-fallback {
    margin: 14px auto;
    text-align: center;
}

.pdf-viewer-fallback a {
    color: var(--velvet-dark);
    font-weight: 800;
}

.image-viewer-toolbar,
.document-viewer-toolbar {
    grid-template-columns: auto minmax(0, 1fr);
}

.image-viewer-content {
    min-height: 0;
    display: grid;
    place-items: center;
    overflow: auto;
    padding: 12px;
    background: var(--ink-deep);
    -webkit-overflow-scrolling: touch;
}

.image-viewer-figure {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.image-viewer-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
    background: var(--paper-light);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.document-viewer-content {
    min-height: 0;
    display: grid;
    place-items: center;
    overflow: auto;
    padding: 28px 18px;
    background:
        radial-gradient(circle at 50% 20%, rgba(210, 167, 83, 0.15), transparent 34%),
        var(--paper);
    -webkit-overflow-scrolling: touch;
}

.document-viewer-card {
    width: min(560px, 100%);
    padding: clamp(26px, 7vw, 48px);
    text-align: center;
    background: var(--paper-light);
    border: 1px solid var(--line);
    border-top: 6px solid var(--velvet);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.document-viewer-mark {
    width: 82px;
    height: 82px;
    display: inline-grid;
    place-items: center;
    margin-bottom: 22px;
    color: white;
    background: var(--ink);
    border-radius: 20px;
    box-shadow: 0 10px 24px rgba(13, 18, 32, 0.2);
    font-size: 15px;
    font-weight: 850;
    letter-spacing: 0.05em;
}

.document-viewer-card h1 {
    margin: 6px 0 14px;
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(30px, 7vw, 46px);
    line-height: 1.02;
}

.document-viewer-card > p:not(.eyebrow, .document-viewer-note) {
    margin: 0 auto 24px;
    color: var(--muted);
}

.document-viewer-open {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    color: white;
    background: var(--velvet);
    border-radius: 999px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 850;
}

.document-viewer-open[aria-disabled="true"] {
    opacity: 0.65;
    pointer-events: none;
}

.document-viewer-note {
    margin: 15px 0 0;
    color: var(--muted);
    font-size: 12px;
}

@keyframes pdf-page-loading {
    from {
        background-position: 100% 0;
    }

    to {
        background-position: -100% 0;
    }
}

button,
input,
select {
    font: inherit;
}

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

a {
    color: inherit;
}

[hidden] {
    display: none !important;
}

.page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 5px clamp(22px, 5vw, 76px);
    color: var(--ink);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: inherit;
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: clamp(170px, 17vw, 200px);
    height: auto;
}

.brand-mark {
    width: 49px;
    height: 49px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid var(--gold);
    border-radius: 50%;
    color: var(--gold);
    font-family: var(--serif);
    font-size: 18px;
    letter-spacing: 0.08em;
}

.brand-copy {
    display: grid;
    line-height: 1.15;
}

.brand-copy strong {
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.brand-copy small {
    margin-top: 5px;
    color: #c7c2b8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.private-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.private-label span {
    color: var(--copper);
    font-size: 10px;
}

.login-page {
    background: var(--ink);
}

.login-page main {
    flex: 1;
    display: grid;
}

.login-layout {
    width: min(1240px, 100%);
    margin: auto;
    padding: clamp(34px, 5.5vw, 72px) clamp(22px, 5vw, 76px);
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    gap: clamp(52px, 8vw, 110px);
    align-items: center;
}

.stage-intro {
    position: relative;
    color: var(--paper-light);
    padding-left: clamp(0px, 3vw, 38px);
}

.stage-intro::before {
    content: "";
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 0;
    width: 3px;
    background: var(--velvet);
}

.eyebrow,
.card-kicker {
    margin: 0 0 18px;
    color: var(--copper);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.stage-intro h1,
.library-heading h1 {
    margin: 0;
    font-family: var(--serif);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 0.98;
}

.stage-intro h1 {
    max-width: 760px;
    font-size: clamp(30px, 5vw, 72px);
}

.intro-text {
    max-width: 580px;
    margin: 24px 0 0;
    color: #d5d1c9;
    font-family: var(--serif);
    font-size: clamp(19px, 1.8vw, 25px);
    font-style: italic;
}

.repertoire-line {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 32px;
    color: #b9bdc8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.repertoire-line span:not(:last-child)::after {
    content: "·";
    margin-left: 22px;
    color: var(--gold);
}

.login-card {
    padding: clamp(26px, 3vw, 40px);
    color: var(--text);
    background: var(--paper-light);
    border-top: 5px solid var(--velvet);
    border-radius: 4px var(--radius-large) var(--radius-large) var(--radius-large);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.login-card h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(30px, 3.2vw, 39px);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.05;
}

.login-card > p {
    margin: 14px 0 22px;
    color: var(--muted);
}

.credentials-fields {
    display: grid;
    gap: 12px;
}

.credential-field {
    display: grid;
    gap: 6px;
    margin: 0;
}

.credential-field span {
    font-size: 13px;
    font-weight: 800;
}

.credential-field input,
.search-field input {
    width: 100%;
    border: 1px solid var(--line);
    outline: none;
    color: var(--text);
    background: #fff;
}

.credential-field input {
    min-height: 50px;
    padding: 0 16px;
    border-radius: 10px;
}

.credential-field input:focus,
.search-field:focus-within {
    border-color: var(--velvet);
    box-shadow: 0 0 0 4px rgba(158, 63, 82, 0.12);
}

.primary-button,
.quiet-button,
.filter-button,
.file-action {
    border: 0;
    cursor: pointer;
    font-weight: 800;
    text-decoration: none;
}

.primary-button {
    min-height: 50px;
    padding: 0 22px;
    color: white;
    background: var(--velvet);
    border-radius: 10px;
    transition: background 160ms ease, transform 160ms ease;
}

.primary-button:hover {
    background: var(--velvet-dark);
    transform: translateY(-1px);
}

.primary-button:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.privacy-note {
    margin: 18px 0 0 !important;
    color: #858b97 !important;
    font-size: 12px;
    text-align: center;
}

.alert {
    margin: 0 0 20px;
    padding: 12px 14px;
    color: #7d2336;
    background: #fae8eb;
    border-left: 3px solid var(--velvet);
    border-radius: 8px;
    font-size: 14px;
}

.alert-neutral {
    color: #6e5421;
    background: #f8eed3;
    border-color: var(--gold);
}

.alert-success {
    color: #285d58;
    background: #e5efec;
    border-color: var(--sage);
}

.library-page main {
    width: min(1440px, 100%);
    flex: 1;
    margin: 0 auto;
    padding: clamp(22px, 2.5vw, 36px) clamp(18px, 4vw, 56px) 42px;
}

.library-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 26px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.library-heading .eyebrow {
    margin-bottom: 8px;
    color: var(--velvet);
}

.library-heading h1 {
    color: var(--ink);
    font-size: clamp(32px, 4vw, 52px);
}

.library-heading > div > p:last-child {
    max-width: 680px;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 15px;
}

.access-status {
    min-width: 190px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(85, 125, 119, 0.09);
    border: 1px solid rgba(85, 125, 119, 0.25);
    border-radius: 14px;
}

.status-dot {
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    background: var(--sage);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(85, 125, 119, 0.12);
}

.access-status div {
    display: grid;
}

.access-status strong {
    color: var(--ink);
    font-size: 13px;
}

.access-status small {
    color: var(--muted);
    font-size: 11px;
}

.logout-form {
    margin: 0;
}

.quiet-button {
    padding: 8px 13px;
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 14px;
}

.quiet-button:hover {
    color: var(--velvet-dark);
    background: rgba(255, 255, 255, 0.45);
    border-color: rgba(158, 63, 82, 0.45);
}

.library-alert {
    margin: 16px 0 0;
}

.upload-disclosure {
    margin: 16px 0;
}

.upload-disclosure summary {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 9px;
    margin-left: auto;
    padding: 9px 13px;
    color: white;
    background: var(--velvet);
    border-radius: 999px;
    cursor: pointer;
    list-style: none;
    font-size: 13px;
    font-weight: 850;
    transition: background 160ms ease, transform 160ms ease;
}

.upload-disclosure summary::-webkit-details-marker {
    display: none;
}

.upload-disclosure summary:hover {
    background: var(--velvet-dark);
    transform: translateY(-1px);
}

.upload-disclosure summary small {
    color: rgba(255, 255, 255, 0.72);
    font-size: 10px;
    font-weight: 650;
}

.upload-disclosure summary::after {
    content: "+";
    width: 21px;
    height: 21px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    font-size: 17px;
    line-height: 1;
}

.upload-disclosure[open] summary::after {
    content: "−";
}

.upload-panel {
    display: grid;
    grid-template-columns: minmax(220px, 0.72fr) minmax(400px, 1.28fr);
    gap: clamp(22px, 4vw, 54px);
    margin: 12px 0 20px;
    padding: clamp(20px, 3vw, 30px);
    color: var(--ink);
    background: rgba(252, 250, 246, 0.78);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.upload-intro .eyebrow,
.review-summary .eyebrow {
    margin: 0 0 5px;
    color: var(--velvet);
}

.upload-intro h2,
.review-summary h2 {
    margin: 0;
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(25px, 2.4vw, 34px);
    font-weight: 600;
    line-height: 1.05;
}

.upload-intro > p:last-child {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.upload-form {
    display: grid;
    gap: 12px;
}

.depositor-identity {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: baseline;
    gap: 3px 8px;
    padding: 12px 14px;
    color: var(--ink);
    background: rgba(158, 63, 82, 0.07);
    border: 1px solid rgba(158, 63, 82, 0.2);
    border-radius: 9px;
}

.depositor-identity span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.depositor-identity strong {
    font-size: 14px;
}

.depositor-identity small {
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: 12px;
}

.drop-zone {
    position: relative;
    min-height: 150px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 2px;
    padding: 20px;
    overflow: hidden;
    color: var(--muted);
    background: white;
    border: 1.5px dashed rgba(158, 63, 82, 0.5);
    border-radius: 13px;
    cursor: pointer;
    text-align: center;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.drop-zone:hover,
.drop-zone.is-dragging,
.drop-zone:focus-within {
    background: #fff8f5;
    border-color: var(--velvet);
}

.drop-zone.is-dragging {
    transform: scale(1.01);
}

.drop-zone input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.drop-icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    margin-bottom: 3px;
    color: white;
    background: var(--velvet);
    border-radius: 50%;
    font-size: 21px;
    line-height: 1;
}

.drop-zone strong {
    color: var(--ink);
    font-size: 14px;
}

.drop-zone > span:not(.drop-icon):not(.selected-files),
.drop-zone small {
    font-size: 11px;
}

.selected-files {
    max-width: 100%;
    margin-top: 7px;
    overflow: hidden;
    color: var(--velvet-dark);
    font-size: 11px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upload-button {
    justify-self: end;
}

.review-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 20px 0 0;
    padding: 16px 20px;
    background: rgba(210, 167, 83, 0.11);
    border: 1px solid rgba(210, 167, 83, 0.38);
    border-radius: 14px;
}

.review-summary > strong {
    min-width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: white;
    background: var(--velvet);
    border-radius: 50%;
    font-size: 18px;
}

.library-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 16px 0;
}

.search-field {
    width: min(410px, 100%);
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    background: var(--paper-light);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.search-field input {
    min-width: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none !important;
}

.search-icon {
    color: var(--velvet);
    font-family: var(--serif);
    font-size: 23px;
    line-height: 1;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.project-filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: -3px 0 16px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.38);
    border: 1px solid rgba(158, 63, 82, 0.12);
    border-radius: 12px;
}

.project-filter-bar > strong {
    flex: 0 0 auto;
    color: var(--velvet);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-filters {
    justify-content: flex-start;
}

.project-filter-bar .filter-button.is-active {
    background: var(--velvet);
}

.filter-button {
    padding: 7px 11px;
    color: #606777;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 13px;
}

.filter-button span {
    margin-left: 4px;
    color: #969ba5;
    font-size: 11px;
}

.filter-button:hover {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.55);
}

.filter-button.is-active {
    color: white;
    background: var(--ink);
}

.filter-button.is-active span {
    color: #c9cdd6;
}

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

.file-card {
    grid-column: span 4;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 16px;
    overflow: hidden;
    background: var(--paper-light);
    border: 1px solid rgba(117, 105, 87, 0.18);
    border-radius: var(--radius);
    box-shadow: 0 5px 18px rgba(21, 27, 43, 0.04);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.file-card:hover {
    border-color: rgba(158, 63, 82, 0.3);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.file-deposit {
    border-color: rgba(210, 167, 83, 0.58);
    box-shadow: inset 0 4px 0 var(--gold), 0 5px 18px rgba(21, 27, 43, 0.04);
}

.file-video {
    grid-column: span 4;
}

.file-card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.type-badge,
.extension-badge {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.type-badge {
    padding: 4px 9px;
    color: var(--velvet-dark);
    background: rgba(158, 63, 82, 0.09);
    border-radius: 999px;
}

.file-audio .type-badge {
    color: #2e6661;
    background: rgba(85, 125, 119, 0.11);
}

.file-video .type-badge {
    color: #765717;
    background: rgba(210, 167, 83, 0.16);
}

.extension-badge {
    color: #959aa5;
}

.file-copy {
    flex: 1;
    padding: 14px 0 12px;
}

.folder-name {
    margin: 0 0 7px;
    color: var(--copper);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.file-copy h2 {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(21px, 2vw, 28px);
    font-weight: 600;
    line-height: 1.08;
}

.file-meta {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 12px;
}

audio,
video {
    display: block;
    width: 100%;
}

audio {
    min-height: 46px;
}

video {
    aspect-ratio: 16 / 9;
    background: var(--ink-deep);
    border-radius: 11px;
}

.image-preview {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    margin: 0 0 10px;
    overflow: hidden;
    background: var(--paper);
    border: 1px solid rgba(117, 105, 87, 0.16);
    border-radius: 11px;
}

.image-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 180ms ease;
}

.image-preview:hover img {
    transform: scale(1.025);
}

.file-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 47px;
    padding: 0 15px;
    color: var(--ink);
    background: var(--paper);
    border-radius: 10px;
    font-size: 13px;
}

.file-action:hover {
    color: white;
    background: var(--velvet);
}

.file-action span {
    font-size: 18px;
}

.deposit-information {
    display: grid;
    margin-top: 13px;
    padding: 11px 13px;
    color: var(--muted);
    background: rgba(210, 167, 83, 0.11);
    border-radius: 10px;
}

.deposit-information span,
.approval-form label > span {
    color: #806323;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.deposit-information strong {
    color: var(--ink);
    font-size: 13px;
}

.deposit-information small {
    font-size: 10px;
}

.approval-form {
    display: grid;
    gap: 9px;
    margin-top: 10px;
}

.approval-form label {
    display: grid;
    gap: 5px;
}

.approval-form input[type="text"],
.approval-form select {
    width: 100%;
    min-height: 40px;
    padding: 0 10px;
    color: var(--ink);
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.approval-form input[type="text"]:focus,
.approval-form select:focus {
    border-color: var(--velvet);
    outline: none;
    box-shadow: 0 0 0 3px rgba(158, 63, 82, 0.11);
}

.approval-form label > small {
    color: var(--muted);
    font-size: 10px;
}

.approve-button,
.delete-deposit-form button {
    min-height: 40px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
}

.approve-button {
    color: white;
    background: var(--sage);
    border: 0;
}

.approve-button:hover {
    background: #386963;
}

.delete-deposit-form {
    margin-top: 7px;
}

.delete-deposit-form button {
    width: 100%;
    color: var(--velvet-dark);
    background: transparent;
    border: 1px solid rgba(158, 63, 82, 0.28);
}

.delete-deposit-form button:hover {
    background: #fae8eb;
    border-color: var(--velvet);
}

.unavailable-note {
    margin: 0;
    padding: 12px 14px;
    color: #756b5b;
    background: #f2eadc;
    border-radius: 10px;
    font-size: 12px;
}

.empty-state,
.empty-search {
    grid-column: 1 / -1;
    padding: clamp(50px, 9vw, 100px) 24px;
    text-align: center;
    background: rgba(255, 255, 255, 0.38);
    border: 1px dashed #c7bdad;
    border-radius: var(--radius-large);
}

.empty-monogram {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    color: var(--velvet);
    border: 1px solid rgba(158, 63, 82, 0.35);
    border-radius: 50%;
    font-family: var(--serif);
    font-size: 24px;
}

.empty-state h2,
.empty-search h2 {
    margin: 0;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 34px;
}

.empty-state p,
.empty-search p {
    margin: 8px auto 0;
    max-width: 560px;
    color: var(--muted);
}

.sharing-reminder {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    padding: 18px 22px;
    color: #d9d5ce;
    background: var(--ink);
    border-radius: 14px;
}

.sharing-reminder > span {
    color: var(--gold);
    font-size: 24px;
}

.sharing-reminder p {
    margin: 0;
    font-size: 13px;
}

.sharing-reminder strong {
    color: white;
}

footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 24px clamp(22px, 5vw, 76px);
    color: #8f96a5;
    background: var(--ink-deep);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.login-page footer {
    border-top: 1px solid var(--white-line);
}

@media (max-width: 1000px) {
    .login-layout {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .stage-intro {
        max-width: 780px;
    }

    .login-card {
        width: min(620px, 100%);
    }

    .upload-panel {
        grid-template-columns: 1fr;
    }

    .file-card,
    .file-video {
        grid-column: span 6;
    }

    .library-tools {
        align-items: stretch;
        flex-direction: column;
    }

    .filters {
        justify-content: flex-start;
    }

    .project-filter-bar {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 700px) {
    .pdf-viewer-toolbar {
        gap: 10px;
        padding-bottom: 7px;
    }

    .pdf-viewer-back {
        min-height: 40px;
        padding-inline: 8px 11px;
        font-size: 12px;
    }

    .pdf-viewer-download {
        max-width: 108px;
        min-height: 40px;
        padding-inline: 10px;
        font-size: 10px;
    }

    .pdf-viewer-title strong {
        font-size: 15px;
    }

    .pdf-viewer-title small {
        display: none;
    }

    .pdf-viewer-content {
        padding: 6px 0 10px;
    }

    .pdf-viewer-status {
        margin-bottom: 6px;
    }

    .pdf-document {
        gap: 7px;
    }

    .pdf-rendered-page {
        border-radius: 0;
    }

    .image-viewer-toolbar,
    .document-viewer-toolbar {
        gap: 8px;
    }

    .image-viewer-content {
        padding: 6px;
    }

    .document-viewer-content {
        padding: 18px 12px;
    }

    .document-viewer-card {
        padding: 28px 20px;
        border-radius: 18px;
    }

    .site-header {
        min-height: 58px;
        padding: 5px 18px;
    }

    .brand-logo {
        width: min(145px, 48vw);
    }

    .brand-mark {
        width: 42px;
        height: 42px;
        font-size: 15px;
    }

    .brand-copy strong {
        font-size: 17px;
    }

    .private-label,
    .brand-copy small {
        font-size: 9px;
    }

    .login-layout {
        padding-top: 54px;
        padding-bottom: 60px;
    }

    .stage-intro::before {
        display: none;
    }

    .repertoire-line {
        gap: 9px 14px;
        margin-top: 32px;
    }

    .repertoire-line span:not(:last-child)::after {
        margin-left: 14px;
    }

    .login-card {
        padding: 28px 22px;
        border-radius: 4px 20px 20px 20px;
    }

    .library-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .access-status {
        width: 100%;
    }

    .upload-panel {
        padding: 18px;
    }

    .upload-button {
        width: 100%;
        justify-self: stretch;
    }

    .filter-button {
        padding-inline: 11px;
    }

    .file-card,
    .file-video {
        grid-column: 1 / -1;
    }

    footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}
