/* One look for every form control, in both modes (owner request, 7 November 2026: the Automatic monitoring form's look
   everywhere). Loaded after the other stylesheets. Selectors sit inside :where() so they carry no more weight than a bare
   element: a page's own rules set only layout (width, flex, margins), never height, colour, border, corners or font size.
   app.css's bare input and button rules match the values here, except min-width, which stays theirs (layout).
   Buttons that are deliberately not boxes (header actions, the mode switch, link-style and menu buttons, square icon
   actions) are left out of the button rule and keep their own styles. Colours come from palette.css. */
:root { --field-h:38px; }

/* Text boxes, dropdowns and note boxes */
:where(input:not([type=checkbox], [type=radio], [type=hidden], [type=range], [type=file], [type=color]), select, textarea) {
  box-sizing:border-box; height:var(--field-h); max-width:100%; margin:0; padding:8px 10px; border:1px solid var(--line);
  border-radius:6px; background-color:var(--sunken); color:var(--text); font:inherit; font-size:14px; line-height:1.4;
  color-scheme:dark; }
:where(input, select, textarea)::placeholder { color:var(--faint); opacity:1; }
:where(select) { padding-right:32px; appearance:none; -webkit-appearance:none; cursor:pointer;
  background:var(--sunken) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' fill='none' stroke='%23BDD8E9' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat right 10px center; }
:where(textarea) { height:auto; min-height:var(--field-h); padding:8px 10px; resize:vertical; }
:where(input, select, textarea):disabled { opacity:.6; cursor:not-allowed; }
/* On touch screens text under 16px makes iOS zoom the page when a box is focused. */
@media (pointer:coarse) { :where(input, select, textarea) { font-size:16px; } }

/* Checkboxes and radio buttons: not :where(), so app.css's input min-width (220px) and box styles never reach them */
input[type=checkbox], input[type=radio] { box-sizing:border-box; width:16px; height:16px; min-width:0; margin:0;
  padding:0; flex:none; accent-color:var(--accent); cursor:pointer; }
/* ...beside their words, never above them (app.css stacks every label's contents) */
label:has(> input[type=checkbox], > input[type=radio]) { flex-direction:row; align-items:center; gap:8px; }

/* Buttons, and links that act as buttons */
:where(button:not(.s-link-button, .s-menu-list button, .icon-action, .mode-switch button, .header-action), a.s-button) {
  box-sizing:border-box; display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:var(--field-h);
  margin:0; padding:9px 16px; border:0; border-radius:6px; font:inherit; font-size:14px; font-weight:700; line-height:1.2;
  text-align:center; text-decoration:none; cursor:pointer; }
button.s-small { min-height:30px; padding:0 12px; font-size:13px; }  /* inside a list row; outweighs app.css's button padding */

:where(input, select, textarea, button, a.s-button):focus-visible { outline:2px solid var(--focus); outline-offset:1px; }

/* Header actions (Leave agency, Sign out) read like the header's links beside them. */
header .header-action { padding:0; border:0; background:transparent; color:var(--on-header); font:inherit; font-size:13px; font-weight:400; cursor:pointer; }
header .header-action:hover { text-decoration:underline; }
header .header-action:focus-visible { outline:2px solid var(--on-header); outline-offset:3px; border-radius:2px; }
