:root { font: 16px/1.5 system-ui, sans-serif; color: #201c1d; background: #f7f6f8; }
* { box-sizing: border-box; }
body { margin: 0; }
header { padding: 1rem max(1rem, calc((100% - 1160px) / 2)); background: #251820; color: #fff; display: flex; align-items: center; gap: 1rem; }
header strong { font-size: 1.2rem; }
header span { color: #e4d8df; }
header form { margin-left: auto; }
main { width: min(1160px, calc(100% - 2rem)); margin: 2rem auto; }
h1 { margin: 0 0 1.25rem; font-size: clamp(1.65rem, 5vw, 2.4rem); }
h2 { margin-top: 0; }
section, dialog { background: #fff; border: 1px solid #e0d8df; border-radius: 12px; padding: 1.25rem; }
section + section { margin-top: 1rem; }
.toolbar, #search, nav, .actions { display: flex; align-items: end; gap: .85rem; flex-wrap: wrap; }
.toolbar { justify-content: space-between; }
label { display: grid; gap: .35rem; font-weight: 600; }
#search label:first-child { flex: 1 1 220px; }
label.check { display: flex; align-items: center; min-height: 42px; }
input, select, textarea, button { font: inherit; }
input:not([type=checkbox]), select, textarea { border: 1px solid #b8aeb6; border-radius: 7px; padding: .55rem .7rem; background: white; color: inherit; }
button { border-radius: 7px; padding: .55rem .9rem; border: 1px solid #d5d500; background: #ffff00; color: #171717; font-weight: 650; cursor: pointer; }
button.secondary { background: #fff; border-color: #d5cbd3; }
button:disabled { opacity: .5; cursor: default; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: .7rem; border-bottom: 1px solid #e9e3e8; }
th { white-space: nowrap; background: #f6f1f5; }
nav { justify-content: flex-end; align-items: center; padding-top: 1rem; }
dialog { width: min(680px, calc(100% - 2rem)); }
dialog::backdrop { background: #1e111bbb; }
textarea { min-height: min(46vh, 430px); resize: vertical; font: .9rem/1.45 monospace; }
.actions { justify-content: flex-end; margin-top: 1rem; }
progress { width: 100%; }
.login { max-width: 430px; }
.login button { margin-top: 1rem; }
[role=alert] { color: #a02642; }
@media (max-width: 550px) { header span { display: none; } th, td { padding: .55rem; } }
#dashboard h2 { margin: 0; }
#dashboard .toolbar { align-items: center; }
#dashboard th:not(:first-child), #dashboard td { text-align: right; }
#dashboard td { font-variant-numeric: tabular-nums; }
#dashboard tbody tr:first-child td { font-weight: 700; background: #f6f1f5; }
#dashboard small { display: block; margin-top: .75rem; color: #625663; }
#import-results { max-height: 36vh; overflow: auto; padding-left: 1.25rem; }
#import-results li { margin: .5rem 0; overflow-wrap: anywhere; }
