/* THE ORCHARD METHOD — member area + "UI สอน" lesson player (agent PLAYER) */
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  font-family: var(--f-th);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(var(--lime-rgb),.07), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(90,120,255,.05), transparent 60%),
    var(--bg);
}
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(var(--fg-rgb),.12); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

.app { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(var(--bg-rgb),.72);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 16px rgba(var(--lime-rgb),.6); flex: none; }
.brand-name { font-family: var(--f-lat); font-weight: 700; letter-spacing: .06em; font-size: 14px; white-space: nowrap; }
.brand-sep { color: var(--text-3); }
.brand-course { font-family: var(--f-lat); font-weight: 500; letter-spacing: .14em; font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tier-badge {
  font-family: var(--f-lat); font-weight: 700; font-size: 12px; letter-spacing: .14em;
  padding: 7px 12px; border-radius: 999px; white-space: nowrap;
  border: 1px solid rgba(var(--lime-rgb),.4); color: var(--lime-ink); background: var(--lime-dim);
}
.tier-badge.pdf { color: var(--text); border-color: var(--line-2); background: rgba(var(--fg-rgb),.06); }
.topbar-r { display: flex; align-items: center; gap: 8px; flex: none; }
.sign-out { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.sign-out:hover { color: var(--text); border-color: rgba(var(--lime-rgb),.5); }
.nw { white-space: nowrap; }
@media (max-width: 560px) {
  .brand-sep, .brand-course { display: none; }
  .sign-out { padding: 0; width: 34px; height: 34px; justify-content: center; }
  .sign-out .so-t { display: none; }
}
@media (max-width: 340px) { .tier-badge { display: none !important; } }

.view { flex: 1; width: 100%; max-width: 1360px; margin: 0 auto; padding: 28px clamp(16px, 4vw, 40px) 60px; }
.foot { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; padding: 22px clamp(16px, 4vw, 40px); color: var(--text-3); font-size: 16px; border-top: 1px solid var(--line); }
.foot a { color: var(--text-2); text-decoration: none; }
.foot a:hover { color: var(--lime-ink); }

.boot { display: flex; gap: 12px; align-items: center; justify-content: center; min-height: 50vh; color: var(--text-2); }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(var(--fg-rgb),.15); border-top-color: var(--lime-line); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- greeting + cards ---------- */
.hello { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.eyebrow { font-family: var(--f-lat); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--lime-ink); font-weight: 600; }
.hello h1 { margin: 6px 0 4px; font-family: var(--f-th-bold); font-weight: 700; font-size: clamp(28px, 4vw, 42px); line-height: 1.15; }
.hello p { margin: 0; color: var(--text-2); font-size: 19px; line-height: 1.65; }
.code-pill { font-family: var(--f-mono); font-size: 14px; color: var(--text-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 14px; }
.code-pill b { color: var(--text); font-weight: 600; }
.hello-pills { display: flex; flex-wrap: wrap; gap: 8px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin: 28px 0 0; }
.card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(var(--fg-rgb),.045), rgba(var(--fg-rgb),.015));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px;
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 12px 32px rgba(0,0,0,calc(.25*var(--shk)));
}
.card h3 { margin: 10px 0 6px; font-family: var(--f-th-bold); font-size: 25px; }
.card p { margin: 0 0 14px; color: var(--text-2); font-size: 18px; line-height: 1.7; }
.card .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--lime-dim); color: var(--lime-ink); }
.btn {
  font-size: 18px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none;
  background: var(--lime); color: var(--on-lime); font-family: var(--f-th-bold); font-weight: 700; font-size: 17px;
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(var(--lime-rgb),.28); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); }
.btn.ghost:hover { border-color: rgba(var(--lime-rgb),.5); box-shadow: none; }

/* ---------- course layout ---------- */
.course { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
@media (max-width: 1080px) { .course { grid-template-columns: 1fr; } }
.now { margin: 16px 2px 0; }
.now .eyebrow { color: var(--text-3); }
.now h2 { margin: 6px 0 4px; font-family: var(--f-th-bold); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; }
.now p { margin: 0; color: var(--text-2); line-height: 1.7; font-size: 19px; }

.lessons { background: rgba(var(--fg-rgb),.025); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; position: sticky; top: calc(var(--topbar-h, 58px) + 70px); max-height: calc(100vh - var(--topbar-h, 58px) - 90px); overflow: auto; }
@media (max-width: 1080px) { .lessons { position: static; max-height: none; } }
.lessons-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px 10px; }
.lessons-head b { font-family: var(--f-th-bold); font-size: 21px; }
.prog { font-family: var(--f-mono); font-size: 14px; color: var(--text-2); }
.prog-bar { height: 4px; border-radius: 4px; background: rgba(var(--fg-rgb),.08); margin: 0 10px 8px; overflow: hidden; }
.prog-bar i { display: block; height: 100%; background: var(--lime); border-radius: 4px; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.mod { font-family: var(--f-th-bold); font-size: 15px; letter-spacing: 0; color: var(--text-3); padding: 14px 10px 6px; }
.mod span { font-family: var(--f-th); letter-spacing: 0; text-transform: none; font-size: 17px; color: var(--text-2); }
.li {
  width: 100%; display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; text-align: left;
  padding: 10px; border-radius: 12px; border: 1px solid transparent; background: transparent; cursor: pointer;
  transition: background .2s, border-color .2s;
}
.li:hover { background: rgba(var(--fg-rgb),.05); }
.li.active { background: var(--lime-dim); border-color: rgba(var(--lime-rgb),.35); }
.li .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-lat); font-weight: 600; font-size: 13px; border: 1px solid var(--line-2); color: var(--text-2); }
.li.done .n { background: var(--lime); color: var(--on-lime); border-color: var(--lime-line); }
.li.active .n { border-color: var(--lime-line); color: var(--lime-ink); }
.li.done.active .n { color: var(--on-lime); }
.li .t { font-size: 18px; line-height: 1.45; }
.li .d { font-family: var(--f-mono); font-size: 13px; color: var(--text-3); }
.li.locked { cursor: default; opacity: .55; }
.li.locked:hover { background: transparent; }
.lock-cta { margin: 12px 6px 6px; padding: 16px; border-radius: 14px; background: radial-gradient(400px 160px at 100% 0%, rgba(var(--lime-rgb),.14), transparent 70%), rgba(var(--fg-rgb),.03); border: 1px solid rgba(var(--lime-rgb),.25); }
.lock-cta p { margin: 0 0 12px; color: var(--text-2); font-size: 17px; line-height: 1.65; }
.locked-stage { aspect-ratio: 16/9; border-radius: var(--radius); border: 1px solid var(--line); display: grid; place-items: center; text-align: center; padding: 24px; background: radial-gradient(600px 300px at 50% 0%, rgba(var(--lime-rgb),.08), transparent 70%), var(--bg-2); }
.locked-stage h2 { font-family: var(--f-th-bold); margin: 10px 0 6px; font-size: clamp(20px, 3vw, 30px); }
.locked-stage p { color: var(--text-2); margin: 0 0 16px; font-size: 18px; }

/* invalid screen */
.gate { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.gate-box { max-width: 520px; }
.gate-box h1 { font-family: var(--f-th-bold); font-size: clamp(26px, 4vw, 36px); margin: 14px 0 8px; }
.gate-box p { color: var(--text-2); line-height: 1.6; margin: 0 0 22px; font-size: 19px; }
.gate-ic { width: 64px; height: 64px; margin: 0 auto; border-radius: 20px; display: grid; place-items: center; background: var(--lime-dim); color: var(--lime-ink); }
/* login (/learn without a token) */
.gate.login { padding: 12px 0 20px; }
.lg-box { width: 100%; max-width: 460px; }
.lg-box .eyebrow { margin-top: 16px; }
.lg-box h1 { margin-top: 6px; }
.lg-note { margin: -8px 0 18px !important; padding: 10px 14px; border-radius: 12px; font-size: 17px !important; color: var(--text) !important; background: rgba(var(--fg-rgb),.05); border: 1px solid var(--line-2); }
.lg-card { text-align: left; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); box-shadow: 0 1px 2px rgba(0,0,0,calc(.05*var(--shk))), 0 14px 36px rgba(0,0,0,calc(.2*var(--shk))); }
.lg-h { margin: 0 !important; font-family: var(--f-th-bold); font-weight: 700; font-size: 19px !important; color: var(--text) !important; }
.lg-s { margin: 2px 0 12px !important; font-size: 16px !important; }
.lg-g .gauth-btn { min-height: 44px; }
.lg-g .gauth-msg { margin: 8px 0 0 !important; font-size: 16px !important; }
.lg-g[hidden] + .lg-or { display: none; }
.lg-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 !important; font-size: 15px !important; color: var(--text-3) !important; }
.lg-or::before, .lg-or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.lg-form { display: grid; gap: 6px; }
.lg-form .lg-h { margin-bottom: 6px !important; }
.lg-form label { font-size: 16px; color: var(--text-2); margin-top: 4px; }
.lg-in { width: 100%; height: 50px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: inherit; font-size: 18px; }
.lg-in:focus { outline: none; border-color: var(--lime-line); box-shadow: 0 0 0 3px rgba(var(--lime-rgb),.22); }
.lg-err { margin: 6px 0 0 !important; font-size: 16px !important; color: var(--warn) !important; }
.lg-go { margin-top: 12px; width: 100%; height: 50px; }
.lg-go:disabled { opacity: .6; cursor: progress; transform: none; }
.lg-res { display: grid; gap: 10px; margin-top: 14px; }
.lg-res strong { font-family: var(--f-th-bold); }
.lg-foot { margin: 18px 0 0 !important; font-size: 16px !important; line-height: 1.8 !important; color: var(--text-3) !important; }
.lg-foot a { color: var(--text-2); }
.lg-foot a:hover { color: var(--lime-ink); }
.setup-stage { min-height: 120px; }


/* ---------- v2 member area: chips + sections ---------- */
html { scroll-behavior: smooth; }
html.lb-open { overflow: hidden; }
.view { max-width: 1180px; }
.chips {
  position: sticky; top: var(--topbar-h, 58px); z-index: 40;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(-1 * clamp(16px, 4vw, 40px)) 8px; padding: 10px clamp(16px, 4vw, 40px);
  background: rgba(var(--bg-rgb),.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.chips::-webkit-scrollbar { display: none; }
.chip-nav {
  flex: none; display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  padding: 8px 14px 8px 8px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg);
  font-size: 16px; font-weight: 600; color: var(--text); white-space: nowrap; transition: background .2s, border-color .2s;
}
.chip-nav .cn { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-lat); font-weight: 700; font-size: 12px; background: rgba(var(--fg-rgb),.07); }
.chip-nav.off { color: var(--text-2); }
.chip-nav.off svg { width: 13px; height: 13px; opacity: .7; }
.chip-nav.cur { border-color: var(--lime-line); background: var(--lime-dim); }
.chip-nav.cur .cn { background: var(--lime); color: var(--on-lime); }
.msec { scroll-margin-top: calc(var(--topbar-h, 58px) + 66px); padding: 34px 0 10px; border-top: 1px solid var(--line); margin-top: 18px; }
.msec:first-of-type { border-top: 0; }
.msec-hd { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.msec-n { flex: none; font-family: var(--f-lat); font-weight: 800; font-size: 13px; letter-spacing: .06em; color: var(--lime-ink); border: 1px solid var(--lime-line); border-radius: 10px; padding: 6px 8px; margin-top: 4px; }
.msec-hd h2 { margin: 4px 0 4px; font-family: var(--f-th-bold); font-weight: 700; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; }
.msec-hd p { margin: 0; color: var(--text-2); font-size: 19px; line-height: 1.65; }
.boot.sm { min-height: 120px; }
.fail { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; color: var(--text-2); font-size: 18px; padding: 18px; border: 1px dashed var(--line-2); border-radius: var(--radius-sm); }
.btn.sm { padding: 8px 15px; font-size: 16px; }
.btn.up s { text-decoration: line-through; opacity: .7; font-family: var(--f-th); font-weight: 400; }
.muted { color: var(--text-2); font-size: 18px; }

/* prompt guide */
.pg-tools { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 12px; }
.search { flex: 1 1 280px; display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 50px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text-3); }
.search:focus-within { border-color: var(--lime-line); box-shadow: 0 0 0 3px rgba(var(--lime-rgb),.18); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 18px; }
.pg-count { font-family: var(--f-mono); font-size: 14px; color: var(--text-2); }
.pg-jump { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.pg-jb { cursor: pointer; border: 1px solid var(--line); background: rgba(var(--fg-rgb),.03); border-radius: 999px; padding: 6px 13px; font-size: 16px; font-weight: 600; color: var(--text-2); }
.pg-jb span, .pg-ghd h3 span { font-family: var(--f-mono); font-size: 13px; color: var(--lime-ink); margin-left: 2px; }
.pg-jb:hover { border-color: var(--lime-line); color: var(--text); }
.pg-group { scroll-margin-top: calc(var(--topbar-h, 58px) + 70px); margin-top: 18px; }
.pg-ghd { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.pg-ghd h3 { margin: 0; font-family: var(--f-th-bold); font-size: 23px; }
.mini, .copy {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap;
  border-radius: 999px; font-size: 16px; font-family: var(--f-th-bold); font-weight: 700; transition: background .2s, color .2s, border-color .2s;
}
.mini { padding: 6px 12px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); }
.mini:hover { color: var(--text); border-color: var(--lime-line); }
.copy { padding: 9px 14px; min-height: 40px; border: 0; background: var(--lime); color: var(--on-lime); flex: none; }
.copy.copied, .mini.copied { background: var(--lime-ink); color: var(--bg); border-color: var(--lime-ink); }
.pg-list { display: grid; gap: 12px; }
.pg-group.closed .pg-list { display: none; }
.pg-tg { display: flex; align-items: center; gap: 10px; padding: 4px 0; border: 0; background: none; cursor: pointer; text-align: left; min-width: 0; }
.pg-tg .chev { width: 10px; height: 10px; border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); transform: rotate(45deg) translateY(-3px); transition: transform .2s; flex: none; }
.pg-group.closed .pg-tg .chev { transform: rotate(-45deg); }
.pg-group { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.pcard { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: 0 1px 2px rgba(0,0,0,calc(.05*var(--shk))), 0 10px 28px rgba(0,0,0,calc(.18*var(--shk))); }
.pc-top { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; margin-bottom: 10px; }
.pc-tt { min-width: 0; }
.pcard h4 { margin: 0 0 4px; font-family: var(--f-th-bold); font-size: 21px; line-height: 1.35; }
.when { margin: 0; color: var(--text-2); font-size: 17px; line-height: 1.6; }
.ptext {
  margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line);
  font-family: 'JetBrains Mono', 'PK Sans', ui-monospace, monospace; font-size: 16px; line-height: 1.8; color: var(--text);
  white-space: pre-wrap; overflow-wrap: anywhere; max-height: 340px; overflow: auto; user-select: text;
}
.pg-empty { color: var(--text-2); font-size: 18px; padding: 18px 0; }

/* pdf + business cards */
.pdf-card { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); box-shadow: 0 10px 28px rgba(0,0,0,calc(.18*var(--shk))); }
.pdf-card .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--lime-dim); color: var(--lime-ink); flex: none; }
.pdf-tx { flex: 1 1 240px; min-width: 0; }
.pdf-tx h3 { margin: 0 0 4px; font-family: var(--f-th-bold); font-size: 22px; line-height: 1.25; }
.pdf-tx p { margin: 0; color: var(--text-2); font-size: 18px; line-height: 1.65; }
.biz-grid { display: grid; gap: 12px; }
.pdf-card.soon { background: var(--bg-2); }
.soon-chip { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-th-bold); font-size: 16px; padding: 8px 14px; border-radius: 999px; border: 1px dashed var(--lime-line); color: var(--lime-ink); }

/* BTS */
.lockbox + .ig-note { margin-top: 12px; }
.ig-note { margin: 0 0 6px; color: var(--text-2); font-size: 18px; line-height: 1.65; }
.ig-note a { color: var(--lime-ink); font-weight: 600; }
.sub-h { display: flex; align-items: center; gap: 10px; margin: 22px 0 12px; font-family: var(--f-th-bold); font-size: 23px; }
.sub-h small { font-family: var(--f-mono); font-size: 14px; color: var(--text-3); font-weight: 400; }
.sub-h .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(var(--lime-rgb),.2); }
.early-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.ecard { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg); box-shadow: 0 10px 28px rgba(0,0,0,calc(.18*var(--shk))); }
.evid { position: relative; background: #000; aspect-ratio: 9/16; max-height: 72vh; }
.evid video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.early-tag { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px; background: var(--lime); color: var(--on-lime); font-family: var(--f-th-bold); font-size: 15px; pointer-events: none; }
.etx { padding: 12px 14px 14px; }
.etx h4 { margin: 0 0 4px; font-family: var(--f-th-bold); font-size: 20px; line-height: 1.25; }
.etx p { margin: 0 0 6px; color: var(--text-2); font-size: 17.5px; line-height: 1.6; }
.etx .dur { font-family: var(--f-mono); font-size: 14px; color: var(--text-3); }
.feed { display: grid; gap: 16px; max-width: 760px; }
.post { padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-family: var(--f-mono); font-size: 14px; color: var(--text-3); }
.ep-tag { padding: 3px 9px; border-radius: 999px; background: var(--lime-dim); color: var(--lime-ink); font-weight: 600; }
.post h4 { margin: 8px 0 8px; font-family: var(--f-th-bold); font-size: 23px; line-height: 1.25; }
.post p { margin: 0 0 12px; font-size: 19px; line-height: 1.75; color: var(--text); }
.post-imgs { display: grid; gap: 8px; margin-top: 6px; grid-template-columns: 1fr; }
.post-imgs.n2 { grid-template-columns: 1fr 1fr; }
.post-imgs.n3 { grid-template-columns: repeat(3, 1fr); }
.post-imgs figure { margin: 0; min-width: 0; }
.pimg { display: block; width: 100%; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: var(--bg-2); }
.pimg img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: cover; transition: transform .3s; }
.post-imgs.n2 .pimg img, .post-imgs.n3 .pimg img { aspect-ratio: 1; }
.pimg:hover img { transform: scale(1.02); }
.post-imgs figcaption { font-size: 16px; color: var(--text-3); margin-top: 6px; line-height: 1.5; }
.lb { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.86); }
.lb figure { margin: 0; max-width: min(1100px, 100%); text-align: center; }
.lb img { max-width: 100%; max-height: 82vh; border-radius: 10px; display: block; margin: 0 auto; }
.lb figcaption { color: #f3f5f0; font-size: 17px; margin-top: 10px; }
.lb-x { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; display: grid; place-items: center; }

/* locked sections */
.lockbox { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--bg-2); }
.lock-prev { display: flex; height: 150px; overflow: hidden; filter: blur(10px) saturate(.9); opacity: .55; transform: scale(1.08); }
.lock-prev img { flex: 1; min-width: 0; object-fit: cover; }
.lock-body { padding: 20px 22px 22px; position: relative; }
.lock-prev + .lock-body { margin-top: -60px; }
.lock-prev + .lock-body::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--bg-rgb),0), var(--bg-2) 60px); z-index: -1; }
.lock-chip { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-th-bold); font-size: 15px; padding: 6px 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line-2); color: var(--text-2); }
.lock-body h3 { margin: 12px 0 4px; font-family: var(--f-th-bold); font-size: 24px; line-height: 1.25; }
.lock-body p { margin: 0 0 10px; color: var(--text-2); font-size: 18px; line-height: 1.65; }
.lock-list { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 6px; }
.lock-list li { position: relative; padding-left: 22px; font-size: 17px; color: var(--text-2); line-height: 1.6; }
.lock-list li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--lime-line); opacity: .6; }
.lock-body .btn { white-space: normal; text-align: center; }
@media (max-width: 640px) {
  .msec-hd { gap: 10px; }
  .msec-hd p { font-size: 17px; }
  .pc-top { flex-direction: column; }
  .copy { width: 100%; justify-content: center; }
  .ptext { font-size: 15.5px; max-height: 320px; padding: 14px; }
  .post p { font-size: 18px; }
  .card p, .pdf-tx p, .lock-body p, .muted { font-size: 17px; }
  .post { padding: 16px; }
  .post-imgs.n3 { grid-template-columns: 1fr 1fr; }
  .lock-body .btn { width: 100%; }
}

/* ================= PLAYER ================= */
.player { position: relative; border-radius: var(--radius); overflow: hidden; background: #070a12; border: 1px solid var(--line); box-shadow: var(--shadow-lg); user-select: none; -webkit-user-select: none; }
.stage-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg); cursor: pointer; }
.canvas { position: absolute; left: 0; top: 0; transform-origin: 0 0; overflow: hidden; color: var(--text);
  background:
    radial-gradient(700px 420px at 82% 8%, rgba(var(--lime-rgb),.10), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(80,110,255,.07), transparent 60%),
    linear-gradient(180deg, #0d1220, #0a0e18);
}
.canvas::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(var(--fg-rgb),.035) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--fg-rgb),.035) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 80%); -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 80%); }
.canvas .hud { position: absolute; left: 44px; right: 44px; top: 30px; display: flex; justify-content: space-between; align-items: center; z-index: 5; font-family: var(--f-lat); font-size: 18px; letter-spacing: .14em; color: var(--text-3); text-transform: uppercase; pointer-events: none; }
.canvas .hud .chip { display: inline-flex; align-items: center; gap: 10px; color: var(--text-2); font-family: var(--f-th); letter-spacing: 0; font-size: 26px; font-weight: 500; text-transform: none; }
.canvas .hud .chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px rgba(var(--lime-rgb),.7); }
.canvas .hud .kind { font-weight: 600; color: var(--lime-ink); transition: opacity .3s; }
.canvas .watermark { position: absolute; right: 44px; bottom: 26px; font-family: var(--f-lat); font-weight: 700; font-size: 12px; letter-spacing: .2em; color: rgba(var(--fg-rgb),.18); z-index: 5; }

.scene { position: absolute; inset: 0; padding: 92px 72px 70px; display: flex; flex-direction: column; justify-content: center;
  opacity: 0; transform: translateY(22px) scale(.985); filter: blur(8px);
  transition: opacity .6s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1), filter .6s; }
.scene.on { opacity: 1; transform: none; filter: none; }
.scene.off { opacity: 0; transform: translateY(-16px) scale(1.012); filter: blur(6px); transition-duration: .45s; }
.canvas.compact .scene { padding: 72px 36px 46px; }
.canvas.compact .hud { left: 30px; right: 30px; top: 24px; }
.canvas.compact .watermark { right: 30px; bottom: 18px; }

.s-h { font-family: var(--f-th-bold); font-weight: 700; font-size: 64px; line-height: 1.22; margin: 0 0 24px; letter-spacing: 0; }
.s-h em { font-style: normal; color: var(--lime-ink); }
.rv { opacity: 0; transform: translateY(14px); transition: opacity .5s cubic-bezier(.2,.8,.2,1), transform .6s cubic-bezier(.2,.8,.2,1); }
.rv.in { opacity: 1; transform: none; }

/* title */
.sc-title { align-items: flex-start; }
.sc-title .kicker { font-family: var(--f-th-bold); font-size: 28px; letter-spacing: 0; color: var(--lime-ink); font-weight: 700; margin-bottom: 18px; }
.sc-title h2 { font-family: var(--f-th-bold); font-weight: 700; font-size: 100px; line-height: 1.16; margin: 0; max-width: 1100px; letter-spacing: 0; }
.canvas.compact .sc-title h2 { font-size: 84px; }
.sc-title .bar { height: 8px; width: 0; background: var(--lime); border-radius: 8px; margin: 30px 0 24px; box-shadow: 0 0 24px rgba(var(--lime-rgb),.5); transition: width 1.1s cubic-bezier(.7,0,.2,1) .25s; }
.scene.on.sc-title .bar { width: 180px; }
.sc-title .sub { font-size: 46px; color: var(--text-2); line-height: 1.5; max-width: 1040px; }
.sc-title .orb { position: absolute; right: -120px; top: 80px; width: 520px; height: 520px; border-radius: 50%; border: 1px solid rgba(var(--lime-rgb),.18); pointer-events: none; }
.sc-title .orb::after { content: ""; position: absolute; inset: 70px; border-radius: 50%; border: 1px dashed rgba(var(--lime-rgb),.14); animation: spin 40s linear infinite; }

/* bullets */
.bl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.bl li { display: flex; gap: 20px; align-items: center; font-size: 46px; line-height: 1.42; padding: 14px 22px; border-radius: 16px; background: rgba(var(--fg-rgb),.035); border: 1px solid var(--line); }
.bl li .num { flex: none; width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; font-family: var(--f-lat); font-weight: 700; font-size: 24px; background: var(--lime-dim); color: var(--lime-ink); margin-top: 2px; }
.bl li.cur { border-color: rgba(var(--lime-rgb),.45); background: rgba(var(--lime-rgb),.06); box-shadow: 0 10px 30px rgba(0,0,0,calc(.25*var(--shk))); }
.bl li.cur .num { background: var(--lime); color: var(--on-lime); }
.bl.many li { font-size: 38px; padding: 10px 18px; }
.bl.many li .num { width: 38px; height: 38px; font-size: 17px; }

/* prompt (Claude-Code-like) */
.sc-prompt .lbl { display: inline-flex; align-items: center; gap: 12px; font-size: 34px; color: var(--text-2); margin-bottom: 18px; }
.sc-prompt .lbl b { font-family: var(--f-lat); font-size: 16px; letter-spacing: .16em; color: var(--on-lime); background: var(--lime); padding: 5px 10px; border-radius: 8px; }
.cc { border-radius: 20px; background: #0f1423; border: 1px solid rgba(var(--fg-rgb),.14); box-shadow: 0 30px 80px rgba(0,0,0,calc(.5*var(--shk))), 0 0 0 6px rgba(var(--fg-rgb),.02); overflow: hidden; }
.cc-top { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-family: var(--f-mono), var(--f-th); font-size: 20px; color: var(--text-3); }
.cc-top .spark { color: var(--lime-ink); font-size: 18px; }
.cc-think { display: none; align-items: center; gap: 10px; padding: 14px 24px 0; font-family: var(--f-th); font-size: 28px; color: #e8a37b; }
.cc-think.show { display: flex; }
.cc-think .st { display: inline-block; animation: spin 1.6s linear infinite; }
.cc-in { margin: 16px; border: 1px solid rgba(var(--fg-rgb),.22); border-radius: 14px; padding: 18px 20px; display: flex; gap: 14px; min-height: 120px; transition: border-color .3s, box-shadow .3s; }
.cc-in.typing { border-color: rgba(var(--lime-rgb),.55); box-shadow: 0 0 0 3px rgba(var(--lime-rgb),.08); }
.cc-in .gt { font-family: var(--f-mono); font-size: 34px; color: var(--lime-ink); line-height: 1.5; }
.cc-in .tx { font-size: 40px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; flex: 1; }
.caret { display: inline-block; width: .55em; height: 1.1em; background: var(--lime); vertical-align: -0.18em; margin-left: 2px; border-radius: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.cc-foot { display: flex; justify-content: space-between; padding: 0 22px 14px; font-family: var(--f-mono), var(--f-th); font-size: 18px; color: var(--text-3); }
.cc-foot .send { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px; border: 1px solid var(--line-2); transition: all .3s; }
.cc-foot .send.hot { background: var(--lime); color: var(--on-lime); border-color: var(--lime-line); }

/* window chrome shared */
.win { border-radius: 18px; overflow: hidden; background: #0c101b; border: 1px solid rgba(var(--fg-rgb),.14); box-shadow: 0 30px 80px rgba(0,0,0,calc(.55*var(--shk))); display: flex; flex-direction: column; min-height: 0; }
.win-bar { display: flex; align-items: center; gap: 8px; padding: 13px 18px; background: rgba(var(--fg-rgb),.04); border-bottom: 1px solid var(--line); font-family: var(--f-mono), var(--f-th); font-size: 18px; color: var(--text-3); }
.win-bar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.win-bar i:nth-child(2) { background: #febc2e; } .win-bar i:nth-child(3) { background: #28c840; }
.win-bar span { margin-left: 10px; }
.win-bar .tab { margin-left: 14px; padding: 4px 12px; border-radius: 8px; background: rgba(var(--lime-rgb),.1); color: var(--lime-ink); }
.win-body { padding: 20px 24px; font-family: 'JetBrains Mono', 'PK Sans', ui-monospace, monospace; font-size: 27px; line-height: 1.6; overflow: hidden; flex: 1; min-height: 0; }

/* terminal */
.sc-terminal .win { max-height: 100%; }
.term-line { white-space: pre-wrap; word-break: break-word; min-height: 1.6em; }
.term-line.cmd { color: var(--text); }
.term-line.cmd .ps { color: var(--lime-ink); }
.term-line.out { color: rgba(var(--fg-rgb),.62); }
.term-line.out.ok { color: #86efac; }
.term-line.out.err { color: #fca5a5; }
.term-body { display: flex; flex-direction: column; justify-content: flex-end; }

/* code */
.code-body { padding: 16px 0; }
.cl { display: flex; white-space: pre-wrap; word-break: break-word; padding: 0 24px 0 0; border-left: 4px solid transparent; transition: background .45s, border-color .45s, opacity .45s; }
.cl .ln { flex: none; width: 56px; text-align: right; padding-right: 18px; color: rgba(var(--fg-rgb),.25); user-select: none; }
.cl .cx { flex: 1; min-width: 0; }
.code-body.focus .cl { opacity: .45; }
.code-body.focus .cl.hl { opacity: 1; }
.cl.hl { background: rgba(var(--lime-rgb),.09); border-left-color: var(--lime-line); }
.cl.hl .ln { color: var(--lime-ink); }
.tk-c { color: #6b7590; font-style: italic; }
.tk-s { color: #c8f542; }
.tk-k { color: #f0a6ff; }
.tk-n { color: #fdba74; }
.tk-p { color: #7dd3fc; }
.tk-t { color: #93c5fd; }
.code-body.small { font-size: 22px; }

/* files */
.sc-files .win-body { font-size: 27px; }
.fr { display: flex; align-items: center; gap: 12px; line-height: 1.75; }
.fr svg { flex: none; width: 24px; height: 24px; }
.fr.dir { color: var(--text); font-weight: 600; }
.fr.dir svg { color: var(--lime-ink); }
.fr.file { color: rgba(var(--fg-rgb),.8); }
.fr.file svg { color: rgba(var(--fg-rgb),.45); }
.fr .fn { font-size: 25px; color: var(--text-2); font-family: var(--f-th); margin-left: 10px; }
.fr .guide { display: inline-block; width: 26px; flex: none; border-left: 1px dashed rgba(var(--fg-rgb),.14); align-self: stretch; margin-left: 10px; }
.files-body.dense .fr { line-height: 1.45; font-size: 22px; }

/* video */
.sc-video { flex-direction: row; align-items: center; justify-content: center; gap: 64px; }
.phone { position: relative; flex: none; height: 560px; aspect-ratio: 9 / 19.5; border-radius: 46px; padding: 12px; background: linear-gradient(145deg, #2a3142, #11151f); box-shadow: 0 40px 90px rgba(0,0,0,calc(.6*var(--shk))), 0 0 0 1px rgba(255,255,255,.08) inset, 0 0 0 2px #05070c; }
.phone .scr { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #000; }
.phone video { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone .notch { position: absolute; top: 10px; left: 50%; width: 92px; height: 26px; border-radius: 20px; background: #000; transform: translateX(-50%); z-index: 2; }
.phone .vfail { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; color: var(--text-3); font-size: 22px; }
.vcap { max-width: 560px; }
.vcap .tag { font-family: var(--f-th); font-size: 28px; letter-spacing: 0; color: var(--lime-ink); font-weight: 600; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.vcap .tag i { width: 10px; height: 10px; border-radius: 50%; background: #ff4d4d; box-shadow: 0 0 12px rgba(255,77,77,.7); animation: blink 1.2s steps(1) infinite; }
.vcap p { font-family: var(--f-th-bold); font-size: 54px; line-height: 1.35; margin: 0 0 18px; }
.vcap .tc { font-family: var(--f-mono); font-size: 24px; color: var(--text-3); }
.vcap .tl { height: 4px; border-radius: 4px; background: rgba(var(--fg-rgb),.1); margin-top: 10px; overflow: hidden; }
.vcap .tl i { display: block; height: 100%; background: var(--lime); width: 0; }
.canvas.compact .phone { height: 420px; }
.canvas.compact .sc-video { gap: 36px; }
.canvas.compact .vcap p { font-size: 48px; }

/* stat */
.sc-stat { align-items: center; text-align: center; }
.stat-v { font-family: var(--f-lat); font-weight: 800; font-size: 210px; line-height: 1; letter-spacing: -.035em; color: var(--lime-ink); text-shadow: 0 0 60px rgba(var(--lime-rgb),.35); font-variant-numeric: tabular-nums; }
.canvas.compact .stat-v { font-size: 170px; }
.stat-l { font-family: var(--f-th-bold); font-size: 60px; line-height: 1.3; margin-top: 18px; }
.stat-s { font-size: 40px; color: var(--text-2); margin-top: 12px; max-width: 1000px; line-height: 1.5; }
.stat-ring { position: absolute; left: 50%; top: 50%; width: 620px; height: 620px; transform: translate(-50%, -50%); border-radius: 50%; border: 1px solid rgba(var(--lime-rgb),.12); pointer-events: none; }
.stat-ring.r2 { width: 860px; height: 860px; border-style: dashed; border-color: rgba(var(--lime-rgb),.07); }

/* compare */
.cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cmp-col { border-radius: 20px; padding: 22px 24px; border: 1px solid var(--line); background: rgba(var(--fg-rgb),.03); }
.cmp-col.bad { border-color: rgba(248,113,113,.3); background: linear-gradient(180deg, rgba(248,113,113,.07), rgba(248,113,113,.02)); }
.cmp-col.good { border-color: rgba(var(--lime-rgb),.4); background: linear-gradient(180deg, rgba(var(--lime-rgb),.09), rgba(var(--lime-rgb),.02)); }
.cmp-hd { display: flex; align-items: center; gap: 12px; font-family: var(--f-th-bold); font-size: 40px; line-height: 1.3; margin-bottom: 14px; }
.cmp-hd .bdg { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-family: var(--f-lat); font-weight: 800; font-size: 22px; }
.bad .bdg { background: rgba(248,113,113,.18); color: #fca5a5; }
.good .bdg { background: var(--lime); color: var(--on-lime); }
.cmp-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.cmp-col li { font-size: 36px; line-height: 1.45; padding-left: 36px; position: relative; }
.cmp-col li::before { position: absolute; left: 0; top: 0; font-family: var(--f-lat); font-weight: 700; }
.bad li::before { content: "✕"; color: #f87171; }
.good li::before { content: "✓"; color: var(--lime-ink); }
.cmp.judged .bad { opacity: .55; filter: saturate(.6); transition: opacity .6s, filter .6s; }
.cmp.judged .good { box-shadow: 0 0 0 1px rgba(var(--lime-rgb),.5), 0 18px 50px rgba(var(--lime-rgb),.12); transition: box-shadow .6s; }

/* flow */
.flow { display: flex; align-items: stretch; flex-wrap: nowrap; justify-content: center; gap: 0; }
.fn-node { position: relative; flex: 1 1 0; min-width: 0; max-width: 260px; display: flex; flex-direction: column; justify-content: center; padding: 22px 20px; border-radius: 18px; text-align: center; font-size: 34px; line-height: 1.4; background: rgba(var(--fg-rgb),.04); border: 1px solid var(--line-2); color: var(--text-2); transition: all .5s cubic-bezier(.2,.8,.2,1); }
.fn-node .ix { display: block; font-family: var(--f-lat); font-size: 16px; letter-spacing: .16em; color: var(--text-3); margin-bottom: 6px; }
.fn-node.lit { color: var(--text); border-color: rgba(var(--lime-rgb),.6); background: rgba(var(--lime-rgb),.08); box-shadow: 0 0 0 4px rgba(var(--lime-rgb),.06), 0 16px 40px rgba(0,0,0,calc(.35*var(--shk))); transform: translateY(-4px); }
.fn-node.lit .ix { color: var(--lime-ink); }
.fn-node.cur { background: var(--lime); color: var(--on-lime); border-color: var(--lime-line); box-shadow: 0 0 40px rgba(var(--lime-rgb),.35); }
.fn-node.cur .ix { color: rgba(var(--bg-rgb),.6); }
.fn-arrow { position: relative; flex: none; align-self: center; width: 44px; height: 4px; margin: 0 10px 0 6px; background: rgba(var(--fg-rgb),.12); border-radius: 4px; }
.fn-arrow i { position: absolute; inset: 0; background: var(--lime); border-radius: 4px; transform-origin: 0 50%; transform: scaleX(0); transition: transform .5s cubic-bezier(.7,0,.2,1); }
.fn-arrow::after { content: ""; position: absolute; right: -4px; top: -6px; border-left: 10px solid rgba(var(--fg-rgb),.2); border-top: 8px solid transparent; border-bottom: 8px solid transparent; transition: border-color .4s .3s; }
.fn-arrow.lit i { transform: scaleX(1); }
.fn-arrow.lit::after { border-left-color: var(--lime-line); }
.flow.loopback .fn-arrow:last-child { display: none; }

/* checklist */
.ck { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ck li { display: flex; align-items: center; gap: 20px; font-size: 44px; line-height: 1.4; padding: 12px 20px; border-radius: 16px; background: rgba(var(--fg-rgb),.03); border: 1px solid var(--line); transition: background .4s, border-color .4s; }
.ck .bx { flex: none; width: 46px; height: 46px; border-radius: 12px; border: 2px solid var(--line-2); display: grid; place-items: center; transition: background .35s, border-color .35s, transform .35s cubic-bezier(.3,1.6,.5,1); }
.ck .bx svg { width: 26px; height: 26px; stroke: var(--on-lime); stroke-width: 3.4; fill: none; stroke-dasharray: 30; stroke-dashoffset: 30; transition: stroke-dashoffset .45s ease .1s; }
.ck li.done { border-color: rgba(var(--lime-rgb),.3); background: rgba(var(--lime-rgb),.05); }
.ck li.done .bx { background: var(--lime); border-color: var(--lime-line); transform: scale(1.06); }
.ck li.done .bx svg { stroke-dashoffset: 0; }
.ck li.done .tt { color: var(--text); }
.ck .tt { color: var(--text-2); transition: color .4s; }
.ck.many li { font-size: 37px; padding: 8px 16px; }
.ck.many .bx { width: 34px; height: 34px; }

/* quote */
.sc-quote { align-items: center; text-align: center; }
.q-mark { font-family: Georgia, serif; font-size: 220px; line-height: .6; color: var(--lime-ink); opacity: .9; height: 110px; text-shadow: 0 0 40px rgba(var(--lime-rgb),.35); }
.q-text { font-family: var(--f-th-bold); font-size: 66px; line-height: 1.42; max-width: 1020px; margin: 10px 0 30px; }
.q-by { font-family: var(--f-th); font-size: 28px; letter-spacing: 0; color: var(--text-2); display: flex; align-items: center; gap: 14px; }
.q-by::before { content: ""; width: 44px; height: 2px; background: var(--lime); }
.q-text .w { opacity: .12; transition: opacity .5s; }
.q-text .w.in { opacity: 1; }

/* ---------- captions + controls ---------- */
.cap-bar { min-height: 92px; display: flex; align-items: center; justify-content: center; padding: 12px 20px; background: #070a12; border-top: 1px solid var(--line); }
.cap-bar span { font-size: clamp(20px, 1.7vw, 24px); font-weight: 500; line-height: 1.6; padding-top: 2px; text-align: center; color: var(--text); max-width: 980px; transition: opacity .2s;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.cap-bar span:empty { opacity: 0; }
.player.nocap .cap-bar span { opacity: 0; }

.ctrl { display: flex; align-items: center; gap: 6px; padding: 8px 12px 12px; background: #070a12; }
.ctrl .ib { width: 40px; height: 40px; flex: none; border-radius: 10px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--text); transition: background .2s, color .2s; }
.ctrl .ib:hover { background: rgba(var(--fg-rgb),.08); }
.ctrl .ib svg { width: 22px; height: 22px; }
.ctrl .ib.play { background: var(--lime); color: var(--on-lime); width: 44px; height: 44px; border-radius: 50%; }
.ctrl .ib.play:hover { background: #d6ff5c; }
.ctrl .ib.txt { width: auto; padding: 0 10px; font-family: var(--f-lat); font-weight: 600; font-size: 15px; }
.ctrl .ib.on { color: var(--lime-ink); }
.ctrl .time { font-family: var(--f-mono); font-size: 14px; color: var(--text-2); white-space: nowrap; padding: 0 6px; }
.ctrl .vol { display: flex; align-items: center; flex: none; }
.vol-r { --v: 100%; -webkit-appearance: none; appearance: none; width: 84px; height: 36px; margin: 0 8px 0 2px; padding: 0; background: transparent; cursor: pointer; }
.vol-r::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(to right, var(--lime) var(--v), rgba(var(--fg-rgb),.16) var(--v)); }
.vol-r::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border: 0; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(var(--lime-rgb),.18); }
.vol-r::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(var(--fg-rgb),.16); }
.vol-r::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--lime); }
.vol-r::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(var(--lime-rgb),.18); }
.vol-r:focus { outline: none; }
.vol-r:focus-visible { outline: 2px solid var(--lime-ink); outline-offset: 2px; border-radius: 6px; }
.player.novol .vol-r { display: none; }
/* phones/tablets: the hardware volume buttons set the level (iOS ignores audio.volume), and the narrow bar has no room */
@media (hover: none), (pointer: coarse), (max-width: 640px) { .ctrl .vol { display: none; } }
.seek { position: relative; flex: 1; height: 36px; cursor: pointer; touch-action: none; min-width: 60px; }
.seek .rail { position: absolute; left: 0; right: 0; top: 16px; height: 4px; border-radius: 4px; background: rgba(var(--fg-rgb),.14); transition: height .15s, top .15s; }
.seek:hover .rail { top: 15px; height: 6px; }
.seek .buf { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(var(--fg-rgb),.12); border-radius: 4px; }
.seek .fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--lime); border-radius: 4px; }
.seek .tick { position: absolute; top: -3px; width: 2px; height: calc(100% + 6px); margin-left: -1px; background: rgba(var(--bg-rgb),.9); border-radius: 1px; }
.seek .tick.past { background: rgba(var(--bg-rgb),.85); }
.seek .knob { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(var(--lime-rgb),.18); transform: scale(0); transition: transform .15s; }
.seek:hover .knob, .seek.drag .knob { transform: scale(1); }
.seek .tip { position: absolute; bottom: 36px; transform: translateX(-50%); padding: 6px 10px; border-radius: 8px; background: #1a2133; border: 1px solid var(--line-2); font-size: 14px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.seek .tip b { font-family: var(--f-mono); color: var(--lime-ink); font-weight: 600; margin-right: 6px; }
.seek:hover .tip, .seek.drag .tip { opacity: 1; }
@media (max-width: 640px) {
  .ctrl { flex-wrap: wrap; gap: 4px; padding: 6px 8px 10px; }
  .seek { order: -1; flex-basis: 100%; height: 30px; }
  .seek .rail { top: 13px; }
  .ctrl .spacer { flex: 1; }
  .ctrl .ib { width: 34px; height: 36px; }
  .ctrl .ib.play { width: 40px; height: 40px; }
  .ctrl .ib.txt { padding: 0 6px; }
  .ctrl .time { font-size: 12px; padding: 0 2px; }
  .brand-sep, .brand-course { display: none; }
  .cap-bar { min-height: 76px; padding: 10px 14px; }
  .cap-bar span, :root[data-theme="light"] .cap-bar span { font-size: 18px; line-height: 1.6; }
  .player { border-radius: 14px; }
}

/* big play overlay + end overlay */
.ovl { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 50%, rgba(var(--bg-rgb),.05), rgba(var(--bg-rgb),.38)); opacity: 1; transition: opacity .35s; z-index: 10; }
.ovl.hide { opacity: 0; pointer-events: none; }
.bigplay { width: 92px; height: 92px; border-radius: 50%; background: var(--lime); color: var(--on-lime); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(var(--lime-rgb),.15), 0 20px 50px rgba(0,0,0,calc(.5*var(--shk))); animation: pulse 2.4s ease-out infinite; }
.bigplay svg { width: 38px; height: 38px; margin-left: 5px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(var(--lime-rgb),.35), 0 20px 50px rgba(0,0,0,calc(.5*var(--shk))); } 70% { box-shadow: 0 0 0 22px rgba(var(--lime-rgb),0), 0 20px 50px rgba(0,0,0,calc(.5*var(--shk))); } 100% { box-shadow: 0 0 0 0 rgba(var(--lime-rgb),0), 0 20px 50px rgba(0,0,0,calc(.5*var(--shk))); } }
.endo { position: absolute; inset: 0; z-index: 12; display: grid; place-items: center; text-align: center; padding: 20px; background: rgba(7,10,18,.86); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.endo h3 { font-family: var(--f-th-bold); font-size: clamp(20px, 3vw, 32px); margin: 8px 0 18px; max-width: 640px; line-height: 1.3; }
.endo .row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.endo .cd { font-family: var(--f-mono); color: var(--lime-ink); }
.done-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; color: var(--lime-ink); }
.spinner-lite { position: absolute; inset: 0; display: grid; place-items: center; z-index: 11; pointer-events: none; }

/* fullscreen */
.player:fullscreen { border-radius: 0; border: 0; display: flex; flex-direction: column; background: #000; }
.player:fullscreen .stage-wrap { flex: 1; aspect-ratio: auto; background: #000; }
.player:-webkit-full-screen { width: 100%; height: 100%; display: flex; flex-direction: column; background: #000; }
.player:-webkit-full-screen .stage-wrap { flex: 1; aspect-ratio: auto; }

@media (prefers-reduced-motion: reduce) {
  .scene, .rv, .fn-node, .fn-arrow i { transition-duration: .01s !important; }
}

/* THEME — light (default): the player is a white reading surface too — no dark island (owner 2026-10-16 "เรียนดูยาก").
   Tokens already flip via brand.css; below only replaces colours that were hard-coded for the dark stage. */
:root[data-theme="light"] .player { background: #fff; }
:root[data-theme="light"] .stage-wrap { background: #fff; }
:root[data-theme="light"] .canvas {
  background:
    radial-gradient(700px 420px at 86% 6%, rgba(200,245,66,.16), transparent 62%),
    radial-gradient(600px 400px at 0% 100%, rgba(80,110,255,.05), transparent 60%),
    linear-gradient(180deg, #ffffff, #f6f7f4);
}
:root[data-theme="light"] .canvas::before { opacity: .8; }
:root[data-theme="light"] .canvas .hud .chip i { box-shadow: 0 0 0 3px rgba(122,160,0,.18); }
:root[data-theme="light"] .canvas .watermark { color: rgba(11,15,25,.22); }
/* reading size: a touch larger scene text on white */
:root[data-theme="light"] .sc-title .sub { color: rgba(11,15,25,.74); }
:root[data-theme="light"] .bl li { background: #fff; border-color: rgba(11,15,25,.12); box-shadow: 0 1px 2px rgba(11,15,25,.04); }
:root[data-theme="light"] .bl li.cur { background: rgba(200,245,66,.14); border-color: rgba(111,146,0,.55); box-shadow: 0 8px 24px rgba(11,15,25,.08); }
:root[data-theme="light"] .ck li { background: #fff; border-color: rgba(11,15,25,.12); }
:root[data-theme="light"] .ck .tt { color: rgba(11,15,25,.74); }
:root[data-theme="light"] .ck li.done { background: rgba(200,245,66,.10); border-color: rgba(111,146,0,.40); }
:root[data-theme="light"] .cmp-col { background: #fff; border-color: rgba(11,15,25,.12); }
:root[data-theme="light"] .cmp-col.bad { border-color: rgba(220,38,38,.28); background: linear-gradient(180deg, rgba(220,38,38,.06), #fff); }
:root[data-theme="light"] .cmp-col.good { border-color: rgba(111,146,0,.50); background: linear-gradient(180deg, rgba(200,245,66,.16), #fff); }
:root[data-theme="light"] .bad .bdg { background: rgba(220,38,38,.12); color: #b91c1c; }
:root[data-theme="light"] .bad li::before { color: #dc2626; }
:root[data-theme="light"] .cmp.judged .good { box-shadow: 0 0 0 1px rgba(111,146,0,.55), 0 14px 36px rgba(11,15,25,.08); }
:root[data-theme="light"] .fn-node.lit { background: rgba(200,245,66,.12); border-color: rgba(111,146,0,.55); box-shadow: 0 0 0 4px rgba(200,245,66,.14), 0 14px 32px rgba(11,15,25,.08); }
:root[data-theme="light"] .fn-node.cur { box-shadow: 0 0 0 1px rgba(77,107,0,.35), 0 14px 32px rgba(122,160,0,.25); }
:root[data-theme="light"] .fn-node.cur .ix { color: rgba(11,15,25,.62); }
:root[data-theme="light"] .sc-title .bar { box-shadow: inset 0 0 0 1px rgba(77,107,0,.25); }
:root[data-theme="light"] .sc-title .orb { border-color: rgba(111,146,0,.22); }
:root[data-theme="light"] .sc-title .orb::after { border-color: rgba(111,146,0,.18); }
:root[data-theme="light"] .stat-v { text-shadow: none; }
:root[data-theme="light"] .stat-ring { border-color: rgba(111,146,0,.18); }
:root[data-theme="light"] .stat-ring.r2 { border-color: rgba(111,146,0,.12); }
:root[data-theme="light"] .q-mark { text-shadow: none; }
:root[data-theme="light"] .q-text .w { opacity: .18; }
/* prompt + window chrome: light app windows */
:root[data-theme="light"] .cc { background: #fff; border-color: rgba(11,15,25,.14); box-shadow: 0 1px 2px rgba(11,15,25,.05), 0 22px 50px rgba(11,15,25,.10); }
:root[data-theme="light"] .cc-think { color: #b4532a; }
:root[data-theme="light"] .cc-in { border-color: rgba(11,15,25,.18); background: #fbfcf9; }
:root[data-theme="light"] .cc-in.typing { border-color: rgba(111,146,0,.65); box-shadow: 0 0 0 3px rgba(200,245,66,.22); }
:root[data-theme="light"] .win { background: #fff; border-color: rgba(11,15,25,.14); box-shadow: 0 1px 2px rgba(11,15,25,.05), 0 22px 50px rgba(11,15,25,.10); }
:root[data-theme="light"] .win-bar { background: #f6f7f4; }
:root[data-theme="light"] .win-bar .tab { background: rgba(200,245,66,.28); }
:root[data-theme="light"] .term-line.out { color: rgba(11,15,25,.66); }
:root[data-theme="light"] .term-line.out.ok { color: #15803d; }
:root[data-theme="light"] .term-line.out.err { color: #b91c1c; }
:root[data-theme="light"] .cl .ln { color: rgba(11,15,25,.38); }
:root[data-theme="light"] .cl.hl { background: rgba(200,245,66,.18); }
:root[data-theme="light"] .tk-c { color: #6b7280; }
:root[data-theme="light"] .tk-s { color: #4d6b00; }
:root[data-theme="light"] .tk-k { color: #9333ea; }
:root[data-theme="light"] .tk-n { color: #c2410c; }
:root[data-theme="light"] .tk-p { color: #0369a1; }
:root[data-theme="light"] .tk-t { color: #1d4ed8; }
:root[data-theme="light"] .fr.file { color: rgba(11,15,25,.80); }
:root[data-theme="light"] .fr.file svg { color: rgba(11,15,25,.45); }
/* phone frame: white bezel, the video itself stays a video */
:root[data-theme="light"] .phone { background: linear-gradient(145deg, #ffffff, #e9ebe4); box-shadow: 0 30px 70px rgba(11,15,25,.16), 0 0 0 1px rgba(11,15,25,.12), inset 0 0 0 1px rgba(255,255,255,.9); }
:root[data-theme="light"] .phone .vfail { color: rgba(243,245,240,.7); }
/* captions + controls: white bar, ink text, dark-green progress accents, lime only on the play button */
:root[data-theme="light"] .cap-bar { background: #fff; border-top-color: rgba(11,15,25,.10); }
:root[data-theme="light"] .cap-bar span { color: #0b0f19; }
:root[data-theme="light"] .ctrl { background: #fff; }
:root[data-theme="light"] .ctrl .ib.play { box-shadow: inset 0 0 0 1px rgba(77,107,0,.28); }
:root[data-theme="light"] .ctrl .ib.play:hover { background: #bfee30; }
:root[data-theme="light"] .ctrl .time { color: rgba(11,15,25,.66); }
:root[data-theme="light"] .seek .rail { background: rgba(11,15,25,.12); }
:root[data-theme="light"] .seek .buf { background: rgba(11,15,25,.10); }
:root[data-theme="light"] .seek .fill { background: #4d6b00; }
:root[data-theme="light"] .vol-r::-webkit-slider-runnable-track { background: linear-gradient(to right, #4d6b00 var(--v), rgba(11,15,25,.14) var(--v)); }
:root[data-theme="light"] .vol-r::-webkit-slider-thumb { background: #4d6b00; box-shadow: 0 0 0 4px rgba(77,107,0,.18); }
:root[data-theme="light"] .vol-r::-moz-range-track { background: rgba(11,15,25,.14); }
:root[data-theme="light"] .vol-r::-moz-range-progress, :root[data-theme="light"] .vol-r::-moz-range-thumb { background: #4d6b00; }
:root[data-theme="light"] .seek .knob { background: #4d6b00; box-shadow: 0 0 0 4px rgba(77,107,0,.18); }
:root[data-theme="light"] .seek .tick, :root[data-theme="light"] .seek .tick.past { background: #fff; }
:root[data-theme="light"] .seek .tip { background: #fff; box-shadow: 0 8px 24px rgba(11,15,25,.12); color: #0b0f19; }
:root[data-theme="light"] .vcap .tl i { background: #4d6b00; }
:root[data-theme="light"] .ovl { background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0), rgba(255,255,255,.45)); }
:root[data-theme="light"] .bigplay { box-shadow: 0 0 0 10px rgba(200,245,66,.28), 0 0 0 1px rgba(77,107,0,.3), 0 16px 40px rgba(11,15,25,.18); animation: none; }
:root[data-theme="light"] .endo { background: rgba(255,255,255,.92); }
:root[data-theme="light"] .player:fullscreen, :root[data-theme="light"] .player:fullscreen .stage-wrap,
:root[data-theme="light"] .player:-webkit-full-screen { background: #fff; }
.foot { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
:root[data-theme="light"] .player { border-color: rgba(11,15,25,.14); box-shadow: 0 1px 2px rgba(11,15,25,.08), 0 22px 50px rgba(11,15,25,.18); }
:root[data-theme="light"] .card { background: #fff; box-shadow: 0 1px 2px rgba(11,15,25,.05), 0 12px 30px rgba(11,15,25,.07); }
:root[data-theme="light"] .lessons { background: #fff; box-shadow: 0 1px 2px rgba(11,15,25,.05), 0 12px 30px rgba(11,15,25,.06); }
:root[data-theme="light"] .brand-dot { box-shadow: 0 0 0 2px rgba(111,146,0,.35); }

/* READ-C 2026-10-16 readability pass: Thai labels never letter-spaced; member text base 18px/1.7 */
.view { font-size: 18px; line-height: 1.7; }
.now .eyebrow, .msec-hd .eyebrow, .hello .eyebrow { font-family: var(--f-th-bold); letter-spacing: 0; text-transform: none; font-size: 15px; }
.lessons-head b { line-height: 1.35; }
.fn-node { overflow-wrap: anywhere; }
:root[data-theme="light"] .q-text .w.in { opacity: 1; }
/* phone stage (960 base): less chrome so text keeps more of the 16:9 box */
.canvas.compact .scene { padding: 58px 24px 30px; }
.canvas.compact .hud { left: 24px; right: 24px; top: 16px; }
.canvas.compact .watermark { display: none; }
.canvas.compact .s-h { margin-bottom: 14px; }
.canvas.compact .bl, .canvas.compact .ck { gap: 8px; }
.canvas.compact .bl li, .canvas.compact .ck li { padding: 6px 14px; gap: 14px; }
.canvas.compact .bl li .num { width: 42px; height: 42px; }
.canvas.compact .cmp { gap: 12px; }
.canvas.compact .cmp-col { padding: 12px 16px; }
.canvas.compact .cmp-col ul { gap: 6px; }
.canvas.compact .win-body { padding: 14px 16px; }
/* long prompts: the input box keeps the newest typed lines in view (full text lives in the prompt guide) */
.cc-in { max-height: 300px; overflow: hidden; }
.canvas.compact .cc-in { max-height: 230px; }
.canvas.compact .fn-node { font-size: 36px !important; padding: 14px 10px !important; }
.canvas.compact .win-body { font-size: 31px; }
.canvas.compact .stat-s { font-size: 46px; }
.canvas.compact .fr .fn { font-size: .9em; }
/* file tree: one line per row (long notes end in …) so big trees keep a readable size */
.fr { line-height: 1.5; white-space: nowrap; min-width: 0; }
.fr > span:not(.fn):not(.guide) { flex: none; }
.fr .fn { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files-body.dense .fr { line-height: 1.4; }
.cc-in { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18px); mask-image: linear-gradient(180deg, transparent 0, #000 18px); }

/* ---------- v4 workshop ticket (ZERO TO VIRAL): seat ticket with a lime tear-off stub ---------- */
.tk-hello { margin-bottom: 26px; }
.ticket {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) 236px;
  max-width: 1080px; border-radius: 24px; border: 1px solid var(--line-2);
  background: radial-gradient(120% 140% at 0% 0%, rgba(var(--lime-rgb),.10), transparent 46%), var(--bg-2);
  box-shadow: var(--shadow-lg);
}
:root[data-theme="light"] .ticket { background: radial-gradient(120% 140% at 0% 0%, rgba(200,245,66,.20), transparent 46%), #fff; }
.tk-main { padding: clamp(22px, 3.2vw, 34px) clamp(20px, 3.4vw, 38px); min-width: 0; }
.tk-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.tk-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 999px; font-size: 15px; font-weight: 700; color: var(--ok); border: 1px solid currentColor; background: rgba(74,222,128,.08); }
.tk-chip i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.tk-kind { font-family: var(--f-lat); font-weight: 600; font-size: 12.5px; letter-spacing: .22em; color: var(--text-3); }
.tk-title { margin: 18px 0 4px; font-family: var(--f-lat); font-weight: 800; font-size: clamp(40px, 6.2vw, 74px); line-height: .98; letter-spacing: -.035em; color: var(--text); }
.tk-sub { margin: 0; font-size: 19px; color: var(--text-2); }
.tk-kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; margin: 24px 0 0; padding-top: 22px; border-top: 1px dashed var(--line-2); }
.tk-kv .wide { grid-column: 1 / -1; }
.tk-kv dt { font-size: 14px; font-weight: 600; color: var(--text-3); letter-spacing: .02em; }
.tk-kv dd { margin: 4px 0 0; font-size: 19px; line-height: 1.5; color: var(--text); overflow-wrap: anywhere; }
.tk-kv dd strong { font-family: var(--f-th-bold); font-weight: 700; }
.tk-kv dd span { display: block; font-size: 16px; color: var(--text-2); }
.tk-kv dd.mono { font-family: var(--f-mono); font-size: 18px; }
.tk-stub {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 26px 18px; text-align: center; background: var(--lime); color: var(--on-lime);
  border-left: 2px dashed rgba(11,15,25,.30);
}
.tk-stub::before, .tk-stub::after { content: ''; position: absolute; left: -19px; width: 36px; height: 36px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2); }
.tk-stub::before { top: -19px; }
.tk-stub::after { bottom: -19px; }
.tk-admit { font-family: var(--f-lat); font-weight: 700; font-size: 12px; letter-spacing: .32em; opacity: .75; margin-bottom: 8px; }
.tk-day { font-family: var(--f-lat); font-weight: 800; font-size: 92px; line-height: .9; letter-spacing: -.04em; }
.tk-mon { font-family: var(--f-th-bold); font-weight: 700; font-size: 19px; }
.tk-time { font-family: var(--f-mono); font-weight: 600; font-size: 16px; margin-top: 8px; }
.tk-code { font-family: var(--f-mono); font-weight: 600; font-size: 14px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed rgba(11,15,25,.30); letter-spacing: .06em; }
.tk-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; max-width: 1080px; }
.tk-actions .btn svg, .tk-info .btn svg { flex: none; }
.btn.line { background: #06c755; color: #fff; }
.btn.line:hover { box-shadow: 0 8px 26px rgba(6,199,85,.32); }
.tk-info { margin-top: 30px; max-width: 1080px; }
.tk-info .card p { margin-bottom: 12px; }
.tk-dim { color: var(--text-3); font-size: 16px; }
.tk-bonus { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; max-width: 1080px; margin: 22px 0 0; padding: 22px 24px; border-radius: 18px; background: rgba(var(--lime-rgb), .08); border: 1.5px solid rgba(var(--lime-rgb), .55); }
.tk-bonus h3 { margin: 10px 0 4px; font-family: var(--f-lat); font-weight: 800; font-size: 26px; letter-spacing: .02em; }
.tk-bonus p { margin: 0; max-width: 60ch; color: var(--text-2); font-size: 16.5px; line-height: 1.6; }
.tk-bonus .tk-chip { color: var(--lime-ink); background: rgba(var(--lime-rgb), .12); }
.tk-keep { margin: 26px 0 0; max-width: 1080px; color: var(--text-3); font-size: 16px; line-height: 1.65; }
.tk-keep a { color: var(--lime-ink); font-weight: 600; }
@media (max-width: 760px) {
  .ticket { grid-template-columns: 1fr; }
  .tk-stub { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; align-items: baseline; gap: 4px 12px; padding: 18px 22px; text-align: left; border-left: 0; border-top: 2px dashed rgba(11,15,25,.30); }
  .tk-stub::before { top: -19px; left: -19px; }
  .tk-stub::after { top: -19px; bottom: auto; left: auto; right: -19px; }
  .tk-admit { flex-basis: 100%; margin-bottom: 0; }
  .tk-day { font-size: 56px; }
  .tk-time { margin-top: 0; }
  .tk-code { margin: 0 0 0 auto; padding: 0; border: 0; }
  .tk-actions .btn { flex: 1 1 calc(50% - 10px); }
}
@media (max-width: 420px) {
  .tk-kv { grid-template-columns: 1fr; }
  .tk-actions .btn { flex-basis: 100%; }
}
@media print {
  .topbar, .foot, .tk-actions, .tk-keep, .pk-theme-btn { display: none !important; }
  .ticket { box-shadow: none; }
}

/* starter video lessons (S1–S7, P1–P7): finished 16:9 UI-tutorial clips */
.vlesson{position:relative;border-radius:18px;overflow:hidden;background:#0b0f19;box-shadow:0 18px 50px rgba(15,23,42,.18)}
.vlesson video{display:block;width:100%;aspect-ratio:16/9;background:#0b0f19}
.tk-ep { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 4px 12px; border-radius: 999px; background: var(--lime); color: var(--on-lime); font-size: .32em; letter-spacing: 0; line-height: 1.3; transform: translateY(-.35em); }
