:root{font-family:"Segoe UI",Arial,sans-serif;color:#254537;background:#f6f7f1;font-synthesis:none;--line:#dce4d6;--muted:#687865}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}a{color:#315e40}.shell{max-width:1220px;margin:auto;padding:0 32px}header{display:flex;align-items:center;justify-content:space-between;padding:27px 0;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:10px;font-size:24px;font-weight:750;text-decoration:none;letter-spacing:-1px}.brand>span{background:#244a36;color:#dfedbf;border-radius:11px;width:35px;height:35px;text-align:center;font-size:29px;font-weight:400}.local-label{font-size:12px;color:var(--muted)}.layout{display:grid;grid-template-columns:195px minmax(0,1fr);gap:38px}aside{padding:35px 23px 0 0;border-right:1px solid var(--line)}.sidebar-heading{display:flex;align-items:center;justify-content:space-between}.sidebar-heading h2{font-size:10px;letter-spacing:1.3px;color:#6b7e60}.sidebar-heading button{border:1px solid var(--line);border-radius:7px;background:white;width:29px;height:29px;color:#477044;font-size:21px}nav{margin-top:19px}nav button{display:block;width:100%;text-align:left;overflow-wrap:anywhere;padding:13px 11px;border:0;background:transparent;border-radius:9px;margin-bottom:4px;color:#4a6342;font-size:13px}nav button.selected{background:#e3ecd9;font-weight:650}.storage-note{border-top:1px solid var(--line);margin-top:35px;padding-top:21px;font-size:11px;color:var(--muted);line-height:1.8}.storage-note strong{color:#4f6545;font-size:12px}main{padding:40px 0;min-width:0}.eyebrow{font-size:9px;color:#6c805f;letter-spacing:1.4px;font-weight:650}h1{font-weight:500;font-size:43px;line-height:1.12;letter-spacing:-2px;margin:21px 0 12px}h1 span{color:#77916d}.intro{font-size:14px;color:var(--muted);margin:0 0 28px}.card{background:#ffffffc9;border:1px solid var(--line);border-radius:17px;padding:23px;margin-bottom:20px}.section-heading{display:flex;align-items:center;gap:10px}.section-heading h2{font-size:15px;font-weight:650;margin:0}.step{background:#eff3e8;padding:6px;color:#6c865f;border-radius:6px;font-size:10px}.pill,.count{font-size:10px;margin-left:auto;background:#eaf0e0;color:#557044;padding:7px 11px;border-radius:20px}.pill.connected{background:#d9edd7;color:#315c31}.pair-description>p{font-size:13px;line-height:1.65;color:#62755b}.primary,.secondary{border-radius:8px;padding:11px 16px;font-size:12px;font-weight:600;border:1px solid #315d42}.primary{color:white;background:#315d42}.secondary{color:#315d42;background:transparent}.small{font-size:11px!important;line-height:1.6;color:var(--muted)}.text-button{border:0;background:transparent;text-decoration:underline;text-underline-offset:3px;padding:5px 0;color:#476b3b;font-size:11px}#qr-area{display:flex;gap:26px;align-items:center;margin-top:20px}#qr{width:174px;height:174px;border:1px solid var(--line);border-radius:10px;padding:5px;background:white}#qr-area>div{flex:1;min-width:0}#qr-area strong{font-size:14px}details{font-size:11px;margin-top:10px}summary{cursor:pointer;color:#607653}textarea{width:100%;font-size:10px;border:1px solid var(--line);border-radius:6px;padding:8px;resize:vertical;color:#476240;margin-top:8px}#paired p,#phone-pair p{font-size:12px;line-height:1.6}#safety-code{font-family:monospace;letter-spacing:2px;color:#244d35}.limit{font-size:9px;color:#7b8b70;margin-left:auto}label{font-size:12px;display:block;margin:18px 0 7px}select,input{max-width:100%;padding:9px 11px;border:1px solid #cedac3;border-radius:7px;background:white;color:#416139;font-size:12px}select{width:100%}.drop{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:9px;border:1px dashed #bfd0b0;background:#f7faf1;border-radius:11px;min-height:175px;cursor:pointer;margin:18px 0 0}.drop:hover,.drop.drag{background:#ecf4e2}.drop>strong{font-size:13px;font-weight:550}.drop>span{font-size:11px;color:#738768}.drop .upload{font-size:26px;border:1px solid #d9e4cc;background:#f1f6e9;border-radius:9px;padding:0 10px}.drop .choose{padding:9px 15px;background:#315d42;color:white;border-radius:7px;font-size:11px}.sr-only{position:absolute;width:1px;height:1px;clip:rect(0,0,0,0);overflow:hidden}#progress-label{font-size:11px;overflow-wrap:anywhere}progress{width:100%;height:8px;accent-color:#47723c}#file-list{list-style:none;padding:0;margin:12px 0 0}#file-list li{display:flex;align-items:center;gap:12px;padding:16px 0;border-top:1px solid #e6ecdf;flex-wrap:wrap}.file-icon{padding:12px 8px;border-radius:9px;background:#edf2e4;color:#627b52;font-size:9px;min-width:43px;text-align:center;text-transform:uppercase}.file-info{flex:1;min-width:140px}.file-info strong{font-size:12px;display:block;font-weight:600;overflow-wrap:anywhere}.file-info span{font-size:10px;color:var(--muted)}.file-actions{display:flex;align-items:center;gap:11px}.file-actions button{font-size:11px}.move-select{max-width:130px;padding:8px;font-size:11px}.danger{background:none;border:0;color:#8d4b35;text-decoration:underline;text-underline-offset:3px;font-size:11px}.count{background:none;padding:0;color:#77876e}.section-heading>.danger{margin-left:6px}#empty{text-align:center;padding:30px 0 20px;color:#7a8d6f}#empty>span{font-size:31px;color:#a9ba99}#empty h3{font-size:13px;font-weight:500;margin:9px 0}#empty p{font-size:11px;margin:0}#notice{padding:14px 17px;border-radius:10px;background:#fff0d9;color:#755528;font-size:12px;line-height:1.6;margin-bottom:20px;overflow-wrap:anywhere}#notice.success{background:#e2efd9;color:#386330}footer{border-top:1px solid var(--line);padding-top:21px;margin-top:30px;font-size:10px;line-height:1.8;color:#6c7b62}footer strong{font-size:11px}footer p{margin:9px 0}dialog{border:1px solid var(--line);border-radius:16px;padding:26px;width:min(420px,90vw);color:#254537;background:#fafbf6}dialog::backdrop{background:#19352450}dialog h2{margin:0;font-size:19px}dialog input{width:100%}.dialog-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:22px}#folder-error{color:#914c35;font-size:12px}.phone .layout{display:block}.phone #sidebar{display:none}.phone .shell{max-width:700px}.phone h1{font-size:37px}.phone #pc-pair{display:none}.phone .local-label{font-size:10px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #88a96f;outline-offset:3px}.drop:has(+input:focus-visible){outline:3px solid #88a96f}@media(max-width:780px){.shell{padding:0 18px}.layout{grid-template-columns:145px minmax(0,1fr);gap:20px}aside{padding-right:13px}h1{font-size:35px}.card{padding:19px}#qr-area{flex-direction:column;align-items:flex-start}.file-actions{flex-wrap:wrap}}@media(max-width:560px){.layout{display:block}aside{border:0;padding:20px 0 0}nav{display:flex;overflow:auto;margin:6px 0 0}nav button{min-width:115px;width:auto;white-space:nowrap}.storage-note{display:none}main{padding-top:25px}.eyebrow{font-size:8px;letter-spacing:1px}.local-label{font-size:10px}.section-heading{gap:7px}.section-heading h2{font-size:14px}#qr-area{align-items:center}.drop>span{font-size:10px}.file-actions{width:100%}.move-select{flex:1;max-width:160px}header{padding:20px 0}}
/* Compact blue interface */
:root{color:#172b4d;background:#f4f7fc;--line:#e0e7f2;--muted:#64748b}a{color:#2563eb}.brand{color:#172b4d}.brand>span{background:#2563eb;color:white}.eyebrow,.step{display:none}header{padding:22px 0}main{padding:28px 0}h1{font-size:30px;letter-spacing:-1px;margin:0 0 8px}.intro{margin-bottom:22px}.card{background:white;border-radius:15px;padding:20px;margin-bottom:16px;box-shadow:0 3px 14px #172b4d03}.sidebar-heading h2{font-size:12px;letter-spacing:0;color:#64748b}.sidebar-heading button{width:34px;height:34px;color:#2563eb;border-color:#d7e2f3}nav button{color:#52627a;font-size:14px}nav button.selected{background:#e5edff;color:#1d4ed8}.storage-note strong{color:#334155}.storage-note p{display:none}.primary,.drop .choose{background:#2563eb;border-color:#2563eb;color:white}.primary,.secondary{min-height:40px;font-size:13px;white-space:nowrap;border-radius:9px}.secondary{background:#f4f8ff;border-color:#d7e4ff;color:#2458bb}.primary:hover,.drop .choose:hover{background:#1d4ed8}.text-button{color:#2563eb;font-size:12px;text-decoration:none;padding:10px 4px;white-space:nowrap}.text-button:hover{text-decoration:underline}.pill{background:#f1f5f9;color:#64748b;font-size:11px}.pill.connected{background:#e8f0ff;color:#1d4ed8}.pair-description{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:16px}.pair-description>p{margin:0;flex:1;color:#64748b}.pair-description .small{flex-basis:100%;margin:0}.small{font-size:12px!important;color:#64748b}summary{color:#52627a;padding:4px 0}textarea,select,input{color:#334155;border-color:#d7e0ed;font-size:13px}select{min-height:42px}#safety-code{color:#1d4ed8;background:#eff5ff;padding:4px 8px;border-radius:5px}.limit,.count{color:#64748b;font-size:11px}.drop{min-height:96px;flex-direction:row;flex-wrap:wrap;padding:18px;gap:12px;background:#f5f8ff;border-color:#b7cdf8}.drop:hover,.drop.drag{background:#eaf1ff;border-color:#2563eb}.drop .upload{background:#e5eeff;border:0;color:#2563eb}.drop .choose{font-size:13px;padding:11px 15px}#drop-subtitle{display:none}.file-icon{background:#edf3ff;color:#3965b6}.file-info strong{font-size:14px}.file-info span{font-size:12px}.file-actions{gap:8px}.file-actions button{white-space:nowrap}.move-select{min-height:40px}.danger{color:#bd3349;padding:10px 6px;text-decoration:none}.danger:hover{background:#fff1f2;border-radius:8px}#empty{padding:24px 0;color:#64748b}#empty>span{color:#638ddc}#notice.success{background:#e8f0ff;color:#214ea5}progress{accent-color:#2563eb}footer{border:0;padding:0;margin-top:16px;font-size:12px;color:#64748b}footer strong{font-weight:500;font-size:12px}footer details{max-width:700px}footer>a{display:inline-block;margin-top:8px}dialog{background:white;color:#172b4d}dialog::backdrop{background:#13244560}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #93b6ff;outline-offset:3px}.drop:has(+input:focus-visible){outline:3px solid #93b6ff}.phone h1{font-size:28px}.phone .drop{flex-direction:column}.phone .drop .choose,.phone #join{width:100%;text-align:center}.phone #join{margin:8px 0}.phone .file-actions{width:100%}@media(max-width:950px){.file-actions{width:100%;flex-wrap:wrap}}@media(max-width:560px){h1{font-size:28px}.card{padding:18px}.pair-description>p{flex-basis:100%}.pair-description>.primary{width:100%}.file-info strong{font-size:13px}.drop>span{font-size:12px}.section-heading h2{font-size:15px}.local-label{font-size:11px}.move-select{flex:1;min-width:100px}.file-actions{gap:6px}}
.storage-note strong{display:block;margin-bottom:6px}.pairing:has(.pill.connected) .pair-description,.pairing:has(.pill.connected) #phone-pair>p{display:none}
/* The toolbar popup uses the same file manager and storage as the full page. */
body.popup{width:420px;height:580px;overflow:auto}.popup .shell{padding:0 14px}.popup header{height:60px;padding:12px 0;position:sticky;top:0;background:#f4f7fc;z-index:2}.popup .brand{font-size:20px}.popup .brand>span{width:30px;height:30px;font-size:25px}.popup .layout{display:flex;flex-direction:column;gap:0}.popup aside{padding:12px 0 0;border:0}.popup nav{display:flex;overflow:auto;gap:5px;margin:5px 0 0}.popup nav button{width:auto;min-width:80px;white-space:nowrap;padding:9px 12px;font-size:12px}.popup .storage-note,.popup #title,.popup .intro{display:none}.popup main{padding:12px 0}.popup .card{padding:14px;margin-bottom:12px;border-radius:12px}.popup .section-heading h2{font-size:14px}.popup .pair-description{margin-top:10px;gap:7px}.popup .pair-description>p:first-child{display:none}.popup .pair-description>.primary{width:100%;padding:9px}.popup .pair-description .small{font-size:11px!important}.popup #qr-area{margin-top:10px;gap:8px}.popup #qr{width:152px;height:152px}.popup #qr-area strong{font-size:12px}.popup #qr-area .small{margin:5px 0}.popup label{margin-top:10px}.popup .drop{min-height:65px;padding:12px;margin-top:10px}.popup .drop .upload{display:none}.popup .drop .choose{padding:9px 12px}.popup #empty{padding:12px 0}.popup #empty>span{display:none}.popup .file-actions{width:100%}.popup footer{font-size:11px}.popup #notice{padding:10px 12px;font-size:12px}.popup .pairing:has(.pill.connected)::after{content:'Keep this popup open during transfers.';display:block;font-size:11px;color:#64748b;margin-top:6px}
/* Pairing card: centered heading and left/right actions. */
.pairing>.section-heading{flex-direction:column;justify-content:center;align-items:center;text-align:center}.pairing>.section-heading .pill{margin:4px 0 0}.pairing:has(#qr-area:not([hidden])) #connection-status{display:none}.pair-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px}.pair-actions #copy-link{display:none;margin-left:auto}.pairing:has(#qr-area:not([hidden])) #copy-link{display:block}
/* Folders follow transfer controls; contents open on selection. */
.layout{display:block}#sidebar,.popup #sidebar{border:0;padding:6px 0 16px;margin:0}#sidebar .storage-note{display:none}#folders,.popup #folders{display:flex;flex-direction:column;gap:4px;overflow:visible;margin-top:10px}#folders button,.popup #folders button{width:100%;text-align:left;margin:0;padding:12px;border:1px solid var(--line);background:white;border-radius:9px}#folders button.selected{background:#e5edff;border-color:#b7cdf8}.pairing{position:relative}.pairing>.section-heading{padding-top:26px}.pairing>.section-heading .pill{position:absolute;top:10px;right:12px;font-size:10px;max-width:80%;padding:4px 8px;margin:0}.pair-description .small,.popup .pair-description .small,.popup .pairing:has(.pill.connected)::after{text-align:center;width:100%}.file-number{font-size:12px;color:#64748b;min-width:22px;text-align:center;font-variant-numeric:tabular-nums}
/* Use an inset keyboard focus cue instead of an outer ring on folder menus. */
select:focus-visible{outline:none;border-color:#2563eb;box-shadow:inset 0 0 0 1px #2563eb}
/* A user-started session continues outside the popup. */
.popup .pairing:has(.pill.connected)::after{content:'Transfers continue when you close this popup.'}
/* Thin transfer track and compact file actions. */
#progress-area{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;margin-top:10px;gap:4px}#progress{order:-1;display:block;flex-basis:100%;width:100%;height:5px;border:0;border-radius:10px;overflow:hidden;appearance:none;background:#e5edff}#progress::-webkit-progress-bar{background:#e5edff;border-radius:10px}#progress::-webkit-progress-value{background:#2563eb;border-radius:10px;transition:width .12s linear}#progress::-moz-progress-bar{background:#2563eb;border-radius:10px}#progress-label{font-size:11px;margin:5px 0;max-width:75%}#cancel{font-size:11px;padding:4px}#transfer-result{font-size:12px;color:#2458bb;margin:10px 0 0}.file-actions .icon-button{display:grid;place-items:center;width:36px;height:36px;min-height:36px;padding:8px;flex-shrink:0}.icon-button svg{width:18px;height:18px}.move-select{min-width:115px}select:focus-visible{outline:none;box-shadow:none;border-color:#93b6ff}
.brand .brand-icon{display:block;width:35px;height:35px;background:transparent;border-radius:0}.popup .brand .brand-icon{width:30px;height:30px}
body:not(.phone) #destination,body:not(.phone) #destination-label{display:none}body:not(.phone) .card:has(#send-heading)>.section-heading{position:relative;justify-content:center;padding-top:20px;text-align:center}body:not(.phone) .card:has(#send-heading) .limit{position:absolute;top:0;right:0;font-size:9px}#transfer-result{text-align:center}
/* The connected card shows only status and its disconnect action. */
.pairing:has(.pill.connected) #pair-heading,.pairing:has(.pill.connected) #paired{display:none}.pairing:has(.pill.connected)>.section-heading{padding-top:0}.pairing:has(.pill.connected) .pill{position:static;margin:0;font-size:13px}.popup .pairing:has(.pill.connected)::after{display:none}
/* Compact file rows: filename left, type and phone action top right. */
#file-list li{display:grid;grid-template-columns:18px minmax(0,1fr) auto;align-items:start;column-gap:10px;row-gap:10px}.file-number{padding-top:3px;min-width:0}.file-info{min-width:0}.file-info strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;line-height:1.4}.file-info span{font-size:11px}.file-meta{display:flex;flex-direction:column;align-items:flex-end;gap:4px;min-width:65px}.file-meta .file-icon{display:inline-block;min-width:0;height:auto;padding:3px 6px;border:1px solid #dbe7fd;border-radius:5px;font-size:9px;line-height:1.2;background:#f5f8ff}.file-meta .text-button{font-size:11px;padding:2px 0;line-height:1.4}.file-actions{grid-column:2/-1;min-width:0;width:100%;flex-wrap:nowrap}.file-actions .move-select{flex:1;max-width:none;min-width:0}.file-actions .secondary.icon-button{background:transparent;border:1px solid transparent;box-shadow:none}.file-actions .secondary.icon-button:hover{background:#edf3ff;border-color:#d7e4ff}.file-actions .secondary.icon-button:active{background:#dce9ff;border-color:#b7cdf8}
/* Keep the phone action beside the file type; balance the lower actions. */
.file-meta{flex-direction:row;align-items:center;gap:10px;min-width:0}.file-meta .text-button{order:-1}.file-actions{grid-column:1/-1;display:grid;grid-template-columns:40px minmax(0,1fr) 40px;gap:12px;align-items:center}.file-actions .icon-button{justify-self:center}.file-actions .move-select{width:100%;max-width:none;min-width:0}.phone .file-actions{display:flex;justify-content:space-between}.phone .file-actions .icon-button{flex-shrink:0}
/* Center the active session's red disconnect action. */
.pairing:has(.pill.connected) .pair-actions{justify-content:center}#disconnect{color:#bd3349}#disconnect:hover{background:#fff1f2;border-radius:8px}#disconnect:active{background:#ffe4e8}
/* Keep the phone landing screen focused on connecting. */
.phone .local-label,.phone #title,.phone #intro{display:none}.phone #pair-heading,.phone #phone-pair>p{text-align:center}.phone main{padding-top:20px}
/* Make the file library and individual rows easier to distinguish. */
.card.library{border:1px solid #9eb9e3}#file-list li{border-top:1px solid #b4c8e7}
/* Center footer labels and privacy links. */
footer{text-align:center}footer details{margin-left:auto;margin-right:auto}footer summary{list-style-position:inside}
/* Four local, persistent color themes. */
:root{--page:#f4f7fc;--surface:#fff;--ink:#172b4d;--muted:#64748b;--accent:#2563eb;--accent-ink:#fff;--tint:#edf3ff;--line:#d8e2f0;--edge:#9eb9e3;--danger:#bd3349;--danger-bg:#fff1f2;color-scheme:light}
:root[data-theme=green]{--page:#f1f7f4;--surface:#fff;--ink:#183e32;--muted:#527064;--accent:#147557;--tint:#e4f2eb;--line:#d0e4d9;--edge:#85b49e;--danger:#ad3046;--danger-bg:#fff1f2}
:root[data-theme=reading]{--page:#f3ecdc;--surface:#fff9eb;--ink:#493b2b;--muted:#77664e;--accent:#86602c;--tint:#eee1c8;--line:#dfcfb0;--edge:#b49a72;--danger:#a23b2c;--danger-bg:#f9e4d5}
:root[data-theme=black]{--page:#111317;--surface:#1b1e24;--ink:#edf1f7;--muted:#abb6c8;--accent:#93b8ff;--accent-ink:#101827;--tint:#29364d;--line:#394352;--edge:#63748d;--danger:#ff9da7;--danger-bg:#46272d;color-scheme:dark}
body{background:var(--page);color:var(--ink)}.popup header{background:var(--page)}.brand,dialog,.section-heading h2,.file-info strong{color:var(--ink)}a,.text-button,.secondary,.file-actions .secondary.icon-button{color:var(--accent)}.card,dialog,select,input,textarea{background:var(--surface);color:var(--ink);border-color:var(--line)}.card.library{border-color:var(--edge)}header,#file-list li,.storage-note{border-color:var(--line)}.primary,.drop .choose{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}.primary:hover,.drop .choose:hover{background:var(--accent);filter:brightness(.92)}.secondary,.pill,.pill.connected,.file-meta .file-icon,.drop,.drop .upload,#safety-code,#notice.success{background:var(--tint);color:var(--accent);border-color:var(--line)}.drop{border-color:var(--edge)}.drop:hover,.drop.drag{background:var(--tint);border-color:var(--accent)}#folders button,.popup #folders button,.sidebar-heading button{background:var(--surface);color:var(--ink);border-color:var(--line)}#folders button.selected{background:var(--tint);color:var(--accent);border-color:var(--edge)}.sidebar-heading button{color:var(--accent)}.small,.intro,.local-label,.pair-description>p,#paired p,#phone-pair p,.file-info span,.count,.limit,.file-number,footer,details,summary,.storage-note,.sidebar-heading h2,#empty,.popup .pairing::after{color:var(--muted)}#empty h3,.storage-note strong{color:var(--ink)}#empty>span{color:var(--accent)}#transfer-result{color:var(--accent)}.danger,#disconnect,#folder-error{color:var(--danger)}.danger:hover,#disconnect:hover,#disconnect:active{background:var(--danger-bg)}.file-actions .secondary.icon-button{background:transparent;border-color:transparent}.file-actions .secondary.icon-button:hover,.file-actions .secondary.icon-button:active{background:var(--tint);border-color:var(--edge)}#progress{background:var(--tint);accent-color:var(--accent)}#progress::-webkit-progress-bar{background:var(--tint)}#progress::-webkit-progress-value{background:var(--accent)}#progress::-moz-progress-bar{background:var(--accent)}select:focus-visible{border-color:var(--accent)}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible{outline-color:var(--accent)}
.theme-picker{display:flex;align-items:center;gap:7px;margin-left:auto;padding-left:12px}.theme-picker button{width:24px;height:24px;min-width:24px;border:2px solid var(--surface);border-radius:50%;padding:0;box-shadow:0 0 0 1px var(--edge);cursor:pointer}.theme-picker button[aria-pressed=true]{outline:2px solid var(--accent);outline-offset:3px}.theme-picker button[data-theme-choice=blue]{background:#2563eb}.theme-picker button[data-theme-choice=green]{background:#147557}.theme-picker button[data-theme-choice=reading]{background:#e9d7b3}.theme-picker button[data-theme-choice=black]{background:#15171b}header>.local-label{display:none}:root[data-theme=black] .brand-icon{filter:brightness(1.8) saturate(.65)}
:root{background:var(--page);color:var(--ink)}
/* An unavailable phone action is not a loading operation. */
.file-meta button:disabled{cursor:default}
/* Clear numbered badges beside each file. */
.file-number{display:grid;place-items:center;min-width:24px;height:24px;padding:0;border-radius:8px;background:#dbeafe;color:#173b80;font-weight:700;font-size:12px}#file-list li{grid-template-columns:24px minmax(0,1fr) auto}:root[data-theme=black] .file-number{background:#93b8ff;color:#10234a}
/* The pairing card has one centered action. */
.pair-actions{justify-content:center}

/* Match the phone's two primary actions, including the drop-zone inset. */
.phone #phone-pair{padding-inline:19px}
.phone #join,.phone .drop .choose{display:block;box-sizing:border-box;width:100%;min-height:44px;padding:11px 15px;border:1px solid var(--accent);border-radius:9px;font-size:13px;font-weight:500;line-height:20px;text-align:center}

.phone #pc-directory{display:none}#pc-directory{text-align:center}#pc-directory h2{font-size:15px}#directory-name{overflow-wrap:anywhere}#choose-directory{font-weight:500}

/* Refined cards; preserve the existing order and layout. */
.card,.popup .card{border-radius:16px;border-color:var(--line);box-shadow:0 2px 6px #10234405,0 8px 24px #10234404}
.card.library{border-color:var(--edge)}
#pc-directory,.popup #pc-directory{padding-block:24px}
#pc-directory h2{margin:4px 0 14px;font-weight:650}
#pc-directory>.small:last-child{margin-bottom:4px}
.pairing,.popup .pairing{padding-bottom:22px}
.pair-description{justify-content:center}
#choose-directory,#connect,.popup .pair-description>#connect{display:inline-flex;align-items:center;justify-content:center;width:174px;max-width:100%;height:44px;min-height:44px;padding:0 16px;border-radius:10px;font-size:13px;font-weight:600;line-height:20px;box-shadow:0 2px 4px #1023440d}
#connect{margin-inline:auto}
.primary{transition:background .15s,box-shadow .15s,filter .15s}
.primary:active{box-shadow:none}
:root[data-theme=black] .card{box-shadow:0 2px 8px #0002}

#directory-name.folder-chosen{color:#2563eb;font-weight:700}
:root[data-theme=black] #directory-name.folder-chosen{color:#93b8ff}

/* A flat list appears only when there are PC files to send. */
body:not(.phone) .file-actions{grid-template-columns:40px 40px;justify-content:center;gap:24px}


/* Center both file actions on mobile, matching the popup. */
.phone .file-actions{display:grid;grid-template-columns:40px 40px;justify-content:center;gap:24px}

#phone-recovery{display:block;margin:8px auto 12px;text-align:center;white-space:normal}
