:root {
    color-scheme: light;
    --ink: #1d252c;
    --muted: #65717c;
    --line: #d9e0e5;
    --panel: #ffffff;
    --bg: #f5f7f8;
    --accent: #176b87;
    --accent-dark: #0f4c61;
    --danger: #a83232;
    --ok: #1e7a4d;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(23, 107, 135, 0.14), transparent 28rem),
        linear-gradient(135deg, #ffffff 0%, var(--bg) 52%, #e8eef2 100%);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px clamp(20px, 5vw, 60px);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand img {
    width: 46px;
    height: 46px;
    border-radius: 6px;
    object-fit: cover;
    object-position: top center;
    box-shadow: 0 8px 20px rgba(29, 37, 44, 0.18);
}

.brand span {
    display: grid;
    gap: 1px;
}

.brand strong {
    font-size: 1.02rem;
    line-height: 1;
}

.brand small {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

nav a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 650;
}

nav a:hover {
    color: var(--accent-dark);
}

main {
    width: min(1180px, calc(100vw - 32px));
    margin: 42px auto;
}

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(29, 37, 44, 0.08);
    padding: clamp(22px, 4vw, 36px);
    margin-bottom: 24px;
}

.narrow {
    max-width: 560px;
    margin-inline: auto;
}

h1, h2 {
    margin-top: 0;
}

.muted, .hint {
    color: var(--muted);
}

.break {
    overflow-wrap: anywhere;
}

.stack {
    display: grid;
    gap: 14px;
}

.grid.two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

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

.check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    margin: 4px 0;
}

input[type="email"],
input[type="password"],
input[type="text"],
input[type="file"] {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    font: inherit;
}

button, .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 11px 16px;
    border: 0;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-weight: 750;
    cursor: pointer;
}

.secondary {
    background: var(--accent-dark);
}

.danger {
    background: var(--danger);
}

.small {
    padding: 7px 10px;
    border-radius: 9px;
    font-size: 0.9rem;
    margin: 3px 0;
}

.notice {
    padding: 12px 14px;
    border-left: 4px solid var(--accent);
    background: #e7f1f6;
    border-radius: 12px;
    margin-bottom: 16px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

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

th {
    color: var(--muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

code {
    display: inline-block;
    padding: 4px 7px;
    background: #edf3fa;
    border-radius: 7px;
}

@media (max-width: 760px) {
    header, nav {
        align-items: flex-start;
        flex-direction: column;
    }

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

    table {
        display: block;
        overflow-x: auto;
    }
}
