:root{--chrome: #aaaaaa;--bar: rgba(170, 170, 170, .8);--brush-panel: rgba(153, 153, 153, .85);--selection: rgba(0, 255, 255, .5);--strip: #e6e6e6;--ink: #1c1c1e;--muted: #8a8a8e;--line: #e5e5ea;--accent: #007aff;--heart: #ff2d55;--page-bg: #d9d4cf;color-scheme:light}*{box-sizing:border-box}html,body{margin:0;height:100%}body{background:var(--page-bg);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,Hiragino Sans,Hiragino Kaku Gothic ProN,Noto Sans JP,Helvetica Neue,sans-serif;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent;overscroll-behavior:none}#app{position:relative;max-width:640px;height:100dvh;margin:0 auto;background:#fff;display:flex;flex-direction:column;overflow:hidden}button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}button:disabled{cursor:default}img{-webkit-user-drag:none;-webkit-user-select:none;user-select:none}.topbar{flex:none;background:var(--chrome);color:#fff;padding-top:env(safe-area-inset-top)}.topbar-row{position:relative;height:52px;display:flex;align-items:center;justify-content:space-between;padding:0 4px}.topbar-title{position:absolute;left:56px;right:56px;text-align:center;font-size:19px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}.icon-button{width:48px;height:48px;display:grid;place-items:center;color:#fff;font-size:22px;border-radius:24px}.icon-button:disabled{opacity:.35}.icon-button svg{width:26px;height:26px}.search{margin:0 12px 10px;display:flex;align-items:center;gap:8px;background:#ffffffd9;border-radius:12px;padding:0 12px;color:var(--muted)}.search input{flex:1;border:0;background:none;font:inherit;font-size:16px;padding:11px 0;color:var(--ink);outline:none;min-width:0}.segments{flex:none;display:flex;margin:8px 12px;border:1px solid #8e8e93;border-radius:20px;overflow:hidden}.segments button{flex:1;padding:8px 4px;font-size:15px;border-left:1px solid #8e8e93}.segments button:first-child{border-left:0}.segments button[aria-pressed=true]{background:#e8def8;font-weight:600}.list-area{position:relative;flex:1;min-height:0;border-top:1px solid var(--line)}.list-scroll{position:absolute;inset:0;overflow-y:auto;-webkit-overflow-scrolling:touch}.row{position:absolute;left:0;right:0;height:88px;display:flex;align-items:center;gap:12px;padding:6px 16px;text-align:left;border-bottom:1px solid var(--line)}.row:active{background:#f2f2f7}.thumb{flex:none;width:64px;height:76px;border-radius:4px;background:#f0f0f0;overflow:hidden;display:grid;place-items:center}.thumb img{width:100%;height:100%;object-fit:contain}.row-text{flex:1;min-width:0}.row-meta{font-size:12px;color:var(--muted)}.row-title{font-size:17px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.row-marks{flex:none;display:flex;flex-direction:column;align-items:center;gap:6px;width:14px}.dot{width:10px;height:10px;border-radius:5px;background:var(--accent)}.heart{color:var(--heart);font-size:14px;line-height:1}.empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:32px;text-align:center;color:var(--muted)}.empty strong{color:var(--ink);font-size:18px;font-weight:500}.outline-button{border:1px solid #8e8e93;border-radius:20px;padding:8px 20px;color:#49454f}.menu{position:absolute;z-index:20;background:#fff;border-radius:10px;box-shadow:0 6px 24px #0003;padding:6px 0;min-width:160px;color:var(--ink)}.menu button{display:block;width:100%;text-align:left;padding:12px 16px;font-size:16px}.menu button:hover{background:#f2f2f7}.backdrop{position:absolute;inset:0;z-index:19}.fast-scroller{position:absolute;top:8px;bottom:8px;right:2px;width:40px;pointer-events:none}.fast-scroller-thumb{position:absolute;left:7px;width:26px;height:60px;border-radius:10px;background:var(--chrome);box-shadow:0 1px 3px #0000004d;color:#fff;font-size:11px;line-height:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:auto;touch-action:none;cursor:grab}.episode-header{flex:none;display:flex;align-items:baseline;gap:8px;padding:10px 16px;background:#fff}.episode-header .title{flex:1;font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.episode-header .date{font-size:12px;color:var(--muted)}.pager{position:relative;flex:1;min-height:0;overflow:hidden;touch-action:pan-y;background:#fff}.pager-track{position:absolute;inset:0;display:flex;will-change:transform}.pager-page{position:relative;flex:none;width:100%;height:100%;display:grid;place-items:center}.pager-page img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.bottombar{flex:none;display:flex;align-items:center;justify-content:space-between;background:var(--chrome);color:#fff;height:calc(60px + env(safe-area-inset-bottom));padding:0 4px env(safe-area-inset-bottom)}.bottombar .paint-button{font-size:24px;padding:12px 24px;color:#fff}.spinner{width:36px;height:36px;border:4px solid #e0e0e0;border-top-color:#8e8e93;border-radius:50%;animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.centered{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:var(--muted)}.paint{flex:1;min-height:0;display:flex;flex-direction:column;background:var(--chrome);padding-top:env(safe-area-inset-top)}.paint-topbar{flex:none;height:48px;display:flex;align-items:center;justify-content:space-between;padding:0 8px;background:var(--bar);position:relative}.bar-icon{width:48px;height:48px;display:grid;place-items:center}.bar-icon img{width:30px;height:30px}.bar-icon:disabled{opacity:.4}.fill-button{position:relative;width:48px;height:48px;display:grid;place-items:center}.fill-button .swatch{position:absolute;width:34px;height:34px;border-radius:4px;border:1.5px solid #fff}.fill-button img{position:relative;width:30px;height:30px}.paint-canvas{flex:1;min-height:0;width:100%;display:block;background:#555}.color-strip{flex:none;height:44px;display:flex;background:var(--strip)}.color-arrow{flex:none;width:30px;background:var(--chrome);display:grid;place-items:center}.color-arrow img{width:18px;height:18px}.color-scroll{flex:1;min-width:0;position:relative}.color-row{display:flex;gap:1px;height:100%;overflow-x:auto;scrollbar-width:none;align-items:center}.color-row::-webkit-scrollbar{display:none}.swatch-button{flex:none;width:22px;height:40px;position:relative}@media(min-width:600px){.swatch-button{width:36px}}.swatch-button.selected:before{content:"";position:absolute;top:0;left:50%;transform:translate(-50%);border-left:5px solid transparent;border-right:5px solid transparent;border-top:6px solid #fff}.swatch-button.selected img{position:absolute;inset:0;width:100%;height:100%;opacity:.6}.edge-fade{position:absolute;top:0;bottom:0;width:10px;pointer-events:none}.edge-fade.left{left:0;background:linear-gradient(to right,rgba(0,0,0,.35),transparent)}.edge-fade.right{right:0;background:linear-gradient(to left,rgba(0,0,0,.35),transparent)}.brush-bar{flex:none;display:flex;justify-content:center;background:var(--brush-panel);padding:3px 6px calc(3px + env(safe-area-inset-bottom))}.brush-bar-inner{display:flex;width:100%;max-width:600px}.brush-button{flex:1;height:44px;display:grid;place-items:center;position:relative}.brush-button.selected:before{content:"";position:absolute;width:42px;height:42px;border-radius:6px;background:var(--selection)}.brush-button img,.brush-button .micro{position:relative}.brush-button .micro{width:4px;height:4px;border-radius:2px;background:#fff}.dialog-backdrop{position:absolute;inset:0;z-index:30;background:#00000059;display:grid;place-items:center;padding:24px}.dialog{background:#fff;border-radius:24px;padding:24px;width:100%;max-width:320px}.dialog h2{margin:0 0 12px;font-size:20px;font-weight:500}.dialog p{margin:0 0 20px;color:#49454f}.dialog-actions{display:flex;justify-content:flex-end;gap:8px}.dialog-actions button{padding:10px 14px;color:#6750a4;font-weight:500;border-radius:20px}.toast{position:absolute;left:50%;bottom:140px;transform:translate(-50%);background:#323232e6;color:#fff;padding:10px 18px;border-radius:20px;z-index:40;font-size:14px;white-space:nowrap}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
