/* Shared field language — text, select, date, search, textarea. Sizes and
   radii come from the tokens in /style-guide.css (--control-height,
   --control-pad-x, --radius-control, --control-bg, --control-focus-border). */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
input[type="time"],
input[type="month"],
input[type="week"],
input:not([type]),
select:not(.ticket-desk-pick):not(.inline-pick-select):not([class^="ql-"]),
textarea {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  font-family: Inter, system-ui, sans-serif;
  font-size: var(--text);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  background-color: var(--control-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  padding: 0 var(--control-pad-x);
  min-height: var(--control-height);
  line-height: 1.3;
}

textarea {
  height: auto;
  min-height: 110px;
  padding: 10px var(--control-pad-x);
  resize: vertical;
  line-height: 1.45;
}

select:not(.ticket-desk-pick):not(.inline-pick-select):not([class^="ql-"]) {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%23666' stroke-width='1.4' d='M1.5 1.5L6 6 10.5 1.5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

input[type="date"],
input[type="datetime-local"],
input[type="time"],
input[type="month"],
input[type="week"] {
  display: inline-flex;
  align-items: center;
  width: auto;
  max-width: 100%;
  color-scheme: light;
  font-variant-numeric: tabular-nums;
  font-family: Inter, system-ui, sans-serif;
  font-size: var(--text);
  font-weight: 400;
  -webkit-text-fill-color: var(--ink);
}

input[type="date"],
input[type="month"],
input[type="week"] {
  width: 13.5em;
}

input[type="datetime-local"] {
  width: 19.5em;
}

input[type="time"] {
  width: 8.75em;
}

input[type="date"]::-webkit-datetime-edit,
input[type="datetime-local"]::-webkit-datetime-edit,
input[type="time"]::-webkit-datetime-edit,
input[type="month"]::-webkit-datetime-edit,
input[type="week"]::-webkit-datetime-edit,
input[type="date"]::-webkit-datetime-edit-fields-wrapper,
input[type="datetime-local"]::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
  font: inherit;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="month"]::-webkit-calendar-picker-indicator,
input[type="week"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.55;
  margin: 0 0 0 6px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="datetime-local"]:focus,
input[type="time"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input:not([type]):focus,
select:not(.ticket-desk-pick):not(.inline-pick-select):not([class^="ql-"]):focus,
textarea:focus {
  outline: none;
  border-color: var(--control-focus-border);
  background-color: var(--control-bg);
  box-shadow: none;
}

input[type="checkbox"],
input[type="radio"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--ink);
  flex: none;
}

input[type="checkbox"] {
  border-radius: var(--radius-control);
}

input[type="file"] {
  font-family: Inter, system-ui, sans-serif;
  font-size: var(--text);
  font-weight: 400;
}

label,
legend {
  /* No browser inset on a legend: "Show on" lines up with "Title" (David, 2026-10-31). */
  padding-inline: 0;
  font-size: var(--text);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

/* Duration field: one label, hours and minutes side by side (same as the time-log row). */
.duration-field {
  display: grid;
  gap: 4px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.duration-field legend {
  padding: 0;
  font-size: var(--text);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.duration-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 12px;
}

.duration-row .duration-num {
  flex: 0 0 90px;
  width: 90px;
  min-width: 0;
}

.duration-row .duration-num input {
  width: 100%;
  min-width: 0;
}

/* Address entry (address-ui.js): search above, fields below. */
.address-fields {
  display: grid;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}

.address-search {
  display: grid;
  gap: 8px;
  position: relative;
  min-width: 0;
}

.address-search .address-manual-toggle {
  justify-self: start;
  width: auto;
}

.address-fields.is-manual .address-manual-toggle {
  display: none;
}

.address-fields:not(.is-manual) .address-manual {
  display: none;
}

.address-manual {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.address-manual label {
  min-width: 0;
}

/* Line 1 / line 2, suburb / state, then postcode / country: two even columns. */
.address-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.address-row label {
  min-width: 0;
}

.address-row input {
  width: 100%;
  min-width: 0;
}

@media (max-width: 640px) {
  .address-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Street lines are long; on phones each gets the full width. */
  .address-row.address-lines { grid-template-columns: minmax(0, 1fr); }
}

.place-list {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: var(--radius-control);
  background: var(--control-bg);
  max-height: 240px;
  overflow-x: hidden;
  overflow-y: auto;
  font-size: var(--text);
  font-weight: 400;
}

.place-list [role="option"] {
  padding: 9px 12px;
  cursor: pointer;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.place-list [role="option"]:hover,
.place-list [role="option"].is-active {
  background: var(--paper-2, #f3f4f6);
}

.place-hint {
  margin: 0;
  color: var(--muted, #6b7280);
  font-size: var(--text);
  font-weight: 400;
}

.place-list.hidden,
.place-hint.hidden {
  display: none;
}

/* Grouped select (select-ui.js): trigger + popover listbox with readable group headings.
   The native <select> stays in the DOM for form values and change listeners. */
select.gsel-native {
  display: none !important;
}

.gsel {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.gsel-trigger {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: var(--control-height);
  margin: 0;
  padding: 0 36px 0 var(--control-pad-x);
  font-family: Inter, system-ui, sans-serif;
  font-size: var(--text);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  line-height: 1.3;
  color: var(--ink);
  background-color: var(--control-bg);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%23666' stroke-width='1.4' d='M1.5 1.5L6 6 10.5 1.5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  cursor: pointer;
}

.gsel-trigger:focus-visible,
.gsel.is-open .gsel-trigger {
  outline: none;
  border-color: var(--control-focus-border);
  box-shadow: none;
}

.gsel-trigger:disabled {
  cursor: default;
  opacity: 0.6;
}

.gsel-text {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gsel-pop {
  position: fixed;
  z-index: 120;
  box-sizing: border-box;
  margin: 0;
  padding: 4px 0;
  background: var(--control-bg);
  border: 1px solid var(--line, #e5e7eb);
  border-radius: var(--radius-control);
  box-shadow: none; /* the 1px border frames the open list; no drop shadow */
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  font-family: Inter, system-ui, sans-serif;
  font-size: var(--text);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  outline: none;
}

.gsel-pop[hidden] {
  display: none;
}

/* Each group starts with a hairline and breathing room so it reads as its own block. */
.gsel-group {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--line, #e5e7eb);
}

.gsel-heading {
  padding: 6px 12px 4px;
  font-size: var(--text);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted, #6b7280);
  line-height: 1.3;
  cursor: default;
  user-select: none;
}

.gsel-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 10px;
  line-height: 1.35;
  cursor: pointer;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Options under a heading sit indented beneath it. */
.gsel-group .gsel-option {
  padding-left: 22px;
}

/* A person under their Contractor Company manager (public/chat-add-picker.js). */
.gsel-group .gsel-option.is-sub {
  padding-left: calc(var(--space-4) + var(--space-1));
}

/* A quiet note after the name ("Manager", "chat only"), pushed to the right. */
.gsel-option-note {
  margin-left: auto;
  padding-left: var(--space-1);
  flex: none;
  color: var(--muted, #6b7280);
  font-size: var(--text-sm, 0.9em);
}

.gsel-option.is-active {
  background: var(--paper-2, #f3f4f6);
}

.gsel-option.is-disabled {
  color: var(--muted, #6b7280);
  cursor: default;
}

.gsel-check {
  flex: none;
  display: inline-flex;
  width: 14px;
  height: 14px;
  color: var(--ink);
  visibility: hidden;
}

.gsel-option[aria-selected="true"] .gsel-check {
  visibility: visible;
}

.gsel-option-text {
  min-width: 0;
}

/* Compact variant for inline table cells (replaces select.inline-pick-select). */
.gsel.gsel--compact {
  display: inline-block;
  width: auto;
}

.gsel--compact .gsel-trigger {
  width: auto;
  min-width: 9em;
  max-width: 16em;
  min-height: 28px;
  height: 28px;
  padding: 0 28px 0 8px;
  background-position: right 8px center;
}

.gsel-option-icon { display: inline-flex; flex: 0 0 auto; margin-right: 8px; }
.gsel-option-icon svg { display: block; }

/* A field with a missing or invalid value (/field-errors.js): red outline,
   message under the control inside the field. */
.field-invalid input:not([type="checkbox"]):not([type="radio"]),
.field-invalid select,
.field-invalid textarea,
.field-invalid .gsel-trigger,
.field-invalid .rich-input {
  border-color: var(--danger, #b42318) !important; /* 1px like every border (David, 2026-10-31); the red alone marks it */
}

.field-error {
  display: block;
  margin-top: 4px;
  color: var(--danger, #b42318);
  font-size: var(--text-sm);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

/* Searchable dropdown (company pickers): white, search pinned at the top. */
.gsel-pop.has-search {
  background: var(--white);
  padding-top: 0;
}
.gsel-search {
  position: sticky;
  top: 0;
  z-index: 1;
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 4px;
  padding: 9px 12px;
  border: 0;
  border-bottom: 1px solid var(--line, #e5e7eb);
  border-radius: 0;
  background: var(--white);
  font: inherit;
  outline: none;
}
.gsel-empty {
  padding: 8px 12px;
  color: var(--muted, #6b7280);
}

/* Filter rows: dropdowns keep a readable width (the select they replace had one). */
.scope-filter .gsel { min-width: 160px; }
.scope-filter .gsel--company { min-width: 240px; }

/* Search sits inside the panel with even padding and a dark-grey border; only
   the options below it scroll, so the scrollbar starts under the search. */
.gsel-pop.has-search:not([hidden]) { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.gsel-pop.has-search .gsel-search {
  position: static;
  flex: none;
  width: auto;
  margin: 8px 8px 6px;
  padding: 6px 10px;
  height: 32px;
  border: 1px solid var(--muted);
  border-radius: var(--radius-sm);
}
.gsel-pop.has-search .gsel-search:focus { border-color: var(--control-focus-border); box-shadow: none; }
.gsel-pop.has-search .gsel-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 4px; }
.gsel-pop.has-search .gsel-search { height: 32px; min-height: 0; box-sizing: border-box; }

/* Phones (≤700px): filter chips show as a dropdown (/chip-select.js) and the
   filter row is a two-column grid of dropdowns, so filters take a few lines
   instead of a screenful. Desktop is unchanged. Anything else in the row
   (buttons, search, links) gets a full line. */
.chip-select { display: none; }
@media (max-width: 700px) {
  .filter-chips.has-chip-select > .chip { display: none; }
  .filter-chips.has-chip-select > .chip-select { display: block; flex: 1 1 100%; min-width: 0; }
  .chip-select select,
  .chip-select .gsel { width: 100%; min-width: 0; }

  .filters > .filter-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
    gap: 12px;
  }
  .filters > .filter-row > * { grid-column: 1 / -1; min-width: 0; }
  .filters > .filter-row > .scope-filter,
  .filters > .filter-row > .filter-group:has(> .filter-chips.has-chip-select) { grid-column: auto; }
  .filters > .filter-row > .filter-break { display: none; }
  /* Contractor tickets: search and Group by join the grid as two cells. */
  .filters > .filter-row > .tt-tools { display: contents; }
  .filters > .filter-row > .tt-tools > * { grid-column: auto; min-width: 0; }
  .filters > .filter-row > .tt-tools .search input { width: 100%; min-width: 0; }
  .filters .filter-scopes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
    gap: 12px;
  }
  /* Compact pickers (time sheet) match the other filter dropdowns here. */
  .filters .scope-filter .gsel--compact .gsel-trigger {
    width: 100%;
    max-width: none;
    min-width: 0;
    height: auto;
    min-height: var(--control-height);
    padding: 0 36px 0 var(--control-pad-x);
  }
  .chip-select-label { display: block; margin: 0 0 var(--space-1, 4px); font-size: var(--text); color: var(--ink); }
  .filters > .filter-row .scope-filter select,
  .filters .filter-scopes .scope-filter select,
  .filters .filter-scopes .scope-filter .gsel,
  .filters > .filter-row .scope-filter .gsel,
  .filters > .filter-row .scope-filter input { width: 100%; min-width: 0; }
}

/* Phones (≤700px): a bulk-selection bar's actions show as one "Action"
   dropdown (/action-select.js) with Clear beside it; the count gets its own
   line above. Laptop keeps the buttons (David, 2026-11-01). */
.action-select { display: none; }
@media (max-width: 700px) {
  [data-action-menu].has-action-select { flex-wrap: wrap; }
  [data-action-menu].has-action-select button.btn:not([data-action-keep]) { display: none; }
  [data-action-menu].has-action-select .action-select { display: block; flex: 1 1 0; min-width: 0; }
  [data-action-menu].has-action-select :has(> .action-select) { display: flex; flex: 1 1 0; min-width: 0; gap: var(--control-gap, 8px); }
  [data-action-menu].has-action-select > :is(.bulk-count, [data-sel-count], label) { flex: 1 1 100%; margin-right: 0; }
  .action-select select { width: 100%; min-width: 0; }
  /* Clear stands as tall as the dropdown beside it. */
  [data-action-menu].has-action-select button.btn.btn[data-action-keep] { display: inline-flex; align-items: center; align-self: stretch; height: auto; min-height: 0; padding-block: 0; text-box: normal; }
  /* Mobile button text is 1px bigger (David, 2026-11-01). */
  [data-action-menu] .btn.btn { font-size: calc(var(--text) + 1px); }
}

/* Phone numbers (/phone-ui.js): country picker joined to the number. */
.phone-field {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-width: 0;
}
.phone-field select.phone-country {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  margin-right: -1px;
}
.phone-field input[data-phone-display] {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.phone-field select.phone-country:focus,
.phone-field input[data-phone-display]:focus {
  position: relative;
  z-index: 1;
}
.phone-field .gsel {
  flex: 0 0 auto;
  width: auto;
}
.phone-field .gsel-trigger {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  margin-right: -1px;
  width: auto;
}
.phone-field .gsel-list {
  min-width: 240px;
}

/* Phones and tablets: iOS Safari zooms the page in when a field under 16px
   gets focus. Every typing field is 16px on touch screens so tapping one
   never zooms. Pinch-zoom stays on (no maximum-scale in the viewport tag).
   !important because fields set their own sizes in many stylesheets. */
@media (hover: none) and (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]),
  select,
  textarea,
  [contenteditable]:not([contenteditable="false"]),
  .ql-editor,
  .field-picker,
  .field-picker-option {
    font-size: var(--text-input-phone) !important;
  }
}

/* Dropdowns that aren't a <select> (the Assignee tick list, the laptop
   dropdown in select-ui.js): the box and its options are the same size as a
   <select> beside them, 10pt on a laptop and 16px on a touch screen (above).
   Their classes used to set or inherit their own size, so the phone rule
   missed them and Assignee stayed 13px beside 16px selects (David asked three
   times, 2026-10-29). A new custom dropdown adds .field-picker to its box and
   .field-picker-option to each option; ui-picker-font.mjs fails on any
   box-like dropdown in a form whose text isn't a <select>'s size. */
.field-picker,
.field-picker-option {
  font-size: var(--text);
}

/* .scroll-cue: a list that scrolls inside its card (ticket Check list, admin
   and contractor). The scroll bar is always drawn, not only while scrolling
   (macOS hides overlay bars until you scroll, so nobody knew there was more;
   David, 2026-10-25), and a soft shadow shows at the top / bottom edge while
   there is more to scroll that way. The shadow uses backgrounds only (no JS):
   the "local" covers scroll with the content and hide the "scroll" shadows
   at either end. Set --scroll-cue-bg to the card's background. */
.scroll-cue {
  --scroll-cue-bg: var(--paper, #fff);
  background:
    linear-gradient(var(--scroll-cue-bg) 30%, transparent) center top / 100% 32px no-repeat local,
    linear-gradient(transparent, var(--scroll-cue-bg) 70%) center bottom / 100% 32px no-repeat local,
    radial-gradient(farthest-side at 50% 0, rgba(17, 24, 39, .18), transparent) center top / 100% 10px no-repeat scroll,
    radial-gradient(farthest-side at 50% 100%, rgba(17, 24, 39, .18), transparent) center bottom / 100% 10px no-repeat scroll;
  background-color: var(--scroll-cue-bg);
}
/* Chrome / Safari / Edge: a styled ::-webkit-scrollbar is always shown, even
   with macOS "show scroll bars when scrolling". Firefox has no such override,
   so it gets a thin, coloured bar (the shadow still marks more items). */
.scroll-cue::-webkit-scrollbar { width: 10px; }
.scroll-cue::-webkit-scrollbar-track { background: transparent; }
.scroll-cue::-webkit-scrollbar-thumb { background: #c4c8cf; border-radius: 999px; border: 2px solid var(--scroll-cue-bg); }
.scroll-cue::-webkit-scrollbar-thumb:hover { background: var(--muted); }
@supports not selector(::-webkit-scrollbar) {
  .scroll-cue { scrollbar-width: thin; scrollbar-color: #c4c8cf transparent; }
}

/* Start date | Due date on one line, each with a calendar icon (/date-pair.js;
   David, 2026-10-29). The pair keeps two columns on phones too and spans the
   whole row of whatever grid it sits in. The date reads from the left like
   every other field (iOS centres it otherwise). */
.date-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3, 12px);
  grid-column: 1 / -1;
  min-width: 0;
}
.date-pair > * { min-width: 0; }
.date-box {
  position: relative;
  display: block;
  min-width: 0;
  max-width: 100%;
}
.date-pair .date-box,
.date-pair .date-box > input[type="date"] { width: 100%; }
.date-box > input[type="date"] {
  display: flex;
  min-width: 0;
  max-width: 100%;
  padding-left: 10px;
  padding-right: 34px;
  text-align: left;
  cursor: pointer;
}
.date-box > input[type="date"]::-webkit-date-and-time-value { text-align: left; margin: 0; }
/* Chrome / Edge: their own picker button sits, invisible, under our icon. */
.date-box > input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  top: 0;
  right: 0;
  width: 34px;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}
/* Firefox draws its own button inside the box: our icon covers it and taps go through. */
@supports (-moz-appearance: none) {
  .date-box > input[type="date"] { padding-right: 8px; }
}
.date-box-icon {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: flex;
  padding: 2px;
  border-radius: var(--radius-control);
  color: var(--muted, #6b7280);
  background: var(--control-bg);
  pointer-events: none;
}
.date-box > input[type="date"]:disabled + .date-box-icon { opacity: 0.4; }
.date-ongoing-row .date-box { flex: 1 1 10em; min-width: 0; }
.date-ongoing-row .date-box > input[type="date"] { width: 100%; }
/* In a pair the Ongoing tick goes under the date, so the box keeps its width. */
.date-pair .date-ongoing-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
/* Laptops: no full-width date boxes (David, 2026-11-02: "ongoing can be on the
   same line as the dates", and the standing no-full-width rule). Each box is
   sized to its date, Start and Due sit side by side from the left, and on a
   project the Ongoing tick follows straight after the Due box on the same line.
   Phones keep the two half-width columns with Ongoing under the date. */
@media (min-width: 701px) {
  .date-pair {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    --date-box-width: 11.5rem;
  }
  .date-pair > * { flex: 0 0 auto; width: auto; max-width: 100%; }
  .date-pair .date-box { width: var(--date-box-width); flex: 0 0 auto; }
  .date-pair .date-ongoing-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: var(--space-3, 12px);
  }
  .date-pair .date-ongoing-row .date-box { flex: 0 0 var(--date-box-width); }
}
/* Phones: half a row is narrow, so less room around the date text. */
@media (max-width: 700px) {
  .date-pair { gap: 10px; }
  .date-box > input[type="date"] { padding-left: 8px; padding-right: 28px; }
  .date-box > input[type="date"]::-webkit-calendar-picker-indicator { width: 28px; }
  .date-box-icon { right: 5px; }
}

/* A button beside a field (centred on it, or as tall as it): /style-guide.css, "Button beside a field". */
