:root { --brand: #0b5d3b; --bg: #f4f6f5; --line: #e2e6e4; --text: #1f2a24; --muted: #6b7570; --red: #c8352b; }
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
       background: var(--bg); color: var(--text); font-size: 14px; }
a { color: var(--brand); }
header.top { background: var(--brand); color: #fff; display: flex; align-items: center; padding: 0 24px; height: 58px; gap: 28px; }
header.top .brand { font-weight: 700; font-size: 16px; white-space: nowrap; }
header.top .brand small { display: block; font-weight: 400; opacity: .75; font-size: 11px; }
header.top nav { display: flex; gap: 4px; flex: 1; }
header.top nav a { color: #fff; text-decoration: none; padding: 19px 12px; opacity: .85; border-bottom: 3px solid transparent; }
header.top nav a.on, header.top nav a:hover { opacity: 1; border-bottom-color: #fff; }
header.top .who { font-size: 12px; text-align: right; display: flex; align-items: center; gap: 12px; }
header.top .who form { margin: 0; }
header.top .who button { background: rgba(255,255,255,.15); color: #fff; border: 0; padding: 6px 10px; border-radius: 4px; cursor: pointer; }
main { max-width: 1320px; margin: 0 auto; padding: 24px; }
h1 { font-size: 24px; font-weight: 500; margin: 0 0 18px; }
h2 { font-size: 16px; margin: 0 0 12px; color: var(--brand); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 20px; margin-bottom: 20px; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: repeat(3,1fr); } .g4 { grid-template-columns: repeat(4,1fr); }
@media (max-width: 900px) { .g2,.g3,.g4 { grid-template-columns: 1fr; } header.top { flex-wrap: wrap; height: auto; } }
.kpi .v { font-size: 28px; font-weight: 600; } .kpi .l { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.btn { display: inline-block; background: var(--red); color: #fff; border: 0; border-radius: 4px; padding: 9px 16px;
       font-size: 14px; cursor: pointer; text-decoration: none; font-family: inherit; }
.btn.alt { background: var(--brand); } .btn.ghost { background: #fff; color: var(--text); border: 1px solid var(--line); }
.btn.sm { padding: 5px 10px; font-size: 12px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin-bottom: 14px; }
.flex { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } .between { justify-content: space-between; }
table.list { width: 100%; border-collapse: collapse; background: #fff; }
table.list th { background: var(--brand); color: #fff; text-align: left; font-weight: 500; padding: 10px; font-size: 13px; white-space: nowrap; }
table.list td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list tr:hover td { background: #fafbfa; }
table.list tr.off td { color: #9aa29e; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 3px; color: #fff; font-size: 11px; white-space: nowrap; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; background: #eef1ef; color: var(--muted); }
.pill.ok { background: #dcf3e6; color: #116b3c; } .pill.ko { background: #fde2e0; color: #a3271e; }
form.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; margin-bottom: 14px; }
form.filters label { font-size: 11px; color: var(--muted); display: flex; flex-direction: column; gap: 3px; }
input, select, textarea { font-family: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid #cfd6d2; border-radius: 4px; background: #fff; width: 100%; }
form.filters input, form.filters select { width: auto; min-width: 130px; }
textarea { min-height: 80px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 170px 1fr; gap: 10px; align-items: center; margin-bottom: 12px; }
.form-row > label { text-align: right; font-weight: 600; font-size: 13px; }
.form-row .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.req::after { content: "*"; color: var(--red); }
.section-title { color: var(--red); border-bottom: 1px solid var(--red); padding-bottom: 6px; margin: 22px 0 14px; font-weight: 600; }
.seg { display: grid; grid-auto-flow: column; gap: 6px; }
.seg label { border: 1px solid #cfd6d2; border-radius: 4px; padding: 8px; text-align: center; cursor: pointer; font-weight: 400; }
.seg input { display: none; } .seg input:checked + span { font-weight: 700; color: var(--brand); }
.seg label:has(input:checked) { border-color: var(--brand); background: #eef7f2; }
.hint { color: var(--muted); font-size: 12px; }
.consent { display: flex; gap: 10px; align-items: flex-start; background: #fff8f0; border: 1px solid #f3d9bd; padding: 12px; border-radius: 6px; }
.consent input { width: auto; margin-top: 3px; }
.flash { padding: 10px 14px; border-radius: 6px; margin-bottom: 12px; }
.flash.success { background: #dcf3e6; color: #116b3c; } .flash.error, .errors { background: #fde2e0; color: #a3271e; }
.flash.info { background: #e3f0fb; color: #1d4f7a; }
.errors { padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; } .errors ul { margin: 0; padding-left: 18px; }
dl.kv { display: grid; grid-template-columns: 170px 1fr; gap: 6px 12px; margin: 0; }
dl.kv dt { color: var(--muted); } dl.kv dd { margin: 0; font-weight: 500; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { border-left: 2px solid var(--line); padding: 0 0 14px 14px; position: relative; }
.timeline li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); position: absolute; left: -6px; top: 3px; }
.timeline .meta { font-size: 12px; color: var(--muted); }
.timeline .c { white-space: pre-wrap; background: #f7f8f7; padding: 8px; border-radius: 4px; margin-top: 4px; }
.donut-wrap { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.legend { list-style: none; padding: 0; margin: 0; } .legend li { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.legend i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.login-box { max-width: 380px; margin: 9vh auto; }
.login-box .head { background: var(--brand); color: #fff; padding: 22px; border-radius: 8px 8px 0 0; }
.login-box .card { border-radius: 0 0 8px 8px; }
.login-box label { display: block; font-weight: 600; margin: 12px 0 4px; }
.secret { font-family: ui-monospace, Menlo, monospace; font-size: 20px; background: #f3f5f4; padding: 12px; border-radius: 6px; letter-spacing: 1px; user-select: all; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 14px; }
footer { text-align: center; color: var(--muted); font-size: 11px; padding: 20px; }
.inline { display: inline; margin: 0; }
.hidden { display: none; }
input[type=checkbox] { width: auto; }
input[type=color] { width: 46px; height: 32px; padding: 2px; }
