:root {
  color: #193b55;
  background: #f6f8fb;
  --green: #0a63ba;
  --muted: #5b6e82;
  --line: #dce5ee;
}
.checkin-grant { cursor: pointer; gap: 16px; }
.guardian-settings:not([hidden]) { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.guardian-settings > p { margin: 0; }
.course-cleanup h3, .course-cleanup p { margin: 0; }
.course-cleanup .form-footer { flex-wrap: wrap; }
.payment-settings { max-width: 1080px; }
.payment-settings-status {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; padding: 14px 18px; margin-bottom: 16px;
  background: white; border: 1px solid var(--line); border-radius: 14px;
}
.payment-settings-status > span:not(.tag) { color: var(--muted); }
.payment-settings .form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.payment-settings .form > :not(.payment-settings-group) { grid-column: 1 / -1; }
.payment-settings-group {
  border: 1px solid var(--line); min-width: 0; margin: 0; display: grid; align-content: start; gap: 16px;
}
.payment-settings-group h2 {
  font-size: 17px; margin: 0; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.payment-settings label { display: grid; gap: 6px; min-width: 0; }
.payment-settings label small { color: var(--muted); font-size: 13px; font-weight: 400; }
.payment-settings input { width: 100%; min-width: 0; min-height: 44px; }
.payment-settings input[readonly] { background: #f2f6fa; }
.payment-settings input::file-selector-button {
  color: var(--green); background: #edf5fe; border: 0; border-radius: 6px; padding: 6px 12px; margin-right: 8px; cursor: pointer;
}
.payment-settings-save { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.payment-settings-save p { margin: 0; flex: 1 1 280px; }
.payment-settings-save button { flex-shrink: 0; }
@media (max-width: 1000px) { .payment-settings .form { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .payment-settings-group { padding: 16px; }
  .payment-settings-save button { width: 100%; }
}
.payment-ledger { display: grid; min-width: 0; gap: 16px; }
.payment-ledger h2 { margin: 0 0 12px; font-size: 17px; }
.ledger-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ledger-metrics > div, .ledger-panel, .ledger-filters {
  min-width: 0; padding: 16px; background: white; border: 1px solid var(--line); border-radius: 14px;
}
.ledger-metrics span { display: block; color: var(--muted); font-weight: 600; }
.ledger-metrics strong { display: block; margin-top: 6px; font-size: clamp(18px, 2.2vw, 29px); overflow-wrap: anywhere; }
.ledger-metrics > div:nth-child(3) { background: #edf6ff; border-color: #c9ddf4; color: #104f89; }
.ledger-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.ledger-filters label { display: grid; gap: 6px; flex: 1 1 150px; min-width: 0; font-weight: 650; }
.ledger-filters input, .ledger-filters select { width: 100%; min-height: 44px; }
#ledger-order-search { padding: 0; border: 0; margin-bottom: 12px; }
#ledger-order-search label { flex-grow: 0; flex-basis: min(100%, 395px); }
.ledger-scope, .ledger-caption { margin: 0; color: var(--muted); line-height: 1.6; }
.ledger-panel-heading { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.ledger-keys { display: flex; gap: 14px; color: var(--muted); }
.ledger-keys span { display: inline-flex; align-items: center; gap: 5px; }
.ledger-key { width: 9px; height: 9px; border-radius: 2px; background: #1766b2; }
.ledger-key.refund, .ledger-bars .refund { background: #a15a17; }
.ledger-chart { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(28px, 1fr); gap: 4px; overflow-x: auto; padding: 8px 0; }
.ledger-chart-column { min-width: 0; text-align: center; font-variant-numeric: tabular-nums; }
.ledger-bars { height: 124px; display: flex; gap: 2px; align-items: end; justify-content: center; border-bottom: 1px solid var(--line); }
.ledger-bars span { background: #1766b2; width: 30%; max-width: 20px; height: var(--bar); border-radius: 3px 3px 0 0; }
.ledger-chart-column small { font-size: 10px; white-space: nowrap; color: var(--muted); }
.ledger-values > summary { cursor: pointer; width: fit-content; padding: 10px 0; color: var(--green); }
.ledger-scroll { overflow: auto; }
.ledger-scroll table { width: 100%; min-width: 480px; font-variant-numeric: tabular-nums; }
.ledger-scroll th, .ledger-scroll td { text-align: right; white-space: nowrap; }
.ledger-scroll th:first-child, .ledger-scroll td:first-child,
.ledger-transactions th:nth-child(2), .ledger-transactions td:nth-child(2) { text-align: left; }
.ledger-scroll td small { display: block; margin-top: 4px; color: var(--muted); }
.ledger-scroll td .btn { max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.ledger-pagination { display: flex; gap: 12px; align-items: center; justify-content: end; margin-top: 12px; }
.ledger-detail { display: grid; gap: 14px; overflow-wrap: anywhere; }
.ledger-detail-total { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.ledger-detail-total strong { font-size: 28px; }
.ledger-detail dl, .ledger-detail ol { margin: 0; padding: 0; }
.ledger-detail dl div { display: grid; grid-template-columns: minmax(90px, 35%) minmax(0, 1fr); gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.ledger-detail dt, .ledger-detail time, .ledger-detail li span { color: var(--muted); }
.ledger-detail dd { margin: 0; }
.ledger-detail h3 { margin: 0; }
.ledger-detail li { list-style: none; padding: 10px 0 10px 14px; border-left: 2px solid #c2daf3; display: grid; gap: 3px; }
.ledger-detail .danger { justify-self: start; }
.paid-pricing:not([hidden]) { display: grid; gap: 12px; min-width: 0; }
@media (max-width: 720px) {
  .ledger-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ledger-metrics > div, .ledger-panel, .ledger-filters { padding: 12px; }
}
.checkin-grant input { width: 20px; height: 20px; accent-color: var(--green); }
.checkin-panel-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.checkin-panel-heading h2 { margin: 0; }
.checkin-panel-heading .actions { flex-wrap: wrap; }
.review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: 24px;
  align-items: start;
  margin: 20px 0 28px;
}
.review-info { display: grid; gap: 16px; min-width: 0; }
.review-info h2 { font-size: 18px; }
.review-decision p { margin: 12px 0 16px; color: #526b80; }
.review-decision .actions { flex-wrap: wrap; }
.review-facts dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 20px; }
.review-facts dt, .review-facts figcaption, .review-phone .workspace-preview-heading p { color: #526b80; }
.review-facts dd { margin: 0; overflow-wrap: anywhere; }
.review-facts figure { margin: 16px 0 0; }
.review-facts figure img { width: 112px; height: 112px; object-fit: cover; border-radius: 10px; display: block; margin-bottom: 8px; }
.review-facts figcaption { font-size: 13px; }
.revision-comparison { min-width: 0; }
.revision-comparison table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.revision-comparison th, .revision-comparison td { padding: 10px; text-align: left; vertical-align: top; overflow-wrap: anywhere; white-space: pre-wrap; border-bottom: 1px solid #dde6ef; }
.revision-comparison thead { background: #eff5fc; color: #294962; }
.revision-comparison :is(th, td):first-child { width: 23%; }
.revision-comparison td:last-child { background: #f1f8ff; }
.revision-comparison img { display: block; width: 100%; max-width: 144px; border-radius: 8px; }
@media (max-width: 540px) {
  .revision-comparison th, .revision-comparison td { padding: 8px 6px; font-size: 12px; }
}
.review-phone { min-width: 0; }
.review-phone .workspace-phone iframe { width: 100%; height: clamp(460px, calc(100dvh - 220px), 740px); border-radius: 20px; }
@media (max-width: 1000px) {
  .review-layout { grid-template-columns: minmax(0, 1fr); }
  .review-phone { width: min(100%, 390px); justify-self: center; }
}
.pc-family-checkin { min-width: 0; scroll-margin-top: 76px; }
.pc-family-checkin .btn:disabled { opacity: .55; cursor: not-allowed; }
.family-checkin-controls { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 12px; }
.family-checkin-controls label { display: grid; gap: 6px; min-width: 0; font-weight: 600; }
.family-checkin-controls :is(input, select) { width: 100%; min-width: 0; min-height: 44px; box-sizing: border-box; background: white; font-weight: 400; }
.family-checkin-window { margin: 10px 0 14px; font-size: 13px; }
.family-checkin-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.checkin-filter { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-width: 0; min-height: 54px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; color: #294c69; background: white; text-align: left; font: inherit; cursor: pointer; }
.checkin-filter strong { font-size: 20px; line-height: 1; font-variant-numeric: tabular-nums; }
.checkin-filter-present strong { color: #19613e; }
.checkin-filter-waiting strong { color: #804c0e; }
.checkin-filter[aria-pressed="true"] { border-color: var(--green); background: #eaf4ff; box-shadow: inset 0 0 0 1px var(--green); font-weight: 700; }
.checkin-filter:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.checkin-filter:disabled { opacity: .6; cursor: default; }
.family-checkin-summary { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px 12px; padding: 14px 0 10px; color: var(--muted); font-size: 13px; }
.family-checkin-summary>strong { color: #294c69; }
.family-checkin-list { display: grid; gap: 10px; margin-bottom: 24px; }
.family-checkin-empty { margin: 0; padding: 24px 16px; border: 1px dashed var(--line); border-radius: 12px; background: white; color: var(--muted); text-align: center; }
.pc-family { background: white; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.pc-family>summary { display: flex; align-items: center; gap: 12px; padding: 10px 16px; min-height: 52px; cursor: pointer; }
.pc-family>summary::after { content: ""; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; width: 6px; height: 6px; margin-right: 2px; transform: rotate(45deg); }
.pc-family[open]>summary::after { transform: rotate(225deg); }
.pc-family-contact { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 12px; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.pc-family-contact small { color: var(--muted); font-size: 13px; }
.pc-family-count { flex-shrink: 0; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.pc-checkin-member { display: grid; grid-template-columns: minmax(0, 1fr) 120px auto; align-items: center; gap: 10px 16px; padding: 10px 16px; border-top: 1px solid var(--line); }
.pc-checkin-person { min-width: 0; overflow-wrap: anywhere; }
.pc-checkin-member strong,.pc-checkin-member small { display: block; }
.pc-checkin-member small { color: var(--muted); margin-top: 4px; }
.pc-checkin-member button { min-width: 94px; }
.pc-checkin-state { display: grid; justify-items: start; gap: 2px; }
.checkin-mark { display: inline-flex; align-items: center; gap: 6px; border-radius: 6px; padding: 3px 7px; font-size: 13px; font-weight: 650; white-space: nowrap; }
.checkin-mark::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.checkin-mark.signed { color: #19613e; background: #e5f4ec; }
.checkin-mark.unsigned { color: #804c0e; background: #fbf1df; }
.pc-checkin-state time { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.pc-checkin-add { padding: 10px 18px; border-top: 1px dashed var(--line); }
@media (max-width: 520px) {
  .family-checkin-controls { grid-template-columns: minmax(0, 1fr); }
  .checkin-filter { flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px; }
  .checkin-filter strong { font-size: 18px; }
  .pc-family>summary, .pc-checkin-member { padding-inline: 10px; }
  .pc-checkin-member { grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; }
  .pc-checkin-member button { grid-column: 2; justify-self: end; }
}
.registration-history>summary { cursor: pointer; min-height: 44px; padding: 12px 0; font-weight: 600; }
.brand img {
  background: transparent;
  padding: 0;
  width: 44px;
  height: 44px;
}
.brand small {
  font-size: 12px;
  color: var(--muted);
}
.btn {
  color: #245375;
  min-height: 44px;
}
.btn.primary:hover {
  background: #08529b;
}
.btn:hover,
.icon-btn:hover {
  background: #eff6fd;
}
.btn.primary:hover {
  color: #fff;
}
.nav-item.active {
  color: #075ba8;
  background: #eef6ff;
  box-shadow: inset 3px 0 #fdaf18;
}
.nav-item.active:after {
  display: none;
}
.tag {
  font-size: 12px;
}
.topbar {
  background: #fff;
}
.footer,
.legend,
.sidebar-footer,
.log-list small,
.log-list time {
  font-size: 12px;
}
.course-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.course-top > div:first-child {
  min-width: 0;
}
.course-top .tag + .tag {
  margin-left: 6px;
}
.course-top .course-cover {
  float: none;
  flex: 0 0 76px;
  margin: 0;
}
.cover-placeholder {
  display: grid;
  place-items: center;
  color: #0a63ba;
  background: #fff5dc;
}
.cover-placeholder svg {
  width: 36px;
  height: 36px;
}
.course-time {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding-top: 12px;
}
.course-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--line);
  padding: 20px 0;
  margin-bottom: 24px;
}
.course-summary > div {
  padding-inline: 20px;
  border-right: 1px solid var(--line);
}
.course-summary > div:last-child {
  border-right: 0;
}
.course-summary span {
  display: block;
  font-size: 13px;
  color: var(--muted);
}
.course-summary strong {
  display: block;
  font-size: 28px;
  font-variant-numeric: tabular-nums;
  margin-top: 6px;
}
.course-filter {
  display: flex;
  align-items: center;
  gap: 12px;
}
.course-filter select {
  width: auto;
  margin: 0;
}
.toolbar .search input {
  min-height: 44px;
  font-size: 14px;
}
.toolbar .search svg {
  top: 14px;
}
.approval-summary {
  padding: 12px 0 22px;
  display: flex;
  gap: 10px;
  align-items: center;
  color: #0a63ba;
}
.approval-summary strong {
  margin-left: 8px;
  font-size: 20px;
}
.attendance-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 0;
  border-block: 1px solid var(--line);
}
.attendance-summary > div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #216c46;
}
.attendance-summary > span,
.lifecycle-note {
  font-size: 13px;
  color: var(--muted);
}
.lifecycle-note {
  margin-bottom: 18px;
}
.waiting-page {
  max-width: 560px;
  margin: 64px auto;
  padding: 24px;
  text-align: center;
}
.waiting-page h1 {
  font-size: 28px;
  margin: 18px 0 12px;
}
.waiting-page p {
  margin: 8px 0;
  overflow-wrap: anywhere;
}
.waiting-page .btn {
  margin-top: 28px;
}
.waiting-symbol,
.binding-symbol {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  background: #fff5dc;
  color: #0a63ba;
  border-radius: 8px;
  margin-bottom: 24px;
}
.waiting-symbol {
  margin-inline: auto;
}
.waiting-symbol svg,
.binding-symbol svg {
  width: 32px;
  height: 32px;
}
#approval-feedback {
  margin-top: 20px;
  color: var(--muted);
}
.binding-section {
  max-width: 620px;
  padding-top: 12px;
}
.binding-section p {
  margin: 14px 0 24px;
}
.login-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.account-links {
  flex-wrap: wrap;
}
@media (max-width: 540px) {
  .course-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0;
  }
  .course-summary > div {
    padding: 16px;
  }
  .course-summary > div:nth-child(2) {
    border-right: 0;
  }
  .course-summary > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .course-filter {
    width: 100%;
  }
  .course-filter select {
    flex: 1;
  }
  .waiting-page {
    margin-top: 32px;
  }
}
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}
.course-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  min-width: 0;
}
.course-box h2 {
  margin: 12px 0;
  font-size: 19px;
  overflow-wrap: anywhere;
}
.course-box p {
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0;
}
.course-box .actions {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 16px;
}
.course-box .actions .btn {
  flex: 1;
  min-height: 44px;
}
.facts {
  display: flex;
  gap: 20px;
  margin: 18px 0;
}
.facts b {
  display: block;
  font-size: 25px;
  color: #193b55;
  font-variant-numeric: tabular-nums;
}
.facts b small {
  font-size: 13px;
  font-weight: 400;
}
.facts span {
  font-size: 12px;
  color: var(--muted);
}
.roster-list {
  display: grid;
  gap: 0;
}
.roster-person {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.roster-person .person {
  flex: 1;
  min-width: 140px;
}
.person strong {
  display: block;
  font-size: 16px;
}
.person small {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.user-filters > label:first-child {
  flex: 1;
  min-width: 180px;
}
.user-filters > label {
  min-width: 140px;
}
.user-row .actions {
  flex-wrap: wrap;
}
.user-row .btn {
  min-height: 44px;
}
.assignment-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.assignment-section h3 {
  font-size: 16px;
}
.lesson-fields {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-bottom: 24px;
}
.lesson-fields h3 {
  margin-bottom: 12px;
}
.lesson-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.lesson-heading h3 {
  margin: 0;
}
.lesson-remove {
  width: 44px;
  height: 44px;
  padding: 0;
  flex-shrink: 0;
  color: #a43e32;
}
.lesson-remove:hover {
  color: #a43e32;
  background: #fff0ec;
}
.lesson-fields .form-row {
  margin-bottom: 12px;
}
.form [aria-invalid="true"] {
  border-color: #b42318;
  box-shadow: 0 0 0 1px #b42318;
}
.form .field-error {
  display: block;
  color: #b42318;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  margin-top: 6px;
  overflow-wrap: anywhere;
}
.form .form-error {
  color: #b42318;
  min-width: 0;
}
.form .form-error[hidden] {
  display: none;
}
.form-error .error-link {
  display: block;
  width: 100%;
  padding: 8px 0;
  min-height: 44px;
  color: inherit;
  background: none;
  border: 0;
  text-align: left;
  text-decoration: underline;
  line-height: 1.6;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.form label {
  scroll-margin-block: 24px;
}
.roster-head {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.roster-head label {
  flex: 1;
  min-width: 200px;
}
.editor-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}
.editor-steps button {
  min-height: 48px;
  padding: 8px 4px;
  border: 0;
  border-radius: 4px;
  background: #f3f6fa;
  color: #45576d;
  font-size: 14px;
}
.editor-steps button[aria-current="step"] {
  color: #075aa7;
  background: #eaf4ff;
  box-shadow: inset 0 -3px #187bc7;
}
.editor-steps button span {
  margin-right: 8px;
  font-weight: 700;
}
.step-panel {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.step-panel[hidden],
.course-editor [hidden] {
  display: none !important;
}
.step-panel h3 {
  margin: 0;
  font-size: 16px;
}
.step-panel h3 small {
  font-weight: 400;
  color: var(--muted);
  font-size: 13px;
}
.cover-upload {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 8px;
}
.cover-picker {
  position: relative;
  width: 136px;
  height: 136px;
  flex: 0 0 136px;
  border: 1px dashed #96afc5;
  border-radius: 8px;
  background: #f2f7ff;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  color: #175989;
  padding: 0;
  overflow: hidden;
}
.cover-picker img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover-upload p {
  font-size: 13px;
  margin: 8px 0;
}
.course-cover {
  width: 76px;
  height: 76px;
  object-fit: cover;
  float: right;
  margin: 0 0 12px 12px;
  border-radius: 6px;
}
.review-cover {
  display: block;
  width: 180px;
  height: 180px;
  object-fit: cover;
  margin: 20px 0;
}
.article-details {
  border-block: 1px solid var(--line);
  padding: 14px 0;
}
.article-details summary,
.deadline-settings summary {
  cursor: pointer;
  min-height: 32px;
  font-weight: 600;
}
.published-article {
  max-width: 680px;
  overflow-wrap: anywhere;
}
.editor-section-title,
.step-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.step-navigation {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.course-editor .form-footer {
  margin-top: 0;
  padding-top: 0;
  flex-wrap: wrap;
}
.article-edit,
.article-preview {
  min-width: 0;
}
.article-preview {
  max-width: 390px;
  width: 100%;
  margin: 0 auto;
  border-inline: 1px solid var(--line);
}
.course-editor .ql-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-color: #b5c6d4;
  border-radius: 6px 6px 0 0;
  padding: 6px;
  background: #f5f8fc;
}
.course-editor .ql-toolbar .ql-formats {
  margin: 0;
  display: flex;
  align-items: center;
}
.course-editor .ql-toolbar button {
  height: 40px;
  width: 40px;
  padding: 10px;
  min-height: 40px;
  border-radius: 4px;
}
.course-editor .ql-toolbar .ql-picker {
  height: 40px;
}
.course-editor .ql-picker-label {
  display: flex;
  align-items: center;
}
.course-editor .ql-container {
  font: inherit;
  border-color: #b5c6d4;
  border-radius: 0 0 6px 6px;
}
.course-editor .ql-editor {
  min-height: 320px;
  max-height: 540px;
  line-height: 1.8;
  padding: 20px;
  overflow-wrap: anywhere;
}
.course-editor .ql-editor img {
  max-width: 100%;
  height: auto;
}
.course-editor .ql-snow .ql-picker.ql-header .ql-picker-label::before,
.course-editor .ql-snow .ql-picker.ql-header .ql-picker-item::before {
  content: "正文";
}
.course-editor .ql-snow .ql-picker.ql-header [data-value="2"]::before {
  content: "二级标题";
}
.course-editor .ql-snow .ql-picker.ql-header [data-value="3"]::before {
  content: "三级标题";
}
.article-count {
  margin: 0;
  font-size: 12px;
}
.upload-status {
  padding: 12px;
  background: #fff5d9;
  color: #745307;
}
.deadline-settings .form-row {
  margin-top: 12px;
}
@media (max-width: 540px) {
  .cover-upload {
    align-items: flex-start;
    gap: 12px;
  }
  .cover-picker {
    width: 112px;
    height: 112px;
    flex-basis: 112px;
  }
  .editor-steps {
    gap: 4px;
  }
  .editor-steps button {
    font-size: 13px;
  }
  .editor-steps button span {
    margin-right: 4px;
  }
  .course-editor .ql-toolbar button {
    width: 44px;
    height: 44px;
  }
  .course-editor .ql-editor {
    padding: 14px;
  }
}
.wide-dialog {
  width: min(820px, calc(100vw - 24px));
}
.checkline {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  min-height: 44px;
}
.checkline input {
  width: 20px;
  height: 20px;
  min-height: 20px;
}
.login-top {
  border-bottom: 1px solid var(--line);
  padding: 24px max(24px, calc((100vw - 1080px) / 2));
  background: #fff;
}
.pilot-login {
  max-width: 440px;
  padding: 48px 24px;
  margin: auto;
}
.pilot-login h1 {
  font-size: 26px;
  margin: 20px 0 8px;
}
.pilot-login .form {
  margin-top: 28px;
}
.auth-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.auth-switch a {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}
.auth-switch a[aria-current="page"] {
  color: var(--green);
  border-bottom-color: #fdaf18;
}
.account-links {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  font-size: 13px;
  flex-wrap: wrap;
}
.legend {
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0;
}
.topic-option {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.code-output input {
  font-size: 14px;
}
.view-error {
  padding: 24px;
  border-left: 3px solid #b85245;
  background: #fff1ee;
}
.sidebar nav {
  margin-top: 26px;
}
.desktop-table {
  display: block;
}
.mobile-person {
  display: none;
}
@media (max-width: 720px) {
  .course-grid {
    grid-template-columns: 1fr;
  }
  .topbar {
    height: auto;
    min-height: 54px;
    flex-wrap: wrap;
    padding: 10px 18px;
  }
  .user .username {
    display: block;
  }
  .nav-item {
    min-height: 44px;
    font-size: 13px;
  }
  .icon-btn {
    width: 44px;
    height: 44px;
  }
  .btn.small {
    min-height: 44px;
    font-size: 13px;
  }
  .dialog-body {
    padding: 18px;
  }
  .roster-person > .btn {
    min-width: 90px;
  }
  .crumb {
    display: none;
  }
  .page-title .actions {
    justify-content: flex-end;
  }
  .desktop-table {
    display: none;
  }
  .mobile-person {
    display: block;
  }
  .log-list time {
    white-space: normal;
    min-width: 70px;
  }
  .pilot-login {
    padding-top: 20px;
  }
  .metrics {
    margin-top: 12px;
  }
}

.onsite-guardian{border:1px solid #d8eaf6;border-radius:16px;padding:16px;background:#f2faff}.onsite-guardian legend{font-weight:700;color:#00255a}.onsite-guardian .checkline{min-height:44px;align-items:flex-start;line-height:1.6}.onsite-guardian[hidden]{display:none}
.publisher-login { width: min(100% - 32px, 460px); margin: clamp(28px, 7vw, 88px) auto; }
.publisher-login h1 { margin: 12px 0 6px; }
.login-option { min-width: 0; padding: clamp(18px, 4vw, 32px); border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.login-option .form { margin-top: 20px; }
.login-option .btn, .scan-box .btn, .publisher-contact .btn, .user-pagination .btn { min-height: 44px; }
.scan-box { display: grid; justify-items: start; gap: 12px; margin: 18px 0; }
.scan-box img { width: min(100%, 192px); aspect-ratio: 1; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.scan-box img[hidden] { display: none; }
.scan-box p { margin: 0; }
.publisher-login .scan-box { justify-items: center; text-align: center; }
.publisher-contact { max-width: 560px; }
.publisher-onboarding { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
.team-intro { margin: 0 0 20px; }
.team-directory { border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; }
.team-directory .roster-person { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.team-directory .roster-person:last-child { border-bottom: 0; }
.team-directory .btn { min-height: 44px; }
.team-empty { padding: 24px; }
.team-empty p { margin: 6px 0 0; }
.user-pagination { margin-top: 16px; justify-content: flex-end; }
.account-dossier { display: grid; gap: 16px; }
.account-dossier section { border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.account-dossier h3 { margin-top: 0; }
.account-dossier dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 18px; margin: 0; }
.account-dossier dd { margin: 0; overflow-wrap: anywhere; }
.account-dossier ul { padding-inline-start: 18px; margin: 8px 0 14px; }
.account-dossier li { padding: 5px 0; }
.account-dossier small { color: var(--muted); }
.account-dossier .actions { margin-top: 6px; }
.dossier-account-contact { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.dossier-account-contact h4 { margin: 0; }
.dossier-child-heading, .dossier-child-title { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.dossier-child-heading h3 { margin:0; }
.account-dossier .dossier-child-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%, 260px),1fr)); gap:12px; list-style:none; padding:0; margin:12px 0 0; }
.account-dossier .dossier-child { min-width:0; padding:12px; background:#f6f8fb; border:1px solid var(--line); border-radius:10px; }
.dossier-child-title { justify-content:space-between; margin-bottom:8px; overflow-wrap:anywhere; }
.account-registration { padding: 10px 0; border-top: 1px solid var(--line); }
.account-registration summary { cursor: pointer; padding: 5px 0; }
.account-registration summary span { display: block; margin-top: 4px; color: var(--muted); }
@media (max-width: 640px) {
  .account-dossier dl { grid-template-columns: 1fr; gap: 4px; }
  .account-dossier dd { margin-bottom: 6px; }
}
.admin-shell .sidebar { background:#112e4d; color:#f5f9ff; border-color:#112e4d; }
.admin-shell .sidebar .brand, .admin-shell .sidebar .nav-item { color:#f5f9ff; }
.admin-shell .sidebar .brand small, .admin-shell .sidebar-footer, .admin-shell .sidebar .nav-label { color:#b9cee1; }
.admin-shell .sidebar .nav-item.active { background:#22496f; color:#fff; }
.admin-shell .sidebar .nav-item:hover { background:#1c4163; }
.workspace-nav-group+.workspace-nav-group { margin-top:22px; }
.workspace-nav-group .nav-label { display:block; margin:0 12px 8px; }
.admin-shell .topbar .crumb span { margin:0 7px; }
.workspace-intro { margin: -8px 0 22px; }
.workspace-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin:0 0 24px; }
.workspace-metric { text-align:left; padding:18px 20px; min-height:104px; border:1px solid var(--line); border-radius:14px; color:inherit; background:#fff; cursor:pointer; }
.workspace-metric:hover { border-color:#0b639a; }
.workspace-metric span { display:flex; align-items:center; gap:10px; font-size:14px; }
.workspace-metric svg { width:18px; height:18px; }
.workspace-metric strong { display:block; font-size:29px; margin-top:7px; }
.workspace-panel { padding:20px; border:1px solid var(--line); border-radius:14px; background:#fff; }
.workspace-panel .form { max-width:480px; margin-top:16px; }
.workspace-table { max-width:100%; overflow:auto; border:1px solid var(--line); border-radius:12px; background:#fff; }
.workspace-table table { white-space:normal; }
.workspace-table th { font-size:13px; color:#34556e; background:#f0f6fa; }
.workspace-table td { font-size:14px; min-width:90px; }
.workspace-table td strong { color:#14344f; }
.workspace-table small { font-size:12px; color:#47647a; }
.workspace-table .btn { min-height:44px; white-space:nowrap; }
.admin-course-table { display:block!important; }
.team-search { display:block; max-width:380px; margin-bottom:16px; }
.team-search input { margin-top:6px; }
.team-breadcrumb { margin-bottom:14px; }
.workspace-tabs { display:flex; gap:7px; flex-wrap:wrap; margin-bottom:18px; }
.workspace-tabs button { min-height:44px; padding:0 14px; border:1px solid var(--line); border-radius:8px; background:#fff; color:#214664; cursor:pointer; }
.workspace-tabs button[aria-current] { border-color:#176595; background:#e6f2fb; font-weight:700; }
.workspace-invite-options { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:16px; }
.workspace-invite-options section { border:1px solid var(--line); border-radius:12px; padding:16px; }
.workspace-invite-options h3 { margin:0 0 8px; }
.workspace-match { display:grid; gap:8px; margin-top:14px; padding:12px; border-radius:10px; background:#edf5fb; }
.workspace-match small { color:#34556e; }
.workspace-match small { display:block; margin-top:4px; }
.publisher-setup { min-height:100vh; }
.setup-header { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px clamp(18px,4vw,56px); border-bottom:1px solid var(--line); background:#fff; }
.setup-header .brand { padding:0; }
.setup-main { width:min(100% - 36px,760px); margin:0 auto; padding:clamp(28px,7vw,76px) 0; }
.setup-steps { list-style:none; display:flex; flex-wrap:wrap; gap:12px 24px; padding:0; margin:0 0 24px; }
.setup-steps li { display:flex; align-items:center; gap:8px; color:#4b667d; }
.setup-steps li span { display:grid; place-items:center; width:28px; height:28px; border:1px solid var(--line); border-radius:50%; background:#fff; font-weight:700; }
.setup-steps [aria-current] { color:#0b5da8; font-weight:700; }
.setup-steps [aria-current] span { background:#0b5da8; border-color:#0b5da8; color:#fff; }
.setup-main h1 { font-size:clamp(25px,4vw,34px); margin:0 0 8px; }
.setup-intro,.setup-choices p { color:#4b667d; line-height:1.65; margin:0; }
.setup-contact { max-width:560px; padding:clamp(20px,4vw,36px); }
.setup-contact .tag { margin-bottom:14px; }
.setup-contact .btn,.setup-choices .btn,.setup-later .btn { min-height:44px; }
.setup-choices { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin-top:24px; }
.setup-choices section { display:flex; flex-direction:column; align-items:flex-start; gap:12px; padding:clamp(18px,3vw,28px); }
.setup-choices h2,.team-request-list h2 { margin:0; font-size:18px; }
.setup-choices p { flex:1; }
.setup-symbol { display:grid; place-items:center; width:44px; height:44px; border-radius:10px; background:#e4f2fb; color:#0b5da8; }
.setup-later { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-top:20px; color:#4b667d; }
.team-code { display:inline-flex; flex-wrap:wrap; align-items:center; gap:8px; }
.team-code code { color:#214664; font-size:13px; }
.team-code .btn { padding:4px 8px; min-height:32px; }
.team-request-list { margin-top:26px; }
.team-request-list h2 { margin-bottom:12px; }
.publisher-team-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr));
  gap:16px;
}
.publisher-team-card { display:flex; flex-direction:column; align-items:stretch; gap:14px; max-width:560px; }
.publisher-team-head { display:flex; align-items:center; gap:12px; min-width:0; }
.publisher-team-head .workbench-symbol { flex-shrink:0; }
.publisher-team-head h2 { margin:0; font-size:18px; overflow-wrap:anywhere; }
.publisher-team-head p { margin:3px 0 0; }
.publisher-team-code {
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px 12px;
  padding:8px 12px; border-radius:10px; background:#f0f6fa;
}
.publisher-team-rights { display:grid; gap:7px; font-size:13px; }
.publisher-team-card > .btn { align-self:flex-start; }
.team-permission-tags { display:flex; flex-wrap:wrap; gap:5px; }
.team-permission-tags .tag { margin:0; }
.team-permission-field { display:grid; gap:8px; min-width:0; border:0; margin:0; padding:0; }
.team-permission-field legend { padding:0; margin-bottom:8px; color:#14344f; font-weight:700; }
.team-permission-field label.team-permission-option {
  display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:12px; min-height:52px;
  padding:9px 12px; border:1px solid var(--line); border-radius:10px; background:#fff; cursor:pointer;
}
.team-permission-field .team-permission-option:has(input:checked) { background:#edf6fc; border-color:#9dbfdf; }
.team-permission-option input[type="checkbox"] { margin:0; width:18px; height:18px; accent-color:#1166a8; }
.team-permission-option small { display:block; color:#47647a; margin-top:2px; }
@media (max-width:580px) {
  .setup-choices { grid-template-columns:1fr; }
}
@media(max-width:720px) {
  .workspace-nav-group, .workspace-nav-group+.workspace-nav-group { display:flex; margin:0; gap:6px; }
  .workspace-nav-group .nav-label { display:none; }
  .workspace-metrics { grid-template-columns:1fr; gap:8px; }
  .workspace-metric { min-height:62px; display:flex; align-items:center; justify-content:space-between; }
  .workspace-metric strong { margin:0; }
  .workspace-invite-options { grid-template-columns:1fr; }
}

.workbench {
  --workbench-navy: #0b264d;
  --workbench-blue: #175fb1;
  --workbench-sky: #eaf4ff;
  --workbench-gold: #ffbd3b;
  --workbench-shadow: 0 6px 20px rgba(11, 38, 77, .055);
  background: #f4f7fb;
}
.workbench .sidebar {
  background: var(--workbench-navy);
  border-color: var(--workbench-navy);
  color: #fff;
  padding-top: 23px;
  overflow: auto;
}
.workbench .sidebar .brand { color: #fff; font-size: 16px; }
.workbench .sidebar .brand img {
  flex: none; width: 42px; height: 42px; object-fit: contain;
  padding: 3px; border-radius: 12px; background: #fff;
}
.workbench .sidebar .brand small,
.workbench .sidebar .nav-label,
.workbench .sidebar-footer { color: #bdcce1; }
.workbench .sidebar-footer { border-color: #466285; }
.workbench .sidebar nav { margin-top: 21px; }
.workbench .sidebar .nav-item {
  width: 100%; min-height: 44px; color: #e1ebf8; border-radius: 10px;
  transition: background-color .15s, color .15s;
}
.workbench .sidebar .nav-item:hover { background: #1a3b64; color: #fff; }
.workbench .sidebar .nav-item.active { background: #244b78; color: #fff; box-shadow: inset 3px 0 var(--workbench-gold); }
.workbench .sidebar .nav-item:focus-visible { outline: 2px solid #a9cff5; outline-offset: -3px; }
.workbench .sidebar .nav-item:not(.active) svg { color: #b8cbe4; }
.team-join-badge {
  margin-left: auto; padding: 2px 7px; border-radius: 999px;
  background: var(--workbench-gold); color: var(--workbench-navy);
  font-size: 12px; font-weight: 750; line-height: 18px; white-space: nowrap;
}
.team-join-live {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.workbench .review-badge { background: #c32b3b; color: #fff; }
.team-join-notice {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin-bottom: 16px; padding: 14px 16px;
  border: 1px solid #ecd9ad; border-left: 4px solid var(--workbench-gold);
  border-radius: 12px; background: #fff7e4;
}
.team-join-notice[hidden] { display: none; }
.team-join-notice > div { flex: 1 1 180px; min-width: 0; overflow-wrap: anywhere; }
.team-join-notice .workbench-symbol { background: #ffedc3; color: #765016; }
.team-join-notice h2 { margin: 0; font-size: 17px; color: var(--workbench-navy); }
.team-join-notice p { margin: 3px 0 0; }
.team-join-notice .btn { min-height: 44px; margin-left: auto; }
.workbench-context {
  margin-top: 20px; padding: 8px 10px; border: 1px solid #466285;
  border-radius: 10px; display: flex; align-items: center; gap: 8px;
  color: #e8f3ff; background: #15365e; font-size: 12px;
}
.workbench-context svg { width: 16px; height: 16px; }
.workbench .topbar { min-height: 66px; height: auto; background: #fff; }
.workbench-avatar {
  display: grid; place-items: center; width: 32px; height: 32px;
  background: var(--workbench-sky); color: #124d91; font-weight: 700; border-radius: 10px;
}
.workbench .content:not(:has(.course-workspace)) { max-width: 1480px; padding-top: 26px; }
.workbench .page-title { align-items: flex-end; margin-bottom: 20px; }
.workbench-description { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.workbench .btn { border-radius: 9px; }
.workbench .btn.primary { background: var(--workbench-blue); border-color: var(--workbench-blue); }
.workbench .btn.primary:hover { background: #124d91; }
.workbench-hero {
  position: relative; isolation: isolate; display: flex; align-items: center;
  overflow: hidden; min-height: 176px; padding: 22px 28px; margin-bottom: 16px;
  border: 1px solid #cfdef0; border-radius: 17px; background: #e7f1ff;
}
.workbench-hero > div { max-width: 69%; z-index: 1; }
.workbench-kicker { font-size: 12px; font-weight: 700; letter-spacing: .4px; }
.workbench-kicker::before {
  content: ""; display: inline-block; width: 7px; height: 7px;
  margin-right: 7px; border-radius: 50%; background: #ffbd3b; vertical-align: 2px;
}
.workbench-hero h2 { margin: 6px 0 4px; color: var(--workbench-navy); font-size: 26px; }
.workbench-hero p { margin: 0 0 12px; color: #3c5675; }
.workbench-art { position: absolute; right: 4%; bottom: -3px; width: 31%; max-width: 310px; height: auto; }
.workbench-metrics.workspace-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 16px;
}
.workbench-metrics .workspace-metric {
  position: relative; display: block; padding: 14px 48px 14px 14px; min-height: 99px;
  box-shadow: var(--workbench-shadow);
}
.workbench-metrics .workspace-metric strong { margin: 4px 0 1px; line-height: 1.18; color: var(--workbench-navy); }
.workbench-metrics .workspace-metric small { color: var(--muted); font-size: 12px; }
.workbench-metric-label { color: var(--workbench-navy); font-weight: 700; }
.workbench-symbol {
  display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px;
  border-radius: 9px; background: var(--workbench-sky); color: #124d91;
}
.workbench-symbol svg { width: 17px; height: 17px; }
.workspace-metric .workbench-symbol { position: absolute; right: 12px; top: 13px; }
.workspace-metric:nth-child(2) .workbench-symbol { background: #fff2d5; color: #765016; }
.workspace-metric:nth-child(3) .workbench-symbol { background: #e6f4eb; color: #226647; }
.workbench-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.workbench-grid .workspace-panel, .workbench-recent { min-width: 0; box-shadow: var(--workbench-shadow); }
.workbench-grid h2, .workbench-recent h2 { margin: 0; font-size: 17px; }
.workbench-chart { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding-top: 10px; text-align: center; font-size: 12px; }
.workbench-bar-track { position: relative; display: grid; align-items: end; justify-items: center; height: 100px; padding-bottom: 3px; border-bottom: 1px solid var(--line); }
.workbench-bar-track span { position: absolute; bottom: 0; width: min(62%, 43px); height: var(--bar-size); border-radius: 7px 7px 0 0; background: #cfe5ff; }
.workbench-bar-track b { position: relative; color: var(--workbench-navy); }
.workbench-queue { margin: 0; padding: 0; list-style: none; }
.workbench-queue li { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-top: 1px solid var(--line); }
.workbench-queue li > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.workbench-queue small, .workbench-course small, .workbench .workspace-table td > small { display: block; }
.workbench-queue small { color: var(--muted); }
.workbench-list { border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--workbench-shadow); }
.workbench-list .toolbar { justify-content: flex-start; gap: 12px; margin: 0; padding: 14px; border-bottom: 1px solid var(--line); }
.workbench-list .toolbar .search { width: min(100%, 340px); max-width: none; }
.workbench-list #course-count { margin-left: auto; white-space: nowrap; }
.workbench-course { display: flex; align-items: center; gap: 10px; min-width: 0; }
.workbench-course img { flex: none; width: 38px; height: 38px; border-radius: 8px; object-fit: cover; }
.workbench-course > div { min-width: 0; overflow-wrap: anywhere; }
.workbench-status { display: flex; flex-wrap: wrap; gap: 4px; }
.activity-unlist-at { flex-basis: 100%; }
.course-unlist-dialog[open] { width:min(calc(100% - 24px),540px); }
.course-unlist-summary {
  padding:10px 12px; border-radius:9px; background:#eff5fa; color:#0b264d; overflow-wrap:anywhere;
}
.course-unlist-summary small, .course-unlist-option small { display:block; margin-top:2px; color:#49627a; font-size:12px; }
.course-unlist-options { display:grid; gap:7px; min-width:0; margin:0; padding:0; border:0; }
.course-unlist-options legend { padding:0; margin-bottom:6px; font-weight:700; }
.course-unlist-form .course-unlist-option {
  display:flex; align-items:center; gap:10px; min-height:50px; padding:7px 10px;
  border:1px solid var(--line); border-radius:9px; cursor:pointer;
}
.course-unlist-option:has(input:checked) { background:#eaf3fb; border-color:#7faad0; }
.course-unlist-option input { flex:0 0 16px; width:16px; min-height:16px; height:16px; padding:0; margin:0; accent-color:#175d9c; }
.course-unlist-time[hidden] { display:none; }
.course-unlist-note { margin:0; font-size:13px; color:#49627a; }
.workbench-status .tag:is([data-state="draft"], [data-state="ended"]) { color: #43566e; background: #eef2f7; }
.workbench-status .tag[data-state="已下架"] { color: #76502a; background: #f6eadc; }
.workbench-status .tag:is([data-state="pending"], [data-state="图文待审核"], [data-state="待开课"]) { color: #745314; background: #fff4da; }
.workbench-status .tag:is([data-state="cancelled"], [data-state="rejected"]) { color: #963838; background: #fff0ef; }
.workbench-status .tag:is([data-state="recruiting"], [data-state="confirmed"], [data-state="running"]) { color: #226647; background: #e6f4eb; }
.course-status-bar {
  display: flex; flex-wrap: wrap; align-items: end; gap: 0 10px;
  padding: 0 14px; border-bottom: 1px solid var(--line);
}
.course-status-bar button {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  min-height: 48px; border: 0; border-bottom: 3px solid transparent; padding: 0 8px;
  background: transparent; color: #46627a; white-space: nowrap;
}
.course-status-bar button span {
  min-width: 20px; padding: 0 5px; border-radius: 6px; text-align: center;
  background: #edf2f7; color: #425d73; font-size: 12px; font-variant-numeric: tabular-nums;
}
.course-status-bar button[aria-pressed="true"] { border-color: #1660a6; color: #0d4d87; font-weight: 700; }
.course-status-bar button[aria-pressed="true"] span { background: #dfeefd; color: #184f86; }
.course-status-bar button:hover { color: #0d4d87; background: #f2f7fc; }
.workbench-list .toolbar.activity-tools { padding: 12px 16px; gap: 8px 10px; }
.activity-tools .course-filter select { width: 144px; }
.activity-directory { container: activity-directory / inline-size; }
.activity-rows, .team-record-list { list-style: none; padding: 0; margin: 0; }
.activity-row {
  display: grid;
  grid-template-columns: minmax(0, 2.3fr) minmax(0, 1.4fr) minmax(76px, .55fr) minmax(92px, .8fr) var(--activity-action-width, 196px);
  align-items: center; gap: 12px; padding: 12px 16px;
}
.activity-directory-reviews { --activity-action-width: 118px; }
.activity-rows > li + li { border-top: 1px solid var(--line); }
.activity-rows > li:last-child { border-end-start-radius:14px; border-end-end-radius:14px; }
.activity-rows > li:hover, .activity-rows > li:focus-within { background: #f8fbfe; }
.activity-row-open { cursor: pointer; }
.activity-directory:is(.activity-directory-courses, .activity-directory-team) { --activity-action-width: 120px; }
.activity-list-labels { background: #f2f6fa; color: #35566f; font-size: 13px; font-weight: 600; }
.activity-list-labels > :last-child { text-align: center; }
.activity-row strong { color: var(--workbench-navy); }
.activity-row small, .team-record-list small, .team-member-person small {
  display: block; color: var(--muted); font-size: 12px;
}
.activity-session, .activity-enrollment { overflow-wrap: anywhere; }
.activity-session strong, .activity-enrollment strong { font-variant-numeric: tabular-nums; }
.activity-row .workbench-course strong { display: block; line-height: 1.45; }
.activity-row .workbench-course small, .activity-session small { margin-top: 2px; }
.activity-enrollment-label {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.activity-row-actions, .team-record-actions, .team-member-actions {
  display: flex; justify-content: flex-end; align-items: center; gap: 8px;
}
.activity-row-actions > .btn { width: 116px; }
.activity-row-actions > .activity-detail-link { width: auto; padding-inline: 12px; color: #145b94; }
.activity-row-actions > .activity-detail-link:hover { background: var(--workbench-sky); }
.activity-row-actions > .row-menu > summary { width: 72px; padding-inline: 6px; }
.activity-row-actions > .btn { justify-content: center; padding-inline: 8px; white-space: nowrap; }
.activity-row-actions .btn { gap: 6px; }
.activity-row-actions .row-menu-items { min-width: 184px; }
.activity-row-actions .row-menu[open] > summary { background: var(--workbench-sky); border-color: #9ebfdf; }
.workbench .btn.workspace-action { border-color: transparent; background: transparent; color: #195a94; }
.workbench .btn.workspace-action:hover { background: #eaf3fc; }
.workbench .btn.row-primary { background: var(--workbench-sky); color: #0e5188; border-color: #ccdff1; }
.workbench .btn.row-primary:hover { background: #dceeff; }
.row-menu { position: relative; flex: none; }
.row-menu summary { list-style: none; justify-content: center; cursor: pointer; white-space: nowrap; }
.row-menu summary::-webkit-details-marker { display: none; }
.row-menu summary:focus-visible, .team-management-tabs button:focus-visible {
  outline: 2px solid #0b62ab; outline-offset: 2px;
}
.row-menu-items {
  position: absolute; z-index: 12; inset-inline-end: 0; inset-block-start: calc(100% + 5px);
  display: grid; align-content: start; gap: 2px; min-width: 160px; padding: 5px;
  max-height: var(--row-menu-max-height, calc(100dvh - 24px)); overflow-y: auto; overscroll-behavior: contain;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px #0b264d26;
}
.row-menu-above .row-menu-items { inset-block: auto calc(100% + 5px); }
.row-menu-items .btn { width: 100%; justify-content: flex-start; border-color: transparent; white-space: nowrap; }
.row-menu-items .btn:focus-visible { outline-offset: -2px; }
.row-menu-items hr { width: 100%; margin: 3px 0; border: 0; border-top: 1px solid var(--line); }
.row-menu-items .btn.danger { color: #a02c26; }
.dialog-course-back.btn { border-color: transparent; color: #145b94; background: transparent; padding: 4px 8px; margin-inline-start: -8px; }
.dialog-course-back.btn:hover { background: #e7f5ff; }
.activity-detail-dialog[open] {
  --detail-navy: #00255a;
  --detail-sky: #e7f5ff;
  --detail-border: #dae8f1;
  --detail-ink: #294b65;
  --detail-muted: #526b80;
  display: flex; flex-direction: column; overflow: hidden;
  width: min(720px, calc(100% - 24px)); max-height: calc(100dvh - 24px);
  border-color: var(--detail-border); border-radius: 20px;
}
.activity-detail-dialog::backdrop { background: #00255a66; }
.activity-detail-dialog .dialog-head {
  flex: none; padding: 9px clamp(14px, 3vw, 24px); background: #fff; border-color: var(--detail-border);
}
.activity-detail-dialog .dialog-head h2 { margin: 0; color: var(--detail-navy); }
.activity-detail-dialog .dialog-body {
  min-height: 0; padding: clamp(12px, 3vw, 20px);
  overflow-y: auto; overscroll-behavior: contain; background: #f2f9fe;
}
.activity-detail { display: grid; gap: 12px; color: var(--detail-ink); }
.activity-detail-hero {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center;
  padding: clamp(12px, 3vw, 18px); border: 1px solid var(--detail-border);
  border-radius: 16px; background: linear-gradient(110deg, var(--detail-sky), #f5fbff);
}
.activity-detail-cover {
  display: block; inline-size: clamp(48px, 10vw, 78px); aspect-ratio: 1;
  object-fit: cover; border-radius: 14px;
}
.activity-detail-placeholder { display: grid; place-items: center; color: #1473b6; background: #fff; }
.activity-detail-placeholder svg { width: 24px; height: 24px; }
.activity-detail-hero h3 {
  margin: 0; color: var(--detail-navy); font-size: clamp(18px, 3vw, 24px);
  line-height: 1.42; text-wrap: pretty; overflow-wrap: anywhere;
}
.activity-detail-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 8px; color: var(--detail-muted); }
.activity-detail-facts, .activity-detail-operations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.activity-detail-facts { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
.activity-detail-operations > :only-child { grid-column: 1 / -1; }
.activity-detail-card {
  min-width: 0; padding: clamp(12px, 2.7vw, 16px);
  border: 1px solid var(--detail-border); border-radius: 14px; background: #fff;
}
.activity-detail-card h3 {
  display: flex; align-items: center; gap: 7px;
  margin: 0 0 9px; color: var(--detail-navy); font-size: 15px;
}
.activity-detail-card h3 svg, .activity-detail-location svg, .activity-detail-note svg {
  width: 16px; height: 16px; flex: none; color: #1473b6;
}
.activity-detail-card p { margin: 0; color: var(--detail-muted); }
.activity-detail-schedule > strong { color: var(--detail-navy); font-variant-numeric: tabular-nums; }
.activity-detail-card .activity-detail-location { display: flex; align-items: baseline; gap: 5px; margin-top: 3px; }
.activity-detail-location svg { align-self: center; margin-inline-start: -2px; }
.activity-detail-count strong { color: var(--detail-navy); font-size: clamp(24px, 4vw, 32px); line-height: 1.2; }
.activity-detail-card .activity-detail-count { margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.activity-detail-lessons { margin-top: 4px; }
.activity-detail-lessons summary {
  display: flex; align-items: center; gap: 5px; min-height: 44px; width: fit-content;
  color: #145b94; font-weight: 600; cursor: pointer; list-style: none;
}
.activity-detail-lessons summary::-webkit-details-marker { display: none; }
.activity-detail-lessons summary svg { width: 15px; height: 15px; }
.activity-detail-lessons[open] summary svg { transform: rotate(180deg); }
.activity-detail-lessons ol { margin: 0; padding-inline-start: 24px; color: var(--detail-muted); }
.activity-detail-lessons li + li { margin-top: 8px; }
.activity-detail-note {
  margin: 0; padding: 10px 12px; border-radius: 10px; background: #fff3cc; color: #5c422b;
}
.activity-detail-note svg { vertical-align: text-bottom; }
.activity-detail-note p { margin: 4px 0 0; }
.activity-detail-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.activity-detail-buttons .btn {
  min-width: 0; min-height: 44px; justify-content: flex-start; gap: 6px; padding: 8px 9px;
  border-radius: 10px; border-color: var(--detail-border); color: #145b94; background: #f7fbff;
}
.activity-detail-buttons .btn svg { flex: none; }
.activity-detail-buttons .btn:hover { background: var(--detail-sky); border-color: #a4c7e1; }
.activity-detail-buttons .activity-detail-primary {
  grid-column: 1 / -1; color: var(--detail-navy); background: #fdaf18; border-color: #fdaf18; font-weight: 700;
}
.activity-detail-buttons .activity-detail-primary:hover { background: #ffbd3f; border-color: #ffbd3f; }
.activity-detail-dialog :is(.btn, summary):focus-visible {
  outline: 2px solid #1473b6; outline-offset: 2px;
}
@media (max-width: 580px) {
  .activity-detail-operations { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 370px) {
  .activity-detail-facts { grid-template-columns: minmax(0, 1fr); }
}
.team-management { container: team-management / inline-size; }
.team-management .team-breadcrumb { margin: 0 0 8px; }
.team-management .team-breadcrumb .btn { min-height: 44px; padding-inline: 0; border: 0; background: transparent; }
.team-management-header {
  display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 6px 20px;
  padding: 18px 20px 0; border: 1px solid var(--line); border-top: 3px solid #205487;
  border-radius: 14px; background: #fff; box-shadow: var(--workbench-shadow);
}
.team-management-identity, .team-management-actions, .team-management-code {
  display: flex; align-items: center; gap: 8px; min-width: 0;
}
.team-management-identity { gap: 12px; overflow-wrap: anywhere; }
.team-management-header:not(:has(.team-management-tabs)) { padding-bottom:8px; }
.team-management-identity h1 { margin: 0; font-size: clamp(20px,2.3vw,28px); line-height: 1.2; }
.team-management-identity p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.team-management-icon {
  flex: 0 0 48px; display: grid; place-items: center; height: 48px; border-radius: 11px;
  background: #e4f0fb; color: #145686;
}
.team-management-actions { flex-wrap: wrap; justify-content: end; }
.team-management-code { grid-column: 1 / -1; flex-wrap: wrap; font-size: 13px; }
.team-management-code .btn { min-height: 44px; }
.team-view-access { display:flex; align-items:center; flex-wrap:wrap; gap:6px 10px; margin-left:auto; }
.team-management-tabs {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: stretch;
  gap: 6px; margin: 0; border-top: 1px solid var(--line);
}
.team-management-tabs button {
  display: inline-flex; justify-content: center; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 12px; border: 0; border-bottom: 3px solid transparent;
  border-radius: 9px 9px 0 0; color: #2f516d; background: transparent; white-space: nowrap;
}
.team-management-tabs [aria-current], .team-management-tabs button:hover { color: #0b5390; background: #e7f2fc; }
.team-management-tabs [aria-current] { border-bottom-color: #1169b2; font-weight: 700; }
.team-tab-count { min-width: 18px; padding-inline: 4px; border-radius: 999px; background: #a93834; color: #fff; font-size: 12px; }
.team-management-panel { padding-top: 14px; }
.team-panel-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.team-panel-head h2 { margin: 0; font-size: 18px; }
.team-panel-head p { margin: 3px 0 0; }
.team-record-list > li {
  display: grid; align-items: center; gap: 12px 14px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.team-record-list { display: grid; gap: 8px; }
.member-directory { border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--workbench-shadow); }
.member-directory-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.member-directory-toolbar .search { width: min(100%, 288px); }
.member-directory-toolbar .search input { padding-left: 34px; }
.member-directory-toolbar .search svg { left: 10px; }
.member-directory-toolbar #team-member-count { margin-left: auto; }
.member-directory-empty { margin: 0; padding: 20px; text-align: center; }
.member-directory .member-draft-filter { background: #fff3d8; border-color: #eccea0; color: #714812; }
.member-directory .member-draft-filter[aria-pressed="true"] { background: #f9e3b5; border-color: #bd852d; }
.member-directory-labels, .team-member-row {
  display: grid; grid-template-columns: minmax(138px, 1fr) minmax(0, 2.72fr) 213px;
  align-items: center; gap: 8px 14px; padding: 8px 14px;
}
.member-directory-labels { color: #3b586f; font-size: 13px; background: #f2f6fa; border-bottom: 1px solid var(--line); }
.member-directory-labels > :last-child { text-align: right; }
.member-directory-labels > div { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; padding-inline: 8px; }
.team-member-row + .team-member-row { border-top: 1px solid var(--line); }
.team-member-row[data-dirty="true"] { background: #f7fbff; box-shadow: inset 3px 0 #3074b6; }
.team-member-row[hidden], .team-member-actions [hidden], .member-directory-toolbar [hidden], #course-clear[hidden] { display: none; }
.team-member-actions:empty { display: none; }
.team-member-person { display: flex; align-items: center; min-width: 0; gap: 10px; overflow-wrap: anywhere; }
.team-member-avatar {
  display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 100%;
  background: var(--workbench-sky); color: #12578e; font-weight: 700;
}
.team-member-avatar svg { width: 18px; height: 18px; }
.team-member-permissions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; min-width: 0; }
.member-permission {
  display: flex; gap: 7px; align-items: center; min-width: 0; min-height: 44px; padding: 5px 8px;
  border: 1px solid transparent; border-radius: 7px; cursor: pointer;
}
.member-permission:where(label):hover, .member-permission:focus-within { background: #ebf3fb; border-color: #b7d0e8; }
.member-permission input { flex: 0 0 16px; width: 16px; min-height: 16px; height: 16px; padding: 0; margin: 0; accent-color: #1067a8; }
.member-permission-read { cursor: default; }
.member-permission-read svg { flex: 0 0 16px; width: 16px; height: 16px; color: #4e677c; }
.member-permission-caption { display: grid; gap: 1px; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.member-permission-caption small { color: #526779; font-size: 12px; }
.member-permission-caption [data-granted="true"] { color: #1b6747; }
.member-permission-caption [data-pending="true"], .member-permission-caption [data-partial="true"] { color: #7b4a13; }
.permission-mobile-label { display: none; }
.member-save-feedback { color: #1b6747; font-size: 12px; }
.member-save-feedback:empty { display: none; }
.team-member-actions .btn { padding-inline: 8px; white-space: nowrap; }
.team-member-actions .btn.member-reset { border-color: transparent; background: none; }
.team-member-feedback { grid-column: 2 / -1; }
.team-member-feedback:not(:has(:not([hidden]))) { display: none; }
.team-member-feedback p { margin: 0; }
.team-member-feedback .form-error:not([hidden]), .team-member-legacy:not([hidden]) {
  padding: 6px 9px; border-radius: 7px; background: #fff3e0; color: #754610;
}
.team-member-feedback .form-error:not([hidden]) { background: #fff1ef; color: #9b2d29; }
.team-record-list > li { grid-template-columns: minmax(0,1fr) minmax(84px, .24fr) minmax(0, auto); }
.team-record-list > li > div { overflow-wrap: anywhere; min-width: 0; }
.team-record-list > li > .tag { justify-self: start; }
@container activity-directory (max-width: 780px) {
  .activity-list-labels { display: none; }
  .activity-rows { display: grid; gap: 10px; padding: 10px; }
  .activity-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, auto);
    grid-template-areas: "course course" "session status" "session enrollment" "actions actions";
    gap: 6px 12px; padding: 12px;
    border: 1px solid var(--line); border-radius: 11px; background: #fff;
  }
  .activity-row .workbench-course { grid-area: course; margin-bottom: 4px; }
  .activity-row .workbench-status { grid-area: status; max-width: 148px; justify-content: flex-end; }
  .activity-row .activity-unlist-at { text-align: end; }
  .activity-session { grid-area: session; align-self: start; }
  .activity-enrollment { grid-area: enrollment; align-self: start; text-align: end; }
  .activity-enrollment-label { position: static; width: auto; height: auto; overflow: visible; clip-path: none; color: var(--muted); margin-inline-end: 5px; }
  .activity-row-actions { grid-area: actions; margin-top: 3px; padding-top: 8px; border-top: 1px solid var(--line); }
}
@container activity-directory (max-width: 480px) {
  .activity-row-actions > .btn { flex: 1; width: auto; }
}
@container activity-directory (max-width: 350px) {
  .activity-row { grid-template-areas: "course course" "session session" "status enrollment" "actions actions"; }
  .activity-row .workbench-status { justify-content: flex-start; }
  .activity-row .activity-unlist-at { text-align: start; }
}
@container team-management (max-width: 760px) {
  .member-directory-labels { display: none; }
  .team-member-row { grid-template-columns: minmax(0,1fr) auto; gap: 8px; padding: 9px 12px; }
  .team-member-permissions { grid-column: 1 / -1; grid-row: 2; }
  .team-member-actions { grid-column: 2; grid-row: 1; }
  .team-member-row[data-dirty="true"] .team-member-actions { grid-column: 1 / -1; grid-row: 3; }
  .member-permission { border-color: var(--line); background: #f8fafc; }
  .permission-mobile-label { display: block; }
  .team-member-feedback { grid-column: 1 / -1; }
}
@container team-management (max-width: 510px) {
  .team-management-header { padding: 12px 12px 0; grid-template-columns: minmax(0,1fr); gap: 8px; }
  .team-management-actions { justify-content: start; }
  .team-management-icon { flex-basis: 40px; height: 40px; }
  .team-view-access { width:100%; margin-left:0; }
  .team-management-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; }
  .team-management-tabs:has(button:nth-child(3)) { grid-template-columns: 1.55fr 1fr 1.2fr 1fr 1fr; }
  .team-management-tabs button { padding-inline: 3px; font-size: 13px; gap: 3px; }
  .member-directory-toolbar { padding: 8px 10px; }
  .member-directory-toolbar .search { width: 100%; max-width: none; }
  .member-directory-toolbar #team-member-count { margin-left: 0; }
  .team-member-row, .team-record-list > li { padding: 10px; gap: 10px; }
  .member-permission { flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; padding: 6px; }
  .team-record-list > li { grid-template-columns: minmax(0,1fr) auto; }
  .team-record-actions { grid-column: 1 / -1; }
  .team-record-actions > .btn { flex: 1; }
}
@media (max-width: 720px) {
  #view:has(.activity-tools) > .page-title { display: grid; gap: 10px; }
  #view:has(.activity-tools) > .page-title .actions { justify-content: flex-start; }
  .workbench-list .activity-tools .search { width: 100%; }
  .activity-tools .course-filter { flex: 1; }
  .activity-tools .course-filter select { width: 100%; }
  .course-status-bar { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0 2px; padding-inline: 8px; }
  .course-status-bar:has(button:nth-child(5):last-child) { grid-template-columns: repeat(5,minmax(0,1fr)); }
  .course-status-bar button { padding-inline: 2px; gap: 3px; min-height: 44px; font-size: 13px; }
  .course-status-bar button span { padding-inline: 3px; min-width: 17px; }
}
@media (max-width: 359px) {
  .course-status-bar:has(button:nth-child(5):last-child) { grid-template-columns: repeat(6,minmax(0,1fr)); }
  .course-status-bar:has(button:nth-child(5):last-child) button { grid-column: span 3; }
  .course-status-bar:has(button:nth-child(5):last-child) button:nth-child(-n+3) { grid-column: span 2; }
}
.workbench-loading { min-height: 160px; padding: 32px 18px; border: 1px solid var(--line); border-radius: 15px; background: #fff; color: var(--muted); }
.workbench-login-top { background: #fff; }
.workbench-login.publisher-login {
  width: min(calc(100% - 32px), 950px); display: grid; grid-template-columns: 1fr minmax(0, 410px);
  gap: 18px; align-items: start;
}
.workbench-login-intro {
  min-height: 250px; padding: 28px; background: #0b264d; border-radius: 18px; color: #fff;
}
.workbench-login-intro h2 { color: inherit; margin: 12px 0 5px; font-size: clamp(23px, 3vw, 31px); }
.workbench-login-intro p { color: #dceaff; }
@media (max-width: 1050px) {
  .workbench-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .workbench .sidebar { padding: 12px 14px 9px; }
  .workbench .sidebar nav { margin-top: 8px; }
  .workbench .sidebar .nav-item { width: auto; }
  .workbench-context { display: none; }
  .workbench .content:not(:has(.course-workspace)) { padding: 19px 14px 24px; }
  .workbench-metrics.workspace-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .workbench .page-title { align-items: flex-start; }
  .workbench-hero { min-height: 150px; padding: 16px; }
  .workbench-hero > div { max-width: 100%; }
  .workbench-hero h2 { font-size: 21px; }
  .workbench-art { display: none; }
  .workbench-login.publisher-login { grid-template-columns: 1fr; }
  .workbench-login-intro { min-height: 0; padding: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .workbench .btn, .workbench .workspace-metric, .workbench .sidebar .nav-item { transition: none; }
}

.refund-queue { padding: 0; overflow: hidden; background: #fff; border: 1px solid #dae7f1; border-radius: 16px; }
.refund-toolbar, .refund-list-row, .refund-pagination { display: flex; align-items: center; gap: 16px; padding: 16px 20px; }
.refund-toolbar { flex-wrap: wrap; justify-content: space-between; border-bottom: 1px solid #dae7f1; }
.refund-toolbar .workspace-tabs { margin: 0; display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: #eef5fb; }
.refund-toolbar .workspace-tabs button { border: 1px solid transparent; min-height: 40px; }
.refund-toolbar .workspace-tabs [aria-pressed='true'] { background: #fff; color: #0d5795; border-color: #d3e4f2; }
.refund-toolbar nav span { margin-left: 6px; }
.refund-search { display: flex; flex: 0 1 340px; gap: 8px; }
.refund-search input { flex: 1; min-width: 0; }
.refund-list-row + .refund-list-row { border-top: 1px solid #e3edf5; }
.refund-record-main, .refund-detail-head > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.refund-record-main small, .refund-history small { display: block; margin-top: 5px; color: #4e687e; }
.refund-list-meta { display: grid; gap: 6px; justify-items: end; font-variant-numeric: tabular-nums; }
.refund-list-meta small { color: var(--muted); font-size: 12px; }
.refund-list-meta strong { color: var(--workbench-navy); font-size: 16px; }
.refund-empty { margin: 0; padding: 42px 20px; text-align: center; color: #4e687e; }
.refund-pagination { justify-content: flex-end; border-top: 1px solid #e3edf5; }
.refund-detail-head, .refund-contact-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.refund-detail h3, .refund-contact-head h3 { margin: 0 0 4px; }
.refund-detail-head p { margin: 0; color: #4e687e; }
.refund-dialog[open] { display: flex; flex-direction: column; max-height: calc(100vh - 28px); max-height: calc(100dvh - 28px); overflow: hidden; border-radius: 16px; }
.refund-dialog .dialog-head { flex: 0 0 auto; background: white; }
.refund-dialog .dialog-body { min-height: 0; overflow: auto; overscroll-behavior: contain; }
.refund-detail { display: grid; gap: 14px; }
.refund-decision-card { padding: 14px 16px; border-radius: 14px; background: #eaf4ff; }
.refund-decision-card.is-refunded { background: #e2f3e9; }
.refund-decision-price, .refund-decision-person, .refund-line, .refund-confirm-price { display: flex; align-items: baseline; gap: 8px 12px; flex-wrap: wrap; }
.refund-decision-price > strong, .refund-confirm-price > strong { font-size: 30px; line-height: 1.2; color: #0b264d; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.refund-decision-person { margin-top: 6px; color: #193b55; }
.refund-decision-person strong { overflow-wrap: anywhere; }
.refund-decision-card p { margin: 8px 0 0; color: #36546d; }
.refund-conversation { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.refund-conversation-card:only-child { grid-column: 1 / -1; }
.refund-conversation-card { padding: 12px 14px; background: #f6f9fc; border: 1px solid var(--line); border-radius: 12px; }
.refund-conversation-reply { background: #fff5d9; }
.refund-line { justify-content: space-between; }
.refund-line b { font-size: 17px; font-variant-numeric: tabular-nums; color: #0b264d; }
.refund-conversation-card p { margin: 5px 0 0; overflow-wrap: anywhere; white-space: pre-wrap; color: #36546d; }
.refund-support { border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; }
.refund-support[open] { padding-bottom: 12px; }
.refund-support summary { min-height: 44px; line-height: 1.6; padding: 11px 0; cursor: pointer; font-weight: 650; }
.refund-confirm-dialog .refund-confirm-price { padding: 12px 14px; background: #eaf4ff; border-radius: 12px; }
.refund-money { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.refund-money > div { padding: 12px; border-radius: 10px; background: #eff7fd; }
.refund-money dt, .refund-facts dt { color: #4e687e; font-size: 13px; }
.refund-money dd { margin: 4px 0 0; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.refund-facts > div { display: grid; grid-template-columns: minmax(105px, 30%) 1fr; gap: 8px; padding: 8px 0; border-bottom: 1px solid #e3edf5; }
.refund-facts dd { margin: 0; overflow-wrap: anywhere; }
.refund-history { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.refund-history li { padding: 8px 10px; background: #f6f9fc; border-radius: 8px; }
.refund-history p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.refund-dialog .refund-actions { flex: 0 0 auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); background: white; padding: 12px 16px; }
.refund-dialog .refund-actions .btn { min-height: 44px; }
.refund-selection { border: 1px solid #dae7f1; padding: 12px; border-radius: 10px; }
.refund-selection label { display: flex; align-items: center; gap: 10px; padding: 5px; }
.refund-selection small { color: #4e687e; }
.refund-contact-forms { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.refund-contact-form { padding: 14px; min-width: 0; }
.refund-contact-form p { margin: 0; overflow-wrap: anywhere; }
.refund-contact-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.email-settings-card { max-width: 1080px; background: white; border: 1px solid var(--line); border-radius: 16px; }
.email-settings-status { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 20px 22px 0; }
.email-settings-status > span:not(.tag) { color: var(--muted); font-size: 13px; }
.email-settings .email-config, .email-settings .email-test { display: grid; gap: 12px; padding: 20px 22px; }
.email-fields, .email-connection, .email-test-row { display: grid; gap: 16px; }
.email-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.email-connection { grid-template-columns: minmax(76px, .3fr) minmax(0, 1fr); gap: 10px; }
.email-settings label { display: grid; gap: 6px; min-width: 0; }
.email-settings input, .email-settings select { width: 100%; min-width: 0; min-height: 44px; margin-top: 0; }
.email-settings small { display: block; color: var(--muted); font-size: 13px; font-weight: 400; }
.email-submit { display: flex; justify-content: flex-end; }
.email-settings .email-test { border-top: 1px solid var(--line); gap: 8px; }
.email-test-row { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; }
.email-submit .btn, .email-test-row .btn { min-height: 44px; }
.email-test-result { margin: 0; padding: 10px 12px; border-radius: 9px; background: #e2f1e8; color: #216243; }
.email-test-result[hidden] { display: none; }
@media (max-width: 850px) {
  .email-fields { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 620px) {
  .refund-toolbar, .refund-list-row, .refund-pagination { gap: 10px; padding: 12px; }
  .refund-toolbar .workspace-tabs { flex-basis: 100%; }
  .refund-toolbar .workspace-tabs button { flex: 1; }
  .refund-search { flex-basis: 100%; }
  .refund-list-row { display: grid; grid-template-columns: minmax(0,1fr) auto; }
  .refund-list-row .btn { grid-column: 1 / -1; justify-self: stretch; justify-content: center; }
  .refund-money { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .refund-conversation { grid-template-columns: minmax(0, 1fr); }
  .refund-dialog .refund-actions { padding: 10px 12px; }
  .refund-dialog .refund-actions .btn { flex: 1 1 auto; }
  .refund-dialog .refund-actions .btn.primary { flex-basis: 100%; }
  .refund-contact-forms { grid-template-columns: 1fr; }
  .email-settings-status { padding: 16px 16px 0; }
  .email-settings .email-config, .email-settings .email-test { padding: 16px; }
  .email-test-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .email-submit button, .email-test-row button { width: 100%; justify-content: center; }
}
