.admin-platform {
  background: #fcf8f9;
  color: #251c22;
  font-size: 16px;
}
.admin-top {
  position: sticky;
  top: 0;
  background: #fffcfdf5;
  backdrop-filter: blur(14px);
  z-index: 50;
  border-bottom: 1px solid #eadce1;
}
.admin-brandrow,
.admin-mainnav,
.admin-shell {
  max-width: 1380px;
  margin: auto;
  padding: 18px 28px;
}
.admin-brandrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.admin-account {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 14px;
}
.admin-mainnav {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 5px;
  padding-top: 0;
  padding-bottom: 12px;
}
.admin-mainnav a {
  display: flex;
  flex: 1 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 12px;
  text-decoration: none;
  color: #66535e;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  padding: 8px;
  gap: 8px;
}
.admin-mainnav a[aria-current] {
  background: #53061f;
  color: white;
}
.admin-mainnav a:hover {
  background: #f6e8ee;
  color: #53061f;
}
.admin-shell {
  padding-top: 28px;
  padding-bottom: 64px;
}
.admin-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 22px 0 30px;
}
.admin-heading h1 {
  font-size: 32px;
  line-height: 1.35;
  margin: 0 0 8px;
  letter-spacing: -0.5px;
}
.admin-heading p {
  margin: 0 0 6px;
}
.admin-tabs {
  display: flex;
  gap: 4px;
  overflow: auto;
  border-bottom: 1px solid #e3d7dc;
  padding-bottom: 10px;
}
.admin-tabs a {
  padding: 10px 16px;
  border-radius: 10px;
  white-space: nowrap;
  text-decoration: none;
  color: #6b5661;
  font-size: 15px;
}
.admin-tabs a[aria-current] {
  background: white;
  box-shadow: 0 1px 5px #3d082314;
  color: #650828;
  font-weight: 700;
}
.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.admin-tile {
  border: 1px solid #eadce1;
  border-radius: 20px;
  background: #fff;
  padding: 26px;
  text-decoration: none;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
  color: inherit;
}
.admin-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 30px #53061f0a;
}
.admin-tile h2 {
  font-size: 20px;
  margin: 16px 0 10px;
}
.admin-tile p {
  font-size: 15px;
  color: #776771;
  margin: 0;
  line-height: 1.7;
}
.admin-tile .tile-number {
  font-size: 14px;
  font-weight: 700;
  color: #a77b8d;
}
.admin-two {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 24px;
}
.admin-panel {
  background: white;
  border: 1px solid #eadce1;
  border-radius: 20px;
  padding: 26px;
  margin-bottom: 20px;
}
.admin-panel h2 {
  font-size: 21px;
  margin: 0 0 18px;
}
.admin-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.admin-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  min-width: 0;
}
.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #d9cbd1;
  border-radius: 10px;
  background: #fff;
  color: #241d22;
  font: inherit;
  font-weight: 400;
  min-width: 0;
}
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
  outline: 2px solid #a72c58;
  outline-offset: 2px;
}
.admin-form-actions,
.span2 {
  grid-column: 1/-1;
}
.admin-form-actions {
  padding-top: 6px;
  display: flex;
  gap: 12px;
}
.admin-empty {
  padding: 36px 24px;
  border: 1px dashed #d8c8d0;
  border-radius: 16px;
  color: #786571;
  text-align: center;
  background: #fff;
}
.admin-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.admin-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: white;
  border: 1px solid #eadce1;
  border-radius: 14px;
  padding: 18px 20px;
}
.admin-row p {
  margin: 5px 0;
  font-size: 14px;
  color: #7a6570;
}
.admin-row strong {
  font-size: 16px;
}
.admin-row form {
  margin: 0;
}
.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.admin-search {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.admin-search input,
.admin-search select {
  border: 1px solid #dccdd4;
  border-radius: 11px;
  padding: 12px;
  font: inherit;
  min-width: 0;
}
.admin-search input {
  flex: 1;
}
.admin-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  background: #f4edf1;
  color: #684353;
  font-size: 13px;
}
.admin-badge.green {
  background: #e7f4ed;
  color: #196846;
}
.admin-badge.amber {
  background: #fff3d8;
  color: #85571b;
}
.admin-badge.red {
  background: #fde9ed;
  color: #a52c48;
}
.admin-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0 0 26px;
}
.admin-metric {
  background: white;
  border: 1px solid #eadce1;
  border-radius: 17px;
  padding: 22px;
}
.admin-metric strong {
  font-size: 32px;
  display: block;
  color: #590a27;
}
.admin-metric span {
  font-size: 14px;
  color: #79616f;
}
.admin-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: 330px;
  overflow: auto;
  padding: 5px;
}
.admin-checks label {
  flex-direction: row;
  align-items: center;
  font-weight: 400;
}
.admin-checks input {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  accent-color: #75052f;
}
.admin-lesson {
  padding: 14px 0;
  border-top: 1px solid #f0e6eb;
}
.admin-caption {
  font-size: 14px;
  color: #7d6673;
  line-height: 1.7;
}
.admin-inline {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.admin-inline form {
  display: inline;
}
.admin-panel details {
  margin: 16px 0;
}
.admin-panel summary {
  cursor: pointer;
  font-weight: 600;
  padding: 10px 0;
}
.admin-platform code {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.admin-platform .table-wrap {
  margin: 20px 0;
}
.admin-platform td {
  vertical-align: top;
}
.admin-form .admin-checkbox {
  flex-direction: row;
  align-items: center;
}
.admin-checkbox input {
  width: auto;
}
.admin-error {
  padding: 18px;
  background: #fff0f2;
  border: 1px solid #f1bac8;
  border-radius: 12px;
  color: #8a1938;
  margin: 20px 0;
}
.admin-success {
  padding: 15px;
  background: #eaf5ed;
  border: 1px solid #c6e6ce;
  border-radius: 12px;
  color: #276143;
  margin: 20px 0;
}
.admin-price {
  font-size: 30px;
  font-weight: 700;
  color: #590a27;
}
.promo-terms {
  background: #fff5f0;
  border: 1px solid #f1d4c5;
  border-radius: 12px;
  padding: 14px;
  line-height: 1.7;
  margin: 12px 0;
}
.promo-form {
  display: flex;
  gap: 8px;
  margin: 15px 0;
}
.promo-form input {
  width: 100%;
  min-width: 0;
  border: 1px solid #d9cbd1;
  border-radius: 10px;
  padding: 12px;
  font: inherit;
}
.admin-checkbox small {
  font-weight: 400;
}
.admin-narrow {
  max-width: 950px;
}
.admin-history {
  white-space: pre-wrap;
  font-size: 14px;
  overflow-wrap: anywhere;
}
@media (max-width: 1000px) {
  .admin-mainnav a {
    padding: 10px 16px;
  }
  .admin-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-two {
    grid-template-columns: 1fr;
  }
  .admin-account > span {
    display: none;
  }
}
@media (max-width: 650px) {
  .admin-shell,
  .admin-brandrow,
  .admin-mainnav {
    padding-left: 16px;
    padding-right: 16px;
  }
  .admin-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .admin-heading h1 {
    font-size: 27px;
  }
  .admin-grid,
  .admin-form,
  .admin-checks {
    grid-template-columns: 1fr;
  }
  .admin-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .admin-metrics {
    gap: 8px;
  }
  .admin-metric {
    padding: 14px;
  }
  .admin-metric strong {
    font-size: 25px;
  }
  .admin-panel {
    padding: 18px;
  }
  .admin-account .btn {
    font-size: 13px;
    padding: 9px;
  }
  .admin-brandrow {
    gap: 6px;
  }
  .admin-account {
    gap: 6px;
  }
  .admin-brandrow .brand small {
    display: none;
  }
  .span2 {
    grid-column: auto;
  }
}
.admin-top .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 20px;
  font-weight: 800;
  color: #53061f;
}
.admin-top .brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.admin-top .brand small {
  display: block;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

@media (max-width: 650px) {
  .admin-brandrow,
  .admin-account {
    flex-wrap: wrap;
  }
  .admin-top .brand {
    gap: 8px;
    font-size: 16px;
  }
  .admin-top .brand img {
    width: 34px;
    height: 34px;
  }
  .admin-brandrow .brand small {
    display: none;
  }
}

/* Task-oriented admin: picture-led catalog, compact summaries, readable workspaces. */
.admin-icon {
  width: 22px;
  height: 22px;
  flex: none;
  display: inline-block;
  vertical-align: middle;
}
.admin-nav-icon {
  display: flex;
}
.admin-mainnav a[aria-current]:hover {
  background: #650b2b;
  color: white;
}
.admin-shell a:focus-visible,
.admin-top a:focus-visible,
.admin-platform button:focus-visible {
  outline: 3px solid #ac4068;
  outline-offset: 3px;
}
.admin-shell {
  max-width: 1440px;
}
.admin-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 26px 0 18px;
}
.admin-section-heading h2 {
  font-size: 22px;
  margin: 0;
}
.admin-section-heading > span {
  font-size: 14px;
  color: #725e68;
}
.admin-panel > .admin-section-heading:first-child {
  margin-top: 0;
}
.admin-category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.admin-category-nav a {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 15px;
  background: white;
  border: 1px solid #e8dce1;
  border-radius: 12px;
  font-size: 14px;
  text-decoration: none;
  color: #5f4c55;
}
.admin-category-nav a span {
  color: #816c77;
  font-size: 13px;
}
.admin-category-nav a[aria-current] {
  background: #f4e3eb;
  border-color: #b16885;
  color: #65072a;
  font-weight: 700;
}
.admin-search {
  align-items: end;
  gap: 14px;
  padding: 20px;
  background: #fff;
  border: 1px solid #eadce1;
  border-radius: 16px;
}
.admin-search label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  min-width: 0;
}
.admin-search select {
  max-width: 100%;
  width: 100%;
}
.admin-search .btn {
  min-height: 46px;
}
.admin-course-search label:first-of-type {
  flex: 1;
  min-width: 200px;
}
.admin-course-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.admin-course-card {
  overflow: hidden;
  border: 1px solid #e8dce1;
  border-radius: 19px;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.admin-course-card:hover {
  box-shadow: 0 10px 32px #53061f12;
  transform: translateY(-2px);
}
.admin-cover {
  display: block;
  aspect-ratio: 3/2;
  background: #f3eff1;
  border-bottom: 1px solid #ece1e6;
}
.admin-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.admin-course-body {
  padding: 18px;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 13px;
  min-width: 0;
}
.admin-course-body h2 {
  font-size: 18px;
  line-height: 1.65;
  margin: 0;
}
.admin-course-body h2 a {
  color: #292129;
  text-decoration: none;
}
.admin-course-body > p {
  font-size: 14px;
  line-height: 1.6;
  color: #705d67;
  margin: 0;
}
.admin-course-body .admin-inline {
  gap: 7px;
  align-items: start;
}
.admin-code {
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.4px;
  font-weight: 700;
  color: #75103a;
  overflow-wrap: anywhere;
}
.admin-course-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
  font-size: 14px;
  color: #786570;
}
.admin-course-meta strong {
  font-size: 18px;
  color: #53061f;
  white-space: nowrap;
}
.admin-card-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0 0;
  border-top: 1px solid #eee4e9;
  color: #650b2b;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.admin-task-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}
.admin-task-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 26px;
  border: 1px solid #e5d6de;
  border-radius: 18px;
  text-decoration: none;
  background: #fff;
  color: inherit;
  min-height: 130px;
}
.admin-task-card > div {
  flex: 1;
  min-width: 0;
}
.admin-task-card h2 {
  font-size: 21px;
  line-height: 1.4;
  margin: 0 0 8px;
}
.admin-task-card p {
  font-size: 15px;
  line-height: 1.6;
  color: #77636e;
  margin: 0;
}
.admin-task-card:hover {
  border-color: #9d506f;
  box-shadow: 0 6px 20px #53061f0b;
}
.admin-task-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: #f7e8ef;
  color: #8b214d;
  flex: none;
}
.admin-task-icon .admin-icon {
  width: 26px;
  height: 26px;
}
.admin-task-card.blue .admin-task-icon {
  background: #eaf1fb;
  color: #3562a0;
}
.admin-task-card.green .admin-task-icon {
  background: #e9f5ef;
  color: #28714f;
}
.admin-task-card.amber .admin-task-icon {
  background: #fff2d9;
  color: #95621d;
}
.admin-home-columns {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}
.admin-work-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid #efe5e9;
  text-decoration: none;
  color: inherit;
}
.admin-work-row > div {
  flex: 1;
}
.admin-work-row small {
  display: block;
  color: #796770;
  font-size: 14px;
  margin-top: 5px;
}
.admin-count {
  padding: 7px 13px;
  background: #f6eef1;
  border-radius: 10px;
  color: #681c39;
}
.admin-help-panel {
  background: linear-gradient(135deg, #fff 0%, #faedf2 100%);
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 16px;
}
.admin-help-panel h2 {
  margin: 0;
}
.admin-help-panel p {
  margin: 0;
  line-height: 1.8;
  color: #775b68;
}
.admin-help-panel .btn {
  margin-top: auto;
}
.admin-course-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: 12px 0 18px;
}
.admin-course-heading > img {
  width: 96px;
  height: auto;
  aspect-ratio: 3/2;
  object-fit: contain;
  background: white;
  border: 1px solid #e5d5dd;
  border-radius: 14px;
  flex: none;
}
.admin-course-heading h1 {
  font-size: 24px;
  line-height: 1.35;
  margin: 5px 0;
}
.admin-course-heading p {
  margin: 2px 0 0;
  color: #705c67;
}
.admin-back {
  color: #805a6b;
  font-size: 14px;
  text-decoration: none;
  display: inline-block;
  margin-top: 18px;
}
.admin-tabs {
  margin-bottom: 24px;
  gap: 6px;
}
.admin-tabs a {
  border: 1px solid transparent;
}
.admin-tabs a[aria-current] {
  border-color: #ead6e0;
  background: #fff;
  color: #65072a;
}
.admin-picker-image {
  width: 56px;
  height: 42px;
  object-fit: contain;
  flex: none;
  background: #f9f5f7;
  border-radius: 5px;
}
.admin-checks label {
  padding: 9px;
  border: 1px solid #eadce1;
  border-radius: 10px;
  gap: 10px;
  font-size: 14px;
  line-height: 1.6;
  display: flex;
}
.admin-checks label[hidden] {
  display: none;
}
.admin-checks label:has(input:checked) {
  background: #fff4f8;
  border-color: #ab5076;
}
.admin-checks strong {
  color: #75103a;
}
.admin-form-step {
  display: flex;
  gap: 15px;
  align-items: center;
  border-top: 1px solid #e9dce2;
  padding-top: 24px;
  margin-top: 12px;
}
.admin-form-step:first-child {
  border: 0;
  margin: 0;
  padding-top: 0;
}
.admin-form-step > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  background: #650b2b;
  color: white;
  font-size: 16px;
}
.admin-form-step h2 {
  font-size: 20px;
  margin: 0 0 4px;
}
.admin-form-step p {
  font-size: 14px;
  color: #796470;
  margin: 0;
}
.admin-promo-preview {
  border: 1px solid #e9cbd8;
  background: #fff5f9;
  padding: 20px;
  border-radius: 14px;
  line-height: 1.8;
}
.admin-promo-preview p {
  margin: 7px 0 0;
  color: #765264;
  font-size: 15px;
}
.admin-demo-notice {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border: 1px solid #ead8b6;
  border-left: 4px solid #b57b22;
  background: #fff8e9;
  color: #765724;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.7;
}
.admin-sales-metrics .admin-metric {
  display: flex;
  flex-direction: column;
  position: relative;
  gap: 8px;
}
.admin-sales-metrics .admin-metric > .admin-icon {
  position: absolute;
  right: 20px;
  top: 20px;
  color: #9e627c;
}
.admin-metric small {
  font-size: 14px;
  color: #806b76;
  font-weight: 400;
}
.admin-sales-metrics .admin-metric strong {
  font-size: 30px;
}
.admin-sales-metrics .admin-action-metric {
  border-color: #d9a8bb;
  background: linear-gradient(145deg, #fff 0%, #fff5f8 100%);
  box-shadow: 0 8px 24px #65072a0b;
}
.admin-sales-metrics .admin-action-metric > .admin-icon {
  color: #760c36;
}
.admin-sales-metrics .admin-action-metric .admin-text-link {
  margin-top: 4px;
  align-self: flex-start;
}
.admin-review-queue {
  border-color: #dec0cc;
}
.admin-review-step {
  display: inline-block;
  margin-bottom: 7px;
  color: #8a234b;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.admin-review-queue .admin-section-heading h2,
.admin-review-heading h2 {
  margin-bottom: 5px;
}
.admin-review-queue .admin-section-heading p,
.admin-review-heading p {
  margin: 0;
}
.admin-review-queue-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.admin-review-queue-item {
  display: grid;
  grid-template-columns: 34px minmax(160px, 0.8fr) minmax(
      220px,
      1.35fr
    ) auto auto;
  gap: 16px;
  align-items: center;
  border: 1px solid #eadce1;
  border-radius: 14px;
  padding: 15px;
  background: #fffdfd;
}
.admin-review-queue-item:hover {
  border-color: #c992a7;
  background: #fff8fa;
}
.admin-queue-number {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #6b1738;
  background: #f5e6ec;
  font-weight: 800;
}
.admin-queue-buyer,
.admin-queue-order {
  min-width: 0;
}
.admin-queue-buyer small,
.admin-queue-order small {
  display: block;
  margin-top: 5px;
  color: #7b6471;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.admin-queue-order strong {
  font-size: 14px;
  line-height: 1.55;
}
.admin-queue-total {
  color: #65072a;
  white-space: nowrap;
}
.admin-queue-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 26px;
  border: 1px dashed #d9c8d0;
  border-radius: 14px;
  color: #6f5965;
  background: #fbf8f9;
}
.admin-review-workspace {
  padding: 0;
  overflow: hidden;
  border: 2px solid #b86a87;
  box-shadow: 0 12px 34px #65072a12;
}
.admin-review-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px;
  border-bottom: 1px solid #ead5dd;
  background: linear-gradient(130deg, #fff8fa 0%, #fff 72%);
}
.admin-review-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.95fr);
}
.admin-proof-column,
.admin-decision-column {
  min-width: 0;
  padding: 26px;
}
.admin-decision-column {
  border-left: 1px solid #eadce1;
  background: #fcfafb;
}
.admin-proof-column h3,
.admin-decision-column h3 {
  margin: 0 0 18px;
  font-size: 17px;
}
.admin-proof-image {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #ddcbd3;
  border-radius: 14px;
  color: #701039;
  background: #f2edf0;
  text-decoration: none;
}
.admin-proof-image img {
  display: block;
  width: 100%;
  min-height: 260px;
  max-height: 520px;
  object-fit: contain;
  background: #ede8ea;
}
.admin-proof-image span {
  padding: 11px 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  background: #fff;
}
.admin-proof-file,
.admin-proof-missing {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px dashed #d3bbc5;
  border-radius: 14px;
  background: #faf6f8;
  text-align: center;
}
.admin-proof-file .admin-icon {
  width: 34px;
  height: 34px;
  color: #8a3153;
}
.admin-proof-missing {
  color: #922840;
  background: #fff6f7;
}
.admin-proof-missing span {
  font-size: 14px;
}
.admin-review-summary {
  margin: 0 0 22px;
  border: 1px solid #e8dce1;
  border-radius: 13px;
  background: #fff;
}
.admin-review-summary > div {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 16px;
  padding: 13px 15px;
  border-bottom: 1px solid #eee4e8;
}
.admin-review-summary > div:last-child {
  border-bottom: 0;
}
.admin-review-summary dt {
  color: #78636e;
  font-size: 13px;
}
.admin-review-summary dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}
.admin-review-summary dd small {
  display: block;
  margin-top: 3px;
  color: #7b6471;
  overflow-wrap: anywhere;
}
.admin-decision-column > .admin-form {
  grid-template-columns: 1fr;
  padding: 19px;
  border: 1px solid #d8b6c4;
  border-radius: 14px;
  background: #fff;
}
.admin-decision-column > .admin-form .span2,
.admin-decision-column > .admin-form .admin-form-actions {
  grid-column: 1;
}
.admin-decision-column > .admin-form .btn {
  width: 100%;
  min-height: 50px;
  font-weight: 800;
}
.admin-reject-disclosure {
  margin-top: 16px;
  border-top: 1px solid #eadce1;
  padding-top: 14px;
}
.admin-reject-disclosure > summary {
  color: #8b3b51;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.admin-reject-disclosure .admin-form {
  grid-template-columns: 1fr;
  margin-top: 14px;
  padding: 16px;
  border-radius: 12px;
  background: #fff4f6;
}
.admin-payment-route,
.admin-selected-order-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.admin-payment-route {
  border-color: #d8b2c1;
  background: linear-gradient(135deg, #fff8fa 0%, #fff 78%);
}
.admin-payment-route h2 {
  margin-bottom: 7px;
}
.admin-payment-route p {
  margin: 0;
  color: #745e69;
}
.admin-selected-order-bar {
  margin: 6px 0 14px;
  padding: 16px 18px;
  border: 1px solid #dfccd4;
  border-radius: 16px;
  background: #fff;
}
.admin-selected-order-bar > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}
.admin-selected-order-bar > div span {
  color: #7d6873;
  font-size: 13px;
}
.admin-selected-order-bar > div strong {
  overflow-wrap: anywhere;
}
.admin-reject-disclosure .span2,
.admin-reject-disclosure .admin-form-actions {
  grid-column: 1;
}
.admin-reject-disclosure .btn {
  background: #8f3045;
}
.admin-order-filter {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 0.8fr;
}
.admin-order-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 14px;
  margin-bottom: 14px;
}
.admin-order-status-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.admin-order-status-filters a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 13px 16px;
  border: 1px solid #e4d6dc;
  border-radius: 14px;
  color: #604c56;
  background: #fff;
  text-decoration: none;
}
.admin-order-status-filters a[aria-current='page'] {
  border-color: #9d496c;
  background: #fff5f8;
  box-shadow: 0 0 0 2px #75052f12;
}
.admin-order-status-filters strong {
  color: #65072a;
  font-size: 22px;
}
.admin-order-finance-summary {
  display: flex;
  min-width: 245px;
  flex-direction: column;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid #d5e4dc;
  border-radius: 14px;
  background: #f7fbf8;
}
.admin-order-finance-summary span,
.admin-order-finance-summary small {
  color: #65746c;
  font-size: 12px;
}
.admin-order-finance-summary strong {
  margin: 3px 0;
  color: #1d5838;
  font-size: 23px;
}
.admin-order-quick-filters {
  display: flex;
  gap: 7px;
  margin-bottom: 14px;
}
.admin-order-quick-filters a {
  padding: 8px 13px;
  border: 1px solid #e3d4db;
  border-radius: 999px;
  color: #765b68;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.admin-order-quick-filters a[aria-current='page'] {
  border-color: #75052f;
  color: #fff;
  background: #75052f;
}
.admin-row-primary {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 12px;
  white-space: nowrap;
}
.admin-account-search {
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 18px 0 12px;
}
.admin-account-results {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  margin-bottom: 18px;
  padding-right: 4px;
}
.admin-account-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 14px;
  border: 1px solid #e6d9df;
  border-radius: 12px;
  color: inherit;
  background: #fff;
  text-decoration: none;
}
.admin-account-choice:hover {
  border-color: #a75a78;
  background: #fff8fa;
}
.admin-account-choice span,
.admin-selected-account {
  display: grid;
  gap: 3px;
}
.admin-account-choice small,
.admin-selected-account span,
.admin-selected-account small {
  color: #7d6873;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.admin-account-choice b {
  color: #75052f;
  font-size: 13px;
  white-space: nowrap;
}
.admin-selected-account {
  margin: 18px 0 12px;
  padding: 15px 16px;
  border: 1px solid #cda7b6;
  border-radius: 13px;
  background: #fff6f9;
}
.admin-orders-table {
  margin: 0 !important;
}
.admin-orders-table table {
  min-width: 930px;
  width: 100%;
}
.admin-orders-table td {
  font-size: 14px;
  line-height: 1.65;
  padding: 18px 12px;
}
.admin-orders-table th {
  font-size: 14px;
  background: #f8f2f5;
  white-space: nowrap;
}
.admin-orders-table td:nth-child(3) {
  min-width: 190px;
  max-width: 310px;
}
.admin-orders-table td:nth-child(4),
.admin-orders-table td:nth-child(5) {
  white-space: nowrap;
}
.admin-orders-table td small {
  font-size: 13px;
  display: block;
  margin-top: 6px;
  color: #7b6471;
}
.admin-orders-table tbody tr:hover {
  background: #fff9fb;
}
.admin-text-link {
  color: #75103a;
  font-weight: 600;
  white-space: nowrap;
}
.admin-cell-note {
  display: block;
  font-size: 13px;
  color: #7b6471;
  margin-top: 6px;
}
.admin-order-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding: 20px;
  background: #fbf7f9;
  border-radius: 14px;
  margin: 18px 0 25px;
}
.admin-order-facts span,
.admin-order-facts small {
  display: block;
  font-size: 14px;
  color: #7b6471;
  overflow-wrap: anywhere;
}
.admin-order-facts strong {
  display: block;
  margin-top: 7px;
  font-size: 16px;
}
.admin-order-item {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #ebdfe5;
}
.admin-order-item > div {
  flex: 1;
}
.admin-order-item img {
  object-fit: contain;
  width: 90px;
  height: 60px;
  border-radius: 7px;
  background: #f7f3f5;
}
.admin-order-item p {
  font-size: 14px;
  color: #7b6471;
  margin: 6px 0 0;
}
.admin-order-totals {
  max-width: 450px;
  margin: 20px 0 30px auto;
}
.admin-order-totals p {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 15px;
}
.admin-order-totals p:last-child {
  font-size: 19px;
  border-top: 1px solid #e7d4dd;
  padding-top: 12px;
  color: #65072a;
}
.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 16px;
  padding-top: 24px;
  font-size: 14px;
}
.admin-student-identity {
  display: flex;
  gap: 16px;
  align-items: center;
}
.admin-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f3e3eb;
  color: #75103a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex: none;
}
.admin-shipping-label {
  max-width: 600px;
  background: #fff;
  border: 1px solid #c8c8c8;
  color: #111;
  padding: 25px;
  margin: 20px 0;
  font-size: 18px;
}
.admin-shipping-print-sheet {
  display: none;
}
.admin-order-shipping {
  border-color: #dbc3cd;
}
.admin-shipping-saved {
  display: grid;
  grid-template-columns: minmax(160px, 0.65fr) minmax(260px, 1.25fr) minmax(
      180px,
      0.75fr
    );
  gap: 20px;
  position: relative;
  padding: 22px;
  border: 1px solid #d7e6de;
  border-radius: 15px;
  background: #f8fcfa;
}
.admin-shipping-saved > .admin-badge {
  position: absolute;
  top: 14px;
  right: 14px;
}
.admin-shipping-saved > div {
  min-width: 0;
  padding-top: 26px;
}
.admin-shipping-saved span,
.admin-shipping-saved small {
  display: block;
  margin-bottom: 6px;
  color: #6f6570;
  font-size: 13px;
}
.admin-shipping-saved strong {
  display: block;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.admin-shipping-saved.from-student {
  border-color: #c9deee;
  background: #f5faff;
}
.admin-shipping-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16px;
  padding: 18px 20px;
  border: 1px solid #d9c0ca;
  border-radius: 14px;
  background: #fff8fa;
}
.admin-shipping-next > div {
  display: grid;
  gap: 3px;
}
.admin-shipping-next span {
  color: #705c66;
  font-size: 14px;
}
.admin-shipping-next .btn {
  flex: none;
}
.admin-shipping-empty {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 22px;
  border: 1px dashed #d8c6ce;
  border-radius: 14px;
  color: #735e69;
  background: #fbf8f9;
}
.admin-shipping-print-preview {
  margin-top: 18px;
}
.admin-shipping-print-preview > summary,
.admin-order-shipping > details > summary {
  color: #75103a;
  font-weight: 700;
  cursor: pointer;
}
.admin-order-shipping > details {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #eadce1;
}
.fulfillment-approved-callout {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  margin: 0 0 20px;
  padding: 20px 22px;
  border: 1px solid #b9dcc7;
  border-radius: 16px;
  background: #f2fbf5;
  color: #22583a;
}
.fulfillment-approved-callout > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: #2b754a;
  color: #fff;
  font-size: 25px;
  font-weight: 800;
}
.fulfillment-approved-callout strong {
  font-size: 14px;
}
.fulfillment-approved-callout h2 {
  margin: 3px 0 2px;
  font-size: 22px;
}
.fulfillment-approved-callout p {
  margin: 0;
  color: #527060;
}
.fulfillment-submitted-preview {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(260px, 1.25fr) minmax(
      240px,
      1fr
    );
  gap: 16px;
  margin-top: 16px;
}
.fulfillment-submitted-preview > div {
  min-width: 0;
  padding: 18px;
  border: 1px solid #e3d8dd;
  border-radius: 14px;
  background: #fff;
}
.fulfillment-submitted-preview > div > span,
.fulfillment-submitted-preview > div > small {
  display: block;
  margin-bottom: 5px;
  color: #75636c;
  font-size: 13px;
}
.fulfillment-submitted-preview > div > strong {
  display: block;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.fulfillment-confirm-submitted {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid #c8ded1;
  border-radius: 14px;
  background: #f3faf5;
}
.fulfillment-confirm-submitted > div {
  display: grid;
  gap: 3px;
}
.fulfillment-confirm-submitted span {
  color: #5d7064;
  font-size: 14px;
}
.fulfillment-confirm-submitted .btn {
  flex: none;
}
.fulfillment-edit-submitted {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #eadde2;
}
.fulfillment-edit-submitted > summary {
  color: #75103a;
  font-weight: 750;
  cursor: pointer;
}
.shipping-sender {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-bottom: 1px solid #999;
  padding-bottom: 18px;
  font-size: 14px;
}
.shipping-sender strong {
  font-size: 19px;
}
.shipping-recipient {
  padding: 22px 0;
  line-height: 1.7;
}
.shipping-recipient > strong {
  display: block;
  font-size: 25px;
  margin: 6px 0;
}
.shipping-recipient p {
  margin: 5px 0;
}
.shipping-contents {
  border-top: 1px solid #999;
  padding-top: 15px;
  font-size: 14px;
  line-height: 1.6;
}

/* Fulfillment is a task queue: keep state, next action, and exceptions visible. */
.fulfillment-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 18px;
}
.fulfillment-summary > div {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2px 10px;
  padding: 18px 20px;
  border: 1px solid #eadce2;
  border-radius: 16px;
  background: #fff;
}
.fulfillment-summary span {
  grid-column: 1 / -1;
  color: #755f69;
  font-size: 13px;
}
.fulfillment-summary strong {
  color: #5f0a2b;
  font-size: 30px;
  line-height: 1;
}
.fulfillment-summary small {
  color: #806c75;
}
.fulfillment-summary .danger {
  border-color: #efc0bb;
  background: #fff8f7;
}
.fulfillment-summary .danger strong {
  color: #a02c25;
}
.fulfillment-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 12px;
  margin-bottom: 8px;
}
.fulfillment-filters a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: none;
  padding: 10px 13px;
  border: 1px solid #e1ced7;
  border-radius: 999px;
  color: #543843;
  background: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}
.fulfillment-filters a[aria-current='page'] {
  border-color: #6f0a31;
  color: #fff;
  background: #6f0a31;
}
.fulfillment-filters b {
  min-width: 24px;
  padding: 2px 7px;
  border-radius: 999px;
  color: #6f0a31;
  background: #f6e8ee;
  text-align: center;
}
.fulfillment-filters a[aria-current='page'] b {
  color: #6f0a31;
  background: #fff;
}
.fulfillment-search {
  grid-template-columns: minmax(260px, 1.5fr) minmax(150px, 0.55fr) minmax(
      150px,
      0.55fr
    ) auto;
  margin-bottom: 26px;
}
.fulfillment-queue {
  margin: 0 0 26px;
}
.fulfillment-queue-card {
  display: grid;
  grid-template-columns: minmax(130px, 0.65fr) minmax(190px, 0.9fr) minmax(
      260px,
      1.5fr
    ) minmax(175px, 0.7fr);
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid #eadce2;
  border-radius: 16px;
  background: #fff;
  margin-bottom: 10px;
}
.fulfillment-queue-card.danger {
  border-color: #eeb8b3;
  background: #fff9f8;
}
.fulfillment-order-id,
.fulfillment-recipient {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.fulfillment-order-id span {
  color: #6f0a31;
  font-weight: 750;
  letter-spacing: 0.04em;
}
.fulfillment-order-id small,
.fulfillment-recipient small {
  color: #7c6871;
  overflow-wrap: anywhere;
}
.fulfillment-books {
  min-width: 0;
}
.fulfillment-item-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.fulfillment-item-chips > span {
  display: inline-grid;
  grid-template-columns: auto auto;
  gap: 4px 12px;
  align-items: center;
  min-width: 180px;
  max-width: 100%;
  padding: 11px 13px;
  border: 1px solid #ead8df;
  border-radius: 12px;
  color: #5a3a46;
  background: #f8f1f4;
  font-size: 15px;
}
.fulfillment-item-chips b {
  color: #65072a;
  font-size: 16px;
}
.fulfillment-item-chips em {
  color: #4f3a42;
  font-size: 14px;
  font-style: normal;
  font-weight: 750;
  white-space: nowrap;
}
.fulfillment-item-chips small {
  grid-column: 1 / -1;
  color: #806a73;
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.fulfillment-state {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}
.fulfillment-state .admin-badge {
  align-self: flex-start;
}
.fulfillment-state .btn {
  min-height: 44px;
  padding-inline: 13px;
  text-align: center;
}
.fulfillment-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  margin: 22px 0;
  list-style: none;
}
.fulfillment-steps li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #927c85;
  font-size: 16px;
  line-height: 1.35;
}
.fulfillment-steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  z-index: -1;
  top: 21px;
  left: 42px;
  width: calc(100% - 33px);
  height: 2px;
  background: #eadce2;
}
.fulfillment-steps span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border: 2px solid #dfcbd4;
  border-radius: 50%;
  background: #fff;
  font-weight: 750;
}
.fulfillment-steps .done,
.fulfillment-steps .current {
  color: #600a2c;
}
.fulfillment-steps .done span {
  border-color: #28794f;
  color: #fff;
  background: #28794f;
}
.fulfillment-steps .current span {
  border-color: #6f0a31;
  color: #fff;
  background: #6f0a31;
  box-shadow: 0 0 0 5px #f5e7ed;
}
.fulfillment-work-panel {
  border-color: #d9c1cb;
}
.fulfillment-work-panel .admin-review-step {
  padding: 5px 9px;
  border-radius: 999px;
  color: #711034;
  background: #f5e7ed;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
}
.fulfillment-work-panel .admin-section-heading h2 {
  font-size: 25px;
}
.fulfillment-work-panel .admin-caption {
  font-size: 15px;
  line-height: 1.55;
}
.fulfillment-work-panel.danger {
  border-color: #edb5af;
  background: #fff9f8;
}
.admin-form-section {
  grid-column: 1 / -1;
  padding: 20px 0;
  border-top: 1px solid #ecdee4;
}
.admin-form-section:first-of-type {
  padding-top: 0;
  border-top: 0;
}
.admin-form-embedded {
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
}
.fulfillment-book-editor {
  display: grid;
  gap: 10px;
}
.fulfillment-book-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.55fr) minmax(260px, 1.5fr) 100px auto;
  gap: 12px;
  padding: 14px;
  border: 1px solid #eadde2;
  border-radius: 13px;
  background: #fcfafb;
}
.fulfillment-book-row > .btn {
  align-self: end;
  min-height: 46px;
}
.fulfillment-add-book {
  width: fit-content;
  margin-top: 12px;
}
.fulfillment-address-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.65fr) minmax(300px, 1.35fr) auto;
  gap: 22px;
  align-items: start;
  background: #f8fcfa;
  border-color: #d3e6dc;
}
.fulfillment-address-card > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fulfillment-address-card span,
.fulfillment-address-card small {
  color: #71616a;
  font-size: 13px;
}
.fulfillment-address-card strong {
  line-height: 1.6;
}
.fulfillment-confirm {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 13px;
  grid-column: 1 / -1;
  margin: 22px 0 8px;
  padding: 16px;
  border: 1px solid #d9c4cd;
  border-radius: 13px;
  background: #fcf8fa;
  cursor: pointer;
}
.fulfillment-confirm input {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  accent-color: #6f0a31;
}
.fulfillment-confirm span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.fulfillment-confirm small {
  color: #79636d;
  font-weight: 400;
}
.fulfillment-issue,
.fulfillment-edit-tracking {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #eadde2;
}
.fulfillment-issue > summary,
.fulfillment-edit-tracking > summary {
  color: #8c3230;
  font-weight: 700;
  cursor: pointer;
}
.fulfillment-complete {
  display: flex;
  align-items: center;
  gap: 20px;
  border-color: #bee0cd;
  background: #f6fcf8;
}
.fulfillment-complete-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  flex: none;
  border-radius: 50%;
  color: #fff;
  background: #28794f;
  font-size: 31px;
  font-weight: 800;
}
.fulfillment-complete h2 {
  margin: 4px 0;
}
.fulfillment-tracking {
  display: inline-block;
  margin-top: 6px;
  color: #5f0a2b;
  font-size: 21px;
  letter-spacing: 0.04em;
}
.fulfillment-outgoing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.fulfillment-outgoing-grid > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  padding: 14px;
  border-radius: 12px;
  background: #f8f3f5;
}
.fulfillment-outgoing-grid strong {
  color: #65072a;
}
.fulfillment-outgoing-grid small {
  grid-column: 1 / -1;
  overflow: hidden;
  color: #79656e;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fulfillment-batch-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-color: #bcdcca;
  background: #f4fbf7;
}
.fulfillment-batch-intro h2 {
  margin: 0 0 7px;
  padding: 0;
  border: 0;
  font-size: 30px;
}
.fulfillment-batch-intro p {
  margin: 0;
  color: #5e7066;
  font-size: 15px;
}
.fulfillment-batch-form {
  display: grid;
  gap: 20px;
}
.fulfillment-batch-defaults .admin-form {
  grid-template-columns: minmax(220px, 0.8fr) minmax(220px, 0.8fr) minmax(
      280px,
      1.4fr
    );
}
.fulfillment-batch-defaults .span2 {
  grid-column: auto;
}
.fulfillment-tracking-list {
  padding: 22px;
  border: 1px solid #dfd0d6;
  border-radius: 16px;
  background: #fff;
}
.fulfillment-tracking-list > .admin-section-heading:first-child {
  margin-top: 0;
}
.fulfillment-parcel-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  margin: 12px 0;
}
.fulfillment-parcel-filter > label:first-child {
  flex: 1 1 240px;
}
.fulfillment-parcel-filter > .admin-checkbox,
.fulfillment-parcel-choice {
  display: flex;
  flex-direction: row;
  align-items: center;
  min-height: 42px;
}
.fulfillment-parcel-choice {
  cursor: pointer;
  justify-content: center;
}
.fulfillment-parcel-choice input,
.fulfillment-parcel-filter input[type='checkbox'] {
  width: 18px;
  height: 18px;
  accent-color: #83334f;
}
.fulfillment-stock-result {
  margin-top: 16px;
}
.fulfillment-stock-result a {
  color: #803b54;
  font-weight: 700;
}
.fulfillment-tracking-row {
  display: grid;
  grid-template-columns: 40px minmax(180px, 0.7fr) minmax(260px, 1.3fr) minmax(
      240px,
      0.85fr
    );
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid #eadfe3;
}
.fulfillment-tracking-recipient {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}
.fulfillment-tracking-recipient strong {
  font-size: 17px;
}
.fulfillment-tracking-recipient small {
  color: #77636c;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.fulfillment-tracking-input {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #4c313c;
  font-size: 15px;
  font-weight: 800;
}
.fulfillment-tracking-input input {
  min-height: 50px;
  padding: 12px 14px;
  border: 2px solid #d6bcc6;
  border-radius: 11px;
  font: inherit;
  font-weight: 500;
}
.fulfillment-tracking-input input:focus {
  border-color: #751337;
  outline: 3px solid #f1dce5;
}
.fulfillment-batch-submit {
  position: sticky;
  z-index: 4;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  border: 1px solid #caa4b3;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 14px 36px #4f092226;
}
.fulfillment-batch-submit span {
  color: #6f5963;
  font-size: 14px;
}
.admin-heading-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.tutorial-safety {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding: 15px 18px;
  border: 1px solid #b9dcca;
  border-radius: 15px;
  color: #245e42;
  background: #f2fbf6;
}
.tutorial-safety > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  color: #fff;
  background: #28794f;
}
.tutorial-safety .admin-icon {
  width: 23px;
  height: 23px;
}
.tutorial-safety p {
  margin: 4px 0 0;
  color: #547061;
  font-size: 14px;
}
.tutorial-layout {
  display: grid;
  grid-template-columns: minmax(235px, 0.28fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.tutorial-guide {
  position: sticky;
  top: 18px;
  padding: 22px;
  border: 1px solid #dfccd5;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 36px #4c0b2310;
}
.tutorial-guide-count {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 999px;
  color: #6f0a31;
  background: #f6e9ee;
  font-size: 12px;
  font-weight: 800;
}
.tutorial-guide h2 {
  margin: 14px 0 8px;
  color: #3d2730;
  font-size: 21px;
}
.tutorial-guide > p {
  color: #715d66;
  line-height: 1.65;
}
.tutorial-guide ol {
  display: grid;
  gap: 3px;
  margin: 20px 0 0;
  padding: 17px 0 0;
  border-top: 1px solid #eee2e7;
  list-style: none;
}
.tutorial-guide li a {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 9px;
  align-items: center;
  padding: 8px;
  border-radius: 10px;
  color: #806d75;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.4;
}
.tutorial-guide li span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid #dfcdd5;
  border-radius: 50%;
  background: #fff;
  font-weight: 750;
}
.tutorial-guide li.current a {
  color: #5f0a2b;
  background: #f9eef2;
  font-weight: 750;
}
.tutorial-guide li.current span {
  border-color: #6f0a31;
  color: #fff;
  background: #6f0a31;
}
.tutorial-guide li.done span {
  border-color: #28794f;
  color: #fff;
  background: #28794f;
}
.tutorial-stage {
  min-width: 0;
}
.tutorial-screen {
  min-height: 530px;
  padding: 24px;
  border: 1px solid #dfd1d7;
  border-radius: 20px;
  background: #faf7f8;
  box-shadow: 0 16px 42px #4c0b230c;
}
.tutorial-screen-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: -24px -24px 24px;
  padding: 17px 22px;
  border-bottom: 1px solid #e5d9de;
  border-radius: 20px 20px 0 0;
  color: #51323e;
  background: #fff;
}
.tutorial-screen-bar span {
  color: #7c6871;
  font-size: 13px;
}
.tutorial-mini-summary {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  padding: 14px 17px;
  border: 1px solid #e6d7dd;
  border-radius: 13px;
  background: #fff;
}
.tutorial-focus {
  position: relative;
  outline: 3px solid #c0547b;
  outline-offset: 4px;
  box-shadow: 0 0 0 9px #c0547b17;
}
.tutorial-callout {
  position: absolute;
  z-index: 3;
  right: 16px;
  bottom: -58px;
  min-width: 210px;
  padding: 11px 14px;
  border-radius: 12px;
  color: #fff;
  background: #5f0a2b;
  box-shadow: 0 10px 26px #4c0b2330;
  font-size: 14px;
  font-weight: 750;
}
.tutorial-callout::before {
  content: '';
  position: absolute;
  top: -8px;
  right: 24px;
  width: 16px;
  height: 16px;
  background: #5f0a2b;
  transform: rotate(45deg);
}
.tutorial-callout small {
  display: block;
  margin-top: 3px;
  color: #f4dfe7;
  font-weight: 400;
}
.tutorial-screen .admin-review-queue-item {
  margin-bottom: 72px;
  background: #fff;
}
.tutorial-screen .admin-review-grid {
  overflow: visible;
  margin-bottom: 72px;
  background: #fff;
}
.tutorial-slip {
  padding: 24px;
  border: 1px solid #d5dde2;
  border-radius: 12px;
  background: linear-gradient(150deg, #f8fbfc, #edf3f5);
}
.tutorial-slip > span,
.tutorial-slip > strong {
  display: block;
}
.tutorial-slip > span {
  color: #6e7c83;
  font-size: 13px;
}
.tutorial-slip > strong {
  margin: 8px 0 18px;
  color: #29704e;
  font-size: 22px;
}
.tutorial-slip dl,
.tutorial-slip dl div {
  display: grid;
  gap: 8px;
}
.tutorial-slip dl div {
  grid-template-columns: 90px 1fr;
}
.tutorial-slip dt {
  color: #6e7c83;
}
.tutorial-slip dd {
  margin: 0;
  font-weight: 700;
}
.tutorial-decision-layout,
.tutorial-complete-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  gap: 20px;
}
.tutorial-decision-layout .admin-order-facts {
  grid-template-columns: 1fr 1fr;
}
.tutorial-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 700;
}
.tutorial-field input,
.tutorial-field textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #d9cbd1;
  border-radius: 10px;
  color: #362a30;
  background: #fff;
  font: inherit;
  font-weight: 400;
}
.tutorial-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.tutorial-screen .fulfillment-item-chips {
  margin: 15px 0 22px;
}
.tutorial-steps-mini > div {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #927c85;
  font-size: 13px;
}
.tutorial-steps-mini > div > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border: 2px solid #dfcbd4;
  border-radius: 50%;
  background: #fff;
  font-weight: 750;
}
.tutorial-steps-mini > .done,
.tutorial-steps-mini > .current {
  color: #600a2c;
}
.tutorial-steps-mini > .done > span {
  border-color: #28794f;
  color: #fff;
  background: #28794f;
}
.tutorial-steps-mini > .current > span {
  border-color: #6f0a31;
  color: #fff;
  background: #6f0a31;
}
.tutorial-finish {
  padding: 28px;
  border: 1px solid #b9ddca;
  border-radius: 18px;
  background: #f4fbf7;
  text-align: center;
}
.tutorial-finish .fulfillment-complete-icon {
  margin: 0 auto 14px;
}
.tutorial-finish p {
  color: #607168;
  line-height: 1.6;
}
.tutorial-event-log {
  display: grid;
  gap: 8px;
  margin: 20px 0;
  text-align: left;
}
.tutorial-event-log span {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 10px;
  border-radius: 9px;
  background: #fff;
  font-size: 13px;
}
.tutorial-event-log .admin-icon {
  width: 19px;
  height: 19px;
  flex: none;
  color: #28794f;
}
.tutorial-controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}
.tutorial-controls > :last-child {
  justify-self: end;
}
.tutorial-controls > span {
  color: #7d6972;
  font-size: 13px;
}
@media (min-width: 1400px) {
  .admin-mainnav {
    max-width: 1440px;
  }
}
@media (max-width: 1100px) {
  .fulfillment-tracking-row {
    grid-template-columns: 40px minmax(180px, 0.7fr) minmax(280px, 1.3fr);
  }
  .fulfillment-tracking-input {
    grid-column: 2 / -1;
  }
  .tutorial-layout {
    grid-template-columns: 1fr;
  }
  .tutorial-guide {
    position: static;
  }
  .tutorial-guide ol {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .fulfillment-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fulfillment-queue-card {
    grid-template-columns: minmax(130px, 0.6fr) minmax(190px, 1fr) minmax(
        220px,
        1.3fr
      );
  }
  .fulfillment-state {
    grid-column: 2 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
  }
  .admin-course-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .admin-mainnav a {
    flex: none;
  }
  .admin-home-columns {
    grid-template-columns: 1fr;
  }
  .admin-order-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-review-queue-item {
    grid-template-columns: 34px minmax(150px, 0.8fr) minmax(190px, 1.2fr) auto;
  }
  .admin-review-queue-item .btn {
    grid-column: 2/-1;
    justify-self: end;
  }
}
@media (max-width: 800px) {
  .fulfillment-batch-defaults .admin-form {
    grid-template-columns: 1fr;
  }
  .fulfillment-tracking-row {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px 12px;
  }
  .fulfillment-tracking-books,
  .fulfillment-tracking-input,
  .fulfillment-tracking-row > a {
    grid-column: 2;
  }
  .fulfillment-batch-submit,
  .fulfillment-batch-intro {
    align-items: stretch;
    flex-direction: column;
  }
  .tutorial-decision-layout,
  .tutorial-complete-grid,
  .tutorial-form-grid {
    grid-template-columns: 1fr;
  }
  .tutorial-guide ol {
    grid-template-columns: 1fr 1fr;
  }
  .tutorial-screen {
    padding: 18px;
  }
  .tutorial-screen-bar {
    margin: -18px -18px 20px;
  }
  .fulfillment-summary,
  .fulfillment-outgoing-grid {
    grid-template-columns: 1fr 1fr;
  }
  .fulfillment-search,
  .fulfillment-book-row,
  .fulfillment-address-card {
    grid-template-columns: 1fr;
  }
  .fulfillment-queue-card {
    grid-template-columns: 1fr;
  }
  .fulfillment-state {
    grid-column: auto;
    align-items: stretch;
    flex-direction: column;
  }
  .fulfillment-steps {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .fulfillment-steps li::after {
    display: none;
  }
  .admin-order-overview {
    grid-template-columns: 1fr;
  }
  .admin-order-status-filters {
    grid-template-columns: 1fr;
  }
  .admin-order-finance-summary {
    min-width: 0;
  }
  .admin-account-search {
    grid-template-columns: 1fr;
  }
  .admin-account-search .btn {
    width: 100%;
  }
  .admin-course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-task-grid {
    grid-template-columns: 1fr;
  }
  .admin-order-filter {
    grid-template-columns: 1fr 1fr;
  }
  .admin-sales-metrics {
    grid-template-columns: 1fr;
  }
  .admin-sales-metrics .admin-metric {
    padding: 20px;
  }
  .admin-sales-metrics .admin-metric strong {
    font-size: 27px;
  }
  .admin-review-grid {
    grid-template-columns: 1fr;
  }
  .admin-decision-column {
    border-top: 1px solid #eadce1;
    border-left: 0;
  }
  .admin-review-queue-item {
    grid-template-columns: 34px minmax(0, 1fr) auto;
  }
  .admin-review-queue-item .admin-queue-order {
    grid-column: 2/-1;
  }
  .admin-review-queue-item .admin-queue-total {
    grid-column: 2;
  }
  .admin-review-queue-item .btn {
    grid-column: 3;
  }
  .admin-shipping-saved {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .admin-shipping-saved > div {
    padding-top: 0;
  }
  .admin-shipping-saved > div:first-of-type {
    padding-top: 28px;
  }
  .admin-top {
    position: relative;
  }
}
@media (max-width: 520px) {
  .admin-heading-actions {
    width: 100%;
  }
  .admin-heading-actions .btn {
    flex: 1;
  }
  .tutorial-guide ol {
    grid-template-columns: 1fr;
  }
  .tutorial-callout {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 16px;
  }
  .tutorial-callout::before {
    display: none;
  }
  .tutorial-screen .admin-review-queue-item,
  .tutorial-screen .admin-review-grid {
    margin-bottom: 18px;
  }
  .fulfillment-summary,
  .fulfillment-outgoing-grid {
    grid-template-columns: 1fr;
  }
  .admin-course-grid {
    grid-template-columns: 1fr;
  }
  .admin-course-heading {
    align-items: start;
    gap: 8px;
  }
  .admin-course-heading > img {
    width: 60px;
  }
  .admin-course-heading h1 {
    font-size: 19px;
  }
  .admin-order-filter {
    grid-template-columns: 1fr;
  }
  .admin-task-card {
    padding: 20px;
    gap: 14px;
  }
  .admin-order-facts {
    grid-template-columns: 1fr;
  }
  .admin-review-heading,
  .admin-review-queue .admin-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .admin-payment-route,
  .admin-selected-order-bar {
    align-items: flex-start;
    flex-direction: column;
  }
  .admin-selected-order-bar .btn,
  .admin-payment-route .btn {
    width: 100%;
    text-align: center;
  }
  .admin-proof-column,
  .admin-decision-column,
  .admin-review-heading {
    padding: 20px;
  }
  .admin-proof-image img {
    min-height: 210px;
  }
  .admin-review-summary > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .admin-review-queue-item {
    grid-template-columns: 30px minmax(0, 1fr);
  }
  .admin-review-queue-item .admin-queue-order,
  .admin-review-queue-item .admin-queue-total,
  .admin-review-queue-item .btn {
    grid-column: 2;
    justify-self: stretch;
  }
  .admin-review-queue-item .btn {
    text-align: center;
  }
  .admin-course-card {
    max-width: 460px;
  }
  .admin-category-nav {
    flex-wrap: nowrap;
    overflow: auto;
    padding-bottom: 8px;
  }
  .admin-category-nav a {
    white-space: nowrap;
    flex: none;
  }
}
@media print {
  @page {
    size: A5 portrait;
    margin: 10mm;
  }
  body.printing-shipping > :not(.admin-shipping-print-sheet) {
    display: none !important;
  }
  body.printing-shipping > .admin-shipping-print-sheet {
    display: block !important;
  }
  body.printing-shipping .admin-shipping-label {
    position: static;
    width: 100%;
    max-width: none;
    margin: 0;
    border: 1px solid #777;
    box-sizing: border-box;
    break-inside: avoid;
    background: white;
    color: black;
  }
  body.printing-shipping {
    background: white;
  }
}
.admin-top .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border: 1px solid #e6d6de;
  border-radius: 12px;
  font-size: 14px;
  text-decoration: none;
  color: #5c1631;
  background: #fff;
  white-space: nowrap;
}
.content-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.8rem 0 1.2rem;
}
.content-heading h2 {
  font-size: 1.6rem;
  margin: 0;
}
.content-heading p {
  margin: 0.4rem 0 0;
  color: #6c6370;
}
.content-workspace {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  align-items: start;
  gap: 1.5rem;
}
.content-chapter-rail {
  background: #fff;
  border: 1px solid #e7dde1;
  border-radius: 18px;
  padding: 1rem;
  position: sticky;
  top: 150px;
  max-height: calc(100vh - 180px);
  overflow: auto;
}
.content-chapter-rail h3 {
  margin: 0.25rem 0.5rem 1rem;
  font-size: 1rem;
}
.content-chapter-rail nav {
  display: grid;
  gap: 0.35rem;
}
.content-chapter-rail nav a {
  display: flex;
  align-items: start;
  gap: 0.7rem;
  padding: 0.8rem;
  border-radius: 10px;
  color: #4c4350;
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.6;
}
.content-chapter-rail nav a[aria-current] {
  background: #5b001c;
  color: #fff;
}
.content-chapter-rail nav a:hover:not([aria-current]) {
  background: #f7f1f4;
}
.content-chapter-rail nav small {
  display: block;
  font-size: 0.85rem;
  opacity: 0.8;
}
.content-chapter-number {
  display: grid;
  place-items: center;
  flex: 0 0 1.7rem;
  height: 1.7rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.8rem;
}
.content-chapter-rail > details {
  border-top: 1px solid #ede5e9;
  margin-top: 1rem;
  padding-top: 1rem;
}
.content-chapter-rail summary {
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
}
.content-chapter-rail .admin-form {
  display: block;
}
.content-chapter-rail .admin-form label {
  margin: 0.8rem 0;
  display: block;
}
.content-chapter-rail .admin-form .admin-checkbox {
  display: flex;
}
.content-chapter-rail .content-documents {
  padding: 0.75rem 0;
  background: transparent;
  border: 0;
}
.content-chapter-rail .content-document-row {
  flex-wrap: wrap;
}
.content-chapter-rail .admin-section-heading {
  flex-wrap: wrap;
}
.content-main {
  min-width: 0;
}
.content-chapter {
  background: #fff;
  border: 1px solid #e7dde1;
  border-radius: 20px;
  overflow: hidden;
}
.content-chapter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem;
  border-bottom: 1px solid #eee6e9;
}
.content-chapter-heading h2 {
  font-size: 1.3rem;
  line-height: 1.6;
  margin: 0.7rem 0 0.3rem;
}
.content-chapter-heading p {
  color: #6c6370;
  margin: 0.3rem 0;
}
.content-chapter-heading .btn {
  flex-shrink: 0;
}
.content-chapter-settings {
  padding: 1rem 1.5rem;
  background: #fcfafb;
  border-bottom: 1px solid #eee6e9;
}
.content-chapter-settings summary {
  color: #685d65;
  cursor: pointer;
  font-size: 0.9rem;
}
.content-chapter-settings .admin-form {
  margin: 1rem 0;
}
.content-documents {
  margin: 1rem 1.5rem;
  padding: 1rem 1.1rem;
  background: #f5f8fc;
  border: 1px solid #e0e7f0;
  border-radius: 12px;
}
.content-documents h3 {
  font-size: 1rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.content-documents .admin-section-heading > span {
  font-size: 0.85rem;
  color: #6c6370;
}
.content-document-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 0.75rem;
}
.content-document-row > a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  color: #334a68;
  text-decoration: none;
}
.content-document-row small {
  display: block;
  color: #6c6370;
  font-size: 0.85rem;
}
.content-document-row strong {
  overflow-wrap: anywhere;
}
.content-add-document {
  margin-top: 0.9rem;
}
.content-add-document summary {
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: #5b001c;
}
.content-add-document .admin-form {
  margin-top: 1rem;
}
.content-upload {
  padding: 1rem;
  border: 1px dashed #b7adbb;
  border-radius: 10px;
  background: #fff;
}
.content-upload small {
  font-size: 0.85rem;
  color: #6c6370;
}
.content-or {
  font-size: 0.85rem;
  color: #6c6370;
}
.content-documents .admin-form > label:first-of-type {
  grid-column: 1/-1;
}
.content-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
}
.content-list-heading h3 {
  font-size: 1.05rem;
  margin: 0;
}
.content-list-heading label {
  font-size: 0.85rem;
  color: #6c6370;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.content-list-heading input {
  max-width: 210px;
  padding: 0.5rem 0.75rem;
  font: inherit;
  border: 1px solid #ded5da;
  border-radius: 9px;
}
.content-lesson-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.content-lesson-list > li {
  border-top: 1px solid #eee6e9;
}
.content-lesson-list > li[hidden] {
  display: none;
}
.content-lesson-list > li.is-selected {
  background: #fff8fa;
  border-left: 3px solid #680022;
}
.content-lesson-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.5rem;
}
.content-lesson-icon {
  display: grid;
  place-items: center;
  background: #f7edf1;
  color: #700326;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
}
.content-lesson-title {
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: #292330;
}
.content-lesson-title strong {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
}
.content-lesson-title small {
  display: block;
  font-size: 0.85rem;
  color: #7c6d77;
  margin-top: 0.3rem;
}
.content-doc-count {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: #6c6370;
  font-size: 0.85rem;
}
.content-reorder {
  display: flex;
  gap: 0.25rem;
}
.content-text-button {
  font: inherit;
  font-size: 0.85rem;
  background: #fff;
  border: 1px solid #e3dae0;
  border-radius: 7px;
  padding: 0.3rem 0.55rem;
  cursor: pointer;
  color: #66545f;
}
.content-edit {
  font-size: 0.9rem;
  font-weight: 600;
  color: #650021;
  text-decoration: none;
}
.content-lesson-editor {
  padding: 1.2rem 1.5rem;
  scroll-margin-top: 165px;
}
.content-lesson-editor h3 {
  font-size: 1.1rem;
  margin: 0;
}
.content-lesson-editor .admin-form {
  margin-top: 1rem;
}
.content-lesson-editor .admin-form > label:first-of-type {
  grid-column: 1/-1;
}
.content-lesson-editor .admin-form-actions {
  position: static;
}
.content-add-document form {
  background: transparent;
}
.content-workspace input:focus-visible,
.content-workspace a:focus-visible,
.content-workspace summary:focus-visible,
.content-workspace button:focus-visible {
  outline: 3px solid #ac5575;
  outline-offset: 3px;
}
@media (max-width: 1050px) {
  .content-workspace {
    grid-template-columns: 225px minmax(0, 1fr);
    gap: 1rem;
  }
  .content-lesson-row {
    gap: 0.65rem;
    padding: 1rem;
  }
  .content-reorder {
    display: none;
  }
  .content-chapter-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 720px) {
  .content-workspace {
    display: block;
  }
  .content-chapter-rail {
    position: static;
    max-height: none;
    margin-bottom: 1rem;
  }
  .content-chapter-rail nav {
    display: flex;
    overflow: auto;
    padding-bottom: 0.5rem;
  }
  .content-chapter-rail nav a {
    min-width: 210px;
    max-width: 230px;
  }
  .content-chapter-rail nav > a > span:last-child {
    min-width: 0;
  }
  .content-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .content-chapter-heading {
    padding: 1rem;
  }
  .content-documents {
    margin: 1rem;
  }
  .content-list-heading {
    padding: 1rem;
    align-items: flex-start;
    flex-direction: column;
  }
  .content-list-heading label {
    width: 100%;
  }
  .content-list-heading input {
    flex: 1;
    max-width: none;
    min-width: 0;
  }
  .content-doc-count {
    display: none;
  }
  .content-lesson-icon {
    display: none;
  }
  .content-lesson-row {
    align-items: flex-start;
  }
  .content-lesson-editor {
    padding: 1rem;
    scroll-margin-top: 100px;
  }
  .content-workspace .admin-form {
    grid-template-columns: 1fr;
  }
  .content-workspace .span2 {
    grid-column: auto;
  }
  .content-chapter-rail .content-document-row {
    flex-wrap: nowrap;
  }
}
.content-drag-help {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  color: #6c6370;
  margin: 0.5rem 0 1.25rem;
}
.content-drag-help [role='status'] {
  color: #650021;
  font-weight: 600;
}
.content-module-row {
  display: flex;
  align-items: center;
  border-radius: 10px;
  gap: 0.1rem;
}
.content-module-row.is-child {
  margin-left: 1.3rem;
  border-left: 2px solid #e8d9e1;
  border-radius: 0;
}
.content-chapter-rail .content-module-row > a {
  flex: 1;
  min-width: 0;
  display: block;
  padding: 0.75rem 0.65rem;
}
.content-module-row strong {
  font-size: 0.9rem;
  font-weight: 500;
}
.content-module-row small {
  font-size: 0.8rem !important;
}
.content-module-group {
  margin-bottom: 0.55rem;
}
.content-drag-handle {
  font: inherit;
  font-size: 1.4rem;
  line-height: 1;
  cursor: grab;
  touch-action: none;
  color: #9b8792;
  background: transparent;
  border: 0;
  padding: 0.45rem 0.25rem;
  border-radius: 6px;
  flex-shrink: 0;
}
.content-drag-handle:hover,
.content-drag-handle:focus-visible {
  color: #650021;
  background: #f5e6ed;
}
.content-drag-handle:active {
  cursor: grabbing;
}
.content-module-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #eee6e9;
  flex-wrap: wrap;
}
.content-module-toolbar .btn {
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
}
.content-module-toolbar .content-reorder {
  align-items: center;
}
.content-module-toolbar .content-reorder > span {
  font-size: 0.85rem;
  color: #6c6370;
}
.content-drop-last {
  display: none;
  padding: 1rem;
  text-align: center;
  color: #795466;
  background: #fff8fb;
  border: 1px dashed #c89aaf !important;
  margin: 0.75rem;
  border-radius: 8px;
  list-style: none;
}
.content-drop-nest {
  display: none;
  padding: 0.8rem;
  text-align: center;
  font-size: 0.8rem;
  color: #795466;
  border: 1px dashed #c89aaf;
  border-radius: 8px;
  margin: 0.4rem;
}
.content-workspace[data-dragging='lesson'] .content-drop-last {
  display: block;
}
.content-workspace[data-dragging='module'] .content-drop-nest {
  display: block;
}
.content-workspace .is-drop-target {
  outline: 3px solid #a83461;
  outline-offset: -3px;
  background: #fbe5ee !important;
}
.content-dialog {
  border: 1px solid #e5d8df;
  border-radius: 20px;
  padding: 0;
  color: #30232d;
  background: #fff;
  max-width: 780px;
  width: calc(100% - 2rem);
  max-height: 88vh;
  box-shadow: 0 24px 100px #2e0b2244;
  position: fixed;
  inset: 0;
  margin: auto;
  z-index: 50;
}
.content-dialog::backdrop {
  background: #1c0c18a6;
  backdrop-filter: blur(3px);
}
.content-dialog > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid #eadfe4;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
.content-dialog h2 {
  font-size: 1.25rem;
  margin: 0;
}
.content-dialog > header > a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #e4d9df;
  border-radius: 50%;
  text-decoration: none;
  color: #624653;
}
.content-dialog-body {
  padding: 1.5rem;
}
.content-dialog-body > .admin-form > label:first-of-type {
  grid-column: 1/-1;
}
.content-dialog .content-documents {
  margin: 1.2rem 0 0;
}
.content-dialog .admin-form-actions {
  position: static;
}
.content-dialog .content-add-document > .admin-form {
  background: transparent;
}
.content-dialog .span2 {
  min-width: 0;
}
@media (max-width: 1050px) {
  .content-reorder {
    display: flex;
  }
  .content-lesson-row {
    flex-wrap: wrap;
  }
  .content-lesson-title {
    min-width: 45%;
  }
  .content-dialog {
    max-width: 720px;
  }
}
@media (max-width: 720px) {
  .content-chapter-rail nav {
    display: block;
    max-height: 240px;
    overflow: auto;
  }
  .content-chapter-rail nav a {
    min-width: 0;
    max-width: none;
  }
  .content-module-toolbar {
    padding: 1rem;
  }
  .content-dialog {
    width: calc(100% - 1rem);
    max-height: 94dvh;
    border-radius: 14px;
  }
  .content-dialog > header,
  .content-dialog-body {
    padding: 1rem;
  }
  .content-dialog .admin-form {
    grid-template-columns: 1fr;
  }
  .content-dialog .span2 {
    grid-column: auto;
  }
  .content-drag-help {
    display: block;
  }
  .content-lesson-row {
    gap: 0.5rem;
  }
  .content-reorder {
    display: flex;
  }
  .content-lesson-title {
    min-width: 60%;
  }
}
.content-feedback {
  padding: 12px 16px;
  margin: 0 0 16px;
  border: 1px solid #c9e6d6;
  border-radius: 12px;
  background: #f0faf4;
  color: #23563c;
}
.content-feedback.is-error {
  background: #fff2f1;
  color: #912b25;
  border-color: #eec5c0;
}
.content-feedback[hidden],
.content-dialog label[hidden] {
  display: none;
}
.content-video-upload {
  margin: 24px 0;
  padding: 22px;
  border: 1px solid #eadfe3;
  border-radius: 16px;
  background: #fcfafb;
}
.content-mux-upload {
  margin-top: 0;
  background: #fff;
}
.content-mux-upload form {
  display: grid;
  gap: 12px;
}
.content-mux-upload form > [hidden] {
  display: none;
}
.content-mux-upload [data-mux-status]:empty {
  position: absolute;
}
.content-mux-upload .admin-caption {
  margin: 0;
}
.content-mux-current {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 16px;
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid #cfe4d7;
  border-radius: 14px;
  background: #f4fbf6;
}
.content-mux-current > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}
.content-mux-current > div > span,
.content-mux-current small {
  color: #5e7165;
  font-size: 13px;
}
.content-mux-current input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.content-mux-current strong {
  overflow-wrap: anywhere;
}
.content-mux-connection {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid #efc5be;
  border-radius: 12px;
  background: #fff5f2;
  color: #872e28;
}
.content-mux-file {
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px dashed #bc91a4;
  border-radius: 14px;
  background: #fff9fb;
}
.content-mux-file > span {
  color: #76616b;
  font-size: 14px;
}
.content-mux-file-details {
  padding: 12px 14px;
  border-radius: 10px;
  background: #f5f1f3;
  color: #4b3741;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.content-mux-file-details.is-error {
  background: #fff0ee;
  color: #922e27;
}
.content-mux-confirm input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 2px 0 0;
}
.content-mux-estimate {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
  border: 1px solid #cfe4d7;
  border-radius: 14px;
  background: #f4fbf6;
}
.content-mux-estimate > div {
  display: grid;
  gap: 4px;
}
.content-mux-estimate span,
.content-mux-estimate small {
  color: #5e7165;
  font-size: 13px;
}
.content-mux-estimate strong {
  color: #1f5434;
  font-size: 18px;
}
.content-mux-estimate small {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  line-height: 1.55;
}
.content-mux-confirm {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
}
.content-mux-submit {
  width: fit-content;
  min-width: 220px;
}
.content-mux-upload progress {
  width: 100%;
  height: 16px;
  accent-color: #690021;
}
.content-lesson-settings,
.content-video-source-options {
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid #e5d9df;
  border-radius: 12px;
  background: #fcfafb;
}
.content-lesson-settings > summary,
.content-video-source-options > summary {
  cursor: pointer;
  color: #5f3548;
  font-weight: 700;
}
.content-lesson-settings > .admin-form {
  margin-top: 18px;
}
.content-video-source-options > label,
.content-video-source-options > p {
  display: grid;
  margin: 14px 0 0;
}
.content-video-upload p {
  font-size: 14px;
}
.content-video-upload input[type='file'] {
  width: 100%;
  margin: 10px 0 16px;
  font-size: 16px;
}
.content-dialog input,
.content-dialog select {
  font-size: 16px;
}
@media (max-width: 620px) {
  .content-mux-estimate {
    grid-template-columns: 1fr;
  }
  .content-mux-estimate small {
    grid-column: auto;
  }
  .content-mux-submit {
    width: 100%;
  }
}

/* Task hierarchy: compact framing, clear sections, calm readable records. */
.admin-platform [hidden] {
  display: none !important;
}
.admin-platform .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.admin-shell {
  padding-top: 18px;
}
.admin-heading {
  margin: 12px 0 22px;
}
.admin-heading h1 {
  font-size: 28px;
}
.admin-panel {
  padding: 22px;
  border-radius: 16px;
}
.admin-panel > h2 {
  padding-bottom: 14px;
  border-bottom: 1px solid #ede4e8;
}
.admin-panel > .admin-section-heading {
  padding-bottom: 14px;
  border-bottom: 1px solid #ede4e8;
}
.admin-section-heading {
  gap: 16px;
  align-items: center;
}
.admin-section-heading h2,
.admin-section-heading h3 {
  margin: 0;
}
.admin-section-heading > div {
  min-width: 0;
}
.admin-section-heading .btn {
  flex-shrink: 0;
}
.admin-row {
  padding: 16px;
  gap: 16px;
}
.admin-row > div {
  min-width: 0;
}
.admin-row p,
.admin-table small {
  overflow-wrap: anywhere;
}
.admin-tabs {
  margin-bottom: 20px;
  padding-bottom: 8px;
}
.admin-tabs a[aria-current] {
  background: #f5e8ee;
  box-shadow: inset 0 -3px #630c2c;
}
.admin-filterbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 16px;
  padding: 16px;
  background: #f7f3f5;
  border: 1px solid #e9dfe4;
  border-radius: 12px;
  margin: 0 0 18px;
}
.admin-live-search {
  display: flex;
  flex: 1;
  min-width: 220px;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}
.admin-live-search input,
.admin-course-filter select {
  width: 100%;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  color: #251c22;
  border: 1px solid #cfbec6;
  border-radius: 9px;
  padding: 11px 12px;
  background: white;
}
.admin-live-search input:focus-visible,
.admin-course-filter select:focus-visible {
  outline: 2px solid #a12c55;
  outline-offset: 2px;
}
.admin-course-filter {
  display: flex;
  gap: 10px;
  max-width: 440px;
  min-width: 220px;
  margin: 0;
  flex: 1;
}
.admin-course-filter label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  flex: 1;
  font-size: 14px;
  font-weight: 600;
}
.admin-result-count {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  color: #694253;
  padding: 12px 0;
}
.admin-platform .admin-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e5dbe0;
  border-radius: 12px;
}
.admin-platform .admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 15px;
  line-height: 1.65;
  min-width: 660px;
  table-layout: fixed;
}
.admin-platform .admin-table th {
  background: #f3edf0;
  color: #5f4854;
  font-size: 14px;
  font-weight: 650;
  padding: 13px 16px;
  border-bottom: 1px solid #ded0d7;
}
.admin-platform .admin-table td {
  padding: 16px;
  border-bottom: 1px solid #ebe3e7;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.admin-platform .admin-table tbody tr:nth-child(even) {
  background: #fdfafb;
}
.admin-platform .admin-table tbody tr:hover {
  background: #faf2f5;
}
.admin-platform .admin-table tr:last-child td {
  border-bottom: 0;
}
.admin-platform .admin-table strong {
  display: block;
  font-weight: 600;
  color: #30232b;
}
.admin-platform .admin-table small {
  display: block;
  color: #78646f;
  font-size: 14px;
  margin-top: 4px;
}
.admin-platform .admin-table .btn {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 14px;
  margin-bottom: 4px;
}
.admin-platform .admin-session-table th:nth-child(1) {
  width: 25%;
}
.admin-platform .admin-session-table th:nth-child(2) {
  width: 34%;
}
.admin-platform .admin-session-table th:nth-child(3) {
  width: 24%;
}
.admin-table .admin-badge {
  margin: 7px 5px 0 0;
}
.admin-watch-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 16px;
}
.admin-watch-summary > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid #e7dce1;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
}
.admin-watch-summary > div:nth-child(2) {
  background: #fbf0f5;
  border-color: #d7b5c6;
}
.admin-watch-summary span {
  color: #68515c;
  font-size: 14px;
}
.admin-watch-summary strong {
  font-size: 19px;
  font-variant-numeric: tabular-nums;
}
.admin-watch-summary small {
  font-size: 14px;
  color: #7a6670;
}
.admin-report-section {
  margin: 20px 0;
  padding-top: 20px;
  border-top: 1px solid #e7dce1;
  scroll-margin-top: 180px;
}
.admin-report-section summary {
  font-size: 17px;
  font-weight: 650;
  cursor: pointer;
  padding: 8px 0;
}
.admin-report-section h3 {
  font-size: 19px;
}
.admin-report-section .admin-caption {
  margin: 8px 0 16px;
}
.admin-pagination {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
  margin-top: 14px;
  color: #78646f;
  font-size: 14px;
}
.admin-video-filter {
  padding: 14px 18px;
  background: #f3edf0;
  border-radius: 12px;
}
.admin-video-filter label {
  display: flex;
  flex: 1;
  gap: 12px;
  align-items: center;
  min-width: 0;
}
.admin-video-filter select {
  flex: 1;
  max-width: 660px;
}
.admin-inbox {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.admin-inbox-picker {
  grid-template-columns: minmax(0, 1fr);
  margin-top: 22px;
}
.admin-inbox .classroom-question-course {
  padding: 14px 12px;
  border: 1px solid #e8dce2;
  border-radius: 10px;
  margin: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-decoration: none;
  color: #5c1230;
}
.admin-inbox .classroom-question-course[aria-current] {
  background: #f6eaf0;
  border-left: 4px solid #650d2d;
}
.admin-inbox .classroom-question-course span {
  font-size: 14px;
  color: #725765;
}
.admin-inbox-main .classroom-thread {
  margin-top: 18px;
}
.admin-inbox-main .classroom-empty {
  padding: 20px 0;
}
.admin-inbox-main .classroom-message {
  background: #faf7f9;
  margin: 14px 0;
}
.admin-inbox-main .classroom-message.from-teacher {
  background: #edf5f1;
}
.admin-inbox-main .classroom-question-form {
  padding-top: 18px;
  border-top: 1px solid #e8dce2;
}
.admin-question-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.admin-question-overview > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 16px;
  align-items: center;
  padding: 20px 22px;
  border: 1px solid #e7d9df;
  border-radius: 18px;
  background: #fff;
}
.admin-question-overview span {
  color: #725e68;
  font-weight: 750;
}
.admin-question-overview strong {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: #5f0828;
  font-size: 30px;
  line-height: 1;
}
.admin-question-overview small {
  color: #8a7580;
  line-height: 1.45;
}
.admin-question-overview .urgent {
  border-color: #efc8c2;
  background: #fff5f2;
}
.admin-question-overview .urgent strong {
  color: #b52b20;
}
.admin-question-overview .answered {
  border-color: #d5e7dc;
  background: #f5fbf7;
}
.admin-question-overview .answered strong {
  color: #28704c;
}
.admin-question-filters {
  display: inline-flex;
  gap: 5px;
  margin-bottom: 16px;
  padding: 5px;
  border: 1px solid #e7d8df;
  border-radius: 14px;
  background: #f5edf1;
}
.admin-question-filters a {
  padding: 10px 14px;
  border-radius: 10px;
  color: #69535e;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.admin-question-filters a[aria-current] {
  color: #fff;
  background: #650828;
  box-shadow: 0 4px 12px #53061f20;
}
.admin-question-filters b {
  margin-left: 5px;
  font-size: 13px;
}
.admin-question-search {
  display: grid;
  grid-template-columns: minmax(260px, 680px) auto;
  align-items: end;
  gap: 18px;
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid #e8dce2;
  border-radius: 16px;
  background: #fff;
}
.admin-question-search label {
  display: grid;
  gap: 7px;
  color: #4e3843;
  font-size: 14px;
  font-weight: 750;
}
.admin-question-search input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d9cbd1;
  border-radius: 11px;
  color: #251c22;
  background: #fff;
  font: inherit;
}
.admin-question-queue {
  display: grid;
  gap: 12px;
}
.admin-question-card {
  display: grid;
  grid-template-columns: minmax(120px, 0.32fr) minmax(245px, 0.72fr) minmax(
      340px,
      1.2fr
    ) auto;
  gap: 20px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid #e7d9df;
  border-radius: 17px;
  background: #fff;
}
.admin-question-card.urgent {
  border-color: #e8b9b2;
  border-left: 5px solid #bd3429;
  background: #fffbfa;
}
.admin-question-status {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.admin-question-status span {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  color: #745561;
  background: #f5ebef;
  font-size: 12px;
  font-weight: 800;
}
.admin-question-status span.urgent {
  color: #a3261f;
  background: #fde6e1;
}
.admin-question-status span.answered {
  color: #286446;
  background: #e8f4ed;
}
.admin-question-status strong {
  color: #5d4652;
  font-size: 14px;
  line-height: 1.4;
}
.admin-question-context {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  min-width: 0;
}
.admin-question-context > div,
.admin-question-copy {
  min-width: 0;
}
.admin-question-context strong,
.admin-question-context small {
  display: block;
}
.admin-question-context strong {
  line-height: 1.5;
}
.admin-question-context small {
  margin-top: 5px;
  color: #806b75;
  line-height: 1.45;
}
.admin-question-copy h2 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.45;
}
.admin-question-copy p {
  margin: 0 0 7px;
  color: #614e58;
  line-height: 1.55;
}
.admin-question-copy small {
  color: #89747e;
  line-height: 1.45;
}
.admin-question-card > .btn {
  white-space: nowrap;
}
.admin-question-course-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid #e5d6dd;
  border-radius: 13px;
  background: #faf4f7;
}
.admin-question-course-context span,
.admin-question-course-context strong {
  display: block;
}
.admin-question-course-context span {
  margin-bottom: 4px;
  color: #8a7180;
  font-size: 12px;
  font-weight: 750;
}
.admin-question-course-context a {
  color: #650828;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}
.admin-access-dialog {
  width: min(760px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  overflow: auto;
  padding: 26px;
  border: 1px solid #dfd0d7;
  border-radius: 18px;
  color: #251c22;
  box-shadow: 0 25px 100px #24101c40;
}
.admin-access-dialog::backdrop {
  background: #21131ecc;
  backdrop-filter: blur(3px);
}
.admin-dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid #e8dce2;
}
.admin-dialog-heading h2,
.admin-dialog-heading p {
  margin: 0 0 5px;
}
.admin-access-dialog .admin-form {
  gap: 18px;
}
.admin-access-dialog .admin-form > p {
  margin: 0;
}
.admin-access-dialog .admin-form label:has([name='reason']) {
  grid-column: 1/-1;
}
@media (max-width: 900px) {
  .admin-shipping-next,
  .fulfillment-confirm-submitted {
    align-items: stretch;
    flex-direction: column;
  }
  .fulfillment-submitted-preview {
    grid-template-columns: 1fr;
  }
  .admin-inbox {
    grid-template-columns: minmax(0, 1fr);
  }
  .admin-inbox aside {
    margin-bottom: 0;
  }
  .admin-inbox aside .classroom-question-course {
    display: inline-flex;
    margin-right: 8px;
  }
  .admin-watch-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-question-card {
    grid-template-columns: minmax(120px, 0.32fr) minmax(220px, 0.68fr) minmax(
        0,
        1fr
      );
  }
  .admin-question-card > .btn {
    grid-column: 3;
    justify-self: start;
  }
}
@media (max-width: 600px) {
  .admin-panel {
    padding: 16px;
  }
  .admin-heading h1 {
    font-size: 25px;
  }
  .admin-filterbar {
    padding: 12px;
    gap: 12px;
  }
  .admin-live-search,
  .admin-course-filter {
    min-width: 0;
    flex-basis: 100%;
    max-width: none;
  }
  .admin-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .admin-access-dialog {
    padding: 18px;
  }
  .admin-video-filter label {
    align-items: stretch;
    flex-direction: column;
  }
  .admin-question-overview {
    grid-template-columns: minmax(0, 1fr);
  }
  .admin-question-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }
  .admin-question-filters a {
    padding-inline: 8px;
    text-align: center;
  }
  .admin-question-search,
  .admin-question-card {
    grid-template-columns: minmax(0, 1fr);
  }
  .admin-question-card {
    gap: 14px;
  }
  .admin-question-card > .btn {
    grid-column: 1;
    justify-self: stretch;
    text-align: center;
  }
  .admin-question-course-context {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Learning insight dashboard */
.admin-insight-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
  padding: 12px 15px;
  border: 1px solid #e8d7e0;
  border-radius: 12px;
  color: #62102f;
  background: #faf1f5;
}
.admin-insight-hero h2 {
  margin: 1px 0 3px;
  font-size: clamp(18px, 3vw, 23px);
}
.admin-insight-hero p {
  margin: 0;
  color: #735461;
  font-size: 13px;
}
.admin-pulse {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
}
.admin-pulse i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #298052;
}
.admin-insight-filter {
  display: grid;
  grid-template-columns: minmax(280px, 1.5fr) repeat(
      2,
      minmax(150px, 0.55fr)
    ) auto;
  align-items: end;
  gap: 8px 10px;
  padding: 10px 14px;
}
.admin-insight-filter label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
  color: #6b5661;
  font-size: 13px;
  font-weight: 700;
}
.admin-insight-filter input,
.admin-insight-filter select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #dacbd2;
  border-radius: 10px;
  padding: 9px 11px;
  background: white;
  font: inherit;
}
.admin-insight-filter > .btn {
  min-height: 44px;
}
.admin-insight-quick {
  display: flex;
  grid-column: 1/-1;
  flex-wrap: wrap;
  gap: 8px;
}
.admin-insight-quick a {
  padding: 6px 11px;
  border-radius: 999px;
  background: #f4edf0;
  color: #6c1535;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.admin-insight-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin: 12px 0;
}
.admin-insight-kpis article {
  position: relative;
  overflow: hidden;
  padding: 12px 14px;
  border: 1px solid #e5d7dd;
  border-radius: 11px;
  background: white;
}
.admin-insight-kpis article.primary {
  color: white;
  border-color: #701034;
  background: linear-gradient(145deg, #5b0928, #8e2550);
}
.admin-insight-kpis article.primary::after {
  content: '';
  position: absolute;
  width: 110px;
  height: 110px;
  right: -38px;
  bottom: -52px;
  border-radius: 50%;
  background: #ffffff14;
}
.admin-insight-kpis span,
.admin-insight-kpis small,
.admin-insight-kpis strong {
  display: block;
}
.admin-insight-kpis span {
  color: #735e69;
  font-size: 14px;
}
.admin-insight-kpis .primary span,
.admin-insight-kpis .primary small {
  color: #f2dbe5;
}
.admin-insight-kpis strong {
  margin: 6px 0 4px;
  color: #62102f;
  font-size: clamp(18px, 3vw, 25px);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.admin-insight-kpis .primary strong {
  color: white;
}
.admin-insight-kpis small {
  color: #87737c;
  font-size: 13px;
}
.admin-insight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(245px, 1fr);
  gap: 12px;
}
.admin-insight-grid.geography {
  grid-template-columns: minmax(0, 1.75fr) minmax(245px, 1fr);
}
.admin-insight-trend,
.admin-course-ranking,
.admin-map-panel,
.admin-top-viewers {
  min-width: 0;
}
.admin-peak {
  min-width: 120px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f7eff3;
  text-align: right;
}
.admin-peak span,
.admin-peak small,
.admin-peak strong {
  display: block;
}
.admin-peak span,
.admin-peak small {
  color: #7b6671;
  font-size: 12px;
}
.admin-peak strong {
  margin: 4px 0;
  color: #6b0b2e;
  font-size: 19px;
}
.admin-insight-line {
  display: block;
  width: 100%;
  min-height: 230px;
  overflow: visible;
}
.admin-insight-line .area {
  fill: url(#watch-area);
}
.admin-insight-line .line {
  fill: none;
  stroke: #8e214c;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.admin-insight-line circle {
  fill: white;
  stroke: #8e214c;
  stroke-width: 3;
}
.admin-insight-line text {
  fill: #88717c;
  font-size: 13px;
}
.admin-rank-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  padding: 11px 0;
}
.admin-rank-row > span {
  color: #b18496;
  font-size: 13px;
  font-weight: 800;
}
.admin-rank-row strong,
.admin-rank-row small {
  display: block;
}
.admin-rank-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-rank-row small {
  margin: 4px 0 8px;
  color: #816b76;
  font-size: 12px;
}
.admin-rank-row i {
  display: block;
  width: var(--value);
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(90deg, #711039, #d97ba0);
}
.admin-map-panel {
  background: linear-gradient(150deg, #fff 0%, #fff 58%, #fbf2f6 100%);
}
.admin-map-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.8fr) minmax(260px, 1.05fr);
  align-items: center;
  gap: 28px;
}
.admin-thailand-map {
  width: 100%;
  max-height: 310px;
}
.admin-thailand-map path {
  fill: #ede4e8;
  stroke: white;
  stroke-width: 1.2;
  transition:
    fill 0.2s,
    opacity 0.2s;
}
.admin-thailand-map path:hover {
  opacity: 0.72;
}
.admin-thailand-map .map-level-1 {
  fill: #e8b8ca;
}
.admin-thailand-map .map-level-2 {
  fill: #d982a4;
}
.admin-thailand-map .map-level-3 {
  fill: #bd4d79;
}
.admin-thailand-map .map-level-4 {
  fill: #92224e;
}
.admin-thailand-map .map-level-5 {
  fill: #5d0829;
}
.admin-map-coverage {
  min-width: 118px;
  text-align: right;
}
.admin-map-coverage strong,
.admin-map-coverage span {
  display: block;
}
.admin-map-coverage strong {
  color: #721039;
  font-size: 30px;
}
.admin-map-coverage span {
  color: #7b6671;
  font-size: 12px;
}
.admin-province-ranking > div {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 2px 8px;
  padding: 10px 0;
  border-bottom: 1px solid #eee3e8;
}
.admin-province-ranking > div > span {
  grid-row: 1/3;
  color: #af8094;
  font-size: 12px;
  font-weight: 800;
}
.admin-province-ranking small {
  color: #806a75;
  font-size: 12px;
}
.admin-map-credit {
  margin: 12px 0 0;
  color: #a58e99;
  font-size: 10px;
}
.admin-top-viewers a {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid #eee3e8;
  color: inherit;
  text-decoration: none;
}
.admin-top-viewers a > span {
  color: #b18496;
  font-size: 12px;
  font-weight: 800;
}
.admin-top-viewers a strong,
.admin-top-viewers a small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-top-viewers a small {
  margin-top: 3px;
  color: #826d77;
  font-size: 12px;
}
.admin-top-viewers a b {
  color: #711039;
  font-size: 14px;
}
.admin-insight-empty {
  padding: 26px 12px;
  color: #826e78;
  line-height: 1.7;
  text-align: center;
}
.admin-order-row-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}
.admin-text-link.subtle {
  color: #876978;
  font-size: 12px;
}
.admin-order-shipping [data-thai-address-status] {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  color: #6f5360;
  background: #f7f0f3;
}
.admin-material-settings {
  margin-top: 22px;
}
.admin-material-option {
  padding: 20px;
  border: 1px solid #eadce2;
  border-radius: 14px;
  background: #fffafa;
}
.admin-material-option > .admin-checkbox {
  margin-bottom: 14px;
  font-size: 17px;
}
.admin-material-option .fulfillment-book-editor {
  margin-top: 14px;
}
.admin-material-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.admin-material-summary span {
  padding: 10px 13px;
  border-radius: 11px;
  color: #715966;
  background: #f7eff3;
}
.admin-material-summary strong {
  color: #65072a;
  font-size: 18px;
}

.course-book-map-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.38fr);
  gap: 24px;
  align-items: center;
}
.course-book-map-intro h2 {
  margin: 8px 0;
  font-size: 26px;
}
.course-book-map-intro p {
  margin: 0;
  color: #715e68;
  line-height: 1.7;
}
.course-book-map-example {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 18px;
  border: 1px solid #e2c9d3;
  border-radius: 14px;
  background: #fff8fb;
}
.course-book-map-example span,
.course-book-map-example small {
  color: #806b75;
}
.course-book-map-example strong {
  color: #65072a;
  font-size: 22px;
}
.course-book-map-search {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  margin: 22px 0 14px;
}
.course-book-map-search label {
  max-width: 720px;
}
.course-book-map-list {
  display: grid;
  gap: 10px;
}
.course-book-map-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid #eadde2;
  border-radius: 14px;
  background: #fff;
}
.course-book-map-course {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-width: 0;
}
.course-book-map-course > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.course-book-map-course strong {
  font-size: 17px;
  line-height: 1.45;
}
.course-book-map-course small {
  color: #826e78;
}
.course-book-map-course p {
  margin: 4px 0 0;
  color: #9a667a;
  font-size: 13px;
  line-height: 1.55;
}
.course-material-editor > .admin-section-heading {
  align-items: flex-start;
}
.course-material-editor > .admin-section-heading p {
  max-width: 760px;
  margin: 6px 0 0;
  color: #735e68;
  line-height: 1.65;
}
.course-material-editor-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.course-material-editor-stats span {
  padding: 8px 11px;
  border: 1px solid #e5d4db;
  border-radius: 10px;
  color: #735e68;
  background: #fff;
  font-size: 13px;
}
.course-material-editor-stats b {
  color: #65072a;
  font-size: 17px;
}
.course-material-available-pdfs {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid #e5d6dc;
  border-radius: 17px;
  background: #fcfafb;
}
.pdf-only-file-list {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.pdf-only-file-list li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid #eadde2;
  border-radius: 13px;
  background: #fff;
}
.pdf-only-file-list li > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #65072a;
  background: #f8eaf0;
  font-weight: 800;
}
.pdf-only-file-list li > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.pdf-only-file-list strong {
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.45;
}
.pdf-only-file-list small {
  color: #806d77;
}
.course-pdf-preview-list .btn {
  white-space: nowrap;
}
.course-material-card-list {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}
.course-material-card {
  overflow: hidden;
  border: 1px solid #dfccd4;
  border-radius: 17px;
  background: #fffdfd;
}
.course-material-card > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  border-bottom: 1px solid #eadde2;
  background: #faf3f6;
}
.course-material-card > header div {
  display: flex;
  align-items: center;
  gap: 14px;
}
.course-material-card > header span {
  color: #886f7b;
  font-size: 13px;
}
.course-material-card > header strong {
  color: #65072a;
}
.admin-text-link.danger {
  border: 0;
  color: #9a3850;
  background: transparent;
  cursor: pointer;
}
.admin-text-link.danger:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.course-material-fields {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(260px, 1fr);
  gap: 16px;
  padding: 18px;
}
.course-material-fields label,
.course-material-modes > label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #4f3a45;
  font-size: 14px;
  font-weight: 700;
}
.course-material-fields input,
.course-material-fields textarea,
.course-material-modes input,
.course-material-modes select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #d9cbd1;
  border-radius: 10px;
  color: #251c22;
  background: #fff;
  font: inherit;
  font-weight: 400;
}
.course-material-fields .span2 {
  grid-column: 1 / -1;
}
.course-material-modes {
  display: grid;
  grid-template-columns: auto auto minmax(140px, 0.4fr) minmax(260px, 1fr);
  gap: 14px 20px;
  align-items: end;
  margin: 0;
  padding: 17px 18px 20px;
  border: 0;
  border-top: 1px solid #eee3e7;
  background: #fcfafb;
}
.course-material-modes legend {
  padding: 0 7px;
  color: #715966;
  font-size: 13px;
  font-weight: 800;
}
.course-material-modes .admin-checkbox {
  flex-direction: row;
  align-items: center;
  align-self: center;
  min-height: 44px;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid #e4d5db;
  border-radius: 11px;
  background: #fff;
  white-space: nowrap;
}
.course-material-modes .admin-checkbox input {
  width: 20px;
  height: 20px;
  padding: 0;
}
.course-material-modes input:disabled,
.course-material-modes select:disabled {
  color: #9d8f96;
  background: #eee9eb;
}
.course-material-editor-actions {
  position: sticky;
  z-index: 4;
  bottom: 14px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid #d5b0bf;
  border-radius: 15px;
  background: #fffafc;
  box-shadow: 0 12px 32px #4a102520;
}
.course-material-editor-actions > div {
  display: flex;
  align-items: center;
  gap: 14px;
}
.course-material-editor-actions small {
  color: #806975;
}

.inventory-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 22px;
}
.inventory-warning {
  border-color: #e2a06f;
  background: #fff8f0;
}
.inventory-list {
  margin-top: 22px;
  border: 1px solid #eadde2;
  border-radius: 18px;
  overflow: hidden;
}
.inventory-list-head,
.inventory-list > a {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) 100px 180px 100px;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
}
.inventory-list-head {
  color: #7a6670;
  font-size: 0.86rem;
  font-weight: 750;
  background: #faf5f7;
}
.inventory-list > a {
  color: inherit;
  text-decoration: none;
  border-top: 1px solid #f0e6ea;
}
.inventory-list > a:hover,
.inventory-list > a[aria-current='true'] {
  background: #fff7fa;
}
.inventory-list strong,
.inventory-list small {
  display: block;
}
.inventory-list small,
.inventory-list span {
  color: #786873;
}
.inventory-list b {
  font-size: 1.35rem;
}
.inventory-list b.low,
.inventory-balance.low {
  color: #ad3b24;
}
.inventory-list em {
  color: #710022;
  font-style: normal;
  font-weight: 750;
}
.inventory-balance {
  display: grid;
  gap: 2px;
  font-size: 2rem;
  text-align: right;
}
.inventory-balance small {
  color: #77656e;
  font-size: 0.78rem;
  font-weight: 600;
}
.inventory-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 30px;
}
.inventory-actions > section {
  padding: 20px;
  border: 1px solid #eadde2;
  border-radius: 16px;
  background: #fffafc;
}
.inventory-actions h3,
.inventory-actions p {
  margin-top: 0;
}
.inventory-actions .admin-form {
  grid-template-columns: 1fr;
}
.inventory-history-list > div {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 180px;
  align-items: center;
  gap: 16px;
  padding: 15px 0;
  border-top: 1px solid #eee3e7;
}
.inventory-history-list p {
  margin: 4px 0 0;
  color: #786873;
}
.inventory-history-list small {
  text-align: right;
}
.inventory-delta {
  padding: 8px;
  border-radius: 10px;
  text-align: center;
  font-weight: 800;
}
.inventory-delta.in {
  color: #176244;
  background: #e9f7f0;
}
.inventory-delta.out {
  color: #9d3424;
  background: #fff0ed;
}

@media (max-width: 1050px) {
  .admin-insight-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-insight-grid,
  .admin-insight-grid.geography {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 820px) {
  .course-book-map-intro,
  .course-book-map-row {
    grid-template-columns: 1fr;
  }
  .admin-insight-filter {
    grid-template-columns: 1fr 1fr;
  }
  .admin-insight-filter label:first-of-type,
  .admin-insight-filter > .btn {
    grid-column: 1/-1;
  }
  .course-material-fields,
  .course-material-modes {
    grid-template-columns: minmax(0, 1fr);
  }
  .course-material-fields .span2 {
    grid-column: 1;
  }
  .course-material-editor-actions,
  .course-material-editor-actions > div {
    align-items: stretch;
    flex-direction: column;
  }
  .pdf-only-file-list li {
    grid-template-columns: 40px minmax(0, 1fr);
  }
  .pdf-only-file-list li .btn {
    grid-column: 2;
    justify-self: start;
  }
  .inventory-metrics,
  .inventory-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .inventory-list-head {
    display: none;
  }
  .inventory-list > a {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .inventory-list > a span {
    grid-column: 1;
  }
}
@media (max-width: 620px) {
  .admin-insight-hero {
    align-items: flex-start;
    padding: 11px;
  }
  .admin-insight-kpis,
  .admin-insight-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-map-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .admin-map-layout {
    gap: 10px;
  }
  .admin-thailand-map {
    max-height: 245px;
  }
  .inventory-metrics,
  .inventory-actions {
    grid-template-columns: minmax(0, 1fr);
  }
  .inventory-history-list > div {
    grid-template-columns: 54px minmax(0, 1fr);
  }
  .inventory-history-list small {
    grid-column: 2;
    text-align: left;
  }
}

/* One focused order workspace, with the queue retained behind the dialog. */
.admin-order-dialog {
  width: min(1100px, calc(100vw - 32px));
  max-width: 1100px;
  padding: 24px;
  background: #fffafb;
}
.admin-order-dialog::backdrop {
  background: rgb(39 23 30 / 0.48);
}
.admin-order-dialog .admin-selected-order-bar {
  display: none;
}
.admin-order-dialog .admin-panel {
  margin-top: 16px;
}
.order-check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  margin: 16px 0;
  border: 1px solid #e6cfa8;
  border-radius: 14px;
  background: #fff7e7;
  color: #765016;
}
.order-check p {
  margin: 4px 0 0;
}
.order-check.is-verified {
  background: #edf8f1;
  border-color: #b8d8c4;
  color: #176442;
}
.order-event-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.order-event-list li {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #eee5e9;
}
.order-event-list small {
  display: block;
  color: #786b71;
}
.order-communication form {
  margin-top: 16px;
}
.admin-order-status-filters {
  flex-wrap: wrap;
}
@media (max-width: 650px) {
  .admin-order-dialog {
    padding: 14px;
    width: calc(100vw - 20px);
  }
  .order-check,
  .order-event-list li {
    flex-direction: column;
  }
  .admin-order-dialog .admin-review-grid {
    grid-template-columns: 1fr;
  }
}

/* Keep insertion direction visible without moving rows underneath the pointer. */
.content-workspace .is-drop-before {
  box-shadow: inset 0 3px #a83461;
}
.content-workspace .is-drop-after {
  box-shadow: inset 0 -3px #a83461;
}

.content-inline-title h2 {
  margin: 0;
}
.content-inline-title [data-inline-title-toggle] {
  font: inherit;
  color: inherit;
  font-weight: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 6px;
  padding: 2px 4px;
  margin: -2px -4px;
  cursor: text;
}
.content-inline-title [data-inline-title-toggle] span {
  font-size: 0.65em;
  color: #9b8792;
  margin-left: 10px;
}
.content-inline-title [data-inline-title-toggle]:hover {
  background: #f6edf1;
}
.content-inline-title [data-inline-title-form] {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
.content-inline-title [data-inline-title-form][hidden],
.content-inline-title h2[hidden] {
  display: none;
}
.content-inline-title input {
  flex: 1;
  min-width: 180px;
  border: 1px solid #ab6b81;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
}
.content-inline-title small {
  flex-basis: 100%;
  font-size: 0.75rem;
  color: #76676e;
}

.content-lesson-title > small {
  font-size: 0.85rem;
}

.course-publication-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #d9e6de;
  background: #f2f7f3;
  color: #356148;
  padding: 5px 9px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.course-publication-badge svg {
  width: 15px;
  height: 15px;
}
.course-publication-badge.is-changed {
  color: #795015;
  background: #fff0cc;
  border-color: #e9cf99;
}
.course-publication-badge.is-paused {
  color: #726971;
  background: #f5f3f4;
  border-color: #e1dce0;
}
.course-publication-toolbar {
  position: sticky;
  bottom: 14px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  margin-top: 24px;
  border: 1px solid #e3d9de;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 6px 24px #32162612;
}
.course-publication-toolbar small {
  display: block;
  color: #82747c;
  font-size: 12px;
  margin-top: 6px;
}
.course-publication-actions,
.course-publication-actions form {
  display: flex;
  align-items: center;
  gap: 10px;
}
.course-publication-actions .btn {
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
@media (max-width: 760px) {
  .course-publication-toolbar {
    flex-direction: column;
    align-items: stretch;
    bottom: 8px;
    padding: 12px;
  }
  .course-publication-actions {
    flex-wrap: wrap;
  }
  .course-publication-actions form {
    flex: 1;
    justify-content: flex-end;
  }
}

/* Compact, task-specific lesson actions; popovers stay next to their clip. */
.content-lesson-actions {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  margin-left: auto;
}
.content-action-menu {
  position: relative;
}
.content-action-menu > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 0.65rem;
  min-height: 40px;
  border: 1px solid #e2d7dc;
  border-radius: 8px;
  background: #fff;
  color: #650021;
  cursor: pointer;
  list-style: none;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.content-action-menu > summary::-webkit-details-marker {
  display: none;
}
.content-action-menu > summary:hover,
.content-action-menu[open] > summary {
  background: #f7edf1;
  border-color: #c69baa;
}
.content-action-menu > summary svg {
  width: 17px;
  height: 17px;
}
.content-action-menu > div {
  position: absolute;
  z-index: 25;
  top: calc(100% + 6px);
  right: 0;
  width: 250px;
  padding: 0.4rem;
  background: #fff;
  border: 1px solid #e5d9df;
  border-radius: 10px;
  box-shadow: 0 9px 28px #39202c22;
}
.content-action-menu > div > a {
  display: block;
  padding: 0.7rem 0.65rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  color: #3f3038;
}
.content-action-menu > div > a:hover {
  background: #f8f0f3;
  color: #650021;
}
.content-more-menu > summary {
  font-size: 1.25rem;
  padding: 0.3rem 0.7rem;
}
.content-more-menu form {
  border-top: 1px solid #eee5e9;
  margin-top: 0.3rem;
  padding: 0.75rem 0.65rem;
}
.content-more-menu label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.85rem;
}
.content-more-menu select {
  width: 100%;
  min-width: 0;
  padding: 0.5rem;
  font: inherit;
}
.content-more-menu form > button {
  margin-top: 0.5rem;
}
@media (max-width: 1100px) {
  .content-lesson-row {
    flex-wrap: wrap;
  }
  .content-lesson-title {
    flex-basis: calc(100% - 100px);
  }
  .content-lesson-actions {
    margin-left: auto;
  }
}
@media (max-width: 520px) {
  .content-action-menu > div {
    position: fixed;
    top: auto;
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    width: auto;
    max-height: 65dvh;
    overflow: auto;
    box-shadow: 0 0 0 100vmax #25151c50;
  }
}

.course-publication-options {
  margin-left: auto;
}
.course-publication-options > summary {
  color: #6c5a63;
  font-weight: 500;
}
.course-publication-options > div > a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #973d43;
}
.course-publication-options svg {
  width: 17px;
  height: 17px;
}
.course-pause-name {
  font-weight: 650;
  font-size: 1.1rem;
}
.course-pause-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.course-pause-confirm {
  background: #a13e47;
}
.course-pause-confirm:hover {
  background: #882d36;
}
@media (max-width: 600px) {
  .course-publication-options {
    margin-left: 0;
  }
}

.video-provider-picker {
  display: block;
  margin-bottom: 20px;
}
.video-provider-picker select {
  display: block;
  width: 100%;
  margin-top: 8px;
}
.provider-video-frame {
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
  margin-top: 16px;
}
.content-video-upload .axinom-frame {
  aspect-ratio: 16/9;
  background: #101116;
  border-radius: 12px;
  overflow: hidden;
  margin: 16px 0;
}
.content-video-upload .axinom-frame video {
  width: 100%;
  height: 100%;
}

.video-status-spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid #ddced3;
  border-top-color: #a61945;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 7px;
  animation: video-spin 1s linear infinite;
}
.video-is-processing [data-provider-status]::before,
.video-is-uploading [data-provider-status]::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid #ddced3;
  border-top-color: #a61945;
  border-radius: 50%;
  margin-right: 7px;
  animation: video-spin 1s linear infinite;
}
@keyframes video-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .video-status-spinner,
  .video-is-processing [data-provider-status]::before,
  .video-is-uploading [data-provider-status]::before {
    animation: none;
  }
}

.video-preview-providers {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.admin-platform .video-preview-providers .btn[aria-pressed='true'] {
  background: #790027;
  color: #fff;
  border-color: #790027;
  opacity: 1;
}
.lesson-preview-screen {
  width: 100%;
  aspect-ratio: 16/9;
  background: #101116;
}
.lesson-preview-screen video,
.lesson-preview-screen iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

[data-preview-status] {
  overflow-wrap: anywhere;
}

/* Device/browser identifiers may be long unbroken strings. */
.client-observation-row strong,
.client-observation-row p,
.client-observation-row .small {
  overflow-wrap: anywhere;
}
.client-observation-row summary {
  scroll-margin-top: 180px;
  min-height: 44px;
  padding-block: 10px;
  cursor: pointer;
}

/* Clip readiness is visible without opening the upload dialog. */
.video-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
  background: #eeedf0;
  color: #56505b;
  vertical-align: middle;
  overflow-wrap: anywhere;
}
.course-publication-badge.is-published,
.video-status-badge[data-video-state='ready'] {
  background: #e1f2e8;
  color: #17643b;
}
.video-status-badge[data-video-state='processing'],
.video-status-badge[data-video-state='uploading'] {
  background: #e3effb;
  color: #20578e;
}
.video-status-badge[data-video-state='error'] {
  background: #fbe6e6;
  color: #a52631;
}
.video-status-badge .video-status-spinner {
  margin-right: 0;
  border-color: #bdd3ed;
  border-top-color: #20578e;
}
.content-provider-readiness {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}
.content-dialog-body > .content-provider-readiness {
  display: flex;
  margin: 0 0 12px;
}
.emergency-overview > h2 {
  margin-bottom: 8px;
}
.emergency-overview [data-emergency-mode] {
  font-size: 14px;
}
.emergency-overview > form {
  margin-top: 16px;
}
.emergency-confirm {
  width: min(540px, calc(100% - 32px));
}
.emergency-confirm .emergency-course-form {
  justify-content: flex-end;
  margin-top: 18px;
}
.content-emergency-return {
  display: flex;
  margin-bottom: 14px;
}
.emergency-lesson {
  scroll-margin-top: 18px;
}
.emergency-lesson:target > summary {
  color: #781d40;
}
@media (min-width: 801px) {
  .emergency-lesson {
    scroll-margin-top: 160px;
  }
}
.emergency-provider {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.emergency-provider-mark {
  display: inline-grid;
  place-items: center;
  width: 1em;
}
.emergency-provider .video-status-spinner {
  margin: 0;
}
.emergency-provider-detail {
  margin: 0 0 8px;
  font-size: 13px;
}
.emergency-courses {
  padding-inline-start: 20px;
}
.emergency-list-head,
.emergency-course-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}
.emergency-list-head {
  justify-content: space-between;
}
.emergency-list-head h2 {
  margin: 0;
}
.emergency-course-form .admin-checkbox,
.emergency-lesson-form .admin-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
}
.emergency-chapters {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.emergency-chapters details {
  margin: 0;
}
.emergency-chapter {
  border: 1px solid #e4dce1;
  border-radius: 12px;
}
.emergency-chapter > summary {
  cursor: pointer;
  padding: 12px 14px;
  border-radius: inherit;
  background: #f6f0f3;
  color: #5c3046;
}
.emergency-lessons {
  padding: 0 12px;
}
.emergency-chapter:not([open]) > .emergency-lessons,
.emergency-lesson:not([open]) > .emergency-lesson-body {
  display: none;
}
.emergency-lesson-row {
  position: relative;
}
.emergency-lesson-row + .emergency-lesson-row {
  border-top: 1px solid #ece6e9;
}
.emergency-lesson > summary {
  cursor: pointer;
  padding: 11px 0;
  padding-inline-end: 7.5rem;
  min-height: 46px;
  overflow-wrap: anywhere;
}
.admin-platform .emergency-manage-lesson {
  position: absolute;
  inset-block-start: 4px;
  inset-inline-end: 0;
  min-height: 38px;
  padding: 5px 10px;
  font-size: 13px;
  white-space: nowrap;
}
.emergency-lesson > summary strong {
  margin-inline-start: 4px;
}
.emergency-badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-inline-start: 10px;
  vertical-align: middle;
}
.emergency-lesson-body {
  padding: 0 0 12px 17px;
}
.emergency-files {
  margin: 0 0 10px;
}
.emergency-files div {
  display: flex;
  gap: 7px;
}
.emergency-files dt {
  font-weight: 650;
}
.emergency-files dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.emergency-lesson-form {
  display: grid;
  justify-items: start;
  gap: 8px;
  margin: 10px 0;
}
@media (max-width: 600px) {
  .emergency-badges {
    display: flex;
    margin: 5px 0 0 17px;
  }
}

/* Compact staff and viewing workspaces. */
.team-workspace {
  display: grid;
  grid-template-columns: minmax(195px, 1fr) minmax(0, 2.4fr);
  gap: 12px;
  align-items: start;
}
.team-workspace > .admin-panel,
.team-emergency > .admin-panel,
.team-audit,
.progress-roster,
.student-watch-report {
  padding: 13px 15px;
}
.team-accounts .admin-account-results {
  margin-block: 8px 12px;
}
.team-accounts .admin-account-choice[aria-current='page'] {
  background: #faf0f5;
  border-color: #cf9cb6;
}
.team-accounts .admin-search {
  padding: 7px;
}
.team-accounts input[type='search'] {
  min-width: 0;
}
.team-preset-grid,
.team-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 8px;
  margin-block: 8px 12px;
}
.team-preset {
  display: grid;
  gap: 2px;
  justify-content: start;
  text-align: start;
  white-space: normal;
  padding: 8px 9px;
}
.team-preset small,
.team-category small {
  font-size: 12px;
}
.team-preset[aria-pressed='true'] {
  background: #f8e8f0;
  border-color: #aa5e81;
  color: #69113a;
}
.admin-form .team-category {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  gap: 2px 8px;
  align-content: center;
  align-items: center;
  border: 1px solid #eadce3;
  border-radius: 9px;
  padding: 8px 10px;
  cursor: pointer;
}
.team-category strong {
  line-height: 1.35;
}
.team-category small {
  grid-column: 2;
  justify-self: start;
  color: #735e69;
}
.team-category small[data-state='partial'],
.team-category small[data-state='all'] {
  border-radius: 99px;
  padding-inline: 6px;
}
.team-category small[data-state='partial'] {
  background: #fff0d5;
  color: #75490b;
}
.team-category small[data-state='all'] {
  background: #e4f2e9;
  color: #235742;
}
.team-category:hover,
.team-category:focus-within {
  border-color: #bf87a1;
}
.admin-form .team-category input[type='checkbox'],
.admin-form .team-permission-detail input[type='checkbox'] {
  width: 17px;
  height: 17px;
  min-height: 0;
  flex: none;
  padding: 0;
  margin: 0;
  accent-color: #7d1743;
}
.team-permission-detail {
  border: 1px solid #eadce3;
  border-radius: 10px;
  margin: 10px 0 0;
  padding: 8px 10px;
  min-width: 0;
}
.team-permission-detail legend {
  font-weight: 650;
}
.team-permission-detail label {
  margin-block: 4px;
}
.team-secondary summary {
  cursor: pointer;
  font-weight: 650;
}
.team-secondary > .admin-panel {
  margin-bottom: 0;
}
.team-audit .data-table {
  min-width: 610px;
}
.team-audit .data-table :is(th, td) {
  padding: 8px 9px;
}
.team-audit .data-table small {
  display: block;
  overflow-wrap: anywhere;
}
.team-audit .data-table td {
  overflow-wrap: anywhere;
}
.team-audit .data-table p {
  margin: 4px 0;
}
.admin-insight-grid .admin-panel {
  padding: 12px 14px;
}
.admin-insight-grid .admin-section-heading {
  margin-bottom: 9px;
}
.admin-insight-quick a[aria-current='page'] {
  background: #f3dce8;
  color: #681739;
}
.progress-roster .admin-filterbar {
  gap: 8px;
  margin-bottom: 10px;
}
.progress-roster .admin-course-filter {
  flex: 1 1 420px;
}
.progress-roster .admin-course-filter .admin-live-search {
  flex: 2 1 180px;
}
.progress-roster .admin-roster-table :is(th, td) {
  padding-block: 8px;
}
.student-watch-report .admin-report-section {
  margin-block: 12px;
  padding-top: 10px;
}
.student-watch-report .admin-badge.green {
  color: #195b40;
  background: #dff3e9;
}
.student-watch-report .admin-report-section > summary {
  border-radius: 8px;
  padding: 7px 9px;
}
.student-watch-report .admin-report-section > summary:hover,
.student-watch-report .admin-report-section > summary:focus-visible {
  background: #f9f0f5;
}
.student-watch-report .admin-report-section[open] > summary {
  color: #6b173c;
  background: #f2dbe7;
}
@media (max-width: 760px) {
  .team-workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .team-preset-grid,
  .team-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .team-workspace > .admin-panel,
  .team-emergency > .admin-panel,
  .student-watch-report {
    padding: 10px;
  }
  .admin-watch-summary strong {
    font-size: 16px;
  }
}

/* Visual values from the owner-approved admin preview. */
.admin-refined {
  --wine: #590e27;
  --paper: #fff;
  --line: #e7dde1;
  --ink: #2f2128;
  --muted: #6f6067;
  background: #f8f5f6;
  line-height: 1.55;
}
.admin-refined .admin-shell {
  max-width: 1260px;
  padding-inline: 24px;
}
.admin-refined .admin-shell {
  padding-top: 18px;
}
.admin-refined .admin-heading {
  margin-bottom: 17px;
  gap: 12px;
}
.admin-refined .admin-heading h1 {
  line-height: 1.28;
  font-weight: 750;
}
.admin-refined .admin-heading p {
  margin-top: 4px;
}
.admin-refined .btn {
  min-height: 38px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
}
.admin-refined .btn.secondary {
  color: var(--wine);
  border-color: var(--line);
}
.admin-refined .admin-panel h2 {
  font-size: 16px;
}
.team-workspace {
  grid-template-columns: minmax(165px, 0.68fr) minmax(0, 2fr);
}
.team-workspace > .team-editor {
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
}
.team-editor-heading {
  padding: 12px 15px;
  margin: 0;
  background: linear-gradient(110deg, #f4e7ec, #fff);
  color: var(--wine);
}
.team-editor-heading :is(h2, p) {
  margin: 0;
}
.team-editor .notice {
  margin: 12px 15px;
}
.team-editor > .admin-form {
  gap: 0;
}
.team-presets {
  padding: 10px 14px;
  background: #f8f5f6;
  border-bottom: 1px solid var(--line);
}
.team-preset-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
}
.team-preset-heading > span {
  color: var(--wine);
  font-size: 11px;
  font-weight: 650;
}
.team-presets h3,
.team-permission-groups h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 750;
  color: var(--wine);
}
.team-preset-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-block: 6px 0;
}
.team-editor .team-preset {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 49px;
  padding: 5px 7px;
  border-radius: 7px;
  background: #fff;
}
.team-preset strong,
.team-preset small {
  display: block;
}
.team-preset strong {
  font-size: 13px;
}
.team-preset small {
  font-size: 11px;
  color: var(--muted);
}
.team-preset svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--wine);
}
.team-preset:hover,
.team-preset[aria-pressed='true'] {
  color: var(--wine);
  border-color: var(--wine);
}
.team-permission-groups {
  padding: 11px 14px;
}
.team-permission-groups .admin-section-heading {
  margin: 0;
}
.team-permission-groups [data-team-summary] {
  font-size: 11px;
  color: var(--muted);
}
.team-category-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.admin-form .team-category {
  grid-template-columns: minmax(0, 1fr) 17px;
  padding: 5px 9px;
  border-radius: 7px;
  gap: 2px 8px;
}
.team-category strong {
  grid-column: 1;
  grid-row: 1;
  font-size: 13px;
}
.team-category small {
  grid-column: 1;
  grid-row: 2;
  font-size: 11px;
}
.team-category input {
  grid-column: 2;
  grid-row: 1/3;
}
.team-category small[data-state='none'] {
  color: var(--muted);
}
.team-editor .admin-form label:not(.team-category):not(.admin-checkbox) {
  font-size: 12px;
  gap: 5px;
  color: var(--muted);
}
.team-editor .admin-form :is(select, textarea) {
  padding: 6px 8px;
  min-height: 37px;
  border-radius: 7px;
  font-size: 13px;
}
.team-permission-detail {
  padding: 8px 10px;
  border-radius: 7px;
}
.team-permission-detail legend {
  font-size: 13px;
}
.team-permission-detail .admin-checkbox {
  font-size: 13px;
}
.team-save {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
}
.team-save textarea {
  display: block;
}
.team-save [data-team-diff] {
  font-size: 12px;
  color: var(--muted);
  margin-block: 7px;
}
.team-save .admin-form-actions {
  justify-content: flex-end;
  padding: 0;
}
.team-workflow {
  color: #285440;
  font-size: 12px;
  margin: 6px 0 0;
}
.team-workflow:empty {
  display: none;
}
.team-workflow[data-incomplete] {
  color: var(--wine);
}
.student-watch-report .admin-watch-summary > div:nth-child(2) {
  border-color: #cedfd5;
  background: #eaf3ee;
  color: #285440;
}
.student-watch-report .admin-watch-summary small {
  font-size: 11px;
}
.student-watch-report .admin-watch-summary span {
  font-size: 13px;
}
.student-watch-report .admin-report-section[open] > summary {
  background: #590e27;
  color: #fff;
}
.watch-lesson-progress {
  min-width: 80px;
  display: grid;
  gap: 4px;
}
.watch-lesson-progress progress {
  width: 100%;
  height: 4px;
  border: 0;
  border-radius: 99px;
  overflow: hidden;
  appearance: none;
}
.watch-lesson-progress progress::-webkit-progress-bar {
  background: #f4e7ec;
}
.watch-lesson-progress progress::-webkit-progress-value {
  background: #590e27;
}
.watch-lesson-progress progress::-moz-progress-bar {
  background: #590e27;
}
@media (max-width: 760px) {
  .team-workspace {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  .admin-refined .admin-shell {
    padding-inline: 14px;
  }
  .admin-refined .admin-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}
@media (max-width: 480px) {
  .team-category-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.admin-refined [hidden] {
  display: none !important;
}
.admin-refined .team-editor .team-preset {
  color: var(--ink);
  text-align: start;
  border-color: #e7dde1;
}
.admin-refined .team-editor .team-preset:is(:hover, [aria-pressed='true']) {
  color: var(--wine);
  border-color: var(--wine);
  background: #fff;
}
.student-watch-report
  .admin-report-section[open]
  > summary
  > .disclosure-action {
  color: inherit;
}
@media (max-width: 420px) {
  .team-preset-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.team-instructors {
  padding: 12px 14px;
}
.team-instructors h2,
.team-instructors h3 {
  margin: 0 0 8px;
  font-size: 14px;
}
.instructor-current {
  margin-block: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.team-instructors .admin-account-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
  margin: 8px 0;
}
.team-instructors .admin-account-search label {
  display: grid;
  gap: 4px;
  font-size: 12px;
}
.team-instructors .admin-account-search input {
  min-height: 38px;
  padding: 6px 9px;
}
.team-instructors .admin-account-choice {
  padding: 8px 10px;
  border-radius: 8px;
}
.team-instructors .admin-form {
  gap: 10px;
}

/* Book stock shares the compact admin presentation. */
.admin-refined .inventory-metrics {
  gap: 9px;
  margin-block: 12px;
}
.admin-refined .inventory-metrics .admin-metric {
  padding: 10px 13px;
  border-radius: 10px;
}
.inventory-metrics .admin-metric strong {
  font-size: 24px;
  line-height: 1.25;
}
.admin-refined .inventory-catalog,
.admin-refined .inventory-detail {
  padding: 13px 15px;
  border-radius: 12px;
  margin-bottom: 12px;
}
.inventory-catalog .admin-search {
  margin-bottom: 10px;
  gap: 8px;
}
.inventory-catalog .admin-search input {
  min-height: 38px;
  padding: 6px 9px;
}
.inventory-list > a {
  padding: 8px 10px;
  gap: 10px;
  font-size: 13px;
}
.inventory-list b {
  font-size: 18px;
}
.inventory-list small {
  font-size: 11px;
}
.inventory-list em {
  font-size: 12px;
}
.inventory-balance {
  font-size: 26px;
}
.inventory-actions {
  gap: 10px;
  margin-block: 12px;
}
.inventory-actions > section {
  padding: 12px;
  border-radius: 10px;
}
.inventory-actions h3 {
  margin: 0 0 5px;
  font-size: 14px;
}
.inventory-actions p {
  font-size: 12px;
}
.inventory-actions .admin-form {
  gap: 8px;
}
.inventory-actions .admin-form label {
  font-size: 12px;
  gap: 4px;
}
.inventory-actions .admin-form input {
  min-height: 38px;
  padding: 6px 9px;
}
.inventory-history-list > div {
  padding-block: 8px;
  gap: 10px;
  font-size: 13px;
}
.inventory-delta {
  padding: 4px 6px;
}
.shipping-handoff {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 12px;
}
.shipping-handoff h2,
.shipping-handoff p {
  margin: 0;
}
.shipping-handoff p {
  font-size: 13px;
  color: var(--muted);
}

.inventory-detail {
  scroll-margin-top: 180px;
}

.fulfillment-tracking-row[data-purchase-channel] {
  position: relative;
}
.fulfillment-tracking-row[data-purchase-channel]::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 53px;
  max-height: calc(100% - 12px);
  background: var(--purchase-accent);
  border-radius: 0 3px 3px 0;
}

/* Shared navigation stays the same size when changing admin sections. */
.admin-platform .admin-top {
  font-size: 16px;
  line-height: 1.55;
}
.admin-platform .admin-account .btn {
  font-size: 14px;
  min-height: 38px;
  padding: 6px 12px;
  border-radius: 8px;
}

.fulfillment-tracking-state {
  grid-column: -2 / -1;
  justify-self: start;
}
@media (max-width: 650px) {
  .fulfillment-tracking-state {
    grid-column: 2;
  }
}

/* Keep the approved category descriptions; only partial access needs a badge. */
.team-category-title {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.team-category-title [data-team-group-state] {
  padding: 1px 6px;
  border-radius: 999px;
  background: #f9edcd;
  color: #6d4c15;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}
.team-category-title [data-team-group-state]:empty {
  display: none;
}
.admin-form .team-category {
  padding: 9px 11px;
}
.team-category > small {
  font-size: 12px;
  line-height: 1.5;
  font-weight: 400;
}

/* Packing work starts with parcels; occasional settings stay collapsed. */
.fulfillment-order-filters {
  margin-block: 8px;
}
.fulfillment-order-filters > summary,
.fulfillment-batch-defaults > summary {
  cursor: pointer;
  color: #590e27;
  font-size: 14px;
  padding: 8px 4px;
}
.fulfillment-order-filters .admin-order-filter {
  margin-top: 8px;
}
.fulfillment-shipping-workspace .fulfillment-parcel-filter {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  align-items: end;
  gap: 12px;
  margin-block: 8px;
  padding: 10px 12px;
  border-radius: 10px;
}
.fulfillment-shipping-workspace .fulfillment-parcel-filter > label {
  gap: 4px;
}
.fulfillment-shipping-workspace
  .fulfillment-parcel-filter
  input[type='search'] {
  min-height: 38px;
  padding: 7px 10px;
}
.fulfillment-shipping-workspace .fulfillment-parcel-filter .btn {
  min-height: 38px;
}
.fulfillment-shipping-workspace .fulfillment-batch-form {
  gap: 8px;
}
.fulfillment-shipping-workspace .fulfillment-batch-defaults {
  padding: 0 4px;
}
.fulfillment-batch-defaults[open] {
  padding: 0 12px 12px;
  border: 1px solid #e7dde1;
  border-radius: 10px;
}
.fulfillment-shipping-workspace .fulfillment-tracking-list {
  padding: 12px;
}
.fulfillment-shipping-workspace
  .fulfillment-tracking-list
  > .admin-section-heading {
  margin-bottom: 8px;
}
.fulfillment-shipping-workspace .fulfillment-tracking-row {
  gap: 12px;
  padding: 10px 12px;
}
.fulfillment-parcel-books > summary {
  cursor: pointer;
  color: #590e27;
  font-size: 14px;
  font-weight: 600;
}
.fulfillment-parcel-books[open] > summary {
  margin-bottom: 8px;
}
@media (max-width: 650px) {
  .fulfillment-shipping-workspace .fulfillment-parcel-filter {
    grid-template-columns: 1fr auto;
  }
  .fulfillment-shipping-workspace
    .fulfillment-parcel-filter
    > label:first-child {
    grid-column: 1 / -1;
  }
}

.fulfillment-book-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  margin: 2px 4px 2px 0;
  border: 1px solid #e7dde1;
  border-radius: 8px;
  background: #fcf9fa;
  color: #4c3040;
  white-space: nowrap;
}

.fulfillment-shipping-workspace:not(.has-filled-tracking)
  .fulfillment-batch-submit {
  position: static;
}

.inventory-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.inventory-settings {
  grid-column: 1 / -1;
  padding: 10px 12px;
  border: 1px solid #e7dde1;
  border-radius: 10px;
}
.inventory-settings > summary {
  cursor: pointer;
  color: #590e27;
  font-weight: 650;
}
.inventory-settings[open] > summary {
  margin-bottom: 10px;
}
@media (max-width: 650px) {
  .inventory-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

.inventory-history-list small {
  font-size: 13px;
  line-height: 1.5;
}
.inventory-history-list .inventory-history-actor {
  display: block;
  font-size: 15px;
  font-weight: 650;
  color: #34242c;
  margin-top: 3px;
}

.inventory-history-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}
.inventory-history-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 14px;
}
.inventory-history-table th,
.inventory-history-table td {
  padding: 11px 12px;
  text-align: left;
  vertical-align: top;
}
.inventory-history-table th {
  color: #725d68;
  font-size: 13px;
}
.inventory-history-table th:first-child,
.inventory-history-table td:first-child {
  width: 175px;
  white-space: nowrap;
}
.inventory-history-table td:nth-child(3) {
  width: 90px;
}
.inventory-history-table td:last-child {
  width: 170px;
}
.inventory-history-table p {
  margin: 4px 0 0;
  font-size: 13px;
  color: #725d68;
}
.inventory-history-table .inventory-history-actor {
  display: table-cell;
  font-size: 15px;
  font-weight: 650;
  color: #34242c;
}

.inventory-delta.neutral {
  background: #f0edef;
  color: #6c5e65;
}

/* Student workspace: use desktop width for navigation and the task at hand. */
.student-workspace {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 18px;
}
.student-workspace > .admin-tabs {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid #e8d8df;
  border-radius: 16px;
  background: #fff;
  overflow: visible;
}
.student-workspace > .admin-tabs a {
  white-space: normal;
  padding: 11px 13px;
  border-radius: 10px;
}
.student-workspace > .admin-tabs a:hover {
  background: #fcf0f5;
}
.student-workspace > .admin-tabs a[aria-current] {
  background: #650b2b;
  color: #fff;
  box-shadow: none;
}
.student-workspace--report {
  grid-template-columns: minmax(0, 1fr);
}
.student-tab-content {
  min-width: 0;
}
.student-tab-content > .admin-panel,
.student-tab-content > .staff-checkout > .admin-panel {
  padding: 20px;
  border-radius: 16px;
  margin: 0 0 16px;
}
.student-tab-content > .admin-panel > h2,
.student-tab-content > .admin-panel > .admin-section-heading h2 {
  font-size: 19px;
  margin: 0 0 14px;
  color: #650b2b;
}
.student-tab-content > .admin-panel > .admin-section-heading {
  gap: 12px;
  margin-bottom: 12px;
}
.student-tab-content > .admin-panel > .admin-caption {
  margin: 0 0 14px;
}
.student-tab-content[data-student-tab='profile'] {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 1fr);
  gap: 16px;
}
.student-profile {
  border-top: 4px solid #89123e;
}
.student-addresses {
  border-top: 4px solid #19855e;
}
.student-profile .facts {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  gap: 0;
}
.student-profile .facts > div {
  display: grid;
  grid-template-columns: minmax(125px, 0.8fr) minmax(0, 1.2fr);
  gap: 12px;
  font-size: 15px;
  padding: 11px 0;
  border-bottom: 1px solid #f0e5e9;
}
.student-profile .facts strong {
  overflow-wrap: anywhere;
  font-weight: 600;
}
.student-address {
  padding: 13px;
  margin-bottom: 10px;
  border: 1px solid #d9e9e1;
  border-radius: 12px;
  background: #f5fbf8;
  font-size: 15px;
  line-height: 1.6;
}
.student-address p {
  margin: 5px 0 0;
}
.student-tab-content .access-row {
  padding: 15px 16px;
  gap: 14px;
  border-left-width: 4px;
}
.student-access-main {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
  min-width: 0;
}
.student-access-main > strong {
  flex-basis: 100%;
  font-size: 16px;
}
.student-access-main > p {
  margin: 0;
  font-size: 15px;
}
.student-access-main > .access-expiry {
  font-weight: 600;
}
.student-access-main > .student-access-meta:last-child {
  flex-basis: 100%;
}
.student-devices {
  border-top: 4px solid #b97b13;
}
.student-devices .admin-row {
  gap: 16px;
  padding: 15px 0;
}
.student-devices .admin-row > div {
  min-width: 165px;
  flex: 1;
}
.student-devices .admin-row > .admin-form {
  flex: 2;
  gap: 10px;
  grid-template-columns: minmax(140px, 0.8fr) minmax(160px, 1fr);
  align-items: end;
}
.student-devices .admin-row > .admin-form .admin-form-actions {
  margin: 0;
  padding-top: 0;
}
.student-document-course {
  border-left: 4px solid #248768;
  padding: 16px;
  margin: 14px 0 0;
  background: #fcfffd;
}
.student-document-course > .admin-form {
  gap: 10px;
  align-items: end;
}
.student-document-course > .admin-form .admin-form-actions {
  margin: 0;
  padding: 0;
}
.student-document-course .admin-row {
  gap: 15px;
  padding: 14px 0;
}
.student-document-course .admin-row > div {
  flex: 1;
}
.student-document-course .admin-row > .admin-form {
  flex: 1;
  gap: 10px;
}
.student-tab-content > .staff-checkout {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.student-tab-content > .staff-checkout > .admin-panel {
  margin: 0;
}
.student-tab-content .staff-order-options {
  grid-column: 1/-1;
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px 22px;
  border-top: 4px solid #89123e;
}
.student-tab-content .staff-order-options > label:first-child {
  flex: 1;
  min-width: 240px;
}
.student-tab-content .staff-order-items {
  grid-column: 1;
  grid-row: 2/4;
}
.student-tab-content .staff-order-payment {
  grid-column: 2;
  grid-row: 2;
}
.student-tab-content .staff-order-payment > h3 {
  margin: 0 0 14px;
  color: #650b2b;
}
.student-tab-content .staff-order-payment > label {
  margin-top: 12px;
}
.student-tab-content .staff-order-payment [data-staff-address] > .notice:empty {
  display: none;
}
.student-tab-content .staff-order-payment [data-staff-address] > details {
  margin-top: 10px;
}
.student-tab-content .staff-checkout > .admin-form-actions {
  grid-column: 2;
  grid-row: 3;
  margin: 0;
  padding: 0;
}
.student-tab-content .staff-order-line {
  padding: 14px;
  border: 1px solid #e4d2db;
  border-radius: 12px;
  margin: 0 0 12px;
}
.student-tab-content .staff-order-line .admin-form {
  gap: 12px;
}
.student-tab-content .staff-order-line h3 {
  font-size: 16px;
  margin: 0;
}
.student-tab-content:not([data-student-tab='orders']) .admin-form label {
  font-size: 15px;
}
.student-tab-content .admin-form input:not([type='checkbox']),
.student-tab-content:not([data-student-tab='orders']) .admin-form select,
.student-tab-content:not([data-student-tab='orders']) .admin-form textarea {
  padding: 9px 10px;
}
.student-tab-content:not([data-student-tab='orders']) .admin-form textarea {
  min-height: 82px;
}
.student-roster > .admin-filterbar {
  align-items: end;
}
.student-roster .admin-row {
  padding: 15px 0;
}
.student-roster .admin-student-identity p {
  margin: 4px 0 0;
  font-size: 15px;
}
.student-roster .admin-avatar {
  background: #f5e6ec;
  color: #89123e;
}
@media (max-width: 1100px) {
  .student-tab-content[data-student-tab='profile'] {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .student-tab-content > .staff-checkout {
    grid-template-columns: minmax(0, 1fr);
  }
  .student-tab-content .staff-order-items,
  .student-tab-content .staff-order-payment,
  .student-tab-content .staff-checkout > .admin-form-actions {
    grid-column: 1;
    grid-row: auto;
  }
}
@media (max-width: 760px) {
  .student-workspace {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .student-workspace > .admin-tabs {
    display: flex;
    overflow-x: auto;
    padding: 6px;
  }
  .student-workspace > .admin-tabs a {
    white-space: nowrap;
    padding: 10px 12px;
  }
  .student-tab-content > .admin-panel,
  .student-tab-content > .staff-checkout > .admin-panel {
    padding: 16px;
  }
  .student-devices .admin-row,
  .student-document-course .admin-row {
    flex-direction: column;
    align-items: stretch;
  }
  .student-devices .admin-row > .admin-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .student-profile .facts > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .student-roster .admin-filterbar {
    display: flex;
    flex-wrap: wrap;
  }
  .student-roster .admin-filterbar > label {
    flex-basis: 100%;
  }
}

@media (min-width: 761px) and (max-width: 1000px) {
  .student-devices .admin-row {
    flex-direction: column;
    align-items: stretch;
  }
  .student-devices .admin-row > .admin-form {
    width: 100%;
  }
}
.staff-terms-summary {
  margin: 0;
  padding: 10px 12px;
  border-radius: 9px;
  background: #eff8f3;
  color: #226448;
  font-size: 14px;
}
.staff-terms-editor {
  border-top: 1px solid #eadce1;
  padding-top: 10px;
}
.staff-terms-editor summary {
  color: #650b2b;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
.staff-terms-editor[open] > .admin-form {
  margin-top: 12px;
}

/* Keep the student's tasks distinct without making the whole workspace white. */
.student-workspace > .admin-tabs {
  padding: 8px;
  background: #fffafb;
  border-color: #e5cfd9;
}
.student-workspace > .admin-tabs a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 47px;
}
.student-workspace > .admin-tabs a .admin-icon {
  width: 18px;
  height: 18px;
  flex: none;
  color: #9a667a;
}
.student-workspace > .admin-tabs a[aria-current] .admin-icon {
  color: #f8dce7;
}
.student-tab-content[data-student-tab='profile'] {
  align-items: start;
}
.student-grade {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  background: #f3e6ec;
  border: 1px solid #e8cfda;
  border-radius: 12px;
  margin-bottom: 10px;
}
.student-grade > span {
  color: #785262;
  font-size: 14px;
}
.student-grade > strong {
  color: #6c0c30;
  font-size: 21px;
}
.student-grade > small {
  color: #6b5e64;
  font-size: 13px;
}
.student-tab-content > .admin-section-heading {
  align-items: start;
  flex-direction: column;
  gap: 5px;
  margin: 0 0 16px;
}
.student-tab-content > .admin-section-heading h2 {
  margin: 0;
  font-size: 22px;
  color: #560d29;
}
.student-tab-content > .admin-section-heading p {
  margin: 0;
}
.student-tab-content .staff-order-sidebar {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  position: sticky;
  top: 160px;
}
.student-tab-content .staff-order-sidebar > .admin-panel {
  padding: 18px;
  margin: 0 0 12px;
  border-radius: 16px;
  border-top: 3px solid #238568;
}
.student-tab-content .staff-order-sidebar > .admin-form-actions {
  margin: 0;
  padding: 0;
}
.student-tab-content .staff-order-sidebar > .admin-form-actions .btn {
  width: 100%;
}
.student-tab-content .staff-order-items {
  grid-row: 2;
}
.student-tab-content .staff-order-line .admin-section-heading {
  margin: 0 0 12px;
}
.student-tab-content [data-staff-line-details] {
  margin: 0;
}
.student-tab-content [data-staff-line-details][hidden] {
  display: none;
}
@media (max-width: 1100px) {
  .student-tab-content .staff-order-sidebar {
    grid-column: 1;
    grid-row: auto;
    position: static;
  }
}
@media (max-width: 760px) {
  .student-workspace > .admin-tabs a {
    gap: 7px;
  }
}

.staff-payment-heading {
  margin: 0 0 14px;
}
.staff-payment-heading > span {
  color: #26765a;
  font-size: 13px;
  font-weight: 700;
}
.staff-payment-heading h3 {
  margin: 4px 0 0;
  color: #530b27;
  font-size: 19px;
}
.staff-payment-total {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  background: #f7edf2;
  border: 1px solid #e7cedb;
  border-radius: 12px;
  margin-bottom: 16px;
}
.staff-payment-total > span,
.staff-payment-total > small {
  font-size: 14px;
  color: #745766;
}
.staff-payment-total > strong {
  color: #760e37;
  font-size: 24px;
}
.student-tab-content .staff-order-sidebar > .admin-form-actions {
  padding: 14px 18px;
  margin-top: -24px;
  background: white;
  border: 1px solid #eadce1;
  border-top: 0;
  border-radius: 0 0 16px 16px;
}
.student-tab-content .staff-order-sidebar > .admin-panel {
  padding-bottom: 24px;
}
@media (max-height: 850px) {
  .student-tab-content .staff-order-sidebar {
    position: static;
  }
}
.student-tab-content .staff-order-sidebar:has(details[open]) {
  position: static;
}

.student-roster .admin-row {
  padding: 15px 18px;
  border-radius: 12px;
  margin: 4px 0;
}
.student-roster .admin-row:hover {
  background: #fbf4f7;
}
.student-roster .admin-row-actions {
  padding: 0 4px 0 12px;
}
.student-roster .admin-list {
  margin-top: 14px;
}

.student-history-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  margin-bottom: 16px;
  border: 1px solid #e5d6dd;
  border-radius: 14px;
  background: #fff;
}
.student-history-filter h2 {
  margin: 0;
  color: #650b2b;
  font-size: 18px;
}
.student-history-filter p {
  margin: 4px 0 0;
  color: #796874;
  font-size: 14px;
}
.student-history-filter .admin-video-filter {
  flex: 1;
  max-width: 540px;
  display: block;
  text-align: left;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.student-history-filter .admin-video-filter label {
  display: grid;
  gap: 5px;
  text-align: left;
  width: 100%;
  margin: 0;
  font-size: 14px;
}
.student-history-filter .admin-video-filter select {
  max-width: none;
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  font-size: 15px;
}
@media (max-width: 640px) {
  .student-history-filter {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .student-history-filter .admin-video-filter {
    max-width: none;
  }
}

/* Shared readable type for desktop and mobile admin workspaces. */
.admin-refined .btn {
  min-height: 40px;
  font-size: 14px;
}
.admin-refined .admin-form label:not(.team-category):not(.admin-checkbox) {
  font-size: 15px;
}
:is(.team-workspace, .team-instructors) .admin-account-search label {
  font-size: 14px;
}
.admin-refined
  .admin-form
  :is(
    input:not([type='checkbox']):not([type='radio']):not([type='hidden']),
    select,
    textarea
  ),
.admin-refined
  .admin-search
  :is(
    input:not([type='checkbox']):not([type='radio']):not([type='hidden']),
    select
  ),
.admin-refined .fulfillment-tracking-input input,
:is(.team-workspace, .team-instructors) .admin-account-search input,
:is(.admin-content-roster, .admin-content-editor)
  :is(
    [data-slot='input'],
    [data-slot='native-select'],
    [data-slot='textarea']
  ) {
  min-height: 40px;
  font-size: 16px;
}
.admin-refined .commerce-order-row b {
  overflow-wrap: anywhere;
}
.admin-refined .commerce-order-row b,
.team-preset strong,
.team-category strong,
.team-permission-detail legend,
.admin-content-roster .text-sm {
  font-size: 16px;
}
.team-presets h3,
.team-permission-groups h3 {
  font-size: 16px;
}
.team-workspace .team-preset small,
.team-workspace .team-category > small,
.team-preset-heading > span,
.team-permission-groups [data-team-summary],
.team-permission-detail .admin-checkbox,
.team-save [data-team-diff],
.team-workflow,
:is(.team-workspace, .team-instructors) .admin-account-choice :is(small, b),
.team-category-title [data-team-group-state],
.admin-content-roster .text-xs,
.admin-content-editor :is(.admin-content-help, [data-slot='label']),
.admin-refined .fulfillment-tracking-row .purchase-origin-marker,
.admin-refined .commerce-order-row :is(small, p),
.admin-refined .commerce-order-states .admin-badge,
.admin-refined .commerce-order-row .purchase-origin-marker {
  font-size: 14px;
  line-height: 1.5;
}
:is(.admin-content-roster, .admin-content-editor) [data-slot='button'] {
  min-height: 40px;
  font-size: 14px;
}
.admin-refined .admin-panel h2 {
  font-size: 18px;
}
@media (max-width: 760px) {
  .admin-refined .btn,
  .admin-refined
    .admin-form
    :is(
      input:not([type='checkbox']):not([type='radio']):not([type='hidden']),
      select,
      textarea
    ),
  .admin-refined
    .admin-search
    :is(
      input:not([type='checkbox']):not([type='radio']):not([type='hidden']),
      select
    ),
  .admin-refined .fulfillment-tracking-input input,
  :is(.admin-content-roster, .admin-content-editor)
    :is(
      [data-slot='input'],
      [data-slot='native-select'],
      [data-slot='textarea'],
      [data-slot='button']
    ) {
    min-height: 42px;
  }
}

/* Keep the instructor list and editor distinct without increasing row height. */
.teacher-directory {
  gap: 16px;
}
@media (min-width: 761px) {
  .teacher-directory {
    grid-template-columns: minmax(360px, 1.1fr) minmax(0, 1fr);
  }
}
.teacher-directory .admin-account-choice {
  gap: 10px;
}
.teacher-directory .admin-account-choice + .admin-account-choice,
.teacher-directory .teacher-assigned-courses .btn + .admin-account-choice {
  margin-top: 8px;
}
.teacher-directory .admin-account-choice > span {
  min-width: 0;
}
.teacher-directory .admin-account-choice strong {
  line-height: 1.6;
}

/* Original CSQ purchase metadata stays separate from current course rights. */
.student-tab-content > .student-csq-purchases {
  grid-column: 1 / -1;
  scroll-margin-top: 180px;
}
.student-csq-purchases .facts {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
}
.student-csq-purchases .facts > .csq-purchase-row {
  display: grid;
  grid-template-columns: 135px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #f0e5e9;
  font-size: 15px;
  align-items: start;
}
.student-csq-purchases .csq-purchase-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: left;
  font-weight: 600;
}
@media (max-width: 760px) {
  .student-csq-purchases .facts > .csq-purchase-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
}
