.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 28px 0;
}
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.filter-tabs button {
  font-size: 11px;
  padding: 10px 16px;
  border: 1px solid #dfe6d7;
  border-radius: 6px;
  background: white;
  color: #849274;
  min-height: 38px;
}
.filter-tabs button.active {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}
.result-count {
  font-size: 11px;
  color: #88957a;
  white-space: nowrap;
  margin-left: 15px;
}
.catalog-group {
  margin-bottom: 30px;
}
.catalog-group-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.catalog-group-heading h2 {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.3px;
}
.catalog-group-heading p {
  font-size: 10px;
  color: #8c987e;
  margin-top: 4px;
}
.lesson-list {
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  overflow: hidden;
}
.lesson-list .lesson-row {
  padding: 20px 24px;
}
.lesson-list .lesson-row-main strong {
  font-size: 13px;
}
.lesson-list .lesson-row-main > span {
  font-size: 11px;
}
.lesson-list .formula-tag,
.lesson-list .lesson-duration {
  font-size: 10px;
}
.lesson-list .lesson-number {
  width: 36px;
  height: 36px;
  font-size: 11px;
}
.catalog-note {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 16px;
  color: #8d997d;
  font-size: 11px;
}
.catalog-note .icon {
  width: 16px;
  height: 16px;
}
.empty-state {
  text-align: center;
  padding: 70px 15px;
}
.empty-state > .icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 20px;
  color: #72905a;
}
.empty-state h1,
.empty-state h2 {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 400;
}
.empty-state p {
  margin: 14px 0 24px;
  color: #839273;
  line-height: 1.8;
  font-size: 13px;
}
.progress-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  margin: 30px 0 35px;
  padding: 25px 28px;
  gap: 25px;
}
.progress-overview > div {
  padding: 0 22px;
  border-right: 1px solid var(--line);
}
.progress-overview > div:first-child {
  padding-left: 0;
}
.progress-overview > div:last-child {
  border-right: 0;
  padding-right: 0;
}
.summary-label {
  font-size: 12px;
  color: #839176;
  display: block;
  margin-bottom: 14px;
}
.progress-overview strong {
  font-size: 38px;
  font-weight: 550;
  letter-spacing: -1.5px;
  display: block;
  color: var(--forest);
}
.progress-overview strong span {
  font-size: 17px;
  color: #8ba079;
  letter-spacing: -0.4px;
}
.progress-overview progress {
  margin-top: 13px;
}
.progress-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 28px;
}
.progress-layout > section {
  min-width: 0;
}
.progress-empty {
  padding: 40px;
  border: 1px dashed #cfd9c2;
  border-radius: 12px;
  background: #f1f5e9;
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
}
.progress-empty h3 {
  font-family: var(--serif);
  font-size: 33px;
  font-weight: 400;
  margin: 17px 0 10px;
}
.progress-empty p {
  font-size: 12px;
  color: #869577;
  margin-bottom: 24px;
}
.storage-explainer {
  display: flex;
  gap: 10px;
  margin: 25px 0 12px;
  max-width: 620px;
}
.storage-explainer > .icon {
  color: #8d9d7d;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.storage-explainer strong {
  font-size: 11px;
  font-weight: 600;
  color: #6e815c;
}
.storage-explainer p {
  font-size: 10px;
  line-height: 1.8;
  color: #929f83;
  margin-top: 5px;
}
.storage-warning {
  padding: 13px 16px;
  border: 1px solid #dbc294;
  background: #faf2dd;
  color: #765d30;
  border-radius: 8px;
  font-size: 12px;
  margin-bottom: 20px;
}
.practice-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
  gap: 12px;
}
.back-link {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #819171;
}
.back-link > .icon {
  transform: rotate(180deg);
  width: 15px;
  height: 15px;
}
.back-link:hover {
  color: var(--forest);
}
.practice-location {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  color: #92a080;
}
.practice-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.practice-skill {
  font-size: 10px;
  color: #6f8c55;
  display: inline-block;
  margin-bottom: 8px;
}
.practice-heading h1 {
  font-family: var(--serif);
  font-size: 43px;
  font-weight: 400;
  letter-spacing: -1px;
  line-height: 1.15;
}
.practice-heading p {
  font-size: 12px;
  color: #839175;
  margin-top: 10px;
  line-height: 1.7;
}
.practice-heading > .lesson-duration {
  font-size: 11px;
}
.lesson-position {
  display: flex;
  gap: 6px;
  margin-bottom: 28px;
}
.position-dot {
  height: 5px;
  flex: 1;
  max-width: 74px;
  background: #e3e9da;
  border-radius: 5px;
}
.position-dot.completed {
  background: #97b377;
}
.position-dot.current {
  background: var(--forest);
}
.practice-grid {
  display: grid;
  grid-template-columns: 275px minmax(0, 1fr);
  gap: 25px;
  align-items: start;
}
.instructions-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
}
.task-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #8b967d;
  font-size: 10px;
  margin-bottom: 17px;
}
.task-label .icon {
  width: 16px;
  height: 16px;
}
.instructions-panel h2 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.4px;
  margin-bottom: 13px;
}
.instructions-panel > p {
  font-size: 12px;
  color: #7f8c72;
  line-height: 1.9;
}
.target-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  background: #edf4e1;
  padding: 11px;
  border-radius: 6px;
  margin: 17px 0 21px;
  color: #6b8651;
}
.target-note .icon {
  width: 15px;
  height: 15px;
}
.concept-box {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.concept-box h3 {
  font-size: 11px;
  font-weight: 650;
}
.concept-box p {
  font-size: 11px;
  color: #859375;
  line-height: 1.9;
  margin: 9px 0 12px;
}
.concept-box code,
.revealed-answer code {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  background: #f5f7ef;
  color: #68844e;
  padding: 11px 10px;
  display: block;
  border: 1px solid #e9eedf;
  border-radius: 6px;
  word-break: break-word;
  line-height: 1.7;
}
.hint-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: #7c9066;
  border-top: 1px solid var(--line);
  padding: 19px 0 0;
  margin-top: 20px;
  text-align: left;
  line-height: 1.5;
}
.hint-button .icon {
  width: 15px;
  height: 15px;
}
.hint-button .icon:last-child {
  margin-left: auto;
  width: 11px;
  height: 11px;
}
.hint-content {
  font-size: 11px;
  background: #f5f4e5;
  color: #827e56;
  border-radius: 6px;
  padding: 12px;
  margin-top: 12px;
  line-height: 1.9;
}
.answer-button {
  font-size: 9px;
  color: #91a07e;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 18px 0 0;
}
.revealed-answer {
  margin-top: 13px;
}
.revealed-answer p {
  font-size: 10px;
  color: #8a9879;
  line-height: 1.8;
  margin-top: 9px;
}
.practice-workbook {
  min-width: 0;
}
.workbook {
  border: 1px solid #d6dfcf;
  background: white;
  border-radius: 11px;
  overflow: hidden;
  box-shadow: 0 6px 20px #2c462d04;
}
.workbook-title {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 15px 17px;
  background: #edf2e7;
  border-bottom: 1px solid #dfe6d7;
}
.workbook-title .icon {
  width: 16px;
  height: 16px;
  color: #70905b;
}
.workbook-title strong {
  font-size: 11px;
  font-weight: 600;
}
.workbook-title > span {
  margin-left: auto;
  color: #93a283;
  font-size: 9px;
}
.formula-bar {
  display: flex;
  align-items: center;
  height: 45px;
  border-bottom: 1px solid #dfe6d7;
  min-width: 0;
}
.cell-name {
  font-size: 11px;
  text-align: center;
  min-width: 64px;
  border-right: 1px solid #e6ebde;
  padding: 10px;
  color: #718461;
}
.formula-fx {
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  padding: 0 14px;
  color: #8fa07c;
}
.formula-bar input {
  border: 0;
  background: transparent;
  width: 100%;
  height: 100%;
  padding: 8px 14px 8px 0;
  outline: 0;
  font-size: 12px;
  color: var(--forest);
}
.formula-bar:focus-within {
  box-shadow: inset 0 0 0 2px #9cba7d;
}
.formula-bar input[readonly] {
  color: #8e9d7e;
}
.formula-bar input::placeholder {
  font-size: 11px;
  color: #abb59d;
}
.sheet-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  max-width: 100%;
  scrollbar-width: thin;
  scrollbar-color: #bccdad #f3f6ed;
}
.spreadsheet {
  width: 100%;
  min-width: 510px;
  border-collapse: collapse;
  table-layout: fixed;
  font-variant-numeric: tabular-nums;
}
.spreadsheet th,
.spreadsheet td {
  border-right: 1px solid #e5ebdf;
  border-bottom: 1px solid #e5ebdf;
  height: 35px;
  padding: 0;
  position: relative;
}
.spreadsheet thead th {
  height: 29px;
  background: #f6f8f2;
  font-size: 10px;
  color: #94a185;
  font-weight: 450;
}
.spreadsheet th:first-child {
  width: 33px;
}
.spreadsheet tbody th {
  background: #f8faf5;
  font-size: 10px;
  font-weight: 400;
  color: #a0ac91;
}
.spreadsheet th.target-column {
  background: #e6efda;
  color: #6a8754;
}
.sheet-corner:after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-bottom: 7px solid #cbd7bd;
}
.sheet-cell {
  display: block;
  min-width: 0;
  width: 100%;
  height: 100%;
  text-align: left;
  padding: 9px 10px;
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sheet-cell:hover {
  background: #f5f8f0;
}
.numeric-cell .sheet-cell {
  text-align: right;
  color: #566b47;
}
.data-heading {
  background: #f2f5ec;
}
.data-heading .sheet-cell {
  font-weight: 600;
  font-size: 10px;
  color: #647953;
}
.reference-cell {
  background: #f9fcf5;
}
.total-label .sheet-cell {
  font-weight: 650;
  color: #637b4e;
}
.spreadsheet td.selected:after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 2px solid #668f4b;
  pointer-events: none;
  z-index: 1;
}
.spreadsheet td.answer-cell {
  background: #ecf4e0;
}
.answer-cell input {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  padding: 9px 10px;
  outline: 0;
  font-size: 11px;
  font-weight: 550;
  color: #567942;
}
.answer-cell.selected:before {
  content: "";
  position: absolute;
  right: -3px;
  bottom: -3px;
  background: #668f4b;
  width: 5px;
  height: 5px;
  z-index: 2;
  pointer-events: none;
}
.answer-cell input::placeholder {
  color: #8ea678;
}
.answer-cell input.answer-correct {
  background: #e0eecd;
}
.sheet-bottom {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  min-height: 38px;
  background: #f8faf4;
  padding: 0 13px;
  border-top: 1px solid #e5ebdf;
}
.sheet-tab {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  border-bottom: 2px solid #739955;
  padding: 10px 11px;
  color: #5c8045;
  background: #f0f5e7;
}
.sheet-tab .icon {
  width: 12px;
  height: 12px;
}
.sheet-bottom-note {
  font-size: 8px;
  color: #99a689;
  text-align: right;
}
.workbook-guidance {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  color: #95a183;
  margin: 12px 2px 19px;
  line-height: 1.7;
}
.workbook-guidance .icon {
  width: 13px;
  height: 13px;
}
.practice-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.practice-actions .button {
  font-size: 11px;
}
.keyboard-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 9px;
  color: #98a38b;
  margin-top: 13px;
  line-height: 1.7;
}
.keyboard-hint > span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.keyboard-hint > .icon {
  width: 12px;
  height: 12px;
}
.lesson-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  gap: 12px;
}
.previous .icon {
  transform: rotate(180deg);
}
.simulator-footer {
  font-size: 9px;
  color: #a1ac94;
  text-align: center;
  margin-top: 30px;
  line-height: 1.8;
}
.feedback-slot:not(:empty) {
  margin-bottom: 20px;
}
.answer-feedback {
  display: flex;
  align-items: start;
  gap: 10px;
  border-radius: 9px;
  padding: 17px;
  position: relative;
  animation: feedback-arrive 0.25s ease-out;
}
.answer-feedback.success {
  background: #e9f2db;
  border: 1px solid #d4e4bd;
}
.answer-feedback.try-again {
  background: #faf2df;
  border: 1px solid #e9dcbb;
}
.feedback-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  flex-shrink: 0;
  background: #d6e7bb;
  color: #648541;
}
.try-again .feedback-icon {
  background: #efe0b8;
  color: #907c3f;
}
.feedback-icon .icon {
  width: 15px;
  height: 15px;
}
.answer-feedback h3 {
  font-size: 12px;
  font-weight: 650;
  margin: 4px 0 8px;
  padding-right: 35px;
}
.answer-feedback p {
  font-size: 11px;
  line-height: 1.8;
  color: #748461;
}
.try-again p,
.try-again h3 {
  color: #8a7c57;
}
.result-value {
  font-size: 10px;
  margin-top: 11px;
  color: #73835d;
}
.result-value strong {
  font-size: 12px;
  margin-left: 4px;
}
.answer-feedback .text-link {
  margin-top: 15px;
  font-size: 10px;
}
.xp-gain {
  font-size: 9px;
  padding: 4px 7px;
  background: #d7e8bb;
  border-radius: 4px;
  white-space: nowrap;
  color: #688c44;
  position: absolute;
  right: 12px;
  top: 16px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
  max-width: 540px;
  width: calc(100% - 32px);
  max-height: calc(100vh - 50px);
  overflow-y: auto;
  color: var(--ink);
  box-shadow: 0 20px 80px #173f351a;
}
dialog::backdrop {
  background: #18352866;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
dialog h2 {
  font-family: var(--serif);
  font-size: 35px;
  font-weight: 400;
  letter-spacing: -0.7px;
  line-height: 1.12;
}
dialog > p {
  font-size: 12px;
  color: #7f8c73;
  line-height: 1.9;
  margin-top: 15px;
}
.help-steps {
  margin-top: 22px;
}
.help-steps > div {
  display: flex;
  align-items: start;
  gap: 12px;
  margin-bottom: 17px;
}
.help-steps > div > span {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #edf3e3;
  color: #78935e;
  font-size: 11px;
  flex-shrink: 0;
}
.help-steps p {
  font-size: 11px;
  color: #859176;
  line-height: 1.8;
}
.help-steps strong {
  display: block;
  color: #60774e;
  font-weight: 650;
  font-size: 12px;
  margin-bottom: 3px;
}
.simulator-note {
  border-top: 1px solid var(--line);
  padding-top: 17px;
  margin-top: 22px;
}
.simulator-note summary {
  font-size: 11px;
  cursor: pointer;
  color: #81946a;
  line-height: 1.8;
}
.simulator-note p {
  font-size: 10px;
  line-height: 1.9;
  color: #8b967e;
  margin-top: 10px;
}
.dialog-done {
  margin-top: 24px;
  width: 100%;
}
.toast {
  position: fixed;
  left: calc(50% + var(--sidebar) / 2);
  transform: translateX(-50%);
  bottom: 24px;
  z-index: 60;
  background: var(--forest);
  color: white;
  padding: 13px 20px;
  border-radius: 8px;
  box-shadow: 0 6px 30px #173f3522;
  font-size: 12px;
  max-width: calc(100vw - 30px);
  text-align: center;
}
.noscript {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #fff1d7;
  color: #7f5d26;
  text-align: center;
  padding: 20px;
}
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 25;
  background: #173f3544;
  backdrop-filter: blur(2px);
}
@keyframes workbook-arrive {
  from {
    opacity: 0;
    transform: translateY(9px) rotate(2deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}
@keyframes feedback-arrive {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
