.transfer-header{justify-content:space-between}.transfer-header select{max-width:160px;padding:8px;border:1px solid #66616f;border-radius:10px;background:#333039;color:white}.transfer-main{width:min(1000px,calc(100% - 40px));margin:45px auto 72px}.route-hero{text-align:center;padding:24px 0 35px}.route-icons{display:flex;justify-content:center;align-items:center;gap:clamp(30px,9vw,130px);margin-bottom:24px}.route-icons img{height:82px;width:82px;border:1px solid #ddd;border-radius:22px}.route-icons span{font-size:44px;color:var(--accent)}.route-hero h1{font-size:clamp(26px,4vw,42px);line-height:1.22;letter-spacing:-1px}.route-hero p{margin:16px auto;color:var(--muted);max-width:700px}.transfer-card{background:white;border:1px solid var(--line);border-radius:24px;padding:28px;margin:22px 0}.transfer-card h2{font-size:21px;margin-bottom:12px}.transfer-card p{margin:10px 0;color:var(--muted)}.transfer-card ol{padding-inline-start:24px}.transfer-card li{margin:10px 0}.transfer-card button,.transfer-card .button{min-height:44px}.transfer-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:18px 0}.transfer-primary{background:var(--accent);color:white;border:0;border-radius:14px;padding:13px 23px;font-weight:650;font-size:16px}.transfer-secondary{border:1px solid var(--line);background:white;border-radius:12px;padding:10px 18px}.transfer-primary:disabled,.transfer-secondary:disabled{opacity:.45;cursor:default}.transfer-input{width:100%;border:1px solid var(--line);border-radius:12px;padding:12px;font:inherit;margin:8px 0;background:#f8f8fa}.transfer-status{margin:16px 0;text-align:center;white-space:pre-wrap;overflow-wrap:anywhere}.transfer-status.error{color:#ad2736;background:#fff0f0;border-radius:12px;padding:15px}.transfer-spinner{width:26px;height:26px;margin:14px auto;border:3px solid #ddd4f8;border-top-color:var(--accent);border-radius:50%;animation:transfer-spin .85s linear infinite}@keyframes transfer-spin{to{transform:rotate(360deg)}}.transfer-status.loading:before{content:'';display:block;width:24px;height:24px;margin:12px auto;border:3px solid #ded6ef;border-top-color:var(--accent);border-radius:50%;animation:transfer-spin .85s linear infinite}.transfer-counts{display:flex;flex-wrap:wrap;gap:14px;color:var(--muted);padding-block:12px}.transfer-row{display:grid;grid-template-columns:24px minmax(0,1fr) 28px minmax(0,1fr) auto;align-items:center;gap:14px;padding:17px 0;border-bottom:1px solid var(--line)}.transfer-row strong,.transfer-row small{display:block;overflow-wrap:anywhere}.transfer-row small{color:var(--muted);font-size:13px}.transfer-row input{width:19px;height:19px;accent-color:var(--accent)}.transfer-row .transfer-secondary{font-size:13px;padding:7px 10px}.transfer-badge{font-size:12px;color:var(--accent-dark)}.transfer-footer{background:var(--chrome);color:#c9c6d4;text-align:center;padding:30px}.transfer-sticky{position:sticky;bottom:0;z-index:2;background:#fffffff5;border-top:1px solid var(--line);padding:15px 0;display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;backdrop-filter:blur(12px)}.transfer-dialog{width:min(650px,calc(100% - 24px));max-height:85vh;border:1px solid var(--line);border-radius:24px;padding:24px;color:var(--ink)}.transfer-dialog::backdrop{background:#16132170}.transfer-dialog h2{font-size:23px}.transfer-alternative{display:block;width:100%;text-align:start;border:1px solid var(--line);background:#f9f8fc;border-radius:14px;padding:14px;margin:10px 0}.transfer-alternative strong,.transfer-alternative small{display:block}.transfer-pages{display:flex;flex-wrap:wrap;gap:12px}.transfer-pages a{padding:10px 16px;background:white;border:1px solid var(--line);border-radius:14px}.transfer-hint{color:var(--muted);font-size:14px}.partial-warning{background:#fff8e5;padding:18px;border-radius:14px}.partial-warning input{accent-color:var(--accent)}@media(max-width:600px){.transfer-main{width:calc(100% - 28px);margin-top:18px}.transfer-card{padding:19px}.route-icons{gap:45px}.route-icons img{height:64px;width:64px;border-radius:17px}.transfer-row{grid-template-columns:22px minmax(0,1fr) auto;gap:10px}.transfer-row .route-mark{display:none}.transfer-row .target-song{grid-column:2}.transfer-row button{grid-column:3;grid-row:1/3}.transfer-header{gap:12px}.transfer-header .brand{font-size:18px}.transfer-sticky button{width:100%}}@media(prefers-reduced-motion:reduce){.transfer-spinner,.transfer-status.loading:before{animation-duration:2s}}

.transfer-alternative:disabled{opacity:.45;cursor:not-allowed}

/* Native matching workspace: compact source rows and one review sheet. */
[hidden]{display:none!important}.private-transfer .transfer-main{width:min(1040px,calc(100% - 48px));margin:28px auto 60px}.matching-overview{max-width:660px;margin:0 auto 30px;text-align:center}.matching-platforms{display:flex;align-items:center;justify-content:space-between;max-width:460px;margin:0 auto 20px;padding:12px 20px}.matching-platforms>div{display:grid;gap:10px;justify-items:center;font-size:15px}.matching-platforms img{width:68px;height:68px;object-fit:cover;border:1px solid #dedbe6;border-radius:17px}.matching-platforms>span{font-size:40px;color:var(--accent);margin:0 20px}.matching-overview h2{font-size:20px;margin:12px 0 5px}.matching-overview #source-count{font-size:13px;color:var(--muted);margin:0 0 20px}.matching-progress{text-align:start;margin:20px 0 0}.matching-progress>div{display:flex;justify-content:space-between;font-size:13px;color:var(--muted)}.matching-progress progress{display:block;appearance:none;width:100%;height:7px;margin:10px 0;border:0;border-radius:8px;overflow:hidden;background:#e4e1eb;accent-color:var(--accent)}.matching-progress progress::-webkit-progress-bar{background:#e4e1eb}.matching-progress progress::-webkit-progress-value{background:var(--accent);border-radius:8px}.matching-progress #progress-song{font-size:13px;color:var(--muted);height:22px;margin:9px 0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.matching-controls{justify-content:center;margin:0}.transfer-text{border:0;background:none;color:var(--muted);text-decoration:underline;padding:10px;min-height:42px;font:inherit;font-size:13px;cursor:pointer}#transfer-write-action{display:grid;gap:10px;justify-items:center;margin:10px auto 0}#transfer-write-action .transfer-primary{min-width:300px;width:min(100%,460px)}.transfer-status:empty{display:none}.match-list-heading{font-size:14px;color:var(--muted);margin-bottom:12px;line-height:1.65}.match-list{background:#fff;border-radius:17px;overflow:hidden}.transfer-row{display:flex;width:100%;gap:12px;border:0;position:relative;background:white;align-items:center;text-align:start;padding:10px 16px;min-height:62px;font:inherit;cursor:pointer}.transfer-row+.transfer-row::before{content:'';position:absolute;inset-inline-start:66px;inset-inline-end:0;top:0;height:1px;background:var(--line)}.transfer-row:not(:disabled):hover{background:#faf8ff}.transfer-row:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}.transfer-row:disabled{cursor:default}.transfer-row .source-song{flex:1;min-width:0}.transfer-row strong{font-size:15px;font-weight:550;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.transfer-row small{font-size:12px;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.song-artwork,.review-artwork{display:block;flex-shrink:0;width:38px;height:38px;border-radius:7px;background-size:cover;background-position:center;overflow:hidden}.song-artwork img,.review-artwork img{width:100%;height:100%;object-fit:cover;display:block;opacity:0;transition:opacity .16s}.song-artwork img.loaded,.review-artwork img.loaded{opacity:1}.match-status{display:grid;place-items:center;flex-shrink:0;margin-inline-start:10px;width:23px;height:23px;border-radius:50%;color:white;font-size:15px;font-weight:700}.match-status.matched{background:#36ad63}.match-status.suggested{background:#e79a25}.match-status.unmatched{background:#df5353}.match-status.skipped{color:#8e8b97;border:2px solid #aaa7b2;background:none}.match-status.waiting{width:auto;min-width:44px;font-size:12px;color:var(--muted);font-weight:400}.session-actions{justify-content:space-between;padding:16px 0;font-size:13px}.match-review-dialog{width:min(900px,calc(100% - 32px));height:min(740px,calc(100dvh - 60px));max-height:calc(100dvh - 32px);padding:0;border-radius:23px;background:#f3f2f8;overflow:hidden}.match-review-header{display:flex;align-items:center;position:relative;height:65px;padding:12px 16px;background:#fff;border-bottom:1px solid var(--line)}.match-review-header h2{position:absolute;left:65px;right:65px;text-align:center;font-size:18px;margin:0;pointer-events:none}.dialog-close{height:40px;width:40px;border:0;border-radius:50%;background:none;color:var(--muted);font-size:30px;line-height:1;cursor:pointer}.dialog-close:hover{background:#f3f2f7}.match-review-body{height:calc(100% - 65px);overflow:auto;padding:20px;scrollbar-gutter:stable}.review-source{text-align:center;display:grid;justify-items:center;gap:10px;margin:0 0 20px}.review-artwork{height:72px;width:72px;border-radius:50%}.review-source strong,.review-source small{display:block;line-height:1.5}.review-source strong{font-size:17px}.review-source small{font-size:12px;color:var(--muted)}.match-search{display:flex;gap:10px;align-items:center;margin:0 0 16px}.match-search .transfer-input{margin:0;background:#fff}.match-search button{flex-shrink:0}.match-review-body>.transfer-hint{line-height:1.6;margin:0 0 14px}.match-candidates{border-radius:13px;overflow:hidden;background:#fff}.transfer-alternative{width:100%;display:flex;gap:10px;align-items:center;text-align:start;margin:0;padding:12px;background:#fff;border:0;border-radius:0;position:relative;font:inherit;cursor:pointer}.transfer-alternative+.transfer-alternative:before{content:'';position:absolute;inset-inline-start:66px;inset-inline-end:0;top:0;height:1px;background:var(--line)}.transfer-alternative:hover{background:#faf8ff}.transfer-alternative .song-artwork{width:44px;height:44px}.candidate-details{flex:1;min-width:0}.candidate-details strong{font-size:15px;font-weight:550;line-height:1.4}.candidate-details small{font-size:12px;color:var(--muted);line-height:1.5}.candidate-details .candidate-album{font-size:11px}.candidate-state{display:grid;justify-items:center;gap:3px;flex-shrink:0;min-width:54px}.candidate-state small{font-size:11px;color:var(--muted)}.candidate-state .candidate-isrc{color:#259952}.candidate-radio{width:23px;height:23px;border:1.7px solid var(--accent);border-radius:50%;display:grid;place-items:center;color:var(--accent);font-size:14px}.candidate-radio.selected{background:var(--accent);color:white}.transfer-dialog #confirm-body{white-space:pre-wrap;color:var(--muted);margin:18px 0}.transfer-dialog #playlist-name{margin:10px 0}#more-rows{display:block;margin:15px auto}.private-transfer .transfer-status.loading{min-height:58px}
@media(max-width:600px){.private-transfer .transfer-main{width:calc(100% - 28px);margin-top:18px}.matching-platforms{padding:4px 20px}.matching-platforms img{width:58px;height:58px;border-radius:15px}.matching-platforms>div{font-size:13px}.matching-overview{margin-bottom:22px}.transfer-row{padding:10px 12px;gap:10px}.transfer-row strong{font-size:14px}.match-review-dialog{width:calc(100% - 16px);height:calc(100dvh - 32px);border-radius:20px}.match-review-body{padding:17px 14px}.match-review-header{height:60px}.match-review-header h2{font-size:17px}.match-review-body{height:calc(100% - 60px)}.match-search button{padding:12px 16px}.matching-platforms>span{font-size:32px}.candidate-details strong{font-size:14px}.candidate-details small{font-size:11px}#transfer-write-action .transfer-primary{min-width:0;width:100%}.private-transfer .transfer-header .brand{font-size:17px}.candidate-state{min-width:44px}.transfer-row .match-status{margin-inline-start:3px}}
/* TransferMatchingView: 24pt page inset, full-width progress, measured connection-width action. */
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.private-transfer .transfer-main{width:100%;max-width:none;padding:24px;margin:0 auto 36px}
.matching-overview{container:matching / inline-size;max-width:none;margin:0 auto 22px;scroll-margin-top:90px}
.matching-platforms,#transfer-write-action{--connection-width:420px;--connection-icon:76px}
.matching-platforms{max-width:var(--connection-width);width:100%;margin:0 auto 14px;padding:12px;gap:4px;align-items:flex-start}
.matching-platforms>div{width:var(--connection-icon);flex:none;display:block}
.matching-platforms img{width:var(--connection-icon);height:var(--connection-icon);object-fit:contain;border:0;border-radius:calc(var(--connection-icon)*.23)}
.matching-platforms>span.matching-arrow{flex:1;position:relative;display:block;direction:ltr;height:30px;min-width:32px;margin:calc((var(--connection-icon) - 30px)/2) 0 0;color:var(--accent)}
.matching-arrow-line{position:absolute;inset:0 auto 0 0;width:calc(100% - 20px);height:30px;overflow:visible}.matching-arrow-head{position:absolute;right:0;top:0;width:30px;height:30px}
[dir=rtl] .matching-arrow{transform:scaleX(-1)}
.matching-progress{margin:0;text-align:start}.matching-progress>div{font-size:14px;min-height:24px;align-items:center}.matching-progress progress{height:6px;margin:12px 0}.matching-progress #progress-song{height:24px;line-height:24px;margin:12px 0 0;font-size:14px}.matching-controls{justify-content:flex-end;margin:14px 0 0}.matching-controls:has(>button:not([hidden])){min-height:28px}.matching-controls:not(:has(>button:not([hidden]))){display:none}
#transfer-write-action{width:calc(min(100%,var(--connection-width)) - 24px);gap:8px;margin:14px auto 0;padding-bottom:10px}#transfer-write-action .transfer-primary{width:100%;min-width:0;min-height:44px;padding:10px 16px;border-radius:22px;font-size:15px;line-height:24px}
#confirmation-tip{position:relative;background:#171719;color:#fff;border:0;border-radius:12px;padding:12px 16px;max-width:min(340px,100%);font:inherit;font-size:14px;line-height:1.5;margin-top:9px;cursor:pointer}#confirmation-tip:before{content:'';position:absolute;bottom:100%;left:calc(50% - 9px);border-bottom:9px solid #171719;border-inline:9px solid transparent}
.match-list-heading{font-size:14px;line-height:1.5;margin-bottom:10px}.transfer-row{min-height:58px}.transfer-row .match-status{margin-inline-start:0;flex-basis:23px;margin-inline:10px}
.match-review-dialog{width:min(900px,calc(100% - 48px));height:min(740px,calc(100dvh - 48px));max-height:calc(100dvh - 48px)}.candidate-row{display:flex;gap:10px;align-items:center;padding:12px;position:relative}.candidate-row+.candidate-row:before{content:'';position:absolute;top:0;inset-inline-start:64px;inset-inline-end:0;height:1px;background:var(--line)}.candidate-row>.song-artwork,.candidate-preview .song-artwork{width:44px;height:44px}.candidate-row .transfer-alternative{flex:1;padding:0;min-width:0;background:transparent}.candidate-row:has(.transfer-alternative:hover){background:#faf8ff}.candidate-preview{position:relative;padding:0;border:0;border-radius:7px;background:none;flex-shrink:0;cursor:pointer}.preview-play{position:absolute;inset:0;display:grid;place-items:center;background:#0006;color:#fff;border-radius:7px}.candidate-details strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.candidate-details small{display:block}.match-review-body{padding:20px}.review-source{gap:8px;margin-bottom:18px}.match-review-body>.transfer-hint{margin-bottom:18px}
#track-preview{padding:0;overflow:hidden}#preview-player{padding:18px}#preview-player iframe{display:block;border:0;width:100%;aspect-ratio:16/9}#preview-player audio{width:100%}
@container matching (min-width:480px){.matching-platforms,#transfer-write-action{--connection-width:560px;--connection-icon:112px}}
@container matching (min-width:620px){.matching-platforms,#transfer-write-action{--connection-width:760px;--connection-icon:144px}}
@media(max-width:700px){.match-review-dialog{width:calc(100% - 24px);height:calc(100dvh - 32px)}.private-transfer .transfer-main{padding:24px}.matching-platforms{padding:12px}}
@media(max-width:520px){.private-transfer .transfer-main{padding:24px}.matching-platforms{padding:12px}.matching-progress>div{font-size:13px}.transfer-row{padding:10px 12px}.candidate-state{min-width:45px}.match-review-body{padding:18px 14px}.match-review-dialog{width:calc(100% - 16px)}#transfer-write-action .transfer-primary{font-size:14px}}
.matching-progress.is-writing #progress-count{display:flex;align-items:center;gap:10px}.matching-progress.is-writing #progress-count:before{content:'';width:15px;height:15px;flex:none;border:2px solid #ddd4f8;border-top-color:var(--accent);border-radius:50%;animation:transfer-spin .85s linear infinite}
