:root {
    color-scheme: dark;
    --bg: #051522;
    --bg-soft: #0b2134;
    --surface: #0d273b;
    --surface-strong: #14344d;
    --text: #f2f8ff;
    --muted: #b3c7d8;
    --line: #24465f;
    --accent: #67c6ff;
    --accent-dark: #31a6eb;
    --warning-bg: #2b2815;
    --warning-border: #9f7a24;
    --warning-text: #ffe6a6;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 16% 0%, rgba(48, 150, 214, 0.2), rgba(5, 21, 34, 0) 340px),
        linear-gradient(180deg, rgba(12, 46, 71, 0.82), rgba(5, 21, 34, 0) 360px),
        var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: var(--accent);
}

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

.narrow {
    width: min(100% - 32px, 880px);
}

.wide {
    width: min(100% - 24px, 1280px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    background: transparent;
    color: var(--text);
    text-decoration: none;
}

.brand-mark {
    display: block;
    width: 148px;
    height: 148px;
    background: transparent;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(0, 170, 255, 0.18));
}

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

.brand-name {
    color: #f2f8ff;
    font-size: 2.95rem;
    font-weight: 760;
    letter-spacing: 0;
}

.brand-tagline {
    color: #8fb2c9;
    font-size: 1.12rem;
    font-weight: 600;
    letter-spacing: 0;
}

nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

nav a {
    color: #c7d9e8;
    font-size: 1.08rem;
    font-weight: 680;
    text-decoration: none;
}

nav a:hover {
    color: #ffffff;
}

.hero,
.panel,
.result-heading {
    max-width: 760px;
}

.hero h1 {
    margin: 0;
    max-width: 680px;
    color: #f2f8ff;
    font-size: 3.65rem;
    font-weight: 740;
    line-height: 1.05;
    letter-spacing: 0;
}

.panel h1,
.result-heading h1 {
    margin: 0;
    color: #f2f8ff;
    font-size: 3rem;
    font-weight: 740;
    line-height: 1.08;
    letter-spacing: 0;
}

.hero p {
    max-width: 720px;
    margin: 24px 0 0;
    color: #c8d8e6;
    font-size: 1.15rem;
    line-height: 1.62;
}

.panel p,
.result-heading p {
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.65;
}

.eyebrow {
    margin: 0 0 18px;
    color: #8fdff0;
    font-size: 0.78rem;
    font-weight: 760;
    letter-spacing: 0;
    text-transform: uppercase;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(13, 39, 59, 0.72);
    color: #d7e8f5;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.button:hover,
button:hover {
    border-color: #3d6d8d;
    background: rgba(18, 52, 78, 0.94);
    color: #ffffff;
}

.button.primary,
button.primary {
    border-color: var(--accent);
    background: var(--accent);
    color: #03111c;
}

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

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

.grid article,
.panel,
.table-wrap {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.16);
}

.grid article,
.panel {
    padding: 24px;
}

.grid h2 {
    margin: 0 0 10px;
    font-size: 1rem;
}

.grid p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

form {
    display: grid;
    gap: 18px;
    margin-top: 28px;
}

label {
    display: grid;
    gap: 8px;
    color: var(--text);
    font-weight: 700;
}

input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--bg-soft);
    color: var(--muted);
}

.notice {
    padding: 12px 14px;
    border: 1px solid var(--warning-border);
    border-radius: 6px;
    background: var(--warning-bg);
    color: var(--warning-text) !important;
}

.table-wrap {
    margin-top: 32px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 980px;
}

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

th {
    background: var(--surface-strong);
    color: #cbe1f2;
    font-size: 0.82rem;
    text-transform: uppercase;
}

td {
    font-size: 0.95rem;
    line-height: 1.45;
}

td span {
    color: var(--muted);
}

@media (max-width: 760px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 44px;
    }

    .brand {
        gap: 14px;
    }

    .brand-mark {
        width: 84px;
        height: 84px;
    }

    .brand-name {
        font-size: 1.78rem;
    }

    .brand-tagline {
        font-size: 0.82rem;
    }

    nav {
        gap: 16px;
    }

    nav a {
        font-size: 1rem;
    }

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

    .hero h1 {
        font-size: 2.35rem;
    }

    .panel h1,
    .result-heading h1 {
        font-size: 2.15rem;
    }
}
