:root{--moon: #2f80ed;--moon-text: #1a63c4;--moon-soft: #dceafb;--her: #f5a623;--her-text: #a06400;--her-soft: #fdebcd;--us: #2e9e63;--us-text: #1c7a48;--us-soft: #dcf1e5;--bg: #ffffff;--bg-sunken: #f5f5f7;--surface: #ffffff;--text: #1c1c1e;--text-dim: #6e6e73;--text-faint: #b0b0b5;--line: #e5e5ea;--sun: #e5484d;--weekend: #d13438;--tab-h: 56px;--radius: 12px;--ease: cubic-bezier(.22, .61, .36, 1)}@media(prefers-color-scheme:dark){:root{--bg: #000000;--bg-sunken: #101012;--surface: #1c1c1e;--text: #f2f2f7;--text-dim: #98989f;--text-faint: #55555c;--line: #2c2c2e;--moon-text: #6aa9f7;--moon-soft: #16314f;--her-text: #f0aa3c;--her-soft: #4a3410;--us-text: #58c98d;--us-soft: #10362a;--weekend: #ff6b6f}}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body,#root{height:100%;margin:0}html,body{overflow:hidden;overscroll-behavior:none;position:relative;width:100%;touch-action:pan-y}body{background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,Apple SD Gothic Neo,Pretendard,system-ui,sans-serif;font-size:16px;line-height:1.5;overscroll-behavior-y:none}button{font:inherit;color:inherit;border:none;background:none;padding:0;cursor:pointer}.app{display:flex;flex-direction:column;height:100%;max-width:480px;margin:0 auto;padding-top:env(safe-area-inset-top);border-left:.5px solid var(--line);border-right:.5px solid var(--line)}@media(max-width:480px){.app{border:none}}.screens{position:relative;flex:1;min-height:0;overflow:hidden}.screen{position:absolute;inset:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding-bottom:calc(var(--tab-h) + env(safe-area-inset-bottom) + 8px);opacity:0;transform:translate(var(--enter-from, 0));pointer-events:none;transition:opacity .22s var(--ease),transform .26s var(--ease);will-change:opacity,transform}.screen[data-active=true]{opacity:1;transform:translate(0);pointer-events:auto}@media(prefers-reduced-motion:reduce){.screen{transition-duration:1ms}}.tabbar{display:grid;grid-template-columns:repeat(4,1fr);height:calc(var(--tab-h) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);border-top:.5px solid var(--line);background:var(--surface);flex:none}.tabbar button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:11px;color:var(--text-faint);transition:color .16s var(--ease)}.tabbar button[data-active=true]{color:var(--her)}.tabbar .glyph{font-size:19px;line-height:1}.screen-pad{padding:12px 16px 0}.placeholder{padding:64px 24px;text-align:center;color:var(--text-faint);font-size:14px}.cal-head{display:flex;align-items:center;gap:4px;padding:4px 16px 10px}.cal-title{font-size:22px;font-weight:600;letter-spacing:-.02em;flex:1}.cal-head button.nav{width:36px;height:36px;font-size:20px;color:var(--text-dim);border-radius:50%;transition:background .14s var(--ease)}.cal-head button.nav:active{background:var(--bg-sunken)}.cal-head .enter{padding:0 14px;height:34px;border-radius:17px;font-size:14px;font-weight:600;color:#fff;background:var(--her)}.cal-head .enter[data-on=true]{background:var(--text)}.dow-row,.grid{display:grid;grid-template-columns:repeat(7,1fr)}.dow-row{padding:0 8px}.dow-row span{text-align:center;font-size:11px;color:var(--text-faint);padding-bottom:6px}.grid{padding:0 8px;touch-action:pan-y}.grid[data-painting=true]{touch-action:none;-webkit-user-select:none;user-select:none}.grid-anim{animation:slidein .26s var(--ease)}@keyframes slidein{0%{opacity:.35;transform:translate(var(--from, 0))}to{opacity:1;transform:translate(0)}}.cell{min-height:62px;padding:4px 2px 5px;border-top:.5px solid var(--line);text-align:center;position:relative}.cell .num{font-size:12px;color:var(--text);line-height:1.3}.cell[data-out=true] .num{color:var(--text-faint)}.cell[data-dow="0"] .num,.cell[data-dow="6"] .num{color:var(--weekend)}.cell[data-out=true][data-dow="0"] .num,.cell[data-out=true][data-dow="6"] .num{opacity:.4}.cell .today{display:inline-flex;align-items:center;justify-content:center;min-width:19px;height:19px;border-radius:10px;background:var(--her);color:#fff;padding:0 5px}.cell .lines{margin-top:3px;display:flex;flex-direction:column;gap:1px;min-width:0}.cell .lbl{font-size:11px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-radius:3px;min-width:0;max-width:100%}.cell .lbl.moon{color:var(--moon-text)}.cell .lbl.her{color:var(--her-text)}.cell .lbl.spacer{color:transparent}.evs{margin-top:2px;display:flex;flex-direction:column;gap:1px;min-width:0}.ev{font-size:10.5px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-radius:3px;padding:0 3px;min-width:0;max-width:100%;text-align:left}.ev[data-who=moon]{background:var(--moon-soft);color:var(--moon-text)}.ev[data-who=her]{background:var(--her-soft);color:var(--her-text)}.ev[data-who=both]{background:var(--us-soft);color:var(--us-text)}.ev.more{background:none;color:var(--text-faint)}.ev.band{border-radius:0;margin:0 -3px;min-height:15px}.ev.band[data-start=true]{border-radius:3px 0 0 3px;margin-left:0}.ev.band[data-end=true]{border-radius:0 3px 3px 0;margin-right:0}.ev.band[data-start=true][data-end=true]{border-radius:3px}.fab{position:absolute;right:18px;bottom:calc(var(--tab-h) + env(safe-area-inset-bottom) + 18px);width:52px;height:52px;border-radius:26px;background:var(--her);color:#fff;font-size:28px;line-height:1;box-shadow:0 3px 12px #0000002e;transition:transform .13s var(--ease);z-index:10}.fab:active{transform:scale(.92)}.ev-row{width:100%;text-align:left;align-items:center}.ev-dot{width:9px;height:9px;border-radius:3px;flex:none}.ev-dot[data-who=moon]{background:var(--moon)}.ev-dot[data-who=her]{background:var(--her)}.ev-dot[data-who=both]{background:var(--us)}.add-ev{width:100%;margin-top:12px;height:42px;border-radius:10px;background:var(--bg-sunken);font-size:15px;font-weight:600}.title-in{width:100%;height:42px;border:none;border-bottom:.5px solid var(--line);background:none;color:var(--text);font-size:19px;font-weight:600;margin-bottom:10px}.title-in::placeholder{color:var(--text-faint);font-weight:400}.err{color:var(--sun);font-size:13px;margin:-6px 0 8px}.seg{display:flex;gap:6px;margin-bottom:6px}.seg button{flex:1;height:34px;border-radius:17px;font-size:14px;background:var(--bg-sunken);color:var(--text-dim)}.seg button[data-active=true][data-who=moon]{background:var(--moon);color:#fff;font-weight:600}.seg button[data-active=true][data-who=her]{background:var(--her);color:#fff;font-weight:600}.seg button[data-active=true][data-who=both]{background:var(--us);color:#fff;font-weight:600}.frow{display:flex;align-items:center;gap:10px;padding:9px 0;border-top:.5px solid var(--line);font-size:15px}.frow label{color:var(--text-dim);font-size:14px;width:66px;flex:none}.frow input[type=date],.frow input[type=time],.frow input:not([type]){flex:1;min-width:0;height:36px;border:none;background:var(--bg-sunken);border-radius:8px;padding:0 10px;color:var(--text);font-size:15px;font-family:inherit}.frow input[type=checkbox]{width:22px;height:22px;accent-color:var(--her);margin-left:auto}.cell .logdot{position:absolute;bottom:2px;left:50%;transform:translate(-50%);width:4px;height:4px;border-radius:50%;background:var(--text-faint)}.palette{position:sticky;bottom:0;background:var(--surface);border-top:.5px solid var(--line);padding:10px 12px 12px;margin-top:10px}.who{display:flex;gap:6px;margin-bottom:10px}.who button{flex:1;height:34px;border-radius:17px;font-size:14px;font-weight:600;color:var(--text-dim);background:var(--bg-sunken);transition:background .16s var(--ease),color .16s var(--ease)}.who button[data-active=true][data-who=moon]{background:var(--moon);color:#fff}.who button[data-active=true][data-who=her]{background:var(--her);color:#fff}.chips{display:flex;flex-wrap:wrap;gap:6px}.chips button{height:34px;padding:0 13px;border-radius:17px;font-size:14px;background:var(--bg-sunken);color:var(--text);transition:transform .12s var(--ease),background .14s var(--ease)}.chips button:active{transform:scale(.95)}.chips button[data-active=true]{color:#fff;font-weight:600}.palette-foot{display:flex;gap:8px;margin-top:10px}.palette-foot button{flex:1;height:40px;border-radius:10px;font-size:15px;font-weight:600;background:var(--bg-sunken);color:var(--text)}.palette-foot button:disabled{color:var(--text-faint)}.palette-foot button.done{background:var(--text);color:var(--bg)}.hint{font-size:12px;color:var(--text-faint);text-align:center;padding:8px 16px 0}.sheet-back{position:fixed;inset:0;background:#00000059;opacity:0;pointer-events:none;transition:opacity .2s var(--ease);z-index:50}.sheet-back[data-open=true]{opacity:1;pointer-events:auto}.sheet{position:absolute;left:50%;transform:translate(-50%,100%);width:100%;max-width:480px;bottom:0;max-height:88%;overflow-y:auto;background:var(--surface);border-radius:16px 16px 0 0;padding:10px 18px calc(20px + env(safe-area-inset-bottom));transition:transform .26s var(--ease)}.sheet-back[data-open=true] .sheet{transform:translate(-50%)}.sheet .grab{width:36px;height:4px;border-radius:2px;background:var(--line);margin:0 auto 12px}.sheet h3{margin:0 0 12px;font-size:17px;font-weight:600}.sheet-row{display:flex;align-items:baseline;gap:10px;padding:9px 0;border-top:.5px solid var(--line);font-size:15px}.sheet-row .who-tag{width:34px;font-size:13px;flex:none}.sheet-row .type{font-weight:600;flex:none}.sheet-row .hrs{color:var(--text-dim);font-size:14px;margin-left:auto;font-variant-numeric:tabular-nums}.sheet-row .none{color:var(--text-faint)}.halfrow{display:flex;gap:6px;padding:8px 0 2px}.halfrow button{flex:1;height:34px;border-radius:17px;font-size:13px;background:var(--bg-sunken);color:var(--text-dim)}.halfrow button[data-active=true]{background:var(--text);color:var(--bg);font-weight:600}.dplate{padding:18px 18px 14px}.dplate .big{font-size:28px;font-weight:600;letter-spacing:-.02em}.dplate .sub{font-size:13px;color:var(--text-dim);margin-top:2px}.strip{display:grid;grid-template-columns:repeat(7,1fr);padding:0 10px 6px}.strip button{display:flex;flex-direction:column;align-items:center;gap:4px;padding:6px 0 7px;border-radius:12px;transition:background .15s var(--ease)}.strip button[data-sel=true]{background:var(--bg-sunken)}.strip .dw{font-size:11px;color:var(--text-faint)}.strip .dn{font-size:16px;font-weight:500;width:30px;height:30px;line-height:30px;border-radius:15px}.strip button[data-today=true] .dn{background:var(--her);color:#fff}.strip .pips{display:flex;gap:3px;height:5px}.strip .pip{width:5px;height:5px;border-radius:50%}.card{margin:6px 16px 0;background:var(--surface);border:.5px solid var(--line);border-radius:var(--radius);padding:4px 14px 6px}.card h4{margin:10px 0 2px;font-size:13px;color:var(--text-dim);font-weight:500}.line{display:flex;align-items:baseline;gap:10px;padding:9px 0;border-top:.5px solid var(--line);font-size:15px}.card .line:first-of-type{border-top:none}.line .nm{width:38px;font-size:13px;flex:none}.line .tp{font-weight:600}.line .hr{margin-left:auto;color:var(--text-dim);font-size:14px;font-variant-numeric:tabular-nums}.line .none{color:var(--text-faint)}.sec{margin:20px 16px 0;font-size:13px;color:var(--text-dim)}.up{margin:6px 16px 0;display:flex;flex-direction:column}.up .row{display:flex;align-items:center;gap:10px;padding:11px 2px;border-top:.5px solid var(--line);font-size:15px;text-align:left;width:100%}.up .row:first-child{border-top:none}.up .when{font-size:13px;color:var(--text-dim);width:62px;flex:none;font-variant-numeric:tabular-nums}.up .ev-dot{width:8px;height:8px;border-radius:3px;flex:none}.up .dday{margin-left:auto;font-size:13px;color:var(--text-faint);font-variant-numeric:tabular-nums}.empty{margin:6px 16px 0;padding:18px 0;color:var(--text-faint);font-size:14px}.note{margin:4px 16px 0;font-size:13px;color:var(--text-faint);line-height:1.6}.type-row{width:100%;text-align:left}.type-edit{padding:2px 0 10px;border-top:.5px solid var(--line)}.signout{display:block;width:calc(100% - 32px);margin:4px 16px 0;height:46px;border-radius:10px;background:var(--bg-sunken);color:var(--text-danger, var(--sun));font-size:15px;font-weight:600}.ver{text-align:center;color:var(--text-faint);font-size:12px;padding:22px 0 8px}.log-empty{padding:84px 32px;text-align:center;color:var(--text-dim);font-size:15px;line-height:1.7}.log-empty .dim{color:var(--text-faint);font-size:14px}.feed{padding:8px 0 0}.post{padding:14px 16px 16px;border-bottom:.5px solid var(--line)}.post header{display:flex;align-items:baseline;gap:8px;margin-bottom:9px}.pdate{font-size:15px;font-weight:600;font-variant-numeric:tabular-nums}.pplace{font-size:13px;color:var(--text-dim)}.pplace:before{content:"· "}.shots{display:grid;gap:3px;border-radius:var(--radius);overflow:hidden}.shots.n1{grid-template-columns:1fr}.shots.n2{grid-template-columns:1fr 1fr}.shots.n3{grid-template-columns:repeat(3,1fr)}.ph{position:relative;aspect-ratio:1;background:var(--bg-sunken);overflow:hidden}.shots.n1 .ph{aspect-ratio:4 / 3}.ph img{width:100%;height:100%;object-fit:cover;display:block;opacity:0;transition:opacity .26s var(--ease)}.ph[data-loaded=true] img{opacity:1}.cap{margin:9px 0 0;font-size:15px;line-height:1.6;white-space:pre-wrap}.cap .who{font-size:13px;font-weight:600;margin-right:7px}.ph-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-bottom:12px}.ph-wrap{position:relative}.ph-wrap .ph{border-radius:8px}.ph-x{position:absolute;top:-5px;right:-5px;width:21px;height:21px;border-radius:50%;background:var(--text);color:var(--bg);font-size:14px;line-height:21px}.ph-add{aspect-ratio:1;border-radius:8px;background:var(--bg-sunken);color:var(--text-faint);font-size:22px}.cap-label{font-size:13px;font-weight:600;margin:12px 0 5px}.cap-in{width:100%;border:none;border-radius:10px;background:var(--bg-sunken);color:var(--text);padding:10px 12px;font-size:15px;font-family:inherit;line-height:1.6;resize:none}.cap-in::placeholder{color:var(--text-faint)}.cap-read{background:var(--bg-sunken);border-radius:10px;padding:10px 12px;font-size:15px;line-height:1.6;white-space:pre-wrap}.log-date{display:flex;align-items:center;gap:10px;margin-bottom:12px}.log-date h3{margin:0;flex:1}.log-date input[type=date]{height:34px;border:none;background:var(--bg-sunken);border-radius:8px;padding:0 10px;color:var(--text-dim);font-size:14px;font-family:inherit;width:148px}.palette-foot button.danger{background:var(--sun);color:#fff;font-weight:600}.sheet .note{margin:8px 0 0;text-align:center}.gate{display:flex;flex-direction:column;justify-content:center;height:100%;padding:0 28px calc(60px + env(safe-area-inset-bottom));max-width:480px;margin:0 auto}.gate h1{font-size:26px;font-weight:600;letter-spacing:-.02em;margin:0 0 6px}.gate-sub{font-size:15px;color:var(--text-dim);margin:0 0 22px;line-height:1.6}.gate-in{width:100%;height:50px;border:none;border-radius:12px;background:var(--bg-sunken);color:var(--text);padding:0 14px;font-size:17px;font-family:inherit;margin-bottom:10px}.gate-in.code{text-align:center;letter-spacing:.5em;text-indent:.5em;font-variant-numeric:tabular-nums}.gate-in::placeholder{color:var(--text-faint);letter-spacing:normal;text-indent:0}.gate-btn{width:100%;height:50px;border-radius:12px;background:var(--her);color:#fff;font-size:16px;font-weight:600;margin-top:4px}.gate-btn:disabled{opacity:.55}.gate-btn.ghost{background:none;color:var(--text-dim);font-weight:400;font-size:14px;height:42px}.gate .err{margin:0 0 8px}.syncbar{position:relative;z-index:30;flex:none;background:var(--sun);color:#fff;font-size:12.5px;text-align:center;padding:6px 12px}.syncbar[data-tone=off]{background:var(--text-faint)}.syncbar[data-tone=wait]{background:var(--her)}.steps{margin:0 0 18px;padding-left:20px;font-size:15px;line-height:2;color:var(--text)}.gate-sub.dimmer{color:var(--text-faint);font-size:13px}.install-hint{display:flex;align-items:center;gap:10px;flex:none;background:var(--her-soft);color:var(--her-text);font-size:12.5px;line-height:1.5;padding:9px 12px 9px 14px}.install-hint button{margin-left:auto;font-size:18px;color:var(--her-text);width:24px;flex:none}
