:root {
  color-scheme: light;
  --bg: #f6f6f6;
  --panel: #ffffff;
  --panel-2: #ededed;
  --text: #111111;
  --muted: #696969;
  --line: #dddddd;
  --button: #eeeeee;
  --button-hover: #dedede;
  --danger: #a40000;
  --ok: #0f6b2b;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #101010;
    --panel: #181818;
    --panel-2: #222222;
    --text: #f2f2f2;
    --muted: #a9a9a9;
    --line: #303030;
    --button: #262626;
    --button-hover: #333333;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101010; --panel: #181818; --panel-2: #222222;
  --text: #f2f2f2; --muted: #a9a9a9; --line: #303030;
  --button: #262626; --button-hover: #333333;
}

.topbar-actions, .learner-header-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.theme-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-2); flex-shrink: 0; }
.theme-switch button { min-height: 30px; padding: 0 12px; font-size: 12px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); }
.theme-switch button[aria-pressed="true"] { background: var(--panel); color: var(--text); box-shadow: 0 1px 3px #00000012; }
.theme-corner { position: absolute; top: 24px; right: 24px; }
.select-control { position: relative; width: 100%; min-width: 0; }
.select-trigger { justify-content: space-between; width: 100%; min-height: 44px; padding: 10px 12px; background: var(--panel); border-radius: 6px; font-size: 14px; text-align: left; }
.select-trigger > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.select-chevron { transform: rotate(-90deg); display: flex; color: var(--muted); }
.select-trigger[aria-expanded="true"] { border-color: var(--text); }
.form-grid input:not([type="checkbox"]), .form-grid select { min-height: 44px; border-radius: 6px; }
.select-trigger[aria-expanded="true"] .select-chevron { transform: rotate(90deg); }
.select-options { position: absolute; top: calc(100% + 6px); left: 0; width: 100%; max-height: 260px; overflow-y: auto; padding: 5px; z-index: 20; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); box-shadow: 0 8px 24px #00000018; }
.select-option { color: var(--text); font-size: 14px; padding: 10px 12px; border-radius: 4px; cursor: pointer; overflow-wrap: anywhere; }
.select-option + .select-option { margin-top: 2px; }
.select-option:hover, .select-option.highlighted { background: var(--panel-2); }
.select-option[aria-selected="true"] { font-weight: 600; background: var(--button); }
.select-option[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
[hidden] { display: none !important; }
@media (max-width: 640px) { .topbar-actions, .learner-header-actions { gap: 10px; } .theme-switch button { padding: 0 9px; } }

* { box-sizing: border-box; }

button, a, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

button {
  border: 1px solid var(--line);
  background: var(--button);
  color: var(--text);
  min-height: 38px;
  border-radius: 8px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

button:hover { background: var(--button-hover); }

.discord-login {
  border: 1px solid var(--line);
  background: var(--text);
  color: var(--panel);
  min-height: 38px;
  border-radius: 8px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

input, select, textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  padding: 8px 10px;
}

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

svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

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

.sidebar {
  border-right: 1px solid var(--line);
  padding: 20px;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.brand, .user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.brand strong, .brand small {
  display: block;
}

.brand small, .topbar p, label, .muted {
  color: var(--muted);
}

.nav {
  display: grid;
  gap: 8px;
}

.panel-switch {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  background: var(--bg);
}

.panel-switch a {
  min-height: 34px;
  border-radius: 6px;
  padding: 0 10px;
  color: var(--muted);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.panel-switch a.active {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
}

.nav button {
  justify-content: flex-start;
}

.nav button.active {
  background: var(--text);
  color: var(--panel);
  border-color: var(--text);
}

.login-card {
  margin-top: auto;
  display: grid;
  gap: 8px;
}

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

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

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

h1 {
  font-size: 28px;
  line-height: 1.2;
  margin-bottom: 6px;
}

h2 {
  font-size: 18px;
}

.user-pill, .notice, .card, .stat,
.feature-panel, .shop-rail, .review-dock, .product-row, .empty-panel,
.recharge-form, .rule-panel, .timeline,
.submit-card, .approval-path,
.creator-summary, .creator-metrics, .sales-board, .settlement-panel,
.admin-kpis div, .admin-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.user-pill {
  min-height: 42px;
  padding: 0 12px;
  white-space: nowrap;
}

.notice {
  padding: 12px;
  margin-bottom: 14px;
}

.hidden { display: none; }

.scheduled-lesson, .teaching-section { padding: 24px 0; border-top: 1px solid var(--line); min-width: 0; }
.lesson-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.lesson-heading h2 { margin: 6px 0 0; font-size: 18px; overflow-wrap: anywhere; }
.lesson-heading .muted { font-size: 12px; }
.lesson-status { border: 1px solid var(--line); border-radius: 4px; padding: 4px 8px; font-size: 12px; flex-shrink: 0; }
.availability-form, .schedule-form { display: grid; gap: 16px; }
.availability-form > button, .schedule-form > button { width: fit-content; }
.availability-windows { display: grid; gap: 12px; }
.availability-row { display: grid; grid-template-columns: minmax(0,1fr) 16px minmax(0,1fr) 38px; gap: 12px; align-items: end; }
.availability-row label, .schedule-form label { display: grid; gap: 6px; min-width: 0; }
.availability-row input, .schedule-form input { min-width: 0; max-width: 100%; }
.availability-row > button { width: 38px; height: 38px; padding: 0; }
.range-separator { padding-bottom: 8px; text-align: center; color: var(--muted); }
.teacher-reply { border-left: 2px solid var(--muted); padding: 4px 16px; margin-bottom: 20px; }
.lesson-terms { padding: 0 0 20px; font-size: 14px; }
.lesson-terms p, .lesson-history { white-space: pre-wrap; overflow-wrap: anywhere; }
.lesson-terms p { margin: 6px 0; color: var(--muted); }
.lesson-terms small { color: var(--muted); }
.lesson-history { margin-top: 20px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 13px; }
.lesson-history p { margin: 8px 0 0; }
.teacher-reply p, .session-detail p { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.session-detail { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.session-detail > [data-icon] { margin-top: 3px; flex-shrink: 0; }
.session-detail strong { font-size: 15px; }
.session-detail small { display: block; color: var(--muted); margin-top: 10px; }
.student-availability { display: grid; grid-template-columns: minmax(100px,180px) minmax(0,1fr); gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.student-availability .student-select { display: flex; align-items: flex-start; gap: 10px; overflow-wrap: anywhere; }
.student-select input { width: 16px; height: 16px; min-height: 16px; flex-shrink: 0; margin-top: 3px; accent-color: var(--text); }
.student-availability p { margin: 0 0 6px; font-size: 13px; overflow-wrap: anywhere; white-space: pre-wrap; }
.lesson-response { padding: 16px 0; border-bottom: 1px solid var(--line); }
.lesson-response summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.lesson-response form { display: grid; gap: 12px; margin-top: 14px; }
.lesson-response button { width: fit-content; }
.confirmed-session { padding-top: 24px; margin-top: 24px; border-top: 1px solid var(--line); }
@media(max-width:600px) {
  .availability-row { grid-template-columns: minmax(0,1fr) 38px; gap: 10px; }
  .availability-row label { grid-column: 1; }
  .availability-row > button { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .availability-row .range-separator { display: none; }
  .lesson-heading { flex-wrap: wrap; }
  .student-availability { grid-template-columns: 1fr; gap: 10px; }
}

.deposit-account { display: flex; align-items: center; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.deposit-account > div { display: grid; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.deposit-account strong { font-size: 20px; }
.recharge-blocked { padding: 18px 0; border-bottom: 1px solid var(--line); }
.recharge-blocked p { margin: 8px 0 0; }
input[readonly] { background: var(--panel-2); }

.account-menu { margin-top: auto; display: grid; gap: 12px; overflow-wrap: anywhere; }
.login-page { min-height: 100svh; display: flex; flex-direction: column; }
.login-brand { display: flex; gap: 12px; align-items: center; padding: 24px 32px; border-bottom: 1px solid var(--line); }
.login-main { width: min(100%, 420px); padding: 48px 24px; margin: auto; text-align: center; }
.login-symbol { display: inline-grid; place-items: center; margin-bottom: 24px; }
.login-symbol svg { width: 56px; height: 56px; }
.login-main h1 { font-size: 32px; margin-bottom: 12px; }
.login-main .discord-login { width: 100%; min-height: 48px; margin-top: 24px; }
.login-error { color: var(--danger); font-size: 14px; margin: 20px 0 0; line-height: 1.6; }
.login-footer { text-align: center; padding: 24px; color: var(--muted); font-size: 12px; }
button:disabled { opacity: .55; cursor: wait; }
input[type="file"] { max-width: 100%; font-size: 14px; }
.form-grid small { display: block; margin-top: 6px; }
.user-pill { white-space: normal; overflow-wrap: anywhere; }

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

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.card, .stat {
  padding: 16px;
}

.card {
  display: grid;
  gap: 10px;
}

.card-actions, .inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

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

.badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--muted);
  width: fit-content;
}

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

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

.danger { color: var(--danger); }
.ok { color: var(--ok); }

.shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 14px;
}

.feature-panel {
  min-height: 270px;
  padding: 28px;
  display: grid;
  align-content: end;
  gap: 14px;
  background:
    linear-gradient(135deg, var(--panel) 0%, var(--panel) 52%, var(--panel-2) 52%, var(--panel-2) 100%);
}

.feature-panel h2 {
  font-size: 34px;
  line-height: 1.1;
  margin-bottom: 0;
}

.feature-panel p {
  max-width: 640px;
  margin-bottom: 0;
}

.feature-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.feature-meta strong {
  font-size: 24px;
}

.feature-meta span, .review-dock p {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.shop-rail {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.shop-rail div {
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  align-content: space-between;
  background: var(--bg);
}

.shop-rail span {
  color: var(--muted);
}

.product-strip {
  display: grid;
  gap: 10px;
}

.product-row {
  min-height: 92px;
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
}

.product-row h3 {
  margin: 6px 0 4px;
}

.row-price {
  font-weight: 800;
  white-space: nowrap;
}

.review-dock, .empty-panel {
  padding: 16px;
}

.recharge-board {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 14px;
}

.recharge-form, .rule-panel {
  padding: 18px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.rule-panel {
  background: var(--text);
  color: var(--panel);
}

.rule-panel p {
  color: color-mix(in srgb, var(--panel) 72%, transparent);
  margin-bottom: 0;
}

.timeline {
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.timeline div {
  border-left: 2px solid var(--text);
  padding: 8px 10px;
  display: grid;
  gap: 4px;
}

.timeline span, .timeline small {
  color: var(--muted);
}

.submit-studio {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 14px;
  align-items: start;
}

.submit-card, .approval-path {
  padding: 18px;
}

.approval-path {
  display: grid;
  gap: 12px;
}

.approval-path div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 2px 10px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.approval-path div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.approval-path span, .lesson-index {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.approval-path small {
  grid-column: 2;
  color: var(--muted);
}

.library-stack {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
}

.lesson-line {
  min-height: 96px;
  padding: 16px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.lesson-line:last-child {
  border-bottom: 0;
}

.lesson-line h2 {
  margin-bottom: 4px;
}

.library-empty {
  min-height: 260px;
  display: grid;
  place-content: center;
  text-align: center;
}

.creator-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  gap: 14px;
}

.creator-summary {
  padding: 26px;
  display: grid;
  gap: 10px;
  background: var(--text);
  color: var(--panel);
}

.creator-summary strong {
  font-size: 38px;
  line-height: 1;
}

.creator-summary p, .creator-summary span {
  color: color-mix(in srgb, var(--panel) 72%, transparent);
  margin-bottom: 0;
}

.creator-metrics {
  padding: 12px;
  display: grid;
  gap: 8px;
}

.creator-metrics div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.creator-metrics small {
  color: var(--muted);
}

.sales-board, .settlement-panel {
  padding: 18px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(120px, 220px) minmax(120px, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

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

.bar-row div {
  height: 10px;
  border-radius: 999px;
  background: var(--button);
  overflow: hidden;
}

.bar-row i {
  display: block;
  height: 100%;
  background: var(--text);
}

.settlement-panel {
  display: grid;
  grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr);
  gap: 16px;
}

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

.admin-kpis div {
  padding: 16px;
  display: grid;
  gap: 8px;
}

.admin-kpis span, .admin-row small {
  color: var(--muted);
}

.admin-kpis strong {
  font-size: 26px;
}

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

.admin-table {
  padding: 16px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.admin-table.wide {
  grid-column: span 2;
}

.admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

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

.admin-row span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.watch-page {
  user-select: none;
  -webkit-user-select: none;
}

.player-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 26px;
}

.back-link {
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  text-decoration: none;
}

.player-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
}

video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
}

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

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .topbar {
    flex-direction: column;
  }

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

  .shop-layout,
  .recharge-board,
  .submit-studio,
  .creator-dashboard,
  .settlement-panel,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .product-row,
  .lesson-line,
  .bar-row {
    grid-template-columns: 1fr;
  }

  .admin-table.wide {
    grid-column: auto;
  }

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

  .feature-panel h2 {
    font-size: 28px;
  }
}

@media (max-width: 520px) {
  .main, .sidebar, .player-shell {
    padding: 16px;
  }

  .admin-kpis {
    grid-template-columns: 1fr;
  }
}

/* A single-view learner workspace does not need the management sidebar. */
body[data-panel="user"] { background: var(--panel); font-size: 14px; }
.learner-header { border-bottom: 1px solid var(--line); }
.learner-header-inner, .learner-nav, .learner-main { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.learner-header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.learner-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; flex-shrink: 0; }
.learner-brand strong { font-size: 18px; font-weight: 650; }
.learner-brand svg { width: 27px; height: 27px; }
.learner-account { position: relative; min-width: 0; }
.learner-account summary { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; list-style: none; border-radius: 6px; padding: 4px 6px; }
.learner-account summary::-webkit-details-marker { display: none; }
.learner-account summary:hover { background: var(--panel-2); }
.learner-avatar { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border: 1px solid var(--line); background: var(--bg); border-radius: 50%; }
.learner-avatar svg { width: 16px; height: 16px; }
.learner-account #accountName { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 500; }
.account-chevron { display: flex; color: var(--muted); }
.account-chevron svg { transform: rotate(-90deg); width: 13px; height: 13px; }
.learner-account[open] .account-chevron svg { transform: rotate(90deg); }
.learner-account-dropdown { position: absolute; right: 0; top: calc(100% + 10px); z-index: 10; width: 232px; max-width: calc(100vw - 40px); background: var(--panel); padding: 16px; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 28px #00000018; display: grid; gap: 8px; }
.account-caption { font-size: 11px; color: var(--muted); }
.learner-account-dropdown #userState { overflow-wrap: anywhere; font-size: 14px; font-weight: 600; padding-bottom: 8px; }
.learner-account-dropdown #logout { justify-content: flex-start; min-height: 36px; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 12px 0 0; background: transparent; font-size: 13px; color: var(--muted); }
.learner-account-dropdown #logout:hover { color: var(--text); }
.learner-nav { display: flex; gap: 24px; height: 46px; }
.learner-nav button { position: relative; height: 46px; min-height: 0; border: 0; border-radius: 0; padding: 0 2px; background: transparent; color: var(--muted); font-size: 13px; gap: 8px; }
.learner-nav button.active { color: var(--text); font-weight: 600; }
.learner-nav button.active::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--text); }
.learner-nav svg { width: 16px; height: 16px; }
.learner-main { padding-block: 48px 72px; min-width: 0; }
.learner-page-title { margin-bottom: 32px; }
.learner-eyebrow { display: block; margin-bottom: 10px; font-size: 10px; font-weight: 600; color: var(--muted); }
.learner-page-title h1 { font-size: 26px; font-weight: 650; line-height: 1.4; margin: 0 0 8px; }
.learner-page-title p { color: var(--muted); font-size: 13px; margin: 0; }
.library-empty-state { min-height: 320px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 48px 16px; border-block: 1px solid var(--line); text-align: center; }
.library-empty-icon { color: var(--muted); display: grid; place-items: center; margin-bottom: 4px; }
.library-empty-icon svg { width: 40px; height: 40px; stroke-width: 1; }
.library-empty-state h2 { font-size: 15px; font-weight: 500; margin: 0; line-height: 1.6; }
.library-empty-label { font-size: 11px; color: var(--muted); }
body[data-panel="user"] .library-stack { border: 0; border-block: 1px solid var(--line); border-radius: 0; }
body[data-panel="user"] .lesson-line { padding: 24px 0; }
body[data-panel="user"] .lesson-index { border: 0; color: var(--muted); font-size: 13px; font-weight: 400; }
body[data-panel="user"] .lesson-line h2 { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
body[data-panel="user"] .lesson-line p { font-size: 13px; line-height: 1.65; margin: 6px 0 0; overflow-wrap: anywhere; }
.lesson-watch { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: fit-content; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); text-decoration: none; font-size: 13px; white-space: nowrap; }
.lesson-watch:hover { background: var(--panel-2); }
@media (max-width: 600px) {
  .learner-header-inner, .learner-nav, .learner-main { width: calc(100% - 40px); }
  .learner-header-inner { min-height: 66px; gap: 10px 12px; flex-wrap: wrap; padding-block: 12px; }
  .learner-header-actions { margin-left: auto; justify-content: flex-end; }
  .learner-brand strong { font-size: 16px; }
  .learner-brand svg { width: 23px; height: 23px; }
  .learner-account #accountName { max-width: 100px; }
  .learner-account summary { gap: 7px; padding-inline: 0; }
  .learner-nav, .learner-nav button { height: 42px; }
  .learner-main { padding-block: 32px 48px; }
  .learner-page-title { margin-bottom: 24px; }
  .learner-page-title h1 { font-size: 23px; }
  .library-empty-state { min-height: 280px; }
  body[data-panel="user"] .lesson-line { grid-template-columns: minmax(0,1fr) auto; gap: 16px; }
  body[data-panel="user"] .lesson-index { display: none; }
}
@media (max-width: 380px) {
  .learner-account #accountName { max-width: 65px; }
  .learner-brand { gap: 6px; }
}
