:root{--bg: #000000;--surface: #1c1c1e;--surface2: #2c2c2e;--surface3: #3a3a3c;--text: #f5f5f7;--muted: #8e8e93;--muted2: #636366;--accent: #5eead4;--accent-ink: #042f2e;--danger: #ff453a;--ok: #30d158;--hair: rgba(255,255,255,.08);--safe-top: 54px;--safe-bot: 34px;--font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", system-ui, sans-serif}*{box-sizing:border-box;margin:0;padding:0}html,body{width:100%;background:var(--bg);color:var(--text);font-family:var(--font);-webkit-font-smoothing:antialiased;letter-spacing:-.01em}.num{font-variant-numeric:tabular-nums}svg{display:block}.sb{position:absolute;left:0;top:0;width:390px;height:54px;z-index:50;display:flex;align-items:flex-end;justify-content:space-between;padding:0 28px 10px 32px;pointer-events:none;color:var(--text)}.sb .t{font-size:15px;font-weight:600;width:54px}.sb .r{display:flex;gap:6px;align-items:center}.hi{position:absolute;left:128px;bottom:8px;width:134px;height:5px;border-radius:3px;background:#fff;z-index:60}.page{background:var(--bg)}.nav .title{font-size:17px;font-weight:600;letter-spacing:-.02em}.nav .large{font-size:28px;font-weight:700;letter-spacing:-.03em}.icon{width:44px;height:44px;border-radius:22px;display:flex;align-items:center;justify-content:center;color:var(--accent);background:transparent;flex-shrink:0}.icon.gear{color:var(--muted)}.icon.plus{background:var(--surface2);color:var(--accent);font-size:22px;font-weight:400}.mini{height:56px;border-radius:14px;background:var(--surface2);border:1px solid var(--hair);display:flex;align-items:center;gap:12px;padding:0 12px 0 10px;z-index:30;box-shadow:0 -8px 24px #00000073}.mini .art{width:40px;height:40px;border-radius:8px;background:linear-gradient(145deg,#134e4a,#042f2e);display:flex;align-items:center;justify-content:center;color:var(--accent);font-size:14px;font-weight:700;flex-shrink:0}.mini .meta{flex:1;min-width:0}.mini .meta .t{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mini .meta .s{font-size:12px;color:var(--muted);margin-top:1px}.mini .play{width:44px;height:44px;border-radius:22px;display:flex;align-items:center;justify-content:center;color:var(--text);flex-shrink:0}.hero{background:var(--surface);border-radius:18px;padding:16px;border:1px solid var(--hair);margin-bottom:20px;display:flex;gap:14px;align-items:stretch}.hero .art{width:88px;height:88px;border-radius:12px;flex-shrink:0;background:linear-gradient(145deg,#0f766e,#042f2e);display:flex;align-items:center;justify-content:center;color:var(--accent);font-size:28px;font-weight:700}.hero .body{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center;gap:4px}.hero .kicker{font-size:12px;font-weight:600;color:var(--accent);text-transform:uppercase;letter-spacing:.04em}.hero .ht{font-size:17px;font-weight:650;letter-spacing:-.02em;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.hero .hm{font-size:13px;color:var(--muted)}.hero .row{display:flex;align-items:center;justify-content:space-between;margin-top:8px;gap:8px}.play-lg{width:56px;height:56px;border-radius:28px;flex-shrink:0;background:var(--accent);color:var(--accent-ink);display:flex;align-items:center;justify-content:center;align-self:center}.sec-h{display:flex;align-items:baseline;justify-content:space-between;margin:4px 0 10px}.sec-h h2{font-size:20px;font-weight:700;letter-spacing:-.02em}.sec-h .link{font-size:15px;font-weight:500;color:var(--accent)}.queue-row{display:flex;align-items:center;gap:12px;background:var(--surface);border-radius:14px;padding:12px;border:1px solid var(--hair);margin-bottom:8px;min-height:64px}.queue-row .handle{color:var(--muted2);width:20px;flex-shrink:0}.queue-row .qart{width:44px;height:44px;border-radius:8px;flex-shrink:0;background:var(--surface2);display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:12px;font-weight:700}.queue-row .qbody{flex:1;min-width:0}.queue-row .qt{font-size:15px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.queue-row .qm{font-size:12px;color:var(--muted);margin-top:2px}.seg{display:flex;background:var(--surface2);border-radius:9px;padding:2px;height:32px;margin-bottom:12px}.seg span{flex:1;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600;padding:0 2px;white-space:nowrap;color:var(--muted);border-radius:7px}.seg span.on{background:var(--surface3);color:var(--text);box-shadow:0 1px 2px #0000004d}.lib-row{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--hair);min-height:64px}.lib-row:last-child{border-bottom:none}.ring{width:36px;height:36px;flex-shrink:0;position:relative}.ring svg{width:36px;height:36px;transform:rotate(-90deg)}.ring .pct{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:9px;font-weight:700;color:var(--accent)}.lib-row .lbody{flex:1;min-width:0}.lib-row .lt{font-size:15px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lib-row .lm{font-size:12px;color:var(--muted);margin-top:2px;display:flex;align-items:center;gap:6px}.off-icon{width:16px;height:16px;color:var(--muted);flex-shrink:0}.off-icon.ok{color:var(--ok)}.off-icon.dl{color:var(--accent)}.banner{background:#3a2a00;color:#ffd60a;border-radius:12px;padding:10px 14px;font-size:13px;font-weight:500;margin-bottom:14px;display:flex;align-items:center;gap:8px}.np-top{display:flex;align-items:center;justify-content:space-between;height:48px;margin-top:8px}.np-top .chev{color:var(--muted);width:44px;height:44px;display:flex;align-items:center;justify-content:center}.np-art{width:180px;height:180px;border-radius:20px;margin:8px auto 20px;background:linear-gradient(145deg,#0f766e,#042f2e);box-shadow:0 20px 40px #00000080;display:flex;align-items:center;justify-content:center;color:var(--accent);font-size:56px;font-weight:700}.np-title{font-size:22px;font-weight:700;letter-spacing:-.025em;text-align:center;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-width:340px;margin:0 auto}.np-ch{font-size:15px;color:var(--muted);text-align:center;margin-top:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:340px;margin-left:auto;margin-right:auto}.scrub{margin:20px 4px 0}.scrub .track{position:relative;height:6px;border-radius:3px;background:var(--surface3)}.scrub .fill{position:absolute;left:0;top:0;bottom:0;width:38%;border-radius:3px;background:var(--text)}.scrub .knob{position:absolute;top:50%;left:38%;width:14px;height:14px;border-radius:7px;background:var(--text);transform:translate(-50%,-50%)}.scrub .ticks{position:absolute;inset:0}.scrub .tick{position:absolute;top:-3px;width:2px;height:12px;background:var(--muted2);border-radius:1px;transform:translate(-50%)}.scrub .times{display:flex;justify-content:space-between;margin-top:8px;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}.transport{display:flex;align-items:center;justify-content:center;gap:24px;margin-top:18px}.tbtn{width:72px;height:72px;border-radius:36px;display:flex;align-items:center;justify-content:center;color:var(--text);font-size:18px;font-weight:600}.tbtn.play{width:96px;height:96px;border-radius:48px;background:var(--text);color:var(--bg)}.chap-row{display:flex;justify-content:center;gap:10px;margin-top:16px;padding:0 4px}.chap-row .cpill{flex:1;max-width:170px;height:56px;border-radius:28px;background:var(--surface2);border:1px solid var(--hair);display:flex;align-items:center;justify-content:center;gap:8px;color:var(--text);font-size:17px;font-weight:600;letter-spacing:-.02em;padding:0 14px}.chap-row .cpill svg{flex-shrink:0}.tbtn.skip svg{width:44px;height:44px}.low-row{position:relative;left:0;right:0;margin-top:20px;display:flex;justify-content:space-between;align-items:center;padding:0 4px}.low-row .pill{height:36px;padding:0 14px;border-radius:18px;background:var(--surface2);color:var(--text);display:flex;align-items:center;font-size:14px;font-weight:600;min-width:64px;justify-content:center}.low-row .ghost{height:44px;padding:0 12px;color:var(--muted);display:flex;align-items:center;gap:6px;font-size:14px;font-weight:600}.sheet-bg{position:absolute;inset:0;background:#0000008c;z-index:40}.sheet{position:absolute;left:0;right:0;bottom:0;z-index:45;background:var(--surface);border-radius:16px 16px 0 0;padding:10px 16px calc(var(--safe-bot) + 16px);max-height:78%;overflow:hidden}.sheet .grab{width:36px;height:5px;border-radius:3px;background:var(--surface3);margin:4px auto 14px}.sheet h3{font-size:17px;font-weight:650;text-align:center;margin-bottom:14px}.ch-item{display:flex;align-items:center;gap:12px;padding:14px 8px;border-bottom:1px solid var(--hair);min-height:56px}.ch-item.done{opacity:.45}.ch-item.cur{background:#5eead414;border-radius:10px;border-bottom-color:transparent}.ch-item .n{width:28px;font-size:13px;font-weight:600;color:var(--muted);text-align:center}.ch-item.cur .n{color:var(--accent)}.ch-item .ct{flex:1;font-size:15px;font-weight:500;line-height:1.3}.ch-item .cd{font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums}.field{background:var(--surface2);border-radius:12px;padding:14px;margin-bottom:12px;border:1px solid var(--hair)}.field label{display:block;font-size:12px;font-weight:600;color:var(--muted);margin-bottom:6px}.field .val{font-size:16px;font-weight:500;color:var(--text)}.field .ph{color:var(--muted2)}.btn{height:52px;border-radius:14px;background:var(--accent);color:var(--accent-ink);font-size:17px;font-weight:700;display:flex;align-items:center;justify-content:center;letter-spacing:-.01em}.btn.secondary{background:var(--surface2);color:var(--text);border:1px solid var(--hair);font-weight:600;margin-top:10px}.status-row{display:flex;align-items:center;gap:12px;padding:14px;background:var(--surface2);border-radius:12px;margin-top:14px}.status-row .spin{width:22px;height:22px;border:2px solid var(--surface3);border-top-color:var(--accent);border-radius:50%}.status-row .st{font-size:14px;font-weight:600}.status-row .ss{font-size:12px;color:var(--muted);margin-top:2px}.empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:48px 24px;height:100%}.empty p{font-size:17px;color:var(--muted);line-height:1.4;max-width:280px;margin-bottom:24px}.empty .tip{font-size:13px;color:var(--muted2);margin-top:20px;line-height:1.4;max-width:260px}.caught{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:60px 24px}.caught h2{font-size:22px;font-weight:700;margin-bottom:8px}.caught p{font-size:15px;color:var(--muted)}.queue-swipe{position:relative;overflow:hidden;margin:0 -16px;touch-action:pan-y}.queue-actions{position:absolute;inset:0 0 0 auto;width:88px;display:flex;align-items:stretch;justify-content:flex-end;z-index:0;opacity:0;pointer-events:none}.queue-swipe.open .queue-actions,.queue-swipe.swiping .queue-actions{opacity:1;pointer-events:auto}.queue-remove-btn{width:88px;background:var(--danger);color:#fff;font-size:14px;font-weight:600;display:flex;align-items:center;justify-content:center}.queue-swipe .queue-row{position:relative;z-index:1;background:var(--bg);margin:0;padding-left:16px;padding-right:16px;transition:transform .18s ease;will-change:transform}.queue-swipe.swiping .queue-row{transition:none}.queue-swipe.open .queue-row{transform:translate(-88px)}html{height:100%;height:100dvh;height:-webkit-fill-available}html,body,#app{width:100%;max-width:480px;height:100%;height:100dvh;height:-webkit-fill-available;margin:0 auto;overflow:hidden;position:relative;background:var(--bg);--safe-top: env(safe-area-inset-top, 0px);--safe-bot: env(safe-area-inset-bottom, 0px)}body{min-height:0}#app{display:flex;flex-direction:column;min-height:0}.page{position:relative;display:flex;flex-direction:column;flex:1 1 0;height:100%;min-height:0;overflow:hidden;box-sizing:border-box}.nav{position:relative;z-index:20;flex:0 0 auto;width:100%;max-width:480px;margin:0;background:var(--bg);height:auto;min-height:52px;padding-top:env(safe-area-inset-top,0px);padding-left:16px;padding-right:16px;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between}.content{position:relative;flex:1 1 0;min-height:0;width:100%;inset:auto;padding:8px 16px;padding-bottom:calc(16px + env(safe-area-inset-bottom,0px));overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}.content.np{position:fixed;inset:0;z-index:35;padding:calc(env(safe-area-inset-top,0px) + 8px) 20px calc(env(safe-area-inset-bottom,0px) + 8px);background:var(--bg);overflow:hidden}#mini-host{flex:0 0 auto;min-height:0;width:100%;max-width:480px;position:relative;z-index:30}.mini{position:relative;left:auto;right:auto;bottom:auto;width:auto;max-width:none;margin:0 8px calc(env(safe-area-inset-bottom,0px) + 4px)}.sheet-overlay{position:fixed;inset:0;z-index:50}.sheet-bg{position:absolute;inset:0;background:#0000008c}.sheet{position:absolute;left:0;right:0;bottom:0;z-index:51;max-width:480px;margin:0 auto;max-height:min(85vh,calc(100dvh - env(safe-area-inset-top,0px) - 12px));overflow:auto;padding-bottom:env(safe-area-inset-bottom,0px);background:var(--surface);border-radius:16px 16px 0 0}.menu.portal-menu,.portal-menu{position:fixed;z-index:60;right:auto;top:auto}.sb,.hi{display:none}button{font:inherit;border:none;background:transparent;color:inherit;cursor:pointer}.hidden{display:none!important}.error{color:var(--danger);font-size:13px;margin-top:8px}.hint{color:var(--muted);font-size:13px;line-height:1.4}.pair-code{font-size:28px;font-weight:700;letter-spacing:.12em;font-variant-numeric:tabular-nums;text-align:center;padding:12px}.lib-overflow{position:relative;flex-shrink:0}.menu{min-width:180px;background:var(--surface2);border:1px solid var(--hair);border-radius:12px;padding:6px;box-shadow:0 8px 24px #00000059}.menu button{display:block;width:100%;text-align:left;padding:12px 14px;border-radius:8px;font-size:15px;font-weight:500}.menu button:hover{background:#ffffff0f}.card{background:var(--surface);border-radius:14px;padding:16px;border:1px solid var(--hair);margin-bottom:12px}.field input,.field textarea{width:100%;background:transparent;border:none;color:var(--text);font-size:16px;font-weight:500;outline:none}.job-badge{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;padding:2px 8px;border-radius:6px;background:var(--surface2);color:var(--muted)}.job-badge.queued{color:var(--muted)}.job-badge.generating{color:var(--accent)}.job-badge.ready{color:var(--ok)}.job-badge.failed{color:var(--danger)}.toggle-row{display:flex;align-items:center;justify-content:space-between;padding:14px 0;border-bottom:1px solid var(--hair)}.toggle{width:51px;height:31px;border-radius:16px;background:var(--surface3);position:relative;transition:background .15s}.toggle.on{background:var(--accent)}.toggle:after{content:"";position:absolute;top:2px;left:2px;width:27px;height:27px;border-radius:14px;background:#fff;transition:transform .15s}.toggle.on:after{transform:translate(20px)}
