:root {
    color-scheme: light;
    --bg: #eef4f2;
    --panel: #ffffff;
    --ink: #18242b;
    --muted: #667780;
    --line: #dbe5e2;
    --green: #2d9c7f;
    --green-dark: #1f6f62;
    --red: #e84855;
    --yellow: #f4d35e;
    --shadow: 0 18px 55px rgba(24, 36, 43, .12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, Segoe UI, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
}

a {
    color: inherit;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px clamp(18px, 4vw, 56px);
    background: rgba(255, 255, 255, .84);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 5;
}

h1,
h2,
p {
    margin: 0;
}

.topbar h1 {
    font-size: clamp(24px, 3vw, 38px);
}

.eyebrow {
    color: var(--green-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.ghost-link {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    text-decoration: none;
    background: #fff;
}

.page {
    width: min(1240px, calc(100% - 32px));
    margin: 22px auto 48px;
}

.success,
.alert {
    padding: 13px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.success {
    background: #daf4e7;
    color: #155c43;
}

.alert {
    background: #ffe4e7;
    color: #8b1b28;
}

.hero {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 1fr;
    align-items: center;
    gap: clamp(20px, 4vw, 52px);
    min-height: 340px;
    padding: clamp(18px, 4vw, 42px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

.hero h2 {
    margin-top: 10px;
    max-width: 620px;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.08;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.stats article,
.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(24, 36, 43, .07);
}

.stats article {
    padding: 18px;
}

.stats span {
    display: block;
    font-size: 34px;
    font-weight: 800;
}

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

.grid {
    display: grid;
    grid-template-columns: minmax(340px, 450px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.panel {
    padding: 20px;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.panel-head h2 {
    font-size: 22px;
}

label,
.form-stack {
    display: grid;
    gap: 8px;
}

.settings-panel {
    gap: 14px;
    display: grid;
}

label span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 13px;
    font: inherit;
    color: var(--ink);
    background: #fbfdfc;
}

textarea {
    resize: vertical;
}

button {
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    padding: 0 18px;
    font: inherit;
    font-weight: 800;
    color: #fff;
    background: var(--green);
    cursor: pointer;
}

button:hover {
    background: var(--green-dark);
}

.appeals {
    display: grid;
    gap: 12px;
}

.appeal {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    background: #fbfdfc;
}

.appeal-top {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: flex-start;
}

.appeal strong {
    line-height: 1.35;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: #7a2818;
    background: #ffe2cf;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.badge.ok {
    color: #155c43;
    background: #d9f4e7;
}

.appeal p {
    margin-top: 10px;
    color: var(--muted);
}

dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0 0;
}

dl div {
    min-width: 0;
}

dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

dd {
    margin: 3px 0 0;
    overflow-wrap: anywhere;
}

.details {
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-shell {
    width: min(980px, 100%);
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.login-visual {
    min-height: 430px;
    background: #d8ecf1;
}

.login-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.login-panel {
    padding: clamp(24px, 4vw, 46px);
    align-self: center;
}

.login-panel h1 {
    margin: 8px 0 24px;
    font-size: 34px;
    line-height: 1.1;
}

@media (max-width: 900px) {
    .hero,
    .grid,
    .login-shell {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

    .page {
        width: min(100% - 20px, 1240px);
    }

    .hero {
        padding: 14px;
    }

    .stats,
    dl {
        grid-template-columns: 1fr;
    }

    .panel-head,
    .appeal-top {
        align-items: stretch;
        flex-direction: column;
    }

    button,
    .ghost-link {
        justify-content: center;
        width: 100%;
    }
}
