:root {
  color-scheme: light;
  --ink: #26342d;
  --muted: #77837a;
  --faint: #a4ada4;
  --line: #e4e8df;
  --paper: #f4f5ef;
  --white: #fffefa;
  --green: #285548;
  --green-dark: #183c34;
  --green-soft: #edf4ea;
  --lime: #c8ed83;
  --orange: #e87b58;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 360px; color: var(--ink); background: radial-gradient(ellipse at 93% 1%, rgba(220,229,204,.32), transparent 28%), var(--paper); }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.page { max-width: 1450px; margin: 0 auto; padding: 0 34px 26px; }
.topbar { min-height: 65px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(47,67,55,.1); }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { display: grid; grid-template-columns: repeat(2,7px); grid-template-rows: repeat(2,7px); align-content: center; justify-content: center; gap: 3px; width: 32px; height: 32px; border-radius: 10px; background: var(--green-dark); transform: rotate(-4deg); }
.brand-mark i { display: block; border-radius: 2px; background: var(--lime); }
.brand-mark i:last-child { border-radius: 50%; background: var(--orange); }
.brand-copy strong { display: block; color: #30443a; font-size: 14px; font-weight: 700; }
.brand-copy small { display: block; margin-top: 2px; color: #95a097; font-size: 10px; }
.connection { display: flex; align-items: center; gap: 7px; color: #758379; font-size: 11px; }
.connection-file { margin-left: 7px; padding-left: 13px; border-left: 1px solid #dce1d7; color: #a0aaa0; }
.status-dot,.legend-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: #8dbd5c; box-shadow: 0 0 0 3px rgba(141,189,92,.13); }
.intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 22px; padding: 28px 0 19px; }
.eyebrow,.section-label { color: #88958b; font-size: 10px; letter-spacing: 1.2px; font-weight: 750; }
.eyebrow span { color: var(--orange); padding: 0 4px; }
h1,h2,h3,p { margin-top: 0; }
h1 { margin: 8px 0 5px; color: #233a30; font: 500 clamp(28px,3vw,38px)/1.1 Georgia, "Times New Roman", serif; letter-spacing: -1px; }
h1 em { color: #688c58; font-weight: 400; }
.intro p { margin: 0; color: #808d82; font-size: 13px; }
.export-all { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 2px; padding: 9px 12px; color: #536b58; border: 1px solid #dfe6d8; border-radius: 7px; background: rgba(255,255,255,.5); font-size: 11px; font-weight: 650; }
.export-all:hover { background: white; }
.summary-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-bottom: 21px; }
.summary-card { min-height: 82px; padding: 11px 14px; border: 1px solid #e5e8df; border-radius: 10px; background: rgba(255,254,250,.85); }
.summary-label { display: block; color: #95a096; font-size: 9px; letter-spacing: 1px; font-weight: 750; }
.summary-card strong { display: inline-block; margin-top: 5px; color: #30483a; font: 500 28px/1 Georgia, "Times New Roman", serif; }
.summary-note { display: inline-block; margin-left: 7px; color: #9ca69c; font-size: 11px; }
.summary-empty strong { color: #bb684c; }
.list-section { border: 1px solid #e4e8df; border-radius: 12px; background: var(--white); box-shadow: 0 10px 34px rgba(35,52,41,.045); overflow: hidden; }
.list-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 16px 17px 12px; }
.list-heading h2 { margin: 4px 0 0; color: #2c4035; font: 500 23px/1.1 Georgia, "Times New Roman", serif; letter-spacing: -.4px; }
.result-count { display: inline-grid; place-items: center; min-width: 25px; height: 20px; margin-left: 4px; padding: 0 5px; border-radius: 5px; vertical-align: 3px; color: #69805d; background: #eff3e6; font: 700 10px "Avenir Next", Avenir, sans-serif; letter-spacing: 0; }
.status-legend { display: flex; align-items: center; gap: 6px; color: #929c93; font-size: 10px; }
.legend-dot { width: 6px; height: 6px; box-shadow: none; }
.legend-dot.pending { margin-left: 7px; background: #d8a678; }
.filters { display: flex; gap: 7px; align-items: center; padding: 0 17px 12px; }
.filters label { min-width: 105px; position: relative; }
.filters select,.search { width: 100%; height: 37px; border: 1px solid #e4e8df; border-radius: 7px; background: #fdfdf9; color: #67756b; font-size: 12px; }
.filters select { appearance: none; outline: 0; padding: 0 22px 0 10px; }
.filters label:not(.search)::after { content: "⌄"; position: absolute; right: 8px; top: 8px; color: #98a398; font-size: 16px; pointer-events: none; }
.filters select:focus,.search:focus-within { border-color: #9db789; box-shadow: 0 0 0 3px rgba(145,178,107,.1); }
.search { display: flex; align-items: center; flex: 1; min-width: 220px; gap: 8px; padding: 0 9px; }
.search span { color: #849187; font-size: 18px; transform: rotate(-15deg); line-height: 1; }
.search input { min-width: 0; width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; }
.search input::placeholder { color: #a7afa6; }
.subject-filter { flex: 1.2; }
.reset-button { flex: 0 0 auto; height: 35px; padding: 0 8px; border: 0; background: transparent; color: #778c6c; font-size: 12px; }
.reset-button:hover { color: var(--green-dark); text-decoration: underline; }
.table-frame { overflow-x: auto; }
table { width: 100%; min-width: 820px; border-collapse: collapse; table-layout: fixed; }
thead { position: sticky; top: 0; z-index: 1; background: #f6f7f1; }
th { height: 34px; padding: 0 10px; border-top: 1px solid #ecefe7; border-bottom: 1px solid #e6eae1; color: #9ba69c; font-size: 9px; letter-spacing: .8px; text-align: left; font-weight: 750; }
th:first-child,td:first-child { padding-left: 17px; }
th:last-child,td:last-child { padding-right: 17px; text-align: right; }
.unit-column { width: 46%; }
thead th:nth-child(2) { width: 14%; }
thead th:nth-child(3) { width: 14%; }
thead th:nth-child(4) { width: 15%; }
.action-column { width: 11%; }
td { padding: 9px 10px; border-bottom: 1px solid #eff1eb; vertical-align: middle; }
.unit-main { display: flex; align-items: center; gap: 9px; min-width: 0; }
.grade-tag { flex: 0 0 38px; width: 38px; height: 38px; display: grid; place-content: center; border-radius: 7px; background: #eff3e8; color: #59704e; text-align: center; font: 500 15px/1 Georgia, "Times New Roman", serif; }
.grade-tag small { display: block; margin-top: 2px; color: #94a08f; font: 700 8px "Avenir Next", Avenir, sans-serif; }
.unit-copy { min-width: 0; }
.unit-meta { overflow: hidden; color: #8d998f; font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.unit-meta b { color: #657b66; font-weight: 700; }
.unit-title { display: block; overflow: hidden; margin-top: 4px; color: #35493d; font: 500 15px/1.2 Georgia, "Times New Roman", serif; white-space: nowrap; text-overflow: ellipsis; }
.count-cell { color: #586c5c; font-size: 12px; }
.count-cell small { display: block; margin-top: 3px; color: #a1aaa1; font-size: 9px; }
.condition-pill { display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px; border-radius: 20px; background: #f5f5ef; color: #89948a; font-size: 10px; white-space: nowrap; }
.condition-pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #c7cbbf; }
.condition-pill.complete { color: #53714c; background: #eff5e8; }
.condition-pill.complete::before { background: #8dbd5c; }
.condition-pill.partial { color: #9b7055; background: #fbf2e9; }
.condition-pill.partial::before { background: #d8a678; }
.manage-button { min-width: 72px; height: 32px; padding: 0 10px; border: 1px solid #dfe6d8; border-radius: 6px; color: #60775e; background: #fbfcf8; font-size: 11px; font-weight: 650; }
.manage-button:hover,.manage-button[aria-expanded="true"] { border-color: #b9cda8; color: #31533e; background: #f0f5e9; }
.expanded-row td { padding: 0; background: #f9faf5; }
.management { padding: 14px 17px 16px 61px; border-bottom: 1px solid #e6eae1; }
.management-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 11px; border-bottom: 1px solid #e9ede4; }
.management-summary { max-width: 850px; margin: 0; color: #7c897f; font-size: 12px; line-height: 1.6; }
.row-tools { display: flex; flex: 0 0 auto; align-items: center; gap: 9px; color: #96a196; font-size: 10px; }
.row-tools button { border: 0; background: transparent; color: #718a66; font-size: 10px; }
.row-tools a { color: #4f6d55; font-size: 10px; font-weight: 650; }
.management-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; padding-top: 12px; }
.manage-section { min-width: 0; padding: 11px; border: 1px solid #e6eae1; border-radius: 8px; background: var(--white); }
.manage-section-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid #f0f2ec; }
.manage-section-head h3 { margin: 0; color: #4c5f50; font-size: 12px; font-weight: 700; }
.manage-section-head p { margin: 3px 0 0; color: #a0aaa0; font-size: 10px; }
.small-button { flex: 0 0 auto; min-height: 30px; padding: 0 10px; border: 1px solid #dfe7d8; border-radius: 6px; color: #5f785c; background: #fbfcf8; font-size: 10px; font-weight: 650; }
.small-button:hover { background: #f0f5e9; }
.small-button.primary { border-color: var(--green); color: white; background: var(--green); }
.small-button.primary:hover { background: var(--green-dark); }
.file-list { display: grid; gap: 5px; padding-top: 8px; }
.file-item { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 6px 7px; border: 1px solid #edf0e9; border-radius: 6px; background: #fdfdf9; }
.file-ext { flex: 0 0 28px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 5px; color: #6c8561; background: #eff4e9; font-size: 9px; font-weight: 750; text-transform: uppercase; }
.file-name { min-width: 0; flex: 1; overflow: hidden; color: #586a5c; font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.file-meta { flex: 0 0 auto; color: #a2aaa1; font-size: 9px; }
.file-link,.file-delete { display: grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 5px; color: #72876b; background: transparent; font-size: 11px; }
.file-link:hover,.file-delete:hover { background: #edf3e8; }
.file-delete:hover { color: #b6583f; background: #fff0eb; }
.empty-note { padding: 13px 7px 7px; color: #9ba59b; font-size: 11px; }
.assessment-list { display: grid; gap: 7px; padding-top: 8px; }
.assessment-item { border: 1px solid #edf0e9; border-radius: 7px; background: #fdfdf9; padding: 8px; }
.assessment-head { display: flex; justify-content: space-between; gap: 9px; align-items: flex-start; }
.assessment-head strong { display: block; color: #506454; font-size: 11px; }
.assessment-head small { display: block; margin-top: 3px; color: #9ba79b; font-size: 10px; }
.assessment-head button { flex: 0 0 auto; border: 0; color: #a8aaa0; background: transparent; font-size: 13px; }
.assessment-desc { margin: 6px 0 0; color: #89948a; font-size: 11px; line-height: 1.5; }
.assessment-files { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 7px; }
.assessment-files .file-item { max-width: min(100%,340px); flex: 1 1 180px; padding: 4px; }
.assessment-files .file-ext { flex-basis: 21px; width: 21px; height: 21px; }
.assessment-files .file-meta { display: none; }
.assessment-create { display: grid; grid-template-columns: 1.3fr .8fr 1.6fr auto; gap: 7px; align-items: end; margin-top: 8px; padding: 8px; border: 1px dashed #dbe5d2; border-radius: 7px; background: #fbfcf8; }
.assessment-create label { display: grid; gap: 4px; color: #89968a; font-size: 10px; }
.assessment-create input,.assessment-create select,.assessment-create textarea { width: 100%; min-width: 0; min-height: 32px; border: 1px solid #e2e8de; border-radius: 5px; outline: 0; padding: 6px 8px; color: #526457; background: white; font-size: 11px; }
.assessment-create textarea { height: 28px; resize: vertical; }
.assessment-create input:focus,.assessment-create select:focus,.assessment-create textarea:focus { border-color: #a9bf92; }
.table-message { height: 150px; text-align: center; color: #93a093; font-size: 12px; }
.empty-results { padding: 35px !important; text-align: center; color: #849187; font-size: 12px; }
.table-footer { display: flex; justify-content: space-between; gap: 16px; padding: 10px 17px; color: #8d998f; font-size: 10px; }
.table-footer code { color: #83927f; font-size: 10px; }
.footer { display: flex; justify-content: space-between; gap: 12px; padding-top: 14px; color: #8d998f; font-size: 10px; }
.footer span:first-child { color: #79877b; font-weight: 750; letter-spacing: .8px; }
.footer i { color: var(--orange); font-style: normal; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; clip: rect(0,0,0,0); overflow: hidden; white-space: nowrap; }
.spinner { display: inline-block; width: 14px; height: 14px; vertical-align: -3px; margin-right: 5px; border: 2px solid #e1e9d9; border-top-color: #799966; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; z-index: 5; right: 20px; bottom: 20px; max-width: min(380px,calc(100vw - 40px)); padding: 11px 15px; border-radius: 8px; color: #f3f6ed; background: #254c40; box-shadow: 0 8px 24px rgba(25,54,43,.18); font-size: 12px; opacity: 0; transform: translateY(6px); pointer-events: none; transition: .18s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: #9d4b39; }
@media (max-width: 900px) {
  .page { padding: 0 20px 22px; }
  .filters { flex-wrap: wrap; }
  .search { flex-basis: 100%; }
  .filters label { flex: 1 1 20%; }
  .subject-filter { flex-grow: 1.4; }
  .management-grid { grid-template-columns: 1fr; }
  .management { padding-left: 17px; }
}
@media (max-width: 600px) {
  .page { padding: 0 10px 16px; }
  .topbar { min-height: 56px; }
  .connection-file { display: none; }
  .intro { padding: 21px 0 15px; }
  .intro p { max-width: 270px; line-height: 1.5; }
  .export-all { padding: 8px 9px; font-size: 10px; }
  .summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin-bottom: 14px; }
  .summary-card { min-height: 84px; padding: 10px; }
  .summary-card strong { font-size: 23px; }
  .summary-note { display: block; margin: 4px 0 0; font-size: 9px; }
  .list-heading { align-items: flex-start; padding: 13px 11px 9px; }
  .list-heading h2 { font-size: 20px; }
  .status-legend { max-width: 110px; flex-wrap: wrap; justify-content: flex-end; font-size: 9px; }
  .legend-dot.pending { margin-left: 0; }
  .filters { padding: 0 10px 10px; gap: 5px; }
  .filters label { flex: 1 1 30%; min-width: 95px; }
  .subject-filter { flex-basis: 55%; }
  .reset-button { margin-left: auto; }
  .unit-column { width: 42%; }
  thead th:nth-child(2),thead th:nth-child(3) { width: 15%; }
  thead th:nth-child(4) { width: 17%; }
  .action-column { width: 11%; }
  th { padding: 0 6px; font-size: 8px; letter-spacing: .4px; }
  th:first-child,td:first-child { padding-left: 9px; }
  th:last-child,td:last-child { padding-right: 8px; }
  td { padding: 7px 6px; }
  .grade-tag { flex-basis: 32px; width: 32px; height: 34px; font-size: 13px; }
  .unit-main { gap: 6px; }
  .unit-meta { font-size: 8px; }
  .unit-title { font-size: 12px; }
  .count-cell { font-size: 10px; }
  .count-cell small { font-size: 8px; }
  .condition-pill { gap: 3px; padding: 5px 6px; font-size: 8px; }
  .manage-button { min-width: auto; height: 28px; padding: 0 7px; font-size: 9px; }
  .management { padding: 11px 9px; }
  .management-header { display: block; }
  .row-tools { margin-top: 8px; }
  .assessment-create { grid-template-columns: 1fr 1fr; }
  .assessment-create label:first-child,.assessment-create label:nth-child(3) { grid-column: span 2; }
  .assessment-create button { justify-self: end; }
  .table-footer { padding: 8px 10px; font-size: 9px; }
  .table-footer span:last-child { display: none; }
  .footer { font-size: 9px; }
}

/* Larger type for easier day-to-day scanning. */
.brand-copy strong { font-size: 16px; }
.brand-copy small,.connection { font-size: 12px; }
.eyebrow,.section-label { font-size: 12px; }
.intro p { font-size: 15px; }
.export-all { font-size: 13px; }
.summary-card { min-height: 88px; }
.summary-label { font-size: 11px; }
.summary-note { font-size: 13px; }
.list-heading h2 { font-size: 26px; }
.result-count { font-size: 12px; }
.status-legend { font-size: 12px; }
.filters select,.search input,.reset-button { font-size: 14px; }
th { height: 40px; font-size: 11px; }
.unit-meta { font-size: 12px; }
.unit-title { font-size: 17px; }
.count-cell { font-size: 14px; }
.count-cell small { font-size: 11px; }
.condition-pill { font-size: 12px; }
.manage-button { height: 36px; font-size: 13px; }
.management-summary { font-size: 14px; }
.row-tools,.row-tools button,.row-tools a { font-size: 12px; }
.manage-section-head h3 { font-size: 14px; }
.manage-section-head p { font-size: 12px; }
.small-button { min-height: 34px; font-size: 12px; }
.file-ext { font-size: 11px; }
.file-name { font-size: 13px; }
.file-meta { font-size: 11px; }
.file-link,.file-delete { font-size: 13px; }
.empty-note,.assessment-head strong,.assessment-desc { font-size: 13px; }
.assessment-head small,.assessment-create label { font-size: 12px; }
.assessment-create input,.assessment-create select,.assessment-create textarea { min-height: 36px; font-size: 13px; }
.table-message,.empty-results { font-size: 14px; }
.table-footer,.table-footer code,.footer { font-size: 12px; }
.toast { font-size: 14px; }

@media (max-width: 600px) {
  .export-all { font-size: 12px; }
  .summary-card { min-height: 90px; }
  .summary-card strong { font-size: 25px; }
  .summary-note { font-size: 11px; }
  .list-heading h2 { font-size: 22px; }
  .status-legend { font-size: 10px; }
  th { font-size: 9px; }
  .unit-meta { font-size: 10px; }
  .unit-title { font-size: 14px; }
  .count-cell { font-size: 12px; }
  .count-cell small { font-size: 10px; }
  .condition-pill { font-size: 10px; }
  .manage-button { height: 30px; font-size: 11px; }
  .table-footer,.footer { font-size: 10px; }
}

.packages-section { margin: 0 0 21px; padding: 16px 18px; border: 1px solid #e4e8df; border-radius: 12px; background: rgba(255,254,250,.9); box-shadow: 0 8px 26px rgba(35,52,41,.035); }
.packages-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.packages-heading h2 { margin: 4px 0 0; color: #2c4035; font: 500 23px/1.1 Georgia, "Times New Roman", serif; }
.package-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,360px),1fr)); gap: 9px; margin-top: 13px; }
.package-empty { margin: 0; padding: 12px; border: 1px dashed #e1e7dc; border-radius: 7px; color: #8c988c; font-size: 13px; }
.package-card { min-width: 0; padding: 12px; border: 1px solid #e6eae1; border-radius: 8px; background: var(--white); }
.package-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.package-meta { color: #89968a; font-size: 10px; letter-spacing: .7px; font-weight: 750; }
.package-card h3 { margin: 4px 0; color: #3e5748; font: 600 16px/1.2 "Avenir Next", Avenir, sans-serif; }
.package-chapter-total { color: #929d93; font-size: 12px; }
@media (max-width: 700px) {
  .packages-section { padding: 13px 11px; }
  .packages-heading { align-items: flex-start; }
  .package-card-head { flex-direction: column; }
}

.package-filters { display: flex; align-items: flex-end; gap: 8px; }
.package-filters label { display: grid; gap: 4px; min-width: 145px; color: #738175; font-size: 11px; font-weight: 650; }
.package-filters select { width: 100%; height: 36px; padding: 0 27px 0 9px; border: 1px solid #e2e8de; border-radius: 6px; outline: 0; color: #526457; background: #fdfdf9; font-size: 13px; }
.package-filters select:focus { border-color: #a9bf92; }
.package-filters select:disabled { cursor: not-allowed; color: #a7afa6; background: #f7f8f3; }
.package-chapter-list { display: grid; max-height: 370px; overflow-y: auto; margin: 12px 0 0; padding: 0 4px 0 24px; color: #6b7c6d; }
.package-chapter-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 5px; border-top: 1px solid #eff1eb; font-size: 13px; }
.package-chapter-list li > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px; min-width: 0; }
.package-chapter-list li b { color: #506b50; white-space: nowrap; }
.package-chapter-list li span { color: #66786a; }
.package-chapter-list li small { flex: 0 0 auto; color: #929d93; font-size: 11px; }
@media (max-width: 700px) {
  .package-filters { align-items: stretch; flex-direction: column; width: min(55%,260px); }
  .package-filters label { min-width: 0; }
  .package-chapter-list li { align-items: flex-start; flex-direction: column; gap: 3px; }
}
