/* ATLAS Phase 3B — Device and Sync Dashboard
   Frontend-only status layer. No Worker, D1, Claude, or visual identity changes. */

.atlas-sync-dashboard-card{
  margin:14px 0;
  border:1px solid rgba(34,197,94,.22);
  background:linear-gradient(135deg,rgba(34,197,94,.07),rgba(0,229,255,.05),rgba(168,85,247,.05));
  border-radius:18px;
  padding:14px;
}
.atlas-sync-dashboard-card h4{margin:0;font-size:15px;letter-spacing:.02em}
.atlas-sync-dashboard-card p{margin:4px 0 0;color:var(--muted2);font-size:12px;line-height:1.45}
.atlas-sync-dashboard-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.atlas-sync-health-pill{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:999px;padding:7px 10px;font-family:var(--mono);font-size:11px;white-space:nowrap}
.atlas-sync-health-pill::before{content:"";width:8px;height:8px;border-radius:999px;background:var(--muted2);box-shadow:0 0 0 3px rgba(148,163,184,.10)}
.atlas-sync-health-pill[data-state="healthy"]{border-color:rgba(34,197,94,.35);background:rgba(34,197,94,.09)}
.atlas-sync-health-pill[data-state="healthy"]::before{background:rgb(34,197,94);box-shadow:0 0 0 3px rgba(34,197,94,.14)}
.atlas-sync-health-pill[data-state="warning"]{border-color:rgba(245,158,11,.35);background:rgba(245,158,11,.09)}
.atlas-sync-health-pill[data-state="warning"]::before{background:rgb(245,158,11);box-shadow:0 0 0 3px rgba(245,158,11,.14)}
.atlas-sync-health-pill[data-state="danger"]{border-color:rgba(239,68,68,.35);background:rgba(239,68,68,.09)}
.atlas-sync-health-pill[data-state="danger"]::before{background:rgb(239,68,68);box-shadow:0 0 0 3px rgba(239,68,68,.14)}
.atlas-sync-dashboard-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.atlas-sync-dashboard-tile{border:1px solid var(--line);border-radius:14px;padding:10px;background:rgba(2,6,23,.22);min-width:0}
body.light-mode .atlas-sync-dashboard-tile{background:rgba(255,255,255,.56)}
.atlas-sync-dashboard-tile small{display:block;color:var(--muted2);font-family:var(--mono);font-size:10px;text-transform:uppercase;letter-spacing:.08em}
.atlas-sync-dashboard-tile strong{display:block;margin-top:6px;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.atlas-sync-dashboard-tile span{display:block;margin-top:4px;color:var(--muted2);font-size:11px;line-height:1.35}
.atlas-sync-dashboard-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.atlas-sync-dashboard-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-sync-dashboard-actions button.primary{border-color:rgba(0,229,255,.4);background:rgba(0,229,255,.10)}
.atlas-sync-dashboard-actions button.warn{border-color:rgba(245,158,11,.4);background:rgba(245,158,11,.10)}
.atlas-sync-dashboard-actions button.purple{border-color:rgba(168,85,247,.4);background:rgba(168,85,247,.12)}
.atlas-sync-dashboard-actions button.green{border-color:rgba(34,197,94,.38);background:rgba(34,197,94,.10)}
.atlas-sync-dashboard-note{margin-top:10px!important;color:var(--muted2)!important;font-size:12px!important;line-height:1.45!important}

@media(max-width:900px){.atlas-sync-dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
  .atlas-sync-dashboard-card{padding:13px;margin:12px 0;border-radius:16px}
  .atlas-sync-dashboard-top{display:block}
  .atlas-sync-health-pill{margin-top:10px}
  .atlas-sync-dashboard-grid{grid-template-columns:1fr;gap:7px}
  .atlas-sync-dashboard-tile{padding:9px}
  .atlas-sync-dashboard-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}
  .atlas-sync-dashboard-actions button{width:100%;min-height:40px;font-size:11px;padding:8px}
}
@media(max-width:420px){.atlas-sync-dashboard-actions{grid-template-columns:1fr}}
