:root {
    color-scheme: light;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f6f7f9;
    color: #20242c;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 165vh;
    background: #f6f7f9;
}

button,
input,
select {
    font: inherit;
}

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

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

.eyebrow {
    color: #5f6b7a;
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 4px;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 0;
}

h2 {
    font-size: 17px;
    line-height: 1.3;
    margin-bottom: 0;
}

.store-status,
.pill {
    align-items: center;
    border: 1px solid #d8dee8;
    border-radius: 999px;
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    gap: 8px;
    min-height: 32px;
    padding: 0 12px;
    white-space: nowrap;
}

.store-status {
    background: #ffffff;
}

.store-status.is-ok {
    border-color: #9ad5b0;
    color: #166534;
}

.store-status.is-muted {
    color: #667085;
}

.dot {
    background: currentColor;
    border-radius: 999px;
    display: inline-block;
    height: 8px;
    width: 8px;
}

.notice-row {
    margin-bottom: 18px;
}

.notice {
    background: #ffffff;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    color: #374151;
    line-height: 1.5;
    margin: 0;
    padding: 12px 14px;
}

.notice.warn {
    background: #fffbeb;
    border-color: #eab308;
}

.notice.ok {
    background: #f0fdf4;
    border-color: #86efac;
}

.layout {
    align-items: start;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    margin-bottom: 18px;
}

.panel {
    background: #ffffff;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
    padding: 22px;
}

.section-heading {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.save-state,
.muted {
    color: #667085;
    font-size: 13px;
    line-height: 1.4;
}

.save-state {
    text-align: right;
}

.save-state[data-tone="success"],
.check-result[data-tone="success"] {
    color: #15803d;
}

.save-state[data-tone="error"],
.check-result[data-tone="error"] {
    color: #b42318;
}

.check-result[data-tone="warning"] {
    color: #9a5b00;
}

.field {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.field-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.field span,
.toggle span {
    color: #344054;
    font-size: 14px;
    font-weight: 650;
}

input[type="color"],
select {
    background: #ffffff;
    border: 1px solid #cfd6e2;
    border-radius: 6px;
    min-height: 42px;
    padding: 8px 10px;
    width: 100%;
}

input[type="color"] {
    padding: 4px;
}

.toggle {
    align-items: center;
    border: 1px solid #e4e7ec;
    border-radius: 6px;
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    min-height: 44px;
    padding: 0 12px;
}

.toggle input {
    height: 17px;
    width: 17px;
}

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

.actions.vertical {
    align-items: stretch;
    flex-direction: column;
}

.primary,
.secondary {
    align-items: center;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    text-decoration: none;
}

.primary {
    background: #1f6f5b;
    border: 1px solid #1f6f5b;
    color: #ffffff;
}

.secondary {
    background: #ffffff;
    border: 1px solid #cfd6e2;
    color: #20242c;
}

.primary:disabled,
.secondary:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.steps {
    color: #475467;
    line-height: 1.6;
    margin: 0;
    padding-left: 20px;
}

.steps li + li {
    margin-top: 6px;
}

.check-result {
    background: #f8fafc;
    border: 1px solid #e4e7ec;
    border-radius: 6px;
    color: #667085;
    line-height: 1.5;
    margin: 14px 0 0;
    padding: 12px;
}

.preview-card {
    margin-bottom: 160px;
}

.preview-copy {
    color: #475467;
    display: grid;
    gap: 12px;
    line-height: 1.65;
    max-width: 760px;
}

.preview-copy p {
    margin-bottom: 0;
}

code {
    background: #f2f4f7;
    border-radius: 4px;
    padding: 2px 4px;
}

@media (max-width: 820px) {
    .topbar,
    .section-heading {
        align-items: stretch;
        flex-direction: column;
    }

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

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

    .save-state {
        text-align: left;
    }
}
