@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap");
:root {
  font-family: "DM Sans", Arial, sans-serif;
  color: #10243e;
  background: #f5f8ff;
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
a {
  color: inherit;
  text-decoration: none;
}
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
}
.sidebar {
  background: #071e33;
  color: #dceaf8;
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font:
    800 19px "Plus Jakarta Sans",
    sans-serif;
  color: white;
  letter-spacing: -0.6px;
}
.brand img {
  width: 39px;
  height: 39px;
}
.brand small {
  display: block;
  font:
    500 11px "DM Sans",
    sans-serif;
  color: #a9c0d2;
  letter-spacing: 0;
  margin-top: 2px;
}
.nav {
  display: grid;
  gap: 5px;
}
.nav button {
  width: 100%;
  display: flex;
  gap: 13px;
  align-items: center;
  text-align: left;
  border: 0;
  border-radius: 12px;
  background: none;
  color: #bdd0e0;
  padding: 12px;
  font-weight: 600;
}
.nav button.active,
.nav button:hover {
  background: #0d63e8;
  color: #fff;
}
.nav button .ico {
  font-size: 20px;
  width: 24px;
  text-align: center;
}
.sidefoot {
  margin-top: auto;
  border: 1px solid #24445e;
  padding: 15px;
  border-radius: 16px;
  color: #ccdff0;
  font-size: 13px;
  line-height: 1.5;
}
.sidefoot b {
  color: #fff;
}
.main {
  max-width: 1250px;
  width: 100%;
  margin: auto;
  padding: 28px 36px 110px;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 27px;
}
.eyebrow {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.13em;
  color: #2170db;
  text-transform: uppercase;
}
.top h1 {
  font:
    800 clamp(27px, 3vw, 38px) "Plus Jakarta Sans",
    sans-serif;
  letter-spacing: -1.2px;
  margin: 5px 0;
}
.top p {
  color: #66809b;
  margin: 0;
}
.avatar {
  border: 1px solid #dce8f5;
  background: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #0759dc;
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 19px;
}
.card {
  background: #fff;
  border: 1px solid #e1eaf5;
  border-radius: 20px;
  box-shadow: 0 9px 28px #153f7310;
  padding: 22px;
}
.hero {
  grid-column: span 8;
  background:
    radial-gradient(circle at 88% 12%, #175f9b 0, #0a3f6d 24%, transparent 45%),
    linear-gradient(120deg, #061d32, #083d68);
  color: #fff;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero:after {
  content: "✦";
  position: absolute;
  right: 8%;
  top: 24%;
  font-size: 90px;
  color: #72b4ff25;
}
.hero .tag {
  background: #ffffff20;
  color: #d1e7ff;
  padding: 8px 12px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 12px;
}
.hero h2 {
  font: 800 clamp(27px, 3vw, 37px) "Plus Jakarta Sans";
  letter-spacing: -1px;
  margin: 15px 0 8px;
  max-width: 530px;
}
.hero p {
  color: #d0e2f5;
  margin: 0 0 22px;
  max-width: 490px;
}
.primary {
  background: #0d63e8;
  color: #fff;
  border: 0;
  border-radius: 11px;
  padding: 12px 18px;
  font-weight: 800;
  box-shadow: 0 7px 16px #0d63e82e;
}
.primary:hover {
  background: #084fc0;
}
.hero .primary {
  background: #fff;
  color: #0759dc;
}
.aside-stat {
  grid-column: span 4;
  background: #e8f2ff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.aside-stat .big {
  font: 800 57px "Plus Jakarta Sans";
  color: #0b59d5;
  letter-spacing: -3px;
}
.aside-stat p {
  color: #5b738e;
  line-height: 1.5;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 29px 0 15px;
}
.section-head h2,
.page-title {
  font: 800 21px "Plus Jakarta Sans";
  margin: 0;
  letter-spacing: -0.5px;
}
.section-head button {
  background: none;
  border: 0;
  color: #0759dc;
  font-weight: 800;
}
.quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.quick button {
  border: 1px solid #e0eaf5;
  border-radius: 17px;
  padding: 20px 12px;
  background: #fff;
  text-align: left;
  min-height: 112px;
  font-weight: 800;
  color: #152a45;
}
.quick button:hover,
.row:hover {
  border-color: #8bb9f5;
  transform: translateY(-1px);
}
.quick .bubble {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #e7f1ff;
  font-size: 21px;
  margin-bottom: 14px;
}
.row {
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid #e2ebf6;
  background: white;
  border-radius: 15px;
  padding: 16px;
  margin: 10px 0;
  transition: 0.2s;
}
.row .bubble {
  flex: none;
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 12px;
  background: #eaf2ff;
  font-size: 21px;
}
.row .content {
  flex: 1;
  min-width: 0;
}
.row b {
  display: block;
}
.muted {
  color: #71859d;
  font-size: 13px;
  margin-top: 4px;
}
.pill {
  background: #e6f3eb;
  color: #087641;
  border-radius: 20px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}
.row button {
  border: 0;
  background: #e9f2ff;
  color: #0759dc;
  font-size: 13px;
  font-weight: 800;
  padding: 9px 12px;
  border-radius: 9px;
}
.page {
  max-width: 940px;
  margin: auto;
}
.tabs {
  display: flex;
  gap: 7px;
  overflow: auto;
  margin: 20px 0;
}
.tabs button {
  white-space: nowrap;
  border: 0;
  border-radius: 9px;
  background: #e8eef7;
  color: #52708e;
  padding: 10px 16px;
  font-weight: 800;
}
.tabs button.active {
  background: #0d63e8;
  color: white;
}
.quiz-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #526d8c;
  font-weight: 700;
}
.progress {
  height: 8px;
  background: #e9f0fa;
  border-radius: 9px;
  margin: 16px 0 28px;
  overflow: hidden;
}
.progress span {
  display: block;
  background: #0d63e8;
  height: 100%;
  transition: width 0.25s;
}
.question {
  font: 800 clamp(21px, 2.5vw, 28px) "Plus Jakarta Sans";
  line-height: 1.4;
  margin: 8px 0 24px;
}
.options {
  display: grid;
  gap: 11px;
}
.option {
  display: flex;
  gap: 13px;
  align-items: center;
  width: 100%;
  text-align: left;
  border: 1.5px solid #d9e6f3;
  border-radius: 12px;
  padding: 15px;
  background: #fff;
  color: #18314f;
  font-weight: 600;
}
.option.selected {
  border-color: #0d63e8;
  background: #eaf3ff;
}
.radio {
  width: 21px;
  height: 21px;
  flex: none;
  border: 2px solid #b8cee6;
  border-radius: 50%;
}
.option.selected .radio {
  border: 6px solid #0d63e8;
}
.quiz-actions {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-top: 25px;
  flex-wrap: wrap;
}
.secondary {
  border: 1px solid #dae6f4;
  border-radius: 10px;
  background: white;
  color: #2d557c;
  padding: 11px 15px;
  font-weight: 800;
}
.palette {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}
.palette button {
  border: 0;
  background: #ebf2fc;
  border-radius: 8px;
  min-width: 39px;
  height: 39px;
  font-size: 13px;
  font-weight: 800;
  color: #47617c;
}
.palette .current {
  background: #0d63e8;
  color: white;
}
.palette .done {
  background: #d5f4e7;
  color: #137b4a;
}
.score {
  text-align: center;
  padding: 24px;
}
.score .medal {
  font-size: 65px;
}
.score strong {
  font: 800 56px "Plus Jakarta Sans";
  color: #0759dc;
  display: block;
}
.review {
  padding: 14px;
  border-bottom: 1px solid #e5edf7;
  line-height: 1.55;
}
.review b {
  display: block;
  margin-bottom: 6px;
}
.right {
  color: #008750;
}
.wrong {
  color: #d83f55;
}
.bar {
  height: 9px;
  background: #edf2fa;
  border-radius: 8px;
  overflow: hidden;
  flex: 1;
  max-width: 170px;
}
.bar i {
  display: block;
  height: 100%;
  background: #0d63e8;
}
.leader {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 0;
  border-bottom: 1px solid #edf2f8;
}
.leader:last-child {
  border: 0;
}
.leader .rank {
  font-weight: 800;
  color: #0d63e8;
  width: 30px;
}
.leader .person {
  flex: 1;
  font-weight: 700;
}
.empty {
  padding: 35px;
  text-align: center;
  color: #6d829a;
}
.notice {
  background: #eef5fe;
  border-left: 4px solid #0d63e8;
  border-radius: 9px;
  padding: 13px 15px;
  color: #385779;
  line-height: 1.5;
  margin: 18px 0;
}
.search {
  width: 100%;
  border: 1px solid #d7e5f5;
  border-radius: 12px;
  padding: 13px 15px;
  margin: 18px 0;
  background: white;
}
.price {
  font: 800 38px "Plus Jakarta Sans";
  color: #0759dc;
}
.list {
  line-height: 2;
  color: #365370;
}
.bottom {
  display: none;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #122d4a;
  color: white;
  border-radius: 10px;
  padding: 12px 20px;
  z-index: 5;
  max-width: 90vw;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #f9b930;
  outline-offset: 2px;
}
@media (max-width: 900px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
  .main {
    padding: 22px 17px 90px;
  }
  .bottom {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #dce8f5;
    padding: 7px 5px calc(8px + env(safe-area-inset-bottom));
    z-index: 4;
    justify-content: space-around;
    box-shadow: 0 -5px 22px #0b2d4a0c;
  }
  .bottom button {
    border: 0;
    background: none;
    color: #6682a2;
    display: grid;
    justify-items: center;
    gap: 3px;
    font-size: 11px;
    min-width: 57px;
  }
  .bottom button.active {
    color: #0759dc;
    font-weight: 800;
  }
  .bottom span {
    font-size: 19px;
  }
  .hero {
    grid-column: span 12;
    min-height: 245px;
  }
  .aside-stat {
    grid-column: span 12;
  }
  .quick {
    grid-template-columns: repeat(4, 1fr);
  }
  .top {
    margin-bottom: 19px;
  }
}
@media (max-width: 560px) {
  .hero {
    padding: 22px;
    min-height: 254px;
  }
  .hero h2 {
    font-size: 27px;
  }
  .quick {
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
  }
  .quick button {
    font-size: 12px;
    padding: 12px 7px;
    min-height: 102px;
  }
  .quick .bubble {
    width: 34px;
    height: 34px;
    font-size: 17px;
  }
  .card {
    padding: 17px;
  }
  .top h1 {
    font-size: 26px;
  }
  .row {
    padding: 12px;
    gap: 10px;
  }
  .row button {
    padding: 8px;
  }
  .aside-stat .big {
    font-size: 43px;
  }
}

.feature-grid,
.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  border: 1px solid #dde9f6;
  border-radius: 17px;
  background: #fff;
  text-align: left;
  padding: 21px;
  color: #112842;
  min-height: 135px;
}
.feature:hover,
.dir-chip:hover {
  border-color: #0d63e8;
  box-shadow: 0 8px 22px #0b5dd915;
}
.feature > span,
.metric > span {
  font-size: 26px;
}
.feature b,
.metric b {
  font-size: 16px;
}
.feature small,
.metric small {
  color: #68829b;
  font-size: 13px;
}
.directory-group {
  margin: 25px 0;
}
.directory-group h2 {
  font: 800 19px "Plus Jakarta Sans";
  margin: 0 0 12px;
}
.chip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.dir-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  text-align: left;
  padding: 17px;
  background: white;
  border: 1px solid #e0eaf5;
  border-radius: 15px;
  color: #123150;
  min-height: 100px;
}
.dir-chip span {
  font-size: 22px;
}
.dir-chip small {
  font-size: 12px;
  color: #0b65d8;
}
.empty-icon {
  font-size: 42px;
}
.metric {
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: none;
}
.plan-form label,
.form-grid label {
  font-weight: 800;
  display: block;
  color: #254361;
}
.plan-form > div {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.plan-form input,
.form-grid input,
.form-grid select {
  border: 1px solid #d5e4f4;
  border-radius: 10px;
  padding: 12px;
  width: 100%;
  min-width: 0;
  background: white;
  margin-top: 8px;
}
.task {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #e7eef8;
  padding: 12px 0;
}
.task:first-child {
  margin-top: 20px;
}
.task label {
  display: flex;
  align-items: center;
  gap: 12px;
}
.task input {
  width: 19px;
  height: 19px;
}
.task-done {
  text-decoration: line-through;
  color: #8798aa;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 17px;
  margin: 18px 0;
}
.score-output {
  font: 800 24px "Plus Jakarta Sans";
  color: #0759dc;
  margin-top: 15px;
}
@media (max-width: 560px) {
  .feature-grid,
  .metric-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .chip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .plan-form > div {
    flex-direction: column;
  }
  .feature {
    min-height: 110px;
  }
  .dir-chip {
    min-height: 106px;
  }
}

.result-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin: 22px 0;
}
.result-metrics span {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f1f6fd;
  padding: 13px 6px;
  border-radius: 12px;
  color: #71859d;
  font-size: 13px;
}
.result-metrics b {
  color: #153f72;
  font-size: 18px;
}
.result-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 18px 0;
}
.topic-tag {
  display: inline-block;
  background: #eaf2ff;
  color: #0759dc;
  font-weight: 800;
  font-size: 12px;
  padding: 5px 9px;
  border-radius: 20px;
  margin-bottom: 7px;
}
.history-chart {
  margin-top: 18px;
}
.chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 8px;
  height: 230px;
  padding: 18px 6px 0;
  border-bottom: 1px solid #dce8f5;
}
.chart-col {
  height: 100%;
  flex: 1;
  max-width: 56px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: flex-end;
  gap: 5px;
  color: #375c83;
  font-size: 12px;
}
.chart-col span {
  width: 100%;
  background: linear-gradient(#0d63e8, #80bafa);
  border-radius: 8px 8px 0 0;
}
.chart-col small {
  font-size: 12px;
  color: #6f8498;
}
.metric-grid .metric {
  border: 1px solid #e1eaf5;
  border-radius: 16px;
  padding: 16px;
  background: #fff;
}
@media (max-width: 560px) {
  .result-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .chart-bars {
    height: 190px;
  }
}

.saved-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #405c79;
  margin: 16px 0;
}
.saved-filter input {
  width: 19px;
  height: 19px;
  accent-color: #0d63e8;
}
.bank-item {
  margin: 12px 0;
}
.bank-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #7288a0;
  font-size: 13px;
}
.bank-item h2 {
  font: 800 19px "Plus Jakarta Sans";
  line-height: 1.4;
  margin: 12px 0 16px;
}
.bank-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}
.bank-options span {
  border: 1px solid #e1eaf5;
  border-radius: 9px;
  padding: 10px;
  color: #47617c;
  font-size: 14px;
}
.bank-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.bookmark {
  background: #fff8e9;
  color: #9b5c04;
  border: 1px solid #f2daa6;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
}
.bank-answer {
  background: #eaf8f0;
  color: #145d39;
  border-radius: 10px;
  padding: 14px;
  margin-top: 13px;
  line-height: 1.5;
}
.bank-answer p {
  margin: 6px 0 0;
}
.review .bookmark {
  margin-top: 10px;
}
@media (max-width: 560px) {
  .bank-options {
    grid-template-columns: 1fr;
  }
}

.exam-hero {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(125deg, #eef6ff, #fff);
}
.exam-hero h2 {
  font: 800 28px "Plus Jakarta Sans";
  margin: 10px 0 7px;
}
.exam-hero p {
  margin: 0;
  color: #617b95;
}
.exam-hero .bookmark {
  flex: none;
}
.exam-tabs {
  margin: 19px 0;
}
.steps {
  padding-left: 24px;
  line-height: 1.8;
  color: #365270;
}
.check-row {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 4px;
  border-top: 1px solid #e6eef8;
  font-weight: 700;
}
.check-row input {
  accent-color: #0d63e8;
  width: 20px;
  height: 20px;
  flex: none;
}
@media (max-width: 560px) {
  .exam-hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .exam-hero h2 {
    font-size: 24px;
  }
}

/* SahilDubey Exam Hub visual system */
:root {
  --navy: #0a203a;
  --deep: #07182d;
  --blue: #0b63dd;
  --blue-strong: #064db6;
  --ink: #142b49;
  --muted: #667c96;
  --line: #e0e9f4;
  --surface: #fff;
  --canvas: #f4f7fc;
  --gold: #e9ad3b;
  color: var(--ink);
  background: var(--canvas);
}
html {
  scroll-behavior: smooth;
}
body {
  background:
    radial-gradient(circle at 68% -20%, #e6f0ff 0, transparent 36%),
    var(--canvas);
  overflow-x: hidden;
}
button,
a,
input {
  transition:
    background-color 0.18s,
    color 0.18s,
    border-color 0.18s,
    box-shadow 0.18s,
    transform 0.18s;
}
button:active {
  transform: scale(0.98);
}
.ui-icon {
  width: 21px;
  height: 21px;
  display: block;
  flex: none;
}
.shell {
  grid-template-columns: 254px minmax(0, 1fr);
}
.sidebar {
  background: linear-gradient(170deg, #0b2644 0%, #07192c 75%);
  padding: 25px 14px;
  gap: 20px;
  box-shadow: 8px 0 30px #071b3112;
  z-index: 2;
}
.brand {
  padding: 5px 11px 21px;
  font-size: 17px;
  letter-spacing: -0.45px;
  border-bottom: 1px solid #ffffff18;
}
.brand img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  box-shadow: 0 8px 16px #0003;
}
.brand small {
  font-size: 10px;
  letter-spacing: 0.02em;
  color: #8caecb;
}
.nav {
  gap: 2px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #35506a transparent;
  padding: 0 2px;
}
.nav button {
  border-radius: 10px;
  color: #aabed1;
  min-height: 42px;
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.005em;
  gap: 11px;
}
.nav button .ico {
  width: 21px;
}
.nav button .ui-icon {
  width: 19px;
  height: 19px;
}
.nav button.active {
  background: #1768d8;
  color: #fff;
  box-shadow:
    inset 3px 0 #a7d0ff,
    0 6px 16px #020f2350;
}
.nav button:hover:not(.active) {
  background: #ffffff15;
  color: #fff;
}
.sidefoot {
  background: #ffffff0b;
  border: 1px solid #ffffff1c;
  border-radius: 12px;
  margin: 8px 4px 0;
  padding: 13px 14px;
  font-size: 12px;
  color: #a9c5dc;
}
.main {
  padding: 34px clamp(22px, 3vw, 48px) 110px;
  max-width: 1280px;
}
.top {
  margin-bottom: 26px;
  align-items: flex-start;
}
.eyebrow {
  font-size: 11px;
  color: #2374d8;
  letter-spacing: 0.16em;
}
.top h1 {
  color: #102541;
  letter-spacing: -0.055em;
  line-height: 1.17;
  margin-top: 10px;
  margin-bottom: 7px;
}
.top p {
  color: #617992;
  font-size: 15px;
}
.avatar {
  background: linear-gradient(135deg, #e4f1ff, #fff);
  border: 1px solid #c8dff9;
  color: #0c61ce;
  box-shadow: 0 3px 12px #1056a011;
  width: 45px;
  height: 45px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 6px 25px #1c467909;
  padding: 23px;
}
.hero {
  background:
    radial-gradient(circle at 83% 28%, #2475c591, transparent 32%),
    linear-gradient(120deg, #092442 0%, #0b457e 100%);
  min-height: 280px;
  border: 1px solid #28537d;
  box-shadow: 0 20px 40px #0c437529;
  padding: 31px;
}
.hero:after {
  content: "";
  right: -60px;
  top: -70px;
  width: 280px;
  height: 280px;
  border: 1px solid #ffffff36;
  border-radius: 50%;
  box-shadow:
    0 0 0 42px #ffffff0c,
    0 0 0 85px #ffffff08;
  pointer-events: none;
}
.hero .tag {
  border: 1px solid #ffffff36;
  color: #e3f3ff;
  background: #ffffff16;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.12em;
}
.hero h2 {
  letter-spacing: -0.055em;
  line-height: 1.14;
  margin: 16px 0 10px;
}
.hero p {
  line-height: 1.55;
  font-size: 15px;
}
.hero .primary {
  background: #fff;
  color: #0759c8;
  box-shadow: 0 10px 22px #001c3a33;
}
.hero .primary:hover {
  background: #e9f2ff;
}
.aside-stat {
  background: linear-gradient(145deg, #fff, #eaf3ff);
  border-color: #d4e5f8;
  min-height: 280px;
}
.aside-stat .big {
  font-size: 54px;
  letter-spacing: -0.06em;
}
.aside-stat .eyebrow {
  margin-bottom: 8px;
}
.aside-stat p {
  font-size: 14px;
}
.primary {
  background: #0c61da;
  border-radius: 10px;
  padding: 12px 17px;
  box-shadow: 0 7px 15px #0d63e829;
}
.primary:hover {
  background: var(--blue-strong);
}
.secondary {
  border-color: #d8e5f3;
  color: #315778;
  border-radius: 10px;
}
.secondary:hover {
  border-color: #9abfea;
  background: #f1f7ff;
}
.section-head {
  margin: 30px 0 15px;
}
.section-head h2,
.page-title {
  letter-spacing: -0.035em;
  color: #172e4d;
}
.quick {
  gap: 12px;
}
.quick button {
  border: 1px solid #e0eaf5;
  border-radius: 16px;
  padding: 19px 16px;
  box-shadow: 0 5px 18px #1b426b08;
  min-height: 120px;
  line-height: 1.3;
}
.quick button:hover,
.feature:hover,
.dir-chip:hover {
  border-color: #95bff1;
  box-shadow: 0 12px 28px #1b63c616;
  transform: translateY(-2px);
}
.quick .bubble {
  background: linear-gradient(135deg, #e8f2ff, #f4f8ff);
  border: 1px solid #dcecff;
  border-radius: 11px;
}
.row {
  border-radius: 13px;
  box-shadow: 0 4px 16px #163f6c07;
}
.row .bubble {
  background: #eef5ff;
  border-radius: 11px;
}
.row b {
  font-size: 14px;
}
.row .muted {
  font-size: 12px;
}
.row button {
  background: #eaf3ff;
}
.notice {
  background: #eff6ff;
  border-left: 3px solid #2876db;
  color: #405e7d;
  font-size: 14px;
}
.feature,
.dir-chip,
.metric-grid .metric {
  box-shadow: 0 5px 18px #1b426b08;
}
.feature {
  border-radius: 15px;
  padding: 20px;
}
.feature > span {
  background: #ecf4ff;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 22px;
}
.feature b {
  color: #173554;
}
.tabs {
  scrollbar-width: thin;
}
.tabs button {
  color: #59738f;
  font-size: 13px;
}
.tabs button.active {
  box-shadow: 0 5px 12px #0d63e825;
}
.quiz-head {
  font-size: 14px;
}
.question {
  letter-spacing: -0.03em;
  color: #112746;
}
.option {
  min-height: 54px;
  border-radius: 11px;
}
.option:hover {
  border-color: #8bb8ef;
  background: #f7fbff;
}
.option.selected {
  box-shadow: 0 0 0 2px #0d63e81c;
}
.palette button {
  border-radius: 8px;
  min-width: 39px;
}
.review {
  padding: 18px 3px;
}
.review b {
  color: #193652;
}
.score .medal {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  margin: 0 auto 10px;
  background: #fff5de;
}
.score strong {
  letter-spacing: -0.06em;
}
.bank-item h2 {
  color: #193552;
}
.bank-answer {
  border: 1px solid #c9ead9;
}
.exam-hero {
  background: linear-gradient(130deg, #e9f3ff, #fff 73%);
  border-color: #d2e3f8;
}
.check-row:hover {
  background: #f7faff;
}
.task {
  font-size: 14px;
}
input:focus-visible,
select:focus-visible {
  outline: 3px solid #7db4f8;
  outline-offset: 1px;
}
.bottom button.active .ui-icon {
  stroke-width: 2.5;
}
@media (max-width: 900px) {
  .main {
    max-width: 720px;
    padding: 22px 17px 96px;
  }
  .bottom {
    border-top: 1px solid #d7e5f5;
    box-shadow: 0 -7px 24px #0f37601c;
    padding-top: 9px;
  }
  .bottom button {
    min-height: 48px;
    gap: 4px;
    font-size: 11px;
  }
  .bottom .ui-icon {
    width: 22px;
    height: 22px;
  }
  .hero,
  .aside-stat {
    min-height: unset;
  }
  .aside-stat {
    gap: 14px;
  }
  .top h1 {
    font-size: 28px;
  }
  .top p {
    font-size: 14px;
  }
}
@media (max-width: 560px) {
  .main {
    padding: 18px 14px 100px;
  }
  .top {
    margin-bottom: 18px;
  }
  .top h1 {
    font-size: 26px;
  }
  .top .eyebrow {
    font-size: 10px;
  }
  .avatar {
    width: 39px;
    height: 39px;
  }
  .card {
    padding: 17px;
    border-radius: 15px;
  }
  .hero {
    padding: 22px;
    min-height: 245px;
  }
  .hero h2 {
    font-size: 26px;
    max-width: 290px;
  }
  .hero p {
    font-size: 14px;
    max-width: 285px;
  }
  .hero:after {
    width: 200px;
    height: 200px;
    right: -90px;
    top: -80px;
  }
  .quick {
    gap: 8px;
  }
  .quick button {
    padding: 13px 9px;
    min-height: 105px;
    font-size: 11px;
  }
  .quick .bubble {
    width: 34px;
    height: 34px;
  }
  .section-head h2 {
    font-size: 19px;
  }
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .feature {
    padding: 14px;
    min-height: 130px;
  }
  .feature b {
    font-size: 14px;
  }
  .feature small {
    font-size: 12px;
    line-height: 1.3;
  }
  .feature > span {
    width: 38px;
    height: 38px;
  }
  .row {
    padding: 12px;
  }
  .row .content {
    overflow: hidden;
  }
  .row b {
    line-height: 1.3;
  }
  .row button {
    white-space: nowrap;
  }
  .chip-grid {
    gap: 8px;
  }
  .dir-chip {
    padding: 13px;
    min-height: 110px;
  }
  .bottom button {
    min-width: 48px;
    font-size: 10px;
  }
  .bottom .ui-icon {
    width: 20px;
    height: 20px;
  }
  .quiz-actions {
    justify-content: space-between;
  }
  .quiz-actions .secondary,
  .quiz-actions .primary {
    font-size: 13px;
    padding: 10px;
  }
  .bank-item h2 {
    font-size: 17px;
  }
  .result-metrics b {
    font-size: 16px;
  }
}
@media (max-width: 360px) {
  .quick {
    grid-template-columns: repeat(2, 1fr);
  }
  .quick button {
    min-height: 85px;
  }
  .bottom button {
    min-width: 42px;
    font-size: 9px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .feature {
    min-height: 95px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
}
/* Keep short pages at the top of the desktop layout. */
.main {
  margin: 0 auto;
  align-self: start;
}
/* Android/iOS browsers can request a desktop-width viewport on a phone.
   Touch-capable narrow devices still receive the app navigation. */
@media (pointer: coarse) and (max-width: 1200px), (max-device-width: 800px) {
  .shell {
    display: block;
    min-height: 100vh;
  }
  .sidebar {
    display: none;
  }
  .main {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    margin: 0;
    padding: 20px 18px 108px;
  }
  .bottom {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    justify-content: space-around;
    background: #fff;
    border-top: 1px solid #d7e5f5;
    box-shadow: 0 -7px 24px #0f37601c;
    padding: 9px 8px calc(9px + env(safe-area-inset-bottom));
  }
  .bottom button {
    min-width: 48px;
    min-height: 49px;
    gap: 4px;
    font-size: 11px;
  }
  .bottom .ui-icon {
    width: 21px;
    height: 21px;
  }
  .hero,
  .aside-stat {
    grid-column: span 12;
    min-height: unset;
  }
  .hero {
    min-height: 235px;
  }
  .grid {
    gap: 13px;
  }
  .quick {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .feature-grid,
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (pointer: coarse) and (min-width: 901px) and (max-width: 1200px),
  (min-width: 901px) and (max-device-width: 800px) {
  
  .main {
    padding-top: 18px;
  }
}
@media (max-width: 420px) {
  .main {
    padding: 18px 14px 100px;
  }
  .quick {
    gap: 8px;
  }
}

/* Full navigation for mobile and phones using desktop site mode. */
.menu-trigger {
  display: none;
  align-items: center;
  gap: 6px;
  justify-content: center;
  min-width: 68px;
  min-height: 42px;
  border: 1px solid #d4e4f6;
  background: #fff;
  color: #103b63;
  border-radius: 12px;
  font-size: 20px;
  cursor: pointer;
}
.menu-trigger span {
  font-size: 12px;
  font-weight: 700;
}
.menu-overlay[hidden] {
  display: none !important;
}
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
}
.menu-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #071b32a8;
  cursor: pointer;
}
.menu-drawer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(340px, 88vw);
  background: #fff;
  box-shadow: 12px 0 36px #05172d3d;
  display: flex;
  flex-direction: column;
}
.menu-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 18px;
  border-bottom: 1px solid #e1eaf4;
  color: #123d63;
}
.menu-title button {
  width: 38px;
  height: 38px;
  border: 1px solid #d9e5f2;
  border-radius: 10px;
  background: #f6f9ff;
  font-size: 18px;
}
.menu-list {
  overflow-y: auto;
  padding: 10px 12px 30px;
}
.menu-list button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  padding: 9px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #183d5c;
  text-align: left;
  font-weight: 650;
  cursor: pointer;
}
.menu-list button:hover,
.menu-list button.active {
  background: #edf5ff;
  color: #075bb9;
}
.menu-list .ui-icon {
  width: 19px;
  height: 19px;
  flex: none;
}
.premium-pill {
  margin-left: auto;
  padding: 4px 7px;
  border-radius: 7px;
  background: #fff1d1;
  color: #865707;
  font-size: 10px;
}
.premium-shortcut {
  background: #fff9ed !important;
  border-color: #f3dda9 !important;
}
body.menu-open {
  overflow: hidden;
}
@media (max-width: 900px) {
  .menu-trigger {
    display: flex;
  }
  .top {
    gap: 12px;
  }
  .top > div:nth-child(2) {
    flex: 1;
    min-width: 0;
  }
}
@media (pointer: coarse) and (max-width: 1200px), (max-device-width: 800px) {
  .menu-trigger {
    display: flex;
  }
  .top {
    gap: 12px;
  }
  .top > div:nth-child(2) {
    flex: 1;
    min-width: 0;
  }
}

/* A richer light surface and a persistent, accessible dark appearance. */
:root {
  --app-bg: #f3f7ff;
  --surface: #fff;
  --surface-alt: #eaf3ff;
  --ink: #142d4b;
  --soft: #607b98;
  --line: #dbe7f5;
  --accent: #0868e6;
  background: var(--app-bg);
  color: var(--ink);
}
body {
  background:
    radial-gradient(circle at 84% -10%, #dcecff 0, transparent 38%),
    var(--app-bg);
  min-height: 100vh;
}
.main {
  position: relative;
}
.main:before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  pointer-events: none;
  width: min(440px, 45vw);
  height: 260px;
  background: radial-gradient(ellipse, #94c8ff22, transparent 70%);
}
.card,
.quick button,
.feature,
.dir-chip,
.row,
.option,
.menu-drawer {
  transition:
    background 0.28s ease,
    color 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    transform 0.24s ease;
}
.card:not(.hero):hover,
.quick button:hover,
.feature:hover,
.dir-chip:hover {
  box-shadow: 0 16px 36px #1b64b51b;
}
.primary,
.secondary,
.tabs button,
.nav button,
.menu-list button,
.bottom button,
.theme-toggle {
  transition:
    background 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.22s ease;
}
.primary:hover,
.secondary:hover {
  transform: translateY(-2px);
}
.primary:active,
.secondary:active,
.quick button:active,
.theme-toggle:active {
  transform: scale(0.97);
}
.hero {
  background:
    radial-gradient(circle at 93% 12%, #1d7ed2 0, #0b487d 27%, transparent 48%),
    linear-gradient(126deg, #071e35, #075088);
  box-shadow: 0 18px 38px #0b44843a;
}
.hero:after {
  content: "";
  width: 270px;
  height: 270px;
  right: -85px;
  top: -105px;
  border-radius: 50%;
  border: 1px solid #ffffff30;
  box-shadow:
    0 0 0 38px #ffffff08,
    0 0 0 78px #ffffff05;
  animation: hero-drift 7s ease-in-out infinite alternate;
}
@keyframes hero-drift {
  to {
    transform: translate(-18px, 18px) scale(1.05);
  }
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 6px 10px;
  border: 1px solid #cbdff5;
  border-radius: 100px;
  background: #fff;
  color: #184065;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 5px 14px #1a4e850d;
}
.theme-toggle:hover {
  border-color: #6aa7ef;
  box-shadow: 0 7px 17px #0868e626;
}
.theme-glyph {
  font-size: 20px;
  line-height: 1;
}
.theme-track {
  display: inline-flex;
  align-items: center;
  width: 33px;
  height: 19px;
  padding: 2px;
  border-radius: 20px;
  background: #c8d9eb;
  transition: background 0.24s;
}
.theme-track i {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 4px #1235;
  transition: transform 0.24s;
}
[data-theme="dark"] .theme-track {
  background: #388cf8;
}
[data-theme="dark"] .theme-track i {
  transform: translateX(14px);
}
.drawer-theme {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  border-bottom: 1px solid #e1eaf4;
  font-size: 13px;
  font-weight: 700;
  color: #45617d;
}
.drawer-theme .theme-toggle {
  box-shadow: none;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #56a8ff;
  outline-offset: 3px;
}
[data-theme="dark"] {
  --app-bg: #091626;
  --surface: #11263a;
  --surface-alt: #1a3552;
  --ink: #e8f2ff;
  --soft: #a8bfd7;
  --line: #29455f;
  --accent: #6aabff;
  color-scheme: dark;
  background: var(--app-bg);
  color: var(--ink);
}
[data-theme="dark"] body {
  background:
    radial-gradient(circle at 83% -5%, #10385d 0, transparent 38%), #091626;
  color: var(--ink);
}
[data-theme="dark"] .sidebar {
  background: #07111f;
  border-right: 1px solid #203a51;
}
[data-theme="dark"] .sidefoot {
  background: #10253b;
  border-color: #31506b;
}
[data-theme="dark"] .top h1,
[data-theme="dark"] .section-head h2,
[data-theme="dark"] .page-title,
[data-theme="dark"] .question,
[data-theme="dark"] .feature b,
[data-theme="dark"] .review b,
[data-theme="dark"] .bank-item h2,
[data-theme="dark"] .row b {
  color: var(--ink);
}
[data-theme="dark"] .top p,
[data-theme="dark"] .muted,
[data-theme="dark"] .aside-stat p,
[data-theme="dark"] .feature small,
[data-theme="dark"] .quiz-head,
[data-theme="dark"] .drawer-theme {
  color: var(--soft);
}
[data-theme="dark"] .eyebrow,
[data-theme="dark"] .section-head button {
  color: #8ac0ff;
}
[data-theme="dark"] .card,
[data-theme="dark"] .row,
[data-theme="dark"] .quick button,
[data-theme="dark"] .feature,
[data-theme="dark"] .dir-chip,
[data-theme="dark"] .option,
[data-theme="dark"] .menu-drawer,
[data-theme="dark"] .avatar,
[data-theme="dark"] .theme-toggle,
[data-theme="dark"] .menu-trigger {
  background: #11263a;
  border-color: #29455f;
  color: #e8f2ff;
  box-shadow: 0 9px 25px #0002;
}
[data-theme="dark"] .hero {
  background:
    radial-gradient(circle at 90% 10%, #175b9c 0, #0d355f 32%, transparent 52%),
    linear-gradient(125deg, #081b30, #0b416d);
  border-color: #265581;
  color: #fff;
}
[data-theme="dark"] .aside-stat,
[data-theme="dark"] .exam-hero {
  background: linear-gradient(135deg, #173452, #10283e);
  border-color: #2b5278;
}
[data-theme="dark"] .aside-stat .big {
  color: #86baff;
}
[data-theme="dark"] .quick .bubble,
[data-theme="dark"] .row .bubble,
[data-theme="dark"] .feature > span,
[data-theme="dark"] .tabs button,
[data-theme="dark"] .row button,
[data-theme="dark"] .progress,
[data-theme="dark"] .palette button,
[data-theme="dark"] .metric,
[data-theme="dark"] .notice {
  background: #203c5a;
  color: #d9eaff;
  border-color: #315573;
}
[data-theme="dark"] .option.selected,
[data-theme="dark"] .tabs button.active,
[data-theme="dark"] .nav button.active,
[data-theme="dark"] .menu-list button.active {
  background: #1956a4;
  color: #fff;
  border-color: #5a9fec;
}
[data-theme="dark"] .secondary,
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea,
[data-theme="dark"] .search,
[data-theme="dark"] .plan-form input {
  background: #142c43;
  border-color: #31516d;
  color: #eef6ff;
}
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
  color: #95aac0;
}
[data-theme="dark"] .bottom {
  background: #0d2033;
  border-color: #29455f;
  color: #dce9f6;
}
[data-theme="dark"] .bottom button {
  color: #a8bfd7;
}
[data-theme="dark"] .bottom button.active {
  color: #83bcff;
}
[data-theme="dark"] .menu-title,
[data-theme="dark"] .drawer-theme {
  border-color: #2b4964;
}
[data-theme="dark"] .menu-title,
[data-theme="dark"] .menu-list button {
  color: #e7f1ff;
}
[data-theme="dark"] .menu-list button:hover {
  background: #203d5c;
}
[data-theme="dark"] .menu-title button {
  background: #213c56;
  border-color: #355773;
  color: #fff;
}
[data-theme="dark"] .premium-shortcut {
  background: #45361f !important;
  border-color: #926d32 !important;
  color: #ffe6a5 !important;
}
[data-theme="dark"] .premium-pill {
  background: #5c431d;
  color: #ffe5a3;
}
[data-theme="dark"] .right {
  color: #83dfb5;
}
[data-theme="dark"] .wrong {
  color: #ff9ca0;
}
[data-theme="dark"] .notice {
  color: #d9eaff;
}
[data-theme="dark"] .pill {
  background: #1a483b;
  color: #b5f7d2;
}
@media (max-width: 560px) {
  .top-actions {
    gap: 6px;
  }
  .top-actions .theme-toggle {
    min-width: 42px;
    width: 42px;
    padding: 6px;
  }
  .top-actions .theme-word,
  .top-actions .theme-track {
    display: none;
  }
  .top .avatar {
    flex: none;
  }
  .top .eyebrow {
    letter-spacing: 0.08em;
  }
  .theme-toggle {
    min-height: 44px;
  }
}
@media (pointer: coarse) and (max-width: 1200px), (max-device-width: 800px) {
  .top-actions .theme-toggle {
    min-width: 44px;
    width: 44px;
    padding: 6px;
  }
  .top-actions .theme-word,
  .top-actions .theme-track {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero:after {
    animation: none;
  }
}

/* Clear, touch-friendly bottom navigation without boxed native button styling. */
.bottom {
  align-items: stretch;
  gap: 2px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.bottom button,
.bottom button:hover,
.bottom button:active {
  appearance: none;
  -webkit-appearance: none;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 14px !important;
  display: flex !important;
  flex: 1 1 0;
  min-width: 0;
  max-width: 120px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 2px !important;
  line-height: 1.15;
  color: #627b98;
  font-weight: 650;
  transform: none !important;
}
.bottom button > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 26px;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 11px;
  transition:
    background 0.25s,
    color 0.25s,
    transform 0.25s;
}
.bottom button .ui-icon {
  width: 21px;
  height: 21px;
  stroke-width: 1.8;
}
.bottom button.active {
  color: #0966d4 !important;
}
.bottom button.active > span {
  background: #e6f1ff !important;
}
.bottom button.active .ui-icon {
  stroke-width: 2.3;
}
.bottom button:hover > span {
  transform: translateY(-2px);
}
[data-theme="dark"] .bottom button {
  color: #9ab3ce !important;
}
[data-theme="dark"] .bottom button.active {
  color: #91c5ff !important;
}
[data-theme="dark"] .bottom button.active > span {
  background: #17456b !important;
}
.avatar {
  overflow: hidden;
  padding: 0;
  border: 2px solid #fff;
  background: #d9e9f7;
  box-shadow: 0 3px 14px #0a31552a;
}
.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
[data-theme="dark"] .avatar {
  border-color: #89bfff;
  background: #183f61;
  box-shadow:
    0 0 0 2px #294762,
    0 5px 15px #0005;
}
@media (max-width: 560px) {
  .bottom button {
    font-size: 11px !important;
    min-height: 54px !important;
  }
  .bottom button .ui-icon {
    width: 22px;
    height: 22px;
  }
}

/* Community invitation stays visible in the core study flow. */
.telegram-card {
  display: flex;
  align-items: center;
  gap: 17px;
  margin: 20px 0 10px;
  padding: 19px 22px;
  border: 1px solid #a9d8f5;
  border-radius: 18px;
  background: linear-gradient(115deg, #e9f8ff, #f6fbff 66%, #e6f4ff);
  box-shadow: 0 9px 24px #1673a115;
}
.telegram-symbol {
  display: grid;
  place-items: center;
  flex: none;
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: linear-gradient(135deg, #39bdf1, #117acc);
  color: white;
  font-size: 27px;
  transform: rotate(-20deg);
}
.telegram-card > div {
  flex: 1;
  min-width: 0;
}
.telegram-kicker {
  color: #1573ad;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
}
.telegram-card h2 {
  margin: 4px 0;
  font:
    800 18px "Plus Jakarta Sans",
    sans-serif;
  color: #123b5d;
}
.telegram-card p {
  margin: 0;
  color: #4d6b82;
  font-size: 13px;
  line-height: 1.45;
}
.telegram-join,
.menu-telegram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border: 0;
  border-radius: 11px;
  background: #168ac9;
  color: #fff;
  font-weight: 800;
  white-space: nowrap;
  padding: 12px 15px;
  transition:
    transform 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}
.telegram-join:hover,
.menu-telegram:hover {
  background: #0f72ad;
  transform: translateY(-2px);
  box-shadow: 0 7px 16px #1388c83b;
}
.menu-telegram {
  display: flex;
  margin: 0 12px 16px;
  white-space: normal;
  text-align: center;
  font-size: 13px;
}
.menu-list {
  flex: 1;
}
.menu-drawer {
  min-height: 0;
}
[data-theme="dark"] .telegram-card {
  background: linear-gradient(115deg, #133650, #112a40 70%, #143e5c);
  border-color: #285f80;
  box-shadow: 0 8px 24px #0002;
}
[data-theme="dark"] .telegram-card h2 {
  color: #eef9ff;
}
[data-theme="dark"] .telegram-card p {
  color: #afc9de;
}
[data-theme="dark"] .telegram-kicker {
  color: #7dd2ff;
}
@media (max-width: 650px) {
  .telegram-card {
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px;
  }
  .telegram-card > div {
    flex-basis: calc(100% - 70px);
  }
  .telegram-join {
    width: 100%;
    min-height: 44px;
  }
}
/* Full mock instructions, section palette and answer review. */
.mock-intro h2 {
  font:
    800 25px "Plus Jakarta Sans",
    sans-serif;
  margin: 10px 0 14px;
  color: var(--ink);
}
.mock-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.mock-chips span {
  padding: 7px 10px;
  border-radius: 20px;
  background: #e8f3ff;
  color: #155eaf;
  font-size: 13px;
  font-weight: 800;
}
.mock-sections {
  display: grid;
  gap: 8px;
  margin: 14px 0 18px;
}
.mock-sections > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-alt);
}
.mock-sections span {
  color: var(--soft);
  white-space: nowrap;
}
.mock-intro .muted {
  line-height: 1.65;
}
.mock-palette {
  display: block;
  margin-top: 18px;
}
.mock-palette-group {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.mock-palette-group > b {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
}
.mock-palette-group > div {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 6px;
}
.mock-palette-group button {
  height: 40px;
  min-width: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-alt);
  color: var(--ink);
  font-weight: 800;
}
.mock-palette-group button.done {
  background: #e6f5ed;
  border-color: #87d7a5;
  color: #146333;
}
.mock-palette-group button.current {
  background: #0d63e8;
  border-color: #0d63e8;
  color: #fff;
}
.mock-status {
  margin-top: 18px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 700;
}
.mock-submit {
  margin-top: 14px;
}
.mock-section-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.mock-section-results .card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px;
}
.mock-section-results strong {
  color: var(--accent);
  font-size: 20px;
  white-space: nowrap;
}
.source-link {
  display: inline-flex;
  margin-top: 9px;
  color: #1265b8;
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}
[data-theme="dark"] .mock-chips span {
  background: #1c4266;
  color: #9bd0ff;
}
[data-theme="dark"] .mock-palette-group button {
  background: #18364f;
  border-color: #35546e;
  color: #e6f2ff;
}
[data-theme="dark"] .mock-palette-group button.done {
  background: #184b37;
  border-color: #3c9666;
  color: #baf4d0;
}
[data-theme="dark"] .mock-palette-group button.current {
  background: #1663c0;
  border-color: #74a9ea;
  color: #fff;
}
[data-theme="dark"] .source-link {
  color: #8bc5ff;
}
@media (max-width: 650px) {
  .mock-palette-group > div {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .mock-section-results {
    grid-template-columns: 1fr;
  }
  .mock-sections > div {
    font-size: 13px;
  }
  .mock-intro h2 {
    font-size: 21px;
  }
}

.score-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.score-close {
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.score-close:hover,
.score-close:focus-visible {
  background: rgba(110, 170, 240, 0.16);
  outline-offset: 2px;
}

/* Keep the exam dashboard readable across phone, tablet and laptop widths. */
@media (min-width: 901px) and (max-width: 1180px) and (pointer: fine) {
  .shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .main {
    padding: 28px 24px 72px;
    max-width: 100%;
  }
  .hero,
  .aside-stat {
    grid-column: span 12;
    min-height: unset;
  }
  .aside-stat {
    gap: 16px;
  }
}
@media (max-width: 900px), (pointer: coarse) {
  .main {
    min-width: 0;
  }
  .row,
  .card,
  .notice {
    min-width: 0;
  }
  .row .content {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .bottom {
    overflow-x: auto;
  }
}
@media (max-width: 560px) {
  .quick {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .quick button {
    min-height: 92px;
    font-size: 14px;
    line-height: 1.3;
  }
  .row {
    gap: 10px;
  }
  .row button {
    flex: none;
  }
  .top h1 {
    overflow-wrap: anywhere;
  }
}
@media (pointer: coarse) and (min-width: 901px) and (max-width: 1200px),
  (min-width: 901px) and (max-device-width: 800px) {
  .main {
    max-width: 780px;
    margin-inline: auto;
  }
  .quick button {
    font-size: 14px;
    line-height: 1.3;
  }
}

/* An installed Android PWA may inherit Chrome's desktop-site viewport. */
.pwa-force-phone .shell {
  display: block;
  min-height: 100vh;
}
.pwa-force-phone .sidebar {
  display: none;
}
.pwa-force-phone .main {
  width: 100%;
  max-width: none;
  padding: 18px 14px calc(100px + env(safe-area-inset-bottom));
}
.pwa-force-phone .bottom {
  display: flex;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
}
.pwa-force-phone .hero,
.pwa-force-phone .aside-stat {
  grid-column: span 12;
  min-height: unset;
}
.pwa-force-phone .quick {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.pwa-force-phone .quick button {
  font-size: 14px;
  min-height: 92px;
}
.pwa-force-phone .menu-trigger {
  display: flex;
}
.pwa-force-phone .top {
  gap: 10px;
}
.pwa-force-phone .top > div:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.pwa-force-phone .telegram-card {
  flex-wrap: wrap;
}
.pwa-force-phone .telegram-join {
  width: 100%;
}
.pwa-force-phone .mock-palette-group > div {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.bank-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 12px;
}
.bank-controls label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.bank-controls select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 11px;
  padding: 12px 13px;
  font: inherit;
  font-weight: 600;
}
.bank-controls select:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.bank-count {
  margin: 12px 0;
  color: var(--muted);
  font-size: 14px;
}
.bank-item h2 {
  overflow-wrap: anywhere;
}
.bank-meta {
  flex-wrap: wrap;
  gap: 8px;
}
[data-theme="dark"] .bank-controls select {
  background: #132c42;
  color: #ecf5ff;
  border-color: #33536d;
}
@media (max-width: 650px) {
  .bank-controls {
    grid-template-columns: 1fr 1fr;
  }
  .bank-controls label:first-child {
    grid-column: 1/-1;
  }
}
@media (max-width: 380px) {
  .bank-controls {
    grid-template-columns: 1fr;
  }
  .bank-controls label:first-child {
    grid-column: auto;
  }
}

.review-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 16px;
}
.review-toolbar .tabs {
  margin: 0;
}
.review-toolbar button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}
.review-toolbar > .secondary {
  min-height: 42px;
}
@media (max-width: 650px) {
  .review-toolbar .tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .review-toolbar .tabs button {
    min-width: 0;
  }
  .review-toolbar > .secondary {
    width: 100%;
  }
}

/* Study goal, daily tasks and personal scores. */
.plan-goal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 1fr);
  gap: 22px;
  align-items: start;
}
.plan-goal h2 {
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.3;
  margin: 10px 0 8px;
}
.plan-goal-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.plan-goal-form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}
.plan-goal-form input,
.plan-goal-form select,
.plan-form select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
}
.plan-goal-form button {
  grid-column: 1/-1;
}
.plan-metrics,
.leader-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 16px 0 22px;
}
.plan-form > div {
  display: grid;
  grid-template-columns: minmax(180px, 2fr) minmax(140px, 1fr) minmax(
      140px,
      1fr
    ) auto;
  align-items: end;
}
.plan-form > div input {
  margin: 0;
}
.plan-form > div button {
  white-space: nowrap;
  min-height: 44px;
}
.plan-group {
  margin: 20px 0;
}
.plan-group .section-head {
  margin-bottom: 12px;
}
.plan-group .task {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  margin: 8px 0;
  padding: 12px 14px;
  min-width: 0;
}
.plan-group .task label {
  min-width: 0;
  flex: 1;
  align-items: flex-start;
}
.plan-group .task input {
  flex: none;
  margin-top: 4px;
  accent-color: var(--blue);
}
.plan-group .task span {
  min-width: 0;
  overflow-wrap: anywhere;
  display: grid;
  gap: 4px;
}
.plan-group .task small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.plan-empty {
  color: var(--muted);
  padding: 16px;
}
.leader-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.leader-row .leader-rank {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e7f1ff;
  color: #1259ae;
  font-weight: 800;
}
.leader-row > strong {
  white-space: nowrap;
}
.leader-row > strong small {
  color: var(--muted);
  font-size: 12px;
}
[data-theme="dark"] .plan-goal-form input,
[data-theme="dark"] .plan-goal-form select,
[data-theme="dark"] .plan-form select {
  background: #132c42;
  color: #ecf5ff;
  border-color: #33536d;
}
[data-theme="dark"] .leader-row .leader-rank {
  background: #183b5d;
  color: #b8dcff;
}
@media (max-width: 920px) {
  .plan-goal {
    grid-template-columns: 1fr;
  }
  .plan-form > div {
    grid-template-columns: 1fr 1fr;
  }
  .plan-form > div input:first-child {
    grid-column: 1/-1;
  }
  .plan-form > div button {
    grid-column: 1/-1;
  }
}
@media (max-width: 560px) {
  .plan-goal-form {
    grid-template-columns: 1fr;
  }
  .plan-form > div {
    grid-template-columns: 1fr;
  }
  .plan-form > div input:first-child,
  .plan-form > div button {
    grid-column: auto;
  }
  .plan-metrics,
  .leader-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .plan-group .task {
    align-items: flex-start;
  }
  .plan-group .task button {
    padding: 8px;
    font-size: 12px;
  }
  .leader-row {
    gap: 8px;
  }
  .leader-row > strong {
    font-size: 13px;
  }
}

.pdf-preview {
  margin: 18px 0 22px;
  line-height: 1.55;
}
.pdf-filter-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.pdf-filter-grid label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.pdf-filter-grid input,
.pdf-filter-grid select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
}
.pdf-filter-grid :is(input, select):focus-visible,
.pdf-card button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.pdf-count {
  font-size: 14px;
  color: var(--muted);
  margin: 22px 0 12px;
}
.pdf-catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.pdf-card,
.pdf-detail {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 9px 24px #0d36610c;
  min-width: 0;
}
.pdf-card-top,
.pdf-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pdf-symbol {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #eaf4ff;
  color: #1263aa;
}
.pdf-access {
  font-size: 12px;
  font-weight: 800;
  background: #e8f8f0;
  color: #117452;
  border-radius: 999px;
  padding: 7px 11px;
}
.pdf-access.pdf-premium {
  background: #fff1d6;
  color: #895b12;
}
.pdf-card h2 {
  font-size: 17px;
  line-height: 1.3;
  margin: 16px 0 7px;
}
.pdf-card p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
}
.pdf-card-foot {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.pdf-card-foot > span {
  font-size: 12px;
  color: var(--muted);
}
.pdf-card-foot button {
  white-space: nowrap;
}
.pdf-back {
  margin: 18px 0;
}
.pdf-detail {
  max-width: 760px;
}
.pdf-detail h2 {
  font-size: clamp(22px, 3vw, 30px);
  margin: 18px 0 5px;
}
.pdf-detail .notice {
  margin: 20px 0;
}
.pdf-detail h3 {
  font-size: 17px;
}
.pdf-detail li {
  margin: 8px 0;
}
.pdf-detail > button {
  margin-top: 14px;
}
[data-theme="dark"] .pdf-card,
[data-theme="dark"] .pdf-detail {
  background: #11263a;
  border-color: #29455f;
  box-shadow: 0 9px 25px #0002;
}
[data-theme="dark"] .pdf-symbol {
  background: #203c5a;
  color: #a8d7ff;
}
[data-theme="dark"] .pdf-access {
  background: #194938;
  color: #b5f7d2;
}
[data-theme="dark"] .pdf-premium {
  background: #514022;
  color: #ffdb91;
}
@media (max-width: 900px) {
  .pdf-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .pdf-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pdf-filter-grid label:first-child {
    grid-column: 1/-1;
  }
  .pdf-catalog-grid {
    grid-template-columns: 1fr;
  }
  .pdf-card {
    padding: 16px;
  }
  .pdf-card-foot {
    flex-wrap: wrap;
  }
}

.directory-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}
.directory-filters button {
  white-space: nowrap;
  min-height: 42px;
}
@media (max-width: 560px) {
  .directory-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 7px;
    scrollbar-width: thin;
  }
  .directory-filters button {
    flex: none;
  }
}

.score-tool {
  max-width: 780px;
}
.score-tool .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.score-tool .form-grid label {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.score-tool .form-grid input,
.score-tool .form-grid select {
  width: 100%;
  min-width: 0;
  min-height: 45px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}
.score-tool .form-grid button {
  grid-column: 1/-1;
}
.score-tool .score-output {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.score-tool .score-output h2 {
  font-size: 22px;
  margin: 0 0 16px;
}
.score-breakdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.score-breakdown div {
  background: #eef6ff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 8px;
  display: grid;
  gap: 3px;
}
.score-breakdown b {
  font-size: 19px;
}
.score-breakdown span {
  font-size: 12px;
  color: var(--muted);
}
.score-error {
  color: #b32636;
  font-weight: 700;
}
[data-theme="dark"] .score-breakdown div {
  background: #203c5a;
  border-color: #315573;
}
@media (max-width: 560px) {
  .score-tool .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .score-tool .form-grid label:first-child {
    grid-column: 1/-1;
  }
  .score-breakdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 360px) {
  .score-tool .form-grid {
    grid-template-columns: 1fr;
  }
}

/* The installed app may retain a desktop viewport even on a phone. Keep the planner usable in that mode. */
.pwa-force-phone .page,
.pwa-force-phone .card,
.pwa-force-phone .plan-goal,
.pwa-force-phone .plan-goal > div,
.pwa-force-phone .plan-goal-form,
.pwa-force-phone .plan-form,
.pwa-force-phone .plan-form > div {
  min-width: 0;
  max-width: 100%;
}
.pwa-force-phone .plan-goal {
  grid-template-columns: minmax(0, 1fr);
}
.pwa-force-phone .plan-goal-form,
.pwa-force-phone .plan-form > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.pwa-force-phone .plan-goal-form label,
.pwa-force-phone .plan-form :is(input, select, button) {
  width: 100%;
  min-width: 0;
  grid-column: 1/-1;
}
.pwa-force-phone .plan-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.pwa-force-phone .plan-metrics .metric:last-child {
  grid-column: 1/-1;
}
.plan-goal,
.plan-goal-form,
.plan-goal-form label,
.plan-form,
.plan-form > div {
  min-width: 0;
}
.plan-goal-form :is(input, select),
.plan-form :is(input, select) {
  max-width: 100%;
  min-width: 0;
}
@media (max-width: 1100px) {
  .plan-goal {
    grid-template-columns: minmax(0, 1fr);
  }
  .plan-form > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .plan-form > div input:first-child,
  .plan-form > div button {
    grid-column: 1/-1;
  }
}
@media (max-width: 620px) {
  .plan-goal-form,
  .plan-form > div {
    grid-template-columns: minmax(0, 1fr);
  }
  .plan-goal-form label,
  .plan-form > div :is(input, select, button) {
    grid-column: 1/-1;
  }
  .plan-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .plan-metrics .metric:last-child {
    grid-column: 1/-1;
  }
}

.account-card {
  max-width: 640px;
  margin: 18px 0;
}
.account-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: #eaf4ff;
  color: #1163a5;
  font-size: 25px;
}
.account-card h2 {
  font-size: 23px;
  margin: 15px 0 7px;
}
.account-card #account-status {
  padding: 13px 15px;
  background: #eaf4ff;
  border-radius: 12px;
  color: #17517d;
  line-height: 1.45;
}
.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.account-actions button {
  min-height: 44px;
}
#google-signin {
  min-height: 46px;
  margin: 18px 0 2px;
}
[data-theme="dark"] .account-card #account-status,
[data-theme="dark"] .account-icon {
  background: #203c5a;
  color: #d9eaff;
}
@media (max-width: 560px) {
  .account-actions {
    display: grid;
  }
  .account-actions button {
    width: 100%;
  }
}


/* CHECKLIST CONTRAST FIX V1 */
.check-row {
  cursor: pointer;
  border-color: var(--line, #e6eef8);
}
.check-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}
[data-theme="dark"] .check-row {
  color: #e8f2ff;
  border-color: #29455f;
  background: transparent;
}
[data-theme="dark"] .check-row:hover,
[data-theme="dark"] .check-row:focus-within {
  background: #1a3552;
  color: #e8f2ff;
}
[data-theme="dark"] .check-row span {
  color: inherit;
}
.check-row input[type="checkbox"] {
  cursor: pointer;
  accent-color: #1677ff;
}
.check-row input:focus-visible {
  outline: 2px solid #6aabff;
  outline-offset: 3px;
}


/* QUESTION BANK LAYOUT FIX V1 */
.bank-item {
  padding: clamp(18px, 3vw, 28px);
}
.bank-item h2 {
  line-height: 1.45;
  margin: 18px 0;
}
.bank-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.bank-options > span {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 52px;
  padding: 14px 16px;
  box-sizing: border-box;
  border: 1px solid #cbd9e8;
  border-radius: 12px;
  background: #f5f8fc;
  color: #21384f;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.bank-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.bank-actions > button {
  margin: 0;
  min-height: 46px;
}
.saved-filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
  color: #31465b;
  cursor: pointer;
}
.saved-filter input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #1677ff;
}
[data-theme="dark"] .bank-options > span {
  background: #19334b;
  color: #edf5ff;
  border-color: #3a5874;
}
[data-theme="dark"] .bank-controls label,
[data-theme="dark"] .saved-filter {
  color: #e8f2ff;
}
[data-theme="dark"] .bank-count,
[data-theme="dark"] .bank-meta > span:last-child {
  color: #b5cbe0;
}
[data-theme="dark"] .bank-answer {
  background: #153a31;
  color: #e6fff3;
  border-color: #367461;
}
[data-theme="dark"] .bank-answer p {
  color: #d1ecdf;
}
@media (max-width: 600px) {
  .bank-options {
    grid-template-columns: minmax(0, 1fr);
  }
  .bank-actions > button {
    flex: 1 1 150px;
  }
}

/* HEADER WEBSITE LINK V1 */
.top-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.eh-website-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 10px 16px;
  box-sizing: border-box;
  border: 1px solid #c9def6;
  border-radius: 24px;
  background: #fff;
  color: #095cbd;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.eh-website-link:hover {
  background: #eaf3ff;
}
.eh-website-link:focus-visible {
  outline: 3px solid #6aabff;
  outline-offset: 3px;
}
[data-theme="dark"] .eh-website-link {
  background: #19334b;
  color: #e8f2ff;
  border-color: #3a5874;
}
[data-theme="dark"] .eh-website-link:hover {
  background: #244663;
}
@media (max-width: 600px) {
  .top-actions { gap: 8px; }
  .eh-website-link { padding: 9px 12px; font-size: 13px; }
}

/* PROFESSIONAL WEBSITE BUTTON V2 */
.top-actions {
  align-items: center;
  gap: 12px;
}
.top-actions .eh-website-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 16px;
  border: 1px solid #c4d9f5;
  border-radius: 14px;
  background: #f8fbff;
  color: #1456a8;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(20, 70, 130, .06);
  transition: background .18s ease, border-color .18s ease;
}
.eh-site-icon {
  width: 20px;
  height: 20px;
  flex: none;
}
.eh-site-arrow {
  width: 16px;
  height: 16px;
  flex: none;
}
.top-actions .eh-website-link:hover {
  background: #eaf3ff;
  border-color: #86b3ec;
}
[data-theme="dark"] .top-actions .eh-website-link {
  background: #15314a;
  border-color: #345773;
  color: #ddecff;
  box-shadow: none;
}
[data-theme="dark"] .top-actions .eh-website-link:hover {
  background: #204360;
  border-color: #6aabff;
}
@media (max-width: 600px) {
  .top-actions {
    flex-wrap: wrap;
    gap: 8px;
    max-width: 100%;
  }
  .top-actions .eh-website-link {
    padding: 10px 12px;
    gap: 7px;
    font-size: 13px;
  }
}

/* SIMPLE WEBSITE LINK RESTORED */
.top-actions .eh-website-link {
  gap: 7px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #c9def6;
  border-radius: 24px;
  background: #fff;
  color: #095cbd;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  box-shadow: none;
}
.top-actions .eh-website-link:hover {
  background: #eaf3ff;
  border-color: #c9def6;
}
[data-theme="dark"] .top-actions .eh-website-link {
  background: #19334b;
  color: #e8f2ff;
  border-color: #3a5874;
}
[data-theme="dark"] .top-actions .eh-website-link:hover {
  background: #244663;
  border-color: #3a5874;
}
@media (max-width: 600px) {
  .top-actions .eh-website-link {
    padding: 9px 12px;
    font-size: 13px;
  }
}

/* STUDY PDF LIBRARY V1 */
.eh-pdf-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:16px}
.eh-pdf-pack{display:flex;flex-direction:column;gap:12px;min-width:0;padding:24px}
.eh-pdf-pack h2{font-size:21px;line-height:1.4;margin:0;overflow-wrap:anywhere}
.eh-pdf-pack p{margin:0;line-height:1.6}
.eh-pdf-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:auto;padding-top:12px}
.eh-pdf-actions button{flex:1 1 120px;margin:0;min-height:46px}
[data-theme="dark"] .eh-pdf-pack{background:#11263a;color:#e8f2ff;border-color:#29455f}
[data-theme="dark"] .eh-pdf-pack h2{color:#e8f2ff}
[data-theme="dark"] .eh-pdf-pack .muted{color:#b5cbe0}
@media(max-width:700px){.eh-pdf-grid{grid-template-columns:minmax(0,1fr)}.eh-pdf-pack{padding:20px}}


/* EXAM CHECKLIST DESIGN V2 */
.main .check-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  margin: 10px 0;
  min-height: 58px;
  box-sizing: border-box;
  border: 1px solid #d8e3ef;
  border-radius: 12px;
  background: #f8fbff;
  color: #233c56;
  cursor: pointer;
}
.main .check-row span {
  color: inherit !important;
  min-width: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.main .check-row:hover,
.main .check-row:focus-within {
  background: #eaf3ff;
  border-color: #86b3ec;
}
.main .check-row:has(input:checked) {
  background: #e7f1ff;
  border-color: #3c85e5;
}
.main .check-row input[type="checkbox"] {
  width: 21px;
  height: 21px;
  margin: 0;
  flex: none;
  accent-color: #1677ff;
  cursor: pointer;
}
.main .check-row input:focus-visible {
  outline: 2px solid #6aabff;
  outline-offset: 3px;
}
[data-theme="dark"] .main .check-row {
  background: #153049 !important;
  color: #edf5ff !important;
  border-color: #34536e !important;
}
[data-theme="dark"] .main .check-row:hover,
[data-theme="dark"] .main .check-row:focus-within {
  background: #20415e !important;
  color: #fff !important;
  border-color: #6aabff !important;
}
[data-theme="dark"] .main .check-row:has(input:checked) {
  background: #183e65 !important;
  color: #fff !important;
  border-color: #6aabff !important;
}
@media (max-width: 600px) {
  .main .check-row { padding: 14px; gap: 12px; }
  .main .check-row span { font-size: 15px; }
}

/* CHECKLIST HOVER FIX V3 */
[data-theme="dark"] .check-row,
[data-theme="dark"] .check-row:hover,
[data-theme="dark"] .check-row:active,
[data-theme="dark"] .check-row:focus-within {
  background: #19334b !important;
  color: #edf5ff !important;
  border-color: #34536e !important;
}
[data-theme="dark"] .check-row:hover {
  background: #20415e !important;
}
[data-theme="dark"] .check-row span {
  color: #edf5ff !important;
}

/* SECTION AUDIT FIX V1 */
[data-theme="dark"] .check-row,[data-theme="dark"] .check-row:hover,[data-theme="dark"] .check-row:active,[data-theme="dark"] .check-row:focus-within{background:#19334b!important;color:#edf5ff!important;border-color:#34536e!important}
[data-theme="dark"] .check-row:hover{background:#20415e!important}
[data-theme="dark"] .check-row span{color:inherit!important}
[data-theme="dark"] .bank-options>span{background:#19334b;color:#edf5ff;border-color:#3a5874}
[data-theme="dark"] .bank-controls label,[data-theme="dark"] .saved-filter{color:#e8f2ff}
[data-theme="dark"] .bank-count,[data-theme="dark"] .bank-meta>span:last-child{color:#b5cbe0}
[data-theme="dark"] .bank-answer{background:#153a31;color:#e6fff3;border-color:#367461}
.bank-options>span{min-width:0;overflow-wrap:anywhere;line-height:1.5;padding:14px 16px}
.bank-actions{display:flex;flex-wrap:wrap;gap:12px}
.bank-actions>button{margin:0}
.saved-filter{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
[data-theme="dark"] .steps{color:#d5e6f8}
[data-theme="dark"] .task,[data-theme="dark"] .tool-card{color:#edf5ff}
.top-actions{flex-wrap:wrap;max-width:100%}
@media(max-width:600px){.bank-options{grid-template-columns:minmax(0,1fr)}.bank-actions>button{flex:1 1 140px}.top{flex-wrap:wrap}.top>div:nth-child(2){min-width:0}.top-actions{margin-left:auto}}
[data-theme="dark"] .plan-goal-form label,[data-theme="dark"] .plan-form>label,[data-theme="dark"] .form-grid label{color:#d5e6f8}
[data-theme="dark"] .metric small{color:#b5cbe0}
[data-theme="dark"] .score-output{color:#b9d7ff}
[data-theme="dark"] .score-output p{color:#d5e6f8}

/* Desktop-site-on-phone recovery only. Normal mobile styles remain unchanged. */
.pwa-force-phone .top {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  column-gap: 10px;
  row-gap: 14px;
  width: 100%;
  min-width: 0;
}
.pwa-force-phone .top > .menu-trigger {grid-column:1;grid-row:1;justify-self:start;margin:0}
.pwa-force-phone .top > .top-actions {
  grid-column:2;grid-row:1;
  display:flex;flex-wrap:nowrap;align-items:center;justify-self:end;
  width:auto;min-width:0;margin:0;gap:8px
}
.pwa-force-phone .top-actions .eh-website-link {
  display:inline-flex; flex:0 0 42px;width:42px;height:42px;
  min-height:42px;padding:0;font-size:0;border-radius:50%
}
.pwa-force-phone .top-actions .eh-website-link span {font-size:18px}
.pwa-force-phone .top > div:nth-child(2) {
  grid-column:1/-1;grid-row:2;width:100%;min-width:0;
  max-width:100%;overflow-wrap:normal
}
.pwa-force-phone .top > div:nth-child(2) h1 {
  font-size:clamp(27px,7vw,36px);line-height:1.18;
  word-break:normal;overflow-wrap:normal;letter-spacing:-.025em
}
.pwa-force-phone .top > div:nth-child(2) p {
  width:100%;max-width:60ch;font-size:15px;line-height:1.55;
  overflow-wrap:break-word;word-break:normal
}
.pwa-force-phone .top .eyebrow {
  font-size:11px;letter-spacing:.08em;overflow-wrap:break-word
}
.pwa-force-phone .top-actions .theme-toggle,
.pwa-force-phone .top-actions .avatar {flex-shrink:0}
.pwa-force-phone .main,.pwa-force-phone .page {
  min-width:0;max-width:100%
}
