/* Dark mode for the generated pages (hub tools, agency and client dashboards, kick-off and proposal pages, board packs): 26 Nov 2026, Danny.
   These pages carry hundreds of literal colours, so the dark theme is the page turned over once: its colours inverted to the Noma app's ground (#17171a) with the
   hues put back, and photos, logos and favicons turned back so they keep their own colours. The hub shell and the Noma app are not like this: they use the shared tokens
   (hub-tokens.css). Marks that are black on a light ground (ChatGPT, Grok, OpenAI) are left alone so they come out light. Nothing here applies in print. */
html[data-theme="dark"]{filter:invert(.91) hue-rotate(180deg);background:#fff}
html[data-theme="dark"] img,html[data-theme="dark"] picture,html[data-theme="dark"] video,html[data-theme="dark"] [style*="background-image"],html[data-theme="dark"] .ndt-keep{filter:invert(1) hue-rotate(180deg)}
html[data-theme="dark"] img[src*="chatgpt"],html[data-theme="dark"] img[src*="grok"],html[data-theme="dark"] img[src*="openai"],html[data-theme="dark"] img[src*="github"],html[data-theme="dark"] .ndt-light{filter:none}
@media (prefers-color-scheme:dark){
html:not([data-theme="light"]):not([data-theme="dark"]){filter:invert(.91) hue-rotate(180deg);background:#fff}
html:not([data-theme="light"]):not([data-theme="dark"]) img,html:not([data-theme="light"]):not([data-theme="dark"]) picture,html:not([data-theme="light"]):not([data-theme="dark"]) video,html:not([data-theme="light"]):not([data-theme="dark"]) [style*="background-image"],html:not([data-theme="light"]):not([data-theme="dark"]) .ndt-keep{filter:invert(1) hue-rotate(180deg)}
html:not([data-theme="light"]):not([data-theme="dark"]) img[src*="chatgpt"],html:not([data-theme="light"]):not([data-theme="dark"]) img[src*="grok"],html:not([data-theme="light"]):not([data-theme="dark"]) img[src*="openai"],html:not([data-theme="light"]):not([data-theme="dark"]) img[src*="github"],html:not([data-theme="light"]):not([data-theme="dark"]) .ndt-light{filter:none}
}
/* a client logo sits in its own tile (.lgt, dark for white logos): the whole tile keeps its own colours */
html[data-theme="dark"] .lgt{filter:invert(1) hue-rotate(180deg)}
html[data-theme="dark"] .lgt img{filter:none}
@media (prefers-color-scheme:dark){
html:not([data-theme="light"]):not([data-theme="dark"]) .lgt{filter:invert(1) hue-rotate(180deg)}
html:not([data-theme="light"]):not([data-theme="dark"]) .lgt img{filter:none}
}
@media print{html{filter:none!important;background:#fff!important}html img,html picture,html video,html [style*="background-image"]{filter:none!important}}
