.ct {
  --ct-line: #d7dcd3;
  --ct-soft: #f2f4ee;
  --ct-muted: #526357;
  --ct-accent: #205541;
  color: #1c281f;
  min-width: 0;
}
.ct * {
  box-sizing: border-box;
}
.ct button,
.ct input,
.ct select,
.ct textarea,
.ct-modal button {
  font: inherit;
}
.ct button,
.ct select {
  cursor: pointer;
}
.ct button:disabled,
.ct-modal button:disabled {
  opacity: 0.48;
  cursor: default;
}
.ct-heading,
.ct-section-head,
.ct-actions,
.ct-back,
.ct-editor-state,
.ct-toolbar,
.ct-name-cell,
.ct-add,
.ct-modal-head,
.ct-modal-actions,
.ct-reorder {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.ct .button,
.ct-modal .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  white-space: nowrap;
  text-decoration: none;
}
.ct-heading {
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: 1.65rem;
}
.ct h1 {
  font-size: clamp(2.15rem, 3.7vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
  font-weight: 600;
  margin: 0.4rem 0 0;
  overflow-wrap: anywhere;
}
.ct h2,
.ct-modal h2 {
  font-size: 1.15rem;
  line-height: 1.35;
  letter-spacing: -0.022em;
  margin: 0;
  font-weight: 650;
}
.ct h3,
.ct-modal h3,
.ct-modal h4 {
  margin: 0;
}
.ct p {
  line-height: 1.5;
}
.ct .eyebrow {
  margin: 0 0 0.45rem;
}
.ct-panel {
  border: 1px solid var(--ct-line);
  border-radius: 12px;
  background: #fff;
  min-width: 0;
  margin-bottom: 1.3rem;
  overflow: clip;
}
.ct-section-head,
.ct-toolbar {
  padding: 1.15rem 1.35rem;
  justify-content: space-between;
  border-bottom: 1px solid var(--ct-line);
}
.ct-section-head .ct-hint {
  margin: 0.28rem 0 0;
}
.ct-section-content {
  padding: 1.35rem;
}
.ct-hint,
.ct-field small {
  color: var(--ct-muted, #526357);
  font-size: 0.89rem;
  line-height: 1.45;
}
.ct-actions {
  flex-wrap: wrap;
}
.ct input:not([type="file"]),
.ct select,
.ct textarea {
  min-width: 0;
}
.ct input[readonly] {
  background: var(--ct-soft);
  color: var(--ct-muted);
}
.ct-table-wrap {
  overflow-x: auto;
}
.ct-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.ct-table th,
.ct-table td {
  text-align: left;
  padding: 0.8rem 1.2rem;
  border-bottom: 1px solid var(--ct-line, #d7dcd3);
  vertical-align: middle;
}
.ct-table th {
  background: #f5f6f1;
  font-size: 0.73rem;
  font-weight: 600;
  color: #536356;
}
.ct-table small,
.ct-outline small {
  display: block;
  color: var(--ct-muted, #526357);
  font-size: 0.78rem;
  margin-top: 0.2rem;
}
.ct-table tbody tr:last-child td {
  border-bottom: 0;
}
.ct-library-filters {
  display: grid;
  grid-template-columns: minmax(12rem, 26rem) minmax(11rem, 15rem);
  gap: .85rem 1rem;
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid var(--ct-line);
}
.ct-catalog-columns,
.ct-catalog-row {
  display: grid;
  grid-template-columns: minmax(11rem, 1fr) minmax(8.7rem, .43fr) minmax(4.5rem, .25fr) 8.5rem 1rem;
  gap: 1rem;
  align-items: center;
  padding-inline: 1.35rem;
}
.ct-catalog-columns {
  padding-block: .62rem;
  font-size: .75rem;
  font-weight: 650;
  color: var(--ct-muted);
  background: #f5f6f1;
  border-bottom: 1px solid var(--ct-line);
}
.ct-catalog-columns > :nth-child(4), .ct-entry-price { text-align: right; }
.ct-catalog-list { list-style: none; padding: 0; margin: 0; }
.ct-catalog-list li + li { border-top: 1px solid var(--ct-line); }
.ct-catalog-row { position: relative; padding-block: .8rem; color: inherit; text-decoration: none; }
.ct-catalog-row:hover, .ct-catalog-row:focus-visible { background: #f3f6f0; }
.ct-catalog-row:focus-visible { outline-offset: -3px; }
.ct-catalog-row:hover .ct-entry-name strong, .ct-catalog-row:focus-visible .ct-entry-name strong {
  text-decoration: underline; text-underline-offset: .15em;
}
.ct-name-cell { min-width: 0; gap: .85rem; }
.ct-entry-name { display: grid; min-width: 0; gap: .13rem; }
.ct-entry-name strong { font-size: .97rem; line-height: 1.35; font-weight: 650; color: #203326; overflow-wrap: anywhere; }
.ct-entry-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: .35rem; }
.ct-new-badge { border-radius: .3rem; padding: 0 .35rem; font-size: .7rem; font-weight: 650; color: var(--ct-accent); background: #e5eedc; }
.ct-entry-name small { color: var(--ct-muted); font-size: .8rem; overflow-wrap: anywhere; }
.ct-entry-facts { display: contents; }
.ct-entry-price, .ct-entry-level { font-size: .87rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ct-entry-price { font-weight: 620; }
.ct-entry-open { display: grid; place-items: center; color: var(--ct-muted); }
.ct-thumb { display: grid; place-items: center; width: 52px; height: 40px; flex-shrink: 0; border-radius: 6px; background: #e8eee6; color: #416749; overflow: hidden; }
.ct-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; background: #242422; }
.ct-back:hover, .ct-uses a:hover { text-decoration: underline; }
.ct-no-results { padding: 2rem 1rem; text-align: center; color: var(--ct-muted); }
.ct-no-results svg { display: block; margin-inline: auto; }
.ct-no-results p { margin: .6rem 0; color: var(--ink); font-weight: 600; }
.ct-no-results button { margin-top: .3rem; }
.ct-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  color: #695021;
  background: #f7eed4;
  border-radius: 2rem;
  padding: 0.28rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 550;
  line-height: 1.35;
}
.ct-status::before {
  content: "";
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
}
.ct-status.ct-published {
  color: #356346;
  background: #e4eee3;
}
.ct-status.ct-revised {
  color: #4a587b;
  background: #e8ebf3;
}
.ct-status.ct-removed {
  color: #6a5653;
  background: #eee8e5;
}
.ct-stars {
  display: inline-flex;
  gap: 2px;
  color: #737e41;
  vertical-align: middle;
}
.ct-number {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ct-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.ct-empty,
.ct-count {
  color: var(--ct-muted);
  margin: 0;
}
.ct-empty {
  padding: 1.4rem;
}
.ct-count {
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding: .3rem 1.35rem;
  font-size: .82rem;
  border-top: 1px solid var(--ct-line);
}
.ct-filter-reset {
  min-height: 36px;
  padding: .35rem .25rem;
  border: 0;
  background: transparent;
  color: var(--ct-accent);
  text-decoration: underline;
  text-underline-offset: .18em;
}
.ct-back {
  width: fit-content;
  margin-bottom: 1.3rem;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--ct-muted);
}
.ct-editor-heading {
  align-items: flex-end;
}
.ct-editor-heading h1 {
  font-size: clamp(1.9rem, 3.2vw, 2.85rem);
}
.ct-editor-state {
  font-size: 0.78rem;
  color: var(--ct-muted);
  margin-bottom: 0.7rem;
}
.ct-editor-fields {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.ct-fieldgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 1.4rem;
}
.ct-category-field { display: grid; align-content: start; gap: .35rem; min-width: 0; }
.ct-category-field p { margin: 0; }
.ct-category-field > a { justify-self: start; font-size: .82rem; }
.ct-field {
  display: grid;
  align-content: start;
  gap: 0.4rem;
  min-width: 0;
}
.ct-field,
.ct-field-label {
  font-weight: 580;
  font-size: 0.85rem;
}
.ct-field input,
.ct-field textarea,
.ct-field select {
  width: 100%;
  font-weight: 400;
}
.ct-field small {
  font-size: 0.75rem;
  font-weight: 400;
}
.ct-field textarea {
  resize: vertical;
}
.ct-full {
  grid-column: 1/-1;
}
.ct-badge-field { display: flex; gap: .65rem; align-items: flex-start; font-size: .88rem; font-weight: 650; cursor: pointer; }
.ct-badge-field input { width: 1.1rem; height: 1.1rem; margin: .15rem 0 0; accent-color: var(--ct-accent); }
.ct-badge-field small { display: block; margin-top: .15rem; color: var(--ct-muted); font-weight: 400; }
.ct-star-field {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.ct-star-field output {
  display: block;
  padding: 0.65rem 0;
  font-weight: 600;
  color: var(--ct-accent);
}
.ct-cover {
  display: grid;
  justify-items: start;
  gap: .4rem;
}
.ct-cover-image {
  display: grid;
  place-items: center;
  position: relative;
  width: min(100%, 200px);
  aspect-ratio: 12 / 5;
  padding: 0;
  background: var(--ct-soft);
  color: var(--ct-accent);
  border: 1px dashed #9daa9f;
  border-radius: 7px;
  overflow: hidden;
}
.ct-cover-image:has(img) { border: 1px solid var(--ct-line); }
.ct-cover-image:not(:disabled):hover { border-color: var(--ct-accent); }
.ct-cover-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ct-cover-edit {
  position: absolute;
  right: .35rem;
  bottom: .35rem;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  color: white;
  background: #19392ee6;
}
.ct-cover-progress {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: white;
  background: #19392ee6;
}
.ct-link,
.ct-danger-link {
  background: none;
  border: 0;
  text-decoration: underline;
  padding: 0.4rem;
  color: var(--ct-accent);
}
.ct-danger-link {
  color: #933c31;
}
.ct-note,
.ct-message {
  margin: 0.75rem 0;
  padding: 0.7rem 0.9rem;
  background: #edf2e8;
  border: 1px solid #d5dfcc;
  border-radius: 5px;
  font-size: 0.86rem;
}
.ct-message {
  background: #fbf0e9;
  border-color: #e9c9b8;
  color: #703924;
}
.ct-message button,
.ct-note button {
  margin-left: 0.55rem;
}
.ct-lesson > .ct-note,
.ct-lesson > .ct-message {
  margin: 0.7rem 1rem;
}
.ct-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.ct-source,
.ct-output {
  min-width: 0;
}
.ct-source {
  border-right: 1px solid var(--ct-line);
}
.ct-pane-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  font-size: 0.74rem;
  color: var(--ct-muted);
  font-weight: 600;
  background: var(--ct-soft);
  border-bottom: 1px solid var(--ct-line);
}
.ct-source textarea,
.ct-rendered {
  height: min(58vh, 550px);
  min-height: 285px;
  display: block;
  width: 100%;
  padding: 1.2rem;
  overflow: auto;
}
.ct-source textarea {
  resize: none;
  font:
    0.9rem/1.65 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  border: none;
  border-radius: 0;
}
.ct-source textarea:focus {
  outline-offset: -2px;
}
.ct-prose {
  overflow-wrap: anywhere;
  line-height: 1.6;
}
.ct-prose :is(h1, h2, h3, h4) {
  font-size: revert;
  letter-spacing: -0.025em;
  margin: 1em 0 0.5em;
  color: inherit;
}
.ct-prose pre {
  background: var(--ct-soft);
  border-radius: 5px;
  padding: 0.8rem;
  overflow-x: auto;
}
.ct-prose img {
  max-width: 100%;
  height: auto;
}
.ct-prose blockquote {
  margin-inline: 0;
  border-left: 3px solid var(--ct-accent);
  padding-left: 1rem;
}
.ct-prose table {
  border-collapse: collapse;
}
.ct-prose td,
.ct-prose th {
  border: 1px solid var(--ct-line);
  padding: 0.3rem 0.6rem;
}
.ct-uses {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ct-uses li + li {
  border-top: 1px solid var(--ct-line);
}
.ct-uses a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.35rem;
  color: var(--ct-accent);
  text-decoration: none;
  font-weight: 550;
}
.ct-panel > p.ct-section-content {
  margin: 0;
}
.ct-outline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ct-outline li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-top: 1px solid var(--ct-line);
  padding: 0.65rem 0;
}
.ct-outline-title {
  min-width: 0;
  overflow-wrap: anywhere;
  flex: 1;
  font-weight: 550;
}
.ct-outline small {
  color: #855326;
}
.ct-position {
  color: #727d70;
  font-variant-numeric: tabular-nums;
}
.ct-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: inherit;
  background: transparent;
  border: 1px solid #d7dcd3;
  border-radius: 5px;
  cursor: pointer;
  padding: 0;
}
.ct-icon:hover:enabled {
  background: #edf2e8;
}
.ct-reorder {
  gap: 0.3rem;
}
.ct-totals {
  margin: 1.2rem 0 0 auto;
  max-width: 360px;
  border-top: 1px solid var(--ct-line);
}
.ct-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.88rem;
  padding: 0.45rem 0;
}
.ct-totals > div:last-child {
  border-top: 1px solid var(--ct-line);
  font-weight: 650;
  color: var(--ct-accent);
}
.ct-totals dd {
  margin: 0;
}
.ct-release-terms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: .5rem 0;
  padding: .8rem 1rem;
  background: #f3f5ef;
  border-radius: 7px;
}
.ct-release-terms dt { color: #536157; font-size: .8rem; }
.ct-release-terms dd { margin: .15rem 0 0; font-weight: 600; }
.ct-modal-actions {
  position: sticky;
  bottom: 0;
  background: #fff;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem;
  padding: .9rem 1.25rem;
  justify-content: flex-end;
  border: 0;
  border-top: 1px solid #d7dcd3;
}
.ct-modal-body {
  padding: 1.25rem 1.35rem;
}
.ct-modal-body > :first-child {
  margin-top: 0;
}
.ct-modal h4 {
  margin: 1rem 0 0.6rem;
}
.ct-modal-body p {
  line-height: 1.5;
}
.ct-modal .ct-message ul {
  margin-bottom: 0;
}
.ct-impact th,
.ct-impact td {
  padding: 0.65rem 0.75rem;
}
.ct-impact small {
  text-transform: capitalize;
}
.ct-tiers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.ct-tier { padding: 1.1rem 1.35rem 1.35rem; }
.ct-tier + .ct-tier { border-left: 1px solid var(--ct-line); }
.ct-tier-label { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem .6rem; }
.ct-tier-label > span { display: flex; }
.ct-pricing .ct-unit-input { position: relative; display: block; }
.ct-pricing .ct-unit-input input {
  width: 100%; padding-inline-end: 2.95rem; font-variant-numeric: tabular-nums;
}
.ct-unit-input > span {
  position: absolute; inset-inline-end: .8rem; top: 50%; transform: translateY(-50%);
  color: var(--ct-muted); font-size: .8rem; pointer-events: none;
}
.ct-formation-rule { padding: 1.15rem 1.35rem 1.35rem; display: flex; align-items: flex-end; gap: 1.1rem 2rem; flex-wrap: wrap; }
.ct-formation-rule .ui-field { width: min(100%, 14.5rem); }
.ct-pricing-example { padding-left: 1rem; border-left: 2px solid #d6e4d7; color: var(--ct-muted); }
.ct-pricing-example > span { font-size: .78rem; }
.ct-pricing-example p { font-size: .9rem; margin: .15rem 0 0; }
.ct-pricing-example b { color: var(--ct-accent); font-variant-numeric: tabular-nums; }
.ct-price-actions { display: flex; align-items: center; justify-content: flex-end; gap: .6rem; flex-wrap: wrap; }
.ct-price-actions > span { margin-right: auto; font-size: .85rem; color: var(--ct-muted); }
.ct-rule-diff { margin: .7rem 0 1.4rem; padding: .35rem .9rem; border-radius: 7px; background: #f2f5ee; }
.ct-rule-diff > div { display: flex; justify-content: space-between; gap: 1rem; padding: .38rem 0; font-size: .88rem; }
.ct-rule-diff dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.ct-rule-diff + h3 + p { margin: .38rem 0 .85rem; }
@media (max-width: 980px) {
  .ct-catalog-columns, .ct-catalog-row { gap: .65rem; padding-inline: 1rem; }
  .ct-catalog-row .ct-thumb { width: 43px; height: 34px; }
}
@media (max-width: 930px) {
  .ct-catalog-columns { display: none; }
  .ct-catalog-row {
    grid-template-columns: minmax(0, 1fr) 1rem;
    grid-template-areas: "name open" "facts open";
    gap: .55rem .8rem;
  }
  .ct-name-cell { grid-area: name; }
  .ct-entry-facts { grid-area: facts; display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .8rem; }
  .ct-entry-price { text-align: left; }
  .ct-entry-open { grid-area: open; }
  .ct-catalog-row .ct-thumb { display: none; }
}
@media (max-width: 520px) {
  .ct-library-filters { grid-template-columns: 1fr; gap: .7rem; padding: 1rem; }
  .ct-tier { padding: 1rem; }
  .ct-formation-rule { padding: 1rem; }
  .ct-price-actions > span:not(:empty) { flex-basis: 100%; }
}
@media (max-width: 850px) {
  .ct-editor-heading,
  .ct-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .ct-source textarea,
  .ct-rendered {
    padding: 0.85rem;
  }
  .ct-tiers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ct-tier:nth-child(n + 3) {
    border-top: 1px solid var(--ct-line);
  }
  .ct-tier:nth-child(3) {
    border-left: none;
  }
}
@media (max-width: 640px) {
  .ct-fieldgrid,
  .ct-split,
  .ct-course-intro {
    grid-template-columns: 1fr;
  }
  .ct-source {
    border: 0;
  }
  .ct-source textarea,
  .ct-rendered {
    height: 260px;
    min-height: 0;
  }
  .ct-section-head,
  .ct-toolbar,
  .ct-section-content {
    padding: 1rem;
  }
  .ct-library th,
  .ct-library td {
    padding: 0.6rem 0.7rem;
  }
  .ct-thumb {
    display: none;
  }
  .ct-add,
  .ct-outline li {
    flex-wrap: wrap;
  }
  .ct-reorder {
    margin-left: auto;
  }
  .ct-outline-title {
    min-width: 45%;
  }
  .ct-lesson .ct-section-head {
    align-items: flex-start;
  }
  .ct-totals {
    max-width: none;
  }
}
.ct-editor-heading { align-items: center; margin-bottom: 1.2rem; }
.ct-editor-heading > div:first-child { min-width: 0; flex: 1 1 19rem; }
.ct-editor-heading > .ct-actions { flex-shrink: 0; }
.ct-section-tabs {
  display: flex; align-items: stretch; gap: .8rem; overflow-x: auto;
  margin: 0 0 1.15rem; border-bottom: 1px solid var(--ct-line);
}
.ct-section-tabs button {
  display: inline-flex; gap: .4rem; align-items: center; min-height: 43px;
  padding: .55rem .25rem; border: 0; border-bottom: 2px solid transparent;
  white-space: nowrap; background: transparent; color: var(--ct-muted); font-weight: 600; font-size: .9rem;
}
.ct-section-tabs button[aria-selected="true"] { border-color: var(--ct-accent); color: var(--ct-accent); }
.ct-section-tabs button:focus-visible { outline-offset: -3px; }
.ct-section-tabs button > span {
  font-size: .72rem; color: var(--ct-muted); background: var(--ct-soft); padding: .03rem .4rem; border-radius: 1rem;
}
.ct-editor-fields .ct-slug { font-family: ui-monospace, monospace; font-size: .88rem; }
.ct-editor-fields input[readonly] { background-color: var(--ct-soft); color: var(--ct-muted); }
.ct-price-field { gap: .38rem; }
.ct-price-field .ct-field-label { font-size: .88rem; line-height: 1.45; font-weight: 650; }
.ct-star-field output {
  display: flex; align-items: center; min-height: 42px; padding: .45rem .8rem;
  background: #eff4eb; border: 1px solid #dce5d8; border-radius: 6px; font-variant-numeric: tabular-nums;
}
.ct-lesson-switch { display: none; }
.ct-outline li:first-child { border-top: 0; }
.ct-outline li { column-gap: .7rem; }
.ct-position { width: 1.8rem; text-align: center; flex-shrink: 0; }
.ct-reorder button { width: 34px; height: 34px; }
.ct-undone { display: flex; align-items: center; gap: .5rem; justify-content: space-between; background: var(--ct-soft); border-radius: 6px; padding: .35rem .7rem; margin-top: .5rem; }
.ct-picker-search { padding: .85rem 1.2rem; border-bottom: 1px solid var(--ct-line); }
.ct-picker-results { max-height: min(52dvh,410px); overflow-y: auto; overscroll-behavior: contain; }
.ct-picker-results ul { list-style: none; margin: 0; padding: 0; }
.ct-picker-results li {
  display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: .8rem;
  padding: .7rem 1.2rem; border-bottom: 1px solid var(--ct-line);
}
.ct-picker-results li:last-child { border-bottom: 0; }
.ct-picker-results strong { display: block; font-size: .94rem; overflow-wrap: anywhere; }
.ct-picker-results small { color: var(--ct-muted); font-size: .8rem; }
.ct-picker-results .ct-number { color: var(--ct-muted); font-size: .8rem; }
.ct-picker-add { padding: .38rem .55rem; min-height: 34px; }
.ct-picker-footer span { margin-right: auto; color: var(--ct-muted); font-size: .86rem; }
.ct .ct-destructive, .ct-modal .ct-destructive { background: #913c32; color: #fff; border: 1px solid #913c32; }
.ct .ct-destructive:hover, .ct-modal .ct-destructive:hover { background: #703128; }
.ct-modal p:last-child { margin-bottom: 0; }
.ct-lesson textarea { border: 0; border-radius: 0; }
@media (max-width: 700px) {
  .ct-lesson-switch { display: flex; gap: .25rem; padding: .45rem .75rem; background: var(--ct-soft); }
  .ct-lesson-switch button { background: transparent; border: 1px solid transparent; border-radius: 5px; padding: .35rem .75rem; color: var(--ct-muted); }
  .ct-lesson-switch button[aria-pressed=true] { border-color: var(--ct-line); background: white; color: var(--ink); }
  .ct-split { display: block; }
  .ct-split .ct-pane-label, .ct-pane-write .ct-output, .ct-pane-preview .ct-source { display: none; }
  .ct-source { border: 0; }
  .ct-source textarea, .ct-rendered { height: min(56dvh,440px); min-height: 245px; }
}
@media (max-width: 840px) {
  .ct-editor-heading { flex-wrap: wrap; }
  .ct-editor-heading > .ct-actions { flex-shrink: 1; }
  .ct-outline li { display: grid; grid-template-columns: 1.6rem minmax(0,1fr) auto; gap: .2rem .55rem; }
  .ct-outline-title { min-width: 0; }
  .ct-outline .ct-number { grid-column: 2; grid-row: 2; font-size: .78rem; color: var(--ct-muted); }
  .ct-outline .ct-reorder { grid-row: 1 / span 2; grid-column: 3; }
}
@media (max-width: 440px) {
  .ct-editor-heading .ct-actions { gap: .45rem; }
  .ct-editor-heading .button { font-size: .86rem; padding-inline: .62rem; }
  .ct-section-tabs { gap: .65rem; }
  .ct-section-tabs button { font-size: .83rem; }
  .ct-picker-results li { padding-inline: .85rem; gap: .45rem; }
  .ct-reorder button { width: 32px; }
}

.category-list { overflow: clip; }
.category-list ul, .category-uses { margin: 0; padding: 0; list-style: none; }
.category-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(6rem, .45fr) 5rem;
  gap: 1rem;
  align-items: center;
  padding: .8rem 1.2rem;
  border-bottom: 1px solid var(--line);
}
.category-row:last-child { border-bottom: 0; }
.category-row > strong { overflow-wrap: anywhere; }
.category-columns { font-size: .77rem; font-weight: 650; color: #536157; background: #f2f4ee; }
.category-usage {
  display: inline-flex; gap: .3rem; padding: .3rem 0; align-items: center; justify-self: start;
  border: 0; background: transparent; color: var(--green); font-weight: 600;
}
.category-usage:hover { text-decoration: underline; }
.category-delete { min-height: 34px; padding: .35rem .7rem; font-size: .84rem; justify-self: end; }
.category-dialog-body { padding: 1.25rem 1.35rem; }
.category-dialog-body > p:last-child { margin-bottom: 0; }
.category-dialog-body .error { margin: .9rem 0 0; }
.category-danger { color: white; background: #913c32; }
.category-danger:hover { background: #743028; }
.category-uses li + li { border-top: 1px solid var(--line); }
.category-uses a { display: flex; padding: .65rem 0; align-items: center; justify-content: space-between; gap: .8rem; }
.category-uses a:hover b { text-decoration: underline; }
.category-uses small { display: block; color: var(--muted); text-transform: capitalize; }
@media (max-width: 550px) {
  .category-columns { display: none; }
  .category-row:not(.category-columns) { grid-template-columns: minmax(0,1fr) auto; gap: .15rem 1rem; padding: .8rem 1rem; }
  .category-row .category-delete { grid-row: 1 / 3; grid-column: 2; }
  .category-row .category-usage, .category-row > .muted { grid-column: 1; grid-row: 2; font-size: .84rem; }
}
