/* Original GCN demo's bottom-left access control for authenticated pages. */
.display-settings-fab, html[data-theme="dark"] button.display-settings-fab{
  position:fixed;left:calc(14px + env(safe-area-inset-left));bottom:calc(14px + env(safe-area-inset-bottom));
  z-index:96;width:48px;height:48px;min-height:48px;padding:10px;border-radius:50%;
  background:#0062ff;color:#fff;border:1px solid #5b9aff;box-shadow:0 4px 18px #0062ff55;
  display:grid;place-items:center;cursor:pointer;
}
.display-settings-fab:hover,html[data-theme="dark"] button.display-settings-fab:hover{background:#004bd6;color:#fff;border-color:#83b3ff}
.display-settings-fab:focus-visible{outline:3px solid #79b4ff;outline-offset:4px}
.display-settings-fab svg{width:24px;height:24px;display:block}
.display-settings-dialog{
  position:fixed;inset:0;box-sizing:border-box;max-width:min(430px,calc(100vw - 28px));width:430px;
  max-height:calc(100dvh - 32px);overflow-y:auto;margin:auto;padding:24px;
  border:1px solid #394d64;border-radius:16px;background:#142131;color:#edf2f7;
  box-shadow:0 22px 75px #0008;font:14px/1.5 Inter,ui-sans-serif,system-ui,sans-serif;
}
.display-settings-dialog::backdrop{background:#01040ca8}
.display-settings-dialog .modal-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 12px}
.display-settings-dialog h2{font-size:21px;font-weight:700;color:#edf2f7;margin:0}
.display-settings-dialog p{font-size:13px;color:#b6c7dc;margin:8px 0 12px}
.display-settings-dialog .icon-button{width:34px;height:34px;min-height:34px;padding:4px;background:#1e3148;border:1px solid #4e6680;color:#fff;border-radius:8px;cursor:pointer;font-size:19px}
.display-settings-dialog .display-setting-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 0;margin:0;border-bottom:1px solid #304156;cursor:pointer}
.display-setting-copy{display:grid;gap:5px;min-width:0}
.display-setting-copy strong{font-size:14px;color:#edf2f7}
.display-setting-copy small{font-size:12px;color:#aebed0;line-height:1.5}
.display-settings-dialog .display-setting-row input{appearance:none;flex:0 0 42px;width:42px;height:25px;min-width:42px;min-height:25px;max-width:none;margin:0;padding:0;border-radius:20px;border:1px solid #748ba4;background:#3b5068;position:relative;cursor:pointer}
.display-settings-dialog .display-setting-row input:before{content:'';position:absolute;width:17px;height:17px;left:3px;top:3px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0003}
.display-settings-dialog .display-setting-row input:checked{background:#dfbf84;border-color:#dfbf84}
.display-settings-dialog .display-setting-row input:checked:before{left:20px;background:#17202c}
.display-settings-dialog>button.primary{width:100%;min-height:42px;margin-top:22px;padding:10px;background:#236be0;color:white;border:1px solid #518cf4;border-radius:8px;cursor:pointer}
html.gcn-live-large-text body{font-size:110%}
html.gcn-live-large-text :is(.gcn-live-page p,.gcn-live-page label,.gcn-live-page button,#gcn-live-parity-sidebar nav a){font-size:max(14px,1em)!important}
html.gcn-live-high-contrast :is(.gcn-live-page,.gcn-live-metric,.gcn-demo-module){border-color:#b4c8e1!important}
html.gcn-live-high-contrast :focus-visible{outline:4px solid #efbd5c!important;outline-offset:3px}
html.gcn-live-reduce-motion *,html.gcn-live-reduce-motion *::before,html.gcn-live-reduce-motion *::after{animation-duration:0s!important;transition-duration:0s!important;scroll-behavior:auto!important}
html:not([data-theme="dark"]) .display-settings-dialog{background:#fff;color:#13253b;border-color:#dce3ed}
html:not([data-theme="dark"]) .display-settings-dialog :is(h2,.display-setting-copy strong){color:#13253b}
html:not([data-theme="dark"]) .display-settings-dialog :is(p,.display-setting-copy small){color:#586a7e}
html:not([data-theme="dark"]) .display-settings-dialog .display-setting-row{border-color:#dae4ee}
html:not([data-theme="dark"]) .display-settings-dialog .icon-button{background:#edf3fb;color:#18344d}
html:not([data-theme="dark"]) .display-settings-dialog .display-setting-row input{background:#bac5d2;border-color:#9baec1}
html:not([data-theme="dark"]) .display-settings-dialog .display-setting-row input:checked{background:#236be0}
html:not([data-theme="dark"]) .display-settings-dialog .display-setting-row input:checked:before{background:#fff}
@media(max-width:650px){body:has(.client-bottom-nav) .display-settings-fab,body:has(.gcn-demo-mobile-nav) .display-settings-fab{bottom:calc(85px + env(safe-area-inset-bottom))}}
@media print{.display-settings-fab,.display-settings-dialog{display:none!important}}
/* Keep the universal accessibility control visible above mobile navigation. */
@media(max-width:720px){
 html.gcn-live-parity-active button.display-settings-fab{
   bottom:calc(92px + env(safe-area-inset-bottom))!important;
   z-index:96!important;
 }
}
