@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');
:root {
  --bg: #f7f4ef;
  --ink: #271e1b;
  --muted: #756a62;
  --brand: #8f1d16;
  --ochre: #e0b075;
  --line: #e2dbd2;
  --dark: #14100e;
  --font: 'Plus Jakarta Sans', Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 13px/1.6 var(--font);
}
button,
input,
select {
  font: inherit;
}
button,
select,
.file-button {
  cursor: pointer;
}
button {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  border-radius: 7px;
  padding: 8px 12px;
  font-weight: 600;
}
button:hover {
  border-color: #ad9482;
  background: #f7f0e7;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
button.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}
button.quiet {
  background: transparent;
  border-color: transparent;
}
input,
select {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  padding: 9px 10px;
  min-width: 0;
  color: var(--ink);
}
input:focus,
select:focus,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid #b8281f;
  outline-offset: 3px;
}
input[type='checkbox'] {
  accent-color: var(--brand);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}
h3 {
  font-size: 13px;
  margin: 20px 0 10px;
}
a {
  color: var(--brand);
}
[hidden] {
  display: none !important;
}
#loading {
  padding: 60px;
  text-align: center;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 244px;
  background: var(--dark);
  color: #e9dfd5;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
}
.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 9px;
  color: white;
  font-weight: 800;
  font-size: 23px;
  letter-spacing: -1px;
}
.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.brand small {
  display: block;
  font-size: 9px;
  color: #b9a99a;
  letter-spacing: 0.2px;
  font-weight: 400;
}
.territory {
  margin: 36px 0 18px;
  letter-spacing: 1.6px;
  font-size: 10px;
  color: var(--ochre);
}
.territory span {
  display: block;
  color: #b5a79b;
  letter-spacing: 0;
  font-size: 11px;
  margin-top: 5px;
}
.search-label {
  font-size: 10px;
  color: #b5a79b;
  margin-bottom: 6px;
}
.sidebar input[type='search'] {
  background: #211a17;
  border-color: #3a2e28;
  color: white;
  font-size: 11px;
  width: 100%;
}
.side-actions {
  display: flex;
  justify-content: space-between;
  margin: 6px 0;
}
.side-actions button {
  color: #d8c7b8;
  font-size: 10px;
  background: transparent;
  border: 0;
  padding: 5px;
}
.municipalities {
  overflow: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: #5a4336 transparent;
}
.municipality {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 5px;
  border-radius: 5px;
  font-size: 11px;
  cursor: pointer;
}
.municipality:hover,
.municipality.chosen {
  background: #2b1e18;
}
.municipality span {
  flex: 1;
}
.municipality small {
  color: #a68c77;
}
.sidebar footer {
  font-size: 9px;
  color: #a68c77;
  padding-top: 15px;
  border-top: 1px solid #382a22;
  margin-top: 10px;
}
main {
  margin-left: 244px;
  padding: 0 36px;
}
.topbar {
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 10px;
}
.topbar > div {
  display: flex;
  gap: 6px;
}
.breadcrumb {
  font-size: 11px;
  color: var(--muted);
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 33px 0 26px;
  gap: 20px;
}
.eyebrow {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--brand);
}
h1 {
  font-size: 35px;
  line-height: 1.2;
  letter-spacing: -1.6px;
  margin: 12px 0;
}
h1 em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: 43px;
  letter-spacing: -0.5px;
}
.intro p {
  color: var(--muted);
  font-size: 11px;
  margin: 12px 0 0;
}
.currency {
  border-left: 1px solid var(--line);
  padding-left: 25px;
  min-width: 180px;
}
.currency b {
  display: block;
  font-size: 21px;
}
.currency span {
  font-size: 10px;
  color: var(--muted);
}
.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  gap: 24px;
  margin-bottom: 22px;
}
.tabs button {
  padding: 12px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  border-radius: 0;
  font-size: 11px;
  color: var(--muted);
}
.tabs button.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 26px;
  align-items: start;
}
.filters {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 10px;
}
.filters label {
  font-size: 10px;
  color: var(--muted);
}
.filters select {
  width: 100%;
  margin-top: 4px;
  font-size: 10px;
}
.data-notice {
  background: #eee7db;
  border-left: 3px solid #b28b56;
  padding: 10px 13px;
  margin: 15px 0;
  color: #66523a;
  font-size: 10px;
}
.search-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 17px 0;
}
.search-row > input {
  flex: 1;
  font-size: 10px;
}
.check {
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: 9px;
  color: var(--muted);
}
.directory-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 22px 0 8px;
}
.directory-heading span {
  font-size: 10px;
  color: var(--muted);
}
.bulk {
  display: flex;
  gap: 5px;
}
.bulk button {
  font-size: 9px;
  padding: 6px 8px;
}
.selection-note {
  font-size: 10px;
  color: var(--brand);
  min-height: 20px;
  margin-bottom: 10px;
}
.institution {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 10px 0;
  background: #fff;
  overflow: hidden;
}
.institution > summary {
  display: flex;
  gap: 10px;
  align-items: center;
  cursor: pointer;
  list-style: none;
  padding: 13px;
  background: #f0ece5;
}
.institution > summary:after {
  content: '⌄';
  margin-left: auto;
  color: var(--muted);
}
.institution-name {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
}
.institution-name small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 400;
}
.institution > summary input {
  margin: 0;
}
.site-row {
  display: grid;
  grid-template-columns: 18px minmax(120px, 1fr) 85px 75px 85px;
  gap: 10px;
  align-items: center;
  padding: 13px;
  border-top: 1px solid #eee9e2;
}
.site-row.selected {
  background: #fffaf1;
}
.site-name {
  font-size: 10px;
  font-weight: 600;
}
.site-name small {
  display: block;
  font-weight: 400;
  font-size: 9px;
  color: var(--muted);
}
.badge {
  display: inline-block;
  font-size: 8px;
  font-weight: 500;
  padding: 2px 5px;
  background: #eee7db;
  color: #805a2b;
  border-radius: 3px;
  margin: 4px 3px 0 0;
}
.badge.risk {
  background: #f8e4df;
  color: #923c2b;
}
.site-row select {
  width: 85px;
  font-size: 9px;
  padding: 6px 3px;
}
.room-control {
  font-size: 8px;
  color: var(--muted);
}
.room-control input {
  padding: 4px;
  width: 55px;
  font-size: 11px;
}
.row-cost {
  text-align: right;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.row-cost small {
  display: block;
  font-size: 8px;
  color: var(--muted);
  font-weight: 400;
}
.budget {
  position: sticky;
  top: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 21px;
  box-shadow: 0 10px 25px #36231805;
}
.budget-title {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.budget-title button {
  font-size: 9px;
  padding: 3px;
  letter-spacing: 0;
}
.total {
  font-size: 31px;
  letter-spacing: -1.5px;
  font-weight: 700;
  margin-top: 10px;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.budget > p {
  font-size: 10px;
  color: var(--muted);
}
.plan-counts {
  display: flex;
  gap: 7px;
  padding: 10px 0 16px;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
}
.plan-counts span {
  background: #f1ece5;
  border-radius: 4px;
  padding: 3px 6px;
}
.cost-line {
  margin-bottom: 12px;
}
.cost-label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
  margin-bottom: 4px;
}
.bar {
  height: 4px;
  border-radius: 2px;
  background: #efe9e0;
}
.bar i {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: var(--brand);
}
.budget-foot {
  font-size: 9px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin: 18px 0;
}
details summary {
  cursor: pointer;
}
#includeControls label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  margin: 6px 0;
}
.budget details {
  font-size: 10px;
}
.warnings {
  color: #82532b;
  font-size: 9px;
  margin: 15px 0;
}
.warnings p {
  margin-bottom: 7px;
}
.full,
.file-button {
  width: 100%;
  display: block;
  text-align: center;
  font-size: 10px;
  margin-top: 8px;
}
.file-button {
  color: var(--muted);
  padding: 6px;
  border: 1px dashed var(--line);
  border-radius: 5px;
}
.file-button input {
  display: none;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0;
  font-size: 10px;
}
.pagination button {
  font-size: 10px;
}
.empty {
  padding: 50px 15px;
  text-align: center;
  color: var(--muted);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 25px 0;
}
.section-heading p,
.price-layout > div > p {
  font-size: 11px;
  color: var(--muted);
}
.price-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 35px;
}
.price-input {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.price-input input {
  width: 100px;
  text-align: right;
}
.plan-editor {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  margin: 15px 0;
}
.plan-editor h3 {
  margin: 0 0 10px;
  color: var(--brand);
}
.plan-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.plan-fields label {
  font-size: 9px;
  color: var(--muted);
}
.plan-fields input {
  width: 100%;
  display: block;
  padding: 6px;
  margin-top: 4px;
}
.source-note {
  padding: 16px;
  background: #eee7db;
  color: #6c5b46;
  font-size: 10px;
  margin: 25px 0;
}
.method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
}
.method-grid article,
.sources {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 23px;
}
.method-grid p,
.method-grid li,
.sources p {
  font-size: 11px;
  color: #62574f;
}
.method-grid li {
  margin: 9px 0;
}
.sources {
  margin-top: 25px;
}
.sources a {
  display: block;
  font-size: 11px;
  padding: 5px 0;
  overflow-wrap: anywhere;
}
.main-footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 22px 0;
  margin-top: 30px;
  font-size: 9px;
  color: var(--muted);
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  background: var(--dark);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 6px 30px #0003;
  font-size: 12px;
  max-width: 90vw;
}
@media (min-width: 1500px) {
  main {
    padding: 0 55px;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
  .site-row {
    grid-template-columns: 18px minmax(180px, 1fr) 95px 85px 100px;
  }
  .site-row select {
    width: 95px;
  }
  .site-name {
    font-size: 11px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 210px;
    padding: 25px 15px;
  }
  main {
    margin-left: 210px;
    padding: 0 22px;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .budget {
    position: static;
  }
  .filters {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
  .budget .total {
    font-size: 35px;
  }
  .price-layout {
    gap: 20px;
  }
  .topbar button {
    font-size: 10px;
  }
}
@media (max-width: 700px) {
  .sidebar {
    position: relative;
    width: 100%;
    padding: 15px 18px;
    max-height: 300px;
  }
  .brand {
    font-size: 20px;
  }
  .territory {
    margin: 12px 0 7px;
  }
  .territory span {
    display: inline;
    margin-left: 15px;
  }
  .sidebar footer {
    display: none;
  }
  .municipalities {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-height: 120px;
    flex: none;
  }
  .sidebar input[type='search'] {
    padding: 6px;
  }
  .search-label {
    display: none;
  }
  .side-actions {
    margin: 0;
  }
  main {
    margin: 0;
    padding: 0 16px;
  }
  .topbar {
    height: 60px;
  }
  .breadcrumb {
    display: none;
  }
  .topbar > div {
    width: 100%;
    justify-content: space-between;
  }
  .intro {
    padding: 23px 0;
  }
  .currency {
    display: none;
  }
  h1 {
    font-size: 29px;
  }
  h1 em {
    font-size: 36px;
  }
  .tabs {
    gap: 15px;
    overflow-x: auto;
  }
  .tabs button {
    white-space: nowrap;
    font-size: 9px;
  }
  .filters {
    grid-template-columns: 1fr 1fr;
  }
  .filters label:first-child {
    grid-column: 1/-1;
  }
  .search-row {
    flex-direction: column;
    align-items: stretch;
  }
  .directory-heading {
    align-items: start;
  }
  .bulk {
    flex-direction: column;
  }
  .site-row {
    grid-template-columns: 18px 1fr 85px;
    gap: 7px;
  }
  .site-row .room-control {
    grid-column: 2;
  }
  .site-row .row-cost {
    grid-column: 3;
    grid-row: auto;
  }
  .site-name {
    font-size: 10px;
  }
  .institution-name {
    font-size: 9px;
  }
  .method-grid,
  .price-layout {
    grid-template-columns: 1fr;
  }
  .section-heading {
    display: block;
  }
  .main-footer {
    display: block;
  }
  .main-footer span {
    display: block;
  }
  .pagination button {
    font-size: 9px;
  }
  .plan-fields {
    grid-template-columns: 1fr 1fr;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.top-total {
  font-size: 13px;
  font-weight: 800;
  align-self: center;
  color: var(--brand);
  white-space: nowrap;
}
.topbar {
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 3;
}
.sidebar {
  z-index: 4;
}
@media (max-width: 700px) {
  .topbar .quiet {
    font-size: 9px;
  }
  .top-total {
    font-size: 11px;
  }
}

.topbar h1 {
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.4px;
  margin: 0;
  font-weight: 700;
}
.cost-context {
  font-size: 10px;
  color: var(--muted);
  padding: 12px 0 3px;
}
.tabs {
  margin-top: 0;
}
.topbar {
  height: 68px;
}
.topbar > div {
  flex-shrink: 0;
}
@media (max-width: 1150px) {
  .topbar {
    flex-wrap: wrap;
    height: auto;
    padding: 14px 0;
    gap: 10px;
  }
  .topbar h1 {
    font-size: 16px;
  }
  .topbar > div {
    margin-left: auto;
  }
}
@media (max-width: 700px) {
  .topbar {
    padding: 12px 0;
  }
  .topbar h1 {
    font-size: 16px;
  }
  .topbar > div {
    width: 100%;
    margin: 0;
  }
  .cost-context {
    font-size: 9px;
    padding-top: 9px;
  }
}
.validation-alert {
  padding: 12px;
  background: #ffe7df;
  border: 1px solid #8f1d16;
  color: #711910;
}
.cost-category {
  margin: 18px 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.category-total {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  background: #eee7db;
  padding: 12px 16px;
  align-items: center;
}
.category-total h3 {
  margin: 0;
}
.table-scroll {
  overflow-x: auto;
}
.calculation-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.calculation-table th,
.calculation-table td {
  text-align: right;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.calculation-table th:first-child,
.calculation-table td:first-child {
  text-align: left;
  white-space: normal;
  min-width: 160px;
}
.calculation-table th {
  font-size: 10px;
  color: var(--muted);
}
.grand-total {
  display: flex;
  justify-content: space-between;
  font-size: 22px;
  border-top: 2px solid var(--brand);
  padding: 18px 0;
  gap: 12px;
}
.calculation-rule {
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.total {
  font-size: 25px;
  letter-spacing: -1px;
  overflow-wrap: anywhere;
}
.cost-label {
  align-items: start;
  margin: 12px 0;
}
.cost-label b {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.map-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin: 20px 0;
}
.map-toolbar p {
  color: var(--muted);
  margin: 4px 0;
}
.map-toolbar > div:last-child {
  display: flex;
  gap: 15px;
  align-items: center;
}
.map-reconciliation {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  background: white;
  padding: 12px 16px;
  margin: 12px 0;
}
.map-reconciliation span {
  font-size: 11px;
}
.map-reconciliation b {
  display: block;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
#map {
  height: 560px;
  border: 1px solid var(--line);
  border-radius: 8px;
  isolation: isolate;
  z-index: 0;
  background: #ece7df;
}
.investment-icon {
  background: none;
  border: 0;
}
.investment-pin {
  background: white;
  border: 1px solid #938579;
  border-radius: 7px;
  padding: 5px 7px;
  text-align: center;
  box-shadow: 0 2px 7px #0003;
  color: #463b33;
  font: 10px/1.4 var(--font);
  white-space: nowrap;
}
.investment-pin b {
  font-size: 11px;
  display: block;
  font-variant-numeric: tabular-nums;
}
.investment-pin span {
  font-size: 9px;
}
.investment-pin.is-included {
  background: #8f1d16;
  color: white;
  border-color: #681811;
}
.investment-pin.is-municipal {
  border: 2px dashed #9d6f17;
  background: #fff0ce;
  color: #62400d;
}
.investment-pin.is-municipal.is-included {
  background: #8f1d16;
  color: white;
  border-color: #e0b075;
}
.investment-popup h3 {
  margin: 0 0 6px;
  font-size: 13px;
}
.investment-popup > strong {
  font-size: 20px;
  color: var(--brand);
}
.investment-popup p {
  margin: 6px 0 !important;
  font-size: 11px;
}
.popup-records {
  max-height: 230px;
  overflow: auto;
  border-top: 1px solid var(--line);
  margin: 12px 0;
}
.popup-records > div {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}
.popup-records small {
  display: block;
  color: var(--muted);
}
.popup-records b {
  white-space: nowrap;
}
.popup-select {
  width: 100%;
}
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 14px 0;
  font-size: 11px;
}
.map-legend i {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  margin-right: 5px;
  background: #8f1d16;
}
.map-legend .unselected {
  background: white;
  border: 1px solid #938579;
}
.map-legend .fallback {
  background: #fff0ce;
  border: 2px dashed #9d6f17;
}
.map-note,
.map-data {
  font-size: 11px;
  color: var(--muted);
  margin: 15px 0;
}
.map-data a {
  overflow-wrap: anywhere;
}
.map-data summary {
  font-weight: 600;
}
.map-data .sources {
  padding: 14px;
}
.toast {
  z-index: 1200;
}
input:invalid {
  border-color: #b32820;
  background: #fff1ed;
}
@media (max-width: 700px) {
  #map {
    height: 470px;
  }
  .map-toolbar {
    display: block;
  }
  .map-toolbar > div:last-child {
    margin-top: 12px;
    flex-wrap: wrap;
  }
  .map-reconciliation {
    gap: 10px;
    justify-content: space-between;
  }
  .map-reconciliation b {
    font-size: 12px;
  }
  .map-reconciliation span {
    font-size: 9px;
  }
  .grand-total {
    font-size: 18px;
  }
  .calculation-table th,
  .calculation-table td {
    padding: 10px;
  }
  .calculation-table {
    font-size: 11px;
  }
  .budget .total {
    font-size: 27px;
  }
}

.teacher-control {
  display: block;
  font-size: 9px;
  font-weight: 400;
  margin-top: 9px;
  color: var(--muted);
}
.teacher-control input {
  width: 58px;
  padding: 4px;
  font-size: 11px;
  margin-left: 5px;
}
.teacher-control small {
  font-size: 8px;
}
.kit-summary {
  padding: 14px 18px;
  background: #eee7db;
  border-left: 3px solid var(--brand);
  font-size: 11px;
}
.kit-summary h3 {
  margin: 0 0 8px;
}
.kit-summary p:last-child {
  margin: 0;
}
.kit-method {
  font-size: 11px;
  color: var(--muted);
  margin: 16px 0;
}
#kitSettings {
  background: #fff;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.teacher-control button {
  font-size: 8px;
  padding: 2px 5px;
  margin-top: 4px;
}
.teacher-control label {
  font-weight: 400;
}
.price-layout > div,
.plan-editor {
  min-width: 0;
}
.price-input span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.price-input input {
  flex-shrink: 0;
}
.kit-method {
  overflow-wrap: anywhere;
}

.catalog-toolbar {
  display: flex;
  align-items: end;
  gap: 15px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.catalog-toolbar label {
  flex: 1;
  min-width: 220px;
  font-size: 11px;
}
.catalog-toolbar input {
  display: block;
  width: 100%;
  margin-top: 5px;
}
.catalog-toolbar > div {
  display: flex;
  gap: 6px;
}
.catalog-toolbar > span {
  width: 100%;
  font-size: 11px;
  color: var(--muted);
}
.catalog-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0 24px;
}
.catalog-nav a {
  font-size: 10px;
  text-decoration: none;
  border: 1px solid var(--line);
  background: white;
  border-radius: 5px;
  padding: 6px 8px;
}
.catalog-category {
  scroll-margin-top: 90px;
  margin-bottom: 24px;
}
.catalog-category > h3 {
  font-size: 16px;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand);
}
.catalog-item {
  background: white;
  border: 1px solid var(--line);
  padding: 14px 16px;
  margin: 10px 0;
  border-radius: 7px;
  scroll-margin-top: 90px;
}
.catalog-item header {
  display: flex;
  align-items: start;
  gap: 16px;
  justify-content: space-between;
}
.catalog-item h4 {
  font-size: 12px;
  margin: 0 0 5px;
}
.catalog-item .catalog-origin {
  font-size: 9px;
  color: var(--muted);
  margin: 7px 0;
}
.catalog-price {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  font-size: 10px;
}
.catalog-price input {
  width: 93px;
  text-align: right;
  padding: 7px;
}
.catalog-item details {
  font-size: 11px;
}
.catalog-item summary {
  font-weight: 600;
}
.catalog-item ul {
  padding-left: 18px;
  margin: 12px 0;
}
.catalog-item p {
  margin: 9px 0;
}
.catalog-item .quantity-rule {
  padding: 9px 10px;
  background: var(--bg);
  border-left: 2px solid var(--ochre);
}
.catalog-source {
  font-size: 10px;
}
.config-section {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  margin: 0 0 16px;
  overflow: hidden;
}
.config-section > summary {
  padding: 14px;
  background: #eee7db;
  font-weight: 700;
  font-size: 12px;
}
.config-content {
  padding: 14px;
}
.config-content .plan-editor {
  margin-top: 0;
}
.config-content .kit-summary {
  padding: 12px;
  font-size: 11px;
}
.configuration-pane {
  min-width: 0;
}
.plan-bom {
  font-size: 11px;
  margin-top: 12px;
}
.price-layout {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px;
}
@media (max-width: 1000px) {
  .price-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .catalog-item header {
    gap: 10px;
  }
  .catalog-item h4 {
    font-size: 11px;
  }
  .catalog-toolbar button {
    font-size: 10px;
  }
}
