@layer legacy {
:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f4f1;
  color: #151515;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

.shell { width: min(680px, 100%); margin: 0 auto; padding: 28px 18px 56px; }
.brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.brand-row h1 { margin: 0; font-size: 24px; letter-spacing: -0.04em; }
.brand-row p { margin: 2px 0 0; color: #747474; font-size: 14px; }
.mark { width: 42px; height: 42px; display: grid; place-items: center; background: #151515; color: white; border-radius: 13px; font-weight: 800; }

.card { background: #fff; border: 1px solid #e5e5df; border-radius: 22px; padding: 18px; margin-bottom: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.035); }
.eyebrow { font-size: 11px; letter-spacing: .14em; color: #8a8a84; font-weight: 700; margin-bottom: 10px; }
.room-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.room-row input, textarea { width: 100%; border: 1px solid #deded8; background: #fafaf8; border-radius: 14px; padding: 12px 13px; outline: none; }
.room-row input { font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.room-row input:focus, textarea:focus { border-color: #151515; }

.primary, .secondary, .ghost { border: 0; border-radius: 13px; padding: 12px 14px; font-weight: 700; }
.primary { background: #151515; color: #fff; }
.secondary { background: #ecece7; color: #151515; }
.ghost { margin-top: 9px; background: transparent; color: #666; padding-left: 2px; }

.status-row { display: flex; gap: 8px; align-items: center; margin-top: 13px; color: #666; font-size: 13px; }
.status-dot { width: 8px; height: 8px; border-radius: 999px; background: #b8b8b2; }
.status-dot.online { background: #1f9d55; box-shadow: 0 0 0 4px rgba(31,157,85,.10); }

.drop-zone { border: 1.5px dashed #d6d6cf; border-radius: 18px; min-height: 145px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 6px; padding: 22px; background: #fafaf8; }
.drop-zone strong { font-size: 17px; }
.drop-zone span { color: #81817b; font-size: 13px; max-width: 300px; }
.drop-zone input { margin-top: 10px; max-width: 100%; }

.text-send { margin-top: 14px; display: grid; gap: 8px; }
textarea { resize: vertical; min-height: 78px; }
.progress-wrap { margin: 16px 0 4px; }
.progress-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: #666; margin-bottom: 6px; }
progress { width: 100%; height: 8px; }
.hidden { display: none; }

.received { display: grid; gap: 9px; }
.received.empty { color: #85857f; font-size: 14px; }
.received-item { padding: 12px; background: #f7f7f4; border-radius: 14px; overflow-wrap: anywhere; }
.received-item a { color: #151515; font-weight: 700; }
.received-item small { display: block; margin-top: 5px; color: #85857f; }

@media (max-width: 500px) {
  .room-row { grid-template-columns: 1fr; }
  .primary { width: 100%; }
}

.build-tag { text-align:center; font-size:11px; color:#888; padding:4px 0 12px; }

/* v1.6 pairing: lightweight opt-in reminder; no credential ever shown. */
.helper-copy { font-size: 13px; line-height: 1.55; color: #747474; }
.remember-choice { margin-top: 12px; display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: #505050; }
.remember-choice input { accent-color: #151515; width: 17px; height: 17px; }

/* v1.6.2 — locally managed recipient computers, with no credentials in the UI. */
.devices-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.devices-heading .eyebrow { margin-bottom: 4px; }
.computers-list { display: grid; gap: 10px; }
.computer-row { border: 1px solid #e9e9e5; border-radius: 15px; padding: 12px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; }
.computer-row.selected { border-color: #9ecfb0; background: #f5fcf6; }
.computer-info { flex: 1 1 140px; min-width: 120px; display: grid; gap: 4px; overflow-wrap: anywhere; }
.computer-info strong { font-size: 14px; }
.computer-info small { color: #787873; font-size: 11px; }
.computer-row.selected .computer-info small { color: #287243; }
.computer-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.computer-actions button { font-size: 11px; padding: 8px 9px; border-radius: 9px; }
.computer-actions button:disabled { opacity: .48; cursor: default; }
.computer-actions .selected-device { color: #287243; background: #e2f5e7; border: none; font-weight: 700; }
.icon-action { border: 1px solid #e2e2de; background: #fff; color: #575751; }
.danger-action { color: #9a4545; }
.add-computer-details { margin-top: 13px; padding-top: 13px; border-top: 1px solid #ecece8; }
.add-computer-details summary { cursor: pointer; font-weight: 700; font-size: 13px; }
.add-computer-details .helper-copy { margin: 9px 0 0; }
@media (max-width: 380px) {
  .computer-actions { width: 100%; justify-content: flex-start; }
}

/* Manual room negotiation belongs behind advanced details once paired. */
.connection-card .status-row { margin: 8px 0 3px; }
.manual-connection { margin-top: 10px; border-top: 1px solid #ecece8; padding-top: 12px; }
.manual-connection > summary { cursor: pointer; color: #696963; font-size: 12px; font-weight: 650; margin-bottom: 12px; }
.manual-connection .room-row { margin-top: 12px; }
.manual-connection .helper-copy { font-size: 11px; }

/* v1.6.4: user-triggered presence, not continuous polling. */
.presence-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:8px 0 14px}
.presence-tools button{font-size:12px;padding:9px 12px;width:auto}
.presence-tools .helper-copy{font-size:11px;margin:0;flex:1 1 200px}
/* v1.6.3: direct-drop with grounded active-device availability. */
.send-to-label{font-size:12px;color:#74746c;letter-spacing:.04em;margin-bottom:12px}
.send-to-label strong{display:block;font-size:17px;margin-top:5px;letter-spacing:0;color:#151515}
.drop-zone.drag-active{border-color:#287e4e;background:#eefaf0;box-shadow:0 0 0 3px rgba(40,126,78,.10)}
.drop-zone .choose-files{display:inline-block;background:#181818;color:#fff;border-radius:12px;padding:10px 16px;cursor:pointer;font-size:13px;font-weight:700;margin-top:5px}
.drop-zone input{font-size:12px}
.computer-info small[data-availability="ready"]{color:#1f7744;font-weight:700}
.computer-info small[data-availability="unknown"]{color:#84847f}

/* v1.6.4: check is only a hint, not a confirmed data-channel connection. */
.device-state[data-availability="detected"], .computer-info small[data-availability="detected"]{color:#236d45;font-weight:650}
.device-state[data-availability="absent"], .computer-info small[data-availability="absent"]{color:#777}

/* v1.6.5: direct recipient file action, no cloud queue. */
.computer-actions .quick-send{background:#151515;color:#fff;border:0;white-space:nowrap}
.computer-actions .quick-send:disabled{opacity:.48;cursor:default}
input[hidden]{display:none}

/* Respect the hidden attribute even when button display styles are set. */
[hidden] { display: none; }

.first-use-card{border-color:#cce5d2;background:#f5fbf6}
.first-use-card h2{font-size:17px;margin:7px 0 8px}
.first-use-card p{font-size:13px;line-height:1.55;color:#526155}
[hidden]{display:none}

/* Drop Design System v1.9.1 — user-facing surface */
:root {
  --ink:#172342; --muted:#71809a; --accent:#4258e8; --accent-hover:#3045cb;
  --accent-soft:#ecf0ff; --line:#e3e9f4; --surface:#fff; --canvas:#f5f7fd;
  --success:#157853; --success-bg:#e8f8ef; --warning:#966217; --warning-bg:#fff5df;
  --danger:#b33946; --danger-bg:#fff0f1;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink);background:var(--canvas);color-scheme:light;
}
*,*:before,*:after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{background:radial-gradient(ellipse at top left,#ecf0ff 0,transparent 48%),var(--canvas);color:var(--ink);margin:0}
button,input,textarea{font:inherit}
button{cursor:pointer;transition:background .16s,transform .16s,border-color .16s}
button:active{transform:scale(.985)}
button:disabled{cursor:not-allowed;opacity:.52}
:focus-visible{outline:3px solid #95a6ff;outline-offset:2px}
.shell{position:relative}
.brand-row,header:not(.other-header){display:flex;align-items:center;gap:12px;margin-bottom:19px}
.brand-copy{min-width:0;flex:1}
.brand-copy h1,.brand-row h1,header h1{font-size:25px;line-height:1.05;font-weight:850;letter-spacing:-.065em;color:#12244c;margin:0}
.brand-copy h1 span,.brand-row h1 span{color:var(--accent)}
.brand-copy p,.brand-row p,header p{color:#71809a;font-size:11px;margin:5px 0 0;line-height:1.3}
.mark{width:45px;height:45px;flex:0 0 45px;display:grid;place-items:center;position:relative;color:#fff;border-radius:16px;background:linear-gradient(145deg,#5269f5 0%,#3344c9 100%);box-shadow:0 8px 22px rgba(65,85,219,.26);font-weight:900}
.mark-glyph{font-size:24px;letter-spacing:-.08em;transform:translateX(-1px)}
.mark-orbit{position:absolute;right:6px;top:7px;width:7px;height:7px;border-radius:100%;background:#b8f2e4;box-shadow:0 0 0 2px rgba(255,255,255,.32)}
.brand-chip{font-size:10px;font-weight:750;padding:6px 9px;border-radius:99px;background:#e7efff;color:#4155b5;letter-spacing:.015em}
.card{border:1px solid var(--line);background:var(--surface);border-radius:20px;padding:19px;margin:0 0 14px;box-shadow:0 8px 25px rgba(22,45,103,.035)}
.eyebrow,.label{display:block;font-size:10px;letter-spacing:.13em;font-weight:800;color:#8290aa;margin:0 0 5px;text-transform:uppercase}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px}
.section-heading h2{font-size:18px;letter-spacing:-.035em;line-height:1.15;margin:0;color:#142344}
h2{color:#142344}
.hero-status{border:1px solid #d9e2ff;border-radius:22px;padding:19px 20px 17px;background:linear-gradient(135deg,#edf2ff,#fafcff);box-shadow:0 9px 26px rgba(57,83,184,.06);margin-bottom:14px;transition:background .2s,border .2s}
.hero-status-top{display:flex;align-items:center;gap:9px;margin-bottom:10px}
.hero-kicker{font-size:10px;font-weight:800;letter-spacing:.13em;color:#5e72ae}
.hero-status-title{font-size:19px;line-height:1.22;font-weight:800;letter-spacing:-.035em;color:#1a2d5e}
.status-help{font-size:12px;color:#64759f;line-height:1.5;margin:7px 0 11px}
.hero-status-icon,.status-dot,#dot{display:inline-block;flex-shrink:0;width:9px;height:9px;border-radius:50%;background:#7e91dc;box-shadow:0 0 0 4px rgba(126,145,220,.17)}
.hero-status[data-tone="success"]{background:linear-gradient(135deg,#e9f8f1,#f6fffa);border-color:#cde9da}
.hero-status[data-tone="success"] .hero-status-title{color:#145b43}
.hero-status[data-tone="success"] .hero-kicker,.hero-status[data-tone="success"] .status-help{color:#438064}
.hero-status[data-tone="success"] .hero-status-icon,.hero-status[data-tone="success"] #dot,.hero-status[data-tone="success"] .status-dot{background:#1b9a67;box-shadow:0 0 0 4px #ccefde}
.hero-status[data-tone="warning"],.hero-status[data-tone="waiting"]{background:linear-gradient(135deg,#fff8e9,#fffefa);border-color:#f4e6c7}
.hero-status[data-tone="warning"] .hero-status-title,.hero-status[data-tone="waiting"] .hero-status-title{color:#845717}
.hero-status[data-tone="warning"] .hero-kicker,.hero-status[data-tone="waiting"] .hero-kicker,.hero-status[data-tone="waiting"] .status-help,.hero-status[data-tone="warning"] .status-help{color:#967a4c}
.hero-status[data-tone="warning"] .hero-status-icon,.hero-status[data-tone="waiting"] .hero-status-icon,.hero-status[data-tone="warning"] #dot,.hero-status[data-tone="waiting"] #dot,.hero-status[data-tone="warning"] .status-dot,.hero-status[data-tone="waiting"] .status-dot{background:#d4a13f;box-shadow:0 0 0 4px #fae6b8}
.hero-status[data-tone="error"]{background:linear-gradient(135deg,#fff0f1,#fffafa);border-color:#f4d6d9}
.hero-status[data-tone="error"] .hero-status-title{color:#ad3448}
.hero-status[data-tone="error"] .hero-kicker,.hero-status[data-tone="error"] .status-help{color:#a3616b}
.hero-status[data-tone="error"] .hero-status-icon,.hero-status[data-tone="error"] #dot,.hero-status[data-tone="error"] .status-dot{background:#c64a60;box-shadow:0 0 0 4px #fce1e5}
.hero-status .text-action{display:inline-flex;align-items:center;gap:5px;padding:6px 0;background:transparent;border:0;color:#4258b5;font-weight:800;font-size:12px;text-align:left;width:auto;margin:0}
.hero-status[data-tone="success"] .text-action{display:none}
.primary,.file-button,.choose-files{background:var(--accent);color:white;border:0;border-radius:12px;font-weight:750;text-align:center;min-height:43px;display:inline-flex;justify-content:center;align-items:center;padding:10px 17px;text-decoration:none}
.primary:hover,.file-button:hover,.choose-files:hover{background:var(--accent-hover)}
.secondary{background:#eff2fc;color:#2b3e77;border:1px solid #e4e9fa;border-radius:12px;min-height:42px;padding:9px 13px;font-weight:750;text-align:center}
.secondary:hover{background:#e5ebff}
.ghost,.subtle-action,.small-action{background:transparent;border:0;color:#4258c8;font-weight:700;border-radius:10px;padding:8px 10px;text-align:center;min-height:34px}
.ghost:hover,.subtle-action:hover,.small-action:hover{background:#edf1fd}
.small-action{border:1px solid #dfe5f7;font-size:12px;min-height:36px;background:#f6f8ff}
.subtle-action{display:inline-flex;align-items:center;justify-content:center;font-size:12px;margin-top:10px;min-height:36px;padding:5px 9px}
.split-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:9px 0 0}
.split-actions button{min-width:0}
.devices-list,.computers-list{display:grid;gap:8px}
.device-row,.computer-row{position:relative;display:flex;gap:9px;align-items:center;flex-wrap:wrap;border:1px solid #e7ebf5;background:#fbfcff;border-radius:15px;padding:12px 11px}
.device-row.selected,.computer-row.selected{border-color:#bfcafc;background:#f3f6ff}
.device-row:before,.computer-row:before{content:"";display:block;align-self:flex-start;flex:0 0 31px;width:31px;height:31px;border-radius:11px;background:#eaf0ff center/cover;mask:none}
.device-row:after,.computer-row:after{content:"▣";position:absolute;top:17px;left:20px;color:#5667ca;font-size:18px;font-weight:700;pointer-events:none}
.device-info,.computer-info{min-width:105px;flex:1 1 105px;overflow-wrap:anywhere}
.device-name,.computer-info strong{font-weight:800;font-size:13px;color:#23365f}
.device-state,.computer-info small{font-size:11px;color:#78849b;line-height:1.4}
.device-state[data-availability="ready"],.computer-info small[data-availability="ready"],.device-state[data-availability="detected"],.computer-info small[data-availability="detected"]{color:var(--success);font-weight:700}
.device-row button,.computer-actions button{font-size:11px;min-height:34px;padding:8px 10px}
.device-row .device-quick-send,.computer-actions .quick-send{background:#4258e8;color:white;border:0;border-radius:10px;font-weight:750}
.device-row .device-select,.computer-actions .secondary{background:#e6ebfa;color:#3551af;border:0;border-radius:10px}
.device-row .device-select:disabled,.computer-actions .selected-device{background:#dff2e8;color:#19744f;border-radius:10px}
.device-hint,.helper-copy{font-size:11px;color:#7c89a1;line-height:1.55;margin:9px 0 0}
.device-more,.computer-more{position:relative;align-self:center}
.device-more summary,.computer-more summary{cursor:pointer;list-style:none;font-size:19px;font-weight:700;color:#7080a3;text-align:center;width:33px;height:34px;display:grid;place-items:center;border-radius:9px}
.device-more summary::-webkit-details-marker,.computer-more summary::-webkit-details-marker{display:none}
.device-more[open],.computer-more[open]{flex:0 0 100%;border-top:1px solid #e3eaf8;padding-top:7px}
.device-more[open] .device-more-buttons,.computer-more[open] .computer-more-buttons{display:flex;flex-wrap:wrap;gap:7px;margin-top:7px}
.device-more .ghost,.computer-more .icon-action{background:#edf1fc;color:#415480}
.device-more .danger-action,.computer-more .danger-action{color:#b13b50}
.computer-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.send-to-label{font-size:12px;color:#71809a;margin:0 0 12px;line-height:1.4;letter-spacing:0}
.send-to-label strong{display:inline;font-size:12px;color:#2d4186;margin:0;letter-spacing:0}
.file-drop-zone,.drop-zone{border:1.8px dashed #bac8f8;border-radius:18px;background:linear-gradient(180deg,#f7f9ff,#fdfdff);display:grid;place-items:center;text-align:center;gap:8px;padding:22px 12px;min-height:185px;transition:border-color .15s,background .15s}
.file-drop-zone.drag-active,.drop-zone.drag-active{background:#edf2ff;border-color:#647aef;box-shadow:inset 0 0 0 1px #94a4ff}
.upload-graphic{display:grid;place-items:center;background:#e7edff;color:#435ee0;width:48px;height:48px;border-radius:16px;font-size:28px;font-weight:500;line-height:1}
.file-drop-zone strong,.drop-zone strong{font-size:15px;letter-spacing:-.02em;color:#243665}
.file-drop-zone span:not(.drop-icon),.drop-zone span{font-size:12px;color:#7d8da9;line-height:1.5}
.file-drop-zone .file-button,.drop-zone .choose-files{margin-top:4px;font-size:12px;max-width:100%;width:auto;min-width:132px}
#file{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none;clip-path:inset(50%);overflow:hidden}
.share-divider{display:flex;align-items:center;gap:10px;margin:18px 0 13px;font-size:11px;color:#a0acc0;text-align:center}
.share-divider:before,.share-divider:after{content:"";height:1px;background:#ecf0f7;flex:1}
textarea,.room-row input,.settings-body input{width:100%;min-width:0;max-width:100%;background:#fafbfe;border:1px solid #dfe5f3;border-radius:12px;font-size:13px;padding:12px 13px;color:#21345c;outline:none;resize:vertical}
textarea::placeholder,input::placeholder{color:#9ba6bc}
textarea{min-height:76px;margin:10px 0 0}
textarea:focus,input:focus{border-color:#8798fa;box-shadow:0 0 0 3px #e9edff}
.transfer-card>.secondary,#send-tab{width:100%;margin-top:0}
.progress-wrap{margin-top:15px}
.progress-meta{color:#52648a;font-size:11px;display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 7px}
progress{appearance:none;-webkit-appearance:none;height:8px;width:100%;overflow:hidden;border:0;border-radius:100px;background:#e9edfc}
progress::-webkit-progress-bar{background:#e9edfc;border-radius:100px}
progress::-webkit-progress-value{background:linear-gradient(90deg,#4f64ec,#6d87ff);border-radius:100px}
progress::-moz-progress-bar{background:#566ef0;border-radius:100px}
.received{display:grid;gap:9px;font-size:12px}
.received.empty{font-size:12px;color:#8591a8;min-height:40px;align-content:center}
.received-item{background:#f7f9ff;border:1px solid #edf0fb;border-radius:13px;padding:12px;overflow-wrap:anywhere;line-height:1.55}
.received-item a{color:#3e54ca;font-weight:750}
.received-item small{color:#8a95aa;font-size:11px;margin-top:4px}
.received-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.received-actions button{font-size:11px;padding:8px 10px;min-height:34px}
.advanced-tools{margin:18px 0 0;border-top:1px solid #e1e7f2;padding-top:13px}
.advanced-tools>summary{cursor:pointer;font-size:12px;font-weight:750;color:#7787a6;padding:8px 4px}
.advanced-inner{border:1px solid #e1e8f5;border-radius:16px;background:white;padding:3px 14px;margin-top:9px}
.advanced-section{border-bottom:1px solid #edf0f7;padding:12px 2px}
.advanced-section:last-child{border-bottom:0}
.advanced-section>summary,.advanced-section>details>summary{cursor:pointer;color:#45577e;font-size:12px;font-weight:740;line-height:1.4}
.advanced-body,.settings-body{display:grid;gap:9px;padding:13px 0 3px;font-size:12px;color:#78859e}
.advanced-body p,.settings-body p{font-size:11px;line-height:1.5;margin:4px 0}
.settings-body label{font-size:11px;font-weight:750;color:#61718d}
.settings-body input{font-size:12px}
.settings-body .primary{margin-top:6px;width:100%}
.technical-room{margin-top:10px;padding-top:13px;border-top:1px solid #e8ecf5;display:grid;gap:6px;color:#818ca3;font-size:11px}
.technical-room strong{font-size:17px;color:#43527f;letter-spacing:.14em}
.technical-status{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px;color:#52617e;background:#f7f9ff;padding:10px;border-radius:10px;overflow-wrap:anywhere}
.qr-code{max-width:100%;display:flex;justify-content:center}
.qr-code svg{max-width:230px;width:100%;height:auto}
.qr-panel{background:#fafbff;border:1px solid #ecf0ff;border-radius:12px;padding:12px}
.qr-warning{color:#b35d31}
.phone-link{color:#4359c7;font-size:11px;overflow-wrap:anywhere}
.setup-card,.first-use-card{background:#f3f7ff;border-color:#dce5ff}
.setup-card strong,.first-use-card h2{font-size:15px;color:#263a7e}
.setup-card p,.first-use-card p{font-size:12px;line-height:1.5;color:#6679a1;margin:8px 0}
.build-tag{font-size:11px;color:#9aa7ba;text-align:center;padding:16px 0 10px}
.build-tag a{color:#7788aa;text-decoration:none}
[hidden],.hidden{display:none}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto;transition:none;animation:none}}


/* Brand lockup 1.9.1 — approved blue/mint mark + "drop" without the period. */
.brand-row{gap:12px}
.brand-copy{flex:1;min-width:0}
.brand-wordmark{display:block;margin:0;line-height:0}
.brand-logo{display:block;width:148px;height:auto;max-width:100%;object-fit:contain}
.brand-copy p{margin:3px 0 0;color:#72809d;line-height:1.35;font-size:11px}
.brand-icon{width:46px;height:46px;flex:0 0 46px;object-fit:contain;border-radius:13px}
@media(max-width:360px){.brand-logo{width:130px}.brand-chip{font-size:9px;padding:5px 7px}}


}

/* drop public surface: consumer overrides historical layout without override wars. */
/* drop 1.9.2 — consumer layout. Calm hierarchy; no developer tools on the public surface. */
:root { --canvas:#fff; --surface:#fff; --ink:#172342; --muted:#758199; --accent:#4258e8; --line:#e9edf4; }
body {background:#fff;color:var(--ink)}
.shell {max-width:470px;margin:0 auto;padding:17px 18px 32px}
.brand-row {display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 24px}
.brand-wordmark {margin:0;line-height:0}
.brand-logo {width:128px;height:auto;object-fit:contain}
.header-help {width:33px;height:33px;border-radius:50%;display:grid;place-items:center;border:1px solid var(--line);font-weight:700;color:#758199;text-decoration:none;font-size:15px;background:#fff;flex-shrink:0}
.header-help:focus-visible,.header-help:hover {border-color:#bdc8ee;color:var(--accent)}
.hero-status {display:flex;gap:11px;align-items:flex-start;background:#f7f9fc;border:1px solid var(--line);border-radius:12px;box-shadow:none;padding:11px 12px;margin:0 0 22px;min-height:46px}
.hero-status[data-tone="success"] {background:#f4faf7;border-color:#e0efe6}
.hero-status[data-tone="error"] {background:#fff5f6;border-color:#f4dfe2}
.hero-status[data-tone="warning"] {background:#fffbf2}
.hero-status .hero-status-icon,.hero-status .status-dot,.hero-status #dot {width:8px;height:8px;margin:7px 0 0;box-shadow:none;flex:none}
.status-copy {flex:1;min-width:0}
.hero-status-title {font-size:12.5px;letter-spacing:0;font-weight:700;line-height:1.45;color:#263453}
.status-help {font-size:11.5px;line-height:1.4;margin:2px 0 0;color:#74819a}
.hero-status[data-tone="success"] .status-help {display:none}
.hero-status .text-action {flex-shrink:0;font-size:11px;padding:2px 0;font-weight:700;white-space:nowrap;align-self:center}
.hero-status[data-tone="success"] .text-action {display:none}
.devices-card,.transfer-card,.received-card {background:transparent;border:0;box-shadow:none;border-radius:0;padding:0;margin:0 0 23px}
.section-heading {margin:0 0 11px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.section-heading h2 {margin:0;font-size:15px;font-weight:750;letter-spacing:-.025em;color:#21304a}
.heading-actions {display:flex;align-items:center;gap:5px}
.icon-button {width:30px;height:30px;display:grid;place-items:center;min-height:0;padding:0;border-radius:9px;background:#fff;color:#506182;border:1px solid #e4e9f2;font-size:19px;line-height:1;font-weight:400}
.icon-button:hover {background:#f5f7ff;color:var(--accent)}
.add-button {font-weight:500;font-size:22px}
.devices-list,.computers-list {gap:7px}
.device-row,.computer-row {border:1px solid #e7ebf2;background:#fff;border-radius:11px;padding:11px 10px;gap:7px;min-height:59px;box-shadow:none}
.device-row.selected,.computer-row.selected {border-color:#aebcf9;background:#f9faff}
.device-row:before,.computer-row:before {flex:0 0 26px;width:26px;height:26px;border-radius:8px;background:#edf1ff}
.device-row:after,.computer-row:after {top:17px;left:18px;font-size:14px;content:"▣";color:#6174c6}
.device-info,.computer-info {min-width:0;flex:1}
.device-info[role="button"],.computer-info[role="button"] {cursor:pointer}
.device-info[role="button"]:hover .device-name,.computer-info[role="button"]:hover strong {color:var(--accent)}
.device-name,.computer-info strong {font-size:12.5px;font-weight:750;color:#1e2c48}
.device-state,.computer-info small {font-size:11px;color:#8490a2}
.device-row .device-quick-send,.computer-actions .quick-send {min-height:31px;font-size:11px;padding:6px 11px;border-radius:8px;background:#ecf0ff;color:#314bb5}
.device-row .device-quick-send:hover,.computer-actions .quick-send:hover {background:#dfe7ff}
.device-more summary,.computer-more summary {width:27px;height:28px;font-size:18px}
.computer-actions {gap:3px}
.transfer-card>.section-heading {margin-bottom:11px}
.send-to-label {font-size:11px;line-height:1.3;color:#8a96aa;margin:0;text-align:right}
.send-to-label strong {font-size:11px;font-weight:750;color:#364eaa;white-space:nowrap}
.file-drop-zone,.drop-zone {min-height:153px;border:1.5px dashed #ced6e8;border-radius:12px;background:#fbfcff;gap:4px;padding:14px 12px;box-shadow:none}
.file-drop-zone.drag-active,.drop-zone.drag-active {border-color:var(--accent);background:#f0f3ff}
.upload-graphic {width:34px;height:34px;border-radius:9px;background:#edf1ff;color:#5069d6;font-size:21px;margin-bottom:2px}
.file-drop-zone strong,.drop-zone strong {font-size:13px;color:#233353}
.file-drop-zone span:not(.drop-icon),.drop-zone span {font-size:11px;color:#8490a4;line-height:1.35}
.file-drop-zone .file-button,.drop-zone .choose-files {min-width:0;min-height:35px;padding:7px 15px;margin:7px 0 0;border-radius:9px;background:var(--accent);font-size:11.5px}
.message-box {margin-top:11px}
.message-box textarea {background:#fff;border:1px solid #e1e6ef;min-height:58px;max-height:125px;margin:0;padding:11px;border-radius:10px;font-size:12px;resize:vertical}
.message-actions {display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:7px}
.message-actions .secondary,.message-box>.secondary {width:auto;min-height:33px;border-radius:9px;margin:7px 0 0;padding:7px 12px;font-size:11px;background:#edf1fa;color:#3453af}
.message-actions .secondary {margin:0}
.message-actions .tab-action {background:none;border:0;color:#6c7b9b;font-size:11px;padding:5px 0}
.received {font-size:11.5px}
.received.empty {min-height:auto;color:#99a4b5;font-size:11.5px}
.received-item {background:#f9fafc;border:1px solid var(--line);box-shadow:none;padding:11px;border-radius:10px}
.setup-card,.invite-card,.first-use-card,.pairing-card {box-shadow:none;border-radius:12px;padding:15px;margin-bottom:18px}
.setup-card {background:#f9faff;border-color:#e2e8f7}
.setup-card p,.pairing-card p {line-height:1.5}
.pairing-card {background:#fff}
.pairing-card .qr-panel {margin:10px 0;border:0;padding:4px 0}
.pairing-card .qr-code svg {max-width:205px}
.pairing-card .pairing-actions {display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:9px}
.pairing-card .pairing-actions button {font-size:11px;width:auto;min-height:32px}
.pairing-card .pairing-extras {font-size:11px;color:#7687a1;margin-top:13px}
.add-computer-details {margin-top:10px;border:0;padding:0}
.add-computer-details>summary {font-size:11px;font-weight:600;color:#8490a6}
.build-tag {font-size:10px;color:#a3acba;margin-top:9px;padding:8px 0}
.build-tag button {border:0;background:transparent;padding:0;font:inherit;color:inherit;min-height:unset}
.build-tag a {color:#8995aa}
@media (max-width:430px) {
  .shell {padding:14px 15px 25px;max-width:100%}
  .brand-row {margin-bottom:19px}
  .brand-logo {width:120px}
  .device-row,.computer-row {padding:10px 9px}
  .hero-status {margin-bottom:19px}
}


/* drop 1.9.4 RC2 — public accessibility and comfort tokens.
   The historical styles are isolated in @layer legacy; this consumer layer is authoritative. */
:root { --ink:#172342; --muted:#5B6980; --accent:#4258E8; --focus:#3045CB; --line:#A6B2C7; }
body, input, textarea, button {color:var(--ink)}
.primary,.file-drop-zone .file-button,.drop-zone .choose-files {color:#fff}
.header-help {color:#364B70}
:where(.primary,.file-drop-zone .file-button,.drop-zone .choose-files):hover {color:#fff}
:focus-visible {outline:3px solid var(--focus);outline-offset:3px}
:where(a,button,summary,input,textarea):focus-visible {box-shadow:0 0 0 2px #fff,0 0 0 5px var(--focus)}
:where(button,summary)[disabled] {cursor:not-allowed}
.header-help, .icon-button, .add-button {width:44px;min-width:44px;height:44px;min-height:44px;display:inline-grid;place-items:center;font-size:19px}
.heading-actions {gap:5px}
.hero-status .text-action, .message-actions .tab-action {min-height:44px;padding:8px 9px;font-size:12px;display:inline-flex;align-items:center;justify-content:center}
.hero-status .text-action {min-width:70px}
.hero-status-title {font-size:13px;line-height:1.45}
.status-help, .hero-status[data-tone="waiting"] .status-help,
.hero-status[data-tone="warning"] .status-help,
.hero-status[data-tone="error"] .status-help {color:var(--muted);font-size:12px;line-height:1.5}
.hero-status[data-tone="success"] .hero-status-title {color:#145B43}
.hero-status[data-tone="error"] .hero-status-title {color:#9E2939}
.hero-status[data-tone="warning"] .hero-status-title {color:#825312}
.helper-copy,.device-hint,.device-state,.computer-info small,.file-drop-zone span:not(.drop-icon),.drop-zone span,
.send-to-label,.send-to-label strong,.received.empty,.received-item small,.build-tag,.build-tag a,
.setup-card p,.first-use-card p,.pairing-card p,.pairing-card .pairing-extras,.phone-link,
.add-computer-details>summary,.progress-meta {color:var(--muted);font-size:12px;line-height:1.5}
.device-state[data-availability="ready"],.computer-info small[data-availability="ready"],
.device-state[data-availability="detected"],.computer-info small[data-availability="detected"] {color:#157853}
.device-state[data-availability="absent"],.computer-info small[data-availability="absent"] {color:var(--muted)}
.device-row,.computer-row {border-color:#C6CFDE;background:#fff}
.device-row.selected,.computer-row.selected {border:2px solid #4258E8;background:#F3F5FF}
.device-info:is(button),.computer-info:is(button) {
  appearance:none;border:0;background:transparent;padding:4px 2px;margin:0;text-align:left;
  cursor:pointer;min-height:44px;display:grid;align-content:center;gap:3px;border-radius:6px;
}
.device-info:is(button):hover .device-name,.computer-info:is(button):hover strong {text-decoration:underline;color:#3045CB}
.device-info:is(button):disabled,.computer-info:is(button):disabled {opacity:.55;text-decoration:none}
.device-info:is(button):focus-visible,.computer-info:is(button):focus-visible {outline:3px solid var(--focus);outline-offset:2px}
.device-row .device-quick-send,.computer-actions .quick-send,
.device-more summary,.computer-more summary {min-height:44px;min-width:44px;height:44px;display:inline-grid;place-items:center}
.device-row .device-quick-send,.computer-actions .quick-send {padding:8px 12px;font-size:12px}
.device-more summary,.computer-more summary {color:#3D4F70;border-radius:9px}
.device-more .ghost,.computer-more .icon-action,.device-more .danger-action,.computer-more .danger-action,
.received-actions button,.pairing-card .pairing-actions button {min-height:44px;padding:10px 12px;font-size:12px}
.file-drop-zone,.drop-zone {border:2px dashed #7A8AAD;background:#FBFCFF}
.file-drop-zone[data-ready="true"],.drop-zone[data-ready="true"] {border-color:#7483AF}
.file-drop-zone.drag-active,.drop-zone.drag-active {border-color:var(--accent);box-shadow:0 0 0 2px #dbe2ff}
.file-drop-zone .file-button,.drop-zone .choose-files {min-height:44px;min-width:132px;padding:10px 16px;font-size:13px}
#file[hidden] {display:none}
.message-label {display:block;font-size:13px;line-height:1.4;font-weight:700;color:#263453;margin:12px 0 5px}
.message-box textarea {margin:0;min-height:66px;border:1px solid #8593AF;font-size:14px;line-height:1.5}
.message-box textarea::placeholder {color:#5B6980;opacity:1}
.message-actions .secondary,.message-box>.secondary {min-height:44px;padding:10px 15px;font-size:13px}
.message-actions {gap:8px;flex-wrap:wrap}
.received-item a {color:#2D43A9;text-decoration:underline;text-underline-offset:2px}
.received-item small {font-size:12px}
.build-tag {font-size:12px;margin:16px 0 0;padding:12px 0;text-align:center}
.build-tag a {color:#364A77;text-decoration:underline;text-underline-offset:2px}
.add-computer-details>summary {min-height:44px;display:flex;align-items:center;color:#354B72}
.setup-card p,.first-use-card p {color:var(--muted)}
.status-dot,#dot,.hero-status-icon {flex-shrink:0}
/* Loading/hidden state is never revealed by competing layout declarations. */
[hidden],.hidden {display:none!important}
@media (max-width:430px) {
  .header-help {width:44px;height:44px}
  .device-row,.computer-row {column-gap:6px;row-gap:7px}
  .device-row .device-quick-send,.computer-actions .quick-send {padding-left:8px;padding-right:8px}
}
@media (prefers-reduced-motion:reduce) {
 *,*::before,*::after {animation:none!important;transition:none!important;scroll-behavior:auto!important}
}

/* Reflow at high browser zoom: switch crowded device rows to a single column. */
.devices-list,.computers-list,.transfer-card {container-type:inline-size}
@container (max-width:245px) {
 .device-row,.computer-row {display:flex;flex-direction:column;align-items:stretch;gap:5px}
 .device-row::before,.computer-row::before,.device-row::after,.computer-row::after {display:none}
 .device-info,.computer-info,.device-info:is(button),.computer-info:is(button) {flex:auto;min-width:0;width:100%;overflow-wrap:normal;word-break:normal}
 .device-row .device-quick-send,.computer-actions .quick-send {width:100%;min-width:0}
 .computer-actions {width:100%;display:flex;flex-direction:column;align-items:stretch}
 .device-more,.computer-more {align-self:flex-end}
 .file-drop-zone .file-button,.drop-zone .choose-files {min-width:0;max-width:100%;width:100%;overflow-wrap:break-word}
 .message-actions .secondary,.message-box>.secondary,.message-actions .tab-action {width:100%}
 .section-heading {flex-wrap:wrap}
}

/* drop 1.9.6 RC4 — legible feedback, keyboard and live announcements */
.sr-only {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.message-actions .tab-action {color:var(--muted)}
.message-actions .secondary:disabled,.message-box>.secondary:disabled {opacity:.62;cursor:not-allowed}
.icon-button[aria-busy="true"] {cursor:progress}
@media (prefers-reduced-motion:no-preference) {
  .icon-button[aria-busy="true"] {animation:drop-scan-spin 1.1s linear infinite}
  @keyframes drop-scan-spin {to {transform:rotate(360deg)}}
}

.action-feedback {margin:4px 0 12px;padding:10px 12px;border-radius:10px;border:1px solid #D3DCEC;background:#F4F6FF;color:#263453;font-size:12px;line-height:1.5}
.action-feedback[data-tone="warning"] {background:#FFF9EF;border-color:#E9CDA5;color:#694315}
.action-feedback[data-tone="error"] {background:#FFF5F5;border-color:#EDC6CD;color:#922538}
.action-feedback[data-tone="success"] {background:#F3FAF6;border-color:#B8DEC9;color:#145B43}
.pairing-feedback {font-size:12px;line-height:1.5;color:var(--ink);text-align:center;margin:7px 0 0}

/* V1.9.6: one-time replacement of legacy bindings (no new main-screen controls). */
.legacy-replacement { margin: 12px 0; display: grid; gap: 7px; }
.legacy-replacement[hidden] { display: none !important; }
.legacy-replacement label { font-size: 14px; font-weight: 600; color: #172342; }
.legacy-replacement select { width: 100%; min-height: 44px; padding: 9px 12px; font: inherit; color: #172342; background: #fff; border: 1px solid #8592a6; border-radius: 10px; }
.legacy-replacement select:focus-visible { outline: 3px solid #4258e8; outline-offset: 2px; }
