#transferModePreviewBtn{margin:4px 0 10px;font-weight:700;min-height:42px}
#transferPreviewDialog{box-sizing:border-box;border:0;border-radius:14px;padding:0;width:min(1040px,calc(100% - 24px));max-height:calc(100dvh - 24px);color:#172b45;background:#f6f8fb;box-shadow:0 20px 90px #0b183966}
#transferPreviewDialog::backdrop{background:#101c36aa}
#transferPreviewDialog *{box-sizing:border-box}
.tp-head{position:sticky;top:0;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 22px;background:white;border-bottom:1px solid #d5deeb}
.tp-head h2{font-size:19px;margin:0;border:0;padding:0}
#transferPreviewDialog button,#transferPreviewDialog select,#transferPreviewDialog input{font:inherit}
#transferPreviewDialog button{min-height:42px;cursor:pointer}
.tp-close{border:1px solid #c1cede;background:white;color:#172b45;border-radius:7px;padding:6px 16px;flex:none}
.tp-intro{margin:0;padding:13px 22px;font-size:13px;line-height:1.7;background:#eaf2ff}
.tp-body{display:grid;grid-template-columns:minmax(260px,1fr) minmax(280px,1.1fr);gap:24px;padding:20px 22px}
.tp-controls{display:flex;flex-direction:column;gap:13px;min-width:0}
.tp-controls label{display:block;font-size:13px;font-weight:600;line-height:1.6}
.tp-controls select{display:block;width:100%;max-width:100%;padding:9px 10px;min-height:42px;border:1px solid #bdcbdd;border-radius:7px;background:white;color:#172b45;margin-top:4px}
.tp-controls input[type=range]{width:100%;margin:8px 0;accent-color:#246fba}
.tp-checkbox{display:flex!important;align-items:center;gap:8px;min-height:40px;font-weight:400!important}
.tp-checkbox input{width:18px;height:18px;flex:none}
.tp-metrics,.tp-note{font-size:12px;line-height:1.7;color:#536780;margin:0;overflow-wrap:anywhere}
.tp-metrics{border-top:1px solid #d5deeb;padding-top:12px}
.tp-note{padding:12px 0 0}
.tp-stage{min-width:0;display:flex;align-items:center;flex-direction:column;gap:12px}
.tp-device{position:relative;width:min(100%,340px);line-height:0}
.tp-skin{display:block;width:100%;height:auto}
.tp-screen{position:absolute;overflow:hidden;background:#e7ecf2}
.tp-slot{position:absolute;overflow:hidden;background:#eef2f7;border:0;line-height:1.3}
.tp-slot-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:0;width:100%;height:100%;min-height:0!important;border:0;background:transparent;color:#66768a;font-size:clamp(8px,1vw,13px)!important;border-radius:0!important}
.tp-slot-button:hover{box-shadow:inset 0 0 0 2px #2582cc;background:#dbeafe}
.tp-slot-button strong{font-size:1.5em}
.tp-current{z-index:1;background:white}
.tp-current svg{width:100%;height:100%;display:block}
.tp-empty{padding:32px;text-align:center;line-height:1.8;background:white;border:1px dashed #bccbdf;border-radius:9px;width:100%;font-size:14px}
.tp-legend{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;width:100%;font-size:10px;line-height:1.4}
.tp-legend span{display:flex;align-items:center;gap:4px;white-space:nowrap}
.tp-legend i{width:17px;height:10px;border:1px solid #768399;display:inline-block}
.tp-caption{text-align:center;margin:0;font-size:12px;line-height:1.6;color:#536780;max-width:100%}
#transferPreviewDialog [hidden]{display:none!important}
@media(max-width:650px){#transferPreviewDialog{width:calc(100% - 12px);max-height:calc(100dvh - 12px)}.tp-head{padding:12px}.tp-head h2{font-size:16px}.tp-intro{padding:12px;font-size:12px}.tp-body{grid-template-columns:minmax(0,1fr);padding:14px 12px;gap:20px}.tp-device{max-width:300px}.tp-controls{gap:10px}.tp-slot-button{font-size:10px!important}}
