:root {
  color-scheme: light;
  --bg: #faf9f6;
  --paper: #fffefa;
  --side: #f5f4ef;
  --ink: #302f2b;
  --muted: #6d6c65;
  --faint: #7d7a71;
  --line: #e4e1d8;
  --rust: #ac492f;
  --rust-d: #923b26;
  --peach: #f5dcc8;
  --green: #51745b;
  --serif:
    "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia,
    serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font: 16px/1.5 var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button {
  border: 0;
  background: transparent;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #a34a33;
  outline-offset: 3px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #bc654a;
  outline-offset: 1px;
}
img,
svg {
  display: block;
}
svg {
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 550;
}
h1,
h2,
.project-name,
.quiz-title,
.metric-val,
.wordmark,
.serif {
  font-family: var(--serif);
}
h1 {
  font-size: clamp(2.35rem, 3.2vw, 3.1rem);
  letter-spacing: -0.043em;
  line-height: 1.13;
}
h2 {
  font-size: 1.72rem;
  line-height: 1.2;
  letter-spacing: -0.035em;
}
h3 {
  font-size: 1.05rem;
  line-height: 1.35;
}
.muted {
  color: var(--muted);
}
.small,
small {
  font-size: 0.875rem;
}
.micro {
  font-size: 0.78rem;
}
.loading {
  padding: 10vh 8vw;
  font-family: var(--serif);
  font-size: 1.5rem;
}
.skip {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 90;
  background: white;
  padding: 0.7rem;
}
.skip:focus {
  top: 1rem;
}
.layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  background: var(--side);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 29px 14px 14px;
  z-index: 12;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin: 0 12px 45px;
}
.brand img {
  width: 37px;
  height: 37px;
}
.wordmark {
  font-size: 2.08rem;
  line-height: 1;
  letter-spacing: -0.065em;
  font-weight: 650;
}
.wordmark span {
  color: var(--rust);
}
.nav-label {
  text-transform: uppercase;
  font-size: 0.67rem;
  font-weight: 650;
  letter-spacing: 0.13em;
  color: #76746b;
  margin: 0 15px 10px;
}
.nav-group + .nav-group {
  margin-top: 32px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  border-radius: 8px;
  color: #56564e;
  font-size: 0.9rem;
  font-weight: 480;
  line-height: 1.5;
  text-align: left;
  margin: 2px 0;
}
.nav-link:hover {
  background: #ecebe4;
}
.nav-link.active {
  background: #f0dfd3;
  color: #99402a;
  font-weight: 620;
}
.nav-link svg {
  width: 19px;
  height: 19px;
}
.sidebar-bottom {
  margin-top: auto;
}
.sidebar-rule {
  height: 1px;
  background: var(--line);
  margin: 18px 4px 15px;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px;
  width: 100%;
  text-align: left;
}
.avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #dfdfd2;
  color: #59614f;
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 600;
}
.profile-text {
  min-width: 0;
  flex: 1;
}
.profile-text strong,
.profile-text small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-text strong {
  font-size: 0.86rem;
  font-weight: 620;
}
.profile-text small {
  color: var(--muted);
  font-size: 0.74rem;
}
.workspace {
  min-width: 0;
}
.topbar {
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 3vw, 54px);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  gap: 10px;
}
.crumb,
.top-tools,
.row,
.inline {
  display: flex;
  align-items: center;
}
.crumb {
  gap: 11px;
  font-size: 0.8rem;
  color: var(--muted);
  min-width: 0;
}
.crumb b {
  font-weight: 540;
  color: #47473f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.crumb .slash {
  color: #aaa89f;
}
.top-tools {
  gap: 17px;
}
.today {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted);
}
.top-search {
  border-left: 1px solid var(--line);
  padding-left: 17px;
}
.icon-btn {
  width: 33px;
  height: 33px;
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
  color: var(--muted);
}
.icon-btn:hover {
  color: var(--ink);
  background: #eceae3;
}
.menu-toggle,
.drawer-close,
.scrim {
  display: none;
}
.main {
  max-width: 1550px;
  margin: 0 auto;
  padding: 32px clamp(24px, 3vw, 54px) 50px;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 25px;
}
.page-head p {
  margin-top: 5px;
  font-size: 0.95rem;
  color: var(--muted);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 39px;
  padding: 8px 15px;
  border: 1px solid #dcd9d0;
  border-radius: 7px;
  background: var(--paper);
  font-size: 0.85rem;
  font-weight: 590;
  line-height: 1.4;
  white-space: nowrap;
  transition:
    background 0.15s,
    transform 0.15s;
}
.btn:hover {
  background: #f1eee8;
}
.btn:active {
  transform: translateY(1px);
}
.btn.primary {
  background: var(--rust);
  border-color: var(--rust);
  color: #fffaf6;
  box-shadow: 0 1px 2px #74342116;
}
.btn.primary:hover {
  background: var(--rust-d);
}
.btn.dark {
  background: #3b3e31;
  color: white;
  border-color: #3b3e31;
}
.btn.dark:hover {
  background: #262a21;
}
.btn.subtle {
  background: transparent;
}
.btn.danger {
  color: #9e362b;
  border-color: #debbb2;
}
.text-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--rust);
  font-size: 0.83rem;
  font-weight: 590;
  padding: 6px 0;
}
.text-btn:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.focus-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.98fr) minmax(245px, 1fr);
  gap: 17px;
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 238px;
  display: flex;
  align-items: center;
  border: 1px solid #e8cbb7;
  border-radius: 13px;
  background: #f9dec7;
}
.hero-art {
  position: absolute;
  right: -2%;
  top: 0;
  width: 56%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  z-index: -1;
  mask-image: linear-gradient(to right, transparent 1%, black 17%);
}
.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: linear-gradient(90deg, #f9e3ce 0%, #f9e3ce 38%, transparent 66%);
}
.hero-text {
  position: relative;
  width: 59%;
  padding: 24px 0 25px 26px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  line-height: 1.4;
  font-weight: 680;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #91462c;
}
.hero-badge {
  background: #faebda;
  border: 1px solid #d9b69b;
  border-radius: 20px;
  padding: 4px 9px;
}
.hero-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a64d30;
}
.hero h2 {
  margin: 12px 0 3px;
  font-size: clamp(1.7rem, 2.4vw, 2.55rem);
  line-height: 1.06;
  color: #3c342a;
  overflow-wrap: anywhere;
}
.hero-path {
  font-size: 0.82rem;
  color: #705f4f;
}
.hero-progress {
  max-width: 236px;
  margin: 14px 0 13px;
}
.progress {
  height: 5px;
  border-radius: 5px;
  background: #e6e5dc;
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  background: #7c8b72;
  border-radius: inherit;
}
.hero-progress .progress {
  height: 5px;
  background: #dec3ab;
}
.hero-progress .progress i {
  background: #b35a3d;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: #716354;
  margin-bottom: 5px;
}
.hero .btn {
  min-height: 35px;
  font-size: 0.81rem;
  padding: 8px 13px;
}
.hero .btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  stroke-width: 1;
}
.hero-intro {
  font-size: 0.86rem;
  color: #695c4e;
  margin: 8px 0 15px;
}
.panel,
.activity,
.project-card,
.table-wrap {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}
.activity {
  padding: 18px 21px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.activity-head,
.section-head,
.between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.activity-head {
  margin-bottom: 6px;
}
.activity-head h2 {
  font-size: 1.32rem;
}
.period {
  font-size: 0.7rem;
  background: #f4f3ed;
  color: #6b6b61;
  border: 1px solid #e5e3d9;
  border-radius: 5px;
  padding: 2px 7px;
  white-space: nowrap;
}
.metric {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 0;
}
.metric + .metric {
  border-top: 1px solid #eeece4;
}
.metric-icon,
.theme-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex-shrink: 0;
}
.peach {
  color: #9f563d;
  background: #f4e3d7;
}
.sage {
  color: #557255;
  background: #e5ebe0;
}
.blue {
  color: #536e84;
  background: #e2ebef;
}
.lilac {
  color: #72628a;
  background: #ece7f1;
}
.metric-label {
  font-size: 0.81rem;
  color: #66665f;
  flex: 1;
}
.metric-val {
  font-size: 1.55rem;
  letter-spacing: -0.045em;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.section {
  margin-top: 28px;
}
.section-head {
  margin-bottom: 13px;
}
.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}
.count {
  font-family: var(--sans);
  color: #68685e;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0;
  border: 1px solid #deded3;
  background: #efeee8;
  border-radius: 6px;
  padding: 1px 7px;
}
.projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.project-card {
  overflow: hidden;
  position: relative;
  transition:
    box-shadow 0.16s,
    transform 0.16s;
  min-width: 0;
}
.project-card:hover {
  box-shadow: 0 4px 16px #3333260b;
  transform: translateY(-2px);
}
.cover {
  height: clamp(85px, 7vw, 119px);
  display: block;
  overflow: hidden;
  background: var(--tint);
}
.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover.symbol {
  display: grid;
  place-items: center;
  color: var(--theme);
}
.cover.symbol svg {
  width: 45px;
  height: 45px;
}
.project-body {
  padding: 15px 17px 16px;
}
.project-name {
  font-weight: 550;
  letter-spacing: -0.035em;
  font-size: 1.35rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.project-name a:after {
  content: "";
  position: absolute;
  inset: 0;
}
.project-menu {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
}
.project-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  margin: 6px 0 15px;
}
.project-meta .dot {
  color: #a7a69d;
}
.project-progress .progress-label {
  color: var(--muted);
  font-size: 0.72rem;
}
.project-progress .progress-label strong {
  font-weight: 620;
  color: var(--theme);
}
.project-progress .progress {
  height: 4px;
  background: var(--light);
}
.project-progress .progress i {
  background: var(--bar);
}
.theme-medicine {
  --tint: #eaab8c;
  --theme: #985239;
  --bar: #bc7353;
  --light: #f2e3d9;
}
.theme-law {
  --tint: #bbc4a8;
  --theme: #5c7053;
  --bar: #819771;
  --light: #e5e9dd;
}
.theme-computer {
  --tint: #a1c1d1;
  --theme: #456d81;
  --bar: #719bb0;
  --light: #deeaed;
}
.theme-literature {
  --tint: #d9c6d6;
  --theme: #715a77;
  --bar: #9c85a8;
  --light: #eee4ed;
}
.theme-science {
  --tint: #d5d9bb;
  --theme: #68734f;
  --bar: #93a077;
  --light: #e6eadb;
}
.theme-general {
  --tint: #e1ccb0;
  --theme: #8a6743;
  --bar: #aa895c;
  --light: #eee5d7;
}
.table-wrap {
  overflow: hidden;
}
.session-row {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 13px 18px;
}
.session-row + .session-row {
  border-top: 1px solid var(--line);
}
.theme-icon {
  color: var(--theme);
  background: var(--light);
  width: 36px;
  height: 36px;
}
.session-info {
  min-width: 0;
  flex: 1;
}
.session-info b {
  display: block;
  font-size: 0.89rem;
  font-weight: 590;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.session-info small {
  color: var(--muted);
  font-size: 0.75rem;
}
.status {
  border-radius: 30px;
  font-size: 0.72rem;
  line-height: 1.4;
  padding: 4px 9px;
  background: #e8eee1;
  color: #4f694b;
  white-space: nowrap;
}
.status.ongoing {
  color: #965836;
  background: #f7eadd;
}
.session-date {
  width: 96px;
  font-size: 0.8rem;
  text-align: right;
  color: var(--muted);
}
.session-row:hover {
  background: #f7f6f0;
}
.empty {
  padding: 28px;
  text-align: center;
  border: 1px dashed #d4d1c7;
  border-radius: 12px;
  color: var(--muted);
}
.empty svg {
  margin: 0 auto 8px;
  color: #90846d;
}
.empty h3 {
  margin: 0 0 5px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.35rem;
}
.empty .btn {
  margin-top: 13px;
}
.empty p {
  font-size: 0.9rem;
}
.panel {
  padding: 21px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  color: var(--muted);
}
.search-field input {
  padding: 9px 0 !important;
  border: 0 !important;
  background: transparent !important;
  outline: none !important;
  min-width: 0;
  width: 100%;
}
.search-field:focus-within {
  outline: 2px solid var(--rust);
}
.tabs {
  display: flex;
  gap: 3px;
  border: 1px solid var(--line);
  background: #efeee8;
  padding: 3px;
  border-radius: 9px;
  width: fit-content;
  max-width: 100%;
  overflow: auto;
}
.tabs button {
  padding: 6px 12px;
  font-size: 0.83rem;
  border: 1px solid transparent;
  border-radius: 6px;
  white-space: nowrap;
}
.tabs button.selected {
  background: #fffefa;
  border-color: #e4e2d9;
  box-shadow: 0 1px 3px #0000000a;
}
.back {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0 0 15px;
}
.subhead {
  margin: 20px 0 11px;
}
.row {
  gap: 8px;
}
.wrap {
  flex-wrap: wrap;
}
.stack {
  display: grid;
  gap: 12px;
}
.grow {
  flex: 1;
  min-width: 0;
}
.action-set {
  display: flex;
  align-items: center;
  gap: 6px;
}
.subject {
  margin-top: 17px;
}
.subject-head,
.chapter-head {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.subject-head h2 {
  font-size: 1.4rem;
}
.chapter {
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid var(--line);
}
.chapter-head h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.quiz-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f7f6ef;
  border: 1px solid var(--line);
  padding: 11px 13px;
  border-radius: 8px;
  margin-top: 9px;
}
.quiz-row:hover {
  background: #efeee5;
}
.grow b {
  font-weight: 580;
}
.quiz-row small,
.quiz-row b {
  display: block;
}
.quiz-row small {
  color: var(--muted);
}
.bullets {
  padding-left: 1.3rem;
}
.bullets li + li {
  margin-top: 8px;
}
dialog {
  color: var(--ink);
  border: 1px solid #dbd8cb;
  border-radius: 15px;
  background: var(--paper);
  width: min(510px, calc(100% - 24px));
  max-height: 88dvh;
  padding: 0;
  box-shadow: 0 22px 100px #302b2136;
}
dialog::backdrop {
  background: #23251e61;
  backdrop-filter: blur(3px);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 20px 23px 15px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  font-size: 1.55rem;
}
.modal-body {
  padding: 20px 23px 23px;
}
.modal-body > p {
  margin-bottom: 15px;
}
.field,
label.field {
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 570;
  margin-bottom: 14px;
}
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #d6d5ca;
  background: #fffefa;
  border-radius: 7px;
  min-height: 40px;
  font-size: 0.92rem;
}
textarea {
  resize: vertical;
  min-height: 72px;
}
select {
  appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%236d6c65' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--rust);
  width: 18px;
  height: 18px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.form-actions .push {
  margin-right: auto;
}
.form-error {
  border-left: 3px solid #a54131;
  background: #f7e9e3;
  color: #8b3626;
  padding: 8px 11px;
  font-size: 0.85rem;
  margin: 8px 0;
}
.form-error:empty {
  display: none;
}
.field-help {
  color: var(--muted);
  font-size: 0.8rem;
  margin: -6px 0 14px;
}
.answer-edit {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 6px 0;
}
.modal-search-results {
  max-height: 44vh;
  overflow-y: auto;
  margin-top: 12px;
}
.search-result {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 6px;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}
.search-result:hover {
  background: #f4f2ea;
}
.search-result small {
  display: block;
  color: var(--muted);
}
#toast {
  position: fixed;
  z-index: 60;
  bottom: 20px;
  left: 50%;
  transform: translate(-50%, 15px);
  background: #373d32;
  color: #fff;
  padding: 9px 17px;
  border-radius: 8px;
  box-shadow: 0 3px 14px #0002;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.15s,
    transform 0.15s;
  max-width: 90vw;
  text-align: center;
  font-size: 0.87rem;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast-inside {
  color: var(--green);
  font-size: 0.82rem;
}
.auth-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--side);
}
.auth-box {
  width: min(440px, 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  padding: 32px;
}
.auth-box .brand {
  margin: 0 0 25px;
}
.auth-box h1 {
  font-size: 2.2rem;
  margin: 16px 0 10px;
}
.auth-box p {
  color: var(--muted);
  margin-bottom: 16px;
  overflow-wrap: anywhere;
}
.auth-box form > label {
  display: grid;
  gap: 5px;
}
.study-view {
  max-width: 950px;
  margin: auto;
}
.study-panel {
  padding: clamp(20px, 4vw, 40px);
}
.study-panel > .progress {
  margin-top: 12px;
}
.question-title {
  margin: 28px 0 8px;
  line-height: 1.26;
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
}
.choices {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}
.choice {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 13px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffefa;
  font-size: 0.95rem;
}
.choice:hover {
  background: #f6f3eb;
}
.choice.picked {
  background: #faeee1;
  border-color: #c9805d;
}
.choice.correct {
  background: #edf3e6;
  border-color: #9bb287;
}
.choice.wrong {
  background: #f9e9e3;
  border-color: #c7907c;
}
.choice:disabled {
  opacity: 1;
  cursor: default;
}
.choice-letter {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #dcdad0;
  background: var(--paper);
  border-radius: 6px;
  color: #68685d;
  font-size: 0.8rem;
  font-weight: 600;
}
.choice-check {
  width: 16px;
  height: 16px;
  border: 1px solid #aaa89d;
  border-radius: 50%;
}
.choice-check.multi {
  border-radius: 4px;
}
.picked .choice-check {
  background: var(--rust);
  box-shadow: inset 0 0 0 3px #fff;
  border-color: var(--rust);
}
.feedback,
.explanation b,
.save-state {
  display: flex;
  align-items: center;
  gap: 8px;
}
.feedback {
  margin-top: 20px;
}
.good,
.is-correct {
  color: #4b6a43;
}
.bad {
  color: #93442c;
}
.explanation {
  margin-top: 14px;
  background: #f3f2eb;
  border-left: 3px solid #8a9a7a;
  border-radius: 0 6px 6px 0;
  padding: 13px 15px;
}
.explanation b {
  font-size: 0.87rem;
  font-weight: 630;
}
.explanation p {
  font-size: 0.93rem;
  margin-top: 6px;
  white-space: pre-line;
}
.explanation small {
  display: block;
  color: var(--muted);
  margin-top: 6px;
}
.study-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 18px;
}
.save-state {
  color: var(--muted);
  font-size: 0.77rem;
}
.result-grid,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.result-score,
.stat-tile {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}
.result-score svg {
  color: var(--rust);
}
.result-score strong,
.stat-tile strong {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 550;
  letter-spacing: -0.05em;
}
.result-score span,
.stat-tile > span:last-child {
  font-size: 0.83rem;
  color: var(--muted);
}
.question-item {
  padding: 14px 18px;
}
.question-item summary {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}
.question-item summary::-webkit-details-marker {
  display: none;
}
.question-item summary > b {
  flex: 1;
  font-size: 0.93rem;
  font-weight: 570;
}
.question-item summary > svg:last-child {
  color: var(--muted);
}
.question-item[open] summary > svg:last-child {
  transform: rotate(180deg);
}
.q-num {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--rust);
}
.review-options {
  display: grid;
  gap: 5px;
  margin: 14px 0;
}
.review-options p {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  font-size: 0.88rem;
}
.review-options p.is-correct {
  background: #edf2e8;
  border-radius: 4px;
}
.review-options p span {
  color: var(--muted);
}
.answer-line {
  margin-top: 12px;
  font-size: 0.9rem;
}
.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stat-tile strong {
  margin-top: 5px;
}
.chart-bars {
  display: flex;
  height: 165px;
  align-items: stretch;
  gap: 10px;
  padding-top: 18px;
}
.chart-col {
  flex: 1;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 7px;
  min-width: 0;
  text-align: center;
}
.chart-track {
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: repeating-linear-gradient(
    to top,
    #e6e5dc 0 1px,
    transparent 1px 32px
  );
}
.chart-bar {
  position: relative;
  background: #b9795e;
  width: min(55%, 46px);
  border-radius: 5px 5px 0 0;
  min-height: 1px;
}
.chart-bar b {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  font-size: 0.76rem;
  color: #785740;
}
.chart-col small {
  font-size: 0.73rem;
  color: var(--muted);
}
.by-project .progress {
  margin: 5px 0;
}
.by-project .progress i {
  background: var(--bar);
}
.by-project .between {
  font-size: 0.87rem;
}
.assist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.connect-panel h2 {
  margin: 14px 0 8px;
}
.connect-panel p,
.how li p {
  font-size: 0.9rem;
}
.credential {
  margin: 16px 0;
}
.credential > span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 4px;
}
.credential > div {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  background: #f5f4ed;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 7px 5px 10px;
}
.credential code {
  overflow-wrap: anywhere;
  user-select: all;
  min-width: 0;
  font-size: 0.8rem;
}
.credential button {
  flex-shrink: 0;
}
.how ol {
  padding-left: 22px;
}
.how li {
  padding-left: 5px;
  margin: 12px 0;
}
.how li::marker {
  font-family: var(--serif);
  color: var(--rust);
  font-weight: bold;
}
.how li b {
  font-size: 0.92rem;
}
.how li p {
  color: var(--muted);
}
.local-note {
  font-size: 0.86rem;
  color: var(--muted);
  margin-top: 14px;
}
.narrow {
  max-width: 620px;
}
.gap-top {
  margin-top: 14px;
}
@media (min-width: 1500px) {
  .layout {
    grid-template-columns: 248px minmax(0, 1fr);
  }
  .sidebar {
    padding-left: 20px;
    padding-right: 20px;
  }
  .main {
    padding-top: 40px;
  }
  .page-head {
    margin-bottom: 30px;
  }
  .hero {
    min-height: 270px;
  }
  .hero-text {
    padding: 28px 0 28px 32px;
  }
  .hero-progress {
    margin: 18px 0;
  }
  .project-body {
    padding: 19px 21px;
  }
  .activity {
    padding: 21px 25px;
  }
  .metric {
    padding: 13px 0;
  }
  .section {
    margin-top: 34px;
  }
}
@media (max-width: 1150px) {
  .layout {
    grid-template-columns: 185px minmax(0, 1fr);
  }
  .sidebar {
    padding-left: 9px;
    padding-right: 9px;
  }
  .main {
    padding: 26px 23px 42px;
  }
  .topbar {
    padding: 0 23px;
  }
  .focus-grid {
    grid-template-columns: minmax(0, 1.8fr) minmax(228px, 1fr);
    gap: 13px;
  }
  .hero-text {
    padding-left: 19px;
    width: 62%;
  }
  .hero h2 {
    font-size: 1.9rem;
  }
  .activity {
    padding: 15px;
  }
  .metric {
    gap: 8px;
  }
  .metric-label {
    font-size: 0.78rem;
  }
  .metric-val {
    font-size: 1.35rem;
  }
  .project-body {
    padding: 13px;
  }
  .projects {
    gap: 12px;
  }
  .project-name {
    font-size: 1.23rem;
  }
  .nav-link {
    padding-left: 11px;
    gap: 8px;
  }
}
@media (max-width: 940px) {
  .layout {
    grid-template-columns: 166px minmax(0, 1fr);
  }
  .brand {
    margin-left: 7px;
  }
  .nav-link {
    font-size: 0.82rem;
    gap: 7px;
  }
  .sidebar {
    padding-left: 7px;
    padding-right: 7px;
  }
  .main {
    padding: 23px 18px 36px;
  }
  .topbar {
    padding: 0 18px;
  }
  .focus-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(203px, 1fr);
  }
  .activity {
    padding: 12px;
  }
  .activity-head h2 {
    font-size: 1.18rem;
  }
  .activity-head {
    gap: 4px;
  }
  .metric-icon {
    width: 29px;
    height: 29px;
  }
  .metric {
    padding: 11px 0;
  }
  .hero-text {
    width: 66%;
    padding-left: 16px;
  }
  .hero-path {
    font-size: 0.76rem;
  }
  .hero h2 {
    font-size: 1.72rem;
  }
  .hero-art {
    right: -8%;
  }
  .project-menu {
    width: 21px;
  }
  .project-body {
    padding: 10px;
  }
  .section h2 {
    font-size: 1.52rem;
  }
  .project-meta {
    gap: 4px;
    font-size: 0.73rem;
  }
  .page-head p {
    font-size: 0.88rem;
  }
  .projects {
    gap: 9px;
  }
  .session-date {
    width: 72px;
  }
}
@media (max-width: 760px) {
  .layout {
    display: block;
  }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 235px;
    transform: translateX(-104%);
    visibility: hidden;
    transition:
      transform 0.18s,
      visibility 0.18s;
    padding: 25px 14px 15px;
  }
  .drawer-open .sidebar {
    transform: translateX(0);
    visibility: visible;
  }
  .drawer-open .scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 11;
    background: #24261c56;
  }
  .drawer-open {
    overflow: hidden;
  }
  .drawer-close,
  .menu-toggle {
    display: inline-grid;
  }
  .drawer-close {
    margin-bottom: 40px;
  }
  .nav-link {
    font-size: 0.94rem;
    padding: 12px 14px;
    gap: 12px;
  }
  .topbar {
    height: 55px;
  }
  .topbar .crumb {
    gap: 8px;
  }
  .main {
    padding: 23px 18px 38px;
  }
  .hero-text {
    width: 60%;
    padding-left: 20px;
  }
  .hero h2 {
    font-size: 1.9rem;
  }
  .hero-art {
    right: -2%;
  }
  .project-name {
    font-size: 1.18rem;
  }
  .focus-grid {
    grid-template-columns: minmax(0, 1.65fr) minmax(190px, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .top-tools {
    gap: 8px;
  }
  .top-search {
    padding-left: 8px;
  }
  .assist-grid {
    grid-template-columns: 1fr;
  }
  .profile-text strong {
    font-size: 0.93rem;
  }
  .profile-text small {
    font-size: 0.78rem;
  }
}
@media (max-width: 590px) {
  .topbar {
    padding: 0 12px;
  }
  .today {
    display: none;
  }
  .top-search {
    padding: 0;
    border: 0;
  }
  .main {
    padding: 22px 15px 34px;
  }
  .page-head {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 13px;
    margin-bottom: 17px;
  }
  h1 {
    font-size: 2.35rem;
  }
  .page-head p {
    margin-top: 5px;
  }
  .focus-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .hero {
    min-height: 217px;
  }
  .hero-text {
    padding: 19px 0 19px 18px;
    width: 59%;
  }
  .hero h2 {
    font-size: 1.85rem;
  }
  .hero-art {
    width: 54%;
    right: -2%;
  }
  .hero-progress {
    margin: 12px 0;
  }
  .hero-path {
    font-size: 0.74rem;
  }
  .activity {
    display: block;
    padding: 13px 14px;
  }
  .activity-head {
    margin-bottom: 10px;
  }
  .activity-head h2 {
    font-size: 1.24rem;
  }
  .activity {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .activity-head {
    grid-column: 1/-1;
  }
  .metric {
    border: 0 !important;
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    align-content: start;
    padding: 0 3px 0 9px;
  }
  .metric:nth-child(n + 3) {
    border-left: 1px solid var(--line) !important;
  }
  .metric:nth-child(2) {
    padding-left: 0;
  }
  .metric-icon {
    width: 30px;
    height: 30px;
  }
  .metric .metric-icon {
    display: none;
  }
  .metric-val {
    grid-row: 1;
    font-size: 1.46rem;
  }
  .metric-label {
    font-size: 0.72rem;
  }
  .section {
    margin-top: 23px;
  }
  .section-head {
    margin-bottom: 10px;
  }
  .projects {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .project-card {
    display: block;
  }
  .cover {
    height: 100px;
  }
  .project-body {
    padding: 13px 16px;
  }
  .project-name {
    font-size: 1.36rem;
  }
  .project-meta {
    font-size: 0.8rem;
    margin: 5px 0 9px;
  }
  .project-progress .progress-label {
    font-size: 0.75rem;
  }
  .session-row {
    padding: 12px 11px;
    gap: 8px;
  }
  .session-date {
    display: none;
  }
  .session-row > svg {
    display: none;
  }
  .session-info b {
    font-size: 0.84rem;
  }
  .session-info small {
    font-size: 0.72rem;
  }
  .session-row .status {
    font-size: 0.68rem;
  }
  .result-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .result-score {
    padding: 12px 9px;
  }
  .result-score strong {
    font-size: 1.5rem;
  }
  .result-score svg {
    display: none;
  }
  .result-score span {
    font-size: 0.72rem;
  }
  .panel {
    padding: 15px;
  }
  .question-item {
    padding: 12px;
  }
  .toolbar {
    gap: 7px;
  }
  .tabs button {
    padding: 6px 9px;
  }
  .subject-head .btn,
  .chapter-head .btn {
    min-height: 33px;
    padding: 6px 9px;
  }
  .stats-grid {
    gap: 9px;
  }
  .chart-bars {
    gap: 4px;
  }
  .chart-col small {
    font-size: 0.6rem;
  }
  .modal-head {
    padding: 16px;
  }
  .modal-body {
    padding: 16px;
  }
  .study-footer {
    align-items: flex-start;
  }
  .study-panel {
    padding: 16px;
  }
  .question-title {
    margin: 21px 0 7px;
  }
  .choice {
    padding: 10px;
    gap: 9px;
  }
  .btn {
    white-space: normal;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.hero-art {
  mix-blend-mode: normal;
}
.mobile-brand {
  display: none;
}
@media (max-width: 760px) {
  .crumb .mobile-brand {
    display: inline-block;
    font-size: 1.55rem;
    color: var(--ink);
  }
  .crumb-space {
    display: none;
  }
}
@media (max-width: 590px) {
  .hero-text {
    width: 100%;
    padding-right: 12px;
  }
  .hero h2,
  .hero-path,
  .hero-progress,
  .hero-intro {
    max-width: 54%;
  }
  .hero-art {
    width: 47%;
    right: 0;
  }
  .hero .btn {
    white-space: nowrap;
  }
  .hero h2 {
    margin-top: 11px;
  }
}
