/* ============================================================
   Unifical — Dashboard styles (DashA list variant)
   ============================================================ */

.dash { position: relative; width: 100%; min-height: 100vh; background: var(--bg); display: flex; overflow: hidden; }

/* ---- sidebar ---- */
.dash-side {
  width: 232px; flex: none; background: var(--bg-2);
  border-right: 1px solid var(--line); padding: 22px 16px;
  display: flex; flex-direction: column; gap: 6px; position: relative; z-index: 2;
  height: 100vh; position: sticky; top: 0;
}
.dash-side .uf-logo { padding: 4px 8px 18px; }
.dash-nav-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--ink-mute);
  cursor: pointer; transition: background .18s, color .18s; position: relative;
  text-decoration: none;
}
.dash-nav-item .ic { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid currentColor; flex: none; opacity: .85; }
.dash-nav-item:hover { color: var(--ink); background: rgba(255,255,255,.03); }
.dash-nav-item.active { color: #fff; background: rgba(255,46,151,.10); }
.dash-nav-item.active::before {
  content: ""; position: absolute; left: -16px; top: 8px; bottom: 8px; width: 3px;
  border-radius: 3px; background: var(--grad-fill-all); box-shadow: 0 0 12px var(--pink);
}
.dash-nav-item.active .ic { border-color: var(--pink); background: rgba(255,46,151,.2); }
.dash-nav-badge {
  margin-left: auto; font-family: var(--mono); font-size: 10.5px;
  background: rgba(255,46,151,.15); color: var(--pink-soft);
  border-radius: 999px; padding: 2px 8px; border: 1px solid rgba(255,46,151,.3);
}
.dash-side-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 8px 4px; border-top: 1px solid var(--line); }
.dash-avatar { width: 30px; height: 30px; border-radius: 9px; background: var(--grad-fill-all); flex: none; }
.dash-user-info { flex: 1; min-width: 0; }
.dash-user-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-user-mail { font-family: var(--mono); font-size: 10.5px; color: var(--ink-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- main content ---- */
.dash-main { flex: 1; padding: 26px 32px; overflow: auto; position: relative; }
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; }
.dash-title { font-size: 27px; font-weight: 700; letter-spacing: -.02em; }
.dash-subtitle { font-size: 14px; color: var(--ink-mute); margin-top: 5px; }

/* ---- stat row ---- */
.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.dash-stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.dash-stat .n { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.dash-stat .l { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); margin-top: 4px; }
.dash-stat .n.accent { color: var(--cyan); }
.dash-stat .n.danger { color: var(--err); }

/* ---- shared sync atoms ---- */
.endpoint { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; }
.endpoint .swatch { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.dir {
  font-family: var(--mono); font-size: 15px; color: var(--cyan);
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; text-align: center;
}
.mode-chip {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 7px; border: 1px solid var(--line-2); color: var(--ink-soft);
  white-space: nowrap;
}
.mode-chip.busy { color: var(--ink-soft); }
.mode-chip.redact { color: var(--warn); border-color: rgba(255,194,75,.35); }
.mode-chip.full { color: var(--cyan); border-color: rgba(0,229,255,.35); }
.status-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; }
.status-tag.ok { color: var(--ok); }
.status-tag.paused { color: var(--ink-mute); }
.status-tag.err { color: var(--err); }
.last-sync { font-family: var(--mono); font-size: 12px; color: var(--ink-mute); }

/* ---- sync list (DashA) ---- */
.synclist { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.synclist-head, .syncrow {
  display: grid;
  grid-template-columns: 2.3fr 0.7fr 1.1fr 0.9fr 1.05fr;
  align-items: center;
  padding: 0 22px; gap: 14px;
}
.syncrow .mode-chip { justify-self: start; }
.synclist-head {
  height: 44px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-faint); border-bottom: 1px solid var(--line);
}
.syncrow { height: 70px; border-bottom: 1px solid var(--line); transition: background .16s; cursor: pointer; }
.syncrow:last-child { border-bottom: none; }
.syncrow:hover { background: rgba(255,255,255,.025); }
.syncrow .pair { display: flex; align-items: center; gap: 4px; }
.syncrow .pair .name-wrap { display: flex; flex-direction: column; }
.syncrow .pair .sync-name { font-size: 14.5px; font-weight: 600; }
.syncrow .pair .sync-ep { font-family: var(--mono); font-size: 11px; color: var(--ink-mute); display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.syncrow .status-cell { display: flex; justify-content: flex-end; }
.syncrow .status-cell .status-tag { white-space: nowrap; }

/* ---- loading / empty states ---- */
.dash-empty {
  text-align: center; padding: 64px 40px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.dash-empty .em-icon { font-size: 32px; margin-bottom: 16px; }
.dash-empty .em-title { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.dash-empty .em-body { font-size: 14px; color: var(--ink-mute); margin-bottom: 28px; line-height: 1.5; }
