:root {
  --brand: #ff6b00;
  --brand-soft: #ffe8d6;
  --brand-strong: #e05e00;
  --brand-gradient: linear-gradient(135deg, #ff6b00 0%, #ff8c33 100%);
  --ink: #1b0e1f;
  --ink-soft: #3b2540;
  --muted: #8a7a8e;
  --line: #f1e7ee;
  --bg: #faf6fa;
  --card: #ffffff;
  --danger: #d6336c;
  --success: #1f9d55;
  --warn: #b78103;
  --shadow: 0 12px 30px rgba(196, 58, 166, 0.08);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
.btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: var(--brand-gradient);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: filter 0.15s ease, transform 0.05s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

button:hover,
.btn:hover {
  filter: brightness(1.05);
}

button:active,
.btn:active {
  transform: translateY(1px);
}

button.ghost,
.btn.ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

button.danger {
  background: var(--danger);
}

button.subtle {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: 14px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  color-scheme: light;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

option {
  color: var(--ink);
  background: #fff;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}

input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  box-shadow: 0 0 0 1000px #fff inset;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(255, 88, 209, 0.12);
}

label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 6px;
  display: inline-block;
}

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

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 22px;
}

h2 {
  font-size: 17px;
}

h3 {
  font-size: 14px;
}

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

.ok {
  color: var(--success);
  font-size: 13px;
  font-weight: 600;
}

.err {
  color: var(--danger);
  font-size: 13px;
  font-weight: 600;
}

/* Layout ------------------------------------------------------------------ */

[hidden] {
  display: none !important;
}

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

.sidebar {
  background: linear-gradient(180deg, #1b0e1f 0%, #2c1430 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar .brand img,
.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  object-fit: contain;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero .brand-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: #fff;
  object-fit: contain;
  padding: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

/* Instructor panel polish ------------------------------------------------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.video-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.video-card .thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #1b0e1f, #ff6b00);
  overflow: hidden;
}

.video-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 28px;
}

.video-card .body {
  padding: 14px 16px 16px;
}

.video-card h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.video-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-soft);
}

.feed-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feed-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.feed-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.feed-meta {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 2px;
  white-space: nowrap;
}

.profile-hero-card .profile-hero {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.avatar.xl {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--brand-gradient);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 20px;
}

.grid.cols-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

@media (max-width: 1100px) {
  .grid.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid.cols-4 {
    grid-template-columns: 1fr;
  }
}

.sidebar .brand strong {
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sidebar .brand small {
  display: block;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.16em;
  font-size: 10px;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 18px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  border: 0;
  width: 100%;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-weight: 500;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.nav-item.active {
  background: rgba(255, 88, 209, 0.16);
  color: #fff;
  font-weight: 600;
}

.nav-item .icon {
  width: 18px;
  text-align: center;
}

.sidebar .footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar .footer .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-gradient);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
}

.sidebar .footer .who {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  flex: 1;
  min-width: 0;
}

.sidebar .footer .who span {
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar .footer .who small {
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
}

.sidebar .footer .logout {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
}

.main {
  padding: 28px 36px;
  max-width: 1280px;
  color: var(--ink);
}

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

.page-header .title h1 {
  margin-bottom: 4px;
}

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

.section {
  display: none;
}

.section.active {
  display: block;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  color: var(--ink);
}

.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

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

.grid.cols-2 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid.cols-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid.cols-4 {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.field {
  display: flex;
  flex-direction: column;
}

.row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.stat::after {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 140px;
  height: 140px;
  background: var(--brand-soft);
  border-radius: 50%;
  opacity: 0.6;
  z-index: 0;
}

.stat .label {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 8px;
}

.stat .value {
  position: relative;
  z-index: 1;
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
}

.stat .hint {
  position: relative;
  z-index: 1;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

table {
  width: 100%;
  border-collapse: collapse;
}

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

table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: rgba(255, 88, 209, 0.05);
}

table tr:hover td {
  background: #fffafd;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 999px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge.pending {
  background: #fff5d8;
  color: #8a6500;
}

.badge.approved {
  background: #d8f5e2;
  color: var(--success);
}

.badge.rejected {
  background: #fde0e7;
  color: var(--danger);
}

.badge.role-admin {
  background: #efe1ff;
  color: #5f27cd;
}

.badge.role-instructor {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.badge.role-student {
  background: #ddf3ff;
  color: #1d6fb8;
}

.empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--muted);
}

/* Auth screen -------------------------------------------------------------- */

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg);
}

.auth-shell .hero {
  background: var(--brand-gradient);
  color: #fff;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-shell .hero .brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}
.auth-shell .hero .brand-mark {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: #fff;
  padding: 7px;
  box-shadow: 0 14px 32px rgba(12, 12, 13, 0.18);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}
.auth-shell .hero .brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  padding: 0;
  border-radius: 8px;
  box-shadow: none;
}
.auth-shell .hero .brand-word {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1;
}
.auth-shell .hero .brand-word span {
  color: rgba(255, 255, 255, 0.92);
}

.auth-shell .hero h2 {
  font-size: 40px;
  line-height: 1.1;
  color: #fff;
  margin: 24px 0 12px;
  letter-spacing: -0.02em;
}

.auth-shell .hero p {
  max-width: 380px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

.auth-shell .hero .footnote {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-shell .form-wrap {
  display: grid;
  place-items: center;
  padding: 60px;
}

.auth-shell .form-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 32px;
  box-shadow: var(--shadow);
}

.auth-shell .form-card h1 {
  margin-bottom: 8px;
}

.auth-shell .form-card p.muted {
  margin-bottom: 22px;
}

.auth-shell .form-card .field {
  margin-bottom: 16px;
}

.auth-shell .form-card .submit {
  width: 100%;
  padding: 12px 16px;
}

.auth-shell .extra {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 920px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .auth-shell .hero {
    padding: 36px;
    min-height: 240px;
  }
  .auth-shell .form-wrap {
    padding: 32px 20px;
  }
  .app {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: relative;
    height: auto;
  }
}

/* Certificate ------------------------------------------------------------- */

.cert-frame {
  margin-top: 16px;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}

.cert {
  position: relative;
  padding: 60px 60px 70px;
  text-align: center;
  background: #fff;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  color: var(--ink);
}

.cert.classic {
  border: 14px double #d3a85e;
  background: linear-gradient(135deg, #fffaf2 0%, #fff5e3 100%);
}

.cert.modern {
  background: linear-gradient(135deg, #fff5fb 0%, #ffe2f4 100%);
  border: 4px solid var(--brand);
  box-shadow: inset 0 0 0 12px #fff;
}

.cert.minimal {
  border: 2px solid var(--ink);
  background: #fff;
}

.cert .logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin: 0 auto 20px;
  display: block;
}

.cert .crest {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--brand-strong);
  text-transform: uppercase;
}

.cert h1 {
  font-family: inherit;
  font-size: 44px;
  letter-spacing: 0.04em;
  margin: 12px 0 6px;
  text-transform: uppercase;
}

.cert .sub {
  font-family: "Inter", sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 26px;
}

.cert .student {
  font-size: 50px;
  letter-spacing: 0.02em;
  color: var(--brand-strong);
  margin: 6px 0 12px;
  font-weight: 600;
}

.cert .body {
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto;
  font-family: "Inter", sans-serif;
  color: var(--ink-soft);
}

.cert .signatures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 56px;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  color: var(--muted);
}

.cert .signatures .sig {
  border-top: 1px solid #c8b797;
  padding-top: 8px;
}

.cert.modern .signatures .sig {
  border-top-color: var(--brand);
}

.cert.minimal .signatures .sig {
  border-top-color: var(--ink);
}

.cert .signatures strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
}

.cert-toolbar {
  display: flex;
  justify-content: flex-end;
  padding: 12px 18px;
  background: #faf3f7;
  border-bottom: 1px solid var(--line);
  gap: 8px;
}

/* Consent + modal --------------------------------------------------------- */
.consent-box {
  margin: 16px 0 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fffaf6;
}

.consent-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
}

.consent-row input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

button.linkish,
.linkish {
  background: none;
  border: none;
  padding: 0;
  color: var(--brand-strong);
  font-weight: 700;
  font-size: inherit;
  text-decoration: underline;
  cursor: pointer;
  display: inline;
}

button:disabled,
.btn:disabled,
.submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: none;
  transform: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal[hidden] {
  display: none !important;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 10, 24, 0.55);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  max-height: min(86vh, 820px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.modal-header,
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.modal-footer {
  border-bottom: none;
  border-top: 1px solid var(--line);
  justify-content: flex-end;
}

.modal-header h2 {
  margin: 0;
  font-size: 17px;
}

.modal-body {
  padding: 18px;
  overflow: auto;
}

.legal-body h3 {
  margin: 18px 0 8px;
  font-size: 15px;
}

.legal-body p {
  margin: 0 0 10px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

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

.profile-grid .muted {
  display: block;
  font-size: 11px;
  margin-bottom: 2px;
}

.profile-section {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.profile-section h3 {
  margin: 0 0 8px;
  font-size: 14px;
}

.profile-list {
  margin: 0;
  padding-left: 18px;
}

.profile-list li {
  margin-bottom: 6px;
}

@media (max-width: 640px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  body * {
    visibility: hidden;
  }
  .cert-frame,
  .cert-frame * {
    visibility: visible;
  }
  .cert-frame {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    box-shadow: none;
    border: none;
  }
  .cert-toolbar {
    display: none;
  }
}

.instructor-guide {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(12, 8, 6, 0.62);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.instructor-guide[hidden] {
  display: none !important;
}

.instructor-guide.is-visible {
  opacity: 1;
}

.instructor-guide-card {
  width: min(560px, 100%);
  max-height: min(90vh, 820px);
  overflow: auto;
  background: #fff;
  border-radius: 22px;
  padding: 28px 26px 24px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.instructor-guide-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #c45c12;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.instructor-guide-brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.instructor-guide-card h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

.instructor-guide-lead {
  margin: 0 0 18px;
  color: var(--ink-soft, #6b625c);
  line-height: 1.55;
}

.instructor-guide-steps {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.instructor-guide-steps article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 12px 12px 10px;
  border-radius: 14px;
  background: #fff7ef;
}

.instructor-guide-steps span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(255, 107, 0, 0.12);
}

.instructor-guide-steps strong {
  display: block;
  margin-bottom: 4px;
}

.instructor-guide-steps p {
  margin: 0;
  color: var(--ink-soft, #6b625c);
  font-size: 13px;
  line-height: 1.5;
}

.instructor-guide-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #fff7ef;
  color: #ff6b00;
  font-size: 28px;
  font-weight: 700;
  margin: 8px 0 16px;
}

.instructor-guide-dots {
  display: flex;
  gap: 6px;
  margin: 8px 0 18px;
}

.instructor-guide-dots i {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: #e8ddd4;
  display: block;
}

.instructor-guide-dots i.on {
  width: 22px;
  background: #ff6b00;
}

.instructor-guide-actions {
  display: flex;
  gap: 10px;
}

.instructor-guide-actions .submit,
.instructor-guide-actions .ghost {
  flex: 1;
}

.cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cat-chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  cursor: pointer;
}
.cat-chip.is-on {
  border-color: #ff6b00;
  background: #fff4ea;
  color: #c45100;
  font-weight: 600;
}

.guide-langs {
  display: grid;
  gap: 8px;
  margin: 4px 0 16px;
}
.guide-langs[hidden] { display: none; }
.guide-lang {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.guide-lang span { font-size: 22px; }
.guide-lang strong { font-size: 15px; }
.guide-lang small { margin-left: auto; color: var(--muted); }
.guide-lang.is-on {
  border-color: #ff6b00;
  background: #fff4ea;
  color: #c45100;
}

.instructor-guide-skip {
  display: block;
  width: 100%;
  margin-top: 10px;
  border: 0;
  background: none;
  color: #8a8078;
  font-size: 13px;
  cursor: pointer;
}

.nav-item.guide-spot {
  outline: 2px solid #ff6b00;
  box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.18);
}

.nav-badge {
  margin-left: 8px;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 99px;
  background: #ff6b00;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
}

.admin-alert {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff4ea;
  border: 1px solid rgba(255, 107, 0, 0.22);
  color: #7a3d00;
}

.video-drop {
  position: relative;
  display: grid;
  place-items: center;
  gap: 4px;
  min-height: 132px;
  padding: 22px 16px;
  border: 1.5px dashed rgba(255, 107, 0, 0.45);
  border-radius: 14px;
  background: #fff8f2;
  color: #7a3d00;
  text-align: center;
}
.video-drop strong { font-size: 15px; }
.video-drop span { font-size: 13px; color: var(--muted); }
.video-drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.video-drop.is-dragover {
  border-color: #ff6b00;
  background: #ffe8d6;
}

.charts-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
  gap: 16px;
  margin-top: 16px;
}
.chart-card .card-title {
  margin: 0 0 4px;
}
.chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.chart-legend {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 99px;
  margin-right: 6px;
  vertical-align: middle;
}
.dot.ios { background: #ff6b00; }
.dot.web { background: #7c3aed; }
.dot.other { background: #d4c8d0; }
.sales-chart { min-height: 210px; }
.bar-chart {
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: 6px;
  height: 180px;
  align-items: end;
}
.bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  gap: 6px;
}
.bar-track {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  background: #f6f0f4;
  border-radius: 8px 8px 4px 4px;
  overflow: hidden;
}
.bar-stack {
  width: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column-reverse;
}
.bar-ios { background: linear-gradient(180deg, #ff8c33 0%, #ff6b00 100%); }
.bar-web { background: linear-gradient(180deg, #9b6cf6 0%, #7c3aed 100%); }
.bar-col small {
  font-size: 10px;
  color: var(--muted);
  line-height: 1;
}
.chart-foot {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.donut-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
}
.donut {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.donut-hole {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  box-shadow: inset 0 0 0 1px #f1e7ee;
}
.donut-hole strong {
  font-size: 13px;
  display: block;
}
.donut-hole span {
  font-size: 11px;
  color: var(--muted);
}
.donut-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.donut-legend li { font-size: 13px; }
.donut-legend strong { margin-left: 6px; }
.donut-legend span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
  padding-left: 14px;
}
.h-bar { margin-bottom: 12px; }
.h-bar-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  margin-bottom: 6px;
}
.h-bar-meta span { color: var(--muted); white-space: nowrap; }
.h-bar-track {
  height: 10px;
  background: #f6f0f4;
  border-radius: 99px;
  overflow: hidden;
}
.h-bar-track span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #ff6b00, #ff8c33);
}
@media (max-width: 980px) {
  .charts-row { grid-template-columns: 1fr; }
  .h-bar-meta { flex-direction: column; gap: 4px; }
  .h-bar-meta span { white-space: normal; }
}
