.gl-root{--gl-ink:#284b3c;--gl-muted:#7b8978;--gl-paper:#fff9ec;--gl-coral:#e96b49;--gl-border:#32583d21;color:var(--gl-ink);font-family:Arial,Helvetica,sans-serif}.gl-root [hidden]{display:none!important}.gl-root button,.gl-menu-summary button{touch-action:manipulation;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none}.gl-root button:focus-visible,.gl-root input:focus-visible,.gl-root textarea:focus-visible,.gl-root select:focus-visible,.gl-menu-summary button:focus-visible{outline:3px solid #dd7958;outline-offset:3px}.gl-menu-summary{display:flex;width:100%;gap:6px;margin:0 0 13px;height:44px;color:#294c3e}.gl-menu-lesson{display:flex;align-items:center;gap:8px;flex:1;min-width:0;border:1px solid #30553d26;border-radius:8px;padding:6px 9px;background:#fffaf0e8;text-align:left}.gl-menu-mark{color:#dc7853;font-size:19px}.gl-menu-lesson>span:nth-child(2){min-width:0;display:flex;flex-direction:column;gap:4px}.gl-menu-lesson b{font-size:10px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gl-menu-lesson small{font-size:7px;color:#7c8a78;letter-spacing:.25px}.gl-menu-lesson i{font-style:normal;margin-left:auto;color:#bd7a50;font-size:14px}.gl-menu-basket{font-size:13px;white-space:nowrap;border:1px solid #30553d26;border-radius:8px;background:#fffaf0d9;padding:0 10px}.gl-menu-basket span{font-size:9px;margin-left:3px}.gl-card{position:fixed;left:40px;bottom:126px;width:300px;max-width:calc(100vw - 40px);background:#fff9eef0;border:1px solid #fff9;border-radius:13px;padding:13px 15px 10px;z-index:8;backdrop-filter:blur(12px);box-shadow:0 5px 25px #20483014}.gl-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.gl-card-kicker{font-size:7px;letter-spacing:1px;color:#809174;text-transform:uppercase;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gl-translation-toggle{font-size:11px;min-width:28px;height:24px;border-radius:5px;background:#e7eadc;color:#467052}.gl-translation-toggle[aria-pressed="false"]{background:#f1e9db;color:#a49883;text-decoration:line-through}.gl-word-button{display:flex;flex-direction:column;gap:5px;width:100%;border:0;background:none;padding:6px 0 11px;text-align:left;color:var(--gl-ink);cursor:pointer}.gl-current-text{font-size:24px;line-height:1.22;font-weight:600;max-height:90px;overflow:auto;touch-action:pan-y;overflow-wrap:anywhere;width:100%;unicode-bidi:plaintext}.gl-current-translation{font-size:12px;line-height:1.5;color:#7b8673;max-height:56px;overflow:auto;touch-action:pan-y;overflow-wrap:anywhere;width:100%;unicode-bidi:plaintext}.gl-card-bottom{border-top:1px solid var(--gl-border);padding-top:8px;display:flex;align-items:center;gap:5px}.gl-speech-hint{font-size:5.6px;letter-spacing:.5px;line-height:1.5;flex:1;max-width:135px;color:#899880}.gl-card-bottom button{height:25px;min-width:25px;border-radius:5px;background:#edf0e2;font-size:10px;padding:3px 7px}.gl-card-bottom .gl-example{font-size:8px;background:#f1e6d2;color:#96714f;white-space:nowrap}.gl-card-basket span{font-size:8px;margin-left:3px}.gl-backdrop{position:fixed;inset:0;background:#18342b76;backdrop-filter:blur(9px);padding:20px;display:flex;align-items:center;justify-content:center;z-index:70;touch-action:pan-y}.gl-dialog{position:relative;background:var(--gl-paper);border-radius:18px;width:min(100%,510px);max-height:calc(100dvh - 40px);overflow:auto;overscroll-behavior:contain;touch-action:pan-y;padding:30px 29px 22px;box-shadow:0 20px 90px #14322140}.gl-close{position:absolute;top:13px;right:17px;width:32px;height:32px;font-size:26px;line-height:1;background:none;color:#92a184}.gl-eyebrow{font-size:7px;letter-spacing:1.7px;font-weight:600;color:#87937c;padding-right:22px}.gl-dialog h2{font-family:Georgia,'Times New Roman',serif;font-size:29px;font-weight:400;letter-spacing:-1px;margin:14px 0 22px;line-height:1.15;padding-right:6px}.gl-tabs{display:flex;gap:4px;padding:4px;background:#e9ecdf;border-radius:9px;margin-bottom:19px}.gl-tabs button{width:50%;background:none;border-radius:6px;font-size:11px;padding:9px 8px}.gl-tabs button[aria-selected="true"]{background:#fffdf4;box-shadow:0 2px 8px #1e3e2510;color:#305c42}.gl-basket-count{font-size:9px;margin-left:5px;border-radius:20px;background:#e6eddc;padding:2px 5px}.gl-current-lesson{display:flex;flex-direction:column;gap:6px;margin-bottom:18px;padding:12px;background:#f0efdf;border:1px solid #325d3510;border-radius:8px}.gl-current-lesson b{font-size:12px;font-weight:600;overflow-wrap:anywhere}.gl-current-lesson span{font-size:9px;line-height:1.5;color:#7c8b73}.gl-practice{margin:0 0 16px;border:0;padding:0;display:flex;gap:20px;font-size:11px}.gl-practice legend{font-size:11px;font-weight:600;margin-bottom:10px}.gl-practice label{display:flex;align-items:center;gap:6px}.gl-root input{accent-color:#5d7f5a}.gl-options{border-top:1px solid var(--gl-border);border-bottom:1px solid var(--gl-border);padding:8px 0}.gl-options>label{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 0;font-size:10px}.gl-options input[type="checkbox"]{width:17px;height:17px;margin:0}.gl-volume input{width:105px;height:15px;touch-action:pan-x}.gl-dialog h3{font-size:12px;font-weight:600;margin:23px 0 8px}.gl-note{font-size:9px;line-height:1.65;color:#839077;margin:0 0 12px}.gl-language-row{display:flex;gap:10px;margin:0 0 12px}.gl-language-row>label{width:50%;font-size:9px;line-height:1.5;color:#7b8a73}.gl-language-row select{display:block;width:100%;margin-top:5px;padding:10px 7px;border:1px solid #cdd3bf;background:#fffdf5;border-radius:6px;color:#395a40;font-size:11px;touch-action:manipulation}.gl-root .gl-secondary{background:#e8eddc;border:1px solid #d5dfc5;border-radius:7px;color:#516e4b;padding:10px 12px;font-size:10px}.gl-root .gl-primary{background:var(--gl-coral);color:#fffaf0;border-radius:7px;padding:11px 14px;font-size:10px;letter-spacing:.4px;border:1px solid transparent}.gl-root button:disabled{opacity:.45;cursor:default}.gl-sample{width:100%;margin-bottom:8px}.gl-import-label{font-size:10px;display:block;font-weight:600;margin:19px 0 8px}.gl-dialog textarea{display:block;width:100%;border:1px solid #cdd3bf;background:#fffdf5;border-radius:7px;padding:11px;font:11px/1.6 Arial,Helvetica,sans-serif;color:#3f5d46;user-select:text;-webkit-user-select:text;touch-action:pan-y;resize:vertical;min-height:86px;max-height:240px}.gl-import-actions{display:flex;align-items:center;gap:15px;margin-top:10px}.gl-file-label{position:relative;font-size:10px;color:#708866;text-decoration:underline;text-underline-offset:4px;cursor:pointer;padding:10px 0}.gl-file{position:absolute;inset:0;width:100%;opacity:0;cursor:pointer;font-size:10px}.gl-feedback{font-size:10px;line-height:1.6;color:#5b8156;min-height:14px;margin:12px 0 0;overflow-wrap:anywhere}.gl-feedback.gl-error{color:#b64e36}.gl-cta{display:block;text-align:center;margin-top:18px;padding-top:16px;border-top:1px solid var(--gl-border);font-size:9px;color:#809476;text-decoration:none;line-height:1.7}.gl-basket-intro{font-size:11px;line-height:1.7;color:#87977b;margin:5px 0 15px}.gl-basket-list{display:flex;flex-direction:column;gap:7px;max-height:45vh;overflow:auto;overscroll-behavior:contain;touch-action:pan-y}.gl-basket-entry{position:relative;text-align:left;padding:11px 34px 10px 12px;border:1px solid #dfe3d1;background:#fffdf4;border-radius:7px;display:flex;flex-direction:column;gap:5px;color:#3c6547;flex-shrink:0}.gl-basket-entry b{font-size:13px;font-weight:600;line-height:1.4;overflow-wrap:anywhere;unicode-bidi:plaintext}.gl-basket-entry>span{font-size:10px;color:#859676;line-height:1.4;overflow-wrap:anywhere;unicode-bidi:plaintext}.gl-basket-entry>i{position:absolute;right:12px;top:15px;font-style:normal;color:#c58150}.gl-basket-actions{display:flex;gap:9px;justify-content:space-between;margin-top:17px}.gl-modal-open .drive-controls,.gl-modal-open .camera-controls{pointer-events:none}
@media(max-width:1150px){.gl-card{left:28px;width:265px;bottom:122px}.gl-current-text{font-size:22px}.gl-speech-hint{max-width:110px;font-size:5.2px}}
@media(max-width:760px){.gl-menu-summary{height:42px;margin-bottom:11px}.gl-card{left:20px;right:20px;width:auto;max-width:none;bottom:184px;padding:10px 13px 8px;border-radius:11px}.gl-current-text{font-size:23px;max-height:58px}.gl-current-translation{font-size:11px;max-height:35px}.gl-word-button{gap:3px;padding:3px 0 8px}.gl-card-kicker{font-size:6px;letter-spacing:.8px}.gl-translation-toggle{height:22px}.gl-card-bottom{padding-top:7px}.gl-speech-hint{max-width:none;font-size:5.5px}.gl-dialog{padding:27px 22px 20px;max-height:calc(100dvh - 24px);border-radius:15px}.gl-backdrop{padding:12px}.gl-dialog h2{font-size:26px;margin-bottom:18px}.gl-language-row select{font-size:16px;min-height:40px}.gl-dialog textarea{font-size:16px;line-height:1.5}.gl-options>label{font-size:11px;padding:8px 0}.gl-root .gl-primary,.gl-root .gl-secondary{min-height:38px}.gl-card-bottom button{height:28px;padding:4px 8px;min-width:28px}.gl-current-lesson span{font-size:9px}.gl-file-label{font-size:11px}.gl-basket-entry b{font-size:14px}.gl-basket-entry span{font-size:11px}}
@media(max-width:390px){.gl-card{left:14px;right:14px;bottom:182px}.gl-current-text{font-size:21px}.gl-menu-summary{height:39px;margin-bottom:9px}.gl-menu-lesson b{font-size:9px}.gl-menu-lesson small{font-size:6.5px}.gl-dialog{padding-left:18px;padding-right:18px}.gl-import-actions{gap:12px}}
@media(orientation:landscape) and (max-height:600px){.gl-menu-summary{height:35px;margin-bottom:8px}.gl-menu-lesson{padding:4px 8px}.gl-menu-lesson b{font-size:8px}.gl-menu-lesson small{font-size:6px}.gl-menu-mark{font-size:15px}.gl-menu-basket{font-size:11px;padding:0 8px}.gl-card{left:24px;right:auto;width:265px;bottom:99px;padding:8px 11px 7px}.gl-card-kicker{font-size:5.5px}.gl-current-text{font-size:20px;max-height:48px}.gl-current-translation{font-size:10px;max-height:30px}.gl-word-button{padding:2px 0 6px;gap:3px}.gl-card-bottom{padding-top:5px}.gl-speech-hint{font-size:5px}.gl-card-bottom button{height:23px;min-width:23px;padding:3px 6px}.gl-card-bottom .gl-example{font-size:7px}.gl-dialog{width:min(100%,540px);max-height:calc(100dvh - 24px);padding:24px}.gl-dialog h2{font-size:24px}.gl-basket-list{max-height:41vh}.gl-root .gl-primary,.gl-root .gl-secondary{min-height:32px}}

.gl-current-text,.gl-current-translation{pointer-events:auto}.gl-basket-actions{flex-wrap:wrap}.gl-export-fallback textarea{max-height:190px}.gl-export-fallback .gl-import-label{font-size:10px;line-height:1.6}

/* A hidden card leaves only one small control strip at the edge of the view. */
.gl-card-kicker{min-width:0;flex:1}
.gl-card-actions{display:flex;align-items:center;gap:5px;flex-shrink:0}
.gl-card-hide{display:flex;align-items:center;justify-content:center;gap:4px;min-width:57px;min-height:32px;padding:4px 7px;background:#e8ede0;border:1px solid #b7c8b744;border-radius:7px;color:#345d46;font-size:10px}
.gl-card-hide svg,.gl-dock svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.gl-card-hide:hover,.gl-dock button:hover{background:#e1e9d7}
.gl-dock{position:fixed;left:max(40px,env(safe-area-inset-left));bottom:124px;display:flex;align-items:center;gap:3px;max-width:calc(100vw - 40px);padding:4px;background:#fff9eeed;border:1px solid #fff9;border-radius:11px;z-index:8;box-shadow:0 4px 20px #20483014;backdrop-filter:blur(12px)}
.gl-dock button{display:flex;align-items:center;justify-content:center;gap:5px;min-width:40px;min-height:40px;padding:7px 9px;background:transparent;border-radius:7px;color:#3c614a;font-size:10px;white-space:nowrap;line-height:1.2}
.gl-dock .gl-card-show{background:#e8ede0;font-weight:600;padding-left:10px;padding-right:11px}
.gl-dock .gl-dock-basket{gap:4px;padding-left:8px;padding-right:8px}
.gl-dock-basket span{font-size:10px;font-variant-numeric:tabular-nums}
.gl-dock .gl-dock-replay{padding:7px}
@media(max-width:1150px){.gl-dock{left:max(28px,env(safe-area-inset-left));bottom:122px}}
@media(max-width:760px){
  .gl-card-actions{gap:6px}
  .gl-card-hide{min-height:38px;min-width:62px;font-size:11px;padding:5px 8px}
  .gl-card-actions .gl-translation-toggle{width:38px;min-height:38px;height:auto;font-size:12px}
  .gl-dock{left:max(20px,env(safe-area-inset-left));bottom:180px;max-width:calc(100vw - 40px)}
  .gl-dock button{min-height:40px;font-size:10px}
}
@media(max-width:390px){.gl-dock{left:max(14px,env(safe-area-inset-left));max-width:calc(100vw - 28px);bottom:180px}}
@media(orientation:landscape) and (max-height:600px){
  .gl-card-hide{min-height:32px;min-width:57px;font-size:10px;padding:4px 7px}
  .gl-card-actions .gl-translation-toggle{min-height:32px;height:32px;width:32px}
  .gl-dock{left:max(24px,env(safe-area-inset-left));bottom:99px}
}
