:root{--bg:#f5f6f0;--paper:#fff;--ink:#25382f;--muted:#637368;--green:#315f49;--lime:#dbe9ae;--line:#dce3d8;--soft:#e9efe4;--warn:#8c431f;--radius:25px;--shadow:0 5px 25px #28402a06;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #7b9554;outline-offset:3px}a{color:var(--green)}.shell{max-width:560px;margin:auto;padding:0 22px calc(100px + env(safe-area-inset-bottom))}header{display:flex;align-items:center;justify-content:space-between;padding:calc(23px + env(safe-area-inset-top)) 0 27px}.brand{display:flex;align-items:center;gap:8px;font-size:24px;font-weight:650;text-decoration:none;letter-spacing:-1px}.brand-mark{background:var(--green);color:var(--lime);width:33px;height:33px;border-radius:12px;display:grid;place-items:center;font-family:Georgia,serif}.brand-note{font-size:11px;font-weight:400;letter-spacing:0;color:var(--muted);margin-left:7px}.icon-button{width:44px;height:44px;border-radius:50%;background:#e9ede4;color:var(--ink);font-size:23px}.eyebrow{text-transform:uppercase;letter-spacing:2px;font-size:10px;font-weight:650;color:var(--muted);margin:0 0 9px}h1{font-size:35px;font-weight:500;letter-spacing:-1.5px;line-height:1.13;margin:0 0 10px}h2{font-size:19px;font-weight:550;letter-spacing:-.4px;margin:0}h3{font-size:15px;margin:0}.intro{color:var(--muted);font-size:14px;line-height:1.55;margin:0 0 25px}.card{background:var(--paper);border-radius:var(--radius);padding:23px;margin-bottom:16px;box-shadow:var(--shadow)}.card-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:19px}.hint,.muted{font-size:12px;line-height:1.55;color:var(--muted)}.hint{margin:12px 0 0}.hero{background:var(--green);color:white;position:relative;overflow:hidden}.hero::after{content:"";position:absolute;width:170px;height:170px;border:1px solid #ffffff19;border-radius:50%;right:-65px;top:-35px;pointer-events:none}.hero .eyebrow,.hero .hint{color:#d8e5d7}.hero h2{font-size:28px;margin:6px 0}.hero .pill{color:var(--ink);background:var(--lime)}.pill{display:inline-block;border-radius:30px;padding:6px 10px;background:var(--soft);font-size:11px;font-weight:500}.big{font-size:43px;letter-spacing:-2px;font-weight:450;line-height:1.1}.unit{font-size:13px;letter-spacing:0;color:var(--muted);margin-left:6px}.water-visual{display:flex;align-items:center;gap:25px;margin-bottom:22px}.water-ring{width:98px;height:98px;flex-shrink:0;border-radius:50%;background:conic-gradient(var(--green) var(--progress),#edf1e9 0);display:grid;place-items:center}.water-ring::before{content:"";position:absolute;width:78px;height:78px;background:#fff;border-radius:50%}.water-ring span{position:relative;font-size:20px}.water-buttons{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.soft-button,.primary,.secondary,.danger{min-height:45px;padding:12px 16px;border-radius:15px;font-size:13px;font-weight:550}.soft-button,.secondary{background:var(--soft);color:var(--green)}.primary{background:var(--green);color:#fff}.hero .primary{background:var(--lime);color:var(--ink)}.danger{color:#993924;background:#fff0ea}.wide{width:100%}.link-button{background:none;color:var(--green);padding:10px 0;min-height:40px;font-size:12px;text-decoration:underline;text-underline-offset:4px}.hero .link-button{color:white}.feelings{display:flex;justify-content:space-between;gap:5px}.feeling{min-height:68px;flex:1;background:transparent;border-radius:17px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;color:var(--muted);font-size:10px}.feeling span{font-size:26px;color:var(--ink)}.feeling.selected{background:var(--soft);color:var(--green);box-shadow:inset 0 0 0 1px #c3d4b4}.section-line{display:flex;align-items:center;justify-content:space-between;margin:25px 0 13px}.row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 0;border-bottom:1px solid var(--line)}.row:last-child{border-bottom:0;padding-bottom:0}.row strong{display:block;font-size:14px;font-weight:550;margin-bottom:5px}.row p{margin:0;font-size:12px;color:var(--muted)}.row-actions{display:flex;align-items:center;gap:8px}.small-button{background:var(--soft);color:var(--green);border-radius:12px;min-width:44px;min-height:44px;padding:10px;font-size:12px}.date-box{width:43px;flex-shrink:0;color:var(--green);font-size:22px;font-weight:550;text-align:center}.date-box span{font-size:9px;display:block;font-weight:400;text-transform:uppercase}.row-main{flex:1}.empty{padding:14px 0;color:var(--muted);font-size:14px;line-height:1.65}.notice{padding:14px 16px;border-radius:17px;background:#f4eee0;color:#664f2a;font-size:12px;line-height:1.6}.stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.stock-number{font-size:28px;font-weight:500;letter-spacing:-1px;margin:10px 0 2px}.chart{width:100%;height:180px;display:block;overflow:visible}.chart-labels{display:flex;justify-content:space-between;color:var(--muted);font-size:10px;margin:8px 0}.chart-wrap{padding-top:15px}.chart-dot{fill:var(--green);stroke:#fff;stroke-width:2}.chart-line{stroke:var(--green);stroke-width:2.5;fill:none}.chart-grid{stroke:var(--line);stroke-width:1}.range-buttons{display:flex;gap:5px}.range-buttons button{background:none;padding:7px 10px;border-radius:20px;font-size:11px;color:var(--muted);min-height:36px}.range-buttons .active{background:var(--soft);color:var(--green)}nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(560px,100%);padding:12px 20px calc(12px + env(safe-area-inset-bottom));background:#f5f6f0f5;border-top:1px solid var(--line);display:flex;gap:8px;z-index:3}nav button{flex:1;display:flex;flex-direction:column;gap:5px;align-items:center;min-height:53px;background:none;color:var(--muted);font-size:11px;border-radius:17px}nav button span{font-size:22px}nav button.active{color:var(--green);background:var(--soft)}dialog{width:calc(100% - 28px);max-width:500px;max-height:calc(100dvh - 45px);border:0;border-radius:27px;padding:25px;color:var(--ink);background:var(--bg)}dialog::backdrop{background:#152c2475;backdrop-filter:blur(3px)}.modal-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:21px}.modal-top h2{font-size:24px}label{display:block;font-size:12px;font-weight:550;margin:16px 0 7px}input,select,textarea{display:block;width:100%;min-height:47px;padding:12px;border:1px solid #d5dece;border-radius:13px;background:white;color:var(--ink);font-size:16px}textarea{resize:vertical;min-height:90px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.modal-footer{display:flex;gap:10px;margin-top:23px}.modal-footer button{flex:1}.form-error{color:var(--warn);font-size:13px;line-height:1.6;margin-top:14px}.checkbox{display:flex;gap:10px;align-items:center}.checkbox input{width:20px;min-height:20px}.install-steps{font-size:13px;line-height:1.7;padding-left:19px}#toast{position:fixed;left:50%;bottom:105px;transform:translateX(-50%);background:var(--ink);color:white;font-size:13px;padding:13px 20px;border-radius:18px;z-index:10;max-width:90%;width:max-content;pointer-events:none;opacity:0;transition:opacity .15s}#toast.visible{opacity:1}.footer-note{text-align:center;color:var(--muted);font-size:11px;line-height:1.7;padding:15px}.done-tag{color:var(--green);font-size:12px}.warning{color:var(--warn)}.split{display:flex;align-items:center;justify-content:space-between;gap:12px}.hidden{display:none!important}.file-input{margin-top:8px;font-size:12px}svg text{font-family:inherit}.history-note{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;color:var(--muted);margin-top:6px}@media(min-width:750px){.shell{padding-top:15px}header{padding-top:24px}.card{padding:26px}}@media(max-width:360px){.shell{padding-left:14px;padding-right:14px}h1{font-size:31px}.card{padding:19px}.brand-note{display:none}.water-visual{gap:15px}.big{font-size:36px}.row-actions{gap:4px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

.sync-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 19px;padding:0 3px;color:var(--muted);font-size:11px;line-height:1.5}.sync-bar .link-button{flex-shrink:0}
.dynamics-tabs{display:flex;gap:5px;background:#e8ece5;padding:5px;border-radius:18px;margin:20px 0}.dynamics-tabs button{flex:1;padding:10px 3px;border:0;border-radius:13px;background:transparent;color:var(--muted);font:inherit;font-size:13px}.dynamics-tabs button.active{background:#fff;color:var(--green);box-shadow:0 2px 6px #1639230b}.chart-legend{display:flex;gap:14px;flex-wrap:wrap;font-size:12px;color:var(--muted);margin-top:14px}.chart-legend i{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:5px}.plan-block{border-top:1px solid var(--line);padding:12px 0}.check-label{display:flex;align-items:flex-start;gap:10px;margin:20px 0;line-height:1.5}.check-label input{width:20px;height:20px;flex-shrink:0;margin:2px 0}details{margin-top:16px}summary{cursor:pointer;font-size:13px;color:var(--green)}
