/* Shared desktop composition for the public shell and protected workspace.
   Mobile sizing is intentionally owned by the existing mobile styles. */
@media (min-width:1001px){
 body:not(.embedded){--line:#d8e0ec;--muted:#697a93;background:#f7f9fc}
 body:not(.embedded) .sidebar{width:228px;padding:28px 20px 20px;border-color:#e0e6ef}
 body:not(.embedded) main{margin-left:228px;width:calc(100% - 228px);max-width:1680px;padding:0 clamp(28px,3vw,56px)}
 body:not(.embedded) .brand{font-size:25px;gap:8px}
 body:not(.embedded) .beta{font-size:7px;padding:3px;letter-spacing:.7px}
 body:not(.embedded) .sidebar-label{margin:44px 14px 14px;font-size:10px}
 body:not(.embedded) .nav-item{min-height:48px;padding:12px 14px;gap:12px;margin-bottom:6px;border-radius:12px;font-size:13px}
 body:not(.embedded) .nav-item.active{background:#eaf1ff;box-shadow:inset 3px 0 #2864ed}
 body:not(.embedded) .sidebar-note{padding:24px 12px;font-size:12px}
 body:not(.embedded) .sidebar-note p{font-size:12px;line-height:1.7;max-width:170px}
 body:not(.embedded) .device-self{padding-top:20px;margin-top:0}
 body:not(.embedded) .topbar{height:72px;min-height:72px;margin:0;border-bottom:1px solid #e2e8f1;font-size:12px}
 body:not(.embedded) .topbar .button{min-height:42px;padding:11px 16px;border-radius:12px;font-size:13px}
 body:not(.embedded) .topbar>div:has(#status){background:transparent;border:0;padding:0;box-shadow:none;font-size:12px}
 body:not(.embedded) .share-hero{padding:28px 0 26px;min-height:0;grid-template-columns:minmax(0,1fr) minmax(0,.85fr);gap:32px}
 body:not(.embedded) .share-hero:not(:has(#web-ad-slot:not([hidden]))){grid-template-columns:1fr}
 body:not(.embedded) .share-hero .intro{padding:0;margin:0}
 body:not(.embedded) .share-hero .eyebrow{display:none}
 body:not(.embedded) .intro h1{font-size:clamp(30px,2.7vw,42px);line-height:1.15;letter-spacing:-1.5px;margin:0 0 12px}
 body:not(.embedded) .intro h1 br{display:none}
 body:not(.embedded) .intro h1 span{display:inline}
 body:not(.embedded) .intro h1 span:before{content:' '}
 body:not(.embedded) .intro p{font-size:13px;line-height:1.65;margin:0;max-width:650px}
 body:not(.embedded) .intro p br{display:none}
 body:not(.embedded) #backup-view .intro,body:not(.embedded) #history-view .intro{display:block;margin:0;padding:28px 0 26px}
 body:not(.embedded) #backup-view .intro .eyebrow{display:none}
 body:not(.embedded) .transfer-section{margin-top:28px}
 body:not(.embedded) .section-heading{margin-bottom:12px}
 body:not(.embedded) .section-heading h2{font-size:16px;letter-spacing:-.25px}
 body:not(.embedded) .backup-grid{gap:20px;align-items:start}
 body:not(.embedded) .backup-card{padding:24px;border-radius:18px;border-color:#d2ddec;box-shadow:0 4px 16px #23395804}
 body:not(.embedded) .backup-card h2{font-size:18px;margin-bottom:12px;letter-spacing:-.35px}
 body:not(.embedded) .backup-card p{font-size:13px;line-height:1.65}
 body:not(.embedded) .backup-progress{margin-top:20px;gap:24px}
 body:not(.embedded) .backup-resume{padding:14px;margin:16px 0}
 body:not(.embedded) .backup-resume p{font-size:12px}
 body:not(.embedded) footer{margin-top:32px;padding:22px 0}
 body:not(.embedded) #toast{left:auto;right:28px;bottom:24px;transform:none;max-width:380px;border-radius:14px}
}

@media(min-width:1001px){
body:not(.embedded) .workspace{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:20px;align-items:stretch}
body:not(.embedded) .share-card,body:not(.embedded) .devices-card{min-height:0;border:1px solid #d2ddec;border-radius:18px;box-shadow:0 4px 18px #23395804}
body:not(.embedded) .share-card{padding:24px 24px 0;display:flex;flex-direction:column;align-items:center}
body:not(.embedded) .orbit{height:156px;width:260px;margin:12px auto 4px;transform:scale(.88);transform-origin:center center;flex-shrink:0}
body:not(.embedded) .share-card h2{font-size:21px;letter-spacing:-.55px;line-height:1.3;margin:8px 0 10px}
body:not(.embedded) .share-card>p{font-size:13px;line-height:1.65;max-width:360px;margin:0 auto 22px}
body:not(.embedded) .choose-actions{gap:10px;margin:0 0 26px;display:flex;justify-content:center;flex-wrap:wrap}
body:not(.embedded) .choose-actions .button{font-size:13px;min-height:46px;padding:12px 18px;border-radius:12px}
body:not(.embedded) .card-foot{width:calc(100% + 48px);margin: auto -24px 0;padding:16px 20px;display:flex;justify-content:center;gap:20px;font-size:10px;border-color:#e5eaf2}
body:not(.embedded) .devices-card{padding:24px 24px 0}
body:not(.embedded) .section-heading h2{font-size:16px;letter-spacing:-.25px}
body:not(.embedded) .section-subtitle{font-size:12px;line-height:1.6;margin:6px 0 12px}
body:not(.embedded) .peer{padding:12px;gap:12px;margin:6px 0;border:1px solid #e4eaf3;border-radius:12px;background:#fafcff;min-height:68px}
body:not(.embedded) .peer strong{font-size:13px}
body:not(.embedded) .peer small{font-size:11px;line-height:1.5}
body:not(.embedded) .peer-icon{width:40px;height:40px;border-radius:12px}
body:not(.embedded) #nearby-section{margin-top:16px;padding-top:16px;border-top:1px solid #e5eaf2}
body:not(.embedded) .nearby-heading{font-size:17px;margin:0 0 12px;letter-spacing:-.3px}
body:not(.embedded) #nearby-section label{padding:0;margin:0 0 10px;font-size:13px;min-height:28px}
body:not(.embedded) #nearby-empty{margin:10px 0;padding:13px 15px;border-radius:12px;font-size:12px;line-height:1.6}
body:not(.embedded) .discovery-network-note{font-size:11px;line-height:1.6;margin:10px 0 0}
body:not(.embedded) #empty-peers.manual-pair{padding-top:16px;margin-top:auto}
body:not(.embedded) #pair-card{min-height:44px;padding:12px 16px;font-size:13px;border-radius:12px}
body:not(.embedded) .manual-pair>p{font-size:11px;margin:10px 0 16px;line-height:1.5}
body:not(.embedded) .device-hint{font-size:10px;margin-top:0;padding:15px 0;border-top:1px solid #e5eaf2}
body:not(.embedded) .transfer-row{border-color:#d7e0ed;border-radius:14px;padding:16px 20px}
}
body.embedded.desktop-workspace .workspace{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:20px;align-items:stretch}
body.embedded.desktop-workspace .share-card,body.embedded.desktop-workspace .devices-card{min-height:0;border:1px solid #d2ddec;border-radius:18px;box-shadow:0 4px 18px #23395804}
body.embedded.desktop-workspace .share-card{padding:24px 24px 0;display:flex;flex-direction:column;align-items:center}
body.embedded.desktop-workspace .orbit{height:156px;width:260px;margin:12px auto 4px;transform:scale(.88);transform-origin:center center;flex-shrink:0}
body.embedded.desktop-workspace .share-card h2{font-size:21px;letter-spacing:-.55px;line-height:1.3;margin:8px 0 10px}
body.embedded.desktop-workspace .share-card>p{font-size:13px;line-height:1.65;max-width:360px;margin:0 auto 22px}
body.embedded.desktop-workspace .choose-actions{gap:10px;margin:0 0 26px;display:flex;justify-content:center;flex-wrap:wrap}
body.embedded.desktop-workspace .choose-actions .button{font-size:13px;min-height:46px;padding:12px 18px;border-radius:12px}
body.embedded.desktop-workspace .card-foot{width:calc(100% + 48px);margin: auto -24px 0;padding:16px 20px;display:flex;justify-content:center;gap:20px;font-size:10px;border-color:#e5eaf2}
body.embedded.desktop-workspace .devices-card{padding:24px 24px 0}
body.embedded.desktop-workspace .section-heading h2{font-size:16px;letter-spacing:-.25px}
body.embedded.desktop-workspace .section-subtitle{font-size:12px;line-height:1.6;margin:6px 0 12px}
body.embedded.desktop-workspace .peer{padding:12px;gap:12px;margin:6px 0;border:1px solid #e4eaf3;border-radius:12px;background:#fafcff;min-height:68px}
body.embedded.desktop-workspace .peer strong{font-size:13px}
body.embedded.desktop-workspace .peer small{font-size:11px;line-height:1.5}
body.embedded.desktop-workspace .peer-icon{width:40px;height:40px;border-radius:12px}
body.embedded.desktop-workspace #nearby-section{margin-top:16px;padding-top:16px;border-top:1px solid #e5eaf2}
body.embedded.desktop-workspace .nearby-heading{font-size:17px;margin:0 0 12px;letter-spacing:-.3px}
body.embedded.desktop-workspace #nearby-section label{padding:0;margin:0 0 10px;font-size:13px;min-height:28px}
body.embedded.desktop-workspace #nearby-empty{margin:10px 0;padding:13px 15px;border-radius:12px;font-size:12px;line-height:1.6}
body.embedded.desktop-workspace .discovery-network-note{font-size:11px;line-height:1.6;margin:10px 0 0}
body.embedded.desktop-workspace #empty-peers.manual-pair{padding-top:16px;margin-top:auto}
body.embedded.desktop-workspace #pair-card{min-height:44px;padding:12px 16px;font-size:13px;border-radius:12px}
body.embedded.desktop-workspace .manual-pair>p{font-size:11px;margin:10px 0 16px;line-height:1.5}
body.embedded.desktop-workspace .device-hint{font-size:10px;margin-top:0;padding:15px 0;border-top:1px solid #e5eaf2}
body.embedded.desktop-workspace .transfer-row{border-color:#d7e0ed;border-radius:14px;padding:16px 20px}
body.embedded.desktop-workspace .share-card{padding-top:42px}
@media(min-width:1001px){
 body:not(.embedded) .intro h1 span{margin-left:.16em}
 body:not(.embedded) .intro h1 span:before{content:none}
 body:not(.embedded) .share-card>p{max-width:390px}
}
@media(min-width:1001px){body:not(.embedded) .backup-grid{align-items:stretch}}
