:root{font-family:Inter,"Segoe UI",Arial,sans-serif;color:#163248;background:#f3f6fa;font-size:16px;--navy:#102d43;--teal:#007f86;--line:#dbe4eb}*{box-sizing:border-box}body{margin:0}header{padding:22px 4%;background:var(--navy);color:white;display:flex;justify-content:space-between;align-items:center}.brand{display:flex;gap:14px;align-items:center;color:white;text-decoration:none;font-size:14px;font-weight:700;letter-spacing:1px}.brandmark{background:#30d1c1;color:#102d43;font-size:28px;letter-spacing:-2px;padding:8px 12px;border-radius:10px}.brand small{display:block;font-size:13px;color:#b5cbd9;font-weight:400;letter-spacing:0;margin-top:6px}.author{font-size:14px;color:#b5cbd9}.author a{color:#fff;text-decoration:none}main{max-width:1600px;margin:auto;padding:32px 4%}h1{font-size:36px;letter-spacing:-1px;margin:8px 0 10px}h2{font-size:20px;letter-spacing:-.3px;margin:0 0 18px}h2>span{margin-left:8px}p{line-height:1.55;margin:10px 0;color:#506577}.eyebrow{font-size:12px;letter-spacing:1.8px;color:var(--teal);font-weight:750}.titlebar,.sectionhead{display:flex;justify-content:space-between;gap:20px;align-items:center}.titlebar{margin-bottom:30px}.titlebar p{margin-bottom:0}button{border:0;border-radius:7px;padding:12px 18px;background:var(--teal);color:white;cursor:pointer;font:600 14px inherit;font-family:inherit;font-size:14px;font-weight:600;white-space:nowrap}button:hover{filter:brightness(.92)}button:disabled{opacity:.45;cursor:default}.secondary{background:#fff;color:#163248;border:1px solid #c8d6df}.textbutton{background:transparent;color:var(--teal);padding-left:0}nav{display:flex;gap:45px;border-bottom:1px solid var(--line);padding:0 0 18px;margin-bottom:24px;color:#627787;font-size:14px}nav span{display:flex;gap:12px}nav .active{color:var(--teal)}.workspace{display:grid;grid-template-columns:305px minmax(0,1fr);gap:24px}.card{padding:24px;border:1px solid var(--line);border-radius:12px;background:white;margin-bottom:22px}.upload{display:flex;flex-direction:column;gap:8px;background:#f0faf9;border:1.5px dashed #70bdb8;border-radius:8px;padding:20px 16px;cursor:pointer;overflow:hidden}.upload strong{color:#006a70}.upload span{font-size:12px}.upload input{font-size:12px;max-width:100%;padding:5px 0;border:0;background:transparent}.privacy{font-size:12px;color:#477466}.muted{font-size:14px;color:#5a7082}label{display:block;font-size:14px;font-weight:600;margin-bottom:16px}input,select,textarea{display:block;font-family:inherit;font-size:14px;line-height:1.4;border:1px solid #c8d6df;border-radius:6px;background:#fff;color:#17354a;padding:11px 10px;width:100%;margin-top:7px}input:focus,select:focus,textarea:focus,button:focus-visible{outline:3px solid #70c9c4;outline-offset:2px}textarea{font-family:Consolas,monospace}.formgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 18px}.badge{font-size:12px;background:#e9f6f3;color:#007265;padding:7px 10px;border-radius:5px}.sectionhead h2{margin:0}.sectionhead{margin-bottom:18px}.actions{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-top:18px}.note{background:#e8f0f5;border:0}.note h2{font-size:24px;margin-top:14px}.examples{display:flex;gap:30px;margin-top:22px;font-size:14px}.examples span{border-left:3px solid #2c98a0;padding-left:14px}.examples b{display:block;margin-top:7px}.previewtable{overflow:auto;max-height:230px;margin-top:14px}table{border-collapse:separate;border-spacing:0;width:100%;font-size:13px}th,td{padding:10px;text-align:left;border-bottom:1px solid #e3eaf0;white-space:nowrap}th{background:#eff4f7;position:sticky;top:0;z-index:1}summary{cursor:pointer;font-weight:650;font-size:15px}.inline{display:flex;align-items:center;gap:10px;margin-top:18px}.inline input{width:auto;margin:0}.ok{color:#007668}.error{color:#a13f29}.filters{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:18px;padding-bottom:8px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:24px}.stats article{background:white;border:1px solid var(--line);border-top:3px solid var(--teal);border-radius:9px;padding:22px}.stats span{font-size:14px;color:#516b7f}.stats strong{display:block;font-size:32px;letter-spacing:-1px;margin:12px 0}.stats small{font-size:12px;color:#607787}.capacity{width:205px;margin:0}.capacity input{padding:7px}.chartscroll{overflow-x:auto}.chart{display:flex;align-items:flex-end;gap:4px;height:150px;min-width:760px;padding-top:25px}.bar{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;gap:7px;font-size:12px}.bar button{padding:0;width:100%;border-radius:3px 3px 0 0;background:#089aa2;min-height:3px}.bar:nth-child(4n) button{background:#00757b}.bar small{font-size:10px}.mapscroll{overflow:auto;max-height:650px;border:1px solid var(--line);border-radius:7px}.mapscroll table{width:max-content;min-width:100%}.mapscroll th:first-child,.mapscroll td:first-child{position:sticky;left:0;z-index:2;background:#fff;min-width:255px;max-width:310px;white-space:normal;border-right:1px solid var(--line)}.mapscroll th:first-child{z-index:3;background:#eff4f7}.mapscroll td{padding:6px 4px;min-width:36px;text-align:center;height:53px}.mapscroll td:first-child{text-align:left;padding:9px 14px}.mapscroll th{font-size:12px;text-align:center;padding:10px 5px}.mapscroll small{display:block;font-size:12px;color:#688092;margin-top:4px}.cell{width:27px;min-height:27px;border-radius:4px;padding:5px 0;font-size:12px}.c0{background:#007f86;color:white}.c1{background:#246ac0;color:white}.c2{background:#7354b7;color:white}.c3{background:#c07715;color:white}.legend{display:flex;gap:15px;font-size:12px;flex-wrap:wrap}.legend i{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:5px}.pager{display:flex;justify-content:space-between;align-items:center;margin-top:20px;font-size:14px}#dashboard{scroll-margin-top:20px}footer{display:flex;justify-content:space-between;font-size:12px;color:#64788a;padding:10px 0}dialog{border:1px solid var(--line);border-radius:12px;padding:25px;max-width:900px;width:90%;max-height:85vh}dialog::backdrop{background:#102d4380}#detailbody{overflow:auto}#message{position:fixed;bottom:25px;right:25px;max-width:500px;z-index:20;background:#823422;color:white;padding:18px 25px;border-radius:10px;box-shadow:0 5px 20px #0003}[hidden]{display:none!important}.help{margin-top:24px}.help p{font-size:14px}@media(max-width:1050px){.workspace{grid-template-columns:270px minmax(0,1fr)}.formgrid{grid-template-columns:repeat(2,1fr)}.stats{grid-template-columns:repeat(2,1fr)}.filters{grid-template-columns:1fr 1fr}.sectionhead{align-items:flex-start;flex-wrap:wrap}}@media(max-width:700px){header{padding:16px}.brand{font-size:12px}.author{display:none}main{padding:22px 16px}h1{font-size:28px}.titlebar{align-items:flex-start;flex-direction:column;gap:15px}nav{gap:18px;font-size:12px}nav b{font-weight:500}.workspace{display:block}.formgrid{grid-template-columns:1fr 1fr}.card{padding:18px}.badge{display:none}.examples{gap:15px;flex-wrap:wrap}.stats{gap:10px}.stats article{padding:15px}.filters{grid-template-columns:1fr}.stats strong{font-size:28px}footer{display:block;line-height:2}.pager{gap:6px}.pager button{padding:10px}.help{margin-top:20px}}@media print{@page{size:A3 landscape;margin:10mm}header,.titlebar,nav,.workspace,.help,footer,.filters,.actions,.pager,.capacity,#message{display:none!important}main{padding:0;max-width:none}body{background:white}#dashboard{display:block}.card{break-inside:avoid;padding:8px;margin-bottom:12px}.mapscroll{max-height:none;overflow:visible}.mapscroll table{width:100%;table-layout:fixed}.mapscroll th,.mapscroll td{min-width:0;padding:2px;font-size:7px}.mapscroll th:first-child,.mapscroll td:first-child{min-width:0;max-width:none;width:150px;position:static;font-size:9px}.mapscroll small{font-size:7px}.cell{width:100%;font-size:8px;padding:3px 0;min-height:15px}*{-webkit-print-color-adjust:exact;print-color-adjust:exact}.stats strong{font-size:24px}}

/* Keep wide spreadsheet previews inside their panel. */
.workspace>*{min-width:0}.previewtable,.mapscroll,.chartscroll{min-width:0;max-width:100%}.formgrid>*,.filters>*{min-width:0}select{max-width:100%}.previewtable{overscroll-behavior-x:contain}.previewtable table{width:max-content;min-width:100%}.previewtable th,.previewtable td{max-width:280px;overflow:hidden;text-overflow:ellipsis}
@media(max-width:700px){.formgrid{grid-template-columns:minmax(0,1fr)}nav{flex-wrap:wrap;gap:12px 18px}.sectionhead{flex-wrap:wrap}.pager{flex-wrap:wrap}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
