:root {
  --navy: #0f2744;
  --navy-soft: #1e3a5f;
  --blue: #4f8ef7;
  --blue-dark: #3b7de8;
  --green: #22c55e;
  --amber: #f59e0b;
  --rose: #f43f5e;
  --muted: #64748b;
  --muted-soft: #94a3b8;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --bg: #eef2f8;
  --card: #fff;
  --radius: 18px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --shadow: 0 10px 40px rgba(15, 39, 68, 0.07);
  --shadow-sm: 0 4px 16px rgba(15, 39, 68, 0.05);
  /* Type scale — slight jumps so the eye knows what matters */
  --pr-text-2xs: 0.6875rem;  /* 11px labels */
  --pr-text-xs: 0.75rem;     /* 12px meta, hints */
  --pr-text-sm: 0.875rem;    /* 14px body secondary */
  --pr-text-base: 1rem;      /* 16px body */
  --pr-text-md: 1.125rem;    /* 18px values */
  --pr-text-lg: 1.375rem;    /* 22px name */
  --pr-text-xl: 1.25rem;     /* 20px section titles */
  --pr-lh-tight: 1.2;
  --pr-lh-snug: 1.35;
  --pr-lh-body: 1.55;
  --pr-lh-loose: 1.65;
  --pr-track-tight: -0.03em;
  --pr-track-normal: -0.011em;
  --pr-track-wide: 0.06em;
  --pr-track-wider: 0.1em;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--pr-text-base);
  color: var(--text-primary);
  background: var(--bg);
  line-height: var(--pr-lh-body);
  letter-spacing: var(--pr-track-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1;
}

.pr-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 72px;
  font-size: var(--pr-text-sm);
  line-height: var(--pr-lh-body);
}
.pr-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 50;
}
.pr-nav .inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.pr-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 800;
  font-family: var(--font);
}
.pr-brand img { width: 36px; height: 36px; border-radius: 8px; }
.pr-links { display: flex; gap: 18px; margin-left: auto; }
.pr-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.pr-links a:hover { color: var(--blue); }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Nav */
.pr-layout {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.pr-content { min-width: 0; }

#panel-profile:not(.active) {
  display: none !important;
}
#panel-profile {
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}
#panel-profile .pr-hero { margin: 0; }

@media (min-width: 901px) {
  #panel-profile.active {
    display: flex;
    justify-content: center;
  }
  #panel-profile .pr-hero {
    width: 100%;
    max-width: 480px;
  }
  .pr-hero h1 {
    font-size: 1.5rem;
  }
  .pr-hero-meta {
    font-size: var(--pr-text-base);
  }
  .pr-hero-detail-value {
    font-size: var(--pr-text-base);
  }
  .pr-plan-grid {
    max-width: 720px;
  }
}

/* Reveal animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  animation: fadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.reveal:nth-child(2) { animation-delay: 0.06s; }
.reveal:nth-child(3) { animation-delay: 0.12s; }

/* Sign-in gate */
.pr-signin-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 48px 36px;
  text-align: center;
  box-shadow: var(--shadow);
  max-width: 480px;
  margin: 40px auto;
}
.pr-signin-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  filter: grayscale(0.2);
}
.pr-signin-card h1 {
  font-family: var(--font);
  font-size: var(--pr-text-lg);
  font-weight: 700;
  letter-spacing: var(--pr-track-tight);
  margin: 0 0 10px;
  line-height: var(--pr-lh-tight);
}
.pr-signin-card p {
  color: var(--text-secondary);
  margin: 0 0 24px;
  font-size: var(--pr-text-sm);
  line-height: var(--pr-lh-loose);
  max-width: 36ch;
  margin-left: auto;
  margin-right: auto;
}

/* Profile card (sidebar) */
.pr-hero {
  background: var(--card);
  color: var(--navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  position: relative;
}
.pr-hero-banner {
  height: 72px;
  background: linear-gradient(135deg, #0f2744 0%, #1a4a7a 55%, #2563eb 100%);
}
.pr-hero-body {
  padding: 0 20px 20px;
  margin-top: -44px;
  position: relative;
  z-index: 1;
}
.pr-photo-wrap {
  position: relative;
  width: fit-content;
  margin: 0 auto 12px;
}
.pr-hero-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 4px solid #fff;
  object-fit: cover;
  background: #334155;
  box-shadow: 0 6px 20px rgba(15, 39, 68, 0.15);
  display: block;
}
.pr-photo-edit {
  display: none !important;
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--blue);
  color: #fff;
  font-size: 0.8rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s;
}
.pr-photo-edit:hover { transform: scale(1.08); background: var(--blue-dark); }
.pr-hero-text { text-align: center; position: relative; z-index: 1; }
.pr-hero-label {
  margin: 0 0 6px;
  font-size: var(--pr-text-2xs);
  font-weight: 600;
  letter-spacing: var(--pr-track-wider);
  text-transform: uppercase;
  color: var(--muted-soft);
}
.pr-hero h1 {
  font-family: var(--font);
  margin: 0 0 6px;
  font-size: var(--pr-text-lg);
  font-weight: 700;
  letter-spacing: var(--pr-track-tight);
  line-height: var(--pr-lh-tight);
  color: var(--text-primary);
  word-break: break-word;
  text-wrap: balance;
}
.pr-hero-meta {
  margin: 0 0 16px;
  color: var(--text-secondary);
  font-size: var(--pr-text-sm);
  font-weight: 500;
  line-height: var(--pr-lh-snug);
  max-width: 28ch;
  margin-left: auto;
  margin-right: auto;
}
.pr-hero-details {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 16px;
  border-top: 1px solid #eef2f7;
  padding-top: 4px;
}
.pr-hero-detail {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 11px 0;
  border-bottom: 1px solid #f1f5f9;
}
.pr-hero-detail:last-child { border-bottom: none; }
.pr-hero-detail--full {
  gap: 8px;
}
.pr-hero-detail-label {
  font-size: var(--pr-text-2xs);
  font-weight: 600;
  color: var(--muted-soft);
  text-transform: uppercase;
  letter-spacing: var(--pr-track-wide);
  line-height: 1.2;
}
.pr-hero-detail-value {
  font-size: var(--pr-text-sm);
  font-weight: 500;
  color: var(--text-primary);
  text-align: left;
  word-break: break-word;
  line-height: var(--pr-lh-snug);
  width: 100%;
}
.pr-hero-detail--full .pr-hero-detail-value { text-align: left; }
.pr-hero-details .pr-social-links { gap: 6px; }
.pr-hero-details .pr-social-link {
  padding: 8px 12px;
  font-size: var(--pr-text-xs);
  font-weight: 500;
}
.pr-hero-details .pr-social-link-label {
  font-size: var(--pr-text-2xs);
  letter-spacing: var(--pr-track-wide);
}
.pr-hero-details .pr-social-link-val {
  font-size: var(--pr-text-sm);
  font-weight: 600;
}
.pr-hero-details .pr-gallery-grid {
  grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  gap: 6px;
}
.pr-hero-empty {
  margin: 0;
  font-size: var(--pr-text-sm);
  font-weight: 500;
  color: var(--muted-soft);
  text-align: center;
  padding: 12px 0;
  line-height: var(--pr-lh-loose);
}
.pr-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
}
.pr-stat-pill {
  background: #eff6ff;
  border: 1px solid #dbeafe;
  color: #1e40af;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: var(--pr-text-xs);
  font-weight: 500;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.pr-stat-pill strong {
  font-family: var(--font);
  font-size: var(--pr-text-md);
  font-weight: 700;
  margin-right: 4px;
  letter-spacing: var(--pr-track-tight);
  font-variant-numeric: tabular-nums;
}
.pr-btn-block { width: 100%; }
.pr-edit-short { display: none; }

/* Tabs */
.pr-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
  padding: 0;
  background: transparent;
  border-bottom: 2px solid #e2e8f0;
  width: 100%;
  max-width: 100%;
  border-radius: 0;
  box-shadow: none;
}
.pr-tab {
  padding: 12px 18px;
  border-radius: 0;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  background: transparent;
  font-weight: 500;
  font-size: var(--pr-text-sm);
  cursor: pointer;
  color: var(--muted-soft);
  transition: color 0.2s, border-color 0.2s, font-weight 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: var(--pr-track-normal);
}
.pr-tab:hover { color: var(--text-secondary); }
.pr-tab.active {
  background: transparent;
  color: var(--blue);
  font-weight: 600;
  font-size: var(--pr-text-sm);
  border-bottom-color: var(--blue);
  box-shadow: none;
}
.pr-tab-badge {
  font-size: var(--pr-text-2xs);
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.pr-tab:not(.active) .pr-tab-badge {
  background: var(--blue);
  color: #fff;
}

.pr-panel { display: none; }
.pr-panel.active {
  display: block;
  animation: fadeUp 0.35s ease both;
}

/* Cards */
.pr-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
  border: 1px solid rgba(226, 232, 240, 0.8);
}
.pr-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.pr-card h2 {
  font-family: var(--font);
  margin: 0;
  font-size: var(--pr-text-xl);
  font-weight: 600;
  letter-spacing: var(--pr-track-tight);
  line-height: var(--pr-lh-snug);
  color: var(--text-primary);
}
.pr-card-sub {
  color: var(--text-secondary);
  font-size: var(--pr-text-sm);
  font-weight: 400;
  line-height: var(--pr-lh-loose);
  margin: 6px 0 18px;
  max-width: 52ch;
}

/* Detail view grid */
.pr-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.pr-detail-item {
  background: linear-gradient(145deg, #f8fafc, #f1f5f9);
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid #e8edf3;
  transition: transform 0.2s, box-shadow 0.2s;
}
.pr-detail-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.pr-detail-item.full { grid-column: 1 / -1; }
.pr-detail-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.pr-detail-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  word-break: break-word;
}
.pr-detail-value.muted { color: var(--muted); font-weight: 500; font-style: italic; }
.pr-subject-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.pr-subject-tag {
  background: #dbeafe;
  color: #1d4ed8;
  font-size: var(--pr-text-xs);
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  letter-spacing: var(--pr-track-normal);
}

/* Form */
.pr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.pr-field label {
  display: block;
  font-size: var(--pr-text-2xs);
  font-weight: 600;
  color: var(--muted-soft);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: var(--pr-track-wide);
}
.pr-field input,
.pr-field select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  font-family: var(--font);
  font-size: var(--pr-text-base);
  font-weight: 500;
  line-height: var(--pr-lh-snug);
  letter-spacing: var(--pr-track-normal);
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
  color: var(--text-primary);
}
.pr-field input:focus,
.pr-field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(79, 142, 247, 0.15);
}
.pr-field input:disabled {
  background: #f1f5f9;
  color: #64748b;
}
.pr-field.full { grid-column: 1 / -1; }
.pr-hint {
  font-size: var(--pr-text-xs);
  font-weight: 400;
  color: var(--muted-soft);
  line-height: var(--pr-lh-loose);
  margin: 8px 0 0;
}
.pr-form-actions { margin-top: 4px; }

.pr-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pr-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid #cbd5e1;
  background: #fff;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s;
  user-select: none;
}
.pr-chip input { display: none; }
.pr-chip:has(input:checked) {
  background: #dbeafe;
  border-color: var(--blue);
  color: #1d4ed8;
}
.pr-chip:hover { border-color: var(--blue); }

/* Buttons */
.pr-btn {
  padding: 11px 22px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  font-size: var(--pr-text-sm);
  font-family: inherit;
  letter-spacing: var(--pr-track-normal);
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}
.pr-btn:active { transform: scale(0.98); }
.pr-btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  box-shadow: 0 4px 14px rgba(79, 142, 247, 0.3);
}
.pr-btn-primary:hover { box-shadow: 0 6px 20px rgba(79, 142, 247, 0.4); }
.pr-btn-ghost { background: #f1f5f9; color: var(--navy); }
.pr-btn-ghost:hover { background: #e2e8f0; }
.pr-btn-sm { padding: 7px 14px; font-size: 0.82rem; }
.pr-btn-lg { padding: 14px 28px; font-size: 1rem; }

/* Test cards */
.pr-test-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.pr-test-card {
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  background: linear-gradient(160deg, #fafbfc, #f4f7fc);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  display: flex;
  flex-direction: column;
}
.pr-test-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--blue);
}
.pr-test-tag {
  display: inline-block;
  font-size: var(--pr-text-2xs);
  font-weight: 700;
  letter-spacing: var(--pr-track-wide);
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  width: fit-content;
}
.pr-test-card h3 {
  margin: 0 0 8px;
  font-family: var(--font);
  font-size: var(--pr-text-base);
  font-weight: 600;
  letter-spacing: var(--pr-track-tight);
  line-height: var(--pr-lh-snug);
  color: var(--text-primary);
}
.pr-test-card p {
  margin: 0 0 16px;
  font-size: var(--pr-text-sm);
  font-weight: 400;
  line-height: var(--pr-lh-loose);
  color: var(--text-secondary);
  flex: 1;
}
.pr-test-tag.neet { background: #dcfce7; color: #166534; }
.pr-test-tag.board { background: #dbeafe; color: #1d4ed8; }
.pr-test-tag.ca { background: #fef3c7; color: #92400e; }
.pr-test-card .pr-btn { align-self: flex-start; }

/* Results */
.pr-result-card {
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow 0.25s, border-color 0.25s;
  background: #fff;
}
.pr-result-card:hover { box-shadow: var(--shadow-sm); }
.pr-result-card.open { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.pr-result-head {
  padding: 16px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}
.pr-result-head:hover { background: #f8fafc; }
.pr-result-title-wrap { flex: 1; min-width: 180px; }
.pr-result-title {
  font-family: var(--font);
  font-weight: 600;
  font-size: var(--pr-text-base);
  letter-spacing: var(--pr-track-tight);
  line-height: var(--pr-lh-snug);
  margin: 0 0 4px;
  color: var(--text-primary);
}
.pr-result-meta {
  font-size: var(--pr-text-xs);
  font-weight: 500;
  color: var(--muted-soft);
  line-height: var(--pr-lh-snug);
}
.pr-result-score-wrap { text-align: right; }
.pr-result-score {
  font-family: var(--font);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
  letter-spacing: var(--pr-track-tight);
  font-variant-numeric: tabular-nums;
}
.pr-result-score-label {
  font-size: var(--pr-text-2xs);
  color: var(--muted-soft);
  font-weight: 600;
  letter-spacing: var(--pr-track-wide);
  text-transform: uppercase;
}
.pr-result-chevron {
  color: var(--muted);
  font-size: 1.1rem;
  transition: transform 0.25s;
  margin-left: 8px;
}
.pr-result-card.open .pr-result-chevron { transform: rotate(180deg); }

.pr-result-body {
  display: none;
  padding: 0 18px 18px;
  border-top: 1px solid #f1f5f9;
  animation: fadeUp 0.3s ease both;
}
.pr-result-card.open .pr-result-body { display: block; }

.pr-result-tutor-block {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e8edf3;
}
.pr-result-tutor-block h4 {
  margin: 0 0 6px;
  font-size: 0.9rem;
  color: var(--navy);
}

.pr-score-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.pr-score-box {
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  border: 1px solid #e8edf3;
}
.pr-score-box .val {
  font-family: var(--font);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--pr-track-tight);
}
.pr-score-box .lbl {
  font-size: var(--pr-text-2xs);
  color: var(--muted-soft);
  font-weight: 600;
  letter-spacing: var(--pr-track-wide);
  text-transform: uppercase;
  margin-top: 4px;
}

.pr-plan-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.pr-plan-layout {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}
.pr-plan-main { min-width: 0; }
.pr-plan-aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pr-plan-primary h2 { margin-top: 0; }
.pr-plan-head { margin-bottom: 8px; }
.pr-plan-head h2 { font-size: 1rem; margin-bottom: 2px; }
.pr-plan-head .pr-card-sub { margin: 2px 0 0; font-size: 0.72rem; }

@media (min-width: 960px) {
  .pr-plan-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 16px;
    align-items: start;
  }
  .pr-content { max-width: 1100px; }
}

.pr-empty-sm {
  margin: 0;
  font-size: var(--pr-text-sm);
  color: var(--muted);
  line-height: 1.5;
}

.pr-suggestion-item p { margin: 0; font-size: var(--pr-text-sm); line-height: 1.45; color: #334155; }
.pr-plan-grid .pr-card {
  margin-bottom: 0;
  width: 100%;
}

.pr-tutor-report-card {
  border: 1px solid #bfdbfe;
  background: linear-gradient(135deg, #eff6ff, #f0fdf4);
}
.pr-tutor-report-card h2 { margin-top: 0; font-size: 1.05rem; }

.pr-report-takeaway {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.85);
  border: 1px solid #bfdbfe;
  font-size: var(--pr-text-sm);
  line-height: 1.45;
  color: #334155;
}
.pr-report-top {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
  margin-bottom: 12px;
}
.pr-report-score-chip {
  flex: 0 0 auto;
  min-width: 88px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #dbeafe;
  text-align: center;
}
.pr-report-score-num {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}
.pr-report-score-num small { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.pr-report-score-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 4px 0 6px;
}
.pr-report-topics-inline {
  flex: 1;
  min-width: 120px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #dbeafe;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}
.pr-report-topics-inline span {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.pr-report-topics-inline strong { font-size: var(--pr-text-sm); color: var(--navy); }
.pr-report-metrics--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 480px) {
  .pr-report-metrics--grid { grid-template-columns: 1fr; }
}

/* Tutor demo report card */
.pr-tutor-report { margin-top: 8px; }
.pr-report-hero {
  text-align: center;
  padding: 18px 14px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #eff6ff, #f0fdf4);
  border: 1px solid #bfdbfe;
}
.pr-report-hero-score {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}
.pr-report-hero-score span { font-size: 1rem; font-weight: 600; color: var(--muted); }
.pr-report-hero-label {
  font-size: var(--pr-text-xs);
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 6px 0 8px;
}
.pr-report-stars { display: flex; gap: 2px; justify-content: center; }
.pr-report-stars--lg .pr-report-star { font-size: 1.35rem; }
.pr-report-star { color: #cbd5e1; font-size: 0.95rem; }
.pr-report-star.filled { color: #f59e0b; }
.pr-report-topics {
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #dbeafe;
}
.pr-report-topics-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 4px;
}
.pr-report-topics p { margin: 0; font-size: var(--pr-text-sm); color: var(--text-primary); }
.pr-report-metrics { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.pr-report-metric-head {
  display: flex;
  justify-content: space-between;
  font-size: var(--pr-text-sm);
  font-weight: 600;
  margin-bottom: 4px;
}
.pr-report-metric-val { color: var(--muted); font-weight: 700; }
.pr-report-bar {
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 4px;
}
.pr-report-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
}
.pr-report-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
@media (max-width: 480px) { .pr-report-pills { grid-template-columns: 1fr; } }
.pr-report-pill {
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.pr-report-pill-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 2px;
}
.pr-report-pill-val { font-size: var(--pr-text-sm); font-weight: 600; color: var(--text-primary); }
.pr-report-quote {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-left: 4px solid var(--blue);
  background: #f8fafc;
  border-radius: 0 10px 10px 0;
  font-size: var(--pr-text-sm);
  color: #334155;
  font-style: italic;
}
.pr-report-quote-label {
  display: block;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 6px;
}
.pr-report-date { font-size: var(--pr-text-xs); color: var(--muted); margin: 0; }

.pr-demo-cta-list {
  margin: 10px 0 14px;
  padding-left: 20px;
  font-size: var(--pr-text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}
.pr-demo-cta-list li { margin-bottom: 4px; }

.pr-demo-milestone {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  margin-bottom: 14px;
  border-radius: 14px;
  border: 1px solid #fde68a;
  background: linear-gradient(135deg, #fffbeb, #fff);
}
.pr-demo-milestone--cta { border-color: #bfdbfe; background: linear-gradient(135deg, #eff6ff, #fff); }
.pr-demo-milestone-icon { font-size: 1.5rem; flex-shrink: 0; }
.pr-demo-milestone-body strong { display: block; font-size: var(--pr-text-sm); margin-bottom: 4px; }
.pr-demo-milestone-body p { margin: 0 0 10px; font-size: var(--pr-text-sm); color: var(--text-secondary); line-height: 1.5; }
.pr-btn-sm { padding: 8px 14px; font-size: var(--pr-text-sm); display: inline-flex; }

.pr-dual-row.demo { border-color: #93c5fd; background: linear-gradient(90deg, #f0f9ff, #fff, #f0fdf4); }
.pr-dual-row.demo .pr-dual-month { color: #1d4ed8; }
.pr-timeline-item--demo { border-color: #93c5fd; background: linear-gradient(135deg, #eff6ff, #f0fdf4); }
.pr-timeline-item--demo::before { background: #2563eb; box-shadow: 0 0 0 2px #2563eb; }

.pr-study-profile {
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f5f3ff, #eff6ff);
  border: 1px solid #c4b5fd;
}
.pr-study-profile-label {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #5b21b6;
}
.pr-study-profile-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pr-study-profile-chip {
  font-size: var(--pr-text-xs);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.85);
  border: 1px solid #ddd6fe;
  color: #334155;
}
.pr-study-profile-chip strong { color: #5b21b6; margin-right: 4px; }

.pr-feedback-block {
  background: linear-gradient(135deg, #f0f7ff, #f8fafc);
  border-radius: 14px;
  padding: 16px;
  margin-top: 12px;
  border-left: 4px solid var(--blue);
}
.pr-feedback-block h4 {
  margin: 0 0 8px;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--navy);
}
.pr-feedback-block p,
.pr-feedback-block li {
  font-size: 0.88rem;
  color: #334155;
  margin: 0;
}
.pr-feedback-block ul { margin: 6px 0 0; padding-left: 18px; }
.pr-tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pr-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e0e7ff;
  color: #3730a3;
}
.pr-tag.good { background: #dcfce7; color: #166534; }
.pr-tag.warn { background: #fef3c7; color: #92400e; }
.pr-tag.bad { background: #fee2e2; color: #991b1b; }

.pr-mcq-summary {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 10px 0;
}
.pr-subject-bar {
  margin-bottom: 10px;
}
.pr-subject-bar-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.pr-subject-bar-track {
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}
.pr-subject-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.pr-subject-bar-fill.high { background: linear-gradient(90deg, #22c55e, #4ade80); }
.pr-subject-bar-fill.mid { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.pr-subject-bar-fill.low { background: linear-gradient(90deg, #f43f5e, #fb7185); }

/* Study plan */
.pr-suggestion-card {
  background: linear-gradient(135deg, #eff6ff 0%, #fff 60%);
  border-color: #bfdbfe;
}
#planSuggestion {
  font-size: var(--pr-text-base);
  line-height: var(--pr-lh-loose);
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 65ch;
}
.pr-suggestion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}
.pr-suggestion-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  background: rgba(255,255,255,0.7);
  border-radius: 12px;
  border: 1px solid #dbeafe;
}
.pr-suggestion-item .icon { font-size: 1.3rem; flex-shrink: 0; }

.pr-timeline {
  border-left: 3px solid var(--blue);
  padding-left: 22px;
  margin-top: 8px;
}
.pr-timeline-item {
  margin-bottom: 20px;
  position: relative;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e8edf3;
  transition: transform 0.2s;
}
.pr-timeline-item:hover { transform: translateX(4px); }
.pr-timeline-item::before {
  content: '';
  position: absolute;
  left: -30px;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--blue);
}
.pr-timeline-item strong {
  display: block;
  font-family: var(--font);
  font-size: var(--pr-text-sm);
  font-weight: 600;
  letter-spacing: var(--pr-track-tight);
  margin-bottom: 4px;
  color: var(--text-primary);
}
.pr-timeline-item span {
  font-size: var(--pr-text-xs);
  font-weight: 400;
  line-height: var(--pr-lh-loose);
  color: var(--text-secondary);
}

.pr-empty {
  color: var(--muted-soft);
  font-size: var(--pr-text-sm);
  font-weight: 500;
  padding: 20px 0;
  text-align: center;
  line-height: var(--pr-lh-loose);
}

/* Timeline summary card */
.pr-timeline-summary,
.tl-summary {
  background: linear-gradient(135deg, #f8fafc, #eff6ff);
  border: 1px solid #dbeafe;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.72rem;
  line-height: 1.4;
  color: #334155;
}
.pr-timeline-summary strong,
.tl-summary .tl-summary-heading {
  font-size: 0.78rem;
  color: var(--navy);
}
.tl-summary .tl-summary-heading { display: block; font-weight: 700; }
.tl-summary-today,
.tl-summary-forecast,
.tl-summary-insight {
  display: block;
  padding-top: 6px;
  margin-top: 6px;
  border-top: 1px solid rgba(191, 219, 254, 0.6);
}
.tl-summary-today:first-of-type,
.tl-summary-paper + .tl-summary-today { border-top: none; margin-top: 0; padding-top: 0; }
.tl-summary-forecast {
  font-weight: 600;
  color: #1d4ed8;
}
.tl-summary-why {
  display: block;
  font-size: 0.82rem;
  color: #475569;
  margin-top: 4px;
  line-height: 1.5;
}
.tl-summary-leap {
  display: block;
  font-size: 0.82rem;
  color: #4338ca;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(238, 242, 255, 0.9);
  border: 1px solid #c7d2fe;
  line-height: 1.5;
}
.tl-summary-leap strong { color: #3730a3; }
.tl-summary-today strong,
.tl-summary-forecast strong {
  color: #334155;
  font-weight: 700;
}
.pr-timeline-why,
.tl-cell-why {
  display: block;
  margin-top: 6px;
  font-size: 0.76rem;
  color: #64748b;
  line-height: 1.4;
}

/* Dual timeline (board) */
.pr-dual-timeline {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}
.pr-dual-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  margin-bottom: 2px;
}
.pr-dual-head-solo { color: #64748b; text-align: right; padding-right: 6px; }
.pr-dual-head-month { color: var(--muted); min-width: 88px; }
.pr-dual-head-learn { color: #1d4ed8; text-align: left; padding-left: 6px; }
.pr-dual-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: stretch;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e8edf3;
  overflow: hidden;
  opacity: 0;
  animation: tlRowIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.pr-dual-row.exam { border-color: #fbbf24; background: #fffbeb; }
.pr-dual-cell {
  padding: 8px 10px;
  font-size: 0.68rem;
  line-height: 1.38;
  color: #334155;
}
.pr-dual-cell.solo { border-right: 1px solid #e8edf3; background: #fafafa; }
.pr-dual-cell.learn { border-left: 1px solid #e8edf3; background: linear-gradient(135deg, #eff6ff, #f5f3ff); }
.pr-dual-month {
  padding: 8px 8px;
  text-align: center;
  font-family: var(--font);
  font-weight: 800;
  font-size: 0.72rem;
  color: var(--navy);
  min-width: 76px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}
.pr-dual-month em,
.pr-month-badge {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 700;
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
}
.pr-month-badge.exam {
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fde68a;
}
.pr-month-badge.demo {
  color: #1d4ed8;
  background: #dbeafe;
  border: 1px solid #93c5fd;
}
.pr-insight-item {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e8edf3;
}
.pr-insight-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.pr-insight-q { font-size: 0.82rem; font-weight: 700; color: var(--muted); margin: 0 0 4px; }
.pr-insight-a { font-size: 0.9rem; margin: 0; color: var(--navy); }

/* Profile engage footer */
.pr-engage {
  margin-top: 8px;
  background: linear-gradient(135deg, #0f2744, #1a4a7a);
  border-radius: var(--radius);
  padding: 28px 32px;
  color: #fff;
  box-shadow: var(--shadow);
}
.pr-engage-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.pr-engage-label {
  font-size: var(--pr-text-2xs);
  font-weight: 600;
  letter-spacing: var(--pr-track-wider);
  text-transform: uppercase;
  opacity: 0.75;
  margin: 0 0 6px;
}
.pr-engage h3 {
  font-family: var(--font);
  margin: 0 0 6px;
  font-size: var(--pr-text-base);
  font-weight: 600;
  letter-spacing: var(--pr-track-tight);
  line-height: var(--pr-lh-snug);
}
.pr-engage-sub {
  margin: 0;
  opacity: 0.9;
  font-size: var(--pr-text-sm);
  font-weight: 400;
  line-height: var(--pr-lh-loose);
}
.pr-engage-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pr-btn-insta {
  background: linear-gradient(135deg, #e1306c, #f77737);
  color: #fff;
  box-shadow: 0 4px 14px rgba(225, 48, 108, 0.35);
}
.pr-btn-insta:hover { box-shadow: 0 6px 20px rgba(225, 48, 108, 0.45); }
.pr-btn-logout {
  background: rgba(255, 255, 255, 0.12);
  color: #fecaca;
  border: 1px solid rgba(254, 202, 202, 0.35);
}
.pr-btn-logout:hover { background: rgba(254, 202, 202, 0.15); }

.pr-account-footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
  text-align: center;
}
.pr-logout-btn {
  width: 100%;
  max-width: 320px;
  padding: 14px 24px;
  border-radius: 12px;
  border: 1.5px solid #fecaca;
  background: #fff;
  color: #dc2626;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s;
}
.pr-logout-btn:hover {
  background: #fef2f2;
  border-color: #f87171;
}

.pr-form-section { margin-top: 8px; }
.pr-form-section-title {
  margin: 0 0 4px;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--navy);
}
.pr-input-prefix {
  display: flex;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.pr-input-prefix span {
  padding: 0 12px;
  color: var(--muted);
  font-weight: 600;
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
}
.pr-input-prefix input {
  border: none;
  flex: 1;
  padding: 10px 12px;
  font: inherit;
}
.pr-input-prefix input:focus { outline: none; }

.pr-social-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pr-social-link {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: baseline;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.pr-social-link:hover {
  border-color: var(--blue);
  background: #f0f6ff;
}
.pr-social-link-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.pr-social-link-val {
  font-weight: 600;
  color: var(--navy);
  word-break: break-all;
}

.pr-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.pr-gallery-view .pr-gallery-item { cursor: default; }
.pr-gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}
.pr-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pr-gallery-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: rgba(15, 39, 68, 0.75);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.pr-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1.5px dashed var(--blue);
  color: var(--blue);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  background: #f0f6ff;
}
.pr-upload-btn:hover { background: #e8f0fe; }

.pr-school-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--blue);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pr-school-link:hover { color: var(--blue-dark); }
.pr-school-view-btn {
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
.pr-students-dialog .pr-dialog-students-wrap { padding: 28px; }
.pr-students-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  max-height: 320px;
  overflow-y: auto;
}
.pr-student-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e8edf3;
  margin-bottom: 8px;
  opacity: 0;
  transform: translateX(-12px);
  animation: studentIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes studentIn {
  to { opacity: 1; transform: translateX(0); }
}
.pr-student-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #7c3aed);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pr-student-name { font-weight: 600; color: var(--navy); }

.pr-msg {
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 14px;
  font-size: 0.88rem;
  font-weight: 600;
  animation: fadeUp 0.3s ease;
}
.pr-msg.ok { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.pr-msg.err { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* Dialogs */
.pr-dialog {
  border: none;
  border-radius: 20px;
  padding: 0;
  max-width: 420px;
  width: calc(100% - 32px);
  box-shadow: 0 24px 60px rgba(15, 39, 68, 0.2);
}
.pr-dialog::backdrop { background: rgba(15, 39, 68, 0.45); backdrop-filter: blur(4px); }
.pr-dialog form { padding: 0; }
.pr-edit-dialog:not([open]) {
  display: none;
}
.pr-edit-dialog {
  max-width: 640px;
  width: calc(100% - 24px);
  max-height: min(92vh, 860px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.pr-edit-dialog form {
  display: flex;
  flex-direction: column;
  max-height: min(92vh, 860px);
  overflow: hidden;
}
.pr-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 12px;
  border-bottom: 1px solid #eef2f7;
  flex-shrink: 0;
}
.pr-dialog-head h3 {
  font-family: var(--font);
  margin: 0;
  font-size: var(--pr-text-xl);
  font-weight: 600;
  letter-spacing: var(--pr-track-tight);
}
.pr-dialog-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--navy);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pr-dialog-close:hover { background: #e2e8f0; }
.pr-edit-scroll {
  overflow-y: auto;
  padding: 16px 22px;
  flex: 1;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}
.pr-edit-scroll .pr-grid { margin: 0; }
.pr-dialog-actions--sticky {
  padding: 14px 22px 20px;
  border-top: 1px solid #eef2f7;
  background: #fff;
  flex-shrink: 0;
  margin-top: 0;
}
#saveMsg { margin: 0 22px 8px; }
.pr-edit-dialog #saveMsg:first-of-type { margin-top: 12px; }
.pr-dialog h3 {
  font-family: var(--font);
  margin: 0 0 6px;
  font-size: 1.25rem;
}
.pr-dialog-sub {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 18px;
}
.pr-dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
}
.pr-photo-preview-wrap {
  text-align: center;
  margin-bottom: 14px;
}
.pr-photo-preview-wrap img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e2e8f0;
}

@media (max-width: 900px) {
  .pr-plan-grid { display: flex; flex-direction: column; gap: 12px; }
  .pr-plan-grid .pr-card { margin-bottom: 0; }
}

@media (max-width: 700px) {
  .pr-grid { grid-template-columns: 1fr; }
  .pr-links { display: none; }
  .pr-main { padding: 14px 14px 48px; }

  /* Profile tab card */
  #panel-profile .pr-hero { border-radius: 14px; }
  .pr-hero-banner { height: 56px; }
  .pr-hero-body {
    padding: 0 14px 14px;
    margin-top: -36px;
  }
  .pr-hero-photo {
    width: 64px;
    height: 64px;
    border-width: 3px;
  }
  .pr-photo-edit { display: none !important; }
  .pr-hero h1 { font-size: 1.25rem; }
  .pr-hero-meta { font-size: var(--pr-text-xs); margin-bottom: 12px; }
  .pr-hero-details { padding-top: 4px; margin-bottom: 12px; }
  .pr-hero-detail { padding: 10px 0; }
  .pr-hero-stats {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    margin: 0 -4px 10px;
    padding: 0 4px 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .pr-hero-stats::-webkit-scrollbar { display: none; }
  .pr-stat-pill { flex-shrink: 0; }
  .pr-stat-pill strong { font-size: var(--pr-text-base); }
  .pr-edit-full { display: none; }
  .pr-edit-short { display: inline; }

  /* Scrollable tabs on mobile */
  .pr-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0;
  }
  .pr-tabs::-webkit-scrollbar { display: none; }
  .pr-tab {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 10px 14px;
    font-size: var(--pr-text-xs);
  }
  .pr-tab.active { font-size: var(--pr-text-sm); }

  .pr-plan-grid { display: flex; flex-direction: column; gap: 12px; }
  .pr-plan-grid .pr-card { margin-bottom: 0; }

  .pr-card { padding: 18px 16px; border-radius: 14px; margin-bottom: 12px; }
  .pr-card h2 { font-size: var(--pr-text-base); }
  .pr-card-sub { font-size: var(--pr-text-xs); margin: 4px 0 14px; }

  .pr-field input,
  .pr-field select { font-size: 16px; }

  .pr-result-score { font-size: 1.375rem; }
  .pr-score-box .val { font-size: 1.125rem; }

  .pr-test-grid { grid-template-columns: 1fr; gap: 12px; }
  .pr-test-card { padding: 16px; }

  .pr-engage { padding: 20px 18px; border-radius: 14px; }
  .pr-engage-actions { width: 100%; }
  .pr-engage-actions .pr-btn { flex: 1; text-align: center; justify-content: center; }

  .pr-signin-card { padding: 32px 22px; margin: 24px auto; border-radius: 16px; }
  .pr-signin-card h1 { font-size: 1.25rem; }

  .pr-timeline { padding-left: 16px; }
  .pr-timeline-item::before { left: -24px; width: 10px; height: 10px; }

  .pr-dual-head,
  .pr-dual-row { grid-template-columns: 1fr; gap: 0; }
  .pr-dual-head { display: none; }
  .pr-dual-cell.solo,
  .pr-dual-cell.learn { border: none; border-bottom: 1px solid #e8edf3; padding-top: 10px; }
  .pr-dual-cell.solo::before,
  .pr-dual-cell.learn::before {
    display: block;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
  }
  .pr-dual-cell.solo::before { content: 'On your own'; color: #64748b; }
  .pr-dual-cell.learn::before { content: 'With Learneasy'; color: #1d4ed8; }
  .pr-dual-month {
    min-width: 0;
    padding: 10px 14px;
    background: #eef2f8;
    border-bottom: 1px solid #e8edf3;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .pr-edit-dialog { width: calc(100% - 16px); max-height: 94vh; }
  .pr-dialog-head { padding: 16px 16px 10px; }
  .pr-edit-scroll { padding: 12px 16px; }
  .pr-dialog-actions--sticky { padding: 12px 16px 16px; }
  #saveMsg { margin: 0 16px 8px; }
}

@media (min-width: 701px) {
  .pr-edit-short { display: none; }
  .pr-edit-full { display: inline; }
}

@media (max-width: 380px) {
  .pr-tab { padding: 8px 12px; font-size: 0.78rem; }
}

/* Tutor profile mode */
.pr-tutor-mode .pr-student-only { display: none !important; }
.pr-tutor-mode #panel-tests { display: none !important; }
.pr-stat-pill--tutor { background: linear-gradient(135deg, #eff6ff, #eef2ff); border-color: #bfdbfe; }
.pr-stat-pill--click {
  cursor: pointer;
  font: inherit;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.pr-stat-pill--click:hover,
.pr-stat-pill--click:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.15);
  border-color: #93c5fd;
  outline: none;
}
.pr-stat-pill--click:active { transform: translateY(0); }
.pr-tab--tutor-primary.active {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}
.pr-tutor-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.pr-tutor-filter {
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  color: var(--navy);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.pr-tutor-filter:hover { border-color: #93c5fd; background: #eff6ff; }
.pr-tutor-filter.active {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.25);
}
.pr-tutor-filter-count {
  display: inline-block;
  min-width: 1.25rem;
  padding: 0 5px;
  margin-left: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
}
.pr-tutor-filter:not(.active) .pr-tutor-filter-count {
  background: #dbeafe;
  color: #1d4ed8;
}
.pr-reveal {
  opacity: 0;
  animation: fadeUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.pr-tutor-kpi--click {
  cursor: pointer;
  font: inherit;
  width: 100%;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.pr-tutor-kpi--click:hover,
.pr-tutor-kpi--click:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.12);
  border-color: #93c5fd;
  outline: none;
}
.pr-tutor-kpi--click:active { transform: scale(0.98); }
.pr-student-fb {
  padding: 4px 0 8px;
}
.pr-student-fb-hero {
  padding: 16px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
  border: 1px solid #dbeafe;
  animation: fadeUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.pr-student-fb-eyebrow {
  margin: 0 0 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6366f1;
}
.pr-student-fb-name {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: var(--navy);
}
.pr-student-fb-demo {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.pr-student-fb-score {
  margin-top: 12px;
}
.pr-student-fb-metrics {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}
.pr-student-fb-metrics .pr-report-metric {
  opacity: 0;
  animation: fadeUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.pr-student-fb-metrics .pr-report-metric:nth-child(1) { animation-delay: 0.05s; }
.pr-student-fb-metrics .pr-report-metric:nth-child(2) { animation-delay: 0.1s; }
.pr-student-fb-metrics .pr-report-metric:nth-child(3) { animation-delay: 0.15s; }
.pr-student-fb-metrics .pr-report-metric:nth-child(4) { animation-delay: 0.2s; }
.pr-student-fb-metrics .pr-report-metric:nth-child(5) { animation-delay: 0.25s; }
.pr-student-fb-metrics .pr-report-bar-fill {
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.pr-student-fb-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.pr-student-fb-pill {
  flex: 1;
  min-width: 140px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--border);
}
.pr-student-fb-pill span {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 4px;
}
.pr-student-fb-pill strong {
  font-size: 0.95rem;
  color: var(--navy);
}
.pr-student-fb-pill--yes {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border-color: #6ee7b7;
}
.pr-student-fb-pill--yes strong { color: #047857; }
.pr-student-fb-pill--conf {
  background: linear-gradient(135deg, #eff6ff, #e0e7ff);
  border-color: #93c5fd;
}
.pr-student-fb-quote {
  margin-top: 12px;
  animation: fadeUp 0.45s 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.pr-animate-in { animation: fadeUp 0.35s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.pr-tutor-dashboard { display: flex; flex-direction: column; gap: 20px; }
.pr-tutor-kpi-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 640px) {
  .pr-tutor-kpi-row { grid-template-columns: repeat(4, 1fr); }
}
.pr-tutor-kpi {
  background: linear-gradient(135deg, #f8fafc, #eff6ff);
  border: 1px solid #dbeafe;
  border-radius: 12px;
  padding: 14px 12px;
  text-align: center;
}
.pr-tutor-kpi strong {
  display: block;
  font-size: 1.5rem;
  color: var(--navy);
  line-height: 1.1;
}
.pr-tutor-kpi span {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
}
.pr-tutor-section {
  padding-top: 4px;
  border-top: 1px solid var(--border);
}
.pr-tutor-section:first-child { border-top: none; padding-top: 0; }
.pr-tutor-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.pr-tutor-section-head h3,
.pr-tutor-section > h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: var(--navy);
}
.pr-link-btn {
  font-size: 0.78rem;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
}
.pr-link-btn:hover { text-decoration: underline; }
.pr-tutor-student-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pr-tutor-student {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fafbfc;
  opacity: 0;
  animation: slideUp 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.pr-tutor-student-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.pr-tutor-student-head strong { display: block; font-size: 0.9rem; color: var(--navy); }
.pr-tutor-student-meta {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 2px;
}
.pr-subject-tag--tutor { background: #eef2ff; color: #4338ca; border-color: #c7d2fe; }
.pr-tutor-recent-item {
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--border);
  margin-bottom: 8px;
}
.pr-tutor-recent-item strong { display: block; font-size: 0.88rem; color: var(--navy); }
.pr-tutor-recent-item span { font-size: 0.76rem; color: var(--muted); }
.pr-tutor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-top: none;
}

.pr-student-test-card .pr-tutor-student-head { justify-content: space-between; }
.pr-student-avatar--test { background: linear-gradient(135deg, #dbeafe, #e0e7ff); color: #1d4ed8; }
.pr-test-score {
  margin-left: auto;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--blue);
  flex-shrink: 0;
}
.pr-student-test-detail { padding: 8px 0 4px; }
.pr-test-readiness { margin: 0 0 8px; font-size: 0.9rem; }
.pr-test-proj { margin: 0 0 8px; font-size: 0.86rem; line-height: 1.45; }
.pr-test-subjects { margin: 0; padding-left: 18px; font-size: 0.84rem; color: var(--navy); }
.pr-test-subjects li { margin-bottom: 4px; }
.pr-result-card .pr-test-tag.report { background: #dbeafe; color: #1d4ed8; }
.pr-result-card .pr-test-tag.feedback { background: #ecfdf5; color: #047857; }
@media (max-width: 560px) {
  .pr-tutor-kpi-row { grid-template-columns: 1fr; }
}
