/* CHOICE / ChoiceLife v3.9.4 | 普通字、大字.
   Fixed absolute target sizes: no multiplying parents, no inline font overrides,
   no MutationObserver/resize recapture. Scope to this plugin only. */
.lcd-search-app .lcd-font-toolbar{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;
  gap:8px 12px;min-width:0;margin:0 0 12px;padding:0;
  color:#41545c;line-height:1.5;
}
.lcd-search-app .lcd-font-toolbar-label{font-size:15px!important;font-weight:700;color:#40545c}
.lcd-search-app .lcd-font-toolbar-options{
  display:inline-flex;align-items:stretch;min-width:0;
  border:1px solid #cbdadd;border-radius:11px;background:#fff;
  padding:3px;gap:3px;box-sizing:border-box;
}
.lcd-search-app .lcd-font-size-btn{
  appearance:none;-webkit-appearance:none;
  display:inline-flex;align-items:center;justify-content:center;
  box-sizing:border-box;min-width:92px;min-height:44px;
  margin:0;padding:8px 14px;
  font-family:inherit;font-size:15px!important;font-weight:700;line-height:1.3;
  border:0;border-radius:8px;background:transparent;color:#455d65;
  cursor:pointer;box-shadow:none;white-space:nowrap;text-align:center;
}
.lcd-search-app .lcd-font-size-btn:hover{background:#eef8f9;color:#006672}
.lcd-search-app .lcd-font-size-btn[aria-pressed="true"]{
  color:#fff;background:#006c78;box-shadow:0 1px 5px rgba(0,80,90,.1);
}
.lcd-search-app .lcd-font-size-btn[aria-pressed="true"]:hover{background:#005966;color:#fff}
.lcd-search-app .lcd-font-size-btn:focus-visible{
  outline:3px solid #02BCCD;outline-offset:3px;position:relative;z-index:1;
}
.lcd-search-app .lcd-font-toolbar .lcd-visually-hidden{
  position:absolute!important;width:1px!important;height:1px!important;
  padding:0!important;margin:-1px!important;overflow:hidden!important;
  clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;
}
/* Structural safety in both modes, especially mobile. */
.lcd-search-app,
.lcd-search-app :where(.lcd-audience-choices,.lcd-audience-choice,.lcd-audience-choice-copy,.lcd-audience-switch,.lcd-audience-switch-items,.lcd-card,.lcd-card-main-actions,.lcd-reference-grid,.lcd-reference-card,.lcd-hero,.lcd-search-results,.lcd-form,.lcd-share-sheet,.lcd-share-full-text,.lcd-code-details,.lcd-need-details,.lcd-community-form){min-width:0;max-width:100%;}
.lcd-search-app :where(p,small,span,strong,summary,label,a,button,td,th,h2,h3,h4,h5,input,textarea,li){overflow-wrap:anywhere;}
.lcd-search-app :where(input,textarea,select,button){max-width:100%;}
.lcd-search-app .lcd-audience-switch-items a{white-space:normal;min-width:0;line-height:1.45;}
/* Large: explicit pixel values prevent nested elements from compounding and
   retain hierarchy instead of enlarging the whole UI indiscriminately. */
.lcd-search-app[data-lcd-font-size="125"]{font-size:17px;line-height:1.65;}
.lcd-search-app[data-lcd-font-size="125"] :where(p,li,dt,dd,blockquote,td,th,summary,label){font-size:17px!important;line-height:1.65!important;}
.lcd-search-app[data-lcd-font-size="125"] :where(.lcd-audience-choice-copy strong,.lcd-reference-top strong,.lcd-reference-top span,.lcd-code-title,.lcd-card h4){font-size:19px!important;line-height:1.45!important;}
.lcd-search-app[data-lcd-font-size="125"] :where(.lcd-audience-choice-copy small,.lcd-audience-eyebrow,.lcd-audience-hint,.lcd-legal-notice-heading,.lcd-legal-notice-brief,.lcd-legal-notice-content p,.lcd-search-help-370,.lcd-reference-intro,.lcd-code-teaser,.lcd-meta,.lcd-card-recipients-390>summary,.lcd-public-document-count,.lcd-recipient-scope-390,.lcd-share-eyebrow,.lcd-muted,.lcd-disclaimer){font-size:16px!important;line-height:1.65!important;}
.lcd-search-app[data-lcd-font-size="125"] :where(.lcd-audience-current,.lcd-audience-switch-items a,.lcd-quick-search-label,.lcd-quick-search a,.lcd-tab,.lcd-result-switch button,.lcd-home-disclosure>summary,.lcd-card-main-actions a,.lcd-card-more>summary){font-size:16px!important;line-height:1.5!important;}
.lcd-search-app[data-lcd-font-size="125"] :where(.lcd-audience-welcome h2,.lcd-hero h2,.lcd-share-header h2){font-size:clamp(26px,7vw,32px)!important;line-height:1.35!important;}
.lcd-search-app[data-lcd-font-size="125"] :where(h3,.lcd-results h3,.lcd-reference-block h3){font-size:22px!important;line-height:1.45!important;}
.lcd-search-app[data-lcd-font-size="125"] :where(h4){font-size:19px!important;line-height:1.5!important;}
.lcd-search-app[data-lcd-font-size="125"] :where(.lcd-form input,.lcd-form button,input[type="search"],input[type="text"],textarea,select,.lcd-feedback-submit,.lcd-actions a){font-size:17px!important;line-height:1.5!important;}
.lcd-search-app[data-lcd-font-size="125"] :where(.lcd-font-toolbar-label){font-size:15px!important;}
.lcd-search-app[data-lcd-font-size="125"] :where(.lcd-font-size-btn){font-size:15px!important;line-height:1.3!important;}
/* Keep icons and numeric badges at their designed size; avoid rescaling SVG. */
@media(max-width:640px){
  .lcd-search-app .lcd-font-toolbar{justify-content:space-between;gap:7px 9px;margin-bottom:12px;}
  .lcd-search-app .lcd-font-toolbar-options{flex:0 0 auto;}
  .lcd-search-app .lcd-font-size-btn{min-width:73px;min-height:46px;padding:8px 10px;}
  .lcd-search-app[data-lcd-font-size="125"] .lcd-audience-choices{grid-template-columns:minmax(0,1fr);}
  .lcd-search-app[data-lcd-font-size="125"] .lcd-audience-switch-items{
    display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;width:100%;
  }
  .lcd-search-app[data-lcd-font-size="125"] .lcd-audience-switch-items a{padding:10px 4px;min-height:52px;font-size:15px!important;line-height:1.35!important;display:flex;align-items:center;justify-content:center;text-align:center;}
  .lcd-search-app[data-lcd-font-size="125"] .lcd-audience-switch-items a.lcd-audience-all{grid-column:1/-1;min-height:44px;}
  .lcd-search-app[data-lcd-font-size="125"] :where(.lcd-form,.lcd-result-switch){min-width:0;}
}
@media(max-width:350px){
  .lcd-search-app .lcd-font-toolbar{gap:5px;}
  .lcd-search-app .lcd-font-size-btn{min-width:66px;padding:8px 7px;}
  .lcd-search-app .lcd-font-toolbar-options{padding:2px;gap:2px;}
}
