/* Only the Terms agreement reader: no shared palette or other dialog changes. */
html body :is(dialog[aria-labelledby="ys-terms-title"],article[aria-label="YS Scorekeeper Terms of Use"]){--agreement370-bg:#151718;--agreement370-ink:#ffffff;--agreement370-border:#8ba869;--agreement370-action:#173e30}
html[data-ys-theme="light"] body :is(dialog[aria-labelledby="ys-terms-title"],article[aria-label="YS Scorekeeper Terms of Use"]){--agreement370-bg:#e3ddd5;--agreement370-ink:#242a26;--agreement370-border:#65774d;--agreement370-action:#d4e1ce}
html body :is(dialog[aria-labelledby="ys-terms-title"],article[aria-label="YS Scorekeeper Terms of Use"]){background:var(--agreement370-bg)!important;color:var(--agreement370-ink)!important;border-color:var(--agreement370-border)!important}
html body :is(dialog[aria-labelledby="ys-terms-title"],article[aria-label="YS Scorekeeper Terms of Use"]) :is(h1,h2,h3,h4,p,section,article,span,label){color:var(--agreement370-ink)!important}
html body dialog[aria-labelledby="ys-terms-title"] button{background:var(--agreement370-action)!important;color:var(--agreement370-ink)!important;border:1px solid var(--agreement370-border)!important}
html body dialog[aria-labelledby="ys-terms-title"] button:hover:not(:disabled){outline:2px solid var(--agreement370-border);outline-offset:2px}
html body dialog[aria-labelledby="ys-terms-title"] button:focus-visible{outline:2px solid var(--agreement370-border);outline-offset:3px}
