/* Explicit surface/text pairs prevent mixed light-dialog and dark-theme controls. */
/* Keep PHIS header actions equal even when the API status suffix changes. */
#phis-dialog .phis-header :is([data-ph="close"],[data-llm-open]){
 box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;
 width:64px;min-width:64px;height:36px!important;min-height:36px;
 padding:6px 8px!important;font-size:14px!important;font-weight:700!important;
 line-height:22px!important;white-space:nowrap;border-radius:6px;
}
#phis-dialog .phis-header [data-llm-open]{margin-left:8px}
.consult-guideline-dialog{
 color-scheme:light;background:#fff;color:#17243a;
 --card:#fff;--tx:#17243a;--tx2:#475569;--tx3:#52657b;--line:#94a3b8;
 --blue:#174ea6;--gray-bg:#f1f5f9;
}
.consult-guideline-dialog .btn{background:#f1f5f9;color:#17243a;border-color:#94a3b8}
.consult-guideline-dialog a{color:#174ea6;text-decoration:underline}
:is([data-guide-close],[data-ph="close"],[data-llm-close],[data-pencil-close],[data-co-tools-close],#ai-close,#ai-close-bottom,#qclose,#close){
 background:#f1f5f9!important;color:#17243a!important;border:1px solid #94a3b8!important;
 color-scheme:light;font-size:14px!important;font-weight:700!important;line-height:1.5!important;
 min-width:56px;min-height:36px;height:auto!important;padding:6px 12px!important;
 border-radius:6px;opacity:1;cursor:pointer;
}
:is([data-guide-close],[data-ph="close"],[data-llm-close],[data-pencil-close],[data-co-tools-close],#ai-close,#ai-close-bottom,#qclose,#close):hover:not(:disabled){
 background:#dce7f5!important;color:#102a46!important;border-color:#52769e!important;
}
:is([data-guide-close],[data-ph="close"],[data-llm-close],[data-pencil-close],[data-co-tools-close],#ai-close,#ai-close-bottom,#qclose,#close):focus-visible{
 outline:3px solid #2563eb!important;outline-offset:3px;
}
:is([data-guide-close],[data-ph="close"],[data-llm-close],[data-pencil-close],[data-co-tools-close],#ai-close,#ai-close-bottom,#qclose,#close):disabled{
 background:#e2e8f0!important;color:#475569!important;border-color:#94a3b8!important;opacity:1;cursor:wait;
}
