/* ------------------------------------------------------------------ Home (12 November 2026)
   Holly Crowe's sketch: my tasks, the notice board, then one tile per area. The tiles
   are the Safety module card, four across. See app/home.py and templates/home.html. */
.hub-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.hub-head h1 { margin: 0.1rem 0 0; }
.hub-head .home-report { margin: 0; }
.hub-tasks .panel-head,
.notice-board .panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.hub-tasks .panel-head h2,
.notice-board .panel-head h2 { margin: 0; }
.hub-tasks .panel-head > a { font-weight: 700; font-size: 0.88rem; color: var(--brand-700); text-decoration: none; }
.hub-waiting { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.6rem 0; }
.hub-waiting a { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.7rem; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink); font-size: 0.84rem; text-decoration: none; }
.hub-waiting a b { font-variant-numeric: tabular-nums; }
.hub-waiting a.has-items { border-color: var(--env-yellow); box-shadow: inset 3px 0 0 var(--env-yellow); }
.hub-waiting a:hover { background: var(--ground); }
.hub-empty { margin: 0.6rem 0 0; color: var(--ink-soft); }
.hub-more { margin: 0.5rem 0 0; font-size: 0.88rem; }
.hub-more a,
.notice-more a { color: var(--brand-700); font-weight: 700; text-decoration: none; }

.notice-list { list-style: none; margin: 0.7rem 0 0; padding: 0; display: grid; gap: 0.7rem; }
.notice { padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); min-width: 0; }
.notice.is-pinned { border-color: color-mix(in srgb, var(--env-yellow) 60%, var(--line)); background: #fffbf0; box-shadow: inset 4px 0 0 var(--env-yellow); }
.notice.is-old { background: var(--ground-warm); }
.notice-top { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.notice-top h3 { margin: 0; font-size: 1rem; overflow-wrap: anywhere; }
.notice-body { margin: 0.3rem 0 0.4rem; color: var(--ink); font-size: 0.92rem; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.notice-meta { color: var(--ink-soft); font-size: 0.8rem; }
.notice-meta a { color: var(--ink-soft); }
.notice-meta .inline-form { display: inline; }
.notice-pin { display: inline-block; padding: 0.05rem 0.45rem; border-radius: 999px; background: var(--env-yellow); color: var(--charcoal-950); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; }
.notice-more { margin: 0.7rem 0 0; font-size: 0.86rem; }
.notice-form textarea { min-height: 9rem; }
.link-button { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.link-button:focus-visible { outline: 2px solid var(--env-yellow); outline-offset: 2px; }

.hub-areas h2 { margin: 1.6rem 0 0.7rem; font-size: 1.05rem; }
.hub-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.hub-grid .module-card { min-height: 128px; grid-template-columns: 48px minmax(0, 1fr); padding: 1rem 1.05rem; align-items: start; }
.hub-grid .module-icon { width: 48px; height: 48px; border-radius: 12px; }
.hub-grid .module-icon svg { width: 26px; height: 26px; }
.module-copy .hub-live { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.45rem; }
.module-copy .hub-live .pill { font-size: 0.72rem; line-height: 1.4; }
.module-copy .nav-wip { font-size: 0.62rem; vertical-align: middle; }
.module-safety { --module-color: var(--incident); }
.module-vehicles { --module-color: var(--vehicle); }
.module-hr { --module-color: #2f7f6f; }
.module-oh { --module-color: var(--brand-700); }
.module-it { --module-color: #4b5a8a; }
.module-assets { --module-color: var(--maintenance); }
.module-blr { --module-color: #7a6a58; }
/* Not built yet: drawn, not clickable (Zak, 12 November 2026). */
.module-card.is-wip { cursor: default; background: var(--ground-warm); border-style: dashed; border-left-style: solid; box-shadow: none; }
.module-card.is-wip:hover { transform: none; box-shadow: none; border-color: #e6e9eb; }
.module-card.is-wip .module-icon { background: color-mix(in srgb, var(--module-color) 45%, #c9cfd3); }
.module-card.is-wip .module-copy strong { color: var(--ink-soft); }
.module-copy .wip-tag { display: inline-block; margin-left: 0.35rem; padding: 0.05rem 0.4rem; border-radius: 999px; background: rgba(24, 33, 39, 0.08); color: #51606a; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.04em; line-height: 1.5; text-transform: uppercase; vertical-align: middle; }

@media (max-width: 1080px) { .hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .hub-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .hub-grid .module-card { min-height: 0; }
  .hub-head .home-report { width: 100%; }
}

/* Procurement, Assets & Maintenance requests (Holly Crowe's brief, 13 November 2026). */
.asset-kinds { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 1.2rem; }
.asset-kinds .module-card { grid-template-columns: minmax(0, 1fr); min-height: 0; border-left: 4px solid var(--maintenance); }
.asset-kinds .module-copy strong { font-size: 1rem; }
.field-hint { display: block; margin-top: 0.2rem; font-weight: 400; }
.pre-wrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.card-attention { border-left: 4px solid var(--amber); background: var(--amber-bg); }
.decision-more { margin-top: 0.8rem; }
.decision-more > summary { cursor: pointer; font-weight: 600; color: var(--ink-soft); }
.decision-more form { margin-top: 0.6rem; }
.file-list { margin: 0 0 0.8rem; padding-left: 1.1rem; }
.file-list li { margin: 0.25rem 0; overflow-wrap: anywhere; }
.timeline { list-style: none; margin: 0 0 1rem; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; margin: 0 0 0.75rem; padding-left: 0.9rem; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 0.45rem; width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.timeline li p { margin: 0.2rem 0 0; }
.settings-form .card { margin-bottom: 1rem; }
.settings-form textarea { min-height: 8rem; }
fieldset.full { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; align-items: center; }
fieldset.full legend { width: 100%; font-weight: 600; margin-bottom: 0.3rem; }
@media (max-width: 760px) { .asset-kinds { grid-template-columns: minmax(0, 1fr); } }
/* Access tab and Access by role (13 November 2026). One row per line of ENV's
   access table: what it is, what the role gives, the exception, the result. */
.access-group {
  margin: 1.4rem 0 0.3rem;
  color: var(--amber);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.access-row {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 2fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.6rem 0.5rem;
  border-bottom: 1px dashed var(--line);
}

.access-row-exception {
  background: var(--amber-bg);
  box-shadow: inset 3px 0 0 var(--amber);
}

.access-what,
.access-role,
.access-choice {
  min-width: 0;
  display: grid;
  gap: 0.25rem;
}

.access-label {
  font-weight: 600;
}

.access-role {
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.access-role-tag {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.access-choice .segmented-control {
  min-height: 36px;
}

.access-choice .segment span {
  min-height: 36px;
  padding: 0.35rem;
}

.access-reason {
  width: 100%;
  min-width: 0;
  font-size: 0.85rem;
}

.access-fixed {
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.access-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  padding: 0.8rem 0;
  border-top: 1px solid var(--line-strong);
  background: var(--surface, #ffffff);
}

.access-matrix td,
.access-matrix th {
  vertical-align: top;
}

.access-matrix td.access-no {
  color: var(--ink-soft);
}

@media (max-width: 760px) {
  .access-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .access-role,
  .access-choice {
    grid-column: 1 / -1;
  }

  .access-result {
    grid-row: 1;
    grid-column: 2;
  }
}

/* Fleet management, bookings and the vehicle overview (Alana Low's layout, 12 November
   2026). Every colour is a token above; nothing new in the palette. The fleet's own tab
   row went on 23 November 2026: the Vehicles area bar carries every tab. */
.view-toggle {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}

.view-toggle a {
  padding: 0.4rem 0.75rem;
  background: #fff;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.view-toggle a.on {
  background: var(--charcoal-900);
  color: #fff;
}

.pill-warn { background: var(--amber-bg); color: var(--amber); }
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-info { background: var(--info-bg); color: var(--info); }

.pool-tag {
  color: var(--info);
  font-weight: 700;
}

.vehicle-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.9rem;
}

.vehicle-card {
  position: relative;
  border: 1px solid var(--line);
  border-top: 4px solid var(--ok);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

.vehicle-card.is-bad { border-top-color: var(--red); }
.vehicle-card.is-warn { border-top-color: var(--env-yellow); }

.vehicle-card-link {
  display: block;
  padding: 0.85rem 1rem 1rem;
  color: var(--ink);
  text-decoration: none;
}

.vehicle-card-link:hover .vehicle-card-rego {
  text-decoration: underline;
}

.vehicle-card-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-content: flex-end;
  gap: 0.25rem;
  /* Room for two rows of badges on every card, so the pictures and regos line up
     across the grid whether a card carries one badge or three. */
  min-height: 2.85rem;
}

.vehicle-card-picture {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 82px;
  margin: 0.4rem 0 0.5rem;
}

.vehicle-card-picture .vehicle-picture {
  max-height: 82px;
  max-width: 100%;
}

.vehicle-picture {
  display: block;
  object-fit: contain;
}

.vehicle-outline {
  width: 150px;
  height: auto;
  color: #c3ccd2;
}

.vehicle-card-rego {
  display: block;
  font-size: 1.12rem;
  letter-spacing: 0.02em;
}

.vehicle-card-model {
  display: block;
  margin: 0.05rem 0 0.55rem;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.vehicle-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.22rem 0.6rem;
  margin: 0;
  font-size: 0.8rem;
}

.vehicle-card dt { color: var(--ink-soft); }
.vehicle-card dd { margin: 0; font-weight: 600; }

.vehicle-card-action {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
}

.vehicle-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  margin: 0.4rem 0 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.vehicle-head-picture .vehicle-picture {
  width: 150px;
  max-height: 100px;
}

.vehicle-head-main {
  flex: 1 1 260px;
}

.vehicle-head-main h1 {
  margin: 0;
}

.vehicle-head-main .page-intro {
  margin: 0.1rem 0 0.4rem;
}

.vehicle-head-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
}

.vehicle-head-actions {
  flex-direction: column;
  align-items: stretch;
}

.odo {
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ground);
  text-align: right;
}

.odo span,
.odo small {
  display: block;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.odo b {
  font-size: 1.25rem;
}

.vehicle-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.keytiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.keytile {
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--ground);
}

.keytile > span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.keytile > b {
  display: block;
  margin-top: 0.15rem;
  font-size: 1rem;
}

.keytile > small {
  display: block;
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.keytile.is-bad { border-color: #ecc3bd; background: var(--red-bg); }
.keytile.is-bad b, .keytile.is-bad small { color: var(--red); }
.keytile.is-warn { border-color: #f0dca8; background: var(--amber-bg); }
.keytile.is-warn b { color: var(--amber); }
.keytile.is-ok { border-color: #c5e0cf; background: var(--ok-bg); }
.keytile.is-ok b { color: var(--ok); }

.fleet-kv {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0.45rem 1rem;
  margin: 1rem 0 0;
  font-size: 0.88rem;
}

.fleet-kv dt { color: var(--ink-soft); }
.fleet-kv dd { margin: 0; font-weight: 600; }

.actions-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.actions-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.actions-list li:first-child { border-top: 0; }

.actions-text { flex: 1; }

.actions-text .src {
  display: block;
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.vehicle-photo-form {
  margin: 1rem 0 0.5rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.vehicle-photo-form h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
}

/* The bookings calendar. Each vehicle row is a track of day cells, with the bookings
   laid over it in lanes so a morning and an afternoon on one day both show. */
.cal-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

.seg {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}

.seg a {
  padding: 0.42rem 0.8rem;
  background: #fff;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.seg a.on {
  background: var(--charcoal-900);
  color: #fff;
}

.weeknav {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
}

.weeknav > a:not(.btn) {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
  color: var(--ink-soft);
  text-decoration: none;
}

.cal-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.cal-filter select {
  width: auto;
  margin: 0;
}

.cal-filter .inline-check {
  display: inline-flex;
  gap: 0.3rem;
  align-items: center;
  font-size: 0.82rem;
}

.cal-filter .inline-check input {
  width: auto;
  margin: 0;
}

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-left: auto;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.cal-legend span::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 0.35rem;
  border-radius: 3px;
  vertical-align: -2px;
}

.cal-legend .lg-free::before { border: 1px solid #c5e0cf; background: var(--ok-bg); }
.cal-legend .lg-booked::before { border: 1px solid #bcd3e3; background: var(--info-bg); }
.cal-legend .lg-shop::before { border: 1px solid #f0dca8; background: var(--amber-bg); }
.cal-legend .lg-out::before { border: 1px solid #ecc3bd; background: var(--red-bg); }
.cal-legend .lg-closed::before { border: 1px solid var(--line); background: var(--ground); }

.fleet-cal {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.cal-row {
  display: grid;
  grid-template-columns: 190px minmax(calc(var(--days) * 52px), 1fr);
  min-width: max-content;
  border-top: 1px solid var(--line);
}

.cal-month .cal-row {
  grid-template-columns: 170px minmax(calc(var(--days) * 30px), 1fr);
}

.cal-headrow {
  border-top: 0;
  background: var(--ground);
}

.cal-vehicle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.45rem 0.6rem;
  border-right: 1px solid var(--line);
  font-size: 0.8rem;
}

.cal-vehicle a { color: var(--ink); text-decoration: none; }
.cal-vehicle b { font-size: 0.92rem; }
.cal-vehicle small { color: var(--ink-soft); font-size: 0.72rem; }
.cal-headrow .cal-vehicle { font-weight: 800; }

.cal-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--days), minmax(0, 1fr));
  min-height: calc(var(--lanes, 1) * 46px + 10px);
}

.cal-days {
  min-height: 0;
}

.cal-day {
  padding: 0.45rem 0.2rem;
  border-left: 1px solid var(--line);
  text-align: center;
  font-size: 0.76rem;
}

.cal-day b { display: block; }
.cal-day small { color: var(--ink-soft); }
.cal-day.is-weekend { color: var(--ink-soft); }
.cal-day.is-today { box-shadow: inset 0 -3px 0 var(--env-yellow); }

.cal-cell {
  border-left: 1px solid var(--line);
}

.cal-cell.is-open {
  background: var(--ok-bg);
}

.cal-cell.is-open:hover {
  background: #d6ecdd;
}

.cal-cell.is-closed {
  background: repeating-linear-gradient(45deg, #fafbfc, #fafbfc 6px, var(--ground) 6px, var(--ground) 12px);
}

.cal-cell.is-weekend.is-open {
  background: #eef6f0;
}

.cal-bar {
  position: absolute;
  top: calc(var(--lane) * 46px + 5px);
  left: calc((var(--col) - 1) / var(--days) * 100% + 3px);
  width: calc(var(--span) / var(--days) * 100% - 6px);
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 0.2rem 0.5rem;
  border-left: 3px solid;
  border-radius: 6px;
  font-size: 0.74rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.cal-bar b,
.cal-bar span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-bar.bar-booked { border-color: var(--info); background: #dbe9f3; color: var(--info); }
.cal-bar.bar-shop { border-color: var(--amber); background: var(--amber-bg); color: var(--amber); }
.cal-bar.bar-out { border-color: var(--red); background: var(--red-bg); color: var(--red); }

.booking-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
}

.booking-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.booking-cancel {
  margin-top: 0.8rem;
}

.booking-photo .vehicle-picture {
  width: 140px;
  max-height: 90px;
}

.avail {
  margin: 0.6rem 0;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 700;
}

.avail-ok { background: var(--ok-bg); color: var(--ok); }
.avail-warn { background: var(--amber-bg); color: var(--amber); }
.avail-bad { background: var(--red-bg); color: var(--red); }

.side-list {
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.86rem;
}

.side-list li {
  padding: 0.5rem 0;
  border-top: 1px solid var(--line);
}

.side-list span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.text-bad { color: var(--red); }

@media (max-width: 760px) {
  .vehicle-overview,
  .booking-grid {
    grid-template-columns: 1fr;
  }

  .vehicle-head-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .odo {
    text-align: left;
  }

  .cal-legend {
    margin-left: 0;
  }
}

.booking-form .label-text {
  display: block;
}

/* Fleet register header and numbers on one line each (Zak, 12 November 2026: the
   nine tiles and the four buttons each took two rows above the fold). */
.stat-row-compact {
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.stat-row-compact .stat {
  padding: 0.55rem 0.7rem;
}

.stat-row-compact .stat b {
  font-size: 1.25rem;
}

.stat-row-compact .stat span {
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  line-height: 1.25;
}

@media (max-width: 1100px) {
  .stat-row-compact {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .stat-row-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 901px) {
  .fleet-head .head-actions {
    flex-shrink: 0;
    flex-wrap: nowrap;
  }
}

/* Tick boxes and radios beside their words, in every request form (Zak, 16 November
   2026: "Yes" sat above its radio). `.form-grid label` stacks its children and the
   base `input` rule gives every input 44px of height and full width. */
.form-grid label.checkbox-row {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  min-height: 24px;
  font-weight: 600;
  color: var(--ink);
}
.checkbox-row input[type="radio"],
.checkbox-row input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  min-height: 0;
  padding: 0;
  margin: 0;
  flex: none;
  accent-color: #1f2a30;
}
.form-grid label.checkbox-row:has(.field-hint) { align-items: flex-start; }
.form-grid label.checkbox-row:has(.field-hint) input { margin-top: 0.15rem; }

/* Settings lists, one field per item (templates/_list_rows.html). Qualified with the
   element so it outranks the generic `fieldset.full` rule on full-width lists. */
fieldset.list-rows {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

fieldset.list-rows legend {
  margin-bottom: 0.34rem;
  padding: 0;
  color: #53616b;
  font-size: 0.79rem;
  font-weight: 700;
}

.list-rows-items {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.list-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.list-row input,
.list-row select {
  flex: 1 1 auto;
  min-width: 0;
}

.list-row-remove {
  flex: none;
}

.list-rows-note {
  align-self: start;
  margin: 0;
}

