/* Shared appearance layer: no change to the approved composition. */
:root{color-scheme:light;--surface:#fff;--field:#fff;--theme-text:#172e49;--theme-muted:#536273;--theme-line:#c2c9d0}
/* Theme changes are instant: avoid pale text over an old light surface. */
.btn{transition:none}
@media(max-width:900px){.mobile-nav a{font-size:12px!important}}
html[data-theme=dark]{color-scheme:dark;--cream:#101c2b;--ink:#eef2f6;--muted:#bdc9d5;--line:#42556b;--surface:#192b40;--field:#122236;--theme-text:#eef2f6;--theme-muted:#bdc9d5;--theme-line:#64778b}
.theme-switch{display:flex;align-items:center;gap:8px;font:500 12px/1.4 'DM Sans',sans-serif;white-space:nowrap;color:var(--theme-text);flex-shrink:0}
.theme-switch select{font:inherit;font-size:16px;min-height:44px;border:1px solid var(--theme-line);border-radius:12px;padding:8px;background:var(--field);color:var(--theme-text);max-width:120px}
:focus-visible{outline:3px solid #a2742e;outline-offset:4px}
html[data-theme=dark] :focus-visible{outline-color:#edce8c}
html[data-theme=dark] body{background:#101c2b;color:var(--theme-text)}
html[data-theme=dark] body .site-header{background:#101c2b;color:var(--theme-text)}
html[data-theme=dark] body:has([data-page="admin"]:not([hidden])) .site-header,html[data-theme=dark] body:has([data-page="participante"]:not([hidden])) .site-header{background:var(--surface)}
html[data-theme=dark] :is(.card,.journey-card,.mobile-nav,.app-header,.notice,dialog){background:var(--surface);color:var(--theme-text);border-color:var(--line)}
html[data-theme=dark] :is(.local-record,.create-panel,.swatch){background:#15263a;border-color:var(--line);color:var(--theme-text)}
html[data-theme=dark] :is(h1,h2,h3,h4,legend,label,.nav a,.create-panel summary,.save-feedback){color:var(--theme-text)}
html[data-theme=dark] :is(.support-hint,.muted,.source-note,.route-story p,.journey-card p,.local-record p){color:var(--theme-muted)}
html[data-theme=dark] :is(input:not([type=checkbox]),select,textarea){background:var(--field);color:var(--theme-text);border-color:var(--theme-line)}
html[data-theme=dark] :is(input,textarea)::placeholder{color:#aebdcd;opacity:1}
input[type=checkbox]{accent-color:#9a702a}
html[data-theme=dark] input[type=checkbox]{accent-color:#edce8c}
html[data-theme=dark] a{color:#edce8c}
html[data-theme=dark] :is(.btn,.btn-primary){background:#294d72;color:#fff;border:1px solid #617d98}
html[data-theme=dark] :is(.btn,.btn-primary):is(:hover,:focus-visible){background:#365f86;color:#fff}
html[data-theme=dark] .btn.secondary-action{background:transparent;border-color:#8495a7;color:#e1e9f1}
html[data-theme=dark] .btn.danger-action{background:#452b30;color:#ffd7cf;border-color:#c38378}
html[data-theme=dark] .btn.danger-action:hover{background:#60353a;color:#fff}
html[data-theme=dark] :is(button,.btn):active{filter:brightness(.88)}
:is(button,input,select,textarea):disabled{opacity:.6;cursor:not-allowed}
html[data-theme=dark] :is(#availability,.alert,.message,[role=alert]){background:#2c3240;color:#f3dfb8;border-color:#b89148}
html[data-theme=dark] .mobile-nav a{color:#c4d1df}
html[data-theme=dark] .mobile-nav a[aria-current]{background:#304660;color:#ffdf9c}
html[data-theme=dark] .site-header .nav a:is(:hover,:focus-visible,[aria-current]){background:#294d72;color:#fff!important}
html[data-theme=dark] :is(.brand-logo-c,header>a>img[src$='logo-c-horizontal.svg'],.logos img:not(.navy)){background:#f7f6f2;border-radius:12px;padding:6px}
html[data-theme=dark] :is(.eyebrow,.rotulo-ouro,.section-label){color:#edce8c}
html[data-theme=dark] :is(.hero-copy,.lp-footer,.lp-invite) :is(h1,h2,h3,p){color:inherit}
html[data-theme=dark] .metric-card{background:#192b40;border-color:#42556b}
.operational-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:12px;margin:24px 0}
.metric-card{padding:16px;background:#f7f6f2;border:1px solid #d4d8dc;border-radius:14px}
.metric-card strong{display:block;font-size:28px;line-height:1.3}.metric-card span{font-size:14px}
.message-thread{margin:16px 0;max-height:360px;overflow:auto;overflow-wrap:anywhere}.message-entry{padding:12px;border-left:3px solid #bb8b39;margin:12px 0;white-space:pre-wrap}.message-entry small{display:block;color:var(--theme-muted)}
.message-form textarea{min-height:100px;resize:vertical;width:100%;font:inherit;padding:12px;border:1px solid var(--theme-line);border-radius:12px}
@media(max-width:900px){.site-header{flex-wrap:wrap;gap:8px!important}.theme-switch{margin-left:auto}.theme-switch select{font-size:16px}header{flex-wrap:wrap}.site-header .brand{margin-right:auto}}
@media(min-width:1000px){body:has([data-page="admin"]:not([hidden])) .site-header,body:has([data-page="participante"]:not([hidden])) .site-header{margin:0;height:100dvh;padding:24px 16px;overflow-y:auto}.site-header .theme-switch{flex-wrap:wrap;white-space:normal}}
@media(min-width:901px){.site-header{gap:16px}.site-header .nav{gap:12px}}
