@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg-page: #f8fafc;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --primary: #4f46e5;
  --primary-soft: #eef2ff;
  --sky: #0ea5e9;
  --emerald: #10b981;
  --rose: #e11d48;
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-page);
  color: var(--ink);
  margin: 0;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.grade-pill {
  transition: all 0.16s ease;
  white-space: nowrap;
}
.grade-pill:hover { transform: translateY(-1px); }

.card-hover {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(15, 23, 42, 0.12);
  border-color: #94a3b8;
}

.option-btn {
  transition: all 0.14s ease;
  text-align: left;
}
.option-btn:hover:not(:disabled) {
  border-color: #6366f1;
  background: #f5f7ff;
}

/* Kid-friendly Primary 1-5 interactive cards */
.kid-card {
  background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
  border: 2px solid #bae6fd;
  border-radius: 1.5rem;
  box-shadow: 0 12px 28px -10px rgba(14, 165, 233, 0.18);
}

.kid-option {
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  border-width: 2px;
  border-radius: 1.15rem;
  text-align: left;
}
.kid-option:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px -6px rgba(15, 23, 42, 0.14);
}
.kid-option:active:not(:disabled) {
  transform: scale(0.98);
}

.kid-pop {
  animation: kidPop 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes kidPop {
  0% { opacity: 0; transform: scale(0.94); }
  100% { opacity: 1; transform: scale(1); }
}

.passage-box {
  white-space: pre-line;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 4px solid #4f46e5;
  border-radius: 0.75rem;
  padding: 1.15rem 1.25rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: #1e293b;
}

.toast-enter {
  animation: slideUp 0.22s ease-out;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

body {
  padding-bottom: 2.75rem;
}

.question-text {
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: pre-line;
  width: 100%;
}

.option-btn, .kid-option {
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: normal;
  min-width: 0;
}

.passage-highlight {
  font-weight: 800;
  color: #1e1b4b;
  background-color: #fef3c7;
  text-decoration: underline;
  text-decoration-color: #4f46e5;
  text-underline-offset: 3px;
  padding: 0 3px;
  border-radius: 4px;
}

.hero-bright-banner {
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 45%, #22d3ee 100%);
  position: relative;
  overflow: hidden;
}
.hero-bright-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.32) 0%, rgba(255,255,255,0) 62%),
              radial-gradient(circle at 12% 85%, rgba(186,230,253,0.28) 0%, transparent 45%),
              radial-gradient(circle at 88% 85%, rgba(165,243,252,0.28) 0%, transparent 45%);
  pointer-events: none;
}
.avatar-glow {
  box-shadow: 0 0 0 4px rgba(255,255,255,0.85), 0 10px 24px -4px rgba(2, 132, 199, 0.45);
}

.reading-sticky-pane {
  position: sticky;
  top: 0.25rem;
  z-index: 30;
  max-height: 48vh;
  overflow-y: auto;
}
.reading-unpinned-pane {
  position: static;
  max-height: none;
  overflow-y: visible;
}
@media (min-width: 1024px) {
  .reading-split-locked {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.85rem;
    align-items: stretch;
    height: calc(100vh - 4.75rem);
    min-height: 560px;
  }
  /* Tăng rộng diện tích bài đọc (8/12 cột ≈ 67%), thu gọn cột đáp án (4/12 cột ≈ 33%) */
  .reading-split-locked .reading-left-col {
    grid-column: span 8 / span 8;
    height: 100%;
    overflow-y: auto;
    padding-right: 0.25rem;
  }
  .reading-split-locked .reading-right-col {
    grid-column: span 4 / span 4;
    height: 100%;
    overflow-y: auto;
    padding-right: 0.2rem;
  }
  .reading-sticky-pane {
    position: sticky;
    top: 0;
    max-height: calc(100vh - 5.5rem);
  }
}
@keyframes qRevealIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.q-reveal-card {
  animation: qRevealIn 0.22s ease-out;
}

/* Enhanced comfortable font size for all exercises, passages & instructions */
html {
  font-size: 16.5px;
}
@media (min-width: 640px) {
  html {
    font-size: 17px;
  }
}
.question-text {
  font-size: 1.06rem !important;
  line-height: 1.65 !important;
}
.option-btn {
  font-size: 0.98rem !important;
  line-height: 1.55 !important;
}
.kid-option {
  font-size: 1.06rem !important;
  line-height: 1.55 !important;
}
.passage-box {
  font-size: 1.05rem !important;
  line-height: 1.8 !important;
}

/* Mobile horizontal overflow guard */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}
#app {
  max-width: 100%;
  overflow-x: clip;
}
select, input, textarea {
  max-width: 100%;
}
.passage-box {
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}
.audio-player-bar {
  max-width: 100%;
  overflow: hidden;
}
.audio-controls-wrap {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.audio-control-group {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  max-width: 100%;
  min-width: 0;
}
.audio-control-group select {
  min-width: 0;
  max-width: 100%;
}
@media (max-width: 640px) {
  .audio-player-bar {
    padding: 0.85rem !important;
  }
  .audio-control-group {
    width: 100%;
    justify-content: space-between;
  }
  .audio-control-group select {
    flex: 1 1 auto;
    width: 100%;
  }
}

/* Kid Learn & Play Gamification */
.kid-stage-card {
  background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 55%, #fefce8 100%);
  border: 3px solid #7dd3fc;
  border-radius: 1.75rem;
  box-shadow: 0 14px 30px -10px rgba(14, 165, 233, 0.25), 0 4px 0 0 #bae6fd;
}
.kid-3d-opt {
  border-width: 2px;
  border-bottom-width: 5px;
  border-radius: 1.25rem;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: normal;
  min-width: 0;
}
.kid-3d-opt:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.03);
}
.kid-3d-opt:active:not(:disabled) {
  transform: translateY(2px);
  border-bottom-width: 2px;
}
.kid-float {
  animation: kidFloat 2.6s ease-in-out infinite;
}
@keyframes kidFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}
.kid-shake {
  animation: kidShake 0.35s ease-in-out;
}
@keyframes kidShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-4px); }
}
.kid-confetti-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}
.kid-confetti-piece {
  position: absolute;
  top: -12px;
  width: 10px;
  height: 14px;
  border-radius: 3px;
  animation: kidConfettiFall 1.8s ease-out forwards;
}
@keyframes kidConfettiFall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(95vh) rotate(540deg); opacity: 0; }
}

/* 3D Glossy & Glass-Mirror Modern UI System */
body {
  background: radial-gradient(circle at 12% 8%, #e0f2fe 0%, transparent 38%),
              radial-gradient(circle at 88% 12%, #ede9fe 0%, transparent 36%),
              radial-gradient(circle at 50% 95%, #f0fdfa 0%, transparent 45%),
              #f4f7fb;
  background-attachment: fixed;
}

/* 3D Glossy Specular Buttons (Global) */
#app button:not(:disabled) {
  position: relative;
  overflow: hidden;
  transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.18s ease,
              filter 0.16s ease,
              border-color 0.16s ease;
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.52),
              inset 0 -2.5px 0 rgba(15, 23, 42, 0.14),
              0 5px 12px -4px rgba(15, 23, 42, 0.22);
}
#app button:not(:disabled)::before {
  content: "";
  position: absolute;
  inset: 0 0 48% 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.04) 100%);
  pointer-events: none;
  border-radius: inherit;
}
#app button:not(:disabled):hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.68),
              inset 0 -3px 0 rgba(15, 23, 42, 0.16),
              0 10px 20px -6px rgba(15, 23, 42, 0.28);
}
#app button:not(:disabled):active {
  transform: translateY(1px) scale(0.99);
  box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.16),
              0 2px 6px -2px rgba(15, 23, 42, 0.18);
}

/* 3D Glossy Grade Pills & Section Tabs */
.grade-pill {
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.6),
              inset 0 -3px 0 rgba(15, 23, 42, 0.16),
              0 6px 14px -5px rgba(15, 23, 42, 0.25) !important;
}

/* Glass-Mirror 3D Cards & Panels */
.card-hover,
.kid-card,
.kid-stage-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 250, 252, 0.88) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.95),
              inset 0 -2px 0 rgba(148, 163, 184, 0.18),
              0 14px 30px -12px rgba(15, 23, 42, 0.16);
}
.kid-stage-card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.96) 0%, rgba(224, 242, 254, 0.86) 55%, rgba(254, 249, 195, 0.86) 100%) !important;
  border: 2px solid rgba(125, 211, 252, 0.85) !important;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.96),
              inset 0 -4px 0 rgba(14, 165, 233, 0.22),
              0 18px 34px -12px rgba(14, 165, 233, 0.28) !important;
}

/* 3D Glossy Kahoot / Primary Answer Cards */
.kid-3d-opt {
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.58),
              inset 0 -4px 0 rgba(15, 23, 42, 0.22),
              0 8px 18px -6px rgba(15, 23, 42, 0.28) !important;
}
.kid-3d-opt::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -20%;
  width: 65%;
  height: 180%;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.28) 50%, rgba(255, 255, 255, 0) 80%);
  transform: rotate(12deg);
  pointer-events: none;
}

/* 3D Crystal / Mirror Icon Medallions */
.kid-icon-orb {
  position: relative;
  background: radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.96) 0%, rgba(224, 242, 254, 0.92) 48%, rgba(186, 230, 253, 0.88) 100%) !important;
  border: 2px solid rgba(255, 255, 255, 0.95) !important;
  box-shadow: inset 0 3px 6px rgba(255, 255, 255, 0.95),
              inset 0 -4px 8px rgba(14, 165, 233, 0.26),
              0 10px 20px -6px rgba(2, 132, 199, 0.35) !important;
  text-shadow: 0 4px 8px rgba(15, 23, 42, 0.22);
}
.kid-icon-orb::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 10px;
  width: 44%;
  height: 26%;
  border-radius: 9999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

/* Glossy Mirror Audio Player Bar */
.audio-player-bar {
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 60%, #1e1b4b 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.22),
              0 14px 28px -10px rgba(15, 23, 42, 0.45);
}

/* Glossy Mirror Hero Banner */
.hero-bright-banner {
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.55),
              0 16px 32px -12px rgba(2, 132, 199, 0.42);
}
.avatar-glow {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.92),
              inset 0 2px 6px rgba(255, 255, 255, 0.85),
              0 14px 28px -6px rgba(2, 132, 199, 0.52) !important;
}

/* Glossy Mirror Passage Box */
.passage-box {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.92) 100%);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.95),
              0 8px 20px -10px rgba(15, 23, 42, 0.14);
}

/* Grades 6-12 Refreshing Light-Blue/Green Exercise Theme & Bold Correct Highlight */
.secondary-quiz-surface {
  background: linear-gradient(160deg, #e0f2fe 0%, #ecfeff 48%, #ecfdf5 100%);
  border: 1.5px solid #bae6fd;
  border-radius: 1.25rem;
  padding: 0.9rem;
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.9),
              0 10px 24px -12px rgba(2, 132, 199, 0.22);
}
@media (min-width: 640px) {
  .secondary-quiz-surface {
    padding: 1.25rem;
  }
}
.secondary-q-card {
  background: linear-gradient(165deg, rgba(240, 249, 255, 0.96) 0%, rgba(236, 254, 255, 0.92) 55%, rgba(236, 253, 245, 0.92) 100%);
  border: 1.5px solid #bae6fd;
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.95),
              0 8px 18px -10px rgba(14, 165, 233, 0.2);
}
.secondary-q-card-correct {
  background: linear-gradient(165deg, #ecfdf5 0%, #d1fae5 100%) !important;
  border: 2px solid #059669 !important;
}
.secondary-q-card-wrong {
  background: linear-gradient(165deg, #fff1f2 0%, #ffe4e6 100%) !important;
  border: 2px solid #f43f5e !important;
}
.opt-selected-vivid {
  background: linear-gradient(180deg, #16a34a 0%, #15803d 100%) !important;
  border-color: #166534 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.45),
              inset 0 -3px 0 rgba(20, 83, 45, 0.55),
              0 7px 16px -4px rgba(22, 163, 74, 0.58) !important;
}
.opt-correct-vivid {
  background: linear-gradient(180deg, #047857 0%, #065f46 100%) !important;
  border-color: #064e3b !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.42),
              inset 0 -3px 0 rgba(6, 78, 59, 0.6),
              0 7px 16px -4px rgba(4, 120, 87, 0.58) !important;
}
.opt-wrong-vivid {
  background: linear-gradient(180deg, #dc2626 0%, #b91c1c 100%) !important;
  border-color: #991b1b !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.35),
              inset 0 -3px 0 rgba(127, 29, 29, 0.55),
              0 6px 14px -4px rgba(220, 38, 38, 0.48) !important;
}
.essay-correct-vivid {
  background: linear-gradient(180deg, #059669 0%, #047857 100%) !important;
  border-color: #065f46 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
}

/* Comprehensive Mobile-Fit Exercise Layout (Grades 1-12) */
@media (max-width: 640px) {
  html {
    font-size: 15px !important;
  }
  main, section, article, header, footer,
  #app > div,
  .secondary-quiz-surface,
  .secondary-q-card,
  .kid-stage-card,
  .kid-card,
  .passage-box,
  .audio-player-bar {
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  #app main,
  #app .max-w-6xl,
  #app .max-w-5xl,
  #app .max-w-4xl {
    padding-left: 0.6rem !important;
    padding-right: 0.6rem !important;
  }
  .secondary-quiz-surface {
    padding: 0.6rem !important;
    border-radius: 1rem !important;
  }
  .secondary-q-card,
  .secondary-q-card-correct,
  .secondary-q-card-wrong,
  [id^="q-card-"] {
    padding: 0.8rem !important;
    border-radius: 0.95rem !important;
  }
  .kid-stage-card,
  .kid-card {
    padding: 0.85rem !important;
    border-radius: 1.25rem !important;
  }
  .question-text {
    font-size: 0.96rem !important;
    line-height: 1.55 !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }
  .option-btn {
    font-size: 0.92rem !important;
    line-height: 1.45 !important;
    padding: 0.65rem 0.75rem !important;
    width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }
  .kid-3d-opt,
  .kid-option {
    font-size: 0.95rem !important;
    line-height: 1.45 !important;
    padding: 0.75rem 0.8rem !important;
    width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }
  .passage-box {
    font-size: 0.94rem !important;
    line-height: 1.65 !important;
    padding: 0.85rem 0.9rem !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }
  .reading-sticky-pane {
    max-height: 46vh !important;
  }
  #app button[data-action="select-level"],
  #app button[data-action="select-set"],
  #app button[data-action="select-subtab"],
  #app button[data-action="export-word"] {
    white-space: normal !important;
    text-align: center !important;
    line-height: 1.3 !important;
    max-width: 100% !important;
    padding: 0.45rem 0.65rem !important;
    font-size: 0.78rem !important;
  }
  #app input[data-essay-qid],
  #kid-essay-input {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 0.96rem !important;
    padding: 0.65rem 0.8rem !important;
  }
  .kid-icon-orb {
    width: 3.25rem !important;
    height: 3.25rem !important;
    font-size: 2rem !important;
  }
  #app .grid {
    min-width: 0 !important;
  }
  #app .grid > * {
    min-width: 0 !important;
    max-width: 100% !important;
  }
  #app .flex > * {
    min-width: 0 !important;
  }
}

/* Edge-to-Edge Full-Screen Mobile Experience (All Screens) */
@media (max-width: 768px) {
  html, body {
    width: 100% !important;
    min-height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    overflow-x: clip !important;
    background-attachment: scroll !important;
  }
  #app {
    width: 100% !important;
    min-height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  /* Full-bleed edge-to-edge containers across Home, Unit, Practice, Exam, Grad12, Admin, Login */
  #app .max-w-7xl,
  #app .max-w-6xl,
  #app .max-w-5xl,
  #app .max-w-4xl,
  #app .max-w-3xl,
  #app .max-w-2xl,
  #app .max-w-xl,
  #app .max-w-lg,
  #app .max-w-md,
  #app main,
  #app header {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  #app main {
    padding-left: 0.35rem !important;
    padding-right: 0.35rem !important;
    padding-top: 0.5rem !important;
    padding-bottom: calc(3.25rem + env(safe-area-inset-bottom, 0px)) !important;
  }
  /* Full-bleed Hero Banner & Top Navigation */
  .hero-bright-banner {
    border-radius: 0 !important;
    padding-top: calc(0.85rem + env(safe-area-inset-top, 0px)) !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
  /* Full-screen Login View on phones */
  #app > .min-h-screen {
    min-height: 100dvh !important;
    padding: 0 !important;
    align-items: stretch !important;
  }
  #app > .min-h-screen > div {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100dvh !important;
    border-radius: 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  /* Full-width Edge-to-Edge Exercise & Quiz Surfaces */
  .secondary-quiz-surface,
  .kid-stage-card {
    width: 100% !important;
    border-radius: 0.85rem !important;
    padding: 0.45rem !important;
  }
  .secondary-q-card,
  .secondary-q-card-correct,
  .secondary-q-card-wrong,
  [id^="q-card-"],
  .kid-card {
    width: 100% !important;
    padding: 0.7rem 0.65rem !important;
    border-radius: 0.85rem !important;
  }
  .passage-box {
    width: 100% !important;
    padding: 0.75rem 0.75rem !important;
    border-radius: 0.75rem !important;
  }
  /* Full-width Admin & Theory tables scroll smoothly inside edge-to-edge frame */
  #app .overflow-x-auto {
    width: 100% !important;
    max-width: 100% !important;
    -webkit-overflow-scrolling: touch;
  }
  /* Toast sits cleanly above mobile safe area */
  #toast-host {
    left: 0.5rem !important;
    right: 0.5rem !important;
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px)) !important;
    align-items: stretch !important;
  }
}

/* Responsive Full-Fit Login Screen across all viewports (Phones, Tablets, Desktops) */
.auth-screen-main {
  min-height: 100dvh !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding-top: max(0.6rem, env(safe-area-inset-top, 0px)) !important;
  padding-bottom: max(0.6rem, env(safe-area-inset-bottom, 0px)) !important;
}
.auth-screen-card {
  max-width: 28rem !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
@media (max-height: 700px) {
  .auth-screen-card .hero-bright-banner {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
  }
  .auth-screen-card .hero-bright-banner img {
    width: 3.25rem !important;
    height: 3.25rem !important;
  }
}

/* === EXERCISE FOCUS MODE: HIDE ALL BANNERS COMPLETELY === */
body.exercise-focus-mode header,
body.exercise-focus-mode .hero-bright-banner,
body.exercise-focus-mode footer {
  display: none !important;
}
body.exercise-focus-mode main {
  padding-top: max(6px, env(safe-area-inset-top)) !important;
}
