/* COGO_GUIDE_PLAN_LAYOUT_R1 — measured space, no nested benefit scrollers. */
html body [data-membership-r4][data-plan-layout-r1] .mr4-benefits{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:1px!important;overflow:visible!important;scrollbar-gutter:auto!important;grid-auto-rows:auto!important;min-height:0!important}
html body [data-membership-r4][data-plan-layout-r1] .mr4-benefits>li{display:flex!important;flex:0 0 auto!important;flex-wrap:nowrap!important;align-items:flex-start!important;gap:10px!important;padding:5px 0!important;line-height:1.5!important}
html body [data-membership-r4][data-plan-layout-r1] .mr4-benefits>li[hidden]{display:none!important}
html body [data-membership-r4][data-plan-layout-r1] .mr4-benefits>li>span{flex:0 0 auto;font-size:12px!important}
html body [data-membership-r4][data-plan-layout-r1] .mr4-benefits>li>b{flex:0 1 auto;min-width:0;white-space:normal!important;overflow-wrap:normal!important;word-break:keep-all;font-size:12px!important;line-height:1.5!important;text-align:right}
html body [data-membership-r4][data-plan-layout-r1]:is([data-density=compact],[data-density=short]) .mr4-benefits>li{padding:3px 0!important}
html body [data-membership-r4][data-plan-layout-r1][data-audience=teacher] .mr4-benefits>li{padding:3px 0!important}
.glr-credit-link{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #dce4f0;border-radius:9px;background:#fff;color:#455f80;font:inherit;font-size:12px;font-weight:700;line-height:1.4;min-height:34px;padding:7px 12px;cursor:pointer}
.glr-credit-link:after{content:'↗';color:#8294ad}
.glr-credit-link:hover{background:#eef3fc;border-color:#bac9e2}
.glr-credit-link:focus-visible,.glr-dialog button:focus-visible{outline:2px solid #5369dc;outline-offset:3px}
@media(min-width:900px) and (min-height:620px){
 html body[data-view=guide19] #main.content:has([data-guide-layout-r1].guide23){box-sizing:border-box!important;display:flex!important;flex-direction:column!important;height:var(--glr-room,calc(100dvh - 64px))!important;max-height:var(--glr-room,calc(100dvh - 64px))!important;min-height:0!important;padding:18px 28px 10px!important;gap:12px!important;overflow:auto!important;scrollbar-gutter:auto!important}
 html body #main.content:has([data-guide-layout-r1].guide23)>.page{display:flex!important;flex-direction:column!important;flex:1 1 0!important;min-height:0!important;height:auto!important;padding:0!important;margin:0!important;overflow:visible!important}
 html body #main.content:has([data-guide-layout-r1].guide23)>#cogo-business-legal-r1{flex:none!important;margin:0!important;padding:9px 0 0!important;min-height:0!important;font-size:11px!important}
 html body #main.content:has([data-guide-layout-r1].guide23) .compact-footer{display:none!important}
 html body .guide23.guide28.guide-studio28[data-guide-layout-r1]{box-sizing:border-box!important;display:flex!important;flex-direction:column!important;flex:1 1 0!important;min-height:0!important;height:auto!important;max-height:none!important;gap:12px!important;padding:0!important;width:100%}
 html body .guide23.guide28[data-guide-layout-r1] .guide-top23{min-height:0!important;padding:17px 24px!important;margin:0!important;border-radius:18px;flex:none;align-items:center}
 html body .guide23.guide28[data-guide-layout-r1] .guide-top23 h1{font-size:27px!important;margin:3px 0!important;line-height:1.25!important}
 html body .guide23.guide28[data-guide-layout-r1] .guide-top23 p{font-size:12px!important;line-height:1.5!important}
 html body .guide23.guide28[data-guide-layout-r1] .guide-topics23{flex:none;min-height:0!important;margin:0!important;gap:8px!important}
 html body .guide23.guide28[data-guide-layout-r1] .guide-topics23 button{min-height:43px!important;padding:7px 10px!important;font-size:12px!important}
 html body .guide23.guide28.guide-studio28[data-guide-layout-r1] .guide-body23{display:grid!important;flex:1 1 0!important;min-height:0!important;height:auto!important;max-height:none!important;grid-template-columns:minmax(285px,.82fr) minmax(0,1.7fr)!important;gap:18px!important}
 html body .guide23.guide28.guide-studio28[data-guide-layout-r1] .guide-story23{padding:22px!important;overflow:visible!important;min-height:0!important}
 html body .guide23.guide28[data-guide-layout-r1] .guide-chapter23{margin-bottom:14px!important;font-size:10px!important;padding:5px 9px!important}
 html body .guide23.guide28.guide-studio28[data-guide-layout-r1] .guide-story23 h2{font-size:clamp(23px,1.8vw,29px)!important;margin:0 0 12px!important;line-height:1.35!important}
 html body .guide23.guide28.guide-studio28[data-guide-layout-r1] .guide-story23>p{font-size:13px!important;line-height:1.7!important;margin:0 0 14px!important}
 html body .guide23.guide28[data-guide-layout-r1] .guide-step-list23{flex:0 0 auto;gap:4px!important;margin:0 0 16px!important}
 html body .guide23.guide28[data-guide-layout-r1] .guide-step-list23 button{min-height:38px!important;padding:7px 9px!important}
 html body .guide23.guide28[data-guide-layout-r1] .guide-step-list23 button>b{font-size:12px!important;line-height:1.5!important}
 html body .guide23.guide28[data-guide-layout-r1] .guide-real23{min-height:40px!important;padding:10px 13px!important;font-size:13px!important;flex-shrink:0!important}
 html body .guide23.guide28.guide-studio28[data-guide-layout-r1] .guide-story23>small{margin-top:8px!important;font-size:10px!important;line-height:1.4!important}
 html body .guide23.guide28[data-guide-layout-r1] .guide-player23{min-height:0!important;overflow:hidden!important}
 html body .guide23.guide28[data-guide-layout-r1] .guide-screen23{flex:1 1 0!important;min-height:0!important}
 html body .guide23.guide28[data-guide-layout-r1] .guide-screenbar23{height:36px!important;flex:0 0 36px!important}
 html body .guide23.guide28.guide-studio28[data-guide-layout-r1] .guide-caption23{flex:none!important;padding:12px 17px!important;grid-template-columns:65px minmax(0,1fr);gap:3px 12px}
 html body .guide23.guide28[data-guide-layout-r1] .guide-playbar23{flex:none!important;min-height:53px!important;padding:8px 16px!important}
 html body .guide23.guide28[data-guide-layout-r1] .guide-playbar23 button,html body .guide23.guide28[data-guide-layout-r1] .guide-speed23 select{height:35px!important;min-height:35px!important}
 html body .guide23.guide28[data-guide-layout-r1] .guide-end23{flex:0 0 auto!important;min-height:34px!important;margin:0!important}
 html body .guide23.guide28[data-guide-layout-r1] .guide-end23 .glr-credit-link{background:#fff;border:1px solid #dce4f0;color:#536781;padding:7px 12px;min-height:34px}
}
@media(min-width:900px) and (max-height:850px) and (min-height:620px){
 html body .guide23.guide28[data-guide-layout-r1] .guide-top23{padding:12px 20px!important}
 html body .guide23.guide28[data-guide-layout-r1] .guide-top23 h1{font-size:24px!important}
 html body .guide23.guide28[data-guide-layout-r1] .guide-top23 p{display:none}
 html body .guide23.guide28.guide-studio28[data-guide-layout-r1] .guide-story23{padding:17px!important}
 html body .guide23.guide28[data-guide-layout-r1] .guide-chapter23{margin-bottom:9px!important}
 html body .guide23.guide28.guide-studio28[data-guide-layout-r1] .guide-story23 h2{font-size:22px!important;margin-bottom:9px!important}
 html body .guide23.guide28.guide-studio28[data-guide-layout-r1] .guide-story23>p{font-size:12px!important;line-height:1.6!important;margin-bottom:10px!important}
 html body .guide23.guide28[data-guide-layout-r1] .guide-step-list23{gap:2px!important;margin-bottom:9px!important}
 html body .guide23.guide28[data-guide-layout-r1] .guide-step-list23 button{min-height:33px!important;padding:5px 7px!important}
}
/* The current scene already spells out the instruction below the player. */
@media(min-width:900px) and (max-height:760px) and (min-height:620px){
 html body .guide23.guide28[data-guide-layout-r1] .guide-step-list23{display:flex!important;gap:7px!important;margin:4px 0 14px!important}
 html body .guide23.guide28[data-guide-layout-r1] .guide-step-list23 button{display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 38px!important;width:38px!important;min-height:36px!important;padding:5px!important}
 html body .guide23.guide28[data-guide-layout-r1] .guide-step-list23 button>b{display:none!important}
}
/* At narrow widths or heavy zoom use normal page flow, never clip readable text. */
@media(max-width:899px),(max-height:619px){html body .guide23.guide28.guide-studio28[data-guide-layout-r1] .guide-story23{overflow:visible!important}html body .guide23.guide28[data-guide-layout-r1] .guide-end23{flex-wrap:wrap;gap:10px}}
html body dialog.glr-dialog{box-sizing:border-box;width:min(720px,calc(100vw - 28px));max-width:none;max-height:calc(100dvh - 28px);padding:26px;border:1px solid #dce4ef;border-radius:22px;background:#fff;color:#253b55;box-shadow:0 24px 90px #1b335a30;overflow:auto;font:inherit}
.glr-dialog::backdrop{background:#172b4660;backdrop-filter:blur(3px)}
.glr-dialog header{display:flex;justify-content:space-between;align-items:center;gap:12px}.glr-dialog header small{font-size:10px;letter-spacing:1.6px;font-weight:750;color:#8b9bb0}.glr-dialog h2{font-size:23px;margin:5px 0 0;line-height:1.4;letter-spacing:-.6px}
.glr-dialog header button{border:1px solid #e0e6ef;border-radius:9px;padding:8px 11px;background:#fff;font:inherit;font-size:12px;color:#62748b;cursor:pointer}
.glr-dialog nav{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:4px;margin:22px 0 20px;background:#f1f5fa;border-radius:12px}.glr-dialog nav button{border:0;border-radius:9px;padding:10px 6px;background:transparent;font:inherit;font-size:13px;color:#71829b;cursor:pointer}.glr-dialog nav [aria-selected=true]{background:#fff;box-shadow:0 2px 6px #233b5510;color:#3f5dba;font-weight:750}
.glr-dialog section[hidden]{display:none!important}.glr-dialog section>p{font-size:13px;line-height:1.9;color:#60738b;word-break:keep-all;margin:14px 0}.glr-plan-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.glr-plan-grid article{border:1px solid #e0e7f1;border-radius:12px;padding:13px 10px;background:#fafcfe}.glr-plan-grid p{margin:0;line-height:1.8;font-size:11px;color:#62748b}.glr-plan-grid b{display:block;font-size:12px;color:#354e74;margin-bottom:4px}.glr-plan-grid article:last-child{background:#f7f3ff;border-color:#e3d8f6}
.glr-dialog footer{display:flex;justify-content:space-between;gap:12px;margin-top:20px;padding-top:14px;border-top:1px solid #e7ecf3;font-size:11px;color:#8a9aae}.glr-dialog footer a{color:#506b9b;text-decoration:none}
@media(max-width:550px){html body dialog.glr-dialog{padding:20px 17px;border-radius:18px}.glr-dialog h2{font-size:20px}.glr-plan-grid{grid-template-columns:repeat(2,1fr)}.glr-dialog section>p{font-size:12px;line-height:1.75}.glr-dialog footer>span{display:none}}
