:root {
  font-family: Georgia, serif;
  color-scheme: light;
  --bg: #f7f7f2;
  --card: #fff;
  --text: #1f3a6b;
  --muted: #405574;
  --border: #b7cbdc;
  --tint: #e6f1f9;
  --sea: #5aa9d6;
  --sidebar: #1f3a6b;
  --side-text: #f7f7f2;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #1b3058;
    --card: #243d6b;
    --text: #f7f7f2;
    --muted: #c3cede;
    --border: #3a5687;
    --tint: #2e4a7d;
    --sidebar: #243d6b;
    --side-text: #eef1f6;
  }
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.55;
}
button,
select,
input,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: var(--text);
  text-decoration-color: #5aa9d6;
  text-underline-offset: 4px;
}
a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #5aa9d6;
  outline-offset: 2px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 40px;
  line-height: 1.1;
  margin-bottom: 12px;
}
h2 {
  font-size: 30px;
  line-height: 1.15;
  margin-bottom: 12px;
}
h3 {
  font-size: 22px;
  line-height: 1.25;
  margin-bottom: 10px;
}
p {
  margin-bottom: 16px;
}
.count,
.stat,
.score,
.price {
  font-variant-numeric: lining-nums tabular-nums;
}
.global-header {
  height: 72px;
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 0 clamp(16px, 3vw, 48px);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.global-nav {
  display: flex;
  gap: 19px;
  align-items: center;
  margin: auto;
}
.global-nav a {
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  padding: 5px 3px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.global-nav a.active {
  border-color: #5aa9d6;
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}
.plan-badge {
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 5px 10px;
  white-space: nowrap;
}
.language-toggle,
.account-link,
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border: 1.5px solid var(--text);
  border-radius: 12px;
  padding: 0 16px;
  color: var(--text);
  background: transparent;
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
}
.language-toggle {
  min-width: 52px;
}
.menu-toggle {
  display: none;
}
.app-frame {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: calc(100vh - 72px);
}
.sidebar {
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  overflow: auto;
  background: var(--sidebar);
  color: var(--side-text);
  padding: 25px 15px;
}
.sidebar h2 {
  font-size: 22px;
  color: var(--side-text);
  padding: 0 12px;
}
.sidebar nav {
  display: grid;
  gap: 3px;
}
.sidebar a,
.sidebar button {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  background: transparent;
  color: var(--side-text);
  font: inherit;
  font-size: 17px;
  line-height: 1.3;
  text-decoration: none;
}
.sidebar a:hover,
.sidebar button:hover,
.sidebar .active {
  background: #314f80;
  color: #fff;
}
.sidebar .side-count {
  font-size: 15px;
  white-space: nowrap;
}
.content {
  width: min(100%, 1040px);
  padding: 32px clamp(16px, 3vw, 48px) 80px;
  margin: 0;
}
.content > p {
  color: var(--muted);
}
.drawer-toggle {
  display: none;
}
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: normal;
}
.btn-primary {
  background: #f4d35e;
  color: #1f3a6b;
  border: 0;
}
.btn-primary:hover {
  background: #f0c83a;
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--text);
}
.text-link {
  font-size: 17px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #5aa9d6;
  text-decoration-thickness: 2px;
}
.activity,
.question-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin: 15px 0;
}
.activity p {
  color: var(--muted);
}
.control-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.control-row select {
  min-height: 48px;
  min-width: min(340px, 100%);
  max-width: 100%;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
}
.practice-stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 22px 0 28px;
}
.practice-stepper a {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  column-gap: 9px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  background: var(--card);
  color: var(--text);
}
.practice-stepper a.recommended {
  border: 2px solid var(--sea);
}
.practice-stepper span {
  grid-row: span 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 2px solid var(--sea);
  border-radius: 50%;
  font-size: 22px;
  font-weight: 700;
}
.practice-stepper strong {
  font-size: 17px;
}
.practice-stepper small {
  font-size: 15px;
  color: var(--muted);
}
.prelude {
  margin: 0 !important;
}
.step-section {
  position: relative;
  border-left: 2px solid var(--sea);
  padding: 0 0 29px 24px;
  scroll-margin-top: 92px;
}
.step-section:last-child {
  border-left: 0;
}
.step-section h2 {
  padding-top: 3px;
}
.step-section.recommended > h2 {
  color: var(--text);
}
.review-list {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}
.review-item {
  background: var(--tint);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
}
.review-item summary {
  cursor: pointer;
}
.review-item p {
  margin: 10px 0 0;
}
.choices {
  display: grid;
  gap: 9px;
  margin: 15px 0;
}
.choice {
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  background: var(--card);
  color: var(--text);
  font-size: 17px;
}
.choice:hover:not(:disabled) {
  background: var(--tint);
}
.choice[aria-pressed="true"] {
  border: 2px solid var(--sea);
}
.feedback {
  background: var(--tint);
  color: var(--text) !important;
  border-radius: 10px;
  padding: 15px;
  margin-top: 15px;
}
.activity .btn-secondary,
.activity .btn-primary {
  margin-right: 9px;
}
.activity .text-link {
  display: inline-block;
  margin: 13px 0;
}
.interview-card {
  display: flex;
  gap: 17px;
}
.avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 2px solid var(--sea);
  flex: none;
}
.coming {
  display: inline-block;
  color: var(--text) !important;
  background: var(--tint);
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 15px;
}
.independence {
  font-size: 15px;
  color: var(--muted);
}
@media (max-width: 760px) {
  .global-header {
    height: 64px;
    gap: 8px;
  }
  .brand {
    font-size: 22px;
  }
  .brand img {
    width: 36px;
    height: 36px;
  }
  .global-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    padding: 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
  }
  .global-nav.open {
    display: flex;
  }
  .header-tools {
    margin-left: auto;
  }
  .header-tools .account-link,
  .header-tools .plan-badge {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
    height: 44px;
  }
  .language-toggle {
    height: 44px;
  }
  .app-frame {
    display: block;
  }
  .drawer-toggle {
    display: block;
    margin: 16px 16px 0;
    height: 48px;
    padding: 0 17px;
    border-radius: 12px;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
  }
  .sidebar {
    display: none;
    position: fixed;
    z-index: 25;
    top: 64px;
    left: 0;
    bottom: 0;
    width: min(320px, 85vw);
    height: auto;
    box-shadow: 8px 0 30px #0005;
  }
  .sidebar.open {
    display: block;
  }
  .content {
    padding: 18px 16px 50px;
  }
  .practice-stepper {
    grid-template-columns: 1fr;
  }
  .step-section {
    padding-left: 18px;
  }
  .control-row {
    display: grid;
  }
  .control-row select,
  .control-row .btn-primary {
    width: 100%;
  }
  .interview-card {
    display: block;
  }
  .avatar {
    float: left;
    margin: 0 14px 7px 0;
  }
  .btn-primary {
    width: 100%;
  }
}

.chloe-avatar {
  display: inline-block;
  flex: none;
  width: 70px;
  height: 70px;
  border: 2px solid #5aa9d6;
  border-radius: 50%;
  background: #f7f7f2 url(/chloe-avatar-v2.webp) 20% 0%/200% auto no-repeat;
}

.admin-menu-link {
  font-weight: 700 !important;
  color: var(--text) !important;
  border: 1px solid var(--sea);
  border-radius: 10px;
  padding: 5px 12px !important;
}
