:root{font-family:-apple-system,BlinkMacSystemFont,"Noto Sans TC",sans-serif;color:#173b32;background:#f5f7f3;font-size:16px}
*{box-sizing:border-box}body{margin:0}h1{font-size:1.45rem;margin:0 0 1rem}h2{font-size:1.15rem;margin:.2rem 0 .9rem}h3{font-size:1rem;margin:.8rem 0 .5rem}p{line-height:1.6}
main{max-width:900px;margin:0 auto;padding:1rem}
.topbar{background:#19493d;color:white;display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1rem max(1rem,calc((100vw - 900px)/2))}
.brand{font-size:1.12rem}.brand span{color:#c3dd91}.topbar small{display:block;font-size:.72rem;opacity:.84;margin-top:.25rem}.account{font-size:.74rem;overflow:hidden;text-overflow:ellipsis;text-align:right}.account button{margin-left:.5rem;padding:.45rem}
.status{border:1px solid #cfddd5;background:#e8f1ed;border-radius:.75rem;padding:.75rem 1rem;font-size:.9rem;min-height:2.5rem}
.panel{background:white;border:1px solid #dce5dc;border-radius:1rem;margin:1rem 0;padding:1.1rem;box-shadow:0 4px 15px #123d2e08}
[hidden]{display:none!important}
label{font-weight:600;font-size:.9rem;display:block;margin:.65rem 0}input,textarea,select{display:block;width:100%;margin-top:.35rem;font:inherit;padding:.72rem;border:1px solid #c6d6c8;border-radius:.6rem;background:#fff;color:#173b32;min-height:44px}
input:focus,textarea:focus,select:focus{outline:2px solid #438970;outline-offset:1px}
button{font:inherit;font-weight:600;border:1px solid #c0d1c5;border-radius:.62rem;background:#fff;color:#205443;min-height:44px;padding:.7rem 1rem;cursor:pointer}button:disabled{opacity:.45;cursor:wait}
button.primary{color:white;background:#205443;border-color:#205443}.danger{color:#a32d37;border-color:#d8a7aa;background:#fff9fa}
.tabs,.segmented{display:flex;gap:.4rem;overflow-x:auto;padding:.25rem 0}.tabs button,.segmented button{flex:1;white-space:nowrap;font-size:.88rem;padding:.7rem .6rem}
.tabs [aria-current="page"],.segmented .active{background:#e5f0e9;border-color:#4a8c6e;color:#164c3e}
.toolbar,.actions{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;margin:.8rem 0}.toolbar{justify-content:space-between}
.actions button{flex:1}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 .7rem}.fields .wide{grid-column:1/-1}
.cards{display:grid;gap:.75rem;margin:.7rem 0}.card{border:1px solid #dbe6dc;border-radius:.8rem;padding:1rem;background:#fcfdfb;overflow-wrap:anywhere}.card h3{margin:0 0 .4rem}.card p{margin:.3rem 0;font-size:.9rem}.card .actions{margin-bottom:0}.muted{color:#61796d;font-size:.83rem}
.editor{background:#fafcf9;border:1px solid #dae8dd;border-radius:.9rem;padding:1rem;margin:1rem 0}.checkgroup{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:.5rem}.checkgroup label{display:flex;align-items:center;gap:.5rem;font-size:.85rem;font-weight:400;padding:.45rem;border:1px solid #dee7e0;border-radius:.6rem;margin:0}.checkgroup input{width:auto;min-height:initial;margin:0;accent-color:#205443}
.report-row{display:grid;gap:.55rem}.report-row label{font-size:.8rem}.report-row textarea{min-height:58px}
footer{text-align:center;font-size:.72rem;color:#70877c;padding:1rem}
@media(max-width:560px){.fields{grid-template-columns:1fr}.account{max-width:45%}.topbar{padding:.8rem .9rem}.panel{padding:.9rem}.actions button{flex-basis:38%}}
