/* Lao4Me canonical bundle. GENERATED by scripts/assemble-styles.mjs. Do not edit. */

/* BEGIN lao4me-culture-theme.css */
/* Lao4Me – Tradition & Culture: header + curriculum skin only.
   No rules for .nav-list, .nav-item, mobile menu, buttons/icon assets managed by Codex. */
:root{
  --heritage-deep:#652d30;
  --heritage-bordeaux:#813e3a;
  --heritage-rust:#b45644;
  --heritage-sand:#dfc09b;
  --heritage-cream:#fff9ee;
  --heritage-muted:#7a655c;
}
body{background:linear-gradient(180deg,#fffaf2,#f9f1e6)!important;color:#40342f}
.main-content{background:linear-gradient(180deg,#fffdf7dd,transparent 45rem)}
/* The exact approved stacked Lao4Me artwork is the source of brand identity. */
.sidebar .brand-logo{width:164px;height:52px;object-fit:contain}
.topbar{
  position:relative;
  height:80px;
  padding:0 5px;
  gap:12px;
  border-bottom:1px solid #dec2a0;
  background:linear-gradient(110deg,#fffaf0,#f5e5d1);
}
.topbar:after{
  content:"";position:absolute;bottom:0;left:0;right:0;height:2px;
  background:repeating-linear-gradient(90deg,#b95a4d 0 7px,#e6c499 7px 14px,transparent 14px 21px);
  opacity:.48;pointer-events:none;
}
.header-logo{display:none;align-items:center;flex:0 0 auto;text-decoration:none}
.header-logo img{display:block;width:172px;height:47px;object-fit:contain;object-position:left center}
.topbar .breadcrumb>span,.topbar .breadcrumb>i{display:none}
.topbar .breadcrumb strong{color:#814a3f;font-weight:700}
.top-actions{gap:9px}
.topbar .today-label{color:#957a6a}
#app-back{display:none!important}
.install-app{
  height:36px;border:1px solid #dec3a2;border-radius:11px;
  background:#fff8ea;color:#713d36;
}
.install-app:hover{background:#f7e8d3}
.avatar{
  display:grid;place-items:center;
  flex:0 0 40px;width:40px;height:40px;
  border:2px solid #cba16d;border-radius:50%;
  background:#f7e2c6;color:#723731;
  font:800 14px/1 var(--sans);
  box-shadow:0 0 0 2px #fff9f1;
  cursor:pointer;
}
.avatar.profile-empty{font-size:0}
.avatar.profile-empty:before{
  content:"";position:absolute;width:11px;height:11px;
  top:8px;left:12px;border-radius:50%;background:#865941;
}
.avatar.profile-empty:after{
  content:"";position:absolute;width:21px;height:10px;
  bottom:6px;left:7px;border-radius:12px 12px 5px 5px;background:#865941;
}
.avatar{position:relative}
/* MBM v1.0.3 owns ALL flag drawing, dropdown styling, focus and stacking. */
.lao4me-language-control{display:flex;align-items:center;flex:0 0 auto;min-width:45px;min-height:42px}
.lao4me-language-control [data-mbm-language-core]{display:inline-flex}
body.mbm-locale-core-ready .lao4me-language-control>.language-toggle{display:none!important}
.lao4me-language-control>.language-toggle{
  display:inline-flex!important;padding:2px;border:1px solid #e0c5a8;border-radius:12px;
  background:#fff8ed;gap:1px;
}
.lao4me-language-control>.language-toggle button{font-size:10px;min-height:32px}
.lao4me-language-control .mbm-language-core-trigger{color:#713e36}
.page-view .eyebrow{color:#986c58}
.page-view .eyebrow-line{background:#ad4b3e}
.page-view h1{color:#49312f}
.page-view h1 em{color:#82403a}
.welcome-copy{color:#79665c}
.greeting-card{
  border:1px solid #e3c4a2;border-radius:20px;
  box-shadow:0 6px 21px #613d251a;
}
.greeting-copy{
  background:#fffaefd9;border:1px solid #f2dcc2;
  border-radius:13px;box-shadow:0 4px 12px #58372314;
}
.greeting-card .greeting-lao{color:#652f31}
.greeting-card .greeting-phonetic{color:#9b5948}
.greeting-card .sound-button{background:var(--tropical);color:#fff;border:1px solid var(--tropical-deep)}
.pathway-card{
  background:linear-gradient(135deg,#fffdf8,#fff7ed);
  border:1px solid #e8cdb0;border-radius:18px;
  box-shadow:0 6px 18px #68402712;
}
.pathway-card:before{
  content:"";position:absolute;left:0;top:0;bottom:0;width:4px;
  background:#a85544;opacity:.68;
}
.pathway-card:after{
  width:95px;height:95px;right:7px;top:5px;border-radius:0;
  background:url('/illustrations/frangipani.svg') center/contain no-repeat;
  opacity:.10;pointer-events:none;
}
.pathway-card h2{color:#563530}
.pathway-card p{color:#78675d}
.pathway-card .pathway-kicker{color:#a66a50}
.pathway-button{background:var(--tropical);color:#fff;box-shadow:0 3px 0 #164d3e}
.pathway-button:hover{background:var(--tropical-deep)}
.pathway-button:focus-visible{outline:3px solid #72a88b;outline-offset:3px}
.explorer-tools>h2{color:#633d34}
.explorer-tool-grid button{background:#fffaf2;border:1px solid #e8ceb2;border-radius:16px;box-shadow:0 4px 13px #58372310}
.explorer-tool-grid button>span{color:#985441}
.explorer-tool-grid button strong{color:#5d3933}
.home-progress{background:#fffaf1;border-color:#e5c8a5}
.home-progress-bar{background:#ead9c4}
.home-progress-bar span{background:var(--tropical)}
/* The local footer uses the shared Lao4Me palette, without a second promotional block. */
@media(min-width:761px){
  .header-logo{display:none}
  .topbar .breadcrumb{margin-right:auto}
}
@media(max-width:760px){
  body{background:#fff9f0!important}
  .main-content{padding-left:13px;padding-right:13px}
  .topbar{
    height:72px;min-height:72px;padding:0 2px;gap:5px;
    position:relative;z-index:100;
  }
  .topbar .header-logo{
    display:flex!important;flex:0 0 clamp(148px,42vw,176px);
    width:clamp(148px,42vw,176px);height:53px;
    padding:0;border:0;border-radius:0;background:transparent;
    overflow:visible;
  }
  .header-logo img{width:100%;height:50px;object-fit:contain;object-position:left center}
  .topbar .breadcrumb{display:none!important}
  .top-actions{margin-left:auto;gap:4px;min-width:0}
  .top-actions .today-label{display:none}
  .install-app{min-width:30px;width:30px;height:34px;padding:0!important;justify-content:center}
  .install-app span:last-child{display:none!important}
  .avatar{flex:0 0 34px;width:34px;height:34px;font-size:12px}
  .avatar.profile-empty:before{top:6px;left:10px}
  .avatar.profile-empty:after{bottom:5px;left:6px}
  .lao4me-language-control{min-width:43px}
  .page-view{padding-top:24px}
  .page-view h1{font-size:clamp(30px,8vw,38px)}
  .greeting-card{height:145px}
  /* Mobile bottom nav, its burger and all nine incoming illustrations: UNTOUCHED. */
}
@media(max-width:375px){
 .topbar .header-logo{flex-basis:145px;width:145px}
 .topbar .header-logo img{height:45px}
 .install-app{width:27px;min-width:27px}
 .avatar{flex-basis:31px;width:31px;height:31px}
 .top-actions{gap:2px}
}

/* Identity v2: display the approved stacked source as one image, never as a horizontal collage. */
.sidebar .brand-logo{display:block;width:166px;height:111px;max-width:100%;object-fit:contain;object-position:left center}
@media(max-width:760px){
 .topbar .header-logo{display:flex!important;flex:0 0 clamp(96px,28vw,111px);width:clamp(96px,28vw,111px);height:68px;overflow:visible;padding:0;border:0;border-radius:0;background:transparent}
 .topbar .header-logo img{display:block;width:100%;height:68px;object-fit:contain;object-position:center}
}
@media(max-width:375px){
 .topbar .header-logo{flex-basis:95px;width:95px}
 .topbar .header-logo img{height:65px}
}

/* END lao4me-culture-theme.css */

/* BEGIN learning-polish.css */
/* Lao4Me v101: accessible reading sizes, green accents.
   Only presentation: preserve approved imagery, MBM shared shell and navigation. */
.home-push-onboarding{position:relative;padding-right:44px}
.home-push-dismiss{position:absolute;top:8px;right:9px;width:32px;height:32px;background:transparent;border:0;border-radius:8px;color:#66594c;font-size:22px;cursor:pointer}
.home-push-dismiss:hover{background:#eee5d7}
.home-push-dismiss:focus-visible{outline:3px solid #d8ad66;outline-offset:3px}
.word-meaning{font-size:14px;line-height:1.5}.word-phonetic{font-size:13px;line-height:1.4}
.word-category,.word-date,.row-status{font-size:11px;line-height:1.45}
.filter-pill{font-size:13px;line-height:1.35;min-height:40px}
.study-meta,.study-label{font-size:12px}.study-phonetic{font-size:15px}
.study-context{font-size:13px;line-height:1.55}
.search-box input{font-size:14px}.field-label,.field-label input,.field-label textarea,.field-label select{font-size:14px}
.course-push-callout button{margin-left:10px;min-height:38px;padding:7px 11px;border:1px solid #94b6a0;border-radius:9px;background:#fff;color:#276344;font-size:13px;font-weight:650;cursor:pointer}
.course-push-callout button:focus-visible{outline:3px solid #d8ad66;outline-offset:2px}
@media(max-width:760px){.word-phonetic{font-size:13px}.study-phonetic{font-size:15px}.filter-pill{padding:9px 13px}}

/* 22 Nov: one-screen quiz ergonomics and choose -> validate -> next workflow. */
.quiz-choice.is-selected,
.review-challenge-choices button.selected,
.course-option.is-selected,
.traveler-challenge-choices button.selected,
.grammar-answer.chosen:not(.correct):not(.incorrect){
  border:2px solid #246b55!important;background:#e4f2e7!important;color:#235a41!important;
  box-shadow:inset 0 0 0 1px #246b5533;
}
.quiz-check-answer:disabled,.review-challenge-check:disabled,
.course-check-answer:disabled,.traveler-check-answer:disabled,
.grammar-check-answer:disabled{opacity:.45;cursor:not-allowed}
.course-check-answer{display:block;margin:11px auto 0;min-height:44px}
.course-check-answer[hidden]{display:none}
.traveler-challenge-choices button small{display:block;color:#617d6a;font:500 12px/1.35 var(--sans,Arial,sans-serif);margin-top:3px}
.traveler-in-mission .traveler-hero,.traveler-in-mission .traveler-audio-setup{display:none!important}
@media(max-width:760px){
  #counting-program-view:has(.count-quiz),#reading-program-view:has(.course-options),
  #qcm-view:has(.quiz-card),#grammar-program-view:has(.grammar-question),
  #traveler-view:has(.traveler-in-mission),#revisions-view:has(.review-challenge-play){padding-top:8px}
  #qcm-root .learning-head{padding:0 0 7px}
  #qcm-root .learning-head h1{font:700 clamp(17px,4.4vw,21px)/1.25 var(--sans,Arial,sans-serif);margin:6px 0}
  #qcm-root .quiz-card{padding:12px;border-radius:14px}
  #qcm-root .quiz-word{font:700 clamp(27px,7vw,36px)/1.4 "Noto Sans Lao","Phetsarath OT",sans-serif}
  #qcm-root .quiz-phonetic{margin:1px 0 6px;font-size:14px}
  #qcm-root .library-speak{min-height:37px}
  #qcm-root .quiz-choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  #qcm-root .quiz-choice{min-height:58px;padding:8px;text-align:center;font-size:13px;overflow-wrap:anywhere}
  #qcm-root .quiz-feedback{margin:8px 0 0}
  #qcm-root .quiz-check-answer,#qcm-root #qcm-next{width:100%;margin-top:10px;min-height:44px}
  #reading-program-view .course-session:has(.course-options){padding-bottom:8px}
  #reading-program-view .course-session:has(.course-options) .back-link{margin:0 0 3px;padding:4px}
  #reading-program-view .course-session:has(.course-options) .course-beta-line,
  #reading-program-view .course-session:has(.course-options) .course-hint{display:none}
  #reading-program-view .course-session:has(.course-options) h1{font:700 clamp(18px,4.5vw,22px)/1.3 var(--sans,Arial,sans-serif);margin:7px 0}
  #reading-program-view .course-session:has(.course-options)>p{font-size:12px;line-height:1.35;margin:4px 0}
  #reading-program-view .course-question-progress{margin:6px 0;height:5px}
  #reading-program-view .course-question-glyph{margin:5px auto 8px}
  #reading-program-view .course-options{gap:7px}
  #reading-program-view .course-option{min-height:59px;font-size:clamp(22px,6vw,29px);line-height:1.4;padding:4px}
  #reading-program-view .course-sound-options .course-option{min-height:58px;padding:8px 5px;font-size:13px!important}
  #reading-program-view .course-sound-prompt{margin:6px auto 8px}
  #reading-program-view .course-check-answer{width:100%;margin-top:9px}
  #reading-program-view .course-answer-feedback{padding:8px;line-height:1.3;font-size:12px}
  #reading-program-view [data-course-question-next]{min-height:42px;margin-top:7px}
  .review-challenge-play{padding:12px!important;gap:7px;border-radius:14px}
  .review-challenge-play .review-challenge-question{font-size:clamp(27px,7vw,35px);margin-top:2px;line-height:1.4}
  .review-challenge-play .review-challenge-phonetic{font-size:13px}
  .review-challenge-play>p{font-size:12px;margin:0}
  .review-challenge-play .review-challenge-progress-bar{height:5px}
  .review-challenge-choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .review-challenge-choices button{min-height:58px;padding:8px;text-align:center;font-size:12px;overflow-wrap:anywhere}
  .review-challenge-play>.button-primary{width:100%;margin-top:2px;min-height:43px}
  .review-challenge-feedback{padding:8px;font-size:12px}
  .grammar-course .grammar-game-stages{margin-bottom:7px;gap:5px}
  .grammar-course .grammar-game-stages button{min-height:39px;padding:5px}
  .grammar-course .grammar-game-content{padding-bottom:8px;gap:6px}
  .grammar-course .grammar-question h4{font-size:15px;line-height:1.3;margin:4px 0 9px}
  .grammar-course .grammar-question-meter{margin:5px 0 8px}
  .grammar-course .grammar-answer-grid{gap:7px;margin-bottom:8px}
  .grammar-course .grammar-answer{min-height:56px;padding:6px 5px}
  .grammar-course .grammar-answer-lao{font-size:17px;line-height:1.4}
  .grammar-course .grammar-game-feedback{padding:8px;margin:6px 0}
  .grammar-course .grammar-check-answer{min-height:43px}
  #traveler-view .traveler-in-mission .traveler-panel{padding:11px;border-radius:14px}
  #traveler-view .traveler-in-mission .traveler-panel h2{font-size:19px;margin:6px 0}
  #traveler-view .traveler-in-mission .traveler-panel>p{font-size:12px;margin:7px 0}
  #traveler-view .traveler-in-mission .traveler-challenge-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  #traveler-view .traveler-in-mission .traveler-challenge-choices button{min-height:62px;padding:7px;overflow-wrap:anywhere}
  #traveler-view .traveler-in-mission .traveler-challenge-choices button span{font-size:17px;line-height:1.35}
  #traveler-view .traveler-in-mission .traveler-primary{min-height:43px;margin-top:8px}
}
@media(max-height:700px) and (max-width:760px){
  #qcm-root .quiz-choice,.review-challenge-choices button{min-height:47px}
  #reading-program-view .course-option{min-height:47px}
  .grammar-course .grammar-answer{min-height:46px}
  #traveler-view .traveler-in-mission .traveler-challenge-choices button{min-height:50px}
}

/* Dictionary playback: obvious, thumb-friendly green listening action. */
#word-card-speak{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  min-width:190px;min-height:52px;margin:14px auto 12px;padding:11px 23px;
  border:2px solid #176c4b;border-radius:999px;background:#23865f;color:#fff;
  font:800 16px/1.2 var(--sans,system-ui,sans-serif);letter-spacing:.01em;
  box-shadow:0 5px 0 #13583a21,0 9px 21px #145b4030;
  cursor:pointer;transition:background-color .16s,box-shadow .16s,transform .16s;
}
#word-card-speak:hover{background:#176e4d;box-shadow:0 6px 0 #13583a28,0 12px 24px #145b403b;transform:translateY(-1px)}
#word-card-speak:active{transform:translateY(1px)}
#word-card-speak.is-playing{background:#155f43;border-color:#0c5839;box-shadow:0 0 0 4px #28986b33,0 7px 17px #145b4030}
#word-card-speak:focus-visible,.library-speak:focus-visible{outline:3px solid #f1bc49;outline-offset:3px}
.library-speak{min-height:44px;padding:9px 15px;border:1px solid #176c4b;border-radius:999px;background:#23865f;color:#fff;font-size:13px;font-weight:750;box-shadow:0 4px 12px #145b4025}
.library-speak:hover{border-color:#0c5839;background:#176e4d;color:#fff}
@media(max-width:760px){#word-card-speak{min-width:185px;min-height:52px;font-size:16px}}
@media(prefers-reduced-motion:reduce){#word-card-speak{transition:none}#word-card-speak:hover,#word-card-speak:active{transform:none}}

/* Stable route entry: no scroll interpolation or browser anchor jumps after a page swap. */
html{scroll-behavior:auto!important;overflow-anchor:none}
.page-view{overflow-anchor:none}
.dictionary-visually-hidden{
  position:absolute!important;width:1px!important;height:1px!important;padding:0!important;
  margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;border:0!important;
}

/* Dictionary: content starts immediately after two tabs and one lightweight toolbar. */
#library-view,#phrases-view{padding-top:9px}
#library-view .library-simple-head,#phrases-view .library-simple-head{
  min-height:0;display:flex;align-items:center;margin:0 0 5px;padding:0;
}
#library-view .library-simple-head h1,#phrases-view .library-simple-head h1{
  margin:0;font-size:clamp(25px,4vw,32px);line-height:1.15;letter-spacing:-.5px;
}
#library-view .dictionary-modes,#phrases-view .dictionary-modes{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;width:100%;
  margin:0 0 8px;padding:4px;border-radius:13px;
}
#library-view .dictionary-modes button,#phrases-view .dictionary-modes button{
  min-width:0;min-height:42px;padding:8px 10px;font-size:13px;line-height:1.25;
}
.dictionary-quick-controls{
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:stretch;
  margin:0 0 8px;
}
.dictionary-quick-controls .search-box{
  display:flex;align-items:center;width:100%;max-width:none;min-width:0;
  height:46px;min-height:46px;padding:0 10px;border:1px solid #d8cdb9;
  border-radius:13px;background:#fffdf7;
}
.dictionary-quick-controls .search-box input{
  width:100%;min-width:0;border:0;background:transparent;font-size:14px;
}
.dictionary-filter-toggle{
  display:inline-flex;justify-content:center;align-items:center;gap:7px;
  min-height:46px;padding:0 15px;border:1px solid #bbd6c4;border-radius:13px;
  background:#eff6ec;color:#23684b;font:750 13px var(--sans,system-ui,sans-serif);
  white-space:nowrap;cursor:pointer;
}
.dictionary-filter-toggle span{font-size:19px;line-height:1}
.dictionary-filter-toggle:hover,.dictionary-filter-toggle.is-open{background:#dfeee0;border-color:#7daf8b}
.dictionary-filter-toggle.has-active-filter{background:#256f50;border-color:#256f50;color:white}
.dictionary-filter-toggle:focus-visible,.dictionary-filter-done:focus-visible,.dictionary-card-listen:focus-visible{
  outline:3px solid #e8b95c;outline-offset:2px;
}
.dictionary-filter-panel{
  display:grid;gap:12px;padding:14px;margin:2px 0 11px;border:1px solid #dfd6bf;
  border-radius:14px;background:#fffaf0;box-shadow:0 4px 13px #73562b0c;
}
.dictionary-filter-panel[hidden]{display:none!important}
.dictionary-filter-panel fieldset{margin:0;padding:0;border:0;min-width:0}
.dictionary-filter-panel legend{margin:0 0 6px;color:#506257;font-weight:700;font-size:12px}
#library-view .dictionary-filter-panel .library-track,#library-view .dictionary-filter-panel .library-scope{
  position:static;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:5px;width:100%;margin:0;padding:0;background:transparent;box-shadow:none;
}
#library-view .dictionary-filter-panel .library-track button,
#library-view .dictionary-filter-panel .library-scope button{
  min-width:0;min-height:42px;font-size:12px;padding:7px 5px;border-radius:11px;
  text-align:center;white-space:normal;overflow-wrap:anywhere;
}
#library-view .dictionary-filter-panel #library-filters.library-filters,
#phrases-view .dictionary-filter-panel #phrases-filters.library-filters{
  display:block;margin:0;padding:0!important;min-height:0;overflow:visible!important;width:100%;
}
#library-view .dictionary-filter-panel .learning-topic-select,
#phrases-view .dictionary-filter-panel .learning-topic-select{
  display:flex;align-items:center;gap:8px;min-width:0;width:100%;
}
#library-view .dictionary-filter-panel #library-category-select,
#phrases-view .dictionary-filter-panel #phrases-category-select{
  min-width:0;flex:1;min-height:44px;padding:7px;border-radius:11px;
  font-size:13px;
}
.dictionary-filter-done{
  width:100%;min-height:44px;border:0;border-radius:12px;background:#23865f;
  color:#fff;font:750 14px var(--sans,system-ui,sans-serif);
}
#library-view .dictionary-letter-group{margin:4px 0 11px}
#library-view .dictionary-letter-group>h2{padding:5px 3px;margin:0;font-size:16px}
#library-view .dictionary-letter-group .library-grid{margin-top:6px;gap:8px}
#library-view .library-card{
  display:grid;grid-template-columns:68px minmax(0,1fr);grid-template-rows:repeat(5,auto);
  align-items:center;gap:2px 11px;min-height:118px;
  padding:11px 58px 11px 11px;position:relative;
}
#library-view .library-card .library-art{
  grid-column:1;grid-row:1/6;width:68px;height:68px;
}
#library-view .library-card .library-category{grid-column:2;grid-row:1;font-size:9px!important}
#library-view .library-card .library-lao{grid-column:2;grid-row:2;margin:0!important;font-size:25px!important;line-height:1.25!important}
#library-view .library-card .library-phonetic{grid-column:2;grid-row:3;font-size:13px!important;line-height:1.3!important;margin:0!important}
#library-view .library-card .library-meaning{grid-column:2;grid-row:4;font-size:15px!important;line-height:1.3!important}
#library-view .library-card .library-status{grid-column:2;grid-row:5;font-size:10px!important;line-height:1.25!important}
#library-view .library-card .dictionary-card-listen,
#phrases-view .phrase-card .dictionary-card-listen{
  position:absolute;right:9px;bottom:11px;z-index:3;pointer-events:auto;
  display:inline-flex;align-items:center;justify-content:center;
  width:46px;height:46px;padding:0;border:1px solid #176c4b;
  border-radius:14px;background:#23865f;color:white;font-size:23px;
  box-shadow:0 3px 9px #145b4030;cursor:pointer;touch-action:manipulation;
}
#library-view .library-card .dictionary-card-listen:hover,
#phrases-view .phrase-card .dictionary-card-listen:hover{background:#155f43}
#phrases-view .phrases-list{margin-top:6px}
#phrases-view .phrase-card{padding:12px 57px 28px 13px;gap:4px;min-height:115px}
#phrases-view .phrase-card .phrase-card-topic{font-size:9px}
#phrases-view .phrase-card .phrase-card-meaning{font-size:17px}
#phrases-view .phrase-card .phrase-card-lao{font-size:22px}
#phrases-view .phrase-card .phrase-card-status{bottom:9px;left:13px}
@media(max-width:600px){
  #library-view,#phrases-view{padding-top:6px}
  #library-view .library-simple-head h1,#phrases-view .library-simple-head h1{font-size:27px}
  #library-view .dictionary-modes button,#phrases-view .dictionary-modes button{min-height:40px;font-size:12px}
  .dictionary-quick-controls{gap:7px}
  .dictionary-quick-controls .search-box input{font-size:13px}
  .dictionary-filter-toggle{padding:0 11px;font-size:12px}
  #library-view .dictionary-letter-group .library-grid{grid-template-columns:1fr}
  #library-view .library-card{grid-template-columns:61px minmax(0,1fr);padding:10px 54px 10px 10px;min-height:113px;gap:1px 9px}
  #library-view .library-card .library-art{width:61px;height:61px}
  #library-view .library-card .library-lao{font-size:23px!important}
  #library-view .library-card .library-phonetic{font-size:12px!important}
  #library-view .library-card .library-meaning{font-size:14px!important}
  #library-view .library-card .dictionary-card-listen,#phrases-view .phrase-card .dictionary-card-listen{
    width:44px;height:44px;right:7px;bottom:9px;
  }
}

/* 22 Nov: cards are the destination, not the bottom of a long introduction.
   All learning overlays scroll internally; explanatory content stays available. */
#alphabet-root.card-flow-fullscreen,
#memocards-root.card-flow-fullscreen,
#study-wrap.card-flow-fullscreen,
#reading-program-root.card-flow-fullscreen,
#counting-program-root.card-flow-fullscreen,
#traveler-root.card-flow-fullscreen,
#grammar-program-view .grammar-flashcards.card-flow-fullscreen {
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  height:100dvh!important;
  max-width:none!important;
  max-height:100dvh!important;
  min-height:0!important;
  margin:0!important;
  z-index:1500!important;
  box-sizing:border-box!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  background:linear-gradient(165deg,#fffaf0 0%,#f6ebd6 100%)!important;
  padding:calc(48px + env(safe-area-inset-top,0px)) 16px calc(20px + env(safe-area-inset-bottom,0px))!important;
  display:flex!important;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  gap:12px;
}
.card-flow-close {
  position:fixed;
  top:calc(9px + env(safe-area-inset-top,0px));
  right:12px;
  width:42px;height:42px;
  border:1px solid #d9cfb9;
  border-radius:50%;
  background:#fffef9;
  color:#275e4d;
  font-size:27px;
  line-height:1;
  font-weight:500;
  box-shadow:0 4px 18px #18362b1a;
  z-index:1600;
}
.card-flow-soundbar,.card-flow-stage-grade,.alphabet-grade-actions,.memo-card-grade {
  display:flex;align-items:center;justify-content:center;gap:10px;
  flex-wrap:wrap;width:100%;margin:6px auto;
}
.card-flow-soundbar>button,.card-flow-stage-grade>button,
.alphabet-grade-actions>button,.memo-card-grade>button {
  min-height:44px;
  border:1px solid #9bb7a6;
  border-radius:13px;
  padding:9px 15px;
  background:#f5faf4;
  color:#1d614d;
  font-family:inherit;font-size:14px;line-height:1.3;font-weight:700;
  cursor:pointer;
}
.card-flow-stage-grade>button:last-child,
.alphabet-grade-actions>button:last-child,
.memo-card-grade>button:last-child {
  background:#226952;color:#fff;border-color:#226952;
}
.card-flow-soundbar {max-width:540px;order:3;}
.card-flow-soundbar:empty{display:none}
.card-flow-soundbar button{white-space:nowrap;}
/* Alphabet: first the letter, then controls, with the explanatory sheet below. */
#alphabet-root.card-flow-fullscreen .alphabet-card {
  order:1;width:min(100%,540px);margin:0 auto;min-height:0;
  padding:14px 16px;
}
#alphabet-root.card-flow-fullscreen .alphabet-progress{order:0;margin:0;text-align:center}
#alphabet-root.card-flow-fullscreen .alphabet-grade-actions{order:2;max-width:540px}
#alphabet-root.card-flow-fullscreen .alphabet-controls{order:3;margin:0;width:min(100%,540px)}
#alphabet-root.card-flow-fullscreen .alphabet-picker{order:5;width:min(100%,540px);margin-top:14px}
#alphabet-root.card-flow-fullscreen .learning-head{order:6;max-width:540px;text-align:center;opacity:.85}
#alphabet-root.card-flow-fullscreen .alphabet-symbol{font-size:clamp(54px,13vw,96px)}
#alphabet-root.card-flow-fullscreen .alphabet-visual{margin:4px auto}
#alphabet-root.card-flow-fullscreen .card-flow-soundbar{order:4}
#alphabet-root.card-flow-fullscreen .alphabet-grade-actions button{flex:1 1 45%}
/* Memo: the current flashcard appears above category selectors and introduction. */
#memocards-root.card-flow-fullscreen .memo-page {
  display:flex;flex-direction:column;align-items:center;
  width:min(100%,570px);max-width:570px;margin:0 auto;gap:10px;
}
#memocards-root.card-flow-fullscreen .memo-card{order:0;width:100%;margin:0 auto;padding:14px;}
#memocards-root.card-flow-fullscreen .memo-card-art{max-height:clamp(125px,23dvh,240px)}
#memocards-root.card-flow-fullscreen .memo-card-nav{margin-top:4px}
#memocards-root.card-flow-fullscreen .memo-themes{order:3;width:100%;margin-top:8px}
#memocards-root.card-flow-fullscreen .memo-page>.eyebrow,
#memocards-root.card-flow-fullscreen .memo-page>h1,
#memocards-root.card-flow-fullscreen .memo-page>.welcome-copy{order:4;margin:0;text-align:center}
#memocards-root.card-flow-fullscreen .card-flow-soundbar{order:2}
#memocards-root.card-flow-fullscreen .memo-card-grade button{flex:1 1 44%}
/* Reviews: the flip surface stays centered, while all grading and audio works. */
#study-wrap.card-flow-fullscreen .study-flip {
  order:2;width:min(100%,560px);margin:0;min-height:min(50dvh,470px);
}
#study-wrap.card-flow-fullscreen .study-meta {order:0;margin:0;width:min(100%,560px)}
#study-wrap.card-flow-fullscreen .review-direction{order:4;width:min(100%,560px);margin:0}
#study-wrap.card-flow-fullscreen .study-review-actions{order:3;margin:0;width:min(100%,560px)}
#study-wrap.card-flow-fullscreen .review-change-topic{order:6;margin:8px 0}
#study-wrap.card-flow-fullscreen .review-gesture-tip{order:7;margin:0}
#study-wrap.card-flow-fullscreen .card-flow-soundbar{order:1}
/* Reading stages and tests open as cards. Preserve actual questions and answers. */
#reading-program-root.card-flow-fullscreen .course-session{
  width:min(100%,650px)!important;
  margin:0 auto!important;
  padding:0!important;
  display:flex;flex-direction:column;align-items:stretch;gap:12px;
}
#reading-program-root.card-flow-fullscreen .course-session:has(.course-teach-card)>h1,
#reading-program-root.card-flow-fullscreen .course-session:has(.course-teach-card)>.course-beta-line{
  display:none;
}
#reading-program-root.card-flow-fullscreen .course-session>.eyebrow{font-size:12px;text-align:center;margin:0}
#reading-program-root.card-flow-fullscreen .course-teach-card{margin:0 auto;width:100%;max-width:620px}
#reading-program-root.card-flow-fullscreen .course-teach-navigation{margin:0}
#reading-program-root.card-flow-fullscreen .course-day-goal{margin-top:12px}
#reading-program-root.card-flow-fullscreen .card-flow-stage-grade{margin:0}
#reading-program-root.card-flow-fullscreen .card-flow-stage-grade button{flex:1 1 40%}
#reading-program-root.card-flow-fullscreen .course-session>.back-link{align-self:flex-start;margin:0}
/* Grammar flashcards use the same dialog-like full-screen study surface. */
#grammar-program-view .grammar-flashcards.card-flow-fullscreen {
  gap:10px!important;padding-top:calc(52px + env(safe-area-inset-top,0px))!important;
}
#grammar-program-view .grammar-flashcards.card-flow-fullscreen .grammar-flip-card{
  width:min(100%,570px);min-height:min(44dvh,440px);margin:0 auto;
}
#grammar-program-view .grammar-flashcards.card-flow-fullscreen
  .grammar-card-situation{width:min(100%,600px);}
#grammar-program-view .grammar-flashcards.card-flow-fullscreen
  .grammar-card-grade-actions{width:min(100%,600px);margin:0 auto;}
#grammar-program-view .grammar-flashcards.card-flow-fullscreen
  .grammar-swipe-help{margin:0 auto;font-size:12px;}
/* The swipe detector never hijacks vertical reading or deliberate button taps. */
#alphabet-root .alphabet-card,#memocards-root .memo-card,
#reading-program-root .course-teach-card{touch-action:pan-y;}
@media(max-height:680px){
  #study-wrap.card-flow-fullscreen .study-flip{min-height:310px}
  #memocards-root.card-flow-fullscreen .memo-card-art{max-height:145px}
  #alphabet-root.card-flow-fullscreen .alphabet-card{padding:10px}
}

/* Numeric exercises and conversational missions are focused without disturbing
   the scoring and answer-validation rules of their quizzes. */
#counting-program-root.card-flow-fullscreen .count-quiz,
#traveler-root.card-flow-fullscreen .traveler-panel{
  width:min(100%,650px);max-width:650px;
  margin:0 auto!important;
  padding:14px 16px;
  box-sizing:border-box;
  background:#fffaf0;
  border:1px solid #e0d3b9;
  border-radius:19px;
}
#counting-program-root.card-flow-fullscreen .count-quiz>h2{font-size:clamp(20px,4.5vw,29px);margin:6px 0}
#counting-program-root.card-flow-fullscreen .count-quiz .count-question-subject{margin:8px auto}
#traveler-root.card-flow-fullscreen>.traveler-hero,
#traveler-root.card-flow-fullscreen>.traveler-modes{display:none!important}
#study-wrap.card-flow-fullscreen .review-challenge-play{width:min(100%,630px);max-width:630px;order:2}
#study-wrap.card-flow-fullscreen .review-challenge-result{width:min(100%,630px);order:2}
@media(max-width:580px){
  #counting-program-root.card-flow-fullscreen .count-quiz,
  #traveler-root.card-flow-fullscreen .traveler-panel{padding:12px}
  #alphabet-root.card-flow-fullscreen .alphabet-card{width:100%}
  #memocards-root.card-flow-fullscreen .memo-card .memo-card-lao{font-size:clamp(28px,8vw,38px)}
}

/* Vocabulary revision and solved grammar situations: one compact top-layer card,
   never a scrollable full page. Grade controls belong to this same surface. */
dialog.single-study-dialog{position:fixed!important;inset:0!important;margin:auto!important;padding:0!important;width:min(440px,calc(100vw - 22px))!important;max-width:calc(100vw - 22px)!important;max-height:calc(100dvh - 22px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))!important;border:1px solid #ddcfb8!important;border-radius:23px!important;background:#fffaf0!important;color:#395648;box-shadow:0 20px 75px #163b2960;overflow:hidden!important;box-sizing:border-box}
dialog.single-study-dialog:not([open]){display:none!important}
dialog.single-study-dialog::backdrop{background:#183c3080;backdrop-filter:blur(2px)}
.single-study-dialog .single-study-shell{display:flex;flex-direction:column;gap:8px;margin:0!important;padding:12px!important;box-sizing:border-box;max-height:calc(100dvh - 26px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));min-height:0;overflow:hidden}
.single-study-dialog .single-study-header{display:flex;align-items:center;gap:6px;min-height:34px;flex:none}
.single-study-dialog .study-meta{display:flex;flex:1;align-items:center;gap:8px;margin:0!important;width:auto!important;min-width:0;justify-content:space-between;font-size:12px}
.single-study-dialog .study-meta span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.single-study-dialog button.single-study-icon{display:inline-grid;place-items:center;flex:0 0 34px;min-width:0!important;min-height:34px!important;width:34px!important;height:34px!important;margin:0!important;padding:0!important;border:0!important;border-radius:8px!important;box-shadow:none!important;background:transparent!important;color:#2b6a53!important;font-size:20px;cursor:pointer}
.single-study-dialog button.single-study-close{font-size:27px;line-height:1}
.single-study-dialog .single-study-tools{display:flex;justify-content:center;gap:12px;flex:none}
.single-study-dialog .single-study-grades{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;flex:none;margin:0}
.single-study-dialog .single-study-grades>button{min-height:44px!important;min-width:0!important;margin:0!important;padding:8px 5px!important;border-radius:12px!important;border:1px solid #e4d0bd!important;background:#fbefe2!important;color:#925c47!important;box-shadow:none!important;font-size:13px;font-weight:750;line-height:1.25;white-space:normal}
.single-study-dialog .single-study-grades>button:last-child{background:#e5f1e7!important;border-color:#b2cdb7!important;color:#24644a!important}
.single-study-dialog .single-study-grades>button:focus-visible,.single-study-dialog button.single-study-icon:focus-visible{outline:2px solid #2d7356;outline-offset:2px}
#study-wrap .review-card-dialog .study-flip{width:100%!important;height:min(49dvh,340px)!important;min-height:0!important;flex:0 1 auto;margin:0!important;touch-action:pan-y}
#study-wrap .review-card-dialog .study-flip-face{padding:10px 12px!important;gap:5px;box-shadow:none;border-radius:16px}
#study-wrap .review-card-dialog .study-mini-image{width:min(38vw,145px,20dvh)!important;height:min(38vw,145px,20dvh)!important;max-width:100%;max-height:none!important;object-fit:contain;aspect-ratio:1;flex:none;margin:0!important}
#study-wrap .review-card-dialog .study-flip-lao{font-size:clamp(26px,7vw,40px);line-height:1.35}
#study-wrap .review-card-dialog .study-flip-phonetic{font-size:clamp(15px,4vw,19px)}
#study-wrap .review-card-dialog .study-flip-face small{font-size:12px;line-height:1.2;margin:0}
#study-wrap .review-card-dialog .study-review-letter{font-size:clamp(48px,12dvh,90px)}
#study-wrap .review-card-dialog .study-flip-meaning{font-size:clamp(20px,5vw,31px);overflow-wrap:anywhere}
#grammar-program-view .grammar-example-dialog .grammar-worked-examples{width:auto;gap:8px}
#grammar-program-view .grammar-example-dialog .grammar-card-progress{margin:0;font-size:12px}
#grammar-program-view .grammar-example-dialog .grammar-path-meter{margin:0;height:5px;flex:none}
#grammar-program-view .grammar-example-dialog .grammar-example-swipe{width:100%;box-sizing:border-box;min-height:min(32dvh,200px);margin:0;padding:12px!important;gap:6px;flex:0 1 auto;touch-action:pan-y;border-radius:16px;overflow-wrap:anywhere}
#grammar-program-view .grammar-example-dialog .grammar-example-swipe .grammar-lao{font-size:clamp(21px,5.5vw,30px);line-height:1.4}
#grammar-program-view .grammar-example-dialog .grammar-example-swipe>p{font-size:13px;line-height:1.4;padding-top:7px;margin:0}
#grammar-program-view .grammar-example-dialog .grammar-example-swipe .grammar-study-translation{font-size:14px;line-height:1.35;margin:0}
@media(max-height:550px){
 .single-study-dialog .single-study-shell{padding:8px!important;gap:4px}
 .single-study-dialog .single-study-header{min-height:28px}
 .single-study-dialog button.single-study-icon{height:28px!important;min-height:28px!important}
 #study-wrap .review-card-dialog .study-flip{height:min(45dvh,230px)!important}
 #study-wrap .review-card-dialog .study-mini-image{width:min(16dvh,90px)!important;height:min(16dvh,90px)!important}
 #study-wrap .review-card-dialog .study-flip-face{padding:6px!important;gap:3px}
 #grammar-program-view .grammar-example-dialog .grammar-example-swipe{min-height:0;padding:8px!important;gap:4px}
 #grammar-program-view .grammar-example-dialog .grammar-example-swipe>p{font-size:12px;line-height:1.3;padding-top:4px}
}
@media(prefers-reduced-motion:reduce){.single-study-dialog .study-flip-inner{transition:none}}

/* Shared Review card visual language. The face content remains specific to each lesson. */
.shared-study-face{touch-action:pan-y!important;cursor:grab;user-select:none;-webkit-user-select:none;will-change:transform}
.shared-study-face:active{cursor:grabbing}
.shared-study-grades{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px!important;margin:0!important;width:100%;flex:none}
.shared-study-grades>button{min-height:44px!important;min-width:0!important;margin:0!important;padding:8px 5px!important;border-radius:12px!important;border:1px solid #e4d0bd!important;background:#fbefe2!important;color:#925c47!important;box-shadow:none!important;font-size:13px!important;font-weight:750;line-height:1.25;white-space:normal}
.shared-study-grades>button:last-child{background:#e5f1e7!important;border-color:#b2cdb7!important;color:#24644a!important}
.shared-study-grades>button:disabled{opacity:.45;cursor:not-allowed}
.shared-learning-shell .single-study-header>span{flex:1;font-size:13px;font-weight:700}
.shared-learning-content{display:flex;flex-direction:column;gap:5px;min-height:0;overflow-y:auto;overscroll-behavior:contain}
.shared-learning-content>.learning-head,.shared-learning-content .memo-page>.eyebrow,.shared-learning-content .memo-page>h1,.shared-learning-content .memo-page>.welcome-copy{display:none}
.shared-learning-content .alphabet-progress{margin:0;text-align:center;font-size:12px}
.shared-letter-picker{order:3;font-size:12px;text-align:center}
.shared-letter-picker summary{cursor:pointer;color:#487967;padding:3px}
.shared-letter-picker .alphabet-picker{margin:5px auto;max-height:110px;overflow:auto}
#alphabet-root .shared-learning-dialog .alphabet-card{margin:0;padding:8px 12px!important;min-height:0;width:100%;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;gap:5px;box-shadow:none;border-radius:16px}
#alphabet-root .shared-learning-dialog .alphabet-visual{flex-direction:column;gap:5px;margin:0;width:100%}
#alphabet-root .shared-learning-dialog :is(.alphabet-symbol,.alphabet-mnemonic strong[lang="lo"],.alphabet-pick){font-family:"Noto Sans Lao","Phetsarath OT","Lao UI",sans-serif!important;font-weight:650}
#alphabet-root .shared-learning-dialog .alphabet-symbol{font-size:clamp(88px,23dvh,132px)!important;min-height:0;line-height:1.2;color:#19604f}
#alphabet-root .shared-learning-dialog .alphabet-picture-wrap{width:min(100%,280px,30dvh);aspect-ratio:1;flex:none;box-shadow:none;border:0}
#alphabet-root .shared-learning-dialog .alphabet-picture{width:100%;height:100%;margin:0}
#alphabet-root .shared-learning-dialog .alphabet-mnemonic{margin:0;gap:1px}
#alphabet-root .shared-learning-dialog .alphabet-mnemonic strong[lang="lo"]{font-size:29px;line-height:1.4;color:#19604f}
#alphabet-root .shared-learning-dialog .alphabet-word-line{display:flex;align-items:center;justify-content:center;gap:3px}
#alphabet-root .shared-learning-dialog .alphabet-listen{margin:0!important;min-height:32px!important;padding:0!important}
#alphabet-root .shared-learning-dialog .alphabet-answer{padding:0;margin:0;background:transparent;font-size:13px;color:#65776d}
#alphabet-root .shared-learning-dialog .single-study-tools{margin:0}
#alphabet-root .shared-learning-dialog .single-study-tools button{height:27px!important;min-height:27px!important}
.shared-learning-content .memo-page{display:flex;flex-direction:column;gap:6px;max-width:100%;margin:0}
.shared-learning-content .memo-card{order:0;display:flex;flex-direction:column;align-items:center;gap:6px;margin:0;padding:10px;min-height:0;box-shadow:none;border-radius:16px}
.shared-learning-content .memo-card-art{width:min(100%,210px,30dvh);height:auto;max-height:none;aspect-ratio:1}
.shared-learning-content .memo-themes{order:2;margin:0}
.shared-learning-content .course-session{padding:0!important;margin:0!important;gap:6px}
.shared-learning-content .course-session>.back-link,.shared-learning-content .course-session:has(.course-teach-card)>h1,.shared-learning-content .course-session:has(.course-teach-card)>.course-beta-line{display:none}
.shared-learning-content .course-teach-card{padding:8px 10px;margin:0;box-shadow:none;border-radius:16px}
.shared-learning-content .course-picture{max-height:min(25dvh,180px);object-fit:contain}
.grammar-review-dialog .grammar-flashcards{display:flex;flex-direction:column;gap:6px;margin:0;min-height:0}
.grammar-review-dialog .grammar-flip-card{min-height:clamp(100px,22dvh,180px);padding:10px;margin:0;box-shadow:none;border-radius:16px}
.grammar-review-dialog .grammar-card-situation{margin:0;padding:6px;font-size:13px}
.grammar-review-dialog .grammar-card-situation p{margin:2px 0}
.grammar-review-dialog .grammar-card-progress{margin:0;font-size:12px}
dialog.shared-study-modal:not(#lao-practice-dialog),#lao-practice-dialog.lp-dialogue-playing.shared-study-modal{position:fixed;inset:0;margin:auto;width:min(440px,calc(100vw - 22px));max-width:calc(100vw - 22px);max-height:calc(100dvh - 22px);border:1px solid #ddcfb8;border-radius:23px;background:#fffaf0;box-shadow:0 20px 75px #163b2960;box-sizing:border-box}
dialog.shared-study-modal::backdrop{background:#183c3080;backdrop-filter:blur(2px)}
#word-card-dialog.shared-study-modal .word-card-shell{max-height:calc(100dvh - 26px);padding:0;overflow-y:auto}
#word-card-dialog.shared-study-modal .word-card-art{width:min(210px,31dvh);max-height:none;aspect-ratio:1}
#word-card-dialog.shared-study-modal .word-card-body{padding:8px 12px}
#word-card-dialog.shared-study-modal .word-card-body h2{margin:3px 0}
#word-card-dialog.shared-study-modal .word-card-gesture-hint{display:none}
.shared-study-modal .count-dialog-hint,.shared-study-modal .grammar-swipe-help{display:none}
@media(max-height:600px){#alphabet-root .shared-learning-dialog .alphabet-symbol{font-size:clamp(66px,18dvh,108px)!important}#alphabet-root .shared-learning-dialog .alphabet-picture-wrap{width:min(100%,185px,25dvh)}.shared-learning-content .memo-card-art{width:min(100%,165px,25dvh)}}

/* One visual system: reuse the existing swipe review's paper, frame and Lao type.
   Teaching, objective quizzes and tracing share the same card, not the same grading. */
:root{
  --learning-card-paper:#fffdf8;
  --learning-card-shell:#fffaf0;
  --learning-card-border:#e1d2b9;
  --learning-card-ink:#19604f;
  --learning-card-muted:#65776d;
  --learning-card-radius:16px;
  --learning-card-shadow:0 2px 0 #e7d9c2,0 7px 18px #284c3610;
  --learning-card-font:"Noto Sans Lao","Phetsarath OT","Lao UI",sans-serif;
}
:is(.shared-learning-content .course-teach-card,.shared-learning-content .alphabet-card,.shared-learning-content .memo-card,.review-card-dialog .study-flip-face,.grammar-review-dialog .grammar-flip-card,.lp-dialogue-card,.lp-reading-card,.lp-writing-card,.count-dialog-body){
  background:var(--learning-card-paper);
  border:1px solid var(--learning-card-border);
  border-radius:var(--learning-card-radius);
  color:var(--learning-card-ink);
}
.shared-learning-dialog .course-session:has(.course-options){
  display:flex;flex-direction:column;gap:9px;min-width:0;
  width:100%;max-width:100%;box-sizing:border-box;
  padding:0!important;margin:0!important;
}
.shared-learning-dialog .course-session:has(.course-options)>:is(.course-beta-line,.course-hint){display:none}
.shared-learning-dialog .course-session:has(.course-options)>.eyebrow{
  text-align:center;color:var(--learning-card-muted);font-size:11px;letter-spacing:.07em;margin:0;
}
.shared-learning-dialog .course-session:has(.course-options)>h1{
  text-align:center;font:750 clamp(17px,4.7vw,22px)/1.35 var(--sans,Arial,sans-serif);
  color:var(--learning-card-ink);margin:0;padding:2px 3px;
}
.shared-learning-dialog .course-session:has(.course-options)>p{margin:0;text-align:center;font-size:12px;line-height:1.4;color:var(--learning-card-muted)}
.shared-learning-dialog .course-session:has(.course-options)>.course-question-progress{
  margin:0;height:5px;border-radius:999px;overflow:hidden;background:#e8e2d3;
}
.shared-learning-dialog .course-question-progress>span{background:#357b60}
.shared-learning-dialog .course-session:has(.course-options)>.course-sound-prompt,
.shared-learning-dialog .course-session:has(.course-options)>.course-question-glyph,
.shared-learning-dialog .course-session:has(.auditory-vowel-options):not(:has(.course-sound-prompt))>.course-question-audio{
  box-sizing:border-box;width:100%;max-width:none;min-height:100px;margin:0;
  display:grid;place-content:center;justify-items:center;gap:4px;padding:12px;
  border:1px solid var(--learning-card-border);border-radius:var(--learning-card-radius);
  background:var(--learning-card-paper);box-shadow:var(--learning-card-shadow);color:var(--learning-card-ink);
}
.shared-learning-dialog .course-session .course-question-glyph{
  min-height:110px;font-family:var(--learning-card-font);font-size:clamp(46px,13vw,76px);line-height:1.5;
}
.shared-learning-dialog .course-session .course-sound-prompt small{color:var(--learning-card-muted);font-size:10px;letter-spacing:.08em}
.shared-learning-dialog .course-session .course-sound-prompt strong{color:var(--learning-card-ink)}
.shared-learning-dialog .course-session .course-question-audio{margin:0 auto;text-align:center}
.shared-learning-dialog .course-session .course-target-listen{border-radius:14px;min-height:42px!important;font-size:14px}
.shared-learning-dialog .course-session .course-options{gap:8px!important;grid-template-columns:repeat(2,minmax(0,1fr))}
.shared-learning-dialog .course-session .course-option{
  box-sizing:border-box;min-width:0;width:100%;min-height:70px;
  border:1px solid var(--learning-card-border);border-radius:14px;
  color:var(--learning-card-ink);background:var(--learning-card-paper);
  box-shadow:0 2px 0 #e7d9c2;font-size:clamp(25px,7vw,39px);line-height:1.5;
  padding:6px 5px;overflow-wrap:anywhere;
}
.shared-learning-dialog .course-session .auditory-vowel-choice{
  font-family:var(--learning-card-font)!important;font-size:clamp(35px,10vw,53px)!important;min-height:78px!important;line-height:1.5!important;padding:6px 3px!important;
}
.shared-learning-dialog .course-session .course-sound-options .course-option{font:750 14px/1.4 var(--sans,Arial,sans-serif);min-height:62px}
.shared-learning-dialog .course-session .course-option.is-selected{border-color:#3b8064;background:#eff6ed;box-shadow:0 0 0 2px #3b806422}
.shared-learning-dialog .course-session .course-option.is-correct{border-color:#2c8a62;background:#e5f2e7;color:#24644a;box-shadow:none}
.shared-learning-dialog .course-session .course-option.is-wrong{border-color:#d8705a;background:#fff0eb;color:#9a503e;box-shadow:none}
.shared-learning-dialog .course-session .course-option:disabled:not(.is-correct):not(.is-wrong){opacity:.65}
.shared-learning-dialog .course-session :is(#course-feedback,#vowel-review-feedback):empty{display:none}
.shared-learning-dialog .course-session :is(#course-feedback,#vowel-review-feedback){display:grid;gap:7px;margin:0}
.shared-learning-dialog .course-session .course-answer-feedback{margin:0;padding:9px 10px;border-radius:12px;font-size:13px;line-height:1.5}
.shared-learning-dialog .course-session :is(.course-check-answer,[data-course-question-next],[data-vowel-review-next]){
  width:100%;min-height:44px;border-radius:12px;margin:0;
}
.shared-learning-dialog .course-session [data-vowel-review-exit]{display:none}
.shared-learning-dialog .course-session .course-teach-navigation{position:static;margin:0;box-shadow:none;padding:5px;background:transparent}
.shared-learning-dialog .course-session .course-teach-card .course-glyph{font-family:var(--learning-card-font);color:var(--learning-card-ink)}
/* Keep other objective exercises visually related without turning swipes into answers. */
:is(#qcm-root .quiz-card,#counting-program-root .count-quiz,#traveler-root.traveler-in-mission .traveler-panel,#grammar-program-view .grammar-question,#study-wrap .review-challenge-play){
  border-radius:var(--learning-card-radius);border:1px solid var(--learning-card-border);
  background:var(--learning-card-paper);box-shadow:var(--learning-card-shadow);
}
@media(max-height:620px){
  .shared-learning-dialog .course-session:has(.course-options){gap:6px}
  .shared-learning-dialog .course-session:has(.course-options)>:is(.course-sound-prompt,.course-question-glyph,.course-question-audio){min-height:0;padding:7px}
  .shared-learning-dialog .course-session .course-option{min-height:52px}
  .shared-learning-dialog .course-session .auditory-vowel-choice{min-height:58px!important;font-size:clamp(30px,8vw,44px)!important}
}

/* Feedback and continuation are a single vertical flow. Long bilingual explanations
   expand naturally; the card scrolls rather than painting the action over the text. */
:is(#course-feedback,#vowel-review-feedback){display:grid;gap:10px;min-width:0}
:is(#course-feedback,#vowel-review-feedback):empty{display:none}
:is(#course-feedback,#vowel-review-feedback)>.course-answer-feedback{margin:0;min-width:0;overflow-wrap:anywhere}
:is(#course-feedback,#vowel-review-feedback) :is([data-course-question-next],[data-vowel-review-next]),#qcm-root #qcm-next,.review-challenge-play [data-challenge-next],.grammar-question [data-grammar-action="next-question"],.traveler-panel :is([data-traveler-situation-next],[data-traveler-mission-next]),.count-quiz [data-count-next]{position:static!important;inset:auto!important;transform:none!important;flex-shrink:0;min-height:44px;box-sizing:border-box;white-space:normal}
:is(.count-feedback,.grammar-game-feedback,.traveler-challenge-feedback,.review-challenge-feedback,.quiz-feedback,.course-answer-feedback){flex-shrink:0;overflow-wrap:anywhere;min-width:0}
.shared-learning-dialog .shared-learning-content{min-height:0;overflow-y:auto;overscroll-behavior:contain}
.shared-learning-dialog .course-session:has([data-course-question-next]){padding-bottom:10px}
.shared-learning-dialog .course-session :is(#course-feedback,#vowel-review-feedback){flex-shrink:0}
.shared-learning-dialog .course-session :is([data-course-question-next],[data-vowel-review-next]){margin-top:6px}

/* END learning-polish.css */

/* BEGIN grammar-express.css */
/* Lao4Me · Grammaire express (inside the existing everyday speaking course)
   No styling or changes to Codex-owned navigation, illustrations or lesson cards. */
.grammar-quick{
  scroll-margin-top:86px;
  margin:12px 0 17px;
  background:linear-gradient(145deg,#fffdf8,#fbf0df);
  color:#483632;border:1px solid #dec5a7;border-radius:18px;
  box-shadow:0 7px 17px #673c2812;overflow:hidden;
}
.grammar-quick>summary{
  display:flex;align-items:center;gap:12px;min-height:66px;padding:12px 16px;
  list-style:none;cursor:pointer;user-select:none;
}
.grammar-quick>summary::-webkit-details-marker{display:none}
.grammar-quick>summary:focus-visible{outline:3px solid #a55d45;outline-offset:-3px}
.grammar-quick[open]>summary{border-bottom:1px solid #e9d4b7}
.grammar-summary-mark{
  display:grid;place-items:center;flex:0 0 41px;width:41px;height:41px;
  background:#f3e1c8;border:1px solid #dec2a0;border-radius:12px;
  font:700 26px/1 "Noto Sans Lao","Phetsarath OT",system-ui,sans-serif;
  color:#7a3c37;
}
.grammar-summary-copy{display:grid;gap:4px;min-width:0;flex:1}
.grammar-summary-copy strong{font-size:15px;color:#683633;line-height:1.25}
.grammar-summary-copy small{font-size:12px;color:#78695d;line-height:1.35}
.grammar-summary-chevron{font-size:26px;line-height:1;color:#985e42;transition:transform .2s}
.grammar-quick[open] .grammar-summary-chevron{transform:rotate(180deg)}
.grammar-quick-content{padding:14px 15px 17px}
.grammar-tabs{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));
  gap:6px;margin-bottom:16px;
  background:#f2e7d8;padding:5px;border-radius:12px;
}
.grammar-tabs [role=tab]{
  min-width:0;min-height:42px;border-radius:9px;border:1px solid transparent;
  background:transparent;color:#725b4e;font-size:12px;font-weight:750;
  padding:8px 5px;line-height:1.25;text-align:center;
}
.grammar-tabs [role=tab][aria-selected=true]{
  background:#783a35;border-color:#783a35;color:#fff8ee;
  box-shadow:0 3px 8px #763f362a;
}
.grammar-tabs [role=tab]:focus-visible{outline:3px solid #b88b60;outline-offset:2px}
.grammar-panel[hidden]{display:none!important}
.grammar-intro{font-size:13px;line-height:1.6;margin:0 0 13px;color:#65574f}
.grammar-formula{
  display:flex;align-items:center;justify-content:center;flex-wrap:wrap;
  gap:8px;background:#f4e7d2;border:1px solid #e0c6a6;border-radius:12px;
  padding:12px 8px;margin:0 0 13px;
}
.grammar-formula>span{
  padding:7px 10px;border-radius:8px;background:#fffbf3;
  font-size:12px;font-weight:750;color:#653e35;
}
.grammar-formula>span small{display:block;text-align:center;margin-top:3px;color:#816c5c;font-size:11px;font-weight:500}
.grammar-formula>b{color:#a56b4e;font-size:15px}
.grammar-lao{
  font-family:"Noto Sans Lao","Phetsarath OT","Saysettha OT",system-ui,sans-serif;
  color:#733531;font-size:18px;line-height:1.6;word-break:break-word;
}
.grammar-phonetic{display:block;color:#8e654e;font-size:11px;line-height:1.35;font-weight:500}
.grammar-table-scroll{max-width:100%;overflow-x:auto;border:1px solid #e6cfb4;border-radius:12px;background:#fffdf8}
.grammar-classifier-table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}
.grammar-classifier-table th{
  padding:10px 12px;background:#f3e1cd;color:#683b32;
  letter-spacing:.01em;font-size:11px;font-weight:800;
}
.grammar-classifier-table td{padding:10px 12px;border-top:1px solid #eee1d3;vertical-align:middle}
.grammar-classifier-table tbody tr:nth-child(even){background:#fffcf5}
.grammar-class-cell{white-space:nowrap;width:115px}
.grammar-class-cell strong{font-size:20px}
.grammar-usage{width:30%;color:#574b43;font-weight:600}
.grammar-example-cell{line-height:1.5;color:#5b534b}
.grammar-example-cell .grammar-lao{display:block;font-size:16px}
.grammar-example-cell .grammar-phonetic{margin:2px 0 3px}
.grammar-tip{
  background:#f7ecdc;border-left:3px solid #ad6f4c;border-radius:8px;
  padding:11px 12px;color:#634b3e;font-size:12px;line-height:1.55;margin:13px 0 8px;
}
.grammar-tip strong{color:#743d32}
.grammar-small{color:#74645a;font-size:12px;line-height:1.55;margin:8px 0 0}
.grammar-rule-stack{display:grid;gap:8px;margin-bottom:14px}
.grammar-rule{
  display:flex;align-items:center;gap:15px;
  background:#fffaf2;border:1px solid #e8d3b8;border-radius:12px;
  padding:10px 13px;
}
.grammar-rule>strong{width:115px;min-width:115px;text-align:center;color:#743632;font-size:21px}
.grammar-rule>strong span{font-family:"Noto Sans Lao","Phetsarath OT",system-ui,sans-serif}
.grammar-rule>strong small{font:600 12px/1.2 system-ui,sans-serif;color:#8d6752}
.grammar-rule>span{color:#615248;font-size:13px;line-height:1.55}
.grammar-example-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.grammar-example{
  display:flex;flex-direction:column;gap:4px;
  border:1px solid #e9d4b8;border-radius:12px;padding:12px;
  background:#fffdfa;min-width:0;
}
.grammar-example-tag{font-size:10px;color:#8b5d4b;text-transform:uppercase;font-weight:800;letter-spacing:.035em}
.grammar-example .grammar-lao{font-size:20px;font-weight:650}
.grammar-example .grammar-phonetic{font-size:12px}
.grammar-meaning{font-size:12px;line-height:1.5;color:#61544e}
.grammar-note{font-size:11px;line-height:1.55;color:#886f5e;margin:16px 0 5px}
.grammar-references{font-size:10px;line-height:1.55;color:#8a7767;margin:0}
.grammar-references a{color:#7d4a3d;text-decoration:underline;text-underline-offset:2px}
@media(max-width:760px){
  .grammar-quick{margin:11px 0 15px}
  .grammar-quick>summary{padding:10px 12px}
  .grammar-quick-content{padding:12px 10px 14px}
  .grammar-classifier-table{table-layout:fixed}
  .grammar-classifier-table thead{display:none}
  .grammar-classifier-table tbody tr{display:grid;grid-template-columns:minmax(88px,34%) minmax(0,1fr);align-items:start}
  .grammar-classifier-table tbody td{display:block;width:auto;border:0;padding:8px 10px}
  .grammar-classifier-table .grammar-class-cell{grid-row:1/span 2;grid-column:1;padding-top:14px;white-space:normal}
  .grammar-classifier-table .grammar-usage{grid-column:2;grid-row:1;font-size:12px;padding-top:11px}
  .grammar-classifier-table .grammar-example-cell{grid-column:2;grid-row:2;padding-top:0;padding-bottom:13px}
  .grammar-classifier-table tbody tr+tr{border-top:1px solid #ecddc9}
  .grammar-classifier-table .grammar-example-cell .grammar-lao{font-size:16px}
  .grammar-example-grid{grid-template-columns:1fr}
}
@media(max-width:375px){
  .grammar-summary-copy strong{font-size:14px}
  .grammar-summary-copy small{font-size:11px}
  .grammar-rule{gap:9px;padding:9px 8px}
  .grammar-rule>strong{width:90px;min-width:90px;font-size:18px}
  .grammar-rule>span{font-size:12px}
  .grammar-tabs [role=tab]{font-size:11px}
}
@media(prefers-reduced-motion:reduce){
  .grammar-summary-chevron{transition:none}
}

/* Word construction: distinct Lao blocks, no decorative or misleading word images. */
.grammar-compound-contrast{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:10px 0 12px}
.grammar-compound-contrast>div{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:11px 8px;border:1px solid #d9c1a3;border-radius:12px;background:#fffaf1;text-align:center}
.grammar-compound-contrast strong{font:750 23px/1.4 "Noto Sans Lao","Phetsarath OT",system-ui,sans-serif;color:#793f34}
.grammar-compound-contrast strong small{font:600 12px/1.4 system-ui,sans-serif;color:#8b6850}
.grammar-compound-contrast span{font-size:12px;line-height:1.4;color:#71564c}
.grammar-compound-list{display:grid;gap:11px;margin:15px 0}
.grammar-compound-item{background:#fffdf9;border:1px solid #e5d1b5;border-radius:14px;padding:12px 10px;min-width:0}
.grammar-compound-parts{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:9px;margin-bottom:11px}
.grammar-compound-parts>b{font-size:18px;color:#9b704d}
.grammar-compound-part{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:105px;max-width:100%;min-height:88px;gap:3px;padding:8px 10px;border-radius:11px;background:#e8f1e8;color:#265944;text-align:center}
.grammar-compound-part .grammar-lao{color:#265944;font-size:23px}
.grammar-compound-part small{font-size:11px}
.grammar-compound-part>span{font-size:12px;line-height:1.3}
.grammar-compound-result{display:flex;align-items:center;justify-content:center;gap:13px;border-top:1px dashed #dec5a8;padding-top:11px}
.grammar-compound-result>span{font-size:23px;font-weight:750;color:#9b704d}
.grammar-compound-result>div{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:center;gap:3px 10px;text-align:center}
.grammar-compound-result .grammar-lao{font-size:24px}
.grammar-compound-result small{font-size:11px;color:#805b4a}
.grammar-compound-result strong:not(.grammar-lao){font-size:13px;color:#28593e}
.grammar-compound-result em{flex-basis:100%;font-size:11px;color:#817163}
@media(max-width:760px){
  .grammar-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}
  .grammar-tabs [data-grammar-tab="compounds"]:last-child{grid-column:1/-1}
  .grammar-compound-part{min-width:88px;padding:8px 7px}
}

/* END grammar-express.css */

/* BEGIN grammar-practice.css */
/* Lao4Me · Interactive grammar in the existing practical courses. */
.grammar-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}
.grammar-tabs [role=tab]{font-size:11px;white-space:normal;min-height:48px}
.grammar-lesson[hidden]{display:none!important}
.grammar-reference-details{border:1px solid #e5ceaf;border-radius:12px;overflow:hidden;margin:12px 0;background:#fffaf1}
.grammar-reference-details>summary{list-style:none;cursor:pointer;padding:12px 14px;color:#754132;font-weight:750;font-size:12px}
.grammar-reference-details>summary::-webkit-details-marker{display:none}
.grammar-reference-details[open]>summary{border-bottom:1px solid #e8d2b7}
.grammar-reference-details>summary:focus-visible{outline:3px solid #bd9064;outline-offset:-3px}
.grammar-reference-details .grammar-table-scroll{border:none;border-radius:0}
.grammar-flashcards{margin:15px 0 13px}
.grammar-card-progress{font-size:12px;color:#886451;font-weight:750;margin-bottom:7px}
.grammar-flip-card{
  width:100%;min-height:173px;background:linear-gradient(140deg,#fdf7e8,#f0dfc5);
  border:1px solid #d9b994;border-radius:17px;color:#693d34;
  box-shadow:0 4px 11px #5f392214;cursor:pointer;
  display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;
  text-align:center;padding:15px 19px;transition:background .15s;
}
.grammar-flip-card:hover{background:#f7e8d3}
.grammar-flip-card.revealed{background:linear-gradient(140deg,#f0e4d0,#fff8eb)}
.grammar-flip-card:focus-visible{outline:3px solid #a65b41;outline-offset:3px}
.grammar-flip-card>small,.grammar-flip-hint{font-size:11px;color:#96735a;font-weight:650}
.grammar-flip-card>strong{font-size:15px;color:#86503e}
.grammar-flip-lao{font-family:"Noto Sans Lao","Phetsarath OT",system-ui,sans-serif;font-size:36px;line-height:1.5;color:#713b35}
.grammar-flip-answer{font-weight:800;font-size:15px}
.grammar-flip-example{font-size:12px;line-height:1.6;color:#665149}
.grammar-flip-example span{font-family:"Noto Sans Lao","Phetsarath OT",system-ui,sans-serif;font-size:16px}
.grammar-card-controls{display:flex;gap:8px;justify-content:space-between;margin-top:9px}
.grammar-card-controls button,.grammar-game-secondary{
  min-height:40px;border:1px solid #dbc3a7;border-radius:10px;background:#fffaf0;
  color:#714b3f;padding:9px 12px;font-size:12px;font-weight:750
}
.grammar-card-controls button:disabled{opacity:.4;cursor:not-allowed}
.grammar-game-progress{
  display:flex;justify-content:space-between;align-items:center;gap:8px;
  margin:12px 0 7px;color:#856957;font-weight:650;font-size:11px
}
.grammar-game-stages{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:0 0 15px}
.grammar-game-stages button{
  border:1px solid #e4c9a5;background:#fff8ed;border-radius:10px;
  color:#6e584a;font-size:11px;font-weight:750;min-width:0;line-height:1.25;
  min-height:44px;padding:7px 5px;text-align:center
}
.grammar-game-stages button.active{
  background:var(--tropical);border-color:var(--tropical);color:#fff;box-shadow:0 3px 8px #164d3e20
}
.grammar-game-stages button:disabled{opacity:.46;cursor:not-allowed}
.grammar-game-stages button:focus-visible,.grammar-game-primary:focus-visible,
.grammar-game-secondary:focus-visible,.grammar-match-card:focus-visible,
.grammar-answer:focus-visible{outline:3px solid #b18463;outline-offset:2px}
.grammar-game-content{display:grid;gap:12px}
.grammar-game-tip{
  border:1px solid #e3d0b5;border-radius:10px;padding:10px 12px;
  color:#786356;background:#fff9f0;font-size:12px;line-height:1.5
}
.grammar-game-primary{
  width:100%;min-height:44px;background:var(--tropical);color:#fff;border:1px solid var(--tropical-deep);
  border-radius:11px;padding:11px 12px;font-size:13px;font-weight:800;
  box-shadow:0 3px 0 #164d3e;cursor:pointer
}
.grammar-game-primary:hover{background:var(--tropical-deep)}
.grammar-game-secondary{width:100%;cursor:pointer}
.grammar-match-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:5px}
.grammar-match-heading strong{font-size:14px;color:#654035}
.grammar-match-heading span{white-space:nowrap;font-size:11px;color:#8f6b54}
.grammar-match-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.grammar-match-column{display:grid;grid-template-rows:auto repeat(4,minmax(64px,auto));gap:7px}
.grammar-match-column>small{display:block;font-size:11px;color:#986c55;font-weight:800;text-align:center;padding-bottom:4px}
.grammar-match-card{
  width:100%;min-width:0;border:1px solid #e2c7a7;border-radius:11px;
  padding:10px 5px;background:#fffcf7;display:flex;flex-direction:column;
  justify-content:center;align-items:center;gap:3px;text-align:center;
  min-height:65px;line-height:1.3;font-size:12px;color:#684a3f;cursor:pointer
}
.grammar-match-card .grammar-lao{font-size:23px;line-height:1.4}
.grammar-match-card>strong{font-size:12px}
.grammar-match-card.selected{border:2px solid #934d3e;background:#f2dec8}
.grammar-match-card:disabled{background:#e7efdf;border-color:#91b080;opacity:.7;color:#567345;cursor:default}
.grammar-match-card:disabled .grammar-lao{color:#567345}
.grammar-game-feedback{font-size:12px;line-height:1.55;border-radius:9px;padding:9px 11px;background:#f2e9dd;color:#735b4b;min-height:28px}
.grammar-game-feedback.correct{background:#ebf2e5;color:#47663e}
.grammar-game-feedback.incorrect{background:#fcf0e8;color:#9d4d40}
.grammar-answer-correct{display:block;margin-top:7px;font-weight:800}
.grammar-question-step{display:flex;align-items:center;justify-content:space-between;color:#8b6653;font-size:12px;font-weight:750}
.grammar-question-meter{height:6px;background:#e9d7bf;border-radius:9px;overflow:hidden;margin:8px 0 17px}
.grammar-question-meter>span{display:block;height:100%;background:#9b614a;transition:width .2s}
.grammar-question h4{font-size:16px;color:#5a342f;line-height:1.35;margin:0 0 15px}
.grammar-answer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:12px}
.grammar-answer{
  display:flex;align-items:center;justify-content:center;flex-direction:column;
  gap:3px;text-align:center;min-width:0;min-height:77px;padding:10px 8px;border-radius:12px;
  border:1px solid #dfc6a8;background:#fffdf7;color:#60483e;line-height:1.35;cursor:pointer;
  font-size:12px;font-weight:680
}
.grammar-answer-lao{font-family:"Noto Sans Lao","Phetsarath OT",system-ui,sans-serif;color:#773d36;font-size:19px;line-height:1.55}
.grammar-answer>small{font-weight:500;color:#a0795b;font-size:10px}
.grammar-answer.chosen{border:2px solid #a86f4e}
.grammar-answer.correct{border-color:#61905a;background:#edf6e7}
.grammar-answer.incorrect{border-color:#ba6655;background:#fff0ea}
.grammar-answer:disabled{cursor:default}
.grammar-game-hint{font-size:12px;color:#937a65}
.grammar-result{
  border:1px solid #e1c9ad;border-radius:13px;background:#fff9ef;
  padding:15px;display:grid;gap:11px;text-align:center
}
.grammar-result>strong{color:#673d35;font-size:18px}
.grammar-result>p{font-size:13px;color:#745e50;margin:0}
.grammar-result-symbol{color:#985b41;font-size:27px}
.grammar-counting-guide .grammar-game-stages{margin-bottom:13px}
@media(max-width:760px){
  .grammar-quick-content{padding:11px 10px 15px}
  .grammar-tabs [role=tab]{font-size:10px;min-height:48px;padding:6px 3px}
  .grammar-game-stages button{font-size:10px;padding:5px 3px}
  .grammar-answer-grid{grid-template-columns:1fr 1fr}
  .grammar-answer{min-height:80px}
  .grammar-match-card{min-height:69px}
  .grammar-flip-card{min-height:163px}
}
@media(max-width:340px){
  .grammar-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}
  .grammar-match-grid{gap:5px}
  .grammar-match-card{font-size:11px}
  .grammar-game-stages button{font-size:9px}
}
@media(prefers-reduced-motion:reduce){.grammar-question-meter>span,.grammar-flip-card{transition:none}}

/* One swipeable grammar rule per card, matching the existing vocabulary review gesture. */
.grammar-swipe-card{
  touch-action:pan-y;user-select:none;-webkit-user-select:none;min-height:208px;
  transition:transform .15s ease,background .15s ease;will-change:transform;
  display:flex;flex-direction:column;gap:9px;padding:18px 20px;overflow:hidden;
}
.grammar-swipe-card.revealed{min-height:245px}
.grammar-flip-label{font-size:11px;font-weight:800;letter-spacing:.035em;color:#8f694d;text-transform:uppercase}
.grammar-swipe-card .grammar-flip-lao{font-size:43px;line-height:1.5}
.grammar-flip-rule{display:block;font-size:13px;font-weight:550;line-height:1.6;color:#51443d}
.grammar-swipe-card .grammar-flip-example{
  display:flex;flex-direction:column;align-items:center;gap:2px;
  width:100%;border-top:1px solid #d9c3a7;margin-top:5px;padding-top:10px;
}
.grammar-swipe-card .grammar-flip-example small{font-size:11px;color:#966a4c}
.grammar-swipe-help,.grammar-card-reveal-hint{color:#775f51;font-size:11px;line-height:1.5;text-align:center;margin:8px 0}
.grammar-card-situation{
  border:1px solid #deceb1;border-radius:13px;background:#fffcf5;
  padding:13px 12px;margin-top:10px;
}
.grammar-card-situation>strong{font-size:13px;color:#275a3e}
.grammar-card-situation>p{font-size:12px;color:#514e46;line-height:1.55;margin:6px 0 11px}
.grammar-card-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.grammar-card-choice{
  display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;
  min-height:75px;border:1px solid #d7bc9d;border-radius:11px;background:#fff5e6;
  color:#754536;padding:8px 4px;text-align:center;cursor:pointer;
}
.grammar-card-choice strong{font:700 21px/1.5 "Noto Sans Lao","Phetsarath OT",system-ui,sans-serif}
.grammar-card-choice small{color:#886b56;font-size:10px;line-height:1.3}
.grammar-card-choice.correct{border:2px solid #388365;background:#e5f4e9}
.grammar-card-choice.incorrect{border:2px solid #c45b46;background:#fff0e9}
.grammar-card-choice:disabled{cursor:default}
.grammar-card-choice:focus-visible,.grammar-card-grade-actions button:focus-visible,
.grammar-swipe-card:focus-visible{outline:3px solid #b78a60;outline-offset:2px}
.grammar-card-grade-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:11px}
.grammar-card-grade-actions button{
  border:1px solid #cba988;border-radius:12px;min-height:48px;padding:10px 8px;
  font-size:12px;font-weight:800;line-height:1.35;cursor:pointer;
}
.grammar-card-grade-actions button:first-child{background:#fff1e7;color:#854b3d}
.grammar-card-grade-actions button:last-child{background:#236d4a;border-color:#236d4a;color:white}
.grammar-cards-done{display:grid;gap:10px;text-align:center;padding:18px;border:1px solid #d9c5a8;border-radius:13px;background:#fffaf2}
.grammar-cards-done>strong{font-size:16px;color:#266146}
.grammar-cards-done>p{margin:0;font-size:13px;color:#6c5a50}
.grammar-cards-done .grammar-card-progress{margin:4px 0 8px}
.grammar-full-reference{border:1px solid #e2ccb0;border-radius:12px;background:#fffaf1;margin-top:12px}
.grammar-full-reference>summary{cursor:pointer;list-style:none;padding:13px 14px;color:#734534;font-size:12px;font-weight:800}
.grammar-full-reference>summary::-webkit-details-marker{display:none}
.grammar-full-reference>summary:focus-visible{outline:3px solid #a98765;outline-offset:2px}
.grammar-full-reference-body{border-top:1px solid #e2ccb0;padding:12px}
@media(max-width:430px){
 .grammar-card-choices{gap:5px}
 .grammar-card-choice strong{font-size:18px}
 .grammar-card-grade-actions button{font-size:11px}
}
@media(prefers-reduced-motion:reduce){.grammar-swipe-card{transition:none}}

/* Eighteen transparent, text-free watercolor motifs. Each 216px atlas cell is
   independent: six columns x three rows in classifier / grammar-rule order. */
.grammar-card-art{
  display:block;
  flex:0 0 auto;
  width:160px;
  max-width:100%;
  aspect-ratio:1;
  margin:2px auto 0;
  background-image:url('/illustrations/grammar/grammar-watercolor-18-v109.webp');
  background-position:var(--grammar-art-x) var(--grammar-art-y);
  background-size:600% 300%;
  background-repeat:no-repeat;
  pointer-events:none;
}
.grammar-swipe-card{min-height:284px}
.grammar-swipe-card.revealed{min-height:302px}
.grammar-swipe-card.revealed .grammar-card-art{width:106px;margin:0 auto}
@media(max-width:430px){
  .grammar-card-art{width:140px}
  .grammar-swipe-card.revealed .grammar-card-art{width:94px}
  .grammar-swipe-card{padding:14px 12px}
}
@media(prefers-reduced-motion:reduce){
  .grammar-card-art{animation:none}
}

/* Grammar foundations: compact native Lao reference and text-only study cards. */
.grammar-foundations-table .grammar-usage-note{
  display:block;margin-top:6px;color:#79675a;font-size:11px;line-height:1.5;font-weight:450;
}
.grammar-foundations-table .grammar-example-cell{min-width:160px}
.grammar-foundations-rules{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:14px 0}
.grammar-foundations-rule{
  display:flex;flex-direction:column;gap:4px;min-width:0;
  border:1px solid #e6ceb0;border-radius:12px;background:#fffaf2;padding:12px;
}
.grammar-foundations-rule>strong{font-size:12px;color:#6d473b;line-height:1.4}
.grammar-foundations-rule .grammar-lao{font-size:19px}
.grammar-foundations-rule>small{font-size:11px;color:#96745a}
.grammar-foundations-rule>p{margin:4px 0 0;color:#67564b;font-size:12px;line-height:1.55}
/* Learning cards show the learner-language meaning immediately under the phonetics. */
.grammar-study-translation{
  display:block;margin-top:3px;color:#246b55;font-size:13px;
  font-weight:700;line-height:1.5;overflow-wrap:anywhere
}
.grammar-class-cell .grammar-study-translation{font-size:12px}
.grammar-flip-translation{
  display:block;color:#246b55;font-size:13px;font-weight:700;
  line-height:1.5;overflow-wrap:anywhere
}
.grammar-swipe-card.grammar-text-card{min-height:200px}
.grammar-swipe-card.grammar-text-card.revealed{min-height:235px}
.grammar-text-card .grammar-flip-lao{font-size:clamp(24px,5vw,39px);overflow-wrap:anywhere}
.grammar-card-choices .grammar-card-choice strong{overflow-wrap:anywhere}
@media(max-width:760px){
 .grammar-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}
 .grammar-tabs [role=tab]{min-height:48px;padding:8px 4px;font-size:11px}
 .grammar-foundations-rules{grid-template-columns:1fr}
}
@media(max-width:360px){.grammar-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* Standalone grammar route. Mirrors Lao4Me's other modules: one category
   chooser, then a focused four-step learning flow. */
.grammar-program{
  width:min(100%,1040px);margin:0 auto;padding:20px 12px 125px;
  color:#3b403a;box-sizing:border-box;
}
.grammar-program-head{padding:19px 15px 17px;margin:2px 0 20px}
.grammar-program-head .eyebrow,.grammar-topic-detail .eyebrow{
  color:#8a6550;font-size:11px;font-weight:800;letter-spacing:.12em;
}
.grammar-program-head h1,.grammar-topic-detail h1{
  margin:9px 0 8px;font:700 clamp(30px,5vw,48px)/1.08 Georgia,serif;color:#49352f;
}
.grammar-program-head h1 em{color:#226c51;font-weight:500}
.grammar-program-head p,.grammar-topic-detail p{
  max-width:630px;margin:8px 0 14px;font-size:14px;line-height:1.6;color:#70645c;
}
.grammar-four-step-promise{
  display:flex;flex-wrap:wrap;gap:7px;margin-top:16px;
}
.grammar-four-step-promise span{
  padding:8px 11px;border:1px solid #dae3d3;background:#f0f5e9;
  color:#28674b;border-radius:10px;font-size:11px;font-weight:750;
}
.grammar-topic-grid{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;align-items:stretch;margin:0 0 20px;
}
.grammar-topic-card{
  width:100%;min-width:0;position:relative;
  display:flex;flex-direction:column;align-items:stretch;
  text-align:left;gap:6px;min-height:205px;
  padding:15px 14px 13px;border:1px solid #dbcdb7;border-radius:20px;
  background:linear-gradient(146deg,#fffdfa 13%,#f6f0e6 100%);
  box-shadow:0 4px 16px #6f4b2814;color:#443b33;cursor:pointer;
}
.grammar-topic-card:hover,.grammar-topic-card:focus-visible{
  border-color:#59957a;box-shadow:0 8px 19px #2d6e4d1c;
}
.grammar-topic-card:focus-visible{outline:3px solid #72a58c;outline-offset:3px}
.grammar-topic-art{
  display:grid;place-items:center;align-self:flex-start;
  min-width:66px;height:66px;max-width:100%;padding:0 10px;
  border:1px solid #d6d6bf;border-radius:18px;
  background:radial-gradient(ellipse at 34% 24%,#fffbef 0%,#e5eee0 61%,#d7e5d7 100%);
  color:#28654d;font:700 clamp(22px,4vw,31px)/1.4 "Noto Sans Lao","Phetsarath OT",system-ui,sans-serif;
}
.grammar-topic-copy{display:flex;flex-direction:column;gap:6px;flex:1}
.grammar-topic-copy strong{font-size:15px;line-height:1.3;font-weight:800;color:#513a32}
.grammar-topic-copy small{font-size:12px;font-weight:500;line-height:1.45;color:#72685e}
.grammar-topic-status{
  border-top:1px solid #e9decd;padding-top:10px;padding-right:15px;
  font-size:11px;font-weight:750;color:#286a50;
}
.grammar-topic-arrow{position:absolute;bottom:12px;right:13px;color:#246e50;font-size:25px;line-height:1}
.grammar-topic-back{
  border:0;padding:7px 2px;margin:0 0 14px;background:transparent;
  color:#27664e;font-weight:750;font-size:13px;text-align:left;
}
.grammar-topic-detail{
  display:flex;gap:17px;align-items:center;
  padding:18px;margin:0 0 17px;border:1px solid #e1d2bd;
  border-radius:21px;background:linear-gradient(124deg,#fbf7ef,#edf5ec);
}
.grammar-detail-art{
  flex:0 0 auto;display:grid;place-items:center;width:86px;height:86px;
  border:1px solid #cbd7bc;border-radius:21px;
  background:radial-gradient(ellipse at 30% 15%,#fff9e7,#dcebdc);
  color:#23694e;font:750 25px/1.3 "Noto Sans Lao","Phetsarath OT",system-ui,sans-serif;
}
.grammar-topic-detail h1{font-size:clamp(24px,4vw,34px)}
.grammar-topic-detail p{margin-bottom:0}
.grammar-topic-learning{border:1px solid #e4d6c3;border-radius:20px;background:#fffdf9;padding:18px;box-shadow:0 5px 21px #3e3a2910}
.grammar-course .grammar-game-progress{font-size:12px;color:#2a664b;margin:5px 0 10px}
.grammar-course .grammar-game-stages{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:9px;margin:0 0 22px;
}
.grammar-course .grammar-game-stages button{
  min-height:53px;font-size:12px;border-radius:13px;
  border:1px solid #d6d7c9;background:#f6f7f0;color:#47634e;
  box-shadow:none;
}
.grammar-course .grammar-game-stages button.active{
  border-color:#236b50;background:#236b50;color:white;box-shadow:0 4px 11px #17533a20;
}
.grammar-course .grammar-game-stages button.completed:not(.active){border-color:#90b69e;color:#27694e}
.grammar-course .grammar-game-stages button:disabled{opacity:.48;cursor:not-allowed}
.grammar-course .grammar-full-reference{
  margin:0 0 17px;background:#fdf9f0;border-color:#e4d2ba;border-radius:15px;
}
.grammar-course .grammar-full-reference>summary{
  color:#275f49;font-size:14px;min-height:48px;display:flex;align-items:center;
}
.grammar-course .grammar-full-reference-body{padding:14px}
.grammar-course .grammar-flip-card{background:linear-gradient(145deg,#fbf8ef,#e9f0e1);border-color:#c9dac5;color:#285b45}
.grammar-course .grammar-flip-card.revealed{background:linear-gradient(145deg,#f0f5ec,#fff9ef)}
.grammar-course .grammar-flip-lao{color:#275e4c}
.grammar-course .grammar-game-primary{
  background:#226b50;border-color:#226b50;border-radius:12px;box-shadow:0 3px 0 #174d38;
}
.grammar-course .grammar-game-primary:hover{background:#17563f}
.grammar-course .grammar-game-secondary{border-color:#d7dac9;background:#f8f9f3;color:#32664d}
.grammar-course .grammar-answer{background:#f8faf4;border-color:#d3ddcc;min-height:80px}
.grammar-course .grammar-answer.correct{background:#e2f3e6;border-color:#44866b}
.grammar-course .grammar-question h4{color:#355541;font-size:17px;line-height:1.45}
.grammar-course .grammar-question-meter{background:#e4eadd}
.grammar-course .grammar-question-meter>span{background:#2b7a59}
.grammar-course .grammar-result{background:#f5f9f1;border-color:#d5dfd0}
.grammar-course .grammar-result>strong{color:#28644c}
.grammar-course .grammar-game-content{padding-bottom:20px}
@media(min-width:800px){.grammar-topic-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:550px){
 .grammar-program{padding:8px 8px 125px}
 .grammar-topic-grid{gap:9px}
 .grammar-topic-card{padding:12px 11px;min-height:195px;border-radius:17px}
 .grammar-topic-art{min-width:56px;height:58px;font-size:23px;border-radius:15px}
 .grammar-topic-copy strong{font-size:13px}
 .grammar-topic-copy small{font-size:11px}
 .grammar-topic-status{font-size:10px}
 .grammar-topic-detail{gap:11px;padding:12px}
 .grammar-detail-art{width:65px;height:65px;font-size:20px;border-radius:16px}
 .grammar-topic-learning{padding:12px 10px}
 .grammar-course .grammar-game-stages{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 .grammar-course .grammar-game-stages button{font-size:11px;min-height:49px}
 .grammar-course .grammar-answer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}


/* Grammar also appears as a fourth pathway, using the same home-card hierarchy. */
.grammar-path:after{background:#8dbaa321}
/* The grammar home-card icon is now a transparent watercolor image. The
   shared, responsive pathway-art layout lives in ui-action-illustrations.css. */


/* Twelve classifier learning tiles, with a true swipeable modal card. */
.grammar-classifier-overview{display:grid;gap:13px}
.grammar-classifier-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.grammar-classifier-heading strong{font-size:17px;color:#275e48}
.grammar-classifier-heading span{font-size:13px;font-weight:800;color:#287257}
.grammar-classifier-overview>p{margin:0;font-size:12px;line-height:1.5;color:#677464}
.grammar-classifier-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.grammar-classifier-tile{display:flex;align-items:center;flex-direction:column;justify-content:center;gap:3px;min-width:0;min-height:140px;padding:12px 7px;border:1.5px solid #dfd6c4;border-radius:15px;background:#fffbf3;text-align:center;color:#305b47;cursor:pointer;transition:border-color .15s,background .15s}
.grammar-classifier-tile:focus-visible{outline:3px solid #3b8a67;outline-offset:2px}
.grammar-classifier-tile:hover{border-color:#5b9c78}
.grammar-classifier-tile .grammar-lao{font-size:clamp(23px,3vw,35px);line-height:1.4;color:#2d664e}
.grammar-classifier-tile strong{font-size:14px;color:#37634e}
.grammar-classifier-tile small{font-size:11px;color:#766a5b;line-height:1.3}
.grammar-classifier-tile em{font-style:normal;font-weight:750;font-size:10px;color:#9b7959;margin-top:5px}
.grammar-classifier-tile.known{background:#ebf6eb;border-color:#85bd97}
.grammar-classifier-tile.known em{color:#287553}
.grammar-classifier-tile.review{background:#fff6eb;border-color:#deb58c}
.grammar-classifier-review-button{justify-self:start}
.grammar-classifier-dialog{position:fixed;inset:0;width:min(520px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);margin:auto;padding:0;border:1px solid #d9e2d2;border-radius:21px;background:#fffdf7;box-shadow:0 28px 75px #142c2057;color:#354b3d;overflow-y:auto;overscroll-behavior:contain}
.grammar-classifier-dialog::backdrop{background:#112c2082;backdrop-filter:blur(3px)}
.grammar-classifier-dialog-inner{box-sizing:border-box;padding:16px 20px 20px}
.grammar-classifier-close{display:grid;place-items:center;margin-left:auto;width:36px;height:36px;border:0;border-radius:50%;background:#ebf0e7;color:#315941;font-size:26px;line-height:1;cursor:pointer}
.grammar-classifier-dialog .grammar-flashcards{margin:0}
.grammar-classifier-dialog .grammar-flip-card{background:linear-gradient(145deg,#f3f8ed,#fff7e9);border-color:#c5dac8;min-height:175px}
.grammar-classifier-dialog .grammar-flip-card.revealed{min-height:215px}
.grammar-classifier-dialog .grammar-swipe-card{padding:13px 16px}
.grammar-classifier-dialog .grammar-card-progress{font-size:12px}
.grammar-classifier-dialog .grammar-card-situation{margin-top:7px;padding:10px}
.grammar-classifier-dialog .grammar-card-grade-actions{margin-top:8px}
.grammar-classifier-dialog .grammar-card-grade-actions button{min-height:46px}
@media(max-width:640px){
 .grammar-classifier-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .grammar-classifier-tile{min-height:114px;padding:8px 6px}
 .grammar-classifier-dialog-inner{padding:10px 12px 15px}
 .grammar-classifier-dialog .grammar-swipe-card{padding:10px 12px;min-height:145px}
 .grammar-classifier-dialog .grammar-swipe-card.revealed{min-height:175px}
 .grammar-classifier-dialog .grammar-card-situation{padding:8px}
}
@media(max-height:640px){
 .grammar-classifier-dialog .grammar-flip-card{min-height:135px}
 .grammar-classifier-dialog .grammar-swipe-card.revealed{min-height:155px}
 .grammar-classifier-dialog .grammar-card-art{max-height:90px}
 .grammar-classifier-dialog .grammar-card-choices{gap:4px}
 .grammar-classifier-dialog .grammar-card-choice{min-height:55px}
}
@media(prefers-reduced-motion:reduce){.grammar-classifier-tile{transition:none}}

/* In the classifier module the three steps always occupy equal-width slots. */
.grammar-course .grammar-game-stages.grammar-game-stages-three,
.grammar-counting-guide .grammar-game-stages.grammar-game-stages-three{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
@media(max-width:550px){
 .grammar-course .grammar-game-stages.grammar-game-stages-three,
 .grammar-counting-guide .grammar-game-stages.grammar-game-stages-three{
   grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;
 }
}

/* Grammar topic cutouts: intrinsic ratio, no additional frame or colored tile. */
.grammar-topic-card:has(.grammar-topic-art.is-illustrated){
  gap:8px;
  padding:12px 13px 14px;
  background:linear-gradient(155deg,#fffdf8,#faf3e6);
  border-color:#e3d3ba;
  box-shadow:0 4px 11px #71522e14;
}
.grammar-topic-art.is-illustrated{
  display:flex;align-items:center;justify-content:center;
  align-self:center;width:100%;height:clamp(90px,23vw,142px);
  min-width:0;max-width:100%;padding:0;
  border:0;border-radius:0;background:none;box-shadow:none;
}
.grammar-topic-cutout{
  display:block;width:100%;height:100%;object-fit:contain;
  object-position:center;max-width:100%;border:0;
}
.grammar-topic-card:has(.is-illustrated) .grammar-topic-copy{gap:5px}
@media(max-width:375px){
  .grammar-topic-card:has(.grammar-topic-art.is-illustrated){padding:10px 10px 12px}
}

/* Grammar only: a vertical, sequential learning path with a quiet audio control. */
.grammar-course .grammar-path-meter{height:6px;border-radius:8px;overflow:hidden;background:#e4e9dd;margin:0 0 16px}
.grammar-course .grammar-path-meter>span{height:100%;display:block;background:#367d5b;border-radius:8px}
.grammar-course .grammar-path-stages{list-style:none;display:grid;grid-template-columns:minmax(0,1fr);gap:13px;padding:0;margin:0;position:relative}
.grammar-course .grammar-path-step{position:relative;min-width:0;margin:0;padding:0}
.grammar-course .grammar-path-step:not(:last-child)::after{content:"";position:absolute;left:30px;top:100%;height:13px;width:2px;background:#cbd8c8;pointer-events:none}
.grammar-course .grammar-path-step.is-done::after{background:#609978}
.grammar-course .grammar-path-stage{display:grid;grid-template-columns:36px minmax(0,1fr) 23px;align-items:center;gap:11px;width:100%;min-height:82px;padding:12px;text-align:left;border:1px solid #dedbd0;border-radius:15px;background:#faf9f4;color:#405e4d;box-shadow:none;white-space:normal;cursor:pointer}
.grammar-course .grammar-path-step.is-current .grammar-path-stage{border-color:#78a58b;background:#edf5eb;box-shadow:0 2px 6px #27694e12}
.grammar-course .grammar-path-step.is-done .grammar-path-stage{border-color:#b0cbb7;background:#f2f7ef}
.grammar-course .grammar-path-stage:disabled{opacity:1;color:#8a8c81;background:#f8f7f2;cursor:not-allowed}
.grammar-course .grammar-path-number{display:grid;place-items:center;align-self:center;width:36px;height:36px;border-radius:50%;background:#e5ebe0;color:#52775f;font-size:17px;font-weight:800}
.grammar-course .is-current .grammar-path-number,.grammar-course .is-done .grammar-path-number{background:#287252;color:#fff}
.grammar-course .is-locked .grammar-path-number{background:#ecebe4;color:#8a8c81}
.grammar-course .grammar-path-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
.grammar-course .grammar-path-copy>strong{font-size:16px;line-height:1.25;color:inherit}
.grammar-course .grammar-path-copy>small{font-size:12px;font-weight:500;line-height:1.4;color:inherit}
.grammar-course .grammar-path-status{font-size:10px;font-weight:750;line-height:1.4;color:inherit}
.grammar-course .grammar-path-end{display:grid;place-items:center;color:inherit;font-size:23px}
.grammar-course .grammar-path-end svg{width:17px;height:17px}
.grammar-course .grammar-path-stage:focus-visible{outline:2px solid #397b5e;outline-offset:3px}
.grammar-course .grammar-audio-inline{display:inline-flex;align-items:center;gap:3px;max-width:100%;width:fit-content;vertical-align:middle;min-width:0}
.grammar-course .grammar-audio-inline>[lang="lo"]{display:inline;min-width:0;overflow-wrap:anywhere}
.grammar-course button.grammar-inline-audio{display:inline-grid!important;place-items:center;flex:0 0 30px;box-sizing:border-box;width:30px!important;height:32px!important;min-width:0!important;min-height:0!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#487967!important;vertical-align:middle;cursor:pointer;appearance:none}
.grammar-course button.grammar-inline-audio svg{width:18px;height:18px;display:block;pointer-events:none}
.grammar-course button.grammar-inline-audio:hover,.grammar-course button.grammar-inline-audio:active{background:transparent!important;box-shadow:none!important;color:#205b45!important}
.grammar-course button.grammar-inline-audio:focus-visible{outline:2px solid #397b5e;outline-offset:1px;border-radius:4px!important}
.grammar-course .grammar-worked-example{align-items:flex-start;gap:3px}
.grammar-course .grammar-worked-example .grammar-study-translation{margin-top:3px}
@media(max-width:360px){.grammar-course .grammar-path-stage{gap:8px;padding:10px;grid-template-columns:34px minmax(0,1fr) 18px}.grammar-course .grammar-path-number{width:34px;height:34px}.grammar-course .grammar-path-step:not(:last-child)::after{left:27px}.grammar-course .grammar-audio-inline{gap:1px}.grammar-course button.grammar-inline-audio{width:26px!important;flex-basis:26px}}

/* The theory table remains complete; the solved situations now have their own screen. */
.grammar-course .grammar-theory-table .grammar-class-cell{width:34%}
.grammar-course .grammar-theory-table .grammar-usage{width:auto}
.grammar-course .grammar-example-swipe{min-height:190px;padding:20px 16px;align-items:center;justify-content:center;gap:10px;text-align:center;background:linear-gradient(145deg,#fffaf0,#edf4e9);border-color:#cfddc7;touch-action:pan-y;cursor:grab}
.grammar-course .grammar-example-swipe:active{cursor:grabbing}
.grammar-course .grammar-example-swipe .grammar-lao{font-size:clamp(23px,5vw,34px);line-height:1.5;color:#285e4b}
.grammar-course .grammar-example-swipe>small{font-size:14px;color:#806f5d}
.grammar-course .grammar-example-swipe .grammar-study-translation{font-size:16px;line-height:1.5}
.grammar-course .grammar-example-swipe>p{font-size:14px;line-height:1.6;border-top:1px solid #dce3d5;padding-top:10px;width:100%}
.grammar-course .grammar-example-swipe:focus-visible{outline:2px solid #397b5e;outline-offset:3px}
.grammar-course .grammar-worked-examples .grammar-game-secondary{margin-top:12px}
@media(max-width:760px){.grammar-course .grammar-theory-table tbody tr{grid-template-columns:minmax(88px,34%) minmax(0,1fr);align-items:center}.grammar-course .grammar-theory-table .grammar-class-cell{grid-row:1;width:auto;padding:10px 8px}.grammar-course .grammar-theory-table .grammar-usage{grid-row:1;width:auto;padding:10px 8px}}

/* The category and its learning screen share the same watercolor cutout. */
.grammar-course .grammar-detail-art.is-illustrated{width:clamp(80px,24vw,120px);height:clamp(80px,24vw,120px);border:0;border-radius:0;background:transparent;box-shadow:none;flex:0 0 auto}
.grammar-course .grammar-detail-art.is-illustrated .grammar-topic-cutout{display:block;width:100%;height:100%;object-fit:contain;object-position:center}
.grammar-course .grammar-topic-detail>div{min-width:0;flex:1}
@media(max-width:365px){.grammar-course .grammar-detail-art.is-illustrated{width:76px;height:76px}.grammar-course .grammar-topic-detail{gap:9px}}

/* END grammar-practice.css */

/* BEGIN ui-action-illustrations.css */
/* Lao4Me uses a single light palette on every device, including Android dark-mode browsers. */
:root { color-scheme: only light; }
/* APPROVED WATERCOLOUR RESTORATION 2026-11-22; existing 10 CSS sources, current features preserved. */
/* Home order, full-width course actions and matching illustrated tool cards. */
body {background:#fff9f0!important;}
.topbar {background:#fff9f0!important;border:0!important;box-shadow:none!important;}
.topbar .header-logo {display:flex!important;flex:0 0 174px;width:174px;height:52px;padding:0;border:0;border-radius:0;background:transparent;overflow:visible;}
.topbar .header-logo img {width:100%;height:48px;object-fit:contain;}
.topbar .header-logo {background:transparent!important;border:0!important;border-radius:0!important;}
.sidebar>.brand {display:none!important;}
.sidebar>.nav-list>.profile-nav-item {display:none!important;}
.pathway-card:after {display:none!important;}
.pathway-card.daily-path,.pathway-card.count-path,.pathway-card.reading-path {
 display:grid;grid-template-columns:minmax(0,2.1fr) minmax(0,.9fr);
 grid-template-rows:min-content min-content min-content min-content auto;
 column-gap:16px;row-gap:5px;align-items:center;align-content:start;
 padding:20px 22px 18px;min-height:0;
 background:linear-gradient(145deg,#fffdf8,#f6ead7);
 border:1px solid #e5c9a7;border-radius:19px 15px 20px 16px;
 box-shadow:0 4px 0 #dfc7a8,0 10px 22px #65412412;
}
.pathway-card.daily-path .pathway-kicker,.pathway-card.count-path .pathway-kicker,.pathway-card.reading-path .pathway-kicker {grid-column:1;grid-row:1;align-self:end;}
.pathway-card.daily-path .pathway-mark.action-art,.pathway-card.count-path .pathway-mark.action-art,.pathway-card.reading-path .pathway-mark.action-art {
 position:static;grid-column:2;grid-row:1 / 5;place-self:center;width:100%;max-width:none;height:158px;object-fit:contain;
 filter:drop-shadow(0 5px 6px #63472720);
}
.pathway-card.daily-path h2,.pathway-card.count-path h2,.pathway-card.reading-path h2 {grid-column:1;grid-row:2;max-width:none;min-height:0;margin:7px 0 2px;line-height:1.2;}
.pathway-card.daily-path p,.pathway-card.count-path p,.pathway-card.reading-path p {grid-column:1;grid-row:3;min-height:0;align-self:start;line-height:1.5;}
.pathway-card.daily-path .pathway-progress,.pathway-card.count-path .pathway-progress,.pathway-card.reading-path .pathway-progress {grid-column:1;grid-row:4;margin:5px 0 8px;}
.pathway-card.daily-path>.pathway-button,.pathway-card.count-path>.pathway-button,.pathway-card.reading-path>.pathway-button {
 grid-column:1 / -1;grid-row:5;width:100%;min-height:48px;padding:0 22px;justify-self:stretch;justify-content:center;text-align:center;gap:10px;
 border-radius:13px;box-shadow:0 3px 0 #164d3e;
}
.pathway-card.count-path .pathway-mark.action-art {grid-column:1;grid-row:1 / 5;}
.pathway-card.count-path .pathway-kicker,.pathway-card.count-path h2,.pathway-card.count-path p,.pathway-card.count-path .pathway-progress {grid-column:2;}
.explorer-tool-grid {display:grid;grid-template-columns:minmax(0,1fr);gap:13px;}
.explorer-tool-grid button {
 position:relative;isolation:isolate;overflow:hidden;
 display:grid;grid-template-columns:minmax(130px,150px) minmax(0,1fr);
 grid-template-rows:minmax(0,1fr);align-items:center;align-content:center;
 column-gap:clamp(16px,2.5vw,26px);
 min-height:142px;padding:14px clamp(22px,4vw,40px);text-align:left;
 border:1px solid #e2c7a5;border-radius:18px 14px 19px 15px;
 background:linear-gradient(145deg,#fffdf8,#f5e8d4);
 box-shadow:0 4px 0 #dec5a4,0 10px 22px #63412112;
 transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;
}
.explorer-tool-grid button:after {content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:.45;background:radial-gradient(#b78d6018 .65px,transparent .8px);background-size:6px 6px;}
.explorer-tool-grid button:hover {transform:translateY(-2px);border-color:#cda77d;box-shadow:0 6px 0 #d6b997,0 14px 25px #63412118;}
.explorer-tool-grid button .explorer-art {
 grid-column:1;grid-row:1;display:block;place-self:center;
 width:100%;max-width:140px;height:112px;min-width:0;
}
.explorer-tool-grid button .explorer-art img {display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 4px 5px #6347271a);}
.explorer-tool-grid button .explorer-copy {
 grid-column:2;grid-row:1;display:flex;flex-direction:column;
 align-items:flex-start;justify-content:center;gap:4px;
 min-width:0;text-align:left;
}
.explorer-tool-grid button .explorer-copy strong {display:block;font-size:clamp(16px,1.45vw,19px);line-height:1.24;color:#593831;}
.explorer-tool-grid button .explorer-copy small {display:block;font-size:12px;line-height:1.42;color:#78685a;}
.explorer-tool-grid button .quiz-stat-line {display:block;}
.explorer-tool-grid button[data-view="qcm"] {grid-template-columns:minmax(0,1fr) minmax(130px,150px);}
.explorer-tool-grid button[data-view="qcm"] .explorer-art {grid-column:2;}
.explorer-tool-grid button[data-view="qcm"] .explorer-copy {grid-column:1;align-items:flex-end;text-align:right;}
.profile-menu-item .profile-menu-icon {width:42px;min-width:42px;height:42px;}
.profile-menu-item .profile-initial {width:30px;height:30px;}
.mobile-menu-panel {display:grid!important;position:fixed!important;top:88px!important;right:18px!important;bottom:auto!important;left:auto!important;width:min(350px,calc(100vw - 24px))!important;max-height:min(70vh,520px)!important;overflow:auto!important;z-index:3000!important;}
.mobile-menu-toggle {display:flex!important;position:relative;flex:0 0 38px;align-items:center;justify-content:center;width:38px!important;height:40px!important;min-height:40px!important;padding:0!important;border:0!important;border-radius:10px!important;background:transparent!important;color:#693c36!important;box-shadow:none!important;}
.mobile-menu-toggle:hover,.mobile-menu-toggle[aria-expanded="true"] {background:#eadcc51f!important;transform:none!important;}
.mobile-menu-toggle .burger-glyph {width:23px;gap:5px;}
.mobile-menu-toggle .burger-glyph span {height:2px;background:#693c36;}
.mobile-menu-item {position:relative;z-index:1;}
@media(max-width:760px) {
 .topbar {height:72px;min-height:72px;padding:0 1px;gap:7px;}
 .topbar .header-logo {flex-basis:clamp(132px,40vw,166px);width:clamp(132px,40vw,166px);height:48px;}
 .topbar .header-logo img {height:46px;}
 .topbar .breadcrumb {display:none!important;}
 .top-actions {display:flex;align-items:center;justify-content:flex-end;gap:6px;margin-left:auto;min-width:0;}
 .top-actions .today-label {display:none;}
 .top-actions .lao4me-language-control {order:1;min-width:0;}
 #mobile-burger {order:2;}
 .sidebar>.nav-list {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-rows:1fr!important;gap:5px!important;}
 .sidebar>.nav-list>.nav-item[data-view="accueil"] {display:flex!important;order:1;}
 .sidebar>.nav-list>.nav-item[data-view="revisions"] {display:flex!important;order:2;}
 .sidebar>.nav-list>.nav-item[data-view="bibliotheque"] {display:flex!important;order:3;}
 .sidebar>.nav-list>.nav-item:not([data-view="accueil"]):not([data-view="revisions"]):not([data-view="bibliotheque"]) {display:none!important;}
 .sidebar>.nav-list>.nav-item:not(.mobile-menu-toggle) {height:54px;min-height:54px;gap:2px!important;padding:2px!important;font-size:10px!important;}
 .sidebar>.nav-list>.nav-item:not(.mobile-menu-toggle) .nav-icon {width:40px;min-width:40px;height:34px;}
 .sidebar>.nav-list>.nav-item:not(.mobile-menu-toggle) .nav-icon img {width:100%;height:100%;object-fit:contain;}
 #mobile-menu-panel {top:79px!important;right:10px!important;left:auto!important;bottom:auto!important;width:min(350px,calc(100vw - 20px))!important;max-height:calc(100dvh - 155px)!important;}
 .pathway-card.daily-path,.pathway-card.count-path,.pathway-card.reading-path {grid-template-columns:minmax(0,2.1fr) minmax(0,.9fr);column-gap:10px;row-gap:4px;padding:16px 17px 15px;}
 .pathway-card.daily-path .pathway-mark.action-art,.pathway-card.count-path .pathway-mark.action-art,.pathway-card.reading-path .pathway-mark.action-art {height:132px;}
 .pathway-card.daily-path h2,.pathway-card.count-path h2,.pathway-card.reading-path h2 {font-size:clamp(17px,5vw,21px);line-height:1.19;}
 .pathway-card.daily-path p,.pathway-card.count-path p,.pathway-card.reading-path p {font-size:12px;line-height:1.45;}
 .pathway-card.daily-path .pathway-progress,.pathway-card.count-path .pathway-progress,.pathway-card.reading-path .pathway-progress {gap:5px;font-size:10px;}
 .pathway-card.daily-path>.pathway-button,.pathway-card.count-path>.pathway-button,.pathway-card.reading-path>.pathway-button {min-height:46px;padding:0 18px;font-size:12px;}
 .explorer-tool-grid button {grid-template-columns:minmax(104px,118px) minmax(0,1fr);column-gap:14px;min-height:124px;padding:12px 20px;}
 .explorer-tool-grid button[data-view="qcm"] {grid-template-columns:minmax(0,1fr) minmax(104px,118px);}
 .explorer-tool-grid button .explorer-art {height:104px;}
 .explorer-tool-grid button .explorer-copy strong {font-size:clamp(15px,4.3vw,18px);}
 .explorer-tool-grid button .explorer-copy small {font-size:12px;line-height:1.4;}
}
@media(max-width:365px) {
 .topbar .header-logo {flex-basis:128px;width:128px;}
 .top-actions {gap:3px;}
 .pathway-card.daily-path,.pathway-card.count-path,.pathway-card.reading-path {grid-template-columns:minmax(0,2fr) minmax(0,.9fr);padding:14px 13px;column-gap:8px;}
 .pathway-card.daily-path .pathway-mark.action-art,.pathway-card.count-path .pathway-mark.action-art,.pathway-card.reading-path .pathway-mark.action-art {height:116px;}
 .explorer-tool-grid button {grid-template-columns:minmax(88px,98px) minmax(0,1fr);column-gap:10px;padding-inline:14px;}
 .explorer-tool-grid button[data-view="qcm"] {grid-template-columns:minmax(0,1fr) minmax(88px,98px);}
 .explorer-tool-grid button .explorer-art {height:92px;}
}

/* Home spacing, consistent pathway art and clearer mobile navigation. */
.topbar {border-bottom:1px solid #dfcbb0!important;box-shadow:0 3px 12px #70452b0d!important;}
.main-content>#home-view {padding-top:15px!important;}
.pathway-card.count-path {grid-template-columns:minmax(0,.9fr) minmax(0,2.1fr);}
.pathway-card.daily-path .pathway-mark.action-art,.pathway-card.count-path .pathway-mark.action-art,.pathway-card.reading-path .pathway-mark.action-art {height:142px;}
.explorer-tool-grid button[data-view="alphabet"] .explorer-art img,.explorer-tool-grid button[data-view="memocards"] .explorer-art img {transform:scale(1.2);}
.explorer-tool-grid button[data-view="alphabet"]:hover .explorer-art img,.explorer-tool-grid button[data-view="memocards"]:hover .explorer-art img {transform:scale(1.2) translateY(-2px);}
.explorer-tool-grid button[data-view="qcm"] .explorer-copy small {line-height:1.35;}
@media(max-width:760px) {
 .main-content {padding-bottom:92px!important;}
 .main-content>#home-view {padding-top:12px!important;}
 .topbar {border-bottom:1px solid #dfcbb0!important;box-shadow:0 3px 10px #70452b0d!important;}
 .sidebar {height:76px!important;}
 .sidebar>.nav-list>.nav-item:not(.mobile-menu-toggle) {height:66px!important;min-height:66px!important;font-size:11px!important;gap:2px!important;}
 .sidebar>.nav-list>.nav-item .nav-icon {width:59px!important;min-width:59px!important;height:48px!important;}
 .pathway-card.daily-path .pathway-mark.action-art,.pathway-card.count-path .pathway-mark.action-art,.pathway-card.reading-path .pathway-mark.action-art {height:120px;}
 .pathway-card.count-path {grid-template-columns:minmax(0,.9fr) minmax(0,2.1fr);}
}
@media(max-width:365px) {
 .pathway-card.daily-path .pathway-mark.action-art,.pathway-card.count-path .pathway-mark.action-art,.pathway-card.reading-path .pathway-mark.action-art {height:105px;}
 .pathway-card.count-path {grid-template-columns:minmax(0,.9fr) minmax(0,2fr);}
}


/* Approved illustration assets, restored selectively onto current main. */
.sidebar .nav-item .nav-icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:59px;height:47px}
.sidebar .nav-item .nav-icon img{display:block;width:100%;height:100%;object-fit:contain}
.sidebar .nav-item.active{box-shadow:inset 3px 0 #315a38}
.sidebar .nav-item:focus-visible,.explorer-tool-grid button:focus-visible,.pathway-button:focus-visible,.mobile-menu-item:focus-visible{outline:3px solid #4b8057;outline-offset:3px}
.pathway-card .pathway-mark.action-art{object-fit:contain}
.mobile-menu-item .nav-icon{display:inline-block;flex:0 0 57px;width:57px;height:47px;font-size:0!important;line-height:0!important;background-size:contain;background-repeat:no-repeat;background-position:center}
.mobile-menu-item[data-view="voyageur"] .nav-icon{background-image:url('/illustrations/ui/parler-au-quotidien.webp')}
.mobile-menu-item[data-view="memocards"] .nav-icon{background-image:url('/illustrations/ui/cartes-memo.webp')}
.mobile-menu-item[data-view="revisions"] .nav-icon{background-image:url('/illustrations/ui/reviser.webp')}
.mobile-menu-item[data-proxy="find-word-home"] .nav-icon{background-image:url('/illustrations/ui/rechercher-un-mot.webp')}
.mobile-menu-item[data-action="contact"] .nav-icon{background-image:url('/illustrations/ui/contacter-lao4me.webp')}
.mobile-menu-item[data-proxy="ainvbtn"] .nav-icon{background-image:url('/illustrations/ui/inviter-une-personne.webp')}
.mobile-menu-item[data-proxy="alogout"] .nav-icon{background-image:url('/illustrations/ui/se-deconnecter.webp')}
#mobile-menu-panel[hidden]{display:none!important}

/* A compact mobile greeting keeps the first learning path closer to the fold. */
@media(max-width:760px){
  #home-view .welcome-row{padding:14px 16px 15px;gap:10px;margin:3px 0 13px;}
  #home-view .welcome-copy-block .eyebrow{display:none;}
  #home-view .welcome-copy-block h1{font-size:clamp(30px,7.6vw,38px);line-height:1.12;margin:0 0 6px;}
  #home-view .welcome-copy{font-size:13px;line-height:1.4;margin:0;}
  #home-view .greeting-card{height:136px;min-height:136px;}
  #home-view .greeting-copy{left:10px;top:auto;bottom:10px;padding:6px 10px;}
  #home-view .greeting-lao{font-size:23px;line-height:1.3;margin:3px 0 2px;}
  #home-view .greeting-phonetic{font-size:11px;}
  #home-view .greeting-card .sound-button{right:10px;bottom:10px;min-width:42px;min-height:42px;}
}

/* Grammar's hand-painted artwork uses the same left-art/right-copy grid as Counting. */
#home-view .pathway-card.grammar-path{
 display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,2.1fr);
 grid-template-rows:min-content min-content min-content min-content auto;
 column-gap:16px;row-gap:5px;align-items:center;align-content:start;
 padding:20px 22px 18px;min-height:0;
 background:linear-gradient(145deg,#fffdf8,#f6ead7);
 border:1px solid #e5c9a7;border-radius:19px 15px 20px 16px;
 box-shadow:0 4px 0 #dfc7a8,0 10px 22px #65412412;
}
#home-view .grammar-path .pathway-mark.grammar-path-mark.action-art{
 position:static;grid-column:1;grid-row:1 / 5;place-self:center;
 display:block;width:100%;max-width:none;height:142px;
 padding:0;border:0;border-radius:0;background:transparent;
 object-fit:contain;filter:drop-shadow(0 5px 6px #63472720);
}
#home-view .grammar-path .pathway-kicker{grid-column:2;grid-row:1;align-self:end}
#home-view .grammar-path h2{grid-column:2;grid-row:2;max-width:none;min-height:0;margin:7px 0 2px;line-height:1.2}
#home-view .grammar-path p{grid-column:2;grid-row:3;min-height:0;align-self:start;line-height:1.5}
#home-view .grammar-path .pathway-progress{grid-column:2;grid-row:4;margin:5px 0 8px}
#home-view .grammar-path>.pathway-button{
 grid-column:1 / -1;grid-row:5;width:100%;min-height:48px;
 padding:0 22px;justify-self:stretch;justify-content:center;text-align:center;
 gap:10px;border-radius:13px;box-shadow:0 3px 0 #164d3e;
}
@media(max-width:760px){
 #home-view .pathway-card.grammar-path{
  grid-template-columns:minmax(0,.9fr) minmax(0,2.1fr);
  column-gap:10px;row-gap:4px;padding:16px 17px 15px;
 }
 #home-view .grammar-path .pathway-mark.grammar-path-mark.action-art{height:120px}
 #home-view .grammar-path h2{font-size:clamp(17px,5vw,21px);line-height:1.19}
 #home-view .grammar-path p{font-size:12px;line-height:1.45}
 #home-view .grammar-path .pathway-progress{gap:5px;font-size:10px}
 #home-view .grammar-path>.pathway-button{min-height:46px;padding:0 18px;font-size:12px}
}
@media(max-width:365px){
 #home-view .pathway-card.grammar-path{grid-template-columns:minmax(0,.9fr) minmax(0,2fr);padding:14px 13px;column-gap:8px}
 #home-view .grammar-path .pathway-mark.grammar-path-mark.action-art{height:105px}
}

@media (max-width:760px){
  /* Only the new history rail modifies mobile; the existing home, cards, and bottom menu remain untouched. */
  #mobile-page-history[hidden]{display:none!important}
  #mobile-page-history:not([hidden]){
    position:sticky;top:0;z-index:90;display:flex!important;
    justify-content:space-between;align-items:center;gap:10px;
    margin:0 -1px 0;padding:6px 4px;min-height:50px;
    background:#fff9f0f7;border-bottom:1px solid #e7d8c1;
    backdrop-filter:blur(12px);
  }
  #mobile-page-history button{
    display:inline-flex;align-items:center;justify-content:center;gap:9px;
    flex:1 1 0;min-width:0;min-height:40px;
    padding:6px 10px;border:1px solid #dbcfb8;border-radius:12px;
    background:#fffdf7;color:#246b55;font-size:12px;font-weight:750;
    white-space:nowrap;touch-action:manipulation;
  }
  #mobile-page-history button span[aria-hidden="true"]{font-size:22px;line-height:1}
  #mobile-page-history button:disabled{opacity:.32;cursor:default}
  #mobile-page-history button:not(:disabled):active{background:#e6f1e9}
}

/* DESKTOP MATCHES PHONE SHELL, 22 November 2026.
   Computer-only adaptation: top header, fixed bottom 3-tab navigation, one-column cards.
   No selectors in this section apply at 760px or below. */
@media (min-width:761px){
  .app-shell{min-height:100dvh}

  /* Same bottom menu model as the phone. Never display the old left sidebar. */
  .sidebar{
    position:fixed!important;inset:auto 0 0 0!important;
    display:block!important;width:100%!important;max-width:none!important;
    height:82px!important;padding:4px 16px 6px!important;
    background:#fffaf1f5!important;
    border:0!important;border-top:1px solid #e5d8c1!important;
    box-shadow:0 -6px 20px #33452d10!important;
    backdrop-filter:blur(14px);z-index:2000!important;
  }
  .sidebar>.brand,.sidebar>.side-caption,.sidebar>.sidebar-bottom{display:none!important}
  .sidebar>.nav-list{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    grid-template-rows:70px!important;
    width:min(100%,810px)!important;height:70px!important;max-height:none!important;
    padding:0!important;margin:0 auto!important;gap:10px!important;
    overflow:visible!important;align-items:center!important;
  }
  .sidebar>.nav-list>.nav-item[data-view="accueil"]{display:flex!important;order:1}
  .sidebar>.nav-list>.nav-item[data-view="revisions"]{display:flex!important;order:2}
  .sidebar>.nav-list>.nav-item[data-view="bibliotheque"]{display:flex!important;order:3}
  .sidebar>.nav-list>.nav-item:not([data-view="accueil"]):not([data-view="revisions"]):not([data-view="bibliotheque"]){display:none!important}
  .sidebar>.nav-list>.nav-item{
    display:flex!important;flex-direction:column!important;justify-content:center!important;
    align-items:center!important;gap:2px!important;
    width:100%!important;min-width:0!important;height:68px!important;min-height:68px!important;
    margin:0!important;padding:3px!important;text-align:center!important;
    border-radius:13px!important;color:#6e7971!important;
    font-size:12px!important;font-weight:700;transform:none!important;
  }
  .sidebar>.nav-list>.nav-item.active{
    background:#e8f2e8!important;color:#246b55!important;box-shadow:none!important;
  }
  .sidebar>.nav-list>.nav-item .nav-icon{
    display:inline-flex!important;flex:0 0 44px!important;
    width:60px!important;min-width:60px!important;height:44px!important;
    align-items:center;justify-content:center;
  }
  .sidebar>.nav-list>.nav-item .nav-icon img{width:100%;height:100%;object-fit:contain}

  /* Header remains at the top with the same actions and hamburger as on mobile. */
  .main-content{
    width:100%;min-width:0;min-height:100dvh;
    margin-left:0!important;padding:0 clamp(20px,4vw,58px) 116px!important;
  }
  .topbar{
    position:sticky!important;top:0!important;z-index:110!important;
    display:flex;align-items:center;justify-content:space-between;
    height:74px!important;min-height:74px!important;gap:10px!important;
    padding:0 2px!important;margin:0!important;
    background:#fff9f0f5!important;border-bottom:1px solid #dfcbb0!important;
    box-shadow:0 3px 10px #70452b0d!important;
    backdrop-filter:blur(14px);
  }
  .topbar .header-logo{
    display:flex!important;flex:0 0 134px!important;width:134px!important;
    height:67px!important;align-items:center;justify-content:flex-start;
    border:0!important;border-radius:0!important;
    background:transparent!important;overflow:visible!important;padding:0!important;
  }
  .topbar .header-logo img{display:block;width:100%!important;height:65px!important;object-fit:contain}
  .topbar .breadcrumb,.topbar .today-label{display:none!important}
  .topbar .top-actions{
    display:flex;align-items:center;justify-content:flex-end;
    flex:0 1 auto;min-width:0;margin-left:auto!important;gap:8px!important;
  }
  .topbar .top-actions .lao4me-language-control{order:1;min-width:0}
  .topbar #mobile-burger{order:2;display:inline-flex!important}
  .topbar .top-actions .install-app{width:36px;min-width:36px;max-width:36px;height:36px;padding:0!important;justify-content:center}
  .topbar .install-app>span:last-child{display:none!important}
  .topbar .avatar{width:36px;height:36px;flex:0 0 36px}
  #mobile-menu-panel{
    position:fixed!important;top:80px!important;right:clamp(12px,4vw,60px)!important;
    bottom:auto!important;left:auto!important;width:min(350px,calc(100vw - 24px))!important;
    max-height:calc(100dvh - 170px)!important;overflow:auto!important;z-index:3000!important;
  }
  #mobile-menu-panel[hidden]{display:none!important}

  /* Center the content and preserve the phone's vertical learning sequence. */
  .page-view{width:min(100%,860px)!important;margin:0 auto!important;padding:23px 0 46px!important}
  #home-view .welcome-row{
    display:flex!important;flex-direction:column!important;align-items:stretch!important;
    gap:12px!important;padding:12px 18px 16px!important;
    margin:3px 0 15px!important;
  }
  #home-view .welcome-copy-block .eyebrow{display:none}
  #home-view .welcome-copy-block h1{font-size:clamp(30px,3.4vw,39px);line-height:1.12;margin:0 0 8px}
  #home-view .welcome-copy{font-size:14px;line-height:1.45}
  #home-view .greeting-card{width:100%;max-width:none;height:145px;min-height:145px}
  #home-view .pathway-grid{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;
    gap:14px!important;align-items:stretch;margin:6px 0 20px;
  }
  #home-view .pathway-card{
    min-width:0;min-height:0!important;
    transition:transform .16s ease,box-shadow .16s ease;
  }
  #home-view .pathway-card.daily-path,
  #home-view .pathway-card.count-path,
  #home-view .pathway-card.reading-path,
  #home-view .pathway-card.grammar-path{
    padding:17px 20px 16px!important;column-gap:16px;row-gap:5px;
    grid-template-rows:min-content min-content min-content min-content auto;
  }
  #home-view .pathway-card h2{font-size:clamp(19px,2vw,23px);line-height:1.2}
  #home-view .pathway-card p{font-size:13px;line-height:1.5;min-height:0}
  #home-view .pathway-card .pathway-progress{margin:6px 0 9px;font-size:11px}
  #home-view .pathway-card .pathway-mark.action-art{height:130px!important;object-fit:contain}
  #home-view .pathway-card>.pathway-button{
    grid-column:1 / -1;width:100%;min-height:48px;margin-top:auto;
    font-size:13px;padding-inline:20px;
  }
  #home-view .compact-progress{display:block!important;max-width:560px!important;margin:16px 0!important}
  #home-view .explorer-tools{margin-top:22px}
  #home-view .explorer-tools>h2{font-size:20px;margin-bottom:13px}
  #home-view .explorer-tool-grid{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:13px!important;
  }
  #home-view .explorer-tool-grid button{
    grid-template-columns:minmax(140px,160px) minmax(0,1fr);
    min-width:0;min-height:132px;padding:12px 32px;
    column-gap:22px;align-items:center;text-align:left;
  }
  #home-view .explorer-tool-grid button[data-view="qcm"]{
    grid-template-columns:minmax(0,1fr) minmax(140px,160px);
  }
  #home-view .explorer-tool-grid button .explorer-art{height:108px}
  #home-view .explorer-tool-grid button .explorer-copy strong{font-size:18px;line-height:1.25}
  #home-view .explorer-tool-grid button .explorer-copy small{font-size:12px;line-height:1.45}

  /* Identical previous / next navigation to mobile, directly below the top header. */
  #mobile-page-history[hidden]{display:none!important}
  #mobile-page-history:not([hidden]){
    position:sticky;top:74px;z-index:100;display:flex!important;
    justify-content:space-between;gap:12px;align-items:center;
    width:min(100%,860px);min-height:52px;margin:0 auto!important;padding:6px 4px;
    background:#fff9f0f7;border-bottom:1px solid #e7d8c1;backdrop-filter:blur(12px);
  }
  #mobile-page-history button{
    display:inline-flex;align-items:center;justify-content:center;gap:9px;
    flex:1 1 0;min-width:0;max-width:420px;min-height:40px;
    padding:7px 12px;border:1px solid #dbcfb8;border-radius:12px;
    background:#fffdf7;color:#246b55;font-size:13px;font-weight:750;
    white-space:nowrap;touch-action:manipulation;
  }
  #mobile-page-history button span[aria-hidden="true"]{font-size:22px;line-height:1}
  #mobile-page-history button:disabled{opacity:.32;cursor:default}
  #mobile-page-history button:not(:disabled):hover{background:#e6f1e9}
}
@media (min-width:761px) and (max-width:900px){
  .main-content{padding-inline:19px!important}
  .topbar .header-logo{flex-basis:115px!important;width:115px!important}
  .topbar .top-actions{gap:4px!important}
  #home-view .welcome-row{padding-inline:14px!important}
}


/* Sticky shared navigation, compact header and unobstructed hero artwork.
   Applies to the 3-tab phone and desktop shell at every screen size. */
.topbar{
  position:sticky!important;top:0!important;z-index:110!important;
  align-self:stretch;
  background:#fff9f0f8!important;
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}
#mobile-page-history[hidden]{display:none!important}
#mobile-page-history:not([hidden]){
  position:sticky!important;z-index:105!important;
  align-self:stretch;flex-shrink:0;
  background:#fff9f0fa!important;
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  box-shadow:0 4px 9px #4a3a2610;
}
#mobile-burger{
  display:inline-flex!important;
  flex:0 0 var(--lao4me-burger-width,52px)!important;
  width:var(--lao4me-burger-width,52px)!important;
  min-width:var(--lao4me-burger-width,52px)!important;
  max-width:var(--lao4me-burger-width,52px)!important;
  height:44px!important;min-height:44px!important;
  padding:0!important;margin:0!important;
  align-items:center!important;justify-content:center!important;
  border:1px solid #e6d8c3!important;border-radius:11px!important;
  background:#fff9ef!important;color:#246b55!important;
  line-height:1!important;
}
#mobile-burger .nav-icon{
  flex:0 0 auto!important;width:auto!important;min-width:0!important;
  height:auto!important;line-height:1!important;
  font-size:25px!important;color:#246b55!important;
}
#mobile-burger .menu-button-label{display:none!important}
#mobile-menu-panel .mobile-menu-profile-entry{
  display:flex;align-items:center;gap:12px;min-height:62px;
  padding:8px 11px 11px;margin-bottom:5px;
  border-bottom:1px solid #e4d7c4;
  color:#246b55;font-size:14px;font-weight:750;
}
#mobile-menu-panel #profile-avatar{
  position:relative;display:grid!important;place-items:center;
  flex:0 0 56px!important;width:56px!important;min-width:56px!important;height:56px!important;
  padding:0!important;margin:0!important;border:0!important;
  border-radius:0!important;background:transparent!important;box-shadow:none!important;
  overflow:visible!important;cursor:pointer;
}
#mobile-menu-panel #profile-avatar .profile-avatar-art{
  display:block;width:52px;height:52px;object-fit:contain;object-position:center;
  margin:auto;pointer-events:none;filter:drop-shadow(0 2px 2px #5c44321b);
}
#mobile-menu-panel #profile-avatar:focus-visible{
  outline:2px solid #246b55!important;outline-offset:2px!important;border-radius:8px!important;
}
#mobile-menu-panel .mobile-menu-profile-label{overflow-wrap:anywhere}

/* The greeting illustration is now a picture alone; remove the old cream veil. */
#home-view .greeting-card{
  position:relative!important;overflow:hidden!important;isolation:isolate;
  background:#f5eddf!important;border:1px solid #e4d6bc!important;
  border-radius:18px!important;
}
#home-view .greeting-card:before,#home-view .greeting-card:after{display:none!important;content:none!important}
#home-view .greeting-scene{
  position:relative!important;inset:auto!important;display:block!important;
  z-index:1!important;width:100%!important;height:100%!important;
  object-fit:contain!important;object-position:center!important;
  border-radius:inherit!important;max-height:none!important;
}

@media(max-width:760px){
  .topbar{position:sticky!important;top:0!important;height:72px!important;min-height:72px!important;z-index:110!important}
  #mobile-page-history:not([hidden]){top:72px!important;min-height:50px!important}
  .topbar .top-actions{
    margin-left:auto!important;margin-right:clamp(10px,3vw,20px)!important;
    gap:6px!important;
  }
  #mobile-burger{order:2!important}
  #home-view .greeting-card{
    width:100%!important;max-width:none!important;
    height:clamp(155px,58vw,220px)!important;
    min-height:155px!important;
  }
}
@media(min-width:761px){
  .topbar{position:sticky!important;top:0!important;z-index:110!important}
  #mobile-page-history:not([hidden]){top:74px!important}
  .topbar .top-actions{
    margin-left:auto!important;margin-right:clamp(16px,3vw,36px)!important;
  }
  #home-view .welcome-row{
    display:grid!important;
    grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr)!important;
    align-items:center!important;gap:20px!important;
  }
  #home-view .welcome-row .greeting-card{
    grid-column:1;grid-row:1;
    width:100%!important;max-width:none!important;
    height:auto!important;max-height:none!important;
    min-height:0!important;aspect-ratio:3/2;
  }
  #home-view .welcome-row .welcome-copy-block{
    grid-column:2;grid-row:1;min-width:0;
  }
}
@media(min-width:761px) and (max-width:900px){
  #home-view .welcome-row{gap:13px!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
}

/* Consistent +13% home illustrations, without changing other learning tools. */
#home-view .pathway-grid .pathway-card:is(.daily-path,.count-path,.reading-path,.grammar-path) .pathway-mark.action-art{
 display:block;width:100%!important;max-width:none!important;height:147px!important;
 object-fit:contain!important;object-position:center!important;justify-self:center!important;align-self:center!important;
}
#mobile-burger{visibility:visible!important}
#mobile-menu-panel[hidden]{display:none!important}
@media(max-width:760px){
 #home-view .pathway-grid .pathway-card:is(.daily-path,.count-path,.reading-path,.grammar-path) .pathway-mark.action-art{height:136px!important}
}
@media(max-width:365px){
 #home-view .pathway-grid .pathway-card:is(.daily-path,.count-path,.reading-path,.grammar-path) .pathway-mark.action-art{height:119px!important}
}


/* 2026-11-22: Seven home illustrations calibrated to Alphabet Lao +10%.
   A common artwork stage on every card; original file proportions are preserved.
   Per-art scale compensates for differing transparent padding in the WebP assets. */
#home-view{
  --lao4me-home-art-width:clamp(104px,30vw,140px);
  --lao4me-home-art-height:calc(var(--lao4me-home-art-width) * .88);
}
#home-view .pathway-grid .pathway-card:is(.daily-path,.reading-path){
  grid-template-columns:minmax(0,1fr) var(--lao4me-home-art-width)!important;
}
#home-view .pathway-grid .pathway-card:is(.count-path,.grammar-path){
  grid-template-columns:var(--lao4me-home-art-width) minmax(0,1fr)!important;
}
#home-view .pathway-grid .pathway-card:is(.daily-path,.count-path,.reading-path,.grammar-path) .pathway-mark.action-art{
  display:block!important;position:static!important;
  width:var(--lao4me-home-art-width)!important;
  min-width:0!important;max-width:var(--lao4me-home-art-width)!important;
  height:var(--lao4me-home-art-height)!important;min-height:0!important;
  place-self:center!important;
  object-fit:contain!important;object-position:center!important;
  transform:scale(var(--lao4me-home-icon-scale,1.32))!important;
  transform-origin:center!important;
}
#home-view .pathway-card.daily-path .pathway-mark.action-art{--lao4me-home-icon-scale:1.23}
#home-view .pathway-card.count-path .pathway-mark.action-art{--lao4me-home-icon-scale:1.26}
#home-view .pathway-card.reading-path .pathway-mark.action-art{--lao4me-home-icon-scale:1.24}
#home-view .pathway-card.grammar-path .pathway-mark.action-art{--lao4me-home-icon-scale:1.20}
#home-view .explorer-tool-grid button{
  grid-template-columns:var(--lao4me-home-art-width) minmax(0,1fr)!important;
  column-gap:clamp(10px,2.5vw,22px)!important;
}
#home-view .explorer-tool-grid button[data-view="qcm"]{
  grid-template-columns:minmax(0,1fr) var(--lao4me-home-art-width)!important;
}
#home-view .explorer-tool-grid button .explorer-art{
  display:block!important;align-self:center!important;justify-self:center!important;
  width:var(--lao4me-home-art-width)!important;
  min-width:0!important;max-width:var(--lao4me-home-art-width)!important;
  height:var(--lao4me-home-art-height)!important;min-height:0!important;
  overflow:visible!important;
}
#home-view .explorer-tool-grid button .explorer-art img{
  display:block!important;width:100%!important;height:100%!important;
  max-width:none!important;object-fit:contain!important;
  object-position:center!important;
  transform:scale(var(--lao4me-home-icon-scale,1.32))!important;
  transform-origin:center!important;
}
#home-view .explorer-tool-grid button[data-view="alphabet"] .explorer-art img{
  --lao4me-home-icon-scale:1.1484; /* previous 1.32 × 0.87 */
}
#home-view .explorer-tool-grid button[data-view="qcm"] .explorer-art img{--lao4me-home-icon-scale:1.1745}
#home-view .explorer-tool-grid button[data-view="memocards"] .explorer-art img{--lao4me-home-icon-scale:1.0875}
#home-view .explorer-tool-grid button .explorer-art img,
#home-view .pathway-grid .pathway-card .pathway-mark.action-art{
  transition:transform .18s ease;
}

/* A hamburger glyph alone. Keep the same responsive width as the flag. */
#mobile-burger,
.topbar #mobile-burger{
  border:0!important;outline:0!important;
  border-radius:0!important;box-shadow:none!important;
  background:transparent!important;background-image:none!important;
  padding:0!important;
}
#mobile-burger:hover,.topbar #mobile-burger:hover{
  background:transparent!important;color:#246b55!important;box-shadow:none!important;
}
#mobile-burger:focus-visible{
  outline:2px solid #246b55!important;outline-offset:3px!important;
  border-radius:4px!important;
}

/* Original Visit Tad Lo hero Polaroid asset.
   Its tilted photo opening matches the measured paper cutout (3:2 frame).
   The frame is stored locally in Lao4Me, not hot-linked to Visit Tad Lo. */
html body :is(#home-view,#review-view) .greeting-card{
  position:relative!important;isolation:isolate!important;display:block!important;
  width:100%!important;height:auto!important;min-height:0!important;
  max-height:none!important;max-width:100%!important;aspect-ratio:3/2!important;
  overflow:visible!important;
  margin:0 auto!important;padding:0!important;
  border:0!important;border-radius:0!important;
  background:transparent!important;box-shadow:none!important;
  transform:rotate(-4deg) scale(1.476)!important;transform-origin:center!important;
}
html body :is(#home-view,#review-view) .greeting-card::before{display:none!important;content:none!important}
html body :is(#home-view,#review-view) .greeting-card::after{
  content:""!important;display:block!important;
  position:absolute!important;inset:0!important;z-index:4!important;
  width:100%!important;height:100%!important;
  border:0!important;border-radius:0!important;
  background:transparent url("/illustrations/ui/polaroid-vintage-laos.png?v=20261124-vintage") center/100% 100% no-repeat!important;
  filter:drop-shadow(0 14px 20px rgba(39,67,53,.20))!important;
  pointer-events:none!important;
}
html body :is(#home-view,#review-view) .greeting-card .greeting-scene{
  position:absolute!important;z-index:2!important;
  top:8.5%!important;left:7.5%!important;right:auto!important;bottom:auto!important;
  display:block!important;
  width:85%!important;height:72%!important;
  max-width:none!important;max-height:none!important;
  object-fit:cover!important;object-position:center!important;
  border:0!important;border-radius:2px!important;
  box-shadow:none!important;
  transform:rotate(3deg) scale(.889)!important;
  transform-origin:center!important;
}
@media(max-width:760px){
  html body :is(#home-view,#review-view) .greeting-card{
    aspect-ratio:3/2!important;
    height:auto!important;min-height:0!important;
  }
  html body :is(#home-view,#review-view) .greeting-card .greeting-scene{
    top:9.1%!important;left:8.3%!important;
    width:83.4%!important;height:70.5%!important;
    transform:rotate(3deg) scale(.875)!important;
  }
}

/* 2026-11-22: single full-bleed cream backdrop, approved Polaroid and compact hero.
   Keep these final layout rules consolidated rather than stacking mobile overrides. */
html, html body, html body .app-shell, html body .main-content, html body #home-view{
  background-color:#fff2dc!important;
  background-image:none!important;
}
html body #home-view{position:relative!important;isolation:isolate!important}
html body #home-view::before{
  content:""!important;position:absolute!important;top:0!important;bottom:0!important;
  left:50%!important;width:100vw!important;transform:translateX(-50%)!important;
  background:#fff2dc!important;pointer-events:none!important;z-index:-1!important;
}
html body .topbar{
  width:100vw!important;max-width:100vw!important;
  margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important;
  padding-inline:clamp(12px,4vw,52px)!important;
}
/* Approved regenerated transparent vintage frame; no painted-over caption. */
html body #home-view .greeting-card::after{
  background-image:url("/illustrations/ui/polaroid-vintage-laos.png?v=20261124-vintage")!important;
}
@media(min-width:761px){
  html body #home-view .welcome-row{
    grid-template-columns:clamp(280px,35vw,390px) minmax(0,1fr)!important;
    column-gap:clamp(105px,10vw,126px)!important;
    min-height:345px!important;padding:14px 28px!important;
    margin:4px 0 14px!important;
  }
  html body #home-view .greeting-card{margin-top:0!important}
  html body #home-view .pathway-grid{margin-top:0!important}
}
@media(min-width:761px) and (max-width:900px){
  html body #home-view .welcome-row{padding-left:25px!important;padding-right:12px!important}
}
@media(max-width:760px){
  html body #home-view .welcome-row{
    gap:6px!important;padding:8px 16px 42px!important;
    margin:2px 0 12px!important;
  }
  html body #home-view .greeting-card{
    width:min(100%,calc((100vw - 8px)/1.4))!important;
    margin:clamp(36px,10vw,42px) auto 0!important;
  }
  html body #home-view .pathway-grid{margin-top:0!important;gap:12px!important}
  html body .app-shell{overflow-x:clip!important}
}

/* Slim back/forward history strip: keep navigation useful without a second header. */
@media(max-width:760px){
  #mobile-page-history:not([hidden]){
    min-height:38px!important;padding:3px 10px!important;gap:8px!important;
  }
  #mobile-page-history button{
    flex:0 1 auto!important;min-width:116px!important;max-width:158px!important;
    min-height:32px!important;padding:4px 10px!important;
    border-radius:999px!important;font-size:11px!important;gap:5px!important;
  }
  #mobile-page-history button span[aria-hidden="true"]{font-size:16px!important}
}
@media(min-width:761px){
  #mobile-page-history:not([hidden]){min-height:42px!important;padding:4px 8px!important;gap:10px!important}
  #mobile-page-history button{flex:0 1 170px!important;min-height:33px!important;border-radius:999px!important;font-size:12px!important}
  #mobile-page-history button span[aria-hidden="true"]{font-size:17px!important}
}

/* Lao4Me Android dark-theme fallback: keep card and header surfaces the same
   cream palette even on Android builds that force recolouring gradients. */
@media (prefers-color-scheme: dark) {
  html body .topbar,
  html body .sidebar { background:#fff9f0!important; color:#40342f!important; }
  html body #home-view .welcome-row {
    background:linear-gradient(110deg,#fff7e6 0%,#fffdf8 65%,#f1ead9 100%)!important;
    color:#40342f!important;
  }
  html body #home-view .pathway-card,
  html body #home-view .explorer-tool-grid button {
    background:linear-gradient(145deg,#fffdf8,#f6ead7)!important;
    color:#40342f!important;
  }
  html body #home-view .pathway-card h2 {color:#563530!important}
  html body #home-view .pathway-card p {color:#78675d!important}
}

/* Header controls: language, sound, share, menu; no decorative button outlines. */
html body .topbar .header-logo{justify-content:flex-start!important;margin-left:-6px!important}
html body .topbar .header-logo img{object-position:left center!important}
html body .topbar .top-actions .lao4me-language-control{order:10!important}
html body .topbar .top-actions [data-voice-coach-toggle]{order:20!important}
html body .topbar .top-actions #share-app{order:30!important}
html body .topbar .top-actions #mobile-burger{order:40!important}
html body .topbar .top-actions #share-app,
html body .topbar .top-actions [data-voice-coach-toggle],
html body .topbar .top-actions #mobile-burger,
html body .topbar .top-actions .lao4me-language-control button,
html body .topbar .top-actions .install-app{
  border:0!important;box-shadow:none!important;background:transparent!important;border-radius:0!important
}
html body .topbar .top-actions button:focus-visible{outline:2px solid #246b55!important;outline-offset:2px!important}

/* Shared compact exercise layout. Keep readable content and real controls;
   shorten illustrations and decorative spacing before reducing type.
   Vertical overflow remains an accessibility escape hatch for unusually long
   phrases, zoomed text, small landscape viewports and expanded explanations. */
.card-flow-fullscreen{
  --card-art-size:clamp(65px,17dvh,150px);
  --card-gap:clamp(4px,1dvh,10px);
}
html body .card-flow-fullscreen:is(#alphabet-root,#memocards-root,#study-wrap,#reading-program-root,#counting-program-root,#traveler-root,#qcm-root),
html body #grammar-program-view :is(.grammar-flashcards,.grammar-question,.grammar-game-content).card-flow-fullscreen{
  position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;
  max-width:none!important;max-height:100dvh!important;min-height:0!important;margin:0!important;
  z-index:1500!important;box-sizing:border-box!important;overflow-x:hidden!important;overflow-y:auto!important;
  overscroll-behavior:contain;background:#fff8e9!important;
  padding:calc(42px + env(safe-area-inset-top,0px)) 12px calc(8px + env(safe-area-inset-bottom,0px))!important;
  display:flex!important;flex-direction:column;align-items:center;justify-content:flex-start;gap:var(--card-gap)!important;
}
html body .card-flow-fullscreen .card-flow-close{width:36px;height:36px;top:calc(4px + env(safe-area-inset-top,0px));right:9px}
html body .card-flow-fullscreen :is(.memo-card,.alphabet-card,.course-teach-card,.count-quiz,.traveler-panel,.review-challenge-play,.quiz-card){
  margin:0 auto!important;padding:clamp(7px,1.4dvh,13px)!important;min-height:0!important;width:min(100%,650px);
}
html body :is(.card-flow-fullscreen,.word-card-dialog,.count-dialog-content,.grammar-classifier-dialog) :is(.card-flow-soundbar,.card-flow-stage-grade,.memo-card-grade,.alphabet-grade-actions,.grammar-card-grade-actions,.word-card-actions,.count-dialog-grade){
  gap:5px!important;margin:3px auto!important;max-width:540px;
}
html body :is(.card-flow-fullscreen,.word-card-dialog,.count-dialog-content,.grammar-classifier-dialog) :is(.card-flow-soundbar,.card-flow-stage-grade,.memo-card-grade,.alphabet-grade-actions,.grammar-card-grade-actions,.word-card-actions,.count-dialog-grade)>button{
  min-height:40px!important;padding:5px 9px!important;font-size:12px!important;line-height:1.2!important;
}
html body :is(.card-flow-fullscreen,.word-card-dialog,.count-dialog-content,.grammar-classifier-dialog) :is(.library-speak,.card-flow-listen,.card-flow-studio,.word-card-speak,.count-sound,[data-course-play],.traveler-lesson-listen){
  min-height:40px!important;padding:5px 10px!important;margin:3px auto!important;line-height:1.25!important;font-size:13px!important;
}
html body .card-flow-fullscreen :is(.memo-card-art,.course-picture,.study-mini-image,.grammar-card-art){
  width:var(--card-art-size)!important;height:var(--card-art-size)!important;max-height:var(--card-art-size)!important;
  max-width:100%!important;aspect-ratio:1;margin:3px auto!important;object-fit:contain;
}
html body .card-flow-fullscreen .memo-card-art-atlas{width:100%;height:100%}
/* Restore the original large, centered alphabet design, independently of other card types. */
html body #alphabet-root.card-flow-fullscreen .alphabet-visual{flex-direction:column;gap:8px!important;margin:8px auto!important}
html body #alphabet-root.card-flow-fullscreen .alphabet-symbol{font-family:'Noto Sans Lao','Phetsarath OT','Lao UI',serif;font-size:clamp(84px,22vw,132px)!important;min-height:150px;line-height:1.6}
html body #alphabet-root.card-flow-fullscreen .alphabet-picture-wrap{width:min(100%,310px);aspect-ratio:1.75;flex:none}
html body #alphabet-root.card-flow-fullscreen .alphabet-picture{width:100%;height:100%;margin:0}
@media(max-width:600px){html body #alphabet-root.card-flow-fullscreen .alphabet-symbol{min-height:140px;font-size:clamp(86px,24vw,118px)!important}html body #alphabet-root.card-flow-fullscreen .alphabet-picture-wrap{width:min(100%,280px)}}
html body .card-flow-fullscreen .alphabet-mnemonic{margin:4px 0!important}
html body .card-flow-fullscreen .alphabet-answer{margin:3px 0!important;padding:5px!important}
html body .card-flow-fullscreen .memo-card-lao{font-size:clamp(26px,6dvh,38px)!important;line-height:1.35}
html body .card-flow-fullscreen .memo-card h2{font-size:clamp(17px,3dvh,23px);margin:3px 0!important}
html body .card-flow-fullscreen .memo-card-nav{margin:4px 0!important}
html body .card-flow-fullscreen .memo-page{gap:4px!important}
html body .card-flow-fullscreen .memo-page>.eyebrow,
html body .card-flow-fullscreen .memo-page>.welcome-copy,
html body .card-flow-fullscreen .memo-page>h1,
html body #alphabet-root.card-flow-fullscreen .learning-head{display:none!important}
html body #alphabet-root.card-flow-fullscreen .alphabet-picker{margin-top:4px!important}
.card-flow-swipe-hint{order:4;margin:0!important;text-align:center;font-size:11px;color:#65776d;line-height:1.25}
html body #study-wrap.card-flow-fullscreen .study-flip{height:clamp(150px,38dvh,300px)!important;min-height:0!important;flex:none}
html body .card-flow-fullscreen .study-flip-face{gap:4px;padding:8px}
html body .card-flow-fullscreen .study-review-actions{gap:5px!important}
html body .card-flow-fullscreen .study-review-actions button{min-height:40px;padding:5px 8px;font-size:12px}
html body .card-flow-fullscreen .course-session{gap:5px!important;padding:0!important;margin:0 auto!important}
html body .card-flow-fullscreen .course-session>.back-link{display:none!important}
html body .card-flow-fullscreen .course-session h1{font-size:clamp(17px,3dvh,24px);margin:3px 0}
html body .card-flow-fullscreen .course-teach-card h2{margin:4px 0;font-size:clamp(17px,3dvh,23px)}
html body .card-flow-fullscreen .course-symbol-and-image{gap:7px!important;margin:3px auto!important}
html body .card-flow-fullscreen .course-glyph{font-size:clamp(40px,10dvh,74px)!important;line-height:1.35}
html body .card-flow-fullscreen :is(.course-guide,.course-vowel-isolated,.course-sound-info,.course-audio-actions,.course-day-goal,.course-teach-navigation,.course-question-audio,.course-phonetic-help){margin:3px 0!important;gap:5px!important}
html body .card-flow-fullscreen :is(.course-audio-source,.course-review-flag){font-size:10px;line-height:1.2}
html body .card-flow-fullscreen .course-options{gap:5px!important}
html body .card-flow-fullscreen .course-option{min-height:48px!important;font-size:clamp(19px,4dvh,30px);line-height:1.35;padding:4px}
html body .card-flow-fullscreen .course-sound-options .course-option,html body .card-flow-fullscreen .course-option-sound{font-size:15px!important}
html body .card-flow-fullscreen .course-option-listen{min-height:36px!important;padding:3px!important}
html body .card-flow-fullscreen .course-option-cell{gap:2px!important}
html body .card-flow-fullscreen .course-question-glyph{font-size:clamp(38px,9dvh,70px)!important;line-height:1.35}
html body .card-flow-fullscreen .course-session:has(.course-options) :is(.course-beta-line,.course-question-progress){margin:2px 0!important}
html body #qcm-root.card-flow-fullscreen .learning-head{margin:0;text-align:center}
html body #qcm-root.card-flow-fullscreen .learning-head h1{font-size:clamp(17px,3dvh,25px);margin:3px 0}
html body .card-flow-fullscreen :is(.quiz-word,.review-challenge-question){font-size:clamp(25px,6dvh,38px);line-height:1.35;margin:3px 0}
html body .card-flow-fullscreen :is(.quiz-choices,.review-challenge-choices,.grammar-answer-grid,.traveler-challenge-choices){gap:5px!important;margin:5px auto!important}
html body .card-flow-fullscreen :is(.quiz-choice,.review-challenge-choices button,.grammar-answer,.traveler-challenge-choices button){min-height:44px!important;padding:6px 9px!important;line-height:1.3}
html body .card-flow-fullscreen :is(.quiz-feedback,.review-challenge-feedback,.grammar-game-feedback,.count-feedback,.traveler-challenge-feedback){padding:6px 8px!important;margin:4px 0!important;line-height:1.3}
html body .card-flow-fullscreen .grammar-flip-card,
html body .grammar-classifier-dialog .grammar-flip-card{min-height:0!important;padding:8px!important;gap:4px!important}
html body .card-flow-fullscreen .grammar-flip-lao{font-size:clamp(26px,6dvh,40px);line-height:1.35}
html body .card-flow-fullscreen .grammar-card-situation{padding:7px!important;margin:2px auto!important}
html body .card-flow-fullscreen .grammar-card-situation p{margin:3px 0!important}
html body .card-flow-fullscreen .grammar-card-choice{min-height:42px!important}
html body .card-flow-fullscreen .grammar-swipe-help{font-size:11px!important;margin:0!important}
html body .card-flow-fullscreen .grammar-card-reveal-hint{display:none}
html body .card-flow-fullscreen .grammar-match-column{grid-template-rows:auto repeat(4,minmax(44px,auto));gap:4px}
html body .card-flow-fullscreen .grammar-match-card{min-height:44px;padding:4px}
html body .card-flow-fullscreen .count-question-subject{min-height:0!important;padding:4px!important;margin:3px auto!important}
html body .card-flow-fullscreen .count-answer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px!important}
html body .card-flow-fullscreen .count-answer{min-height:48px!important;padding:5px!important;gap:2px}
html body .card-flow-fullscreen .count-quiz-actions{margin:6px 0!important;gap:5px}
html body .card-flow-fullscreen .traveler-panel h2{font-size:clamp(17px,3dvh,23px);margin:4px 0}
html body .card-flow-fullscreen .traveler-panel p{margin:4px 0;line-height:1.35}
html body .card-flow-fullscreen .traveler-lesson-phrase{padding:6px!important;gap:3px!important}
html body .card-flow-fullscreen .traveler-lesson-phrases{gap:4px!important;margin:3px 0!important}
html body .word-card-dialog{max-height:calc(100dvh - 16px)!important}
html body .word-card-dialog .word-card-shell{max-height:calc(100dvh - 18px)!important}
html body .word-card-dialog .word-card-head{padding:5px 12px!important}
html body .word-card-dialog .word-card-art{width:clamp(80px,22dvh,190px)!important;max-height:22dvh!important;aspect-ratio:1;margin:0 auto!important}
html body .word-card-dialog .word-card-body{padding:5px 12px 8px!important}
html body .word-card-dialog .word-card-lao{font-size:clamp(25px,6dvh,40px)!important;line-height:1.35!important;margin:3px 0!important}
html body .word-card-dialog .word-card-phonetic{font-size:17px!important;margin:3px 0!important}
html body .word-card-dialog .word-card-body h2{font-size:clamp(17px,3dvh,23px)!important;margin:3px 0!important}
html body .word-card-dialog :is(.word-card-source,.word-card-status,.word-card-gesture-hint){margin:3px 0!important;font-size:11px;line-height:1.25}
html body .count-dialog-content{padding:8px 12px!important}
html body .count-dialog-content .count-dialog-body{min-height:0!important;padding:8px!important;margin:4px 0!important}
html body .count-dialog-content :is(.count-dialog-hint,.count-dialog-status,.count-dialog-navigation,.count-dialog-actions){margin:4px 0!important}
html body .count-dialog-content .count-dialog-word{font-size:clamp(24px,5dvh,36px);line-height:1.35}
html body .grammar-classifier-dialog .grammar-card-art{width:clamp(55px,14dvh,110px)!important;max-height:14dvh!important}
html body .grammar-classifier-dialog .grammar-classifier-dialog-inner{padding:8px 12px!important}
@media(max-height:700px){
  html body .card-flow-fullscreen .course-phonetic-help:not([open]){margin:0!important}
  html body .card-flow-fullscreen .course-contrast-grid{gap:3px!important}
  html body .card-flow-fullscreen .course-contrast-grid>div{padding:4px!important}
  html body .card-flow-fullscreen .course-option-cell>.course-option{min-height:44px!important}
  html body .card-flow-fullscreen .grammar-swipe-card .grammar-flip-example{padding-top:4px;margin-top:3px}
  html body .card-flow-fullscreen .memo-themes{margin-top:2px!important}
}
/* Small screens: use compact, real grading controls instead of two oversized rows.
   Never remove accessible alternatives to swipes. */
@media(pointer:coarse) and (max-width:760px){
  html body :is(.card-flow-stage-grade,.alphabet-grade-actions,.memo-card-grade,.word-card-actions,.count-dialog-grade,.grammar-card-grade-actions)>button{min-height:40px!important;font-size:11px!important;padding:4px 6px!important}
}

/* A compact right-aligned icon rail. All four visual centres have the same
   pitch; remove inherited margins, padding and minimum widths. The shared
   flag renderer still owns the flag and its dropdown. */
html body .topbar .top-actions{
  --header-icon-slot:32px;
  --header-icon-gap:2px;
  display:flex!important;flex:0 0 auto!important;align-items:center!important;
  justify-content:flex-end!important;gap:var(--header-icon-gap)!important;min-width:0!important;
  width:auto!important;margin-left:auto!important;margin-right:0!important;padding:0!important;
}
html body .topbar .top-actions .today-label{display:none!important}
html body .topbar .top-actions :is(.lao4me-language-control,#share-app,[data-voice-coach-toggle],#mobile-burger){
  display:inline-flex!important;flex:0 0 var(--header-icon-slot)!important;width:var(--header-icon-slot)!important;
  min-width:var(--header-icon-slot)!important;max-width:var(--header-icon-slot)!important;
  height:44px!important;min-height:44px!important;margin:0!important;padding:0!important;
  justify-content:center!important;align-items:center!important;gap:0!important;
}
html body .topbar .top-actions .lao4me-language-control>div{margin:0!important;max-width:var(--header-icon-slot)!important;justify-content:center!important}
html body .topbar .top-actions .mbm-language-core-trigger{
  min-width:0!important;width:var(--header-icon-slot)!important;max-width:var(--header-icon-slot)!important;
  margin:0!important;padding:0!important;justify-content:center!important;gap:2px!important;
}
html body:not(.mbm-locale-core-ready) .topbar .top-actions .lao4me-language-control{
  width:auto!important;max-width:none!important;flex:0 0 auto!important;
}
html body:not(.mbm-locale-core-ready) .topbar .top-actions .lao4me-language-control>.language-toggle{max-width:none!important}
html body .topbar .top-actions [data-voice-coach-toggle] [data-voice-coach-label]{display:none!important}
html body .topbar .top-actions [data-voice-coach-icon]{display:inline-flex!important;width:22px!important;justify-content:center;font-size:21px!important;line-height:1!important}
html body .topbar .top-actions #mobile-burger{--lao4me-burger-width:var(--header-icon-slot)!important}
html body .topbar .top-actions #mobile-burger .nav-icon{font-size:23px!important;width:22px!important;text-align:center}
html body .topbar .top-actions #share-app{border:0!important;background:transparent!important;box-shadow:none!important}
html body .topbar .top-actions #share-app svg{width:22px!important;height:22px!important;flex:none}
html body .topbar .top-actions :is(#share-app,[data-voice-coach-toggle],#mobile-burger):focus-visible{outline:2px solid #246b55!important}
@media(max-width:760px){
  html body .topbar{padding-inline:16px!important;gap:4px!important}
  html body .topbar .header-logo{margin-left:0!important}
}

/* Fit the white login card inside the available viewport. If a keyboard,
   enlarged text or a longer registration form needs more room, the outer
   gate can scroll instead of clipping the card or hiding its submit button. */
html body .auth-gate{
  display:flex!important;flex-direction:column;align-items:center;justify-content:flex-start;
  height:100dvh!important;max-height:100dvh!important;box-sizing:border-box;
  padding:calc(10px + env(safe-area-inset-top,0px)) 12px calc(10px + env(safe-area-inset-bottom,0px))!important;
  overflow-y:auto!important;overscroll-behavior:contain;
}
html body .auth-gate[hidden]{display:none!important}
html body .auth-gate .auth-card{
  flex:0 0 auto;margin:auto!important;width:min(440px,100%);
  padding:clamp(14px,2.6dvh,23px) clamp(16px,5vw,25px)!important;
  border-radius:22px!important;
}
html body .auth-gate .auth-logo{
  width:min(165px,56vw)!important;max-height:clamp(66px,13dvh,108px)!important;
  margin:0 auto 7px!important;object-fit:contain;
}
html body .auth-gate .auth-card h1{font-size:clamp(21px,3.7dvh,27px)!important;margin:0 0 5px!important}
html body .auth-gate .auth-card p{line-height:1.35!important;margin:5px 0!important;font-size:13px}
html body .auth-gate .auth-card label{margin:9px 0 4px!important;font-size:12px}
html body .auth-gate .auth-card input{height:42px!important}
html body .auth-gate .auth-card button{height:auto!important;min-height:42px!important;padding:7px 8px!important;margin-top:10px!important;line-height:1.25}
html body .auth-gate .auth-card .auth-recovery-link{min-height:32px!important;margin-top:2px!important;padding:4px 5px!important;font-size:13px!important}
html body .auth-gate .auth-card .auth-msg{min-height:0!important;margin:6px 0 0!important}
html body .auth-gate .auth-card .auth-msg:empty{display:none!important}
html body .auth-gate .auth-card .auth-hint{font-size:12px!important;line-height:1.3!important;margin:4px 0 0!important}
@media(max-height:600px){
  html body .auth-gate .auth-card{padding-block:12px!important}
  html body .auth-gate .auth-logo{max-height:64px!important}
}

/* END ui-action-illustrations.css */

/* BEGIN practice-extra.css */
/* Scoped only to the new optional practice controls. */
.lp-extra-entry{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.lp-extra-entry button,.lp-extra-word,#lao-practice-dialog button{font:inherit;border:1px solid currentColor;border-radius:12px;padding:10px 14px;background:transparent;color:inherit;cursor:pointer}.lp-extra-word{display:block;margin:8px auto;font-size:.86rem}#lao-practice-dialog{box-sizing:border-box;width:min(94vw,530px);max-height:88dvh;overflow:auto;border:1px solid #b4a995;border-radius:20px;padding:16px;color:var(--ink,#283a2d);background:var(--paper,#faf6eb)}#lao-practice-dialog::backdrop{background:#141c1980}#lao-practice-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px}#lao-practice-dialog h2{font-size:1.25rem;margin:0}#lao-practice-dialog .lp-extra-body{display:flex;flex-direction:column;gap:10px}#lao-practice-dialog p{margin:6px 0;line-height:1.45}#lao-practice-dialog input:not([type=range]),#lao-practice-dialog textarea,#lao-practice-dialog select{box-sizing:border-box;width:100%;font:inherit;padding:10px;border:1px solid #b4a995;border-radius:8px;background:transparent;color:inherit}#lao-practice-dialog textarea{min-height:90px}#lao-practice-dialog .lp-extra-glyph{font-size:clamp(2rem,10vw,4rem);text-align:center;overflow-wrap:anywhere}#lao-practice-dialog canvas{width:100%;height:auto;background:#fff;border:1px solid #b4a995;border-radius:8px;touch-action:none}#lao-practice-dialog .lp-extra-photo{max-height:42vh;overflow:auto}#lao-practice-dialog audio{max-width:100%}#lao-practice-dialog .lp-extra-level{display:grid;gap:6px;padding:10px;border:1px solid #b4a995;border-radius:10px}#lao-practice-dialog progress{width:100%}#lao-practice-dialog button:disabled{opacity:.5}#lao-practice-dialog [hidden]{display:none!important}
/* Conversation cards: isolated layout, compatible with vertical mobile scrolling. */
#lao-practice-dialog .lp-dialogue-slot{display:grid;gap:10px;min-width:0}#lao-practice-dialog .lp-dialogue-choice{display:flex;gap:8px;align-items:stretch}#lao-practice-dialog .lp-dialogue-choice button:first-child{flex:1;text-align:left}#lao-practice-dialog .lp-dialogue-meta{font-weight:700;font-size:.9rem}#lao-practice-dialog .lp-dialogue-card{display:grid;gap:12px;border:1px solid #b4a995;border-radius:18px;padding:16px;min-height:230px;touch-action:pan-y;transition:transform .12s;background:var(--paper,#faf6eb);overflow-wrap:anywhere}#lao-practice-dialog .lp-dialogue-context{font-size:.95rem}#lao-practice-dialog .lp-dialogue-face,#lao-practice-dialog .lp-dialogue-answer{display:grid;gap:8px;text-align:center;align-items:center}#lao-practice-dialog .lp-dialogue-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}#lao-practice-dialog .lp-dialogue-actions button:last-child{color:#35573a}#lao-practice-dialog .lp-dialogue-actions button:first-child{color:#9a503e}#lao-practice-dialog .lp-dialogue-answer button{justify-self:center;padding:5px 12px;border:0}

/* Compact one-card dialogue. Scroll remains a fallback for accessibility/very short displays. */
#lao-practice-dialog.lp-dialogue-playing{padding:12px;max-height:94dvh}#lao-practice-dialog.lp-dialogue-playing header{margin-bottom:8px}#lao-practice-dialog.lp-dialogue-playing .lp-dialogue-slot{gap:5px}#lao-practice-dialog.lp-dialogue-playing .lp-dialogue-card{gap:6px;min-height:0;padding:12px;touch-action:pan-y}#lao-practice-dialog.lp-dialogue-playing .lp-dialogue-card p{margin:0;font-size:clamp(.8rem,2.1vw,.95rem);line-height:1.25}#lao-practice-dialog.lp-dialogue-playing .lp-extra-glyph{font-size:clamp(1.45rem,6vw,2.3rem);line-height:1.35}#lao-practice-dialog.lp-dialogue-playing .lp-dialogue-face,#lao-practice-dialog.lp-dialogue-playing .lp-dialogue-answer{gap:4px}#lao-practice-dialog.lp-dialogue-playing .lp-dialogue-actions button{padding:10px 5px;font-size:.9rem}#lao-practice-dialog.lp-dialogue-playing .lp-dialogue-back{padding:7px;font-size:.8rem}#lao-practice-dialog.lp-dialogue-playing .lp-dialogue-meta{margin:0}#lao-practice-dialog.lp-dialogue-playing progress{height:6px}

/* Writing is a full course card, matching the existing home pathways. */
#home-view .pathway-card.writing-path{display:grid;grid-template-columns:var(--lao4me-home-art-width,120px) minmax(0,1fr);grid-template-rows:min-content min-content min-content min-content auto;align-items:center;align-content:start;gap:5px 16px;padding:17px 20px 16px;min-height:0;background:linear-gradient(145deg,#fffdf8,#f6ead7);border:1px solid #e5c9a7;border-radius:19px 15px 20px 16px;box-shadow:0 4px 0 #dfc7a8,0 10px 22px #65412412}
#home-view .pathway-card.writing-path.hidden{display:none!important}
#home-view .writing-path .pathway-kicker{grid-column:2;grid-row:1;align-self:end}
#home-view .writing-path .pathway-mark.action-art{display:block;position:static;grid-column:1;grid-row:1 / 5;place-self:center;width:var(--lao4me-home-art-width,120px)!important;max-width:100%;height:var(--lao4me-home-art-height,106px)!important;object-fit:contain;object-position:center;filter:drop-shadow(0 4px 5px #63472716)}
#home-view .writing-path h2{grid-column:2;grid-row:2;max-width:none;margin:7px 0 2px;line-height:1.2}
#home-view .writing-path p{grid-column:2;grid-row:3;min-height:0;line-height:1.5}
#home-view .writing-path .pathway-progress{grid-column:2;grid-row:4;margin:5px 0 8px;font-size:10px}
#home-view .writing-path>.pathway-button{grid-column:1 / -1;grid-row:5;width:100%;min-height:46px;padding:0 18px;justify-content:center;text-align:center;gap:10px;border-radius:13px;box-shadow:0 3px 0 #164d3e}
/* The approved files are close-cropped square cutouts: do not enlarge beyond their stage. */
#home-view .pathway-grid .pathway-card .pathway-mark.action-art[src*="module-"]{transform:none!important;object-fit:contain!important;object-position:center!important}
.lp-extra-entry{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:10px;margin:12px 0 16px}
.lp-extra-entry button.lp-extra-tile{display:grid;grid-template-columns:72px minmax(0,1fr);gap:10px;align-items:center;min-height:94px;width:100%;box-sizing:border-box;padding:8px 12px;text-align:left;border:1px solid #e5c9a7;border-radius:15px;background:linear-gradient(145deg,#fffdf8,#f6ead7);color:#593831;box-shadow:0 3px 0 #dfc7a8,0 6px 12px #6541240b;white-space:normal}
.lp-extra-tile img{display:block;width:72px;height:72px;object-fit:contain;object-position:center;filter:drop-shadow(0 3px 4px #63472712)}
.lp-extra-tile-copy{display:flex;flex-direction:column;gap:4px;min-width:0}
.lp-extra-tile-copy strong{font-size:14px;line-height:1.3;color:#593831}
.lp-extra-tile-copy small{font-size:11px;line-height:1.35;color:#78685a}
.lp-extra-entry button.lp-extra-tile:focus-visible{outline:2px solid #377c5b;outline-offset:3px}
@media(max-width:760px){#home-view .pathway-card.writing-path{padding:16px 17px 15px;gap:4px 10px}#home-view .writing-path h2{font-size:clamp(17px,5vw,21px)}#home-view .writing-path p{font-size:12px;line-height:1.45}#home-view .writing-path>.pathway-button{font-size:12px}}
@media(max-width:365px){#home-view .pathway-card.writing-path{padding:14px 13px;column-gap:8px}}

/* Home artwork: 5% smaller than the previous displayed scale. Preserve proportions. */
#home-view .pathway-grid .pathway-card .pathway-mark.action-art,
#home-view .explorer-tool-grid button .explorer-art img,
#home-view .lp-extra-tile img{scale:1.18085;transform-origin:center}
#home-view .pathway-grid .pathway-card.grammar-path{grid-template-columns:minmax(0,1fr) var(--lao4me-home-art-width,120px)!important}
#home-view .grammar-path .pathway-mark.grammar-path-mark.action-art{grid-column:2!important;grid-row:1 / 5}
#home-view .grammar-path .pathway-kicker,#home-view .grammar-path h2,#home-view .grammar-path p,#home-view .grammar-path .pathway-progress{grid-column:1!important;text-align:left}
#home-view .grammar-path>.pathway-button{grid-column:1 / -1!important}
#home-view .pathway-grid .pathway-card{overflow:visible}
#traveler-root .lp-traveler-tools{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin:12px 0 18px}
#traveler-root .lp-traveler-tools .lp-extra-tile{width:100%;grid-template-columns:82px minmax(0,1fr)}
#traveler-root .lp-traveler-tools .lp-dialogue-feature{grid-template-columns:clamp(90px,27vw,130px) minmax(0,1fr);min-height:155px;gap:14px;padding:15px 13px;background:linear-gradient(145deg,#fdfbf3,#e9f0e4);border-color:#c3d3bc}
#traveler-root .lp-dialogue-feature img{width:100%;height:auto;aspect-ratio:1;object-fit:contain}
#traveler-root .lp-dialogue-feature .lp-extra-tile-copy strong{font-size:17px;color:#265b46}
#traveler-root .lp-dialogue-feature .lp-extra-tile-copy small{font-size:12px;line-height:1.55}
@media(max-width:365px){#traveler-root .lp-traveler-tools .lp-dialogue-feature{gap:8px;padding:12px 9px}}

/* Writing course: all controls scoped to the practice dialog. */
#lao-practice-dialog .lp-writing-section{display:grid;gap:10px;min-width:0}
#lao-practice-dialog .lp-writing-category{display:grid;grid-template-columns:76px minmax(0,1fr) 18px;gap:12px;align-items:center;text-align:left;background:#fffaf1;border-color:#e5c9a7}
#lao-practice-dialog .lp-writing-category>span:nth-child(2){display:grid;gap:5px}
#lao-practice-dialog .lp-writing-category small{font-size:.78rem;color:#78685a}
#lao-practice-dialog .lp-writing-sample{font-size:clamp(1rem,5vw,1.75rem);text-align:center;overflow-wrap:anywhere;color:#75553e}
#lao-practice-dialog .lp-writing-model{font-size:clamp(2rem,9vw,3.7rem);line-height:1.65;text-align:center;overflow-wrap:anywhere}
#lao-practice-dialog .lp-writing-modes,#lao-practice-dialog .lp-writing-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
#lao-practice-dialog .lp-writing-modes button,#lao-practice-dialog .lp-writing-actions button{font-size:.85rem;padding:9px 6px;min-height:42px}
#lao-practice-dialog .lp-writing-modes button[aria-pressed=true]{background:#35573a;color:white;border-color:#35573a}
#lao-practice-dialog .lp-writing-canvas{background:#fffaf1;display:block;box-sizing:border-box;touch-action:none}
#lao-practice-dialog .lp-writing-canvas[aria-disabled=true]{opacity:.55}
#review-view .lp-review-practice{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:18px 0}
#review-view .lp-practice-heading{grid-column:1/-1;margin:6px 0 0;font-size:clamp(16px,4vw,20px);line-height:1.25}
#review-view .lp-review-practice .lp-extra-tile{grid-template-columns:1fr;justify-items:center;text-align:center;align-content:start;gap:5px;min-height:136px;padding:10px 7px}
#review-view .lp-review-practice .lp-extra-tile img{width:76px;height:65px;object-fit:contain}
#review-view .lp-review-practice .lp-extra-tile-copy strong{font-size:clamp(12px,3.5vw,14px);overflow-wrap:anywhere}
#review-view .lp-review-practice .lp-extra-tile-copy small{font-size:11px}

/* Reserve breathing room for the larger cutouts on the home page only. */
#review-view .lp-review-practice .lp-extra-tile img{margin-block:8px}
#home-view .pathway-grid .pathway-card,#home-view .explorer-tool-grid button{column-gap:clamp(15px,4vw,26px)!important}

/* Reading course only: balanced alternating illustrations, unchanged elsewhere. */
#reading-program-root .reading-validation-note{display:block;padding:10px 14px;text-align:center;margin:12px 0;font-size:12px}
#reading-program-root .reading-program-head>.lp-extra-entry{display:grid;grid-template-columns:minmax(0,1fr);gap:11px}
#reading-program-root .reading-program-head>.lp-extra-entry button.lp-extra-tile{grid-template-columns:minmax(0,36%) minmax(0,1fr);grid-template-rows:1fr;align-items:center;justify-items:center;gap:clamp(12px,4vw,24px);padding:12px clamp(14px,5vw,24px);min-height:106px;text-align:center}
#reading-program-root .reading-program-head>.lp-extra-entry .lp-extra-tile img{grid-column:1;grid-row:1;justify-self:center;width:min(100%,96px);height:88px;object-fit:contain;object-position:center}
#reading-program-root .reading-program-head>.lp-extra-entry .lp-extra-tile-copy{grid-column:2;grid-row:1;align-items:center;justify-content:center;justify-self:stretch;text-align:center;max-width:100%;gap:5px}
#reading-program-root .reading-program-head>.lp-extra-entry .lp-extra-tile-copy strong{font-size:15px;line-height:1.3}
#reading-program-root .reading-program-head>.lp-extra-entry .lp-extra-tile-copy small{font-size:12px;line-height:1.4}
#reading-program-root .reading-program-head>.lp-extra-entry button[data-practice-tile="voice"]{grid-template-columns:minmax(0,1fr) minmax(0,36%)}
#reading-program-root .reading-program-head>.lp-extra-entry [data-practice-tile="voice"] img{grid-column:2}
#reading-program-root .reading-program-head>.lp-extra-entry [data-practice-tile="voice"] .lp-extra-tile-copy{grid-column:1}
@media(max-width:365px){#reading-program-root .reading-program-head>.lp-extra-entry button.lp-extra-tile{padding:10px;gap:10px;min-height:94px}#reading-program-root .reading-program-head>.lp-extra-entry .lp-extra-tile img{height:76px}}

/* Home: guided path uses the exact same card and illustration stage as learning tools. */
#home-view .lp-home-guided{margin:18px 0}
#home-view .lp-home-guided .explorer-art img{--lao4me-home-icon-scale:1.1484}

/* Home: adjust only the requested three existing illustrations relative to their current 1.243 scale. */
#home-view .pathway-grid .daily-path .pathway-mark.action-art,
#home-view .pathway-grid .reading-path .pathway-mark.action-art{scale:1.3343605}
#home-view .pathway-grid .grammar-path .pathway-mark.action-art{scale:1.298935}
/* Clip just the decorative stripe, not the cutout artwork. */
#home-view .pathway-grid .pathway-card::before{inset:-1px; width:auto; height:auto; border-radius:inherit;background:transparent;border-left:4px solid #a85544;pointer-events:none;box-sizing:border-box;opacity:.68}
#review-view .lp-review-practice{padding:0;gap:10px;margin:18px 0 22px}
#review-view .lp-review-practice .lp-extra-tile img{scale:1.1;transform-origin:center}
#review-view .review-due-section{margin-bottom:16px}
html body #share-app[hidden]{display:none!important}
html body .topbar #install-app{display:none!important}
#mobile-menu-panel [data-proxy="install-app"] .nav-icon{font-size:28px!important;line-height:47px!important;color:#356b54;text-align:center}
#mobile-menu-panel [data-proxy="install-app"][hidden]{display:none!important}
@media(max-width:760px){
 html body #home-view .welcome-row{padding:6px 16px 24px!important;margin:2px 0 8px!important;gap:4px!important}
 html body #home-view .greeting-card{width:min(100%,calc((100vw - 8px)/1.55))!important;margin:clamp(20px,6vw,26px) auto 0!important}
 html body #home-view .welcome-copy-block h1{font-size:clamp(26px,7vw,35px);margin-bottom:4px}
 html body #home-view .welcome-copy{line-height:1.35}
 html body #home-view .pathway-grid .daily-path{padding-block:13px!important;row-gap:3px}
}
@media(min-width:761px){html body #home-view .welcome-row{min-height:300px!important;padding-block:10px!important;margin-bottom:10px!important}}

/* Active writing and independent reading reuse the compact review dialog,
   with a scroll fallback rather than clipped content on small phones. */
#lao-practice-dialog.lp-card-playing{
  position:fixed;inset:0;margin:auto;box-sizing:border-box;
  width:min(440px,calc(100vw - 22px));max-width:calc(100vw - 22px);
  max-height:calc(100dvh - 22px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));
  padding:12px;border:1px solid var(--learning-card-border,#e1d2b9);
  border-radius:23px;background:var(--learning-card-shell,#fffaf0);
  color:var(--learning-card-ink,#19604f);box-shadow:0 20px 75px #163b2960;
  overflow:auto;overscroll-behavior:contain;
}
#lao-practice-dialog.lp-card-playing::backdrop{background:#183c3080;backdrop-filter:blur(2px)}
#lao-practice-dialog.lp-card-playing>header{position:sticky;top:-12px;background:var(--learning-card-shell,#fffaf0);z-index:2;min-height:36px;padding:4px 0;gap:6px;margin:0 0 7px}
#lao-practice-dialog.lp-card-playing>header h2{font-size:15px;line-height:1.3;font-weight:750}
#lao-practice-dialog.lp-card-playing>header button{width:34px;min-height:34px;padding:0;border:0;font-size:26px;line-height:1;color:var(--learning-card-ink,#19604f)}
#lao-practice-dialog.lp-card-playing .lp-extra-body,#lao-practice-dialog.lp-card-playing .lp-writing-section,#lao-practice-dialog .lp-reading-deck{display:grid;gap:8px;min-width:0}
#lao-practice-dialog :is(.lp-writing-card,.lp-reading-card,.lp-dialogue-card){
  display:grid;justify-items:center;align-content:center;gap:8px;
  box-sizing:border-box;width:100%;min-width:0;padding:12px;
  background:var(--learning-card-paper,#fffdf8);border:1px solid var(--learning-card-border,#e1d2b9);
  border-radius:var(--learning-card-radius,16px);box-shadow:var(--learning-card-shadow);
  text-align:center;
}
#lao-practice-dialog .lp-reading-card{min-height:clamp(190px,38dvh,310px)}
#lao-practice-dialog .lp-writing-card .lp-writing-model,#lao-practice-dialog .lp-reading-card .lp-extra-glyph,#lao-practice-dialog .lp-dialogue-card .lp-extra-glyph{
  font-family:var(--learning-card-font);font-weight:650;font-size:clamp(34px,10vw,64px);
  line-height:1.5;color:var(--learning-card-ink);overflow-wrap:anywhere;max-width:100%;
}
#lao-practice-dialog .lp-card-kicker{color:var(--learning-card-muted);text-align:center;font-size:11px;letter-spacing:.06em;font-weight:750}
#lao-practice-dialog :is(.lp-writing-card,.lp-reading-card,.lp-dialogue-card)>p{margin:0;font-size:13px;color:var(--learning-card-muted);line-height:1.4}
#lao-practice-dialog .lp-reading-card .lp-reading-answer{font-size:20px;font-weight:750;color:var(--learning-card-ink)}
#lao-practice-dialog .lp-writing-card .lp-writing-canvas{
  width:100%;height:auto;aspect-ratio:2;display:block;border:1px solid #ded3bf;border-radius:12px;
  background:#fffaf1;touch-action:none!important;cursor:crosshair;
}
#lao-practice-dialog .lp-writing-section>progress{height:6px;accent-color:#357b60}
#lao-practice-dialog .lp-writing-section>small{font-size:11px;text-align:center;color:var(--learning-card-muted)}
#lao-practice-dialog .lp-writing-section>button:first-child{border:0;text-align:left;padding:4px 0;font-size:12px}
#lao-practice-dialog .lp-writing-modes button,#lao-practice-dialog .lp-writing-actions:not(.shared-study-grades) button,#lao-practice-dialog .lp-reading-card button{
  border:1px solid var(--learning-card-border);background:#f7f0e4;color:var(--learning-card-ink);border-radius:12px;
  min-height:42px;padding:7px;font-size:12px;line-height:1.3;
}
#lao-practice-dialog .lp-writing-modes button[aria-pressed=true]{background:#e5f1e7;color:#24644a;border-color:#b2cdb7}
#lao-practice-dialog .lp-card-swipe-hint{font-size:11px;color:var(--learning-card-muted);text-align:center;line-height:1.35}
#lao-practice-dialog .lp-writing-section .shared-study-grades:has(button:disabled)+.lp-card-swipe-hint{opacity:.65}
#lao-practice-dialog .lp-reading-deck>p{font-size:12px;text-align:center;margin:0}
@media(max-height:620px){
  #lao-practice-dialog.lp-card-playing{padding:9px}
  #lao-practice-dialog.lp-card-playing>header{top:-9px}
  #lao-practice-dialog.lp-card-playing .lp-writing-section{gap:5px}
  #lao-practice-dialog :is(.lp-writing-card,.lp-reading-card,.lp-dialogue-card){gap:5px;padding:8px}
}


/* Guided journey dashboard, scoped to the existing dialog. */
#lao-practice-dialog.lp-guided-dashboard{width:min(94vw,560px);max-height:94dvh;background:#f8f0e0;border-color:#e2cfad;padding:16px;border-radius:24px;color:#294b3e}
#lao-practice-dialog.lp-guided-dashboard>header{position:sticky;top:-16px;background:#f8f0e0;z-index:3;padding:9px 0;margin-bottom:6px}
#lao-practice-dialog .lp-journey{display:grid;gap:14px;min-width:0}
#lao-practice-dialog .lp-journey-panel{display:grid;gap:10px;min-width:0;padding:15px;background:#fffaf0;border:1px solid #e3d5ba;border-radius:18px;box-shadow:0 3px 0 #e5d8bd66}
#lao-practice-dialog .lp-journey h3{font-size:17px;line-height:1.3;margin:0;font-weight:750}
#lao-practice-dialog .lp-journey-panel>p{margin:0;font-size:12px;color:#665b47}
#lao-practice-dialog .lp-journey-hero{justify-items:center;text-align:center;padding:20px 12px;background:linear-gradient(145deg,#255f4c,#163e35);color:#fff8e5;border:0;box-shadow:0 4px 0 #133b30}
#lao-practice-dialog .lp-journey-hero>h3{font-size:20px;color:inherit}
#lao-practice-dialog .lp-journey-hero>p{color:#fff5df;font-size:12px}
#lao-practice-dialog .lp-journey-ring{width:clamp(124px,40vw,166px);aspect-ratio:1;border-radius:50%;padding:11px;box-sizing:border-box;background:conic-gradient(#e9c477 var(--journey-progress,0%),#ffffff24 0);display:grid;place-items:center}
#lao-practice-dialog .lp-journey-ring-inner{display:grid;align-content:center;justify-items:center;width:100%;height:100%;border-radius:50%;background:#214e40;gap:2px}
#lao-practice-dialog .lp-journey-ring-inner strong{font-size:clamp(28px,10vw,44px);line-height:1.05;font-variant-numeric:tabular-nums;color:#fff6dc}
#lao-practice-dialog .lp-journey-ring-inner small{font-size:11px;color:#e9d9a8}
#lao-practice-dialog .lp-journey-track{display:grid;gap:0}
#lao-practice-dialog .lp-journey-milestone{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:11px;position:relative;min-height:50px}
#lao-practice-dialog .lp-journey-milestone:not(:last-child)::after{content:'';position:absolute;top:40px;bottom:-10px;left:20px;width:2px;background:#e5d8be}
#lao-practice-dialog .lp-journey-milestone[data-state=earned]::after{background:#70a487}
#lao-practice-dialog .lp-journey-medal{display:grid;place-items:center;z-index:1;width:40px;height:40px;border:2px solid #d8cdb7;border-radius:50%;background:#f6f0e4;color:#716652;font-size:11px;font-weight:750}
#lao-practice-dialog .lp-journey-milestone[data-state=earned] .lp-journey-medal{background:#35785b;color:#fff;border-color:#35785b;font-size:18px}
#lao-practice-dialog .lp-journey-milestone[data-state=next] .lp-journey-medal{background:#f5e2aa;border-color:#b88c36;color:#664913}
#lao-practice-dialog .lp-journey-milestone>div{display:grid;gap:3px}
#lao-practice-dialog .lp-journey-milestone strong{font-size:13px}
#lao-practice-dialog .lp-journey-milestone small,#lao-practice-dialog .lp-journey-panel>small{font-size:11px;line-height:1.4;color:#746650}
#lao-practice-dialog .lp-journey-writing{position:relative}
#lao-practice-dialog .lp-journey-art{width:66px;height:66px;object-fit:contain;position:absolute;top:8px;right:12px;pointer-events:none}
#lao-practice-dialog .lp-journey-writing>h3,#lao-practice-dialog .lp-journey-writing>p{padding-right:70px}
#lao-practice-dialog .lp-journey-gauge{display:grid;gap:5px}
#lao-practice-dialog .lp-journey-label{display:flex;justify-content:space-between;align-items:baseline;gap:8px;font-size:12px}
#lao-practice-dialog .lp-journey-label strong{color:#276247;white-space:nowrap;font-variant-numeric:tabular-nums}
#lao-practice-dialog .lp-journey-gauge progress{appearance:none;width:100%;height:9px;border:0;border-radius:99px;overflow:hidden;background:#e7dfce;accent-color:#397c5c}
#lao-practice-dialog .lp-journey-gauge progress::-webkit-progress-bar{background:#e7dfce;border-radius:99px}
#lao-practice-dialog .lp-journey-gauge progress::-webkit-progress-value{background:#397c5c;border-radius:99px}
#lao-practice-dialog .lp-journey-gauge progress::-moz-progress-bar{background:#397c5c;border-radius:99px}
#lao-practice-dialog .lp-journey-badges{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
#lao-practice-dialog .lp-journey-badge{display:grid;grid-template-columns:24px minmax(0,1fr);align-items:center;column-gap:7px;padding:8px;background:#f5f0e5;border:1px solid #e4d8bd;border-radius:12px;min-width:0}
#lao-practice-dialog .lp-journey-badge>span{grid-row:1/3;display:grid;place-items:center;border-radius:50%;width:24px;height:24px;background:#e5dac3;color:#72634a;font-size:15px}
#lao-practice-dialog .lp-journey-badge[data-state=earned]{background:#e6f1e3;border-color:#b7d2b6}
#lao-practice-dialog .lp-journey-badge[data-state=earned]>span{background:#35785b;color:#fff}
#lao-practice-dialog .lp-journey-badge strong{font-size:11px;line-height:1.25;overflow-wrap:anywhere}
#lao-practice-dialog .lp-journey-badge small{font-size:10px;color:#655c4d}
#lao-practice-dialog button.lp-journey-primary{background:#286b50;color:#fffdf0;border:0;border-radius:12px;padding:12px;min-height:44px;font-weight:700;box-shadow:0 3px 0 #174a37}
#lao-practice-dialog .lp-journey-review{background:#f4e7c9;border-color:#ddc698}
#lao-practice-dialog .lp-journey-badges button,#lao-practice-dialog .lp-journey-sync button{min-height:44px;text-align:left;border:1px solid #dccdb0;background:#fffdf7;font-size:12px;border-radius:11px;color:#345a43}
#lao-practice-dialog .lp-journey-sync{box-shadow:none;background:#f7f2e7}
#lao-practice-dialog .lp-journey-sync [role=status]{font-size:12px;line-height:1.4}
@media(max-width:350px){#lao-practice-dialog.lp-guided-dashboard{padding:11px}#lao-practice-dialog .lp-journey-panel{padding:11px}#lao-practice-dialog .lp-journey-badges{grid-template-columns:1fr}}

/* One visual reference for guided conversations, writing and independent reading. */
#lao-practice-dialog.lp-card-playing.lp-dialogue-playing .lp-dialogue-slot{display:grid;gap:8px;min-width:0}
#lao-practice-dialog.lp-card-playing.lp-dialogue-playing .lp-dialogue-card{min-height:clamp(190px,38dvh,310px);padding:12px;gap:8px;border:1px solid var(--learning-card-border);border-radius:var(--learning-card-radius,16px);background:var(--learning-card-paper);box-shadow:var(--learning-card-shadow);color:var(--learning-card-ink);text-align:center;justify-items:center;align-content:center}
#lao-practice-dialog.lp-card-playing .lp-dialogue-card .lp-extra-glyph{font-family:var(--learning-card-font);font-weight:650;font-size:clamp(26px,7.5vw,46px);line-height:1.5;color:var(--learning-card-ink);max-width:100%;overflow-wrap:anywhere}
#lao-practice-dialog.lp-card-playing .lp-dialogue-card .lp-dialogue-context{font-size:13px;color:var(--learning-card-muted);line-height:1.4}
#lao-practice-dialog.lp-card-playing .lp-dialogue-face,#lao-practice-dialog.lp-card-playing .lp-dialogue-answer{width:100%;min-width:0;gap:6px}
#lao-practice-dialog.lp-card-playing .lp-dialogue-meaning{font-size:clamp(17px,5vw,23px);line-height:1.4;color:var(--learning-card-ink);overflow-wrap:anywhere}
#lao-practice-dialog.lp-card-playing .lp-dialogue-phonetic{font-size:13px;color:var(--learning-card-muted);overflow-wrap:anywhere}
#lao-practice-dialog.lp-card-playing .lp-dialogue-card :is(.lp-dialogue-reveal,.lp-dialogue-listen){border:1px solid var(--learning-card-border);background:#f7f0e4;color:var(--learning-card-ink);border-radius:12px;min-height:42px;padding:7px 12px;font-size:12px;line-height:1.3}
#lao-practice-dialog.lp-card-playing .lp-dialogue-meta{text-align:center}
#lao-practice-dialog.lp-card-playing .lp-dialogue-slot>progress{height:6px;accent-color:#357b60}
#lao-practice-dialog.lp-card-playing .lp-dialogue-back{border:0;padding:7px;font-size:12px;color:var(--learning-card-muted)}
@media(max-height:620px){#lao-practice-dialog.lp-card-playing.lp-dialogue-playing .lp-dialogue-slot{gap:5px}#lao-practice-dialog.lp-card-playing.lp-dialogue-playing .lp-dialogue-card{min-height:0;gap:5px;padding:8px}}
/* Restore original alternating artwork sides; retain current sizes, spacing and hero. */
html body #home-view .pathway-grid .pathway-card{column-gap:clamp(12px,4vw,22px)!important;padding-right:clamp(17px,5vw,27px)!important}
html body #home-view .pathway-grid .pathway-card:is(.daily-path,.reading-path,.grammar-path){grid-template-columns:minmax(0,1fr) var(--lao4me-home-art-width,120px)!important}
html body #home-view .pathway-grid .pathway-card:is(.count-path,.writing-path){grid-template-columns:var(--lao4me-home-art-width,120px) minmax(0,1fr)!important}
html body #home-view .pathway-grid .pathway-card>.pathway-mark.action-art{grid-column:2!important;grid-row:1 / 5;place-self:center!important}
html body #home-view .pathway-grid .pathway-card>:is(.pathway-kicker,h2,p,.pathway-progress){grid-column:1!important;text-align:left}
html body #home-view .pathway-grid .pathway-card:is(.count-path,.writing-path)>.pathway-mark.action-art{grid-column:1!important}
html body #home-view .pathway-grid .pathway-card:is(.count-path,.writing-path)>:is(.pathway-kicker,h2,p,.pathway-progress){grid-column:2!important}
html body #home-view .pathway-grid .pathway-card>.pathway-button{grid-column:1 / -1!important}
html body #home-view .explorer-tool-grid button{grid-template-columns:var(--lao4me-home-art-width,120px) minmax(0,1fr)!important;column-gap:clamp(12px,4vw,22px)!important;padding-right:clamp(18px,5vw,28px)!important}
html body #home-view .explorer-tool-grid button>.explorer-copy{grid-column:2!important;grid-row:1!important;text-align:left;min-width:0}
html body #home-view .explorer-tool-grid button>.explorer-art{grid-column:1!important;grid-row:1!important;justify-self:center!important}
html body #home-view .explorer-tool-grid button[data-view="qcm"]{grid-template-columns:minmax(0,1fr) var(--lao4me-home-art-width,120px)!important;column-gap:clamp(8px,2.5vw,14px)!important;padding-right:clamp(23px,6vw,32px)!important}
html body #home-view .explorer-tool-grid button[data-view="qcm"]>.explorer-copy{grid-column:1!important}
html body #home-view .explorer-tool-grid button[data-view="qcm"]>.explorer-art{grid-column:2!important}
html body #home-view .explorer-tool-grid button[data-view="memocards"]{column-gap:clamp(18px,5vw,26px)!important}
html body #home-view .welcome-row{margin-bottom:16px!important}
html body #home-view .greeting-card{transform:rotate(-4deg) scale(1.55)!important}
@media(max-width:760px){
 html body #home-view .welcome-row{padding:8px 16px calc(30px + var(--home-hero-fill,0px))!important;margin:2px 0 16px!important;gap:6px!important}
 html body #home-view .greeting-card{width:min(100%,calc((100vw - 8px)/1.50))!important;margin:clamp(24px,7vw,30px) auto 0!important}
}
@media(min-width:761px){html body #home-view .welcome-row{min-height:325px!important;padding-block:14px!important;margin-bottom:18px!important}}
/* Review uses the exact same vintage frame and market photo, in a smaller framed hero. */
html body #review-view .review-page-head.review-polaroid-hero{box-sizing:border-box;max-width:500px;margin:0 auto 18px;padding:16px 14px 20px;border:1px solid #efdfc7;border-radius:22px;background:linear-gradient(110deg,#fff7e6,#fffdf8 65%,#f1ead9);box-shadow:0 8px 32px #3b2c160b}
html body #review-view .review-polaroid-hero .greeting-card{width:min(66%,245px)!important;margin:10px auto 0!important;transform:rotate(-4deg) scale(1.12)!important}
html body #review-view .review-polaroid-hero h1{margin-bottom:9px}


/* Preserve the same face / grading hierarchy in the three new practice decks.
   Long phrases and the writing slate may expand rather than clip the content. */
#lao-practice-dialog.lp-card-playing :is(.lp-reading-card,.lp-dialogue-card,.lp-writing-card){box-sizing:border-box;min-height:clamp(190px,38dvh,310px);background:var(--learning-card-paper,#fffdf8);border:1px solid var(--learning-card-border,#e1d2b9);border-radius:var(--learning-card-radius,16px);box-shadow:var(--learning-card-shadow);color:var(--learning-card-ink,#19604f)}
#lao-practice-dialog.lp-card-playing :is(.lp-reading-card,.lp-dialogue-card,.lp-writing-card) [hidden],#lao-practice-dialog.lp-card-playing .lp-extra-body>[hidden]{display:none!important}
#lao-practice-dialog.lp-card-playing :is(.lp-reading-deck,.lp-writing-section,.lp-dialogue-slot)>.shared-study-grades{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important}
@media(max-height:620px){#lao-practice-dialog.lp-card-playing :is(.lp-reading-card,.lp-dialogue-card,.lp-writing-card){min-height:0}}


/* The actual practice screens share Lao4Me's approved card palette and illustration assets. */
#lao-practice-dialog.lp-practice-polished{
 position:fixed;inset:0;margin:auto;box-sizing:border-box;width:min(440px,calc(100vw - 22px));max-width:calc(100vw - 22px);
 max-height:calc(100dvh - 22px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));overflow:auto;overscroll-behavior:contain;
 padding:12px;border:1px solid var(--learning-card-border,#e1d2b9);border-radius:23px;background:var(--learning-card-shell,#fffaf0);color:var(--learning-card-ink,#19604f);box-shadow:0 20px 75px #163b2960;
}
#lao-practice-dialog.lp-practice-polished::backdrop{background:#183c3080;backdrop-filter:blur(2px)}
#lao-practice-dialog.lp-practice-polished>header{position:sticky;top:-12px;z-index:5;margin:0 0 8px;padding:4px 0;min-height:36px;background:var(--learning-card-shell,#fffaf0)}
#lao-practice-dialog.lp-practice-polished>header h2{font-size:16px;font-weight:750;line-height:1.25;color:var(--learning-card-ink,#19604f)}
#lao-practice-dialog.lp-practice-polished>header>button{display:grid;place-items:center;width:34px;height:34px;min-width:34px;padding:0;border:0;border-radius:8px;background:transparent;color:#2b6a53;font-size:26px;line-height:1}
#lao-practice-dialog.lp-practice-polished .lp-extra-body{display:grid;gap:12px;min-width:0}
#lao-practice-dialog .lp-practice-hero{display:grid;grid-template-columns:minmax(0,1fr) clamp(74px,24vw,112px);align-items:center;gap:12px;padding:14px 12px;border:1px solid #e5c9a7;border-radius:19px 15px 20px 16px;background:linear-gradient(145deg,#fffdf8,#f6ead7);box-shadow:0 3px 0 #dfc7a8,0 7px 18px #6541240d;min-width:0}
#lao-practice-dialog .lp-practice-hero-copy{display:grid;gap:5px;min-width:0}
#lao-practice-dialog .lp-practice-hero .lp-card-kicker{text-align:left;font-size:10px;letter-spacing:.09em;color:#8c684b}
#lao-practice-dialog .lp-practice-hero h3{margin:0;font-size:clamp(17px,4.8vw,21px);line-height:1.25;color:#563530;font-weight:750}
#lao-practice-dialog .lp-practice-hero p{margin:0;color:#78685a;font-size:12px;line-height:1.45}
#lao-practice-dialog .lp-practice-hero img{width:100%;height:auto;aspect-ratio:1;object-fit:contain;object-position:center;filter:drop-shadow(0 3px 4px #63472712)}
#lao-practice-dialog .lp-practice-hero-compact{grid-template-columns:minmax(0,1fr) 68px;padding:9px 11px;gap:8px}
#lao-practice-dialog .lp-practice-hero-compact h3{font-size:16px}
#lao-practice-dialog .lp-practice-panel,#lao-practice-dialog .lp-practice-situation{display:grid;gap:9px;min-width:0;padding:13px;border:1px solid var(--learning-card-border,#e1d2b9);border-radius:var(--learning-card-radius,16px);background:var(--learning-card-paper,#fffdf8);box-shadow:var(--learning-card-shadow,0 2px 0 #e7d9c2)}
#lao-practice-dialog .lp-practice-panel-head{display:flex;align-items:center;gap:9px}
#lao-practice-dialog .lp-practice-panel h3,#lao-practice-dialog .lp-practice-list-heading{font-size:15px;font-weight:750;line-height:1.35;margin:0;color:#315b48}
#lao-practice-dialog .lp-practice-step{width:31px;height:31px;flex:none;display:grid;place-items:center;border-radius:50%;background:#e8f1e4;color:#2a674d;font-size:12px;font-weight:750}
#lao-practice-dialog .lp-practice-panel-copy{font-size:12px;color:#65776d;line-height:1.45;margin:0}
#lao-practice-dialog.lp-practice-polished label{font-size:12px;font-weight:700;color:#395648}
#lao-practice-dialog.lp-practice-polished :is(input:not([type=range],[type=file]),textarea){width:100%;box-sizing:border-box;min-height:44px;background:#fffaf1;border:1px solid #e1d2b9;border-radius:12px;padding:10px 12px;color:#264b3d;font-size:16px;line-height:1.4}
#lao-practice-dialog.lp-practice-polished textarea{min-height:100px;resize:vertical}
#lao-practice-dialog .lp-practice-target{font-family:var(--learning-card-font);font-weight:650;font-size:clamp(26px,8vw,42px);line-height:1.5;background:#f6f0e4;border-radius:12px;padding:9px;overflow-wrap:anywhere}
#lao-practice-dialog .lp-practice-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#lao-practice-dialog.lp-practice-polished button:is(.lp-practice-primary,.lp-practice-secondary){min-height:44px;border-radius:12px;padding:9px 11px;box-sizing:border-box;white-space:normal;line-height:1.3;font-size:13px;font-weight:750}
#lao-practice-dialog.lp-practice-polished button.lp-practice-primary{background:#286b50;color:#fffdf0;border:1px solid #286b50;box-shadow:0 3px 0 #174a37}
#lao-practice-dialog.lp-practice-polished button.lp-practice-secondary{background:#f7f0e4;color:#315b48;border:1px solid #e1d2b9;box-shadow:none}
#lao-practice-dialog.lp-practice-polished :is(button,input,textarea,summary):focus-visible{outline:2px solid #357b60;outline-offset:2px}
#lao-practice-dialog .lp-practice-status{font-size:12px;line-height:1.45;color:#315b48;background:#edf4e9;border-radius:10px;padding:8px 10px;margin:0}
#lao-practice-dialog :is(.lp-practice-status,.lp-practice-report):empty{display:none}
#lao-practice-dialog .lp-practice-report{display:grid;gap:7px;border-top:1px solid #e7d9c2;padding-top:10px;min-width:0;font-size:12px}
#lao-practice-dialog .lp-practice-report p{margin:0}
#lao-practice-dialog .lp-practice-panel audio{width:100%;min-width:0;height:42px}
#lao-practice-dialog .lp-practice-details{font-size:11px;line-height:1.5;color:#65776d;padding:3px 6px}
#lao-practice-dialog .lp-practice-details summary{cursor:pointer;font-weight:700;color:#4c6959}
#lao-practice-dialog .lp-practice-details p{margin:5px 0 0}
#lao-practice-dialog .lp-practice-situation{padding:9px;gap:7px}
#lao-practice-dialog .lp-practice-situation .lp-practice-situation-main{display:grid;grid-template-columns:31px minmax(0,1fr) 14px;gap:10px;align-items:center;padding:5px 3px;border:0;background:transparent;text-align:left;min-height:58px}
#lao-practice-dialog .lp-practice-situation-copy{display:grid;gap:5px;min-width:0}
#lao-practice-dialog .lp-practice-situation-copy strong{font-size:14px;line-height:1.3;color:#315b48}
#lao-practice-dialog .lp-practice-situation-copy small{font-size:11px;color:#65776d;line-height:1.35}
#lao-practice-dialog .lp-practice-situation-copy progress{height:6px;accent-color:#357b60}
#lao-practice-dialog .lp-practice-chevron{font-size:24px;color:#7b946c}
#lao-practice-dialog .lp-practice-result{background:#f0f5e9;border-color:#c5d4bd}
#lao-practice-dialog .lp-practice-counter{padding:3px 0}
#lao-practice-dialog.lp-practice-polished :is(.lp-reading-card,.lp-dialogue-card){background:var(--learning-card-paper,#fffdf8);border:1px solid var(--learning-card-border,#e1d2b9);border-radius:16px;min-height:clamp(190px,38dvh,310px);padding:12px;box-shadow:var(--learning-card-shadow);transition:transform .12s,background .18s}
#lao-practice-dialog.lp-practice-polished .lp-practice-revealed{background:#f4f8ef}
#lao-practice-dialog.lp-practice-polished .lp-reading-card .lp-extra-glyph{font-family:var(--learning-card-font);font-size:clamp(32px,9vw,58px);line-height:1.5}
#lao-practice-dialog.lp-practice-polished [hidden]{display:none!important}
@media(max-height:620px){#lao-practice-dialog.lp-practice-polished{padding:9px}#lao-practice-dialog.lp-practice-polished>header{top:-9px}#lao-practice-dialog .lp-practice-hero-compact{grid-template-columns:minmax(0,1fr) 48px;padding:6px 9px}#lao-practice-dialog.lp-practice-polished :is(.lp-reading-card,.lp-dialogue-card){min-height:0}#lao-practice-dialog.lp-practice-polished .lp-extra-body{gap:8px}}
@media(max-width:355px){#lao-practice-dialog .lp-practice-actions{grid-template-columns:1fr}#lao-practice-dialog .lp-practice-hero{gap:8px;padding:10px}}
@media(prefers-reduced-motion:reduce){#lao-practice-dialog.lp-practice-polished :is(.lp-reading-card,.lp-dialogue-card){transition:none}}


/* The final two optional practice screens reuse the same illustrated card system. */
#lao-practice-dialog .lp-construction-deck{display:grid;gap:9px;min-width:0}
#lao-practice-dialog .lp-construction-deck>progress{height:6px;accent-color:#357b60}
#lao-practice-dialog .lp-construction-card{justify-items:stretch;text-align:center;min-height:clamp(190px,34dvh,280px);align-content:center}
#lao-practice-dialog .lp-construction-card .lp-practice-panel-head{justify-content:center}
#lao-practice-dialog .lp-construction-prompt{font-size:clamp(17px,5vw,23px);line-height:1.4;color:#315b48;overflow-wrap:anywhere}
#lao-practice-dialog .lp-construction-output{box-sizing:border-box;min-height:70px;display:grid;place-items:center;padding:10px;background:#f6f0e4;border:1px solid #e1d2b9;border-radius:12px;font-family:var(--learning-card-font);font-size:clamp(24px,7vw,36px);line-height:1.6;overflow-wrap:anywhere}
#lao-practice-dialog .lp-construction-pieces{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
#lao-practice-dialog .lp-construction-pieces button{min-height:44px;padding:8px 13px;background:#e5f1e7;color:#24644a;border:1px solid #b2cdb7;border-radius:12px;font-family:var(--learning-card-font);font-size:22px;line-height:1.5}
@media(max-height:620px){#lao-practice-dialog .lp-construction-card{min-height:0}}

/* Four autonomous practice modules: two balanced rows, with matching card heights. */
#review-view .lp-review-practice{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:auto;align-items:stretch}
#review-view .lp-review-practice .lp-extra-tile{min-width:0;height:100%;min-height:136px}


/* Desktop harmony: the same learning views and controls, laid out as a spacious
   illustrated notebook. Mobile (<=760px) remains unchanged. */
@media (min-width: 761px) {
  html body .main-content {--desktop-header-height:74px;--desktop-nav-height:86.1px;padding-inline:clamp(24px,4vw,64px)!important;padding-bottom:121px!important}
  html body .page-view {width:min(100%,1180px)!important;min-width:0;padding:clamp(24px,3vw,40px) 0 48px!important}
  html body .main-content>#home-view {padding-top:clamp(8px,2dvh,22px)!important}
  /* A light editorial welcome, not another oversized card. The artwork is
     the visual anchor; the text sits in the centre of its own column. */
  html body #home-view .welcome-row {
    display:grid!important;grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr)!important;
    align-items:center!important;column-gap:clamp(20px,3vw,42px)!important;row-gap:16px!important;
    min-height:0!important;padding:clamp(10px,2dvh,20px) clamp(16px,2.6vw,32px) 16px!important;margin:0 0 22px!important;
    background:transparent!important;
    border:0!important;border-radius:0!important;
    box-shadow:none!important;overflow:visible!important;
  }
  html body #home-view .welcome-row .welcome-copy-block {
    grid-column:1;grid-row:1;justify-self:center;align-self:center;
    width:min(100%,430px);max-width:100%;min-width:0;text-align:center;
    display:flex;flex-direction:column;align-items:center;gap:14px;
  }
  html body #home-view .welcome-row .welcome-copy-block .eyebrow {
    display:flex;justify-content:center;flex-wrap:wrap;line-height:1.5;
    font-size:11px;letter-spacing:1.4px;color:#99674e;text-align:center;
  }
  html body #home-view .welcome-row h1 {
    font-size:clamp(32px,4vw,56px);line-height:1.13;letter-spacing:-1px;
    margin:0;color:#245d49;max-width:100%;overflow-wrap:anywhere;
  }
  html body #home-view .welcome-row .welcome-copy {
    font-size:clamp(15px,1.35vw,18px);line-height:1.65;color:#536258;
    max-width:360px;margin:0 auto;text-align:center;text-wrap:balance;
  }
  html body #home-view .welcome-row .greeting-card {
    grid-column:2;grid-row:1;justify-self:center;align-self:center;
    /* A 3:2 frame rotated by 3deg occupies ~0.718 of its width in height.
       Limit its width by both the column and the usable viewport height.
       Reserve 82px for the top spacing, hero padding and visual clearance. */
    width:min(94%,560px,max(140px,calc((100dvh - var(--desktop-header-height) - var(--desktop-nav-height) - 82px) * 1.32)))!important;
    max-width:560px!important;margin:0 auto!important;
    transform:rotate(3deg)!important;
  }
  html body #home-view .pathway-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:22px!important;margin:0 0 28px!important;align-items:stretch}
  html body #home-view .pathway-grid .pathway-card {
    --lao4me-home-art-width:clamp(86px,10vw,132px);--lao4me-home-art-height:clamp(86px,10vw,124px);
    grid-template-rows:min-content min-content auto min-content min-content!important;
    min-width:0;min-height:212px!important;align-content:stretch!important;
    padding:clamp(17px,2vw,26px)!important;column-gap:clamp(12px,2vw,24px)!important;row-gap:8px!important;
    border-radius:20px!important;box-shadow:0 5px 0 #dfc7a866,0 8px 24px #6541240c;
  }
  html body #home-view .pathway-grid .pathway-card .pathway-mark.action-art {scale:1!important;max-width:100%!important;object-fit:contain!important}
  html body #home-view .pathway-grid .pathway-card h2 {font-size:clamp(20px,2vw,26px);line-height:1.2;margin:4px 0}
  html body #home-view .pathway-grid .pathway-card p {font-size:14px;line-height:1.55;min-width:0;overflow-wrap:anywhere}
  html body #home-view .pathway-grid .pathway-card .pathway-progress {font-size:12px;line-height:1.4;flex-wrap:wrap;gap:5px;margin:6px 0}
  html body #home-view .pathway-grid .pathway-card>.pathway-button {min-height:48px;font-size:14px;white-space:normal;line-height:1.35;padding:10px 14px;align-self:end}
  html body #home-view .explorer-tools {margin-block:32px}
  html body #home-view .explorer-tools>h2 {font:600 clamp(23px,2vw,30px)/1.2 var(--serif);color:#245d49;margin-bottom:16px}
  html body #home-view .explorer-tool-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px!important}
  html body #home-view .explorer-tool-grid button {--lao4me-home-art-width:100px;--lao4me-home-art-height:90px;min-height:132px;padding:18px!important;column-gap:16px!important}
  html body #home-view .explorer-tool-grid button .explorer-art img {scale:1!important;transform:none!important}
  html body #home-view .explorer-tool-grid button .explorer-copy small {font-size:13px;line-height:1.5}
  html body #review-view .review-page-head.review-polaroid-hero {max-width:none;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.85fr);align-items:center;gap:8px 32px;padding:26px 36px;margin:0 0 28px;text-align:left}
  html body #review-view .review-polaroid-hero .eyebrow {grid-column:1;grid-row:1;justify-content:flex-start;align-self:end}
  html body #review-view .review-polaroid-hero h1 {grid-column:1;grid-row:2;align-self:start;font-size:clamp(32px,3.4vw,46px);margin:0;color:#245d49}
  html body #review-view .review-polaroid-hero .greeting-card {grid-column:2;grid-row:1 / 3;width:min(100%,290px)!important;margin:0 auto!important;transform:rotate(3deg) scale(1.03)!important}
  html body #review-view .study-wrap {width:100%;max-width:960px;margin:0 auto}
  html body #review-view .lp-review-practice {gap:18px}
  html body #review-view .lp-review-practice .lp-extra-tile {min-height:150px;padding:16px}
  html body :is(#library-view,#phrases-view) .dictionary-quick-controls {gap:14px;margin-block:12px 22px}
  html body :is(#library-view,#phrases-view) .dictionary-quick-controls .search-box {min-height:48px}
  html body :is(#library-view,#phrases-view) .dictionary-quick-controls input {font-size:15px}
  html body #library-view .dictionary-index-layout {grid-template-columns:minmax(0,1fr) 40px;gap:18px}
  html body #library-view .dictionary-alpha-rail {width:40px}
  html body #library-view .dictionary-word-list .library-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  html body #library-view .library-card {min-width:0;min-height:90px;padding:14px}
  html body #phrases-view .phrases-list {gap:16px}
  html body #reading-program-root .reading-program-head>.lp-extra-entry {grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
  html body #traveler-root .lp-traveler-tools {grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:16px}
  html body .traveler-mission-grid {gap:18px}
  html body .course-week-review-grid,html body .count-number-grid {gap:16px}
  html body .footer {width:min(100%,1180px);padding-block:18px}
  html body #mobile-page-history:not([hidden]) {width:min(100%,1180px);box-shadow:none}
  html body .shared-learning-dialog[open],html body .single-study-dialog[open],html body #count-number-dialog[open],html body #lao-practice-dialog.lp-practice-polished[open] {
    width:min(620px,calc(100vw - 48px))!important;max-width:calc(100vw - 48px)!important;
    max-height:calc(100dvh - 40px)!important;
  }
  html body #lao-practice-dialog.lp-practice-polished[open]>header h2 {font-size:19px}
  html body #lao-practice-dialog.lp-practice-polished[open] button:is(.lp-practice-primary,.lp-practice-secondary) {font-size:14px}
}
@media (min-width: 1024px) {
  /* Restore the same fixed bottom three-tab navigation as on phones.
     Reuse the original buttons and artwork; reserve room beneath all pages. */
  html body .main-content {--desktop-header-height:78px;padding-bottom:121px!important}
  html body .topbar {height:78px!important;min-height:78px!important;padding-inline:clamp(20px,4vw,60px)!important}
  html body .topbar .top-actions {--header-icon-slot:40px;--header-icon-gap:6px}
  html body .sidebar {
    position:fixed!important;inset:auto 0 0 0!important;transform:none!important;
    display:block!important;width:100%!important;max-width:none!important;
    height:86.1px!important;padding:4px 16px 6px!important;
    background:#fffaf1!important;border:0!important;border-top:1px solid #e5d8c1!important;
    box-shadow:0 -6px 20px #33452d10!important;backdrop-filter:blur(14px)!important;
    z-index:2000!important;pointer-events:auto!important;
  }
  html body.auth-locked .sidebar {display:none!important}
  html body .sidebar>.nav-list {
    display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
    grid-template-rows:73.5px!important;width:min(100%,850.5px)!important;
    height:73.5px!important;gap:10.5px!important;margin:0 auto!important;padding:0!important;
  }
  html body .sidebar>.nav-list>.nav-item:is([data-view="accueil"],[data-view="revisions"],[data-view="bibliotheque"]) {
    display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
    height:71.4px!important;min-height:71.4px!important;gap:2.1px!important;padding:3.15px!important;
    font-size:13.65px!important;border-radius:13px!important;white-space:nowrap;
  }
  html body .sidebar>.nav-list>.nav-item:not(:is([data-view="accueil"],[data-view="revisions"],[data-view="bibliotheque"])) {display:none!important}
  html body .sidebar>.nav-list>.nav-item .nav-icon {
    width:63px!important;min-width:63px!important;flex-basis:46.2px!important;height:46.2px!important;
  }
  html body .sidebar>.nav-list>.nav-item:not(.active):hover {background:#f0e9d9!important;color:#246b55!important}
  html body #mobile-page-history:not([hidden]) {top:78px!important}
  html body #mobile-menu-panel {top:84px!important}
  html body #review-view .lp-review-practice {grid-template-columns:repeat(3,minmax(0,1fr))}
  html body #library-view .dictionary-word-list .library-grid {grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (min-width: 761px) and (max-width: 1023px) {
  html body #home-view .welcome-row {padding:10px 16px 16px!important;gap:20px!important}
  html body #home-view .welcome-row .welcome-copy-block {gap:10px}
  html body #home-view .welcome-row .greeting-card {transform:rotate(3deg)!important}
  html body .sidebar {height:86.1px!important}
  html body .sidebar>.nav-list {width:min(100%,850.5px)!important;height:73.5px!important;grid-template-rows:73.5px!important;gap:10.5px!important}
  html body .sidebar>.nav-list>.nav-item {height:71.4px!important;min-height:71.4px!important;font-size:12.6px!important}
  html body .sidebar>.nav-list>.nav-item .nav-icon {width:63px!important;min-width:63px!important;flex-basis:46.2px!important;height:46.2px!important}
  html body #home-view .pathway-grid .pathway-card {--lao4me-home-art-width:82px;--lao4me-home-art-height:82px;padding:17px!important}
  html body #home-view .explorer-tool-grid button {--lao4me-home-art-width:78px;--lao4me-home-art-height:78px}
}


/* Very short landscape windows keep the greeting compact rather than
   forcing the illustration under the fixed navigation. */
@media (min-width:761px) and (max-height:460px) {
  html body #home-view .welcome-row .welcome-copy-block {gap:8px}
  html body #home-view .welcome-row h1 {font-size:clamp(26px,3vw,38px)}
  html body #home-view .welcome-row .welcome-copy {font-size:14px;line-height:1.4}
  html body #home-view .welcome-row .welcome-copy-block .eyebrow {font-size:9px}
}

/* Home desktop: distinguish the guided journey from the three utility cards. */
@media (min-width: 761px) {
  html body #home-view .explorer-tool-grid.lp-home-guided {
    grid-template-columns:minmax(0,1fr)!important;
    margin:24px 0 32px!important;
  }
  html body #home-view .lp-home-guided button.guided-path-tile {
    position:relative;display:grid!important;
    grid-template-columns:clamp(100px,13vw,156px) minmax(0,1fr) 48px!important;
    grid-template-rows:auto!important;align-items:center!important;
    gap:clamp(16px,3vw,38px)!important;
    min-height:148px!important;padding:22px clamp(22px,3.5vw,44px)!important;
    border:1px solid #b9cdb4!important;border-radius:22px!important;
    background:linear-gradient(110deg,#f9fcf2 0%,#e7efdf 100%)!important;
    box-shadow:0 4px 0 #b3c5a7,0 9px 24px #315a3810!important;
    text-align:left;transition:background .18s ease,box-shadow .18s ease;
  }
  html body #home-view .lp-home-guided button.guided-path-tile>.explorer-art {
    grid-column:1!important;grid-row:1!important;width:100%!important;max-width:156px!important;
    height:clamp(100px,11vw,126px)!important;
  }
  html body #home-view .lp-home-guided button.guided-path-tile>.explorer-copy {
    grid-column:2!important;grid-row:1!important;align-self:center;justify-self:start;min-width:0;
    display:grid!important;gap:8px!important;text-align:left!important;
  }
  html body #home-view .lp-home-guided button.guided-path-tile .explorer-copy strong {
    font:600 clamp(24px,2.6vw,34px)/1.18 var(--serif)!important;color:#24634d!important;
  }
  html body #home-view .lp-home-guided button.guided-path-tile .explorer-copy small {
    font-size:clamp(14px,1.4vw,17px)!important;color:#4d6656!important;line-height:1.5;
  }
  html body #home-view .lp-home-guided button.guided-path-tile::after {
    content:"→";position:static!important;grid-column:3;grid-row:1;place-self:center;
    display:grid!important;place-items:center;width:48px;height:48px;border-radius:50%;
    background:#246b55!important;color:#fff;font:600 25px/1 var(--sans);
    pointer-events:none;opacity:1!important;transform:none!important;
  }
  html body #home-view .lp-home-guided button.guided-path-tile:hover {
    background:linear-gradient(110deg,#f4f9ee,#dcebd5)!important;
    box-shadow:0 4px 0 #a4b99a,0 11px 26px #315a381c!important;
  }
  html body #home-view .lp-home-guided button.guided-path-tile:focus-visible {outline:3px solid #246b55;outline-offset:4px}
}
@media (min-width: 1024px) {
  html body #home-view .explorer-tools>.explorer-tool-grid {
    grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px!important;
  }
  html body #home-view .explorer-tools>.explorer-tool-grid>button {
    --lao4me-home-art-width:110px;--lao4me-home-art-height:100px;
    grid-template-columns:minmax(0,1fr)!important;grid-template-rows:100px auto!important;
    justify-items:center!important;align-content:start!important;align-items:center!important;
    min-width:0;min-height:192px!important;padding:20px 14px!important;
    row-gap:12px!important;column-gap:0!important;text-align:center!important;
  }
  html body #home-view .explorer-tools>.explorer-tool-grid>button>.explorer-art {
    grid-column:1!important;grid-row:1!important;justify-self:center!important;
  }
  html body #home-view .explorer-tools>.explorer-tool-grid>button>.explorer-copy {
    grid-column:1!important;grid-row:2!important;justify-self:stretch!important;
    display:grid!important;gap:6px!important;text-align:center!important;
  }
  html body #home-view .explorer-tools>.explorer-tool-grid>button .explorer-copy strong {
    font-size:clamp(17px,1.7vw,21px)!important;line-height:1.25;overflow-wrap:anywhere;
  }
  html body #home-view .explorer-tools>.explorer-tool-grid>button .explorer-copy small {
    font-size:14px!important;line-height:1.45;text-align:center!important;
  }
  html body #home-view .explorer-tools>.explorer-tool-grid>button .quiz-stat-line {display:inline}
  html body #home-view .explorer-tools>.explorer-tool-grid>button .quiz-stat-line+.quiz-stat-line::before {content:" · "}
}
@media (prefers-reduced-motion: reduce) and (min-width: 761px) {
  html body #home-view .lp-home-guided button.guided-path-tile {transition:none!important}
}

/* END practice-extra.css */
