:root {
  --paper: #f6fbf7;
  --panel: #ffffff;
  --ink: #17241f;
  --muted: #61746b;
  --line: #d8eadf;
  --teal: #18a777;
  --teal-deep: #0f7f63;
  --mint: #e8f8ef;
  --mint-strong: #d3f1df;
  --brand: #18a777;
  --coral: #f08a4b;
  --amber: #c6902f;
  --red: #bd4b48;
  --shadow: 0 22px 60px rgba(24, 93, 66, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button,
a,
select,
input,
textarea,
.course-card,
.preview-card,
.role-button {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    opacity 180ms ease;
}

button:active,
.role-button:active {
  transform: translateY(1px) scale(0.99);
}

[hidden] {
  display: none !important;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 54px);
  background: rgba(246, 251, 247, 0.92);
  border-bottom: 1px solid rgba(216, 234, 223, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(24, 167, 119, 0.26);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.topnav {
  display: flex;
  gap: 8px;
}

.topnav a {
  min-width: 62px;
  padding: 10px 14px;
  color: var(--muted);
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
}

.topnav a:hover {
  color: var(--ink);
  background: rgba(24, 167, 119, 0.1);
}

.topnav a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(17, 121, 111, 0.2);
  outline-offset: 2px;
}

.hero-shell {
  position: relative;
  min-height: min(660px, calc(100vh - 72px));
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(246, 251, 247, 0.97) 0%, rgba(246, 251, 247, 0.75) 43%, rgba(246, 251, 247, 0.18) 78%),
    rgba(24, 93, 66, 0.04);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  padding: clamp(52px, 8vw, 108px) clamp(20px, 5vw, 72px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(40px, 6.6vw, 78px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 520px;
  margin-bottom: 32px;
  color: #3f4d49;
  font-size: clamp(18px, 2.6vw, 22px);
  line-height: 1.65;
}

.role-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  gap: 12px;
  max-width: 460px;
}

.role-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 96px;
  padding: 18px;
  color: var(--ink);
  text-align: left;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(31, 49, 45, 0.08);
}

.role-button:hover {
  transform: translateY(-3px);
  border-color: rgba(24, 167, 119, 0.34);
  box-shadow: 0 20px 44px rgba(24, 93, 66, 0.14);
}

.role-button span,
.role-button strong {
  display: block;
}

.role-button span {
  color: var(--muted);
  font-size: 13px;
}

.role-button strong {
  margin-top: 8px;
  font-size: 25px;
  letter-spacing: 0;
}

.role-button.active {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
  box-shadow: 0 18px 38px rgba(24, 167, 119, 0.22);
}

.role-button.active span {
  color: rgba(255, 255, 255, 0.74);
}

.metrics-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.metric {
  min-height: 130px;
  padding: 28px clamp(18px, 3vw, 46px);
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  display: block;
  font-size: clamp(28px, 4vw, 44px);
}

.metric span {
  color: var(--muted);
}

.mobile-metrics {
  display: none;
}

.workspace,
.trust-band {
  padding: clamp(42px, 7vw, 86px) clamp(18px, 4vw, 54px);
}

.workspace {
  display: none;
}

.workspace.active {
  display: block;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto 28px;
}

.section-heading.left-heading {
  display: block;
  text-align: left;
}

.section-heading.left-heading .eyebrow {
  margin-bottom: 10px;
}

.course-heading .result-count {
  display: block;
  margin-top: 10px;
}

.result-count {
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.toolbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto 22px;
}

.search-field {
  grid-column: 1 / -1;
}

label span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

select,
input,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

select:focus,
input:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(17, 121, 111, 0.12);
}

/* Lucide chevron-down, ISC: assets/lucide-license.txt. */
select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%230d7857' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px 18px;
}

select:hover:not(:disabled) { border-color: #82bd9f; }
select:disabled { cursor: not-allowed; opacity: .6; }

.publish-form .manual-field > label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.publish-form .budget-input {
  display: flex;
  align-items: stretch;
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.publish-form .budget-input:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(17, 121, 111, 0.12);
}

.publish-form .budget-input input {
  flex: 1;
  width: 0;
  min-width: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  min-height: 46px;
  padding-inline: 14px;
  appearance: textfield;
  -moz-appearance: textfield;
  font-variant-numeric: tabular-nums;
}

.budget-input input::-webkit-inner-spin-button,
.budget-input input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.publish-form .budget-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 46px;
  width: 46px;
  min-height: 46px;
  padding: 0;
  color: var(--teal-deep);
  background: var(--mint);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.publish-form .budget-step:first-child { border-right: 1px solid var(--line); }
.publish-form .budget-step:last-child { border-left: 1px solid var(--line); }
.publish-form .budget-step:hover:not(:disabled) { color: #fff; background: var(--teal); box-shadow: none; }
.publish-form .budget-step:disabled { color: #a5ada8; background: #f0f3f1; opacity: 1; cursor: not-allowed; box-shadow: none; }
.publish-form .budget-step:focus-visible { outline-offset: -3px; }

.publish-form .budget-unit {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin: 0;
  padding: 0 14px;
  background: var(--panel);
  font-weight: 500;
  white-space: nowrap;
}

.footer.site-footer { display: block; padding: 24px 0 20px; background: #fff; color: #718278; border-top: 1px solid var(--line); }
.footer.site-footer a { color: inherit; text-decoration: none; font-weight: 400; }
.site-footer-inner { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.site-footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-footer-brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; font-size: 12px; }
.site-footer-brand img { flex: 0 0 31px; }
.site-footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; font-size: 12px; }
.site-footer-links a { display: inline-flex; align-items: center; min-height: 44px; font: inherit; color: inherit; }
.site-footer-filings { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 19px; padding-top: 15px; border-top: 1px solid #edf1ee; font-size: 11px; }
.site-footer-filings a { color: inherit; font-weight: 400; }
.site-footer-filings .beian-link img { width: 14px; height: 14px; }
.site-footer-filings .beian-link { flex-shrink: 0; white-space: nowrap; }
.site-footer-filings .beian-link img { flex: 0 0 14px; }
.site-footer-filings .beian-link span { white-space: nowrap; overflow-wrap: normal; }
.footer.site-footer a:hover { color: var(--teal-deep); }

@media (max-width: 620px) {
  .site-footer-inner { width: calc(100% - 32px); }
  .site-footer-top { flex-direction: column; align-items: flex-start; gap: 14px; }
  .site-footer-links { gap: 18px; }
  .site-footer-filings { flex-direction: column; align-items: flex-start; }
}

@media (forced-colors: active) {
  select { appearance: auto; background-image: none; }
}

.course-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
  align-items: start;
}

.course-list {
  display: grid;
  gap: 14px;
  opacity: 1;
}

.course-list.is-updating {
  opacity: 0.62;
}

.course-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 168px;
  gap: 18px;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(31, 49, 45, 0.07);
}

.course-card:hover {
  transform: translateY(-2px);
  border-color: rgba(24, 167, 119, 0.34);
  box-shadow: 0 18px 42px rgba(24, 93, 66, 0.12);
}

.course-card h3 {
  margin-bottom: 8px;
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: 0;
}

.course-card p {
  margin-bottom: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.course-keyfacts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 14px;
}

.course-keyfacts span {
  min-height: 38px;
  padding: 9px 10px;
  color: var(--ink);
  background: var(--mint);
  border: 1px solid var(--mint-strong);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.course-card > div:first-child {
  min-width: 0;
}

.course-note {
  padding: 12px 14px;
  margin-bottom: 14px;
  color: #40524e;
  background: rgba(240, 138, 75, 0.1);
  border: 1px solid rgba(240, 138, 75, 0.22);
  border-radius: 8px;
  line-height: 1.55;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  color: var(--teal-deep);
  background: rgba(24, 167, 119, 0.1);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

.course-details {
  margin-top: 14px;
}

.course-details summary {
  width: fit-content;
  min-height: 34px;
  padding: 7px 10px;
  color: var(--teal-deep);
  background: rgba(24, 167, 119, 0.1);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.detail-grid {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 12px;
  color: #465651;
  background: #f4faf6;
  border: 1px solid var(--line);
  border-radius: 8px;
  line-height: 1.55;
}

.course-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.pay {
  font-size: 26px;
  font-weight: 850;
}

.course-side button,
.publish-form button,
.publish-receipt button {
  min-height: 46px;
  padding: 0 18px;
  color: #fff;
  background: var(--teal);
  border: 0;
  border-radius: 8px;
  font-weight: 800;
}

.course-side button:hover,
.publish-form button:hover,
.publish-receipt button:hover {
  background: var(--teal-deep);
  box-shadow: 0 14px 30px rgba(24, 167, 119, 0.22);
}

.course-side button:disabled,
.course-side button.is-done {
  color: var(--teal-deep);
  background: rgba(24, 167, 119, 0.13);
  cursor: default;
}

.empty-state {
  padding: 34px;
  text-align: center;
  background: var(--panel);
  border: 1px dashed rgba(99, 112, 107, 0.35);
  border-radius: 8px;
}

.empty-state h3 {
  margin-bottom: 8px;
}

.empty-state p {
  margin-bottom: 0;
  color: var(--muted);
}

.status-panel,
.preview-card,
.trust-grid article,
.pricing-grid article,
.process-row article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(31, 49, 45, 0.07);
}

.status-panel {
  position: sticky;
  top: 92px;
  padding: 20px;
}

.status-panel h3,
.preview-card h3,
.trust-grid h3,
.pricing-grid h3,
.process-row h3 {
  margin-bottom: 14px;
  font-size: 20px;
}

.ops-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.ops-card span {
  color: var(--muted);
}

.ops-card strong {
  color: var(--teal-deep);
  font-size: 28px;
}

.status-line {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.status-line p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.dot {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
}

.green {
  background: var(--teal);
}

.amber {
  background: var(--amber);
}

.red {
  background: var(--red);
}

.publish-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
  align-items: start;
}

.login-gate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto 22px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(31, 49, 45, 0.07);
}

.login-gate h1,
.login-gate h3 {
  margin: 14px 0 10px;
}

.login-gate p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.login-form {
  display: grid;
  gap: 12px;
}

.login-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.login-methods span {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.login-form button {
  min-height: 46px;
  padding: 0 18px;
  color: #fff;
  background: var(--teal);
  border: 0;
  border-radius: 8px;
  font-weight: 800;
}

.login-form .sms-send-button {
  min-height: 40px;
  color: var(--teal-deep);
  background: rgba(24, 167, 119, 0.12);
  border: 1px solid rgba(24, 167, 119, 0.24);
}

.login-form .sms-send-button:disabled {
  cursor: default;
  opacity: 0.62;
}

.login-form.has-error::after {
  content: "账号信息不完整或验证码不正确";
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
}

.login-form .auth-consent {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  text-align: left;
}

.auth-consent a {
  margin: 0 2px;
  color: var(--teal-deep);
  font-weight: 750;
}

.publish-form.locked {
  opacity: 0.48;
  pointer-events: none;
}

.publish-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.publish-form .wide,
.publish-form button {
  grid-column: 1 / -1;
}

.publish-form button:disabled {
  opacity: 0.65;
  cursor: wait;
  box-shadow: none;
}

.publish-feedback {
  margin: 0;
  color: var(--red);
  line-height: 1.6;
}

.subject-picker {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.subject-picker legend {
  margin-bottom: 8px;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.subject-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.subject-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  cursor: pointer;
}

.subject-options label:has(input:checked) {
  border-color: var(--teal);
  background: var(--mint);
}

.subject-options label:has(input:disabled):not(:has(input:checked)) {
  opacity: 0.55;
  cursor: not-allowed;
}

.subject-options input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--teal-deep);
}

.subject-options span {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  white-space: nowrap;
}

.subject-picker p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.table-subject {
  display: inline-block;
  white-space: nowrap;
}

#adminTableBody td:nth-child(5) {
  white-space: normal;
}

.publish-receipt {
  min-width: 0;
  padding: 12px 0 24px;
  scroll-margin-top: 90px;
}

.publish-receipt h3 {
  margin: 18px 0 12px;
  font-size: 24px;
}

.publish-receipt p {
  color: var(--muted);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.publish-receipt strong {
  color: var(--ink);
}

.publish-receipt button {
  max-width: 100%;
  margin-top: 12px;
}

.manual-field {
  padding-top: 2px;
}

.consent-field {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.consent-field input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  margin: 2px 0 0;
  accent-color: var(--teal);
}

.consent-field a {
  margin: 0 3px;
  color: var(--teal-deep);
  font-weight: 750;
}

.preview-card {
  padding: 24px;
}

.preview-card.pop {
  animation: card-pop 360ms ease;
}

.preview-card p {
  color: var(--muted);
  line-height: 1.6;
}

.preview-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0;
}

.preview-fields span {
  min-height: 34px;
  padding: 8px 10px;
  color: var(--teal-deep);
  background: rgba(24, 167, 119, 0.1);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 750;
}

.preview-note {
  padding: 12px 14px;
  background: rgba(216, 234, 223, 0.52);
  border-radius: 8px;
}

.preview-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.preview-meta strong {
  color: var(--coral);
}

.preview-meta span {
  color: var(--muted);
}

.toast {
  position: fixed;
  right: clamp(16px, 3vw, 34px);
  bottom: clamp(16px, 3vw, 34px);
  z-index: 80;
  max-width: min(420px, calc(100vw - 32px));
  padding: 13px 16px;
  color: #fff;
  background: rgba(15, 127, 99, 0.96);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(31, 49, 45, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(23, 36, 31, 0.28);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 180ms ease;
}

.modal-backdrop.show {
  opacity: 1;
}

.auth-modal {
  position: relative;
  width: min(460px, 100%);
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(31, 49, 45, 0.22);
  transform: translateY(8px) scale(0.98);
  transition: transform 180ms ease;
}

.modal-backdrop.show .auth-modal {
  transform: translateY(0) scale(1);
}

.auth-modal h3 {
  margin: 14px 0 10px;
  font-size: 24px;
}

.auth-modal p {
  color: var(--muted);
  line-height: 1.65;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  color: var(--muted);
  background: rgba(24, 167, 119, 0.1);
  border: 0;
  border-radius: 8px;
  font-size: 24px;
  line-height: 1;
}

.auth-choice {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.auth-choice button {
  min-height: 46px;
  color: #fff;
  background: var(--teal-deep);
  border: 0;
  border-radius: 8px;
  font-weight: 850;
}

.auth-choice span {
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

@keyframes card-pop {
  0% {
    transform: translateY(8px);
    box-shadow: 0 10px 30px rgba(31, 49, 45, 0.07);
  }
  100% {
    transform: translateY(0);
  }
}

.process-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 1180px;
  margin: 22px auto 0;
}

.process-row article,
.pricing-grid article {
  padding: 20px;
}

.admin-import-panel {
  margin: 0 clamp(18px, 4vw, 54px) 24px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(31, 49, 45, 0.07);
}

.compact-heading {
  margin-bottom: 18px;
}

.import-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 18px;
}

.import-help {
  display: grid;
  gap: 10px;
}

.import-help article {
  padding: 14px;
  background: #f4faf6;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.import-help strong {
  color: var(--teal-deep);
}

.import-help p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.import-box {
  display: grid;
  gap: 12px;
}

.import-box textarea {
  min-height: 190px;
}

.import-box button {
  min-height: 46px;
  color: #fff;
  background: var(--teal);
  border: 0;
  border-radius: 8px;
  font-weight: 850;
}

.process-row article > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  color: #fff;
  background: var(--coral);
  border-radius: 8px;
  font-weight: 850;
}

.process-row p,
.pricing-grid p {
  color: var(--muted);
  line-height: 1.6;
}

.privacy-note {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: center;
  gap: 18px;
  max-width: 1180px;
  margin: 14px auto 0;
  padding: 20px;
  color: #21332f;
  background: #f5fbf7;
  border: 1px solid rgba(24, 167, 119, 0.22);
  border-radius: 8px;
}

.privacy-note h3 {
  margin: 10px 0 0;
  font-size: 20px;
}

.privacy-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.pricing-band {
  padding: clamp(42px, 7vw, 86px) clamp(18px, 4vw, 54px);
  border-top: 1px solid var(--line);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
}

.pricing-grid strong {
  display: block;
  padding-top: 16px;
  margin-top: 18px;
  color: var(--teal-deep);
  border-top: 1px solid var(--line);
}

.trust-band {
  background: #eaf7ef;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
}

.trust-grid article {
  padding: 20px;
}

.trust-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 18px;
  padding: 26px clamp(18px, 4vw, 54px);
  color: var(--muted);
  background: #21332f;
}

.footer a {
  color: #e7f5ec;
  text-decoration: none;
  font-weight: 750;
}

.footer a:hover {
  color: #fff;
}

.footer .beian-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  max-width: 100%;
}

.beian-link img {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.beian-link span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.legal-page {
  min-height: calc(100vh - 170px);
  padding: clamp(38px, 7vw, 86px) clamp(18px, 4vw, 54px);
  background: #f7faf6;
}

.legal-card {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 42px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(31, 49, 45, 0.08);
}

.legal-card h1 {
  margin: 8px 0 18px;
  font-size: clamp(30px, 4vw, 46px);
}

.legal-card h2 {
  margin: 26px 0 8px;
  font-size: 20px;
}

.legal-card p {
  color: var(--muted);
  line-height: 1.8;
}

.legal-updated {
  padding-top: 18px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.admin-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(42px, 7vw, 86px) clamp(18px, 4vw, 54px) 32px;
  border-bottom: 1px solid var(--line);
}

.admin-login {
  padding: clamp(42px, 7vw, 86px) clamp(18px, 4vw, 54px);
}

.admin-hero h1 {
  margin-bottom: 14px;
  font-size: clamp(38px, 6vw, 72px);
}

.admin-hero p {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.admin-actions {
  display: flex;
  align-items: end;
  gap: 10px;
}

.admin-actions button {
  min-height: 46px;
  padding: 0 18px;
  color: #fff;
  background: var(--teal);
  border: 0;
  border-radius: 8px;
  font-weight: 800;
}

.admin-actions button:last-child {
  color: var(--teal-deep);
  background: rgba(24, 167, 119, 0.12);
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  padding: 24px clamp(18px, 4vw, 54px);
}

.admin-metrics article,
.admin-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(31, 49, 45, 0.07);
}

.admin-metrics article {
  padding: 20px;
}

.admin-metrics span {
  color: var(--muted);
}

.admin-metrics strong {
  display: block;
  margin-top: 8px;
  color: var(--teal-deep);
  font-size: 36px;
}

.admin-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 clamp(18px, 4vw, 54px) 24px;
  padding: 18px 20px;
  background: #f4faf6;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(31, 49, 45, 0.06);
}

.admin-alert strong,
.admin-alert p {
  display: block;
}

.admin-alert strong {
  margin-top: 10px;
  color: var(--ink);
  font-size: 22px;
}

.admin-alert p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.admin-alert.is-empty {
  opacity: 0.68;
}

.alert-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.alert-actions button {
  min-height: 42px;
  padding: 0 16px;
  color: #fff;
  background: var(--teal);
  border: 0;
  border-radius: 8px;
  font-weight: 800;
}

.alert-actions button:last-child {
  color: var(--teal-deep);
  background: rgba(24, 167, 119, 0.12);
}

.admin-panel {
  margin: 0 clamp(18px, 4vw, 54px) clamp(42px, 7vw, 86px);
  overflow: hidden;
}

.application-panel {
  margin-bottom: 24px;
}

.application-panel .section-heading {
  padding: 20px;
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.application-table {
  min-width: 760px;
}

.application-table th:nth-child(1),
.application-table td:nth-child(1) {
  width: 12%;
}

.application-table th:nth-child(2),
.application-table td:nth-child(2) {
  width: 25%;
}

.application-table th:nth-child(3),
.application-table td:nth-child(3) {
  width: 23%;
}

.application-table th:nth-child(4),
.application-table td:nth-child(4) {
  width: 20%;
}

.application-table th:nth-child(5),
.application-table td:nth-child(5) {
  width: 20%;
}

.admin-toolbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 1080px;
  table-layout: fixed;
  border-collapse: collapse;
}

.col-id {
  width: 10%;
}

.col-type {
  width: 7%;
}

.col-area {
  width: 7%;
}

.col-grade {
  width: 8%;
}

.col-subject {
  width: 6%;
}

.col-time {
  width: 13%;
}

.col-pay {
  width: 8%;
}

.col-contact {
  width: 10%;
}

.col-status {
  width: 8%;
}

.col-note {
  width: 13%;
}

.col-action {
  width: 10%;
}

th,
td {
  padding: 11px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  background: #f5f7f4;
}

td {
  color: #34423f;
  line-height: 1.45;
  word-break: break-word;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill.is-published {
  color: var(--teal-deep);
  background: rgba(24, 167, 119, 0.12);
}

.status-pill.is-pending {
  color: #8a6426;
  background: rgba(198, 144, 47, 0.14);
}

.status-pill.is-expired {
  color: var(--red);
  background: rgba(189, 75, 72, 0.12);
}

.row-status-select,
.application-status-select {
  min-height: 34px;
  padding: 6px 8px;
  font-size: 13px;
}

.table-action-stack {
  display: grid;
  gap: 7px;
}

.table-action-button,
.contact-reveal-button {
  min-height: 34px;
  padding: 6px 9px;
  color: var(--teal-deep);
  background: rgba(24, 167, 119, 0.1);
  border: 1px solid rgba(24, 167, 119, 0.2);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.contact-state {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.contact-state.is-overdue {
  color: var(--red);
  font-weight: 800;
}

.admin-dialog {
  width: min(520px, calc(100% - 32px));
  padding: 0;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(31, 49, 45, 0.22);
}

.admin-dialog::backdrop {
  background: rgba(22, 35, 32, 0.48);
}

.admin-dialog form {
  display: grid;
  gap: 15px;
  padding: 24px;
}

.admin-dialog h2 {
  margin: 0;
  font-size: 24px;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.dialog-actions button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  border: 0;
  font-weight: 800;
}

.dialog-actions button:last-child {
  color: #fff;
  background: var(--teal);
}

th:nth-child(2),
th:nth-child(3),
th:nth-child(4),
th:nth-child(5),
th:nth-child(7),
th:nth-child(8),
th:nth-child(9),
th:nth-child(11),
td:nth-child(2),
td:nth-child(3),
td:nth-child(4),
td:nth-child(5),
td:nth-child(7),
td:nth-child(8),
td:nth-child(9),
td:nth-child(11) {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .hero-shell {
    min-height: auto;
  }

  .hero-overlay {
    background: rgba(251, 250, 247, 0.88);
  }

  .toolbar,
  .course-layout,
  .publish-layout,
  .login-gate,
  .import-layout,
  .course-keyfacts,
  .admin-metrics,
  .pricing-grid,
  .process-row,
  .privacy-note,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .desktop-metrics {
    display: none;
  }

  .mobile-metrics {
    display: grid;
    grid-template-columns: 1fr;
    margin: 0;
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(31, 49, 45, 0.06);
  }

  .mobile-metrics .metric {
    min-height: 82px;
    padding: 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .mobile-metrics .metric:last-child {
    border-bottom: 0;
  }

  .mobile-metrics .metric strong {
    font-size: 28px;
  }

  .search-field {
    grid-column: span 1;
  }

  .admin-hero,
  .admin-actions {
    display: block;
  }

  .admin-actions button {
    width: 100%;
    margin-top: 10px;
  }

  .admin-toolbar {
    grid-template-columns: 1fr;
  }

  .desktop-metrics .metric {
    min-height: 98px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .course-card {
    grid-template-columns: 1fr;
  }

  .course-side {
    align-items: stretch;
  }

  .status-panel {
    position: static;
  }
}

.header-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.feedback-entry {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--teal-deep);
  font-size: 14px;
  font-weight: 700;
  text-underline-offset: 5px;
  flex-shrink: 0;
}

.feedback-page {
  width: min(680px, 100%);
  min-height: calc(100svh - 220px);
  margin: 0 auto;
  padding: 40px 20px 56px;
}

.feedback-page h1 {
  margin: 0 0 28px;
  font-size: 28px;
}

.feedback-page fieldset {
  display: grid;
  gap: 18px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.feedback-note,
.feedback-meta {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  overflow-wrap: anywhere;
}

.feedback-submit {
  min-height: 48px;
  padding: 12px 20px;
  color: white;
  background: var(--teal-deep);
  border: 0;
  border-radius: 8px;
  font-weight: 700;
}

.feedback-submit:hover {
  background: var(--teal);
}

.feedback-page button:disabled,
.feedback-inbox button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.feedback-page .publish-feedback {
  margin-top: 16px;
}

.feedback-inbox {
  padding: 28px clamp(18px, 4vw, 54px);
  border-top: 1px solid var(--line);
  scroll-margin-top: 90px;
}

.feedback-inbox h2 {
  font-size: 24px;
}

.feedback-inbox .table-action-button {
  min-height: 44px;
}

.feedback-toolbar,
.feedback-pagination,
.feedback-item-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.feedback-toolbar {
  align-items: flex-end;
  margin-bottom: 18px;
}

.feedback-toolbar label {
  flex: 0 1 220px;
}

.feedback-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.feedback-item {
  min-width: 0;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feedback-item-heading {
  justify-content: space-between;
  gap: 8px;
}

.feedback-meta {
  margin: 10px 0;
}

.feedback-item details {
  margin: 14px 0;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.feedback-item summary {
  cursor: pointer;
}

.feedback-content {
  white-space: pre-wrap;
}

.feedback-pagination {
  margin-top: 18px;
  font-size: 14px;
}

@media (max-width: 620px) {
  .feedback-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .topbar {
    align-items: flex-start;
    gap: 12px;
  }

  .topnav {
    display: none;
  }

  .hero-content {
    padding-top: 48px;
  }

  .role-actions,
  .publish-form {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }

  .footer,
  .preview-meta {
    flex-direction: column;
  }

  .preview-fields {
    grid-template-columns: 1fr;
  }
}
