:root {
  --green: #3c8614;
  --green-d: #2a6a0c;
  --green-l: #6dbb2a;
  --green-50: #f2f9ec;
  --green-100: #e0f0d0;
  --forest: #176a29;
  --black: #0b0f0b;
  --ink: #14201a;
  --muted: #5b6b62;
  --line: #e3ebe5;
  --bg: #f6f9f7;
  --white: #fff;
  --red: #dc2626;
  --amber: #d97706;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(10, 15, 12, .05), 0 10px 28px rgba(10, 15, 12, .07);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Rajdhani', 'Plus Jakarta Sans', system-ui, sans-serif;
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.2;
  color: var(--black)
}

h1 {
  font-size: 26px;
  letter-spacing: -.02em
}

h2 {
  font-size: 19px
}

h3 {
  font-size: 15px
}

a {
  color: var(--green-d)
}

button {
  font-family: inherit;
  cursor: pointer
}

input,
textarea,
select {
  font-family: inherit;
  font-size: 14px
}

.hidden {
  display: none !important
}

.muted {
  color: var(--muted)
}

.small {
  font-size: 12.5px
}

/* brand */
.brand {
  display: flex;
  align-items: center;
  gap: 10px
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(109, 187, 42, .35)
}

.brand b {
  font-size: 18px;
  letter-spacing: -.02em;
  color: var(--black);
  display: block;
  line-height: 1.1
}

.brand span {
  font-size: 11.5px;
  color: var(--muted);
  display: block
}

/* buttons */
.btn {
  background: var(--green);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 14px;
  transition: .15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none
}

.btn:hover {
  background: var(--green-d)
}

.btn:disabled {
  opacity: .5;
  cursor: not-allowed
}

.btn.dark {
  background: var(--black)
}

.btn.dark:hover {
  background: #1c2a21
}

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

.btn.ghost:hover {
  border-color: var(--green);
  color: var(--green-d);
  background: var(--green-50)
}

.btn.danger {
  background: #fff;
  color: var(--red);
  border: 1px solid #f3c9c9
}

.btn.danger:hover {
  background: #fef2f2
}

.btn.sm {
  padding: 6px 11px;
  font-size: 13px;
  border-radius: 8px
}

.icon-btn {
  background: transparent;
  border: 0;
  font-size: 22px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 8px;
  color: var(--muted)
}

.icon-btn:hover {
  background: var(--green-50);
  color: var(--black)
}

.link {
  background: none;
  border: 0;
  color: var(--green-d);
  font-weight: 600;
  padding: 0;
  font-size: 13.5px
}

.link:hover {
  text-decoration: underline
}

/* forms */
label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 14px;
  color: var(--ink)
}

label small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  margin-top: 4px
}

input[type=text],
input[type=email],
input[type=password],
input[type=number],
input[type=url],
textarea,
select {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  outline: 0;
  transition: .15s
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(109, 187, 42, .18)
}

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

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px
}

.switch {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600
}

.switch input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
  margin: 0
}

/* login */
.login-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr
}

.login-art {
  background: var(--black);
  color: #fff;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden
}

.login-art:before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  right: -160px;
  bottom: -160px;
  background: radial-gradient(circle, rgba(109, 187, 42, .55), rgba(109, 187, 42, 0) 70%)
}

.login-art .brand b {
  color: #fff
}

.login-art .brand span {
  color: #9fb3a7
}

.login-art h2 {
  color: #fff;
  font-size: 36px;
  letter-spacing: -.03em;
  max-width: 420px;
  position: relative
}

.login-art h2 em {
  font-style: normal;
  color: var(--green-l)
}

.login-art p {
  color: #9fb3a7;
  max-width: 380px;
  position: relative
}

.login-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: #fff
}

.login-card {
  width: 100%;
  max-width: 380px
}

.login-card h1 {
  margin-bottom: 6px
}

.err {
  background: #fef2f2;
  color: var(--red);
  border: 1px solid #f3c9c9;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 14px
}

.notice {
  background: var(--green-50);
  border: 1px solid var(--green-100);
  color: var(--green-d);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 16px
}

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

  .login-art {
    display: none
  }
}

/* admin layout */
.app {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh
}

.side {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: sticky;
  top: 0;
  height: 100vh
}

.side .brand {
  padding: 4px 8px 18px
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--muted);
  text-align: left;
  width: 100%;
  font-size: 14px
}

.nav-btn:hover {
  background: var(--green-50);
  color: var(--black)
}

.nav-btn.active {
  background: var(--black);
  color: #fff
}

.nav-btn.active svg {
  color: var(--green-l)
}

.nav-btn svg {
  width: 18px;
  height: 18px
}

.side .spacer {
  flex: 1
}

.main {
  padding: 30px 34px 60px;
  max-width: 1180px;
  width: 100%
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap
}

.page-head p {
  margin: 6px 0 0;
  color: var(--muted)
}

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

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 20px
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 10px
}

@media(max-width:900px) {
  .app {
    grid-template-columns: 1fr
  }

  .side {
    position: static;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center
  }

  .side .spacer {
    display: none
  }

  .main {
    padding: 20px 16px 50px
  }

  .grid2 {
    grid-template-columns: 1fr
  }
}

/* stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 20px
}

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

.stat .n {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--black)
}

.stat .l {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600
}

.stat.hl {
  background: var(--black)
}

.stat.hl .n {
  color: var(--green-l)
}

.stat.hl .l {
  color: #9fb3a7
}

.bar-row {
  display: grid;
  grid-template-columns: 200px 1fr 40px;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
  font-size: 13.5px
}

.bar {
  height: 10px;
  background: var(--green-50);
  border-radius: 99px;
  overflow: hidden
}

.bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--green-l));
  border-radius: 99px
}

@media(max-width:600px) {
  .bar-row {
    grid-template-columns: 110px 1fr 30px
  }
}

/* tables */
table {
  width: 100%;
  border-collapse: collapse
}

th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line)
}

td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 14px
}

tr:last-child td {
  border-bottom: 0
}

tr.click {
  cursor: pointer
}

tr.click:hover td {
  background: var(--green-50)
}

.table-wrap {
  overflow-x: auto
}

.empty {
  text-align: center;
  padding: 36px 16px;
  color: var(--muted);
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  background: #fff
}

.empty b {
  display: block;
  color: var(--black);
  margin-bottom: 4px;
  font-size: 16px
}

/* badges */
.badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--green-100);
  color: var(--green-d)
}

.badge.gray {
  background: #eef2ef;
  color: var(--muted)
}

.badge.dark {
  background: var(--black);
  color: var(--green-l)
}

.badge.amber {
  background: #fef3c7;
  color: #92400e
}

/* course cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px
}

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

.thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--black), #12301f);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.thumb .ph {
  color: var(--green-l);
  font-weight: 800;
  font-size: 44px;
  opacity: .9
}

.card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px
}

.card-body h3 {
  font-size: 16px
}

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

.card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 10px
}

.price {
  font-weight: 800;
  color: var(--black)
}

/* lesson rows */
.lrow {
  display: grid;
  grid-template-columns: 28px 112px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
  background: #fff
}

.lrow .no {
  font-weight: 800;
  color: var(--green-d);
  text-align: center
}

.lrow .lt {
  aspect-ratio: 16/9;
  border-radius: 8px;
  background: var(--black);
  overflow: hidden
}

.lrow .lt img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.lrow .acts {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end
}

@media(max-width:700px) {
  .lrow {
    grid-template-columns: 24px 1fr
  }

  .lrow .lt {
    display: none
  }

  .lrow .acts {
    grid-column: 1/-1;
    justify-content: flex-start
  }
}

/* modal */
.modal-back {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 12, .55);
  backdrop-filter: blur(3px);
  z-index: 50;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 4vh 16px;
  overflow: auto
}

.modal {
  background: #fff;
  border-radius: 18px;
  width: 100%;
  max-width: 760px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  display: flex;
  flex-direction: column;
  max-height: 92vh
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line)
}

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

.modal-foot {
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: var(--bg);
  border-radius: 0 0 18px 18px
}

.sec-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 22px 0 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line)
}

.box {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
  background: #fbfdfc
}

.box-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-weight: 700
}

.opt-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px
}

.opt-row input[type=radio] {
  accent-color: var(--green);
  width: 18px;
  height: 18px;
  margin: 0;
  flex: none
}

.opt-row input[type=text] {
  margin: 0
}

.yt-check {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: -4px 0 14px;
  font-size: 13px
}

.yt-check img {
  width: 96px;
  border-radius: 6px
}

/* toasts */
#toasts {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 100
}

.toast {
  background: var(--black);
  color: #fff;
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  transition: .25s;
  border-left: 4px solid var(--green-l);
  max-width: 340px
}

.toast.show {
  opacity: 1;
  transform: none
}

.toast.error {
  border-left-color: #f87171
}

/* markdown */
.md h3,
.md h4,
.md h5 {
  margin: 14px 0 6px
}

.md p {
  margin: 8px 0
}

.md ul {
  padding-left: 20px;
  margin: 8px 0
}

.md code {
  background: var(--green-50);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 13px
}

/* ===================== LMS ===================== */
.lms-top {
  background: var(--black);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 22px;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 20
}

.lms-top .brand b {
  color: #fff
}

.lms-top .brand span {
  display: none
}

.lms-top .crumb {
  font-weight: 600;
  color: #cfe0d5;
  flex: 1;
  min-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.lms-top .tools {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap
}

.lms-top label {
  margin: 0;
  color: #cfe0d5;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600
}

.lms-top input[type=checkbox] {
  accent-color: var(--green-l);
  width: 16px;
  height: 16px
}

.lms-top .btn.ghost {
  background: transparent;
  color: #fff;
  border-color: #2c3d33
}

.lms-top .btn.ghost:hover {
  background: #13261b;
  border-color: var(--green-l);
  color: var(--green-l)
}

.pbadge {
  background: var(--green-l);
  color: var(--black);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .08em;
  padding: 4px 9px;
  border-radius: 99px
}

.lms-prog {
  height: 4px;
  background: #1b2a21
}

.lms-prog i {
  display: block;
  height: 100%;
  background: var(--green-l);
  width: 0;
  transition: width .4s
}

.lms {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  padding: 24px;
  max-width: 1500px;
  margin: 0 auto
}

@media(max-width:1000px) {
  .lms {
    grid-template-columns: 1fr;
    padding: 14px
  }
}

.lesson-title {
  margin: 18px 0 4px;
  font-size: 24px
}

.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin: 16px 0 18px;
  overflow-x: auto
}

.tab {
  background: none;
  border: 0;
  padding: 11px 16px;
  font-weight: 700;
  color: var(--muted);
  border-bottom: 3px solid transparent;
  white-space: nowrap
}

.tab:hover {
  color: var(--black)
}

.tab.on {
  color: var(--green-d);
  border-bottom-color: var(--green)
}

.tab .badge {
  margin-left: 6px
}

.tab-body {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow)
}

.lockmsg {
  text-align: center;
  padding: 28px 10px;
  color: var(--muted)
}

.lockmsg svg {
  width: 34px;
  height: 34px;
  color: var(--green);
  margin-bottom: 8px
}

.res {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px
}

.res h4 {
  margin-bottom: 6px;
  display: flex;
  gap: 8px;
  align-items: center
}

.playlist-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  align-self: start;
  position: sticky;
  top: 84px
}

@media(max-width:1000px) {
  .playlist-wrap {
    position: static
  }
}

.pl-head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line)
}

.pl-head h3 {
  margin-bottom: 4px
}

.pl-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
  color: var(--ink)
}

.pl-item:last-child {
  border-bottom: 0
}

.pl-item:hover {
  background: var(--green-50)
}

.pl-item.active {
  background: var(--green-50);
  box-shadow: inset 4px 0 0 var(--green)
}

.pl-item.locked {
  opacity: .6
}

.pl-item .ic {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #eef2ef;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  color: var(--muted)
}

.pl-item .ic svg {
  width: 16px;
  height: 16px
}

.pl-item.done .ic {
  background: var(--green);
  color: #fff
}

.pl-item.active .ic {
  background: var(--black);
  color: var(--green-l)
}

.pl-item b {
  display: block;
  font-size: 14px;
  line-height: 1.3
}

.pl-item .meta {
  display: flex;
  gap: 6px;
  margin-top: 5px;
  flex-wrap: wrap
}

.q {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin: 0 0 14px
}

.q legend {
  font-weight: 700;
  padding: 0 6px
}

.opt {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 8px 0;
  cursor: pointer;
  font-weight: 500
}

.opt:hover {
  border-color: var(--green);
  background: var(--green-50)
}

.opt input {
  accent-color: var(--green);
  width: 17px;
  height: 17px;
  margin: 0
}

.result {
  border-radius: 14px;
  padding: 22px;
  text-align: center;
  margin-bottom: 6px
}

.result.pass {
  background: var(--green-50);
  border: 1px solid var(--green-100)
}

.result.fail {
  background: #fef2f2;
  border: 1px solid #f3c9c9
}

.result .big {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -.03em
}

.result.pass .big {
  color: var(--green-d)
}

.result.fail .big {
  color: var(--red)
}

.result .btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 14px;
  flex-wrap: wrap
}

.banner {
  background: var(--black);
  color: #fff;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 16px
}

.banner b {
  color: var(--green-l)
}

/* ===================== Branded player ===================== */
.bp {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  outline: 0;
  box-shadow: 0 20px 50px rgba(10, 15, 12, .28)
}

.bp:fullscreen {
  border-radius: 0;
  aspect-ratio: auto;
  width: 100vw;
  height: 100vh
}

.bp-frame {
  position: absolute;
  inset: 0
}

.bp-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none
}

.bp-shield {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer
}

.bp-ov {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  color: #fff;
  padding: 20px
}

.bp[data-state=idle] .bp-poster,
.bp[data-state=paused] .bp-pause,
.bp[data-state=ended] .bp-end,
.bp[data-state=buffering] .bp-load,
.bp[data-state=error] .bp-end {
  display: flex
}

.bp-poster {
  background: radial-gradient(circle at 80% 110%, rgba(109, 187, 42, .55), rgba(109, 187, 42, 0) 55%), linear-gradient(160deg, #0a0f0c, #10241a);
  cursor: pointer;
  gap: 14px
}

.bp-poster img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff
}

.bp-poster h3 {
  color: #fff;
  font-size: clamp(16px, 2.4vw, 26px);
  max-width: 80%
}

.bp-big {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--green);
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: .2s;
  box-shadow: 0 0 0 10px rgba(109, 187, 42, .25)
}

.bp-big svg {
  width: 34px;
  height: 34px;
  margin-left: 3px;
  fill: #fff
}

.bp-poster:hover .bp-big,
.bp-pause:hover .bp-big {
  transform: scale(1.08);
  background: var(--green-l)
}

.bp-pause {
  background: rgba(5, 10, 7, .55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer
}

.bp-end {
  background: linear-gradient(160deg, #0a0f0c, #10241a);
  gap: 12px
}

.bp-end h3 {
  color: #fff;
  font-size: clamp(17px, 2.4vw, 26px)
}

.bp-end p {
  color: #b6c9bd;
  margin: 0;
  max-width: 420px
}

.bp-end .acts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px
}

.bp-load {
  background: rgba(0, 0, 0, .25);
  pointer-events: none
}

.bp-spin {
  width: 46px;
  height: 46px;
  border: 4px solid rgba(255, 255, 255, .25);
  border-top-color: var(--green-l);
  border-radius: 50%;
  animation: sp 1s linear infinite
}

@keyframes sp {
  to {
    transform: rotate(360deg)
  }
}

.bp-wm {
  position: absolute;
  z-index: 4;
  color: rgba(255, 255, 255, .28);
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
  transition: all 2s;
  text-shadow: 0 0 4px rgba(0, 0, 0, .4)
}

.bp-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  padding: 34px 14px 10px;
  background: linear-gradient(transparent, rgba(5, 10, 7, .88));
  color: #fff;
  transition: opacity .25s
}

.bp[data-state=idle] .bp-controls,
.bp[data-state=error] .bp-controls {
  display: none
}

.bp.hide-ui[data-state=playing] .bp-controls {
  opacity: 0;
  pointer-events: none
}

.bp.hide-ui[data-state=playing] {
  cursor: none
}

.bp-track {
  position: relative;
  height: 18px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none
}

.bp-rail {
  position: relative;
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, .22);
  border-radius: 99px;
  transition: height .15s
}

.bp-track:hover .bp-rail {
  height: 8px
}

.bp-allowed,
.bp-played {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 99px
}

.bp-allowed {
  background: rgba(255, 255, 255, .28)
}

.bp-played {
  background: var(--green-l)
}

.bp-thumb {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--green);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px rgba(109, 187, 42, .25)
}

.bp-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px
}

.bp-btn {
  background: transparent;
  border: 0;
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: .15s
}

.bp-btn:hover {
  background: rgba(109, 187, 42, .25);
  color: var(--green-l)
}

.bp-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor
}

.bp-time {
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin: 0 8px;
  white-space: nowrap
}

.bp-sp {
  flex: 1
}

.bp-vol {
  display: flex;
  align-items: center
}

.bp-vol input {
  width: 0;
  opacity: 0;
  transition: .2s;
  margin: 0;
  accent-color: var(--green-l);
  padding: 0;
  border: 0;
  height: 4px;
  box-shadow: none
}

.bp-vol:hover input,
.bp-vol:focus-within input {
  width: 76px;
  opacity: 1;
  margin-right: 6px
}

.bp-rate {
  font-size: 13px;
  font-weight: 800;
  width: auto;
  padding: 0 10px;
  border-radius: 99px
}

.bp-menu {
  position: absolute;
  right: 56px;
  bottom: 56px;
  background: var(--black);
  border: 1px solid #20332a;
  border-radius: 12px;
  padding: 6px;
  display: none;
  min-width: 96px;
  z-index: 8;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .45)
}

.bp-menu.open {
  display: block
}

.bp-menu button {
  display: block;
  width: 100%;
  background: none;
  border: 0;
  color: #fff;
  padding: 8px 12px;
  text-align: left;
  font-weight: 700;
  font-size: 13px;
  border-radius: 8px
}

.bp-menu button:hover {
  background: #16301f
}

.bp-menu button.on {
  color: var(--green-l)
}

@media(max-width:560px) {
  .bp-btn {
    width: 34px;
    height: 34px
  }

  .bp-btn svg {
    width: 21px;
    height: 21px
  }

  .bp-vol {
    display: none
  }

  .bp-time {
    margin: 0 4px;
    font-size: 12px
  }
}

/* ===================== v2: brand, admin additions ===================== */
h1,
h2,
.display {
  font-family: var(--display);
  letter-spacing: 0
}

h1 {
  font-size: 30px;
  font-weight: 700
}

h2 {
  font-size: 22px;
  font-weight: 700
}

.brand b {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .01em
}

.login-art .logo-big {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
  box-shadow: 0 0 0 6px rgba(109, 187, 42, .35), 0 20px 60px rgba(0, 0, 0, .4);
  position: relative
}

.login-art h2 {
  font-size: 44px;
  line-height: 1.05
}

.nav-btn .count {
  margin-left: auto;
  background: var(--green-l);
  color: var(--black);
  font-size: 11px;
  font-weight: 800;
  border-radius: 99px;
  padding: 1px 8px
}

.nav-btn.active .count {
  background: #fff
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px
}

.chip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 6px 14px;
  font-weight: 700;
  font-size: 13px;
  color: var(--muted)
}

.chip:hover {
  border-color: var(--green);
  color: var(--green-d)
}

.chip.on {
  background: var(--black);
  color: #fff;
  border-color: var(--black)
}

.search {
  max-width: 320px;
  margin: 0 0 14px
}

.badge.red {
  background: #fee2e2;
  color: #991b1b
}

.badge.blue {
  background: #e0f2fe;
  color: #075985
}

td .sub {
  display: block;
  color: var(--muted);
  font-size: 12.5px
}

.row-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap
}

.cred {
  background: var(--black);
  color: #fff;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 14px
}

.cred dl {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 8px 12px;
  margin: 0
}

.cred dt {
  color: #9fb3a7;
  font-size: 13px
}

.cred dd {
  margin: 0;
  font-weight: 700;
  word-break: break-all
}

.cred .pw {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  background: #16301f;
  color: var(--green-l);
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 16px
}

.opt-row.correct input[type=text] {
  border-color: var(--green);
  background: var(--green-50);
  font-weight: 600
}

.opt-row .ok {
  font-size: 12px;
  font-weight: 800;
  color: var(--green-d);
  width: 64px;
  flex: none;
  visibility: hidden
}

.opt-row.correct .ok {
  visibility: visible
}

.hint-bar {
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
  margin-bottom: 12px;
  color: var(--green-d);
  font-weight: 600
}

.mini-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 110px
}

.mini-bars div {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
  font-size: 10.5px;
  color: var(--muted);
  gap: 4px
}

.mini-bars i {
  display: block;
  width: 100%;
  background: linear-gradient(var(--green-l), var(--green));
  border-radius: 6px 6px 2px 2px;
  min-height: 3px
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px
}

@media(max-width:900px) {
  .two {
    grid-template-columns: 1fr
  }
}

/* ===================== v2: public site ===================== */
.site-top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line)
}

.site-top .in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 22px
}

.site-top nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px
}

.site-top nav a.l {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px
}

.site-top nav a.l:hover {
  background: var(--green-50);
  color: var(--green-d)
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px
}

.hero {
  background: linear-gradient(180deg, var(--green-50), #fff 70%);
  overflow: hidden
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 30px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 72px
}

.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: .98;
  font-weight: 700;
  max-width: 12ch
}

.hero p.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 46ch;
  margin: 18px 0 26px
}

.hero .cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap
}

.btn.lg {
  padding: 14px 24px;
  font-size: 16px;
  border-radius: 12px
}

.halo {
  position: relative;
  aspect-ratio: 1;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center
}

.halo img {
  width: 62%;
  height: 62%;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 24px 60px rgba(23, 106, 41, .28);
  position: relative;
  z-index: 2
}

.halo i {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--green);
  opacity: .55
}

.halo i:nth-child(1) {
  inset: 8%;
  border-color: var(--green-l)
}

.halo i:nth-child(2) {
  inset: 0;
  opacity: .3
}

.halo i:nth-child(3) {
  inset: -9%;
  opacity: .16;
  border-style: dashed
}

@media(max-width:860px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    padding-top: 36px;
    padding-bottom: 44px
  }

  .halo {
    max-width: 260px;
    order: -1
  }

  .hero h1 {
    max-width: none
  }
}

.dark-band {
  background: var(--black);
  color: #fff;
  padding: 54px 0
}

.dark-band h2 {
  color: #fff;
  font-size: 32px;
  margin-bottom: 26px
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: s
}

.steps div {
  border-top: 2px solid var(--green-l);
  padding-top: 14px;
  counter-increment: s
}

.steps div:before {
  content: counter(s);
  font-family: var(--display);
  font-size: 34px;
  font-weight: 700;
  color: var(--green-l);
  display: block;
  line-height: 1
}

.steps b {
  display: block;
  font-size: 17px;
  margin: 6px 0 4px
}

.steps span {
  color: #9fb3a7;
  font-size: 14.5px
}

@media(max-width:760px) {
  .steps {
    grid-template-columns: 1fr
  }
}

.section {
  padding: 56px 0
}

.section h2 {
  font-size: 32px;
  margin-bottom: 6px
}

.section .sub {
  color: var(--muted);
  margin: 0 0 26px
}

.c-card .thumb {
  aspect-ratio: 16/9
}

.c-card .thumb .ph-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
  opacity: .95
}

.c-card .tag {
  position: absolute;
  left: 12px;
  top: 12px;
  background: rgba(11, 15, 11, .78);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px
}

.c-price {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  color: var(--black)
}

.outline {
  margin: 0;
  padding: 0;
  list-style: none
}

.outline li {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600
}

.outline li:last-child {
  border-bottom: 0
}

.outline .n {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green-d);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none
}

.site-foot {
  background: var(--black);
  color: #cfe0d5;
  padding: 34px 0;
  margin-top: 30px
}

.site-foot .wrap {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between
}

.site-foot a {
  color: var(--green-l);
  font-weight: 600
}

.pay-sum {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  gap: 12px
}

.pay-sum b {
  font-size: 15px
}

.chk {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 500;
  font-size: 13px;
  color: var(--muted)
}

.chk input {
  margin-top: 3px;
  accent-color: var(--green);
  width: 16px;
  height: 16px
}

.center-card {
  max-width: 560px;
  margin: 9vh auto;
  padding: 0 20px;
  text-align: center
}

.center-card .panel {
  padding: 34px 28px;
  text-align: left
}

.tick {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px
}

.tick svg {
  width: 32px;
  height: 32px;
  stroke: #fff
}

.ref {
  display: inline-block;
  background: var(--green-50);
  border: 1px dashed var(--green);
  border-radius: 8px;
  padding: 3px 10px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 13px;
  font-weight: 700
}

.page-simple {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 60px
}

.page-simple h2 {
  margin: 30px 0 8px
}

.page-simple p,
.page-simple li {
  color: #33423a
}

/* student dashboard */
.s-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 24px 60px
}

.s-hello {
  margin-bottom: 22px
}

.s-hello h1 {
  font-size: 34px
}

.prog-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600
}

.prog-line .bar {
  flex: 1
}

.lms-top .who {
  color: #cfe0d5;
  font-size: 13px;
  font-weight: 600
}

/* ===================== v3: student portal ===================== */
.s-top {
  display: none
}

.s-app .side {
  background: var(--black);
  border-right: 0
}

.s-app .side .brand b {
  color: #fff
}

.s-app .side .brand span {
  color: #9fb3a7
}

.s-nav {
  display: flex;
  flex-direction: column;
  gap: 4px
}

.s-app .nav-btn {
  color: #b6c9bd;
  text-decoration: none;
  position: relative
}

.s-app .nav-btn:hover {
  background: #13261b;
  color: #fff
}

.s-app .nav-btn.active {
  background: var(--green);
  color: #fff
}

.s-app .nav-btn.active svg {
  color: #fff
}

.s-app .nav-btn .count {
  background: var(--green-l);
  color: var(--black)
}

.s-app .nav-btn.active .count {
  background: #fff
}

.side-streak {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #10241a;
  border: 1px solid #1d3a28;
  border-radius: 14px;
  padding: 10px 14px;
  color: #fff;
  text-decoration: none;
  margin-bottom: 6px
}

.side-streak b {
  font-family: var(--display);
  font-size: 30px;
  line-height: 1;
  color: var(--green-l)
}

.side-streak span {
  font-size: 12.5px;
  color: #b6c9bd;
  font-weight: 600;
  line-height: 1.25
}

.side-streak.off b {
  color: #5f7566
}

.s-hello {
  margin-bottom: 22px
}

.s-hello h1 {
  font-size: 34px
}

.resume {
  background: var(--black);
  color: #fff;
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden
}

.resume:after {
  content: "";
  position: absolute;
  right: -90px;
  top: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109, 187, 42, .45), rgba(109, 187, 42, 0) 70%);
  pointer-events: none
}

.resume h2 {
  color: #fff;
  font-size: 26px;
  margin: 4px 0 6px
}

.resume .next {
  color: #b6c9bd;
  font-size: 14px;
  margin: 0 0 14px
}

.resume .bar {
  background: #1b2a21;
  max-width: 360px
}

.resume .bar i {
  background: var(--green-l)
}

.resume .lab {
  color: #9fb3a7;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px
}

.resume .btn {
  position: relative;
  z-index: 1
}

.stat .n small {
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  margin-left: 4px
}

.stat.hl .n small {
  color: #9fb3a7
}

.upd {
  border-bottom: 1px solid var(--line);
  padding: 16px 0
}

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

.upd:first-child {
  padding-top: 0
}

.upd h3 {
  font-size: 16px;
  margin-bottom: 4px
}

.upd .when {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  gap: 8px;
  align-items: center
}

.upd.new h3:before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-l);
  margin-right: 8px;
  vertical-align: middle
}

/* analytics */
.wk {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 170px
}

.wk div {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  height: 100%
}

.wk i {
  display: block;
  width: 100%;
  max-width: 46px;
  border-radius: 99px 99px 6px 6px;
  background: linear-gradient(var(--green-l), var(--green));
  min-height: 4px
}

.wk i.z {
  background: #e3ebe5
}

.wk .v {
  font-size: 12px;
  font-weight: 700;
  color: var(--black);
  min-height: 16px
}

.wk .l {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600
}

.wk div.today .l {
  color: var(--green-d)
}

.pbar-row {
  display: grid;
  grid-template-columns: minmax(120px, 240px) 1fr 90px;
  gap: 14px;
  align-items: center;
  margin: 12px 0;
  font-size: 14px
}

.pbar-row b {
  font-size: 14px
}

.pbar-row .r {
  text-align: right;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px
}

@media(max-width:600px) {
  .pbar-row {
    grid-template-columns: 1fr 70px
  }

  .pbar-row .bar {
    grid-column: 1/-1;
    order: 3
  }
}

/* streak */
.streak-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 34px;
  align-items: center
}

.ring {
  position: relative;
  width: 190px;
  height: 190px
}

.ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg)
}

.ring .bg {
  fill: none;
  stroke: var(--green-100);
  stroke-width: 12
}

.ring .fg {
  fill: none;
  stroke: var(--green);
  stroke-width: 12;
  stroke-linecap: round;
  transition: stroke-dasharray .8s
}

.ring .n {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center
}

.ring .n b {
  font-family: var(--display);
  font-size: 64px;
  line-height: .95;
  color: var(--black)
}

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

.streak-hero h2 {
  font-size: 26px;
  margin-bottom: 6px
}

.streak-hero p {
  margin: 0 0 16px;
  color: var(--muted);
  max-width: 46ch
}

.weekrow {
  display: flex;
  gap: 10px;
  margin-bottom: 18px
}

.weekrow div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted)
}

.weekrow i {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e8efe9;
  display: flex;
  align-items: center;
  justify-content: center
}

.weekrow i.on {
  background: var(--green)
}

.weekrow i.on svg {
  width: 15px;
  height: 15px;
  color: #fff
}

.weekrow i.now {
  outline: 2px solid var(--black);
  outline-offset: 2px
}

.mini-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap
}

.mini-stats b {
  font-family: var(--display);
  font-size: 28px;
  display: block;
  line-height: 1;
  color: var(--black)
}

.mini-stats span {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600
}

@media(max-width:700px) {
  .streak-hero {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center
  }

  .weekrow,
  .mini-stats {
    justify-content: center
  }

  .streak-hero p {
    margin-left: auto;
    margin-right: auto
  }
}

.heat {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(7, auto);
  grid-auto-columns: minmax(14px, 30px);
  gap: 6px;
  overflow-x: auto;
  padding: 6px 2px 8px
}

.heat i {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #e8efe9
}

.heat i.l1 {
  background: #cfe6b8
}

.heat i.l2 {
  background: #9fd06a
}

.heat i.l3 {
  background: #6dbb2a
}

.heat i.l4 {
  background: #2a6a0c
}

.heat i.fut {
  background: transparent
}

.heat i.now {
  outline: 2px solid var(--black);
  outline-offset: 1px
}

.heat-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 6px
}

.heat-legend i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block
}

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

.mile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted)
}

.mile i {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  border: 2px dashed #c9d6cd;
  color: #9fb0a5;
  background: #fff
}

.mile.on i {
  background: var(--green);
  border: 2px solid var(--green);
  color: #fff;
  box-shadow: 0 0 0 4px var(--green-100)
}

.mile.on {
  color: var(--black)
}

/* profile */
.avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 36px;
  font-weight: 700;
  box-shadow: 0 0 0 5px var(--green-100)
}

.prof-head {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap
}

.prof-head h2 {
  font-size: 26px
}

.prof-head p {
  margin: 2px 0 0;
  color: var(--muted)
}

.ro {
  background: #f3f7f4 !important;
  color: var(--muted) !important
}

/* mobile: bottom tab bar */
@media(max-width:900px) {
  .s-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: var(--black);
    position: sticky;
    top: 0;
    z-index: 30
  }

  .s-top .brand b {
    color: #fff
  }

  .s-top .btn.ghost {
    background: transparent;
    color: #fff;
    border-color: #2c3d33
  }

  .s-app {
    display: block
  }

  .s-app .main {
    padding: 18px 16px 96px
  }

  .s-app .side {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    height: auto;
    z-index: 40;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    flex-direction: row;
    border-top: 1px solid #1d3a28;
    gap: 0
  }

  .s-app .side .brand,
  .s-app .side .spacer,
  .s-app .side-streak,
  .s-app .s-out {
    display: none
  }

  .s-nav {
    flex-direction: row;
    width: 100%;
    gap: 2px
  }

  .s-app .nav-btn {
    flex: 1;
    flex-direction: column;
    gap: 3px;
    padding: 7px 2px;
    font-size: 10.5px;
    text-align: center;
    justify-content: center;
    align-items: center;
    border-radius: 10px
  }

  .s-app .nav-btn span.t {
    font-size: 10.5px
  }

  .s-app .nav-btn .count {
    position: absolute;
    top: 2px;
    right: 18%;
    margin: 0;
    padding: 0 5px;
    font-size: 10px
  }

  .s-hello h1 {
    font-size: 28px
  }

  .resume h2 {
    font-size: 22px
  }
}

/* ---- PWA install bar ---- */
.install-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--black);
  color: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 18px
}

.install-bar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex: none
}

.install-bar div {
  flex: 1;
  min-width: 0
}

.install-bar b {
  display: block;
  font-size: 14.5px
}

.install-bar span {
  font-size: 12.5px;
  color: #b9c5b9
}

.install-bar .x {
  background: none;
  border: 0;
  color: #9aa89a;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px
}

/* ---- live classes, calendar, rows ---- */
.liverow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line, #e4ebe4);
  flex-wrap: wrap
}

.liverow:first-of-type {
  border-top: 0
}

.liverow .ld {
  flex: 1;
  min-width: 180px
}

.liverow .ld b {
  display: block
}

.liverow .ld span {
  font-size: 13px;
  color: #5b665b
}

.liverow.off {
  opacity: .55
}

.agenda h3 {
  font-size: 14px;
  margin: 16px 0 2px;
  color: var(--green-d)
}

.cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  text-align: center
}

.cal b {
  font-size: 11px;
  color: #7b867b;
  font-weight: 700
}

.cal i {
  font-style: normal;
  font-size: 13.5px;
  padding: 9px 0;
  border-radius: 10px;
  position: relative
}

.cal i.on {
  background: #e6f3d9;
  color: var(--green-d);
  font-weight: 800
}

.cal i.on::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--green)
}

.cal i.now {
  outline: 2px solid var(--black)
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 4px
}

tr.off td {
  opacity: .5
}

/* ===================== markdown v3: code blocks, tables, quotes, editor toolbar ===================== */
.md {
  line-height: 1.65;
  overflow-wrap: anywhere
}

.md h3,
.md h4,
.md h5,
.md h6 {
  margin: 18px 0 6px;
  line-height: 1.25
}

.md h6 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted, #667)
}

.md ul,
.md ol {
  padding-left: 22px;
  margin: 8px 0
}

.md li {
  margin: 3px 0
}

.md li.task {
  list-style: none;
  margin-left: -20px
}

.md li.task input {
  margin-right: 6px;
  vertical-align: middle
}

.md a {
  color: var(--green-700, #2f6f0f);
  text-decoration: underline;
  text-underline-offset: 2px
}

.md img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 8px 0;
  border: 1px solid var(--line, #e5e7eb)
}

.md hr {
  border: 0;
  border-top: 1px solid var(--line, #e5e7eb);
  margin: 18px 0
}

.md del {
  opacity: .65
}

.md blockquote {
  margin: 12px 0;
  padding: 4px 14px;
  border-left: 4px solid #cbd5c0;
  background: #f6f9f3;
  border-radius: 0 10px 10px 0;
  color: inherit
}

.md blockquote p {
  margin: 6px 0
}

.md blockquote.callout {
  border-left-width: 4px
}

.md blockquote.callout .callout-t {
  display: block;
  font-size: 11px;
  letter-spacing: .08em;
  margin: 6px 0 0
}

.md blockquote.tip,
.md blockquote.info {
  border-color: #3c8614;
  background: #f0f8ea
}

.md blockquote.note {
  border-color: #2563eb;
  background: #eff5ff
}

.md blockquote.warning {
  border-color: #d97706;
  background: #fff7e6
}

.md blockquote.important {
  border-color: #dc2626;
  background: #fff0f0
}

.md :not(pre)>code {
  background: #eef4ea;
  color: #1c3d0b;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: .88em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace
}

.md-table {
  overflow-x: auto;
  margin: 12px 0;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 12px
}

.md-table table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px
}

.md-table th,
.md-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line, #e5e7eb);
  text-align: left;
  vertical-align: top
}

.md-table th {
  background: #f4f7f1;
  font-weight: 700
}

.md-table tr:last-child td {
  border-bottom: 0
}

.code-block {
  margin: 12px 0;
  border-radius: 12px;
  overflow: hidden;
  background: #0f1a0f;
  border: 1px solid #1f2f1f
}

.code-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px 6px 14px;
  background: #162416;
  color: #a8c49a;
  font-size: 12px;
  letter-spacing: .05em;
  text-transform: uppercase
}

.code-copy {
  background: #2a4a1a;
  color: #e6f5da;
  border: 0;
  border-radius: 8px;
  padding: 5px 12px;
  font: 600 12px/1 inherit;
  cursor: pointer
}

.code-copy:hover {
  background: #3c8614
}

.code-copy.ok {
  background: #3c8614
}

.code-block pre {
  margin: 0;
  padding: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch
}

.code-block code {
  display: block;
  background: none !important;
  color: #e5efe0 !important;
  padding: 0 !important;
  font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre;
  tab-size: 4
}

.tk-c {
  color: #7f9b76;
  font-style: italic
}

.tk-s {
  color: #f2c879
}

.tk-n {
  color: #f29c7d
}

.tk-k {
  color: #8fd36a;
  font-weight: 600
}

.md-ed .md-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 4px 0 6px
}

.md-ed .md-bar button {
  border: 1px solid var(--line, #d9ded5);
  background: #fff;
  border-radius: 8px;
  padding: 5px 9px;
  font: 600 12px/1 inherit;
  cursor: pointer;
  color: #1a2b12
}

.md-ed .md-bar button:hover {
  background: #f0f8ea
}

.md-ed .md-bar button.on {
  background: #1a2b12;
  color: #fff
}

.md-ed .md-prev {
  border: 1px dashed #b7c9aa;
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 110px;
  background: #fff
}

.md-ed textarea {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px
}

.md-ed details {
  margin-top: 6px;
  font-size: 12.5px
}

.md-ed details pre {
  background: #f6f9f3;
  padding: 8px 10px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 6px 0 0
}
