:root{font-family:Hiragino Kaku Gothic ProN,Yu Gothic,Meiryo,system-ui,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;color:#26392e;background:#f5f3ed;font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,summary,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;touch-action:manipulation}button{color:inherit}button:disabled{cursor:not-allowed;opacity:.42}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible,select:focus-visible{outline:3px solid #779e34;outline-offset:4px}a{color:inherit}button svg{flex-shrink:0}button{border:0;background:none}input{min-width:0;color:inherit}input[type=number]{appearance:textfield;-moz-appearance:textfield}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{appearance:none;margin:0}input[type=checkbox],input[type=range]{accent-color:#6a8339}input[type=checkbox]{width:20px;height:20px;flex-shrink:0}input[type=range]{height:32px;width:100%}.app{--bg:#f5f3ed;--card:#fffefa;--text:#26392e;--muted:#788175;--border:#e4e7db;--pale:#eff3e7;--lime:#d7ee86;--dark:#293b30;background:var(--bg);color:var(--text);min-height:100dvh;padding:env(safe-area-inset-top) 0 calc(130px + env(safe-area-inset-bottom));transition:background .2s}.app[data-theme=dark]{--bg:#171e1a;--card:#202b24;--text:#ecf1e5;--muted:#adb7a5;--border:#364239;--pale:#2b382d;--lime:#d7ee86;--dark:#d7ee86;color-scheme:dark}.shell{max-width:488px;margin:auto;padding:0 20px}.header{display:flex;justify-content:space-between;align-items:center;padding:26px 0 18px;gap:10px}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-size:21px;font-weight:850;letter-spacing:-1px;white-space:nowrap}.brand>span:last-child{line-height:1.15}.brand small{display:block;font-size:9px;letter-spacing:2.6px;font-weight:550;margin-top:5px}.brand-mark{display:flex;align-items:flex-end;justify-content:center;gap:4px;width:38px;height:38px;border-radius:12px;background:var(--lime);padding:10px 8px;transform:rotate(-6deg)}.brand-mark i{width:5px;background:#293b30;border-radius:3px;height:12px}.brand-mark i:nth-child(2){height:20px}.brand-mark i:nth-child(3){height:16px}.header-actions{display:flex;align-items:center;gap:5px}.icon-button{display:grid;place-items:center;width:44px;height:44px}.help-button{display:flex;align-items:center;gap:6px;font-size:11px;min-height:44px;padding:0 4px}.help-button span{border:1px solid var(--muted);width:16px;height:16px;border-radius:50%;font-size:11px;display:grid;place-items:center}.intro{padding:16px 0 24px}.eyebrow{display:flex;align-items:center;gap:7px;font-size:9px;letter-spacing:2px;font-weight:650;color:var(--muted)}.eyebrow>span{height:6px;width:6px;background:#92ac45;border-radius:50%}h1{font-size:27px;letter-spacing:1.1px;margin:11px 0 9px;line-height:1.5;font-weight:800}.intro p{margin:0;color:var(--muted);font-size:12px;letter-spacing:.4px}.card{background:var(--card);border:1px solid var(--border);border-radius:20px;margin-bottom:16px;padding:19px;box-shadow:0 3px 1px #26392e02}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:16px}.section-heading h2{font-size:14px;margin:0;display:flex;align-items:center;gap:9px;white-space:nowrap}.step{font-size:10px;letter-spacing:.5px;font-weight:650;color:var(--muted)}.service-badges{display:flex;gap:4px}.service-badges b{font-size:9px;border:1px solid var(--border);font-weight:500;padding:4px 6px;border-radius:5px;white-space:nowrap}.url-input{height:48px;display:flex;align-items:center;gap:9px;background:var(--bg);border:1px solid var(--border);border-radius:11px;padding-left:12px}.url-input>svg{color:var(--muted);flex-shrink:0}.url-input input{width:100%;background:none;border:0;outline:none!important;height:44px;font-size:16px;letter-spacing:-.4px}.url-input input::placeholder{font-size:12px;letter-spacing:0;color:var(--muted)}.url-input button{flex-shrink:0;width:44px;height:44px;display:grid;place-items:center}.consent{display:flex;align-items:center;gap:8px;font-size:10px;line-height:1.6;margin:9px 0}.consent .text-button{font-size:10px;padding:4px 0;min-height:30px;text-decoration:underline}.video-space{margin-top:14px;background:var(--pale);border-radius:12px;overflow:hidden}.player-host{height:230px;width:100%;min-height:200px;background:#111}.player-host iframe{border:0;width:100%;height:100%;display:block}.empty-video{height:200px;display:flex;align-items:center;justify-content:center;flex-direction:column;background:radial-gradient(ellipse at 50% 15%,#dfe8ca55,transparent 65%)}.empty-beats{display:flex;align-items:center;gap:5px;height:46px;margin-bottom:13px;transform:rotate(-7deg)}.empty-beats i{width:7px;height:16px;border-radius:8px;background:#98ad71}.empty-beats i:nth-child(2),.empty-beats i:nth-child(6){height:28px;background:#acc184}.empty-beats i:nth-child(3),.empty-beats i:nth-child(5){height:37px}.empty-beats i:nth-child(4){height:49px;background:#617b43}.empty-video strong{font-size:14px;letter-spacing:1px;margin-bottom:7px}.empty-video>span{font-size:11px;color:var(--muted)}.empty-video small{font-size:9px;color:var(--muted);margin-top:18px}.video-meta{display:flex;align-items:center;gap:6px;margin-top:12px;font-size:10px;color:var(--muted);min-height:20px}.status-dot{height:5px;width:5px;border-radius:100%;background:var(--muted)}.status-dot.live{background:#72a34b}.video-meta time{font-variant-numeric:tabular-nums;margin-left:3px}.video-meta a{margin-left:auto;text-decoration:none;padding:6px 0}.video-caption{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:var(--muted)}.inline-note{font-size:11px;line-height:1.8;background:var(--pale);border-radius:8px;padding:10px;margin:8px 0 0}.text-button{font-size:11px;min-height:44px;padding:8px 2px;text-underline-offset:3px}.listen{display:flex;gap:5px;align-items:center;white-space:nowrap}.tempo-card .section-heading{margin-bottom:1px}.tempo-control{display:flex;justify-content:center;align-items:center;gap:35px;padding:3px 0}.stepper{height:44px;width:44px;border:1px solid var(--border);border-radius:50%;font-size:23px;font-weight:400;background:var(--card)}.bpm-input{display:flex;flex-direction:column;align-items:center}.bpm-input input{width:137px;padding:0;text-align:center;border:none;background:none;font-size:64px;font-family:Arial,sans-serif;font-weight:550;line-height:1.15;letter-spacing:-4px;height:75px}.bpm-input span{font-size:10px;letter-spacing:2px;color:var(--muted);margin-top:1px}.half-double{display:flex;align-items:center;justify-content:center;gap:22px;padding:6px 0 12px}.half-double>span{font-size:10px;color:var(--muted)}.half-double button{font-size:14px;min-height:44px}.half-double button span{font-size:10px;margin-left:4px;color:var(--muted)}.tap-button{display:flex;align-items:center;gap:12px;position:relative;width:100%;background:var(--pale);border:1px solid var(--border);border-radius:13px;padding:16px;min-height:78px;text-align:left;-webkit-user-select:none;user-select:none;transition:transform .1s,background .1s}.tap-button:active{background:var(--lime);color:#293b30;transform:scale(.985)}.tap-button strong{display:block;font-size:13px;margin-bottom:5px}.tap-button small{font-size:10px;color:var(--muted)}.tap-dots{margin-left:auto;display:grid;grid-template-columns:repeat(2,5px);gap:5px}.tap-dots i{height:5px;width:5px;background:var(--border);border-radius:50%}.tap-dots i.filled{background:#809b44}.count-settings{display:flex;align-items:center;justify-content:space-between;margin-top:17px;margin-bottom:17px;gap:10px}.count-settings>span{font-size:12px;font-weight:600}.segmented{background:var(--bg);padding:4px;border-radius:11px;display:flex;gap:4px}.segmented button{min-width:95px;min-height:44px;font-size:18px;border-radius:8px;font-weight:700}.segmented small{font-size:9px;margin-left:5px;font-weight:500}.segmented .selected{color:#293b30;background:var(--lime);box-shadow:0 2px 3px #26392e08}summary{cursor:pointer;list-style:none;min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:8px}summary::-webkit-details-marker{display:none}.settings-details{border-top:1px solid var(--border);margin-bottom:-8px}.settings-details summary{font-size:11px}.settings-details summary>span:last-child{font-size:10px;color:var(--muted);white-space:nowrap}.settings-details b{margin-left:10px;font-size:15px;font-weight:400}details[open]>summary b{transform:rotate(45deg);display:inline-block}.details-content{padding:8px 0 12px}.details-content p{font-size:12px;line-height:1.8}.fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0}.number-field{display:flex;flex-direction:column;gap:8px;font-size:10px;color:var(--muted)}.number-field input{background:var(--bg);border:1px solid var(--border);border-radius:8px;height:44px;width:100%;padding:10px;font-size:16px}.secondary{border:1px solid var(--border);border-radius:8px;min-height:44px;font-size:11px;background:var(--pale);padding:8px}.full{width:100%}.nudge{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.nudge button{min-height:44px;border:1px solid var(--border);border-radius:8px;font-size:11px}.volume-label{font-size:11px;display:flex;flex-wrap:wrap;justify-content:space-between;margin:18px 0}.volume-label>span{color:var(--muted)}.hint{font-size:10px!important;color:var(--muted);line-height:1.8}.danger{color:#aa6157}.count-display{background:#293b30;border-radius:17px;padding:19px 22px;display:flex;align-items:center;justify-content:space-between;color:#f2f4e9;gap:10px}.count-display .eyebrow{color:#b4c59a;font-size:8px;letter-spacing:1.6px}.count-display strong{font-size:14px;display:block;margin:8px 0 7px}.count-display small{font-size:10px;color:#b8c1b5}.big-count{font-size:55px;font-family:Arial,sans-serif;line-height:1;color:#d7ee86;font-weight:700;min-width:45px;text-align:center}.count-glyph{font-size:42px;display:block;transform:rotate(10deg);opacity:.8}.count-display.active{outline:2px solid #b5d664;outline-offset:2px}.feedback{font-size:12px;line-height:1.8;margin:12px 0;background:var(--pale);border:1px solid var(--border);border-radius:12px;padding:12px}.feedback.warning{background:#f5e9d7;color:#775628;border-color:#e7d3b4}.extra-card{margin-top:14px;padding:0 15px;border:1px solid var(--border);border-radius:13px}.extra-card summary{font-size:12px;min-height:53px}.extra-card summary>span:first-child{display:flex;align-items:center;gap:9px}.extra-card summary>span:last-child{color:var(--muted)}.toggle-label{display:flex;align-items:center;justify-content:space-between;min-height:48px;font-size:12px}.toggle-label select{font-size:16px;min-height:44px;border:1px solid var(--border);padding:6px 10px;background:var(--card);color:var(--text);border-radius:8px}.coming{font-size:9px;border:1px solid var(--border);padding:3px 7px;border-radius:5px}.saved{font-size:10px;text-align:center;color:var(--muted);margin:21px 0}.saved span{color:#779b40}footer{border-top:1px solid var(--border);padding:13px 0;display:flex;justify-content:space-between;flex-wrap:wrap;align-items:center;color:var(--muted)}footer>span{font-size:12px;font-weight:650}footer small{font-size:9px;font-weight:400;margin-left:6px}footer .text-button{font-size:9px}footer p{width:100%;font-size:9px;letter-spacing:.1px;margin:0 0 8px}footer a{font-size:10px}.action-bar{position:fixed;bottom:0;left:0;right:0;background:var(--card);border-top:1px solid var(--border);padding:13px 20px calc(9px + env(safe-area-inset-bottom));z-index:5;box-shadow:0 -6px 25px #00000004}.action-inner{max-width:448px;display:flex;gap:10px;margin:auto}.start-button{background:var(--lime);color:#26392e;border-radius:13px;min-height:58px;display:flex;align-items:center;justify-content:center;gap:10px;font-size:14px;font-weight:700;flex:1;padding:8px 10px;box-shadow:0 3px #a9be6c}.start-button:active{transform:translateY(2px);box-shadow:none}.start-button:disabled{opacity:1;background:var(--pale);color:var(--muted);box-shadow:0 3px 0 var(--border)}.stop-button{width:61px;border:1px solid var(--border);border-radius:13px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}.stop-button small{font-size:9px}.action-bar>p{text-align:center;font-size:8px;color:var(--muted);margin:10px 0 0}.notice{background:var(--card);border:1px solid var(--border);border-radius:14px;padding:18px;margin-bottom:16px;font-size:12px;line-height:1.9}.notice h2{font-size:15px}.notice ol{padding-left:20px}.privacy{margin-top:10px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.lab-buttons{display:flex;gap:8px;flex-wrap:wrap}.lab button{padding:12px;border:1px solid #ccc;border-radius:6px;margin:4px 0;background:#f3f5ec}.lab input{padding:8px;font-size:16px}.lab iframe{width:100%;height:100%;border:0}@media(max-width:370px){.shell{padding:0 12px}.card{padding:15px}.tempo-control{gap:24px}.segmented button{min-width:81px}.service-badges{gap:2px}.service-badges b{font-size:8px;padding:4px}.header{gap:4px}.brand{font-size:19px}.header-actions{gap:0}.help-button{font-size:10px}.start-button{font-size:12px}.intro h1{font-size:25px}.player-host{height:210px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important}}dialog.privacy{position:fixed;inset:0;width:calc(100% - 32px);max-width:440px;max-height:80dvh;margin:auto;padding:24px;color:var(--text);overflow:auto}dialog.privacy::backdrop{background:#17251bd9}.tap-workflow{display:flex;gap:10px;align-items:center;margin:10px 0}.tap-workflow .secondary{flex:1;background:var(--lime);color:#26392e;font-weight:600}.saved-list{list-style:none;padding:0;margin:0;max-height:300px;overflow:auto}.saved-list li+li{border-top:1px solid var(--border)}.saved-list button{display:flex;flex-direction:column;text-align:left;gap:6px;width:100%;padding:13px 2px;min-height:56px;overflow-wrap:anywhere}.saved-list strong{font-size:12px}.saved-list span{font-size:11px;color:var(--muted)}.video-card+.extra-card{margin-top:0;margin-bottom:16px}.saved .text-button{margin-left:8px}.toggle-label{gap:12px}.search-shortcut{font-size:11px;text-underline-offset:3px;white-space:nowrap}.video-card>.section-heading{flex-wrap:wrap;gap:8px}#video-search{scroll-margin-top:24px}.viewport-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 0}.viewport-toolbar>span{font-size:10px;color:var(--muted)}.video-viewport.expanded,.video-viewport:fullscreen{position:fixed;inset:0;z-index:100;width:100%;height:100dvh;padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));background:#101010;color:#fff;display:flex;flex-direction:column;box-sizing:border-box}.video-viewport.expanded .video-space,.video-viewport:fullscreen .video-space{flex:1;min-height:0;aspect-ratio:auto;display:flex;align-items:center;justify-content:center;background:#000}.video-viewport.expanded .player-host,.video-viewport:fullscreen .player-host{width:100%;height:100%;min-height:200px}.video-viewport.expanded .viewport-toolbar,.video-viewport:fullscreen .viewport-toolbar{flex-shrink:0}.video-viewport.expanded .viewport-toolbar button,.video-viewport:fullscreen .viewport-toolbar button{color:#fff}.video-viewport.expanded .hint,.video-viewport.expanded .viewport-toolbar>span{color:#ddd}.saved-list .number-field{margin:6px 10px 12px}.saved-list strong{overflow-wrap:anywhere}@media(orientation:landscape){.shell{max-width:960px}}.search-links{display:flex;flex-wrap:wrap;gap:4px 12px}.video-viewport.expanded .viewport-toolbar,.video-viewport:fullscreen .viewport-toolbar{justify-content:flex-start;margin-top:auto;gap:8px;min-height:42px}.viewport-controls{display:flex;gap:6px;flex-shrink:0}.viewport-controls button{font-size:12px;padding:8px 10px;border:1px solid #777;border-radius:6px;background:#222;color:#fff;min-height:36px}.video-viewport.expanded .viewport-toolbar>span{display:none}.video-viewport.expanded .viewport-toolbar>.text-button{font-size:12px}.tempo-card .tempo-control{gap:14px;padding:4px 0}.tempo-card .bpm-input{flex-direction:row;gap:6px}.tempo-card .bpm-input input{width:62px;height:40px;font-size:24px;letter-spacing:0;line-height:1.2}.tempo-card .bpm-input span{font-size:10px;letter-spacing:.5px}.tempo-card .stepper{width:40px;height:40px;font-size:18px}.compact-count{margin-block:8px}.compact-count>span{font-size:11px}.compact-count .segmented{padding:2px;gap:2px}.compact-count .segmented button{min-width:64px;min-height:40px;font-size:13px}.compact-count .segmented small{font-size:9px}.timing-adjustment{margin-top:14px;border-top:1px solid var(--border);padding-top:14px}.intro{padding-block:12px}
