:root {
    color-scheme: dark;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #fff;
    background: #000;
    font-synthesis: none;
    --accent: #f17517;
    --accent-hover: #ff852b;
    --ink: #fff;
    --muted: #b9b9b9;
    --panel: #101010;
    --panel-raised: #171717;
    --line: #343434;
}

* {
    box-sizing: border-box;
}

body {
    min-width: 320px;
    margin: 0;
    background:
        radial-gradient(ellipse at 95% 15%, rgba(241, 117, 23, .09), transparent 29rem),
        #000;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.topbar {
    position: relative;
    z-index: 1;
    background: #050505;
    border-bottom: 1px solid var(--line);
}

.nav {
    width: min(1240px, calc(100% - 48px));
    min-height: 96px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    color: var(--ink);
    text-decoration: none;
}

.brand-logo {
    width: 144px;
    height: 82px;
    display: block;
    object-fit: contain;
}

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

.brand-copy strong {
    color: var(--accent);
    font-size: 15px;
    font-weight: 750;
    letter-spacing: .035em;
}

.brand-copy small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    flex-wrap: wrap;
}

.links > span {
    color: var(--muted);
    font-size: 13px;
}

.links a {
    color: var(--accent);
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
    transition: color .18s ease;
}

.links a:hover,
.links a:focus-visible {
    color: var(--accent-hover);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.container {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
    padding: 58px 0 80px;
}

.intro {
    position: relative;
    isolation: isolate;
    min-height: 190px;
    margin: 0 0 30px;
    padding: 34px 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--panel);
}

.intro::before {
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: 0;
    width: 5px;
    background: var(--accent);
    content: "";
}

.intro::after {
    position: absolute;
    z-index: -1;
    right: -40px;
    bottom: -150px;
    width: 350px;
    height: 350px;
    border: 1px solid rgba(241, 117, 23, .16);
    border-radius: 50%;
    box-shadow: 0 0 0 35px rgba(241, 117, 23, .035), 0 0 0 70px rgba(241, 117, 23, .025);
    content: "";
    pointer-events: none;
}

.eyebrow {
    margin: 0 0 7px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .16em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    color: var(--ink);
    font-weight: 650;
}

h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 42px);
    letter-spacing: -.045em;
    line-height: 1.2;
}

h2 {
    margin: 0 0 18px;
    font-size: 23px;
    letter-spacing: -.025em;
    line-height: 1.3;
}

.muted {
    max-width: 620px;
    margin: 11px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}

.card {
    padding: 29px 32px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--panel);
}

.narrow {
    max-width: 480px;
    margin: 54px auto;
    padding: 36px 38px;
    border-top: 4px solid var(--accent);
}

.narrow .muted {
    margin-bottom: 25px;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.field {
    min-width: 0;
    margin: 0 0 19px;
}

.field label {
    display: block;
    margin-bottom: 7px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 650;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 13px;
    border: 1px solid #555;
    border-radius: 4px;
    background: #090909;
    color: #fff;
    font: inherit;
    font-size: 15px;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.field input[type="file"] {
    padding: 8px;
    color: var(--muted);
}

.field input[type="file"]::file-selector-button {
    margin-right: 10px;
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: var(--panel-raised);
    color: var(--accent);
    cursor: pointer;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--accent);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(241, 117, 23, .2);
}

.field input::placeholder {
    color: #888;
}

.review-reason-form {
    width: min(480px, calc(100vw - 48px));
    padding: 0;
    border: 0;
    background: transparent;
}

.review-reason-form .field {
    margin: 20px 0;
}

.review-reason-form h2 {
    margin-bottom: 10px;
    font-size: 21px;
}

.review-reason-form .field textarea {
    min-height: 120px;
    resize: vertical;
}

.review-reason-dialog {
    width: min(540px, calc(100vw - 32px));
    max-width: none;
    padding: 24px;
    border: 1px solid #555;
    border-top: 3px solid var(--accent);
    border-radius: 5px;
    background: #111;
    color: var(--ink);
}

.review-reason-dialog::backdrop {
    background: rgba(0, 0, 0, .78);
    backdrop-filter: blur(2px);
}

.review-reason {
    margin-top: 5px;
    max-width: 280px;
    color: var(--muted);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.button {
    min-height: 44px;
    padding: 12px 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--accent);
    border-radius: 3px;
    background: var(--accent);
    color: #000;
    font: inherit;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.button:hover,
.button:focus-visible {
    border-color: var(--accent-hover);
    background: var(--accent-hover);
    color: #000;
}

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

.button.approve {
    border-color: #238636;
    background: rgba(35, 134, 54, .18);
    color: #8ce99a;
}

.button.approve:hover,
.button.approve:focus-visible {
    border-color: #2ea043;
    background: rgba(46, 160, 67, .3);
    color: #a6f3af;
}

.button.secondary {
    border-color: #555;
    background: #1b1b1b;
    color: #fff;
}

.button.secondary:hover,
.button.secondary:focus-visible {
    border-color: var(--accent);
    background: #252525;
    color: var(--accent);
}

.button.danger {
    border-color: #8b3a28;
    background: #30160f;
    color: #ffb39d;
}

.button.danger:hover,
.button.danger:focus-visible {
    border-color: #cf593c;
    background: #472016;
    color: #ffd0c3;
}

.button.small {
    min-height: 34px;
    padding: 8px 11px;
    font-size: 12px;
}

.links .button {
    color: #000;
}

.links .button.secondary {
    color: #fff;
}

.inline {
    display: inline;
}

.flash {
    margin: 0 0 22px;
    padding: 13px 17px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: 3px;
    background: var(--panel);
    color: #fff;
    font-size: 14px;
}

.flash.success {
    border-left-color: #5ec889;
    color: #baf3d0;
}

.flash.error {
    border-left-color: #ff665e;
    color: #ffc1bc;
}

.flash.warning {
    border-left-color: #f2bd47;
    color: #ffe4a0;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th,
td {
    padding: 15px 13px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
    font-size: 14px;
}

th {
    color: #c5c5c5;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

tbody tr {
    transition: background .15s ease;
}

tbody tr:hover {
    background: #1c1c1c;
}

td:first-child,
th:first-child {
    padding-left: 0;
}

td:last-child,
th:last-child {
    padding-right: 0;
}

.file-name {
    color: #fff;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.audio-player {
    width: min(280px, 100%);
    height: 34px;
    margin-top: 8px;
    display: block;
    accent-color: var(--accent);
}

.tag {
    padding: 4px 9px;
    display: inline-block;
    border: 1px solid transparent;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.tag.pending {
    border-color: #89521f;
    background: #291a0d;
    color: #ffc184;
}

.tag.checked_ok {
    border-color: #34744b;
    background: #102419;
    color: #a5e5ba;
}

.tag.checked_not_ok {
    border-color: #873b34;
    background: #2b1413;
    color: #ffb9b1;
}

.empty {
    padding: 38px 20px;
    text-align: center;
}

.empty h2 {
    margin: 0;
}

.empty .muted {
    margin: 8px auto 0;
}

.actions {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.helper {
    margin-top: 5px;
    color: #aaa;
    font-size: 12px;
}

.team {
    color: #fff;
    font-weight: 600;
}

.auth-note {
    margin: 23px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.auth-note a {
    color: var(--accent);
    font-weight: 650;
    text-decoration: none;
}

.auth-note a:hover {
    text-decoration: underline;
}

.section {
    margin-top: 27px;
}

@media (max-width: 760px) {
    .nav {
        width: min(100% - 36px, 1240px);
        min-height: 82px;
        padding: 10px 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .brand-logo {
        width: 112px;
        height: 64px;
    }

    .links {
        width: 100%;
        justify-content: flex-start;
        gap: 15px;
    }

    .container {
        width: min(100% - 36px, 1120px);
        padding: 34px 0 54px;
    }

    .intro {
        min-height: 0;
        align-items: flex-start;
        flex-direction: column;
        padding: 27px 25px;
    }

    .card {
        padding: 23px 21px;
    }

    .narrow {
        margin: 32px auto;
        padding: 29px 25px;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 520px) {
    .brand {
        gap: 11px;
    }

    .brand-logo {
        width: 94px;
        height: 54px;
    }

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

    .links {
        gap: 12px;
    }

    .links > span {
        width: 100%;
    }

    th,
    td {
        padding: 12px 9px;
    }

    .intro .button {
        width: 100%;
    }
}

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