/* ================================================================
   Dashboard styles - pairs with main.css (uses same CSS vars).
   ================================================================ */

/* ---------- Auth screens ---------- */
.auth-body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #FAF7FF 0%, #F3EDFA 100%);
  font-family: var(--font-body);
  color: var(--ink-900);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 80px;
  position: relative;
}
.auth-brand-fixed {
  position: absolute; top: 28px; left: 32px;
}
.auth-brand-fixed a {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--ink-900);
}
.auth-brand-fixed img { width: 28px; height: 28px; }
.auth-brand-fixed span {
  font-family: var(--font-display); font-weight: 600; font-size: 18px;
}
.auth-foot-fixed {
  position: absolute; bottom: 24px; left: 0; right: 0;
  text-align: center; color: var(--muted); font-size: 12px;
}
.auth-wrap {
  width: 100%; max-width: 480px;
}
.auth-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 36px;
  box-shadow: 0 20px 60px -20px rgba(126, 34, 206, 0.18);
}
.auth-card-wide { max-width: 480px; }
.auth-h1 {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 600; letter-spacing: -0.5px;
  margin: 0 0 6px;
}
.auth-sub {
  font-size: 14px; color: var(--ink-soft);
  margin: 0 0 26px;
}
.auth-label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--ink-800); margin: 14px 0 6px;
}
.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"] {
  width: 100%; padding: 11px 14px; font-size: 14px;
  border: 1.5px solid rgba(125, 79, 163, 0.28); border-radius: 10px;
  font-family: var(--font-body); color: var(--ink-900);
  background: #faf7ff; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.auth-card input:focus {
  border-color: var(--purple-500);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(125, 79, 163, 0.12);
}
.auth-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .auth-grid-2 { grid-template-columns: 1fr; } }

.auth-password { position: relative; }
.auth-password input { padding-right: 60px; }
.auth-show {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  font-size: 11px; font-weight: 600; letter-spacing: 0.05em;
  color: var(--ink-soft);
}
.auth-error {
  background: #FEF2F2; color: #B91C1C;
  border: 1px solid #FECACA; border-radius: 8px;
  padding: 10px 12px; font-size: 13px;
  margin: 14px 0;
}
.auth-success {
  background: #F0FDF4; color: #166534;
  border: 1px solid #BBF7D0; border-radius: 8px;
  padding: 10px 12px; font-size: 13px;
  margin: 14px 0;
}
.auth-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 22px 0;
}
.auth-divider::before,
.auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--ink-200);
}
.auth-divider span { font-size: 12px; color: var(--ink-soft); font-weight: 500; }
.auth-google { gap: 10px; }
.auth-foot {
  margin-top: 22px;
  font-size: 13px; color: var(--ink-soft);
  text-align: center;
}
.auth-foot a { color: var(--purple-700); font-weight: 600; }
.auth-foot-small {
  margin-top: 10px;
  font-size: 12px; color: var(--ink-500);
  text-align: center;
}
.auth-foot-small a { color: var(--ink-soft); }

/* ---------- Terms checkbox (signup) ---------- */
.auth-card .auth-terms-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.auth-card .auth-terms-check {
  flex-shrink: 0;
  margin-top: 2px;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px;
  padding: 0 !important;
  border: 2px solid rgba(125,79,163,0.45) !important;
  border-radius: 5px !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background: #fff !important;
  background-image: none !important;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
  position: relative;
  pointer-events: auto;
  z-index: 2;
  display: block;
  box-shadow: none !important;
}
.auth-card .auth-terms-check:checked {
  background-color: #3f1e64 !important;
  border-color: #3f1e64 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8l3.5 3.5L13 5' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 12px 12px !important;
}
.auth-card .auth-terms-check:focus {
  box-shadow: 0 0 0 3px rgba(125,79,163,0.15) !important;
  outline: none;
  background: #fff !important;
  background-image: none !important;
}
.auth-card .auth-terms-check:checked:focus {
  background-color: #3f1e64 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8l3.5 3.5L13 5' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 12px 12px !important;
}
.auth-card .auth-terms-check.invalid {
  border-color: #e53e3e !important;
  box-shadow: 0 0 0 3px rgba(229,62,62,0.12) !important;
}
.auth-card .auth-terms-label {
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
  line-height: 1.5;
  user-select: none;
  margin: 0;
}
.auth-card .auth-terms-label a {
  color: var(--purple-700);
  font-weight: 600;
  text-decoration: none;
}
.auth-card .auth-terms-label a:hover { text-decoration: underline; }

/* ---------- Dashboard shell ---------- */
.dash-body {
  margin: 0;
  background: #FAF7FF;
  font-family: var(--font-body);
  color: var(--ink-900);
  display: flex;
  min-height: 100vh;
}
.dash-sidebar {
  width: 240px; flex-shrink: 0;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.dash-brand {
  display: flex; align-items: center; gap: 8px;
  padding: 22px 22px 18px;
  border-bottom: 1px solid var(--ink-100);
  text-decoration: none; color: var(--ink-900);
}
.dash-brand img { width: 24px; height: 24px; }
.dash-brand span {
  font-family: var(--font-display); font-weight: 600; font-size: 17px;
}
.dash-nav { flex: 1; padding: 14px 12px; overflow-y: auto; }
.dash-nav-item {
  display: block; padding: 10px 14px; margin-bottom: 2px;
  border-radius: 9px;
  text-decoration: none;
  color: var(--ink-700);
  font-size: 14px; font-weight: 500;
  transition: background 0.12s, color 0.12s;
}
.dash-nav-item:hover { background: var(--purple-50); color: var(--purple-800); }
.dash-nav-item.active {
  background: linear-gradient(135deg, var(--purple-100) 0%, var(--pink-100) 100%);
  color: var(--purple-800); font-weight: 600;
}
.dash-side-foot { padding: 14px; border-top: 1px solid var(--ink-100); }
.dash-locked-card {
  padding: 14px;
  background: linear-gradient(135deg, var(--purple-50), var(--pink-50));
  border: 1px solid var(--purple-200);
  border-radius: 10px;
}
.dash-locked-card .title { font-weight: 600; font-size: 13.5px; margin-bottom: 2px; color: var(--ink-900); }
.dash-locked-card .sub { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 10px; }
.dash-plan-pill {
  display: inline-block;
  padding: 6px 12px; border-radius: 999px;
  background: var(--purple-100); color: var(--purple-800);
  font-size: 11px; font-weight: 600; letter-spacing: 0.5px;
}

.dash-main { flex: 1; min-width: 0; }
.dash-topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 18px 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  position: sticky; top: 0; z-index: 50;
}
.dash-page-title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 600; letter-spacing: -0.3px;
  margin: 0 0 2px;
}
.dash-page-sub { margin: 0; font-size: 13.5px; color: var(--ink-soft); }
.dash-topbar-right { display: flex; align-items: center; gap: 14px; }
.dash-user-pill {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background: var(--purple-50);
}
.dash-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-500), var(--pink-500));
  color: #fff; font-weight: 700; font-size: 12.5px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.dash-avatar-lg { width: 44px; height: 44px; font-size: 14px; }
.dash-user-meta .name { font-size: 13px; font-weight: 600; color: var(--ink-900); line-height: 1.2; }
.dash-user-meta .email { font-size: 11.5px; color: var(--ink-soft); line-height: 1.2; }
.dash-logout {
  font-size: 13px; font-weight: 500;
  color: var(--ink-soft); text-decoration: none;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--ink-200);
}
.dash-logout:hover { color: var(--ink-900); border-color: var(--ink-300); }

.dash-content { padding: 28px 32px; max-width: 1280px; }

/* ---------- Cards ---------- */
.dash-section { margin-bottom: 28px; }
.dash-section-h {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 600;
  margin: 0 0 14px; color: var(--ink-900);
}
.dash-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 14px;
}
.dash-card-eyebrow {
  font-size: 11.5px; font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: 0.4px;
  margin-bottom: 8px;
}
.dash-card-h {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 600;
  margin: 0 0 8px; color: var(--ink-900); letter-spacing: -0.2px;
}
.dash-card-h-large {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 600; letter-spacing: -0.4px;
  margin: 0 0 8px; color: var(--ink-900);
}
.dash-card-body { font-size: 14px; color: var(--ink-700); line-height: 1.6; margin: 0 0 8px; }
.dash-card-link { font-size: 13px; font-weight: 600; color: var(--purple-700); text-decoration: none; }
.dash-card-link:hover { color: var(--purple-800); }

.dash-meta-row {
  display: flex; flex-wrap: wrap; gap: 8px;
  font-size: 13px; color: var(--ink-soft);
  margin: 6px 0 14px;
}
.dash-mute { color: var(--ink-soft); }

.dash-pill {
  display: inline-block;
  padding: 3px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.3px;
  background: var(--ink-100); color: var(--ink-700);
}
.dash-pill-soft   { background: var(--purple-50); color: var(--purple-700); }
.dash-pill-pink   { background: var(--pink-100);  color: var(--pink-600); }
.dash-pill-priority-high { background: #FEE2E2; color: #B91C1C; }
.dash-pill-priority-med, .dash-pill-priority-medium { background: #FEF3C7; color: #92400E; }
.dash-pill-priority-low { background: #DCFCE7; color: #166534; }
.dash-pill-status-done, .dash-pill-status-resolved, .dash-pill-status-read { background: #DCFCE7; color: #166534; }
.dash-pill-status-in-progress { background: #DBEAFE; color: #1E40AF; }
.dash-pill-status-pending, .dash-pill-status-unread { background: var(--purple-100); color: var(--purple-700); }

.dash-bullet-list { margin: 8px 0 0; padding-left: 18px; font-size: 14px; color: var(--ink-700); line-height: 1.7; }
.dash-bullet-list li { margin-bottom: 4px; }

.dash-grid-overview {
  display: grid; gap: 14px;
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 880px) { .dash-grid-overview { grid-template-columns: 1fr; } }
.dash-card-action {
  background: linear-gradient(135deg, var(--purple-50) 0%, var(--pink-50) 100%);
  border-color: var(--purple-200);
}

.dash-grid-two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 14px 0; }
@media (max-width: 720px) { .dash-grid-two { grid-template-columns: 1fr; } }

.dash-empty {
  background: #fff;
  border: 1px dashed var(--ink-200);
  border-radius: 14px;
  padding: 32px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 14px;
}

.dash-locked-empty {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 56px 32px;
  text-align: center;
  max-width: 520px;
  margin: 40px auto;
}
.dash-locked-empty h2 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 600; margin: 0 0 8px;
}
.dash-locked-empty p {
  font-size: 14px; color: var(--ink-soft);
  margin: 0 0 22px; line-height: 1.6;
}

/* ---------- Meetings ---------- */
.dash-meeting-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.dash-meeting-when { margin-bottom: 10px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.dash-meeting-attendees { font-size: 13px; color: var(--ink-700); margin: 10px 0; }
.dash-meeting-attendees span { display: inline-block; margin-right: 10px; }
.dash-meeting-attendees strong { color: var(--ink-900); }
.dash-prep { margin: 14px 0; padding: 14px; background: var(--purple-50); border-radius: 10px; }
.dash-prep summary { cursor: pointer; user-select: none; font-size: 13.5px; }
.dash-checklist { list-style: none; padding: 0; margin: 12px 0 0; }
.dash-checklist li { padding: 6px 0; font-size: 14px; }
.dash-checklist input[type="checkbox"] { margin-right: 10px; transform: translateY(1px); accent-color: var(--purple-700); }
.dash-checklist input[type="checkbox"]:checked + label { text-decoration: line-through; color: var(--ink-soft); }
.dash-meeting-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

.dash-past-meeting { background: #fff; }
.dash-followup-list { list-style: none; padding: 0; margin: 8px 0 0; }
.dash-followup-list li { padding: 6px 0; font-size: 13.5px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dash-followup-title { font-weight: 600; color: var(--ink-900); }

/* ---------- Reports / table ---------- */
.dash-table {
  width: 100%; border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.dash-table th, .dash-table td {
  padding: 12px 16px; text-align: left;
  border-bottom: 1px solid var(--ink-100);
  font-size: 13.5px;
}
.dash-table th {
  background: var(--purple-50); color: var(--ink-700);
  font-size: 12px; font-weight: 600; letter-spacing: 0.3px; text-transform: uppercase;
}
.dash-table tr:last-child td { border-bottom: none; }
.dash-table tr:hover td { background: var(--purple-50); }

.dash-report-featured {
  background: linear-gradient(135deg, var(--purple-50) 0%, var(--pink-50) 100%);
  border-color: var(--purple-200);
}

/* ---------- Progress / timeline ---------- */
.dash-timeline { padding: 14px 0; }
.dash-timeline-item {
  position: relative; padding-left: 30px; padding-bottom: 18px;
  border-left: 2px solid var(--ink-200);
  margin-left: 8px;
}
.dash-timeline-item:last-child { padding-bottom: 0; }
.dash-timeline-dot {
  position: absolute; left: -7px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--ink-300); border: 2px solid #fff;
}
.dash-timeline-done .dash-timeline-dot { background: #16A34A; }
.dash-timeline-in-progress .dash-timeline-dot { background: var(--purple-500); }
.dash-timeline-pending .dash-timeline-dot { background: var(--ink-300); }
.dash-timeline-title { font-weight: 600; font-size: 14px; color: var(--ink-900); }

/* ---------- Messages / chat ---------- */
.dash-chat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex; flex-direction: column;
  height: calc(100vh - 220px); min-height: 480px;
}
.dash-chat-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--ink-100);
}
.dash-chat-thread { flex: 1; overflow-y: auto; padding: 20px; }
.dash-chat-row {
  display: flex; gap: 10px; margin-bottom: 14px; align-items: flex-end;
}
.dash-chat-row.dash-chat-me { justify-content: flex-end; }
.dash-chat-bubble {
  max-width: 70%;
  background: var(--purple-50);
  padding: 10px 14px; border-radius: 14px;
  font-size: 14px; line-height: 1.5;
}
.dash-chat-row.dash-chat-me .dash-chat-bubble {
  background: linear-gradient(135deg, var(--purple-700), var(--pink-500));
  color: #fff;
}
.dash-chat-from { font-size: 11.5px; font-weight: 600; opacity: 0.7; margin-bottom: 2px; }
.dash-chat-time { font-size: 11px; opacity: 0.6; margin-top: 4px; }
.dash-chat-compose {
  display: flex; gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--ink-100);
}
.dash-chat-compose input {
  flex: 1; padding: 10px 14px;
  border: 1.5px solid var(--ink-200); border-radius: 10px;
  font-family: var(--font-body); font-size: 14px;
  outline: none;
}
.dash-chat-compose input:focus {
  border-color: var(--purple-500);
  box-shadow: 0 0 0 3px var(--purple-100);
}

/* ---------- Documents ---------- */
.dash-upload-card {
  display: flex; gap: 18px; align-items: center;
  background: linear-gradient(135deg, var(--purple-50) 0%, var(--pink-50) 100%);
  border: 1px solid var(--purple-200);
  border-radius: 14px;
  padding: 22px;
  flex-wrap: wrap; justify-content: space-between;
}

/* ---------- Billing ---------- */
.dash-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); gap: 14px;
}
@media (max-width: 880px) { .dash-plans-grid { grid-template-columns: 1fr; } }
.dash-plan-card {
  background: #fff; border: 2px solid var(--ink-200);
  border-radius: 14px; padding: 22px;
  position: relative;
}
.dash-plan-card.is-featured { border-color: var(--purple-500); }
.dash-plan-card.is-current  { background: linear-gradient(135deg, var(--purple-50) 0%, var(--pink-50) 100%); border-color: var(--purple-700); }
.dash-plan-badge {
  position: absolute; top: -10px; left: 16px;
  background: var(--purple-700); color: #fff;
  padding: 3px 10px; border-radius: 999px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.5px;
}
.dash-plan-badge-current { background: var(--pink-500); }
.dash-plan-name { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.dash-plan-price { font-size: 14px; color: var(--purple-700); font-weight: 600; margin-bottom: 4px; }
.dash-plan-desc { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 12px; }

/* ---------- Navbar (logged-in state) ---------- */
.nav-links a.nav-login {
  color: var(--purple-700);
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--purple-200);
  background: transparent;
}
.nav-links a.nav-login:hover {
  background: var(--purple-50);
  border-color: var(--purple-400);
  color: var(--purple-800);
}
.nav-links a.nav-logout {
  color: var(--ink-soft);
  font-size: 13px;
}
.nav-links a.nav-logout:hover { color: var(--ink-900); }

@media (max-width: 980px) {
  .nav-links a.nav-login,
  .nav-links a.nav-logout { display: none; }
}

/* ---------- Sidebar mobile ---------- */
@media (max-width: 760px) {
  .dash-body { flex-direction: column; }
  .dash-sidebar {
    width: 100%; height: auto; position: static;
    border-right: none; border-bottom: 1px solid var(--line);
  }
  .dash-nav { display: flex; gap: 4px; overflow-x: auto; padding: 10px; }
  .dash-nav-item { flex-shrink: 0; padding: 8px 12px; }
  .dash-side-foot { display: none; }
  .dash-content { padding: 18px; }
  .dash-topbar { padding: 14px 18px; flex-wrap: wrap; }
  .dash-user-pill .dash-user-meta { display: none; }
}

/* ================================================================
   ADMIN-PANEL ADDITIONS
   ================================================================ */

/* Admin tag in sidebar brand */
.dash-admin-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.7px;
  background: var(--purple-700);
  color: #fff;
  vertical-align: middle;
  margin-left: 4px;
}

/* Stats row */
.dash-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 880px) { .dash-stats-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .dash-stats-row { grid-template-columns: 1fr; } }
.dash-stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}
.dash-stat-eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 8px;
}
.dash-stat-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--ink-900);
}

/* Bar chart for plan/role distribution */
.dash-bar-row {
  display: grid;
  grid-template-columns: 80px 1fr 32px;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}
.dash-bar-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--ink-700);
}
.dash-bar-track {
  height: 10px;
  background: var(--ink-100);
  border-radius: 999px;
  overflow: hidden;
}
.dash-bar-fill {
  height: 100%;
  background: var(--purple-500);
  border-radius: 999px;
  transition: width 0.4s ease;
  min-width: 2px;
}
.dash-bar-num {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-700);
  text-align: right;
}

/* Filter bar (above tables) */
.dash-filter-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
}
.dash-filter-bar input[type="text"] {
  flex: 1;
  min-width: 220px;
  padding: 8px 12px;
  border: 1.5px solid var(--ink-200);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 13.5px;
  outline: none;
}
.dash-filter-bar select {
  padding: 8px 12px;
  border: 1.5px solid var(--ink-200);
  border-radius: 8px;
  background: #fff;
  font-family: var(--font-body);
  font-size: 13.5px;
  outline: none;
  min-width: 130px;
}
.dash-filter-bar input:focus,
.dash-filter-bar select:focus {
  border-color: var(--purple-500);
  box-shadow: 0 0 0 3px var(--purple-100);
}
.dash-filter-bar label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
}

/* Two-column form grid (used in admin edit forms) */
.dash-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
}
@media (max-width: 720px) { .dash-form-grid { grid-template-columns: 1fr; } }
.dash-form-grid .dash-form-full { grid-column: 1 / -1; }
.dash-form-grid label {
  display: flex;
  flex-direction: column;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-700);
  gap: 4px;
}
.dash-form-grid input[type="text"],
.dash-form-grid input[type="email"],
.dash-form-grid input[type="date"],
.dash-form-grid input[type="datetime-local"],
.dash-form-grid select,
.dash-form-grid textarea,
.dash-form-grid input:not([type]) {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--ink-200);
  border-radius: 8px;
  background: #fff;
  font-family: var(--font-body);
  font-size: 13.5px;
  outline: none;
  font-weight: 500;
  color: var(--ink-900);
}
.dash-form-grid textarea {
  resize: vertical;
  min-height: 60px;
  font-family: var(--font-body);
}
.dash-form-grid input:focus,
.dash-form-grid select:focus,
.dash-form-grid textarea:focus {
  border-color: var(--purple-500);
  box-shadow: 0 0 0 3px var(--purple-100);
}

/* Admin sidebar tweak - slightly emphasised purple top border */
.dash-sidebar-admin .dash-brand {
  border-bottom-color: var(--purple-200);
}

/* ================================================================
   ZEEVRON DASHBOARD - MOBILE-ONLY OVERRIDE LAYER (Method 1)
   --------------------------------------------------------------
   Pairs with the mobile layer in main.css. Only in effect at
   ≤900px. Cannot affect the desktop dashboard / auth UI.
   ================================================================ */
@media (max-width: 900px) {
  /* Auth screens - make sure nothing pushes past the viewport */
  .auth-body {
    padding: 80px 14px 60px !important;
  }
  .auth-brand-fixed {
    top: 18px !important;
    left: 16px !important;
  }
  .auth-wrap { max-width: 100% !important; }
  .auth-card {
    padding: 26px 22px !important;
    border-radius: 16px !important;
  }
  .auth-card-wide { max-width: 100% !important; }
  .auth-h1 { font-size: 24px !important; }
  .auth-card input,
  .auth-card select,
  .auth-card textarea {
    font-size: 16px !important;  /* prevent iOS zoom-on-focus */
  }
  .auth-grid-2 { grid-template-columns: 1fr !important; }

  /* Dashboard layout - single column */
  .dash-body { flex-direction: column !important; }
  .dash-sidebar {
    width: 100% !important;
    height: auto !important;
    position: static !important;
    border-right: none !important;
    border-bottom: 1px solid var(--line) !important;
  }
  .dash-nav {
    display: flex !important;
    gap: 4px !important;
    overflow-x: auto !important;
    padding: 10px !important;
    flex-wrap: nowrap !important;
  }
  .dash-nav-item {
    flex-shrink: 0 !important;
    padding: 8px 12px !important;
    white-space: nowrap !important;
  }
  .dash-side-foot { display: none !important; }
  .dash-content { padding: 18px 14px !important; }
  .dash-topbar {
    padding: 14px 16px !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }
  .dash-user-pill .dash-user-meta { display: none !important; }

  /* Dashboard grids - every multi-column → single-column */
  .dash-grid-overview,
  .dash-grid-two,
  .dash-plans-grid,
  .dash-stats-row,
  .dash-form-grid,
  .dash-meeting-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  /* Cards / upload-card / pill rows */
  .dash-upload-card {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }
  .dash-meeting-actions {
    flex-wrap: wrap !important;
  }

  /* Tables inside dashboard scroll horizontally rather than overflow page */
  .dash-content table,
  .dash-card table {
    display: block !important;
    overflow-x: auto !important;
    width: 100% !important;
  }
}
/* ================================================================
   END dashboard mobile-only override layer
   ================================================================ */
