:root{--bg: #14121a;--bg2: #1d1a25;--bg3: #282433;--line: #3a3447;--fg: #f3f0f7;--muted: #a49cb3;--accent: #ff5fa2;--accent2: #ffd166;--ok: #4cd4a0;--warn: #ffb347;--danger: #ff6b6b;--radius: 12px;--topbar-h: 52px;color-scheme:dark}*{box-sizing:border-box}html,body{margin:0;background:var(--bg);color:var(--fg)}body{font-family:system-ui,-apple-system,Hiragino Sans,Noto Sans JP,Yu Gothic UI,sans-serif;font-size:15px;line-height:1.55;-webkit-text-size-adjust:100%;overflow-x:hidden}h1,h2,h3{margin:0 0 .5em;line-height:1.3}h2{font-size:1.05rem}h3{font-size:.95rem;margin-top:1.2em}p{margin:.4em 0}a{color:var(--accent)}input,select,textarea,button{font:inherit;color:inherit}button,a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}input,select,textarea{background:var(--bg3);border:1px solid var(--line);border-radius:8px;padding:8px 10px;min-width:0;width:100%}input[type=checkbox]{width:auto}input[type=range]{padding:0;accent-color:var(--accent);background:none;border:0}input[type=file]{padding:6px}textarea{resize:vertical}input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible{outline:2px solid var(--accent);outline-offset:1px}fieldset.plain{border:0;padding:0;margin:0;min-width:0}fieldset.plain:disabled{opacity:.55}.muted{color:var(--muted)}.small{font-size:.82rem}.mono{font-variant-numeric:tabular-nums;font-family:ui-monospace,SF Mono,Menlo,Consolas,monospace}.error{color:var(--danger)}.ok{color:var(--ok)}.block{display:block}.grow{flex:1;min-width:0}.push-right{margin-left:auto}.one-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0}.hint{background:var(--bg3);border-radius:8px;padding:8px 10px}.empty{color:var(--muted);background:var(--bg2);border:1px dashed var(--line);border-radius:var(--radius);padding:16px}.danger-text{color:var(--danger)!important}.row{display:flex;align-items:center;gap:8px}.row.wrap{flex-wrap:wrap}.row.center{justify-content:center}.card{background:var(--bg2);border:1px solid var(--line);border-radius:var(--radius);padding:14px;margin:12px 0}.form{display:flex;flex-direction:column;gap:12px}.form label,.editor label{display:flex;flex-direction:column;gap:4px;font-size:.9rem}.check{display:inline-flex!important;flex-direction:row!important;align-items:center;gap:6px;font-size:.88rem;cursor:pointer}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}.input-with-btn{display:flex;gap:6px}.input-with-btn input{flex:1}.dot{width:12px;height:12px;border-radius:50%;flex-shrink:0}.badge{display:inline-block;margin-left:4px;background:var(--bg);border-radius:999px;padding:0 6px;font-size:.75rem}@media (max-width: 480px){.grid2{grid-template-columns:1fr}}.btn{display:inline-flex;align-items:center;justify-content:center;gap:4px;background:var(--bg3);border:1px solid var(--line);border-radius:999px;padding:8px 16px;cursor:pointer;text-decoration:none;white-space:nowrap;min-height:40px}.btn:hover{border-color:var(--muted)}.btn:disabled{opacity:.5;cursor:default}.btn.primary{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:600}.btn.danger{background:transparent;border-color:var(--danger);color:var(--danger)}.btn.danger-solid{background:var(--danger);border-color:var(--danger);color:#fff;font-weight:700}.btn.ghost{background:transparent;border-color:transparent;color:var(--muted)}.btn.ghost:hover{color:var(--fg)}.btn.small{padding:4px 10px;min-height:32px;font-size:.85rem}.btn.rec{background:var(--danger);border-color:var(--danger);color:#fff;font-weight:700}.btn.rec.on{background:#fff;color:var(--danger)}.link{background:none;border:0;padding:0;color:var(--fg);cursor:pointer;text-align:left;font-weight:600}.link:hover{color:var(--accent)}.link.inline{color:var(--accent);text-decoration:underline}.chip{background:var(--bg3);border:1px solid var(--line);border-radius:999px;padding:5px 12px;cursor:pointer;white-space:nowrap;min-height:34px;font-size:.88rem}.chip.small{padding:3px 9px;min-height:30px;font-size:.82rem}.chip.on{background:var(--accent);border-color:var(--accent);color:#fff}.chip.on-soft{border-color:var(--accent2);color:var(--accent2)}.chip.ghost{background:transparent;border-style:dashed;color:var(--muted)}.chip.live:not(.on){border-color:var(--accent2)}.chip.zoom{flex-shrink:0;min-height:26px;padding:1px 8px;font-size:.72rem}.chip:disabled{opacity:.45;cursor:default}.ro{opacity:.45;filter:grayscale(1)}.lock-wrap.locked{position:relative}.lock-wrap.locked:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;cursor:not-allowed}.chip-sub{display:block;font-size:.66rem;font-weight:400;opacity:.85}.home{max-width:560px;margin:0 auto;padding:24px 16px 48px}.home-head h1{font-size:1.6rem}.recent{list-style:none;margin:0;padding:0}.recent li{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 0;border-bottom:1px solid var(--line)}.recent-link{display:flex;flex-direction:column;min-width:0;text-decoration:none}.recent-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--accent)}.recent li .btn{flex:none}.first-steps{display:flex;flex-direction:column;gap:8px}.first-steps h2{margin:0}.steps{margin:0;padding-left:1.4em;display:flex;flex-direction:column;gap:6px}.steps li>*{display:block}.steps li::marker{font-weight:700;color:var(--accent)}.page-center{min-height:60vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:16px;text-align:center}.project{max-width:960px;margin:0 auto;height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden;overflow:clip}.topbar{position:relative;flex:none;z-index:20;display:flex;align-items:center;gap:8px;height:var(--topbar-h);padding:0 16px;background:#14121aeb;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.topbar .back{font-size:1.8rem;line-height:1;text-decoration:none;color:var(--muted);padding:0 4px}.topbar .title{font-size:1rem;margin:0;flex:1 1 auto;min-width:3.5em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.self-chip{flex:0 1 auto;min-width:0;max-width:14em;min-height:36px;padding:2px 12px;display:inline-flex;flex-direction:row;align-items:center;gap:4px;line-height:1.2;overflow:hidden;white-space:nowrap;background:var(--bg3);border:1px solid var(--accent);border-radius:999px;color:var(--fg);cursor:pointer;font-size:.8rem}.self-chip.viewer{border-color:var(--accent2)}.self-chip .tiny{flex:none;font-size:.68rem;color:var(--accent)}.self-chip .who{min-width:0;overflow:hidden;text-overflow:ellipsis}.self-chip .tap{flex:none;font-size:.72rem;color:var(--accent2)}.gear{flex-shrink:0;width:36px;height:36px;border-radius:50%;border:1px solid var(--line);background:var(--bg3);cursor:pointer;font-size:1.05rem}.gear.on{background:var(--accent);border-color:var(--accent);color:#fff}.stage-area{position:relative;flex:0 1 auto;min-height:0;z-index:2;overflow-y:auto;overscroll-behavior:contain;padding:0 16px 6px;background:var(--bg);box-shadow:0 8px 12px -10px #000000b3}.tabs{position:relative;flex:none;z-index:1;display:flex;gap:2px;margin-top:4px;padding:0 16px;border-bottom:1px solid var(--line);background:var(--bg)}.tabs button{flex:1 1 auto;min-width:0;min-height:46px;padding:10px 4px;background:none;border:0;border-bottom:3px solid transparent;cursor:pointer;color:var(--muted);font-size:.92rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tabs button.on{color:var(--fg);border-bottom-color:var(--accent);font-weight:600}.tabs button:focus-visible{outline-offset:-3px}.panel{flex:1 1 0;min-height:30dvh;padding:14px 16px 72px;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.panel.fit{display:flex;flex-direction:column;padding-bottom:10px;overflow-y:auto}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:8px}.panel-head h2{margin:0}.viewonly-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 10px;padding:8px 12px;border-radius:10px;font-size:.85rem;background:#ffd1661a;border:1px solid rgba(255,209,102,.4)}.player-wrap{display:grid;grid-template-columns:1fr;gap:6px}.player-wrap.compare{grid-template-columns:1fr 1fr}.player-cell{position:relative;min-width:0}.player-wrap:not(.compare) .player-cell{width:min(100%,calc(34vh * 16 / 9));margin:0 auto}.player-frame,.take-video{width:100%;aspect-ratio:16 / 9;background:#000;border-radius:10px;overflow:hidden;display:block}.player-frame{position:relative}.player-host,.player-host iframe{position:absolute;top:0;right:0;bottom:0;left:0;width:100%!important;height:100%!important;border:0}video.player-host{object-fit:contain;background:#000}.take-video{object-fit:contain}.mirrored{transform:scaleX(-1)}.player-loading{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;color:var(--muted);background:#000;pointer-events:none;font-size:.9rem}.player-fallback{width:100%;min-height:180px;padding:34px 12px 12px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:8px;text-align:center;background:var(--bg2);border:1px solid var(--line);border-radius:10px}.player-fallback p{margin:2px 0;font-size:.85rem}.stage-area.mini .player-fallback,.stage-area.compact .player-fallback{min-height:0;padding:8px;gap:4px}.stage-area.mini .player-fallback p,.stage-area.compact .player-fallback p{font-size:.75rem}.stage-area.mini .player-wrap:not(.compare) .player-cell:has(.player-fallback),.stage-area.compact .player-wrap:not(.compare) .player-cell:has(.player-fallback){width:100%}.stage-area.mini .fallback-hint,.stage-area.compact .fallback-hint{display:none}.player-error{position:absolute;inset:auto 8px 8px 8px;background:#000000b3;padding:6px 10px;border-radius:6px;color:var(--danger)}.cell-label{position:absolute;top:6px;left:6px;background:#0009;border-radius:6px;padding:1px 8px;font-size:.75rem}.close-compare{position:absolute;top:4px;right:4px;width:30px;height:30px;border-radius:50%;border:0;background:#0009;cursor:pointer}.player-tap{position:absolute;top:0;right:0;bottom:0;left:0;z-index:2;display:flex;align-items:center;justify-content:center;padding:0;border:0;background:transparent;cursor:pointer}.player-tap:not(.playing){background:#00000059}.player-tap-btn{display:flex;flex-direction:column;align-items:center;gap:4px;color:#fff;pointer-events:none}.player-tap-btn span{width:72px;height:72px;border-radius:50%;background:var(--accent);display:flex;align-items:center;justify-content:center;font-size:1.8rem;padding-left:5px;box-shadow:0 4px 14px #00000080}.player-tap-btn small{font-size:.75rem;background:#000000a6;padding:1px 10px;border-radius:999px}.video-bar{display:flex;align-items:center;gap:8px;margin-top:6px;min-width:0}.video-info{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.3}.video-info .song{font-weight:700;font-size:.85rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.video-info .vtitle{font-size:.75rem;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.video-bar .chip{flex:none}.countin{z-index:3;position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;font-size:clamp(3rem,18vw,7rem);font-weight:800;color:var(--accent2);background:#00000073;border-radius:10px;pointer-events:none}.source-switch{display:flex;gap:6px;margin-top:6px}.transport{background:var(--bg2);border:1px solid var(--line);border-radius:var(--radius);padding:8px 10px;margin-top:6px;display:flex;flex-direction:column;gap:6px}.transport.disabled{opacity:.6}.transport.settings-part{margin:0 0 14px}.transport .row{gap:6px}.transport .label{width:2.6em;flex-shrink:0}.seek-row{display:flex;align-items:center;gap:8px}.seek-row .time{font-size:.8rem;flex-shrink:0}.seek{position:relative;flex:1;min-width:0;display:flex;align-items:center}.seek input{width:100%;position:relative;z-index:1}.sec-band{position:absolute;top:50%;height:10px;transform:translateY(-50%);background:#4cd4a08c;border-radius:2px;pointer-events:none}.sec-band.alt{background:#78aaff99}.sec-band.sel{background:var(--accent2)}.ab-range{position:absolute;top:50%;height:16px;transform:translateY(-50%);background:#ffd16640;border:1px solid rgba(255,209,102,.5);border-radius:4px}.ab-range.on{background:#ffd16673}.sec-strip{display:flex;gap:2px;height:28px}.sec-seg{position:relative;flex-basis:0;min-width:34px;overflow:hidden;background:var(--bg3);border:1px solid var(--line);border-radius:6px;padding:0 4px;cursor:pointer;font-size:.75rem;color:var(--muted)}.sec-seg.sel{border-color:var(--accent2);color:var(--fg)}.sec-seg.on{color:var(--fg);font-weight:700}.sec-prog{position:absolute;inset:0 auto 0 0;background:#ffd16638}.sec-name{position:relative;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.icon-btn{width:40px;height:40px;border-radius:50%;border:1px solid var(--line);background:var(--bg3);cursor:pointer;font-size:.85rem;flex-shrink:0}.icon-btn.play{width:48px;height:48px;background:var(--accent);border-color:var(--accent);color:#fff;font-size:1.1rem}.icon-btn:disabled{opacity:.5}.count-badge{margin-left:auto;display:flex;flex-direction:column;align-items:flex-end;min-width:0}.count-badge .small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.count-badge .sec-label{max-width:13em}.count-badge .sec-rate{color:var(--accent2)}.count-badge strong{font-size:1.1rem;white-space:nowrap}.count-badge .unit{font-size:.75rem;font-weight:500;color:var(--muted);margin-left:1px}.count-badge .beat{font-size:1.35rem;color:var(--accent2)}.rates{flex-wrap:nowrap}.rates .chip{flex:1 1 0;min-width:0;padding:3px 2px;min-height:40px}.rate-slider{flex:1 1 100px;min-width:90px}.rate-note{margin:2px 0 0}.opts{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:6px}.opt{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-width:0;min-height:48px;padding:4px 6px;text-align:center;background:var(--bg3);border:1px solid var(--line);border-radius:10px;cursor:pointer}.opt-main{max-width:100%;font-size:.85rem;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.opt-sub{font-size:.68rem;line-height:1.2;color:var(--muted)}.opt.on{background:var(--accent);border-color:var(--accent);color:#fff}.opt.on .opt-sub{color:#ffffffd9}.opt:disabled{opacity:.45;border-style:dashed;cursor:not-allowed}@media (max-width: 599px){.opts{grid-template-columns:repeat(3,minmax(0,1fr))}.opts .loop-btn{grid-column:1 / -1;flex-direction:row;gap:8px;min-height:40px}.rates .chip{min-height:44px}}.reason{margin:0}.tools-row{gap:6px}.tools-row .chip{flex:1 1 0;min-width:0;min-height:40px;white-space:normal;line-height:1.2}.more{border-top:1px dashed var(--line);padding-top:8px;display:flex;flex-direction:column;gap:8px}.stage-area.compact .player-wrap:not(.compare) .player-cell{width:min(100%,calc(16vh * 16 / 9))}.stage-area.compact .ab-row,.stage-area.compact .reason,.stage-area.compact .source-switch{display:none}.stage-area.mini .player-wrap:not(.compare) .player-cell{width:min(100%,calc(22vh * 16 / 9))}.stage-area.mini .video-info .vtitle{-webkit-line-clamp:1}.stage-area.no-video .player-wrap,.stage-area.no-video .source-switch,.stage-area.mini .sec-strip,.stage-area.mini .rates-box,.stage-area.mini .opts,.stage-area.mini .tools-row,.stage-area.mini .reason,.stage-area.mini .ab-row,.stage-area.mini .more{display:none}.stage-area.mini .transport{gap:4px;padding:4px 8px;margin-top:4px}.tap-tempo{display:flex;flex-direction:column;gap:8px;padding:8px;border:1px solid var(--line);border-radius:10px;background:var(--bg)}.tap-pad{min-height:96px;border-radius:12px;border:2px dashed var(--accent2);background:#ffd16614;color:var(--fg);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;cursor:pointer;touch-action:manipulation;user-select:none;-webkit-user-select:none;transition:background .08s}.tap-pad strong{font-size:1.15rem}.tap-pad.hit{background:#ffd16659}.guide{list-style:none;padding:6px 14px;display:flex;flex-direction:column}.guide li{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--line)}.guide li:last-child{border-bottom:0}.guide .step{width:26px;height:26px;border-radius:50%;background:var(--bg3);border:1px solid var(--line);display:flex;align-items:center;justify-content:center;font-size:.85rem;font-weight:700;flex-shrink:0}.guide li.done .step{background:var(--ok);border-color:var(--ok);color:#111;font-size:0}.guide li.done .step:before{content:"✓";font-size:.9rem}.guide li.done>.grow{color:var(--muted)}.guide-actions{flex-direction:column;align-items:stretch!important}.guide-actions .btn.primary{min-height:48px;font-size:1rem}.split{border-color:var(--accent2);text-align:center;display:flex;flex-direction:column;gap:8px}.split-title{font-weight:700;margin:0}.split-btn{min-height:72px;font-size:1.3rem;font-weight:800;background:var(--accent2);border-color:var(--accent2);color:#1a1400;border-radius:16px}.split-btn:active{transform:scale(.98)}.section-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:8px}.section-row{background:var(--bg2);border:1px solid var(--line);border-radius:var(--radius);display:grid;grid-template-columns:1fr auto}.section-row.selected{border-color:var(--accent)}.section-row.playing .section-name:before{content:"▶ ";color:var(--accent2)}.section-main{background:none;border:0;text-align:left;padding:10px 12px;cursor:pointer;display:flex;flex-direction:column;gap:2px;min-width:0}.section-name{font-weight:700}.section-side{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:2px;padding:6px 8px}.section-detail{grid-column:1 / -1;padding:0 12px 12px;display:flex;flex-direction:column;gap:8px}.progress-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:4px}.bar{display:flex;width:90px;height:6px;border-radius:3px;background:var(--bg3);overflow:hidden}.bar.wide{width:100%;height:8px}.seg.learned{background:var(--ok)}.seg.practicing{background:var(--warn)}.status-pill{display:inline-block;border-radius:999px;padding:0 8px;font-size:.75rem;border:1px solid var(--line)}.status-pill.learned{background:#4cd4a02e;border-color:var(--ok);color:var(--ok)}.status-pill.practicing{background:#ffb34726;border-color:var(--warn);color:var(--warn)}.status-pill.not_yet{color:var(--muted)}.status-pill.big{font-size:.8rem;padding:6px 12px;cursor:pointer;background:var(--bg3);min-height:34px}.status-pill.big.not_yet{border-color:var(--line)}.eights{grid-column:1 / -1;display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:0}.eight{min-width:40px;min-height:36px;background:var(--bg3);border:1px solid var(--line);border-radius:8px;padding:4px 10px;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:.82rem}.eight.on{border-color:var(--accent2);color:var(--accent2)}.beats{display:flex;gap:2px}.beats i{width:5px;height:5px;border-radius:50%;background:var(--line)}.beats i.hit{background:var(--accent2)}.editor{display:flex;flex-direction:column;gap:10px}.name-chips{display:flex;flex-wrap:wrap;gap:6px}.mine-hint{margin:-4px 0 8px}.list-foot{margin-top:10px}.practicing-text{color:var(--warn)}.add-choose{display:flex;flex-direction:column;gap:8px;border-color:var(--accent2)}.add-choose p{margin:0}.add-opt{flex-direction:column;align-items:flex-start;white-space:normal;text-align:left;border-radius:12px;padding:10px 14px;min-height:56px}.field-note{font-weight:400}.editor-actions{position:sticky;bottom:-14px;z-index:2;margin:0 -14px -14px;padding:10px 14px;background:var(--bg2);border-top:1px solid var(--line);border-radius:0 0 var(--radius) var(--radius)}.comments{background:var(--bg);border-radius:10px;padding:8px 10px}.comment-list{list-style:none;padding:0;margin:4px 0 8px;display:flex;flex-direction:column;gap:8px}.comment-list li{background:var(--bg2);border:1px solid var(--line);border-radius:var(--radius);padding:8px 12px}.comment-meta{display:flex;gap:8px;align-items:baseline}.comment-body{white-space:pre-wrap;overflow-wrap:anywhere;margin:2px 0 0}.comment-form{display:flex;flex-direction:column;gap:6px}.author-input{flex:0 1 9em}.legend{display:inline-flex;gap:4px;margin-left:6px;flex-wrap:wrap}.summary{display:flex;flex-direction:column;gap:8px}.summary-total{display:flex;align-items:flex-end;justify-content:space-between;gap:8px;flex-wrap:wrap}.summary-total>div{display:flex;flex-direction:column}.big-pct{font-size:1.3rem}.member-sum{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}.member-sum li{display:grid;grid-template-columns:12px minmax(0,7em) 1fr auto;align-items:center;gap:8px;font-size:.88rem}.member-sum .self-tag{margin-left:4px}.matrix-hint .self-text{color:var(--accent)}.member-sum li.self .name{color:var(--accent);font-weight:700}.member-sum .name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.member-sum .bar{width:100%}.member-sum .nums{white-space:nowrap}.matrix-scroll{overflow-x:auto;max-width:100%;border:1px solid var(--line);border-radius:var(--radius)}.matrix{border-collapse:separate;border-spacing:0;font-size:.85rem}.matrix th,.matrix td{padding:4px;border-bottom:1px solid var(--line);text-align:center;background:var(--bg2)}.matrix thead th{vertical-align:bottom;font-weight:500;color:var(--muted)}.matrix .vname{display:inline-block;max-width:4.5em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.matrix .sticky-col{position:sticky;left:0;z-index:1;text-align:left;padding:4px 10px;max-width:8em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-right:1px solid var(--line)}.matrix th.self,.matrix td.self{background:#ff5fa221;box-shadow:inset 2px 0 0 var(--accent),inset -2px 0 0 var(--accent)}.matrix thead th.self{color:var(--accent);font-weight:700;box-shadow:inset 2px 0 0 var(--accent),inset -2px 0 0 var(--accent),inset 0 2px 0 var(--accent)}.matrix tbody tr:last-child td.self{box-shadow:inset 2px 0 0 var(--accent),inset -2px 0 0 var(--accent),inset 0 -2px 0 var(--accent)}.self-mark{display:block;font-size:.62rem}.matrix .sum{color:var(--muted);padding:4px 10px;white-space:nowrap}.cell{width:36px;height:36px;border-radius:8px;border:1px solid var(--line);background:var(--bg3);cursor:pointer;font-size:1rem}.cell.practicing{background:#ffb34738;border-color:var(--warn);color:var(--warn)}.cell.learned{background:#4cd4a040;border-color:var(--ok);color:var(--ok)}.cell.mine{border-width:2px;box-shadow:0 2px #0006}.cell.others{background:transparent;border-color:transparent;cursor:default}.panel.fit>.formation{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;gap:6px}.panel.fit>.formation>*{flex:none}.panel.fit>.formation>.board-fit{flex:1 1 auto;min-height:90px;container-type:size;display:flex;justify-content:center;align-items:flex-start}.panel.fit .board-fit>.stage-wrap{width:min(100cqw,calc((100cqh - 20px)*1.6));max-width:100%;flex:none}.stage-wrap>.board{width:100%}.board-scale{position:relative;height:18px;font-size:.66rem;color:var(--muted);font-variant-numeric:tabular-nums}.board-scale .tick{position:absolute;top:1px;transform:translate(-50%);opacity:.7}.board-scale .tick.even{opacity:1}.board-scale .tick.center{color:var(--accent);font-weight:700}.board-side{position:absolute;top:50%;z-index:3;transform:translateY(-50%);writing-mode:vertical-rl;font-size:.68rem;color:var(--muted);background:var(--bg);padding:4px 1px;border-radius:4px;pointer-events:none}.board-side.left{left:1px}.board-side.right{right:1px}.how-to{display:flex;flex-direction:column;gap:0;color:var(--muted);line-height:1.4}.how-to strong{color:var(--fg)}.formation .panel-head{margin-bottom:0}.formation .row.wrap{margin-top:10px}.chips-scroll{display:flex;gap:6px;overflow-x:auto;padding-bottom:2px;scrollbar-width:thin}.move-tools{display:flex;flex-direction:column;gap:4px;margin:0;padding:6px 10px}.board{position:relative;width:100%;aspect-ratio:16 / 10;border-radius:var(--radius);border:1px solid var(--line);background:linear-gradient(var(--line) 1px,transparent 1px) 0 0 / 100% 25%,linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px) 0 0 / calc(100% / 18) 100%,linear-gradient(90deg,var(--line) 1px,transparent 1px) 6.25% 0 / calc(100% / 9) 100%,#1a1722;overflow:hidden;touch-action:none;user-select:none;-webkit-user-select:none}.board-center{position:absolute;left:50%;top:0;bottom:0;width:0;border-left:1px dashed rgba(255,95,162,.5)}.board-label{position:absolute;left:50%;z-index:3;transform:translate(-50%);font-size:.72rem;color:var(--muted);background:var(--bg);padding:0 8px;border-radius:4px}.board-label.back{top:4px}.board-label.front{bottom:4px;color:var(--accent2)}.board-lines{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;pointer-events:none}.board-empty{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;color:var(--muted)}.token{position:absolute;transform:translate(-50%,-50%);width:40px;height:40px;border-radius:50%;border:2px solid rgba(255,255,255,.85);color:#111;font-weight:700;font-size:.68rem;line-height:1.05;display:flex;align-items:center;justify-content:center;text-align:center;cursor:grab;padding:2px;overflow:hidden;touch-action:none;box-shadow:0 2px 6px #00000080;z-index:2}.token.self{border-color:var(--accent2);box-shadow:0 0 0 3px #ffd16673,0 2px 6px #00000080;z-index:3}.token.active{cursor:grabbing;transform:translate(-50%,-50%) scale(1.15);z-index:4}.token.picked{outline:3px solid #fff;outline-offset:2px;z-index:5}.token.small{position:static;transform:none;width:34px;height:34px;cursor:pointer}.ghost-token{position:absolute;transform:translate(-50%,-50%);width:22px;height:22px;border-radius:50%;border:2px dashed;opacity:.6;pointer-events:none}.bend-handle{position:absolute;transform:translate(-50%,-50%);width:26px;height:26px;border-radius:50%;background:var(--bg);border:3px solid;cursor:grab;z-index:6;touch-action:none;box-shadow:0 0 0 4px #ffffff26}.bend-handle:after{content:"";position:absolute;top:-10px;right:-10px;bottom:-10px;left:-10px}.end-label{position:absolute;transform:translate(-50%,-190%);font-size:.68rem;font-weight:700;background:var(--bg);border:1px solid var(--line);border-radius:4px;padding:0 4px;pointer-events:none;z-index:7}.end-label.now{border-color:var(--accent2);color:var(--accent2)}.legend-box{display:flex;flex-wrap:nowrap;gap:4px 14px;overflow-x:auto;white-space:nowrap;scrollbar-width:none;font-size:.78rem;color:var(--muted)}.legend-box span{display:inline-flex;align-items:center;gap:6px}.lg-ghost{width:14px;height:14px;border-radius:50%;border:2px dashed var(--muted);display:inline-block}.lg-token{width:14px;height:14px;border-radius:50%;background:var(--accent);border:2px solid #fff;display:inline-block}.lg-line{width:22px;height:0;border-top:2px dashed var(--muted);display:inline-block}.lg-members{gap:8px!important}.lg-member{display:inline-flex;align-items:center;gap:4px;color:var(--fg)}.lg-member .dot{width:10px;height:10px}.formation-foot{display:flex;align-items:center;gap:6px;overflow-x:auto;scrollbar-width:thin;padding-bottom:2px}.formation-foot .btn{flex:none}.tray{display:inline-flex;flex:none;align-items:center;gap:4px;padding:2px 6px;border:1px dashed var(--line);border-radius:var(--radius)}@media (max-width: 480px){.token{width:32px;height:32px;font-size:.6rem}}.camera{position:relative;width:100%;max-width:480px;aspect-ratio:4 / 3;background:#000;border-radius:var(--radius);overflow:hidden;margin:8px 0}.camera video{width:100%;height:100%;object-fit:cover}.rec-dot{position:absolute;top:8px;left:8px;color:#fff;background:var(--danger);border-radius:999px;padding:1px 10px;font-size:.8rem;font-weight:700}.error-box{border:1px solid var(--danger);background:#ff6b6b1a;border-radius:var(--radius);padding:10px 12px;margin:8px 0}.error-box strong{color:var(--danger)}.take-list{list-style:none;padding:0;margin:0}.take-list li{display:flex;align-items:center;gap:6px;padding:6px 0;border-bottom:1px solid var(--line);flex-wrap:wrap}.upload-progress{position:relative;height:22px;background:var(--bg3);border-radius:6px;overflow:hidden;margin-top:8px}.upload-progress span{position:absolute;inset:0 auto 0 0;background:var(--accent)}.upload-progress em{position:relative;font-style:normal;font-size:.8rem;padding-left:8px;line-height:22px}.members{margin-top:20px}.member-list{list-style:none;padding:0;margin:8px 0 0}.member-list li{display:flex;align-items:center;gap:6px;padding:4px 0;border-bottom:1px solid var(--line);min-width:0}.member-list .grow{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.self-tag{margin-left:6px;font-size:.72rem;background:var(--accent);color:#fff;border-radius:999px;padding:0 6px}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#000000a6;z-index:60;display:flex;align-items:flex-end;justify-content:center;padding:16px}.modal{background:var(--bg2);border:1px solid var(--line);border-radius:16px;padding:18px 16px 12px;width:100%;max-width:480px;max-height:calc(100vh - 32px);overflow-y:auto;display:flex;flex-direction:column;gap:12px}.modal h2{font-size:1.25rem;margin:0}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.modal-close{flex:none;width:40px;height:40px;border-radius:50%;border:1px solid var(--line);background:var(--bg3);font-size:1.3rem;line-height:1;cursor:pointer}.modal .section-label{margin:0;font-weight:600}.or-line{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:.8rem}.or-line:before,.or-line:after{content:"";flex:1;border-top:1px solid var(--line)}.viewonly-choice{width:100%;min-height:48px;flex-direction:column;gap:0;white-space:normal;border-color:var(--accent2);font-weight:600}.viewonly-choice .sub{font-size:.75rem;font-weight:400;color:var(--muted)}.modal.confirm h2{font-size:1.05rem}.confirm-actions{justify-content:flex-end;margin-top:4px}.self-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:6px;max-height:40vh;overflow-y:auto}.self-option{display:flex;align-items:center;gap:6px;background:var(--bg3);border:1px solid var(--line);border-radius:10px;padding:10px 8px;cursor:pointer;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.self-option.on{border-color:var(--accent)}@media (min-width: 560px){.modal-backdrop{align-items:center}}.toast{position:fixed;left:50%;bottom:20px;transform:translate(-50%);z-index:50;display:flex;align-items:center;gap:12px;width:max-content;max-width:calc(100vw - 32px);padding:10px 16px;border-radius:999px;pointer-events:none;background:var(--fg);color:var(--bg);font-size:.9rem;box-shadow:0 6px 20px #0006}.toast-action{pointer-events:auto;background:none;border:0;color:var(--accent);font-weight:700;cursor:pointer;padding:2px 4px;white-space:nowrap}@media (max-height: 740px){.player-wrap:not(.compare) .player-cell{width:min(100%,calc(21vh * 16 / 9))}.stage-area.mini .player-wrap:not(.compare) .player-cell{width:min(100%,calc(15vh * 16 / 9))}.transport{gap:4px;padding:6px 8px}.sec-strip{height:24px}.icon-btn{width:36px;height:36px}.icon-btn.play{width:42px;height:42px}.chip{min-height:30px;padding:3px 10px}.chip.small{min-height:28px}}.project.practice-mode{max-width:none}.practice-mode .topbar,.practice-mode .tabs,.practice-mode .panel,.practice-mode .source-switch{display:none}.practice-mode .stage-area{flex:1 1 auto;min-height:0;padding:8px;box-shadow:none;display:grid;grid-template-rows:minmax(0,1fr) auto;gap:8px}.practice-mode .player-wrap{min-height:0;height:100%}.practice-mode .player-wrap:not(.compare) .player-cell{width:100%;height:100%;margin:0}.practice-mode .player-frame{height:100%;aspect-ratio:auto;border-radius:6px}@media (orientation: landscape){.practice-mode .stage-area{grid-template-columns:minmax(0,1fr) minmax(220px,32%);grid-template-rows:minmax(0,1fr)}}.hud{display:flex;flex-direction:column;gap:10px;min-width:0}.hud-count{text-align:center;background:var(--bg2);border:1px solid var(--line);border-radius:var(--radius);padding:6px 8px 10px}.hud-section{font-size:1.1rem;font-weight:700;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hud-beat{display:flex;align-items:baseline;justify-content:center;gap:12px;line-height:1}.hud-eight{font-size:clamp(2.2rem,9vmin,4.5rem);font-weight:800}.hud-eight small{font-size:.35em;font-weight:600;color:var(--muted);margin-left:2px}.hud-num{font-size:clamp(4.5rem,22vmin,10rem);font-weight:900;color:var(--accent2);font-variant-numeric:tabular-nums}.hud-dots{display:flex;justify-content:center;gap:6px;margin-top:6px}.hud-dots i{width:14px;height:14px;border-radius:50%;background:var(--line)}.hud-dots i.hit{background:var(--accent2)}.hud-controls{display:flex;justify-content:center;align-items:center;gap:16px}.hud-btn{width:64px;height:64px;border-radius:50%;border:1px solid var(--line);background:var(--bg3);font-size:1.3rem;cursor:pointer}.hud-btn.play{width:84px;height:84px;background:var(--accent);border-color:var(--accent);color:#fff;font-size:1.8rem}.hud-btn:disabled{opacity:.4}.hud-options{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}.hud-chip{min-height:44px;padding:6px 14px;border-radius:999px;border:1px solid var(--line);background:var(--bg3);font-size:1rem;cursor:pointer}.hud-chip.on{background:var(--accent);border-color:var(--accent);color:#fff}.hud-chip.exit{background:transparent;color:var(--muted)}.hud-chip:disabled{opacity:.45}.practice-btn{border-color:var(--accent2);color:var(--accent2)}.countin.rest{font-size:clamp(2rem,10vw,4rem);color:var(--fg);background:#0000008c}.offline-bar{margin:0 0 10px;padding:8px 12px;border-radius:10px;font-size:.85rem;background:#78aaff1f;border:1px solid rgba(120,170,255,.45)}.device-check{margin-top:12px}.device-check summary{cursor:pointer;color:var(--muted)}.device-check ul{list-style:none;padding:0;margin:6px 0}.hud{position:relative;overflow-y:auto}.hud-chip.exit{position:absolute;top:4px;right:4px;min-height:44px;padding:4px 16px;font-size:1rem;font-weight:700;color:var(--fg);border:2px solid var(--fg);background:#0009;z-index:1}.hud-exit-hint{font-size:.72rem;color:var(--muted)}@media (orientation: portrait){.practice-mode .hud-count{margin-top:52px}}@media (orientation: landscape) and (max-height: 520px){.hud{gap:6px}.hud-count{padding:4px 6px 6px}.hud-num{font-size:clamp(3.5rem,24vh,7rem)}.hud-eight{font-size:clamp(1.6rem,10vh,3rem)}.hud-dots i{width:10px;height:10px}.hud-btn{width:48px;height:48px;font-size:1.05rem}.hud-btn.play{width:64px;height:64px;font-size:1.4rem}.hud-controls{gap:12px}.hud-options{gap:6px}.hud-chip{min-height:36px;padding:4px 10px;font-size:.88rem}.hud-chip.exit{min-height:40px}.hud-exit-hint{display:none}}@media (max-width: 599px) and (orientation: portrait){.stage-area{padding-left:12px;padding-right:12px}.stage-area:not(.compact):not(.mini) .player-wrap:not(.compare) .player-cell{width:min(100%,calc((100dvh - 420px) * 16 / 9))}.panel{min-height:140px}.tabs{padding:0 8px}.video-bar{margin-top:4px}.video-info{flex-direction:row;align-items:baseline;gap:6px}.video-info .song{flex:none;max-width:50%}.video-info .vtitle{display:block;flex:1 1 0;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}@media (min-width: 1000px),(orientation: landscape) and (max-height: 520px){.project:not(.practice-mode){max-width:1440px;display:grid;grid-template-columns:minmax(0,1.6fr) minmax(380px,1fr);grid-template-rows:auto auto minmax(0,1fr)}.project:not(.practice-mode) .topbar{grid-column:1 / -1}.project:not(.practice-mode) .stage-area{grid-column:1;grid-row:2 / 4;box-shadow:none;padding-bottom:16px}.project:not(.practice-mode) .tabs{grid-column:2;grid-row:2;margin-top:0}.project:not(.practice-mode) .panel{grid-column:2;grid-row:3;min-height:0}.project:not(.practice-mode) .stage-area:not(.compact) .player-wrap:not(.compare) .player-cell{width:min(100%,calc((100dvh - 330px) * 16 / 9))}.project:not(.practice-mode) .stage-area.compact .player-wrap:not(.compare) .player-cell{width:min(100%,calc(32vh * 16 / 9))}}@media (orientation: landscape) and (max-height: 520px) and (max-width: 999px){.project:not(.practice-mode){--topbar-h: 44px;grid-template-columns:minmax(0,1.25fr) minmax(300px,1fr)}.project:not(.practice-mode) .stage-area{padding:0 12px 10px}.project:not(.practice-mode) .stage-area:not(.compact) .player-wrap:not(.compare) .player-cell{width:min(100%,calc((100dvh - 215px) * 16 / 9))}.project:not(.practice-mode) .stage-area.compact .player-wrap:not(.compare) .player-cell{width:min(100%,calc((100dvh - 215px) * .6 * 16 / 9))}.project:not(.practice-mode) .video-info{flex-direction:row;align-items:baseline;gap:6px}.project:not(.practice-mode) .video-info .song{flex:none;max-width:50%}.project:not(.practice-mode) .video-info .vtitle{display:block;flex:1 1 0;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.project:not(.practice-mode) .video-bar{margin-top:4px}.project:not(.practice-mode) .tabs button{min-height:44px;padding:8px 2px;font-size:.85rem}}
