/* =========================================================
   MATHZEM STUDENT DASHBOARD — APP STYLE SIDEBAR REDESIGN
   File: student-dashboard.css
   Purpose: redesign existing working Student Dashboard into a
   clean app-style layout while preserving existing IDs/classes.
========================================================= */

:root {
  --mz-primary: #2563eb;
  --mz-primary-dark: #1d4ed8;
  --mz-primary-soft: #eff6ff;
  --mz-primary-border: #bfdbfe;
  --mz-teal: #39b8ad;
  --mz-teal-soft: #ecfeff;
  --mz-purple: #7c3aed;
  --mz-purple-soft: #f5f3ff;
  --mz-orange: #f59e0b;
  --mz-orange-soft: #fff7ed;
  --mz-red: #ef4444;
  --mz-red-soft: #fff1f2;
  --mz-green: #10b981;
  --mz-green-soft: #ecfdf5;
  --mz-dark: #0f172a;
  --mz-text: #0f172a;
  --mz-muted: #475569;
  --mz-soft-muted: #64748b;
  --mz-border: #dbeafe;
  --mz-border-light: #e2e8f0;
  --mz-card: rgba(255, 255, 255, 0.96);
  --mz-shadow: 0 18px 52px rgba(15, 23, 42, 0.065);
  --mz-shadow-strong: 0 24px 80px rgba(15, 23, 42, 0.10);
  --mz-radius-xl: 30px;
  --mz-radius-lg: 24px;
  --mz-radius-md: 18px;
}

/* Global dashboard scope */
.mz-dashboard-page,
.mz-dashboard-page *:not(mjx-container):not(mjx-container *) {
  box-sizing: border-box;
  font-family: 'Poppins', 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif !important;
}

.mz-dashboard-page {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 26px 18px 72px;
  color: var(--mz-text);
  background:
    radial-gradient(circle at 6% 0%, rgba(37, 99, 235, 0.14), transparent 30%),
    radial-gradient(circle at 96% 5%, rgba(57, 184, 173, 0.14), transparent 30%),
    radial-gradient(circle at 70% 100%, rgba(124, 58, 237, 0.08), transparent 36%),
    linear-gradient(135deg, #f8fbff 0%, #eff6ff 45%, #ecfeff 100%);
}

/* =========================================================
   TOP MINI NAV
========================================================= */

.mz-dashboard-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.mz-nav-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mz-dashboard-nav-btn {
  min-width: 148px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 16px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--mz-primary);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--mz-primary-border);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.08);
  font-size: 13.5px;
  font-weight: 900;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.mz-dashboard-nav-btn:hover,
.mz-dashboard-nav-btn:focus-visible {
  transform: translateY(-2px);
  background: #ffffff;
  border-color: #93c5fd;
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.14);
  outline: none;
}

.mz-dashboard-nav-btn span {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--mz-primary-soft);
}

/* =========================================================
   HERO
========================================================= */

.mz-hero,
.mz-dashboard-hero {
  position: relative;
  overflow: hidden;
  padding: 34px 24px 30px;
  margin-bottom: 20px;
  text-align: center;
  border-radius: 34px;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 34%),
    radial-gradient(circle at top right, rgba(57, 184, 173, 0.12), transparent 30%),
    rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(219, 234, 254, 0.95);
  box-shadow: var(--mz-shadow);
}

.mz-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--mz-primary);
  background: var(--mz-primary-soft);
  border: 1px solid var(--mz-primary-border);
  font-size: 13.5px;
  font-weight: 950;
}

.mz-title {
  margin: 0;
  color: var(--mz-dark);
  font-size: clamp(32px, 4.8vw, 56px);
  line-height: 1.04;
  letter-spacing: -1.55px;
  font-weight: 950;
}

.mz-gradient-text {
  color: var(--mz-teal) !important;
  background: none !important;
  -webkit-text-fill-color: var(--mz-teal) !important;
}

.mz-subtitle {
  max-width: 880px;
  margin: 14px auto 0;
  color: var(--mz-muted);
  font-size: 16.4px;
  line-height: 1.7;
  font-weight: 600;
}

/* =========================================================
   CARDS, BUTTONS, INPUTS
========================================================= */

.mz-card,
.mz-stat-card,
.mz-map-card,
.mz-attempt-card,
.mz-resume-card,
.mz-profile-card,
.mz-profile-note-card,
.mz-study-plan-body,
.mz-feedback-full,
.mz-dashboard-connect-bar,
.mz-dashboard-tour-card,
.mz-empty-preview-card,
.mz-preview-card,
.mz-profile-setting-card {
  background: var(--mz-card);
  border: 1px solid rgba(219, 234, 254, 0.96);
  box-shadow: var(--mz-shadow);
  backdrop-filter: blur(14px);
}

.mz-card {
  border-radius: var(--mz-radius-xl);
}

.mz-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--mz-border-light);
  background: #ffffff;
  color: var(--mz-text);
  font-size: 14.5px;
  line-height: 1.3;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.mz-input::placeholder {
  color: #94a3b8;
}

.mz-input:focus {
  border-color: var(--mz-primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

.mz-btn,
.mz-subscription-manage-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 13px 22px;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.mz-btn:hover,
.mz-subscription-manage-btn:hover {
  transform: translateY(-2px);
}

.mz-btn-primary,
.mz-subscription-manage-btn {
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--mz-primary), #06b6d4) !important;
  box-shadow: 0 15px 32px rgba(37, 99, 235, 0.24) !important;
}

.mz-btn-primary:hover,
.mz-subscription-manage-btn:hover {
  background: linear-gradient(135deg, var(--mz-primary-dark), var(--mz-primary)) !important;
  box-shadow: 0 20px 44px rgba(37, 99, 235, 0.30) !important;
}

.mz-btn-soft,
.mz-small-link,
.mz-feedback-toggle {
  color: var(--mz-primary) !important;
  background: #ffffff !important;
  border: 1px solid var(--mz-primary-border) !important;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.08) !important;
}

.mz-btn-soft:hover,
.mz-small-link:hover,
.mz-feedback-toggle:hover {
  background: var(--mz-primary-soft) !important;
  border-color: #93c5fd !important;
}

.mz-btn-dark {
  color: #ffffff !important;
  background: linear-gradient(135deg, #0f172a, #334155) !important;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18) !important;
}

.mz-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

/* =========================================================
   LOADING / FALLBACK LOGIN / ALERT
========================================================= */

.mz-dashboard,
.mz-login-box {
  display: none;
}

.mz-alert {
  display: none;
  max-width: 920px;
  margin: 18px auto;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--mz-orange-soft);
  color: #9a3412;
  border: 1px solid #fed7aa;
  text-align: center;
  font-weight: 850;
}

.mz-loading,
.mz-login-box {
  max-width: 760px;
  margin: 28px auto 0;
  padding: 34px;
  text-align: center;
}

.mz-loading-icon,
.mz-login-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 26px;
  background: linear-gradient(135deg, var(--mz-primary-soft), var(--mz-teal-soft));
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.10);
  font-size: 34px;
}

.mz-loading h2,
.mz-login-box h2 {
  margin: 0 0 10px;
  color: var(--mz-dark);
  font-size: 28px;
  font-weight: 950;
}

.mz-loading p,
.mz-login-box p {
  max-width: 580px;
  margin: 0 auto 22px;
  color: var(--mz-muted);
  line-height: 1.7;
  font-weight: 600;
}

/* =========================================================
   APP LAYOUT WITH SIDEBAR
========================================================= */

.mz-dashboard-app {
  display: none;
  grid-template-columns: 286px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  margin-top: 22px;
}

.mz-dashboard-app.is-visible,
.mz-dashboard[style*="block"],
.mz-dashboard[style*="grid"] {
  display: grid;
}

.mz-dashboard-sidebar {
  position: sticky;
  top: 18px;
  align-self: start;
  min-height: 680px;
  padding: 18px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.10), transparent 30%),
    radial-gradient(circle at bottom right, rgba(57, 184, 173, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(219, 234, 254, 0.98);
  box-shadow: var(--mz-shadow-strong);
  backdrop-filter: blur(16px);
}

.mz-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 18px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.mz-sidebar-logo {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  border-radius: 17px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--mz-primary), var(--mz-teal));
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.18);
  font-size: 20px;
  font-weight: 950;
}

.mz-sidebar-title {
  color: var(--mz-dark);
  font-size: 17px;
  font-weight: 950;
  letter-spacing: -0.3px;
}

.mz-sidebar-subtitle {
  margin-top: 2px;
  color: var(--mz-soft-muted);
  font-size: 12px;
  font-weight: 750;
}

.mz-sidebar-nav {
  display: grid;
  gap: 8px;
  padding: 8px 0;
}

.mz-sidebar-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 12px;
  border: 1px solid transparent;
  border-radius: 18px;
  color: #334155;
  background: transparent;
  text-align: left;
  font-size: 13.5px;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.mz-sidebar-link:hover,
.mz-sidebar-link:focus-visible {
  color: var(--mz-primary);
  background: rgba(239, 246, 255, 0.95);
  border-color: rgba(191, 219, 254, 0.9);
  transform: translateX(2px);
  outline: none;
}

.mz-sidebar-link.active,
.mz-sidebar-link.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--mz-primary), #06b6d4);
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.20);
}

.mz-sidebar-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  border-radius: 13px;
  background: #ffffff;
  color: var(--mz-primary);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.mz-sidebar-link.active .mz-sidebar-icon,
.mz-sidebar-link.is-active .mz-sidebar-icon {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  box-shadow: none;
}

.mz-sidebar-footer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.mz-sidebar-practice-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--mz-teal), #06b6d4);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 950;
  box-shadow: 0 14px 30px rgba(57, 184, 173, 0.22);
}

.mz-dashboard-content {
  min-width: 0;
}

/* =========================================================
   CONNECT BAR + PREVIEW TOUR
========================================================= */

.mz-dashboard-connect-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
  padding: 22px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(57, 184, 173, 0.12), transparent 34%),
    linear-gradient(135deg, #ffffff, #f8fbff);
}

.mz-connect-kicker,
.mz-kicker,
.mz-section-kicker,
.mz-profile-label {
  color: var(--mz-primary);
  font-size: 11.5px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mz-connect-copy h2 {
  margin: 5px 0 8px;
  color: var(--mz-dark);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 950;
  letter-spacing: -0.4px;
}

.mz-connect-copy p {
  margin: 0;
  max-width: 760px;
  color: var(--mz-muted);
  font-size: 13.8px;
  line-height: 1.65;
  font-weight: 650;
}

.mz-connect-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.mz-dashboard-tour-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 20px 22px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 0% 0%, rgba(124, 58, 237, 0.08), transparent 30%),
    linear-gradient(135deg, #ffffff, #f8fbff);
}

.mz-tour-badge {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--mz-purple);
  background: var(--mz-purple-soft);
  border: 1px solid #ddd6fe;
  font-size: 12px;
  font-weight: 950;
}

.mz-dashboard-tour-card h2 {
  margin: 0 0 6px;
  color: var(--mz-dark);
  font-size: 20px;
  line-height: 1.25;
  font-weight: 950;
}

.mz-dashboard-tour-card p {
  margin: 0;
  color: var(--mz-muted);
  font-size: 13.6px;
  line-height: 1.6;
  font-weight: 650;
}

/* Optional classes for JS update */
.mz-dashboard-connected #mzDashboardConnectBar,
.mz-dashboard-connected #mzDashboardPreviewTour,
.mz-dashboard-connected .mz-preview-grid,
.mz-dashboard-connected .mz-empty-preview-card.is-demo-only {
  display: none !important;
}

/* =========================================================
   TABS
========================================================= */

.mz-tab-panel {
  display: none;
}

.mz-tab-panel.active,
.mz-tab-panel.is-active {
  display: block;
  animation: mzPanelIn 0.22s ease both;
}

@keyframes mzPanelIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   OVERVIEW / COMMAND CARD
========================================================= */

.mz-command-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  border-radius: 30px;
  border-color: rgba(219, 234, 254, 0.98);
  box-shadow: var(--mz-shadow-strong);
}

.mz-command-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 7% 12%, rgba(37, 99, 235, 0.11), transparent 30%),
    radial-gradient(circle at 90% 18%, rgba(57, 184, 173, 0.12), transparent 28%),
    linear-gradient(135deg, #ffffff, #f8fbff);
  pointer-events: none;
}

.mz-command-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(230px, 0.45fr);
  gap: 26px;
  align-items: center;
  padding: 28px;
}

.mz-welcome-title,
.mz-section-title,
.mz-smart-title {
  margin: 0;
  color: var(--mz-dark);
  font-weight: 950;
  letter-spacing: -0.5px;
}

.mz-welcome-title {
  margin-top: 5px;
  margin-bottom: 10px;
  font-size: 30px;
  line-height: 1.15;
}

.mz-welcome-text,
.mz-section-subtitle,
.mz-smart-text {
  color: var(--mz-muted);
  line-height: 1.7;
  font-weight: 620;
}

.mz-welcome-text {
  max-width: 760px;
  margin: 0;
  font-size: 14.8px;
}

.mz-email-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 10px 14px;
  border-radius: 999px;
  color: #334155;
  background: #ffffff;
  border: 1px solid var(--mz-border);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.07);
  font-size: 13px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

/* Score orb */
.mz-score-orb-wrap {
  display: grid;
  place-items: center;
}

.mz-score-orb {
  width: 188px;
  height: 188px;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 50%;
  background: conic-gradient(var(--mz-primary) calc(var(--score, 0) * 1%), #e2e8f0 0);
  box-shadow: 0 24px 56px rgba(37, 99, 235, 0.16);
}

.mz-score-orb::after {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.95);
}

.mz-score-orb-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.mz-score-orb-value {
  color: var(--mz-dark);
  font-size: 39px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -1.2px;
}

.mz-score-orb-label {
  margin-top: 6px;
  color: var(--mz-soft-muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mz-score-orb-small {
  margin-top: 7px;
  color: #334155;
  font-size: 12.3px;
  font-weight: 850;
}

/* =========================================================
   PROFILE / STATS / PREVIEW GRID
========================================================= */

.mz-profile-strip,
.mz-stats-grid,
.mz-preview-grid,
.mz-profile-settings-grid {
  display: grid;
  gap: 15px;
}

.mz-profile-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
}

.mz-study-goal-grid,
.mz-profile-settings-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mz-profile-card,
.mz-profile-setting-card {
  position: relative;
  overflow: hidden;
  min-height: 128px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 19px;
  border-radius: 26px;
}

.mz-profile-setting-card {
  display: block;
}

.mz-profile-card::after,
.mz-stat-card::after,
.mz-profile-setting-card::after {
  content: "";
  position: absolute;
  width: 96px;
  height: 96px;
  right: -36px;
  top: -36px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.07);
  pointer-events: none;
}

.mz-profile-countdown-card::after {
  background: rgba(57, 184, 173, 0.12);
}

.mz-profile-target-card::after {
  background: rgba(245, 158, 11, 0.12);
}

.mz-profile-level-card::after {
  background: rgba(124, 58, 237, 0.10);
}

.mz-profile-icon {
  position: relative;
  z-index: 2;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: var(--mz-primary-soft);
  color: var(--mz-primary);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.08);
  font-size: 21px;
}

.mz-profile-card > div:last-child,
.mz-profile-setting-card > * {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.mz-profile-value {
  color: var(--mz-dark);
  font-size: 23px;
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.7px;
  overflow-wrap: anywhere;
}

.mz-profile-countdown-card .mz-profile-value {
  color: var(--mz-teal) !important;
}

.mz-profile-target-card .mz-profile-value,
.mz-profile-course-card .mz-profile-value {
  color: var(--mz-primary) !important;
}

.mz-profile-sub {
  margin-top: 7px;
  color: var(--mz-muted);
  font-size: 12.3px;
  line-height: 1.45;
  font-weight: 700;
}

.mz-stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
}

.mz-stat-card {
  position: relative;
  overflow: hidden;
  padding: 19px;
  border-radius: 26px;
}

.mz-stat-icon,
.mz-smart-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 17px;
  background: linear-gradient(135deg, var(--mz-primary-soft), var(--mz-teal-soft));
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.08);
  font-size: 21px;
}

.mz-stat-value {
  position: relative;
  z-index: 2;
  margin-bottom: 4px;
  color: var(--mz-dark);
  font-size: 28px;
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.8px;
  overflow-wrap: anywhere;
}

.mz-stat-label {
  position: relative;
  z-index: 2;
  color: var(--mz-muted);
  font-size: 13px;
  font-weight: 850;
}

.mz-stat-sub {
  position: relative;
  z-index: 2;
  margin-top: 8px;
  color: var(--mz-soft-muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 750;
}

.mz-preview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.mz-preview-card {
  padding: 19px;
  border-radius: 24px;
}

.mz-preview-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 16px;
  background: var(--mz-primary-soft);
  font-size: 21px;
}

.mz-preview-card h3,
.mz-empty-preview-card h3 {
  margin: 0 0 7px;
  color: var(--mz-dark);
  font-size: 16.4px;
  line-height: 1.3;
  font-weight: 950;
}

.mz-preview-card p,
.mz-empty-preview-card p {
  margin: 0;
  color: var(--mz-muted);
  font-size: 13.2px;
  line-height: 1.62;
  font-weight: 650;
}

/* =========================================================
   SECTIONS
========================================================= */

.mz-section,
.mz-smart-card,
.mz-study-plan-card {
  padding: 26px;
}

.mz-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.mz-section-title,
.mz-smart-title {
  font-size: 24px;
  line-height: 1.22;
}

.mz-section-subtitle {
  margin: 8px 0 0;
  font-size: 13.8px;
}

.mz-empty-preview-card {
  margin-bottom: 14px;
  padding: 18px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 34%),
    linear-gradient(135deg, #ffffff, #f8fbff);
  border-style: dashed;
}

.mz-empty-preview-card .mz-btn {
  margin-top: 14px;
}

.mz-empty {
  padding: 24px;
  border-radius: 22px;
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
  color: var(--mz-muted);
  text-align: center;
  line-height: 1.7;
  font-weight: 800;
}

/* =========================================================
   WEAKNESS MAP / PROGRESS
========================================================= */

.mz-map-list,
.mz-focus-map-list,
.mz-mistake-list,
.mz-attempt-list,
.mz-resume-list,
.mz-mini-workout {
  display: grid;
  gap: 13px;
}

.mz-map-card {
  padding: 16px;
  border-radius: 22px;
}

.mz-map-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.mz-map-title {
  color: var(--mz-dark);
  font-size: 15.8px;
  line-height: 1.34;
  font-weight: 950;
}

.mz-map-meta {
  margin-top: 4px;
  color: var(--mz-soft-muted);
  font-size: 12.2px;
  line-height: 1.4;
  font-weight: 800;
}

.mz-map-percent {
  min-width: 68px;
  flex: 0 0 auto;
  color: var(--mz-dark);
  text-align: right;
  font-size: 22px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.5px;
}

.mz-progress-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.mz-progress-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--mz-primary), var(--mz-teal));
}

.mz-progress-fill.red {
  background: linear-gradient(135deg, var(--mz-red), #f97316);
}

.mz-progress-fill.yellow {
  background: linear-gradient(135deg, var(--mz-orange), #facc15);
}

.mz-progress-fill.green {
  background: linear-gradient(135deg, var(--mz-green), var(--mz-teal));
}

.mz-map-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  color: var(--mz-soft-muted);
  font-size: 12.1px;
  font-weight: 800;
}

.mz-level-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11.3px;
  font-weight: 950;
  text-transform: capitalize;
  white-space: nowrap;
}

.mz-level-pill.red {
  color: #be123c;
  background: var(--mz-red-soft);
  border: 1px solid #fecdd3;
}

.mz-level-pill.yellow {
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
}

.mz-level-pill.green {
  color: #047857;
  background: var(--mz-green-soft);
  border: 1px solid #bbf7d0;
}

.mz-level-pill.blue {
  color: var(--mz-primary-dark);
  background: var(--mz-primary-soft);
  border: 1px solid var(--mz-primary-border);
}

.mz-focus-toggle {
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--mz-border);
  border-radius: 22px;
  background: #ffffff;
}

.mz-focus-toggle summary {
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  color: var(--mz-dark);
  background: #f8fafc;
  font-weight: 950;
}

.mz-focus-toggle summary::-webkit-details-marker {
  display: none;
}

.mz-focus-toggle summary::before {
  content: '▸';
  display: inline-block;
  margin-right: 8px;
  color: var(--mz-soft-muted);
  transition: transform 0.18s ease;
}

.mz-focus-toggle[open] summary::before {
  transform: rotate(90deg);
}

.mz-focus-toggle-body {
  padding: 14px;
  border-top: 1px solid var(--mz-border-light);
}

/* =========================================================
   SMART PRACTICE / WORKOUT / STUDY PLAN
========================================================= */

.mz-smart-card,
.mz-study-plan-card {
  position: relative;
  overflow: hidden;
}

.mz-smart-card::before,
.mz-study-plan-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.09), transparent 34%),
    radial-gradient(circle at bottom left, rgba(57, 184, 173, 0.10), transparent 34%);
  pointer-events: none;
}

.mz-smart-card > *,
.mz-study-plan-card > * {
  position: relative;
  z-index: 2;
}

.mz-smart-icon {
  width: 66px;
  height: 66px;
  margin-bottom: 15px;
  border-radius: 24px;
  font-size: 30px;
}

.mz-smart-text {
  margin: 0;
  font-size: 14.5px;
}

.mz-mini-workout {
  margin-top: 15px;
}

.mz-workout-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 12px;
  border-radius: 16px;
  color: #334155;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(226, 232, 240, 0.95);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 800;
}

.mz-workout-row span:first-child {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--mz-primary-soft);
}

.mz-study-plan-body {
  max-height: 560px;
  overflow-y: auto;
  margin-top: 18px;
  padding: 21px;
  border-radius: 22px;
  color: #475467;
  background: #ffffff;
  font-size: 14.4px;
  line-height: 1.75;
  font-weight: 620;
}

.mz-study-plan-heading,
.mz-feedback-full-heading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 10px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--mz-primary);
  background: var(--mz-primary-soft);
  border: 1px solid var(--mz-primary-border);
  font-size: 14px;
  font-weight: 950;
}

.mz-study-plan-heading:first-child {
  margin-top: 0;
}

.mz-study-plan-body p,
.mz-feedback-full p {
  margin: 8px 0;
}

.mz-study-plan-body ul,
.mz-study-plan-body ol,
.mz-feedback-full ul,
.mz-feedback-full ol {
  margin: 10px 0 10px 22px;
  padding: 0;
}

.mz-study-plan-body li,
.mz-feedback-full li {
  margin: 8px 0;
}

.mz-study-plan-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--mz-muted);
  font-weight: 850;
}

.mz-mini-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid var(--mz-border);
  border-top-color: var(--mz-primary);
  border-radius: 50%;
  animation: mzSpin 0.9s linear infinite;
}

@keyframes mzSpin {
  to { transform: rotate(360deg); }
}

/* =========================================================
   MISTAKE JOURNAL
========================================================= */

.mz-mistake-card {
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--mz-orange-soft), #ffffff);
  border: 1px solid #fed7aa;
  box-shadow: 0 14px 32px rgba(249, 115, 22, 0.07);
}

.mz-mistake-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.mz-mistake-title {
  color: #9a3412;
  font-size: 15.6px;
  line-height: 1.35;
  font-weight: 950;
}

.mz-mistake-count {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  color: #c2410c;
  background: #ffedd5;
  border: 1px solid #fed7aa;
  font-size: 12px;
  font-weight: 950;
}

.mz-mistake-body {
  color: #475467;
  font-size: 13.3px;
  line-height: 1.65;
  font-weight: 650;
}

.mz-mistake-body b {
  color: var(--mz-dark);
}

.mz-mistake-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.mz-small-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 11px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 12.3px;
  font-weight: 950;
}

/* =========================================================
   AI CHECKED WORK / FEEDBACK
========================================================= */

.mz-recent-section {
  margin-top: 0;
}

.mz-attempt-card {
  padding: 19px;
  border-radius: 24px;
}

.mz-attempt-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.mz-mark-badge {
  width: 70px;
  min-height: 70px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 22px;
  color: var(--mz-dark);
  background: linear-gradient(135deg, var(--mz-primary-soft), #ffffff);
  border: 1px solid var(--mz-primary-border);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.08);
}

.mz-mark-badge strong {
  font-size: 21px;
  line-height: 1;
  font-weight: 950;
}

.mz-mark-badge span {
  margin-top: 4px;
  color: var(--mz-soft-muted);
  font-size: 10.5px;
  font-weight: 950;
  text-transform: uppercase;
}

.mz-attempt-title {
  color: var(--mz-dark);
  font-size: 16.8px;
  line-height: 1.35;
  font-weight: 950;
}

.mz-attempt-date {
  color: var(--mz-muted);
  font-size: 12.2px;
  white-space: nowrap;
  font-weight: 800;
}

.mz-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.mz-chip {
  padding: 6px 10px;
  border-radius: 999px;
  color: #475569;
  background: #f8fafc;
  border: 1px solid var(--mz-border-light);
  font-size: 12px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.mz-chip.correct,
.mz-chip.green {
  color: #047857;
  background: var(--mz-green-soft);
  border-color: #a7f3d0;
}

.mz-chip.partial,
.mz-chip.yellow {
  color: #b45309;
  background: #fffbeb;
  border-color: #fde68a;
}

.mz-chip.incorrect,
.mz-chip.red {
  color: #b42318;
  background: var(--mz-red-soft);
  border-color: #fecdd3;
}

.mz-feedback-preview {
  max-width: 980px;
  color: #475467;
  font-size: 13.8px;
  line-height: 1.75;
  font-weight: 620;
}

.mz-feedback-toggle {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 950;
}

.mz-feedback-full {
  display: none;
  max-height: 560px;
  overflow-y: auto;
  margin-top: 14px;
  padding: 18px;
  border-radius: 20px;
  color: #475467;
  background: linear-gradient(135deg, #ffffff, #f8fbff);
  font-size: 14.2px;
  line-height: 1.75;
  font-weight: 600;
}

.mz-feedback-note {
  margin: 12px 0;
  padding: 13px;
  border-radius: 16px;
  color: #9a3412;
  background: var(--mz-orange-soft);
  border: 1px solid #fed7aa;
  font-weight: 800;
}

/* =========================================================
   RESUME PRACTICE
========================================================= */

.mz-resume-card {
  padding: 15px;
  border-radius: 20px;
}

.mz-resume-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.mz-resume-title {
  color: var(--mz-dark);
  font-size: 15.4px;
  font-weight: 950;
}

.mz-resume-meta {
  margin-top: 5px;
  color: var(--mz-soft-muted);
  font-size: 12.2px;
  line-height: 1.45;
  font-weight: 750;
}

/* =========================================================
   STUDY GOAL / SUBSCRIPTION / PROFILE
========================================================= */

.mz-profile-note-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 18px 20px;
  border-radius: 24px;
}

.mz-profile-note-title {
  margin-bottom: 4px;
  color: var(--mz-dark);
  font-size: 15px;
  font-weight: 950;
}

.mz-profile-note-card p {
  margin: 0;
  color: var(--mz-muted);
  font-size: 13.3px;
  line-height: 1.6;
  font-weight: 650;
}

.mz-profile-note-card .mz-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.mz-subscription-manage-box {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 22px 24px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(57, 184, 173, 0.10), transparent 34%),
    linear-gradient(135deg, #ffffff, #f8fbff);
  border: 1px solid rgba(219, 234, 254, 0.96);
  box-shadow: var(--mz-shadow);
}

.mz-subscription-manage-box.is-visible {
  display: flex !important;
}

.mz-subscription-manage-title {
  margin-bottom: 6px;
  color: var(--mz-dark);
  font-size: 18px;
  line-height: 1.25;
  font-weight: 950;
  letter-spacing: -0.35px;
}

.mz-subscription-manage-note {
  max-width: 720px;
  color: var(--mz-muted);
  font-size: 13.5px;
  line-height: 1.65;
  font-weight: 650;
}

.mz-subscription-manage-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.mz-subscription-manage-btn:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
}

.mz-subscription-manage-status {
  margin-top: 10px;
  color: var(--mz-primary);
  font-size: 12.5px;
  line-height: 1.45;
  font-weight: 800;
}

.mz-subscription-preview-card {
  margin-top: 0;
}

/* =========================================================
   RESPONSIVE DESIGN
========================================================= */

@media (max-width: 1180px) {
  .mz-dashboard-app {
    grid-template-columns: 246px minmax(0, 1fr);
    gap: 16px;
  }

  .mz-sidebar-link {
    padding: 11px 10px;
    font-size: 13px;
  }

  .mz-command-inner {
    grid-template-columns: 1fr;
  }

  .mz-score-orb-wrap {
    justify-content: center;
  }

  .mz-profile-strip,
  .mz-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .mz-dashboard-app,
  .mz-dashboard-app.is-visible,
  .mz-dashboard[style*="block"],
  .mz-dashboard[style*="grid"] {
    display: block;
  }

  .mz-dashboard-sidebar {
    position: sticky;
    top: 8px;
    z-index: 20;
    min-height: 0;
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 24px;
  }

  .mz-sidebar-brand {
    padding: 6px 6px 12px;
  }

  .mz-sidebar-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 2px 4px;
    scrollbar-width: thin;
  }

  .mz-sidebar-link {
    width: auto;
    min-width: max-content;
    flex: 0 0 auto;
    padding: 10px 12px;
  }

  .mz-sidebar-link:hover,
  .mz-sidebar-link:focus-visible {
    transform: translateY(-1px);
  }

  .mz-sidebar-footer {
    display: none;
  }

  .mz-dashboard-connect-bar {
    grid-template-columns: 1fr;
  }

  .mz-dashboard-tour-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .mz-preview-grid,
  .mz-study-goal-grid,
  .mz-profile-settings-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .mz-dashboard-page {
    padding: 20px 12px 52px;
    background:
      radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.10), transparent 34%),
      linear-gradient(135deg, #f8fbff, #ffffff);
  }

  .mz-dashboard-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .mz-nav-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .mz-dashboard-nav-btn {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    font-size: 12.8px;
  }

  .mz-hero,
  .mz-dashboard-hero {
    padding: 26px 18px 24px;
    border-radius: 26px;
  }

  .mz-title {
    font-size: 33px;
    letter-spacing: -1.15px;
  }

  .mz-subtitle {
    font-size: 14.7px;
  }

  .mz-dashboard-sidebar,
  .mz-card,
  .mz-command-card,
  .mz-stat-card,
  .mz-section,
  .mz-smart-card,
  .mz-study-plan-card,
  .mz-profile-card,
  .mz-profile-note-card,
  .mz-dashboard-connect-bar,
  .mz-dashboard-tour-card,
  .mz-empty-preview-card,
  .mz-preview-card {
    border-radius: 22px;
  }

  .mz-command-inner,
  .mz-section,
  .mz-smart-card,
  .mz-study-plan-card,
  .mz-loading,
  .mz-login-box {
    padding: 20px 16px;
  }

  .mz-dashboard-connect-bar,
  .mz-dashboard-tour-card {
    padding: 18px;
  }

  .mz-connect-copy h2,
  .mz-dashboard-tour-card h2 {
    font-size: 19px;
  }

  .mz-profile-strip,
  .mz-stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .mz-profile-card {
    min-height: auto;
    padding: 18px;
  }

  .mz-profile-value {
    font-size: 22px;
  }

  .mz-section-header,
  .mz-map-top,
  .mz-mistake-top,
  .mz-resume-top,
  .mz-profile-note-card,
  .mz-subscription-manage-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .mz-actions,
  .mz-connect-form {
    width: 100%;
  }

  .mz-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .mz-btn,
  .mz-subscription-manage-btn,
  .mz-profile-note-card .mz-btn {
    width: 100%;
  }

  .mz-attempt-header {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .mz-mark-badge {
    width: 100%;
    min-height: 64px;
  }

  .mz-attempt-date {
    white-space: normal;
  }

  .mz-study-plan-body,
  .mz-feedback-full {
    max-height: 520px;
  }
}

@media (max-width: 430px) {
  .mz-nav-group {
    grid-template-columns: 1fr;
  }

  .mz-sidebar-link {
    padding: 9px 10px;
    font-size: 12.6px;
  }

  .mz-sidebar-icon {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }
}

/* =========================================================
   MATHZEM STUDENT DASHBOARD — PROFESSIONAL SAAS OVERRIDE
   Purpose: make the dashboard feel like a paid student app:
   compact header, clean white sidebar, subtle cards, less color noise.
   Add this at the END of student-dashboard.css.
========================================================= */

:root {
  --mz-primary: #2563eb;
  --mz-primary-dark: #1d4ed8;
  --mz-teal: #39b8ad;
  --mz-dark: #0f172a;
  --mz-text: #111827;
  --mz-muted: #64748b;
  --mz-muted-2: #94a3b8;
  --mz-page-bg: #f8fafc;
  --mz-card-bg: #ffffff;
  --mz-border: #e5e7eb;
  --mz-border-strong: #dbe3ef;
  --mz-blue-soft: #eff6ff;
  --mz-teal-soft: #f0fdfa;
  --mz-red: #ef4444;
  --mz-orange: #f59e0b;
  --mz-green: #10b981;
  --mz-shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.055);
  --mz-shadow-card: 0 14px 36px rgba(15, 23, 42, 0.065);
  --mz-radius: 18px;
  --mz-radius-lg: 22px;
}

/* Clean app background */
.mz-dashboard-page {
  max-width: 1440px !important;
  padding: 18px 18px 56px !important;
  background: #f8fafc !important;
  color: var(--mz-text) !important;
}

/* Make the page feel like a product, not a landing page */
.mz-dashboard-page,
.mz-dashboard-page *:not(mjx-container):not(mjx-container *) {
  font-family: "Inter", "Poppins", "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* Top buttons: compact, calm */
.mz-dashboard-nav {
  margin-bottom: 14px !important;
}

.mz-dashboard-nav-btn {
  min-width: 0 !important;
  height: 40px !important;
  padding: 0 14px !important;
  border-radius: 12px !important;
  color: #334155 !important;
  background: #ffffff !important;
  border: 1px solid var(--mz-border) !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

.mz-dashboard-nav-btn:hover,
.mz-dashboard-nav-btn:focus-visible {
  transform: none !important;
  color: var(--mz-primary) !important;
  background: var(--mz-blue-soft) !important;
  border-color: #bfdbfe !important;
  box-shadow: none !important;
}

.mz-dashboard-nav-btn span {
  width: 22px !important;
  height: 22px !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Compact dashboard header */
.mz-hero,
.mz-dashboard-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  align-items: center !important;
  min-height: auto !important;
  margin-bottom: 16px !important;
  padding: 20px 24px !important;
  text-align: left !important;
  border-radius: 22px !important;
  background: #ffffff !important;
  border: 1px solid var(--mz-border) !important;
  box-shadow: var(--mz-shadow-soft) !important;
}

.mz-badge {
  width: fit-content !important;
  margin: 0 0 8px !important;
  padding: 5px 10px !important;
  border-radius: 999px !important;
  color: var(--mz-primary) !important;
  background: var(--mz-blue-soft) !important;
  border: 1px solid #dbeafe !important;
  font-size: 11px !important;
  letter-spacing: 0.04em !important;
  font-weight: 800 !important;
}

.mz-title {
  max-width: 920px !important;
  margin: 0 !important;
  font-size: clamp(24px, 2.6vw, 36px) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.85px !important;
  color: var(--mz-dark) !important;
  font-weight: 850 !important;
}

.mz-gradient-text {
  color: var(--mz-teal) !important;
  -webkit-text-fill-color: var(--mz-teal) !important;
  background: none !important;
}

.mz-subtitle {
  max-width: 900px !important;
  margin: 8px 0 0 !important;
  color: var(--mz-muted) !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
  font-weight: 500 !important;
}

/* App layout */
.mz-dashboard-app {
  grid-template-columns: 248px minmax(0, 1fr) !important;
  gap: 18px !important;
  margin-top: 0 !important;
}

/* Sidebar: professional, clean, not colored */
.mz-dashboard-sidebar {
  top: 16px !important;
  min-height: calc(100vh - 36px) !important;
  padding: 16px 12px !important;
  border-radius: 20px !important;
  background: #ffffff !important;
  border: 1px solid var(--mz-border) !important;
  box-shadow: var(--mz-shadow-soft) !important;
  backdrop-filter: none !important;
}

.mz-sidebar-brand {
  gap: 10px !important;
  margin: 0 4px 14px !important;
  padding: 6px 4px 14px !important;
  border-bottom: 1px solid #eef2f7 !important;
}

.mz-sidebar-logo {
  width: 38px !important;
  height: 38px !important;
  flex-basis: 38px !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  background: var(--mz-primary) !important;
  box-shadow: none !important;
  font-size: 17px !important;
  font-weight: 850 !important;
}

.mz-sidebar-title {
  color: var(--mz-dark) !important;
  font-size: 16px !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
  letter-spacing: -0.2px !important;
}

.mz-sidebar-subtitle {
  margin-top: 2px !important;
  color: var(--mz-muted) !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
}

.mz-sidebar-nav {
  gap: 4px !important;
  padding: 0 !important;
}

.mz-sidebar-link {
  position: relative !important;
  min-height: 42px !important;
  padding: 10px 10px 10px 12px !important;
  border-radius: 12px !important;
  color: #475569 !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}

.mz-sidebar-link::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 9px !important;
  bottom: 9px !important;
  width: 3px !important;
  border-radius: 999px !important;
  background: transparent !important;
}

.mz-sidebar-link:hover,
.mz-sidebar-link:focus-visible {
  transform: none !important;
  color: var(--mz-primary) !important;
  background: #f8fafc !important;
  border-color: #eef2f7 !important;
  box-shadow: none !important;
}

.mz-sidebar-link.active,
.mz-sidebar-link.is-active {
  color: var(--mz-primary) !important;
  background: var(--mz-blue-soft) !important;
  border-color: #dbeafe !important;
  box-shadow: none !important;
}

.mz-sidebar-link.active::before,
.mz-sidebar-link.is-active::before {
  background: var(--mz-primary) !important;
}

.mz-sidebar-icon {
  width: 28px !important;
  height: 28px !important;
  flex-basis: 28px !important;
  border-radius: 9px !important;
  color: #64748b !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 15px !important;
}

.mz-sidebar-link.active .mz-sidebar-icon,
.mz-sidebar-link.is-active .mz-sidebar-icon {
  color: var(--mz-primary) !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.mz-sidebar-footer {
  margin-top: 12px !important;
  padding-top: 12px !important;
  border-top: 1px solid #eef2f7 !important;
}

.mz-sidebar-practice-btn {
  min-height: 40px !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  background: var(--mz-primary) !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 750 !important;
}

.mz-sidebar-practice-btn:hover {
  background: var(--mz-primary-dark) !important;
}

/* Main content spacing */
.mz-dashboard-content {
  min-width: 0 !important;
}

/* Email connect: smaller and more premium */
.mz-dashboard-connect-bar {
  grid-template-columns: minmax(0, 1fr) 380px !important;
  gap: 20px !important;
  margin-bottom: 14px !important;
  padding: 18px 20px !important;
  border-radius: 20px !important;
  background: #ffffff !important;
  border: 1px solid var(--mz-border) !important;
  box-shadow: var(--mz-shadow-soft) !important;
}

.mz-connect-kicker,
.mz-kicker,
.mz-section-kicker,
.mz-profile-label {
  color: var(--mz-primary) !important;
  font-size: 10.5px !important;
  line-height: 1.2 !important;
  letter-spacing: 0.08em !important;
  font-weight: 850 !important;
}

.mz-connect-copy h2 {
  max-width: 650px !important;
  margin: 4px 0 7px !important;
  color: var(--mz-dark) !important;
  font-size: 21px !important;
  line-height: 1.25 !important;
  letter-spacing: -0.35px !important;
  font-weight: 800 !important;
}

.mz-connect-copy p {
  max-width: 740px !important;
  margin: 0 !important;
  color: var(--mz-muted) !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
  font-weight: 500 !important;
}

.mz-connect-form {
  gap: 9px !important;
}

.mz-input {
  height: 42px !important;
  padding: 0 13px !important;
  border-radius: 10px !important;
  color: var(--mz-dark) !important;
  background: #ffffff !important;
  border: 1px solid var(--mz-border-strong) !important;
  font-size: 13.5px !important;
  box-shadow: none !important;
}

.mz-input:focus {
  border-color: var(--mz-primary) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10) !important;
}

.mz-btn,
.mz-subscription-manage-btn {
  min-height: 42px !important;
  padding: 0 16px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  box-shadow: none !important;
}

.mz-btn:hover,
.mz-subscription-manage-btn:hover {
  transform: none !important;
}

.mz-btn-primary,
.mz-subscription-manage-btn {
  background: var(--mz-primary) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.mz-btn-primary:hover,
.mz-subscription-manage-btn:hover {
  background: var(--mz-primary-dark) !important;
  box-shadow: none !important;
}

.mz-btn-soft,
.mz-small-link,
.mz-feedback-toggle {
  color: var(--mz-primary) !important;
  background: #ffffff !important;
  border: 1px solid #cfe0ff !important;
  box-shadow: none !important;
}

.mz-btn-soft:hover,
.mz-small-link:hover,
.mz-feedback-toggle:hover {
  background: var(--mz-blue-soft) !important;
  border-color: #bfdbfe !important;
}

/* Preview intro: subtle */
.mz-dashboard-tour-card {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  margin-bottom: 14px !important;
  padding: 16px 18px !important;
  border-radius: 20px !important;
  background: #ffffff !important;
  border: 1px solid var(--mz-border) !important;
  box-shadow: var(--mz-shadow-soft) !important;
}

.mz-tour-badge {
  padding: 6px 10px !important;
  border-radius: 999px !important;
  color: var(--mz-primary) !important;
  background: var(--mz-blue-soft) !important;
  border: 1px solid #dbeafe !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

.mz-dashboard-tour-card h2 {
  margin: 0 0 4px !important;
  color: var(--mz-dark) !important;
  font-size: 18px !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
}

.mz-dashboard-tour-card p {
  margin: 0 !important;
  color: var(--mz-muted) !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
  font-weight: 500 !important;
}

/* Cards: cleaner, flatter, paid-product feel */
.mz-card,
.mz-stat-card,
.mz-map-card,
.mz-attempt-card,
.mz-resume-card,
.mz-profile-card,
.mz-profile-note-card,
.mz-study-plan-body,
.mz-feedback-full,
.mz-preview-card,
.mz-profile-setting-card,
.mz-empty-preview-card,
.mz-subscription-manage-box {
  background: #ffffff !important;
  border: 1px solid var(--mz-border) !important;
  box-shadow: var(--mz-shadow-soft) !important;
  backdrop-filter: none !important;
}

/* Command/overview card */
.mz-command-card {
  border-radius: 20px !important;
  box-shadow: var(--mz-shadow-soft) !important;
}

.mz-command-card::before,
.mz-smart-card::before,
.mz-study-plan-card::before {
  display: none !important;
}

.mz-command-inner {
  grid-template-columns: minmax(0, 1fr) 180px !important;
  gap: 20px !important;
  padding: 20px !important;
}

.mz-welcome-title {
  margin: 3px 0 8px !important;
  color: var(--mz-dark) !important;
  font-size: 23px !important;
  line-height: 1.25 !important;
  letter-spacing: -0.35px !important;
  font-weight: 800 !important;
}

.mz-welcome-text {
  max-width: 760px !important;
  color: var(--mz-muted) !important;
  font-size: 13.4px !important;
  line-height: 1.6 !important;
  font-weight: 500 !important;
}

.mz-email-pill {
  padding: 7px 10px !important;
  border-radius: 999px !important;
  color: #475569 !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: none !important;
  font-size: 12px !important;
  font-weight: 650 !important;
}

.mz-score-orb {
  width: 150px !important;
  height: 150px !important;
  background: conic-gradient(var(--mz-primary) calc(var(--score, 0) * 1%), #e5e7eb 0) !important;
  box-shadow: none !important;
}

.mz-score-orb::after {
  inset: 10px !important;
  background: #ffffff !important;
  box-shadow: inset 0 0 0 1px #e5e7eb !important;
}

.mz-score-orb-value {
  font-size: 30px !important;
  color: var(--mz-dark) !important;
  font-weight: 850 !important;
}

.mz-score-orb-label {
  font-size: 9.5px !important;
  color: var(--mz-muted) !important;
}

.mz-score-orb-small {
  font-size: 11px !important;
  color: #475569 !important;
}

/* Profile cards and stats */
.mz-profile-strip,
.mz-stats-grid,
.mz-preview-grid,
.mz-profile-settings-grid,
.mz-study-goal-grid {
  gap: 12px !important;
}

.mz-profile-strip,
.mz-stats-grid {
  margin-top: 14px !important;
}

.mz-profile-card,
.mz-stat-card,
.mz-preview-card,
.mz-profile-setting-card {
  min-height: 112px !important;
  padding: 16px !important;
  border-radius: 18px !important;
  overflow: hidden !important;
}

.mz-profile-card::after,
.mz-stat-card::after,
.mz-profile-setting-card::after {
  display: none !important;
}

.mz-profile-icon,
.mz-stat-icon,
.mz-smart-icon,
.mz-preview-icon {
  width: 38px !important;
  height: 38px !important;
  flex-basis: 38px !important;
  margin-bottom: 10px !important;
  border-radius: 11px !important;
  background: var(--mz-blue-soft) !important;
  color: var(--mz-primary) !important;
  box-shadow: none !important;
  font-size: 18px !important;
}

.mz-profile-value,
.mz-stat-value {
  color: var(--mz-dark) !important;
  font-size: 21px !important;
  line-height: 1.1 !important;
  letter-spacing: -0.45px !important;
  font-weight: 800 !important;
}

.mz-profile-countdown-card .mz-profile-value {
  color: var(--mz-teal) !important;
}

.mz-stat-label,
.mz-profile-sub,
.mz-stat-sub {
  color: var(--mz-muted) !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
  font-weight: 500 !important;
}

/* Section layout */
.mz-section,
.mz-smart-card,
.mz-study-plan-card {
  padding: 20px !important;
  border-radius: 20px !important;
}

.mz-section-header {
  margin-bottom: 16px !important;
}

.mz-section-title,
.mz-smart-title {
  color: var(--mz-dark) !important;
  font-size: 20px !important;
  line-height: 1.25 !important;
  letter-spacing: -0.25px !important;
  font-weight: 800 !important;
}

.mz-section-subtitle,
.mz-smart-text {
  color: var(--mz-muted) !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
  font-weight: 500 !important;
}

.mz-empty-preview-card {
  margin-bottom: 12px !important;
  padding: 16px !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  border-style: dashed !important;
  box-shadow: none !important;
}

.mz-preview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  margin-top: 14px !important;
}

.mz-preview-card h3,
.mz-empty-preview-card h3 {
  color: var(--mz-dark) !important;
  font-size: 15px !important;
  font-weight: 800 !important;
}

.mz-preview-card p,
.mz-empty-preview-card p {
  color: var(--mz-muted) !important;
  font-size: 12.7px !important;
  font-weight: 500 !important;
}

/* Progress bars */
.mz-map-card,
.mz-mistake-card,
.mz-attempt-card,
.mz-resume-card {
  padding: 15px !important;
  border-radius: 16px !important;
  box-shadow: none !important;
}

.mz-map-title,
.mz-attempt-title,
.mz-resume-title,
.mz-mistake-title {
  font-size: 14.5px !important;
  color: var(--mz-dark) !important;
  font-weight: 750 !important;
}

.mz-map-meta,
.mz-map-bottom,
.mz-resume-meta,
.mz-feedback-preview {
  color: var(--mz-muted) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

.mz-map-percent {
  font-size: 19px !important;
  color: var(--mz-dark) !important;
  font-weight: 800 !important;
}

.mz-progress-track {
  height: 8px !important;
  background: #e5e7eb !important;
}

.mz-progress-fill {
  background: var(--mz-primary) !important;
}

.mz-progress-fill.red {
  background: var(--mz-red) !important;
}

.mz-progress-fill.yellow {
  background: var(--mz-orange) !important;
}

.mz-progress-fill.green {
  background: var(--mz-green) !important;
}

/* Mistakes: reduce orange noise */
.mz-mistake-card {
  background: #ffffff !important;
  border-color: #fed7aa !important;
}

.mz-mistake-title {
  color: #b45309 !important;
}

.mz-mistake-count {
  color: #b45309 !important;
  background: #fffbeb !important;
  border-color: #fde68a !important;
}

/* Chips and badges */
.mz-chip,
.mz-level-pill,
.mz-mistake-count {
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

.mz-chip {
  color: #475569 !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

.mz-chip.correct,
.mz-chip.green,
.mz-level-pill.green {
  color: #047857 !important;
  background: #ecfdf5 !important;
  border-color: #bbf7d0 !important;
}

.mz-chip.partial,
.mz-chip.yellow,
.mz-level-pill.yellow {
  color: #b45309 !important;
  background: #fffbeb !important;
  border-color: #fde68a !important;
}

.mz-chip.incorrect,
.mz-chip.red,
.mz-level-pill.red {
  color: #be123c !important;
  background: #fff1f2 !important;
  border-color: #fecdd3 !important;
}

.mz-mark-badge {
  width: 60px !important;
  min-height: 60px !important;
  border-radius: 14px !important;
  background: var(--mz-blue-soft) !important;
  border-color: #dbeafe !important;
  box-shadow: none !important;
}

.mz-mark-badge strong {
  font-size: 18px !important;
}

.mz-attempt-header {
  grid-template-columns: auto minmax(0, 1fr) auto !important;
}

/* Study plan / feedback panels */
.mz-study-plan-body,
.mz-feedback-full {
  padding: 16px !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  color: #475569 !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}

.mz-study-plan-heading,
.mz-feedback-full-heading {
  padding: 6px 10px !important;
  color: var(--mz-primary) !important;
  background: var(--mz-blue-soft) !important;
  border-color: #dbeafe !important;
  font-size: 12.5px !important;
  font-weight: 750 !important;
}

/* Subscription/Profile blocks */
.mz-profile-note-card,
.mz-subscription-manage-box {
  margin-bottom: 14px !important;
  padding: 16px !important;
  border-radius: 18px !important;
  background: #ffffff !important;
}

.mz-profile-note-title,
.mz-subscription-manage-title {
  color: var(--mz-dark) !important;
  font-size: 16px !important;
  font-weight: 800 !important;
}

.mz-profile-note-card p,
.mz-subscription-manage-note {
  color: var(--mz-muted) !important;
  font-size: 12.8px !important;
  font-weight: 500 !important;
}

/* Alerts/loading */
.mz-alert {
  border-radius: 14px !important;
  box-shadow: none !important;
}

.mz-loading,
.mz-login-box {
  border-radius: 20px !important;
  background: #ffffff !important;
  border: 1px solid var(--mz-border) !important;
  box-shadow: var(--mz-shadow-soft) !important;
}

.mz-loading-icon,
.mz-login-icon {
  background: var(--mz-blue-soft) !important;
  box-shadow: none !important;
}

/* Mobile/tablet: sidebar becomes horizontal top nav */
@media (max-width: 1180px) {
  .mz-dashboard-app {
    grid-template-columns: 224px minmax(0, 1fr) !important;
  }

  .mz-dashboard-connect-bar {
    grid-template-columns: 1fr !important;
  }

  .mz-command-inner {
    grid-template-columns: 1fr !important;
  }

  .mz-score-orb-wrap {
    justify-content: flex-start !important;
  }

  .mz-profile-strip,
  .mz-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  .mz-dashboard-app,
  .mz-dashboard-app.is-visible,
  .mz-dashboard[style*="block"],
  .mz-dashboard[style*="grid"] {
    display: block !important;
  }

  .mz-dashboard-sidebar {
    position: sticky !important;
    top: 8px !important;
    z-index: 20 !important;
    min-height: 0 !important;
    margin-bottom: 14px !important;
    padding: 10px !important;
    border-radius: 16px !important;
  }

  .mz-sidebar-brand {
    display: none !important;
  }

  .mz-sidebar-nav {
    display: flex !important;
    gap: 6px !important;
    overflow-x: auto !important;
    padding: 0 0 2px !important;
  }

  .mz-sidebar-link {
    min-width: max-content !important;
    flex: 0 0 auto !important;
    min-height: 38px !important;
    padding: 8px 10px !important;
    font-size: 12.5px !important;
  }

  .mz-sidebar-link::before {
    display: none !important;
  }

  .mz-sidebar-icon {
    width: 24px !important;
    height: 24px !important;
    flex-basis: 24px !important;
  }

  .mz-sidebar-footer {
    display: none !important;
  }

  .mz-dashboard-tour-card {
    align-items: flex-start !important;
    flex-direction: column !important;
  }

  .mz-preview-grid,
  .mz-study-goal-grid,
  .mz-profile-settings-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 700px) {
  .mz-dashboard-page {
    padding: 14px 10px 46px !important;
    background: #f8fafc !important;
  }

  .mz-dashboard-nav {
    align-items: stretch !important;
    flex-direction: column !important;
  }

  .mz-nav-group {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
  }

  .mz-dashboard-nav-btn {
    width: 100% !important;
    height: 38px !important;
    font-size: 12.2px !important;
  }

  .mz-hero,
  .mz-dashboard-hero {
    padding: 16px !important;
    border-radius: 18px !important;
  }

  .mz-title {
    font-size: 25px !important;
    letter-spacing: -0.7px !important;
  }

  .mz-subtitle {
    font-size: 12.8px !important;
  }

  .mz-dashboard-connect-bar,
  .mz-dashboard-tour-card,
  .mz-command-inner,
  .mz-section,
  .mz-smart-card,
  .mz-study-plan-card,
  .mz-profile-card,
  .mz-stat-card,
  .mz-preview-card,
  .mz-profile-note-card,
  .mz-subscription-manage-box {
    padding: 14px !important;
    border-radius: 16px !important;
  }

  .mz-profile-strip,
  .mz-stats-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .mz-actions,
  .mz-connect-form {
    width: 100% !important;
  }

  .mz-actions {
    align-items: stretch !important;
    flex-direction: column !important;
  }

  .mz-btn,
  .mz-subscription-manage-btn,
  .mz-profile-note-card .mz-btn {
    width: 100% !important;
  }

  .mz-attempt-header {
    grid-template-columns: 1fr !important;
    align-items: start !important;
  }

  .mz-mark-badge {
    width: 100% !important;
    min-height: 54px !important;
  }

  .mz-attempt-date {
    white-space: normal !important;
  }
}
/* =========================================================
   MATHZEM STUDENT DASHBOARD — FINAL MOBILE + POLISH PASS
   Purpose: small improvements after professional design approval.
   - Better mobile cards
   - Cleaner horizontal sidebar on tablet/mobile
   - Stronger readable empty states
   - More compact dashboard sections
   - Prevent awkward overflow on small screens
========================================================= */

/* Better defaults for long topic/subtopic text */
.mz-dashboard-page {
  overflow-x: hidden !important;
}

.mz-dashboard-content,
.mz-tab-panel,
.mz-card,
.mz-section,
.mz-attempt-card,
.mz-map-card,
.mz-mistake-card,
.mz-resume-card,
.mz-study-plan-body,
.mz-feedback-full {
  min-width: 0 !important;
}

.mz-map-title,
.mz-attempt-title,
.mz-resume-title,
.mz-mistake-title,
.mz-profile-value,
.mz-stat-value,
.mz-chip,
.mz-email-pill,
.mz-feedback-preview,
.mz-study-plan-body,
.mz-feedback-full {
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}

/* Make cards feel slightly sharper and more product-like */
.mz-card,
.mz-stat-card,
.mz-map-card,
.mz-attempt-card,
.mz-resume-card,
.mz-profile-card,
.mz-profile-note-card,
.mz-study-plan-body,
.mz-feedback-full,
.mz-preview-card,
.mz-profile-setting-card,
.mz-empty-preview-card,
.mz-subscription-manage-box,
.mz-dashboard-connect-bar,
.mz-dashboard-tour-card {
  border-color: #e5e7eb !important;
}

.mz-card:hover,
.mz-stat-card:hover,
.mz-map-card:hover,
.mz-attempt-card:hover,
.mz-resume-card:hover,
.mz-preview-card:hover,
.mz-profile-card:hover {
  border-color: #dbe3ef !important;
}

/* Preview and empty states: cleaner and less childish */
.mz-empty,
.mz-empty-preview-card {
  background: #ffffff !important;
  border: 1px dashed #cbd5e1 !important;
  color: #64748b !important;
  box-shadow: none !important;
}

.mz-empty {
  padding: 22px 18px !important;
  font-size: 13.2px !important;
  font-weight: 600 !important;
}

.mz-empty-preview-card h3 {
  font-size: 15px !important;
  font-weight: 800 !important;
}

.mz-empty-preview-card p {
  font-size: 13px !important;
  font-weight: 500 !important;
}

/* More professional progress rows */
.mz-map-card {
  transition: border-color 0.18s ease, background 0.18s ease !important;
}

.mz-map-card:hover {
  background: #fbfdff !important;
}

.mz-progress-track {
  height: 9px !important;
  background: #eef2f7 !important;
}

.mz-progress-fill {
  min-width: 8px !important;
}

/* Recent attempts: less bulky */
.mz-attempt-card {
  transition: border-color 0.18s ease, background 0.18s ease !important;
}

.mz-attempt-card:hover {
  background: #fbfdff !important;
}

.mz-chip-row {
  gap: 6px !important;
}

.mz-chip {
  padding: 5px 8px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
}

/* Form/button polish */
.mz-btn,
.mz-subscription-manage-btn,
.mz-dashboard-nav-btn,
.mz-sidebar-link,
.mz-sidebar-practice-btn,
.mz-small-link,
.mz-feedback-toggle {
  -webkit-tap-highlight-color: transparent !important;
}

.mz-btn:focus-visible,
.mz-subscription-manage-btn:focus-visible,
.mz-dashboard-nav-btn:focus-visible,
.mz-sidebar-link:focus-visible,
.mz-sidebar-practice-btn:focus-visible,
.mz-small-link:focus-visible,
.mz-feedback-toggle:focus-visible,
.mz-input:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.18) !important;
  outline-offset: 2px !important;
}

/* Desktop: make subscription/profile cards align better */
.mz-subscription-manage-box {
  margin-top: 0 !important;
}

.mz-profile-note-card {
  margin-top: 0 !important;
}

/* Tablet: horizontal sidebar should feel like a navigation rail, not a card stack */
@media (max-width: 900px) {
  .mz-dashboard-page {
    padding: 14px 12px 44px !important;
  }

  .mz-dashboard-app,
  .mz-dashboard-app.is-visible,
  .mz-dashboard[style*="block"],
  .mz-dashboard[style*="grid"] {
    display: block !important;
  }

  .mz-dashboard-sidebar {
    position: sticky !important;
    top: 0 !important;
    z-index: 50 !important;
    margin: 0 0 12px !important;
    padding: 10px !important;
    min-height: 0 !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05) !important;
    backdrop-filter: blur(10px) !important;
  }

  .mz-sidebar-brand {
    margin: 0 0 8px !important;
    padding: 2px 2px 9px !important;
  }

  .mz-sidebar-logo {
    width: 32px !important;
    height: 32px !important;
    flex-basis: 32px !important;
    border-radius: 9px !important;
    font-size: 14px !important;
  }

  .mz-sidebar-title {
    font-size: 14px !important;
  }

  .mz-sidebar-subtitle {
    display: none !important;
  }

  .mz-sidebar-nav {
    display: flex !important;
    gap: 6px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 2px 0 4px !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .mz-sidebar-nav::-webkit-scrollbar {
    display: none !important;
  }

  .mz-sidebar-link {
    flex: 0 0 auto !important;
    min-width: max-content !important;
    min-height: 36px !important;
    padding: 8px 10px !important;
    border-radius: 10px !important;
    font-size: 12.2px !important;
    font-weight: 700 !important;
  }

  .mz-sidebar-icon {
    width: 22px !important;
    height: 22px !important;
    flex-basis: 22px !important;
    font-size: 13px !important;
  }

  .mz-sidebar-link::before {
    display: none !important;
  }

  .mz-sidebar-link.active,
  .mz-sidebar-link.is-active {
    background: #eff6ff !important;
    border-color: #bfdbfe !important;
  }

  .mz-sidebar-footer {
    display: none !important;
  }

  .mz-dashboard-connect-bar {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .mz-command-inner {
    grid-template-columns: 1fr !important;
  }

  .mz-score-orb-wrap {
    display: none !important;
  }
}

/* Mobile: make it feel like a native app screen */
@media (max-width: 700px) {
  .mz-dashboard-page {
    padding: 10px 8px 34px !important;
    background: #f8fafc !important;
  }

  .mz-dashboard-nav {
    display: none !important;
  }

  .mz-hero,
  .mz-dashboard-hero {
    margin-bottom: 10px !important;
    padding: 14px !important;
    border-radius: 16px !important;
  }

  .mz-badge {
    display: none !important;
  }

  .mz-title {
    font-size: 22px !important;
    line-height: 1.18 !important;
    letter-spacing: -0.45px !important;
  }

  .mz-subtitle {
    margin-top: 6px !important;
    font-size: 12.5px !important;
    line-height: 1.45 !important;
  }

  .mz-dashboard-sidebar {
    margin-bottom: 10px !important;
    border-radius: 14px !important;
  }

  .mz-sidebar-brand {
    display: none !important;
  }

  .mz-sidebar-nav {
    padding: 0 !important;
  }

  .mz-sidebar-link {
    min-height: 34px !important;
    padding: 7px 9px !important;
    font-size: 11.8px !important;
  }

  .mz-sidebar-icon {
    display: none !important;
  }

  .mz-dashboard-connect-bar,
  .mz-dashboard-tour-card,
  .mz-command-inner,
  .mz-section,
  .mz-smart-card,
  .mz-study-plan-card,
  .mz-profile-card,
  .mz-stat-card,
  .mz-preview-card,
  .mz-profile-note-card,
  .mz-subscription-manage-box,
  .mz-empty-preview-card {
    padding: 13px !important;
    border-radius: 14px !important;
  }

  .mz-dashboard-connect-bar,
  .mz-dashboard-tour-card {
    margin-bottom: 10px !important;
  }

  .mz-connect-kicker,
  .mz-kicker,
  .mz-section-kicker,
  .mz-profile-label {
    font-size: 9.8px !important;
    letter-spacing: 0.06em !important;
  }

  .mz-connect-copy h2,
  .mz-dashboard-tour-card h2,
  .mz-welcome-title,
  .mz-section-title,
  .mz-smart-title {
    font-size: 17px !important;
    line-height: 1.25 !important;
  }

  .mz-connect-copy p,
  .mz-dashboard-tour-card p,
  .mz-welcome-text,
  .mz-section-subtitle,
  .mz-smart-text {
    font-size: 12.4px !important;
    line-height: 1.5 !important;
  }

  .mz-profile-strip,
  .mz-stats-grid,
  .mz-preview-grid,
  .mz-profile-settings-grid,
  .mz-study-goal-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin-top: 10px !important;
  }

  .mz-profile-card,
  .mz-stat-card {
    min-height: auto !important;
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .mz-profile-icon,
  .mz-stat-icon,
  .mz-preview-icon {
    width: 34px !important;
    height: 34px !important;
    flex-basis: 34px !important;
    margin: 0 !important;
    border-radius: 10px !important;
    font-size: 16px !important;
  }

  .mz-profile-value,
  .mz-stat-value {
    font-size: 18px !important;
    line-height: 1.15 !important;
  }

  .mz-profile-sub,
  .mz-stat-sub,
  .mz-stat-label {
    font-size: 11.5px !important;
    line-height: 1.35 !important;
  }

  .mz-section-header {
    gap: 8px !important;
    margin-bottom: 12px !important;
  }

  .mz-map-card,
  .mz-mistake-card,
  .mz-attempt-card,
  .mz-resume-card {
    padding: 12px !important;
    border-radius: 14px !important;
  }

  .mz-map-top,
  .mz-mistake-top,
  .mz-resume-top {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 8px !important;
    align-items: start !important;
  }

  .mz-map-title,
  .mz-mistake-title,
  .mz-resume-title,
  .mz-attempt-title {
    font-size: 13.5px !important;
    line-height: 1.3 !important;
  }

  .mz-map-meta,
  .mz-map-bottom,
  .mz-mistake-body,
  .mz-resume-meta,
  .mz-feedback-preview {
    font-size: 11.8px !important;
    line-height: 1.45 !important;
  }

  .mz-map-percent {
    min-width: 44px !important;
    font-size: 17px !important;
  }

  .mz-map-bottom {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  .mz-level-pill,
  .mz-mistake-count {
    padding: 4px 7px !important;
    font-size: 10.5px !important;
  }

  .mz-attempt-header {
    display: grid !important;
    grid-template-columns: 56px minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  .mz-mark-badge {
    width: 56px !important;
    min-height: 56px !important;
    border-radius: 14px !important;
  }

  .mz-mark-badge strong {
    font-size: 16px !important;
  }

  .mz-mark-badge span {
    font-size: 8.5px !important;
  }

  .mz-attempt-date {
    grid-column: 1 / -1 !important;
    margin-top: -2px !important;
    font-size: 11px !important;
  }

  .mz-chip {
    padding: 4px 7px !important;
    font-size: 10.6px !important;
  }

  .mz-btn,
  .mz-subscription-manage-btn,
  .mz-small-link,
  .mz-feedback-toggle {
    min-height: 38px !important;
    padding: 0 12px !important;
    border-radius: 10px !important;
    font-size: 12.2px !important;
  }

  .mz-study-plan-body,
  .mz-feedback-full {
    max-height: none !important;
    padding: 13px !important;
    border-radius: 14px !important;
    font-size: 12.5px !important;
    line-height: 1.55 !important;
  }

  .mz-study-plan-heading,
  .mz-feedback-full-heading {
    padding: 6px 9px !important;
    font-size: 11.8px !important;
  }

  .mz-input {
    height: 40px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
  }
}

@media (max-width: 430px) {
  .mz-dashboard-page {
    padding-left: 7px !important;
    padding-right: 7px !important;
  }

  .mz-title {
    font-size: 20px !important;
  }

  .mz-subtitle {
    font-size: 12px !important;
  }

  .mz-sidebar-link {
    font-size: 11.2px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .mz-map-top,
  .mz-mistake-top,
  .mz-resume-top,
  .mz-map-bottom {
    grid-template-columns: 1fr !important;
  }

  .mz-map-percent {
    text-align: left !important;
  }

  .mz-attempt-header {
    grid-template-columns: 1fr !important;
  }

  .mz-mark-badge {
    width: 100% !important;
    min-height: 48px !important;
  }
}

/* =========================================================
   INTERNAL ASSESSMENT OVERVIEW CARD — COMPACT FIX
   Purpose: keep the IA card small, clean, and aligned.
   This does NOT increase card height.
========================================================= */

/* Card wrapper */
.mz-dashboard-content .mz-ia-dashboard-card,
.mz-dashboard-content .mz-dashboard-ia-card,
.mz-dashboard-content .mz-ia-overview-card,
.mz-dashboard-content .mz-overview-ia-card,
.mz-dashboard-content .mz-internal-assessment-card,
.mz-dashboard-content .mz-internal-assessment-overview,
.mz-dashboard-content .mz-ia-progress-overview-card,
.mz-dashboard-content .mz-ia-workspace-progress-card,
.mz-dashboard-content .mz-profile-note-card:has(a[href*="ia-workspace"]),
.mz-dashboard-content .mz-resume-card:has(a[href*="ia-workspace"]),
.mz-dashboard-content .mz-preview-card:has(a[href*="ia-workspace"]),
.mz-dashboard-content .mz-card:has(a[href*="ia-workspace"]) {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  min-height: 76px !important;
  max-height: none !important;
  margin: 12px 0 !important;
  padding: 12px 16px !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  border: 1px solid var(--mz-border, #e5e7eb) !important;
  box-shadow: var(--mz-shadow-soft, 0 8px 24px rgba(15, 23, 42, 0.055)) !important;
  overflow: visible !important;
}

/* Text area should take available width, not become a thin column */
.mz-dashboard-content .mz-ia-dashboard-card > div:not(.mz-profile-icon):not(.mz-stat-icon):not(.mz-preview-icon),
.mz-dashboard-content .mz-dashboard-ia-card > div:not(.mz-profile-icon):not(.mz-stat-icon):not(.mz-preview-icon),
.mz-dashboard-content .mz-ia-overview-card > div:not(.mz-profile-icon):not(.mz-stat-icon):not(.mz-preview-icon),
.mz-dashboard-content .mz-overview-ia-card > div:not(.mz-profile-icon):not(.mz-stat-icon):not(.mz-preview-icon),
.mz-dashboard-content .mz-internal-assessment-card > div:not(.mz-profile-icon):not(.mz-stat-icon):not(.mz-preview-icon),
.mz-dashboard-content .mz-internal-assessment-overview > div:not(.mz-profile-icon):not(.mz-stat-icon):not(.mz-preview-icon),
.mz-dashboard-content .mz-ia-progress-overview-card > div:not(.mz-profile-icon):not(.mz-stat-icon):not(.mz-preview-icon),
.mz-dashboard-content .mz-ia-workspace-progress-card > div:not(.mz-profile-icon):not(.mz-stat-icon):not(.mz-preview-icon),
.mz-dashboard-content .mz-card:has(a[href*="ia-workspace"]) > div:not(.mz-profile-icon):not(.mz-stat-icon):not(.mz-preview-icon),
.mz-dashboard-content .mz-profile-note-card:has(a[href*="ia-workspace"]) > div:not(.mz-profile-icon):not(.mz-stat-icon):not(.mz-preview-icon),
.mz-dashboard-content .mz-resume-card:has(a[href*="ia-workspace"]) > div:not(.mz-profile-icon):not(.mz-stat-icon):not(.mz-preview-icon),
.mz-dashboard-content .mz-preview-card:has(a[href*="ia-workspace"]) > div:not(.mz-profile-icon):not(.mz-stat-icon):not(.mz-preview-icon) {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: none !important;
}

/* If the card contains an icon, keep it small */
.mz-dashboard-content .mz-ia-dashboard-card .mz-profile-icon,
.mz-dashboard-content .mz-dashboard-ia-card .mz-profile-icon,
.mz-dashboard-content .mz-ia-overview-card .mz-profile-icon,
.mz-dashboard-content .mz-overview-ia-card .mz-profile-icon,
.mz-dashboard-content .mz-internal-assessment-card .mz-profile-icon,
.mz-dashboard-content .mz-internal-assessment-overview .mz-profile-icon,
.mz-dashboard-content .mz-ia-progress-overview-card .mz-profile-icon,
.mz-dashboard-content .mz-ia-workspace-progress-card .mz-profile-icon,
.mz-dashboard-content .mz-card:has(a[href*="ia-workspace"]) .mz-profile-icon,
.mz-dashboard-content .mz-profile-note-card:has(a[href*="ia-workspace"]) .mz-profile-icon,
.mz-dashboard-content .mz-resume-card:has(a[href*="ia-workspace"]) .mz-profile-icon,
.mz-dashboard-content .mz-preview-card:has(a[href*="ia-workspace"]) .mz-profile-icon,
.mz-dashboard-content .mz-ia-dashboard-card .mz-stat-icon,
.mz-dashboard-content .mz-dashboard-ia-card .mz-stat-icon,
.mz-dashboard-content .mz-ia-overview-card .mz-stat-icon,
.mz-dashboard-content .mz-overview-ia-card .mz-stat-icon,
.mz-dashboard-content .mz-internal-assessment-card .mz-stat-icon,
.mz-dashboard-content .mz-internal-assessment-overview .mz-stat-icon,
.mz-dashboard-content .mz-ia-progress-overview-card .mz-stat-icon,
.mz-dashboard-content .mz-ia-workspace-progress-card .mz-stat-icon,
.mz-dashboard-content .mz-card:has(a[href*="ia-workspace"]) .mz-stat-icon,
.mz-dashboard-content .mz-profile-note-card:has(a[href*="ia-workspace"]) .mz-stat-icon,
.mz-dashboard-content .mz-resume-card:has(a[href*="ia-workspace"]) .mz-stat-icon,
.mz-dashboard-content .mz-preview-card:has(a[href*="ia-workspace"]) .mz-stat-icon {
  width: 38px !important;
  height: 38px !important;
  flex: 0 0 38px !important;
  margin: 0 !important;
  border-radius: 12px !important;
  display: grid !important;
  place-items: center !important;
  background: var(--mz-blue-soft, #eff6ff) !important;
  color: var(--mz-primary, #2563eb) !important;
  box-shadow: none !important;
  font-size: 17px !important;
}

/* IA label */
.mz-dashboard-content .mz-card:has(a[href*="ia-workspace"]) .mz-kicker,
.mz-dashboard-content .mz-profile-note-card:has(a[href*="ia-workspace"]) .mz-kicker,
.mz-dashboard-content .mz-resume-card:has(a[href*="ia-workspace"]) .mz-kicker,
.mz-dashboard-content .mz-preview-card:has(a[href*="ia-workspace"]) .mz-kicker,
.mz-dashboard-content .mz-card:has(a[href*="ia-workspace"]) .mz-section-kicker,
.mz-dashboard-content .mz-profile-note-card:has(a[href*="ia-workspace"]) .mz-section-kicker,
.mz-dashboard-content .mz-resume-card:has(a[href*="ia-workspace"]) .mz-section-kicker,
.mz-dashboard-content .mz-preview-card:has(a[href*="ia-workspace"]) .mz-section-kicker,
.mz-dashboard-content .mz-ia-dashboard-card .mz-kicker,
.mz-dashboard-content .mz-dashboard-ia-card .mz-kicker,
.mz-dashboard-content .mz-ia-overview-card .mz-kicker,
.mz-dashboard-content .mz-overview-ia-card .mz-kicker,
.mz-dashboard-content .mz-internal-assessment-card .mz-kicker,
.mz-dashboard-content .mz-internal-assessment-overview .mz-kicker,
.mz-dashboard-content .mz-ia-progress-overview-card .mz-kicker,
.mz-dashboard-content .mz-ia-workspace-progress-card .mz-kicker {
  display: block !important;
  margin: 0 0 3px !important;
  color: var(--mz-primary, #2563eb) !important;
  font-size: 10px !important;
  line-height: 1.1 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  font-weight: 850 !important;
}

/* IA title must stay on one clean line when space allows */
.mz-dashboard-content .mz-card:has(a[href*="ia-workspace"]) h2,
.mz-dashboard-content .mz-profile-note-card:has(a[href*="ia-workspace"]) h2,
.mz-dashboard-content .mz-resume-card:has(a[href*="ia-workspace"]) h2,
.mz-dashboard-content .mz-preview-card:has(a[href*="ia-workspace"]) h2,
.mz-dashboard-content .mz-card:has(a[href*="ia-workspace"]) h3,
.mz-dashboard-content .mz-profile-note-card:has(a[href*="ia-workspace"]) h3,
.mz-dashboard-content .mz-resume-card:has(a[href*="ia-workspace"]) h3,
.mz-dashboard-content .mz-preview-card:has(a[href*="ia-workspace"]) h3,
.mz-dashboard-content .mz-ia-dashboard-card h2,
.mz-dashboard-content .mz-dashboard-ia-card h2,
.mz-dashboard-content .mz-ia-overview-card h2,
.mz-dashboard-content .mz-overview-ia-card h2,
.mz-dashboard-content .mz-internal-assessment-card h2,
.mz-dashboard-content .mz-internal-assessment-overview h2,
.mz-dashboard-content .mz-ia-progress-overview-card h2,
.mz-dashboard-content .mz-ia-workspace-progress-card h2,
.mz-dashboard-content .mz-ia-dashboard-card h3,
.mz-dashboard-content .mz-dashboard-ia-card h3,
.mz-dashboard-content .mz-ia-overview-card h3,
.mz-dashboard-content .mz-overview-ia-card h3,
.mz-dashboard-content .mz-internal-assessment-card h3,
.mz-dashboard-content .mz-internal-assessment-overview h3,
.mz-dashboard-content .mz-ia-progress-overview-card h3,
.mz-dashboard-content .mz-ia-workspace-progress-card h3 {
  margin: 0 !important;
  color: var(--mz-dark, #0f172a) !important;
  font-size: 16px !important;
  line-height: 1.22 !important;
  letter-spacing: -0.2px !important;
  font-weight: 780 !important;
  max-width: none !important;
  white-space: normal !important;
}

/* IA subtitle */
.mz-dashboard-content .mz-card:has(a[href*="ia-workspace"]) p,
.mz-dashboard-content .mz-profile-note-card:has(a[href*="ia-workspace"]) p,
.mz-dashboard-content .mz-resume-card:has(a[href*="ia-workspace"]) p,
.mz-dashboard-content .mz-preview-card:has(a[href*="ia-workspace"]) p,
.mz-dashboard-content .mz-ia-dashboard-card p,
.mz-dashboard-content .mz-dashboard-ia-card p,
.mz-dashboard-content .mz-ia-overview-card p,
.mz-dashboard-content .mz-overview-ia-card p,
.mz-dashboard-content .mz-internal-assessment-card p,
.mz-dashboard-content .mz-internal-assessment-overview p,
.mz-dashboard-content .mz-ia-progress-overview-card p,
.mz-dashboard-content .mz-ia-workspace-progress-card p {
  margin: 3px 0 0 !important;
  color: var(--mz-muted, #64748b) !important;
  font-size: 12.5px !important;
  line-height: 1.35 !important;
  font-weight: 500 !important;
}

/* CTA button: right aligned but not oversized */
.mz-dashboard-content .mz-card:has(a[href*="ia-workspace"]) a[href*="ia-workspace"],
.mz-dashboard-content .mz-profile-note-card:has(a[href*="ia-workspace"]) a[href*="ia-workspace"],
.mz-dashboard-content .mz-resume-card:has(a[href*="ia-workspace"]) a[href*="ia-workspace"],
.mz-dashboard-content .mz-preview-card:has(a[href*="ia-workspace"]) a[href*="ia-workspace"],
.mz-dashboard-content .mz-ia-dashboard-card .mz-btn,
.mz-dashboard-content .mz-dashboard-ia-card .mz-btn,
.mz-dashboard-content .mz-ia-overview-card .mz-btn,
.mz-dashboard-content .mz-overview-ia-card .mz-btn,
.mz-dashboard-content .mz-internal-assessment-card .mz-btn,
.mz-dashboard-content .mz-internal-assessment-overview .mz-btn,
.mz-dashboard-content .mz-ia-progress-overview-card .mz-btn,
.mz-dashboard-content .mz-ia-workspace-progress-card .mz-btn {
  flex: 0 0 auto !important;
  align-self: center !important;
  white-space: nowrap !important;
  min-height: 38px !important;
  height: 38px !important;
  padding: 0 16px !important;
  border-radius: 11px !important;
  color: #ffffff !important;
  background: var(--mz-primary, #2563eb) !important;
  border: 1px solid var(--mz-primary, #2563eb) !important;
  box-shadow: none !important;
  font-size: 12.8px !important;
  font-weight: 750 !important;
  line-height: 1 !important;
  text-decoration: none !important;
}

/* Compact responsive version */
@media (max-width: 900px) {
  .mz-dashboard-content .mz-ia-dashboard-card,
  .mz-dashboard-content .mz-dashboard-ia-card,
  .mz-dashboard-content .mz-ia-overview-card,
  .mz-dashboard-content .mz-overview-ia-card,
  .mz-dashboard-content .mz-internal-assessment-card,
  .mz-dashboard-content .mz-internal-assessment-overview,
  .mz-dashboard-content .mz-ia-progress-overview-card,
  .mz-dashboard-content .mz-ia-workspace-progress-card,
  .mz-dashboard-content .mz-card:has(a[href*="ia-workspace"]),
  .mz-dashboard-content .mz-profile-note-card:has(a[href*="ia-workspace"]),
  .mz-dashboard-content .mz-resume-card:has(a[href*="ia-workspace"]),
  .mz-dashboard-content .mz-preview-card:has(a[href*="ia-workspace"]) {
    align-items: flex-start !important;
    flex-direction: column !important;
    min-height: auto !important;
    padding: 14px !important;
  }

  .mz-dashboard-content .mz-card:has(a[href*="ia-workspace"]) a[href*="ia-workspace"],
  .mz-dashboard-content .mz-profile-note-card:has(a[href*="ia-workspace"]) a[href*="ia-workspace"],
  .mz-dashboard-content .mz-resume-card:has(a[href*="ia-workspace"]) a[href*="ia-workspace"],
  .mz-dashboard-content .mz-preview-card:has(a[href*="ia-workspace"]) a[href*="ia-workspace"],
  .mz-dashboard-content .mz-ia-dashboard-card .mz-btn,
  .mz-dashboard-content .mz-dashboard-ia-card .mz-btn,
  .mz-dashboard-content .mz-ia-overview-card .mz-btn,
  .mz-dashboard-content .mz-overview-ia-card .mz-btn,
  .mz-dashboard-content .mz-internal-assessment-card .mz-btn,
  .mz-dashboard-content .mz-internal-assessment-overview .mz-btn,
  .mz-dashboard-content .mz-ia-progress-overview-card .mz-btn,
  .mz-dashboard-content .mz-ia-workspace-progress-card .mz-btn {
    width: 100% !important;
    justify-content: center !important;
  }
}


/* Phase 3 staging: on-demand email code verification in Dashboard Overview. */
.mz-identity-overview { padding: 22px 26px; margin: 18px 0 24px; }
.mz-identity-overview[hidden], #mzIdentityLoginInstead[hidden] { display: none !important; }
.mz-identity-overview-head { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.mz-identity-overview h2 { margin: 0; font-size: 1.2rem; line-height: 1.4; }
.mz-identity-overview p { margin: 14px 0; line-height: 1.55; }
.mz-identity-chip { border-radius: 24px; background: #eff6ff; color: #1d4ed8; padding: 6px 12px; font-size: 0.78rem; font-weight: 700; }
.mz-identity-footnote { color: #64748b; font-size: 0.85rem; }
#mzIdentityOverviewStatus { overflow-wrap: anywhere; }
@media (max-width: 600px) { .mz-identity-overview { padding: 18px; } }

/* Phase 3 OTP: accessible, responsive and hidden until explicitly requested. */
#mzIdentityOverviewCard [hidden], .mz-otp-panel[hidden], #mzIdentityFeedback[hidden] { display: none !important; }
.mz-otp-panel { margin: 16px 0; max-width: 520px; display: grid; gap: 12px; }
.mz-otp-panel label { font-size: .95rem; font-weight: 700; color: #0f172a; }
#mzIdentityCodeInput { box-sizing: border-box; max-width: 230px; width: 100%; padding: 12px 16px; border: 2px solid #94a3b8; border-radius: 10px; font-size: 1.4rem; letter-spacing: .25em; background: #fff; color: #0f172a; }
#mzIdentityCodeInput:focus-visible, .mz-identity-overview button:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
.mz-otp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.mz-otp-actions button[disabled], #mzIdentityRequestCode[disabled] { opacity: .55; cursor: wait; }
#mzIdentityFeedback { font-size: .9rem; font-weight: 600; color: #1d4ed8; }
#mzIdentityFeedback.mz-identity-error { color: #b91c1c; }
@media (max-width: 560px) { .mz-otp-actions { flex-direction: column; align-items: stretch; } #mzIdentityCodeInput { max-width: 100%; } }

/* Phase 4 first-time password creation (same Dashboard Overview; staging only). */
#mzIdentityPasswordPanel[hidden] { display: none !important; }
.mz-password-panel { max-width: 520px; display: grid; gap: 12px; margin: 18px 0; }
.mz-password-panel h3 { font-size: 1.07rem; color: #0f172a; margin: 0; }
.mz-password-panel p { margin: 2px 0 6px; }
.mz-password-panel label { font-size: .94rem; font-weight: 700; color: #0f172a; }
.mz-password-panel input { width: 100%; min-width: 0; box-sizing: border-box; border: 2px solid #94a3b8; border-radius: 10px; background: #fff; color: #0f172a; padding: 12px 14px; font-size: 1rem; }
.mz-password-panel input:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
.mz-password-panel button:disabled { opacity: .6; cursor: wait; }
@media (max-width: 560px) { .mz-password-panel { max-width: 100%; } }
