* {
  box-sizing: border-box;
}
:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
  color: #172e2a;
  background: #f3f5f6;
  font-size: 16px;
  line-height: 1.55;
  --green: #123c35;
  --muted: #5a6d68;
  --line: #dce4e1;
  --lime: #dcf49a;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
a {
  color: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
:focus-visible {
  outline: 3px solid #4b7bdf;
}
.skip {
  position: absolute;
  top: -100px;
  left: 10px;
  background: white;
  padding: 12px;
  z-index: 9;
}
.skip:focus {
  top: 10px;
}
.shell {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--green);
  color: white;
  padding: 34px 22px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 750;
  line-height: 1.2;
}
.brand img {
  width: 48px;
  height: 48px;
}
.brand small {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: #d0dfd8;
  margin-top: 7px;
}
.sidebar nav {
  display: grid;
  gap: 7px;
}
.nav {
  background: transparent;
  border: 0;
  color: #d4e1dc;
  text-align: left;
  padding: 12px 15px;
  border-radius: 10px;
  font-size: 16px;
}
.nav.active {
  background: var(--lime);
  color: #17352b;
  font-weight: 650;
}
.nav:hover:not(.active) {
  background: #235348;
}
.profile {
  margin-top: auto;
  border-top: 1px solid #44645b;
  padding-top: 22px;
}
.profile small {
  display: block;
  color: #d0dfd8;
}
.profile button {
  margin-top: 14px;
  color: white;
  background: transparent;
  border: 1px solid #789187;
  padding: 7px 14px;
  border-radius: 8px;
}
.main {
  min-width: 0;
}
.topbar {
  height: 86px;
  border-bottom: 1px solid var(--line);
  padding: 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  gap: 12px;
}
.topbar span {
  color: var(--muted);
  font-size: 14px;
}
.pill {
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 14px;
}
.content {
  max-width: 1230px;
  margin: auto;
  padding: 36px 42px 60px;
}
h1 {
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -1px;
  margin: 0 0 10px;
}
h2 {
  font-size: 22px;
  line-height: 1.35;
  margin: 0 0 14px;
}
h3 {
  font-size: 18px;
  margin: 0 0 10px;
}
p {
  margin: 0 0 16px;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 13px;
  letter-spacing: 1.5px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.lead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  min-width: 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0;
}
.stat strong {
  display: block;
  font-size: 36px;
  line-height: 1.3;
  letter-spacing: -1px;
}
.stat span {
  font-size: 14px;
  color: var(--muted);
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
  gap: 22px;
}
.feature {
  background: var(--green);
  color: white;
  position: relative;
  overflow: hidden;
  padding: 30px;
}
.feature .muted {
  color: #d5e1dc;
}
.feature .eyebrow {
  color: var(--lime);
}
.btn {
  border: 0;
  background: var(--green);
  color: white;
  border-radius: 9px;
  padding: 11px 18px;
  font-weight: 650;
  display: inline-block;
  min-height: 46px;
}
.btn.secondary {
  background: white;
  color: var(--green);
  border: 1px solid #aabeb5;
}
.btn.lime {
  background: var(--lime);
  color: var(--green);
}
.btn.danger {
  background: #a83d43;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 18px;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.row:last-child {
  border: 0;
}
.row small {
  display: block;
  color: var(--muted);
  font-size: 14px;
}
.empty {
  padding: 26px 0;
  color: var(--muted);
}
progress {
  width: 100%;
  height: 9px;
  accent-color: #338268;
  border: 0;
}
.form {
  display: grid;
  gap: 15px;
}
.form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}
input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #a8bab3;
  border-radius: 8px;
  background: white;
  color: #18372d;
}
textarea {
  resize: vertical;
  min-height: 100px;
}
input[type="checkbox"] {
  width: auto;
  min-width: 20px;
  min-height: 20px;
}
.form label.check {
  display: flex;
  align-items: flex-start;
}
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: white;
}
.auth-intro {
  background: var(--green);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12%;
  gap: 22px;
}
.auth-intro h1 {
  font-size: 54px;
  max-width: 480px;
  line-height: 1.13;
}
.auth-intro p {
  color: #d1e0d8;
  max-width: 400px;
}
.auth-intro .eyebrow {
  color: var(--lime);
}
.auth-form {
  align-self: center;
  max-width: 460px;
  width: 100%;
  padding: 38px;
  margin: auto;
}
.auth-form h2 {
  font-size: 30px;
}
.auth-note {
  font-size: 14px;
  margin-top: 22px;
}
.question {
  font-size: 23px;
  line-height: 1.55;
  margin: 25px 0;
}
.option {
  display: flex;
  gap: 16px;
  align-items: center;
  width: 100%;
  background: white;
  border: 1px solid #b8c9c1;
  padding: 16px;
  text-align: left;
  border-radius: 10px;
  margin: 12px 0;
  color: #1d382e;
}
.option b {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: #edf3ef;
}
.option:hover {
  border-color: #23785b;
  background: #f4faf7;
}
.option.selected {
  border: 2px solid #17664d;
  background: #edf7f0;
}
.feedback {
  padding: 16px 20px;
  background: #edf8ef;
  border-left: 4px solid #287942;
  border-radius: 8px;
  margin: 20px 0;
}
.feedback.wrong {
  background: #fff2f1;
  border-color: #af434a;
}
.source {
  font-size: 14px;
  color: var(--muted);
}
.timer {
  font-variant-numeric: tabular-nums;
  font-size: 21px;
  white-space: nowrap;
}
.tutor-panel {
  align-self: start;
  background: #f0f5fd;
  border-color: #cfdaed;
}
.tutor-panel .pill {
  background: #fff;
}
.chatlog {
  display: grid;
  gap: 12px;
  max-height: 440px;
  overflow: auto;
  margin: 18px 0;
}
.bubble {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: white;
  border: 1px solid #dce4ef;
  padding: 14px;
  border-radius: 12px;
  font-size: 15px;
}
.bubble.user {
  background: #e1ebfd;
  margin-left: 20px;
}
.bubble small {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}
.tutor-panel textarea {
  min-height: 86px;
}
.notice {
  color: #9b3440;
}
.tablewrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
td,
th {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
th {
  color: var(--muted);
  font-weight: 600;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: inherit;
  font-size: 14px;
  max-height: 420px;
  overflow: auto;
}
.review {
  margin-top: 20px;
}
.review summary {
  cursor: pointer;
  font-weight: 650;
  padding: 12px 0;
}
.badge {
  display: inline-block;
  font-size: 13px;
  padding: 3px 8px;
  background: #edf2ef;
  border-radius: 5px;
}
.badge.pending {
  background: #fff1d4;
  color: #785510;
}
.badge.approved {
  background: #e6f4e9;
  color: #22613b;
}
#notice:not(:empty) {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 22px;
  background: #233c35;
  color: white;
  box-shadow: 0 10px 40px #0003;
  border-radius: 10px;
  max-width: 90%;
  z-index: 10;
}
.offline {
  background: #fff3d5;
  padding: 12px;
}
.result-item {
  margin-top: 18px;
}
.sectiongap {
  margin-top: 26px;
}
.text-button {
  border: 0;
  background: transparent;
  color: #245840;
  text-decoration: underline;
  padding: 9px 0;
}
.day {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 12px 0;
}
.day span {
  width: 100px;
  font-size: 14px;
}
.day progress {
  flex: 1;
}
.error-box {
  padding: 20px;
  background: #fff0ed;
  border: 1px solid #edc3bc;
  border-radius: 12px;
}
.mobiletitle {
  display: none;
}
@media (max-width: 1050px) {
  .sidebar {
    width: 205px;
    padding: 28px 16px;
  }
  .shell {
    grid-template-columns: 205px 1fr;
  }
  .content {
    padding: 28px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .auth-intro h1 {
    font-size: 42px;
  }
}
@media (max-width: 700px) {
  .shell {
    display: block;
  }
  .sidebar {
    width: auto;
    height: auto;
    position: relative;
    padding: 18px;
    gap: 16px;
  }
  .brand img {
    height: 40px;
    width: 40px;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
    gap: 6px;
    padding-bottom: 2px;
  }
  .nav {
    white-space: nowrap;
    padding: 9px 12px;
    font-size: 14px;
  }
  .profile {
    display: none;
  }
  .topbar {
    height: auto;
    min-height: 64px;
    padding: 12px 18px;
  }
  .content {
    padding: 26px 18px 50px;
  }
  .grid {
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .stat {
    padding: 15px 12px;
  }
  .stat strong {
    font-size: 28px;
  }
  .stat span {
    font-size: 13px;
  }
  h1 {
    font-size: 29px;
  }
  .lead {
    display: block;
  }
  .lead .pill {
    margin-top: 10px;
    display: inline-block;
  }
  .card {
    padding: 20px;
  }
  .feature {
    padding: 25px;
  }
  .auth {
    grid-template-columns: 1fr;
  }
  .auth-intro {
    padding: 30px;
  }
  .auth-intro h1 {
    font-size: 34px;
  }
  .auth-intro p {
    display: none;
  }
  .auth-form {
    padding: 28px;
  }
  .question {
    font-size: 21px;
  }
  .option {
    padding: 13px;
  }
  .topbar span {
    font-size: 13px;
  }
  .row {
    align-items: flex-start;
  }
  .actions .btn {
    flex-grow: 1;
  }
  .timer {
    margin-top: 12px;
  }
  .review .grid {
    grid-template-columns: 1fr;
  }
}
