:root {
    --bg: #07100f;
    --bg-soft: #0b1715;
    --panel: rgba(16, 31, 28, .82);
    --panel-solid: #101f1c;
    --line: rgba(173, 211, 201, .14);
    --text: #f2f7f4;
    --muted: #8fa59f;
    --accent: #b8ff5a;
    --accent-dark: #17270d;
    --danger: #ff6d72;
    --radius: 18px;
    --shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 13% 12%, rgba(102, 205, 148, .11), transparent 30%),
        radial-gradient(circle at 90% 90%, rgba(184, 255, 90, .06), transparent 28%),
        linear-gradient(135deg, #06100e 0%, #081310 50%, #07100f 100%);
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
.page-shell { min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
    width: min(1380px, calc(100% - 48px));
    margin: 0 auto;
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: 42px;
    border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand > span:last-child { display: grid; }
.brand strong { font-size: 1.05rem; letter-spacing: .18em; }
.brand small { color: var(--muted); font-size: .67rem; letter-spacing: .11em; text-transform: uppercase; }
.brand-mark { display: flex; align-items: center; gap: 3px; width: 34px; height: 34px; padding: 7px; border: 1px solid rgba(184, 255, 90, .45); border-radius: 9px; background: rgba(184, 255, 90, .08); }
.brand-mark span { width: 4px; border-radius: 5px; background: var(--accent); box-shadow: 0 0 11px rgba(184, 255, 90, .55); }
.brand-mark span:nth-child(1) { height: 10px; }
.brand-mark span:nth-child(2) { height: 19px; }
.brand-mark span:nth-child(3) { height: 14px; }
.navigation { display: flex; align-items: center; gap: 26px; }
.navigation a { color: #b8c9c4; font-size: .91rem; }
.navigation a:hover { color: var(--accent); }
.account { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .86rem; }
.account form { margin: 0; }
.link-button { border: 0; padding: 0; background: none; color: var(--accent); cursor: pointer; }
.link-button:hover { text-decoration: underline; }

.main-content { width: min(1240px, calc(100% - 48px)); margin: 0 auto; flex: 1; padding: 62px 0 72px; }
.footer { width: min(1380px, calc(100% - 48px)); margin: 0 auto; padding: 22px 0 30px; border-top: 1px solid var(--line); color: #62756f; font-size: .76rem; text-align: center; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 12px; font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1; letter-spacing: -.045em; }
h2 { margin-bottom: 8px; letter-spacing: -.025em; }
.muted { color: var(--muted); }
.eyebrow { display: inline-block; margin-bottom: 15px; color: var(--accent); font-size: .72rem; font-weight: 800; letter-spacing: .18em; }
.optional { color: #657a74; font-weight: 400; }

.panel { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(18, 36, 32, .93), rgba(10, 23, 20, .9)); box-shadow: var(--shadow); backdrop-filter: blur(16px); }
.button { min-height: 43px; padding: 0 17px; border: 1px solid transparent; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 750; font-size: .86rem; cursor: pointer; transition: transform .15s ease, border-color .15s ease, background .15s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #091008; background: var(--accent); box-shadow: 0 8px 28px rgba(184, 255, 90, .13); }
.button-primary:hover { background: #c9ff84; }
.button:disabled { cursor: not-allowed; opacity: .5; box-shadow: none; }
.button-secondary { border-color: rgba(184, 255, 90, .28); color: var(--accent); background: rgba(184, 255, 90, .06); }
.button-ghost { border-color: var(--line); color: #b6c7c2; background: transparent; }
.button-danger { color: var(--danger); border-color: rgba(255, 109, 114, .35); background: rgba(255, 109, 114, .08); }
.button-full { width: 100%; }
.alert { margin-bottom: 22px; padding: 14px 17px; border-radius: 11px; border: 1px solid; font-size: .9rem; }
.alert-success { color: #caffc9; border-color: rgba(119, 240, 150, .3); background: rgba(67, 176, 97, .1); }
.alert-error { color: #ffb8bb; border-color: rgba(255, 109, 114, .3); background: rgba(255, 109, 114, .09); }

.auth-grid { min-height: calc(100vh - 250px); display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: clamp(50px, 9vw, 140px); }
.auth-intro h1 { max-width: 740px; font-size: clamp(3.2rem, 7.5vw, 7.1rem); }
.auth-intro h1 em { color: var(--accent); font-style: normal; }
.auth-intro > p { max-width: 580px; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
.auth-panel { max-width: 470px; width: 100%; padding: clamp(28px, 5vw, 52px); }
.auth-panel h2 { font-size: 2.2rem; }
.signal-card { width: min(560px, 100%); margin-top: 58px; padding: 22px 25px; border: 1px solid var(--line); border-radius: 13px; background: rgba(11, 23, 20, .68); color: #62756f; font-size: .65rem; letter-spacing: .18em; }
.signal-lines { height: 62px; display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.signal-lines i { flex: 1; min-width: 3px; border-radius: 20px; background: linear-gradient(to top, #365844, var(--accent)); opacity: .75; box-shadow: 0 0 14px rgba(184,255,90,.15); }
.signal-lines i:nth-child(1), .signal-lines i:nth-child(11) { height: 20%; }
.signal-lines i:nth-child(2), .signal-lines i:nth-child(10) { height: 42%; }
.signal-lines i:nth-child(3), .signal-lines i:nth-child(9) { height: 68%; }
.signal-lines i:nth-child(4), .signal-lines i:nth-child(8) { height: 35%; }
.signal-lines i:nth-child(5), .signal-lines i:nth-child(7) { height: 86%; }
.signal-lines i:nth-child(6) { height: 100%; }

.form-stack { display: grid; gap: 21px; }
label { display: grid; gap: 8px; color: #c6d3cf; font-size: .84rem; font-weight: 700; }
label small { color: var(--muted); font-weight: 400; }
input, textarea, select { width: 100%; color: var(--text); border: 1px solid var(--line); border-radius: 10px; outline: none; background: rgba(5, 15, 13, .75); }
input, select { height: 48px; padding: 0 14px; }
textarea { padding: 13px 14px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: rgba(184, 255, 90, .62); box-shadow: 0 0 0 3px rgba(184, 255, 90, .07); }
select option { color: #111; }

.page-heading { margin-bottom: 38px; display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
.page-heading h1 { margin-bottom: 9px; }
.page-heading p { margin-bottom: 0; }
.compact-heading { align-items: flex-start; }
.back-link { display: inline-block; margin-bottom: 27px; color: var(--accent); font-size: .82rem; }
.library-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.audio-card { padding: 24px; }
.audio-card-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.file-icon, .empty-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; color: var(--accent); background: rgba(184, 255, 90, .09); border: 1px solid rgba(184, 255, 90, .18); font-weight: 900; }
.audio-title { min-width: 0; }
.audio-title h2 { margin: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 1.05rem; }
.audio-title p { margin: 4px 0 0; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .75rem; }
.badge { padding: 6px 9px; border-radius: 999px; font-size: .67rem; font-weight: 800; }
.badge-public { color: var(--accent); background: rgba(184, 255, 90, .09); }
.badge-private { color: #b7c5c1; background: rgba(160, 178, 173, .1); }
.description { min-height: 40px; margin: 18px 0; color: #9eb0aa; line-height: 1.55; font-size: .84rem; }
.audio-player { width: 100%; height: 40px; margin: 22px 0 13px; filter: invert(.87) hue-rotate(60deg) saturate(.7); opacity: .85; }
.video-player { display: block; width: 100%; max-height: 420px; margin: 22px 0 13px; border-radius: 11px; background: #000; }
.audio-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; color: #71847e; font-size: .7rem; }
.card-actions { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; gap: 9px; }
.empty-state { padding: 76px 30px; text-align: center; }
.empty-state .empty-icon { margin: 0 auto 23px; width: 62px; height: 62px; font-size: 1.5rem; }
.empty-state p { margin-bottom: 25px; }

.form-panel { max-width: 840px; padding: clamp(24px, 5vw, 46px); }
.account-panel { max-width: 620px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.upload-zone { position: relative; min-height: 210px; padding: 28px; place-items: center; align-content: center; border: 1px dashed rgba(184, 255, 90, .35); border-radius: 14px; background: rgba(184, 255, 90, .035); cursor: pointer; }
.upload-zone:hover { background: rgba(184, 255, 90, .06); }
.upload-zone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-zone span:not(.upload-icon) { color: var(--muted); font-weight: 400; }
.upload-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 8px; border-radius: 50%; color: var(--accent); background: rgba(184,255,90,.09); font-size: 1.4rem; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; }
.edit-player { margin-top: 0; margin-bottom: 28px; }
.danger-zone { margin-top: 36px; padding-top: 27px; border-top: 1px solid rgba(255,109,114,.18); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.danger-zone p { margin: 4px 0 0; color: var(--muted); font-size: .8rem; }

.admin-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 22px; align-items: start; }
.compact-panel { padding: 28px; }
.table-panel { overflow: hidden; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .82rem; }
th, td { padding: 18px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: #71847e; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; }
td strong, td small { display: block; }
td small { margin-top: 4px; color: var(--muted); }
tbody tr:last-child td { border-bottom: 0; }
.error-state { max-width: 720px; margin: 9vh auto 0; }
.error-state h1 { font-size: 1.8rem; line-height: 1.25; }

@media (max-width: 920px) {
    .auth-grid, .admin-grid { grid-template-columns: 1fr; }
    .auth-intro { padding-top: 20px; }
    .auth-panel { max-width: none; }
    .signal-card { display: none; }
    .library-grid { grid-template-columns: 1fr; }
    .navigation { order: 3; width: 100%; padding-bottom: 16px; }
    .topbar { flex-wrap: wrap; padding-top: 16px; }
}

@media (max-width: 640px) {
    .topbar, .main-content, .footer { width: min(100% - 28px, 1240px); }
    .main-content { padding-top: 38px; }
    .account > span { display: none; }
    .navigation { gap: 16px; overflow-x: auto; }
    .navigation a { white-space: nowrap; }
    .page-heading { align-items: stretch; flex-direction: column; }
    .page-heading .button { width: 100%; }
    .field-grid { grid-template-columns: 1fr; }
    .audio-card-top { grid-template-columns: auto minmax(0, 1fr); }
    .audio-card-top .badge { grid-column: 2; justify-self: start; }
    .card-actions, .form-actions, .danger-zone { align-items: stretch; flex-direction: column; }
    .card-actions .button, .form-actions .button, .danger-zone .button { width: 100%; }
    .auth-intro h1 { font-size: 3.3rem; }
}

/* SCP:RP Foundation archive theme */
:root {
    --bg: #090a0b;
    --bg-soft: #111315;
    --panel: rgba(20, 22, 24, .96);
    --panel-solid: #151719;
    --line: rgba(221, 226, 229, .16);
    --text: #edf0f1;
    --muted: #8d9498;
    --accent: #d33b37;
    --accent-dark: #2b1110;
    --danger: #ff554f;
    --audio-accent: #b8c7cf;
    --video-accent: #d33b37;
    --radius: 3px;
    --shadow: 0 18px 50px rgba(0, 0, 0, .42);
}

html { scroll-behavior: smooth; }
body {
    font-family: "Arial Narrow", "Roboto Condensed", "Segoe UI", Arial, sans-serif;
    background:
        linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
        radial-gradient(circle at 75% 15%, rgba(211,59,55,.09), transparent 28%),
        linear-gradient(135deg, #08090a, #101214 52%, #08090a);
    background-size: 32px 32px, 32px 32px, auto, auto;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background: linear-gradient(90deg, transparent 49.85%, rgba(211,59,55,.08) 50%, transparent 50.15%);
}

.security-strip {
    min-height: 30px;
    padding: 7px max(24px, calc((100% - 1380px) / 2));
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: #d6dadd;
    border-bottom: 1px solid #561a18;
    background: #170a0a repeating-linear-gradient(135deg, rgba(211,59,55,.11) 0 8px, transparent 8px 16px);
    font: 700 .61rem/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: .14em;
}
.security-strip span:nth-child(2) { color: #7f878b; }
.security-strip span:last-child { color: #ff6862; }

.topbar { min-height: 88px; border-bottom: 1px solid #33373a; }
.brand { gap: 14px; }
.brand strong { font-size: 1rem; letter-spacing: .2em; }
.brand small { color: #747b7f; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .13em; }
.brand-mark {
    position: relative;
    width: 42px;
    height: 42px;
    padding: 10px;
    justify-content: center;
    border: 2px solid #c8cdcf;
    border-radius: 50%;
    background: #0c0d0e;
    transform: rotate(180deg);
}
.brand-mark::after { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(211,59,55,.75); border-radius: 50%; }
.brand-mark span { width: 3px; border-radius: 0; background: #d33b37; box-shadow: none; z-index: 1; }
.navigation { gap: 6px; }
.navigation a { padding: 9px 13px; color: #aab0b3; border-left: 2px solid transparent; font-size: .72rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.navigation a:hover { color: #fff; border-left-color: var(--accent); background: rgba(211,59,55,.08); }
.account { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.clearance-badge { padding: 4px 7px; color: #ff726c; border: 1px solid #7d2926; background: #21100f; font-size: .66rem; font-weight: 900; }

.main-content { padding-top: 54px; }
.footer { display: flex; justify-content: space-between; color: #596064; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .62rem; letter-spacing: .12em; }
h1 { letter-spacing: -.03em; text-transform: uppercase; }
h2, h3 { letter-spacing: .015em; }
.eyebrow, .section-code, .record-classification { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.eyebrow { color: #e1504b; }

.panel { position: relative; border-color: #303437; border-radius: 3px; background: linear-gradient(145deg, rgba(25,27,29,.98), rgba(13,15,16,.98)); backdrop-filter: none; }
.panel::before { content: ""; position: absolute; top: -1px; left: -1px; width: 42px; height: 3px; background: var(--accent); }
.button { min-height: 42px; border-radius: 2px; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.button-primary { color: #fff; border-color: #e24b46; background: #b92e2a; box-shadow: 0 7px 24px rgba(211,59,55,.18); }
.button-primary:hover { background: #d33b37; }
.button-secondary { color: #dde2e4; border-color: #51575a; background: #242729; }
.button-secondary:hover { border-color: #a7afb3; background: #303437; }
.button-ghost { color: #aeb4b7; border-color: #373b3e; }
.button-danger { color: #ff7772; border-color: #7c2b28; background: rgba(158,38,34,.12); }
.link-button { color: #e75a55; }
.alert { border-radius: 2px; border-left-width: 4px; }
.alert-success { color: #d8e5dc; border-color: #4c7259; background: rgba(56,91,67,.18); }
.alert-error { color: #ffaaa6; border-color: #9f3733; background: rgba(126,38,34,.18); }

input, textarea, select { border-radius: 2px; border-color: #373b3e; background: #0b0c0d; }
input:focus, textarea:focus, select:focus { border-color: #b83a36; box-shadow: 0 0 0 2px rgba(211,59,55,.12); }
label { color: #c5c9cb; letter-spacing: .025em; }
.upload-zone { border-radius: 2px; border-color: #6c302e; background: rgba(211,59,55,.025); }
.upload-zone:hover { background: rgba(211,59,55,.06); }
.upload-icon { border-radius: 2px; color: #ff6c66; background: #251110; }
.back-link { color: #df4c47; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; text-transform: uppercase; }

.archive-heading { margin-bottom: 26px; }
.archive-heading h1 { margin-bottom: 12px; font-size: clamp(2.4rem, 5vw, 4.8rem); }
.archive-status {
    display: grid;
    grid-template-columns: minmax(220px, 1.6fr) repeat(4, 1fr);
    margin-bottom: 22px;
    border: 1px solid #303437;
    border-top: 3px solid #a92d29;
    background: #111315;
}
.status-intro, .status-stat { min-height: 78px; padding: 17px 20px; display: flex; align-items: center; border-right: 1px solid #2b2e31; }
.status-intro { gap: 13px; }
.status-intro strong, .status-intro small, .status-stat small { display: block; }
.status-intro strong { color: #cfd4d6; font: 800 .73rem ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .12em; }
.status-intro small { margin-top: 4px; color: #666d71; font: .58rem ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .11em; }
.status-light { width: 9px; height: 9px; border-radius: 50%; background: #70a77d; box-shadow: 0 0 12px rgba(112,167,125,.55); }
.status-stat { justify-content: center; flex-direction: column; text-align: center; }
.status-stat span { font: 800 1.5rem ui-monospace, SFMono-Regular, Consolas, monospace; }
.status-stat small { margin-top: 4px; color: #72797d; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }

.archive-index { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 44px; }
.archive-index a { position: relative; min-height: 92px; padding: 18px 22px 18px 26px; display: grid; align-content: center; border: 1px solid #33373a; background: linear-gradient(120deg, #17191b, #101214); }
.archive-index a::before { content: ""; position: absolute; inset: -1px auto -1px -1px; width: 4px; background: #aebbc2; }
.archive-index a:last-child::before { background: #c43632; }
.archive-index a:hover { border-color: #5a6064; transform: translateY(-1px); }
.archive-index span { color: #70777b; font: .59rem ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .14em; }
.archive-index strong { margin: 4px 0; font-size: 1.05rem; text-transform: uppercase; }
.archive-index small { color: #7c8387; }

.archive-section { --section-accent: var(--audio-accent); margin: 0 0 56px; scroll-margin-top: 24px; }
.archive-section-video { --section-accent: var(--video-accent); }
.archive-section-header { position: relative; min-height: 110px; padding: 22px 24px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 20px; border: 1px solid #33373a; border-bottom: 0; background: #151719; overflow: hidden; }
.archive-section-header::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: var(--section-accent); }
.archive-section-symbol { width: 56px; height: 56px; display: grid; place-items: center; color: var(--section-accent); border: 1px solid color-mix(in srgb, var(--section-accent) 45%, transparent); background: color-mix(in srgb, var(--section-accent) 7%, transparent); font-size: 1.3rem; }
.archive-section-header h2 { margin: 4px 0; font-size: 1.45rem; text-transform: uppercase; }
.archive-section-header p { margin: 0; color: #7d8488; font-size: .8rem; }
.section-code { color: var(--section-accent); font-size: .59rem; letter-spacing: .13em; }
.section-count { padding: 8px 10px; color: #aeb4b7; border: 1px solid #3c4144; background: #0d0f10; font: .62rem ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .08em; }
.archive-section .library-grid { padding: 20px; border: 1px solid #2e3235; border-top: 0; background: rgba(10,11,12,.74); }
.section-empty { min-height: 128px; padding: 28px; display: flex; align-items: center; justify-content: center; gap: 16px; border: 1px solid #2e3235; border-top: 0; background: rgba(10,11,12,.74); color: #858c90; }
.section-empty > span { color: var(--section-accent); font-size: 1.4rem; }
.section-empty strong, .section-empty small { display: block; }
.section-empty strong { font: .72rem ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .1em; }
.section-empty small { margin-top: 6px; color: #5f666a; }

.audio-card { padding: 0 22px 22px; overflow: hidden; }
.audio-card::before { display: none; }
.record-classification { margin: 0 -22px 19px; padding: 8px 12px; color: #737a7e; border-bottom: 1px solid #303437; background: #0d0f10 repeating-linear-gradient(135deg, rgba(255,255,255,.018) 0 7px, transparent 7px 14px); font-size: .57rem; letter-spacing: .13em; }
.media-card-audio { border-top: 2px solid #89989f; }
.media-card-video { border-top: 2px solid #b8322e; }
.audio-title h3 { margin: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 1rem; text-transform: uppercase; }
.file-icon { border-radius: 2px; color: var(--audio-accent); border-color: #4c5559; background: #171b1d; }
.media-card-video .file-icon { color: #ed5b55; border-color: #642522; background: #21100f; }
.badge { border-radius: 2px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .06em; }
.badge-public { color: #b9d4bf; border: 1px solid #3f6549; background: rgba(50,92,61,.16); }
.badge-private { color: #ff8d87; border: 1px solid #6c2a27; background: rgba(120,34,31,.16); }
.description { color: #a1a7aa; }
.audio-player { filter: grayscale(1) invert(.86); }
.video-player { border-radius: 2px; border: 1px solid #303437; }
.audio-meta { color: #71787c; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .035em; }
.card-actions { border-top-color: #303437; }

.auth-intro h1 { text-transform: uppercase; }
.auth-intro h1 em { color: #d3413d; }
.signal-card { border-radius: 2px; border-color: #303437; background: #111315; }
.signal-lines i { border-radius: 0; background: linear-gradient(to top, #501815, #d33b37); box-shadow: none; }
.danger-zone { border-top-color: #5f2522; }

@media (max-width: 980px) {
    .archive-status { grid-template-columns: repeat(4, 1fr); }
    .status-intro { grid-column: 1 / -1; border-bottom: 1px solid #2b2e31; }
    .security-strip span:nth-child(2) { display: none; }
}

@media (max-width: 640px) {
    .security-strip { padding-inline: 14px; }
    .security-strip span:first-child { display: none; }
    .footer { align-items: center; flex-direction: column; gap: 8px; }
    .archive-status { grid-template-columns: 1fr 1fr; }
    .status-intro { grid-column: 1 / -1; }
    .status-stat { min-height: 68px; border-bottom: 1px solid #2b2e31; }
    .archive-index { grid-template-columns: 1fr; }
    .archive-section-header { grid-template-columns: auto minmax(0,1fr); }
    .section-count { grid-column: 2; justify-self: start; }
    .archive-section .library-grid { padding: 12px; }
    .audio-card { padding-inline: 16px; }
    .record-classification { margin-inline: -16px; }
}

.scp939-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 24px;
}
.scp939-stat {
    border: 1px solid rgba(165, 34, 34, .55);
    background: linear-gradient(180deg, rgba(31, 24, 25, .96), rgba(17, 18, 20, .96));
    border-radius: 8px;
    padding: 18px;
}
.scp939-stat span { display: block; color: var(--muted, #9aa0a6); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.scp939-stat strong { display: block; margin-top: 8px; font-size: 1.7rem; }
.scp939-panel { margin-top: 20px; }
.scp939-table-wrap { overflow-x: auto; }
.scp939-table { width: 100%; border-collapse: collapse; min-width: 940px; }
.scp939-table th, .scp939-table td { padding: 13px 12px; border-bottom: 1px solid rgba(255,255,255,.08); text-align: left; vertical-align: middle; }
.scp939-table th { color: var(--muted, #9aa0a6); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
.scp939-table td small { display: block; margin-top: 4px; color: var(--muted, #9aa0a6); font-size: .75rem; }
.scp939-table audio { width: 260px; max-width: 100%; height: 34px; }
.scp939-table code { font-size: .78rem; word-break: break-all; }
.scp939-actions { display: flex; gap: 7px; align-items: center; }
.scp939-actions form { margin: 0; }
.button-small { padding: 7px 10px; min-height: 0; font-size: .78rem; }
.button-danger { border-color: rgba(215, 59, 59, .8); color: #f1b2b2; }
.badge-ok { border-color: rgba(48, 148, 90, .65); color: #8dd6a9; }
.badge-danger { border-color: rgba(210, 55, 55, .72); color: #f09b9b; }
@media (max-width: 900px) { .scp939-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .scp939-stat-grid { grid-template-columns: 1fr; } }
