:root {
  --ink: #182230;
  --muted: #667085;
  --line: #d8dee8;
  --soft: #f5f7fb;
  --surface: #ffffff;
  --brand: #2f6fed;
  --green: #15926f;
  --amber: #a86512;
  --rail: #121826;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #eef2f7;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

.board {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 28px;
}

.board-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.board-header span,
.section-title span,
.eyebrow,
.console-top span,
.cms-top span,
.media-detail > span {
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.board-header h1,
.section-title h2,
.hero-copy h3,
.console-top h3,
.cms-top h3,
.media-detail h3 {
  margin: 4px 0 0;
  letter-spacing: 0;
}

.board-header h1 {
  font-size: 28px;
}

.board-header nav,
.front-nav div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.board-header nav a,
.front-nav a,
.front-nav div a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: #344054;
  font-size: 13px;
  font-weight: 800;
  padding: 0 12px;
  text-decoration: none;
  white-space: nowrap;
}

.preview-section {
  margin-top: 30px;
}

.section-title {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 12px;
}

.section-title > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.section-title h2 {
  font-size: 22px;
}

.section-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.screen {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgb(16 24 40 / 8%);
}

.front-nav {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0 26px;
}

.front-nav.compact {
  height: 62px;
}

.front-nav .brand {
  border: 0;
  padding: 0;
}

.brand img,
.console-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.learner-screen {
  background: #ffffff;
}

.signup-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  min-height: 520px;
  padding: 42px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 420px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgb(14 23 42 / 78%), rgb(14 23 42 / 16%)),
    url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1200&q=80");
  background-position: center;
  background-size: cover;
  color: #ffffff;
  padding: 42px;
}

.hero-copy h3 {
  max-width: 620px;
  font-size: 42px;
  line-height: 1.14;
}

.hero-copy p {
  max-width: 520px;
  margin: 16px 0 0;
  color: #e7edf6;
  line-height: 1.7;
}

.step-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 34px;
}

.step-row span {
  border: 1px solid rgb(255 255 255 / 34%);
  border-radius: 999px;
  background: rgb(255 255 255 / 14%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 12px;
}

.auth-card {
  align-self: center;
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 24px;
}

.auth-card label {
  display: grid;
  gap: 7px;
  color: #475467;
  font-size: 12px;
  font-weight: 900;
}

.auth-card input,
.filter-row input,
.filter-row select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 9px 11px;
}

.auth-card button,
.lesson-bar button,
.console-top button,
.filter-row button,
.table-card button,
.cms-top button,
.media-detail button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #ffffff;
  cursor: default;
  font-size: 14px;
  font-weight: 900;
  padding: 0 14px;
}

.auth-card small {
  color: var(--muted);
  line-height: 1.55;
}

.watch-screen {
  background: #fbfcfe;
}

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  padding: 24px;
}

.player-area,
.curriculum {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.player-area {
  overflow: hidden;
}

.video-frame {
  position: relative;
  min-height: 460px;
  background: #111827;
}

.video-frame img {
  width: 100%;
  height: 460px;
  display: block;
  object-fit: cover;
  opacity: 0.74;
}

.play-button {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 42%);
  border-radius: 50%;
  background: rgb(255 255 255 / 18%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.lesson-bar {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 18px;
}

.lesson-bar span,
.metric-strip span,
.table-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.lesson-bar strong {
  display: block;
  margin-top: 4px;
}

.curriculum {
  align-self: start;
  display: grid;
  gap: 8px;
  padding: 18px;
}

.curriculum h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.curriculum button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: #344054;
  cursor: default;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  padding: 0 12px;
}

.curriculum button.done {
  background: #eefaf5;
  color: var(--green);
}

.curriculum button.active {
  border-color: var(--brand);
  background: #edf4ff;
  color: var(--brand);
}

.console-screen {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: 660px;
  background: #f4f7fb;
}

.console-gnb {
  background: var(--rail);
  color: #ffffff;
  padding: 18px 14px;
}

.console-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 8px 12px;
}

.console-gnb nav {
  display: grid;
  gap: 6px;
}

.console-gnb a {
  min-height: 40px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 800;
  padding: 0 12px;
  text-decoration: none;
}

.console-gnb a.active,
.console-gnb a:hover {
  background: #253044;
  color: #ffffff;
}

.console-main {
  padding: 24px;
}

.console-top,
.cms-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.metric-strip article,
.table-card,
.cms-list,
.media-detail {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.metric-strip article {
  padding: 16px;
}

.metric-strip strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
}

.filter-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 160px 160px 96px;
  gap: 8px;
  margin-top: 16px;
}

.table-card {
  overflow: auto;
  margin-top: 16px;
}

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

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
}

th {
  background: #f8fafc;
  color: #475467;
  font-size: 12px;
  font-weight: 900;
}

td strong,
td small {
  display: block;
}

.status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  padding: 5px 8px;
}

.status.ok {
  background: #e8f7f1;
  color: var(--green);
}

.status.watch {
  background: #fff6e6;
  color: var(--amber);
}

.table-card button {
  min-height: 34px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: #344054;
}

.cms-screen {
  display: grid;
  grid-template-columns: 58px 210px minmax(0, 1fr);
  min-height: 660px;
  background: #f8fafc;
}

.cms-icon-rail {
  display: grid;
  align-content: start;
  gap: 10px;
  background: #0f172a;
  padding: 16px 10px;
}

.cms-icon-rail span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 13%);
  border-radius: 8px;
  background: rgb(255 255 255 / 8%);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 900;
}

.cms-menu {
  display: grid;
  align-content: start;
  gap: 6px;
  border-right: 1px solid var(--line);
  background: #ffffff;
  padding: 18px 14px;
}

.cms-menu strong {
  margin-bottom: 12px;
}

.cms-menu a {
  min-height: 40px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
  padding: 0 12px;
  text-decoration: none;
}

.cms-menu a.active,
.cms-menu a:hover {
  background: #edf4ff;
  color: var(--brand);
}

.cms-main {
  padding: 24px;
}

.cms-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  margin-top: 18px;
}

.cms-list {
  display: grid;
  gap: 0;
  overflow: hidden;
}

.media-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 12px;
}

.media-row.active {
  background: #f3f7ff;
}

.media-row:last-child {
  border-bottom: 0;
}

.media-row img {
  width: 78px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
}

.media-row strong,
.media-row small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.media-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.media-detail {
  align-self: start;
  padding: 18px;
}

.media-detail dl {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.media-detail dl div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 12px;
}

.media-detail dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.media-detail dd {
  margin: 5px 0 0;
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 1080px) {
  .signup-hero,
  .watch-layout,
  .console-screen,
  .cms-screen,
  .cms-grid {
    grid-template-columns: 1fr;
  }

  .console-gnb,
  .cms-icon-rail,
  .cms-menu {
    display: none;
  }

  .metric-strip,
  .filter-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .board {
    padding: 16px;
  }

  .board-header,
  .front-nav,
  .lesson-bar,
  .console-top,
  .cms-top,
  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .board-header nav,
  .front-nav div,
  .step-row {
    overflow-x: auto;
    width: 100%;
  }

  .signup-hero,
  .watch-layout,
  .console-main,
  .cms-main {
    padding: 16px;
  }

  .hero-copy {
    min-height: 360px;
    padding: 24px;
  }

  .hero-copy h3 {
    font-size: 30px;
  }

  .metric-strip,
  .filter-row {
    grid-template-columns: 1fr;
  }
}
