:root {
  --bg-1: #f8efe4;
  --bg-2: #ffd9b6;
  --shell: #161b2d;
  --shell-2: #101526;
  --screen-top: #fff8f0;
  --screen-bottom: #f8ebdd;
  --card: rgba(255, 255, 255, 0.8);
  --card-strong: rgba(255, 255, 255, 0.94);
  --card-muted: rgba(255, 255, 255, 0.72);
  --ink: #1a2135;
  --muted: #6b7387;
  --line: rgba(26, 33, 53, 0.1);
  --accent: #f46d4b;
  --accent-soft: rgba(244, 109, 75, 0.12);
  --accent-2: #ffb86d;
  --navy: #304b8f;
  --navy-soft: rgba(48, 75, 143, 0.08);
  --mint: #dff2e8;
  --shadow: 0 24px 80px rgba(19, 26, 42, 0.24);
  --shadow-soft: 0 18px 42px rgba(22, 28, 45, 0.08);
  --radius-xl: 36px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

body[data-theme="ocean"] {
  --accent: #2689df;
  --accent-soft: rgba(38, 137, 223, 0.12);
  --accent-2: #58d1ff;
  --navy: #25507d;
  --navy-soft: rgba(37, 80, 125, 0.08);
  --mint: #d7eff5;
}

body[data-night="true"] {
  --bg-1: #0e1421;
  --bg-2: #182236;
  --shell: #0a0f18;
  --shell-2: #151d2b;
  --screen-top: #111927;
  --screen-bottom: #182233;
  --card: rgba(20, 29, 44, 0.82);
  --card-strong: rgba(21, 30, 46, 0.95);
  --card-muted: rgba(17, 24, 38, 0.92);
  --ink: #eff4ff;
  --muted: #a7b3c7;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --shadow-soft: 0 18px 42px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Trebuchet MS", "Gill Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 18%, rgba(244, 109, 75, 0.24), transparent 22rem),
    radial-gradient(circle at 85% 20%, rgba(255, 184, 109, 0.26), transparent 22rem),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
}

button,
input,
select {
  font: inherit;
}

.ambient {
  position: fixed;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  filter: blur(22px);
  opacity: 0.4;
  pointer-events: none;
}

.ambient-left {
  top: -5rem;
  left: -4rem;
  background: rgba(255, 160, 132, 0.5);
}

.ambient-right {
  right: -5rem;
  bottom: 4rem;
  background: rgba(88, 176, 161, 0.24);
}

.device-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.phone-shell {
  width: min(100%, 430px);
  height: min(96vh, 920px);
  background: linear-gradient(180deg, var(--shell), var(--shell-2));
  border-radius: 42px;
  padding: 0.9rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.phone-shell::before {
  content: "";
  position: absolute;
  inset: 0.7rem;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.phone-notch {
  position: absolute;
  top: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
  width: 8rem;
  height: 1.5rem;
  border-radius: 999px;
  background: #0b1020;
  z-index: 3;
}

.phone-screen {
  height: calc(100% - 5rem);
  margin-top: 2.3rem;
  background:
    radial-gradient(circle at top right, rgba(255, 183, 104, 0.24), transparent 12rem),
    linear-gradient(180deg, var(--screen-top) 0%, var(--screen-bottom) 100%);
  border-radius: 30px 30px 22px 22px;
  overflow-y: auto;
  padding: 1rem 1rem 1.1rem;
}

.phone-screen::-webkit-scrollbar {
  width: 0;
}

.hidden {
  display: none;
}

.top-bar,
.section-heading,
.hero-topline,
.level-topline,
.mini-row,
.quiz-nav,
.quest-topline,
.setting-row,
.action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.top-bar {
  margin-bottom: 0.95rem;
}

.top-copy {
  display: grid;
  gap: 0.15rem;
}

.top-bar h1 {
  margin: 0;
  font-family: "Avenir Next Condensed", "Gill Sans", sans-serif;
  font-size: 1.85rem;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.screen-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.micro-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.icon-button,
.secondary-button,
.primary-button,
.tab-link,
.roadmap-node,
.step-node,
.answer-button,
.theme-button,
.setting-toggle {
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border 180ms ease;
}

.icon-button:hover,
.secondary-button:hover,
.primary-button:hover,
.tab-link:hover,
.roadmap-node:hover,
.step-node:hover,
.answer-button:hover,
.theme-button:hover,
.setting-toggle:hover {
  transform: translateY(-1px);
}

.icon-button {
  border: 0;
  background: var(--card-strong);
  color: var(--navy);
  border-radius: 999px;
  padding: 0.72rem 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(28, 38, 60, 0.08);
}

.status-banner {
  margin-bottom: 0.85rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  background: var(--navy-soft);
  color: var(--navy);
  font-size: 0.9rem;
  line-height: 1.45;
}

.app-screen {
  display: none;
  animation: screen-fade 220ms ease;
}

.app-screen.active {
  display: block;
}

@keyframes screen-fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.screen-grid,
.home-grid,
.placement-grid,
.learn-grid,
.progress-grid,
.profile-grid {
  display: grid;
  gap: 0.95rem;
}

.module-card,
.hero-card,
.focus-card,
.quiz-card,
.quiz-summary,
.locked-card,
.step-roadmap-card,
.step-detail-card,
.progress-chip,
.quest-card,
.summary-card,
.quote-card,
.setting-card,
.stat-bubble {
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: var(--radius-lg);
  background: var(--card);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
}

.hero-card {
  padding: 1.15rem;
  margin-bottom: 0.95rem;
  background: linear-gradient(135deg, rgba(244, 109, 75, 0.94), rgba(255, 184, 109, 0.9));
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -2rem;
  bottom: -2rem;
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.hero-card h2,
.hero-card p,
.hero-card .micro-label,
.hero-card .pill,
.hero-card .stat-bubble strong,
.hero-card .stat-bubble span {
  color: white;
}

.hero-card h2 {
  margin: 0.25rem 0 0.5rem;
  font-size: 1.55rem;
  line-height: 1.04;
}

.hero-card p {
  margin: 0;
  line-height: 1.45;
}

.module-card,
.focus-card,
.quiz-card,
.quiz-summary,
.locked-card,
.step-roadmap-card,
.step-detail-card,
.quote-card,
.setting-card {
  padding: 1rem;
}

.section-heading h2 {
  margin: 0.15rem 0 0;
  font-family: "Avenir Next Condensed", "Gill Sans", sans-serif;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
}

.pill,
.mode-pill,
.status-badge,
.skill-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  font-size: 0.77rem;
  font-weight: 800;
  line-height: 1;
}

.pill {
  background: rgba(255, 255, 255, 0.2);
}

.mode-pill {
  background: var(--navy-soft);
  color: var(--navy);
}

.hero-metrics,
.field-row,
.quiz-meta,
.focus-stack,
.assessment-grid,
.summary-grid,
.stats-grid,
.profile-info,
.progress-hud {
  display: grid;
  gap: 0.8rem;
}

.hero-metrics,
.summary-grid,
.stats-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.progress-hud {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0.95rem;
}

.stat-bubble,
.summary-card,
.progress-chip,
.quest-card {
  padding: 0.92rem;
  background: var(--card-strong);
  border: 1px solid var(--line);
}

.summary-card,
.progress-chip {
  display: grid;
  gap: 0.2rem;
}

.summary-card strong,
.progress-chip strong {
  font-size: 1.18rem;
  line-height: 1.02;
}

.summary-card span,
.progress-chip span,
.stat-bubble span {
  font-size: 0.8rem;
  color: var(--muted);
}

.summary-card p,
.stat-bubble p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.42;
}

.progress-chip.accent {
  background: linear-gradient(135deg, rgba(244, 109, 75, 0.12), rgba(255, 184, 109, 0.18));
}

.progress-chip.navy {
  background: linear-gradient(135deg, rgba(48, 75, 143, 0.08), rgba(140, 178, 255, 0.14));
}

.progress-chip.mint {
  background: linear-gradient(135deg, rgba(62, 194, 134, 0.12), rgba(223, 242, 232, 0.92));
}

.progress-chip.sun {
  background: linear-gradient(135deg, rgba(255, 184, 109, 0.16), rgba(255, 255, 255, 0.92));
}

.chip-row,
.skill-row,
.theme-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.focus-panel,
.quote-card,
.profile-card {
  display: grid;
  gap: 0.8rem;
}

.focus-panel h3,
.quote-card h3,
.profile-card h3,
.step-roadmap-card h3,
.quiz-summary h3,
.step-detail-card h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.15;
}

.focus-panel p,
.quote-card p,
.profile-copy,
.caption,
.focus-copy,
.lesson-copy,
.assessment-copy,
.quiz-copy,
.quest-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.92rem;
}

.quote-text {
  font-size: 1.08rem;
  color: var(--ink);
  line-height: 1.45;
}

.quote-source {
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.action-panel {
  display: grid;
  gap: 0.75rem;
}

.action-row {
  flex-wrap: wrap;
}

.app-form {
  margin-top: 0.95rem;
  display: grid;
  gap: 0.8rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field span {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--muted);
}

.field-row {
  grid-template-columns: 1fr 1fr;
}

.field input,
.field select {
  width: 100%;
  min-height: 3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.9rem;
  background: rgba(255, 255, 255, 0.95);
  color: #1a2135;
}

body[data-night="true"] .field input,
body[data-night="true"] .field select {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.primary-button,
.secondary-button,
.setting-toggle,
.theme-button {
  min-height: 3rem;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.primary-button {
  border: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  box-shadow: 0 16px 28px rgba(244, 109, 75, 0.22);
  padding: 0.82rem 1rem;
}

.secondary-button,
.setting-toggle {
  border: 0;
  background: var(--card-strong);
  color: var(--navy);
  padding: 0.72rem 0.95rem;
  box-shadow: 0 10px 22px rgba(26, 33, 53, 0.08);
}

.secondary-button:disabled,
.primary-button:disabled,
.setting-toggle:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.theme-button {
  border: 1px solid var(--line);
  background: var(--card-strong);
  color: var(--ink);
  padding: 0.72rem 1rem;
}

.theme-button.active {
  border-color: rgba(48, 75, 143, 0.22);
  box-shadow: 0 0 0 3px rgba(48, 75, 143, 0.12);
}

.quiz-summary {
  display: grid;
  gap: 0.9rem;
}

.quiz-progress-track,
.quest-progress-track,
.bar-track {
  width: 100%;
  height: 0.48rem;
  border-radius: 999px;
  background: var(--navy-soft);
  overflow: hidden;
}

.quiz-progress-bar,
.quest-progress-bar,
.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.quiz-prompt {
  margin: 0.2rem 0 0;
  font-size: 1.14rem;
  line-height: 1.35;
}

.answer-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.95rem;
}

.answer-topline {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.answer-key {
  width: 1.9rem;
  height: 1.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--navy-soft);
  color: var(--navy);
  font-weight: 800;
  flex-shrink: 0;
}

.answer-button {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  color: #1a2135;
  border-radius: var(--radius-sm);
  padding: 0.95rem 1rem;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(26, 33, 53, 0.05);
}

body[data-night="true"] .answer-button {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.answer-button.selected {
  background: linear-gradient(135deg, rgba(244, 109, 75, 0.12), rgba(255, 184, 109, 0.2));
  border-color: rgba(244, 109, 75, 0.35);
}

.quiz-bottom {
  margin-top: 1rem;
  display: grid;
  gap: 0.9rem;
}

.quiz-rule,
.quiz-state,
.lock-message,
.callout-card {
  padding: 0.82rem 0.92rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  line-height: 1.45;
}

.quiz-rule,
.lock-message,
.callout-card {
  background: var(--navy-soft);
  color: var(--navy);
}

.quiz-state {
  font-weight: 700;
}

.quiz-state.correct {
  background: rgba(62, 194, 134, 0.16);
  color: #16784f;
}

.quiz-state.wrong {
  background: rgba(244, 109, 75, 0.12);
  color: #b24d34;
}

.quest-panel {
  margin-top: 0.95rem;
  display: grid;
  gap: 0.75rem;
}

.quest-card {
  display: grid;
  gap: 0.65rem;
}

.quest-title {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 800;
}

.levels-list {
  margin-top: 0.95rem;
  position: relative;
  display: grid;
  gap: 0.65rem;
  padding: 0.4rem 0 0.6rem;
}

.levels-list::before {
  content: "";
  position: absolute;
  top: 0.9rem;
  bottom: 1.25rem;
  left: 2.2rem;
  width: 0.34rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 184, 109, 0.7), rgba(48, 75, 143, 0.22));
  opacity: 0.8;
}

.roadmap-node,
.step-node {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0;
  cursor: pointer;
}

.roadmap-node {
  width: calc(100% - var(--offset));
  margin-left: var(--offset);
}

.step-node {
  width: calc(100% - var(--step-offset));
  margin-left: var(--step-offset);
}

.roadmap-node:disabled,
.step-node:disabled {
  cursor: not-allowed;
}

.level-orb,
.step-orb {
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: white;
  flex-shrink: 0;
  background: linear-gradient(180deg, #ffb86d, #f46d4b);
}

.level-orb {
  width: 4.4rem;
  height: 4.4rem;
  font-size: 1.22rem;
  border-bottom: 0.4rem solid rgba(179, 82, 45, 0.45);
  box-shadow: 0 16px 26px rgba(244, 109, 75, 0.24);
}

.step-orb {
  width: 3.55rem;
  height: 3.55rem;
  font-size: 1rem;
  border-bottom: 0.34rem solid rgba(179, 82, 45, 0.45);
  box-shadow: 0 12px 20px rgba(244, 109, 75, 0.22);
}

.roadmap-copy,
.step-copy {
  flex: 1;
  display: grid;
  gap: 0.16rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  box-shadow: 0 10px 22px rgba(24, 33, 53, 0.05);
}

.roadmap-copy {
  padding: 0.82rem 0.92rem;
}

.step-copy {
  padding: 0.72rem 0.82rem;
}

body[data-night="true"] .roadmap-copy,
body[data-night="true"] .step-copy {
  background: rgba(255, 255, 255, 0.04);
}

.roadmap-node.current .level-orb,
.step-node.current .step-orb {
  background: linear-gradient(180deg, #63d8b2, #2aaf92);
  border-bottom-color: rgba(16, 103, 89, 0.5);
}

.roadmap-node.ready .level-orb,
.step-node.ready .step-orb {
  background: linear-gradient(180deg, #8cb2ff, #4c78dd);
  border-bottom-color: rgba(33, 68, 151, 0.5);
}

.roadmap-node.completed .level-orb,
.step-node.completed .step-orb {
  background: linear-gradient(180deg, #69d8a7, #28b974);
  border-bottom-color: rgba(23, 105, 68, 0.5);
}

.roadmap-node.locked .level-orb,
.step-node.locked .step-orb {
  background: linear-gradient(180deg, #d8dce7, #bcc2d1);
  border-bottom-color: rgba(134, 143, 163, 0.4);
  box-shadow: none;
}

.roadmap-node.locked .roadmap-copy,
.step-node.locked .step-copy {
  background: rgba(243, 239, 232, 0.94);
}

body[data-night="true"] .roadmap-node.locked .roadmap-copy,
body[data-night="true"] .step-node.locked .step-copy {
  background: rgba(255, 255, 255, 0.04);
}

.roadmap-node.selected .roadmap-copy,
.step-node.selected .step-copy {
  box-shadow: 0 0 0 3px rgba(48, 75, 143, 0.12), 0 10px 22px rgba(24, 33, 53, 0.08);
}

.start-flag,
.step-flag {
  position: absolute;
  border-radius: 999px;
  background: white;
  color: #2aaf92;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 8px 16px rgba(24, 33, 53, 0.08);
}

.start-flag {
  left: 0.55rem;
  top: -0.9rem;
  padding: 0.36rem 0.7rem;
  font-size: 0.72rem;
}

.step-flag {
  left: 0.4rem;
  top: -0.72rem;
  padding: 0.3rem 0.62rem;
  font-size: 0.68rem;
}

.level-code {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.level-title,
.step-title {
  margin: 0.35rem 0 0.15rem;
  font-weight: 800;
  line-height: 1.08;
  color: var(--ink);
}

.level-title {
  font-size: 1.04rem;
}

.step-title {
  font-size: 0.98rem;
}

.level-text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
}

.status-badge {
  background: var(--navy-soft);
  color: var(--navy);
}

.lock-badge {
  background: rgba(26, 33, 53, 0.08);
  color: var(--muted);
}

.focus-stack,
.assessment-grid {
  margin-top: 0.95rem;
}

.step-roadmap {
  position: relative;
  display: grid;
  gap: 0.7rem;
  margin-top: 0.9rem;
  padding: 0.25rem 0 0.45rem;
}

.step-roadmap::before {
  content: "";
  position: absolute;
  top: 0.85rem;
  bottom: 0.8rem;
  left: 1.8rem;
  width: 0.28rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 184, 109, 0.7), rgba(48, 75, 143, 0.2));
}

.skill-chip {
  background: var(--navy-soft);
  color: var(--navy);
}

.mini-list {
  margin: 0.6rem 0 0;
  padding-left: 1.05rem;
  color: var(--muted);
}

.mini-list li {
  margin-bottom: 0.35rem;
  line-height: 1.45;
}

.hint-box {
  margin-top: 0.65rem;
  padding: 0.68rem 0.78rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 183, 104, 0.15);
  color: #8a5427;
  font-size: 0.86rem;
  line-height: 1.4;
}

.insight-list,
.profile-list {
  display: grid;
  gap: 0.7rem;
}

.insight-item,
.profile-item {
  padding: 0.85rem 0.95rem;
  border-radius: var(--radius-md);
  background: var(--card-muted);
  border: 1px solid var(--line);
}

.insight-item strong,
.profile-item strong {
  display: block;
  margin-bottom: 0.18rem;
  font-size: 0.92rem;
}

.insight-item p,
.profile-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.42;
  font-size: 0.88rem;
}

.theme-row {
  margin-top: 0.85rem;
}

.setting-row {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}

.setting-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.setting-copy {
  display: grid;
  gap: 0.16rem;
}

.setting-copy strong {
  font-size: 0.94rem;
}

.setting-copy span {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.42;
}

.setting-toggle.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
}

.tab-bar {
  min-height: 4rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.55rem;
  align-items: center;
  padding: 0 0.65rem 0.7rem;
}

.tab-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  border: 0;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  padding: 0.4rem 0.3rem;
}

.tab-link.active {
  background: linear-gradient(135deg, rgba(244, 109, 75, 0.98), rgba(255, 184, 109, 0.94));
  color: white;
  box-shadow: 0 12px 24px rgba(244, 109, 75, 0.22);
}

body[data-edit-mode="true"] .editable-callout {
  display: block;
}

.editable-callout {
  display: none;
}

@media (max-width: 480px) {
  .device-wrap {
    padding: 0;
  }

  .phone-shell {
    width: 100%;
    height: 100vh;
    border-radius: 0;
    padding: 0;
  }

  .phone-shell::before,
  .phone-notch {
    display: none;
  }

  .phone-screen {
    height: calc(100% - 4.5rem);
    margin-top: 0;
    border-radius: 0;
    padding-top: 1.1rem;
  }
}

@media (max-width: 420px) {
  .field-row,
  .hero-metrics,
  .assessment-grid,
  .summary-grid,
  .stats-grid,
  .progress-hud {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .quiz-nav,
  .setting-row,
  .action-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .secondary-button,
  .primary-button,
  .setting-toggle,
  .theme-button {
    width: 100%;
  }

  .tab-link {
    font-size: 0.7rem;
  }
}

@media (min-width: 920px) {
  .phone-shell {
    width: min(100%, 1160px);
    height: min(94vh, 940px);
    padding: 1.1rem;
  }

  .phone-screen {
    padding: 1.25rem 1.25rem 1.2rem;
  }

  .home-grid,
  .placement-grid,
  .learn-grid,
  .progress-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .progress-hud {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .tab-bar {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding-inline: 1rem;
  }
}
