/* Scoped exclusively to Học & Thi; no tutor/homework/admin selectors. */
.gssv-study[hidden],.gssv-study [hidden]{display:none!important}
.gssv-study{min-width:0;padding-bottom:80px;overflow-wrap:anywhere}
.gssv-study .gsv-welcome{display:block;min-height:0;padding:16px 18px;margin-bottom:16px;background:#edf5fc;border-radius:16px}
.gssv-study .gsv-hero-copy h1{font-size:clamp(23px,4vw,30px);line-height:1.25;margin:0 0 8px}
.gssv-study .gsv-buddy-scene,.gssv-study .gsv-hero-links,.gssv-study .gsv-perks,.gssv-study .gsv-invite-character,.gssv-study .gsv-buddy-orbit,.gssv-study .gsv-buddy-heart{display:none!important}
.gssv-study .gsv-hero-copy>p{margin:6px 0;font-size:16px}
.gssv-study .gsv-welcome .gsv-name-inline,.gssv-study .gsv-welcome .gsv-identity,.gssv-study>.gsv-settings{display:none}
.gssv-study .gsv-nhut-launch{width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border-radius:50%;overflow:hidden}
.gssv-study .gsv-nhut-launch>span{display:none}
.gssv-study .gsv-nhut-launch img{width:44px;height:44px;object-fit:contain}
.gssv-study .gsv-nhut-chat{right:12px;bottom:max(12px,env(safe-area-inset-bottom));max-width:calc(100vw - 24px)}
.gssv-study .gsv-nhut-panel{width:min(360px,calc(100vw - 24px));max-height:75vh}
.gssv-study button,.gssv-study summary,.gssv-study select,.gssv-study .gsv-option,.gssv-study .gsv-tf-choices label{min-height:44px}
.gssv-study button:focus-visible,.gssv-study summary:focus-visible,.gssv-study a:focus-visible,.gssv-study select:focus-visible{outline:3px solid #126ac4;outline-offset:3px}
.gssv-study .gsv-learning-crumb,.gssv-study .gsv-quick-result-actions{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.gssv-study .gsv-quick-lesson{border:1px solid #d6e3ee;border-radius:12px;background:white;margin:10px 0}
.gssv-study .gsv-quick-lesson>summary{padding:14px;cursor:pointer;display:flex;flex-direction:column;gap:5px}
.gssv-study .gsv-quick-lesson>summary strong{font-size:18px;line-height:1.45;color:#153d63}
.gssv-study .gsv-quick-lesson>summary small{font-size:14px;color:#566575}
.gssv-study .gsv-quick-lesson-body{padding:0 14px 16px}
.gssv-study .gsv-quick-lesson-body>label{display:flex;flex-direction:column;gap:6px}
.gssv-study .gsv-quick-lesson-body select{max-width:100%;width:100%;font-size:16px}
.gssv-study .gsv-quick-sources{margin-top:16px;padding:10px;background:#f4f8fc;border-radius:8px}
.gssv-study .gsv-quick-sources button,.gssv-study .gsv-quick-sources a{display:block;margin:8px 0}
.gssv-study .gsv-exam-invite{display:block;padding:14px}.gssv-study .gsv-invite-copy h2{font-size:20px}
.gssv-study .gsv-invite-speech,.gssv-study .gsv-invite-alias,.gssv-study .gsv-invite-options,.gssv-study .gsv-invite-note{display:none}
.gssv-study .gsv-extra-practice{margin-top:20px}
.gssv-study .gsv-stem img,.gssv-study .gsv-rich img{max-width:100%;height:auto}
.gssv-study .gsv-question,.gssv-study .gsv-work,.gssv-study .gsv-library,.gssv-study .gsv-exam-layout,.gssv-study .gsv-options-grid{min-width:0;max-width:100%}
@media(max-width:600px){
 .gssv-study .gsv-paths{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.gssv-study .gsv-paths button{padding:12px 9px}.gssv-study .gsv-paths small{font-size:12px}
 .gssv-study .gsv-quick-items{display:flex;flex-wrap:wrap;overflow:visible}.gssv-study .gsv-quick-items button{white-space:normal;text-align:left;max-width:100%}
 .gssv-study .gsv-quick-lesson-body .gsv-actions,.gssv-study .gsv-quick-result-actions{display:grid;grid-template-columns:minmax(0,1fr)}
 .gssv-study .gsv-toolbar{flex-wrap:wrap}.gssv-study .gsv-toolbar h3{width:100%;font-size:18px}
 .gssv-study .gsv-options-grid{grid-template-columns:minmax(0,1fr)}.gssv-study .gsv-options-grid.is-letters{grid-template-columns:repeat(4,minmax(0,1fr))}
 .gssv-study .gsv-tf-row{grid-template-columns:minmax(0,1fr)}.gssv-study .gsv-tf-choices{display:flex;gap:8px}
}
@media(prefers-reduced-motion:reduce){.gssv-study *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* Override the legacy teen hero specificity and its empty theme title row. */
.gssv-study.gsv-teen .gsv-welcome .gsv-hero-copy h1{font-size:clamp(23px,4vw,30px)!important;line-height:1.25!important;margin:0 0 8px!important}
body.gsv-study-context .page.container>.row:first-child:has(.block-title){display:none}

/* Revision from the owner's iPhone screenshots: one aligned action stack. */
body.gsv-study-context .gssv-study.gsv-teen .gsv-quick-lesson-body .gsv-actions,
body.gsv-study-context .gssv-study.gsv-teen .gsv-quick-result-actions{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important;width:100%!important;margin:12px 0 0!important}
body.gsv-study-context .gssv-study.gsv-teen .gsv-quick-lesson-body button,
body.gsv-study-context .gssv-study.gsv-teen .gsv-quick-result-actions button,
body.gsv-study-context .gssv-study.gsv-teen .gsv-next-lesson button{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;margin:0!important;padding:12px!important;text-align:center!important;white-space:normal!important}
body.gsv-study-context .gssv-study.gsv-teen .gsv-welcome{display:block!important;padding:16px!important;min-height:0!important}
body.gsv-study-context .gssv-study.gsv-teen .gsv-hero-copy{display:block!important;max-width:none!important;width:100%!important;min-width:0!important}
.gssv-study .gsv-hero-heading{display:flex;align-items:center;gap:12px;margin-bottom:10px}.gssv-study .gsv-hero-heading>div{min-width:0;flex:1}
body.gsv-study-context .gssv-study.gsv-teen .gsv-hero-portrait{display:block!important;width:72px!important;height:80px!important;object-fit:contain;flex:none;margin:0!important}
body.gsv-study-context .gssv-study.gsv-teen .gsv-welcome .gsv-hero-copy h1{font-size:clamp(22px,4vw,28px)!important;margin:0!important;line-height:1.25!important;text-align:left!important}
body.gsv-study-context .gssv-study.gsv-teen .gsv-hero-copy>p{max-width:none!important;margin:8px 0 0!important;text-align:left!important;padding:0!important}
body.gsv-study-context .gssv-study.gsv-teen .gsv-welcome .gsv-greeting,
body.gsv-study-context .gssv-study.gsv-teen .gsv-welcome .gsv-identity,
body.gsv-study-context .gssv-study.gsv-teen .gsv-welcome .gsv-name-inline{display:none!important}
.gssv-study .gsv-next-lesson{border-top:1px solid #d8e6ee;margin-top:16px;padding-top:14px;display:grid;gap:8px;text-align:left}.gssv-study .gsv-next-lesson small{color:#607180}.gssv-study .gsv-next-lesson strong{font-size:16px;line-height:1.45}
body.gsv-study-context .gssv-study.gsv-teen .gsv-tf-row{display:grid!important;grid-template-columns:28px minmax(0,1fr)!important;align-items:start!important;gap:8px!important;padding:14px 0!important;text-align:left!important}
body.gsv-study-context .gssv-study.gsv-teen .gsv-tf-row>strong{grid-column:1!important;grid-row:1!important;display:block!important;white-space:nowrap!important;margin:0!important;line-height:1.6!important}
body.gsv-study-context .gssv-study.gsv-teen .gsv-tf-row>.gsv-rich{grid-column:2!important;grid-row:1!important;text-align:left!important;min-width:0!important;width:100%!important;margin:0!important;padding:0!important;float:none!important}
body.gsv-study-context .gssv-study.gsv-teen .gsv-tf-row>.gsv-rich p{margin:0!important;text-align:left!important;line-height:1.6!important}
body.gsv-study-context .gssv-study.gsv-teen .gsv-tf-choices{grid-column:1/-1!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;width:100%!important;margin:4px 0 0!important}
body.gsv-study-context .gssv-study.gsv-teen .gsv-tf-choices label{display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;width:100%!important;min-height:44px!important;padding:10px!important;margin:0!important;box-sizing:border-box!important}
body.gsv-study-context .gssv-study.gsv-teen .gsv-tf-choices input{width:20px!important;height:20px!important;min-width:20px!important;flex:none!important;margin:0!important}

body.gsv-study-context .gssv-study.gsv-teen.is-working .gsv-welcome{display:none!important}
