:root {
    color-scheme: light;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #1d2939;
    background: #f3f6fa;
    font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; }
.topbar {
    min-height: 68px;
    padding: 12px max(20px, calc((100vw - 1120px) / 2));
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: #fff;
    border-bottom: 1px solid #e3e8ef;
}
.brand { color: #173c68; font-weight: 700; text-decoration: none; }
.language-picker { display: flex; align-items: center; gap: 10px; }
.page { max-width: 1120px; margin: 0 auto; padding: 36px 20px 64px; }
.intro { max-width: 720px; margin-bottom: 24px; }
h1 { margin: 6px 0 12px; color: #173c68; font-size: clamp(2rem, 5vw, 3rem); }
h2 { margin: 0 0 18px; color: #173c68; font-size: 1.25rem; }
p { line-height: 1.6; }
.eyebrow { margin: 0; color: #65758b; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.muted { color: #65758b; }
.card { padding: 24px; background: #fff; border: 1px solid #e3e8ef; border-radius: 12px; box-shadow: 0 4px 18px #23344d0a; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; border-bottom: 1px solid #e3e8ef; }
.tab, .text-button { color: #315274; background: transparent; border: 0; cursor: pointer; }
.tab { padding: 12px 10px; border-bottom: 3px solid transparent; font-weight: 650; }
.tab.active { color: #173c68; border-bottom-color: #c89b3c; }
.form-panel { display: grid; gap: 15px; }
.form-panel label, .news-form label { display: grid; gap: 6px; color: #34445b; font-size: .92rem; font-weight: 600; }
input, select, textarea {
    width: 100%;
    min-height: 43px;
    padding: 10px 12px;
    color: #1d2939;
    background: #fff;
    border: 1px solid #cbd4df;
    border-radius: 6px;
    font: inherit;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid #83b7ee; outline-offset: 2px; }
.primary, .secondary {
    min-height: 43px;
    padding: 10px 16px;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}
.primary { color: #fff; background: #173c68; }
.primary:hover { background: #235484; }
.secondary { color: #173c68; background: #edf2f8; }
.text-button { justify-self: start; text-decoration: underline; }
.checkbox { grid-template-columns: 20px 1fr; align-items: start; }
.checkbox input { width: 18px; min-height: 18px; margin-top: 2px; }
.privacy-note { margin: 0; padding: 12px; color: #495970; background: #f3f6fa; border-radius: 6px; font-size: .88rem; }
.notice { margin: 18px 0; padding: 14px 16px; background: #e8f3ea; border-left: 4px solid #328148; border-radius: 4px; white-space: pre-wrap; }
.notice.error { background: #fff0ef; border-left-color: #b42318; }
.workspace { display: grid; gap: 22px; }
.news-card { margin-bottom: 22px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.stack { display: grid; align-content: start; gap: 20px; }
.welcome-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.welcome-row h2, .welcome-row p { margin-bottom: 4px; }
.list { display: grid; gap: 12px; }
.list-item { padding: 14px; border: 1px solid #e3e8ef; border-radius: 8px; overflow-wrap: anywhere; }
.list-item p { margin: 5px 0; }
.list-item button, .list-item a { margin: 8px 8px 0 0; }
.list-item .primary, .list-item .secondary { min-height: 36px; padding: 7px 10px; font-size: .85rem; }
.news-form { display: grid; gap: 12px; margin-bottom: 20px; }
footer { padding: 22px; text-align: center; background: #fff; }
footer a { color: #173c68; }
[hidden] { display: none !important; }
html[dir="rtl"] { text-align: right; }

@media (max-width: 760px) {
    .page { padding: 24px 14px 44px; }
    .card { padding: 18px; }
    .grid { grid-template-columns: 1fr; }
    .topbar { padding: 12px 16px; }
    .welcome-row { align-items: flex-start; }
    .tabs { gap: 0; }
    .tab { padding: 10px 7px; font-size: .86rem; }
}
