:root { color-scheme: light; --bg: #f7f8fa; --panel: #ffffff; --text: #17202a; --muted: #65717f; --line: #d9e0e8; --brand: #155e63; --brand-strong: #0e4347; --amber: #a36600; --red: #a83232; --green: #197044; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--brand); text-decoration: none; } a:hover { text-decoration: underline; }
.topbar { display: flex; align-items: center; gap: 24px; min-height: 56px; padding: 0 24px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.brand { font-size: 18px; font-weight: 700; color: var(--text); }
.topbar nav { display: flex; gap: 16px; flex: 1; } .session { display: flex; align-items: center; gap: 10px; color: var(--muted); } .session form { margin: 0; }
.page { width: min(1320px, calc(100vw - 32px)); margin: 28px auto 48px; }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 18px; }
h1, h2 { margin: 0 0 8px; line-height: 1.2; letter-spacing: 0; } h1 { font-size: 28px; } h2 { font-size: 18px; margin-top: 22px; } p { margin: 0 0 12px; color: var(--muted); }
.actions { display: flex; align-items: center; gap: 10px; }
button, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--text); cursor: pointer; }
button.primary, .button.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
button.primary:hover, .button.primary:hover { background: var(--brand-strong); text-decoration: none; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 18px; } .narrow { max-width: 620px; }
.grid-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 20px; }
.metric { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px; } .metric span { display: block; color: var(--muted); font-size: 12px; } .metric strong { font-size: 22px; }
.table-wrap { overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; } .table-wrap.compact table { min-width: 760px; }
table { width: 100%; border-collapse: collapse; min-width: 1080px; } th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; } th { font-size: 12px; color: var(--muted); background: #fbfcfd; } td span { display: block; color: var(--muted); font-size: 12px; } tr:last-child td { border-bottom: 0; }
.empty { color: var(--muted); text-align: center; padding: 24px; }
.badge { display: inline-flex; align-items: center; min-height: 24px; border-radius: 999px; padding: 0 8px; background: #edf1f5; color: var(--text); font-size: 12px; }
.badge.highest, .badge.high { background: #e5f4ec; color: var(--green); } .badge.medium { background: #fff1d9; color: var(--amber); } .badge.lower, .badge.lowest { background: #f9e4e4; color: var(--red); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; }
input, select, textarea { width: 100%; min-height: 36px; border: 1px solid var(--line); border-radius: 6px; padding: 7px 9px; background: #fff; color: var(--text); } .filters input, .filters select { width: min(220px, 100%); } textarea { min-height: 90px; }
.form-grid p { margin: 0 0 12px; color: var(--text); } .form-grid label { display: block; margin-bottom: 4px; font-weight: 600; } .helptext { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.errorlist { color: var(--red); margin: 0 0 8px; padding-left: 18px; }
.messages { margin-bottom: 16px; } .message { background: #e5f4ec; border: 1px solid #b9dfcc; color: var(--green); border-radius: 8px; padding: 10px 12px; }
.row-actions { white-space: nowrap; } .row-actions a { margin-right: 10px; }
.inline-form { display: grid; grid-template-columns: 80px minmax(120px, 1fr) auto; gap: 8px; }
@media (max-width: 820px) { .topbar { align-items: flex-start; flex-direction: column; padding: 12px 16px; gap: 10px; } .topbar nav { flex-wrap: wrap; } .page-head, .grid-two { display: block; } .actions { margin-top: 12px; } .panel { margin-bottom: 16px; } }
