/* ATLAS Phase 3A — Mobile Polish + Notification Settings Cleanup
   Safe control cleanup only. No color redesign, no Claude changes, no Worker changes. */

.atlas-device-control-card{
  margin:14px 0;
  border:1px solid rgba(0,229,255,.22);
  background:linear-gradient(135deg,rgba(0,229,255,.07),rgba(168,85,247,.06));
  border-radius:18px;
  padding:14px;
}
.atlas-device-control-card h4{margin:0;font-size:15px;letter-spacing:.02em}
.atlas-device-control-card p{margin:4px 0 0;color:var(--muted2);font-size:12px;line-height:1.45}
.atlas-device-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}
.atlas-device-stat{border:1px solid var(--line);border-radius:14px;padding:10px;background:rgba(2,6,23,.22)}
body.light-mode .atlas-device-stat{background:rgba(255,255,255,.55)}
.atlas-device-stat small{display:block;color:var(--muted2);font-family:var(--mono);font-size:10px;text-transform:uppercase;letter-spacing:.08em}
.atlas-device-stat strong{display:block;margin-top:5px;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.atlas-device-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.atlas-device-actions button{
  min-height:38px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.07);
  color:var(--text);
  border-radius:13px;
  padding:8px 10px;
  font-size:12px;
  cursor:pointer;
}
.atlas-device-actions button.primary{border-color:rgba(0,229,255,.4);background:rgba(0,229,255,.10)}
.atlas-device-actions button.warn{border-color:rgba(245,158,11,.4);background:rgba(245,158,11,.10)}
.atlas-device-actions button.purple{border-color:rgba(168,85,247,.4);background:rgba(168,85,247,.12)}
.atlas-device-help{margin-top:10px!important;color:var(--muted2)!important;font-size:12px!important;line-height:1.45!important}

/* Make existing push settings easier to scan without redesigning them */
.atlas-push-settings .btn-row,
.atlas-autosync-settings .btn-row{gap:8px}
.atlas-push-settings button,
.atlas-autosync-settings button{min-height:38px}
.atlas-push-settings .atlas-push-grid input,
.atlas-push-settings .atlas-push-grid select{min-height:38px}

@media(max-width:760px){
  body{padding-bottom:calc(92px + env(safe-area-inset-bottom))}
  .atlas-device-control-card{padding:13px;margin:12px 0;border-radius:16px}
  .atlas-device-grid{grid-template-columns:1fr;gap:7px}
  .atlas-device-stat{padding:9px}
  .atlas-device-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}
  .atlas-device-actions button{width:100%;min-height:40px;padding:9px 8px;font-size:11px}
  .atlas-push-settings{padding:13px;border-radius:16px}
  .atlas-push-settings .btn-row{display:grid;grid-template-columns:1fr 1fr;gap:7px}
  .atlas-push-settings .btn-row button{width:100%;min-height:40px;font-size:11px;padding:8px}
  .atlas-push-status{bottom:calc(96px + env(safe-area-inset-bottom));}
  .atlas-sync-float{bottom:calc(92px + env(safe-area-inset-bottom));}
  .mobile-bottom-nav,.bottom-nav{padding-bottom:max(8px,env(safe-area-inset-bottom))}
  .card,.section-card{scroll-margin-top:90px}
}

@media(max-width:420px){
  .atlas-device-actions{grid-template-columns:1fr}
  .atlas-push-settings .btn-row{grid-template-columns:1fr}
  .atlas-top-sync-control{transform:scale(.94);transform-origin:top right}
}
