/* Gia Sư SV — RC7.71. Mathematical material only; parent corner excluded. */
body.gssv-math-layout :is(.gssv-study, .gssv-hw-portal, .gssv-tp) :is(.gsv-feedback,.gsv-answer-clean,.gsv-standard-steps,.gsv-method-content,.gssv-ml-solution){
  min-height:0!important;line-height:1.43!important;max-width:100%;overflow-wrap:break-word;
}
body.gssv-math-layout :is(.gssv-study, .gssv-hw-portal, .gssv-tp) :is(.gsv-feedback,.gsv-answer-clean,.gsv-standard-steps,.gsv-method-content,.gssv-ml-solution) :is(p,li){
  margin-top:0!important;margin-bottom:5px!important;line-height:1.43!important;
}
body.gssv-math-layout :is(.gssv-study, .gssv-hw-portal, .gssv-tp) :is(.gsv-feedback,.gsv-answer-clean,.gsv-standard-steps,.gsv-method-content,.gssv-ml-solution) :is(ol,ul){
  margin:5px 0 7px!important;padding-left:1.4em!important;
}
body.gssv-math-layout :is(.gssv-study, .gssv-hw-portal, .gssv-tp) :is(.gsv-feedback,.gsv-answer-clean,.gsv-standard-steps,.gsv-method-content,.gssv-ml-solution) :is(.katex-display,.MathJax_Display,mjx-container[display="true"],.gsv-eq){
  max-width:100%;overflow-x:auto;overflow-y:hidden;margin:4px 0!important;
}
/* One shared original bank, 79 questions, 2 posts. Default zoom is 100% (class NOT zoomed). */
body.single-gssv_exam:is(.postid-5745,.postid-5746) .gssv-study .gsv-question .gsv-stem:not(.gsv-layout-zoomed) figure.gssv-dtl12-figure{
  display:block!important;width:fit-content!important;max-width:min(100%,470px)!important;
  max-height:none!important;margin:6px auto 11px!important;padding:0!important;overflow:visible!important;
}
body.single-gssv_exam:is(.postid-5745,.postid-5746) .gssv-study .gsv-question .gsv-stem:not(.gsv-layout-zoomed) figure.gssv-dtl12-figure img{
  display:block!important;width:auto!important;height:auto!important;
  max-width:min(100%,440px)!important;max-height:245px!important;
  object-fit:contain!important;margin:0 auto!important;
}
/* Four side-by-side graphs should be legible without filling the whole answer panel. */
body.single-gssv_exam.postid-5745 .gssv-study .gsv-question .gsv-stem:not(.gsv-layout-zoomed) figure:has(img[src*="I21.png"]),
body.single-gssv_exam.postid-5745 .gssv-study .gsv-question .gsv-stem:not(.gsv-layout-zoomed) figure:has(img[src*="I22.png"]){max-width:min(100%,570px)!important;}
body.single-gssv_exam.postid-5745 .gssv-study .gsv-question .gsv-stem:not(.gsv-layout-zoomed) figure img:is([src*="I21.png"],[src*="I22.png"]){max-width:min(100%,550px)!important;max-height:185px!important;}
/* Zoom requested explicitly: permit large scrollable graph; no automatic cropping. */
body.single-gssv_exam:is(.postid-5745,.postid-5746) .gssv-study .gsv-question .gsv-stem.gsv-layout-zoomed figure.gssv-dtl12-figure{
  width:max-content!important;max-width:none!important;overflow:visible!important;
}
body.single-gssv_exam:is(.postid-5745,.postid-5746) .gssv-study .gsv-question .gsv-stem.gsv-layout-zoomed figure.gssv-dtl12-figure img{
  width:var(--gsv-zoom,150%)!important;max-width:none!important;max-height:none!important;height:auto!important;
}
/* True/False rows: use existing radio inputs, keep pointer targets >=44 px. */
body.single-gssv_exam:is(.postid-5745,.postid-5746) .gssv-study.gsv-teen .gsv-question .gsv-tf-row{
  display:grid!important;align-items:center!important;min-width:0!important;
  gap:7px!important;padding:7px 0!important;border-bottom:1px solid #e5edef;
}
body.single-gssv_exam:is(.postid-5745,.postid-5746) .gssv-study.gsv-teen .gsv-question .gsv-tf-row>strong{
  grid-column:1!important;grid-row:1!important;margin:0!important;align-self:center!important;
}
body.single-gssv_exam:is(.postid-5745,.postid-5746) .gssv-study.gsv-teen .gsv-question .gsv-tf-row>.gsv-rich{
  grid-column:2!important;grid-row:1!important;align-self:center!important;
  margin:0!important;padding:0!important;line-height:1.42!important;min-width:0;
}
body.single-gssv_exam:is(.postid-5745,.postid-5746) .gssv-study.gsv-teen .gsv-question .gsv-tf-row>.gsv-rich p{
  margin:0!important;line-height:1.42!important;
}
body.single-gssv_exam:is(.postid-5745,.postid-5746) .gssv-study.gsv-teen .gsv-question .gsv-tf-choices{
  display:grid!important;grid-template-columns:repeat(2,78px)!important;
  align-items:center!important;justify-content:end!important;align-self:center!important;
  width:fit-content!important;max-width:none!important;gap:6px!important;margin:0!important;flex-wrap:nowrap!important;
}
body.single-gssv_exam:is(.postid-5745,.postid-5746) .gssv-study.gsv-teen .gsv-question .gsv-tf-choices label{
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:78px!important;min-width:0!important;min-height:44px!important;
  padding:6px 8px!important;gap:5px!important;margin:0!important;
  font-size:14px!important;line-height:1.2!important;white-space:nowrap!important;
  border-radius:8px!important;box-sizing:border-box!important;
}
body.single-gssv_exam:is(.postid-5745,.postid-5746) .gssv-study.gsv-teen .gsv-question .gsv-tf-choices label input[type="radio"]{
  width:16px!important;height:16px!important;min-width:16px!important;margin:0!important;flex:0 0 16px!important;
}
body.single-gssv_exam:is(.postid-5745,.postid-5746) .gssv-study.gsv-teen .gsv-question fieldset{margin:9px 0!important;}
@media(min-width:800px){
  body.single-gssv_exam:is(.postid-5745,.postid-5746) .gssv-study.gsv-teen .gsv-question .gsv-tf-row{
    grid-template-columns:24px minmax(0,1fr) 165px!important;
  }
  body.single-gssv_exam:is(.postid-5745,.postid-5746) .gssv-study.gsv-teen .gsv-question .gsv-tf-choices{
    grid-column:3!important;grid-row:1!important;justify-self:end!important;
  }
}
@media(max-width:799px){
  body.single-gssv_exam:is(.postid-5745,.postid-5746) .gssv-study.gsv-teen .gsv-question .gsv-tf-row{
    grid-template-columns:23px minmax(0,1fr)!important;
  }
  body.single-gssv_exam:is(.postid-5745,.postid-5746) .gssv-study.gsv-teen .gsv-question .gsv-tf-choices{
    grid-column:2!important;grid-row:2!important;justify-self:start!important;margin:2px 0 0!important;
  }
  body.single-gssv_exam:is(.postid-5745,.postid-5746) .gssv-study .gsv-question .gsv-stem:not(.gsv-layout-zoomed) figure.gssv-dtl12-figure img{
    max-width:100%!important;max-height:215px!important;
  }
}
@media(prefers-reduced-motion:reduce){.gssv-study .gsv-tf-choices *{transition:none!important;animation:none!important}}
