/* Admin panel — same palette and font as the public site. */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/montserrat-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/montserrat-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root { --navy: #013c6a; --blue: #0175d0; --green: #65af25; --yellow: #feba02; --orange: #f66c1b; --bg: #f5f9fd; --line: #d8e3ee; --text: #17324d; --muted: #4a6580; --danger: #b42318; font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color-scheme: light; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 1rem; line-height: 1.55; }
a { color: #0069bd; }
h1, h2 { color: var(--navy); line-height: 1.2; margin: 0 0 12px; }
h1 { font-size: 1.7rem; } h2 { font-size: 1.15rem; }
code { background: #eaf3fc; padding: 1px 6px; border-radius: 6px; font-size: 0.88em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.bar { background: #fff; border-bottom: 1px solid var(--line); border-top: 5px solid; border-image: linear-gradient(90deg, var(--blue) 0 25%, var(--green) 25% 50%, var(--yellow) 50% 75%, var(--orange) 75% 100%) 1; }
.bar-row { display: flex; align-items: center; gap: 20px; padding-block: 10px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 800; text-decoration: none; }
.menu { display: flex; gap: 18px; flex: 1; flex-wrap: wrap; }
.menu a { color: var(--navy); font-weight: 600; text-decoration: none; padding: 6px 2px; border-bottom: 3px solid transparent; }
.menu a:hover { border-bottom-color: var(--yellow); }
.who { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.who-name { font-weight: 600; color: var(--muted); font-size: 0.92rem; }
main { padding-block: 28px 64px; }
.head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.head h1 { margin: 0; }
.actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.actions.sticky { position: sticky; bottom: 0; padding: 14px 0; background: linear-gradient(transparent, var(--bg) 30%); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 20px; border-radius: 999px; border: 2px solid var(--yellow); background: var(--yellow); color: var(--navy); font-family: inherit; font-weight: 700; font-size: 0.95rem; line-height: 1.2; text-decoration: none; cursor: pointer; }
.btn:hover { background: #ffc933; border-color: #ffc933; }
.btn-ghost { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-sm { min-height: 34px; padding: 4px 14px; font-size: 0.85rem; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; margin-bottom: 22px; box-shadow: 0 6px 18px rgba(1, 60, 106, 0.06); }
.card.narrow { max-width: 520px; margin: 40px auto; }
.danger-zone { margin-top: 28px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.notice { background: #eef7e4; border: 1px solid var(--green); border-left-width: 6px; border-radius: 10px; padding: 10px 16px; font-weight: 600; margin: 0 0 18px; }
.errors { background: #feede1; border: 1px solid var(--orange); border-left-width: 6px; border-radius: 10px; padding: 12px 18px; margin-bottom: 18px; }
.errors ul { margin: 6px 0 0; padding-left: 20px; }
.warn { background: var(--yellow); background: #fff5d6; border: 1px solid var(--yellow); border-radius: 10px; padding: 8px 14px; }
.hint, .opt, .muted { color: var(--muted); font-size: 0.88rem; font-weight: 400; }
.empty { color: var(--muted); padding: 24px 0; }
label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 18px; }
label .hint { display: block; margin-top: 4px; }
input, select, textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1.5px solid #b9cadb; border-radius: 10px; background: #fff; color: var(--text); font-family: inherit; font-weight: 400; font-size: 1rem; line-height: 1.5; }
textarea.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92rem; }
input[readonly] { background: #eef2f6; }
.row2 { display: grid; gap: 0 20px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .row2 { grid-template-columns: 1fr 1fr; } }
.toolbar { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 6px; }
.inline { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.inline .grow { flex: 1 1 260px; margin-bottom: 0; }
.stack label { margin-bottom: 14px; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--navy); background: #eaf3fc; font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
td.right, th.right { text-align: right; white-space: nowrap; }
.chip { display: inline-block; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.chip.ok { background: #eef7e4; border-color: var(--green); color: #3f7f0e; }
.chip.bad { background: #feede1; border-color: var(--orange); color: #a33d00; }
.tg { min-height: 60px; margin: 18px 0; }
