:root {
  --ink: #16120f;
  --muted: #716960;
  --paper: #f8f4ec;
  --line: #ded6c8;
  --mint: #2f7f67;
  --mint-dark: #1f5f4d;
  --coral: #c94f3f;
  --gold: #b8822d;
  --sky: #3f6f88;
  --studio: #231b16;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(32, 24, 18, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    linear-gradient(180deg, #fffaf0 0, var(--paper) 360px, #f5f0e7 100%);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
}

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

button {
  border: 0;
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(47, 127, 103, 0.28);
  outline-offset: 2px;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 264px 1fr;
}

.sidebar {
  background:
    linear-gradient(180deg, #211914, #33251c 52%, #f3ede2 52%);
  border-right: 1px solid rgba(35, 27, 22, 0.16);
  padding: 24px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(201, 79, 63, 0.96), rgba(184, 130, 45, 0.94) 45%, rgba(47, 127, 103, 0.96));
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
}

.brand h1 {
  font-size: 18px;
  line-height: 1.1;
  margin: 0;
  color: #fff7ea;
}

.brand span {
  color: rgba(255, 247, 234, 0.72);
  font-size: 12px;
}

.nav {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.nav button {
  min-height: 44px;
  text-align: left;
  border-radius: 8px;
  padding: 0 12px;
  color: rgba(255, 247, 234, 0.72);
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.nav button.active {
  background: #fffaf1;
  color: var(--ink);
  box-shadow: 0 12px 24px rgba(20, 14, 10, 0.16);
}

.nav-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--mint);
  font-size: 13px;
  flex: 0 0 auto;
}

.side-panel, .panel, .card, .stat {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.role-panel {
  background: rgba(255, 250, 241, 0.96);
  border: 1px solid rgba(255, 250, 241, 0.45);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 14px;
}

.role-panel span,
.role-panel em {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.role-panel strong {
  display: block;
  margin: 7px 0 4px;
  font-size: 16px;
}

.side-panel {
  background: rgba(255, 250, 241, 0.9);
  padding: 14px;
}

.side-panel h2 {
  font-size: 13px;
  margin: 0 0 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

main {
  width: min(100%, 1480px);
  padding: 26px;
  overflow: hidden;
}

.standalone {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(251, 250, 246, 0.94), rgba(251, 250, 246, 0.82)),
    radial-gradient(circle at 20% 20%, rgba(216, 95, 74, 0.34), transparent 22%),
    radial-gradient(circle at 80% 55%, rgba(47, 127, 103, 0.28), transparent 24%),
    linear-gradient(135deg, #f3f0e8, #ffffff);
}

.login-hero {
  width: min(1120px, 100%);
}

.login-brand {
  margin-bottom: 28px;
}

.login-hero h2 {
  font-size: clamp(34px, 6vw, 68px);
  line-height: 0.96;
  margin: 0 0 14px;
}

.login-hero p {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 22px;
}

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

.login-layout {
  display: grid;
  grid-template-columns: 320px 320px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.login-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(31, 42, 38, 0.08);
  display: grid;
  gap: 12px;
  padding: 18px;
}

.login-panel h3 {
  margin: 0 0 4px;
}

.login-message {
  background: #ffe7e2;
  border: 1px solid #efc5bd;
  border-radius: 8px;
  color: #9f3020;
  font-weight: 800;
  padding: 10px;
}

.login-card {
  min-height: 168px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  text-align: left;
  box-shadow: 0 12px 30px rgba(31, 42, 38, 0.08);
}

.login-card span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  background: #eef5f1;
  color: var(--mint-dark);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.login-card strong {
  display: block;
  margin: 18px 0 7px;
  font-size: 20px;
  line-height: 1.15;
}

.login-card em {
  display: block;
  color: var(--muted);
  font-style: normal;
  margin-top: 5px;
  overflow-wrap: anywhere;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.topbar h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.05;
}

.topbar p, .muted {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 720px;
  line-height: 1.5;
}

.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.actions.left {
  justify-content: flex-start;
  margin-top: 14px;
}

.btn {
  min-height: 42px;
  border-radius: 8px;
  padding: 0 14px;
  background: var(--ink);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
}

.btn.secondary {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn.danger {
  background: #9f3020;
  color: white;
}

.compact-btn {
  min-height: 34px;
  padding: 0 10px;
  font-size: 13px;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.full-btn {
  width: 100%;
  margin-top: 14px;
}

.hero {
  min-height: 340px;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(20, 14, 10, 0.92), rgba(20, 14, 10, 0.55) 48%, rgba(20, 14, 10, 0.18)),
    linear-gradient(135deg, transparent 0 42%, rgba(255, 250, 241, 0.72) 42% 52%, transparent 52%),
    linear-gradient(115deg, #2a4038 0 28%, #c94f3f 28% 44%, #ead8b0 44% 62%, #3f6f88 62% 100%);
  color: white;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.55fr);
  align-items: end;
  gap: 20px;
  padding: 34px;
  box-shadow: 0 22px 52px rgba(31, 21, 14, 0.18);
  margin-bottom: 18px;
}

.eyebrow {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid rgba(255, 250, 241, 0.32);
  border-radius: 999px;
  padding: 0 12px;
  color: rgba(255, 250, 241, 0.86);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.hero h3 {
  font-size: clamp(30px, 5vw, 58px);
  line-height: 0.98;
  margin: 0 0 14px;
  max-width: 780px;
}

.hero p {
  max-width: 640px;
  line-height: 1.55;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.launch-card {
  background: rgba(255, 250, 241, 0.92);
  color: var(--ink);
  border-radius: 8px;
  padding: 18px;
  align-self: stretch;
  display: grid;
  align-content: end;
  min-height: 220px;
}

.launch-card strong {
  font-size: 30px;
  line-height: 1.05;
}

.launch-card span {
  color: var(--muted);
  margin-top: 8px;
  display: block;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin: 18px 0;
  flex-wrap: wrap;
}

.market-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.chip {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: white;
  color: var(--muted);
  font-weight: 900;
}

.chip.active {
  background: var(--mint);
  color: white;
  border-color: var(--mint);
}

.search {
  min-height: 42px;
  width: min(360px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  background: white;
  color: var(--ink);
}

.course-grid, .stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(32, 24, 18, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.card:hover {
  border-color: rgba(184, 130, 45, 0.46);
  box-shadow: 0 18px 42px rgba(32, 24, 18, 0.14);
  transform: translateY(-2px);
}

.thumb {
  height: 164px;
  background:
    linear-gradient(115deg, rgba(255, 250, 241, 0.7) 0 16%, transparent 16%),
    linear-gradient(135deg, #25352d 0 38%, #c79a45 39% 58%, #efe6d3 59% 100%);
  position: relative;
}

.thumb.product {
  background:
    linear-gradient(135deg, rgba(255,250,241,0.82) 0 18%, transparent 18% 100%),
    linear-gradient(135deg, #2f5167 0 34%, #f3efe5 35% 56%, #a64238 57% 100%);
}

.thumb.ai {
  background:
    linear-gradient(90deg, rgba(23,33,28,0.32), rgba(23,33,28,0)),
    linear-gradient(135deg, rgba(255,250,241,0.7) 0 14%, transparent 14%),
    conic-gradient(from 90deg at 52% 54%, #2f7f67, #b8822d, #c94f3f, #3f6f88, #2f7f67);
}

.thumb.business {
  background:
    linear-gradient(120deg, rgba(255,250,241,0.78) 0 18%, transparent 18%),
    linear-gradient(135deg, #744734, #e1ba65 44%, #2f7f67 45% 100%);
}

.thumb.portrait {
  background:
    linear-gradient(135deg, rgba(255,250,241,0.76) 0 18%, transparent 18%),
    linear-gradient(135deg, #2f7f67 0 34%, #e7c485 35% 60%, #a64238 61% 100%);
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
}

.card-body, .panel, .stat { padding: 16px; }

.course-kicker {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card h3, .panel h3 {
  font-size: 20px;
  margin: 0 0 10px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.card p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0 0 13px;
  font-size: 14px;
}

.card .outcome {
  background: #f6efe2;
  border: 1px solid #eadbc1;
  border-radius: 8px;
  color: #4f4035;
  font-weight: 800;
  padding: 10px;
}

.instructor-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-bottom: 12px;
  font-size: 13px;
}

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

.instructor-row strong {
  text-align: right;
}

.meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 14px;
}

.price-row, .panel-head, .metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.price {
  font-size: 20px;
  font-weight: 900;
}

.metric {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.metric:first-of-type { border-top: 0; }
.metric span { color: var(--muted); }
.metric strong { color: var(--ink); }
.metric span, .metric strong { overflow-wrap: anywhere; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: start;
}

.split.wide {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.profile-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: start;
}

.lesson {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 13px 0;
}

.student-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 4px;
}

.student-video-strip {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 12px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 4px;
}

.section-title h3 {
  margin: 0;
}

.section-title span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.uploaded-video {
  background: #f8fbf9;
  border: 1px solid #deebe5;
  border-radius: 8px;
  margin: 10px 0;
  padding: 12px;
}

.learning-proof {
  background: #f6efe2;
  border: 1px solid #eadbc1;
  border-radius: 8px;
  margin-top: 14px;
  padding: 4px 12px;
}

.play {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #eef5f1;
  color: var(--mint-dark);
  font-weight: 900;
}

.progressbar {
  height: 10px;
  background: #e8ebe3;
  border-radius: 999px;
  overflow: hidden;
  margin: 10px 0 8px;
}

.progressbar span {
  height: 100%;
  display: block;
  background: var(--mint);
  border-radius: 999px;
}

.status {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  font-weight: 900;
  font-size: 12px;
  background: #eef5f1;
  color: var(--mint-dark);
  white-space: nowrap;
}

.status.warn {
  background: #fff4dd;
  color: #865b12;
}

.status.reject {
  background: #ffe7e2;
  color: #9f3020;
}

.status.paid {
  background: #e5f7ec;
  color: #1d6d44;
}

.course-row {
  width: 100%;
  min-height: 46px;
  background: #f7f5ef;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
  padding: 0 12px;
  text-align: left;
}

.course-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.course-row.active {
  background: #fffaf1;
  border-color: rgba(184, 130, 45, 0.58);
  box-shadow: 0 8px 18px rgba(32, 24, 18, 0.08);
}

.spaced { margin-top: 22px !important; }

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

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input, select, textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  background: #fff;
  color: var(--ink);
  min-width: 0;
  font-size: 16px;
}

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

.full { grid-column: 1 / -1; }

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.step {
  background: #f7f5ef;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  min-height: 126px;
}

.step b {
  display: block;
  margin-bottom: 8px;
}

.step span {
  color: var(--muted);
  line-height: 1.4;
  font-size: 14px;
}

.notice, .empty {
  background: #eef5f1;
  border: 1px solid #c9ded3;
  color: var(--mint-dark);
  border-radius: 8px;
  padding: 12px;
  font-weight: 800;
}

.check-list {
  display: grid;
  gap: 10px;
}

.check-list span {
  min-height: 42px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  background: #f7f5ef;
  border: 1px solid var(--line);
  padding: 0 12px;
  color: var(--muted);
  font-weight: 800;
}

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

.review-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  box-shadow: 0 10px 28px rgba(31, 42, 38, 0.07);
}

.video-preview {
  min-height: 150px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.92) 0 13%, transparent 14%),
    linear-gradient(135deg, #263c35, #2f7f67 48%, #c58b28 49% 100%);
  display: grid;
  place-items: center;
}

.video-preview.approved {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.92) 0 13%, transparent 14%),
    linear-gradient(135deg, #1e5748, #2f7f67 45%, #f0c870 46% 100%);
}

.video-preview span {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--mint-dark);
  display: grid;
  place-items: center;
  font-weight: 900;
}

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

.qa-grid div {
  background: #f7f5ef;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  min-width: 0;
}

.qa-grid span {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.qa-grid strong {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
}

.feedback {
  background: #fff4dd;
  border: 1px solid #efd79d;
  border-radius: 8px;
  color: #77520e;
  font-weight: 800;
  margin-top: 10px;
  padding: 10px;
}

.review-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 12px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.payout-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.payout-card {
  background: #f7f5ef;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.payout-card h4 {
  margin: 12px 0;
  font-size: 17px;
}

.manage-card {
  background: #f7f5ef;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.manage-card h3 {
  margin: 12px 0 6px;
  font-size: 18px;
}

.panel h4 {
  margin: 18px 0 10px;
}

.table-panel {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 14px;
}

th, td {
  text-align: left;
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.compact-stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.stat span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.stat strong {
  display: block;
  font-size: 28px;
  margin-top: 8px;
}

.compact-stats .stat strong {
  font-size: 22px;
}

.checkout {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(23, 33, 28, 0.42);
  padding: 20px;
  z-index: 5;
}

.modal {
  width: min(520px, 100%);
  background: white;
  border-radius: 8px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-bottom: 14px;
}

.modal-head h3 {
  margin: 0;
  font-size: 24px;
}

.x {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #f0eee7;
  font-weight: 900;
  color: var(--ink);
}

@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 230px 1fr; }
  .sidebar { padding: 20px 14px; }
  .course-grid, .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compact-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-strip, .payout-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .profile-band { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .login-layout { grid-template-columns: 1fr; }
  .login-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-grid { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    height: auto;
    padding: 14px;
    background: linear-gradient(180deg, #211914, #30231b);
  }
  main {
    padding: 14px;
    overflow: visible;
  }
  .brand {
    margin-bottom: 14px;
  }
  .brand h1 {
    font-size: 17px;
  }
  .nav {
    display: flex;
    gap: 8px;
    margin: 0 -2px 12px;
    overflow-x: auto;
    padding: 2px 2px 8px;
    scroll-snap-type: x proximity;
  }
  .nav button {
    flex: 0 0 auto;
    min-width: 150px;
    min-height: 48px;
    background: rgba(255, 250, 241, 0.08);
    scroll-snap-align: start;
  }
  .nav button.active {
    background: #fffaf1;
  }
  .role-panel,
  .side-panel {
    margin-bottom: 10px;
  }
  .role-panel .full-btn {
    margin-top: 10px;
  }
  .topbar {
    align-items: start;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
  }
  .topbar h2 {
    font-size: clamp(26px, 8vw, 34px);
  }
  .actions {
    justify-content: start;
    width: 100%;
  }
  .actions .btn {
    flex: 1 1 160px;
  }
  .hero {
    padding: 18px;
    min-height: 0;
    gap: 16px;
  }
  .hero h3 {
    font-size: clamp(32px, 10vw, 44px);
  }
  .launch-card {
    min-height: 150px;
  }
  .toolbar {
    display: grid;
    gap: 12px;
  }
  .search {
    width: 100%;
  }
  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .chip {
    flex: 0 0 auto;
    min-height: 40px;
  }
  .course-grid, .stat-grid, .compact-stats, .market-strip, .payout-summary-grid, .pipeline, .form-grid { grid-template-columns: 1fr; }
  .login-grid { grid-template-columns: 1fr; }
  .login-screen {
    align-items: start;
    padding: 16px;
  }
  .login-hero h2 {
    font-size: clamp(36px, 12vw, 52px);
  }
  .login-card {
    min-height: 0;
  }
  .review-card { grid-template-columns: 1fr; }
  .qa-grid { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .panel,
  .card-body,
  .stat {
    padding: 14px;
  }
  .panel-head,
  .price-row,
  .metric,
  .instructor-row {
    align-items: flex-start;
  }
  .price-row {
    flex-wrap: wrap;
  }
  .price-row .btn {
    flex: 1 1 140px;
  }
  .course-kicker {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .student-actions .btn {
    flex: 1 1 100%;
  }
  .lesson { grid-template-columns: 40px 1fr; }
  .lesson .btn {
    grid-column: 2;
    justify-self: start;
  }
  .lesson .status {
    grid-column: 2;
    justify-self: start;
  }
  .modal {
    max-height: calc(100vh - 28px);
    overflow: auto;
    padding: 18px;
  }
  table {
    min-width: 720px;
  }
}
