:root {
    color-scheme: dark;
    font-family:
        Inter,
        "Noto Sans JP",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
    background: #080d18;
    color: #f5f7fb;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(
            circle at top right,
            rgba(40, 100, 255, 0.18),
            transparent 34%
        ),
        #080d18;
}

button,
input,
textarea,
select {
    font: inherit;
}

.container {
    width: min(960px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0 70px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 24px;
}

.eyebrow {
    margin: 0 0 8px;
    color: #6fa8ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

h1 {
    margin: 0;
    font-size: clamp(30px, 5vw, 48px);
}

.description {
    max-width: 680px;
    margin: 12px 0 0;
    color: #aeb9cb;
    line-height: 1.7;
}

.status {
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 1px solid #2f466b;
    border-radius: 999px;
    background: #101a2b;
    color: #91b9ff;
    font-size: 12px;
    font-weight: 800;
}

.panel {
    margin-top: 18px;
    padding: 24px;
    border: 1px solid #1d2a3e;
    border-radius: 18px;
    background: rgba(15, 22, 36, 0.96);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

label {
    display: block;
    margin: 0 0 8px;
    font-weight: 800;
}

input,
textarea,
select {
    width: 100%;
    margin-bottom: 18px;
    border: 1px solid #2b3a51;
    border-radius: 12px;
    outline: none;
    background: #0a101c;
    color: #f5f7fb;
}

input,
select {
    height: 48px;
    padding: 0 14px;
}

textarea {
    min-height: 140px;
    padding: 14px;
    resize: vertical;
    line-height: 1.65;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #578fff;
    box-shadow: 0 0 0 3px rgba(87, 143, 255, 0.16);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

button {
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 11px;
    cursor: pointer;
    background: #3478f6;
    color: white;
    font-weight: 800;
}

button:hover {
    filter: brightness(1.08);
}

button:disabled {
    cursor: wait;
    opacity: 0.58;
}

button.secondary {
    border: 1px solid #34445e;
    background: #172238;
}

.message {
    min-height: 24px;
    margin: 14px 0 0;
    color: #91b9ff;
}

.message.error {
    color: #ff8e8e;
}

.result-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

#characterCount {
    color: #8f9db2;
    font-size: 13px;
}

.notice {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #483e25;
    border-radius: 12px;
    background: #211d12;
    color: #d9c68e;
    line-height: 1.65;
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 20px, 960px);
        padding-top: 24px;
    }

    .header {
        display: block;
    }

    .status {
        display: inline-block;
        margin-top: 16px;
    }

    .panel {
        padding: 18px;
    }
}
