* { box-sizing: border-box; margin: 0; padding: 0; }
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal; font-style: normal; font-size: 20px; line-height: 1;
  letter-spacing: normal; text-transform: none; display: inline-block;
  white-space: nowrap; direction: ltr; -webkit-font-smoothing: antialiased;
  user-select: none; vertical-align: middle;
}
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }

/* ── Top nav ── */
.top-nav {
  height: 52px; flex-shrink: 0;
  background: #1e293b;
  display: flex; align-items: center; gap: 4px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-brand {
  font-size: 15px; font-weight: 700; color: #fff;
  text-decoration: none; padding: 6px 10px; border-radius: 8px;
  margin-right: 8px; flex-shrink: 0;
  letter-spacing: -0.3px;
}
.nav-brand:hover { background: rgba(255,255,255,0.08); }
.nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 8px;
  color: #94a3b8; text-decoration: none;
  font-size: 13px; font-weight: 500;
  transition: background 0.12s, color 0.12s; white-space: nowrap;
}
.nav-link:hover { background: rgba(255,255,255,0.08); color: #e2e8f0; }
.nav-link.active { background: rgba(255,255,255,0.13); color: #fff; }
.nav-link .material-symbols-outlined { font-size: 18px; }
.nav-spacer { flex: 1; }
.nav-status { display: flex; align-items: center; gap: 6px; }
.nav-dot { width: 8px; height: 8px; border-radius: 50%; background: #475569; flex-shrink: 0; }
.nav-dot.online { background: #22c55e; }
.nav-status-label { font-size: 12px; color: #64748b; }
.nav-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: #334155; border: 2px solid #475569;
  object-fit: cover; cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #94a3b8; font-size: 14px; font-weight: 600;
  text-decoration: none; overflow: hidden;
}
.nav-avatar:hover { border-color: #64748b; }
.nav-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ── Page shell ── */
.page-body {
  min-height: 100dvh; display: flex; flex-direction: column;
  background: #f1f5f9;
}
.page-content {
  flex: 1; padding: 32px 24px; max-width: 720px; margin: 0 auto; width: 100%;
}

/* ── Cards ── */
.card {
  background: #fff; border-radius: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  padding: 24px; margin-bottom: 20px;
}
.card-title {
  font-size: 15px; font-weight: 700; color: #111827;
  margin-bottom: 18px; display: flex; align-items: center; gap: 8px;
}
.card-title .material-symbols-outlined { font-size: 20px; color: #6b7280; }

/* ── Form fields ── */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 500; color: #374151; margin-bottom: 5px; }
.field input, .field textarea {
  width: 100%; padding: 9px 12px;
  border: 1px solid #d1d5db; border-radius: 8px;
  font-size: 14px; font-family: inherit; outline: none;
  transition: border-color 0.15s;
}
.field input:focus, .field textarea:focus { border-color: #2563eb; }
.field input[readonly] { background: #f9fafb; color: #6b7280; cursor: default; }
.field textarea { resize: none; }

/* ── Buttons ── */
.btn-primary {
  padding: 9px 20px; background: #2563eb; color: #fff;
  border: none; border-radius: 8px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background 0.15s;
}
.btn-primary:hover { background: #1d4ed8; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-secondary {
  padding: 9px 20px; background: #f3f4f6; color: #374151;
  border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; font-weight: 500;
  cursor: pointer; transition: background 0.15s;
}
.btn-secondary:hover { background: #e5e7eb; }
.btn-danger {
  padding: 9px 20px; background: #fff; color: #ef4444;
  border: 1px solid #fca5a5; border-radius: 8px; font-size: 14px; font-weight: 500;
  cursor: pointer; transition: background 0.15s;
}
.btn-danger:hover { background: #fef2f2; }

/* ── Alerts ── */
.alert-error { color: #ef4444; font-size: 13px; margin-top: 8px; }
.alert-success { color: #16a34a; font-size: 13px; margin-top: 8px; }
