:root {
  color-scheme: light;
  --ink: #241936;
  --muted: #6b6478;
  --line: #e4def4;
  --surface: #ffffff;
  --soft: #f4f0ff;
  --brand: #4f46e5;
  --brand-dark: #312e81;
  --gold: #a855f7;
  --accent: #ec4899;
  --danger: #9f2d20;
  --shadow: 0 18px 48px rgba(79, 70, 229, 0.13);
  font-family: Arial, "Noto Sans Hebrew", sans-serif;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 260px;
}

.admin-actions .button {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 0.78rem;
  white-space: nowrap;
}

.button.danger {
  border-color: rgba(220, 38, 38, 0.32);
  color: #b91c1c;
  background: rgba(254, 226, 226, 0.72);
}

.button.danger:hover {
  border-color: rgba(220, 38, 38, 0.52);
  background: rgba(254, 202, 202, 0.9);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 10%, rgba(168, 85, 247, 0.18), transparent 28%),
    radial-gradient(circle at 86% 0%, rgba(236, 72, 153, 0.12), transparent 30%),
    linear-gradient(135deg, rgba(79, 70, 229, 0.12), transparent 38%),
    #fbfaff;
  color: var(--ink);
  line-height: 1.6;
  -webkit-tap-highlight-color: transparent;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(79, 70, 229, 0.08), transparent 34%),
    linear-gradient(300deg, rgba(236, 72, 153, 0.06), transparent 32%);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}

[dir="ltr"],
.ltr {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: left;
}

[dir="rtl"],
.rtl,
.rtl-text {
  direction: rtl;
  text-align: right;
}

.auto-dir {
  unicode-bidi: plaintext;
}

.hidden {
  display: none !important;
}

.mobile-only {
  display: none !important;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(20, 32, 29, 0.08);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 28px rgba(18, 56, 47, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  text-decoration: none;
  font-weight: 800;
}

.brand img {
  border-radius: 9px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(10px, 3vw, 26px);
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 160ms ease, border 160ms ease;
}

.nav a:hover {
  color: var(--brand);
  border-bottom-color: var(--gold);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  align-items: center;
  min-height: calc(100svh - 132px);
  padding: clamp(34px, 6vw, 86px) clamp(18px, 5vw, 72px);
  gap: clamp(28px, 5vw, 72px);
  background:
    radial-gradient(circle at 75% 22%, rgba(214, 155, 43, 0.2), transparent 22%),
    linear-gradient(135deg, rgba(32, 107, 92, 0.16), transparent 42%),
    linear-gradient(315deg, rgba(49, 115, 168, 0.11), transparent 38%),
    #fbfdfc;
}

.hero,
.platform-section,
.login-section,
.dashboard-section,
.learning-flow,
.user-pages {
  isolation: isolate;
}

.hero-copy {
  position: relative;
}

.hero-copy::before {
  content: "iOS Ready";
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 12px;
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: #4c1d95;
  font-size: 0.78rem;
  font-weight: 900;
  direction: ltr;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 0.92rem;
  font-weight: 800;
}

h1,
h2 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 5.6rem);
}

h2 {
  font-size: clamp(1.45rem, 3.5vw, 2.4rem);
}

.lead {
  max-width: 620px;
  margin: 20px 0 0;
  color: #34423f;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.hero-stats span {
  display: grid;
  gap: 4px;
  min-height: 82px;
  padding: 14px;
  border: 1px solid rgba(32, 107, 92, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  box-shadow: 0 10px 30px rgba(18, 56, 47, 0.05);
}

.hero-stats strong {
  color: var(--brand-dark);
  font-size: 1.45rem;
  line-height: 1;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.button.primary {
  border-color: var(--brand);
  background: linear-gradient(135deg, var(--brand), #174f49);
  color: #fff;
}

.button.secondary {
  background: var(--surface);
  color: var(--brand-dark);
}

.phone-preview {
  justify-self: center;
  width: min(340px, 82vw);
  aspect-ratio: 9 / 18.5;
  padding: 14px;
  border: 8px solid #17211f;
  border-radius: 38px;
  background: #17211f;
  box-shadow: 0 30px 80px rgba(18, 56, 47, 0.25);
  transform: rotate(-1.5deg);
}

.phone-screen {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: calc(100% - 16px);
  padding: 24px;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(180deg, #f8fffc, #e9f4f0);
}

.phone-screen img {
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(18, 56, 47, 0.2);
}

.phone-screen strong {
  font-size: 1.5rem;
}

.phone-screen > span {
  color: var(--muted);
  font-weight: 800;
}

.phone-card {
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.phone-card b,
.phone-card small {
  display: block;
}

.phone-card small {
  color: var(--muted);
}

.progress {
  height: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: #d8e7e2;
}

.progress span {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--gold));
}

.phone-screen button {
  margin-top: auto;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--gold);
  color: #231806;
  font: inherit;
  font-weight: 900;
}

.phone {
  justify-self: center;
  width: min(340px, 78vw);
  aspect-ratio: 9 / 18.5;
  padding: 14px;
  border: 8px solid #17211f;
  border-radius: 38px;
  background: #17211f;
  box-shadow: 0 30px 80px rgba(18, 56, 47, 0.25);
  transform: rotate(-1.5deg);
}

.phone-bar {
  width: 86px;
  height: 5px;
  margin: 0 auto 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

.app-screen {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: calc(100% - 16px);
  padding: 24px;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(180deg, #f8fffc, #e9f4f0);
}

.screen-icon {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(18, 56, 47, 0.2);
}

.screen-label {
  font-size: 1.55rem;
  font-weight: 900;
}

.screen-card {
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(18, 56, 47, 0.08);
}

.screen-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.screen-card strong {
  font-size: 1.22rem;
}

.screen-row {
  height: 18px;
  border-radius: 999px;
  background: #d8e7e2;
}

.screen-row.short {
  width: 66%;
}

.mini-progress {
  height: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: #d8e7e2;
}

.mini-progress span {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--gold));
}

.screen-cta {
  margin-top: auto;
  padding: 13px;
  border-radius: 8px;
  background: var(--gold);
  color: #231806;
  text-align: center;
  font-weight: 900;
}

.band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.features article {
  min-height: 210px;
  padding: clamp(24px, 4vw, 42px);
  background: var(--surface);
  transition: background 160ms ease, transform 160ms ease;
}

.features article:hover {
  background: #fbfdfc;
  transform: translateY(-2px);
}

.features p,
.section p {
  color: var(--muted);
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.plan {
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(18, 56, 47, 0.05);
  transition: transform 160ms ease, box-shadow 160ms ease, border 160ms ease;
}

.plan.highlighted {
  border-color: rgba(32, 107, 92, 0.5);
  box-shadow: inset 0 0 0 1px rgba(32, 107, 92, 0.16), var(--shadow);
}

.plan:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.plan-label {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--brand);
  font-weight: 900;
}

.plan h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.price-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.price-strip span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.price-strip strong {
  color: var(--brand-dark);
}

.section {
  padding: clamp(42px, 7vw, 88px) clamp(18px, 5vw, 72px);
}

.method {
  background: #fff;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.feature-grid article {
  min-height: 210px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(18, 56, 47, 0.06);
}

.feature-grid article > span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 1.6rem;
  font-weight: 900;
}

.feature-grid h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.platform-section {
  background:
    linear-gradient(180deg, #fff 0%, #f3faf7 100%);
}

.platform-section h2 {
  max-width: 760px;
}

.platform-grid,
.practice-grid {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.platform-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.practice-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 24px;
}

.platform-grid article,
.practice-grid article {
  position: relative;
  min-height: 138px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(32, 107, 92, 0.18);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(18, 56, 47, 0.07);
  transition: transform 160ms ease, border 160ms ease, box-shadow 160ms ease;
}

.platform-grid article::before,
.practice-grid article::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, var(--brand), var(--gold));
}

.platform-grid article:hover,
.practice-grid article:hover {
  transform: translateY(-3px);
  border-color: rgba(32, 107, 92, 0.34);
  box-shadow: var(--shadow);
}

.platform-grid strong,
.practice-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-dark);
  font-size: 1.08rem;
}

.platform-grid span,
.practice-grid span {
  color: var(--muted);
}

.practice-grid b {
  display: inline-flex;
  width: fit-content;
  margin-top: 14px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef7f4;
  color: var(--brand-dark);
  font-size: 0.82rem;
}

.login-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
  background: #fff;
}

.anchor-alias {
  position: absolute;
  top: -90px;
}

.auth-panel {
  display: grid;
  gap: 14px;
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.dashboard-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
  background: #fff;
}

.auth-card {
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth-card h3 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

#login-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.message {
  min-height: 24px;
  margin-top: 14px;
  color: var(--brand);
  font-weight: 800;
}

.message.error {
  color: var(--danger);
}

.user-dashboard {
  display: grid;
  gap: 18px;
}

.dashboard-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.dashboard-head h3 {
  overflow-wrap: anywhere;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-metrics article {
  min-height: 104px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 252, 249, 0.96));
  box-shadow: 0 10px 24px rgba(18, 56, 47, 0.05);
}

.dashboard-metrics span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.dashboard-metrics strong {
  display: block;
  margin-top: 8px;
  color: var(--brand-dark);
  font-size: 1.3rem;
}

.dashboard-metrics.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.overview-grid {
  margin-top: 16px;
}

.overview-insights,
.skill-mix,
.recent-list,
.recommendation-card {
  display: grid;
  gap: 10px;
}

.overview-insights {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.overview-insights article,
.recent-list article,
.recommendation-card {
  padding: 14px;
  border: 1px solid rgba(32, 107, 92, 0.16);
  border-radius: 8px;
  background: #fbfdfc;
}

.overview-insights span,
.recent-list span,
.recommendation-card span {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.overview-insights strong,
.recent-list strong,
.recommendation-card strong {
  display: block;
  color: var(--brand-dark);
  font-size: 1.18rem;
}

.skill-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.8fr) minmax(0, 1fr) 44px;
  gap: 10px;
  align-items: center;
}

.skill-row span,
.skill-row b {
  font-weight: 900;
}

.skill-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6efec;
}

.skill-bar i {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--gold));
}

.recommendation-card .button {
  width: fit-content;
  margin-top: 12px;
}

.table-tools {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.table-tools h2 {
  margin: 0;
}

.table-tools input {
  max-width: 260px;
}

.table-summary {
  margin: 0 0 12px;
  color: var(--muted);
  font-weight: 800;
}

.chapter-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.next-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.premium-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.purchase-scope-note {
  display: grid;
  gap: 8px;
  margin: 18px 0 4px;
  padding: 16px;
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(236, 72, 153, 0.07)),
    #fff;
  box-shadow: 0 12px 34px rgba(79, 70, 229, 0.08);
}

.purchase-scope-note strong {
  color: #312e81;
  font-size: 1.04rem;
}

.purchase-scope-note p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.premium-option {
  display: grid;
  gap: 8px;
  min-height: 130px;
  padding: 18px;
  border: 1px solid rgba(124, 58, 237, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 243, 255, 0.94)),
    #fff;
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border 160ms ease;
}

.premium-option:hover {
  transform: translateY(-2px);
  border-color: rgba(32, 107, 92, 0.35);
  box-shadow: var(--shadow);
}

.premium-option strong {
  font-size: 1.25rem;
}

.premium-option span {
  color: var(--brand-dark);
  font-size: 1.45rem;
  font-weight: 900;
}

.premium-option::after {
  content: "Apple In-App Purchase";
  align-self: end;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.1);
  color: #312e81;
  font-size: 0.74rem;
  font-weight: 900;
  direction: ltr;
}

.learning-flow {
  background: #fff;
}

.flow-grid,
.access-grid {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.flow-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.access-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.flow-grid article,
.access-grid article {
  min-height: 210px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(18, 56, 47, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease, border 160ms ease;
}

.flow-grid article:hover,
.access-grid article:hover {
  transform: translateY(-3px);
  border-color: rgba(32, 107, 92, 0.35);
  box-shadow: var(--shadow);
}

.step {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 1.6rem;
  font-weight: 900;
}

.flow-grid h3,
.access-grid h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.user-pages {
  background:
    linear-gradient(180deg, rgba(238, 246, 243, 0.82), rgba(255, 255, 255, 0.96));
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}

.support-form {
  display: grid;
  gap: 14px;
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(18, 56, 47, 0.07);
}

label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ink);
  font: inherit;
  outline: none;
  transition: border 140ms ease, box-shadow 140ms ease;
}

input:focus,
textarea:focus {
  border-color: rgba(32, 107, 92, 0.75);
  box-shadow: 0 0 0 4px rgba(32, 107, 92, 0.12);
}

textarea {
  resize: vertical;
}

select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.ltr-input,
.ltr-text {
  direction: ltr;
  unicode-bidi: plaintext;
  text-align: left;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f5faf8;
}

.segmented button {
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 900;
}

.segmented button.active {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 8px 18px rgba(18, 56, 47, 0.08);
}

.app-shell {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  min-height: 100svh;
  max-width: 100vw;
  overflow-x: hidden;
  background: #f6f9f8;
}

.app-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100svh;
  padding: max(22px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, #103d38, #0b2e2a 62%, #071f1c);
  color: #fff;
}

.sidebar-brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.sidebar-brand img {
  border-radius: 9px;
}

.sidebar-brand strong,
.sidebar-brand small {
  display: block;
}

.sidebar-brand small {
  color: rgba(255, 255, 255, 0.68);
}

.app-nav {
  display: grid;
  gap: 8px;
}

.nav-group-label {
  display: block;
  margin: 10px 4px 2px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.76rem;
  font-weight: 900;
}

.app-nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font: inherit;
  font-weight: 800;
  text-align: right;
  transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}

.app-nav button::before {
  content: attr(data-icon);
  display: inline-grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1;
}

.app-nav button.active,
.app-nav button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.app-nav button.active {
  box-shadow: inset 3px 0 0 var(--gold);
}

.app-nav button.active::before,
.app-nav button:hover::before {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.app-bottom-nav {
  display: none;
}

.app-shell.loading .app-nav button,
.app-shell.loading [data-action],
.app-shell.loading #refresh-data,
.app-shell.loading .purchase-link {
  pointer-events: none;
  opacity: 0.56;
}

.app-shell.loading .app-main {
  cursor: wait;
}

.app-sidebar > .button {
  margin-top: auto;
}

.app-main {
  min-width: 0;
  padding: clamp(18px, 3vw, 34px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(246, 249, 248, 0.92)),
    #f6f9f8;
}

.app-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.topbar-actions {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
  align-items: center;
}

.app-topbar h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.icon-button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--brand-dark);
  font: inherit;
  font-size: 1.3rem;
  font-weight: 900;
}

.dashboard-view {
  display: none;
}

.dashboard-view.active {
  display: block;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
}

.panel {
  padding: clamp(18px, 3vw, 26px);
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(18, 56, 47, 0.06);
}

.panel,
.list-card,
.dashboard-metrics article,
.practice-grid article,
.overview-insights article,
.recent-list article,
.recommendation-card,
.premium-option {
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.panel:hover,
.list-card:hover,
.practice-grid article:hover,
.overview-insights article:hover,
.recent-list article:hover,
.recommendation-card:hover,
.premium-option:hover {
  transform: translateY(-1px);
}

.panel h2 {
  margin-bottom: 14px;
  font-size: 1.25rem;
}

.details-list {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 10px 16px;
  margin: 0;
}

.details-list dt {
  color: var(--muted);
  font-weight: 900;
}

.details-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.table-wrap {
  max-width: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 10px;
  border-top: 1px solid var(--line);
  text-align: right;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.86rem;
  background: #f5faf8;
}

.wrap {
  max-width: 420px;
  white-space: normal;
}

.badge {
  display: inline-flex;
  justify-content: center;
  min-width: 58px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eaf7f2;
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.card-list {
  display: grid;
  gap: 10px;
}

.list-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(32, 107, 92, 0.16);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #fbfdfc);
  box-shadow: 0 8px 22px rgba(18, 56, 47, 0.04);
}

.list-card strong,
.list-card span {
  display: block;
}

.list-card span {
  color: var(--muted);
  margin-top: 4px;
}

.list-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
}

.list-actions {
  display: flex;
  flex-shrink: 0;
  gap: 10px;
  align-items: center;
}

.practice-grid .button {
  width: fit-content;
  min-height: 40px;
  margin-top: 14px;
  padding: 8px 12px;
}

.practice-runner {
  display: grid;
  gap: 18px;
  max-width: 920px;
  margin: 0 auto;
}

.runner-head,
.runner-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.runner-progress {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 900;
}

.runner-card,
.runner-feedback,
.session-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(18, 56, 47, 0.08);
}

.runner-card {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 4vw, 34px);
}

.question-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.question-prompt {
  display: grid;
  gap: 14px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
}

.question-prompt p {
  margin: 0 0 8px;
}

.source-block,
.question-main {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(32, 107, 92, 0.16);
  border-radius: 8px;
  background: #fbfdfc;
}

.source-block > span,
.question-main > span {
  color: var(--brand);
  font-size: 0.86rem;
  font-weight: 900;
}

.source-block h3 {
  margin: 0;
  color: var(--brand-dark);
  font-size: 1.2rem;
}

.question-main {
  background: #fff;
}

.question-main p {
  font-size: clamp(1.08rem, 2.4vw, 1.38rem);
  font-weight: 900;
}

.question-main small {
  color: var(--muted);
  font-weight: 800;
}

.reading-block {
  background: #fff;
}

.passage-lines {
  display: grid;
  gap: 10px;
  direction: ltr;
}

.passage-lines article {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  direction: ltr;
}

.passage-lines article.paragraph-start {
  margin-top: 16px;
  border-color: rgba(32, 107, 92, 0.28);
}

.passage-lines article.paragraph-start:first-child {
  margin-top: 0;
}

.passage-lines b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #eaf7f2;
  color: var(--brand-dark);
  font-size: 0.82rem;
}

.passage-lines p {
  margin: 0;
  min-width: 0;
}

.passage-lines small {
  grid-column: 2;
  margin-top: -4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  direction: ltr;
  text-align: left;
}

.audio-block audio {
  width: 100%;
}

.source-block details {
  max-width: none;
  border: 0;
  background: transparent;
}

.source-block summary {
  padding: 8px 0;
}

.base-word {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef7f4;
  color: var(--brand-dark);
}

.answer-grid {
  display: grid;
  gap: 10px;
}

.answer-grid button {
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  text-align: right;
  cursor: pointer;
}

.answer-grid button:hover,
.answer-grid button.selected {
  border-color: rgba(32, 107, 92, 0.5);
  background: #eef7f4;
}

.answer-grid button.correct {
  border-color: #2f8f55;
  background: #eaf8ee;
  color: #145328;
}

.answer-grid button.wrong {
  border-color: #bd4b3b;
  background: #fff0ed;
  color: #7f251a;
}

.runner-feedback {
  padding: 16px 18px;
  border-color: rgba(32, 107, 92, 0.22);
}

.runner-feedback strong {
  display: block;
  color: var(--brand-dark);
  font-size: 1.2rem;
}

.runner-feedback p {
  margin: 8px 0 0;
}

.session-summary {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 340px;
  padding: 30px;
  text-align: center;
}

.session-summary strong {
  color: var(--brand);
  font-size: clamp(4rem, 16vw, 7rem);
  line-height: 0.9;
}

.session-summary span {
  color: var(--brand-dark);
  font-size: 1.25rem;
  font-weight: 900;
}

.results-insights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.results-insights article {
  min-height: 100px;
  padding: 16px;
  border: 1px solid rgba(32, 107, 92, 0.16);
  border-radius: 8px;
  background: #fbfdfc;
}

.results-insights span,
.results-insights strong {
  display: block;
}

.results-insights span {
  color: var(--muted);
  font-weight: 800;
}

.results-insights strong {
  margin-top: 8px;
  color: var(--brand-dark);
  font-size: 1.25rem;
}

.stack-form {
  display: grid;
  gap: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.privacy {
  background: var(--soft);
}

.privacy p,
.faq {
  max-width: 880px;
}

details {
  max-width: 880px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.52);
}

details:last-child {
  border-bottom: 1px solid var(--line);
}

summary {
  padding: 18px 0;
  font-weight: 900;
  cursor: pointer;
  outline: none;
}

summary:hover {
  color: var(--brand);
}

details p {
  margin: 0 0 20px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer a {
  color: var(--brand);
  font-weight: 800;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero,
  .two-column,
  .login-section,
  .dashboard-section,
  .band,
  .plan-grid,
  .price-strip,
  .feature-grid,
  .premium-options,
  .hero-stats,
  .platform-grid,
  .practice-grid,
  .flow-grid,
  .access-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: calc(100svh - 150px);
  }

  .phone,
  .phone-preview {
    width: min(330px, 92vw);
  }

  .actions .button {
    width: 100%;
  }

  .features article {
    min-height: auto;
  }

  .footer {
    flex-direction: column;
  }

  .dashboard-head,
  .next-actions,
  .table-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .table-tools input {
    max-width: none;
  }

  .dashboard-metrics {
    grid-template-columns: 1fr;
  }

  .app-shell {
    grid-template-columns: 72px minmax(0, 1fr);
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .app-sidebar {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 30;
    width: 72px;
    height: 100svh;
    padding: max(12px, env(safe-area-inset-top)) 8px calc(86px + env(safe-area-inset-bottom));
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
    overflow-y: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .app-sidebar > .button {
    display: none;
  }

  .app-sidebar::-webkit-scrollbar {
    display: none;
  }

  .sidebar-brand {
    justify-content: center;
    gap: 0;
  }

  .sidebar-brand img {
    width: 42px;
    height: 42px;
  }

  .sidebar-brand div {
    display: none;
  }

  .app-sidebar .app-nav {
    display: grid;
    grid-auto-flow: row;
    grid-auto-columns: initial;
    grid-template-columns: 1fr;
    gap: 8px;
    overflow: visible;
    padding-bottom: 0;
  }

  .nav-group-label {
    display: none !important;
  }

  .app-sidebar .app-nav button {
    justify-content: center;
    width: 52px;
    min-height: 52px;
    padding: 0;
    border-radius: 16px;
    font-size: 0;
    text-align: center;
  }

  .app-sidebar .app-nav button::before {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    font-size: 1.03rem;
  }

  .app-sidebar .app-nav button.active {
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 3px 0 0 #c084fc;
  }

  .app-bottom-nav {
    position: fixed;
    inset: auto 84px 10px 12px;
    z-index: 35;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 7px;
    border: 1px solid rgba(79, 70, 229, 0.14);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 42px rgba(49, 46, 129, 0.18);
    backdrop-filter: blur(20px);
  }

  .app-bottom-nav button {
    display: grid;
    justify-items: center;
    gap: 2px;
    min-width: 0;
    min-height: 58px;
    padding: 7px 2px 6px;
    border-radius: 18px;
    color: #6b6478;
    font-size: 0.72rem;
    text-align: center;
  }

  .app-bottom-nav button::before {
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 11px;
    background: #f0e9ff;
    color: #4c1d95;
    font-size: 0.98rem;
  }

  .app-bottom-nav button.active,
  .app-bottom-nav button:hover {
    background: #ede9fe;
    color: #312e81;
  }

  .app-bottom-nav button.active {
    box-shadow: none;
  }

  .app-bottom-nav button.active::before {
    background: linear-gradient(135deg, #4f46e5, #a855f7);
    color: #fff;
  }

  .app-main {
    grid-column: 2;
    padding: max(16px, env(safe-area-inset-top)) 12px calc(118px + env(safe-area-inset-bottom));
  }

  .app-topbar {
    align-items: flex-start;
    position: sticky;
    top: 0;
    z-index: 12;
    margin: -16px -12px 16px;
    padding: max(14px, env(safe-area-inset-top)) 12px 12px;
    border-bottom: 1px solid rgba(79, 70, 229, 0.1);
    background: rgba(251, 250, 255, 0.92);
    backdrop-filter: blur(18px);
  }

  .app-topbar h1 {
    font-size: 1.72rem;
    line-height: 1.12;
  }

  .app-topbar .eyebrow {
    margin-bottom: 2px;
  }

  .mobile-only {
    display: inline-flex !important;
  }

  .content-grid,
  .form-row,
  .overview-insights,
  .results-insights {
    grid-template-columns: 1fr;
  }

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

  .recommendation-card .button {
    width: 100%;
  }

  .panel {
    padding: 16px;
  }

  .panel h2 {
    font-size: 1.08rem;
  }

  .dashboard-metrics {
    gap: 10px;
  }

  .dashboard-metrics article,
  .list-card,
  .practice-grid article,
  .purchase-scope-note,
  .premium-option {
    padding: 14px;
  }

  .card-list,
  .practice-grid,
  .content-grid,
  .overview-grid {
    gap: 12px;
  }

  .table-wrap {
    margin-inline: -2px;
  }

  table {
    min-width: 640px;
  }

  .passage-lines article {
    grid-template-columns: 28px minmax(0, 1fr);
    padding: 10px;
  }

  .list-card {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .list-actions,
  .runner-head,
  .runner-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .list-actions .button,
  .runner-actions .button {
    width: 100%;
  }

  .card-list,
  .card-list > *,
  .list-card > *,
  .list-actions {
    max-width: 100%;
    min-width: 0;
  }

  .list-card strong,
  .list-card span,
  .list-card p,
  .list-card small {
    overflow-wrap: anywhere;
  }

  table {
    min-width: 640px;
  }
}

@media (max-width: 420px) {
  .brand span {
    font-size: 0.98rem;
  }

  .nav {
    font-size: 0.9rem;
  }

  .app-screen {
    padding: 20px;
  }
}

/* Amirnet Pro purple theme */
.site-header {
  border-bottom-color: rgba(79, 70, 229, 0.12);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 32px rgba(79, 70, 229, 0.08);
}

.hero {
  background:
    radial-gradient(circle at 78% 18%, rgba(168, 85, 247, 0.24), transparent 24%),
    radial-gradient(circle at 20% 80%, rgba(236, 72, 153, 0.13), transparent 30%),
    linear-gradient(135deg, rgba(79, 70, 229, 0.16), transparent 44%),
    #fbfaff;
}

.lead {
  color: #4c435f;
}

.button.primary {
  border-color: #4f46e5;
  background: linear-gradient(135deg, #4f46e5, #7c3aed 58%, #a855f7);
  color: #fff;
}

.button.secondary,
.icon-button {
  border-color: #e4def4;
  background: #fff;
  color: #312e81;
}

.phone-preview,
.phone {
  border-color: #21133f;
  background: #21133f;
  box-shadow: 0 32px 86px rgba(79, 70, 229, 0.27);
}

.phone-screen,
.app-screen {
  background: linear-gradient(180deg, #ffffff, #f4f0ff);
}

.progress,
.mini-progress,
.screen-row {
  background: #e8e2f7;
}

.progress span,
.mini-progress span,
.skill-bar i {
  background: linear-gradient(90deg, #4f46e5, #a855f7, #ec4899);
}

.phone-screen button,
.screen-cta {
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: #fff;
}

.hero-stats span,
.plan,
.platform-grid article,
.practice-grid article,
.flow-grid article,
.access-grid article,
.auth-panel,
.auth-card,
.support-form,
.panel,
.list-card,
.runner-card,
.runner-feedback,
.session-summary,
.results-insights article,
.overview-insights article,
.recent-list article,
.recommendation-card,
.source-block,
.question-main,
.premium-option {
  border-color: rgba(79, 70, 229, 0.14);
  box-shadow: 0 14px 36px rgba(79, 70, 229, 0.08);
}

.panel,
.runner-card,
.runner-feedback,
.session-summary {
  backdrop-filter: blur(16px);
}

.panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 250, 255, 0.96)),
    #fff;
}

.app-nav button,
.app-bottom-nav button,
.button {
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease,
    border-color 150ms ease;
}

.button:hover,
.app-bottom-nav button:hover {
  transform: translateY(-1px);
}

.button:focus-visible,
.app-nav button:focus-visible,
.app-bottom-nav button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(124, 58, 237, 0.28);
  outline-offset: 2px;
}

.plan.highlighted {
  border-color: rgba(124, 58, 237, 0.5);
  box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.15), var(--shadow);
}

.features article:hover,
.platform-grid article:hover,
.practice-grid article:hover,
.flow-grid article:hover,
.access-grid article:hover,
.premium-option:hover {
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow: 0 18px 44px rgba(79, 70, 229, 0.14);
}

.platform-grid article::before,
.practice-grid article::before {
  background: linear-gradient(180deg, #4f46e5, #a855f7, #ec4899);
}

.platform-section,
.user-pages {
  background: linear-gradient(180deg, #fff 0%, #f7f3ff 100%);
}

.method,
.login-section,
.dashboard-section,
.learning-flow {
  background: #fff;
}

.practice-grid b,
.badge,
.base-word,
.passage-lines b {
  background: #ede9fe;
  color: #312e81;
}

.dashboard-metrics article {
  border-color: rgba(79, 70, 229, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 243, 255, 0.96));
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.08);
}

.dashboard-metrics strong,
.hero-stats strong,
.price-strip strong,
.premium-option span,
.overview-insights strong,
.recent-list strong,
.recommendation-card strong,
.results-insights strong,
.runner-feedback strong,
.session-summary span,
.question-main span,
.source-block > span,
.question-main > span {
  color: #312e81;
}

.eyebrow,
.plan-label,
.feature-grid article > span,
.step,
.source-block > span,
.question-main > span {
  color: #7c3aed;
}

.app-shell,
.app-main {
  background:
    radial-gradient(circle at 90% 12%, rgba(168, 85, 247, 0.1), transparent 28%),
    linear-gradient(180deg, #fbfaff, #f5f1ff);
}

.app-sidebar {
  background: linear-gradient(180deg, #312e81, #4c1d95 58%, #21133f);
}

.app-nav button.active,
.app-nav button:hover {
  background: rgba(255, 255, 255, 0.13);
}

.app-nav button.active {
  box-shadow: inset 3px 0 0 #c084fc;
}

.segmented,
th,
.source-block,
.question-main,
.overview-insights article,
.recent-list article,
.recommendation-card,
.list-card,
.premium-option,
.answer-grid button {
  background: #fbfaff;
}

.segmented button.active {
  color: #312e81;
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.1);
}

input:focus,
textarea:focus {
  border-color: rgba(124, 58, 237, 0.72);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.13);
}

.answer-grid button:hover,
.answer-grid button.selected {
  border-color: rgba(124, 58, 237, 0.5);
  background: #ede9fe;
}

.answer-grid button.correct {
  border-color: #16a34a;
  background: #ecfdf3;
  color: #14532d;
}

.answer-grid button.wrong {
  border-color: #dc2626;
  background: #fef2f2;
  color: #7f1d1d;
}

.passage-lines article {
  border-color: #e4def4;
  background: #fff;
}

.passage-lines article.paragraph-start {
  border-color: rgba(124, 58, 237, 0.3);
}

.practice-settings-panel {
  max-width: 920px;
}

.practice-settings-form {
  display: grid;
  gap: 18px;
}

.practice-settings-form fieldset {
  border: 1px solid rgba(79, 70, 229, 0.14);
  border-radius: 18px;
  padding: 18px;
  background: #fbfaff;
}

.practice-settings-form legend {
  padding: 0 8px;
  color: #312e81;
  font-weight: 800;
}

.radio-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(79, 70, 229, 0.14);
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
}

.radio-card + .radio-card {
  margin-top: 10px;
}

.radio-card input,
.check-row input {
  width: 20px;
  height: 20px;
  accent-color: #7c3aed;
}

.radio-card strong,
.check-row span {
  display: block;
  color: #21133f;
}

.radio-card small,
.muted {
  display: block;
  margin-top: 5px;
  color: #685f78;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.settings-grid label {
  display: grid;
  gap: 8px;
}

.settings-grid span {
  color: #312e81;
  font-weight: 800;
}

.settings-grid select {
  width: 100%;
  border: 1px solid #e4def4;
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
  color: #21133f;
  font: inherit;
}

.settings-grid select:focus {
  outline: none;
  border-color: rgba(124, 58, 237, 0.72);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.13);
}

.check-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
}

.filters-muted {
  opacity: 0.88;
}

.settings-actions {
  justify-content: flex-start;
}

.final-report {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.report-head,
.report-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.report-head {
  color: #312e81;
}

.report-item {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(79, 70, 229, 0.14);
  border-radius: 18px;
  padding: 16px;
  background: #fff;
}

.report-item.is-correct {
  border-color: rgba(22, 163, 74, 0.32);
}

.report-item.is-wrong {
  border-color: rgba(220, 38, 38, 0.28);
}

.report-question {
  display: grid;
  gap: 10px;
}

.report-question .source-block,
.report-question .question-main {
  box-shadow: none;
}

.report-answers {
  display: grid;
  grid-template-columns: minmax(120px, auto) 1fr;
  gap: 8px 12px;
  margin: 0;
  padding: 12px;
  border-radius: 14px;
  background: #fbfaff;
}

.report-answers dt {
  color: #685f78;
  font-weight: 800;
}

.report-answers dd {
  margin: 0;
  color: #21133f;
}

@media (max-width: 680px) {
  .settings-grid,
  .report-answers {
    grid-template-columns: 1fr;
  }

  .practice-settings-form fieldset,
  .report-item {
    padding: 14px;
    border-radius: 14px;
  }

  .radio-card {
    padding: 12px;
  }

  .report-head,
  .report-title {
    align-items: flex-start;
    flex-direction: column;
  }
}
