:root{--bg: #f6f6f8;--surface: #ffffff;--surface-2: #f0f0f3;--text: #1c1c1e;--text-2: #6c6c72;--text-3: #a5a5ab;--line: rgba(0, 0, 0, .08);--accent: #4f5bd5;--accent-weak: rgba(79, 91, 213, .12);--on-accent: #ffffff;--danger: #d23b3b;--backdrop: rgba(0, 0, 0, .28);--shadow: 0 8px 28px rgba(0, 0, 0, .12);--sun: #c05555;--sat: #4f6fb8;--row-h: 50px;--radius: 14px;--gutter: 16px;--safe-top: env(safe-area-inset-top, 0px);--safe-bottom: env(safe-area-inset-bottom, 0px);--ease: cubic-bezier(.2, .8, .2, 1);color-scheme:light dark}@media (prefers-color-scheme: dark){:root{--bg: #0f0f11;--surface: #1c1c1f;--surface-2: #26262a;--text: #f2f2f5;--text-2: #a0a0a8;--text-3: #66666d;--line: rgba(255, 255, 255, .09);--accent: #8c95ff;--accent-weak: rgba(140, 149, 255, .16);--on-accent: #0f0f11;--danger: #ff6b6b;--backdrop: rgba(0, 0, 0, .55);--shadow: 0 8px 28px rgba(0, 0, 0, .5);--sun: #e08585;--sat: #8aa5e6}}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;height:100%;overflow:hidden;overscroll-behavior:none;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,Hiragino Sans,Hiragino Kaku Gothic ProN,Noto Sans JP,system-ui,sans-serif;font-size:16px;line-height:1.45;-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%;touch-action:manipulation}button,input,select,textarea{font:inherit;color:inherit}button{background:none;border:0;padding:0;cursor:pointer;user-select:none;-webkit-user-select:none}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}.app{height:100%;display:flex;flex-direction:column;padding-top:var(--safe-top)}.topbar{display:flex;align-items:center;justify-content:space-between;padding:10px var(--gutter) 6px;padding-left:max(var(--gutter),env(safe-area-inset-left));padding-right:max(var(--gutter),env(safe-area-inset-right))}.month{font-size:24px;font-weight:700;letter-spacing:.01em}.topbar-actions{display:flex;align-items:center;gap:4px}.layout{flex:1;min-height:0;display:flex;flex-direction:column}.list-scroll{flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding-bottom:calc(96px + var(--safe-bottom))}.cal{padding:0 calc(var(--gutter) - 6px);border-bottom:1px solid var(--line);user-select:none;-webkit-user-select:none}.cal-weekdays{display:grid;grid-template-columns:repeat(7,1fr);text-align:center;font-size:12px;color:var(--text-2);padding:4px 0}.cal-weekdays .sun{color:var(--sun)}.cal-weekdays .sat{color:var(--sat)}.cal-viewport{position:relative;overflow:hidden;touch-action:none}.cal-viewport.animating{transition:height .3s var(--ease)}.cal-track{display:flex;width:300%;will-change:transform}.cal-pane{width:calc(100% / 3);flex:none}.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);grid-auto-rows:var(--row-h)}.cal-grid.animating{transition:transform .3s var(--ease)}.day{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding-top:4px;gap:3px;min-width:0}.day .num{width:32px;height:32px;line-height:32px;border-radius:50%;text-align:center;font-size:16px;font-variant-numeric:tabular-nums;transition:background-color .15s,color .15s}.day.outside .num{color:var(--text-3)}.day.today .num{color:var(--accent);font-weight:700}.day.selected .num{background:var(--text);color:var(--bg);font-weight:600}.day.today.selected .num{background:var(--accent);color:var(--on-accent)}.day:active .num{background:var(--surface-2)}.day.selected:active .num{opacity:.85}.dots{display:flex;gap:3px;height:6px;align-items:center}.dot{width:5px;height:5px;border-radius:50%;background:var(--accent)}.dot.vol{border-radius:1px;transform:rotate(45deg);background:var(--text-2)}.dot.skip{background:var(--text-3);opacity:.6}.day.outside .dot{opacity:.4}.more{font-style:normal;font-size:9px;line-height:1;color:var(--text-2)}.cal-grabber{display:flex;justify-content:center;width:100%;padding:6px 0 8px}.cal-grabber span{width:36px;height:4px;border-radius:2px;background:var(--line);box-shadow:inset 0 0 0 10px var(--text-3);opacity:.5}.daylist{padding:14px var(--gutter) 0}.daylist-title{font-size:15px;font-weight:600;color:var(--text-2);margin-bottom:10px;display:flex;align-items:baseline;gap:8px}.rel{font-size:12px;font-weight:600;color:var(--accent);margin-left:6px}.daylist-title .rel{margin-left:0}.cards{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.swipe-row{position:relative;border-radius:var(--radius);overflow:hidden;background:var(--surface-2)}.swipe-action{position:absolute;right:0;top:0;bottom:0;font-size:13px;font-weight:600;color:var(--text-2);white-space:pre-line;line-height:1.3}.swipe-content{position:relative;touch-action:pan-y;will-change:transform}.card{display:flex;align-items:center;gap:10px;padding:10px 12px;background:var(--surface);border-radius:var(--radius);border:1px solid var(--line)}.swipe-row .card{border-radius:inherit}.card.skipped .card-main{opacity:.45}.card-main{flex:1;min-width:0;display:flex;align-items:center;gap:12px;text-align:left}.card-text{min-width:0;display:flex;flex-direction:column;gap:2px}.card-title{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.card-sub{font-size:13px;color:var(--text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.thumb{flex:none;border-radius:6px;object-fit:cover;background:var(--surface-2)}.thumb-text{display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;color:var(--text-2)}.tag{display:inline-block;font-size:11px;font-weight:600;padding:1px 6px;border-radius:4px;margin-right:6px;margin-left:6px;background:var(--surface-2);color:var(--text-2);vertical-align:1px}.card-sub .tag{margin-left:0}.tag.vol{background:var(--accent-weak);color:var(--accent)}.pill{flex:none;min-width:56px;min-height:34px;padding:0 14px;border-radius:17px;background:var(--accent-weak);color:var(--accent);font-size:14px;font-weight:700;display:inline-flex;align-items:center;justify-content:center}.pill:active{opacity:.6}.empty{padding:28px 0;text-align:center;color:var(--text-2);display:flex;flex-direction:column;gap:8px;align-items:center}.hint{font-size:13px;color:var(--text-3)}.chip{min-height:32px;padding:0 12px;border-radius:16px;background:var(--surface-2);font-size:14px;font-weight:600;white-space:nowrap}.chip.on{background:var(--text);color:var(--bg)}.chip.round{width:40px;height:40px;padding:0;border-radius:50%}.chips{display:flex;justify-content:space-between;gap:4px;margin-top:12px}.icon-btn{min-width:40px;min-height:40px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;color:var(--text-2);font-size:20px}.icon-btn:active,.chip:active,.text-btn:active,.row:active,.link:active{opacity:.55}.text-btn{min-height:44px;padding:0 4px;color:var(--accent);font-size:16px}.text-btn.strong{font-weight:700}.link{color:var(--accent);font-size:14px;font-weight:600;padding:6px 0;margin-left:10px}.empty .link{margin-left:0}.fab{position:fixed;right:max(20px,env(safe-area-inset-right));bottom:calc(20px + var(--safe-bottom));width:58px;height:58px;border-radius:50%;background:var(--text);color:var(--bg);display:flex;align-items:center;justify-content:center;box-shadow:var(--shadow);transition:transform .15s var(--ease);z-index:10}.fab:active{transform:scale(.92)}.badge{flex:none;min-width:28px;height:22px;padding:0 5px;border-radius:6px;background:var(--surface-2);color:var(--text-2);font-size:11px;font-weight:700;display:inline-flex;align-items:center;justify-content:center}.sheet-root{position:fixed;inset:0;z-index:100;display:flex;flex-direction:column;justify-content:flex-end}.sheet-backdrop{position:absolute;inset:0;background:var(--backdrop);animation:fade-in .24s var(--ease)}.sheet{position:relative;max-height:calc(100% - var(--safe-top) - 24px);display:flex;flex-direction:column;background:var(--surface);border-radius:18px 18px 0 0;box-shadow:var(--shadow);animation:sheet-up .3s var(--ease);will-change:transform}.sheet-root.closing .sheet-backdrop{animation:fade-out .22s var(--ease) forwards}.sheet-root.closing .sheet{animation:sheet-down .22s var(--ease) forwards}.sheet-grip{display:flex;justify-content:center;padding:8px 0 0;touch-action:none}.sheet-grip span{width:36px;height:5px;border-radius:3px;background:var(--text-3);opacity:.5}.sheet-header{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:0 var(--gutter);touch-action:none}.sheet-header h2{font-size:17px;font-weight:700}.sheet-header-side.right{text-align:right}.sheet-body{overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding:8px var(--gutter) calc(24px + var(--safe-bottom))}@keyframes sheet-up{0%{transform:translate3d(0,100%,0)}}@keyframes sheet-down{to{transform:translate3d(0,100%,0)}}@keyframes fade-in{0%{opacity:0}}@keyframes fade-out{to{opacity:0}}.detail-head{display:flex;gap:14px;align-items:center;margin-bottom:16px}.detail-title{font-size:20px;font-weight:700;line-height:1.3;margin-bottom:4px;word-break:break-word}.muted{color:var(--text-2)}.small{font-size:13px}.center{text-align:center;margin-top:24px}.read-links{display:flex;flex-direction:column;gap:8px;margin-bottom:18px}.read-btn{min-height:50px;border-radius:var(--radius);background:var(--surface-2);display:flex;align-items:center;justify-content:center;gap:10px;font-weight:700}.read-btn.primary{background:var(--accent);color:var(--on-accent)}.read-btn.primary .badge{background:#ffffff38;color:inherit}.read-btn:active{opacity:.7}.info{margin:0 0 18px;border-top:1px solid var(--line)}.info>div{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--line)}.info dt{color:var(--text-2);flex:none}.info dd{margin:0;text-align:right}.memo{white-space:pre-wrap;text-align:left!important}.group{margin-bottom:18px}.group-head{display:flex;align-items:center;justify-content:space-between}.group-head h3{font-size:15px;color:var(--text-2)}.rows{display:flex;flex-direction:column;list-style:none;margin:0;padding:0;border-radius:var(--radius);background:var(--surface-2);overflow:hidden}.row{display:flex;justify-content:space-between;align-items:center;min-height:48px;padding:0 14px;width:100%;cursor:pointer}.rows>*+*{border-top:1px solid var(--line)}.danger-zone{display:flex;flex-direction:column;gap:4px;margin-top:8px}.plain-btn{min-height:46px;color:var(--accent)}.plain-btn.danger{color:var(--danger)}.form{display:contents}.field{margin-bottom:20px}.label{display:block;font-size:13px;font-weight:600;color:var(--text-2);margin-bottom:6px}input[type=text],input[type=url],input[type=number],input[type=date],input[type=time],select,textarea{width:100%;min-height:46px;padding:10px 12px;border-radius:12px;border:1px solid var(--line);background:var(--surface-2);font-size:16px;outline:none;-webkit-appearance:none;appearance:none}input[type=date],input[type=time]{display:flex;align-items:center}input:focus,select:focus,textarea:focus{border-color:var(--accent)}textarea{resize:vertical}.url-row{display:flex;align-items:center;gap:8px;margin-bottom:6px}.url-row input{flex:1;min-width:0}.segmented{display:flex;padding:3px;border-radius:12px;background:var(--surface-2)}.segmented button{flex:1;min-height:36px;border-radius:9px;font-size:14px;font-weight:600;color:var(--text-2);transition:background-color .15s}.segmented button.on{background:var(--surface);color:var(--text);box-shadow:0 1px 3px #0000001f}.segmented.small{margin-top:12px}.inline{display:flex;align-items:center;gap:10px;margin-top:12px}.inline input,.inline select{width:auto;flex:none}.dates .inline{margin-top:8px}.error{color:var(--danger);font-size:14px;margin-bottom:12px}@media (min-width: 700px){:root{--row-h: 64px;--gutter: 24px}.sheet-root{justify-content:center;align-items:center}.sheet{width:min(560px,calc(100% - 48px));max-height:min(820px,calc(100% - 80px));border-radius:18px;animation:modal-in .26s var(--ease)}.sheet-root.closing .sheet{animation:modal-out .2s var(--ease) forwards}.sheet-grip{visibility:hidden;padding-top:4px}}@media (min-width: 900px) and (orientation: landscape){:root{--row-h: min(84px, calc((100vh - 160px) / 6))}.layout{flex-direction:row}.cal{width:58%;border-bottom:0;border-right:1px solid var(--line)}.cal-grabber{display:none}.list-scroll{padding-bottom:120px}}@keyframes modal-in{0%{opacity:0;transform:scale(.96)}}@keyframes modal-out{to{opacity:0;transform:scale(.96)}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:1ms!important;transition-duration:1ms!important}}.row.static{cursor:default}.text-btn.danger{color:var(--danger)}.status-line{margin-bottom:8px}.pair{margin-top:10px}.pair-actions{display:flex;gap:8px;justify-content:flex-start}.pair-box{display:flex;flex-direction:column;gap:8px;padding:14px;border-radius:var(--radius);background:var(--surface-2)}.pair-box .pair-actions{justify-content:space-between}.pair-code{font-size:34px;font-weight:700;letter-spacing:.12em;text-align:center;font-variant-numeric:tabular-nums;user-select:all;-webkit-user-select:all}.notice{padding:12px 14px;border-radius:var(--radius);background:var(--accent-weak);font-size:14px}.notice ol{margin:6px 0 0;padding-left:20px}button.read-btn{width:100%}button:disabled{opacity:.5}.switch{appearance:none;-webkit-appearance:none;width:50px;height:30px;border-radius:15px;background:var(--text-3);position:relative;transition:background-color .2s;flex:none;margin:0}.switch:after{content:"";position:absolute;top:2px;left:2px;width:26px;height:26px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #00000040;transition:transform .2s var(--ease)}.switch:checked{background:var(--accent)}.switch:checked:after{transform:translate(20px)}.cover-preview{display:flex;align-items:center;gap:10px;margin-top:8px}
