:root {
    color-scheme: light;
    --bg: #f4f7fb;
    --panel: #ffffff;
    --text: #18212f;
    --muted: #5f6c7b;
    --border: #d9e1ea;
    --primary: #1267d8;
    --primary-hover: #0d55b5;
}

* {
    box-sizing: border-box;
}

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

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

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

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

p {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

code {
    padding: 2px 5px;
    border-radius: 4px;
    background: #e9eef5;
    color: #243244;
}

.workspace {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--panel);
}

.editor-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

textarea {
    width: 100%;
    min-height: 260px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-family: Consolas, "Liberation Mono", monospace;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
}

textarea:focus {
    border-color: var(--primary);
    outline: 3px solid rgba(18, 103, 216, .15);
}

.actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 14px 0 18px;
}

.button {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    font-weight: 700;
    cursor: pointer;
}

.button:hover {
    border-color: #b8c5d4;
    background: #f8fafc;
}

.button.primary {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.button.primary:hover {
    background: var(--primary-hover);
}

.button.secondary {
    flex-shrink: 0;
}

.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    color: var(--muted);
    font-weight: 700;
}

.status {
    min-height: 22px;
    margin-top: 10px;
    color: var(--muted);
}

@media (max-width: 720px) {
    .hero {
        flex-direction: column;
    }

    .button.secondary {
        width: 100%;
    }

    .actions .button {
        flex: 1 1 160px;
    }
}
