:root {
    color-scheme: dark;
    --bg: #07121d;
    --panel: #0d1c2a;
    --soft: #112638;
    --border: #23435a;
    --text: #edf7ff;
    --muted: #9db3c3;
    --accent: #39c7ef;
    --danger: #ff6363;
    --success: #55d68b;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: system-ui, -apple-system, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top, #123149, var(--bg) 45%),
        var(--bg);
}

.wrap {
    width: min(760px, calc(100% - 28px));
    margin: auto;
    padding: 38px 0 70px;
}

.eyebrow {
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

h1 {
    margin: 8px 0;
    font-size: clamp(32px, 7vw, 48px);
}

header p,
.counter,
.topline {
    color: var(--muted);
}

.panel {
    margin-top: 22px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(13, 28, 42, .96);
}

label {
    display: block;
    margin: 16px 0 7px;
    font-weight: 750;
}

input,
select,
textarea {
    width: 100%;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 11px;
    color: var(--text);
    background: #081521;
    font: inherit;
}

textarea {
    min-height: 130px;
    resize: vertical;
}

button {
    width: 100%;
    margin-top: 20px;
    padding: 14px;
    border: 0;
    border-radius: 11px;
    color: #041018;
    background: var(--accent);
    font: inherit;
    font-weight: 850;
    cursor: pointer;
}

button.danger {
    color: white;
    background: var(--danger);
}

.notice {
    margin-top: 20px;
    padding: 14px;
    border-radius: 11px;
}

.notice.error {
    border: 1px solid var(--danger);
    background: rgba(255, 99, 99, .1);
}

.notice.success {
    border: 1px solid var(--success);
    background: rgba(85, 214, 139, .1);
}

.counter {
    margin-top: 7px;
    text-align: right;
    font-size: 13px;
}

.confirm-box {
    display: none;
    margin-top: 18px;
    padding: 15px;
    border: 1px solid var(--danger);
    border-radius: 12px;
    background: rgba(255, 99, 99, .08);
}

.confirm-box.show {
    display: block;
}

.check {
    display: flex;
    gap: 10px;
    align-items: center;
}

.check input {
    width: auto;
}

.topline {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

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