/* Transparent page surfaces, white text and visible background artwork. */
:root{color-scheme:dark}
html body:is([class],:not([class])){color:#fff!important}
html body:is([class],:not([class])) *{color:#fff!important;text-shadow:0 1px 2px #000,0 0 5px #000!important}
/* The page canvas is transparent so the existing landscape artwork shows through. */
html body:is([class],:not([class])) :is(header,nav,main,footer,.login-layout,[class*="layout" i],[class*="shell" i]){background-color:transparent!important;color:#fff!important;border-color:transparent!important}
/* Text cards retain a light tint of the image behind them instead of an opaque white fill. */
html body:is([class],:not([class])) :is(section,article,aside,form,fieldset,details,dialog,table,.panel,.card,.notice,.steps,.business-card,.service-hub,.kingdom-panel,.company-top,.company-footer,.account-bar,.about,.world-section,.webNotice,.modal,.modal-content,.dashboard,.admin-card,.text-panel,.table-wrap,[class*="panel" i],[class*="card" i],[class*="window" i],[class*="modal" i],[class*="dialog" i],[class*="box" i],[class*="surface" i],[class*="notice" i],[class*="content" i],[class*="form" i],[class*="control" i],[class*="tile" i],[class*="status" i]){background-color:rgba(16,27,32,.62)!important;color:#fff!important;border-color:#bec8cd!important}
html body:is([class],:not([class])) :is(section,article,aside,form,fieldset,details,dialog,table,.panel,.card,.notice,.steps,.business-card,.service-hub,.kingdom-panel,.company-top,.company-footer,.account-bar,.about,.world-section,.webNotice,.modal,.modal-content,.dashboard,.admin-card,.text-panel,.table-wrap,[class*="panel" i],[class*="card" i],[class*="window" i],[class*="modal" i],[class*="dialog" i],[class*="box" i],[class*="surface" i],[class*="notice" i],[class*="content" i],[class*="form" i],[class*="control" i],[class*="tile" i],[class*="status" i]) *{color:#fff!important;text-shadow:0 1px 2px #000,0 0 5px #000!important}
/* Buttons remain outlined and readable over the picture. */
html body:is([class],:not([class])) :is(button,input[type=button],input[type=submit],input[type=reset],[role=button],a.button,a.primary,a.pill-link,a.service-link,a.story-link,a.doclink,a.download,nav>a){background-color:rgba(16,27,32,.48)!important;color:#fff!important;border:2px solid #d5dce0!important;border-radius:6px;box-shadow:none!important;text-shadow:0 1px 2px #000!important;min-height:44px;box-sizing:border-box}
html body:is([class],:not([class])) :is(button,a.button,a.primary,a.pill-link,a.service-link,a.story-link,a.doclink,a.download,nav>a):hover{background-color:rgba(16,27,32,.72)!important;border-color:#fff!important;color:#fff!important}
html body:is([class],:not([class])) :is(button,input[type=button],input[type=submit],input[type=reset],[role=button],a.button,a.primary,a.pill-link,a.service-link,a.story-link,a.doclink,a.download,nav>a):focus-visible{outline:3px solid #ffe56b!important;outline-offset:3px}
/* Input fields also show the artwork through a dark translucent fill. */
html body:is([class],:not([class])) :is(input:not([type=button]):not([type=submit]):not([type=reset]),select,textarea){background-color:rgba(16,27,32,.48)!important;color:#fff!important;border:1px solid #d5dce0!important;text-shadow:0 1px 2px #000!important}
html body:is([class],:not([class])) :is(input,textarea)::placeholder{color:#edf2f4!important;opacity:1}
html body:is([class],:not([class])) select option{background:#172126!important;color:#fff!important;text-shadow:none!important}
html body:is([class],:not([class])) .birth-time{border:1px solid #bec8cd!important;border-radius:8px;padding:12px 16px;background-color:rgba(16,27,32,.58)!important;color:#fff!important}
html body:is([class],:not([class])) .birth-time-alert{margin:8px 0 14px;padding:10px 12px;border-left:4px solid #ffe56b;border-radius:4px;background-color:rgba(16,27,32,.78)!important;color:#fff!important}
html body:is([class],:not([class])) .birth-time-fields{display:grid;grid-template-columns:minmax(150px,1.5fr) minmax(90px,1fr) minmax(90px,1fr);gap:12px;align-items:end}
html body:is([class],:not([class])) .birth-time-fields label{margin:8px 0;color:#fff!important}
/* Spatial board labels stay dark on the board's white control panels. */
html body:is([class],:not([class])) :is(.stagehead,.stagefoot,#boardInfo,.demo-status-panel,.stagehead *,.stagefoot *,#boardInfo *,.demo-status-panel *){color:#24342c!important;text-shadow:none!important}
html body:is([class],:not([class])) :is(.stage,#board,.stagehead,.stagefoot,#boardInfo,.demo-status-panel){background-color:#fff!important}
@media(max-width:520px){html body:is([class],:not([class])) .birth-time-fields{grid-template-columns:1fr 1fr}html body:is([class],:not([class])) .birth-time-fields label:first-child{grid-column:1/-1}}
@media print{html body:is([class],:not([class])){background:#fff!important;color:#111!important}html body:is([class],:not([class])) *{color:#111!important;text-shadow:none!important}}

/* Registration pages keep the landscape visible through every non-button surface. */
html body[data-account-page="register"] :not(button):not(input[type=button]):not(input[type=submit]):not(input[type=reset]):not([role=button]):not(a.button):not(a.primary){background-color:transparent!important}
html body[data-account-page="register"] :is(button,input[type=button],input[type=submit],input[type=reset],[role=button],a.button,a.primary){background-color:rgba(16,27,32,.48)!important;color:#fff!important;border:2px solid #d5dce0!important}
