:root{--ink: #14182B;--blue: #1F4FD8;--yellow: #FFD23F;--ground: #F2F5FD;--muted: #4A5070;--white: #FFFFFF;--soft: #EEF2FB;--line: #B9C2DA;--red: #9C2B17;--green-bg: #D9F3E3;--green-fg: #0E6B3B;--shadow: 0 6px 18px rgba(31, 79, 216, .1);--hf: Fredoka, Heebo, system-ui, sans-serif}*{box-sizing:border-box}html,body{margin:0;background:var(--ground);color:var(--ink);font-family:Heebo,system-ui,sans-serif;font-size:15px;-webkit-text-size-adjust:100%}body{min-height:100dvh}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}a{color:var(--blue)}:focus-visible{outline:3px solid var(--blue);outline-offset:2px}.app{max-width:480px;margin:0 auto;min-height:100dvh;position:relative;overflow-x:clip}.page{position:relative;z-index:0;padding:calc(16px + env(safe-area-inset-top)) 16px calc(110px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:14px;min-height:100dvh}.page.flow{padding-bottom:calc(100px + env(safe-area-inset-bottom))}.corner{position:absolute;top:-70px;left:-70px;width:180px;height:180px;border-radius:50%;background:var(--yellow);z-index:-1}.top{display:flex;align-items:center;gap:6px;min-height:48px}.h1{font-family:var(--hf);font-size:32px;font-weight:700;margin:0;line-height:1.1}.h1.small{font-size:24px}.h{font-family:var(--hf);font-size:16px;font-weight:700;margin:8px 2px 2px;display:flex;justify-content:space-between;align-items:center;gap:8px}.muted{color:var(--muted)}.small{font-size:13px}.note{font-size:13px;color:var(--muted);line-height:1.5;margin:0}.empty{font-size:14px;color:var(--muted);text-align:center;padding:18px 8px;margin:0}.num{font-family:var(--hf);font-weight:700}.card{background:var(--white);border-radius:22px;padding:4px 16px;box-shadow:var(--shadow)}.card.pad{padding:14px 16px;display:flex;flex-direction:column;gap:10px}.card.blue{background:var(--blue);color:var(--white)}.card.yellow{background:#fff6cf;box-shadow:none}.row{display:flex;align-items:center;gap:12px;min-height:56px;padding:8px 0;border-bottom:1px dashed var(--line)}.row.last,.row:last-child{border-bottom:0}.row.tap,.row .grow[role=button]{cursor:pointer}.row .grow{flex:1;min-width:0}.row .t{display:block;font-size:16px;font-weight:500;overflow-wrap:anywhere}.row .t.done{text-decoration:line-through;color:var(--muted)}.row .s{display:block;font-size:12.5px;color:var(--muted);margin-top:2px;line-height:1.45}input[type=checkbox]{width:26px;height:26px;margin:0;flex:none;accent-color:var(--blue)}.paper{position:relative;background:var(--white);padding:6px 18px 6px 16px;box-shadow:var(--shadow);border-radius:0 0 14px 14px;margin-top:9px}.paper .torn{position:absolute;top:-9px;left:0;width:100%;height:9px;display:block}.paper .margin{position:absolute;top:0;bottom:0;right:56px;width:2px;background:#ff7a5973}.paper .row.check{gap:26px}.tape{position:absolute;top:-12px;left:50%;margin-left:-30px;width:60px;height:18px;background:#beb28e80;transform:rotate(-3deg);box-shadow:0 1px 2px #14182b1a;z-index:1}.tag{font-size:12.5px;font-weight:700;border-radius:10px;padding:2px 8px;white-space:nowrap;background:var(--yellow);color:var(--ink)}.tag.red{background:var(--red);color:#fff}.tag.green{background:var(--green-bg);color:var(--green-fg)}.tag.blue{background:var(--blue);color:#fff}.tag.quiet{background:var(--soft);font-weight:600}.pill{min-height:44px;padding:0 16px;border:0;border-radius:22px;font-weight:700;font-size:14px;display:inline-flex;align-items:center;justify-content:center;gap:6px;text-decoration:none;background:var(--blue);color:#fff;white-space:nowrap}.pill.white{background:var(--white);color:var(--ink);box-shadow:var(--shadow)}.pill.soft{background:var(--soft);color:var(--ink)}.pill.yellow{background:var(--yellow);color:var(--ink)}.pill.ink{background:var(--ink)}.pill.red{background:#fbe4de;color:var(--red)}.pill.big{min-height:52px;font-size:16px;border-radius:26px;width:100%}.pill:disabled{opacity:.45;cursor:default}.iconbtn{width:44px;height:44px;border:0;background:none;display:inline-flex;align-items:center;justify-content:center;border-radius:22px;color:var(--ink);flex:none}.btns{display:flex;gap:8px;flex-wrap:wrap}.chips{display:flex;gap:8px;overflow-x:auto;padding:2px;margin:-2px;scrollbar-width:none}.chip{min-height:44px;padding:0 14px;border:0;border-radius:22px;background:var(--white);color:var(--ink);font-weight:600;font-size:14px;display:inline-flex;align-items:center;gap:6px;white-space:nowrap;box-shadow:var(--shadow);flex:none}.chip.on{background:var(--ink);color:#fff}.seg{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:8px}.seg.wrap{grid-auto-flow:row;grid-template-columns:repeat(2,minmax(0,1fr))}.seg button{min-height:48px;border:0;border-radius:18px;background:var(--white);font-weight:600;font-size:14px;box-shadow:var(--shadow);padding:6px 8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}.seg button.on{background:var(--blue);color:#fff}.seg button small{font-weight:400;font-size:11.5px;opacity:.85}.switch{width:52px;height:32px;border-radius:16px;border:0;background:#c3cce2;position:relative;flex:none;padding:0}.switch span{position:absolute;top:3px;right:3px;width:26px;height:26px;border-radius:13px;background:#fff;transition:transform .15s}.switch.on{background:var(--blue)}.switch.on span{transform:translate(-20px)}@media (prefers-reduced-motion: reduce){.switch span{transition:none}}.field{display:flex;flex-direction:column;gap:4px}.field>span{font-size:13px;font-weight:600;color:var(--muted)}.input,.field input,.field select,.field textarea{min-height:48px;border:1px solid #C3CCE2;border-radius:16px;padding:10px 14px;font-size:16px;background:var(--white);width:100%;min-width:0}.input.big{font-family:var(--hf);font-size:22px;font-weight:600;border:0;border-bottom:2px solid var(--line);border-radius:0;background:transparent;padding:8px 2px}textarea{resize:vertical}.two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.inline{display:flex;align-items:center;gap:10px}.grow{flex:1;min-width:0}.footer{position:fixed;bottom:0;left:0;right:0;max-width:480px;margin:0 auto;padding:12px 16px calc(14px + env(safe-area-inset-bottom));background:linear-gradient(transparent,var(--ground) 30%);z-index:5}.nav{position:fixed;bottom:calc(14px + env(safe-area-inset-bottom));left:16px;right:16px;max-width:448px;margin:0 auto;height:68px;background:var(--white);border-radius:34px;box-shadow:0 6px 18px #1f4fd829;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:center;padding:0 8px;z-index:6}.nav a{height:54px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;text-decoration:none;color:var(--muted);font-size:11.5px;font-weight:600;border-radius:20px}.nav a.on{background:var(--blue);color:#fff}.scrim{position:fixed;top:0;right:0;bottom:0;left:0;background:#14182b73;z-index:20;display:flex;align-items:flex-end;justify-content:center}.sheet{background:var(--ground);width:100%;max-width:480px;max-height:88dvh;overflow-y:auto;border-radius:26px 26px 0 0;padding:12px 16px calc(20px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:12px}.sticky{position:relative;padding:16px 12px 12px;font-size:14px;font-weight:500;line-height:1.35;box-shadow:0 4px 10px #14182b1f;min-height:84px;overflow-wrap:anywhere}.sticky:nth-child(odd){transform:rotate(-1.5deg)}.sticky:nth-child(2n){transform:rotate(1.2deg)}.calpage{background:var(--white);border-radius:14px;box-shadow:var(--shadow);overflow:hidden;text-align:center;width:84px;flex:none}.calpage b{display:block;background:var(--red);color:#fff;font-size:12px;padding:3px 0}.calpage span{display:block;font-family:var(--hf);font-size:24px;font-weight:700;padding:8px 0 10px}.tile{background:var(--white);border-radius:22px;padding:14px 16px;min-height:104px;display:flex;flex-direction:column;gap:4px;text-decoration:none;color:var(--ink);box-shadow:var(--shadow);align-items:flex-start}.tile b{font-family:var(--hf);font-size:17px}.quick{display:flex;gap:8px;align-items:center;background:var(--white);border-radius:26px;padding:6px;box-shadow:var(--shadow)}.quick input{flex:1;min-width:0;border:0;background:none;min-height:44px;padding:0 12px;font-size:16px}.quick input:focus{outline:none}.week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.week button{border:0;background:var(--white);border-radius:16px;min-height:60px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:12px;color:var(--muted);box-shadow:var(--shadow);position:relative}.week button b{font-family:var(--hf);font-size:17px;color:var(--ink)}.week button.on{background:var(--blue);color:#fff}.week button.on b{color:#fff}.week button i{position:absolute;bottom:6px;width:5px;height:5px;border-radius:50%;background:var(--yellow)}.bar{height:10px;background:#e3e8f5;border-radius:5px;overflow:hidden}.bar>div{height:10px;border-radius:5px;background:var(--blue)}.plate{font-family:var(--hf);font-weight:700;font-size:22px;background:var(--yellow);border:2px solid var(--ink);border-radius:10px;padding:4px 14px;letter-spacing:.06em;direction:ltr;display:inline-block}.hero{position:relative;overflow:hidden;border-radius:26px;padding:16px 18px;display:flex;align-items:center;gap:14px}.center{min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:24px;text-align:center}.toast{position:fixed;bottom:calc(96px + env(safe-area-inset-bottom));left:50%;transform:translate(-50%);background:var(--ink);color:#fff;border-radius:22px;padding:10px 18px;font-weight:600;font-size:14px;z-index:30;box-shadow:var(--shadow);white-space:nowrap;max-width:92vw;overflow:hidden;text-overflow:ellipsis}details.drawer{background:var(--white);border-radius:22px;box-shadow:0 -4px 18px #1f4fd824}details.drawer summary{list-style:none;cursor:pointer;min-height:48px;padding:0 16px;display:flex;align-items:center;gap:8px;font-family:var(--hf);font-weight:700}details.drawer summary::-webkit-details-marker{display:none}details.drawer[open] summary svg{transform:rotate(180deg)}details.drawer .in{margin:0 16px;padding:12px 0;border-top:1px dashed var(--line);display:flex;flex-wrap:wrap;gap:8px}.addbar{position:fixed;bottom:calc(14px + env(safe-area-inset-bottom));left:16px;right:16px;max-width:448px;margin:0 auto;display:flex;flex-direction:column;gap:8px;z-index:6}.sechead{display:flex;align-items:center;gap:8px;font-family:var(--hf);font-weight:700;font-size:16px;margin:10px 2px 0}.swatch{width:52px;height:52px;border:0;padding:0;background:none;border-radius:16px}
