:root {
    --color-primary: #416c5c;
    --color-ring: #7c93a6;
    --color-foreground: #24312c;
    --color-muted: #718079;
    --color-border: #dce3df;
    --color-surface: #ffffff;
    --color-query: #f5b301;
    color: #24312c;
    background: #f6f8f7;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.45;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
}

.page {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 0 22px;
}

.brand {
    color: #456157;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-decoration: none;
    text-transform: uppercase;
}

.page-nav {
    display: flex;
    gap: 16px;
    font-size: 14px;
}

a {
    color: #416c5c;
}

.page-nav a {
    text-decoration: none;
}

.muted {
    color: #718079;
}

.panel {
    padding: 28px;
    border: 1px solid #dce3df;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 28px rgb(36 49 44 / 7%);
}

h1 {
    margin: 0 0 24px;
    font-size: 26px;
    line-height: 1.2;
}

button {
    padding: 11px 18px;
    border: 1px solid #416c5c;
    border-radius: 8px;
    background: #416c5c;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 650;
}

button:hover {
    background: #365b4d;
}

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

.actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 22px;
}

.notice,
.error {
    margin-top: 20px;
    padding: 12px;
    border: 1px solid #c9d0da;
    background: #f7f8fa;
}

.danger-button {
    border-color: #b65252;
    background: #b65252;
}

.error {
    border-color: #be5555;
    color: #8c2020;
    background: #fff0f0;
}

@media (max-width: 640px) {
    .page {
        width: min(100% - 24px, 1120px);
    }

    .page-header {
        padding: 20px 0 16px;
    }

    .panel {
        padding: 18px;
        border-radius: 11px;
    }
}
