:root {
    color-scheme: light;
    --bg: #f4f6f8;
    --surface: #ffffff;
    --text: #101828;
    --muted: #5d6b7a;
    --line: #d7dee6;
    --accent: #0f766e;
    --danger: #b42318;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

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

.panel {
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

h1 {
    margin: 0 0 12px;
    font-size: clamp(28px, 5vw, 44px);
    line-height: 1.1;
}

.lead {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.5;
}

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

.status-grid div,
.check-list li {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfd;
}

.status-grid span,
.check-list span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 6px;
}

.status-grid strong,
.check-list strong {
    display: block;
    overflow-wrap: anywhere;
}

.check-list {
    display: grid;
    gap: 12px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.ok {
    color: var(--accent);
}

.fail {
    color: var(--danger);
}

.form-panel {
    max-width: 560px;
}

.form {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

label span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font: inherit;
    color: var(--text);
    background: #ffffff;
}

input:focus {
    outline: 3px solid rgba(15, 118, 110, 0.16);
    border-color: var(--accent);
}

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

.error {
    display: block;
    margin-top: 6px;
    color: var(--danger);
}

.notice {
    display: grid;
    gap: 8px;
    margin-top: 24px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfd;
}

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

.notice a {
    overflow-wrap: anywhere;
    color: var(--accent);
}

.actions {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
    background: #ffffff;
}

.notice-text,
.error-box {
    margin: 18px 0 0;
    padding: 12px 14px;
    border-radius: 6px;
    line-height: 1.5;
}

.notice-text {
    border: 1px solid #a7f3d0;
    background: #ecfdf3;
    color: #05603a;
}

.error-box {
    border: 1px solid #fecdca;
    background: #fff1f0;
    color: var(--danger);
}

.form-footer {
    margin: 18px 0 0;
}

.form-footer a {
    color: var(--accent);
    font-weight: 700;
}

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

@media (max-width: 720px) {
    .shell {
        padding: 24px 0;
    }

    .panel {
        padding: 22px;
    }

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