
  #tool-send .sd-head-recv, #tool-send .sd-recv { display: none; }
  #tool-send.sd-recv-mode .sd-head-send, #tool-send.sd-recv-mode .sd-dzwrap, #tool-send.sd-recv-mode .sd-opts { display: none; }
  #tool-send.sd-recv-mode .sd-head-recv { display: block; }
  #tool-send.sd-recv-mode .sd-recv:not([hidden]) { display: block; }
  .sd-card { display: flex; flex-direction: column; align-items: center; padding: 28px 26px 24px; border: 1px solid var(--border); border-radius: 20px; background: var(--card); text-align: center; }
  .sd-card > * { width: 100%; max-width: 560px; box-sizing: border-box; }
  .sd-sep { height: 1px; margin: 6px 0 18px; background: var(--border); }
  .sd-files, .sd-linkbox { text-align: left; }
  .sd-files .sd-list { margin-bottom: 4px; }
  .sd-linkbox { margin-top: 14px; }
  #tool-send .sd-opts > .hint { margin: 14px 0 0; text-align: center; }
  @media (max-width: 520px) { .sd-card { padding: 22px 16px 18px; } .sd-qr { width: min(240px, 100%); height: auto; aspect-ratio: 1; } }
  .sd-qr { width: 260px; height: 260px; margin: 0 auto; padding: 12px; border-radius: 18px; background: #fff; box-shadow: 0 8px 28px rgba(0,0,0,.28); box-sizing: border-box; }
  .sd-qr svg { display: block; width: 100%; height: 100%; }
  .sd-qr-wait { width: 100%; height: 100%; border-radius: 8px; background: linear-gradient(90deg, #eef0f4 25%, #f8f9fb 50%, #eef0f4 75%); background-size: 200% 100%; animation: sd-shimmer 1.2s linear infinite; }
  @keyframes sd-shimmer { to { background-position: -200% 0; } }
  @media (prefers-reduced-motion: reduce) { .sd-qr-wait { animation: none; } }
  .sd-qrlabel { margin: 14px 0 2px; font-weight: 700; font-size: 1.05rem; }
  .sd-label { margin: 0 0 6px; color: var(--muted); font-size: .85rem; font-weight: 600; }
  .sd-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
  .sd-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); }
  .sd-name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
  .sd-size { color: var(--muted); font-size: .85rem; white-space: nowrap; }
  .sd-acts { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
  .sd-acts button { padding: 9px 16px; }
  .sd-status { min-height: 1.4em; margin: 4px 0 12px; font-weight: 600; color: var(--muted); }
  .sd-status.wait { color: var(--text); }
  .sd-status.ok { color: var(--ok, #1a7f4b); } .sd-status.error { color: var(--error, #d92d20); }
  .sd-bar { height: 8px; border-radius: 99px; overflow: hidden; background: color-mix(in srgb, var(--text) 10%, transparent); margin: 0 0 12px; }
  .sd-bar[hidden] { display: none; }
  .sd-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent); transition: width .15s; }
  .sd-again { width: auto !important; margin: 0 auto 12px; }
  .sd-again[hidden] { display: none; }
  .sd-linkrow { display: flex; gap: 8px; }
  .sd-linkrow input { flex: 1; min-width: 0; padding: 9px 11px; border-radius: 9px; border: 1px solid var(--border); background: var(--bg); color: var(--muted); font: inherit; font-size: .85rem; }
  .sd-recv { max-width: 560px; margin: 0 auto; }
  #sdmsg.ok { color: var(--ok, #1a7f4b); } #sdmsg.error { color: var(--error, #d92d20); }
