:root{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Noto Sans TC,sans-serif;color:#253b35;background:#f3f5f8;font-synthesis:none;font-size:16px;--surface: #fff;--ink: #253b35;--muted: #67746f;--line: #e0e6e3;--accent: #285e49;--tint: #edf4ef;--input: #fcfdfc;--danger: #a02b39;color-scheme:light dark}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;min-height:44px;border:0;border-radius:10px;padding:10px 17px;font-weight:600}button:disabled{cursor:not-allowed;opacity:.5}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #78a78b;outline-offset:3px}input,select,textarea{width:100%;min-width:0;min-height:46px;color:var(--ink);background:var(--input);border:1px solid var(--line);border-radius:9px;padding:11px 12px;font-size:16px}textarea{resize:vertical;line-height:1.7}input[type=checkbox]{width:20px;height:20px;min-height:20px;accent-color:var(--accent);flex-shrink:0}input[type=file]{white-space:normal;overflow:hidden}h1,h2,h3,p{margin-top:0}h1{font-size:30px;letter-spacing:-1px;margin:9px 0 10px}h2{font-size:19px;margin-bottom:18px;letter-spacing:.2px}h3{font-size:18px;margin:15px 0 10px}p{line-height:1.8}small{font-size:12px}.app-shell{max-width:1600px;margin:auto}.sidebar{position:fixed;top:0;bottom:0;width:252px;padding:42px 24px;background:var(--surface);border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:5}.brand{display:flex;align-items:center;gap:11px;font-weight:700;font-size:18px;letter-spacing:-.4px}.brand small{display:block;font-weight:400;color:var(--muted);margin-top:6px;letter-spacing:1px;font-size:11px}.brand-mark{border-radius:13px;display:grid;place-content:center;position:relative;width:43px;height:43px;background:var(--accent);color:#fff;font-size:26px;font-weight:500}.brand-mark span{position:absolute;bottom:0;right:5px;color:#b8d3b3}.sidebar nav{display:flex;flex-direction:column;gap:8px;margin-top:55px}.sidebar nav button{display:flex;align-items:center;gap:15px;background:transparent;color:var(--muted);text-align:left;font-size:15px;min-height:50px}.sidebar nav button>span{font-size:24px;font-weight:400;width:24px;text-align:center}.sidebar nav button.active{color:var(--accent);background:var(--tint)}.sidebar-note{margin-top:auto;padding:24px 8px 0;font-size:12px;color:var(--muted)}.sidebar-note p{font-size:17px;line-height:1.9;margin:24px 0}.status-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#6d937a;margin-right:8px}main{margin-left:252px;padding:45px 6% 10px;max-width:1170px}.page-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px;gap:15px}.page-heading p{color:var(--muted);font-size:14px;margin:0}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:700;color:var(--muted)}.connection{font-size:12px;white-space:nowrap;display:flex;align-items:center;gap:8px;border:1px solid var(--line);padding:8px 11px;border-radius:30px;background:var(--surface)}.connection i{width:6px;height:6px;background:#5d9873;border-radius:50%}.connection.offline i{background:#bb863d}.card{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:25px 28px;margin-bottom:20px;box-shadow:0 3px 12px #1e332703}.grid{display:grid;grid-template-columns:1fr 1fr;gap:19px 24px}.field{display:flex;flex-direction:column;gap:9px;font-size:13px;font-weight:600;min-width:0;margin-bottom:18px}.grid .field{margin-bottom:0}.field input[type=search]+select{margin-top:0}.duration{background:var(--tint);border-radius:9px;padding:15px 17px;display:flex;justify-content:space-between;align-items:center;font-size:13px;margin:22px 0;gap:12px}.duration strong{font-size:17px;color:var(--accent)}.hint,.muted{color:var(--muted);font-weight:400;font-size:12px;line-height:1.8}.hint{margin:10px 0 19px}.muted{font-size:11px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.section-heading h2{margin-bottom:0}.card>.section-heading{margin-bottom:22px}.card>.field:last-child{margin-bottom:0}.primary{background:var(--accent);color:#fff}.secondary{color:var(--ink);border:1px solid var(--line);background:var(--surface)}.text-button{background:transparent;color:var(--accent);font-size:13px;padding:8px}.danger-button{background:#fcf0f0;color:var(--danger);border:1px solid #ebcbd0}.form-actions{display:flex;justify-content:flex-end;gap:12px;margin:27px 0}.form-actions .primary{min-width:180px}.form-actions button{min-height:48px}summary{cursor:pointer;font-size:15px;font-weight:600;min-height:30px;line-height:1.8}summary .muted{margin-left:12px}.details-body{margin-top:22px}fieldset{border:0;padding:0;margin:20px 0 0}legend{font-size:13px;font-weight:600;margin-bottom:12px}.check{display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:400;margin:5px 18px 5px 0;line-height:1.7}.checks{margin:20px 0}.tag-field .hint{margin-bottom:0}.error,.notice{padding:16px;border-radius:10px;line-height:1.8;font-size:14px;overflow-wrap:anywhere}.error{background:#fff0f1;color:#a02b39;border:1px solid #ebcbd0}.notice{background:var(--tint);margin-bottom:20px}.notice button{margin-left:15px}.toast{position:fixed;right:25px;top:20px;background:var(--accent);color:#fff;padding:17px 25px;border-radius:12px;z-index:15;box-shadow:0 5px 25px #0002;max-width:calc(100vw - 32px)}footer{text-align:center;font-size:11px;color:var(--muted);padding:22px;letter-spacing:1px}.list-summary{margin:30px 0 20px}.list-summary .hint{margin:10px 0 0}.pill{background:var(--tint);border-radius:30px;padding:8px 13px;font-size:12px;white-space:nowrap}.empty{text-align:center;padding:55px 20px}.empty p{font-size:13px;color:var(--muted)}.empty-icon{font-size:35px;display:block;margin-bottom:20px;color:var(--muted)}.history-item>.section-heading{margin-bottom:0}.history-item .eyebrow{letter-spacing:.7px}.history-item strong{font-size:13px}.record-description{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px}.chips{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}.chips span{background:var(--tint);padding:5px 10px;border-radius:5px;font-size:11px}.history-item details{border-top:1px solid var(--line);padding-top:10px}.history-item summary{font-size:12px;color:var(--muted)}dl>div{display:grid;grid-template-columns:100px 1fr;font-size:13px;padding:9px 0;gap:15px}dt{color:var(--muted)}dd{margin:0;overflow-wrap:anywhere}.row-actions{display:flex;justify-content:flex-end;gap:8px;align-items:center;margin-top:12px}.intro-banner{border:1px solid var(--line);border-radius:16px;background:var(--tint);padding:32px;margin-bottom:22px}.intro-banner h2{font-size:24px;margin-top:16px}.intro-banner p{color:var(--muted);font-size:14px;margin:0}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.stats .card{padding:24px 18px}.stats p{font-size:12px;color:var(--muted)}.stats strong{font-size:20px}.category-total{display:flex;justify-content:space-between;gap:15px;padding:17px 0;border-bottom:1px solid var(--line);font-size:14px}.category-total strong{font-size:13px}.category-total small{color:var(--accent);background:var(--tint);margin-left:8px;padding:3px 5px;border-radius:4px}.option-editor,.restore-panel{background:var(--tint);border-radius:10px;padding:20px;margin-bottom:20px}.option-list{margin-top:15px}.option-row{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:14px 0;border-bottom:1px solid var(--line)}.option-row strong{font-size:14px;overflow-wrap:anywhere}.option-row .hint{display:block;margin:5px 0 0}.option-row .row-actions{margin:0;flex-shrink:0}.import-field{margin-top:24px}.restore-panel p{font-size:13px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(min-width:1600px){.sidebar{left:calc((100vw - 1600px)/2)}}@media(max-width:1000px){.sidebar{width:210px;padding:35px 16px}.brand{font-size:16px}.brand-mark{width:36px;height:38px}main{margin-left:210px;padding:35px 4% 10px}.card{padding:23px}.stats{grid-template-columns:1fr}.stats .card{display:flex;justify-content:space-between;align-items:center;margin-bottom:0}.stats p{margin:0}.stats{margin-bottom:20px}}@media(max-width:700px){.sidebar{position:fixed;top:auto;bottom:0;width:100%;border-right:0;border-top:1px solid var(--line);padding:6px 4px calc(6px + env(safe-area-inset-bottom));background:var(--surface)}.brand,.sidebar-note{display:none}.sidebar nav{display:grid;grid-template-columns:repeat(4,1fr);margin:0;gap:4px}.sidebar nav button{display:flex;flex-direction:column;justify-content:center;gap:1px;font-size:10px;padding:3px;min-height:53px;border-radius:8px}.sidebar nav button>span{font-size:23px;line-height:25px}main{margin-left:0;padding:calc(25px + env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) calc(90px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}.page-heading{margin-bottom:25px;align-items:flex-start}.page-heading p{font-size:12px;max-width:240px}.connection{font-size:10px;padding:7px 8px;margin-top:24px;gap:4px}.eyebrow{font-size:9px;letter-spacing:1.4px}h1{font-size:26px;margin-bottom:9px}.card{padding:21px 18px;border-radius:13px;margin-bottom:16px}.grid{gap:18px 12px}.field{font-size:12px;gap:8px}select,input,textarea{padding:10px;min-height:46px}h2{font-size:17px}.card>.section-heading{margin-bottom:20px}summary .muted{display:block;margin:3px 0 0 17px}.duration{padding:14px 12px}.duration strong{font-size:16px}.form-actions{justify-content:space-between;gap:10px}.form-actions .primary{flex:1;min-width:0}.form-actions button{font-size:14px}.list-summary{margin:23px 0 17px}.history-item .section-heading{align-items:flex-start;gap:8px}.history-item .section-heading strong{font-size:11px;white-space:nowrap}.intro-banner{padding:25px 20px}.intro-banner h2{font-size:21px}.category-total,.category-total strong{font-size:12px}.category-total small{margin-left:4px;font-size:10px}.option-editor,.restore-panel{padding:15px}.option-editor .grid{grid-template-columns:1fr}.option-row .text-button{padding:5px;font-size:12px}.option-row strong{font-size:13px}.toast{top:15px;right:16px;font-size:14px}.card p{font-size:13px}.card p.hint{font-size:12px}.notice button{margin:8px 0 0}}@media(max-width:360px){.grid{grid-template-columns:1fr}.page-heading{display:block}.connection{display:inline-flex;margin-top:10px}.option-row{align-items:flex-start}.option-row .row-actions{flex-direction:column}.duration{flex-wrap:wrap}}@media(prefers-color-scheme:dark){:root{background:#141c19;color:#e3ece6;--surface: #1d2823;--ink: #e3ece6;--muted: #a2b2a8;--line: #35483d;--accent: #91c4a6;--tint: #293d31;--input: #19241e;--danger: #ffabb6}.primary,.toast,.brand-mark{color:#14291d}.danger-button,.error{background:#422a31;color:#ffbdc6;border-color:#65434c}.record-form,.card{box-shadow:none}}
