:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --soft: #eef2f6;
  --ink: #071f37;
  --muted: #5d6d7c;
  --line: #d9e0e8;
  --brand: #003f6b;
  --brand-dark: #001f3f;
  --gold: #ffc400;
  --gold-2: #ffd400;
  --green: #217a53;
  --red: #bd3d33;
  --amber: #9b6a00;
  --shadow: 0 18px 44px rgba(0, 31, 63, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

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

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

button {
  cursor: pointer;
}

.boot {
  padding: 36px;
  color: var(--muted);
}

.access {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 28px;
  align-items: stretch;
  padding: 28px;
}

.intro {
  min-height: calc(100vh - 56px);
  padding: 38px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--brand-dark);
  color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.intro::after {
  content: "";
  position: absolute;
  inset: auto -120px -160px auto;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(255, 196, 0, 0.26), transparent 62%);
}

.brand-row,
.user-mini,
.post-head,
.doc-row,
.question-row,
.metric-row,
.comment,
.file-pill {
  display: flex;
  align-items: center;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #ffffff;
  color: var(--brand-dark);
  font-weight: 900;
}

.brand-row {
  gap: 12px;
}

.brand-row strong {
  display: block;
  font-size: 18px;
}

.brand-row span,
.intro p {
  color: #d7e1ec;
}

.intro h1 {
  max-width: 800px;
  margin: 74px 0 16px;
  font-size: clamp(36px, 5.2vw, 72px);
  line-height: 0.96;
  letter-spacing: 0;
}

.intro-copy {
  max-width: 680px;
  font-size: 19px;
  line-height: 1.5;
}

.course-visual {
  width: min(560px, 92%);
  aspect-ratio: 16 / 9;
  margin-top: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 196, 0, 0.08)),
    url("./visual-course.svg") center / cover no-repeat;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.mentor-login {
  width: min(520px, 100%);
  margin-top: 24px;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 196, 0, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.mentor-login img {
  width: 78px;
  height: 78px;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: 8px;
  border: 2px solid var(--gold);
}

.mentor-login strong {
  display: block;
  margin-bottom: 4px;
  color: #ffffff;
}

.mentor-login span {
  display: block;
  color: #ffffff;
  font-weight: 800;
  line-height: 1.35;
}

.access-card,
.panel,
.composer,
.post,
.doc-card,
.question-card,
.contact-panel,
.suggestion {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.access-card {
  align-self: center;
  padding: 22px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

h2 {
  margin-bottom: 8px;
  font-size: 24px;
}

h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 18px 0;
  color: var(--brand-dark);
}

.price strong {
  font-size: 36px;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

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

.check-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 10px 0;
  color: var(--brand-dark);
  font-weight: 800;
  line-height: 1.35;
}

.check-row input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  flex: 0 0 auto;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #ffffff;
  color: var(--ink);
  outline: 0;
}

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

input:focus,
textarea:focus,
select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31, 92, 168, 0.14);
}

.btn {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--brand);
  color: #ffffff;
  font-weight: 800;
}

.btn.secondary {
  background: var(--gold);
  color: var(--brand-dark);
}

.btn.ghost {
  background: transparent;
  color: var(--brand-dark);
  border: 1px solid var(--line);
}

.btn.danger {
  background: var(--red);
  color: #ffffff;
}

.btn.full {
  width: 100%;
}

.status {
  padding: 10px 12px;
  border-radius: 8px;
  background: #edf7f2;
  color: var(--green);
  font-size: 13px;
  line-height: 1.4;
}

.status.warn {
  background: #ffffff;
  border: 1px solid var(--gold);
  color: var(--amber);
}

.small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 274px minmax(0, 1fr);
}

.sidebar {
  min-height: 100vh;
  padding: 18px 14px;
  background: var(--brand-dark);
  color: #eef5ff;
  position: sticky;
  top: 0;
}

.nav {
  display: grid;
  gap: 4px;
  margin-top: 20px;
}

.nav button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  color: #d9e5f4;
  background: transparent;
  text-align: left;
}

.nav button.active,
.nav button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.nav button.active .icon {
  background: var(--gold);
  color: var(--brand-dark);
}

.icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  font-size: 14px;
  font-weight: 900;
}

.side-box {
  margin-top: 22px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.main {
  min-width: 0;
  padding: 22px;
}

.topbar {
  min-height: 62px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.user-mini {
  gap: 10px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ffffff;
  color: var(--brand-dark);
  border: 1px solid var(--line);
  font-weight: 900;
  flex: 0 0 auto;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.two {
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel,
.composer,
.post,
.doc-card,
.question-card,
.contact-panel,
.suggestion {
  padding: 16px;
}

.metric-row {
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

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

.composer-actions,
.post-actions,
.doc-actions,
.question-actions,
.inline-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.composer-actions {
  justify-content: space-between;
}

.post-head {
  gap: 10px;
  margin-bottom: 10px;
}

.post-head > div:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.post-head strong {
  display: block;
}

.post-delete {
  min-height: 34px;
  padding: 0 11px;
  font-size: 12px;
  white-space: nowrap;
}

.post-body {
  white-space: pre-line;
  line-height: 1.55;
}

.post-media {
  margin-top: 10px;
  padding: 12px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--brand-dark);
  font-weight: 800;
}

.video-media {
  display: grid;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.video-media video,
.video-media iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0;
  border-radius: 8px;
  background: #000000;
}

.image-media {
  display: grid;
  gap: 8px;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
}

.image-media img {
  width: 100%;
  max-height: 420px;
  display: block;
  object-fit: cover;
  object-position: center;
}

.image-media figcaption {
  margin: 0;
  padding: 0 12px 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.file-media {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
}

.post-actions {
  margin: 12px 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.comment-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.comment {
  gap: 8px;
  align-items: flex-start;
  padding: 10px;
  border-radius: 8px;
  background: var(--soft);
}

.comment.pending {
  background: #ffffff;
  border: 1px solid var(--gold);
}

.comment .avatar {
  width: 30px;
  height: 30px;
  font-size: 12px;
}

.comment-body {
  min-width: 0;
  flex: 1;
}

.comment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.comment-actions .btn {
  min-height: 32px;
  padding: 0 10px;
}

.doc-list,
.question-list,
.suggestions {
  display: grid;
  gap: 12px;
}

.course-progress {
  display: grid;
  gap: 10px;
  margin: 14px 0 18px;
}

.course-progress > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.course-progress strong {
  color: var(--brand-dark);
  font-size: 30px;
}

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

.progress-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft);
}

.progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

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

.module-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.module-card.locked {
  opacity: 0.62;
}

.module-card.done {
  border-color: #b9dfcb;
  background: #f6fbf8;
}

.module-number {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #ffffff;
  font-weight: 900;
}

.module-card.done .module-number {
  background: var(--green);
}

.module-title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.module-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--brand-dark);
  font-weight: 800;
}

.module-check input {
  width: 18px;
  height: 18px;
}

.module-actions {
  display: flex;
  gap: 8px;
  margin: 10px 0 4px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(13, 25, 39, 0.58);
}

.module-modal {
  width: min(980px, 100%);
  max-height: min(860px, calc(100vh - 36px));
  overflow: auto;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.28);
}

.modal-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.module-modal-body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 14px;
  padding: 14px;
}

.no-shadow {
  box-shadow: none;
}

.module-bullets {
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--ink);
  line-height: 1.55;
}

.module-bullets li + li {
  margin-top: 8px;
}

.module-complete-content {
  display: grid;
  gap: 12px;
}

.module-section {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.module-section h4 {
  margin: 0 0 8px;
  color: var(--brand-dark);
  font-size: 15px;
}

.module-section .module-bullets {
  margin-bottom: 0;
}

.app-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.app-card.locked {
  border-color: #e8d6aa;
}

.app-price {
  display: grid;
  gap: 3px;
  padding: 12px;
  border-radius: 8px;
  background: var(--soft);
}

.app-price strong {
  color: var(--brand-dark);
  font-size: 22px;
}

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

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

.doc-row {
  gap: 12px;
  justify-content: space-between;
}

.file-pill {
  gap: 10px;
  min-width: 0;
}

.file-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #ffffff;
  border: 1px solid var(--gold);
  color: var(--brand-dark);
  font-weight: 900;
}

.question-row {
  justify-content: space-between;
  gap: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
}

.tag.green {
  background: #ffffff;
  border: 1px solid #b9dfcb;
  color: var(--green);
}

.tag.red {
  background: #fdeceb;
  color: var(--red);
}

.admin-only {
  display: none;
}

.is-admin .admin-only {
  display: block;
}

.footer-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 980px) {
  .access,
  .app-shell,
  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }

  .intro {
    min-height: 560px;
  }

  .sidebar {
    min-height: auto;
    position: static;
  }

  .nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .module-modal-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .access,
  .main {
    padding: 14px;
  }

  .intro {
    padding: 24px;
    min-height: 520px;
  }

  .access-card,
  .panel,
  .composer,
  .post,
  .doc-card,
  .question-card,
  .contact-panel,
  .suggestion {
    padding: 14px;
  }

  .topbar,
  .question-row,
  .doc-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    grid-template-columns: 1fr;
  }

  .file-media {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .file-media .btn {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* Streaming layout */
.stream-shell {
  display: block;
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 0%, rgba(255, 196, 0, 0.22), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f5f8fc 48%, #eef3f8 100%);
  color: var(--ink);
}

.stream-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.93);
  border-bottom: 1px solid rgba(0, 31, 63, 0.1);
  box-shadow: 0 14px 34px rgba(0, 31, 63, 0.08);
  backdrop-filter: blur(18px);
}

.stream-nav .brand-row {
  min-width: 230px;
}

.stream-nav .brand-row span,
.stream-nav .small,
.stream-shell .small {
  color: #627182;
}

.stream-nav .nav {
  display: flex;
  gap: 6px;
  margin: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.stream-nav .nav::-webkit-scrollbar,
.rail-track::-webkit-scrollbar {
  display: none;
}

.stream-nav .nav button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 11px;
  color: var(--brand-dark);
  white-space: nowrap;
}

.stream-nav .nav button.active,
.stream-nav .nav button:hover {
  background: var(--brand-dark);
  color: #ffffff;
}

.stream-nav .user-mini {
  display: flex;
  align-items: center;
  min-width: 0;
}

.stream-nav .user-mini .btn {
  min-height: 36px;
  padding: 0 12px;
}

.stream-main {
  padding: 0 28px 44px;
}

.stream-page-title {
  padding: 24px 0 10px;
}

.stream-page-title h1 {
  margin: 0;
  color: var(--brand-dark);
}

.stream-hero {
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 24px;
  align-items: stretch;
  margin: 0 -28px 28px;
  padding: 56px 28px 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.97) 0%, rgba(245, 248, 252, 0.92) 48%, rgba(255, 196, 0, 0.18) 100%),
    linear-gradient(180deg, #ffffff, #edf3f9);
  border-bottom: 1px solid rgba(0, 31, 63, 0.08);
  overflow: hidden;
}

.stream-hero-content {
  max-width: 780px;
  align-self: center;
  padding-bottom: 44px;
}

.stream-hero h1 {
  max-width: 760px;
  margin: 8px 0 14px;
  color: var(--brand-dark);
  font-size: clamp(38px, 5.2vw, 68px);
  line-height: 0.95;
  letter-spacing: 0;
}

.stream-hero p {
  max-width: 680px;
  color: #3f5061;
  font-size: 17px;
  line-height: 1.55;
}

.stream-hero-visual {
  position: relative;
  min-height: 390px;
  align-self: end;
}

.stream-hero-visual img {
  width: 100%;
  height: 100%;
  max-height: 440px;
  display: block;
  object-fit: cover;
  object-position: center top;
  border-radius: 8px 8px 0 0;
  border: 1px solid rgba(0, 31, 63, 0.12);
  border-bottom: 0;
  box-shadow: 0 28px 70px rgba(0, 31, 63, 0.18);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 24px;
}

.stream-progress {
  max-width: 560px;
  padding: 14px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(0, 31, 63, 0.1);
  box-shadow: 0 16px 38px rgba(0, 31, 63, 0.08);
}

.stream-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.stream-progress strong {
  color: var(--brand-dark);
}

.stream-progress span {
  color: #627182;
  font-size: 13px;
}

.stream-shell .progress-bar {
  margin-top: 12px;
  background: #e4ebf3;
}

.stream-shell .progress-bar span {
  background: linear-gradient(90deg, var(--brand-dark), var(--gold));
}

.stream-rail {
  margin-top: 26px;
}

.rail-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 12px;
}

.rail-head h2 {
  margin: 0 0 3px;
  color: var(--brand-dark);
}

.rail-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 330px);
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 2px 2px 10px;
  scroll-snap-type: x proximity;
}

.stream-rail:first-of-type .rail-track {
  grid-auto-columns: minmax(320px, 520px);
}

.stream-card {
  min-height: 198px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  padding: 16px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(0, 31, 63, 0.1);
  box-shadow: 0 16px 42px rgba(0, 31, 63, 0.08);
  color: var(--ink);
  scroll-snap-align: start;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.stream-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 196, 0, 0.48);
}

.stream-card h3 {
  margin: 0;
  color: var(--brand-dark);
  font-size: 20px;
  line-height: 1.15;
}

.stream-card p {
  margin: 0;
  color: #526273;
  line-height: 1.45;
}

.feature-card {
  background:
    linear-gradient(135deg, #ffffff, #f4f8fc 58%, rgba(255, 196, 0, 0.18)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), transparent);
  border-color: rgba(255, 196, 0, 0.48);
}

.continue-card {
  min-height: 240px;
}

.module-tile.locked,
.app-tile.locked {
  opacity: 0.62;
}

.module-tile.done {
  border-color: rgba(33, 122, 83, 0.75);
}

.tile-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--gold);
  color: var(--brand-dark);
  font-weight: 900;
}

.doc-tile .file-icon {
  background: var(--brand-dark);
  color: #ffffff;
  border: 1px solid rgba(0, 31, 63, 0.12);
}

.post-tile {
  cursor: pointer;
}

.empty-tile {
  min-height: 120px;
}

.courses-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 18px;
  align-items: stretch;
  padding: 22px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, #ffffff, #f5f8fc 62%, rgba(255, 196, 0, 0.18)),
    #ffffff;
  border: 1px solid rgba(0, 31, 63, 0.1);
  box-shadow: 0 16px 42px rgba(0, 31, 63, 0.08);
}

.courses-hero h2 {
  max-width: 720px;
  margin: 4px 0 10px;
  color: var(--brand-dark);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
}

.courses-hero p {
  color: #526273;
  line-height: 1.5;
}

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

.course-summary-card {
  display: grid;
  gap: 12px;
  align-content: space-between;
  padding: 16px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(0, 31, 63, 0.1);
}

.course-summary-card h3 {
  margin: 0;
  color: var(--brand-dark);
  line-height: 1.15;
}

.course-admin-bar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-top: 26px;
  padding: 14px;
  border-radius: 8px;
  background: #fff7f6;
  border: 1px solid rgba(189, 61, 51, 0.22);
}

.course-admin-bar h3 {
  margin: 2px 0 4px;
  color: var(--brand-dark);
}

.certificate-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: 18px;
  align-items: start;
  margin-top: 28px;
  padding: 18px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(0, 31, 63, 0.1);
  box-shadow: 0 16px 42px rgba(0, 31, 63, 0.08);
}

.certificate-panel.locked {
  background: #f8fafc;
}

.certificate-panel h2 {
  margin: 4px 0 8px;
  color: var(--brand-dark);
}

.certificate-wrap {
  display: grid;
  gap: 12px;
}

.certificate-preview {
  padding: 24px;
  min-height: 360px;
  border: 2px solid var(--brand-dark);
  border-radius: 8px;
  background:
    linear-gradient(135deg, #ffffff 0%, #ffffff 62%, rgba(255, 196, 0, 0.22) 100%);
  color: var(--brand-dark);
  text-align: center;
}

.certificate-brand {
  margin: 0;
  color: var(--brand-dark);
  font-weight: 900;
  letter-spacing: 0.12em;
}

.certificate-kicker,
.certificate-course {
  margin: 8px 0;
  color: #526273;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
}

.certificate-preview h3 {
  margin: 12px 0 4px;
  font-size: 32px;
  color: var(--brand-dark);
}

.certificate-preview > span {
  display: block;
  margin-top: 18px;
  color: #526273;
}

.certificate-preview > strong {
  display: block;
  margin: 8px auto 12px;
  max-width: 760px;
  color: var(--brand-dark);
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.05;
}

.certificate-preview > p:not(.certificate-brand):not(.certificate-kicker):not(.certificate-course) {
  max-width: 760px;
  margin: 0 auto;
  color: #34475a;
  line-height: 1.5;
}

.certificate-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 31, 63, 0.18);
}

.certificate-footer small,
.certificate-footer b {
  display: block;
}

.certificate-footer small {
  color: #687789;
  font-size: 11px;
}

.certificate-footer b {
  color: var(--brand-dark);
}

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

.stream-shell .panel,
.stream-shell .composer,
.stream-shell .post,
.stream-shell .doc-card,
.stream-shell .question-card,
.stream-shell .contact-panel,
.stream-shell .suggestion,
.stream-shell .app-card {
  background: #ffffff;
  border-color: rgba(0, 31, 63, 0.1);
  color: var(--ink);
  box-shadow: 0 16px 42px rgba(0, 31, 63, 0.08);
}

.stream-shell .panel h2,
.stream-shell .composer h2,
.stream-shell .post h3,
.stream-shell .doc-card h3,
.stream-shell .question-card h3,
.stream-shell .contact-panel h2,
.stream-shell .app-card h2 {
  color: var(--brand-dark);
}

.stream-shell input,
.stream-shell textarea,
.stream-shell select {
  background: #ffffff;
  color: var(--ink);
}

.stream-shell .btn {
  background: var(--brand-dark);
  color: #ffffff;
  border: 1px solid var(--brand-dark);
}

.stream-shell .btn:hover {
  filter: brightness(0.94);
}

.stream-shell .btn.secondary {
  background: var(--gold);
  color: #00172e;
  border-color: var(--gold);
}

.stream-shell .btn.ghost {
  background: #ffffff;
  color: var(--brand-dark);
  border-color: rgba(0, 31, 63, 0.18);
}

.stream-shell .btn.danger {
  background: #d94236;
  color: #ffffff;
  border-color: #d94236;
}

.stream-shell .stream-nav .btn.ghost {
  background: var(--brand-dark);
  color: #ffffff;
  border-color: var(--brand-dark);
}

.stream-shell .metric-row {
  border-color: rgba(0, 31, 63, 0.1);
}

.stream-shell .post-media,
.stream-shell .comment {
  background: #f4f7fb;
  color: var(--ink);
}

.stream-shell .video-media,
.stream-shell .file-media,
.stream-shell .module-section {
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
}

.stream-shell .module-modal {
  background: #f6f8fb;
  border-color: rgba(0, 31, 63, 0.12);
}

.stream-shell .modal-head {
  background: #ffffff;
  border-color: rgba(0, 31, 63, 0.12);
}

.stream-shell .module-bullets {
  color: var(--ink);
}

@media (max-width: 1080px) {
  .stream-nav {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .stream-nav .brand-row {
    min-width: 0;
  }

  .stream-nav .user-mini {
    width: 100%;
    justify-content: space-between;
  }

  .stream-hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 34px;
  }

  .stream-hero-visual {
    min-height: 260px;
    max-width: 420px;
  }

  .courses-hero,
  .certificate-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .stream-nav {
    padding: 12px 14px;
    gap: 12px;
  }

  .stream-nav .user-mini > div:not(.avatar) {
    display: none;
  }

  .stream-main {
    padding: 0 14px 34px;
  }

  .stream-hero {
    margin: 0 -14px 22px;
    padding: 28px 14px 0;
  }

  .stream-hero h1 {
    font-size: 38px;
  }

  .stream-hero p {
    font-size: 15px;
  }

  .stream-progress > div:first-child {
    display: grid;
  }

  .rail-track {
    grid-auto-columns: minmax(220px, 84vw);
  }

  .stream-card {
    min-height: 188px;
  }

  .course-summary-grid,
  .certificate-footer {
    grid-template-columns: 1fr;
  }

  .certificate-preview {
    padding: 18px;
  }
}

@media print {
  body * {
    visibility: hidden;
  }

  .certificate-preview.print-target,
  .certificate-preview.print-target * {
    visibility: visible;
  }

  .certificate-preview.print-target {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }
}
