:root{font:16px system-ui;color:#173442;background:#edf4f5}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0}
header{background:#103b48;color:white;padding:18px max(18px,calc((100% - 850px)/2))}
header a{color:#c4f0e6}
h1{margin:.35em 0 0}h2,h3{margin:0 0 .45em}
main{max-width:890px;margin:auto;padding:0 18px 30px}
.card{background:#fff;border:1px solid #cadcde;border-radius:12px;padding:15px;margin:12px 0}
label{display:grid;gap:5px;font-weight:600;margin:9px 0}
input,select,button{font:inherit;min-height:44px;border:1px solid #a6bdc2;border-radius:8px;padding:8px 11px;max-width:100%}
button{background:#086c62;color:white;font-weight:650;cursor:pointer}
button.secondary{background:white;color:#174553}
button:disabled{opacity:.55;cursor:wait}
.actions,.filters{display:flex;gap:8px;flex-wrap:wrap}
.filters label:first-child{flex:1;min-width:200px}
.item,.base,.result{margin:.4em 0;overflow-wrap:anywhere}
.result{font-weight:650}
#message{position:sticky;top:0;z-index:2;margin:0;background:#e2f2ee;padding:10px;border-radius:0 0 8px 8px}
#message:empty{display:none}
#message.error{background:#fee7e4;color:#8b211b}
#counts button{display:block;margin:8px 0;text-align:left}
summary{font-weight:650;cursor:pointer}
.danger{background:#9a2929}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;font-size:.87rem}td,th{text-align:left;vertical-align:top;padding:.5em;border-bottom:1px solid #bdd0d0}th{background:#dfece9}#report{max-width:100%}@media print{@page{size:landscape;margin:10mm}header,#message,#home,#work,#report .actions{display:none!important}main{max-width:none;padding:0}#report .card{border:0;padding:0}.table-scroll{overflow:visible}thead{display:table-header-group}tr{break-inside:avoid}body{background:white}}
