@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Noto+Sans+Devanagari:wght@400;500;600;700;800&display=swap');
:root{--bg:#f3f6fb;--surface:#fff;--surface2:#f7f9fc;--text:#172238;--muted:#77839a;--line:#e7ecf3;--blue:#2864e8;--blue2:#4d83ff;--navy:#0b1426;--green:#1eaa79;--shadow:0 12px 35px rgba(28,48,82,.07);font-family:"DM Sans","Noto Sans Devanagari",sans-serif;color:var(--text)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}button,input{font:inherit}button{cursor:pointer}.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:248px;background:var(--navy);color:#eaf0ff;padding:25px 17px 18px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:#fff;padding:0 10px 36px}.brand-mark{width:42px;height:42px;border-radius:14px;background:linear-gradient(145deg,#4284ff,#2454d9);display:grid;place-items:center;box-shadow:0 8px 22px #235bd955}.brand-mark svg{width:31px}.brand-word{font-size:23px;font-weight:800;letter-spacing:1px;line-height:1}.brand-dot{color:#68a0ff}.brand-word small{display:block;font-size:8px;letter-spacing:1.5px;color:#8998b8;margin-top:5px}.nav-caption{font-size:9px;letter-spacing:1.8px;font-weight:800;color:#697894;padding:0 12px 12px}.nav-list{display:grid;gap:5px}.nav-item{height:45px;border:0;background:transparent;color:#aab7d0;border-radius:10px;display:flex;align-items:center;gap:12px;padding:0 12px;text-align:left;font-size:12px;font-weight:600;transition:.2s}.nav-item:hover{background:#ffffff0c;color:#fff}.nav-item.active{background:linear-gradient(100deg,#285bd1,#286ce8);color:#fff;box-shadow:0 8px 20px #1d58ce40}.nav-icon{font-size:21px;width:22px;text-align:center}.nav-tag{margin-left:auto;font-size:8px;color:#b7d1ff;background:#ffffff19;border-radius:5px;padding:3px 5px}.nav-caption-bottom{margin-top:31px}.sidebar-bottom{margin-top:auto}.secure-mini{display:flex;align-items:center;gap:10px;padding:13px 11px;border:1px solid #25334c;border-radius:12px;background:#111e33}.secure-icon{width:27px;height:27px;border-radius:9px;background:#1c755e;color:#8bf0c7;display:grid;place-items:center}.secure-mini b,.secure-mini small{display:block}.secure-mini b{font-size:11px}.secure-mini small{font-size:9px;color:#8392ad;margin-top:3px}.version{font-size:8px;letter-spacing:1px;color:#64738d;padding:15px 10px 0}.main-area{margin-left:248px;min-height:100vh;display:flex;flex-direction:column}.topbar{height:70px;background:var(--surface);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 38px;position:sticky;top:0;z-index:10}.breadcrumbs{font-size:11px;color:var(--muted);display:flex;gap:10px;align-items:center}.breadcrumbs i{font-style:normal;color:#c0c8d5}.breadcrumbs b{color:var(--text)}.top-actions{display:flex;align-items:center;gap:12px}.status-pill{font-size:9px;color:#65728a;background:var(--surface2);border:1px solid var(--line);border-radius:30px;padding:7px 10px}.status-dot,.footer-dot{display:inline-block;width:6px;height:6px;background:#27b889;border-radius:50%;margin-right:5px}.icon-button,.avatar{border:1px solid var(--line);background:var(--surface);color:var(--text);width:34px;height:34px;border-radius:10px;display:grid;place-items:center}.avatar{background:#e9efff;color:#2458d3;font-weight:800;border:0}.menu-button{display:none}.content-wrap{width:min(1180px,100%);margin:0 auto;padding:34px 40px 44px;flex:1}.page{display:none;animation:fade .25s ease}.page.active{display:block}@keyframes fade{from{opacity:.4;transform:translateY(5px)}to{opacity:1;transform:none}}.welcome-row{display:flex;justify-content:space-between;align-items:center;margin:4px 0 24px}.eyebrow{font-size:9px;letter-spacing:1.8px;font-weight:800;color:#7e8da7;margin-bottom:9px}.welcome-row h1,.page-heading h1{font-size:31px;letter-spacing:-1.2px;margin:0;font-weight:800}.gradient-text{background:linear-gradient(90deg,#2462e5,#36b7b0);background-clip:text;color:transparent}.lead,.page-heading p{font-size:12px;color:var(--muted);margin:9px 0 0}.welcome-orb{width:73px;height:73px;border:1px solid #dbe6fb;border-radius:50%;display:grid;place-items:center;position:relative;color:#2c68e5;font-size:26px;font-weight:800;background:radial-gradient(circle,#fff,#eaf1ff)}.welcome-orb i,.welcome-orb b{position:absolute;width:8px;height:8px;border-radius:50%;background:#27b889;right:4px;top:9px}.welcome-orb b{background:#ffb44b;left:4px;right:auto;top:auto;bottom:10px}.hero-card{min-height:265px;background:linear-gradient(115deg,#10264d,#174b9d 62%,#236bd9);border-radius:19px;padding:30px 35px;color:#fff;display:flex;position:relative;overflow:hidden;box-shadow:0 17px 35px #174c9b25}.hero-copy{position:relative;z-index:2;width:52%}.hero-label{font-size:8px;letter-spacing:1.6px;color:#b9d1ff;font-weight:700}.pulse{display:inline-block;width:6px;height:6px;border-radius:50%;background:#4ce0b0;margin-right:7px;box-shadow:0 0 0 4px #4ce0b022}.hero-copy h2{font-size:29px;line-height:1.25;margin:15px 0 9px;letter-spacing:-.6px}.hero-copy p{max-width:370px;color:#c2d4f2;font-size:11px;line-height:1.8;margin:0 0 18px}.btn{border:0;border-radius:9px;padding:11px 15px;font-size:11px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:16px;transition:.2s}.btn:hover{transform:translateY(-1px);filter:brightness(1.04)}.btn-light{background:#fff;color:#1d4f9f}.btn-primary{background:linear-gradient(100deg,#2864e8,#3979f4);color:#fff;box-shadow:0 7px 16px #2864e825}.btn-outline{border:1px solid var(--line);background:var(--surface);color:var(--text)}.btn-small{padding:8px 12px}.hero-visual{position:absolute;right:3%;top:0;width:47%;height:100%;display:grid;place-items:center}.orbit{position:absolute;border:1px solid #a9c9ff32;border-radius:50%;width:255px;height:180px;transform:rotate(-22deg)}.orbit-two{width:325px;height:220px;transform:rotate(32deg)}.center-node{width:55px;height:55px;border-radius:17px;background:linear-gradient(145deg,#73a8ff,#fff);color:#1b55b9;display:grid;place-items:center;font-size:24px;font-weight:800;box-shadow:0 0 40px #8bbaff75;z-index:2}.device{position:absolute;width:56px;height:70px;border:1px solid #ffffff70;background:#ffffff19;backdrop-filter:blur(8px);border-radius:10px;display:grid;place-items:center;color:#fff;font-size:24px;z-index:3}.device small{font-size:8px;color:#c8dcff;position:absolute;bottom:5px}.device-phone{left:13%;top:35px}.device-laptop{right:10%;top:49px;width:76px;height:55px}.device-tablet{right:20%;bottom:25px;width:65px;height:53px}.connection-line{position:absolute;width:210px;height:1px;background:#b9d6ff70;transform:rotate(20deg)}.section-heading{display:flex;justify-content:space-between;align-items:end;margin:32px 0 15px}.section-heading h2{font-size:18px;margin:0}.small{font-size:9px}.muted{color:var(--muted)}.feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.feature-card{min-height:142px;text-align:left;padding:17px;border:1px solid var(--line);border-radius:14px;background:var(--surface);position:relative;box-shadow:0 5px 15px #1e34520a;transition:.2s;color:var(--text)}.feature-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}.feature-icon{width:35px;height:35px;border-radius:11px;display:grid;place-items:center;font-size:21px;margin-bottom:14px}.feature-blue .feature-icon{background:#eaf0ff;color:#2864e8}.feature-green .feature-icon{background:#e4f8f0;color:#169b6b}.feature-purple .feature-icon{background:#f0eaff;color:#8254d8}.feature-orange .feature-icon{background:#fff1e4;color:#d88737}.feature-title,.feature-desc{display:block}.feature-title{font-size:12px;font-weight:800}.feature-desc{font-size:9px;color:var(--muted);margin-top:5px}.feature-arrow{position:absolute;right:15px;top:17px;color:#a4b0c2}.bottom-grid{display:grid;grid-template-columns:1.3fr .9fr;gap:13px;margin-top:15px}.panel{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:20px;box-shadow:0 5px 15px #1e345207}.panel-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.panel h3{font-size:14px;margin:0}.panel-heading p{font-size:9px;color:var(--muted);margin:5px 0 0}.check-ring{width:29px;height:29px;border-radius:50%;background:#e4f8f0;color:#15976a;display:grid;place-items:center}.check-row{display:flex;align-items:center;gap:10px;padding:10px 0;border-top:1px solid var(--line)}.check{width:20px;height:20px;border-radius:7px;background:#e4f8f0;color:#13956a;display:grid;place-items:center;font-size:11px}.check-row b,.check-row small{display:block}.check-row b{font-size:10px}.check-row small{font-size:9px;color:var(--muted);margin-top:3px}.privacy-panel{background:linear-gradient(145deg,#eef4ff,#f7f9ff);border-color:#e0eaff}.privacy-symbol{font-size:25px;color:#3b70da;margin-bottom:9px}.privacy-panel h3{font-size:17px;line-height:1.4}.privacy-panel p{font-size:10px;color:#687995;line-height:1.7}.text-button{border:0;background:none;color:#2864d9;font-size:10px;font-weight:800;padding:5px 0}.page-heading{margin:5px 0 24px}.page-heading h1{font-size:27px}.mode-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.mode-card{background:var(--surface);border:1px solid var(--line);border-radius:15px;padding:23px;box-shadow:var(--shadow)}.mode-top{display:flex;justify-content:space-between;align-items:center}.mode-icon{width:39px;height:39px;border-radius:12px;display:grid;place-items:center;font-size:22px}.mode-icon.blue{background:#eaf0ff;color:#2864e8}.mode-icon.purple{background:#f0eaff;color:#8254d8}.mode-label{font-size:8px;letter-spacing:1.4px;color:var(--muted);font-weight:800}.mode-card h2{font-size:18px;margin:17px 0 7px}.mode-card p{font-size:10px;color:var(--muted);line-height:1.7;min-height:34px}.placeholder-qr{display:flex;align-items:center;gap:12px;background:var(--surface2);border:1px dashed #d9e1ef;border-radius:11px;padding:11px;margin:17px 0}.qr-fake{width:54px;height:54px;background:#fff;border:5px solid #e4eaf4;display:grid;place-items:center;font-size:33px;color:#263b62}.placeholder-qr b,.placeholder-qr small{display:block}.placeholder-qr b{font-size:10px}.placeholder-qr small{font-size:9px;color:var(--muted);margin-top:4px}.mode-card>.btn{width:100%}.field-label{font-size:8px;letter-spacing:1px;font-weight:800;color:var(--muted);display:block;margin:19px 0 7px}.text-input{width:100%;height:42px;border:1px solid var(--line);border-radius:9px;background:var(--surface2);padding:0 12px;color:var(--text);outline:none;font-size:11px;margin-bottom:12px}.text-input:focus{border-color:#6490ee;box-shadow:0 0 0 3px #2864e815}.code-input{text-transform:uppercase;letter-spacing:1px}.or-divider{display:flex;align-items:center;gap:10px;color:#9aa5b7;font-size:9px;margin:12px 0}.or-divider:before,.or-divider:after{content:"";height:1px;background:var(--line);flex:1}.mode-card .btn-outline{width:100%}.notice{display:flex;gap:11px;background:#fff8e9;border:1px solid #f6e8c9;color:#89682e;border-radius:11px;padding:13px 15px;margin-top:15px;font-size:11px}.notice>span{font-size:16px}.notice b{font-size:10px}.notice p{margin:4px 0 0;font-size:9px;line-height:1.6;color:#947d54}.location-layout,.screen-layout{display:grid;grid-template-columns:1.4fr .8fr;gap:15px}.location-panel{padding:12px}.map-placeholder{height:300px;border-radius:10px;position:relative;overflow:hidden;background:#e9f0f4}.map-grid{position:absolute;inset:-30px;background-image:linear-gradient(35deg,transparent 47%,#fff 48%,#fff 51%,transparent 52%),linear-gradient(125deg,transparent 46%,#fff 47%,#fff 50%,transparent 51%),linear-gradient(90deg,#dce8e9 1px,transparent 1px),linear-gradient(#dce8e9 1px,transparent 1px);background-size:100px 85px,130px 110px,45px 45px,45px 45px;transform:rotate(-7deg)}.map-pin{position:absolute;left:50%;top:46%;width:34px;height:34px;border-radius:50% 50% 50% 0;transform:rotate(-45deg);background:#2864e8;color:white;display:grid;place-items:center;box-shadow:0 5px 15px #2864e855}.map-pin:after{content:"";width:10px;height:10px;background:#fff;border-radius:50%}.map-label,.map-note{position:absolute;left:15px;font-size:8px;letter-spacing:1px;color:#6d8093;font-weight:800}.map-label{top:15px}.map-note{bottom:15px;letter-spacing:0;font-weight:500}.location-actions{display:flex;align-items:center;justify-content:space-between;padding:13px 4px 2px}.location-actions b,.location-actions small{display:block}.location-actions b{font-size:11px}.location-actions small{font-size:9px;color:var(--muted);margin-top:4px}.side-info{padding:23px}.round-icon{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;font-size:22px;margin-bottom:17px}.round-icon.green{background:#e4f8f0;color:#15976a}.round-icon.blue{background:#eaf0ff;color:#2864e8}.round-icon.purple{background:#f0eaff;color:#8254d8}.round-icon.orange{background:#fff1e4;color:#d88737}.side-info h3{font-size:16px}.side-info p,.security-card p{font-size:10px;color:var(--muted);line-height:1.7}.mini-line{height:1px;background:var(--line);margin:17px 0}.info-item{display:flex;justify-content:space-between;font-size:9px;margin:12px 0;color:var(--muted)}.info-item b{color:var(--text)}.green-text{color:#15976a!important}.screen-preview{background:#101a2c;border-radius:14px;overflow:hidden;min-height:350px;color:#fff}.screen-toolbar{height:38px;background:#1c2a41;display:flex;align-items:center;gap:6px;padding:0 13px}.window-dot{width:7px;height:7px;border-radius:50%}.window-dot.red{background:#ff6d6d}.window-dot.yellow{background:#ffc65b}.window-dot.green{background:#43c995}.screen-toolbar-title{font-size:8px;letter-spacing:1px;color:#91a3c2;margin-left:8px}.screen-empty{min-height:312px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:25px}.screen-icon{font-size:38px;color:#7eaaff}.screen-empty h3{font-size:15px;margin:12px 0 6px}.screen-empty p{max-width:280px;font-size:10px;line-height:1.7;color:#9aabc5;margin:0 0 17px}.screen-options h3{margin:0 0 17px}.option-row{display:flex;justify-content:space-between;gap:8px;padding:12px 0;border-top:1px solid var(--line)}.option-row b,.option-row small{display:block}.option-row b{font-size:10px}.option-row small{font-size:9px;color:var(--muted);margin-top:4px}.option-state{font-size:8px;color:#6f7e96;background:var(--surface2);border-radius:6px;padding:5px 7px;white-space:nowrap;height:max-content}.compact{padding:9px;margin-top:12px}.compact p{margin:0;font-size:9px}.file-panel{padding:12px}.file-drop{border:1px dashed #cbd7e9;border-radius:12px;background:var(--surface2);min-height:270px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:20px}.upload-icon{width:48px;height:48px;border-radius:15px;background:#eaf0ff;color:#2864e8;display:grid;place-items:center;font-size:27px}.file-drop h2{font-size:17px;margin:14px 0 5px}.file-drop p{font-size:10px;color:var(--muted)}.file-select{margin:8px 0 10px}.security-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:13px}.security-card{padding:20px}.security-card h3{font-size:13px}.security-status{font-size:8px;color:#15976a;background:#e4f8f0;padding:5px 8px;border-radius:6px}.wide-privacy{margin-top:14px}.wide-privacy h3{font-size:16px}.settings-panel{padding:4px 20px}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 0;border-bottom:1px solid var(--line)}.setting-row:last-child{border:0}.setting-row b,.setting-row small{display:block}.setting-row b{font-size:11px}.setting-row small{font-size:9px;color:var(--muted);margin-top:4px}.footer{display:flex;justify-content:space-between;padding:16px 40px;border-top:1px solid var(--line);font-size:8px;letter-spacing:.8px;color:#98a3b5}.toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,20px);background:#17243a;color:white;border-radius:10px;padding:11px 16px;font-size:11px;box-shadow:0 10px 30px #0003;opacity:0;pointer-events:none;transition:.25s;z-index:60;max-width:90%;text-align:center}.toast.show{opacity:1;transform:translate(-50%,0)}.modal-backdrop{position:fixed;inset:0;background:#07132999;display:none;place-items:center;padding:20px;z-index:50}.modal-backdrop.open{display:grid}.modal{width:min(390px,100%);background:var(--surface);border-radius:18px;padding:28px;text-align:center;position:relative;box-shadow:0 25px 80px #0004}.modal-close{position:absolute;right:13px;top:10px;border:0;background:none;color:var(--muted);font-size:24px}.modal-symbol{width:48px;height:48px;background:#eaf0ff;color:#2864e8;border-radius:15px;display:grid;place-items:center;font-weight:900;font-size:22px;margin:0 auto 14px}.modal h2{font-size:18px}.modal p{font-size:11px;color:var(--muted);line-height:1.7;margin-bottom:20px}.modal-ok{width:100%}
body.dark{--bg:#0c1423;--surface:#121e30;--surface2:#17253a;--text:#edf3ff;--muted:#96a5bd;--line:#26364d;--shadow:0 12px 35px #0002}body.dark .topbar{background:#101b2d}body.dark .privacy-panel{background:linear-gradient(145deg,#172744,#172238);border-color:#2b3e5d}body.dark .privacy-panel p{color:#a7b8d1}body.dark .map-placeholder{background:#243748}body.dark .map-grid{opacity:.35}body.dark .map-label,body.dark .map-note{color:#c0cfdf}body.dark .avatar{background:#253d69;color:#bcd2ff}body.dark .placeholder-qr{background:#17253a;border-color:#344660}body.dark .qr-fake{background:#eaf0ff}body.dark .file-drop{background:#17253a}body.dark .notice{background:#302a1c;border-color:#50432b;color:#f0cc83}body.dark .notice p{color:#d5bd8a}
@media(max-width:1050px){.content-wrap{padding:28px 25px}.topbar{padding:0 25px}.feature-grid{grid-template-columns:repeat(2,1fr)}.hero-visual{right:0;width:43%}.bottom-grid{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.sidebar{transform:translateX(-100%);transition:transform .25s;box-shadow:15px 0 40px #0003}.sidebar.open{transform:translateX(0)}.main-area{margin-left:0}.menu-button{display:grid;margin-right:10px}.topbar{height:60px;padding:0 15px;justify-content:flex-start}.breadcrumbs{flex:1}.top-actions{gap:7px}.status-pill{display:none}.content-wrap{padding:25px 16px 35px}.welcome-row h1{font-size:26px}.welcome-orb{width:58px;height:58px}.hero-card{padding:24px;min-height:290px}.hero-copy{width:100%}.hero-copy h2{font-size:25px}.hero-copy p{max-width:260px}.hero-visual{opacity:.22;width:70%;right:-20%;top:30px}.feature-grid{gap:9px}.feature-card{min-height:132px;padding:13px}.bottom-grid,.mode-grid,.location-layout,.screen-layout,.security-grid{grid-template-columns:1fr}.page-heading h1{font-size:24px}.page-heading p{line-height:1.6}.mode-card{padding:18px}.map-placeholder{height:240px}.location-actions{align-items:flex-start;gap:10px;flex-direction:column}.location-actions .btn{width:100%}.footer{padding:14px 16px;gap:10px;font-size:7px}.welcome-row{margin-bottom:18px}.section-heading{margin-top:25px}.screen-preview{min-height:320px}}
@media(max-width:380px){.feature-grid{grid-template-columns:1fr 1fr}.feature-desc{font-size:8px}.welcome-orb{display:none}.hero-copy h2{font-size:23px}.top-actions .icon-button{width:31px;height:31px}}
.pair-code-display{font-size:20px;letter-spacing:2px;font-weight:900;text-align:center;padding:13px 8px;background:var(--surface2);border:1px dashed #8ba8df;border-radius:10px;margin:7px 0 10px;overflow-wrap:anywhere}.pair-actions{display:flex;gap:8px;margin-bottom:10px}.pair-actions .btn{flex:1}.mode-card [hidden],#qrVideo[hidden]{display:none!important}#ownerStatus,#joinStatus{display:block;line-height:1.6;margin-top:8px;font-size:10px}.qr-fake canvas{width:84px!important;height:84px!important;display:block}.qr-fake{width:90px;height:90px;padding:3px;flex:none}

/* Stage 4 — Live Location status controls */
#locationStatusTitle { display:block; }
#locationStatusText { display:block; }
#startLocationShare:disabled, #stopLocationShare:disabled { opacity:.55; cursor:not-allowed; }
#openLocationMap { display:inline-flex; margin-top:18px; text-decoration:none; }
#openLocationMap[hidden] { display:none; }
@media (max-width: 720px) {
  #locationMap { min-height:220px; }
  .location-actions { align-items:flex-start; gap:12px; flex-wrap:wrap; }
  .location-actions .btn { max-width:100%; }
}

/* Stage 5: responsive live screen-sharing controls */
.screen-preview{min-width:0}
.screen-empty{min-height:300px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:26px}
.screen-empty h3{margin:14px 0 6px;font-size:17px}
.screen-empty p{max-width:440px;color:var(--muted);font-size:11px;line-height:1.7}
.screen-actions{display:flex;gap:9px;flex-wrap:wrap;justify-content:center;margin:12px 0}
.screen-status{display:block;color:var(--muted);font-size:10px;margin-top:10px}
.screen-video{display:block;width:100%;max-height:520px;min-height:240px;object-fit:contain;background:#07101e;border-radius:0 0 12px 12px}
.screen-live-badge{margin-left:auto;color:#e44b55;font-size:9px;font-weight:800;letter-spacing:.6px}
.screen-toolbar{display:flex;align-items:center;gap:6px}
.screen-toolbar-title{margin-left:5px}
.screen-live-badge[hidden],.screen-video[hidden]{display:none}
@media(max-width:640px){.screen-actions{width:100%}.screen-actions .btn{flex:1}.screen-video{min-height:180px}}

/* Stage 6: peer-to-peer file transfer UI */
.file-transfer-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px;align-items:stretch}
.file-transfer-actions{display:flex;gap:9px;justify-content:center;margin-top:14px}
.file-transfer-actions .btn{min-width:112px}
.file-status{display:block;color:var(--muted);font-size:10px;line-height:1.6;margin-top:12px;overflow-wrap:anywhere}
.transfer-progress{width:100%;margin-top:16px}
.progress-track{height:8px;border-radius:20px;background:var(--line);overflow:hidden}
.progress-track span{display:block;height:100%;width:0;background:linear-gradient(90deg,#2864e8,#31b68b);border-radius:20px;transition:width .12s}
.transfer-progress small{display:block;text-align:right;color:var(--muted);font-size:9px;margin-top:6px}
.received-files{min-width:0}
.received-files-list{display:grid;gap:9px}
.received-file-item{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid var(--line);border-radius:10px;padding:11px;min-width:0}
.received-file-item>div{min-width:0}
.received-file-item b,.received-file-item small{display:block;overflow-wrap:anywhere}
.received-file-item b{font-size:10px}
.received-file-item small{font-size:9px;color:var(--muted);margin-top:4px}
@media(max-width:760px){.file-transfer-grid{grid-template-columns:1fr}}
@media(max-width:420px){.file-transfer-actions{flex-direction:column}.file-transfer-actions .btn{width:100%}.received-file-item{align-items:flex-start;flex-direction:column}.received-file-item a{width:100%}}

/* Stage 7: connectivity status and offline feedback */
.status-pill.offline {
  color: #b45309;
  background: rgba(245, 158, 11, .12);
  border-color: rgba(245, 158, 11, .28);
}
.status-pill.offline .status-dot { background: #d97706; }
