: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);
}

.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 {
  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 {
  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.has-error::after {
  content: "账号信息不完整或验证码不正确";
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
}

.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;
}

.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;
  margin-top: 2px;
  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;
}

.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(4, 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;
}

.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 {
  min-height: 34px;
  padding: 6px 8px;
  font-size: 13px;
}

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;
  }
}

@media (max-width: 620px) {
  .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;
  }
}
