﻿.curriculum-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.catalog-selects {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 26px;
}
.catalog-selects label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}
.catalog-selects select {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px 32px 11px 12px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  max-width: 100%;
  min-height: 44px;
}
.catalog-selects .result-count {
  margin-left: auto;
  padding: 13px 0;
}
.module-heading {
  position: relative;
  margin: 28px 0 22px;
  padding: 38px;
  border: 1px solid #d2dec4;
  border-radius: 22px;
  background: radial-gradient(circle at 100% 0%, #dcebb9 0, transparent 48%), linear-gradient(125deg, #f3f7e9, #e9efde);
}
.module-kicker {
  font-size: 11px;
  color: var(--leaf);
  letter-spacing: 0.1em;
  font-weight: 700;
}
.module-heading h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 400;
  line-height: 1.14;
  margin: 14px 0;
  max-width: 820px;
}
.module-heading p {
  max-width: 650px;
  line-height: 1.7;
  color: #536748;
}
.module-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 24px;
}
.module-meta span {
  padding: 6px 10px;
  border: 1px solid #ccd9bb;
  border-radius: 999px;
  font-size: 11px;
  background: #ffffff91;
}
.module-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 12px;
  background: var(--soft);
  color: #526848;
  line-height: 1.7;
  font-size: 13px;
  margin-bottom: 30px;
}
.module-notice .icon {
  flex-shrink: 0;
  margin-top: 2px;
}
.module-syllabus .progress-track {
  width: 100%;
  margin: 8px 0 22px;
}
.path-card h3 a:hover,
.catalog-group-heading h2 a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.curriculum-grid .path-card {
  display: flex;
  flex-direction: column;
}
.curriculum-grid .path-card h3 {
  font-size: 21px;
  overflow-wrap: anywhere;
}
.curriculum-grid .path-card > p {
  line-height: 1.7;
  min-height: 52px;
  font-size: 12px;
}
.curriculum-grid .path-order {
  font-size: 10px;
  line-height: 1.7;
}
.curriculum-grid .path-action {
  margin-top: auto;
  padding-top: 16px;
  font-size: 12px;
}
.curriculum-grid .path-progress {
  font-size: 11px;
}
.curriculum-grid .progress-track {
  width: 100%;
  margin-bottom: 18px;
}
.backup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}
.backup-label {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.backup-label input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  cursor: pointer;
}
.backup-label:focus-within {
  outline: 3px solid var(--leaf);
  outline-offset: 3px;
}
.choice-button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  line-height: 1.6;
}
.choice-key {
  display: inline-grid;
  place-items: center;
  flex: 0 0 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  font-size: 12px;
  font-weight: 700;
}
.choice-button[aria-pressed="true"] {
  border-color: var(--leaf);
  background: #eff6e7;
  box-shadow: inset 3px 0 var(--leaf);
}
.choice-button.is-incorrect {
  border-color: #aa643b;
  background: #fff5ed;
  box-shadow: inset 3px 0 #aa643b;
}
.bar-meter {
  appearance: none;
  width: 100%;
  height: 12px;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--soft);
}
.bar-meter::-webkit-progress-bar { background: var(--soft); }
.bar-meter::-webkit-progress-value { background: var(--leaf); border-radius: 10px; }
.bar-meter::-moz-progress-bar { background: var(--leaf); }
.module-syllabus .lesson-row-main > span {
  font-size: 12px;
  line-height: 1.7;
}
.module-syllabus .lesson-row-main strong {
  font-size: 14px;
}
.concept-reading {
  max-width: 900px;
  margin: 0 auto 36px;
  padding: clamp(20px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper, #fff);
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.concept-reading h2 { margin: 0 0 16px; }
.concept-reading h3 { margin: 28px 0 12px; font-size: 17px; }
.concept-objective { font-weight: 600; }
.concept-terms { margin: 0; }
.concept-terms > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.concept-terms dt { font-weight: 700; }
.concept-terms dd { margin: 4px 0 0; }
.concept-table-scroll { overflow-x: auto; }
.concept-example { width: 100%; border-collapse: collapse; font-size: 14px; }
.concept-example caption { text-align: left; padding-bottom: 8px; font-size: 12px; }
.concept-example th, .concept-example td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.concept-example th { background: var(--soft); }
.concept-example-result, .concept-current { padding: 16px; background: var(--soft); border-radius: 10px; }
.concept-current { margin: 24px 0; }
.concept-current h3 { margin-top: 0; }
.concept-steps { padding-left: 24px; }
.concept-steps li { padding: 4px 0; }
.concept-limit { font-size: 12px; margin-bottom: 0; }
.concept-reading .button { white-space: normal; text-align: left; }
.concept-check { scroll-margin-top: 24px; }
.concept-question-title { font-size: 20px; margin: 0 0 12px; }
.concept-choice-instruction { line-height: 1.8; margin-bottom: 20px; }
@media (max-width: 1200px) {
  .curriculum-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .curriculum-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .catalog-selects label { flex: 1 1 140px; min-width: 0; }
  .catalog-selects .result-count { flex-basis: 100%; margin: 0; padding: 0; }
  .module-heading { padding: 25px 20px; }
  .module-heading .button { width: 100%; justify-content: center; }
  .module-meta { gap: 6px; }
  .module-kicker { font-size: 10px; }
  .module-notice { font-size: 12px; }
  .backup-actions .button { width: 100%; }
}

/* Simulator data: Pivot & Transformasi */
.sim-task {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin: 0 0 24px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.sim-task h2 {
  margin: 6px 0 16px;
  font-size: 22px;
  line-height: 1.4;
}
.sim-task details {
  background: var(--soft);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 16px 0;
}
.sim-task summary {
  font-weight: 700;
  cursor: pointer;
  color: var(--forest);
  outline-offset: 4px;
}
.sim-task details p {
  margin: 12px 0;
  line-height: 1.7;
}
.sim-task dl {
  margin: 12px 0;
}
.sim-task dt {
  font-weight: 700;
  margin-top: 8px;
}
.sim-task dd {
  margin: 2px 0 8px 16px;
  color: var(--ink);
}
.sim-task ol {
  padding-left: 20px;
  margin: 12px 0;
}
.sim-task ol li {
  padding: 3px 0;
}
.sim-limit {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin: 12px 0 0;
}

.simulator-workspace {
  display: grid;
  gap: 24px;
  min-width: 0;
  max-width: 100%;
}
.simulator-workspace > * {
  min-width: 0;
  max-width: 100%;
}
.sim-source, .sim-settings, .sim-result {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.sim-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}
.sim-section-heading h2 {
  margin: 0;
  font-size: 18px;
}
.sim-settings h2, .sim-result h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.sim-table-scroll {
  overflow-x: auto;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 14px 0;
  background: var(--white);
  -webkit-overflow-scrolling: touch;
}
.sim-table-scroll:focus-visible {
  outline: 2px solid var(--leaf);
  outline-offset: 2px;
}
.sim-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.sim-table caption {
  text-align: left;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
}
.sim-table th, .sim-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}
.sim-table th:last-child, .sim-table td:last-child {
  border-right: none;
}
.sim-table th {
  background: var(--soft);
  font-weight: 700;
  color: var(--forest);
}
.sim-table tbody tr:nth-child(even) {
  background: rgba(247, 248, 244, 0.6);
}
.sim-table tbody tr:hover {
  background: var(--soft);
}

.sim-control-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 16px 0;
  min-width: 0;
  max-width: 100%;
}
.sim-control-grid label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  min-width: 0;
  max-width: 100%;
}
.sim-control-grid select,
.sim-control-grid input {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  font: inherit;
  font-size: 13px;
  background: var(--white);
  color: var(--ink);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.sim-control-grid select:focus,
.sim-control-grid input:focus {
  outline: 2px solid var(--leaf);
  outline-offset: 1px;
}

.sim-steps {
  list-style: decimal inside;
  padding: 0;
  margin: 16px 0;
  display: grid;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}
.sim-steps li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: var(--soft);
  border-radius: 8px;
  font-size: 13px;
  border: 1px solid var(--line);
  min-width: 0;
  box-sizing: border-box;
}
.sim-steps li > div {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.sim-steps li button {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  color: var(--forest);
}
.sim-steps li button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.sim-steps li button:not(:disabled):hover {
  background: var(--soft);
  border-color: var(--leaf);
}

.sim-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.sim-result-summary {
  font-weight: 700;
  color: var(--forest);
  margin: 8px 0;
  font-size: 14px;
}
.sim-empty {
  color: var(--muted);
  font-size: 13px;
  padding: 14px;
  background: var(--canvas);
  border-radius: 8px;
  margin: 12px 0;
}
.sim-error {
  color: #9f1239;
  background: #ffe4e6;
  border: 1px solid #fecdd3;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  margin: 12px 0;
}
.sim-history {
  padding-left: 20px;
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0;
}
.sim-audit-table {
  margin-top: 14px;
}

@media (max-width: 620px) {
  .sim-task { padding: 18px 14px; }
  .sim-source, .sim-settings, .sim-result { padding: 18px 14px; }
  .sim-control-grid { grid-template-columns: 1fr; }
  .sim-actions .button { width: 100%; justify-content: center; }
  .sim-steps li { flex-direction: column; align-items: flex-start; }
  .sim-steps li > div { width: 100%; justify-content: flex-end; }
  .sim-section-heading .button { width: 100%; justify-content: center; }
}
.chart-figure { margin: 16px 0; max-width: 100%; min-width: 0; }
.chart-figure figcaption { font-weight: 700; margin-bottom: 12px; }
.practice-chart { display: block; width: 100%; min-width: 560px; background: #f8fbff; border-radius: 12px; }
.practice-chart text { font-size: 12px; fill: #243650; }
.chart-grid { stroke: #d8e2ef; stroke-width: 1; }
.chart-baseline { stroke: #52647d; stroke-width: 2; }
.chart-bar, .chart-point { fill: #176b89; }
.chart-line { fill: none; stroke: #176b89; stroke-width: 3; }
.chart-value { font-weight: 700; }
.chart-cell { width: 130px; padding: 8px; border: 1px solid #75859b; border-radius: 6px; background: white; color: #182b44; }
.chart-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 12px; margin: 18px 0; }
.chart-kpis > div { padding: 18px; background: #edf4ef; border: 1px solid #cbd9cf; border-radius: 12px; min-width: 0; }
.chart-kpis strong, .chart-kpis small { display: block; margin-top: 8px; overflow-wrap: anywhere; }
.chart-kpis strong { font-size: 1.5rem; color: #174f46; }
.chart-note { padding: 12px; border-left: 4px solid #a36316; background: #fff5df; }
.chart-legend { list-style: none; padding: 0; }
.chart-legend li { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.chart-swatch { width: 14px; height: 14px; flex-shrink: 0; }
.chart-slice { stroke: #fff; stroke-width: 2; }
.chart-slice-0 { fill: #176b89; background: #176b89; }
.chart-slice-1 { fill: #75441d; background: #75441d; }
.practice-chart .pie-value { fill: #fff; font-weight: 700; font-size: 16px; }

/* Jendela latihan yang mengikuti tata letak Microsoft Excel */
.xl-app {
  display: flex;
  flex-direction: column;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #b4b4b4;
  background: #fff;
  color: #242424;
  font-family: "Segoe UI", Calibri, sans-serif;
  font-size: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}
.xl-app > * { min-width: 0; max-width: 100%; }
.xl-app button, .xl-app input { font-family: Calibri, "Segoe UI", sans-serif; }
.xl-app :focus-visible { outline: 2px solid #217346; outline-offset: -2px; }
.xl-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 6px 0 10px;
  background: #fff;
  border-top: 3px solid #217346;
  border-bottom: 1px solid #edebe9;
}
.xl-logo {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  background: #217346;
  color: #fff;
  font: 700 12px "Segoe UI", sans-serif;
}
.xl-doctitle { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xl-win { display: flex; margin-left: auto; }
.xl-min, .xl-max, .xl-close { width: 42px; height: 31px; display: grid; place-items: center; position: relative; }
.xl-min::before { content: ""; width: 10px; height: 1px; background: #242424; }
.xl-max::before { content: ""; width: 10px; height: 10px; border: 1px solid #242424; }
.xl-close::before, .xl-close::after { content: ""; position: absolute; width: 12px; height: 1px; background: #242424; }
.xl-close::before { transform: rotate(45deg); }
.xl-close::after { transform: rotate(-45deg); }
.xl-tabs {
  display: flex;
  align-items: flex-end;
  height: 32px;
  padding: 0 8px;
  gap: 2px;
  background: #fff;
  overflow-x: auto;
}
.xl-file { color: #217346; font-weight: 650; padding: 6px 12px; font-size: 13px; white-space: nowrap; }
.xl-tab { padding: 6px 12px 7px; color: #616161; font-size: 13px; white-space: nowrap; border-bottom: 3px solid transparent; }
.xl-tab-on { color: #242424; font-weight: 650; border-bottom-color: #217346; }
.xl-ribbon {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-height: 104px;
  padding: 4px 6px 0;
  background: #f3f3f3;
  border-top: 1px solid #edebe9;
  border-bottom: 1px solid #d6d6d6;
  overflow-x: auto;
}
.xl-group {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2px 10px 4px;
  border-right: 1px solid #d4d4d4;
  flex: 0 0 auto;
}
.xl-group-main { display: flex; align-items: center; gap: 4px; min-height: 74px; }
.xl-group-caption { text-align: center; font-size: 11px; color: #616161; line-height: 16px; }
.xl-stack { display: flex; flex-direction: column; }
.xl-cmd {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 6px;
  border-radius: 3px;
  color: #242424;
  font-size: 12px;
  white-space: nowrap;
  background: transparent;
}
.xl-cmd:hover:not(:disabled), .xl-fmt:hover:not(:disabled), .xl-tick:hover, .xl-cross:hover { background: #e6e6e6; }
.xl-cmd:disabled, .xl-fmt:disabled { color: #242424; cursor: default; }
.xl-cmd-lg {
  flex-direction: column;
  justify-content: center;
  width: auto;
  min-width: 62px;
  max-width: 96px;
  height: 72px;
  padding: 4px;
  white-space: normal;
  text-align: center;
  line-height: 1.15;
}
.xl-cmd-lg .xl-ico { width: 26px; height: 26px; }
.xl-cmd-live:hover { background: #e5f2ea; }
.xl-chip.xl-on { background: #c8e6c9; }
.xl-ico { width: 16px; height: 16px; flex: 0 0 auto; }
.xl-fontrow { display: flex; align-items: center; gap: 4px; }
.xl-fontname, .xl-fontsize {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  background: #fff;
  border: 1px solid #b4b4b4;
  font-size: 12px;
}
.xl-fontname { min-width: 108px; }
.xl-fontsize { width: 42px; justify-content: center; }
.xl-fmt {
  width: 22px;
  height: 22px;
  border-radius: 2px;
  color: #242424;
  font-size: 13px;
}
.xl-swatch { width: 16px; height: 16px; background: #ffe699; border: 1px solid #8a8a8a; }
.xl-fontcolor { font-weight: 700; color: #c00000; width: 16px; text-align: center; }
.xl-field { display: flex; flex-direction: column; gap: 2px; min-width: 120px; font-size: 11px; color: #616161; }
.xl-field input {
  height: 22px;
  border: 1px solid #8a8a8a;
  background: #fff;
  padding: 0 6px;
  font-size: 12px;
  color: #242424;
}
.xl-formula {
  display: flex;
  align-items: center;
  height: 30px;
  background: #fff;
  border-bottom: 1px solid #d6d6d6;
}
.xl-name { width: 92px; flex: 0 0 92px; height: 100%; border-right: 1px solid #d6d6d6; }
.xl-name input, .xl-fxfield input {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  color: #242424;
  font-size: 13px;
  padding: 0 8px;
}
.xl-name input { text-align: center; font-weight: 650; }
.xl-cross, .xl-tick {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 2px;
  font-size: 18px;
  line-height: 1;
}
.xl-cross { color: #626262; }
.xl-tick { color: #217346; }
.xl-tick .xl-ico { width: 16px; height: 16px; }
.xl-fx {
  width: 28px;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 700;
  color: #217346;
  border-left: 1px solid #ededed;
  border-right: 1px solid #ededed;
  line-height: 30px;
}
.xl-fxfield { flex: 1; min-width: 0; height: 100%; }
.xl-gridwrap { overflow: auto; max-height: 420px; background: #fff; }
.xl-freeze-grid .xl-cell, .xl-freeze-grid .xl-col { box-sizing: border-box; width: 120px; min-width: 120px; max-width: 120px; height: 24px; }
.xl-freeze-grid .xl-rowhead, .xl-freeze-grid .xl-corner { box-sizing: border-box; width: 34px; min-width: 34px; max-width: 34px; height: 24px; }
.xl-freeze-grid .xl-view { height: 23px; line-height: 23px; }
.xl-freeze-grid .xl-freeze-row { position: sticky; z-index: 5; background: #e2efda; }
.xl-freeze-grid .xl-freeze-col { position: sticky; z-index: 4; background: #f3f3f3; }
.xl-freeze-grid .xl-freeze-row.xl-freeze-col { z-index: 6; }
.xl-freeze-row-0 { top: 0; }
.xl-freeze-row-1 { top: 24px; }
.xl-freeze-row-2 { top: 48px; }
.xl-freeze-row-3 { top: 72px; }
.xl-freeze-row-4 { top: 96px; }
.xl-freeze-row-5 { top: 120px; }
.xl-freeze-row-6 { top: 144px; }
.xl-freeze-row-7 { top: 168px; }
.xl-freeze-row-8 { top: 192px; }
.xl-freeze-row-9 { top: 216px; }
.xl-freeze-row-10 { top: 240px; }
.xl-freeze-col-0 { left: 0; }
.xl-freeze-col-1 { left: 34px; }
.xl-freeze-col-2 { left: 154px; }
.xl-freeze-col-3 { left: 274px; }
.xl-freeze-col-4 { left: 394px; }
.xl-freeze-col-5 { left: 514px; }
.xl-freeze-col-6 { left: 634px; }
.xl-freeze-col-7 { left: 754px; }
.xl-freeze-col-8 { left: 874px; }
.xl-grid { border-collapse: separate; border-spacing: 0; width: max-content; background: #fff; font-family: Calibri, "Segoe UI", sans-serif; }
.xl-corner, .xl-col, .xl-rowhead {
  background: #f3f3f3;
  color: #616161;
  font-size: 11px;
  font-weight: 400;
  text-align: center;
  border-right: 1px solid #d0d0d0;
  border-bottom: 1px solid #d0d0d0;
  height: 20px;
  padding: 0;
  user-select: none;
}
.xl-corner { width: 34px; min-width: 34px; position: relative; }
.xl-corner-mark {
  position: absolute;
  right: 3px;
  bottom: 3px;
  border-left: 6px solid transparent;
  border-bottom: 6px solid #b4b4b4;
}
.xl-col { min-width: 72px; padding: 0 8px; }
.xl-rowhead { width: 34px; min-width: 34px; }
.xl-col.xl-hot, .xl-rowhead.xl-hot { background: #217346; color: #fff; }
.xl-cell {
  position: relative;
  height: 20px;
  min-width: 72px;
  padding: 0;
  background: #fff;
  border-right: 1px solid #e1e1e1;
  border-bottom: 1px solid #e1e1e1;
  color: #000;
}
.xl-head .xl-view { font-weight: 700; }
.xl-view {
  display: block;
  padding: 0 4px;
  line-height: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
}
.xl-num .xl-view, .xl-num .xl-input { text-align: right; }
.xl-input {
  width: 100%;
  height: 20px;
  border: 0;
  margin: 0;
  padding: 0 4px;
  background: transparent;
  color: #000;
  font-size: 12px;
  line-height: 20px;
}
.xl-input:focus { outline: 0; }
.xl-cell.xl-selected { box-shadow: inset 0 0 0 2px #217346; z-index: 1; }
.xl-cell.xl-selected::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  right: -3px;
  bottom: -3px;
  background: #217346;
  border: 1px solid #fff;
  z-index: 2;
}
.xl-marked { background: #fff2cc; }
.xl-mark {
  position: absolute;
  top: 1px;
  right: 2px;
  max-width: 64%;
  padding: 0 3px;
  background: #c65911;
  color: #fff;
  font-size: 9px;
  line-height: 16px;
  pointer-events: none;
  overflow: hidden;
  white-space: nowrap;
}
.xl-sheetbar {
  display: flex;
  align-items: stretch;
  height: 28px;
  background: #f3f3f3;
  border-top: 1px solid #d6d6d6;
  overflow-x: auto;
}
.xl-sheetnav { display: flex; align-items: center; gap: 2px; padding: 0 6px; border-right: 1px solid #d6d6d6; color: #616161; }
.xl-sheettab {
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: #616161;
  font-size: 12px;
  white-space: nowrap;
}
.xl-sheettab-on { background: #fff; color: #242424; font-weight: 650; box-shadow: inset 0 -2px 0 #217346; }
.xl-sheettabs { display: flex; min-width: 0; overflow-x: auto; }
.sidebar { overscroll-behavior: contain; }
.guest-avatar, .hero-note, .hero-caption, .art-caption,
.sidebar-caption, .nav-count, .sidebar-note p, .section-title p,
.formula-tag, .goal-value strong span, .tip-label, .tip-card p, .tip-doodle,
.page-footer, .heading-description, .catalog-selects label,
.progress-overview strong span, .progress-empty p, .storage-explainer strong,
.storage-explainer p, .back-link, .practice-location, .practice-skill,
.practice-heading p, .lesson-duration, .target-note, .concept-box code,
.workbook-guidance, .text-button, .keyboard-hint, .keyboard-hint kbd, .simulator-footer {
  color: var(--text-secondary);
}
.xl-addsheet { display: grid; place-items: center; width: 24px; color: #217346; font-size: 16px; }
.xl-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 24px;
  padding: 0 10px;
  background: #f3f3f3;
  border-top: 1px solid #e6e6e6;
  color: #616161;
  font-size: 12px;
}
.xl-status strong { color: #217346; font-weight: 650; }
.xl-lessonbar { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.xl-result-sheet { overflow: auto; max-width: 100%; border: 1px solid #d6d6d6; }
.xl-ribbon-tools { flex-wrap: wrap; align-items: flex-start; min-height: 0; padding-bottom: 8px; }
.xl-group-wide { flex: 1 1 240px; border-right: 0; }
.xl-group-wide .xl-group-main { flex-wrap: wrap; align-items: flex-start; min-height: 0; width: 100%; }
.xl-ribbon .sim-control-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.xl-ribbon .sim-control-grid label { font-weight: 400; font-size: 11px; color: #616161; min-width: 148px; gap: 2px; }
.xl-ribbon .sim-control-grid select,
.xl-ribbon .sim-control-grid input,
.xl-ribbon .sim-control-grid .button { height: 22px; border-radius: 0; border: 1px solid #8a8a8a; padding: 0 6px; font-size: 12px; background: #fff; }
.xl-formula-hint { display: block; padding: 0 8px; line-height: 30px; color: #616161; white-space: nowrap; }
.xl-app span.xl-cross { display: grid; place-items: center; }
.xl-app #cell-name { display: flex; align-items: center; justify-content: center; width: 100%; height: 30px; font-weight: 650; font-size: 13px; }
.xl-app #formula-input { width: 100%; height: 30px; border: 0; background: transparent; color: #000; font-size: 13px; padding: 0 8px; }
.xl-app #formula-input[readonly] { color: #616161; }
.xl-app .spreadsheet,
.xl-app .concept-example { border-collapse: separate; border-spacing: 0; width: max-content; background: #fff; font-family: Calibri, "Segoe UI", sans-serif; }
.xl-app .spreadsheet th,
.xl-app .spreadsheet td,
.xl-app .concept-example th,
.xl-app .concept-example td { height: 20px; padding: 0; border-right: 1px solid #e1e1e1; border-bottom: 1px solid #e1e1e1; background: #fff; color: #000; font-size: 12px; font-weight: 400; }
.xl-app .spreadsheet thead th,
.xl-app .spreadsheet tbody th,
.xl-app .concept-example thead th,
.xl-app .concept-example tbody th { background: #f3f3f3; color: #616161; text-align: center; font-size: 11px; min-width: 28px; }
.xl-app .spreadsheet th.xl-hot { background: #217346; color: #fff; }
.xl-app .spreadsheet .xl-col,
.xl-app .concept-example .xl-col { min-width: 72px; }
.xl-app .concept-example thead tr:nth-child(2) th:not(:first-child) { background: #fff; color: #000; font-weight: 700; text-align: left; padding: 0 4px; }
.xl-app .sheet-cell { display: block; width: 100%; height: 20px; padding: 0 4px; font-size: 12px; line-height: 20px; color: #000; text-align: left; white-space: nowrap; }
.xl-app .data-heading,
.xl-app .data-heading .sheet-cell,
.xl-app .numeric-cell,
.xl-app .reference-cell,
.xl-app .answer-cell { background: #fff; color: #000; }
.xl-app .xl-head .sheet-cell { font-weight: 700; }
.xl-app .numeric-cell .sheet-cell,
.xl-app .numeric-cell .xl-input { text-align: right; color: #000; }
.xl-app .answer-cell input { width: 100%; height: 20px; border: 0; background: transparent; padding: 0 4px; font-size: 12px; color: #000; }
.xl-app .answer-cell { position: relative; }
.xl-app #cell-result { display: none; position: absolute; inset: 0 6px 0 4px; align-items: center; justify-content: flex-end; pointer-events: none; font-size: 12px; line-height: 20px; }
.xl-app .answer-cell.has-result:not(.editing) #cell-result { display: flex; }
.xl-app .answer-cell.has-result:not(.editing) input { color: transparent; }
.xl-app .answer-cell.result-error #cell-result { justify-content: flex-start; color: #9f1239; }
.xl-app .spreadsheet td.selected { box-shadow: inset 0 0 0 2px #217346; background: #fff; z-index: 1; }
.xl-app .spreadsheet td.selected:before { content: none; }
.xl-app .spreadsheet td.selected:after { content: ""; inset: auto; top: auto; left: auto; right: -3px; bottom: -3px; width: 5px; height: 5px; border: 1px solid #fff; background: #217346; }
.xl-app .chart-cell { width: 100%; height: 20px; border: 0; border-radius: 0; padding: 0 4px; background: transparent; box-shadow: none; }
.xl-pane { min-width: 0; max-width: 100%; }
.xl-pane[hidden] { display: none; }
.xl-stage { display: flex; flex-direction: column; min-width: 0; max-width: 100%; }
.xl-pane + .xl-pane { border-top: 1px solid #d6d6d6; }
.xl-sheet-row { display: flex; align-items: stretch; min-width: 0; max-width: 100%; }
.xl-sheet-main { flex: 1 1 auto; min-width: 0; }
.xl-applied { flex: 0 0 220px; width: 220px; max-height: 420px; overflow: auto; border-left: 1px solid #d6d6d6; background: #fafafa; padding: 8px 10px; }
.xl-applied h3 { margin: 0 0 8px; font-size: 12px; font-weight: 650; color: #242424; }
.xl-applied-empty { margin: 0; color: #616161; font-size: 12px; }
.xl-applied .sim-steps { list-style: none; margin: 0; gap: 0; }
.xl-applied .sim-steps li { align-items: flex-start; background: transparent; border: 0; border-radius: 0; border-bottom: 1px solid #ededed; padding: 6px 2px; font-size: 12px; }
.xl-applied .sim-steps li button { width: 22px; height: 22px; padding: 0; border: 0; border-radius: 0; background: transparent; color: #616161; }
.xl-query-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; min-width: 0; }
.xl-app #sim-name { display: flex; align-items: center; justify-content: center; width: 100%; height: 30px; font-weight: 650; font-size: 13px; }
.xl-app #sim-formula { color: #242424; }
.xl-app .chart-figure { margin: 8px; max-width: 720px; border: 1px solid #b4b4b4; background: #fff; padding: 8px; border-radius: 0; }
.xl-app .practice-chart { min-width: 0; width: 100%; background: #fff; border-radius: 0; border: 1px solid #e6e6e6; }
.xl-app .sim-table-scroll { border: 0; border-radius: 0; margin: 0; background: #fff; }
.xl-app .chart-kpis > div { background: #fff; border: 1px solid #d4d4d4; border-radius: 0; }
.xl-app .sim-empty, .xl-app .sim-result-summary { margin-left: 8px; margin-right: 8px; }
@media (max-width: 720px) {
  .xl-sheet-row { flex-direction: column; }
  .xl-applied { width: auto; flex-basis: auto; max-height: 180px; border-left: 0; border-top: 1px solid #d6d6d6; }
}
/* Workbook Notes & Trace */
.workbook-notes {
  list-style: none;
  padding: 8px 12px;
  background: #eff6fc;
  border-left: 4px solid #0078d4;
  border-radius: 4px;
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: #201f1e;
}
.workbook-notes li { margin-bottom: 4px; }
.print-preview { display: flex; flex-direction: column; gap: 16px; margin: 12px 0; }
.print-page { padding: 8px; background: #fff; border: 1px solid #d6d6d6; }
.print-page h3 { font-size: 12px; margin-bottom: 8px; color: #242424; font-weight: 650; }
