@import url('/public/css/pk-icons.css');
@import url('./lesson-directory.css');
.v6 .mx-course-nav { display:block; margin-bottom:12px; border-bottom:1px solid var(--pk-sky); }
.v6 .mx-course-current { display:flex; justify-content:space-between; align-items:center; gap:16px; width:100%; min-height:48px; padding:8px 0; border:0; border-radius:0; background:transparent; color:var(--pk-night); font:inherit; text-align:left; }
.mx-course-action { color:var(--pk-dusk); font-size:var(--fs-14,14px); white-space:nowrap; }
#chapter-details { display:none; }
.v6 .mx-directory-open { width:100%; padding:16px 0; border:0; border-bottom:1px solid var(--pk-sky); border-radius:0; background:transparent; color:var(--pk-night); text-align:left; font:inherit; }
.mx-home { max-width:1280px; }
.mx-home .mx-hero { grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); gap:clamp(28px,4vw,64px); }
/* 第 1 波（2026-10-24）封面首屏：主按鈕、商店鈕、四格賣點都在第一屏。商店鈕深底白字＋平台圖示＋「下載」，與白底的賣點格分開（創辦人 10-24 指正）。 */
.mx-home .mx-hero-actions { align-items:flex-start; gap:4px 16px; margin-top:22px; }
.mx-quick-entry { display:grid; justify-items:start; gap:8px; }
.mx-cta-note { color:var(--pk-dusk); font-size:var(--fs-13,13px); }
.mx-overview-toggle { display:inline-flex; align-items:center; gap:6px; min-height:48px; padding:6px 4px; margin-top:4px; border:0; background:transparent; color:var(--pk-dusk); font-size:var(--fs-15,15px); }
.mx-overview-toggle:hover,.mx-overview-toggle[aria-expanded="true"] { text-decoration:underline; text-underline-offset:4px; }
.mx-overview-toggle[aria-expanded="true"] i { transform:rotate(180deg); }
.mx-video-overview { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr)); gap:8px; margin-top:12px; }
.mx-video-overview a { display:grid; align-content:start; gap:4px; padding:10px 14px; border:1px solid var(--pk-sky); border-radius:12px; background:var(--pk-white); color:var(--pk-night); text-decoration:none; line-height:1.5; }
.mx-video-overview a:hover,.mx-video-overview a:focus-visible { border-color:var(--pk-dusk); }
.mx-video-overview a:hover strong,.mx-video-overview a:focus-visible strong { text-decoration:underline; text-underline-offset:3px; }
.mx-video-overview strong { display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:var(--fs-16,16px); }
.mx-video-overview i { color:var(--pk-dusk); }
.mx-video-overview span { color:var(--pk-dusk); font-size:var(--fs-14,14px); }
.mx-hero-stores { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; max-width:520px; margin:16px 0 22px; }
.mx-hero-stores a { display:flex; align-items:center; justify-content:center; gap:8px; min-height:56px; padding:8px 10px; border-radius:13px; background:var(--pk-night); color:var(--pk-white); text-decoration:none; font-size:var(--fs-15,15px); font-weight:700; line-height:1.2; white-space:nowrap; }
.mx-hero-stores a:hover { background:var(--pk-dusk); }
.mx-hero-stores svg { width:24px; height:24px; flex:none; fill:currentColor; }
.mx-hero-stores small { display:block; margin-top:2px; font-weight:500; font-size:var(--fs-12,12px); opacity:.8; }
.mx-intro-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:0; padding:0; list-style:none; }
.mx-intro-grid li { min-width:0; margin:0; padding:12px 14px; border:1px solid var(--pk-sky); border-radius:12px; background:var(--pk-white); color:var(--pk-dusk); font-size:var(--fs-15,15px); line-height:1.55; }
.mx-intro-grid b { display:block; margin-bottom:2px; color:var(--pk-summit-ink); font-size:var(--fs-15,15px); }
.mx-capability-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px 48px; }
.mx-capability-grid article { min-width:0; border-top:1px solid var(--pk-sky); padding-top:20px; }
.mx-capability-grid h3,.mx-more-tools h3 { margin:0 0 12px; font-size:var(--fs-20,20px); line-height:1.5; }
.mx-capability-grid p { margin:0; color:var(--pk-dusk); font-size:var(--fs-18,18px); line-height:1.8; }
.mx-more-tools { margin-top:28px; padding-top:20px; border-top:1px solid var(--pk-sky); }
.mx-more-tools ul { display:flex; flex-wrap:wrap; gap:10px 28px; margin:0; padding-left:1.2em; color:var(--pk-dusk); line-height:1.8; }
.mx-more-tools li { padding-right:8px; }
.mx-more-tools span { font-size:var(--fs-14,14px); white-space:nowrap; }
.mx-seg-link { display:inline-flex; align-items:center; min-height:44px; margin-top:4px; color:var(--pk-summit-ink); font-size:var(--fs-15,15px); font-weight:650; text-decoration:none; }
.mx-seg-link:hover { text-decoration:underline; }
.mx-home .mx-course-cards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.mx-home .mx-course-cards article { min-width:0; padding:24px; border:1px solid var(--pk-sky); border-radius:16px; background:var(--pk-white); box-shadow:0 1px 3px rgba(30,35,48,.06),0 4px 12px rgba(30,35,48,.04); }
.mx-home .mx-course-cards article.mx-quickstart { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(220px,1fr); align-items:center; gap:24px 40px; background:var(--pk-glow); border-color:var(--pk-amber); }
.mx-home .mx-course-cards h3 { margin:8px 0 12px; }
.mx-home .mx-course-cards .mx-feature-number { margin:0; }
.mx-home .mx-course-cards .mx-points { margin-bottom:0; }
.mx-quick-audience { margin:0 0 16px; line-height:1.7; }
.mx-quick-action { display:flex; flex-direction:column; align-items:center; gap:16px; text-align:center; }
.mx-quick-action p { margin:0; line-height:1.7; }
.mx-quick-action small { color:var(--pk-dusk); font-size:var(--fs-14,14px); }
.mx-recommend { display:inline-block; margin-left:8px; padding:3px 10px; border-radius:20px; background:var(--pk-dusk); color:var(--pk-white); font-size:var(--fs-13,13px); font-weight:600; }
.mx-coming-soon { display:inline-block; margin-top:20px; padding:4px 12px; border:1px solid var(--pk-dusk); border-radius:20px; color:var(--pk-dusk); font-size:var(--fs-14,14px); }
.mx-home-demo { min-width:0; height:clamp(580px,calc(100svh - 130px),850px); overflow:hidden; }
.mx-home-demo>p { margin:24px; }
.v6 .mx-home-demo .phone-panel { position:relative; inset:auto; display:flex; width:100%; height:100%; max-height:none; border:0; border-radius:0; box-shadow:none; background:transparent; z-index:auto; }
.mx-home-demo .panel-head { justify-content:space-between; gap:12px; width:100%; max-width:400px; margin:0 auto; border:0; padding:4px 8px; background:transparent; }
.mx-home-demo .panel-head h2 { margin:0; text-align:left; font-size:var(--fs-14,14px); }
.mx-home-demo #reset-practice { min-height:44px; padding:4px 8px; white-space:nowrap; font-size:var(--fs-14,14px); }
.mx-home-demo #phone-close { display:none; }
/* 示範手機（第 1 波，提案 C3）：桌機嵌在右欄＋「點一下開始操作」蓋板（滾輪先留給頁面）；手機版是海報＋按鈕，按了才載入、全螢幕開。 */
.mx-demo-guard { position:absolute; inset:0; z-index:7; display:flex; align-items:flex-end; justify-content:center; padding:0 0 28px; border:0; background:transparent; font:inherit; cursor:pointer; }
.mx-demo-guard[hidden] { display:none; }
.mx-demo-guard span { padding:8px 14px; border-radius:999px; background:var(--pk-night); color:var(--pk-white); font-size:var(--fs-14,14px); font-weight:700; box-shadow:0 4px 14px rgba(30,35,48,.25); }
.mx-demo-guard:focus-visible span { outline:2px solid var(--pk-amber); outline-offset:3px; }
@media (hover:none) { .mx-demo-guard { display:none; } }
.mx-demo-poster { position:relative; height:220px; border:1px solid var(--pk-sky); border-radius:16px; background:#E9EDE8 url(./assets/demo-poster.webp) center 14% / cover no-repeat; overflow:hidden; }
.mx-demo-tag { position:absolute; left:12px; top:10px; padding:3px 9px; border-radius:999px; background:rgba(30,35,48,.85); color:var(--pk-white); font-size:var(--fs-12,12px); }
.mx-home .mx-demo-open-btn { display:flex; width:100%; justify-content:center; margin-top:12px; border:0; cursor:pointer; font:inherit; font-weight:650; }
.mx-demo-note { margin:8px 0 0; color:var(--pk-dusk); font-size:var(--fs-13,13px); line-height:1.6; }
.mx-demo-full { position:fixed; inset:0; z-index:9800; display:flex; flex-direction:column; padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); background:var(--pk-mist); }
.mx-demo-full[hidden] { display:none; }
.v6 .mx-demo-full .phone-panel { position:relative; inset:auto; display:flex; flex:1; min-height:0; width:100%; height:auto; max-height:none; border:0; border-radius:0; box-shadow:none; background:transparent; z-index:auto; }
.mx-demo-full .panel-head { justify-content:space-between; gap:8px; padding:6px 10px; border:0; background:transparent; }
.mx-demo-full .panel-head h2 { margin:0; text-align:left; font-size:var(--fs-14,14px); }
.mx-demo-full #phone-close { display:none; }
.mx-demo-full #reset-practice { min-height:44px; padding:4px 8px; white-space:nowrap; font-size:var(--fs-14,14px); }
.mx-demo-close { min-height:44px; padding:4px 12px; border:1px solid var(--pk-dusk); border-radius:12px; background:var(--pk-white); color:var(--pk-night); font:inherit; font-size:var(--fs-14,14px); white-space:nowrap; cursor:pointer; }
body.mx-demo-open { overflow:hidden; }
@media (max-width:760px) {
  .mx-home .mx-hero-actions { column-gap:8px; }
  .mx-home .mx-quick-entry .mx-cta { padding-inline:14px; }
  .mx-quick-entry .mx-cta span { display:none; }
  .mx-capability-grid { grid-template-columns:minmax(0,1fr); gap:24px; }
  .mx-more-tools ul { display:block; }
  .mx-more-tools li+li { margin-top:8px; }
  .mx-home .mx-hero,.mx-home .mx-course-cards,.mx-home .mx-course-cards article.mx-quickstart { grid-template-columns:minmax(0,1fr); }
  .mx-home-demo { height:clamp(560px,calc(100svh - 90px),820px); }
  .mx-home .mx-course-cards article { padding:20px; }
  .mx-quick-action { align-items:flex-start; text-align:left; gap:12px; }
  .mx-quick-action>p { display:none; }
  .mx-home-demo:has(.mx-demo-poster) { height:auto; overflow:visible; }
  .mx-hero-stores { max-width:none; }
  .mx-power-nums { gap:6px; }
  .mx-power-nums div { padding:10px 6px; }
  .mx-power-nums b { font-size:var(--fs-22,22px); }
}
@media (max-width:360px) {
  .mx-home .mx-hero-actions { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; }
  .mx-quick-entry { display:contents; }
  .mx-quick-entry .mx-cta { grid-column:1 / -1; justify-content:center; }
  .mx-overview-toggle { margin-top:0; }
  .mx-hero-stores { grid-template-columns:minmax(0,1fr); }
}
.mx-lesson-tools { display:flex; gap:16px; margin:0; padding:0; border:0; border-bottom:1px solid var(--pk-sky); border-radius:0; }
.mx-lesson-tools[hidden] { display:none; }
.mx-lesson-tools button { padding:8px 2px; min-height:44px; border:0; border-bottom:3px solid transparent; border-radius:0; color:var(--pk-dusk); background:transparent; font:inherit; cursor:pointer; white-space:nowrap; }
.mx-lesson-tools button[aria-pressed="true"] { background:transparent; color:var(--pk-night); border-bottom-color:var(--pk-amber); font-weight:700; box-shadow:none; }
.mx-watch-controls { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:8px 12px; margin:12px 0 8px; }
.mx-watch-controls[hidden],.mx-viewport-hint[hidden] { display:none; }
.mx-watch-label { min-width:0; color:var(--pk-dusk); }
.mx-watch-label .mx-lesson-tools { width:max-content; max-width:100%; }
.mx-viewport-hint { grid-column:1/-1; margin:0; padding:8px 12px; border-left:3px solid var(--pk-sky); color:var(--pk-night); background:var(--pk-white); font-size:var(--fs-14,14px); line-height:1.5; }
/* 耗電（第 1 波，提案 E1）：介紹頁只留摘要卡 #power-brief；模擬器與完整報告那一段 #power 只在 ?view=power（body.mapx-power）露出，同一份 markup 與 power.js。 */
.mx-power-brief { max-width:720px; padding:20px 22px; border:1px solid var(--pk-sky); border-radius:16px; background:var(--pk-white); }
.mx-power-nums { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:0 0 14px; }
.mx-power-nums div { min-width:0; padding:12px 10px; border-radius:12px; background:var(--pk-mist); text-align:center; }
.mx-power-nums b { display:block; color:var(--pk-night); font-size:var(--fs-26,26px); font-weight:800; font-variant-numeric:tabular-nums; line-height:1.1; }
.mx-power-nums small { display:block; margin-top:6px; color:var(--pk-dusk); font-size:var(--fs-12,12px); line-height:1.4; }
.mx-power-brief>p { margin:0 0 14px; font-size:var(--fs-15,15px); }
.mx-power-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px 16px; }
.mx-home a.mx-cta.mx-cta-dark { background:var(--pk-night); }
.mx-home a.mx-cta.mx-cta-dark:hover { background:var(--pk-dusk); }
body:not(.mapx-power) #power { display:none; }
body.mapx-power #app-introduction>:not(#power):not(.mx-home-footer) { display:none; }
body.mapx-power #power { border-top:0; padding-top:8px; }
.mx-home-footer .mx-footer-quiet { font-size:var(--fs-13,13px); opacity:.8; }
.mx-lesson-footer { display:flex; flex-wrap:wrap; align-items:center; gap:4px 16px; margin:6px 0 12px; }
.mx-lesson-footer .status-line { flex:1; min-width:200px; margin:0; }
.mx-lesson-expand { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:48px; padding:10px 16px; border:0; border-radius:12px; background:var(--pk-dusk); color:var(--pk-white); font:inherit; font-size:var(--fs-16,16px); font-weight:600; cursor:pointer; white-space:nowrap; }
.mx-lesson-expand .pk-i { width:22px; height:22px; }
.mx-lesson-expand:hover { background:var(--pk-night); }
.mx-lesson-expand:focus-visible { outline:2px solid var(--pk-dusk); outline-offset:2px; }
.mx-lesson-expand[hidden] { display:none; }
.mx-expanded-bar { box-sizing:border-box; position:absolute; top:env(safe-area-inset-top); left:0; right:0; height:48px; z-index:21; display:flex; gap:6px; align-items:center; padding:1px max(8px,env(safe-area-inset-right)) 1px max(8px,env(safe-area-inset-left)); border-bottom:1px solid var(--pk-sky); background:var(--pk-white); }
.mx-expanded-context { flex:1; min-width:0; color:var(--pk-dusk); user-select:none; -webkit-user-select:none; touch-action:pan-y; }
.mx-expanded-title { font-size:var(--fs-13,13px); line-height:1.4; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mx-lesson-exit,.mx-expanded-notes { box-sizing:border-box; flex:none; min-width:44px; min-height:44px; height:44px; padding:0 10px; border:1px solid var(--pk-sky); border-radius:10px; background:var(--pk-white); color:var(--pk-dusk); font:inherit; font-size:var(--fs-14,14px); white-space:nowrap; cursor:pointer; }
.mx-expanded-notes { display:flex; align-items:center; gap:4px; }
.v6 .workspace .mx-expanded-bar button { min-height:44px; }
.mx-expanded-notes[aria-expanded="true"] { background:var(--pk-mist); }
.mx-expanded-notes[aria-expanded="true"] .mx-notes-chevron { transform:rotate(180deg); }
.mx-expanded-bar button:focus-visible { outline:2px solid var(--pk-dusk); outline-offset:-3px; }
.mx-expand-hint { margin:0; color:var(--pk-dusk); font-size:var(--fs-12,12px); line-height:1.4; pointer-events:none; }
.mx-expanded-bar[hidden],.mx-expanded-title[hidden],.mx-expanded-notes[hidden],.mx-lesson-exit[hidden],.mx-expand-hint[hidden] { display:none; }
.mx-store-links a { display:inline-flex; align-items:center; justify-content:center; gap:10px; }
.mx-store-links svg { width:26px; height:26px; flex:none; fill:currentColor; }
.mapx-learning .phone-panel[data-practice="free"] { top:calc(var(--view-top,0px) + 12px); bottom:auto; height:calc(var(--view-height,100dvh) - 108px - env(safe-area-inset-bottom)); max-height:none; z-index:9700; }
.phone-panel[data-practice="free"] .pkx-wrap { align-items:center; padding:8px; overflow:hidden; }
.phone-panel[data-practice="free"] .phone-footer { justify-content:flex-end; padding:0 12px 6px; }
@media (max-width:1023px) {
  .mapx-learning .phone-panel[data-practice="free"] { height:calc(var(--view-height,100dvh) - 24px - env(safe-area-inset-bottom)); }
}
.workspace .player.has-lesson { height:clamp(660px,80dvh,940px); max-height:none; aspect-ratio:auto; padding:0; }
.player:fullscreen { width:100%; height:100dvh; border-radius:0; }
.workspace .player.has-lesson:fullscreen { height:100dvh; }
#video-frame video { display:block; width:100%; height:100%; object-fit:contain; }
.mx-movie-buffer { position:absolute; top:12px; left:12px; right:12px; width:fit-content; max-width:calc(100% - 24px); margin:auto; display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:8px; padding:8px 12px; border-radius:10px; color:var(--pk-white); background:var(--pk-night); font-size:var(--fs-14,14px); }
.mx-movie-buffer[hidden], .mx-movie-buffer button[hidden] { display:none; }
.mx-movie-buffer button { min-height:44px; padding:6px 12px; border:1px solid var(--pk-sky); border-radius:8px; color:var(--pk-white); background:transparent; font:inherit; cursor:pointer; }
#video-frame iframe.mx-lesson-next { position:absolute; inset:0; visibility:hidden; pointer-events:none; }
.mx-lesson-loading { display:flex; flex-wrap:wrap; align-items:center; gap:8px 16px; margin:8px 0; color:var(--pk-night); }
.mx-lesson-loading[hidden], .mx-lesson-loading button[hidden] { display:none; }
.mx-lesson-loading strong { font-size:var(--fs-16,16px); }
.mx-lesson-loading span { font-size:var(--fs-14,14px); line-height:1.6; }
.mx-lesson-loading button { font:inherit; min-height:44px; padding:10px 20px; border:1px solid var(--pk-dusk); border-radius:12px; color:var(--pk-dusk); background:var(--pk-white); cursor:pointer; }
.mx-lesson-chapter { width:100%; grid-column:1/-1; border-bottom:1px solid var(--pk-sky); padding:8px 0; }
.mx-lesson-chapter summary { cursor:pointer; padding:12px 4px; color:var(--pk-night); font-weight:600; }
.mx-lesson-chapter .chapter { display:block; width:100%; text-align:left; margin:6px 0; }
@media (min-width:1024px) {
  .mapx-learning:not(.phone-open):not(.chat-open) .workspace { max-width:1680px; }
  .mapx-learning .workspace { padding-inline:clamp(24px,3vw,48px); }
  .mapx-learning .mapx-page-nav.site-header { max-width:1680px; padding-inline:clamp(24px,3vw,48px); }
  .mapx-learning .workspace .player.has-video:not(.has-lesson) { max-height:80dvh; padding:0; }
}
@media (max-width:760px) {
  .workspace .player.has-lesson { height:calc(100svh - 76px); min-height:360px; }
  .mx-lesson-tools button { padding:8px; font-size:var(--fs-13,13px); }
  .mx-lesson-footer { display:block; }
  .mx-lesson-expand { margin-top:2px; }
}
.mx-home .mx-quickstart { grid-column:1 / -1; }
.mx-feature-link { display:inline-flex; min-height:44px; align-items:center; margin-top:16px; color:var(--pk-dusk); }
/* 課程卡 C／D 製作中（提案 C4）：不再是死路，先導到 Z 的對應段。Q&A 每題的出口（提案 Q2）：看這一段（深色）、說明卡（白底）。 */
.mx-soon { display:inline-block; margin-left:8px; padding:2px 9px; border:1px solid var(--pk-sky); border-radius:999px; background:var(--pk-mist); color:var(--pk-dusk); font-size:var(--fs-12,12px); font-weight:600; letter-spacing:0; }
.mx-soon-note { margin:12px 0 0; color:var(--pk-dusk); font-size:var(--fs-14,14px); }
.mx-seg-chips,.mx-qa-out { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.mx-seg-chips a { display:inline-flex; align-items:center; min-height:40px; padding:4px 12px; border:1px solid var(--pk-sky); border-radius:999px; background:var(--pk-white); color:var(--pk-night); font-size:var(--fs-14,14px); font-weight:600; text-decoration:none; }
.mx-seg-chips a:hover { border-color:var(--pk-dusk); }
.mx-qa-out { margin-top:12px; }
.mx-qa-out a { display:inline-flex; align-items:center; min-height:40px; padding:4px 14px; border-radius:999px; background:var(--pk-night); color:var(--pk-white); font-size:var(--fs-14,14px); font-weight:600; text-decoration:none; }
.mx-qa-out a:hover { background:var(--pk-dusk); }
.mx-qa-out a.ghost { border:1px solid var(--pk-sky); background:var(--pk-white); color:var(--pk-summit-ink); }
.mx-qa-out a.ghost:hover { background:var(--pk-mist); }
.ts-more { margin-top:14px; border-top:1px dashed var(--pk-sky); }
.ts-more>summary { display:flex; align-items:center; min-height:48px; color:var(--pk-summit-ink); font-weight:650; cursor:pointer; }
.mx-lesson-expanded { overflow:hidden; }
/* iPhone Safari 的收工具列依賴使用者捲動外頁；鎖死 body 會讓上滑也無效。
   保留固定播放器，僅提供外頁可捲動空間；退出時 watch-controls 還原位置。 */
body.mx-safari-expanded { overflow-y:auto; min-height:calc(100svh + 160px); }
body.mx-safari-expanded::after { content:''; display:block; height:100svh; }
.mx-safari-expanded .mx-expand-hint { user-select:none; -webkit-user-select:none; touch-action:pan-y; }
.player.is-expanded .mx-expand-hint { color:var(--pk-dusk); }
.mx-lesson-expanded .launchers { display:none !important; }
.workspace .player.is-expanded,.workspace .player.has-lesson.is-expanded,.mx-quick-player.is-expanded { position:fixed; inset:var(--mx-expanded-top,0px) 0 auto; width:100%; height:var(--mx-expanded-height,100dvh); min-height:0; max-height:none; aspect-ratio:auto; padding:0; border-radius:0; z-index:11000; background:var(--pk-white); }
.player.is-expanded #video-frame { top:calc(48px + env(safe-area-inset-top)); height:calc(100% - 48px - env(safe-area-inset-top)); }
@media (pointer:coarse) {
  /* 一般影片的控制列由瀏覽器提供，保留底部空間給原生退出提示。 */
  .player.is-expanded.has-video:not(.has-lesson)[data-expand-mode="fullscreen"] #video-frame { height:calc(100% - 48px - env(safe-area-inset-top) - 96px); }
}
.mx-mobile-notice { display:none; }
@media (max-width:760px), (max-height:600px) and (pointer:coarse) {
  .mapx-learning .launchers,.mapx-learning #lesson-practice,.mapx-learning [data-open-phone],.mapx-learning [data-open-chat] { display:none !important; }
  .mx-tool-notice { display:none; }
  .mapx-learning .notice { display:none; }
  .mx-mobile-notice { display:inline; }
  .mapx-learning .workspace { padding-bottom:24px; }
  .mapx-learning .intro,.mapx-learning .lesson-number,.mapx-learning #page-guide { display:none; }
  .mapx-learning .player.has-lesson + .mx-lesson-footer { display:none; }
  .mx-watch-controls { gap:6px 8px; }
  .mx-lesson-expand { padding:10px 12px; }
}
@media(max-width:360px) {
  .mx-lesson-tools { gap:10px; }
  .mx-lesson-tools button { padding-inline:2px; }
  .mx-lesson-expand span { display:none; }
  .mx-lesson-expand { width:48px; padding:10px; }
}
@media (orientation:landscape) and (max-height:600px) and (pointer:coarse) {
  .workspace .player.has-lesson { height:calc(100svh - 48px); min-height:260px; }
}
.mx-quick-page { max-width:1280px; margin:auto; padding:24px clamp(16px,3vw,40px); }
.mx-quick-page h1 { color:var(--pk-night); }
.mx-quick-page video { display:block; width:100%; max-height:80dvh; aspect-ratio:16 / 9; object-fit:contain; background:var(--pk-night); border-radius:16px; }
.mx-quick-page select { width:100%; min-height:48px; padding:8px 12px; border:1px solid var(--pk-sky); border-radius:12px; color:var(--pk-night); background:var(--pk-white); font:inherit; }
.mx-quick-page p { line-height:1.6; }
.mx-quick-page .mx-actions { margin:16px 0; }
.mx-quick-player { position:relative; }
.mx-quick-player.is-expanded video { position:absolute; top:calc(48px + env(safe-area-inset-top)); width:100%; height:calc(100% - 48px - env(safe-area-inset-top)); max-height:none; border-radius:0; }
