/* Clear controls and compact work surfaces; decorative borders stay quiet. */
:root body[data-system-ui] .workspace-nav-indicator { background:var(--sys-primary); }
:root body[data-system-ui] :is(.business-table-heading,.list-columns) { background:var(--sys-table-heading); color:var(--sys-heading); font-weight:600; }
:root body[data-system-ui] :is(.business-record p,.business-record-person > strong,.business-record-time) { font-size:13px; }
:root body[data-system-ui] .business-record-status small { color:var(--sys-muted); font-size:12px; }
:root body[data-system-ui] .business-issue.is-urgent { background:var(--sys-risk-row); border-left-width:0; box-shadow:none; }
:root body[data-system-ui] .business-issue.has-urgent-level { background:var(--sys-urgent-row); }
:root body[data-system-ui] :is(.report-upload__input,.search-field input,.company-select,.status-select) { border-color:var(--sys-input-border); }
:root body[data-system-ui] input::placeholder,
:root body[data-system-ui] textarea::placeholder { color:var(--sys-muted); opacity:1; }
.workspace-filter { margin:0 0 var(--sys-page-gap); min-width:0; }
.workspace-filter > summary { display:none; }
.workspace-filter > form { margin-bottom:0!important; }
.record-more { min-width:0; }
.record-more > summary { list-style:none; cursor:pointer; }
.record-more > summary::-webkit-details-marker { display:none; }
.record-more > summary::after { content:'＋'; margin-left:6px; }
.record-more[open] > summary::after { content:'−'; }
.record-more-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; margin-top:8px; }
:root body[data-system-ui] .record-more .button { min-height:44px; }
:root body[data-system-ui] .monthly-no-report { padding:20px; border:1px solid var(--sys-border); border-radius:8px; background:white; }
:root body[data-system-ui] .monthly-no-report .button { margin-top:12px; }
:root body[data-system-ui] .monthly-disclosure > summary { color:var(--sys-heading); }
:root body[data-system-ui] .report-source-evidence { padding:16px; }
:root body[data-system-ui] .report-source-evidence > div:first-child > p { margin:4px 0; font-size:14px; }
:root body[data-system-ui] .report-photo-help { font-size:14px; line-height:1.6; }
:root body[data-system-ui] .report-photo-guidance { grid-column:1/-1; margin:0; }
:root body[data-system-ui] .report-photo-guidance > summary { cursor:pointer; color:var(--sys-primary); font-size:13px; padding:4px 0; }
:root body[data-system-ui] .report-photo-guidance p { margin:4px 0; font-size:14px; }
:root body[data-system-ui] .report-overview { padding-block:12px; }
:root body[data-system-ui] .shooting-point__requirements { margin:8px 0 0; background:transparent; padding:0; }
:root body[data-system-ui] .task-hero__meta { margin-top:12px; padding-top:12px; }
:root body[data-system-ui] .task-hero__timeline { margin-top:8px; font-size:12px; }
:root body[data-system-ui] .shooting-point { border:0; border-top:1px solid var(--sys-border); border-radius:0; }
:root body[data-system-ui] .shooting-point__header { padding:12px 0; background:transparent; }
:root body[data-system-ui] .shooting-point__body { padding:0 0 12px; }
:root body[data-system-ui] .flight-dialog.is-empty { height:fit-content; min-height:0; }
:root body[data-system-ui] .flight-empty { display:grid; justify-items:center; gap:10px; padding:36px 20px; text-align:center; background:var(--sys-subtle); border-radius:8px; }
:root body[data-system-ui] .flight-empty h3 { margin:0; font-size:18px; }
:root body[data-system-ui] .flight-empty p { margin:0; color:var(--sys-muted); max-width:440px; }
:root body[data-system-ui] .flight-pagination.is-single-page { justify-content:flex-start; }
@media(max-width:600px) {
  :root { --sys-page-top:16px; --sys-page-gap:12px; }
  :root body[data-system-ui] :is(.patrol-heading,.worker-page-heading,.workforce-heading,.page-heading) { gap:10px; }
  /* The three inspection tabs share the shell title instead of repeating a page title. */
  :root body[data-admin-workspace] #patrol-main:is([data-view=dashboard],[data-view=runs],[data-view=attendance],[data-view=monthly],[data-view=issues],[data-view=management]) .patrol-heading h2,
  :root body[data-system-ui=workbench] .page-heading h1 {
    position:absolute; width:1px; height:1px; margin:-1px; padding:0; border:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap;
  }
  /* Reserve two lines so description wrapping does not move the inspection tabs. */
  :root body[data-admin-workspace] #patrol-main:is([data-view=runs],[data-view=attendance],[data-view=monthly]) .patrol-heading p { min-height:3.4em; }
  :root body[data-system-ui=workbench] .page-heading p { display:none; }
  :root body[data-system-ui=workbench] .page-heading { margin-bottom:12px; }
  :root body[data-system-ui=workbench] .page-actions { display:flex; justify-content:flex-end; gap:8px; }
  .workspace-filter { padding:0; border:1px solid var(--sys-border); border-radius:8px; background:white; }
  .workspace-filter > summary { display:list-item; padding:12px 14px; color:var(--sys-primary); cursor:pointer; min-height:46px; }
  .workspace-filter > summary strong { margin-right:10px; }
  .workspace-filter > summary span { color:var(--sys-muted); font-size:13px; overflow-wrap:anywhere; }
  :root body[data-system-ui] .workspace-filter > form { border:0; border-top:1px solid var(--sys-border); border-radius:0 0 8px 8px; padding:12px; }
  :root body[data-system-ui] .workspace-filter .field:has(input:is([type=date],[type=month])) { grid-column:1/-1; }
  :root body[data-system-ui] .patrol-stats:not(.business-monthly-stats) { grid-template-columns:repeat(4,minmax(0,1fr)); gap:0; border:1px solid var(--sys-border); border-radius:8px; background:white; }
  :root body[data-system-ui] .patrol-stats:not(.business-monthly-stats) .patrol-stat { border:0; border-radius:0; padding:10px 7px; background:transparent; }
  :root body[data-system-ui] .patrol-stats:not(.business-monthly-stats) .patrol-stat + .patrol-stat { border-left:1px solid var(--sys-border); }
  :root body[data-system-ui] .patrol-stats:not(.business-monthly-stats) .patrol-stat span { display:block; font-size:11px; line-height:1.5; min-height:33px; }
  :root body[data-system-ui] .patrol-stats:not(.business-monthly-stats) .patrol-stat strong { font-size:23px; }
  :root body[data-system-ui] .business-record-table { margin-top:12px; }
  :root body[data-system-ui] .business-record-table .business-run { grid-template-columns:minmax(0,1fr); gap:8px; }
  :root body[data-system-ui] .business-record-table .business-run > :is(.business-record-primary,.business-record-person,.business-record-status,.business-record-actions) { grid-column:1; grid-row:auto; }
  :root body[data-system-ui] .business-record-table .business-run .business-record-actions { flex-direction:row; align-items:flex-start; justify-content:space-between; margin-top:4px; }
  :root body[data-system-ui] .business-record-person p { margin:0; }
  :root body[data-system-ui] .business-role-tabs { margin-bottom:12px; }
  :root body[data-system-ui] .business-role-tabs button { min-height:44px; padding:6px 8px; }
  :root body[data-system-ui] .record-more-actions { flex-direction:column; }
  :root body[data-system-ui] .report-source-evidence { padding:14px; }
  :root body[data-system-ui] .report-source-evidence .patrol-actions { margin-top:8px; gap:6px; }
  :root body[data-system-ui] .report-source-evidence .patrol-actions .button { padding-inline:10px; }
  :root body[data-system-ui] .report-photo-requirement { margin-block:6px; }
  :root body[data-system-ui] .report-overview { padding:10px 14px; }
  :root body[data-system-ui] .report-overview > h3 { font-size:15px; margin-bottom:4px; }
  :root body[data-system-ui] .report-overview > p { font-size:13px; }
  :root body[data-system-ui] .worker-task-view:not([hidden]) { gap:12px; }
  :root body[data-system-ui] .task-hero { padding:14px; }
  :root body[data-system-ui] .task-hero__meta { gap:10px; }
  :root body[data-system-ui] .task-hero__timeline { margin-top:6px; }
  :root body[data-system-ui] .worker-task-notes { padding:14px; }
  :root body[data-system-ui] .worker-task-notes h3 { margin:0 0 4px; font-size:15px; }
  :root body[data-system-ui] .worker-task-notes p { margin:0; font-size:14px; }
  :root body[data-system-ui] .panorama-workflow { padding:14px; }
  :root body[data-system-ui] .panorama-workflow__heading { gap:4px; margin-bottom:8px; }
  :root body[data-system-ui] .panorama-workflow__heading h2 { font-size:18px; }
  :root body[data-system-ui] .panorama-workflow__heading p { font-size:13px; }
}

:root body[data-system-ui] .task-timing { margin-top:10px; color:var(--sys-muted); font-size:13px; }
:root body[data-system-ui] .task-timing > summary { cursor:pointer; min-height:32px; display:list-item; }
:root body[data-system-ui] .task-timing[open] > summary { margin-bottom:4px; }
@media(min-width:681px) {
  :root body[data-system-ui] .flight-dialog.is-empty { max-height:calc(var(--mobile-viewport-height,100dvh) - 24px); }
}
@media(max-width:600px) {
  :root body[data-system-ui] .task-hero__meta { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:6px 12px; margin-top:8px; padding-top:8px; }
  :root body[data-system-ui] .task-hero__meta > div:last-child { grid-column:1/-1; display:flex; gap:8px; align-items:baseline; }
  :root body[data-system-ui] .task-hero__meta > div:last-child strong { margin-top:0; }
  :root body[data-system-ui] .task-hero__meta span { font-size:12px; }
  :root body[data-system-ui] .task-hero__meta strong { margin-top:2px; font-size:14px; }
  :root body[data-system-ui] .task-timing { margin-top:6px; }
}

:root body[data-system-ui] .report-photo-thumbs:empty { display:none; }
:root body[data-system-ui] .report-source-evidence:not(:has(.report-photo-thumbs img)) > div:first-child { grid-column:1/-1; }
:root body[data-system-ui] .report-source-evidence > .report-photo-guidance { grid-column:1/-1; grid-row:auto; margin:0; }
@media(max-width:600px) {
  :root body[data-system-ui] .report-form #report-fields { gap:12px; }
  :root body[data-system-ui] .report-form #report-fields > .report-overview { padding:12px 14px; }
  :root body[data-system-ui] .report-overview > :is(h3,p) { margin-bottom:6px; }
  :root body[data-system-ui] .report-overview .report-basic-edit:not([open]) { margin-block:6px 0; }
  :root body[data-system-ui] .report-photo-overview { gap:8px; }
}

:root body[data-system-ui] .worker-task-notes { align-self:start; }
:root body[data-system-ui] .shooting-point--reference .shooting-point__header > div {
  position:absolute; width:1px; height:1px; margin:-1px; padding:0; border:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap;
}
:root body[data-system-ui] .shooting-point--reference .shooting-point__header { justify-content:flex-end; padding-block:8px; }

@media(max-width:680px) {
  :root body[data-system-ui] .flight-dialog.is-empty { height:var(--mobile-viewport-height,100dvh); max-height:var(--mobile-viewport-height,100dvh); }
}
