*{box-sizing:border-box}html{background:#eeeae1;color:#1b1c18;font:16px/1.5 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif}body{margin:0}main{max-width:480px;margin:auto;background:#faf6ee;min-height:100vh;min-height:100dvh;padding:max(12px,env(safe-area-inset-top)) 16px max(16px,env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:12px}button,input,textarea{font:inherit;color:inherit}button{cursor:pointer;border:1px solid #cbc5b8;background:white;border-radius:10px;padding:8px 12px}button:disabled{opacity:.48;cursor:default}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #99633f;outline-offset:1px}.head,.between,.actions,.dayrow,.chips,.photos,.dots{display:flex;align-items:center;gap:8px}.head,.between{justify-content:space-between}.head{padding-bottom:8px;border-bottom:1px solid #ded8cb}.brand{display:flex;gap:9px;align-items:center;font-size:20px}.brand:before,.orb{content:"";background:#e8a27b;border-radius:48% 52% 47% 53%;width:11px;height:10px;display:inline-block}.week,.panel,.tile,.banner,.hero{border:1px solid #d9d3c7;border-radius:16px;padding:14px;background:white}.week{background:#f4efe4;padding:8px}.round{border-radius:50%;width:36px;height:36px;padding:0}.dayrow{gap:2px;margin-top:6px}.dayrow button{flex:1;min-width:0;display:grid;justify-items:center;gap:1px;padding:4px 0;background:transparent;border:0}.dayrow button.on,.on,.primary{background:#384f40;color:white}.dayrow i,.dots i{display:block;width:5px;height:5px;background:currentColor;border-radius:50%}.dayrow i.empty{visibility:hidden}.stage{display:grid;align-content:center;flex:1}.hero{text-align:center;padding:clamp(10px,2.2vh,24px) 14px;min-width:0}.orb{width:22px;height:20px;box-shadow:0 0 0 4px #ffede5;animation:open .5s ease-out}@keyframes open{from{transform:scale(.78)}}@media(prefers-reduced-motion:reduce){*{animation:none!important}}h1,h2,h3,p{margin:0}h1{font-size:26px}h2{font-size:19px}h3{font-size:16px}.quote{margin:10px auto;font-size:clamp(21px,5vw,28px);line-height:1.4;overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;white-space:pre-wrap;overflow-wrap:anywhere}.meta,small{color:#545a52;font-size:14px}.hero footer{border-top:1px solid #e9e4dc;padding-top:6px}.tiles,.pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.tile{text-align:left;background:var(--surface);color:var(--ink);padding:10px 13px}.tile .between+.between{margin-top:5px}.dots{gap:4px}.dots i{opacity:.18}.dots i.filled{opacity:1}.primary{font-weight:650;border-color:#384f40;min-height:44px}.sleep{--surface:#eef2f6;--ink:#2e4057}.diet{--surface:#f6efe6;--ink:#6e3f24}.body{--surface:#ecf2ec;--ink:#22382a}.mood{--surface:#f9ece4;--ink:#7a4024}.banner{background:var(--surface);color:var(--ink)}.panel{display:grid;gap:10px}.panel input,.panel textarea{width:100%;min-width:0;border:1px solid #cbc5b8;background:#faf8f3;border-radius:8px;padding:9px 8px}.panel textarea{resize:vertical;min-height:68px}.panel label{display:grid;gap:5px}.scores{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:2px}.scores button{padding:0;min-width:0;min-height:42px}.chips{flex-wrap:wrap}.actions>*{flex:1}.photos{flex-wrap:wrap}.photos button{padding:0;overflow:hidden;line-height:0}.photos img{object-fit:cover;width:62px;height:62px}.file{display:inline-flex!important;position:relative;border:1px solid #cbc5b8;border-radius:8px;padding:6px 10px;overflow:hidden}.file input{position:absolute;inset:0;opacity:0;cursor:pointer}.save{position:sticky;bottom:0;background:#faf6ee;padding:8px 0}.save p{font-size:13px;min-height:20px}.error{color:#903324}.full{white-space:pre-wrap;overflow-wrap:anywhere}.textbtn{border:0;background:none;text-decoration:underline;font-size:14px;padding:2px 4px}dialog{border:1px solid #cbc5b8;border-radius:16px;padding:18px;max-width:min(400px,92vw);max-height:85vh}dialog::backdrop{background:#17221955}dialog img{max-width:100%;max-height:55vh;object-fit:contain}dialog button{margin:6px 3px 0}#dialogBody{overflow-wrap:anywhere}.panel output{display:block}.icon{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.tile strong{font-size:18px}@media(max-height:690px){main{gap:8px}.hero{padding:9px}.quote{margin:6px auto}.tile{padding:7px 11px}}
/* Constrain the intrinsic widths of WebKit's native time and date controls. */
.panel,.panel label{min-inline-size:0;grid-template-columns:minmax(0,1fr)}
.panel input:is([type=time],[type=date]){appearance:none;-webkit-appearance:none;display:block;box-sizing:border-box;min-inline-size:0;max-inline-size:100%;inline-size:100%;min-height:44px}
.panel input::-webkit-date-and-time-value{min-width:0;text-align:left}
#back{display:grid;place-items:center;width:44px;height:44px;padding:0;border-radius:50%}
