/*
 * PassCoach look (shell b3.0). Loaded after styles.css and only changes how things look and move.
 * The idea: an exercise book and a rubber stamp, not a glossy template. Flat subject colour,
 * ruled lines, solid edges you can press, one gold for rewards. No colour-blend gradients.
 * The light theme for the older parts is generated in the second half of this file.
 * Everything keys off html[data-look='b3'].
 */
:root[data-look='b3'] {
  --subject: #2563eb;
  --subject-deep: #1d4ed8;
  --subject-bright: #60a5fa;
  --accent: var(--subject-bright);
  --lk-radius: 14px;
  --lk-card: #121f3a;
  --lk-card-2: #0d1830;
  --lk-ink: #f3f7ff;
  --lk-soft: #a9bad6;
  --lk-line: #2c426b;
  --lk-edge: #060b18;
  --lk-gold: #ffc53d;
  --lk-good: #34d399;
  --lk-bad: #fb7185;
  --lk-rule: repeating-linear-gradient(to bottom, transparent 0 27px, rgba(255, 255, 255, 0.130) 27px 28px);
}
:root[data-look='b3'][data-theme='light'] {
  --lk-card: #263862;
  --lk-card-2: #1d2c50;
  --lk-ink: #f5f8ff;
  --lk-soft: #c4d0e6;
  --lk-line: #46609a;
  --lk-edge: #101a33;
}
:root[data-look='b3'][data-text='large'] {
  font-size: 112.500%;
}
:root[data-look='b3'][data-text='xlarge'] {
  font-size: 125%;
}
.lk-icon {
  display: block;
  flex: none;
}

/* ---------- Top bar ---------- */
[data-look='b3'] .brand-symbol {
  background: var(--subject);
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 0 var(--subject-deep);
}
[data-look='b3'] .top-label {
  padding: 4px 10px;
  border: 1.500px solid currentColor;
  border-radius: 6px;
  background: transparent;
  color: var(--subject-bright);
  font-weight: 800;
  letter-spacing: 0.08em;
}

/* ---------- Home top: the cover of the exercise book ---------- */
.lk-hello {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 6px 0 18px;
  padding: 20px 16px 20px 30px;
  border-radius: var(--lk-radius);
  /* Deep colour: white text on it is 4.5:1 or better in all nine subjects (b3.6). */
  background-color: var(--subject-deep);
  background-image: var(--lk-rule);
  color: #fff;
  box-shadow: 0 5px 0 var(--subject-edge);
}
/* The margin line of a ruled page. */
.lk-hello::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 16px;
  width: 2px;
  background: rgba(255, 255, 255, 0.450);
}
.lk-hello > div:first-child {
  min-width: 0;
}
.lk-hi {
  display: block;
  font-size: 0.800rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.900;
}
.lk-hello h1 {
  margin: 2px 0 6px;
  font-size: clamp(1.150rem, 5.600vw, 1.600rem);
  font-weight: 800;
  line-height: 1.150;
  letter-spacing: -0.010em;
  color: #fff;
  overflow-wrap: anywhere;
}
.lk-hello p {
  margin: 0;
  font-size: 0.900rem;
  color: #fff;
  opacity: 0.940;
}
/* The streak is a stamp pressed onto the cover, slightly off-square on purpose. */
.lk-streak {
  flex: none;
  display: grid;
  justify-items: center;
  min-width: 76px;
  padding: 8px 8px 6px;
  border: 2px solid var(--lk-edge);
  border-radius: 10px;
  background: #fff;
  color: #14213d;
  box-shadow: 3px 3px 0 var(--lk-edge);
  transform: rotate(3deg);
}
.lk-streak .lk-icon {
  color: #9aa3b5;
}
.lk-streak.on .lk-icon {
  color: #d9480f;
  fill: #ffc53d;
}
.lk-streak strong {
  font-size: 1.550rem;
  font-weight: 800;
  line-height: 1.050;
}
.lk-streak small {
  font-size: 0.640rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Cards with a solid edge ---------- */
.lk-today,
[data-look='b3'] .continue-card,
.lk-action {
  border: 2px solid var(--lk-edge);
  border-radius: var(--lk-radius);
  background: var(--lk-card);
  box-shadow: 0 4px 0 var(--lk-edge);
}
[data-look='b3'] .lk-today,
[data-look='b3'] .continue-card,
[data-look='b3'] .lk-action {
  border-color: var(--lk-line);
}
.lk-today {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 16px;
  padding: 14px 16px;
}
.lk-today-body {
  min-width: 0;
  flex: 1;
}
.lk-today-body > strong {
  font-size: 1.050rem;
  font-weight: 800;
  color: var(--lk-ink);
}
.lk-today-body > p {
  margin: 2px 0 10px;
  color: var(--lk-soft);
  font-size: 0.900rem;
}
.lk-ring {
  position: relative;
  flex: none;
  display: inline-grid;
  place-items: center;
}
.lk-ring svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.lk-ring circle {
  fill: none;
  stroke-width: 4;
}
.lk-ring-track {
  stroke: var(--lk-line);
  opacity: 0.550;
}
.lk-ring-fill {
  stroke: var(--subject-bright);
  stroke-linecap: round;
  animation: lk-ring-in 0.900s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.lk-ring strong {
  position: relative;
  display: flex;
  align-items: baseline;
  font-size: 1.300rem;
  font-weight: 800;
  color: var(--lk-ink);
}
.lk-ring strong small {
  font-size: 0.720rem;
  font-weight: 700;
  color: var(--lk-soft);
}
.lk-ring strong .lk-icon {
  color: var(--lk-good);
  align-self: center;
}
/* The week is a row of register boxes; a studied day gets a tick-mark fill. */
.lk-week {
  display: flex;
  gap: 5px;
}
.lk-week span {
  flex: 1;
  display: grid;
  justify-items: center;
  gap: 3px;
  font-size: 0.640rem;
  font-weight: 800;
  color: var(--lk-soft);
}
.lk-week i {
  width: 100%;
  max-width: 26px;
  aspect-ratio: 1;
  border: 2px solid var(--lk-line);
  border-radius: 6px;
}
.lk-week .on i {
  border-color: var(--lk-edge);
  background: var(--lk-gold);
}
.lk-week .today {
  color: var(--lk-ink);
}
.lk-week .today:not(.on) i {
  border-color: var(--subject-bright);
  border-style: dashed;
}
[data-look='b3'] .continue-card {
  margin-bottom: 16px;
}
[data-look='b3'] .continue-icon {
  border-radius: 10px;
  background: var(--subject);
  color: #fff;
}

/* ---------- Quick actions: four labelled tabs, one flat colour each ---------- */
.lk-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 24px;
}
.lk-action {
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 12px;
  align-items: center;
  min-height: 76px;
  padding: 12px;
  color: var(--lk-ink);
  text-align: left;
  transition:
    transform 0.080s ease,
    box-shadow 0.080s ease;
}
.lk-action-icon {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--c);
  color: #fff;
}
.lk-action strong {
  align-self: end;
  font-size: 0.980rem;
  font-weight: 800;
  line-height: 1.200;
}
.lk-action small {
  align-self: start;
  font-size: 0.780rem;
  color: var(--lk-soft);
}
.lk-daily {
  --c: #d9480f;
}
.lk-quest {
  --c: #5f3dc4;
}
.lk-flashcards {
  --c: #0b7285;
}
.lk-mocks {
  --c: #c2255c;
}
@media (min-width: 700px) {
  .lk-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------- Things you press go down under the thumb ---------- */
.lk-action:active,
[data-look='b3'] .continue-card:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--lk-edge);
}
[data-look='b3'] .submit-answer,
[data-look='b3'] .acct-primary,
.lk-seg button.on {
  border: 0;
  border-radius: 12px;
  /* Deep colour: white text on it is 4.5:1 or better in all nine subjects (b3.6). */
  background: var(--subject-deep);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 4px 0 var(--subject-edge);
  transition:
    transform 0.080s ease,
    box-shadow 0.080s ease;
}
[data-look='b3'] .submit-answer:not(:disabled):active,
[data-look='b3'] .acct-primary:not(:disabled):active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--subject-edge);
}

/* ---------- Older parts: squarer, calmer ---------- */
[data-look='b3'] .panel,
[data-look='b3'] .today-card,
[data-look='b3'] .quick-card,
[data-look='b3'] .topic-card,
[data-look='b3'] .hub-banner {
  border-radius: var(--lk-radius);
}
[data-look='b3'] .stat-strip {
  display: none;
}

/* ---------- Bottom bar ---------- */
[data-look='b3'] .mobile-tab .tab-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 30px;
  border-radius: 8px;
  transition:
    background 0.150s ease,
    transform 0.150s ease;
}
[data-look='b3'] .mobile-tab.active .tab-icon {
  background: var(--subject);
  color: #fff;
  transform: translateY(-2px);
}
[data-look='b3'] .mobile-tab.active {
  color: var(--lk-ink);
  font-weight: 800;
}
[data-look='b3'] .mobile-tab .tab-progress,
[data-look='b3'] .mobile-tab small {
  display: none;
}
[data-look='b3'] .more-option > span:first-child {
  display: grid;
  place-items: center;
}

/* ---------- Answers ---------- */
[data-look='b3'] .choice {
  border-width: 2px;
  border-radius: 12px;
  min-height: 56px;
  transition:
    transform 0.080s ease,
    border-color 0.120s ease,
    background 0.120s ease;
}
[data-look='b3'] .choice:not(:disabled):active {
  transform: translateY(2px);
}
[data-look='b3'] .choice.chosen {
  border-color: var(--subject-bright);
  background: rgba(96, 165, 250, 0.140);
}
[data-look='b3'] .choice.correct {
  border-color: var(--lk-good);
  animation: lk-pop 0.400s ease;
}
[data-look='b3'] .choice.wrong {
  border-color: var(--lk-bad);
  animation: lk-shake 0.380s ease;
}
[data-look='b3'] .answer-box {
  border-radius: var(--lk-radius);
  animation: lk-rise 0.320s cubic-bezier(0.2, 0.8, 0.2, 1);
}
[data-look='b3'] .filter-pill.selected,
[data-look='b3'] .chip.active {
  border-color: var(--subject-deep);
  background: var(--subject-deep);
  color: #fff;
  box-shadow: 0 3px 0 var(--subject-edge);
}

/* ---------- Movement ---------- */
/* A new screen settles in from just below. */
.lk-enter {
  animation: lk-enter 0.240s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes lk-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
@keyframes lk-ring-in {
  from {
    stroke-dasharray: 0 100;
  }
}
@keyframes lk-pop {
  40% {
    transform: scale(1.030);
  }
}
@keyframes lk-shake {
  20%,
  60% {
    transform: translateX(-6px);
  }
  40%,
  80% {
    transform: translateX(6px);
  }
}
@keyframes lk-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}
#lk-confetti {
  position: fixed;
  inset: 0;
  z-index: 900;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-look='b3'] *,
  [data-look='b3'] *::before {
    animation-duration: 0.010ms !important;
    transition-duration: 0.010ms !important;
  }
}
.reduce-motion[data-look='b3'] *,
.reduce-motion[data-look='b3'] *::before {
  animation-duration: 0.010ms !important;
  transition-duration: 0.010ms !important;
}

/* ---------- Settings: appearance ---------- */
.lk-setting {
  display: grid;
  gap: 10px;
  padding: 12px 0;
}
.lk-setting + .lk-setting {
  border-top: 1px solid var(--lk-line);
}
.lk-setting small {
  display: block;
  color: var(--lk-soft);
}
.lk-seg {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lk-seg button {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 8px 14px;
  border: 2px solid var(--lk-line);
  border-radius: 12px;
  background: transparent;
  color: var(--lk-ink);
  font-weight: 700;
}

/* ---------- Sign-in screen ---------- */
[data-look='b3'] #account-gate {
  background-color: var(--subject);
  background-image: var(--lk-rule);
}
[data-look='b3'] .acct-card {
  margin-top: 8vh;
  border: 2px solid var(--lk-edge);
  border-radius: var(--lk-radius);
  background: var(--lk-card);
  box-shadow: 6px 6px 0 var(--lk-edge);
}
[data-look='b3'] .acct-brand .brand-symbol {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  font-size: 1.400rem;
  font-weight: 800;
}
[data-look='b3'] .acct-brand small {
  display: block;
  color: var(--lk-soft);
  font-size: 0.820rem;
  font-weight: 600;
}
[data-look='b3'] .acct-card h1 {
  color: var(--lk-ink);
  font-weight: 800;
}
[data-look='b3'] .acct-card p {
  color: var(--lk-soft);
}
[data-look='b3'] .acct-card label {
  color: var(--lk-ink);
}
[data-look='b3'] .acct-card input[type='text'],
[data-look='b3'] .acct-card input[type='password'] {
  border: 2px solid var(--lk-line);
  border-radius: 10px;
  background: var(--lk-card-2);
  color: var(--lk-ink);
}
[data-look='b3'] .acct-card input:focus-visible {
  border-color: var(--subject);
  outline: 3px solid var(--lk-gold);
  outline-offset: 1px;
}
[data-look='b3'] .acct-link {
  color: var(--subject-bright);
}

/* ---------- Stage 2: progress bar, results, level and badges ---------- */
.lk-bar {
  height: 10px;
  margin: 10px 0 6px;
  border: 2px solid var(--lk-line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--lk-card-2);
}
.lk-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--subject-bright);
  transition: width 0.400s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.lk-result {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 6px 0 12px;
}
.lk-result .lk-ring strong {
  font-size: 1.350rem;
}
.lk-result p {
  margin: 0;
}
.lk-level {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border: 1.500px solid #fff;
  border-radius: 6px;
  font-size: 0.740rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.lk-rewards {
  margin: 0 0 18px;
  padding: 16px;
  border: 2px solid var(--lk-line);
  border-radius: var(--lk-radius);
  background: var(--lk-card);
  box-shadow: 0 4px 0 var(--lk-edge);
}
.lk-rewards-top {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lk-rewards-top h2 {
  margin: 0;
  font-size: 1.150rem;
  color: var(--lk-ink);
}
.lk-rewards-top p {
  margin: 2px 0 0;
  color: var(--lk-soft);
  font-size: 0.880rem;
}
.lk-badges {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.lk-badge {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 10px 6px;
  border: 2px dashed var(--lk-line);
  border-radius: 12px;
  text-align: center;
  color: var(--lk-soft);
}
.lk-badge b {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.lk-badge strong {
  font-size: 0.800rem;
  line-height: 1.200;
}
.lk-badge small {
  font-size: 0.700rem;
  line-height: 1.250;
}
.lk-badge.on {
  border-style: solid;
  border-color: var(--lk-gold);
  color: var(--lk-ink);
}
.lk-badge.on b {
  border-color: var(--lk-edge);
  background: var(--lk-gold);
  color: #14213d;
  transform: rotate(-6deg);
}

/* ---------- Stage 3: welcome screens and progress charts ---------- */
.lk-welcome {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  overflow-y: auto;
  background-color: var(--subject);
  background-image: var(--lk-rule);
}
.lk-welcome-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(100%, 380px);
  padding: 28px 20px 20px;
  border: 2px solid var(--lk-line);
  border-radius: var(--lk-radius);
  background: var(--lk-card);
  box-shadow: 0 4px 0 var(--lk-edge);
  text-align: center;
}
.lk-welcome-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: var(--subject);
  box-shadow: 0 4px 0 var(--subject-deep);
  color: #fff;
}
.lk-welcome-card h2 {
  margin: 6px 0 0;
  font-size: 1.500rem;
  font-weight: 800;
  line-height: 1.200;
  color: var(--lk-ink);
  overflow-wrap: anywhere;
}
.lk-welcome-card p {
  margin: 0;
  color: var(--lk-soft);
  line-height: 1.500;
}
.lk-dots {
  display: flex;
  gap: 8px;
  margin: 8px 0;
}
.lk-dots i {
  width: 8px;
  height: 8px;
  background: var(--lk-line);
}
.lk-dots i.on {
  background: var(--lk-gold);
}
.lk-welcome-card .submit-answer {
  width: 100%;
}
.lk-welcome-skip {
  min-height: 44px;
  padding: 8px 18px;
  border: 0;
  background: transparent;
  color: var(--lk-soft);
  font-weight: 700;
  text-decoration: underline;
}
.lk-charts {
  margin: 0 0 18px;
  padding: 16px;
  border: 2px solid var(--lk-line);
  border-radius: var(--lk-radius);
  background: var(--lk-card);
  box-shadow: 0 4px 0 var(--lk-edge);
}
.lk-charts h2 {
  margin: 0 0 10px;
  font-size: 1.150rem;
  color: var(--lk-ink);
}
.lk-charts h2:not(:first-child) {
  margin-top: 20px;
}
.lk-days {
  display: flex;
  gap: 3px;
  align-items: flex-end;
}
.lk-day {
  flex: 1 1 0;
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 2px;
  font-size: 0.700rem;
  color: var(--lk-soft);
}
.lk-day-n {
  min-height: 1em;
  font-weight: 700;
  color: var(--lk-ink);
}
.lk-day-track {
  display: flex;
  align-items: flex-end;
  width: 100%;
  height: 88px;
}
.lk-day-track i {
  display: block;
  width: 100%;
  background: var(--subject-bright);
  border-radius: 3px 3px 0 0;
}
.lk-day.today .lk-day-track i {
  background: var(--lk-gold);
}
.lk-day.today .lk-day-l {
  font-weight: 800;
  color: var(--lk-ink);
}
.lk-chart-note {
  margin: 10px 0 0;
  color: var(--lk-soft);
  font-size: 0.880rem;
}
.lk-topic-row {
  display: grid;
  gap: 0;
  margin: 0 0 10px;
}
.lk-topic-row strong {
  color: var(--lk-ink);
  font-size: 0.900rem;
  overflow-wrap: anywhere;
}
.lk-topic-row small {
  color: var(--lk-soft);
  font-size: 0.800rem;
}

/* ---------- Privacy notice and Top Learners (b3.3) ---------- */
.lk-notice h1 {
  outline: none;
}
.lk-notice h2,
.lk-notice h3 {
  margin: 18px 0 6px;
  font-size: 1.050rem;
  font-weight: 800;
  line-height: 1.250;
  color: var(--lk-ink);
}
.lk-notice h3 {
  font-size: 0.980rem;
}
.lk-notice > h2:first-child,
.lk-notice > h1 + * {
  margin-top: 0;
}
.lk-notice ul {
  margin: 0 0 12px;
  padding-left: 20px;
}
.lk-notice li {
  margin: 0 0 6px;
  line-height: 1.500;
  color: var(--lk-soft);
}
.lk-notice p {
  margin: 0 0 10px;
  line-height: 1.500;
  color: var(--lk-soft);
}
.lk-notice strong {
  color: var(--lk-ink);
}
[data-look='b3'] #account-gate .lk-notice h1,
[data-look='b3'] #account-gate .lk-notice h2 {
  color: var(--lk-ink);
}
.lk-lg {
  display: grid;
  gap: 14px;
}
.lk-lg .section-intro {
  margin-bottom: 0;
}
.lk-lg-card {
  padding: 16px;
  border: 2px solid var(--lk-line);
  border-radius: var(--lk-radius);
  background: var(--lk-card);
  box-shadow: 0 4px 0 var(--lk-edge);
  color: var(--lk-ink);
}
.lk-lg-card > h2,
.lk-lg-card > h3 {
  margin: 0 0 8px;
  font-size: 1.100rem;
  font-weight: 800;
  color: var(--lk-ink);
  outline: none;
}
.lk-lg-card p {
  margin: 0 0 10px;
  line-height: 1.500;
  color: var(--lk-soft);
}
.lk-lg-card p:last-child {
  margin-bottom: 0;
}
.lk-lg-kicker {
  display: block;
  margin-bottom: 4px;
  font-size: 0.740rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--subject-bright);
}
.lk-lg-nick {
  display: block;
  font-size: 1.350rem;
  font-weight: 800;
  line-height: 1.200;
  color: var(--lk-ink);
  overflow-wrap: anywhere;
}
.lk-lg-me {
  outline: none;
}
.lk-lg-me small {
  display: block;
  margin-top: 2px;
  color: var(--lk-soft);
}
.lk-lg-today {
  margin: 12px 0 10px;
  font-size: 1.000rem;
  color: var(--lk-ink);
}
.lk-lg-today strong {
  color: var(--lk-gold);
}
.lk-lg p.lk-lg-hint,
.lk-lg-hint {
  margin: 0 0 10px;
  font-size: 0.860rem;
  line-height: 1.450;
  color: var(--lk-soft);
}
.lk-lg-empty {
  padding: 14px 0 4px;
  color: var(--lk-soft);
}
.lk-lg-joined {
  margin: 0;
  padding: 12px 14px;
  border: 2px solid var(--lk-good);
  border-radius: var(--lk-radius);
  background: var(--lk-card-2);
  color: var(--lk-ink);
  outline: none;
}
.lk-lg-msg {
  padding: 12px 14px;
  border: 2px solid var(--lk-line);
  border-radius: var(--lk-radius);
  background: var(--lk-card-2);
  color: var(--lk-ink);
  outline: none;
}
.lk-lg-msg.bad {
  border-color: var(--lk-bad);
}
.lk-lg-msg p {
  margin: 0 0 10px;
}
.lk-lg-msg p:last-child {
  margin: 0;
}
.lk-lg-error {
  margin: 10px 0;
  color: var(--lk-bad);
  font-weight: 700;
  line-height: 1.400;
  outline: none;
}
.lk-lg-btn {
  min-height: 44px;
  padding: 8px 16px;
  border: 2px solid var(--lk-line);
  border-radius: 12px;
  background: transparent;
  color: var(--lk-ink);
  font-weight: 700;
}
.lk-lg-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.lk-lg-join .field {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
  font-weight: 700;
  color: var(--lk-ink);
}
.lk-lg-join select,
.lk-lg-join input[type='text'] {
  min-height: 44px;
  padding: 8px 10px;
  border: 2px solid var(--lk-line);
  border-radius: 10px;
  background: var(--lk-card-2);
  color: var(--lk-ink);
  font: inherit;
}
.lk-lg-join input[readonly] {
  color: var(--lk-soft);
}
.lk-lg-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 6px 0 12px;
  padding: 10px 0;
  color: var(--lk-ink);
  font-weight: 700;
  line-height: 1.400;
}
.lk-lg-check input {
  flex: none;
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: var(--subject);
}
.lk-lg-join .submit-answer {
  width: 100%;
  min-height: 48px;
}
.lk-lg-card .lk-seg {
  margin: 0 0 12px;
}
.lk-lg-tablewrap {
  overflow-x: auto;
}
.lk-board {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.920rem;
}
.lk-board th,
.lk-board td {
  padding: 10px 6px;
  border-bottom: 1px solid var(--lk-line);
  text-align: left;
  color: var(--lk-ink);
  font-weight: 600;
  vertical-align: middle;
}
.lk-board thead th {
  font-size: 0.740rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lk-soft);
}
.lk-board tbody th {
  overflow-wrap: anywhere;
}
.lk-board .lk-rank {
  width: 52px;
}
.lk-board td:nth-child(3),
.lk-board td:nth-child(4) {
  white-space: nowrap;
}
.lk-board tr.lk-me th,
.lk-board tr.lk-me td {
  border-top: 2px solid var(--lk-gold);
  border-bottom: 2px solid var(--lk-gold);
  background: var(--lk-card-2);
}
.lk-board tr.lk-me > :first-child {
  border-left: 2px solid var(--lk-gold);
  border-radius: 10px 0 0 10px;
}
.lk-board tr.lk-me > :last-child {
  border-right: 2px solid var(--lk-gold);
  border-radius: 0 10px 10px 0;
}
.lk-medal {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.860rem;
  font-weight: 800;
  color: #1a1305;
}
.lk-medal-1 {
  background: #ffc53d;
}
.lk-medal-2 {
  background: #cbd5e1;
}
.lk-medal-3 {
  background: #d9894e;
}
.lk-you {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 7px;
  border: 1.500px solid var(--lk-gold);
  border-radius: 6px;
  font-size: 0.680rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--lk-gold);
}
.lk-lg-roundbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.lk-lg-count strong {
  font-size: 1.250rem;
  font-weight: 800;
  color: var(--lk-ink);
}
.lk-lg-clock {
  padding: 4px 12px;
  border: 2px solid var(--lk-line);
  border-radius: 999px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--lk-ink);
}
.lk-lg-confirm {
  border-color: var(--lk-gold);
}
.lk-lg-result h2 {
  font-size: 1.700rem;
  color: var(--lk-gold);
}
.lk-lg-result .submit-answer {
  width: 100%;
  min-height: 48px;
  margin-top: 6px;
}
.lk-lg-official strong {
  color: var(--lk-ink);
}
.lk-lg-days {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lk-lg-days li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--lk-line);
}
.lk-lg-days li:first-child {
  border-top: 0;
}
.lk-lg-days strong {
  display: block;
  color: var(--lk-ink);
}
.lk-lg-days small {
  color: var(--lk-soft);
}
.lk-lg-title {
  margin: 0;
  font-size: 1.250rem;
  font-weight: 800;
  color: var(--lk-ink);
  outline: none;
}
.lk-lg-rq h3 {
  margin: 0 0 10px;
  font-size: 1.020rem;
  line-height: 1.400;
  color: var(--lk-ink);
}
.lk-lg-opts {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lk-lg-opt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  padding: 10px 12px;
  border: 2px solid var(--lk-line);
  border-radius: 12px;
  color: var(--lk-ink);
}
.lk-lg-opt.key {
  border-color: var(--lk-good);
}
.lk-lg-opt.mine:not(.key) {
  border-color: var(--lk-bad);
}
.lk-lg-letter {
  flex: none;
  font-weight: 800;
  color: var(--lk-soft);
}
.lk-lg-opt-text {
  flex: 1 1 140px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.lk-lg-tag {
  padding: 1px 8px;
  border: 1.500px solid currentColor;
  border-radius: 6px;
  font-size: 0.700rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lk-lg-tag.ok {
  color: var(--lk-good);
}
.lk-lg-tag.no {
  color: var(--lk-bad);
}
.lk-lg-leave-ask {
  margin-top: 14px;
  padding: 12px 14px;
  border: 2px solid var(--lk-bad);
  border-radius: var(--lk-radius);
}
.lk-lg-leave-ask h3 {
  margin: 0 0 6px;
  outline: none;
}
.lk-lg-card :focus-visible,
.lk-lg-msg :focus-visible,
.lk-lg .choice:focus-visible,
.lk-lg .deck-actions button:focus-visible,
.lk-lg .submit-answer:focus-visible,
.lk-lg .link:focus-visible,
.lk-lg .crumb button:focus-visible,
.lk-lg-leave-ask :focus-visible,
.lk-lg-btn:focus-visible {
  outline: 3px solid var(--lk-gold);
  outline-offset: 2px;
}
.lk-lg .practice-card h2 {
  outline: none;
}
.lk-actions .lk-league {
  --c: #b7791f;
}
@media (max-width: 699px) {
  .lk-actions .lk-league:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* ---------- Do next (b3.4): flat card, solid press-down rows ---------- */
[data-look='b3'] .next-card {
  margin: 22px 0 16px;
  padding: 14px;
  border: 2px solid var(--lk-line);
  border-radius: var(--lk-radius);
  background: var(--lk-card);
  box-shadow: 0 4px 0 var(--lk-edge);
}
[data-look='b3'] .next-title {
  margin: 8px 0 0;
  font-size: 1.250rem;
  font-weight: 800;
  color: var(--lk-ink);
}
[data-look='b3'] .next-line {
  margin: 8px 0 0;
  color: var(--lk-soft);
  font-size: 0.875rem;
  line-height: 1.400;
}
[data-look='b3'] .next-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
[data-look='b3'] .next-row {
  position: relative;
  display: grid;
  gap: 4px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px 11px;
  border: 1.500px solid var(--lk-line);
  border-radius: 12px;
  background: var(--lk-card-2);
  box-shadow: 0 3px 0 var(--lk-edge);
  color: var(--lk-ink);
  text-align: left;
  transition:
    transform 0.080s ease,
    box-shadow 0.080s ease;
}
[data-look='b3'] .next-row:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--lk-edge);
}
[data-look='b3'] .next-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
[data-look='b3'] .next-chip {
  min-width: 4.500rem;
  padding: 3px 10px;
  border: 1.500px solid var(--lk-line);
  border-radius: 6px;
  color: var(--lk-ink);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}
/* White on the deep subject colour is 4.5:1 or better for all nine subjects (tests/look-chip-contrast.test.cjs). */
[data-look='b3'] .next-chip.is-fix,
[data-look='b3'] .next-chip.is-review {
  border-color: var(--subject-deep);
  background: var(--subject-deep);
  color: #fff;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.350);
}
[data-look='b3'] .next-min {
  color: var(--lk-ink);
  font-size: 0.75rem;
  font-weight: 700;
}
[data-look='b3'] .next-go {
  margin-left: auto;
  color: var(--subject-bright);
  font-weight: 800;
}
[data-look='b3'] .next-row strong {
  overflow-wrap: anywhere;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.250;
}
[data-look='b3'] .next-row small {
  color: var(--lk-soft);
  font-size: 0.75rem;
}
[data-look='b3'] .next-reason {
  color: var(--lk-soft);
  font-size: 0.8125rem;
  font-style: normal;
  line-height: 1.350;
}
[data-look='b3'] .next-repeat {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
[data-look='b3'] .next-total {
  margin: 16px 2px 0;
  color: var(--lk-soft);
  font-size: 0.8125rem;
  font-weight: 700;
}
[data-look='b3'] .next-empty {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
[data-look='b3'] .next-why {
  margin-top: 12px;
  color: var(--lk-soft);
  font-size: 0.8125rem;
}
[data-look='b3'] .next-why summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  color: var(--subject-bright);
}
[data-look='b3'] .next-why p {
  margin: 0 0 4px;
  line-height: 1.450;
}

/* ---------- Stage 2 (b3.7): goal help and the notebook ---------- */
[data-look='b3'] .lk-how,
[data-look='b3'] .nb-how,
[data-look='b3'] .nb-fixed {
  margin: 8px 0;
  color: var(--lk-soft);
  font-size: 0.8125rem;
}
[data-look='b3'] .lk-today {
  position: relative;
}
[data-look='b3'] .lk-today-body > strong {
  padding-right: 34px;
}
/* The goal help is a 44 px "?" in the card corner, so the card keeps its height until it is opened. */
[data-look='b3'] .lk-how {
  margin: 0;
}
[data-look='b3'] .lk-how summary {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 44px;
  height: 44px;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
  color: var(--subject-bright);
  list-style: none;
  border-radius: 50%;
  font-size: 1.125rem;
}
[data-look='b3'] .lk-how summary::-webkit-details-marker {
  display: none;
}
[data-look='b3'] .lk-how[open] {
  margin-top: 8px;
}
[data-look='b3'] .nb-how summary,
[data-look='b3'] .nb-fixed summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  color: var(--subject-bright);
}
[data-look='b3'] .lk-how p,
[data-look='b3'] .nb-how p {
  margin: 0 0 8px;
  line-height: 1.450;
}

[data-look='b3'] .submit-answer + .notebook-list {
  margin-top: 14px;
}

.demo-bar {
  padding: 6px 12px;
  background: var(--subject-deep, #12402a);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
}

/* ---------- Narrow screens (b3.6 audit) ---------- */
/* A grid track grows to its longest word unless told otherwise; these lists must never push the page sideways. */
.tool-list,
.level-list {
  grid-template-columns: minmax(0, 1fr);
}
.level-card > * {
  min-width: 0;
  overflow-wrap: break-word;
}
.metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
/* Phones narrower than 360 px (or 360 px phones with Android's larger display size): keep More on screen. */
@media (max-width: 359px) {
  [data-look='b3'] .top {
    padding: 0 10px;
  }
  [data-look='b3'] .mobile-brand {
    gap: 7px;
    font-size: 16px;
  }
  [data-look='b3'] .top-right {
    gap: 8px;
  }
  [data-look='b3'] .top-label {
    padding: 3px 6px;
    letter-spacing: 0.02em;
  }
  [data-look='b3'] .top-more {
    flex: none;
    padding: 6px 10px;
  }
  .metric-grid {
    gap: 8px;
  }
  .metric-grid .stat-panel {
    padding: 12px 6px;
  }
}

/* ---------- LIGHT THEME (generated by tools/look-light.py: do not edit by hand) ---------- */
:root:where([data-theme='light']) {
  color-scheme: dark;
}
:root:where([data-theme='light']) {
  --bg: #1e2c52;
  --surface: #293a60;
  --panel: #293e65;
  --panel2: #2d4a76;
  --border: #3e567c;
}
:where(:root[data-theme='light']) body {
  background: radial-gradient(ellipse at 80% 12%, #2f436f 0%, transparent 32%), var(--bg);
}
:where(:root[data-theme='light']) .sidebar {
  background: #1e345d;
  border-right: 1px solid #3c5582;
}
:where(:root[data-theme='light']) .brand-symbol {
  color: #ffffff;
}
:where(:root[data-theme='light']) .nav-link.active,
:where(:root[data-theme='light']) .nav-link:hover {
  background: #325d85;
  border-color: #4581a8;
  color: #ffffff;
}
:where(:root[data-theme='light']) .top {
  background: #1e2c54f7;
  border-bottom: 1px solid #364a74;
}
:where(:root[data-theme='light']) .top-avatar {
  border: 1px solid #458bba;
  background: #2f557f;
}
:where(:root[data-theme='light']) .stat-strip {
  border: 1px solid #3b5280;
  background: #26385e;
}
:where(:root[data-theme='light']) .stat-strip > span {
  border: 1px solid #374c76;
  background: #223459;
}
:where(:root[data-theme='light']) .hero {
  background: radial-gradient(ellipse at 76% 28%, #3c709a 0%, transparent 50%), linear-gradient(142deg, #304975, #27335d 85%);
  border: 1px solid #445f92;
}
:where(:root[data-theme='light']) .hero:before {
  background-image: linear-gradient( 120deg, transparent 45%, #4b8cb419 68%, transparent 84% );
}
:where(:root[data-theme='light']) .orb {
  background: radial-gradient( circle at 35% 25%, #c0f7ff, #38bcf6 27%, #366dba 60%, #1e345e 85% );
}
:where(:root[data-theme='light']) .orbit {
  background: #2e6999;
}
:where(:root[data-theme='light']) .quick-filter {
  border: 1px solid #3e5c89;
  background: #22335c;
}
:where(:root[data-theme='light']) .quick-card {
  border: 1px solid #466792;
}
:where(:root[data-theme='light']) .quick-card .quick-icon {
  background: #3b82c433;
}
:where(:root[data-theme='light']) .quick-cards .quick-tables {
  background: linear-gradient(140deg, #2b6d67, #1f4c65);
  border-color: #3b9490;
}
:where(:root[data-theme='light']) .quick-cards .quick-tables .quick-icon {
  border-color: #3fb5a5;
  background: #40bfa620;
}
:where(:root[data-theme='light']) .quick-cards .quick-practice {
  background: linear-gradient(140deg, #483c76, #302c5e);
  border-color: #6f629d;
}
:where(:root[data-theme='light']) .quick-cards .quick-cards {
  background: linear-gradient(140deg, #305a8c, #213b61);
}
:where(:root[data-theme='light']) .chip {
  border: 1px solid #46658c;
  background: #273a62;
}
:where(:root[data-theme='light']) .chip:hover,
:where(:root[data-theme='light']) .chip.active {
  background: #2d6d9e;
}
:where(:root[data-theme='light']) .activity-list {
  border: 1px solid #314b71;
  background: #23385e;
}
:where(:root[data-theme='light']) .activity-item {
  border-bottom: 1px solid #374a70;
}
:where(:root[data-theme='light']) .empty {
  background: #294162;
}
:where(:root[data-theme='light']) .hub-banner {
  background: radial-gradient(ellipse at 100% 110%, #3285b155, transparent 65%), linear-gradient(140deg, #2a3c67, #29476c);
  border: 1px solid #47669f;
}
:where(:root[data-theme='light']) .hub-banner.hub-tables {
  background: radial-gradient(ellipse at 90% 100%, #23ae8b4a, transparent 65%), linear-gradient(140deg, #2d3f64, #2a5d62);
}
:where(:root[data-theme='light']) .hub-banner.hub-practice {
  background: radial-gradient(ellipse at 95% 100%, #6e50ac66, transparent 65%), linear-gradient(140deg, #343867, #483d6e);
}
:where(:root[data-theme='light']) .hub-progress {
  border: 1px solid #4987ac;
  background: #367b9e33;
}
:where(:root[data-theme='light']) .progress-ring {
  background: conic-gradient(var(--blue) var(--pct), #4b5e7f 0);
}
:where(:root[data-theme='light']) .progress-ring > span {
  background: #2e4367;
}
:where(:root[data-theme='light']) .btn-outline {
  background: #335678;
  border: 1px solid #5287ad;
}
:where(:root[data-theme='light']) .btn-outline.reset {
  background: #5e4b76;
  border-color: #926897;
}
:where(:root[data-theme='light']) .topic-card {
  border: 1px solid #40587d;
  background: linear-gradient(130deg, #2c3d61, #24365c);
}
:where(:root[data-theme='light']) .soon {
  background: #705e4b;
}
:where(:root[data-theme='light']) .study-card {
  border: 1px solid #42658f;
  background: radial-gradient(ellipse at 60% 45%, #336f9657, transparent 70%), linear-gradient(#344572, #273962);
}
:where(:root[data-theme='light']) .eyebrow-pill {
  background: #266b8e;
  border: 1px solid #4896b7;
}
:where(:root[data-theme='light']) .content-figure {
  background: #ffffff;
  color: #262626;
}
:where(:root[data-theme='light']) .zoom-overlay {
  background: #162648;
}
:where(:root[data-theme='light']) .zoom-close {
  border: 1px solid #506d95;
  background: #2c3d64;
}
:where(:root[data-theme='light']) .zoom-image {
  background: #ffffff;
  color: #262626;
}
:where(:root[data-theme='light']) .study-card-meta {
  border-top: 1px solid #466489;
}
:where(:root[data-theme='light']) .hint {
  background: #32807a66;
}
:where(:root[data-theme='light']) .deck-actions {
  background: #223459eb;
  border: 1px solid #3c5e82;
}
:where(:root[data-theme='light']) .deck-actions button {
  background: #314b70;
  border: 1px solid #46688e;
}
:where(:root[data-theme='light']) .deck-actions button.primary {
  background: #2c7ca1;
  color: #ffffff;
  border-color: #409ebf;
}
:where(:root[data-theme='light']) .secondary-actions button {
  background: #2e456a;
  border: 1px solid #496283;
}
:where(:root[data-theme='light']) .progress-line {
  background: #435c7f;
}
:where(:root[data-theme='light']) .accordion-card {
  background: linear-gradient(135deg, #2b6168, #234f63);
  border: 1px solid #3a949c;
}
:where(:root[data-theme='light']) .accordion-icon {
  border: 1px solid #4bb4ab;
}
:where(:root[data-theme='light']) .compare-feature {
  border: 1px solid #457789;
  background: linear-gradient(130deg, #2a5c64, #214164);
}
:where(:root[data-theme='light']) .compare-item {
  border: 1px solid #457082;
  background: #295163;
}
:where(:root[data-theme='light']) .study-tip {
  background: #423d75;
}
:where(:root[data-theme='light']) .pill {
  background: #305782;
  border: 1px solid #497ba3;
}
:where(:root[data-theme='light']) .practice-card {
  background: linear-gradient(155deg, #2c4c73, #26385e);
  border: 1px solid #49749c;
}
:where(:root[data-theme='light']) .choice {
  border: 1px solid #4f7797;
  background: #2d4f72;
}
:where(:root[data-theme='light']) .choice > span {
  background: #2f5c86;
}
:where(:root[data-theme='light']) .choice.chosen {
  background: #32628d;
}
:where(:root[data-theme='light']) .choice.correct {
  background: #317568;
}
:where(:root[data-theme='light']) .choice.wrong {
  background: #85465c;
}
:where(:root[data-theme='light']) .answer-box {
  background: #2c556a;
  border: 1px solid #4db299;
}
:where(:root[data-theme='light']) .stat-panel {
  background: #28426a;
  border: 1px solid #486991;
}
:where(:root[data-theme='light']) .panel {
  border: 1px solid #46668d;
  background: linear-gradient(150deg, #2d4066, #293a60);
}
:where(:root[data-theme='light']) .btn-danger {
  background: #764864;
}
:where(:root[data-theme='light']) .notice {
  border: 1px solid #5b8ba4;
  background: #2d4f72;
}
:where(:root[data-theme='light']) #update-banner {
  background: #317466;
}
:where(:root[data-theme='light']) .small-button {
  background: #428371;
}
:where(:root[data-theme='light']) .more-overlay {
  background: #0f2649ac;
}
:where(:root[data-theme='light']) .more-sheet {
  background: #2c3d64;
  border: 1px solid #506d95;
}
:where(:root[data-theme='light']) .sheet-handle {
  background: #547394;
}
:where(:root[data-theme='light']) .more-option {
  background: #314b71;
  border: 1px solid #435f86;
}
:where(:root[data-theme='light']) kbd {
  background: #3b5b80;
}
@media (max-width: 870px) {
  :where(:root[data-theme='light']) .mobile-nav {
    background: #1c2b52f5;
    border-top: 1px solid #41577a;
  }
  :where(:root[data-theme='light']) .mobile-tab.active {
    border-color: #468bb1;
    background: #295777;
    color: #ffffff;
  }
  :where(:root[data-theme='light']) .tab-progress {
    background: #4b566f;
  }
}
:where(:root[data-theme='light']) .revision-banner {
  background: #433972;
}
:where(:root[data-theme='light']) .revision-banner strong {
  color: #ffffff;
}
:where(:root[data-theme='light']) .option-rationales li {
  border: 1px solid #435f86;
}
:where(:root[data-theme='light']) .option-rationales li.is-correct {
  border-color: #48b799;
  background: #2c6258;
}
:where(:root[data-theme='light']) .results-panel {
  border: 1px solid #576da8;
  background: linear-gradient(160deg, #34437d, #293e65);
}
:where(:root[data-theme='light']) .results-score {
  color: #ffffff;
}
:where(:root[data-theme='light']) .continue-card {
  background: linear-gradient(135deg, #2a6182, #293e65);
  border: 1px solid #4892b5;
}
:where(:root[data-theme='light']) .continue-icon {
  background: #357fa5;
}
:where(:root[data-theme='light']) .install-cta {
  background: #2a4e74;
  border: 1px dashed #4892b5;
}
:where(:root[data-theme='light']) .toggle {
  border: 1px solid #547394;
  background: #354c6e;
}
:where(:root[data-theme='light']) .toggle.on {
  background: #2c7ca1;
  border-color: #409ebf;
}
:where(:root[data-theme='light']) .toggle.on span {
  background: #ffffff;
}
:where(:root[data-theme='light']) button.activity-item {
  border-bottom: 1px solid #374a70;
}
:where(:root[data-theme='light']) button.activity-item:hover {
  background: #2b436d;
}
:where(:root[data-theme='light']) .nav-bar {
  background: #415475;
}
:where(:root[data-theme='light']) .chip-progress {
  background: linear-gradient(90deg, #387daf var(--pct), #273a62 var(--pct));
}
:where(:root[data-theme='light']) .backup-reminder {
  border: 1px solid #bc9643;
}
:where(:root[data-theme='light']) .top-more {
  border: 1px solid #458bba;
  background: #2f557f;
}
:where(:root[data-theme='light']) .today-card {
  border: 1px solid #3f6194;
  background: linear-gradient(140deg, #2b4979, #263761);
}
:where(:root[data-theme='light']) .today-item {
  border: 1px solid #45618f;
  background: #22365b;
}
:where(:root[data-theme='light']) .tool-card:hover {
  border-color: #4b8cb4;
}
:where(:root[data-theme='light']) .tool-icon {
  background: #2e537e;
}
:where(:root[data-theme='light']) .confidence-flag.is-lucky {
  background: #6a5c2b;
}
:where(:root[data-theme='light']) .confidence-flag.is-confident {
  background: #6b303f;
}
:where(:root[data-theme='light']) .why-selected {
  background: #263c62;
}
:where(:root[data-theme='light']) .tutor-back {
  background: #22365b;
}
:where(:root[data-theme='light']) .ladder-bar {
  background: #384b70;
}
:where(:root[data-theme='light']) .lv-D {
  background: #697a96;
}
:where(:root[data-theme='light']) .nb-tag {
  background: #415476;
}
:where(:root[data-theme='light']) .nb-tag.is-confident {
  background: #773545;
}
:where(:root[data-theme='light']) .nb-tag.is-lucky {
  background: #76642a;
}
:where(:root[data-theme='light']) .field select,
:where(:root[data-theme='light']) .field input {
  border: 1px solid #48638e;
  background: #22365b;
}
:where(:root[data-theme='light']) .mock-bar {
  border: 1px solid #45618f;
  background: #22365bf2;
}
:where(:root[data-theme='light']) .mock-palette button {
  border: 1px solid #48638e;
  background: #22365b;
}
:where(:root[data-theme='light']) .mock-palette button.done {
  background: #2b617e;
}
:where(:root[data-theme='light']) .mock-topics li {
  border-bottom: 1px solid #394e73;
}
:where(:root[data-theme='light']) .mock-review li {
  border-left: 4px solid #697a96;
}
:where(:root[data-theme='light']) .heat-table th,
:where(:root[data-theme='light']) .heat-table td {
  border: 1px solid #394e73;
}
:where(:root[data-theme='light']) .trust-badge > span {
  background: #2e537e;
}
:where(:root[data-theme='light']) .trust-badge .trust-qa {
  background: #286c54;
}
:where(:root[data-theme='light']) .report-text {
  border: 1px solid #48638e;
  background: #22365b;
}
:where(:root[data-theme='light']) .related-notes {
  border: 1px solid #45618f;
  background: #22365b;
}
:where(:root[data-theme='light']) .related-card {
  border-bottom: 1px solid #394e73;
}
:where(:root[data-theme='light']) .diagram-answers select {
  border: 1px solid #48638e;
  background: #22365b;
}
:where(:root[data-theme='light']) .diag-n {
  background: #2e537e;
}
:where(:root[data-theme='light']) .selftest td,
:where(:root[data-theme='light']) .selftest th {
  border-bottom: 1px solid #394e73;
}
:where(:root[data-theme='light']) .print-sheet {
  background: #ffffff;
  color: #363636;
}
:where(:root[data-theme='light']) .print-meta {
  color: #676767;
}
:where(:root[data-theme='light']) .print-answers small {
  color: #676767;
}
@media print {
  :where(:root[data-theme='light']) body,
  :where(:root[data-theme='light']) .layout,
  :where(:root[data-theme='light']) .main-layout,
  :where(:root[data-theme='light']) .container {
    background: #ffffff !important;
    color: #262626 !important;
  }
}
:where(:root[data-theme='light']) .theory-answer {
  border: 1px solid #48638e;
  background: #22365b;
}
:where(:root[data-theme='light']) .scheme-point {
  border: 1px solid #48638e;
  background: #22365b;
}
:where(:root[data-theme='light']) .scheme-point.on {
  background: #275662;
}
:where(:root[data-theme='light']) .tick-box {
  border: 2px solid #5a78a5;
}
:where(:root[data-theme='light']) .guidance {
  background: #2d426f;
}
:where(:root[data-theme='light']) .sample-answer {
  background: #303c66;
}
:where(:root[data-theme='light']) .trust-badge .trust-checked {
  background: #59582d;
}
:where(:root[data-theme='light']) .note-point {
  border-bottom: 1px solid #dddddd;
}
:where(:root[data-theme='light']) .note-papers {
  color: #926810;
}
:where(:root[data-theme='light']) .note-ask {
  color: #676767;
}
:where(:root[data-theme='light']) .note-table th,
:where(:root[data-theme='light']) .note-table td {
  border: 1px solid #cccccc;
}
:where(:root[data-theme='light']) .level-card.locked .level-num {
  background: color-mix(in srgb, var(--lv) 55%, #5a647b);
}
:where(:root[data-theme='light']) .level-num {
  color: #242f52;
}
:where(:root[data-theme='light']) #account-gate {
  background: #1e2c52;
}
:where(:root[data-theme='light']) .acct-card {
  background: #293a63;
}
:where(:root[data-theme='light']) .acct-card input[type='text'],
:where(:root[data-theme='light']) .acct-card input[type='password'] {
  background: #1e2c52;
  color: #ffffff;
}
:where(:root[data-theme='light']) .acct-primary {
  color: #242f52;
}
:where(:root[data-theme='light']) .acct-error {
  background: #792e3e;
}
:where(:root[data-theme='light']) .acct-code {
  background: #1e2c52;
}
:where(:root[data-theme='light']) .nb-tag.is-fixed,
:where(:root[data-theme='light']) .activity-item > .nb-tag.is-fixed {
  background: #2b704f;
}
/* ---------- END OF GENERATED LIGHT THEME ---------- */
