:root {
    color-scheme: light;
    --bg: #f5f7f8;
    --ink: #162026;
    --muted: #5b6870;
    --line: #d9e0e4;
    --panel: #ffffff;
    --accent: #0f6b5f;
    --accent-dark: #0a4f46;
    --danger: #9c1c28;
    --success: #13703a;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

.page-shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 40px 0;
}

.narrow {
    width: min(640px, calc(100% - 32px));
    min-height: 100vh;
    display: grid;
    place-items: center;
}

.panel {
    width: 100%;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(22, 32, 38, 0.06);
}

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

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

h1 {
    font-size: clamp(1.8rem, 2.4vw, 2.5rem);
    line-height: 1.15;
}

h2 {
    font-size: 1.15rem;
}

.eyebrow {
    margin-bottom: 6px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.notice {
    border-left: 4px solid var(--accent);
    background: #eef7f5;
    padding: 16px;
    margin: 20px 0;
}

form {
    display: grid;
    gap: 16px;
}

label {
    display: grid;
    gap: 6px;
    font-weight: 700;
}

.check {
    grid-template-columns: auto 1fr;
    align-items: start;
    font-weight: 400;
}

input[type="password"],
input[type="file"] {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 10px 12px;
    background: #fff;
    color: var(--ink);
}

button,
.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    border: 0;
    border-radius: 6px;
    padding: 10px 16px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

button:hover,
.button:hover {
    background: var(--accent-dark);
}

.secondary {
    background: #dfe8e6;
    color: var(--ink);
}

.secondary:hover {
    background: #cfdcda;
}

.error,
.success {
    padding: 12px;
    border-radius: 6px;
    font-weight: 700;
}

.error {
    background: #fbe9ec;
    color: var(--danger);
}

.success {
    background: #e7f6ed;
    color: var(--success);
}

.footer-link {
    margin: 18px 0 0;
    text-align: center;
}

.file-grid {
    display: grid;
    gap: 18px;
}

.evidence audio {
    width: 100%;
    margin-top: 12px;
}

code {
    overflow-wrap: anywhere;
    font-family: Consolas, Monaco, monospace;
    font-size: 0.9em;
}

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

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

th,
td {
    padding: 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    background: #eef2f3;
}

@media (max-width: 680px) {
    .topbar {
        align-items: stretch;
        flex-direction: column;
    }

    .panel {
        padding: 18px;
    }
}
