:root{color-scheme:light;--ink:#18332d;--muted:#56716b;--line:#dae6e0;--green:#16664f;--accent:#e8f3ed;--paper:#f4f7f4;--white:#fff;font-family:system-ui,"Noto Sans TC",sans-serif;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0}
.header{height:68px;display:flex;align-items:center;justify-content:space-between;padding:0 max(20px,calc((100% - 1160px)/2));background:#113b30;color:#fff}
.brand,.identity,.mark,.presets,.filters,.title,.section-head,.pagination,.import-dates{display:flex;align-items:center}
.brand{font-weight:720;gap:11px;white-space:nowrap}
.mark{border:1px solid #6fa992;border-radius:8px;width:31px;height:31px;gap:3px;align-items:flex-end;justify-content:center;padding-bottom:7px}
.mark i{width:3px;border-radius:2px;height:6px;background:#b4e4c9}
.mark i:nth-child(2){height:10px}.mark i:nth-child(3){height:15px}
.identity{gap:14px;font-size:.9rem}
.identity button{color:#e5f5ec;background:transparent;border-color:#5d8a7b}
main{max-width:1200px;margin:0 auto;padding:34px 20px 60px}
h1,h2,p{margin:0}
h1{font-size:clamp(1.65rem,4vw,2.1rem);letter-spacing:-.03em}
h2{font-size:1.02rem}
.title{justify-content:space-between;gap:12px;padding-bottom:23px}
.title p,.source,.section-head span{color:var(--muted);font-size:.88rem}
.title p{margin-top:7px}
.panel,.metrics section,.login{background:var(--white);border:1px solid var(--line);border-radius:13px}
.filters{padding:15px;gap:12px;flex-wrap:wrap}
.presets{gap:6px;margin-right:auto;flex-wrap:wrap}
button,input,select{font:inherit}
button{cursor:pointer;background:white;color:var(--ink);border:1px solid #c5d8ce;border-radius:8px;padding:8px 12px;font-size:.88rem;white-space:nowrap}
button:hover{background:var(--accent)}
button:disabled{opacity:.55;cursor:default}
button[aria-pressed=true]{color:#0d523e;background:var(--accent);border-color:#83b49f}
.primary{background:var(--green);color:#fff;border-color:var(--green)}
.primary:hover{background:#10543f}
label{display:flex;gap:7px;align-items:center;font-size:.88rem;font-weight:600}
input,select{min-width:0;padding:7px 9px;border:1px solid #bbd2c6;border-radius:7px;color:var(--ink);background:#fff}
:focus-visible{outline:3px solid #58a68b;outline-offset:2px}
.source{margin:12px 0}
.source.demo{color:#814913}
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:15px 0}
.metrics section{padding:18px 16px}
.metrics section:first-child{background:#e5f2e9;border-color:#bedac9}
.metrics h2{font-size:.86rem;color:#37594f;font-weight:650;margin-bottom:10px}
.metrics strong{display:block;font-size:clamp(1rem,2.65vw,1.8rem);letter-spacing:-.025em;overflow-wrap:anywhere}
.section{margin-top:15px;padding:16px}
.section-head{justify-content:space-between;gap:10px;margin-bottom:13px}
#chart{display:block;width:100%;height:210px}
details{margin-top:8px;color:var(--muted);font-size:.84rem}
summary{cursor:pointer}
.table-wrap{overflow:auto}
table{width:100%;border-collapse:collapse;font-size:.87rem}
th,td{padding:10px;text-align:left;border-bottom:1px solid #e7eeea;white-space:nowrap}
th{background:#f1f6f2;color:#38564d;font-weight:650}
.numeric{text-align:right;font-variant-numeric:tabular-nums}
.return{color:#a03e2d}
.empty{text-align:center;color:var(--muted);padding:24px}
.pagination{justify-content:flex-end;gap:12px;padding-top:12px;font-size:.86rem}
.login{max-width:390px;margin:32px auto 0;padding:25px}
.login form,dialog form{display:grid;gap:14px;margin-top:16px}
.login label,dialog label{flex-direction:column;align-items:stretch}
.notice{margin:10px 0 16px;padding:10px 13px;border-radius:7px;background:var(--accent);font-size:.9rem}
.notice.error{color:#842b1e;background:#fbe9e3}
.login + .notice{max-width:390px}
dialog{background:white;color:var(--ink);border:1px solid var(--line);border-radius:13px;width:min(500px,calc(100% - 28px));padding:20px}
dialog::backdrop{background:#173e36a0}
dialog p{color:var(--muted);font-size:.9rem;line-height:1.65;margin-bottom:7px}
dialog a{color:#0f604a}
.import-dates{gap:12px;flex-wrap:wrap}
dialog label.confirm{flex-direction:row;align-items:center}
@media(max-width:700px){.header{height:55px}main{padding-top:22px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.metrics section{padding:13px}.filters{gap:9px}.presets{width:100%}.section{padding:12px}.identity span{max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
@media(max-width:430px){.filters label{display:grid;flex:1}.filters input{width:100%}.filters>.primary{width:100%}.title{align-items:flex-start}}

.title-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
select{max-width:220px;text-overflow:ellipsis}
.store-link{border:0;background:none;color:#0f604a;padding:3px 0;text-decoration:underline;text-underline-offset:3px;font:inherit}
.store-directory{max-height:220px;margin-top:8px}
#stores-dialog{width:min(580px,calc(100% - 28px))}
#stores-form .title-actions{justify-content:flex-start}
@media(max-width:430px){.title-actions{align-items:flex-end}.filters select{max-width:100%}}
