/* TransferDestinationView: 84px connection icons, 40px row icons, 14px row padding. */
.platform-dialog[data-view="target"] { background: #f3f2f8; }
.platform-dialog[data-view="target"] .dialog-header { grid-template-columns: 36px minmax(0,1fr) 36px; z-index: 3; }
.platform-dialog[data-view="target"] .target-panel { padding: 24px 24px 0; }
.destination-route { display: grid; grid-template-columns: 116px minmax(32px,1fr) 116px; align-items: start; gap: 4px; width: 100%; max-width: 480px; margin: 0 auto 28px; padding-block: 12px; }
.destination-source, .destination-placeholder { position: relative; display: flex; align-items: center; flex-direction: column; min-width: 0; }
#target-source-logo, .destination-placeholder .target-logo { flex: none; width: 84px; height: 84px; border-radius: 21px; }
#target-source-logo { display: block; object-fit: contain; }
.destination-placeholder .target-logo { display: grid; place-items: center; border: 3px dashed var(--accent); background: transparent; color: var(--accent); font-size: 34px; font-weight: 300; line-height: 1; }
.destination-placeholder .target-logo:has(img) { border: 0; }
.destination-placeholder .target-logo > img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.destination-route-label { max-width: 100%; margin-top: 22px; font-size: 16px; font-weight: 500; line-height: 1.3; text-align: center; overflow-wrap: anywhere; }
.destination-arrow { width: 100%; height: 30px; margin-top: 27px; color: var(--accent); }
.destination-source .target-summary { display: block; position: absolute; z-index: 1; top: 51px; inset-inline-start: 84px; width: 106px; min-width: 0; padding: 6px 8px; border: 0; border-radius: 9px; background: var(--accent); color: white; }
.destination-source .target-summary::before { content: ""; position: absolute; top: 12px; inset-inline-start: -10px; width: 12px; height: 14px; background: var(--accent); clip-path: polygon(100% 0,100% 100%,0 35%); }
.destination-source .target-summary h3 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; line-height: 1.35; font-weight: 500; }
.destination-source .target-summary p { margin-top: 2px; color: white; font-size: 11px; line-height: 1.35; }
#target-options { gap: 10px; }
#target-options .target-option { display: flex; width: 100%; min-height: 68px; padding: 14px; gap: 14px; border: 0; border-radius: 18px; background: white; color: var(--ink); text-align: start; cursor: pointer; }
#target-options .target-option:not(:disabled):hover { background: #f8f5ff; }
#target-options .target-option:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
#target-options .target-option > img { flex: none; width: 40px; height: 40px; border-radius: 10px; }
.target-option-detail { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 3px; }
.target-option-detail strong { font-size: 17px; line-height: 1.25; font-weight: 600; overflow-wrap: anywhere; }
.target-login-state { color: #d9363f; font-size: 13px; line-height: 1.3; font-weight: 500; }
.target-option.is-connected .target-login-state, .target-option[data-connected="true"] .target-login-state,
.target-login-state.is-connected, .target-login-state[data-connected="true"] { color: #238440; }
.target-option-circle { display: grid; place-items: center; position: relative; flex: none; width: 21px; height: 21px; border: 2px solid var(--accent); border-radius: 50%; margin-inline-start: auto; }
#target-options .target-option.is-selected, #target-options .target-option[aria-pressed="true"] { background: #eee6ff; }
.target-option.is-selected .target-option-circle, .target-option[aria-pressed="true"] .target-option-circle { background: var(--accent); }
.target-option.is-selected .target-option-circle::after, .target-option[aria-pressed="true"] .target-option-circle::after { content: ""; width: 8px; height: 4px; border-inline-start: 2px solid white; border-bottom: 2px solid white; transform: rotate(-45deg); margin-top: -2px; }
#target-options .target-option:disabled { cursor: default; }
#target-options .target-option.is-source { opacity: .48; }
.target-option[aria-busy="true"] .target-option-circle { background: transparent; border-color: #d5c5fa; border-top-color: var(--accent); animation: destination-spin .8s linear infinite; }
.target-option[aria-busy="true"] .target-option-circle::after { display: none; }
#target-panel .playlist-action-bar { padding-block: 12px; margin-top: 12px; border: 0; background: #f3f2f8ee; backdrop-filter: blur(12px); }
#target-panel #start-transfer { display: block; min-height: 44px; max-width: 520px; margin-inline: auto; font-size: 17px; padding-block: 10px; }
#target-panel #start-transfer:disabled { color: white; background: var(--accent); cursor: default; opacity: .48; }
#target-status:empty { display: none; }
[dir="rtl"] .destination-arrow { transform: scaleX(-1); }
[dir="rtl"] .destination-source .target-summary::before { transform: scaleX(-1); }
[dir="rtl"] .target-option.is-selected .target-option-circle::after, [dir="rtl"] .target-option[aria-pressed="true"] .target-option-circle::after { transform: rotate(45deg); }
@keyframes destination-spin { to { transform: rotate(360deg); } }
@media (max-width: 520px) {
  .platform-dialog[data-view="target"] .target-panel { padding: 20px 16px 0; }
  .destination-route { margin-bottom: 24px; }
  .destination-route-label { font-size: 15px; }
}
@media (max-width: 350px) {
  .destination-route { grid-template-columns: 96px minmax(24px,1fr) 96px; }
  #target-source-logo, .destination-placeholder .target-logo { width: 76px; height: 76px; border-radius: 19px; }
  .destination-arrow { margin-top: 23px; }
  .destination-source .target-summary { inset-inline-start: 66px; width: 94px; top: 45px; }
  .destination-route-label { font-size: 14px; }
}

/* A secondary sheet signs in to a destination without navigating away from the source. */
.destination-login-dialog { width: min(420px,calc(100% - 24px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid #dfdde6; border-radius: 22px; background: #f7f7fa; color: var(--ink); overflow: auto; box-shadow: 0 20px 80px #1d172d30; }
.destination-login-dialog::backdrop { background: #24222965; }
.destination-login-header { display: grid; grid-template-columns: 36px minmax(0,1fr) 36px; align-items: center; gap: 8px; min-height: 60px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: white; position: sticky; top: 0; z-index: 1; }
.destination-login-header h2 { grid-column: 2; font-size: 17px; line-height: 1.3; font-weight: 600; text-align: center; }
.destination-login-header .dialog-close { font-size: 27px; font-weight: 300; }
.destination-login-body { display: flex; flex-direction: column; gap: 20px; padding: 24px; }
.destination-login-icon { display: block; align-self: center; width: 64px; height: 64px; object-fit: contain; border-radius: 15px; }
.destination-login-form { display: flex; flex-direction: column; gap: 16px; }
.destination-login-form[hidden], .destination-login-dialog [hidden] { display: none; }
.destination-login-form label { display: flex; flex-direction: column; gap: 7px; font-size: 14px; font-weight: 550; }
.destination-login-form input, .destination-login-form select { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid #d9d6e0; border-radius: 10px; color: var(--ink); background: white; font: inherit; font-size: 15px; }
.destination-login-form input:focus, .destination-login-form select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.destination-login-hint { color: var(--muted); font-size: 12px; line-height: 1.5; font-weight: 400; }
.destination-login-status { margin: 0; color: #a02e36; font-size: 13px; line-height: 1.5; }
.destination-login-status[aria-busy="true"] { color: var(--muted); }
.destination-login-status:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .target-option[aria-busy="true"] .target-option-circle { animation: none; } }

#target-status.error { color: #b42318; }
