:root{--history-blue:#0751c6;--history-ink:#102758;--history-line:#b7d9ef}
html{overflow-y:auto}
html:has(#detail[open]){overflow-y:hidden}
body{background:linear-gradient(125deg,#edf9ff,#dcefff);color:var(--history-ink)}
header{background:#e5f5ff;border-bottom:1px solid #a7cfe9;padding-block:12px}
header .brand{display:inline-flex;align-items:center;min-height:46px}
header .brand img{display:block;width:155px;height:auto}
header a:not(.brand){color:#104e9c;text-decoration:none;font-weight:600}
h1{letter-spacing:-.035em}.eyebrow{color:#1267ae}
.login,.stats>div,.case-card,dialog{background:#f7fcff;border-color:var(--history-line);border-radius:12px}
.stats strong{color:#104e9c}.toolbar{background:#eff9ff;border:1px solid var(--history-line);border-radius:12px;padding:14px}
button:not(.preview-button),a.button,input,select{border-color:#a7cce6}
#refresh,button.primary,a.primary,.open-case{background:var(--history-blue);border-color:var(--history-blue);color:#fff}
#refresh:hover,button.primary:hover,.open-case:hover{background:#083d98}
.case-card .card-body{color:var(--history-ink)}input,select{color:var(--history-ink)}
@media(max-width:560px){header{gap:8px;padding:10px 12px}header .brand img{width:116px}header button{padding:7px 10px}.toolbar{padding:10px}.stats{gap:6px}dialog{border-radius:0}}
