/* Shared field dimensions, native checkboxes and decorative checkmarks.
   Text heights opt in on the visible frame, not date segments, chips or uploads. */
:root{
  --form-control-height:40px;
  /* Pinned editor footers and scrolling bodies each reserve one half of the end gap. */
  --form-footer-gap:14px;
  --form-picker-target-size:32px;
  --form-picker-icon-size:16px;
  --ui-checkmark-image:url('/assets/icons/check.svg?v=20261103-shared-checkmark');
}
/* Keep input semantics native; only the appearance and decorative glyph share
   this asset. Local layouts may set --ui-checkbox-size (16px by default). */
input[type="checkbox"],.uiCheckboxBox{
  appearance:none;
  box-sizing:border-box;
  display:inline-block;
  width:var(--ui-checkbox-size,16px);
  height:var(--ui-checkbox-size,16px);
  flex:0 0 var(--ui-checkbox-size,16px);
  margin:0;
  vertical-align:middle;
  border:1.5px solid var(--muted);
  border-radius:25%;
  background-color:transparent;
  background-position:center;
  background-size:100% 100%;
  background-origin:border-box;
  background-repeat:no-repeat;
}
input[type="checkbox"]{cursor:pointer}
input[type="checkbox"]:checked,[aria-pressed="true"] .uiCheckboxBox{
  border-color:var(--accent);
  background-color:var(--accent);
  background-image:var(--ui-checkmark-image);
}
input[type="checkbox"]:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
input[type="checkbox"]:disabled{opacity:.5;cursor:not-allowed}
.uiCheckmark{
  display:inline-block;
  width:1em;
  height:1em;
  flex-shrink:0;
  background-color:currentColor;
  -webkit-mask:var(--ui-checkmark-image) center/contain no-repeat;
  mask:var(--ui-checkmark-image) center/contain no-repeat;
  pointer-events:none;
}
input[type="checkbox"][hidden],.uiCheckboxBox[hidden],.uiCheckmark[hidden]{display:none}
@media(forced-colors:active){
  input[type="checkbox"],input[type="checkbox"]:checked{appearance:auto;background-image:none}
  .uiCheckboxBox{forced-color-adjust:none}
  .uiCheckmark{forced-color-adjust:none;background-color:CanvasText}
}
.formControl:where(input:not([type="checkbox"],[type="radio"],[type="file"],[type="hidden"],[type="range"],[type="color"])),
.formControlFrame,
.uiSelect:where(:not([multiple])):where(:not([size]),[size="1"]){
  box-sizing:border-box;
  height:var(--form-control-height);
  min-height:var(--form-control-height);
}
.formControl,.formControlFrame{padding-block:0}
/* A bordered search frame owns the height; its borderless input fills inside. */
.formControlFrame > input.formControl{height:100%;min-height:0;max-height:100%}
.dateFilterSep{height:var(--form-control-height)}
/* Shared two-action form footer: enclosing forms own padding and placement.
   Both buttons share the full available content width at every viewport. */
.formActions{
  box-sizing:border-box;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  inline-size:100%;
  min-inline-size:0;
}
.formActionButton{
  all:unset;
  box-sizing:border-box;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-inline-size:0;
  inline-size:100%;
  min-block-size:44px;
  padding:10px 14px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--panel);
  color:var(--text);
  font:inherit;
  font-size:var(--font-sm,13px);
  font-weight:800;
  line-height:1.4;
  text-align:center;
  overflow-wrap:anywhere;
  cursor:pointer;
  transition:background-color .12s,border-color .12s,filter .12s;
}
.formActionButton.formActionButton--primary{background:var(--accent);border-color:var(--accent);color:#fff}
.formActionButton.formActionButton--danger{background:var(--live);border-color:var(--live);color:#fff}
.formActionButton:hover:not(:disabled){border-color:var(--muted)}
.formActionButton--primary:hover:not(:disabled),.formActionButton--danger:hover:not(:disabled){border-color:transparent;filter:brightness(.94)}
.formActionButton:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.formActionButton:disabled{opacity:.55;cursor:not-allowed}
/* Conflict/recovery actions keep their meaning and may contain more than two. */
.formActions--multiple{display:flex;flex-wrap:wrap}
.formActions--multiple>.formActionButton{flex:1 1 9rem}
@media(max-width:700px){
  :root{--form-control-height:44px;--form-picker-target-size:44px}
  /* Local font declarations consume this only on opted-in text fields. */
  .formControl,.formControlFrame:where(.dateInput,.evdateInput){--form-control-font-size:16px}
  input.formControl{font-size:var(--form-control-font-size)}
}
@media(prefers-reduced-motion:reduce){.formActionButton{transition:none}}
