/* Shared reading fixes; do not change the knowledge data or its source stylesheet. */
html[data-palm-theme="paper"] body :is(.ai-reading .advice,.report .advice,body:has(#reportDate) .advice) {background:#edf2e8!important;color:#283b29!important}
html[data-palm-theme="paper"] body :is(.ai-reading .advice,.report .advice,body:has(#reportDate) .advice) :is(p,b,h4,small,.muted,.quiet) {color:#283b29!important;opacity:1}
html[data-palm-theme="moon"] body :is(.ai-reading .advice,.report .advice,body:has(#reportDate) .advice) {background:#20172c!important;color:#f1eaf7!important}
html[data-palm-theme="moon"] body :is(.ai-reading .advice,.report .advice,body:has(#reportDate) .advice) :is(p,b,h4,small,.muted,.quiet) {color:#f1eaf7!important;opacity:1}
body:has(#domainGrid) :is(.toolbar label span,.observation-label,.card-kind,.card-item-label,.pair-block b,.card-foot span,.coverage-pills span,.card-id) {
  font-size:12px;line-height:1.6;
}
body:has(#domainGrid) :is(.card-topline,.subsection-head,.domain-grid,.toolbar) {min-width:0}
body:has(#domainGrid) .card-topline {flex-wrap:wrap}
body:has(#domainGrid) .toolbar {grid-template-columns:minmax(0,2fr) minmax(0,1fr) auto auto}
body:has(#domainGrid) .toolbar>* {min-width:0;max-width:100%}
body:has(#domainGrid) .toolbar p {white-space:normal;overflow-wrap:anywhere}
body:has(#domainGrid) :is(.knowledge-card,.card-title,.subsection-head h3) {min-width:0;overflow-wrap:anywhere}
html[data-palm-theme="moon"] body:has(#domainGrid) {--faint:#b7acc9}
body:has(#reportDate) :is(.brand span,.date,.section-caption,.hand-images figcaption) {font-size:12px;line-height:1.6}
body:has(#reportDate) .basis strong {color:#65531e}
body:has(#reportDate) .masthead {display:flex;flex-wrap:wrap;gap:12px}
body:has(#reportDate) .brand {min-width:0;flex-wrap:wrap;white-space:normal;overflow-wrap:anywhere}
body:has(#reportDate) .report-tools {min-width:0;max-width:100%;flex-wrap:wrap}
body:has(#reportDate) .language-control {min-width:0;max-width:100%;margin-left:auto}
body:has(#reportDate) .language-control>span {font-size:13px;line-height:1.5;letter-spacing:normal}
@media(max-width:900px) {body:has(#domainGrid) .toolbar {grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px) {body:has(#domainGrid) .toolbar {grid-template-columns:minmax(0,1fr)}}
