/* Scoped to the existing Georgian learning tab and its temporary lesson dialog. */
.glc{--glc-accent:var(--theme-accent,var(--sea,#36d7b7));color:var(--text);font-family:Inter,system-ui,sans-serif;line-height:1.5;max-width:640px;margin:0 auto;padding:12px 2px 28px;overflow-wrap:anywhere;text-align:left}
.glc button,.glc input,.glc select{font:inherit}
.glc button{cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.glc button:disabled{opacity:.45;cursor:default}
.glc button:focus-visible,.glc input:focus-visible,.glc select:focus-visible,.glc summary:focus-visible{outline:3px solid var(--glc-accent);outline-offset:3px}
.glc h2{font-size:clamp(25px,6.5vw,34px);font-weight:800;line-height:1.18;letter-spacing:-.8px;margin:8px 0 14px;text-wrap:balance}
.glc h3{font-size:18px;font-weight:750;line-height:1.35;margin:5px 0 8px}
.glc p{margin:8px 0}
.glc .glc-muted{color:var(--text2);font-size:13px;line-height:1.6}
.glc-eyebrow{font-size:11px;font-weight:700;letter-spacing:.7px;color:var(--glc-accent)}
.glc-hero{display:grid;grid-template-columns:minmax(0,1fr) 94px;align-items:center;gap:4px;margin-bottom:18px}
.glc-hero h2{font-size:25px}
.glc-hero .glc-muted{font-size:11px}
.glc-dolphin{width:100%;max-width:160px;color:var(--glc-accent);display:block;overflow:visible}
.glc-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:var(--card);border:1px solid var(--border);border-radius:20px;margin:12px 0 18px;padding:14px 4px;box-shadow:inset 0 1px 0 var(--card-bdr-soft)}
.glc-stats>div{text-align:center;min-width:0;padding:0 4px}
.glc-stats>div+div{border-left:1px solid var(--border)}
.glc-stats strong{display:block;font-size:23px;font-weight:800;font-variant-numeric:tabular-nums;line-height:1.3}
.glc-stats strong small{font-size:13px;color:var(--glc-accent)}
.glc-stats strong span{display:inline;font-size:20px;color:var(--sand)}
.glc-stats span{display:block;font-size:10px;color:var(--text2);margin-top:5px}
.glc-launch{border:1px solid color-mix(in srgb,var(--glc-accent) 32%,transparent);border-radius:24px;padding:20px;background:radial-gradient(ellipse at 100% 0%,color-mix(in srgb,var(--glc-accent) 12%,transparent),transparent 68%),var(--card);box-shadow:0 10px 35px color-mix(in srgb,var(--glc-accent) 6%,transparent)}
.glc-launch h3{font-size:23px;letter-spacing:-.5px}
.glc-btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:11px 18px;max-width:100%;border:1px solid var(--border);border-radius:15px;background:var(--card);color:var(--text);font-weight:650;font-size:14px;text-align:center;gap:8px;line-height:1.4}
.glc-primary{background:var(--glc-accent);border-color:transparent;color:#092d30;box-shadow:0 4px 0 color-mix(in srgb,var(--glc-accent) 55%,#132d35);font-weight:800}
.glc-launch>.glc-btn{display:flex;width:100%;margin:20px 0 15px;min-height:54px;font-size:16px}
.glc-goal{text-align:center;color:var(--text2);font-size:12px}
.glc .glc-path-title{font-size:15px;margin:26px 0 18px}
.glc-path{list-style:none;margin:0 0 18px;padding:0 0 0 8px}
.glc-stop{display:grid;grid-template-columns:48px minmax(0,1fr);gap:16px;position:relative;padding:0 0 25px}
.glc-stop::before{content:'';position:absolute;left:23px;top:43px;bottom:0;width:2px;background:var(--border)}
.glc-stop:last-child::before{display:none}
.glc-node{position:relative;display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:17px;background:var(--bg3);border:1px solid var(--border);font-size:20px;font-weight:800;color:var(--text2)}
.glc-stop--ready .glc-node{color:#092d30;background:var(--glc-accent);box-shadow:0 0 22px color-mix(in srgb,var(--glc-accent) 16%,transparent)}
.glc-stop>div{padding-top:2px}
.glc-stop strong{font-size:15px;line-height:1.4}
.glc-stop p{font-size:12px;color:var(--text2);margin:5px 0 10px}
.glc-stop--locked{color:var(--text2)}
.glc-stop--locked .glc-node{font-size:16px}
.glc-stop--locked p{display:inline-block;background:var(--card);border-radius:8px;padding:3px 9px;margin-bottom:0}
.glc-stop--locked strong{display:block}
.glc-settings{display:flex;flex-wrap:wrap;gap:12px 20px;margin:20px 0 12px}
.glc-settings label{display:flex;align-items:center;gap:9px;min-height:44px;font-size:13px;color:var(--text2);cursor:pointer}
.glc-settings input{accent-color:var(--glc-accent);width:19px;height:19px}
.glc .glc-note{font-size:11px;line-height:1.7;color:var(--text2);margin:10px 0}
.glc-warning{border:1px solid var(--sand);border-radius:15px;padding:13px;font-size:13px;color:var(--text);background:var(--card)}
body.glc-studying #bottomNav{display:none!important}
body.glc-studying{overflow:hidden}
.glc.glc-session{position:fixed;inset:0;z-index:2147483000;width:100%;max-width:none;height:var(--glc-height,100dvh);margin:0;overflow-y:auto;overscroll-behavior:contain;background:var(--bg);padding:calc(max(env(safe-area-inset-top,0px),var(--tg-safe-top,0px),var(--safe-t,0px),var(--glc-tg-safe-top,0px)) + 12px) 20px calc(max(env(safe-area-inset-bottom,0px),var(--tg-safe-bottom,0px),var(--glc-tg-safe-bottom,0px)) + 24px);scroll-padding:20px;-webkit-overflow-scrolling:touch}
.glc-session-inner{max-width:480px;width:100%;min-height:100%;display:flex;flex-direction:column;margin:0 auto}
.glc-session-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:15px;font-size:12px;color:var(--text2)}
.glc-session-head .glc-btn{background:transparent;border-color:transparent;padding:8px 6px;font-size:13px;justify-content:flex-start}
.glc progress{display:block;width:100%;height:9px;border:0;border-radius:20px;overflow:hidden;background:var(--bg3);accent-color:var(--glc-accent);margin-bottom:25px}
.glc progress::-webkit-progress-bar{background:var(--bg3);border-radius:20px}
.glc progress::-webkit-progress-value{background:var(--glc-accent);border-radius:20px}
.glc progress::-moz-progress-bar{background:var(--glc-accent);border-radius:20px}
.glc-intro{background:var(--card);border:1px solid var(--border);border-radius:24px;padding:16px 20px 24px;text-align:center;margin:12px 0}
.glc-intro .glc-dolphin{width:105px;margin:0 auto 6px}
.glc .glc-ka{font-size:clamp(28px,8vw,39px);font-weight:700;color:var(--glc-accent);letter-spacing:0;font-family:system-ui,sans-serif;line-height:1.5}
.glc-intro h3{margin:15px 0 10px;font-size:23px}
.glc-intro>p:last-child{color:var(--text2);font-size:14px;line-height:1.65}
.glc-actions{display:flex;flex-direction:column;gap:12px;padding:25px 0 8px;margin-top:auto}
.glc-actions>.glc-btn{width:100%;min-height:54px;font-size:16px}
.glc-options{display:grid;gap:12px;margin:15px 0 22px}
.glc-option{display:flex;align-items:center;gap:12px;min-height:64px;width:100%;border:2px solid var(--border);border-radius:18px;padding:14px;background:var(--card);color:var(--text);text-align:left;font-size:19px;line-height:1.4}
.glc-option>span:nth-child(2){flex:1;min-width:0}
.glc-option-no{width:27px;height:27px;display:flex;align-items:center;justify-content:center;border:1px solid var(--border);border-radius:8px;font-size:12px;color:var(--text2);flex-shrink:0}
.glc-option.glc-selected{border-color:var(--glc-accent);background:color-mix(in srgb,var(--glc-accent) 9%,var(--bg));opacity:1}
.glc-option:disabled{opacity:.75}
.glc-pairs{display:grid;gap:16px;margin:16px 0 24px}
.glc-pairs label{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);align-items:center;gap:12px;font-size:17px}
.glc-pairs select{min-width:0;width:100%;min-height:54px;border:1px solid var(--border);border-radius:13px;background:var(--bg3);color:var(--text);padding:8px;font-size:15px}
.glc-input-label{display:block;font-size:13px;color:var(--text2);margin:18px 0 8px}
.glc-input{display:block;width:100%;min-width:0;min-height:66px;font-size:25px!important;color:var(--text);background:var(--card);border:2px solid var(--border);border-radius:17px;padding:14px;margin:0 0 15px}
.glc-keyboard{margin:12px 0 18px}
.glc-keyboard summary{font-size:13px;color:var(--glc-accent);cursor:pointer;min-height:44px;padding:12px 0}
.glc-keys{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}
.glc-keys button{min-height:45px;min-width:0;border:1px solid var(--border);border-radius:10px;background:var(--bg3);color:var(--text);font-size:23px}
.glc-key-tools{display:flex;gap:6px;margin:10px 0}
.glc-key-tools .glc-btn{flex:1;min-width:0;padding:8px 4px;font-size:11px}
.glc-built{min-height:90px;border:2px dashed var(--border);border-radius:18px;padding:15px;display:flex;flex-wrap:wrap;align-items:center;gap:9px;color:var(--text2);margin:18px 0 15px}
.glc-tokens{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:20px}
.glc-token{min-height:50px;border:1px solid var(--border);border-radius:12px;background:var(--bg3);color:var(--text);padding:10px 14px;font-size:20px}
.glc-feedback{border:1px solid var(--border);border-left:4px solid var(--glc-accent);border-radius:16px;background:var(--card);padding:17px;margin:10px 0 0;font-size:14px}
.glc-feedback strong{font-size:16px;color:var(--glc-accent)}
.glc-feedback p{margin-top:10px;line-height:1.7}
.glc-incorrect{border-left-color:var(--sand)}
.glc-incorrect>strong{color:var(--sand)}
.glc-result-hero{text-align:center;padding:10px 0 15px}
.glc-result-hero .glc-dolphin{width:155px;margin:0 auto}
.glc-result-hero h2{font-size:50px;margin:12px 0 4px}
.glc-result-hero>p:last-child{font-size:14px;color:var(--text2)}
.glc-result-stats{text-align:center;padding:20px;border:1px solid var(--border);border-radius:22px;background:var(--card);margin:0 0 26px}
.glc-result-stats strong{font-size:29px;color:var(--glc-accent)}
.glc-result-stats p{font-size:13px;color:var(--text2)}
.glc-review-list{list-style:none;margin:10px 0 15px}
.glc-review-list li{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 15px;padding:12px 0;border-bottom:1px solid var(--border)}
.glc-review-list strong{font-size:18px}
.glc-review-list span{font-size:13px;color:var(--text2)}
.glc-result-actions .glc-note{text-align:center;margin:0}
.glc[data-effects="true"] button{transition:transform 160ms ease-out,border-color 160ms ease-out}
.glc[data-effects="true"] button:active:not(:disabled){transform:scale(.98)}
@media(hover:hover) and (pointer:fine){.glc button:hover:not(:disabled){border-color:var(--glc-accent)}}
@media(prefers-reduced-motion:reduce){.glc button{transition:none!important;transform:none!important}}
@media(max-width:359px){.glc-hero{grid-template-columns:minmax(0,1fr) 85px}.glc-hero h2{font-size:25px}.glc.glc-session{padding-left:14px;padding-right:14px}.glc-launch{padding:17px}.glc-pairs{gap:14px}.glc-pairs label{font-size:15px;gap:7px}.glc-pairs select{font-size:14px}}

/* The course map scrolls below the existing section header without stacking tabs over it. */
.lg-tabbar.glc-tabs{position:relative;top:auto}

/* Stage two: three real lessons, one compact path. */
body.glc-learning #telegramHandoffCta,body.glc-studying #telegramHandoffCta{display:none!important}
body.tg-handoff-visible.glc-learning #scrExplore{padding-bottom:calc(var(--bottom-h) + var(--safe-b) + 2rem)!important}
.glc-game-path{padding:0 12px 8px;margin:0 0 16px}
.glc-level{position:relative;display:flex;align-items:center;gap:18px;min-height:100px}
.glc-level:nth-child(even){margin-left:42px}
.glc-level::after{content:'';position:absolute;top:50px;left:31px;width:3px;height:109px;border-radius:3px;background:var(--border);transform:rotate(-23deg);transform-origin:top center;z-index:0}
.glc-level:nth-child(even)::after{transform:rotate(23deg)}
.glc-level:last-child::after{display:none}
.glc-level-node{position:relative;z-index:1;flex:0 0 64px;width:64px;height:64px;min-height:64px;border:2px solid var(--glc-accent);border-radius:50%;background:var(--bg2);color:var(--glc-accent);font-size:25px;font-weight:800;box-shadow:0 5px 0 var(--bg3)}
.glc-level--current .glc-level-node{background:var(--glc-accent);color:#092d30;outline:2px solid color-mix(in srgb,var(--glc-accent) 38%,transparent);outline-offset:6px;box-shadow:0 5px 0 color-mix(in srgb,var(--glc-accent) 55%,#132d35),0 0 25px color-mix(in srgb,var(--glc-accent) 15%,transparent)}
.glc-level--done .glc-level-node{background:var(--glc-accent);color:#092d30}
.glc-level--locked .glc-level-node{border-color:var(--border);color:var(--text2);background:var(--bg3);opacity:.65}
.glc-level-label{min-width:0;position:relative;z-index:1}
.glc-level-label strong{font-size:15px;line-height:1.35;display:block}
.glc-level-label p{font-size:12px;color:var(--text2);margin:5px 0}
.glc-level--current .glc-level-label p{color:var(--glc-accent)}
.glc-review-card{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:17px;background:var(--card);border:1px solid var(--border);border-radius:20px}
.glc-review-card strong{font-size:26px;line-height:1.2;color:var(--glc-accent)}
.glc-review-card p{color:var(--text2);font-size:12px;margin:4px 0 0}
.glc-review-card>.glc-btn{flex-shrink:0;max-width:55%}
.glc-source-note{font-size:11px;color:var(--text2);margin-top:16px}
.glc-source-note summary{cursor:pointer;padding:12px 0;min-height:44px}
.glc-source-note a{color:var(--glc-accent)}
/* Selection is neutral; correctness is a separate, labelled state. */
.glc .glc-option.glc-selected{border-color:var(--text2);background:var(--bg3);color:var(--text)}
.glc .glc-option.glc-answer-right{border-color:var(--glc-accent);background:color-mix(in srgb,var(--glc-accent) 10%,var(--bg));opacity:1}
.glc .glc-option.glc-answer-wrong{border-color:var(--coral);background:color-mix(in srgb,var(--coral) 9%,var(--bg));opacity:1}
.glc-answer-tag{display:block;font-size:11px;line-height:1.4;margin-top:6px;color:var(--text2);font-weight:650}
.glc-answer-right .glc-answer-tag,.glc-answer-right .glc-option-no{color:var(--glc-accent)}
.glc-answer-wrong .glc-answer-tag,.glc-answer-wrong .glc-option-no{color:var(--coral)}
.glc-feedback-guide{display:flex;align-items:center;gap:12px}
.glc-feedback-guide .glc-dolphin{width:68px;flex:0 0 68px}
.glc-feedback-guide strong{font-size:15px}
.glc-unlock{border:1px solid color-mix(in srgb,var(--glc-accent) 35%,transparent);background:var(--card);border-radius:18px;padding:15px;margin:0 0 20px;color:var(--glc-accent);font-size:14px}
.glc-unlock p{color:var(--text);margin-bottom:0}
.glc-reward{position:relative;display:inline-block}
.glc-reward-spark{position:absolute;inset:-12px -28px;pointer-events:none;color:var(--sand);font-size:16px;letter-spacing:28px;white-space:nowrap}
.glc-reward-spark::before{content:'✦  ✧'}
.glc-session h2:focus{outline:none}
@media(max-width:359px){.glc-level{gap:14px}.glc-level-label strong{font-size:14px}.glc-level:nth-child(even){margin-left:28px}.glc-level::after{transform:rotate(-16deg);height:104px}.glc-level:nth-child(even)::after{transform:rotate(16deg)}.glc-review-card{padding:14px}.glc-review-card>.glc-btn{font-size:13px;padding:10px}}

body.glc-learning #exploreHeader{background:color-mix(in srgb,var(--bg) 92%,transparent)!important;border-radius:16px}
body.glc-learning #scrExplore{scroll-padding-top:64px}
.glc-level-node svg{display:block;width:24px;height:24px;margin:auto}
.glc-incorrect .glc-feedback-guide strong{color:var(--sand)}

.glc-result-actions{margin-top:0;margin-bottom:22px;padding-top:0}


/* A completed count reflects real lessons; it is not a language level. */
.glc-course-meter{margin:23px 0 0}
.glc-course-meter>span{display:block;font-size:12px;color:var(--text2);margin-bottom:9px}
.glc .glc-course-meter progress{margin-bottom:0;height:7px}
.glc-match-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;margin:14px 0 0}
.glc-match-column{display:grid;grid-auto-rows:1fr;gap:10px;min-width:0}
.glc-match-card{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;min-width:0;min-height:82px;padding:13px 10px;border:2px solid var(--border);border-radius:17px;background:var(--card);color:var(--text);text-align:center;line-height:1.4}
.glc-match-text{font-size:15px;overflow-wrap:anywhere}
.glc-match-text[lang="ka"]{font:17px/1.5 system-ui,sans-serif}
.glc-pair-tag{display:block;min-height:15px;font-size:10px;color:var(--text2);font-weight:650}
/* Matching colors identify chosen links, not correctness before checking. */
.glc .glc-match-card.glc-pair-linked{--glc-pair-color:var(--glc-accent);border-color:var(--glc-pair-color);background:color-mix(in srgb,var(--glc-pair-color) 22%,var(--bg));opacity:1}
.glc .glc-match-card[data-pair-color="1"]{--glc-pair-color:#60a5fa}
.glc .glc-match-card[data-pair-color="2"]{--glc-pair-color:#c084fc}
.glc .glc-match-card[data-pair-color="3"]{--glc-pair-color:#fbbf24}
.glc .glc-match-card[data-pair-color="4"]{--glc-pair-color:#f472b6}
.glc .glc-match-card[data-pair-color="5"]{--glc-pair-color:#a3c94b}
.glc .glc-match-card.glc-pair-active{border-color:var(--glc-accent);background:color-mix(in srgb,var(--glc-accent) 24%,var(--bg));box-shadow:0 0 0 2px var(--bg),0 0 0 4px var(--glc-accent);opacity:1}
.glc .glc-match-card.glc-pair-linked.glc-pair-active{border-color:var(--glc-pair-color);background:color-mix(in srgb,var(--glc-pair-color) 28%,var(--bg))}
.glc .glc-match-card.glc-pair-active:focus-visible{outline-offset:5px}
.glc .glc-match-card.glc-answer-right{border-color:var(--glc-accent);background:color-mix(in srgb,var(--glc-accent) 9%,var(--bg));opacity:1}
.glc .glc-match-card.glc-answer-wrong{border-color:var(--coral);background:color-mix(in srgb,var(--coral) 8%,var(--bg));opacity:1}
.glc-match-card.glc-answer-right .glc-pair-tag{color:var(--glc-accent)}
.glc-match-card.glc-answer-wrong .glc-pair-tag{color:var(--coral)}
.glc .glc-pair-status{min-height:21px;margin:10px 0}
@media(max-width:359px){.glc-match-columns{gap:8px}.glc-match-card{padding:11px 7px;min-height:80px}.glc-match-text{font-size:13px}.glc-match-text[lang="ka"]{font-size:15px}}

/* Extra practice is optional and kept below the next-lesson action. */
.glc-difficult{margin:0 0 24px;padding:18px;border:1px solid var(--border);border-radius:20px;background:var(--card)}
.glc-difficult .glc-btn{width:100%;margin-top:10px}
.glc-difficult .glc-review-list{padding-left:0}
.glc-review-date{color:var(--glc-accent);font-weight:650}

/* Reference cards use only completed lessons and never change course progress. */
.glc-vocabulary{margin:22px 0;padding:0 16px;border:1px solid var(--border);border-radius:20px;background:var(--card)}
.glc-vocabulary summary{cursor:pointer;min-height:48px;align-content:center;font-size:14px;line-height:1.5}
.glc-vocabulary>summary{padding:15px 0;font-size:16px}
.glc-vocabulary>summary>span,.glc-vocabulary-group>summary>small{float:right;color:var(--glc-accent);font-variant-numeric:tabular-nums;margin-left:8px}
.glc-vocabulary[open]{padding-bottom:12px}
.glc-vocabulary-group{margin:10px 0 0;border-top:1px solid var(--border)}
.glc-vocabulary-group>summary{position:relative;padding:10px 26px 10px 0;font-weight:650}
.glc-vocabulary-group>summary>small{position:absolute;right:0;top:12px;float:none;margin:0}
.glc-word{border:1px solid var(--border);border-radius:14px;margin:8px 0;background:var(--bg)}
.glc-word>summary{padding:12px;overflow-wrap:anywhere}
.glc-word>summary>strong{font-size:18px;font-weight:650}
.glc-word>summary>span{display:block;padding:4px 0 0 16px;font-size:11px;color:var(--text2)}
.glc-word>summary>.glc-word-hide,.glc-word[open]>summary>.glc-word-show{display:none}
.glc-word[open]>summary>.glc-word-hide{display:block}
.glc-word-body{padding:0 12px 12px;font-size:13px}
.glc-word-body h3{font-size:16px}
.glc-word-body p{line-height:1.65}

/* A situation is checked per reply, with text and symbols as well as color. */
.glc-scene-step{border:2px solid var(--border);border-radius:18px;padding:14px;background:var(--card)}
.glc-scene-step label{grid-template-columns:minmax(0,1fr);gap:10px;font-size:14px}
.glc-scene-step label>span{display:flex;align-items:center;gap:9px}
.glc-scene-number{display:inline-flex;align-items:center;justify-content:center;flex:0 0 25px;width:25px;height:25px;border:1px solid var(--border);border-radius:8px;font-size:11px;color:var(--text2)}
.glc-scene-step select{font-size:18px;line-height:1.5;min-height:54px}
.glc-scene-step select:disabled{opacity:1;-webkit-text-fill-color:var(--text);color:var(--text)}
.glc-scene-right{border-color:var(--glc-accent)}
.glc-scene-wrong{border-color:var(--coral)}
.glc .glc-scene-status{font-size:12px;margin:12px 0 0;font-weight:700;color:var(--glc-accent)}
.glc .glc-scene-wrong .glc-scene-status{color:var(--coral)}
.glc-scene-correction{display:block;margin-top:6px;color:var(--text2);font-size:12px;font-weight:400;line-height:1.7}
.glc-scene-correction strong{display:block;font-size:18px;color:var(--text);font-weight:650;overflow-wrap:anywhere}
.glc .glc-script-hint{padding:10px 12px;border:1px solid var(--border);border-radius:12px;background:var(--card);font-size:12px;margin:0 0 8px}

/* Completion includes successful corrections; it never changes first-attempt scores. */
.glc-session-progress{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 12px;margin:-14px 0 22px;font-size:11px;line-height:1.6;color:var(--text2);font-variant-numeric:tabular-nums}
.glc-pending-count{padding:2px 8px;border:1px solid var(--border);border-radius:8px;background:var(--bg3);color:var(--text);font-size:11px;font-weight:650}
.glc-tasks-done{color:var(--glc-accent);font-size:11px;font-weight:650}
.glc-session-head>span{text-align:right;min-width:0;overflow-wrap:anywhere}

/* Learning is a quiet part of the existing shell; delayed tourist overlays wait. */
body.glc-learning .tourist-modal-overlay,body.glc-learning #telegramHandoffCta,body.glc-learning #adsFormOverlay,body.glc-learning #donateOverlay{display:none!important;pointer-events:none!important}
.glc-reading{padding:16px;border:1px solid var(--border);border-radius:22px;background:var(--card);margin:0 0 18px}
.glc-reading-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-top:1px solid var(--border)}
.glc-reading-row>div{min-width:0}
.glc-reading-row strong{font-size:14px}
.glc-reading-row small{display:block;color:var(--text2);font-size:11px;margin-top:4px}
.glc-reading-row .glc-btn{flex-shrink:0;min-width:48px;padding:9px}
.glc-alphabet-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0 22px}
.glc-alphabet-grid>div{padding:10px 4px;text-align:center;border:1px solid var(--border);border-radius:13px;background:var(--bg)}
.glc-alphabet-grid strong{display:block;font:30px/1.5 system-ui,sans-serif;color:var(--text)}
.glc-alphabet-grid small{display:block;min-height:20px;color:var(--text2);font-size:10px;line-height:1.4}
.glc-writing-help{border:1px solid var(--border);border-radius:18px;background:var(--card);padding:14px;margin:14px 0}
.glc-writing-help summary{min-height:44px;padding:8px 0;cursor:pointer;font-size:13px}
.glc-writing-help .glc-ka{text-align:center}
.glc-writing-help>.glc-btn{width:100%}
.glc-letter-breakdown{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin:12px 0}
.glc-letter-breakdown>span{min-width:34px;padding:5px;border:1px solid var(--border);border-radius:9px;text-align:center}
.glc-letter-breakdown strong{display:block;font:23px/1.4 system-ui,sans-serif}
.glc-letter-breakdown small{font-size:10px;color:var(--text2)}
.glc-letter-word{font:32px/1.5 system-ui,sans-serif;text-align:center;color:var(--glc-accent)}
.glc-partner{border:1px solid var(--border);border-radius:20px 20px 20px 5px;background:var(--card);padding:16px 18px;margin:12px 0}
.glc-partner>small{color:var(--text2);font-size:11px}
.glc-partner>p{font:27px/1.5 system-ui,sans-serif;color:var(--glc-accent);margin:8px 0}
.glc-partner>span{font-size:13px;color:var(--text2)}
.glc .glc-dialogue-cue{font-size:21px;letter-spacing:-.3px;line-height:1.4;margin:16px 0 8px}
.glc-feedback>.glc-dolphin{width:70px;float:left;margin:0 10px 4px 0}
.glc-feedback::after{content:'';display:block;clear:both}
.glc-audio{margin:8px 0}
.glc-audio>small{display:block;font-size:10px;color:var(--text2)}
@media(max-width:359px){.glc-reading{padding:14px}.glc-reading-row .glc-btn{max-width:48%;font-size:12px}.glc .glc-dialogue-cue{font-size:19px}.glc-alphabet-grid{gap:6px}}

.glc-alphabet-grid .glc-audio .glc-btn{width:100%;min-width:0;padding:8px 2px;font-size:10px;overflow-wrap:anywhere}

/* One scrolling content area and a separate, always-visible primary action. */
.glc.glc-session{top:var(--glc-top,0px);bottom:auto;display:flex;flex-direction:column;overflow:hidden;padding:calc(max(env(safe-area-inset-top,0px),var(--tg-safe-top,0px),var(--safe-t,0px),var(--glc-tg-safe-top,0px)) + 6px) 14px 0;scroll-padding:0}
.glc-session .glc-session-inner{display:block;flex:1 1 0;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scroll-behavior:auto;scroll-padding:10px;padding:0 2px 12px;-webkit-overflow-scrolling:touch}
.glc-session-footer{flex:0 0 auto;width:100%;max-width:480px;margin:0 auto;padding:10px 0 calc(max(env(safe-area-inset-bottom,0px),var(--tg-safe-bottom,0px),var(--glc-tg-safe-bottom,0px)) + 10px);border-top:1px solid var(--border);background:var(--bg)}
.glc-session-footer .glc-actions{display:flex;flex-direction:row;gap:8px;padding:0;margin:0}
.glc-session-footer .glc-actions>.glc-btn{flex:1 1 0;min-width:0;min-height:48px;padding:10px 12px;font-size:15px;line-height:1.3}
.glc-session-footer .glc-actions>.glc-primary{flex-grow:1.35}
.glc-session-footer .glc-actions>[data-glc="intro-prev"]{flex:0 0 48px;font-size:21px;padding:8px}
.glc-session .glc-session-head{margin-bottom:6px;gap:10px}
.glc-session .glc-session-head .glc-btn{min-height:44px;padding:6px 4px}
.glc-session progress{height:7px;margin-bottom:14px}
.glc-session .glc-session-progress{margin:-7px 0 10px;gap:4px 8px;line-height:1.4}
.glc-session h2{font-size:clamp(21px,5.6vw,28px);line-height:1.25;letter-spacing:-.4px;margin:6px 0 10px}
.glc-session .glc-eyebrow{margin:5px 0;font-size:10px}
.glc-session .glc-intro{margin:6px 0;padding:10px 14px 14px;border-radius:20px}
.glc-session .glc-intro .glc-dolphin{width:58px;margin:0 auto 2px}
.glc-session .glc-ka{font-size:clamp(28px,7vw,34px);line-height:1.35;margin:6px 0}
.glc-session .glc-intro h3{font-size:19px;line-height:1.35;margin:8px 0}
.glc-session .glc-intro>p:last-child{font-size:13px;line-height:1.5}
.glc-session .glc-note{line-height:1.5;margin:6px 0}
.glc-session .glc-muted{line-height:1.5}
.glc-session .glc-settings{gap:6px 16px;margin:8px 0}
.glc-session .glc-options{gap:8px;margin:8px 0 12px}
.glc-session .glc-option{min-height:54px;padding:9px 12px;font-size:18px;line-height:1.35;border-radius:15px}
.glc-session .glc-answer-tag{font-size:10px;margin-top:3px}
.glc-session .glc-feedback{padding:12px;margin-top:8px;font-size:13px}
.glc-session .glc-feedback p{margin-top:6px;line-height:1.5}
.glc-session .glc-feedback .glc-dolphin{width:48px;max-width:48px;flex-basis:48px}
.glc-session .glc-feedback-guide{gap:8px}
.glc-session .glc-feedback-guide strong{font-size:14px}
.glc-session .glc-feedback:focus{outline:none}
.glc-session .glc-match-columns{gap:8px;margin-top:10px}
.glc-session .glc-match-column{gap:8px}
.glc-session .glc-match-card{min-height:66px;padding:9px 8px;gap:5px;border-radius:14px}
.glc-session .glc-pair-status{min-height:16px;margin:6px 0}
.glc-session .glc-input-label{margin:10px 0 6px}
.glc-session .glc-input{min-height:56px;font-size:24px!important;padding:10px 12px;margin-bottom:10px}
.glc-session .glc-keyboard{margin:8px 0 12px}
.glc-session .glc-keys button{min-height:44px}
.glc-session .glc-built{min-height:66px;padding:10px;gap:7px;margin:10px 0}
.glc-session .glc-tokens{gap:7px;margin-bottom:12px}
.glc-session .glc-token{min-height:44px;padding:8px 11px;font-size:18px}
.glc-session .glc-letter-word{font-size:28px;margin:6px 0}
.glc-session .glc-partner{padding:10px 14px;margin:8px 0;border-radius:17px 17px 17px 5px}
.glc-session .glc-partner>p{font-size:25px;margin:5px 0}
.glc-session .glc-partner>span{font-size:12px}
.glc-session .glc-dialogue-cue{font-size:clamp(18px,5vw,22px);line-height:1.3;margin:10px 0 6px}
.glc-session .glc-result-hero{padding:0 0 8px}
.glc-session .glc-result-hero .glc-dolphin{width:88px}
.glc-session .glc-result-hero h2{font-size:38px;margin:6px 0 4px}
.glc-session .glc-result-hero>p:last-child{font-size:13px}
.glc-session .glc-result-stats{padding:12px;margin-bottom:12px;border-radius:18px}
.glc-session .glc-result-stats strong{font-size:25px}
.glc-session .glc-unlock{padding:12px;margin-bottom:12px}
/* Route uses the shared lesson dialog, focus trap and non-overlapping footer. */
.glc-route-entry{border:1px solid var(--border);border-radius:20px;padding:14px;margin:16px 0;background:var(--card)}
.glc-aided{border-color:var(--glc-accent);background:var(--card)}
.gr-root{min-width:0}.gr-root>svg.glc-dolphin{max-width:115px;margin:12px auto}
.gr-score{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.gr-score section{padding:12px;border:1px solid var(--border);border-radius:18px;min-width:0;background:var(--card)}.gr-score p{font-size:13px}
.gr-map{list-style:none;padding:0;margin:20px 0}.gr-map li{display:grid;grid-template-columns:30px minmax(0,1fr) minmax(70px,110px);gap:8px;align-items:center;position:relative;min-height:72px;padding:8px 0;font-size:13px}.gr-map li::before{content:'';position:absolute;top:0;bottom:0;left:14px;border-left:2px solid var(--border);z-index:0}.gr-map-number{position:relative;background:var(--bg);border:2px solid var(--glc-accent);border-radius:50%;width:30px;height:30px;display:grid;place-items:center}.gr-map-dolphins{display:flex;gap:4px;justify-content:flex-end}.gr-map-dolphin{width:48px;min-width:0;text-align:center}.gr-map-dolphin .glc-dolphin{width:42px;height:36px}.gr-map-dolphin small{display:block;overflow-wrap:anywhere;font-size:9px}.gr-seat-1 .glc-dolphin{filter:hue-rotate(45deg)}
.gr-study{padding:14px;margin:14px 0;border:1px solid var(--border);border-radius:18px;background:var(--card)}.gr-study .glc-btn,.gr-history .glc-btn{margin:8px 6px 0 0}.gr-root select{display:block;box-sizing:border-box;width:100%;min-width:0;min-height:48px;background:var(--bg);color:var(--text);border:1px solid var(--border);border-radius:12px;padding:8px;margin:8px 0;font:inherit}.gr-root details{margin:14px 0}.gr-root summary{cursor:pointer;min-height:44px;padding:10px 0}.gr-postcard{border:2px solid var(--glc-accent);border-radius:24px;background:linear-gradient(150deg,color-mix(in srgb,var(--glc-accent) 20%,var(--bg)),var(--bg));padding:20px;text-align:center;margin:16px 0}.gr-postcard .glc-dolphin{width:100px;margin:auto}.gr-root .glc-option{justify-content:center}.gr-root progress{width:100%}

.gr-root .glc-session-head [data-route="refresh"]{min-width:44px;justify-content:center}
/* Optional reading aid; never changes Georgian answer text or button values. */
.glc .glc-transcription{display:block;font-family:Inter,system-ui,sans-serif;font-size:12px;font-weight:450;line-height:1.45;letter-spacing:0;color:var(--text2);margin:3px 0;overflow-wrap:anywhere;text-align:inherit}
.glc .glc-intro>.glc-transcription{font-size:15px}
.glc .glc-match-card .glc-transcription{font-size:11px;margin:1px 0}
.glc .glc-keyboard button .glc-transcription{font-size:9px;line-height:1.1;margin:1px 0 0}
.glc .glc-letter-breakdown .glc-transcription{font-size:11px}

/* Keep the optional reading-aid selector within narrow course cards. */
.glc-settings select{max-width:100%;min-height:36px;border:1px solid var(--border);border-radius:9px;padding:4px 8px;background:var(--card);color:inherit;font:inherit}
.glc-settings label{max-width:100%;flex-wrap:wrap}

/* Learning hierarchy: one next step, then the course and optional entrances. */
.glc:not(.glc-session):not(.glc-utility){padding-top:6px}
.glc .glc-hero{grid-template-columns:minmax(0,1fr) 64px;gap:10px;margin-bottom:10px}
.glc .glc-hero h2{font-size:clamp(22px,5.5vw,28px);line-height:1.16;letter-spacing:-.5px;margin:2px 0 6px}
.glc .glc-hero .glc-dolphin{width:64px}
.glc .glc-hero .glc-muted{font-size:12px;line-height:1.4;margin:0}
.glc .glc-stats{padding:9px 0;margin:0 0 12px;border-radius:14px;box-shadow:none}
.glc .glc-stats>div{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap;padding:0 5px}
.glc .glc-stats strong{font-size:18px;line-height:1.3}
.glc .glc-stats>div>span{font-size:12px;margin:0;line-height:1.3}
.glc .glc-stats strong span{font-size:16px}
.glc .glc-stats strong small{font-size:13px;color:var(--text)}
.glc .glc-launch{padding:15px 16px;border-radius:20px;box-shadow:none;margin-bottom:20px}
.glc .glc-launch h3{font-size:21px;line-height:1.25;margin:4px 0 7px}
.glc .glc-launch .glc-muted{font-size:14px;line-height:1.45;margin:6px 0 12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.glc .glc-launch .glc-btn{width:100%;margin:0;min-height:48px}
.glc .glc-launch .glc-eyebrow{font-size:11px;margin:0;color:var(--text2)}
.glc .glc-course-meter{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 8px}
.glc .glc-course-meter h3{font-size:16px;margin:0}
.glc .glc-course-meter>span{margin:0;font-size:12px;text-align:right}
.lg-tabbar.glc-tabs{padding:4px;gap:2px;margin-bottom:8px}
.lg-tabbar.glc-tabs .lg-tab{min-height:48px;padding:5px 3px;gap:3px}
.lg-tabbar.glc-tabs .lg-tab-icon{width:19px;height:19px}
.lg-tabbar.glc-tabs .lg-tab-label{font-size:11px;line-height:1.2}
/* Numbers stay visible even when a stage is completed. The line stays between nodes. */
.glc .glc-game-path{padding:4px 10px 8px;margin:0 0 12px}
.glc .glc-level{min-height:104px;gap:20px}
.glc .glc-level:nth-child(even){margin-left:28px}
.glc .glc-level::after{top:52px;left:31px;height:108px;transform:rotate(-15deg);width:2px}
.glc .glc-level:nth-child(even)::after{transform:rotate(15deg)}
.glc .glc-level-node{width:64px;height:64px;flex-basis:64px;opacity:1;box-shadow:0 4px 0 var(--border)}
.glc .glc-level--current .glc-level-node{box-shadow:0 4px 0 color-mix(in srgb,var(--glc-accent) 55%,var(--bg));outline-offset:4px}
.glc .glc-level--done .glc-level-node{background:var(--card);border-color:var(--glc-accent);color:var(--glc-accent)}
.glc .glc-level--locked .glc-level-node{opacity:1;background:var(--bg3);color:var(--text2);border-color:var(--border)}
.glc-stage-icon{display:grid;place-items:center;font-size:27px}
.glc .glc-stage-icon svg{width:27px;height:27px}
.glc-stage-number{position:absolute;right:-5px;bottom:-5px;display:grid;place-items:center;min-width:24px;height:24px;padding:0 4px;border:1px solid var(--border);border-radius:8px;font-size:12px;font-weight:750;background:var(--bg);color:var(--text)}
.glc .glc-stage-title{display:flex;align-items:center;gap:8px;max-width:100%;min-height:44px;text-align:left;color:var(--text);background:none;border:0;padding:5px 0;font:inherit}
.glc .glc-stage-title strong{font-size:16px;line-height:1.35;overflow-wrap:anywhere}
.glc-stage-title>span{font-size:13px;color:var(--text2)}
.glc .glc-level-label p{font-size:13px;line-height:1.4;margin:0}
.glc .glc-secondary{display:grid;gap:12px;margin:12px 0 20px}
.glc-reading-entry,.glc .glc-review-card,.glc .glc-route-entry{border:1px solid var(--border);border-radius:18px;background:var(--card);padding:14px;margin:0}
.glc-reading-entry>summary{display:flex;align-items:center;gap:12px;list-style:none;cursor:pointer;min-height:44px}
.glc-reading-entry>summary::-webkit-details-marker{display:none}
.glc-reading-entry>summary>span:nth-child(2){flex:1;min-width:0}
.glc-reading-entry>summary svg{width:26px;height:26px;color:var(--glc-accent)}
.glc-reading-entry summary small{display:block;color:var(--text2);font-size:13px;margin-top:3px}
.glc-reading-entry .glc-reading{padding:12px 0 0;margin:0;border:0;border-radius:0;background:transparent}
.glc .glc-reading-row small{font-size:12px}
.glc .glc-review-card{gap:10px}
.glc .glc-review-card h3{font-size:16px;margin:0}
.glc .glc-review-card strong{font-size:16px;margin-left:4px}
.glc .glc-review-card p{font-size:13px;line-height:1.45}
.glc .glc-review-card>.glc-btn{padding:10px 12px;font-size:13px}
/* Only server-supplied facts are shown in the friend entrance. */
.glc-route-art{position:relative;display:flex;align-items:center;justify-content:space-between;height:64px;margin:0 4px 12px}
.glc-route-art>svg{position:absolute;left:42px;right:42px;width:calc(100% - 84px);height:38px;color:var(--border)}
.glc-route-art .glc-dolphin{width:62px;height:54px}
.glc-route-avatar{position:relative;z-index:1;background:var(--card);border-radius:50%}
.glc-route-avatar:last-child .glc-dolphin{transform:scaleX(-1)}
.glc-route-avatar b{position:absolute;right:0;bottom:0;display:grid;place-items:center;width:21px;height:21px;font-size:12px;border:1px solid var(--text2);background:var(--card);border-radius:50%}
.glc-route-avatar:last-child b{border-radius:5px}
.glc .glc-route-entry h3{font-size:17px;margin:0 0 5px}
.glc .glc-route-entry p{font-size:13px;line-height:1.5;margin:4px 0 12px;color:var(--text2)}
.glc-route-entry .glc-btn{width:100%}
.glc .glc-source-note,.glc .glc-note{font-size:13px}
/* Teaching card: Georgian → meaning → optional approximate reading → usage. */
.glc-session .glc-intro{text-align:left;padding:18px;margin:12px 0;background:var(--card)}
.glc-session .glc-intro .glc-ka{font-size:clamp(29px,6vw,36px);line-height:1.5;overflow-wrap:anywhere;word-break:normal;margin:0 0 10px}
.glc-session .glc-intro h3{font-size:21px;line-height:1.4;margin:0 0 8px}
.glc-card-reading{display:flex;flex-wrap:wrap;align-items:center;gap:3px 8px;margin:0 0 8px}
.glc .glc-card-reading .glc-transcription{width:100%;font-size:15px;line-height:1.5;margin:0;color:var(--text2)}
.glc-card-reading>span{font-size:12px;color:var(--text2)}
.glc-card-reading .glc-btn{border:0;padding:4px;min-width:44px;min-height:44px;background:none;font-size:19px}
.glc-session .glc-intro .glc-card-usage{font-size:15px;line-height:1.65;margin:8px 0 0}
.glc-card-tools{display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px;margin:8px 0}
.glc-card-tools label{display:flex;align-items:center;gap:8px;min-height:44px;font-size:13px;color:var(--text2)}
.glc-card-tools input{width:19px;height:19px;accent-color:var(--glc-accent)}
.glc-card-tools>.glc-btn{background:none;border:0;font-size:12px;min-height:44px;padding:6px 0;color:var(--text2)}
.glc-session .glc-outcome{font-size:14px}
.glc-session .glc-session-head{display:grid;grid-template-columns:auto minmax(0,1fr) 44px;align-items:center;margin-bottom:8px}
.glc-session .glc-session-head>span{font-size:13px;line-height:1.35}
.glc-session .glc-session-head>[data-glc="settings"]{width:44px;padding:0;font-size:21px}
.glc-session .glc-pending-count{display:inline-block;margin:0 0 8px;font-size:12px;line-height:1.4}
.glc-session .glc-eyebrow{font-size:12px;line-height:1.4}
.glc-session .glc-input-label{font-size:13px}
.glc-session .glc-answer-tag{font-size:12px}
.glc-session .glc-feedback{font-size:14px}
.glc-session .glc-match-card .glc-pair-tag{font-size:12px}
.glc .glc-btn{min-height:44px}
/* Native modal above the lesson dialog, with its own scroll and focus scope. */
.glc.glc-utility{position:fixed;inset:0;box-sizing:border-box;width:min(520px,calc(100% - 28px));max-height:calc(100dvh - 32px);max-height:calc(min(86dvh,740px));margin:auto;padding:0;border:1px solid var(--border);border-radius:22px;color:var(--text);background:var(--bg);box-shadow:0 20px 70px #0006;overflow:hidden}
.glc-utility[open]{display:flex;flex-direction:column}
.glc-utility::backdrop{background:#0009}
.glc-utility>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid var(--border);flex:0 0 auto}
.glc-utility>header h2{font-size:21px;line-height:1.3;margin:0;letter-spacing:-.3px}
.glc-utility>header .glc-btn{width:44px;flex:0 0 44px;padding:0}
.glc-utility-body{padding:4px 18px 20px;overflow-y:auto;overscroll-behavior:contain;font-size:15px;line-height:1.6}
.glc-utility-body a{display:block;min-height:44px;color:var(--glc-accent);overflow-wrap:anywhere}
.glc-utility .glc-settings{display:grid;gap:12px;margin:12px 0 0}
.glc-utility .glc-settings label{display:flex;align-items:center;gap:10px;min-height:48px;font-size:15px;color:var(--text)}
.glc-utility .glc-settings select{min-height:44px;font-size:15px}
.glc-stage-preview{display:flex;gap:12px;align-items:center;margin:14px 0}
.glc-stage-preview svg{width:32px;height:32px;color:var(--glc-accent)}
@media(min-width:768px) and (min-height:540px){
 .glc-session .glc-session-inner{flex:0 1 auto;margin-top:24px;max-width:560px;padding-bottom:8px}
 .glc-session .glc-session-footer{max-width:560px;margin:10px auto 0}
 .glc-session h2{font-size:28px}
}
@media(max-width:359px){.glc .glc-game-path{padding-left:4px;padding-right:0}.glc .glc-level{gap:15px}.glc .glc-level:nth-child(even){margin-left:24px}.glc .glc-level::after{transform:rotate(-13deg)}.glc .glc-level:nth-child(even)::after{transform:rotate(13deg)}.glc .glc-review-card{flex-wrap:wrap}.glc .glc-review-card>.glc-btn{max-width:none}.glc .glc-stats>div{gap:3px}.glc .glc-stats>div>span{font-size:11px}}
@media(prefers-reduced-motion:reduce){.glc *{scroll-behavior:auto!important}}
body.glc-learning .lg-tabbar.glc-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch}
body.glc-learning .lg-tabbar.glc-tabs .lg-tab{display:flex;flex-direction:column;justify-content:center;min-width:0;min-height:62px;padding:4px 2px}
body.glc-learning .lg-tabbar.glc-tabs .lg-tab-label{white-space:normal;overflow-wrap:anywhere;font-size:11px;line-height:1.15}
.glc .glc-hero .glc-muted{font-size:12px;line-height:1.35}
.glc .glc-stats{padding:9px 0}
.glc .glc-stats>div{flex-direction:column;gap:1px;flex-wrap:nowrap}
.glc .glc-stats>div>span{font-size:12px;line-height:1.25}
.glc .glc-card-reading [data-glc="transcript-info"]{font:italic 700 18px Georgia,serif}
body.glc-learning .category-swipe-coach{display:none}
body.glc-learning .lg-tabbar.glc-tabs .lg-tab-icon{flex:0 0 18px;height:18px;width:22px;border-radius:6px}
body.glc-learning .lg-tabbar.glc-tabs .lg-tab-label{text-align:center;font-size:11px}
body.glc-learning .lg-tabbar.glc-tabs .lg-tab-trainer .lg-tab-label[data-short-label]{font-size:0}
body.glc-learning .lg-tabbar.glc-tabs .lg-tab-trainer .lg-tab-label[data-short-label]::after{content:attr(data-short-label);font-size:11px;line-height:1.15}
.glc .glc-stats strong span{margin:0}
.glc .glc-stats strong small{display:inline}
.glc.glc-utility{max-height:min(calc(var(--glc-height,100dvh) - 28px),740px)}
.glc.glc-utility{top:calc(var(--glc-top,0px) + var(--glc-height,100dvh)/2);bottom:auto;margin:0 auto;transform:translateY(-50%)}
/* The pair is an illustration, never a rendering of hidden race positions. */
.glc-route-art{justify-content:flex-start}
.glc-route-art>svg{left:122px;right:0;width:calc(100% - 122px)}
.glc-route-avatar:last-child{margin-left:-10px}

/* Answer help stays in the exercise flow; no overlay or extra sticky controls. */
.glc-hint-progress{font-size:.88rem;font-weight:650;color:var(--text-primary,var(--text));margin:10px 0;line-height:1.4}
.glc-revealed-answer>p[lang]{font-size:1.2rem;line-height:1.7;overflow-wrap:anywhere;margin:8px 0}
.glc-exercise>[data-glc="assist"],.glc-options+[data-glc="assist"]{margin-top:10px;min-height:44px}

/* Optional three-card routine in the shared lesson reference. */
.glc-routine{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:10px 0}
.glc-routine article{min-width:0;border:1px solid var(--border);border-radius:12px;padding:8px;background:var(--bg3)}
.glc-routine svg{display:block;width:22px;height:22px;color:var(--glc-accent);margin-bottom:6px}
.glc-routine strong{display:block;font-size:14px;line-height:1.4}
.glc .glc-routine p{font-size:14px;line-height:1.4;margin:5px 0 0}

/* Small answer-help control in the task header, above long questions and pairs. */
.glc-session .glc-exercise-head{grid-template-columns:auto minmax(0,1fr) auto;gap:6px}
.glc-session-tools{display:flex;align-items:center;gap:3px}
.glc-session .glc-session-tools>[data-glc="settings"]{width:44px;padding:0;font-size:21px}
.glc-session .glc-session-head .glc-hint-trigger{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:44px;min-height:44px;padding:6px 8px;border:1px solid var(--border);border-radius:13px;color:var(--glc-accent);font-size:12px;white-space:nowrap}
.glc-hint-trigger svg{width:18px;height:18px;flex:none}
@media(max-width:360px){.glc-hint-trigger>span{display:none}.glc-session .glc-session-head .glc-hint-trigger{width:44px;padding:0}}

.glc-audio-controls{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.glc .glc-audio-controls .glc-btn{min-width:44px;min-height:44px;padding:6px 10px}
.glc-audio-missing{display:block;color:var(--text2);font-size:12px;line-height:1.5;margin-top:8px}

/* Stable audio status space; controls wrap without shrinking touch targets. */
.glc .glc-audio {min-width:0;margin:6px 0}
.glc .glc-audio-controls {align-items:center;gap:4px;margin-top:4px}
.glc .glc-audio-speed {display:flex;gap:2px;margin-left:auto}
.glc .glc-audio-speed [aria-pressed="true"] {border-color:var(--glc-accent,#45dfc1);background:var(--glc-soft,rgba(69,223,193,.15));font-weight:700}
.glc .glc-audio>small {font-size:12px;line-height:1.5;color:var(--text2);margin-top:4px}
.glc .glc-audio [data-glc-audio-status] {min-height:2.8em;margin:2px 0;line-height:1.4;font-size:13px;overflow-wrap:anywhere}
.glc .glc-audio-controls .glc-btn {min-width:44px;min-height:44px;padding:6px 8px;font-size:13px}
.glc .glc-audio-controls .glc-btn:focus-visible {outline:3px solid var(--glc-accent,#45dfc1);outline-offset:2px}
.glc .glc-audio[data-state="Loading"] [data-glc-audio-status]::before {content:"⏳ ";}
/* The existing utility dialog also hosts read-only lesson cards. */
.glc-card-viewer .glc-utility-body {min-height:0;padding-bottom:8px;overflow-x:hidden}
.glc-card-viewer .glc-ka {overflow-wrap:anywhere;word-break:normal}
.glc-cards-actions {display:grid;grid-template-columns:1fr 1fr;gap:8px;flex:0 0 auto;padding:10px 16px max(12px,env(safe-area-inset-bottom),var(--glc-tg-safe-bottom,0px));border-top:1px solid var(--border)}
.glc-cards-actions .glc-btn {min-width:0;min-height:44px;white-space:normal;overflow-wrap:anywhere}
.glc-cards-return {grid-column:1/-1}
.glc-card-viewer header h2 {min-width:0;overflow-wrap:anywhere}
.glc-card-viewer .glc-card-tools label {min-height:44px;display:flex;align-items:center}
.glc-card-viewer .glc-utility-body>.glc-eyebrow {font-size:13px}
.glc.glc-card-viewer {width:min(520px,calc(100% - 16px));max-height:calc(var(--glc-height,100dvh) - max(16px,env(safe-area-inset-top),var(--glc-tg-safe-top,0px)) - max(12px,env(safe-area-inset-bottom),var(--glc-tg-safe-bottom,0px)))}
.glc-card-viewer .glc-cards-return {font-size:14px}
