:root{--bg:#f6f8f2;--green:#47745a;--ink:#2b4035;--muted:#758176;--line:#e1e8dc;--orange:#f3d8bb;--soft:#edf3e9}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,'Hiragino Kaku Gothic ProN','Yu Gothic',sans-serif;font-size:14px;line-height:1.7}button,input,textarea{font:inherit}button,.file-button{cursor:pointer;-webkit-tap-highlight-color:transparent}button{border:0;border-radius:13px;padding:11px 16px;background:transparent;color:var(--ink);min-height:44px}button:disabled{opacity:.45;cursor:wait}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #d39868;outline-offset:3px}.shell{max-width:740px;margin:auto;padding:0 24px}header{display:flex;align-items:center;justify-content:space-between;padding:28px 0;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px}.brand-icon{font-size:38px;line-height:1;color:#729478}.brand strong{font-size:20px;letter-spacing:.1em}.brand small{display:block;font-size:10px;color:var(--muted);letter-spacing:.15em}.local-badge{font-size:10px;background:#e7eee1;border-radius:20px;padding:5px 9px;color:#56745b}main{padding:30px 0 130px}.eyebrow{font-size:11px;color:var(--green);letter-spacing:.14em;margin-bottom:9px}h1{font-size:25px;font-weight:600;letter-spacing:.02em;line-height:1.55;margin:0 0 8px}h2{font-size:16px;margin:0 0 10px;font-weight:600}h3{font-size:14px;margin:18px 0 10px}.intro{color:var(--muted);margin:0 0 25px;font-size:12px}.timer-card{position:relative;text-align:center;padding:30px 18px 21px;background:var(--soft);border:1px solid #dce7d5;border-radius:26px;overflow:hidden}.timer-card:before{content:'';position:absolute;width:150px;height:150px;border:30px solid #e3ecd9;border-radius:50%;right:-90px;top:-65px;pointer-events:none}.status{display:inline-flex;gap:6px;align-items:center;background:#fff9;padding:3px 12px;border-radius:20px;font-size:12px;color:var(--green)}.status:before{content:'●';font-size:9px}.timer{font-size:58px;line-height:1.4;font-weight:500;font-variant-numeric:tabular-nums;letter-spacing:-.04em;margin:16px 0 0}.timer span{font-size:14px;color:#687c68;letter-spacing:0;margin:0 8px}.muted{color:var(--muted);font-size:12px}.tiny{color:var(--muted);font-size:10px;line-height:1.8}.actions{display:flex;gap:12px;justify-content:center;margin:22px 0 15px}.actions button{flex:1;max-width:260px;min-height:51px}.primary{background:var(--green);color:white}.accent{background:var(--orange);color:#725235}.secondary{background:#f2f4ed;border:1px solid var(--line)}.wide{display:block;width:100%;margin:12px 0;text-align:center}.stats{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0 30px}.stats article{padding:18px;background:white;border:1px solid var(--line);border-radius:17px}.stats small{display:block;font-size:11px;color:var(--muted)}.stats strong{font-size:22px;font-weight:500}.section-title{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:16px 0 10px}.section-title h2,.section-title h3{margin:0}.text-button{font-size:11px;color:var(--green);padding:8px}.empty{padding:24px 16px;text-align:center;border:1px dashed #d7dfcf;border-radius:16px;color:var(--muted);font-size:12px}.record{background:white;border:1px solid var(--line);padding:15px;border-radius:17px;margin-bottom:10px}.record-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.record-title{font-size:12px}.record strong{font-size:16px;font-weight:500}.chips{display:flex;flex-wrap:wrap;gap:5px;margin-top:9px}.chip{font-size:10px;background:#f0f4eb;padding:2px 8px;border-radius:6px}.chip.orange{background:#fcf0e3}.record-note{font-size:11px;white-space:pre-wrap;color:var(--muted);overflow-wrap:anywhere}.tip{display:flex;gap:14px;padding:15px 6px;color:#8b785e;font-size:11px}.tip span{font-size:22px;color:#caa77d}.tip p{margin:0}nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);max-width:740px;width:100%;display:flex;justify-content:space-around;background:#fafcf7f5;backdrop-filter:blur(12px);border-top:1px solid var(--line);padding:10px 12px max(10px,env(safe-area-inset-bottom));z-index:5}nav button{display:flex;flex-direction:column;align-items:center;font-size:10px;width:22%;color:#8c968b;gap:2px;padding:4px}nav button span{font-size:22px;line-height:1.3}nav button.selected{color:var(--green);background:#e9f0e4}.card{background:white;border:1px solid var(--line);border-radius:20px;padding:22px;margin:18px 0}.segmented{display:flex;background:#e8eee1;padding:4px;border-radius:13px;width:230px;margin:25px auto 10px}.segmented button{width:50%;padding:6px}.segmented .selected{background:white;box-shadow:0 1px 4px #344b3912}.period-nav{display:flex;align-items:center;justify-content:space-between;margin:15px 0}.period-nav strong{font-size:13px}.period-nav button{font-size:24px}.graph-total{font-size:32px;color:var(--green);margin-bottom:23px}.daily-chart{display:flex;height:180px;align-items:stretch;gap:6px;overflow-x:auto;padding-top:10px}.bar-column{flex:1;min-width:20px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:155px}.bar-track{height:115px;width:100%;display:flex;align-items:flex-end;justify-content:center;border-bottom:1px solid var(--line)}.bar{background:#9bb599;min-width:8px;width:65%;max-width:36px;border-radius:5px 5px 0 0}.bar-column small{font-size:9px;margin-top:7px;white-space:nowrap}.bar-column .bar-value{font-size:9px;color:var(--muted);white-space:nowrap}.project-stat{margin:18px 0}.project-stat .line{display:flex;justify-content:space-between;gap:10px;font-size:12px}.project-stat .line span:first-child{overflow-wrap:anywhere}.project-bar{height:9px;background:#f2f4ed;border-radius:5px;margin-top:7px;overflow:hidden}.project-bar i{display:block;height:100%;border-radius:5px}.project-item{display:flex;align-items:center;gap:8px;padding:9px 0;border-bottom:1px solid var(--line)}.project-item .dot{width:9px;height:9px;border-radius:50%;flex-shrink:0}.project-item .name{flex:1;font-size:12px;overflow-wrap:anywhere}.project-item button{padding:6px 8px;font-size:11px}.add-project{display:flex;gap:8px;margin-top:16px}.add-project input{min-width:0;flex:1}input,textarea{width:100%;padding:10px;border:1px solid #dbe3d6;border-radius:9px;background:#fff;color:var(--ink);font-size:16px;min-height:44px}input[type=month]{margin-top:5px}textarea{min-height:80px;resize:vertical}label{display:block;font-size:12px;margin:12px 0}dialog{border:0;border-radius:23px;padding:22px;max-width:530px;width:calc(100% - 26px);max-height:90dvh;color:var(--ink);background:var(--bg)}dialog::backdrop{background:#20372a66;backdrop-filter:blur(4px)}dialog .section-title{margin-top:0}.allocation-summary{background:#e8efdf;border-radius:12px;padding:12px;font-size:12px;margin:20px 0 10px}.allocation-row{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:12px 0}.allocation-row .name{flex:1;font-size:12px;overflow-wrap:anywhere}.time-input{display:flex;align-items:center;gap:4px;font-size:11px}.time-input input{width:64px;text-align:center}.break-row{padding:10px;background:#fff;border-radius:12px;margin:10px 0}.break-row label{margin:6px 0}.break-row button{color:#a36d59;font-size:11px}.error{color:#ae5543;font-size:12px}.danger{color:#a65b4a;font-size:12px}#toast{position:fixed;bottom:110px;left:50%;transform:translateX(-50%);width:max-content;max-width:90%;background:#304b3b;color:white;padding:12px 20px;border-radius:12px;font-size:12px;z-index:20}[hidden]{display:none!important}@media(min-width:650px){main{padding-top:40px}h1{font-size:30px}.timer-card{padding:36px}.timer{font-size:72px}}@media(max-width:370px){.shell{padding:0 16px}h1{font-size:22px}.time-input input{width:53px}.timer{font-size:50px}}
