/* Only the event brief. The editor, team screen and other public pages keep their themes. */
body.paper.nf{
  --brief-action:#ffe27a;--brief-action-hover:#ffda53;--brief-action-text:#161616;
  --brief-focus:#161616;--brief-soft:#e5e6e0;--brief-placeholder:#6a6b65;
}
html[data-brief-theme="dark"] body.paper.nf{
  --bg:#171817;--tile:#232522;--tile2:#2b2e29;--panel:#232522;--panel2:#2b2e29;--field:#232522;
  --text:#f2f3ec;--muted:#bfc3b8;--label:#bfc3b8;--quiet:#a9aea1;
  --line:#454a40;--line2:#3a3e36;--line3:#777e6f;
  --ok:#98d5a4;--bad:#ff9f97;--alert:#ffabd0;
  --brief-focus:#f2f3ec;--brief-soft:#33382f;--brief-placeholder:#a9aea1;
  color-scheme:dark;
}
body.paper.nf :focus-visible{outline-color:var(--brief-focus)}
body.paper.nf a:hover{color:var(--text)}
body.paper.nf .kg-in::placeholder,body.paper.nf .kg-ta::placeholder{color:var(--brief-placeholder)}
body.paper.nf input[type=checkbox],body.paper.nf input[type=radio]{accent-color:var(--brief-action)}
body.paper.nf .kg-drop:hover,body.paper.nf .kg-drop.is-over{background:var(--brief-soft)}
body.paper.nf .nf-ext,html.kg-mobile-form body.paper.nf .kg-files>li>.nf-ext{background:var(--brief-soft);color:var(--text)}
html[data-brief-theme="dark"] body.paper.nf .kg-hint--warn{background:#3b3420;color:#ffe7a3;border-left-color:#b49b45}
body.paper.nf .kg-chip{color:var(--text)}
body.paper.nf .kg-chip--y{color:var(--brief-action-text)}
html[data-brief-theme="dark"] body.paper.nf .nf-chip input:checked+span{color:var(--bg)}
/* Explicit foreground + background prevent old #submit/mobile selectors from hiding its text. */
html[data-brief-theme] body.paper.nf .kg-btn--primary,
html[data-brief-theme] body.paper.nf #submit,
html[data-brief-theme] body.paper.nf .mf-footer .kg-btn--primary,
html[data-brief-theme] body.paper.nf .nf-go,
html[data-brief-theme] body.paper.nf .nf-key__btn{
  background:var(--brief-action);color:var(--brief-action-text);border-color:var(--brief-action);
}
html[data-brief-theme] body.paper.nf .kg-btn--primary:hover:not(:disabled),
html[data-brief-theme] body.paper.nf #submit:hover:not(:disabled),
html[data-brief-theme] body.paper.nf .nf-go:hover,
html[data-brief-theme] body.paper.nf .nf-key__btn:hover{background:var(--brief-action-hover);color:var(--brief-action-text);border-color:var(--brief-action-hover)}
html[data-brief-theme] body.paper.nf #submit:disabled{opacity:.55}
html[data-brief-theme] body.paper.nf .kg-btn.is-ok:disabled{background:var(--ok);color:var(--bg)}
html[data-brief-theme] body.paper.nf .nf-send{background:transparent;color:var(--text)}
html[data-brief-theme] body.paper.nf .mf-footer{background:var(--bg);color:var(--text);border-top-color:var(--line)}
body.paper.nf .brief-theme{display:flex;flex:none;gap:3px;margin-left:auto;padding:3px;border:1px solid var(--line);border-radius:9px;background:var(--bg)}
body.paper.nf .brief-theme button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:38px;min-width:38px;padding:8px 11px;border:0;border-radius:6px;background:transparent;color:var(--label);font:500 13px var(--body);cursor:pointer}
body.paper.nf .brief-theme button[aria-pressed="true"]{background:var(--tile);color:var(--text);box-shadow:0 1px 3px #0002}
body.paper.nf .brief-theme svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:899px){
  body.paper.nf .brief-theme button{width:40px;min-height:40px;padding:8px}
  body.paper.nf .brief-theme button span{display:none}
  html.kg-mobile-form .nf-wizard-open .kg-top{grid-template-columns:60px minmax(0,1fr) 91px}
  html.kg-mobile-form body.paper.nf .brief-theme{grid-column:3;grid-row:1}
  html.kg-mobile-form body.paper.nf .mf-header-title{font-size:15px}
}
