/* Shift accounting stays in the document flow beneath the active work surface. */
#shift-report {
  --report-ink: #253c2f;
  --report-faint: #546456;
  --report-rule: #c6cbb7;
  --report-panel: #f7f5e9;
  min-width: 0;
  margin-top: clamp(24px,3vw,44px);
  scroll-margin-block-start: 16px;
  container: shift-report / inline-size;
  color: var(--report-ink);
}
#result-summary {
  overflow: hidden;
  border: 1px solid var(--report-rule);
  border-top: 3px solid #3c5843;
  border-radius: 4px;
  background: var(--report-panel);
}
.report-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: clamp(15px,2vw,26px) clamp(15px,2.1vw,32px);
  border-bottom: 1px solid var(--report-rule);
}
.report-heading h2 {
  margin: 0;
  font: 500 clamp(29px,2.65vw,42px)/1.08 var(--brand-serif,Georgia,serif);
  letter-spacing: -.045em;
}
.report-heading p { margin: 5px 0 0; font-size: 13px; color: var(--report-faint) }
.report-evidence, #report-proof [data-action="close-proof"], #report-proof [data-action="close-evidence"] {
  min-height: 36px;
  background: transparent;
  border: 1px solid #98a78f;
  border-radius: 4px;
  padding: 7px 12px;
  font: 650 13px/1.4 var(--brand-sans,Manrope,sans-serif);
  color: var(--report-ink);
}
.report-evidence::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 15px;
  background: currentColor;
  mask: url('/icons/file-text.svg') no-repeat center/contain;
  margin-right: 7px;
  vertical-align: -3px;
}
.report-evidence:hover, #report-proof [data-action="close-proof"]:hover, #report-proof [data-action="close-evidence"]:hover { background: #e1e7d5 }
.report-overview {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.2fr);
  padding: clamp(15px,2vw,26px) clamp(15px,2.1vw,32px);
  gap: clamp(18px,3.3vw,62px);
}
.report-impact {
  display: flex; flex-direction: column; justify-content: center; align-items: start;
  min-width: 0; padding: 16px clamp(14px,1.6vw,27px);
  border-radius: 3px;
  background: #294334;
  color: #fffaf1;
}
.report-impact.adverse { background: #624c36 }
.report-impact > span { font-size: 14px; font-weight: 640; line-height: 1.2 }
.report-impact strong {
  margin-block: 6px;
  font: 500 clamp(31px,3.16vw,54px)/1.1 var(--brand-serif,Georgia,serif);
  letter-spacing: -.05em; overflow-wrap: anywhere; max-width: 100%;
}
.report-impact p { margin: 0; color: #e1e7d6; font-size: 12px }
.report-rate { color: #fff; font-weight: 750 }
.report-costs { display: grid; align-content: center; gap: 12px; min-width: 0 }
.report-costs h3 { margin: 0; font-size: 14px; font-weight: 700 }
.report-cost > div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px }
.report-cost > div span { color: var(--report-faint); font-size: 13px }
.report-cost > div b { font-weight: 690; font-size: 15px; text-align: right; overflow-wrap: anywhere }
.report-track { display: block; height: 6px; margin-top: 5px; background: #e5e6d8; border-radius: 2px; overflow: hidden }
.report-track i { display: block; height: 100%; background: #aa9770 }
.report-cost.revised .report-track i { background: #52725b }
.report-stats {
  display: grid; grid-template-columns: repeat(3,minmax(0,1fr));
  margin-inline: clamp(15px,2.1vw,32px);
  border-block: 1px solid var(--report-rule);
}
.report-stat { min-width: 0; padding: 13px clamp(8px,1.25vw,18px) }
.report-stat:first-child { padding-left: 0 }
.report-stat + .report-stat { border-left: 1px solid var(--report-rule) }
.report-stat h3 { margin: 0 0 4px; color: var(--report-faint); font-size: 13px; font-weight: 600 }
.report-pair { display: flex; flex-wrap: wrap; gap: 3px 7px; align-items: baseline; font-size: clamp(18px,1.5vw,24px); line-height: 1.3 }
.report-pair > span { color: var(--report-faint) }
.report-pair i { color: #83917c; font: 14px/1 sans-serif }
.report-pair b { font-weight: 740 }
.report-pair small { font-size: 12px }
.report-sr { position: absolute; overflow: hidden; width: 1px; height: 1px; clip-path: inset(50%); white-space: nowrap }
.report-more { margin-inline: clamp(15px,2.1vw,32px); min-width: 0 }
.report-more summary, #report-proof summary {
  cursor: pointer; padding: 11px 0; font-size: 14px; font-weight: 670;
  color: var(--report-ink); width: fit-content;
}
.report-more summary:hover, #report-proof summary:hover { text-decoration: underline; text-underline-offset: 3px }
.report-more[open] { padding-bottom: 12px }
.report-more table, #report-proof table {
  width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 14px; line-height: 1.4; font-variant-numeric: tabular-nums;
}
.report-more th, .report-more td, #report-proof th, #report-proof td {
  border-bottom: 1px solid var(--report-rule); padding: 8px 5px;
  text-align: right; vertical-align: middle; overflow-wrap: anywhere;
}
.report-more th:first-child, #report-proof th:first-child, #report-proof td:first-child {
  text-align: left; padding-left: 0; width: 43%;
}
.report-more td:last-child, #report-proof td:last-child { padding-right: 0 }
.report-more thead th, #report-proof thead th { font-weight: 640; font-size: 12px; color: var(--report-faint) }
.report-more tbody th { font-weight: 550 }
.report-more tbody th small { display: inline-block; margin-left: .45em; color: var(--report-faint); font-size: 12px; font-weight: 450 }
#report-proof:not([hidden]) {
  margin-top: 12px; min-width: 0; padding: clamp(16px,2.1vw,32px);
  border: 1px solid var(--report-rule); border-radius: 4px; background: #faf8ed;
  scroll-margin-block-start: 15px; overflow-wrap: anywhere; font-size: 14px;
}
#report-proof .dialoghead { position: static; padding: 0 0 11px; background: transparent; border-color: var(--report-rule) }
#report-proof > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px }
#report-proof > header h3 { margin: 0; font: 500 clamp(23px,2vw,30px)/1.12 var(--brand-serif,Georgia,serif); letter-spacing: -.035em }
#report-proof .round[data-action="close-proof"] { width: 34px; min-height: 34px; padding: 0; flex: none }
#report-proof .dialogbody { padding: 10px 0 0 }
#report-proof h2, #report-proof h3 { color: var(--report-ink) }
#report-proof h2 { font: 500 clamp(24px,2vw,32px)/1.15 var(--brand-serif,Georgia,serif) }
#report-proof h3 { margin: 13px 0 5px; font-size: 16px }
#report-proof p { max-width: 77ch; color: var(--report-faint); margin: 9px 0 13px; line-height: 1.55 }
#report-proof .evidence-summary { border-radius: 3px; background: #e4e9d9; gap: 8px; flex-wrap: wrap }
#report-proof .listbutton { align-items: baseline; min-height: 37px; gap: 10px }
#report-proof details { margin-top: 7px; border-top: 1px solid var(--report-rule) }
@container shift-report (max-width: 640px) {
  .report-overview { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px }
  .report-impact { padding: 13px 11px }
  .report-impact strong { font-size: clamp(28px,5.2cqi,34px) }
  .report-stats { grid-template-columns: 1fr; padding-block: 4px }
  .report-stat, .report-stat:first-child { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0 }
  .report-stat + .report-stat { border-left: 0; border-top: 1px dashed #d6d9c9 }
  .report-stat h3 { margin: 0 }
  .report-pair { justify-content: end; font-size: 18px }
}
@container shift-report (max-width: 470px) {
  .report-heading { padding: 14px; gap: 10px }
  .report-heading h2 { font-size: 29px }
  .report-heading p { font-size: 12px }
  .report-evidence { padding-inline: 8px; min-height: 34px }
  .report-overview { grid-template-columns: minmax(0,1fr); gap: 15px; padding: 14px }
  .report-impact { padding: 14px; display: block }
  .report-impact strong { display: block; font-size: 34px }
  .report-costs { gap: 9px }
  .report-more table, #report-proof table { font-size: 12px }
  .report-more th, .report-more td, #report-proof th, #report-proof td { padding-inline: 2px }
  .report-more th:first-child, #report-proof th:first-child, #report-proof td:first-child { width: 40% }
  .report-more tbody th small { display: block; margin-left: 0 }
}
