/* ── EduPeak Feature Screens Styles (1:1 Android Parity) ── */

/* ── Common Sub-Tab Bars & Segmented Controls ── */
.sub-tabs-container {
  display: flex;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 14px;
}

.sub-tab-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 6px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: #64748B;
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

.sub-tab-btn .tab-sub {
  font-size: 10px;
  font-weight: 500;
  color: #94A3B8;
  margin-top: 2px;
}

.sub-tab-btn.active {
  background: #FFFFFF;
  color: #2563EB;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.sub-tab-btn.active .tab-sub {
  color: #3B82F6;
  font-weight: 600;
}

/* ── Screen AppBars ── */
.screen-appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 4px;
}

.appbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.appbar-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #EFF6FF;
  color: #2563EB;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.appbar-title {
  font-size: 16.5px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.2;
}

.appbar-subtitle {
  font-size: 11px;
  font-weight: 600;
  color: #64748B;
  margin-top: 2px;
}

.appbar-badge-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  color: #2563EB;
  cursor: pointer;
}

/* ── Papers Tab Styles ── */
.paper-session-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 16px 18px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.paper-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.phase-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
}

.phase-live {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
  animation: pulseLive 2s infinite alternate;
}

@keyframes pulseLive {
  0% { box-shadow: 0 0 0 rgba(220, 38, 38, 0.2); }
  100% { box-shadow: 0 0 10px rgba(220, 38, 38, 0.4); }
}

.phase-upcoming {
  background: #EFF6FF;
  color: #2563EB;
  border: 1px solid #DBEAFE;
}

.phase-pkg {
  background: #FFFBEB;
  color: #D97706;
  border: 1px solid #FDE68A;
}

.phase-ended {
  background: #F1F5F9;
  color: #64748B;
  border: 1px solid #E2E8F0;
}

.paper-title {
  font-size: 15.5px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.35;
}

.paper-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11.5px;
  color: #64748B;
  font-weight: 600;
}

.meta-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #F8FAFC;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #E2E8F0;
}

/* Slots Grid inside Paper Card */
.slots-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.slot-selection-box {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.2s ease;
}

.slot-selection-box.selected {
  background: #EFF6FF;
  border-color: #2563EB;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

.slot-name {
  font-size: 12px;
  font-weight: 800;
  color: #0F172A;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.slot-time {
  font-size: 11px;
  color: #2563EB;
  font-weight: 700;
}

.slot-seats {
  font-size: 10px;
  color: #64748B;
  margin-top: 2px;
}

.paper-actions-row {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.btn-exam-hall {
  flex: 1;
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  color: white;
  border: none;
  padding: 11px 12px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-paper-script {
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  color: #1E293B;
  padding: 11px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Upcoming Hints Cards */
.upcoming-hint-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 16px 18px;
  border: 1px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.syllabus-breakdown {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #F8FAFC;
  padding: 12px;
  border-radius: 12px;
}

.syllabus-row {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 600;
  color: #334155;
}

.syllabus-bar-bg {
  width: 100%;
  height: 5px;
  background: #E2E8F0;
  border-radius: 999px;
  overflow: hidden;
}

.syllabus-bar-fill {
  height: 100%;
  background: #2563EB;
  border-radius: 999px;
}

.teacher-tip-box {
  background: #EFF6FF;
  border-left: 3px solid #2563EB;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.45;
  color: #1E3A8A;
}

/* ── Leaderboard Tab Styles ── */
.leagues-scroll-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  overflow: visible;
  padding: 0 16px 6px;
  margin-bottom: 12px;
}

.league-chip {
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.league-chip.active {
  background: #2563EB;
  border-color: #2563EB;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.batch-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}

.leaderboard-batch-banner {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 2px 16px 12px;
  padding: 10px 12px;
  border: 1px solid rgba(99, 102, 241, .22);
  border-radius: 12px;
  background: #EEF2FF;
  color: #4F46E5;
  font-size: 12px;
}
.leaderboard-batch-banner span { color: #64748B; font-size: 10.5px; }
.leaderboard-state {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 4px 16px 92px;
  padding: 24px;
  border: 1px dashed #CBD5E1;
  border-radius: 18px;
  background: rgba(255, 255, 255, .72);
  color: #64748B;
  text-align: center;
  font-size: 12px;
}
.leaderboard-state .material-symbols-rounded { color: #227AFF; font-size: 30px; }
.leaderboard-state strong { color: #0F172A; font-size: 15px; }
.leaderboard-retry-btn {
  margin-top: 6px;
  padding: 9px 16px;
  border: 0;
  border-radius: 10px;
  background: #227AFF;
  color: #FFFFFF;
  font: 700 12px 'Outfit', sans-serif;
  cursor: pointer;
}
.ranks-list { display: flex; flex-direction: column; gap: 4px; padding-bottom: 88px; }
.rank-list-item.is-current-user { border-color: #227AFF; background: #EFF6FF; }
.rank-you-tag {
  padding: 2px 6px;
  border-radius: 999px;
  background: #DBEAFE;
  color: #1D4ED8;
  font-size: 9px;
  font-weight: 800;
}
.my-rank-name { font-size: 12.5px; font-weight: 800; }
.my-rank-next { color: #94A3B8; font-size: 10.5px; }
.my-rank-xp { color: #38BDF8; font-size: 13px; font-weight: 900; }

.batch-select {
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  color: #0F172A;
  outline: none;
}

/* Top 3 Podium */
.podium-container {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 8px;
  align-items: flex-end;
  margin-bottom: 16px;
}

.podium-card {
  border-radius: 18px;
  padding: 14px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.podium-card-gold {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  border: 2px solid #F59E0B;
  padding: 20px 8px;
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.25);
}

.podium-medal {
  font-size: 24px;
  line-height: 1;
}
.podium-medal-gold {
  font-size: 32px;
  filter: drop-shadow(0 2px 6px rgba(245, 158, 11, 0.4));
}

.podium-name {
  font-size: 12.5px;
  font-weight: 800;
  color: #0F172A;
  margin-top: 6px;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.podium-card-gold .podium-name {
  color: #78350F;
  font-size: 13.5px;
}

.podium-xp {
  font-size: 11.5px;
  font-weight: 900;
  color: #2563EB;
  margin-top: 2px;
}
.podium-card-gold .podium-xp {
  color: #B45309;
}

/* Rank Items List */
.rank-list-item {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  margin-bottom: 8px;
}

.rank-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rank-index {
  font-size: 13px;
  font-weight: 800;
  color: #64748B;
  width: 24px;
}

.rank-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #EFF6FF;
  border: 1.5px solid #BFDBFE;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #2563EB;
  font-size: 14px;
}

.rank-name-box {
  display: flex;
  flex-direction: column;
}

.rank-student-name {
  font-size: 13px;
  font-weight: 800;
  color: #0F172A;
  display: flex;
  align-items: center;
  gap: 4px;
}

.rank-batch-tag {
  font-size: 10.5px;
  color: #64748B;
  font-weight: 600;
}

.rank-xp-pill {
  font-size: 12.5px;
  font-weight: 900;
  color: #2563EB;
  background: #EFF6FF;
  padding: 4px 10px;
  border-radius: 20px;
}

/* Sticky Bottom My-Rank Bar */
.my-rank-sticky-bar {
  position: sticky;
  bottom: 0;
  margin-top: 10px;
  background: #0F172A;
  color: #FFFFFF;
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.15);
  z-index: 10;
}

.my-rank-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.my-rank-num {
  background: #2563EB;
  color: white;
  padding: 2px 8px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 12px;
}

/* Paper Leaderboard Expandable Table */
.paper-board-card {
  background: #FFFFFF;
  border-radius: 18px;
  border: 1px solid #E2E8F0;
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.02);
}

.paper-board-header {
  width: 100%;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: #FFFFFF;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
}
.paper-board-card.is-latest { border-color: rgba(99, 102, 241, .55); box-shadow: 0 4px 16px rgba(99, 102, 241, .08); }
.paper-board-heading-content { display: flex; flex: 1; min-width: 0; flex-wrap: wrap; align-items: center; gap: 6px; }
.paper-board-tag, .paper-latest-tag { padding: 3px 8px; border-radius: 8px; font-size: 10px; font-weight: 800; }
.paper-board-tag { background: #EEF2FF; color: #6366F1; }
.paper-latest-tag { background: linear-gradient(135deg, #6366F1, #8B5CF6); color: #FFFFFF; font-size: 9px; letter-spacing: .04em; }
.paper-board-date { color: #64748B; font-size: 10px; }
.paper-board-title { flex-basis: 100%; color: #0F172A; font-size: 15px; }
.paper-expand-icon { flex: 0 0 auto; color: #2563EB; }

.paper-board-stats {
  display: flex;
  flex-basis: 100%;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11px;
  color: #64748B;
  margin-top: 2px;
}
.paper-my-result { color: #B45309; font-weight: 800; }
.paper-winner-snippet { flex-basis: 100%; padding: 7px 9px; border-radius: 9px; background: #F8FAFC; color: #475569; font-size: 11px; }
.paper-results-content { padding: 14px 12px; border-top: 1px solid #E2E8F0; background: #F8FAFC; }
.paper-results-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 16px; }
.paper-results-podium-item { display: flex; min-width: 0; flex-direction: column; align-items: center; gap: 5px; padding: 10px 5px; border: 1px solid #E2E8F0; border-radius: 12px; background: #FFFFFF; text-align: center; }
.paper-results-podium-item.first { border: 2px solid #F59E0B; background: #FEF3C7; }
.paper-results-podium-item .material-symbols-rounded { color: #94A3B8; }
.paper-results-podium-item.first .material-symbols-rounded { color: #B45309; }
.paper-results-podium-item strong { max-width: 100%; overflow: hidden; color: #0F172A; font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.paper-results-podium-item span:last-child { color: #64748B; font-size: 9.5px; }
.paper-results-list-heading { display: flex; justify-content: space-between; margin: 2px 2px 8px; color: #6366F1; font-size: 12px; font-weight: 800; }
.paper-results-list-heading span { color: #64748B; font-size: 10.5px; font-weight: 500; }
.paper-result-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto; align-items: center; gap: 6px; padding: 9px 7px; border-bottom: 1px solid #E2E8F0; background: #FFFFFF; font-size: 11px; }
.paper-result-row.is-current-user { border-radius: 8px; background: #ECFDF5; }
.paper-result-rank { color: #64748B; font-weight: 800; }
.paper-result-name { min-width: 0; overflow: hidden; color: #1E293B; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.paper-result-name b { margin-left: 4px; color: #047857; }
.paper-result-marks { color: #2563EB; white-space: nowrap; }
.paper-results-empty { padding: 18px 8px; color: #64748B; text-align: center; font-size: 12px; }
.paper-batch-filter { margin: 4px 16px 12px; }
.paper-batch-banner { margin-top: 4px; }
.paper-results-list { display: flex; flex-direction: column; gap: 8px; }
.admin-paper-results-list { margin-top: 12px; }
.admin-sprint-rank-list { display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.admin-sprint-rank-row {
  display: flex; align-items: center; gap: 10px; padding: 12px;
  border: 1px solid #E2E8F0; border-radius: 14px; background: #FFFFFF;
}
.admin-sprint-rank-row.is-top-rank { border-color: rgba(99, 102, 241, .28); background: #F5F3FF; }
.admin-sprint-medal { width: 24px; color: #64748B; font-size: 20px; text-align: center; }
.admin-sprint-rank-row.is-top-rank .admin-sprint-medal { color: #6366F1; }
.admin-sprint-avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #EEF2FF; color: #4F46E5; font-weight: 800; }
.admin-sprint-student { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 3px; }
.admin-sprint-student strong { overflow: hidden; color: #0F172A; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.admin-sprint-student small, .admin-sprint-score small { color: #64748B; font-size: 10px; }
.admin-sprint-score { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; white-space: nowrap; }
.admin-sprint-score strong { color: #2563EB; font-size: 14px; }
.admin-upcoming-papers-list { display: flex; flex-direction: column; gap: 12px; padding: 12px 16px 90px; }
.admin-upcoming-paper-card { padding: 16px; border: 1px solid #E2E8F0; }
.admin-upcoming-paper-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-upcoming-paper-tags span { padding: 3px 8px; border-radius: 8px; background: #EEF2FF; color: #4F46E5; font-size: 10px; font-weight: 800; }
.admin-upcoming-paper-card h3 { margin-top: 8px; color: #0F172A; font-size: 15px; }
.admin-upcoming-paper-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 6px; color: #64748B; font-size: 11px; }
.admin-upcoming-paper-meta .material-symbols-rounded { font-size: 14px; }
.admin-upcoming-paper-card > p, .admin-upcoming-instructions { margin-top: 8px; color: #475569; font-size: 12px; line-height: 1.45; }
.admin-upcoming-topics { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.admin-upcoming-topics span { padding: 4px 8px; border-radius: 7px; background: #F1F5F9; color: #334155; font-size: 10px; }
.admin-paper-hints { margin-top: 12px; padding: 11px; border: 1px solid #FDE68A; border-radius: 10px; background: #FFFBEB; }
.admin-paper-hints strong { display: flex; align-items: center; gap: 6px; color: #B45309; font-size: 11.5px; }
.admin-paper-hints p { margin-top: 4px; color: #78350F; font-size: 11px; line-height: 1.45; }
.sprint-create-sheet { width: 100%; max-width: 430px; height: min(88dvh, 820px); display: flex; flex-direction: column; overflow: hidden; border-radius: 22px 22px 0 0; background: #F6FAFF; }
.sprint-create-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; border-bottom: 1px solid #E2E8F0; background: #FFFFFF; }
.sprint-create-header h2 { color: #0F172A; font: 700 17px 'Outfit', sans-serif; }
.sprint-create-header p { margin-top: 3px; color: #64748B; font-size: 11px; }
.sprint-create-scroll { min-height: 0; flex: 1; overflow-y: auto; padding: 14px 16px; }
.sprint-create-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.sprint-create-sheet label { display: flex; min-width: 0; flex-direction: column; gap: 5px; color: #475569; font-size: 11px; font-weight: 700; }
.sprint-create-sheet input, .sprint-create-sheet select, .sprint-create-sheet textarea { width: 100%; min-width: 0; padding: 10px; border: 1px solid #CBD5E1; border-radius: 9px; background: #FFFFFF; color: #0F172A; font: 400 12px 'Outfit', sans-serif; }
.sprint-question-card { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; padding: 12px; border: 1px solid #E2E8F0; border-radius: 14px; background: #FFFFFF; }
.sprint-question-card h3 { color: #2563EB; font-size: 13px; }
.sprint-question-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sprint-create-error { margin: 8px 0; padding: 9px; border-radius: 8px; background: #FEE2E2; color: #B91C1C; font-size: 12px; }
.sprint-create-footer { padding: 12px 16px calc(12px + var(--safe-bottom)); border-top: 1px solid #E2E8F0; background: #FFFFFF; }
.sprint-create-footer .apk-btn-primary { width: 100%; min-height: 48px; background: #227AFF; }
@media (min-width: 480px) { .sprint-create-sheet { border-radius: 22px; } }

.paper-scores-table {
  border-top: 1px solid #E2E8F0;
  background: #F8FAFC;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.grade-badge {
  font-size: 10.5px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 6px;
}
.grade-A { background: #DCFCE7; color: #15803D; }
.grade-B { background: #DBEAFE; color: #1D4ED8; }
.grade-C { background: #FEF3C7; color: #B45309; }
.grade-S { background: #F1F5F9; color: #475569; }
.grade-F { background: #FEE2E2; color: #B91C1C; }

/* ── Desserts (Homework) Tab Styles ── */
.topic-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.topic-chip {
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.topic-chip.active {
  background: #2563EB;
  border-color: #2563EB;
  color: #FFFFFF;
}

.capture-buttons-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 10px 0;
}

.capture-btn {
  background: #FFFFFF;
  border: 1.5px dashed #2563EB;
  color: #2563EB;
  padding: 12px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 12.5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.capture-btn:hover {
  background: #EFF6FF;
}

/* Multi-Page Photo Thumbnails Carousel */
.photos-preview-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 6px 2px;
  scrollbar-width: none;
}
.photos-preview-strip::-webkit-scrollbar { display: none; }

.photo-thumb-card {
  position: relative;
  width: 82px;
  height: 105px;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid #CBD5E1;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.photo-thumb-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-page-num {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: rgba(15, 23, 42, 0.8);
  color: white;
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
}

.photo-delete-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #EF4444;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.telegram-guide-card {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
  color: white;
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.history-filter-chips {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.history-filter-chip {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: #64748B;
  cursor: pointer;
}

.history-filter-chip.active {
  background: #2563EB;
  border-color: #2563EB;
  color: #FFFFFF;
}

/* ── Profile Screen & Trophy Room ── */
.profile-avatar-stack {
  position: relative;
  width: 105px;
  height: 105px;
  margin: 0 auto 12px;
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #2563EB;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
  background: #EFF6FF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  font-weight: 800;
  color: #2563EB;
}

.profile-cam-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #2563EB;
  border: 2px solid #FFFFFF;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.stats-trio-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.02);
  margin-top: 14px;
}

.stat-divider {
  height: 36px;
  background: #E2E8F0;
}

.stat-number {
  font-size: 18px;
  font-weight: 900;
  color: #0F172A;
}

.stat-label {
  font-size: 11px;
  color: #64748B;
  font-weight: 600;
  margin-top: 2px;
}

/* Badges Grid (Trophy Room) */
.badges-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.badge-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s ease;
}

.badge-card.unlocked {
  border-color: #2563EB;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.12);
}

.badge-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.badge-emoji {
  font-size: 26px;
}

.badge-status-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
}
.badge-unlocked-tag { background: #DCFCE7; color: #16A34A; }
.badge-locked-tag { background: #F1F5F9; color: #94A3B8; }

.badge-title {
  font-size: 13px;
  font-weight: 800;
  color: #0F172A;
}

.badge-desc {
  font-size: 10.5px;
  color: #64748B;
  line-height: 1.35;
}

.badge-progress-bg {
  width: 100%;
  height: 5px;
  background: #F1F5F9;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 4px;
}

.badge-progress-fill {
  height: 100%;
  border-radius: 999px;
}

/* ── MCQ Sprint Runner ── */
.sprint-stepper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.sprint-step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F1F5F9;
  border: 2px solid #CBD5E1;
  color: #64748B;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sprint-step-dot.active {
  background: #EA580C;
  border-color: #EA580C;
  color: white;
  box-shadow: 0 4px 10px rgba(234, 88, 12, 0.3);
}

.sprint-step-dot.done {
  background: #10B981;
  border-color: #10B981;
  color: white;
}

.stopwatch-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: #FFF7ED;
  border: 1px solid #FFEDD5;
  border-radius: 20px;
  color: #EA580C;
  font-weight: 800;
  font-size: 12px;
  font-family: 'Fira Code', monospace;
}

.mcq-choice-btn {
  width: 100%;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 12px 14px;
  text-align: left;
  font-size: 13.5px;
  font-weight: 600;
  color: #1E293B;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  transition: all 0.15s ease;
}

.mcq-choice-btn.selected {
  background: #EFF6FF;
  border-color: #2563EB;
  color: #1D4ED8;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
}

.mcq-choice-index {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #F1F5F9;
  color: #475569;
  font-weight: 800;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mcq-choice-btn.selected .mcq-choice-index {
  background: #2563EB;
  color: white;
}

/* ── Cyber Midnight Dark Mode Theme ── */
[data-theme="dark"] body {
  background-color: #070B14 !important;
  color: #F1F5F9 !important;
}

[data-theme="dark"] .mobile-device-shell {
  background: #0B0F19 !important;
  border-color: #1F2937 !important;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8) !important;
}

[data-theme="dark"] .mobile-screen {
  background: #0B0F19 !important;
}

[data-theme="dark"] .hero-card,
[data-theme="dark"] .paper-session-card,
[data-theme="dark"] .leaderboard-card,
[data-theme="dark"] .quests-card,
[data-theme="dark"] .insight-vault-card,
[data-theme="dark"] .ai-inquiries-card,
[data-theme="dark"] .modal-sheet,
[data-theme="dark"] .podium-card {
  background: #111827 !important;
  border-color: #1F2937 !important;
  color: #F1F5F9 !important;
}

[data-theme="dark"] .appbar-title,
[data-theme="dark"] .paper-title,
[data-theme="dark"] .form-label,
[data-theme="dark"] .podium-name,
[data-theme="dark"] .inquiries-top-title {
  color: #F8FAFC !important;
}

[data-theme="dark"] .appbar-subtitle,
[data-theme="dark"] .meta-chip,
[data-theme="dark"] .vault-exam-tip-box,
[data-theme="dark"] .inquiries-desc {
  color: #94A3B8 !important;
}

[data-theme="dark"] .bottom-nav-bar {
  background: rgba(15, 23, 42, 0.95) !important;
  border-top-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .nav-tab-btn {
  color: #64748B !important;
  outline: none !important;
}

[data-theme="dark"] .nav-tab-btn.active {
  color: #60A5FA !important;
}

[data-theme="dark"] .nav-tab-btn.active .nav-pill-icon {
  background: rgba(37, 99, 235, 0.22) !important;
  color: #60A5FA !important;
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.3) !important;
}

[data-theme="dark"] .nav-tab-btn.active span {
  color: #60A5FA !important;
}

[data-theme="dark"] .slot-selection-box {
  background: #1F2937 !important;
  border-color: #374151 !important;
}

[data-theme="dark"] .slot-selection-box.selected {
  background: #1E3A8A !important;
  border-color: #3B82F6 !important;
}

[data-theme="dark"] .hero-card div,
[data-theme="dark"] .hero-card span,
[data-theme="dark"] .hero-card strong,
[data-theme="dark"] .appbar-title,
[data-theme="dark"] .appbar-subtitle {
  color: #F8FAFC !important;
}

[data-theme="dark"] .hero-card div[style*="color:#64748B"],
[data-theme="dark"] .hero-card span[style*="color:#64748B"],
[data-theme="dark"] .hero-card div[style*="color:#334155"] {
  color: #94A3B8 !important;
}

[data-theme="dark"] .hero-card div[style*="color:#2563EB"],
[data-theme="dark"] .hero-card span[style*="color:#2563EB"] {
  color: #60A5FA !important;
}

[data-theme="dark"] .hero-card div[style*="color:#0F172A"],
[data-theme="dark"] .hero-card span[style*="color:#0F172A"] {
  color: #FFFFFF !important;
}

/* ══════════════════════════════════════════════════════════════════
   ADMIN CONSOLE & FACULTY COCKPIT (1:1 with admin_shell.dart)
   ══════════════════════════════════════════════════════════════════ */

#admin-main-viewport {
  padding: calc(12px + var(--safe-top)) 16px 85px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#admin-main-viewport > * {
  flex-shrink: 0;
}

.admin-executive-header {
  background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 100%);
  color: #FFFFFF;
  padding: 16px 14px;
  border-radius: 18px;
  margin-bottom: 12px;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.4);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-badge-faculty {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(99, 102, 241, 0.25);
  border: 1px solid rgba(129, 140, 248, 0.5);
  color: #C7D2FE;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-switch-to-student {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.btn-switch-to-student:hover {
  background: rgba(255, 255, 255, 0.25);
}

.admin-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.admin-metric-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.admin-metric-card .metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-metric-card .metric-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.admin-metric-card .metric-val {
  font-size: 22px;
  font-weight: 900;
  color: #0F172A;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.admin-metric-card .metric-lbl {
  font-size: 11px;
  font-weight: 700;
  color: #64748B;
}

.admin-tab-nav {
  display: flex;
  background: #F1F5F9;
  border-radius: 14px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 14px;
}

.admin-tab-btn {
  flex: 1;
  padding: 8px 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #64748B;
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.admin-tab-btn.active {
  background: #FFFFFF;
  color: #0F172A;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.admin-submission-item {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.admin-sub-row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-sub-student {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-sub-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #EFF6FF;
  color: #2563EB;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #BFDBFE;
}

.admin-btn-grade {
  background: #2563EB;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.admin-btn-grade:hover {
  background: #1D4ED8;
}

.admin-student-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.admin-verify-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
  border: none;
}
.admin-verify-badge.verified {
  background: #DCFCE7;
  color: #15803D;
}
.admin-verify-badge.unverified {
  background: #FEF3C7;
  color: #B45309;
}

/* ── Auth Screen Styles (1:1 login_screen.dart replica) ── */
.auth-screen-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #0B1120;
  color: #F8FAFC;
  padding: 24px 20px;
  box-sizing: border-box;
}

.auth-header {
  text-align: center;
  margin-top: 24px;
  margin-bottom: 24px;
}

.auth-brand-logo-wrap {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3px solid rgba(37, 99, 235, 0.35);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  margin-bottom: 12px;
  box-sizing: border-box;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-brand-logo-wrap:hover {
  transform: scale(1.04);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.35);
}

.auth-brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.auth-brand-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(37, 99, 235, 0.15);
  color: #38BDF8;
  font-size: 11.5px;
  font-weight: 700;
  margin-top: 6px;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

/* ── 1:1 Opening Loading Screen (splash_screen.dart) ─────────────────────── */
.splash-screen-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background-color: #FFFFFF;
  transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.55s ease-in;
  will-change: transform, opacity;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

[data-theme="dark"] .splash-screen-overlay,
html[data-theme="dark"] .splash-screen-overlay {
  background-color: #0F172A;
}

.splash-screen-overlay.swap-up-exit {
  transform: translateY(-100%);
  opacity: 0.92;
  pointer-events: none;
}

.splash-center-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.splash-logo-wrap {
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: splashLogoEntrance 0.85s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.splash-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(37, 99, 235, 0.22));
}

@keyframes splashLogoEntrance {
  0% {
    opacity: 0;
    transform: scale(0.78) translateY(22px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.splash-badge-wrap {
  margin-top: 24px;
  animation: splashBadgeEntrance 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.35s both;
}

@keyframes splashBadgeEntrance {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.splash-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .splash-badge,
html[data-theme="dark"] .splash-badge {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.10);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.splash-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2563EB;
  box-shadow: 0 0 8px #2563EB;
}

.splash-badge-text {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  letter-spacing: 0.3px;
}

[data-theme="dark"] .splash-badge-text,
html[data-theme="dark"] .splash-badge-text {
  color: #CBD5E1;
}

.splash-bottom-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 38px;
  animation: splashLoaderEntrance 0.6s ease-in 0.55s both;
}

@keyframes splashLoaderEntrance {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.splash-progress-track {
  width: 124px;
  height: 3.5px;
  border-radius: 999px;
  background: #F1F5F9;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .splash-progress-track,
html[data-theme="dark"] .splash-progress-track {
  background: rgba(255, 255, 255, 0.08);
}

.splash-progress-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 45px;
  background: linear-gradient(90deg, transparent, #2563EB 50%, #60A5FA 75%, transparent);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.8);
  border-radius: 999px;
  animation: splashSweep 1.4s infinite ease-in-out;
}

@keyframes splashSweep {
  0% {
    left: -45px;
  }
  100% {
    left: 100%;
  }
}

.splash-loading-text {
  font-size: 11px;
  font-weight: 600;
  color: #94A3B8;
  letter-spacing: 0.5px;
  margin-top: 12px;
}

[data-theme="dark"] .splash-loading-text,
html[data-theme="dark"] .splash-loading-text {
  color: #64748B;
}

.auth-title {
  font-size: 22px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.auth-subtitle {
  font-size: 13px;
  color: #94A3B8;
}

.auth-tabs-bar {
  display: flex;
  background: #1E293B;
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 20px;
  border: 1px solid #334155;
}

.auth-tab-btn {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #94A3B8;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.auth-tab-btn.active {
  background: #6366F1;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.auth-form-card {
  background: #1E293B;
  border: 1px solid #334155;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-field-label {
  font-size: 12px;
  font-weight: 700;
  color: #CBD5E1;
}

.auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-phone-prefix {
  position: absolute;
  left: 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: #818CF8;
}

.auth-input {
  width: 100%;
  background: #0F172A;
  border: 1.5px solid #334155;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  color: #F8FAFC;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s;
}

.auth-input.has-prefix {
  padding-left: 54px;
}

.auth-input:focus {
  border-color: #6366F1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.auth-pw-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: #94A3B8;
  font-size: 16px;
}

.auth-btn-submit {
  background: #6366F1;
  color: #FFFFFF;
  border: none;
  border-radius: 14px;
  padding: 14px;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
  margin-top: 6px;
}

.auth-btn-submit:hover {
  background: #4F46E5;
}

/* Keep the web auth flow aligned with Flutter LoginScreen and AppColors. */
.auth-screen-container {
  width: 100%;
  height: 100%;
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  padding: calc(20px + env(safe-area-inset-top, 0px)) 24px calc(32px + env(safe-area-inset-bottom, 0px));
  background: #F6FAFF;
  color: #0F172A;
  font-family: 'Outfit', sans-serif;
}
.auth-scroll-content { min-height: 0; }
.auth-screen-container.is-registering {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding-bottom: 0;
}
.auth-screen-container.is-registering .auth-scroll-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 16px;
}
.auth-sticky-action {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  padding: 12px 24px calc(16px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(0deg, #F6FAFF 78%, rgba(246, 250, 255, .94));
}
.auth-sticky-action .auth-btn-submit { width: 100%; margin: 0; }
.auth-header { margin: 16px 0 28px; }
.auth-brand-logo-wrap {
  width: 90px; height: 90px; margin-bottom: 14px;
  border: 3px solid rgba(34, 122, 255, .3);
  box-shadow: 0 8px 20px rgba(34, 122, 255, .18);
}
.auth-title {
  margin-bottom: 4px; color: #0F172A; font-size: 26px;
  font-weight: 900; letter-spacing: -.5px;
}
.auth-brand-tag {
  margin-top: 4px; padding: 4px 12px; border: 0;
  background: rgba(34, 122, 255, .1); color: #227AFF;
  font-family: 'Outfit', sans-serif; font-size: 12px; font-weight: 700;
}
.auth-tabs-bar {
  margin-bottom: 24px; padding: 4px; border: 1px solid #E2E8F0;
  border-radius: 16px; background: #EFF5FF;
}
.auth-tab-btn {
  padding: 12px; border-radius: 12px; color: #64748B;
  font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 500;
}
.auth-tab-btn.active {
  background: #FFFFFF; color: #227AFF; box-shadow: 0 2px 8px rgba(15, 23, 42, .06);
}
.auth-form-card {
  padding: 20px; border: 1px solid #E2E8F0; border-radius: 20px;
  background: #FFFFFF; box-shadow: 0 4px 16px rgba(15, 23, 42, .04);
}
.auth-form-card form { gap: 0 !important; }
.auth-form-heading h2 { color: #0F172A; font: 700 18px 'Outfit', sans-serif; }
.auth-form-heading p { margin-top: 4px; color: #64748B; font: 400 13px/1.45 'Outfit', sans-serif; }
.auth-form-heading { margin-bottom: 20px; }
.auth-field-group { gap: 6px; }
.auth-field-group + .auth-field-group { margin-top: 16px; }
.auth-field-label { color: #64748B; font: 400 14px 'Outfit', sans-serif; }
.auth-phone-row { display: flex; align-items: center; gap: 10px; }
.auth-phone-country {
  min-height: 56px; display: flex; align-items: center; gap: 4px;
  padding: 0 14px; border: 1px solid #E2E8F0; border-radius: 12px;
  background: #EFF5FF; color: #0F172A; font: 700 15px 'Outfit', sans-serif;
}
.auth-country-flag { display: block; width: 24px; height: 16px; flex: 0 0 auto; border-radius: 2px; }
.auth-phone-input-wrap { flex: 1; min-width: 0; }
.auth-input-wrapper { position: relative; }
.auth-input-prefix {
  position: absolute;
  z-index: 1;
  left: 14px;
  width: 20px;
  height: 20px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  font-size: 20px;
  pointer-events: none;
}
.auth-input {
  min-height: 56px; padding: 14px 16px; border: 1px solid #E2E8F0;
  border-radius: 12px; background: #FFFFFF; color: #0F172A;
  font: 500 14px 'Outfit', sans-serif;
}
.auth-input::placeholder { color: #64748B; opacity: 1; }
.auth-input.has-prefix { padding-left: 44px; }
.auth-input.has-suffix { padding-right: 48px; }
.auth-input:focus { border-color: #227AFF; box-shadow: 0 0 0 1px #227AFF; }
.auth-pw-toggle {
  position: absolute;
  right: 12px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #64748B;
}
.auth-btn-submit {
  min-height: 52px; margin-top: 20px; padding: 15px 24px;
  border-radius: 14px; background: #227AFF; box-shadow: none;
  font: 700 15px 'Outfit', sans-serif;
}
.auth-btn-submit:hover { background: #1565D8; }
.auth-helper-text { color: #64748B; font: 400 12px 'Outfit', sans-serif; }
.auth-error-msg, #auth-error-msg { font-family: 'Outfit', sans-serif; }
.auth-secure-note {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 32px; color: #64748B; font: 400 12px 'Outfit', sans-serif;
}
.auth-secure-note .material-symbols-rounded { font-size: 14px; }
@media (min-width: 480px) {
  .auth-screen-container {
    height: 100%;
    min-height: 0;
    max-height: 100%;
    padding-top: 20px;
    padding-bottom: 32px;
  }
  .auth-screen-container.is-registering { padding-bottom: 0; }
}

.auth-quick-demo-section {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-quick-btn {
  background: rgba(30, 41, 59, 0.7);
  border: 1px dashed #475569;
  border-radius: 12px;
  padding: 12px;
  color: #CBD5E1;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s;
}

.auth-quick-btn:hover {
  background: #1E293B;
  border-color: #818CF8;
  color: #FFFFFF;
}

/* ── Flutter Alert Dialog Replica ── */
.app-dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.app-dialog-box {
  background: #1E293B;
  border: 1px solid #334155;
  border-radius: 18px;
  padding: 22px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  color: #F8FAFC;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.app-dialog-title {
  font-size: 17px;
  font-weight: 800;
  color: #FFFFFF;
}

.app-dialog-content {
  font-size: 13.5px;
  color: #CBD5E1;
  line-height: 1.5;
}

.app-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

.app-dialog-btn-cancel {
  background: transparent;
  color: #94A3B8;
  border: none;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
}

.app-dialog-btn-danger {
  background: #EF4444;
  color: #FFFFFF;
  border: none;
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 10px;
  cursor: pointer;
}

/* ── Flutter Bottom Sheet Replica (Scope & Hints Modal) ── */
.flutter-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(3px);
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.flutter-sheet-container {
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  background: #0F172A;
  border-radius: 28px 28px 0 0;
  border-top: 1px solid #334155;
  display: flex;
  flex-direction: column;
  color: #F8FAFC;
  overflow: hidden;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
  animation: slideUpSheet 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpSheet {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.flutter-sheet-handle {
  width: 44px;
  height: 4px;
  background: #334155;
  border-radius: 2px;
  margin: 12px auto 8px auto;
}

.flutter-sheet-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Upcoming Paper Card Styling (1:1 Mobile Parity) ── */
.upcoming-paper-card {
  background: #FFFFFF;
  border-radius: 20px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  margin-bottom: 20px;
}

.upcoming-paper-header-banner {
  background: #F8FAFC;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #E2E8F0;
}

.upcoming-countdown-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.4);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #15803D;
}

.upcoming-topics-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.upcoming-topic-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #0F172A;
  color: #FFFFFF;
  border: 1px solid #334155;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
}

.upcoming-hints-highlight-box {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.upcoming-hints-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: #B45309;
}

.upcoming-hints-text {
  font-size: 12.5px;
  color: #78350F;
  line-height: 1.45;
}

/* ── Live Paper Session Status Boxes ── */
.phase-status-banner-box {
  padding: 14px 16px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.phase-status-banner-box.submitted {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.5);
}
.phase-status-banner-box.pkg-opening {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
}
.phase-status-banner-box.writing {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.4);
}
.phase-status-banner-box.time-up {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.4);
}
.phase-status-banner-box.waiting {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.35);
}
.phase-status-banner-box.ended {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
}

/* ═════════════════════════════════════════════════════════════════════════
   ── EXACT 1:1 ANDROID APK ADMIN REPLICA STYLES (Flutter Admin Parity) ──
   ═════════════════════════════════════════════════════════════════════════ */

.apk-admin-screen-container {
  padding-bottom: 90px;
  background: #F8FAFC;
  min-height: 100%;
}

/* ── 1. Executive Top Header (admin_home_screen.dart) ── */
.apk-admin-exec-card {
  margin: 12px 16px;
  padding: 18px;
  background: #FFFFFF;
  border-radius: 22px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.apk-admin-exec-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.apk-admin-portal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 20px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: #2563EB;
  font-size: 11.5px;
  font-weight: 700;
  font-family: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 0 1 auto;
  min-width: 0;
}

.apk-admin-portal-badge span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.apk-pulsing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
  animation: apkPulse 2s infinite;
  flex-shrink: 0;
}

@keyframes apkPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.apk-admin-exec-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.apk-btn-student-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 11px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
  line-height: 1.2;
  outline: none !important;
  box-sizing: border-box;
}
.apk-btn-student-view:hover {
  background: #F1F5F9;
  color: #0F172A;
}
.apk-btn-student-view:active {
  transform: scale(0.95);
}

.apk-btn-logout-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  color: #64748B;
  cursor: pointer;
  font-size: 14px;
  flex-shrink: 0;
  transition: all 0.2s ease;
  outline: none !important;
  box-sizing: border-box;
}
.apk-btn-logout-icon:hover {
  background: #FEE2E2;
  color: #EF4444;
  border-color: #FECACA;
}
.apk-btn-logout-icon:active {
  transform: scale(0.92);
}

.apk-admin-greeting-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.apk-admin-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.12);
  color: #2563EB;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
}

.apk-admin-greeting-text h2 {
  font-size: 18px;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
  letter-spacing: -0.3px;
}

.apk-admin-greeting-text p {
  font-size: 12.5px;
  color: #64748B;
  margin: 2px 0 0;
}

/* ── 2. Real-Time Overview Metrics Row (3 Cards) ── */
.apk-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 16px;
  margin-bottom: 16px;
}

.apk-metric-card {
  padding: 14px;
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid #E2E8F0;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.apk-metric-card.active-pending {
  background: rgba(245, 158, 11, 0.08);
  border: 1.5px solid rgba(245, 158, 11, 0.5);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.12);
}
.apk-metric-card.active-approved {
  background: rgba(16, 185, 129, 0.08);
  border: 1.5px solid rgba(16, 185, 129, 0.5);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.12);
}
.apk-metric-card.active-rejected {
  background: rgba(239, 68, 68, 0.08);
  border: 1.5px solid rgba(239, 68, 68, 0.5);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.12);
}

.apk-metric-icon-circle {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-bottom: 8px;
}

.apk-metric-num {
  font-size: 22px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.1;
}

.apk-metric-lbl {
  font-size: 12px;
  font-weight: 500;
  color: #64748B;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── 3. Admin Command Center (2x2 Grid) ── */
.apk-command-center-box {
  margin: 0 16px 16px;
  padding: 16px;
  background: #FFFFFF;
  border-radius: 18px;
  border: 1px solid #E2E8F0;
}

.apk-command-center-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 12px;
}

.apk-command-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.apk-command-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #FFFFFF;
  border-radius: 14px;
  border: 1px solid #E2E8F0;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}
.apk-command-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.apk-command-btn.purple { background: rgba(139, 92, 246, 0.06); border-color: rgba(139, 92, 246, 0.25); }
.apk-command-btn.blue { background: rgba(37, 99, 235, 0.06); border-color: rgba(37, 99, 235, 0.25); }
.apk-command-btn.amber { background: rgba(245, 158, 11, 0.06); border-color: rgba(245, 158, 11, 0.25); }
.apk-command-btn.cyan { background: rgba(6, 182, 212, 0.06); border-color: rgba(6, 182, 212, 0.25); }

.apk-command-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.apk-command-info .title {
  font-size: 12.5px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.2;
}

.apk-command-info .subtitle {
  font-size: 11px;
  color: #64748B;
  margin-top: 2px;
}

/* ── 4. Dessert Submissions Queue Section ── */
.apk-queue-section {
  padding: 0 16px 24px;
}

.apk-queue-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.apk-queue-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
  color: #0F172A;
}

.apk-queue-badge {
  padding: 3px 8px;
  border-radius: 12px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #2563EB;
  font-size: 11px;
  font-weight: 600;
}

/* Segmented Tab Switcher */
.apk-segmented-tabs {
  display: flex;
  background: #F1F5F9;
  border-radius: 14px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 12px;
}

.apk-segmented-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 6px;
  border: none;
  background: transparent;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: #64748B;
  cursor: pointer;
  transition: all 0.2s ease;
}

.apk-segmented-tab-btn.active {
  background: #FFFFFF;
  color: #0F172A;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.apk-segmented-pill-badge {
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 800;
}
.apk-segmented-pill-badge.orange { background: #F59E0B; color: #FFFFFF; }
.apk-segmented-pill-badge.green { background: #10B981; color: #FFFFFF; }
.apk-segmented-pill-badge.red { background: #EF4444; color: #FFFFFF; }
.apk-segmented-pill-badge.grey { background: #CBD5E1; color: #475569; }

/* Quick Search Bar */
.apk-search-bar {
  position: relative;
  margin-bottom: 14px;
}

.apk-search-bar input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px 10px 38px;
  border-radius: 12px;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  font-size: 12.5px;
  font-family: inherit;
  color: #0F172A;
  outline: none;
  transition: border-color 0.2s;
}
.apk-search-bar input:focus {
  border-color: #2563EB;
}

.apk-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #94A3B8;
  pointer-events: none;
}

/* Empty State Card */
.apk-empty-card {
  padding: 36px 20px;
  background: #FFFFFF;
  border-radius: 20px;
  border: 1px solid #E2E8F0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.apk-empty-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #DBEAFE;
  color: #2563EB;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 4px;
}

.apk-empty-title {
  font-size: 16px;
  font-weight: 800;
  color: #0F172A;
}

.apk-empty-subtitle {
  font-size: 12.5px;
  color: #64748B;
  max-width: 260px;
  line-height: 1.4;
  margin-bottom: 8px;
}

.apk-btn-primary {
  padding: 10px 20px;
  border-radius: 12px;
  background: #2563EB;
  color: #FFFFFF;
  border: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transition: all 0.2s ease;
}
.apk-btn-primary:hover {
  background: #1D4ED8;
  transform: translateY(-1px);
}

/* ── Floating Action Button (FAB) & Contained Slot ── */
#admin-fab-slot {
  position: absolute;
  bottom: calc(84px + var(--safe-bottom, 0px));
  right: 16px;
  z-index: 60;
  pointer-events: none;
}
#admin-fab-slot > * {
  pointer-events: auto;
}

.apk-fab-button {
  position: absolute;
  bottom: calc(84px + var(--safe-bottom, 0px));
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 30px;
  background: #2563EB;
  color: #FFFFFF;
  border: none;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
  z-index: 60;
  transition: all 0.2s ease;
  white-space: nowrap;
}
#admin-fab-slot .apk-fab-button {
  position: static;
  bottom: auto;
  right: auto;
}
.apk-fab-button:hover {
  background: #1D4ED8;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.5);
}
.apk-fab-button:active {
  transform: translateY(0);
}

/* ── Screen AppBars ── */
.apk-screen-appbar {
  padding: 12px 16px;
  background: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.apk-appbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.apk-appbar-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #2563EB;
}

.apk-appbar-title {
  font-size: 15px;
  font-weight: 700;
  color: #0F172A;
}

.apk-appbar-subtitle {
  font-size: 11px;
  color: #64748B;
  margin-top: 1px;
}

.apk-appbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.apk-icon-action-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: #2563EB;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.2s;
}
.apk-icon-action-btn:hover {
  background: #EFF6FF;
}

/* ── Sprints TabBar Underline ── */
.apk-tabbar-underline {
  display: flex;
  background: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
}

.apk-tabbar-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 8px;
  background: transparent;
  border: none;
  font-size: 13px;
  font-weight: 600;
  color: #64748B;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.apk-tabbar-tab.active {
  color: #2563EB;
  font-weight: 700;
}

.apk-tabbar-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 2.5px;
  background: #2563EB;
  border-radius: 2px 2px 0 0;
}

/* ── Filter Chips Horizontal ── */
.apk-chips-scroll-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0;
  scrollbar-width: none;
}
.apk-chips-scroll-row::-webkit-scrollbar {
  display: none;
}

.apk-filter-chip {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: #475569;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  white-space: nowrap;
  flex-shrink: 0 !important;
  min-width: max-content !important;
  cursor: pointer;
  transition: all 0.2s ease;
}

.apk-filter-chip.active {
  background: rgba(37, 99, 235, 0.14);
  border-color: #2563EB;
  color: #2563EB;
  font-weight: 700;
}

/* ── Universal Responsive Button Fit Engine ── */
button,
.apk-btn-primary,
.btn-primary,
.apk-btn-student-view,
.apk-btn-logout-icon,
.apk-command-btn,
.apk-icon-action-btn,
.apk-segmented-tab-btn,
.apk-tabbar-tab,
.apk-filter-chip,
.sub-tab-btn,
.nav-tab-btn,
.auth-tab-btn,
.auth-quick-btn {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  outline: none !important;
  user-select: none;
  -webkit-user-select: none;
}

button:focus,
button:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* Flexible action rows that never blow out their containers */
.paper-actions-row,
.apk-appbar-actions,
.apk-actions-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

/* Prevent flex child blowouts */
.apk-command-btn,
.apk-segmented-tab-btn,
.sub-tab-btn {
  min-width: 0;
}

