:root{font-family:system-ui,"Noto Sans TC",sans-serif;color:#1c1b17;background:#f5f5ef;--accent:#dafa68;--ink:#1b1c16;--muted:#595f53;--line:#dddfd4;--white:#fff;--green:#536521}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer;border:1px solid transparent;background:var(--accent);color:var(--ink);border-radius:9px;padding:.62rem .95rem;font-size:.875rem;font-weight:750;white-space:nowrap}button:hover{filter:brightness(.94)}a{color:inherit;text-decoration:none}header{background:#181913;color:white}.shell{width:min(1200px,calc(100% - 64px));margin:auto}.top{min-height:74px;display:flex;align-items:center;gap:34px;justify-content:space-between}.brand{font-weight:850;white-space:nowrap;font-size:1.1rem}.brand b{color:var(--accent);font-size:1.5rem;vertical-align:middle;margin-right:6px}.top nav{display:flex;gap:8px}.top nav a{padding:9px 12px;color:#c6c7bb;border-radius:7px;font-size:.88rem;white-space:nowrap}.top nav a[aria-current]{background:#373a2b;color:var(--accent);font-weight:750}.top .outline{background:var(--accent);border-color:transparent;color:var(--ink)}main{min-height:75vh;padding:32px 0}.hero{background:#20221a;color:white;border-radius:20px;min-height:255px;padding:33px 38px;display:flex;align-items:center;position:relative;overflow:hidden}.hero .art{position:absolute;right:0;top:0;width:52%;height:100%;background:repeating-radial-gradient(ellipse at 78% 85%,transparent 0 25px,#aabd583c 26px 27px,transparent 28px 38px),radial-gradient(ellipse at 78% 85%,#63713a,transparent 72%);mask-image:linear-gradient(90deg,transparent,#000 30%)}.hero>div:first-child{position:relative;z-index:1}.eyebrow{font-size:.84rem;font-weight:800;letter-spacing:.13em;color:var(--green)}.hero .eyebrow{color:var(--accent)}h1,h2,h3,p{margin:0}h1{font-size:clamp(2rem,4vw,3.45rem);line-height:1.12;letter-spacing:-.045em;margin:9px 0 11px}h2{font-size:1.38rem;letter-spacing:-.025em}h3{font-size:1rem}.hero p{color:#d4d5c9;margin-bottom:16px}.subtitle,.meta,.empty,footer{color:var(--muted)}.meta{font-size:.875rem;line-height:1.55}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:18px 0}.stat,.card{background:white;border:1px solid var(--line);border-radius:15px;padding:20px}.stat strong{display:block;font-size:1.8rem;margin:5px 0;font-variant-numeric:tabular-nums}.stat small{font-size:.84rem;color:var(--muted)}.stat .mark{color:var(--green);float:right}.columns{display:grid;grid-template-columns:1.4fr 1fr;gap:16px;margin-top:16px}.heading,.row,.actions,.toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px}.heading{margin-bottom:13px}.pagehead{margin:8px 0 24px}.pagehead h1{font-size:clamp(2rem,4vw,2.8rem)}.row{padding:13px 0;border-bottom:1px solid var(--line)}.row:last-child{border-bottom:0;padding-bottom:0}.row strong{overflow-wrap:anywhere}.row .actions{flex-wrap:wrap;justify-content:flex-end}.outline,.icon{background:#fff;border-color:var(--line)}.icon{padding:.25rem .65rem;font-size:1.15rem}.tag{display:inline-block;padding:4px 9px;background:#eff2e5;color:#47562c;border-radius:30px;font-size:.82rem;white-space:nowrap}.done{background:#e5f4b5}.empty{padding:19px 0;font-size:.95rem}.toolbar{justify-content:flex-start;flex-wrap:wrap;margin:0 0 17px}.toolbar label,.fields label{display:grid;gap:5px;font-size:.875rem;font-weight:650}.toolbar .push{margin-left:auto;align-self:end}input,select,textarea{min-width:0;width:100%;border:1px solid #cbd0c2;border-radius:8px;padding:.55rem .65rem;background:#fff;color:var(--ink)}select{appearance:none;padding-right:1.9rem;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23454b3a' stroke-width='1.5'/%3E%3C/svg%3E") right .65rem center no-repeat}textarea{resize:vertical}dialog{width:min(630px,calc(100% - 26px));max-height:90dvh;border:1px solid var(--line);border-radius:17px;padding:23px;color:var(--ink)}dialog::backdrop{background:#161912a0}.fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:17px 0}.fields .wide{grid-column:1/-1}.actions{justify-content:flex-end}.chart{width:100%;height:auto;display:block}.chart text{font-size:13px;fill:#59604e}.chart .guide{stroke:#dce0d3}.chart circle{fill:#657c26;stroke:white;stroke-width:2}.chart polyline{stroke:#657c26;stroke-width:3;fill:none}.chart rect{fill:#c9e867}.chart rect:nth-of-type(even){fill:#91a84b}.section-gap{margin-top:16px}.goal{margin:10px 0 16px}.goal progress{width:100%;accent-color:#809841;height:12px}.goal .row{border:0;padding:0}footer{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding:17px 0 24px;font-size:.8rem;letter-spacing:.04em}#toast{position:fixed;bottom:20px;right:20px;background:#22271a;color:white;border-radius:9px;padding:10px 17px;z-index:2}#toast:empty{display:none}@media(max-width:870px){.shell{width:calc(100% - 32px)}.top{gap:10px;flex-wrap:wrap;padding:10px 0}.top nav{order:3;width:100%;overflow:auto}.top nav a{padding:7px 9px}.columns{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,1fr)}}@media(max-width:520px){main{padding:18px 0}.hero{padding:23px 19px}.hero .art{width:62%}.stat,.card{padding:14px}.row{align-items:flex-start;flex-wrap:wrap}.row .actions{justify-content:flex-start}.toolbar .push{margin-left:0}.fields{gap:9px}.heading{flex-wrap:wrap}footer{gap:10px}}
.estimate-panel{background:#f0f3e5;border:1px solid #dfe6cb;border-radius:12px;padding:13px;display:grid;gap:8px;justify-items:start}.estimate-panel button{background:#dafa68}.estimate-panel #estimateResult{width:100%}.estimate-panel #estimateResult:empty{display:none}.estimate-totals{display:grid;grid-template-columns:1fr 1fr;gap:8px}.estimate-totals>div{background:white;border-radius:8px;padding:9px}.estimate-totals strong,.estimate-totals span{display:block}.estimate-totals span{color:var(--muted);font-size:.86rem}.estimate-panel ul{padding-left:1.2rem;margin:.55rem 0}.estimate-warning{color:#732d0b;font-size:.9rem}.optional-meal summary{cursor:pointer;font-size:.9rem;color:var(--muted);padding:5px 0}.optional-meal .fields{margin-bottom:0}
.product-results{max-height:15rem;overflow:auto}.optional-meal label:has(#productSearch){margin-top:8px}.estimate-panel a{text-decoration:underline}
.training-group{margin:8px 0 16px;padding:0 10px 8px;border:1px solid var(--line);border-radius:10px;background:#f9faf4}.training-group .row:last-child{padding-bottom:4px}.move-card{margin:12px 0;border:1px solid var(--line);border-radius:10px;padding:10px;min-width:0}.move-card legend{padding:0 5px;font-weight:700}.move-card .fields{margin:0 0 8px}.group-actions{position:sticky;bottom:-23px;background:white;display:flex;justify-content:space-between;gap:8px;padding:10px 0}.group-actions button{flex:1}
.bulk-moves{display:grid;gap:5px;margin:8px 0;font-size:.875rem}.bulk-moves textarea{width:100%}
.manual-nutrition{width:100%;margin:0}.estimate-panel .estimate-warning{margin:0 0 7px}
.estimate-table-wrap{overflow-x:auto;margin:.6rem 0}.estimate-table{width:100%;border-collapse:collapse;font-size:.84rem;background:white}.estimate-table caption{text-align:left;font-weight:750;padding:.45rem 0;background:#f0f3e5}.estimate-table th,.estimate-table td{text-align:left;vertical-align:top;padding:.45rem;border-bottom:1px solid var(--line)}.estimate-table td:nth-child(3),.estimate-table td:nth-child(4){white-space:nowrap}.estimate-table td:last-child{min-width:7rem}
