/* Blower compact presentation. This stylesheet does not calculate or overwrite
   runtimes, permissions, source records, alert thresholds or query behavior. */

.page-shell { padding-top: 12px; padding-bottom: 18px; }
.page-header { margin-bottom: 8px; gap: 16px; }
.page-header h1 { font-size: 25px; line-height: 1.3; }
.page-description { margin-top: 4px; font-size: 12px; line-height: 1.4; }
.type-tabs { gap: 6px; padding-bottom: 6px; }
.type-tab { min-height: 36px; padding-inline: 12px; }
.sub-tabs { min-height: 38px; padding-block: 3px; }
.sub-tab { min-height: 30px; }
.subview { padding: 9px; }
.status-toolbar { gap: 6px; margin-bottom: 6px; }
.status-filter { min-height: 28px; }
.settings-strip { padding: 6px 9px; margin-top: 4px; }
.asset-section { margin-top: 6px; }

/* Keep the timestamp readable without a three-line oversized heading. */
.overview-refresh-panel {
  gap: 14px; padding: 8px 12px; margin-bottom: 8px; border-radius: 8px;
}
.overview-refresh-latest {
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline; column-gap: 10px; row-gap: 3px;
}
.overview-refresh-latest > span { font-size: 11px; }
.overview-refresh-latest > strong {
  margin-top: 0; font-size: 19px; letter-spacing: -.02em;
  line-height: 1.25; white-space: normal; overflow-wrap: anywhere;
}
.overview-refresh-latest > small {
  grid-column: 1 / -1; margin-top: 0; font-size: 11px; line-height: 1.4;
}
.overview-refresh-action { min-width: 230px; gap: 9px; }
#refreshButton.overview-refresh-button {
  flex-basis: 40px; width: 40px; height: 40px; min-width: 40px; border-radius: 10px;
}
.overview-refresh-icon { width: 24px; height: 24px; }
.overview-refresh-progress-head strong { font-size: 17px; }
.overview-refresh-progress-head span { font-size: 11px; }
.overview-refresh-progress-track { height: 5px; margin-top: 4px; }

/* Preserve all groups and unit identities. The two final categories share
   one desktop row instead of leaving an empty half beside the Silo group. */
.all-overview-dashboard { gap: 8px; margin-top: 6px; }
.all-overview-summary { gap: 6px; }
.all-overview-summary > div {
  align-items: center; padding: 5px 10px; gap: 8px; border-radius: 7px;
}
.all-overview-summary span { font-size: 11px; line-height: 1.3; }
.all-overview-summary strong { font-size: 21px; line-height: 1.3; }
.all-overview-group { padding: 7px; border-radius: 8px; }
.all-overview-group > header { margin-bottom: 5px; }
.all-overview-group > header h3 { font-size: 14px; line-height: 1.35; }
.all-overview-group > header span { font-size: 11px; }
.all-overview-unit-layout { gap: 7px; }
.all-overview-unit-panel { padding: 4px; border-radius: 7px; }
.all-overview-unit-header {
  min-height: 23px; margin: 0 0 4px; padding: 2px 5px;
  background: transparent; border-radius: 0;
}
.all-overview-unit-header strong { font-size: 12px; }
.all-overview-unit-header span { font-size: 10px; }
.all-overview-unit-card-grid { gap: 5px; }
.all-overview-card {
  min-height: 118px; gap: 5px; padding: 7px;
  border-radius: 6px;
}
.all-overview-card-head { gap: 4px; }
.all-overview-identity strong {
  font-size: 13px; line-height: 1.2; white-space: normal;
  overflow: visible; text-overflow: clip; word-break: keep-all;
}
.all-overview-identity small {
  margin-top: 3px; font-size: 10px; line-height: 1.2;
  white-space: normal; overflow: visible; overflow-wrap: anywhere; text-overflow: clip;
}
.all-overview-card .operation-pill,
.all-overview-card .operation-mode-pill {
  min-height: 20px; font-size: 10px; padding-inline: 5px;
}
.all-overview-metrics { grid-template-columns: minmax(0, 1fr); gap: 3px; }
.all-overview-metrics > span {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 5px; padding: 0; background: transparent; border-radius: 0;
}
.all-overview-metrics small,
.all-overview-query-period small { font-size: 10px; line-height: 1.3; }
.all-overview-metrics small { flex: 0 0 auto; }
.all-overview-metrics strong {
  min-width: 0; margin-top: 0; font-size: 12px; line-height: 1.25;
  white-space: normal; overflow: visible; text-overflow: clip;
  overflow-wrap: anywhere; text-align: right; font-variant-numeric: tabular-nums;
}
.all-overview-metrics > span:first-child strong { font-size: 18px; font-weight: 850; }
.all-overview-card[data-operation-state="unknown"] .all-overview-metrics > span:first-child strong,
.all-overview-card[data-operation-state="unconfirmed"] .all-overview-metrics > span:first-child strong {
  font-size: 12px; line-height: 1.35;
}
.all-overview-query-period { padding-top: 3px; border-top: 1px solid rgba(112,130,147,.16); }
.all-overview-query-period strong {
  margin-top: 2px; font-size: 11px; line-height: 1.3;
  white-space: normal; overflow: visible; text-overflow: clip;
  overflow-wrap: anywhere; font-variant-numeric: tabular-nums;
}
.all-overview-missing { font-size: 11px; }
/* Keep the original left-border alert colors also when hovering/focusing. */
button.all-overview-card[data-severity="warning"]:hover { border-left-color: var(--warning); }
button.all-overview-card[data-severity="critical"]:hover { border-left-color: var(--critical); }
button.all-overview-card[data-severity="overdue"]:hover { border-left-color: var(--overdue); }

/* Per-type cards: larger metrics, no clipping of a valid zero or long value. */
.unit-group + .unit-group { margin-top: 8px; }
.unit-heading { margin-bottom: 4px; }
.asset-grid { gap: 8px; }
.asset-card { padding: 8px; }
.asset-tag { font-size: 11px; }
.asset-card .dataparc-runtime-row { margin-top: 6px; padding: 6px 8px; }
.asset-card[data-run-view] .run-source-row { min-height: 0; }
.asset-card .dataparc-runtime-basis > span { font-size: 11px; }
.asset-card .dataparc-runtime-basis strong {
  font-size: 13px; line-height: 1.4; font-variant-numeric: tabular-nums;
  white-space: normal; overflow-wrap: anywhere;
}
.asset-card .dataparc-runtime-basis small { font-size: 11px; line-height: 1.4; }
.asset-card .cycle-overview { margin-top: 6px; gap: 5px; }
.cycle-primary-metric, .cycle-deadline-metric, .cycle-usage-metric { padding: 6px 8px; }
.asset-card .cycle-primary-metric > strong {
  font-size: 28px; line-height: 1.2; letter-spacing: -.025em;
  overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.asset-card .cycle-deadline-metric > strong,
.asset-card .cycle-usage-metric > strong {
  font-size: 23px; line-height: 1.3; font-variant-numeric: tabular-nums;
}
.asset-card .cycle-date-line { margin-top: 5px; padding: 5px 7px; font-variant-numeric: tabular-nums; }
.asset-card .asset-evidence { margin-top: 5px; }
.asset-card .asset-evidence > summary { padding-block: 5px; min-height: 28px; }
.asset-card .asset-actions { margin-top: 6px; gap: 5px; }
.asset-card .asset-actions .button { min-height: 32px; }

/* History stays readable, including the event date and runtime evidence. */
.history-table { font-size: 13px; }
.history-table th { padding: 8px 9px; }
.history-table td { padding: 8px 9px; line-height: 1.45; }
.history-table td:first-child,
.history-table td:nth-child(4) { font-variant-numeric: tabular-nums; }
.history-dialog { width: min(820px, calc(100vw - 24px)); }
.history-dialog-shell { max-height: calc(100dvh - 24px); }
.asset-history-item { gap: 10px; padding: 9px 10px; }
.asset-history-date { font-size: 12px; font-variant-numeric: tabular-nums; }
.asset-history-heading strong { font-size: 12px; }
.asset-history-content p { font-size: 13px; }
.asset-history-content small { font-size: 11px; }
.asset-history-edit, .asset-history-reset, .button.asset-history-delete { font-size: 11px; min-height: 28px; }

@media (min-width: 1181px) {
  .all-overview-dashboard { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .all-overview-summary,
  .all-overview-group { grid-column: 1 / -1; }
  .all-overview-group[data-overview-type="flyash_bag"] { grid-column: span 2; }
  .all-overview-group[data-overview-type="flyash_silo"] { grid-column: span 1; }
  .all-overview-group[data-overview-type="flyash_silo"] .all-overview-unit-layout[data-unit-count="1"] {
    grid-template-columns: minmax(0, 1fr);
  }
  .all-overview-group[data-overview-type="flyash_silo"] .all-overview-unit-panel { grid-column: auto; }
}
@media (min-width: 1181px) and (max-width: 1400px) {
  .all-overview-metrics > span:first-child strong { font-size: 16px; }
  .all-overview-card .operation-pill,
  .all-overview-card .operation-mode-pill { padding-inline: 4px; font-size: 9px; }
  .all-overview-identity strong { font-size: 12px; }
  .all-overview-identity small { font-size: 9px; }
  .all-overview-metrics small { font-size: 9px; }
}
@media (max-width: 1180px) and (min-width: 701px) {
  .overview-refresh-action { min-width: 200px; }
  .all-overview-metrics > span:first-child strong { font-size: 18px; }
  .asset-card .cycle-primary-metric > strong { font-size: 23px; }
  .asset-card .cycle-deadline-metric > strong,
  .asset-card .cycle-usage-metric > strong { font-size: 20px; }
}
@media (max-width: 700px), (max-width: 1024px) and (hover: none) and (pointer: coarse) {
  .page-shell { padding-top: 10px; }
  .page-header h1 { font-size: 20px; }
  .page-description { font-size: 11px; }
  .type-tab { min-height: 36px; }
  .status-filter { min-height: 30px; }
  .overview-refresh-panel { padding: 8px 9px; }
  .overview-refresh-latest { column-gap: 8px; }
  .overview-refresh-latest > strong { font-size: 17px; }
  .overview-refresh-latest > small { font-size: 10px; }
  /* Mobile remains read-only: the original hidden refresh action is not changed. */
  .all-overview-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; overflow: visible; padding-bottom: 0; }
  .all-overview-summary > div { display: flex; padding: 5px 7px; gap: 3px; }
  .all-overview-summary span { font-size: 10px; }
  .all-overview-summary strong { margin-top: 0; font-size: 17px; }
  .all-overview-group { padding: 5px; }
  .all-overview-group > header h3 { font-size: 12px; }
  .all-overview-unit-panel { padding: 3px; }
  .all-overview-unit-header { min-height: 24px; padding: 3px 4px; }
  .all-overview-unit-header strong { font-size: 11px; }
  .all-overview-unit-header span { font-size: 10px; }
  .all-overview-card { min-height: 128px; padding: 6px; gap: 5px; }
  .all-overview-card-head { flex-wrap: wrap; }
  .all-overview-identity { flex: 1 1 80px; }
  .all-overview-identity strong { font-size: 12px; }
  .all-overview-identity small { font-size: 9px; }
  .all-overview-status-badges { margin-left: auto; }
  .all-overview-card .operation-pill,
  .all-overview-card .operation-mode-pill { min-height: 19px; font-size: 9px; padding-inline: 4px; }
  .all-overview-metrics > span:first-child { display: block; }
  .all-overview-metrics > span:first-child strong { margin-top: 2px; font-size: 18px; text-align: left; }
  .all-overview-metrics > span:nth-child(2) { display: block; }
  .all-overview-metrics > span:nth-child(2) strong { margin-top: 2px; text-align: left; font-size: 11px; }
  .all-overview-metrics small, .all-overview-query-period small { font-size: 9px; }
  .all-overview-query-period strong { font-size: 10px; }
  .all-overview-card[data-operation-state="unknown"] .all-overview-metrics > span:first-child strong,
  .all-overview-card[data-operation-state="unconfirmed"] .all-overview-metrics > span:first-child strong { font-size: 12px; }
  .asset-card .dataparc-runtime-row { padding: 5px 6px; }
  .asset-card[data-run-view] .run-source-mobile { font-size: 11px; }
  .asset-card[data-run-view] .run-source-mobile small { font-size: 10px; }
  .asset-card[data-run-view] .cycle-primary-metric > strong { font-size: 19px !important; }
  .asset-card .cycle-deadline-metric > strong,
  .asset-card .cycle-usage-metric > strong { font-size: 17px; }
  .history-table { font-size: 12px; }
  .history-table td { padding: 5px 6px; }
  .history-table td::before { font-size: 10px; }
  .asset-history-item { gap: 7px; padding: 8px; }
  .asset-history-date { font-size: 12px; }
  .asset-history-content p { font-size: 12px; }
  .history-dialog-footer [data-close-dialog] { min-height: 40px; }
}

/* In the history dialog, use a full-width provenance row rather than
   squeezing the full query range into a fifth narrow column. */
.history-cycle-summary { grid-template-columns: auto repeat(3, minmax(0, 1fr)); gap: 8px; padding: 10px; }
.history-cycle-summary div > span { font-size: 11px; }
.history-cycle-summary > div:not(.history-unknown):not(.run-history-note) > strong {
  font-size: 16px; line-height: 1.35; font-variant-numeric: tabular-nums;
}
.history-cycle-summary > .run-history-note {
  grid-column: 1 / -1; display: flex; flex-direction: row; align-items: baseline;
  flex-wrap: wrap; gap: 4px 12px; padding: 6px 0 0 !important;
  border-left: 0 !important; border-top: 1px solid #e2e7eb;
}
.history-cycle-summary > .run-history-note > strong { font-size: 12px; }
.history-cycle-summary > .run-history-note > small { font-size: 12px; font-variant-numeric: tabular-nums; }
.history-cycle-summary > .run-history-note > span { font-size: 11px; }
@media (max-width: 700px), (max-width: 1024px) and (hover: none) and (pointer: coarse) {
  .history-cycle-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .history-cycle-summary > .status-pill { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  /* Two readable cards instead of three columns with broken hour units. */
  .asset-grid, .asset-grid.is-unit-grid, .asset-grid.is-two, .asset-grid.is-single {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .asset-card[data-run-view] .cycle-primary-metric > strong {
    font-size: clamp(17px, 4.6vw, 20px) !important;
  }
}

/* BLOWER DETAIL / HISTORY READABILITY V2
   Design-only overrides for the approved Blower compact screen.
   Does not alter runtime calculation, RUN/STOP state, event data, permissions,
   OIS acquisition, refresh scheduling, API behavior, or form submission logic. */

/* 1) Latest-query / refresh row: one compact operational strip. */
.overview-refresh-panel {
  min-height: 54px;
  gap: 12px;
  margin-bottom: 6px;
  padding: 6px 10px;
  border-radius: 8px;
}
.overview-refresh-latest {
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 9px;
  row-gap: 1px;
}
.overview-refresh-latest > span {
  align-self: center;
  font-size: 10px;
}
.overview-refresh-latest > strong {
  align-self: center;
  font-size: 18px;
  line-height: 1.2;
}
.overview-refresh-latest > small {
  font-size: 10px;
  line-height: 1.3;
}
.overview-refresh-action {
  min-width: 210px;
  gap: 8px;
}
#refreshButton.overview-refresh-button {
  flex-basis: 36px;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 9px;
}
.overview-refresh-icon { width: 21px; height: 21px; }
.overview-refresh-progress-head strong { font-size: 16px; }
.overview-refresh-progress-head span { font-size: 10px; }
.overview-refresh-progress-track { height: 4px; margin-top: 3px; }

/* 2) Asset history dialog: larger facts, smaller dead space. */
.history-dialog {
  width: min(860px, calc(100vw - 24px));
}
.history-dialog .dialog-header {
  align-items: center;
  padding: 13px 16px 10px;
}
.history-dialog .dialog-header h2 {
  font-size: 22px;
  line-height: 1.25;
}
.history-dialog .dialog-header p {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.35;
}
.history-dialog .dialog-body {
  gap: 8px;
  padding: 11px 14px;
}
.history-cycle-summary {
  gap: 8px;
  padding: 9px 10px;
}
.history-cycle-summary div > span {
  font-size: 10px;
  line-height: 1.25;
}
.history-cycle-summary div > strong {
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}
.asset-history-list { gap: 6px; }
.asset-history-item {
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 10px;
}
.asset-history-date {
  padding-top: 2px;
  font-size: 12px;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}
.asset-history-heading { gap: 5px; }
.asset-history-heading strong {
  font-size: 12px;
  line-height: 1.35;
}
.asset-history-content p {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.42;
}
.asset-history-content small {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.35;
}
.asset-history-actions { gap: 4px; }
.asset-history-edit,
.asset-history-reset,
.button.asset-history-delete {
  min-height: 30px;
  padding: 3px 10px;
  font-size: 11px;
}
.event-edited { font-size: 9px; }
.history-dialog-footer {
  gap: 6px;
  padding: 9px 14px 11px;
}
.history-dialog-footer .button {
  min-height: 34px;
  padding-inline: 11px;
  font-size: 11px;
}

/* 3) Edit / registration dialog opened from [수정]. */
#recordDialog {
  width: min(650px, calc(100vw - 24px));
}
#recordDialog .dialog-header {
  align-items: center;
  padding: 13px 16px 10px;
}
#recordDialog .dialog-header h2 {
  font-size: 21px;
  line-height: 1.25;
}
#recordDialog .dialog-header p {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.35;
}
#recordDialog .dialog-body {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 10px;
  padding: 12px 16px;
}
#recordDialog .field { gap: 4px; }
#recordDialog .field > span {
  font-size: 13px;
  line-height: 1.3;
}
#recordDialog .field small {
  font-size: 11px;
  line-height: 1.35;
}
#recordDialog input:not([type="checkbox"]),
#recordDialog select {
  min-height: 36px;
}
#recordDialog textarea {
  min-height: 88px;
  line-height: 1.45;
}
#recordDialog .runtime-edit-pending,
#recordDialog .runtime-cycle-summary,
#recordDialog .source-preview,
#recordDialog .field:has(#replacementRunning),
#recordDialog .field:has(#recordNote) {
  grid-column: 1 / -1;
}
#recordDialog .runtime-edit-pending {
  gap: 8px;
  padding: 8px 9px;
}
#recordDialog .runtime-edit-pending small { font-size: 11px; }
#recordDialog .dialog-footer {
  gap: 6px;
  padding: 9px 16px 11px;
}
#recordDialog .dialog-footer .button {
  min-height: 34px;
  padding-inline: 13px;
}

@media (max-width: 700px), (max-width: 1024px) and (hover: none) and (pointer: coarse) {
  .overview-refresh-panel {
    min-height: 0;
    padding: 7px 9px;
  }
  .overview-refresh-latest > strong { font-size: 17px; }
  /* Existing mobile policy keeps the refresh action hidden. */
  .history-dialog,
  #recordDialog { width: calc(100vw - 12px); }
  .history-dialog .dialog-header,
  #recordDialog .dialog-header { padding: 11px 12px 9px; }
  .history-dialog .dialog-body,
  #recordDialog .dialog-body { padding: 10px 12px; }
  .asset-history-item {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 8px 9px;
  }
  .asset-history-date { font-size: 11px; }
  .asset-history-actions {
    width: 100%;
    margin-left: 0;
  }
  .asset-history-actions .button { flex: 1 1 auto; }
  .history-dialog-footer {
    flex-wrap: wrap;
    padding: 9px 12px 10px;
  }
  .history-dialog-footer .button { flex: 1 1 auto; }
  #recordDialog .dialog-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  #recordDialog .runtime-edit-pending,
  #recordDialog .runtime-cycle-summary,
  #recordDialog .source-preview,
  #recordDialog .field:has(#replacementRunning),
  #recordDialog .field:has(#recordNote) { grid-column: auto; }
  #recordDialog .dialog-footer {
    flex-wrap: wrap;
    padding: 9px 12px 10px;
  }
}

/* LIMESTONE_FOUR_CARD_ROW_V3R — one desktop row, keeping both unit headings. */
@media (min-width: 1181px) {
  .limestone-unit-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 12px;
  }
  .limestone-unit-layout > .unit-group.is-unit-assets {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin-top: 0;
  }
  .limestone-unit-layout .asset-grid.is-unit-grid {
    flex: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
  .limestone-unit-layout .asset-card { height: 100%; min-width: 0; box-sizing: border-box; }
  .limestone-unit-layout .asset-actions { margin-top: auto; padding-top: 6px; }
}

/* FLYASH_BAG_CARD_ALIGN_V3S — align desktop cards with different detail lengths. */
@media (min-width: 1181px) {
  .unit-group.is-unified-assets[data-blower-type="flyash_bag"] .asset-grid.is-unified-grid {
    align-items: stretch;
  }
  .unit-group.is-unified-assets[data-blower-type="flyash_bag"] .asset-card {
    height: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .unit-group.is-unified-assets[data-blower-type="flyash_bag"] .asset-actions {
    margin-top: auto;
    padding-top: 6px;
  }
}

/* One stable overview layout for all 27 assets. Whole-cycle provenance,
   measured-window scope and freshness are distinct from operating state. */
.all-overview-summary.is-assessed > .overview-count-filter {
  display: flex; align-items: center; justify-content: space-between;
  min-width: 0; gap: 8px; padding: 6px 10px; min-height: 39px;
  border: 1px solid #d8e2eb; border-radius: 7px;
  background: #f7f9fc; color: #20364b; text-align: left; box-shadow: none;
}
.all-overview-summary.is-assessed > .overview-count-filter.is-active,
.all-overview-summary.is-assessed > .overview-count-filter:hover { background: #edf5ff; border-color: #96b9df; }
.all-overview-summary.is-assessed > .overview-count-filter[data-overview-filter="review"] { color: #8b5b13; }
.all-overview-summary.is-assessed > .overview-count-filter[aria-pressed="true"] { border-color: #4b8bc5; box-shadow: inset 0 0 0 1px #4b8bc5; }
.overview-count-filter:focus-visible,
.overview-review-filter:focus-visible,
.overview-group-review:focus-visible,
.overview-next-action:focus-visible,
.all-overview-card.is-assessed:focus-visible { outline: 2px solid #287ac2; outline-offset: 2px; }
.overview-assessment-context {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 5px 12px; margin-top: -3px; padding-inline: 1px;
}
.overview-assessment-context > small { font-size: 10px; line-height: 1.4; color: #64778a; }
.overview-review-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.overview-review-filter,
.overview-group-review {
  display: inline-flex; align-items: center; gap: 6px; min-height: 25px;
  padding: 3px 8px; border: 1px solid #dfd5c0; border-radius: 6px;
  background: #fffaf0; color: #79591f; font: inherit; font-size: 11px; font-weight: 600;
  box-shadow: none;
}
.overview-review-filter strong { font-weight: 850; }
.overview-review-filter[data-overview-filter="behind"] { background: #f5f8fb; border-color: #d7e1ea; color: #536d84; }
.overview-review-filter.is-active { background: #fff0d1; border-color: #b68b3d; }
.overview-filter-result { padding-inline: 4px; font-size: 11px; color: #64778a; }
.overview-group-count { display: inline-flex; align-items: center; gap: 8px; }
.overview-group-review { min-height: 23px; padding: 2px 7px; font-size: 10px; }
.has-runtime-assessment .all-overview-unit-panel { display: flex; flex-direction: column; min-width: 0; }
.has-runtime-assessment .all-overview-unit-card-grid { flex: 1; align-items: stretch; }
.all-overview-card-shell { display: flex; flex-direction: column; min-width: 0; height: 100%; }
.all-overview-card.is-assessed {
  display: grid; grid-template-rows: 31px 17px 24px 17px 35px minmax(min-content, 1fr);
  flex: 1; align-content: start; gap: 3px; min-height: 0; margin: 0; padding: 7px;
  border-radius: 6px 6px 0 0; border-bottom-color: #e5ebf0; border-left-color: #c4d2df;
  background: #fff; color: #20364b;
}
.all-overview-card.is-assessed .all-overview-card-head { align-items: start; flex-wrap: nowrap; gap: 4px; }
.all-overview-card.is-assessed .all-overview-identity strong { font-size: 13px; line-height: 16px; }
.all-overview-card.is-assessed .all-overview-identity small { font-size: 10px; line-height: 12px; margin-top: 2px; }
.all-overview-card.is-assessed .all-overview-status-badges { margin-left: auto; }
.overview-runtime-heading { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-width: 0; }
.overview-runtime-heading > small { color: #62798d; font-size: 10px; font-weight: 600; line-height: 1.3; }
.overview-runtime-scope {
  display: inline-flex; align-items: center; min-height: 17px; padding: 1px 5px;
  border-radius: 4px; background: #eef3f7; color: #506d84; font-size: 9px; font-weight: 750; line-height: 1.3;
}
.overview-runtime-scope[data-scope="whole"] { background: #eaf2fc; color: #315e89; }
.all-overview-card-shell[data-runtime-review="true"] .overview-runtime-scope { background: #fff4dd; color: #85601d; }
.overview-runtime-value {
  display: block; align-self: center; min-width: 0; font-size: 22px; line-height: 1.1;
  font-weight: 850; text-align: right; font-variant-numeric: tabular-nums; letter-spacing: -.025em;
  white-space: nowrap;
}
.overview-runtime-value.is-pending { font-size: 13px; line-height: 1.4; color: #697f91; }
.overview-fact-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 5px; align-items: center; min-width: 0; }
.overview-fact-row > small { font-size: 10px; color: #708396; font-weight: 600; line-height: 1.3; }
.overview-fact-row > strong { font-size: 10.5px; font-weight: 700; text-align: right; line-height: 1.35; white-space: nowrap; font-variant-numeric: tabular-nums; }
.overview-reference > strong { color: #29455d; }
.overview-query-facts { display: grid; grid-template-rows: repeat(2, minmax(0, 1fr)); border-top: 1px solid #e7edf2; padding-top: 3px; gap: 2px; }
.overview-query-facts strong { color: #416c91; }
.overview-fact-row[data-freshness="behind"] { grid-template-columns: auto minmax(0, 1fr) auto; gap: 3px; }
.overview-fact-row > em { font-size: 9px; font-style: normal; line-height: 1.3; color: #8b641f; background: #fff2d9; padding: 1px 3px; border-radius: 3px; }
.overview-card-note {
  align-self: start; padding-top: 3px; min-width: 0; min-height: 28px;
  color: #677d90; font-size: 10.5px; line-height: 14px; font-weight: 600; word-break: keep-all;
}
.overview-card-note[data-run-basis-status] { color: #8b651f; }
.overview-run-asof {
  display: block; margin-top: 3px; color: #536d84;
  font-size: 10px; line-height: 14px; font-weight: 600; white-space: normal; overflow-wrap: anywhere;
}
.overview-next-action {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  min-width: 0; min-height: 29px; width: 100%; padding: 4px 8px;
  border: 1px solid #d8e0e7; border-top: 0; border-left: 3px solid #c4d2df;
  border-radius: 0 0 6px 6px; background: #f8fafc; color: #456780;
  font-family: inherit; font-size: 11px; line-height: 1.4; font-weight: 750; text-align: left; box-shadow: none;
}
.overview-next-action:hover { background: #eef5fc; color: #245e91; }
.runtime-source-details { grid-column: 1 / -1; border-top: 1px solid #e2e7eb; padding-top: 7px; }
.runtime-source-details > summary { cursor: pointer; font-size: 12px; font-weight: 700; color: #526f87; }
.runtime-source-details > small { display: block; margin: 6px 0; color: #6a7f90; font-size: 11px; line-height: 1.5; }
.runtime-source-details .run-history-note { padding: 7px !important; }
.all-overview-card-shell[data-runtime-review="true"] .all-overview-card.is-assessed,
.all-overview-card-shell[data-runtime-review="true"] .overview-next-action { border-left-color: #cda55b; }
.all-overview-card-shell[data-runtime-review="true"] .overview-next-action { background: #fffaf1; color: #806024; }
.all-overview-card.is-assessed[data-severity="warning"],
.all-overview-card.is-assessed[data-severity="warning"] + .overview-next-action { border-left-color: var(--warning); }
.all-overview-card.is-assessed[data-severity="critical"],
.all-overview-card.is-assessed[data-severity="critical"] + .overview-next-action { border-left-color: var(--critical); }
.all-overview-card.is-assessed[data-severity="overdue"],
.all-overview-card.is-assessed[data-severity="overdue"] + .overview-next-action { border-left-color: var(--overdue); }

/* A Blower's explicit stopped state colors its entire card. Runtime
   values, review borders and intermittent-operation classification stay intact. */
.all-overview-card-shell.is-stopped > .all-overview-card.is-assessed,
.all-overview-card-shell.is-stopped > .overview-next-action { background: #fff1f1; }
.all-overview-card-shell.is-stopped > .all-overview-card.is-assessed:hover,
.all-overview-card-shell.is-stopped > .overview-next-action:hover { background: #ffe7e7; }

@media (min-width: 1181px) and (max-width: 1400px) {
  .all-overview-card.is-assessed .all-overview-identity strong { font-size: 12px; }
  .overview-runtime-heading > small, .overview-fact-row > small { font-size: 9px; }
  .overview-runtime-scope { font-size: 8.5px; padding-inline: 4px; }
  .overview-fact-row > strong { font-size: 9.5px; }
  .overview-runtime-value { font-size: 20px; }
}
@media (max-width: 700px), (max-width: 1024px) and (hover: none) and (pointer: coarse) {
  .all-overview-summary.is-assessed > .overview-count-filter { min-height: 36px; padding: 5px 7px; gap: 4px; }
  .all-overview-summary.is-assessed strong { display: inline; margin: 0; font-size: 18px; }
  .overview-assessment-context { gap: 5px; }
  .overview-assessment-context > small { font-size: 9px; }
  .overview-review-filter { min-height: 28px; padding: 4px 7px; font-size: 10px; }
  .all-overview-card.is-assessed { padding: 6px; grid-template-rows: 31px 17px 24px 17px 35px minmax(min-content, 1fr); }
  .all-overview-card.is-assessed .all-overview-identity strong { font-size: 12px; }
  .all-overview-card.is-assessed .all-overview-identity small { font-size: 9px; }
  .overview-runtime-heading > small, .overview-fact-row > small { font-size: 9px; }
  .overview-runtime-scope { padding-inline: 3px; font-size: 8.5px; }
  .overview-runtime-value { font-size: 20px; }
  .overview-fact-row { gap: 3px; }
  .overview-fact-row > strong { font-size: 9px; }
  .overview-card-note { font-size: 10px; }
  .overview-next-action { min-height: 34px; padding: 5px 7px; font-size: 10px; }
}

/* Below the usual phone width, keep complete timestamps readable by stacking
   labels and values. All cards in the same row retain identical row tracks. */
@media (max-width: 380px) {
  .all-overview-card.is-assessed { grid-template-rows: 46px 32px 24px 28px 58px minmax(min-content, 1fr); }
  .overview-runtime-heading { flex-wrap: wrap; align-content: start; justify-content: flex-start; gap: 2px 4px; }
  .overview-fact-row,
  .overview-fact-row[data-freshness="behind"] { position: relative; grid-template-columns: minmax(0, 1fr); gap: 0; }
  .overview-fact-row > strong { min-width: 0; text-align: left; font-size: 10px; line-height: 14px; }
  .overview-fact-row > small { font-size: 9px; line-height: 12px; }
  .overview-fact-row > em { position: absolute; right: 0; top: 0; }
}
