:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  line-height: 1.65;
  color: #e9edf1;
  background: #0c0e12;
  --surface: #13161b;
  --raised: #1b1f26;
  --line: #2a3039;
  --muted: #9ca6b4;
  --netease: #e53935;
  --qq: #31c27c;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  --source-color: var(--netease);
  --source-text: #ff9298;
  --source-rgb: 229, 57, 53;
  --target-color: var(--qq);
  --target-text: #79e8ad;
  --target-rgb: 49, 194, 124;
  --green: var(--target-color);
  background: radial-gradient(ellipse at 20% 0, rgba(var(--source-rgb), .045), transparent 40%), #0c0e12;
}
body[data-direction=qq_to_netease] {
  --source-color: var(--qq);
  --source-text: #79e8ad;
  --source-rgb: 49, 194, 124;
  --target-color: var(--netease);
  --target-text: #ff9298;
  --target-rgb: 229, 57, 53;
}
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: 4px; }
button, input, select { font: inherit; }
button, a, input, select, summary { touch-action: manipulation; }
button { min-height: 42px; padding: 10px 17px; border: 1px solid transparent; border-radius: 9px; background: var(--target-color); color: #030704; font-size: 13px; font-weight: 650; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
button:hover { filter: brightness(1.1); }
button:active { transform: translateY(1px); }
button:disabled { opacity: .4; cursor: not-allowed; filter: none; transform: none; }
button span { margin-left: 12px; }
.secondary { background: #20252d; border-color: #343c47; color: #d7dee7; font-weight: 500; }
.secondary:hover { background: #2a313b; border-color: #556171; filter: none; }
.text-button { min-height: 30px; padding: 3px 0; border: 0; background: transparent; color: #aeb8c5; font-size: 12px; font-weight: 450; }
.text-button:hover { color: #fff; background: transparent; text-decoration: underline; }
input, select { min-width: 0; padding: 10px 12px; border: 1px solid #38414d; border-radius: 8px; background: #0e1116; color: #e3e9f0; }
input::placeholder { color: #7f8a9a; }
input[type=checkbox], input[type=radio] { accent-color: var(--target-color); width: 17px; height: 17px; flex-shrink: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--target-text); outline-offset: 4px; }
.skip-link { position: fixed; left: 16px; top: -80px; padding: 12px; background: #fff; color: #111; z-index: 20; }
.skip-link:focus { top: 8px; }
.sidebar { position: relative; max-width: 1200px; margin: 0 auto; padding: 20px 28px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-bottom: 1px solid #252a32; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-size: 22px; font-weight: 750; letter-spacing: -.6px; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #434c58; border-radius: 11px; background: #1b2027; color: #eef2f6; font-size: 32px; line-height: 1; }
.brand-sub { display: block; margin-top: 1px; font-size: 10px; font-weight: 400; color: #9ba7b7; letter-spacing: 1.2px; }
.side-label, .sidebar-bottom, .topbar, .nav-link b { display: none; }
.side-nav { display: flex; align-items: center; gap: 6px; }
.nav-link { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 7px; font-size: 13px; text-decoration: none; color: #a5afbd; }
.nav-link>span:first-child { font-size: 16px; }
.nav-link:hover { color: #fff; background: #1c2129; }
.nav-link.active { color: #f4f6f9; background: #242a33; }
.header-security { display: flex; align-items: center; gap: 7px; color: #a7b4b0; font-size: 12px; text-decoration: none; white-space: nowrap; }
.header-security span { color: #79e8ad; }
main { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.hero { position: relative; padding: 32px 0 24px; }
.hero-copy { position: relative; }
.eyebrow { font-size: 11px; font-weight: 550; letter-spacing: 1.5px; color: #8c98a9; }
.hero h1 { margin: 12px 0 12px; font-size: clamp(32px, 4vw, 48px); font-weight: 680; line-height: 1.22; letter-spacing: -2px; }
.hero h1>span { color: #9ca8b9; }
.hero p { margin: 0; color: #9da9b9; font-size: 13px; }
.hero-tags { position: absolute; right: 0; bottom: 11px; display: flex; flex-direction: column; gap: 7px; }
.hero-tags span { font-size: 12px; color: #aab5c2; }
.hero-tags span:before { content: "✓"; color: var(--target-text); margin-right: 9px; }
.record-art { display: none; }
.migration-flow { display: flex; align-items: center; gap: 13px; max-width: 350px; margin-top: 22px; }
.flow-provider { font-size: 12px; padding: 6px 10px; border-radius: 6px; font-weight: 550; white-space: nowrap; }
.flow-source { color: var(--source-text); background: rgba(var(--source-rgb), .12); border: 1px solid rgba(var(--source-rgb), .3); }
.flow-target { color: var(--target-text); background: rgba(var(--target-rgb), .12); border: 1px solid rgba(var(--target-rgb), .3); }
.flow-lane { position: relative; flex: 1; min-width: 45px; height: 28px; overflow: hidden; }
.flow-lane:before { content: ""; position: absolute; top: 14px; left: 0; right: 10px; height: 1px; background: linear-gradient(90deg, var(--source-color), var(--target-color)); opacity: .7; }
.flow-lane i { position: absolute; left: 0; top: 2px; color: var(--source-text); font-size: 14px; font-style: normal; opacity: 0; animation: music-color-flow 4s linear infinite; }
.flow-lane i:nth-child(2) { animation-delay: 1.3s; }
.flow-lane i:nth-child(3) { animation-delay: 2.6s; }
.flow-lane b { position: absolute; right: 0; top: 1px; font-size: 17px; color: var(--target-text); background: #0c0e12; }
@keyframes music-color-flow { 0% { left: 0; opacity: 0; color: var(--source-text); } 20% { opacity: 1; } 80% { opacity: 1; } 100% { left: calc(100% - 15px); opacity: 0; color: var(--target-text); } }
.workflow-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 18px 0 24px; }
.workflow-step { display: flex; align-items: center; gap: 10px; color: #a7b1be; }
.workflow-step>span { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid #343c48; border-radius: 9px; font-size: 11px; color: #9aa7b9; background: #161a20; flex-shrink: 0; }
.workflow-step strong { display: block; font-size: 13px; font-weight: 550; }
.workflow-step small { display: block; font-size: 11px; color: #8390a2; }
.workflow-step.current>span { border-color: rgba(var(--target-rgb), .5); color: var(--target-text); background: rgba(var(--target-rgb), .1); }
.workflow-step.current strong { color: #eaf0f7; }
.workflow-step.complete>span { color: var(--target-text); }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr) 266px; gap: 20px; align-items: start; }
.workspace-main { min-width: 0; }
.workspace-aside { position: sticky; top: 24px; }
.panel { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; padding: 25px; margin-bottom: 20px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 12px; }
.section-heading h2 { margin: 6px 0 0; font-size: 21px; font-weight: 600; letter-spacing: -.4px; }
.section-heading .eyebrow { font-size: 10px; color: #8d9aad; letter-spacing: 1px; }
.section-number { color: #586475; font-size: 24px; font-weight: 300; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); font-size: 13px; }
.connection-panel>p { margin: 0 0 18px; font-size: 12px; line-height: 1.85; }
.direction-picker { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px; border: 1px solid #303844; border-radius: 10px; background: #191d24; margin: 18px 0; }
.direction-picker span { display: grid; gap: 3px; }
.direction-picker strong { font-size: 13px; font-weight: 550; }
.direction-picker small { font-size: 11px; color: #96a2b4; }
.direction-picker select { font-size: 12px; max-width: 100%; border-color: #465365; padding: 9px 11px; }
.connect-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 13px; flex-wrap: wrap; margin: 19px 0; }
.login-option { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #9ba8b9; }
.login-option select { font-size: 11px; padding: 7px 9px; max-width: 170px; }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.account-card { --provider-color: #ff9298; --provider-rgb: 229, 57, 53; min-width: 0; border: 1px solid #343d49; border-radius: 12px; background: #181d24; overflow: hidden; }
.account-card.qq { --provider-color: #79e8ad; --provider-rgb: 49, 194, 124; }
.account-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; padding: 17px 14px; border-bottom: 1px solid #2a323e; }
.provider-logo { width: 33px; height: 33px; display: grid; place-items: center; color: var(--provider-color); background: rgba(var(--provider-rgb), .15); border: 1px solid rgba(var(--provider-rgb), .25); border-radius: 9px; font-size: 19px; font-weight: 600; }
.account-heading h3 { margin: 0; font-size: 14px; font-weight: 600; }
.account-heading small { display: block; margin-top: 2px; font-size: 10px; color: #9daabb; }
.account-state { margin-left: auto; padding: 3px 7px; border: 1px solid #3b4656; border-radius: 5px; font-size: 10px; white-space: nowrap; color: #aeb9c8; background: #242c36; }
.account-card.auth-active { border-color: rgba(var(--provider-rgb), .65); }
.account-card.connected { border-color: rgba(var(--provider-rgb), .4); }
.account-card.connected .account-state { color: var(--provider-color); border-color: rgba(var(--provider-rgb), .3); background: rgba(var(--provider-rgb), .1); }
.qr-slot { min-height: 222px; padding: 17px 12px; display: flex; align-items: center; justify-content: center; }
.qr-slot img { width: 170px; height: 170px; max-width: calc(100% - 20px); object-fit: contain; box-sizing: content-box; border: 10px solid #fff; background: #fff; border-radius: 10px; }
.qr-placeholder { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.qr-placeholder>span { width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: 5px; border-radius: 17px; border: 1px solid #3c4757; background: #202733; color: var(--provider-color); font-size: 31px; }
.qr-placeholder strong { font-size: 12px; font-weight: 500; color: #bec8d7; }
.qr-placeholder small { max-width: 170px; font-size: 10px; color: #8f9daf; }
.account-card>p { margin: 0; padding: 10px 13px; min-height: 44px; border-top: 1px solid #2c3440; color: #a4b0c1; font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; }
.account-card>p.error { color: #ffabb2; background: #311c24; }
.qr-actions { padding: 4px 12px 12px; }
.qr-actions:has(button[hidden]) { display: none; }
.qr-actions button { width: 100%; min-height: 34px; padding: 7px 9px; font-size: 11px; white-space: normal; }
.inline-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 15px; color: #8996a8; font-size: 11px; }
.inline-note>span:first-child { font-size: 16px; line-height: 1.4; }
.accounts-ready .qr-slot, .accounts-ready>.inline-note { display: none; }
.summary-card { padding: 23px 20px; border: 1px solid #313944; border-radius: 14px; background: #171c23; }
.summary-card .eyebrow { font-size: 10px; }
.summary-card h3 { margin: 7px 0 20px; font-size: 18px; font-weight: 550; }
.summary-route { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding-bottom: 18px; border-bottom: 1px solid #303946; font-size: 13px; font-weight: 550; }
.summary-route>span:nth-child(2) { margin-left: 23px; font-size: 16px; color: #8996a8; }
.netease-text { color: #ff9298; }
.qq-text { color: #79e8ad; }
.summary-card dl { margin: 20px 0; }
.summary-card dl>div { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 15px 0; font-size: 12px; }
.summary-card dt { color: #99a7ba; }
.summary-card dd { margin: 0; color: #d5dfec; text-align: right; }
.summary-tip { padding-top: 16px; border-top: 1px solid #303946; color: #8999ae; font-size: 11px; line-height: 1.85; }
.help-card { margin-top: 20px; padding: 18px 6px; }
.small-icon { color: var(--target-text); font-size: 15px; }
.help-card h3 { margin: 8px 0 13px; font-size: 13px; font-weight: 550; }
.help-card ul { padding-left: 16px; font-size: 11px; line-height: 2.2; color: #9daabd; }
.help-card p { border-top: 1px solid #2b333e; padding-top: 14px; font-size: 11px; color: #8897ab; line-height: 1.9; }
.mode-picker { display: flex; gap: 12px; border: 0; margin: 18px 0 12px; padding: 0; }
.mode-picker legend { margin-bottom: 10px; font-size: 12px; color: #9eacc0; }
.mode-picker>label { flex: 1; display: flex; align-items: center; gap: 9px; padding: 14px 12px; border: 1px solid #374151; border-radius: 9px; cursor: pointer; }
.mode-picker>label:has(:checked) { background: rgba(var(--target-rgb), .08); border-color: rgba(var(--target-rgb), .6); }
.mode-picker strong { display: block; font-size: 13px; font-weight: 550; }
.mode-picker small { display: block; font-size: 11px; color: #99a7ba; }
.mode-help { padding: 12px 14px; background: #1b212b; border-radius: 8px; color: #a3b1c5; font-size: 12px; }
.playlist-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.playlist-picker { --picker-rgb: var(--source-rgb); --picker-text: var(--source-text); min-width: 0; padding: 14px; border: 1px solid #343e4b; border-radius: 10px; background: #10141a; }
.playlist-picker[data-platform=netease] { --picker-rgb: 229, 57, 53; --picker-text: #ff9298; }
.playlist-picker[data-platform=qq] { --picker-rgb: 49, 194, 124; --picker-text: #79e8ad; }
.picker-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.picker-heading>div { display: flex; align-items: center; gap: 7px; min-width: 0; }
.picker-heading h3 { margin: 0; font-size: 12px; font-weight: 550; }
.picker-heading>span { color: #94a2b6; font-size: 10px; white-space: nowrap; }
.platform-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.netease-dot { background: var(--netease); }
.qq-dot { background: var(--qq); }
.picker-search { width: 100%; font-size: 12px; }
.picker-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0; }
.picker-tools button { font-size: 10px; }
.playlist-list { max-height: 360px; min-height: 110px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #414d5e transparent; }
.playlist-item { display: flex; align-items: center; gap: 9px; padding: 11px 7px; border: 1px solid transparent; border-radius: 7px; cursor: pointer; }
.playlist-item:hover { background: #1c232d; }
.playlist-item:has(:checked) { border-color: rgba(var(--picker-rgb), .45); background: rgba(var(--picker-rgb), .1); }
.playlist-item input { margin: 0; width: 15px; height: 15px; accent-color: var(--picker-text); }
.playlist-cover { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 6px; background: rgba(var(--picker-rgb), .13); color: var(--picker-text); font-size: 15px; }
.playlist-info { min-width: 0; flex: 1; }
.playlist-info strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 500; }
.playlist-info small { display: block; color: #96a3b6; font-size: 10px; margin-top: 2px; }
.selection-rank { color: var(--picker-text); font-size: 10px; }
.empty-state { padding: 24px 8px; text-align: center; font-size: 12px; color: #8c9bb0; }
.selection-order { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0; }
.selection-order h4 { font-size: 12px; font-weight: 550; margin: 0 0 9px; }
.selection-order h4 small { display: block; color: #99a6b9; font-size: 10px; font-weight: 400; }
.order-chip { display: flex; align-items: center; gap: 6px; padding: 7px 9px; border: 1px solid #303b49; border-radius: 7px; margin: 5px 0; background: #1a222d; font-size: 11px; }
.order-chip>span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.order-chip button { padding: 2px 7px; min-height: 27px; background: #2b3746; color: #c4d3e6; }
.selection-bottom { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 20px; padding-top: 17px; border-top: 1px solid #303b48; }
.selection-bottom>p { font-size: 12px; color: #99a9be; margin: 0; }
.plan-preview { margin-top: 20px; padding: 18px; border: 1px solid rgba(var(--target-rgb), .4); background: rgba(var(--target-rgb), .045); border-radius: 10px; }
.preview-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.preview-heading>span { font-size: 11px; color: #a3b3c8; }
.plan-preview ol { padding-left: 20px; }
.plan-preview li { padding: 6px 0; font-size: 12px; overflow-wrap: anywhere; }
.confirmation { display: flex; align-items: flex-start; gap: 9px; margin: 17px 0; font-size: 12px; }
.confirmation input { margin-top: 4px; }
#create-playlist-form h3 { margin: 0 0 15px; font-size: 16px; }
#create-playlist-form label { display: block; font-size: 12px; margin-bottom: 7px; }
.wide-input { width: 100%; margin: 6px 0 14px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 15px 0; }
.actions:empty { display: none; }
.status { font-size: 13px; color: #a9bbd1; padding: 12px 0; line-height: 1.9; overflow-wrap: anywhere; }
.status:empty { display: none; }
.status.error, .error { color: #ffadb4; }
.warning { background: #33281b; border: 1px solid #705638; color: #f3ce96; padding: 12px; border-radius: 8px; font-size: 12px; margin: 12px 0; }
.small { font-size: 12px; }
.progress-percent { font-size: 23px; color: var(--target-text); font-variant-numeric: tabular-nums; }
progress { width: 100%; height: 7px; border: 0; border-radius: 10px; background: #283444; overflow: hidden; accent-color: var(--target-color); }
progress::-webkit-progress-bar { background: #283444; border-radius: 10px; }
progress::-webkit-progress-value { background: linear-gradient(90deg, var(--source-color), var(--target-color)); border-radius: 10px; }
progress::-moz-progress-bar { background: linear-gradient(90deg, var(--source-color), var(--target-color)); }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 23px 0; }
.metric-grid>div { padding: 12px; border-radius: 8px; border: 1px solid #303c4c; background: #181f29; }
.metric-grid strong { display: block; color: #e7f0fb; font-size: 23px; font-weight: 550; }
.metric-grid span { font-size: 10px; color: #9daec4; }
.job-list { display: grid; gap: 9px; }
.job-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid #334153; border-radius: 8px; }
.job-item>div { min-width: 0; }
.job-item strong { display: block; font-size: 12px; font-weight: 550; overflow-wrap: anywhere; }
.job-item small { display: block; margin-top: 4px; color: #9cacc2; font-size: 11px; }
.preserved-note { color: #a6c5b7; font-size: 12px; margin-bottom: 0; }
.table-scroll { width: 100%; overflow: auto; margin: 15px 0; border: 1px solid #2d3949; border-radius: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; }
th { padding: 12px; background: #1d2632; color: #a9bad1; font-size: 11px; font-weight: 500; white-space: nowrap; }
td { padding: 12px; border-top: 1px solid #2a3545; vertical-align: top; min-width: 105px; }
td small { display: block; font-size: 10px; color: #91a2ba; margin-top: 3px; }
.pill { display: inline-block; border-radius: 5px; padding: 3px 7px; background: #2b3646; color: #b9c9df; font-size: 10px; white-space: nowrap; }
.pill.added, .pill.done, .pill.exact { background: #173c2c; color: #8ae5b1; }
.pill.error, .pill.failed, .pill.missing, .pill.unconfirmed { background: #482630; color: #ffb1bc; }
.pill.alternative, .pill.pending, .pill.ambiguous { background: #48391e; color: #f0d18f; }
.advanced-tools { margin: 24px 0; border: 1px solid #2e3846; border-radius: 12px; background: #11161d; }
summary { cursor: pointer; }
.advanced-tools>summary { display: flex; align-items: center; justify-content: space-between; padding: 20px 23px; gap: 15px; list-style: none; }
.advanced-tools>summary strong { display: block; font-size: 14px; font-weight: 550; }
.advanced-tools>summary small { display: block; color: #94a5bb; font-size: 11px; margin-top: 3px; }
.advanced-tools>summary::-webkit-details-marker { display: none; }
.advanced-body { padding: 0 20px 10px; }
.advanced-body>details { margin: 14px 0; border-bottom: 1px solid #2c3848; padding: 12px 0 20px; }
.advanced-body>details>summary { font-size: 13px; }
.advanced-body form label { font-size: 12px; display: block; margin-top: 12px; }
.advanced-body .panel { margin-top: 20px; }
.step { font-size: 15px; font-weight: 550; margin-bottom: 18px; }
.step span { font-size: 12px; color: #95a6bd; margin-left: 10px; font-weight: 400; }
.input-row, .hint-row, .result-heading, .toolbar, .pagination, .batch-heading { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 13px 0; }
.input-row input { flex: 1; min-width: 180px; }
.file-button { position: relative; color: #b6c6dc; font-size: 12px; cursor: pointer; }
.file-button input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.result-heading { justify-content: space-between; }
.result-heading h2 { margin: 0; font-size: 20px; }
.count, #filter-count, #page-info { color: #a8bad2; font-size: 12px; }
.toolbar input { flex: 1; }
.pagination { justify-content: center; }
.batch-heading { justify-content: space-between; }
.batch-heading h3 { font-size: 14px; }
.batch-heading label { font-size: 12px; color: #a2b4cc; }
#batch-limit { width: 85px; padding: 6px 8px; }
.batch, .audit-card { border: 1px solid #35455b; border-radius: 9px; padding: 14px; margin: 10px 0; background: #192330; }
.batch textarea { width: 100%; min-height: 100px; background: #0f1722; color: #cbd9ed; border: 1px solid #35455b; padding: 10px; border-radius: 6px; }
.batch button { margin-top: 8px; }
.audit-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.audit-card strong { font-size: 22px; display: block; }
.audit-card span { font-size: 11px; color: #a7b8d0; }
footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 22px 0 34px; border-top: 1px solid #293340; font-size: 11px; color: #889ab3; }
.footer-dot { margin: 0 8px; }
@media (min-width: 700px) { .hero h1 br { display: none; } .hero h1>span { margin-left: 8px; } }
@media (max-width: 1050px) {
  .workspace-grid { grid-template-columns: minmax(0, 1fr); }
  .workspace-aside { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .help-card { margin: 0; padding: 12px 10px; }
  .summary-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .hero-tags { display: none; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 18px; }
  .sidebar { padding: 16px 18px; gap: 15px; flex-wrap: wrap; }
  .brand { font-size: 19px; }
  .brand-sub { font-size: 9px; }
  .header-security { margin-left: auto; font-size: 10px; }
  .side-nav { order: 3; width: 100%; gap: 4px; }
  .nav-link { padding: 7px 10px; font-size: 11px; }
  .nav-link>span:first-child { font-size: 14px; }
  main { padding: 0 16px; }
  .hero { padding: 24px 3px 16px; }
  .hero .eyebrow { display: none; }
  .hero h1 { font-size: 32px; letter-spacing: -1.5px; }
  .hero p { font-size: 11px; max-width: 300px; }
  .migration-flow { margin-top: 18px; max-width: 320px; }
  .flow-provider { font-size: 11px; padding: 5px 8px; }
  .workflow-steps { gap: 8px; padding: 12px 0 20px; }
  .workflow-step { gap: 6px; }
  .workflow-step>span { width: 26px; height: 26px; border-radius: 7px; font-size: 10px; }
  .workflow-step strong { font-size: 10px; }
  .workflow-step small { display: none; }
  .panel { padding: 18px 14px; border-radius: 12px; }
  .section-heading h2 { font-size: 19px; }
  .section-heading .eyebrow { font-size: 9px; }
  .section-number { font-size: 20px; }
  .connection-panel>p { font-size: 11px; }
  .direction-picker { align-items: stretch; flex-direction: column; gap: 10px; padding: 12px; }
  .direction-picker small { font-size: 10px; }
  .direction-picker select { width: 100%; }
  .connect-toolbar { align-items: stretch; margin: 15px 0; }
  .connect-toolbar>button { width: 100%; }
  .login-option { width: 100%; justify-content: space-between; }
  .account-grid { gap: 10px; }
  .account-heading { padding: 12px 10px; gap: 7px; }
  .provider-logo { width: 27px; height: 27px; font-size: 16px; }
  .account-heading h3 { font-size: 12px; }
  .account-heading small { font-size: 8px; }
  .account-state { margin-left: 0; font-size: 9px; }
  .qr-slot { min-height: 175px; padding: 13px 7px; }
  .qr-slot img { width: 126px; height: 126px; border-width: 7px; }
  .qr-placeholder strong { font-size: 10px; }
  .qr-placeholder small { max-width: 110px; font-size: 9px; }
  .qr-placeholder>span { width: 48px; height: 48px; font-size: 25px; }
  .account-card>p { padding: 8px 9px; font-size: 10px; }
  .qr-actions { padding: 4px 7px 9px; }
  .qr-actions button { font-size: 10px; padding: 6px; }
  .workspace-aside { grid-template-columns: 1fr; gap: 10px; }
  .help-card { padding: 8px 10px; }
  .playlist-grid, .selection-order { grid-template-columns: 1fr; }
  .mode-picker { flex-direction: column; }
  .selection-bottom { flex-direction: column; align-items: stretch; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .job-item { align-items: flex-start; flex-direction: column; }
  .actions { gap: 8px; }
  .actions button { font-size: 11px; padding: 9px 12px; }
  .advanced-tools>summary { padding: 18px 14px; }
  .advanced-body { padding: 0 10px 10px; }
  .input-row { align-items: stretch; flex-direction: column; }
  .input-row input { min-width: 0; }
  .input-row button { width: 100%; }
  .result-heading h2 { font-size: 17px; }
  footer { font-size: 10px; }
}
@media (max-width: 370px) {
  .hero h1 { font-size: 31px; }
  .account-grid { grid-template-columns: 1fr; }
  .account-heading { flex-wrap: nowrap; }
  .account-state { margin-left: auto; }
  .qr-slot { min-height: 215px; }
  .qr-slot img { width: 160px; height: 160px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  button { transition: none; }
  .flow-lane i { animation: none; display: none; }
}
.local-login-help { margin-top: 16px; padding: 14px 16px; border: 1px solid var(--border, #303743); border-radius: 12px; color: #a7b0c0; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.local-login-help summary { cursor: pointer; color: #f1c4c7; font-weight: 600; }
.local-login-help p { margin: 10px 0 0; }
.local-login-help a { color: #a4ddc1; text-decoration: underline; }
.local-login-help code { color: #e2e7ef; }
