:root {
  --navy: #4b4e73;
  --deep: #30324f;
  --gold: #c9a563;
  --red: #d94359;
  --ink: #292d43;
  --muted: #74798b;
  --line: #e8e9ef;
  --bg: #f5f6fa;
  --white: #fff;
  font-family:
    Inter,
    Segoe UI,
    Arial,
    sans-serif;
  color: var(--ink);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: var(--navy);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.45;
  cursor: wait;
}
button,
.button {
  border: 1px solid var(--line);
  background: white;
  padding: 10px 15px;
  border-radius: 8px;
  color: var(--navy);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
}
button:hover,
.button:hover {
  background: #f0eff6;
}
.primary {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.primary:hover {
  background: var(--deep);
}
.danger {
  color: #a42842;
}
.gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #272c43;
}
.layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: white;
  border-right: 1px solid var(--line);
  padding: 28px 16px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.brand {
  padding: 0 16px 27px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img {
  width: 81px;
}
.brand span {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--navy);
  border-left: 1px solid var(--line);
  padding-left: 10px;
}
.nav-label {
  padding: 12px 15px 8px;
  font-size: 10px;
  letter-spacing: 1.7px;
  font-weight: 700;
  color: #9699aa;
}
nav {
  display: grid;
  gap: 3px;
}
nav button {
  border: 0;
  justify-content: flex-start;
  font-weight: 500;
  background: transparent;
  color: #777a8e;
  padding: 11px 14px;
  white-space: nowrap;
}
nav button.active {
  background: #eeeef6;
  color: var(--navy);
  font-weight: 700;
  box-shadow: inset 3px 0 var(--gold);
}
nav button .icon {
  font-size: 17px;
  width: 22px;
  text-align: center;
  color: var(--navy);
}
.sidebar-foot {
  margin-top: auto;
  padding: 24px 12px 0;
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}
.sidebar-foot strong {
  display: block;
  color: var(--navy);
}
.workspace {
  min-width: 0;
}
.topbar {
  height: 80px;
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  gap: 20px;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb b {
  color: var(--navy);
  font-weight: 500;
}
.profile {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 12px;
}
.avatar {
  background: #efedf5;
  color: var(--navy);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.profile small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.mobile-nav {
  display: none;
}
main {
  padding: 34px 38px 60px;
  max-width: 1600px;
  margin: auto;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: var(--gold);
  font-weight: 800;
  margin: 0 0 9px;
}
h1 {
  font-size: 28px;
  letter-spacing: -0.6px;
  margin: 0 0 8px;
  font-weight: 650;
}
h2 {
  font-size: 18px;
  margin: 0 0 16px;
}
h3 {
  font-size: 16px;
  margin: 0 0 8px;
}
p {
  line-height: 1.6;
}
p.sub {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.hero {
  background: var(--navy);
  border-radius: 13px;
  color: #fff;
  padding: 31px 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 25px;
  min-height: 178px;
}
.hero:after {
  content: "";
  position: absolute;
  right: -30px;
  top: -90px;
  border: 48px solid #ffffff06;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  pointer-events: none;
}
.hero h2 {
  font-size: 25px;
  font-weight: 550;
  margin-bottom: 10px;
}
.hero p {
  font-size: 13px;
  max-width: 570px;
  color: #dedfeb;
  margin: 0 0 20px;
}
.hero .eyebrow {
  color: #e3c796;
}
.hero-mark {
  font-size: 72px;
  line-height: 1;
  font-weight: 800;
  color: #ffffff0d;
  letter-spacing: -4px;
  margin-right: 35px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  padding: 22px;
  border-radius: 11px;
  display: flex;
  gap: 15px;
  align-items: flex-start;
}
.stat-symbol {
  padding: 10px;
  border-radius: 9px;
  background: #eeedf5;
  color: var(--navy);
  font-size: 20px;
}
.stat:nth-child(2) .stat-symbol {
  background: #fbf4e8;
  color: #ac843c;
}
.stat:nth-child(3) .stat-symbol {
  background: #edf4f3;
  color: #50877d;
}
.stat:nth-child(4) .stat-symbol {
  background: #faedf0;
  color: #c7576c;
}
.stat strong {
  display: block;
  font-size: 29px;
  line-height: 1.1;
  margin: 0 0 7px;
}
.stat span {
  font-size: 11px;
  color: var(--muted);
}
.grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 24px;
  margin-bottom: 24px;
  min-width: 0;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.panel-head h2 {
  margin: 0;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.pill {
  display: inline-block;
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  background: #f0eff6;
  color: var(--navy);
  white-space: nowrap;
}
.pill.published,
.pill.verified,
.pill.success,
.pill.valid {
  background: #edf5f0;
  color: #3b8060;
}
.pill.draft,
.pill.quarantined,
.pill.preview {
  background: #fbf3e4;
  color: #9b7634;
}
.pill.revoked,
.pill.error,
.pill.failed {
  background: #faedf0;
  color: #b14057;
}
.course-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.course-card {
  border: 1px solid var(--line);
  background: white;
  border-radius: 11px;
  overflow: hidden;
}
.course-art {
  padding: 25px;
  background: #eeedf5;
  min-height: 105px;
  position: relative;
  color: var(--navy);
}
.course-art b {
  font-size: 11px;
  letter-spacing: 2px;
}
.course-art span {
  display: block;
  font-size: 26px;
  margin-top: 15px;
  opacity: 0.5;
}
.course-card:nth-child(3n + 2) .course-art {
  background: #f4eee3;
  color: #9e7d45;
}
.course-card:nth-child(3n) .course-art {
  background: #e9f0ef;
  color: #5a7d78;
}
.course-body {
  padding: 21px;
}
.course-body h3 {
  line-height: 1.45;
  min-height: 45px;
}
.course-body p {
  color: var(--muted);
  font-size: 12px;
  min-height: 37px;
}
.course-foot {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  align-items: center;
}
.toolbar input {
  max-width: 340px;
  margin-right: auto;
}
.toolbar select {
  max-width: 220px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
th {
  text-align: left;
  font-weight: 600;
  color: #85899a;
  background: #fafafd;
  border-bottom: 1px solid var(--line);
  padding: 13px 12px;
  white-space: nowrap;
}
td {
  padding: 15px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  max-width: 350px;
  overflow-wrap: anywhere;
}
tr:last-child td {
  border-bottom: 0;
}
td strong {
  font-weight: 600;
}
td small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}
.actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.actions button,
.actions a {
  padding: 6px 9px;
  font-size: 11px;
}
.empty {
  text-align: center;
  padding: 38px 15px;
  color: var(--muted);
  font-size: 13px;
}
.empty strong {
  display: block;
  font-size: 17px;
  color: var(--navy);
  margin-bottom: 8px;
}
.quick {
  display: flex;
  gap: 13px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  font-size: 12px;
}
.quick:last-child {
  border: 0;
}
.quick b {
  display: block;
  margin-bottom: 5px;
}
.quick .icon {
  border-radius: 8px;
  padding: 11px;
  background: #f3f1f7;
  color: var(--navy);
  font-size: 18px;
}
.quick small {
  color: var(--muted);
}
.note {
  background: #fbf7ee;
  border: 1px solid #eee3cd;
  border-radius: 8px;
  padding: 13px 16px;
  color: #8c713d;
  font-size: 12px;
  line-height: 1.65;
  margin-bottom: 20px;
}
.notice {
  background: #f0eff6;
  border-radius: 8px;
  padding: 14px;
  color: var(--navy);
  font-size: 12px;
  line-height: 1.7;
  margin: 15px 0;
}
label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
}
input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #dfe1ea;
  border-radius: 7px;
  background: white;
  color: var(--ink);
  font-size: 13px;
}
textarea {
  min-height: 90px;
  resize: vertical;
}
input[type="checkbox"],
input[type="radio"] {
  width: auto;
  accent-color: var(--navy);
}
.check {
  display: flex;
  align-items: center;
  font-weight: 400;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.form-grid .wide {
  grid-column: 1/-1;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  margin-top: 15px;
}
dialog {
  border: 0;
  border-radius: 13px;
  box-shadow: 0 20px 80px #24243b38;
  padding: 28px;
  width: min(700px, 94vw);
  max-height: 90vh;
  color: var(--ink);
}
dialog::backdrop {
  background: #20243877;
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
}
.dialog-head h2 {
  margin: 0;
}
.error {
  color: #ae314a;
  background: #fff1f3;
  padding: 12px;
  border-radius: 7px;
  font-size: 13px;
  white-space: pre-wrap;
  margin-bottom: 15px;
}
.hidden {
  display: none !important;
}
#toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1000;
  background: var(--deep);
  color: white;
  padding: 14px 20px;
  border-radius: 9px;
  box-shadow: 0 8px 30px #0002;
  max-width: min(460px, 90vw);
  display: none;
  font-size: 13px;
}
.auth-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-story {
  background: var(--navy);
  padding: 70px 11%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
}
.auth-story h1 {
  font-size: 42px;
  line-height: 1.2;
  letter-spacing: -1px;
  max-width: 410px;
}
.auth-story p {
  color: #deddea;
  max-width: 390px;
  font-size: 15px;
}
.auth-story .line {
  width: 55px;
  height: 4px;
  background: var(--gold);
  margin: 28px 0;
}
.auth-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.auth-form > div {
  max-width: 410px;
  width: 100%;
}
.auth-logo {
  width: 150px;
  margin-bottom: 36px;
}
.auth-form h2 {
  font-size: 26px;
}
.auth-form form {
  margin-top: 28px;
}
.auth-form .primary {
  width: 100%;
  padding: 13px;
}
.boot {
  padding: 100px;
  text-align: center;
  color: var(--navy);
}
.question {
  border: 1px solid var(--line);
  padding: 22px;
  border-radius: 10px;
  margin: 18px 0;
  background: white;
}
.question h3 {
  font-size: 15px;
  line-height: 1.6;
}
.option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-weight: 400;
  cursor: pointer;
  margin-bottom: 8px;
}
.option:has(input:checked) {
  border-color: var(--gold);
  background: #fcf8f0;
}
.timer {
  position: sticky;
  top: 10px;
  background: var(--navy);
  color: white;
  border-radius: 9px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  z-index: 2;
}
.secret {
  white-space: pre-wrap;
  word-break: break-all;
  background: #f3f2f7;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px;
  font-family: Consolas, monospace;
  font-size: 12px;
}
.qr {
  max-width: 280px;
  width: 100%;
  display: block;
  margin: auto;
}
.pager {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
  margin-top: 15px;
  font-size: 12px;
}
.tagline {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 20px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}
.split-line {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
@media (min-width: 1500px) {
  main {
    padding: 40px 50px;
  }
  .course-cards {
    gap: 25px;
  }
}
@media (max-width: 1150px) {
  .layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  main {
    padding: 26px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .stats {
    gap: 12px;
  }
  .stat {
    padding: 17px;
    gap: 10px;
  }
  .stat-symbol {
    display: none;
  }
  .course-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .hero-mark {
    display: none;
  }
}
@media (max-width: 760px) {
  .layout {
    display: block;
  }
  .sidebar {
    position: fixed;
    left: -260px;
    width: 236px;
    z-index: 50;
    box-shadow: 10px 0 50px #0002;
    transition: left 0.2s;
  }
  .layout.menu-open .sidebar {
    left: 0;
  }
  .topbar {
    height: 65px;
    padding: 0 18px;
  }
  .mobile-nav {
    display: block;
  }
  .breadcrumb {
    display: none;
  }
  .profile .details {
    display: none;
  }
  main {
    padding: 24px 16px;
  }
  .page-head {
    align-items: flex-start;
  }
  .page-head h1 {
    font-size: 24px;
  }
  .page-head > .actions {
    max-width: 145px;
  }
  .hero {
    padding: 26px;
  }
  .hero h2 {
    font-size: 23px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .stat {
    padding: 18px;
  }
  .stat strong {
    font-size: 26px;
  }
  .course-cards {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 18px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .auth-screen {
    display: block;
  }
  .auth-story {
    display: none;
  }
  .auth-form {
    min-height: 100vh;
    padding: 26px;
  }
  .toolbar input,
  .toolbar select {
    max-width: 100%;
  }
  .toolbar {
    align-items: stretch;
  }
  .hero p {
    font-size: 12px;
  }
  .form-grid .wide {
    grid-column: auto;
  }
  .timer {
    font-size: 12px;
  }
  .page-head .button,
  .page-head button {
    font-size: 11px;
    padding: 9px;
  }
  .profile {
    gap: 8px;
  }
}
@media print {
  .sidebar,
  .topbar,
  .toolbar,
  button {
    display: none !important;
  }
  .layout {
    display: block;
  }
  main {
    padding: 0;
  }
  body {
    background: white;
  }
  .panel {
    border: 0;
  }
}
