:root {
  --ink: #163040;
  --muted: #61727e;
  --line: #dfe6e8;
  --paper: #f4f7f7;
  --teal: #087f78;
  --red: #b63d49;
  --blue: #102d40;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    15px/1.5 system-ui,
    -apple-system,
    Segoe UI,
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #53bab2;
  outline-offset: 3px;
}
header {
  background: var(--blue);
  color: white;
  padding: 22px 4vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
header h1 {
  font-size: 21px;
  margin: 0;
  letter-spacing: -0.4px;
}
header p {
  margin: 3px 0 0;
  color: #b9cdd5;
  font-size: 13px;
}
.badge {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 16px;
  background: #214456;
  color: #d2ebe7;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
main {
  max-width: 1540px;
  margin: auto;
  padding: 24px 4vw 60px;
}
h2 {
  font-size: 22px;
  letter-spacing: -0.5px;
  margin: 0 0 5px;
}
h3 {
  font-size: 16px;
  margin: 0;
}
p {
  margin: 0 0 16px;
}
.muted {
  color: var(--muted);
  font-size: 13px;
}
nav {
  display: flex;
  flex-wrap: wrap;
  column-gap: 24px;
  row-gap: 0;
  margin: 0 0 26px;
  border-bottom: 1px solid var(--line);
  overflow: auto;
}
nav button {
  background: transparent;
  color: var(--muted);
  border-radius: 0;
  padding: 12px 0;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
nav button.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}
.filters {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: end;
  margin: 25px 0;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
}
select,
input {
  border: 1px solid #c9d4d8;
  background: white;
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
}
select {
  min-width: 155px;
  max-width: 100%;
}
button,
.link-button {
  border: 0;
  border-radius: 6px;
  padding: 10px 16px;
  background: var(--teal);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  display: inline-block;
}
.subtle-button {
  background: transparent;
  color: var(--ink);
  border: 1px solid #b9c9cf;
}
header .subtle-button {
  color: white;
  border-color: #537180;
  white-space: nowrap;
}
.notice {
  padding: 12px 16px;
  background: #fff8e7;
  border: 1px solid #ebd399;
  border-radius: 6px;
  margin: 18px 0;
  font-size: 13px;
}
.error {
  background: #fff0f0;
  border-color: #e5b7bd;
  color: #9b2837;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 22px 0;
}
.tile,
.panel {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
}
.tile {
  padding: 21px;
}
.tile label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  margin: 0 0 12px;
}
.amount {
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
.tile p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.good {
  color: var(--teal);
}
.bad {
  color: var(--red);
}
.panels {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
}
.panel {
  padding: 22px;
  margin: 0 0 20px;
  min-width: 0;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}
.bar-row {
  display: grid;
  grid-template-columns: 100px 1fr 115px;
  gap: 12px;
  margin: 17px 0;
  align-items: center;
  font-size: 12px;
}
.bar-row > span:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.track {
  height: 16px;
  background: #edf2f3;
  border-radius: 3px;
  overflow: hidden;
}
.bar {
  height: 100%;
  background: var(--teal);
  border-radius: 3px;
}
.bar.negative {
  background: var(--red);
}
.table-scroll {
  overflow: auto;
  max-height: 65vh;
  isolation: isolate;
  scroll-padding-block-start: 80px;
}
.table-scroll > table { border-collapse: separate; border-spacing: 0; }
.table-scroll thead {
  position: sticky;
  top: 0;
  z-index: 5;
  box-shadow: 0 2px 0 #dce5eb;
}
.table-scroll th {
  position: static;
  background: #f4f7f8;
}
.table-scroll td:first-child,
.table-scroll th:first-child {
  position: sticky;
  left: 0;
  background: #f4f7f8;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 2;
}
.table-scroll th:first-child {
  z-index: 3;
}
@media (max-width: 650px) {
  .table-scroll td:first-child,
  .table-scroll th:first-child {
    max-width: 150px;
  }
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  white-space: nowrap;
}
.table-controls .column-choice input {
  padding: 0;
  width: 16px;
  height: 16px;
  min-width: 16px;
}
.review-display {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin: -3px 0 14px;
}
.review-display label {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
}
.review-display select {
  min-width: 130px;
  padding: 6px 10px;
  font-size: 12px;
}
.review-display button {
  padding: 7px 11px;
  font-size: 12px;
}
#review-feedback {
  font-size: 12px;
  color: var(--teal);
}
#review-link-value {
  width: 100%;
}
.table-controls {
  flex-wrap: wrap;
}
.table-controls .table-scope {
  margin-left: auto;
}
.column-options {
  position: relative;
  margin: 0;
  font-size: 12px;
}
.column-options > summary {
  border: 1px solid #c9d4d8;
  border-radius: 6px;
  padding: 7px 10px;
  background: white;
}
.column-options[open] {
  padding-bottom: 9px;
  flex-basis: 100%;
  border-bottom: 1px solid var(--line);
}
.column-options[open] > summary {
  display: inline-block;
}
.column-options fieldset {
  display: flex;
  gap: 8px 18px;
  flex-wrap: wrap;
  margin: 10px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}
.column-options legend {
  color: var(--muted);
  padding: 0 4px;
}
.column-choice {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-weight: 500;
  font-size: 12px;
}
.column-choice input {
  width: 16px;
  height: 16px;
  min-width: 16px;
  padding: 0;
  accent-color: var(--teal);
}
.column-choice input:disabled {
  cursor: default;
  opacity: 0.6;
}
.column-options p {
  margin: 7px 0 0;
}
.table-pagination {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin: 12px 0;
  font-size: 12px;
}
.table-pagination button {
  padding: 7px 10px;
  font-size: 12px;
}
.table-pagination button:disabled {
  cursor: default;
}
.table-pagination select {
  min-width: 135px;
  padding: 7px 10px;
  font-size: 12px;
}
#workspace[data-table-density="compact"] table th {
  padding-top: 7px;
  padding-bottom: 7px;
}
#workspace[data-table-density="compact"] table td {
  padding-top: 6px;
  padding-bottom: 6px;
}
#workspace[data-table-density="compact"] table td button {
  padding-top: 5px;
  padding-bottom: 5px;
}
.table-evidence tr:focus-within {
  background: #edf6f3;
}
@media (max-width: 650px) {
  .review-display {
    justify-content: flex-start;
    gap: 8px;
  }
  .review-display #review-feedback {
    flex-basis: 100%;
  }
  .table-pagination {
    justify-content: flex-start;
    gap: 8px;
  }
  .table-pagination span {
    flex-basis: 100%;
    order: -1;
  }
  .column-options[open] fieldset {
    display: grid;
    grid-template-columns: 1fr;
  }
  .table-controls .table-scope {
    margin-left: 0;
  }
  .table-controls .column-choice input {
    width: 16px;
  }
}
@media print {
  .review-display,
  .table-pagination,
  .column-options {
    display: none !important;
  }
  #workspace[data-table-density="compact"] table th,
  #workspace[data-table-density="compact"] table td {
    padding: 5px 8px !important;
  }
}
th {
  text-align: left;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  padding: 11px 12px;
}
td {
  padding: 13px 12px;
  border-bottom: 1px solid #edf1f3;
}
th.num,
td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
tbody tr:hover {
  background: #f7fafb;
}
td .muted {
  font-size: 11px;
}
.table-caption {
  margin: 14px 0 0;
}
.empty {
  padding: 35px 12px;
  color: var(--muted);
  text-align: center;
}
.login {
  max-width: 440px;
  margin: 65px auto;
  padding: 32px;
}
.login input {
  width: 100%;
  margin-bottom: 18px;
}
.login button {
  width: 100%;
}
[hidden] {
  display: none !important;
}
.source-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.source-item {
  padding: 13px;
  background: #f5f8f8;
  border-radius: 6px;
  font-size: 12px;
}
.source-item strong {
  display: block;
  text-transform: capitalize;
  font-size: 13px;
  margin-bottom: 5px;
}
details {
  margin-top: 20px;
}
summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
}
.sources-details .panel {
  margin-top: 16px;
}
.interpretation {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}
.interpretation li {
  margin: 8px 0;
}
.top-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
#busy {
  color: var(--teal);
  font-size: 13px;
}
.table-tools {
  display: flex;
  gap: 14px;
  align-items: center;
}
.table-tools input {
  max-width: 270px;
}
.table-tools select {
  max-width: 250px;
}
.baseline-summary {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
}
.baseline-summary strong {
  display: block;
  font-size: 19px;
  font-weight: 600;
}
.baseline-summary .notice {
  width: 100%;
  margin: 0;
}
fieldset {
  min-width: 0;
}
legend {
  font-weight: 600;
  font-size: 16px;
  padding: 0 6px;
}
.input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 6px 0 18px;
}
.input-grid input {
  width: 100%;
}
.timeline {
  max-height: 350px;
}
footer {
  font-size: 12px;
  color: var(--muted);
  margin-top: 25px;
}
textarea {
  font: inherit;
  width: 100%;
  min-height: 90px;
  border: 1px solid #c9d4d8;
  border-radius: 6px;
  padding: 10px;
  color: var(--ink);
}
dialog {
  width: min(820px, calc(100% - 32px));
  max-height: 90vh;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  color: var(--ink);
}
dialog::backdrop {
  background: #102d4080;
}
.editor-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}
.editor-fields input,
.editor-fields select {
  width: 100%;
  min-width: 0;
}
.editor-fields .wide {
  grid-column: 1/-1;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}
.toolbar input {
  min-width: 0;
  max-width: 100%;
}
.workflow-notes {
  font-size: 13px;
  color: var(--muted);
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}
.detail-grid strong {
  display: block;
  font-size: 19px;
}
.actions-cell {
  display: flex;
  gap: 8px;
}
.auth-secret {
  overflow-wrap: anywhere;
  font:
    16px ui-monospace,
    monospace;
}
.form-status {
  margin: 12px 0;
  white-space: normal;
}
.download-button {
  background: transparent;
  color: var(--teal);
  border: 1px solid var(--line);
}
@media (max-width: 650px) {
  .editor-fields,
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .editor-fields .wide {
    grid-column: auto;
  }
  dialog {
    padding: 18px;
  }
}
@media (max-width: 1100px) {
  .tiles {
    grid-template-columns: repeat(2, 1fr);
  }
  .panels {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .amount {
    font-size: 24px;
  }
}
@media (max-width: 650px) {
  header {
    padding: 18px;
  }
  main {
    padding: 18px 18px 40px;
  }
  nav {
    gap: 18px;
  }
  nav button {
    font-size: 12px;
  }
  .filters {
    gap: 12px;
  }
  .filters > div {
    width: calc(50% - 6px);
  }
  select {
    width: 100%;
    min-width: 0;
  }
  .tiles {
    gap: 10px;
  }
  .tile {
    padding: 15px;
  }
  .amount {
    font-size: 21px;
  }
  .panel {
    padding: 17px;
  }
  .bar-row {
    grid-template-columns: 78px 1fr 98px;
    gap: 8px;
  }
  .panel-heading {
    align-items: start;
    flex-direction: column;
  }
  .table-tools {
    flex-wrap: wrap;
    width: 100%;
  }
  .table-tools input,
  .table-tools select {
    width: 100%;
    max-width: none;
  }
  .source-list {
    grid-template-columns: 1fr;
  }
  .badge {
    display: none;
  }
  .input-grid {
    grid-template-columns: 1fr;
  }
  .baseline-summary {
    gap: 16px;
  }
}

.sync-log {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.analytical-detail {
  padding: 1rem 0;
}
.analytical-chart {
  max-height: 480px;
  overflow: auto;
}
.bar.forecast {
  background: #7c65b5;
}
.analytical-detail details {
  margin: 0.6rem 0;
}
#advanced-page[data-page="analytics"] > select {
  max-width: 100%;
  margin: 0.8rem 0;
}
#advanced-page[data-page="analytics"] .toolbar {
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}
.brand-mark {
  width: 42px;
  height: 42px;
  flex: none;
  color: #36bba6;
}
.header-context {
  color: #b9cdd5;
  font-size: 12px;
}
body:not(.entry-mode) .entry-layout,
body:not(.entry-mode) .entry-footer {
  display: none;
}
body.entry-mode {
  background: #f2f5f3;
}
.entry-mode .site-header {
  background: #fff;
  color: #173b3a;
  border-bottom: 1px solid #e0e8e4;
  padding: 23px max(32px, calc((100vw - 1176px) / 2));
}
.entry-mode .brand-mark {
  color: #187c6e;
}
.entry-mode .site-header h1 {
  font-size: 20px;
  letter-spacing: -0.5px;
}
.entry-mode .site-header p {
  color: #6d807a;
  font-size: 12px;
  margin-top: 4px;
}
.entry-mode .header-context {
  color: #6d807a;
}
.entry-mode header .subtle-button {
  color: #173b3a;
  border-color: #cbdad4;
}
.entry-mode main {
  max-width: 1240px;
  padding: 48px 32px 24px;
}
.entry-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  border: 1px solid #dbe5df;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 60px #173b3a0b;
  background: #fff;
}
.entry-intro {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #163f3e, #102f30);
  padding: 46px 48px 35px;
  color: #fff;
}
.entry-intro::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  border: 1px solid #c5efe116;
  border-radius: 50%;
  right: -230px;
  bottom: -180px;
  box-shadow:
    0 0 0 45px #c5efe106,
    0 0 0 90px #c5efe104;
  pointer-events: none;
}
.entry-intro > * {
  position: relative;
  z-index: 1;
}
.entry-eyebrow,
.login-eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.6px;
}
.entry-eyebrow {
  color: #9fd5c6;
  margin-bottom: 23px;
}
.entry-intro h2 {
  font-size: 42px;
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -1.5px;
  margin-bottom: 22px;
}
.entry-intro h2 span {
  color: #a6dacb;
}
.entry-description {
  color: #c3d5d0;
  font-size: 15px;
  line-height: 1.75;
  max-width: 425px;
  margin-bottom: 33px;
}
.entry-features {
  display: grid;
  gap: 22px;
}
.entry-feature {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border: 1px solid #91cabb30;
  background: #ffffff06;
  border-radius: 10px;
}
.feature-icon svg {
  width: 21px;
  height: 21px;
  stroke: #a6dacb;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.entry-feature h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}
.entry-feature p {
  color: #adc8c0;
  font-size: 12px;
  line-height: 1.6;
  max-width: 325px;
  margin: 0;
}
.entry-note {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #adc8c0;
  font-size: 11px;
  margin-top: 35px;
  padding-top: 20px;
  border-top: 1px solid #b4d9ce24;
}
.entry-note > span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #91cabb;
  flex: none;
}
.entry-access {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 46px 40px;
}
.entry-access .login {
  width: 100%;
  max-width: 345px;
  border: 0;
  margin: 0;
  padding: 0;
  background: transparent;
}
.login-eyebrow {
  color: #68827a;
  font-size: 9px;
  letter-spacing: 1.45px;
  margin-bottom: 17px;
}
.entry-access h2 {
  font-size: 29px;
  line-height: 1.25;
  font-weight: 650;
  color: #193e3b;
  letter-spacing: -0.9px;
  margin-bottom: 12px;
}
.login-description {
  color: #6a7d77;
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 30px;
}
.entry-access label {
  font-size: 12px;
  font-weight: 600;
  color: #274740;
  margin-bottom: 8px;
}
.entry-access input {
  height: 47px;
  border-color: #d5dfda;
  border-radius: 8px;
  font-size: 13px;
  padding: 12px 14px;
  margin-bottom: 22px;
  background: #fcfdfc;
  transition: border-color 0.15s;
}
.entry-access input:focus {
  border-color: #238c79;
}
.entry-access input::placeholder {
  color: #97a6a0;
}
.password-field {
  position: relative;
}
.password-field input {
  padding-right: 63px;
}
.entry-access #password-toggle {
  position: absolute;
  right: 8px;
  top: 7px;
  width: auto;
  min-width: 46px;
  height: 33px;
  padding: 0 7px;
  background: transparent;
  color: #5b756c;
  font-size: 11px;
  font-weight: 600;
  border-radius: 5px;
}
.entry-access #password-toggle:hover {
  background: #eaf2ed;
}
.entry-access .account-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  height: 47px;
  background: #187c6e;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: 0 3px 7px #187c6e15;
}
.entry-access .account-submit:hover {
  background: #126758;
}
.account-submit > span {
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}
#login-error {
  font-size: 12px;
  line-height: 1.6;
  margin: 14px 0 0;
}
#login-error:empty {
  display: none;
}
.account-continuity {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin-top: 25px;
  padding-top: 21px;
  border-top: 1px solid #e7ece8;
}
.account-continuity svg {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 2px;
  fill: none;
  stroke: #638b7d;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.account-continuity p {
  font-size: 11px;
  line-height: 1.7;
  color: #536e63;
  margin: 0;
}
.account-continuity p span {
  display: block;
  color: #7c8c83;
}
.entry-access details {
  margin-top: 23px;
}
.entry-access details p {
  margin-top: 12px;
}
.entry-footer {
  text-align: center;
  color: #82948b;
  font-size: 11px;
  margin: 22px 0 0;
}
.entry-footer span {
  margin: 0 8px;
}
@media (max-width: 900px) {
  .entry-mode main {
    padding-top: 30px;
  }
  .entry-intro {
    padding: 38px 32px;
  }
  .entry-intro h2 {
    font-size: 33px;
  }
  .entry-access {
    padding: 38px 30px;
  }
  .entry-mode .header-context {
    display: none;
  }
}
@media (max-width: 650px) {
  .site-header .brand-mark {
    width: 34px;
    height: 34px;
  }
  .site-header h1,
  .entry-mode .site-header h1 {
    font-size: 17px;
  }
  .site-header p,
  .entry-mode .site-header p {
    font-size: 10px;
  }
  .header-context {
    display: none;
  }
  .entry-mode .site-header {
    padding: 19px 22px;
    gap: 10px;
  }
  .entry-mode main {
    padding: 23px 18px 24px;
  }
  .entry-layout {
    grid-template-columns: 1fr;
    border-radius: 16px;
  }
  .entry-intro {
    padding: 28px 26px;
  }
  .entry-eyebrow {
    font-size: 8px;
    margin-bottom: 15px;
  }
  .entry-intro h2 {
    font-size: 30px;
    letter-spacing: -1px;
    margin-bottom: 15px;
  }
  .entry-description {
    font-size: 12px;
    line-height: 1.7;
    margin: 0;
  }
  .entry-features,
  .entry-note {
    display: none;
  }
  .entry-access {
    padding: 31px 26px;
  }
  .entry-access h2 {
    font-size: 26px;
  }
  .login-eyebrow {
    display: none;
  }
  .login-description {
    margin-bottom: 25px;
  }
  .entry-mode .brand {
    gap: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .entry-access input {
    transition: none;
  }
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 100;
  padding: 12px 18px;
  background: white;
  color: var(--ink);
  border-radius: 8px;
}
.skip-link:focus {
  top: 12px;
}
#analysis-nav {
  overflow: visible;
  gap: 5px;
  align-items: center;
  margin-bottom: 16px;
  position: relative;
  z-index: 5;
}
#analysis-nav > a,
#analysis-nav summary {
  display: block;
  padding: 12px 15px;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  font-weight: 600;
  font-size: 14px;
}
#analysis-nav > a.active,
#analysis-nav .selected-group > summary {
  color: var(--teal);
  border-bottom-color: var(--teal);
}
#analysis-nav details {
  margin: 0;
  padding: 0;
  border: 0;
}
#analysis-nav summary {
  list-style: none;
}
#analysis-nav summary::-webkit-details-marker {
  display: none;
}
#analysis-nav summary::after {
  content: "⌄";
  margin-left: 7px;
}
.nav-menu {
  position: absolute;
  top: 100%;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 12px 35px #15333c22;
  min-width: 270px;
  max-width: 390px;
  max-height: 65vh;
  overflow: auto;
}
.nav-menu a {
  display: block;
  color: var(--ink);
  padding: 10px 12px;
  text-decoration: none;
  border-radius: 5px;
}
.nav-menu a:hover,
.nav-menu a.active {
  background: #edf6f3;
  color: var(--teal);
}
.data-freshness {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 13px 16px;
  background: #eaf1ee;
  border-radius: 8px;
  font-size: 12px;
  margin-bottom: 24px;
}
.freshness-item.lagging,
.freshness-item.stale,
.freshness-item.missing {
  color: #87431f;
}
.screen-link {
  color: var(--teal);
  font-weight: 600;
  text-underline-offset: 3px;
}
.review-welcome {
  margin: 20px 0 28px;
}
.review-welcome h3 {
  font-size: 28px;
  letter-spacing: -0.6px;
  margin-top: 4px;
}
.review-welcome p {
  max-width: 720px;
  margin: 8px 0 14px;
}
.eyebrow {
  color: var(--teal);
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 1.1px;
}
.decision-grid,
.screen-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.decision-grid .panel,
.screen-directory .panel {
  margin: 0;
}
.decision-grid .panel > h3 {
  font-size: 18px;
}
.decision-grid .panel > .screen-link {
  display: inline-block;
  margin-top: 16px;
}
.site-evidence-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--teal);
  font: inherit;
  font-weight: 600;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: normal;
}
.review-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.review-tabs button.active {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}
.mini-history {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 74px;
  height: 44px;
}
.history-bar {
  display: block;
  width: 8px;
  background: #0c887b;
  border-radius: 2px;
}
.history-bar.negative {
  background: #b64c56;
  align-self: end;
}
.history-bar.missing {
  background: #bfc8cd;
}
.report-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 24px 0;
}
.directory-item {
  border-top: 1px solid var(--line);
  padding: 13px 0 4px;
}
.directory-item:first-of-type {
  border-top: 0;
}
.directory-item p {
  font-size: 13px;
  margin: 4px 0 10px;
}
.screen-directory {
  margin-top: 20px;
}
@media (max-width: 850px) {
  .decision-grid,
  .screen-directory {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 650px) {
  #analysis-nav {
    gap: 0;
  }
  #analysis-nav > a,
  #analysis-nav summary {
    font-size: 12px;
    padding: 10px 11px;
  }
  .nav-menu {
    left: 0;
    right: 0;
    max-width: none;
    min-width: 0;
  }
  .data-freshness {
    margin-bottom: 20px;
    gap: 8px 12px;
  }
  .review-welcome h3 {
    font-size: 24px;
  }
  .review-tabs {
    gap: 6px;
  }
  .review-tabs button {
    padding: 8px 10px;
    font-size: 12px;
  }
}

.table-export {
  text-align: right;
  font-size: 12px;
  margin: 8px 0 0;
}
.table-export summary {
  color: var(--teal);
  cursor: pointer;
}
.table-export button {
  padding: 5px 12px;
  margin: 8px 0 0 8px;
}

@media (max-width: 650px) {
  body:not(.entry-mode) .site-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  body:not(.entry-mode) .site-header .header-actions {
    justify-content: flex-end;
    gap: 8px;
  }
  body:not(.entry-mode) .site-header .brand {
    max-width: none;
  }
}
/* Source-evidence specialist reviews. */
.decision-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--line, #dce5e5);
  padding-bottom: 0.75rem;
}
.decision-tabs a {
  padding: 0.5rem 0.7rem;
  border-radius: 0.4rem;
  color: #246963;
}
.decision-tabs a.active {
  background: #e1f1ed;
  font-weight: 700;
}
.check-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.check-control input {
  width: auto;
}
.daily-heatmap th,
.daily-heatmap td {
  padding: 0.3rem;
  text-align: center;
}
.daily-heatmap th:first-child {
  min-width: 7rem;
}
.heatmap-cell {
  width: 100%;
  min-height: 2.75rem;
  min-width: 4.8rem;
  font-size: 0.82rem;
  border: 1px solid #cadfda;
  color: #163b35;
  border-radius: 0.3rem;
}
.heatmap-cell.unavailable {
  background: #f3f5f5;
  color: #71817d;
  border-color: #e0e6e4;
}
.attention-shortfalls {
  margin-top: 1.5rem;
}
.report-downloads {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 0.9rem 0;
}
.decision-tabs a:focus-visible,
.heatmap-cell:focus-visible {
  outline: 3px solid #1d8377;
  outline-offset: 2px;
}
@media (max-width: 600px) {
  .decision-tabs {
    gap: 0.25rem;
    font-size: 0.83rem;
  }
  .daily-heatmap {
    font-size: 0.78rem;
  }
  .heatmap-cell {
    min-width: 3.4rem;
  }
}

/* Source graphs share units, accessibility, source coverage and export controls. */
.graph-card {
  margin-top: 18px;
}
.graph-controls,
.graph-legend,
.graph-measures {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 12px 0;
}
.graph-control {
  display: grid;
  gap: 5px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  max-width: 100%;
}
.graph-control select {
  max-width: 100%;
  min-height: 38px;
  font-size: 12px;
  min-width: 150px;
}
.graph-canvas {
  width: 100%;
  overflow: auto;
}
.graph-canvas svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 180px;
  min-width: 640px;
  background: #fff;
}
.graph-canvas svg:focus-visible {
  outline: 3px solid #66a99b;
  outline-offset: -3px;
}
.graph-canvas circle[data-graph-point],
.graph-canvas rect[data-graph-point] {
  cursor: pointer;
}
.graph-legend-button {
  color: var(--ink);
  font-size: 12px;
  padding: 7px 10px;
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 7px;
}
.graph-legend-button::before {
  content: "";
  width: 13px;
  height: 5px;
  border-radius: 2px;
  background: var(--series-color);
}
.graph-legend-button[aria-pressed="false"] {
  opacity: 0.45;
}
.graph-inspection {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  min-height: 55px;
  padding: 12px;
  margin-top: 9px;
  background: #f1f7f3;
  border: 1px solid #dbe7df;
  border-radius: 6px;
  font-size: 12px;
  white-space: normal;
}
.graph-inspection > .panel {
  width: 100%;
  margin: 4px 0;
}
.graph-axis-labels {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 11px;
  margin: 8px 0;
}
.graph-note {
  font-size: 12px;
  line-height: 1.6;
}
.graph-measure {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 400;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.graph-measure input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--teal);
}
.graph-empty {
  padding: 24px;
  background: #f7faf8;
  color: var(--muted);
}
.graph-heatmap-scroll {
  overflow: auto;
  max-height: 620px;
}
.graph-heatmap {
  border-collapse: separate;
  border-spacing: 3px;
  width: 100%;
  font-size: 12px;
}
.graph-heatmap thead th {
  position: sticky;
  top: 0;
  background: white;
  z-index: 2;
  min-width: 85px;
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
}
.graph-heatmap tbody th {
  min-width: 220px;
  max-width: 260px;
  white-space: normal;
  position: sticky;
  left: 0;
  background: white;
  z-index: 1;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
}
.graph-heatmap th small {
  display: block;
  font-weight: 400;
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.graph-heatmap td {
  padding: 0;
  border: 0;
}
.graph-heatmap-cell {
  display: block;
  width: 100%;
  min-height: 40px;
  min-width: 85px;
  padding: 8px;
  color: #203c35;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 500;
  font-size: 11px;
  white-space: nowrap;
}
.graph-heatmap-cell:hover,
.graph-heatmap-cell:focus-visible {
  border-color: #176e5c;
  outline: 2px solid #65a99b;
  outline-offset: 0;
}
.graph-heatmap-cell.unavailable {
  background: repeating-linear-gradient(135deg, #f0f2f1, #f0f2f1 4px, #f9faf9 4px, #f9faf9 8px);
  color: #727e78;
}
@media (max-width: 650px) {
  .graph-controls {
    gap: 7px;
  }
  .graph-control {
    width: 100%;
  }
  .graph-control select {
    width: 100%;
  }
  .graph-inspection {
    align-items: flex-start;
    flex-direction: column;
  }
  .graph-heatmap tbody th {
    min-width: 150px;
    max-width: 150px;
  }
  .graph-heatmap-cell {
    min-width: 75px;
  }
  .graph-card {
    padding: 13px;
  }
  .graph-measures {
    max-height: 180px;
    overflow: auto;
  }
}
@media print {
  .graph-controls,
  .graph-measures,
  .graph-legend-button[aria-pressed="false"],
  .graph-inspection button {
    display: none !important;
  }
  .graph-canvas,
  .graph-heatmap-scroll {
    overflow: visible !important;
    max-height: none !important;
  }
  .graph-canvas svg {
    min-width: 0 !important;
    width: 100%;
    min-height: 0 !important;
  }
  .graph-legend-button {
    display: inline-flex !important;
    border: 0 !important;
    font-size: 9px;
  }
  .graph-card {
    break-inside: auto;
    margin-top: 10px;
  }
  .graph-canvas {
    break-inside: avoid;
  }
  .graph-heatmap th {
    position: static !important;
    min-width: 0 !important;
    max-width: none !important;
  }
  .graph-heatmap-cell {
    min-width: 0;
    min-height: 24px;
    font-size: 8px;
    padding: 3px;
    print-color-adjust: exact;
  }
  .graph-heatmap {
    font-size: 8px;
    border-spacing: 1px;
  }
  .graph-inspection {
    min-height: 0;
    padding: 6px;
    font-size: 9px;
  }
  .graph-controls + div {
    break-inside: auto;
  }
}

/* Interactive evidence charts and Microsoft connection. */
.workspace-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 0 0 14px;
}
.review-tools,
.dialog-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.review-tools button {
  font-size: 12px;
  padding: 8px 11px;
}
.review-tools kbd {
  font: 10px system-ui;
  margin-left: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1px 4px;
}
#review-location {
  border: 0;
  margin: 0;
  gap: 10px;
  font-size: 12px;
  overflow: visible;
  align-items: center;
}
#review-location a {
  text-decoration: none;
  font-size: 12px;
}
.review-description {
  max-width: 800px;
  color: var(--muted);
  font-size: 14px;
  margin: 7px 0 9px;
}
.review-scope-note {
  padding: 12px;
  background: #eef5f2;
  border-radius: 6px;
  font-size: 13px;
}
.data-freshness {
  padding: 10px 14px;
  margin-bottom: 18px;
}
.data-freshness details {
  margin: 0;
  flex: 1;
}
.freshness-summary {
  display: flex;
  gap: 16px;
  align-items: center;
  color: var(--ink);
  list-style: none;
}
.freshness-summary::after {
  content: "⌄";
  margin-left: auto;
}
.freshness-summary::-webkit-details-marker {
  display: none;
}
.freshness-warning {
  color: #8b5023;
}
.freshness-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  border-top: 1px solid #d4e2db;
  margin-top: 12px;
  padding-top: 12px;
}
.table-sort {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  padding: 0;
  display: inline-flex;
  gap: 9px;
  align-items: center;
  text-align: inherit;
}
.sort-indicator {
  color: #80958c;
  font-size: 13px;
}
.table-sort:hover,
.table-sort:focus-visible {
  color: var(--teal);
}
th[aria-sort="ascending"],
th[aria-sort="descending"] {
  color: var(--teal);
}
.table-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
}
.table-controls input {
  max-width: 290px;
  padding: 8px 10px;
  font-size: 12px;
}
.table-scope {
  white-space: nowrap;
}
.table-export p {
  margin: 8px 0 0;
}
.table-export {
  white-space: normal;
}
.table-chart-slot:empty {
  display: none;
}
.contribution-overview .tiles {
  margin: 8px 0 20px;
}
.contribution-overview .tile {
  background: #f7faf8;
  border-color: #e3ece7;
  padding: 16px;
}
.contribution-overview .amount {
  font-size: 23px;
}
.contribution-overview .panel {
  padding: 16px;
}
.contribution-overview .chart-surface svg {
  min-height: 60px;
}
.loss-concentration {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.loss-concentration > summary {
  font-weight: 650;
  color: var(--teal);
}
.loss-concentration > p {
  margin: 12px 0;
}
.report-loading {
  margin: 20px 0;
}
.loading-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.loading-tiles span {
  height: 118px;
  border-radius: 9px;
  background: #e5ece8;
  animation: review-loading 1.5s ease-in-out infinite;
}
.loading-lines {
  margin: 20px 0;
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.loading-lines span {
  display: block;
  height: 15px;
  width: 90%;
  margin: 16px 0;
  background: #e9efec;
  border-radius: 4px;
}
.loading-lines span:nth-child(2) {
  width: 70%;
}
@keyframes review-loading {
  50% {
    opacity: 0.45;
  }
}
#message > p {
  margin: 9px 0;
}
#screen-finder {
  width: min(700px, calc(100% - 32px));
}
#screen-finder .panel-heading {
  align-items: start;
  margin-bottom: 8px;
}
#screen-finder .panel-heading p {
  margin: 6px 0 10px;
}
#screen-search {
  width: 100%;
  margin: 5px 0 12px;
}
#screen-search-results {
  max-height: 54vh;
  overflow: auto;
  display: grid;
  gap: 5px;
}
.finder-result {
  background: white;
  border: 1px solid transparent;
  text-align: left;
  color: var(--ink);
  padding: 11px 14px;
  border-radius: 6px;
  font-weight: 400;
}
.finder-result strong {
  font-size: 14px;
}
.finder-result small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  white-space: normal;
  font-size: 12px;
}
.finder-result[aria-selected="true"],
.finder-result:hover {
  background: #eef6f1;
  border-color: #cee0d6;
}
.finder-group {
  font-size: 10px;
  color: var(--teal);
  margin-left: 12px;
}
.review-tools button[aria-pressed="true"] {
  background: #e7f2ec;
  color: #106b59;
  border-color: #bad8c8;
}
@media (max-width: 900px) {
  .workspace-tools {
    align-items: start;
    flex-direction: column;
    gap: 10px;
  }
  .contribution-overview .amount {
    font-size: 21px;
  }
}
@media (max-width: 650px) {
  .review-tools {
    width: 100%;
    gap: 6px;
  }
  .review-tools button {
    font-size: 11px;
    padding: 8px 9px;
  }
  .review-tools kbd {
    display: none;
  }
  .freshness-summary {
    gap: 9px;
    align-items: start;
    flex-wrap: wrap;
  }
  .freshness-summary::after {
    display: none;
  }
  .freshness-summary strong {
    font-size: 11px;
  }
  .review-description {
    font-size: 12px;
  }
  .table-controls {
    flex-wrap: wrap;
  }
  .table-controls input {
    width: 100%;
    max-width: none;
  }
  .table-scope {
    font-size: 11px;
  }
  .loading-tiles {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .finder-group {
    display: block;
    margin: 4px 0;
  }
  .contribution-overview .panel {
    padding: 12px;
  }
  .contribution-overview .chart-surface {
    overflow: auto;
  }
  .contribution-overview .chart-surface svg {
    min-width: 700px;
  }
  .contribution-overview .amount {
    font-size: 19px;
  }
  .contribution-overview .tile {
    padding: 12px;
  }
  .dialog-tools {
    width: 100%;
    justify-content: flex-end;
  }
}
@media (prefers-reduced-motion: reduce) {
  .loading-tiles span {
    animation: none;
  }
}
@media print {
  @page {
    size: A4 landscape;
    margin: 12mm;
  }
  body {
    background: white;
    color: #172f29;
    font-size: 11px;
  }
  main {
    max-width: none;
    padding: 0;
    width: 100%;
  }
  header {
    background: white;
    color: #172f29;
    padding: 0 0 10px;
    border-bottom: 1px solid #adbdb5;
  }
  .brand-mark {
    width: 26px;
    height: 26px;
  }
  .brand h1 {
    font-size: 16px;
  }
  .brand p {
    color: #53665e;
  }
  .skip-link,
  .header-actions,
  .workspace-tools,
  #analysis-nav,
  .data-freshness,
  .filters,
  .toolbar,
  .table-tools,
  .table-controls,
  .table-export,
  .sources-details,
  .review-tabs,
  .decision-tabs,
  #busy,
  #report-loading,
  #screen-finder,
  .report-downloads,
  .action-column,
  .evidence-chart > select,
  button:not(.site-evidence-link):not(.table-sort):not(.explain-value):not(.radar-heat-btn) {
    display: none !important;
  }
  .table-scroll,
  .chart-surface,
  .analytical-chart {
    overflow: visible !important;
    max-height: none !important;
  }
  .table-scroll th,
  .table-scroll thead,
  .table-scroll td:first-child {
    position: static !important;
    max-width: none !important;
    overflow: visible !important;
    box-shadow: none !important;
  }
  .table-scroll th {
    background: #eff4f1;
  }
  .chart-surface svg {
    min-width: 0 !important;
    min-height: 0 !important;
  }
  .table-evidence {
    overflow: visible;
  }
  .sort-indicator {
    display: none;
  }
  .table-sort,
  .site-evidence-link,
  .explain-value,
  table td:first-child button {
    display: inline !important;
    color: inherit !important;
    background: none !important;
    border: 0 !important;
    padding: 0 !important;
    font-size: inherit !important;
    text-decoration: none !important;
  }
  .radar-heat-btn {
    display: inline-block !important;
    border: 0 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .tiles {
    gap: 9px;
    margin: 12px 0;
  }
  .tile,
  .panel {
    box-shadow: none;
    border-color: #cad6ce;
  }
  .tile {
    padding: 12px;
  }
  .amount {
    font-size: 21px;
  }
  .panel {
    padding: 13px;
    margin-bottom: 14px;
  }
  .panels,
  .decision-grid,
  .screen-directory {
    grid-template-columns: 1fr;
  }
  .tile,
  .top-line,
  .panel-heading,
  .chart-surface {
    break-inside: avoid;
  }
  tr {
    break-inside: avoid;
  }
  thead {
    display: table-header-group;
  }
  th,
  td {
    padding: 7px 8px;
    font-size: 10px;
  }
  table {
    white-space: normal;
  }
  a {
    color: inherit;
    text-decoration: none;
  }
  .top-line {
    margin: 12px 0;
  }
  #page-title {
    font-size: 19px;
  }
  .review-description,
  #period-caption {
    font-size: 11px;
  }
  .baseline-summary strong {
    font-size: 16px;
  }
  .evidence-chart {
    background: white;
  }
  .tiles {
    grid-template-columns: repeat(4, 1fr) !important;
  }
  .contribution-overview .decision-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px;
    break-inside: avoid;
  }
  .contribution-overview .decision-grid > .panel {
    break-inside: avoid;
  }
  .table-evidence {
    break-inside: auto;
  }
  table {
    break-inside: auto;
  }
  thead {
    display: table-header-group !important;
    break-inside: avoid;
  }
  .table-printing > .table-scroll {
    display: none !important;
  }
  .table-print-pages table {
    break-inside: avoid;
    margin-bottom: 14px;
  }
  .contribution-overview .tile {
    padding: 10px;
  }
  .contribution-overview .amount {
    font-size: 18px;
  }
  .contribution-overview .tiles {
    margin: 10px 0;
  }
  .contribution-overview .notice {
    padding: 8px 10px;
    margin: 8px 0;
    font-size: 11px;
  }
  .contribution-overview .panel {
    padding: 10px;
    margin-bottom: 10px;
  }
  #workspace > footer {
    display: none !important;
  }
  body.printing-dialog header,
  body.printing-dialog main {
    display: none !important;
  }
  body.printing-dialog dialog[open] {
    display: block !important;
    position: static;
    max-width: none;
    width: 100%;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: visible;
  }
  body.printing-dialog dialog[open]::before {
    content: "Operational Efficiency · Review evidence";
    display: block;
    font-size: 12px;
    margin-bottom: 12px;
    color: #52665b;
  }
  body.printing-dialog dialog::backdrop {
    display: none;
  }
  .printing-dialog .dialog-tools {
    display: none !important;
  }
}
.evidence-chart {
  margin: 0.85rem 0;
  padding: 0.75rem;
  border: 1px solid #dce5e5;
  border-radius: 0.5rem;
  background: #f8fbfa;
  white-space: normal;
}
.evidence-chart summary {
  cursor: pointer;
  font-weight: 600;
  color: #176b62;
}
.evidence-chart select {
  max-width: 100%;
  margin: 0.5rem 0;
}
.chart-surface {
  width: 100%;
  min-width: 0;
}
.chart-surface svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 180px;
}
.device-code {
  display: block;
  font-size: 1.7rem;
  letter-spacing: 0.12em;
  background: #eef5f3;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 0.5rem;
  text-align: center;
}
@media (max-width: 600px) {
  .evidence-chart {
    padding: 0.5rem;
  }
  .chart-surface {
    overflow-x: auto;
  }
  .chart-surface svg {
    min-width: 640px;
  }
}

@media print {
  .graph-heatmap .graph-heatmap-cell,
  .graph-legend .graph-legend-button[aria-pressed="true"] {
    display: block !important;
  }
  .graph-legend .graph-legend-button[aria-pressed="false"] {
    display: none !important;
  }
}
.whatif-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 16px 0;
}
.whatif-control {
  display: grid;
  gap: 6px;
  align-content: start;
}
.whatif-control input[type="range"] {
  width: 100%;
  padding: 0;
}
.whatif-control input[type="number"] {
  max-width: 220px;
}
.whatif-summary {
  margin: 0;
}
.retired-directory {
  margin-top: 8px;
}
.retired-directory summary {
  cursor: pointer;
  font-weight: 650;
}
@media (max-width: 850px) {
  .whatif-grid {
    grid-template-columns: 1fr;
  }
}
/* Distance to break-even for loss sites (Site verdicts). */
.profit-breakeven-chart { margin: 18px 0 8px; }
.profit-breakeven-svg { width: 100%; height: auto; display: block; }
.profit-breakeven-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.profit-breakeven-key::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--key); margin-right: 6px; vertical-align: -1px; }
/* The break-even and months-in-loss cells wrap inside their column instead of running into the next one. */
td .profit-breakeven, td .profit-months-loss { min-width: 190px; max-width: 280px; }
td .profit-breakeven > *, td .profit-months-loss > * { white-space: normal; overflow-wrap: anywhere; }
/* Profit levers. */
.levers-bars { display: grid; gap: 4px; margin: 10px 0 14px; }
.levers-row { display: grid; grid-template-columns: minmax(180px, 1.3fr) minmax(120px, 2fr) 190px 128px 132px; gap: 12px; align-items: center; padding: 8px 6px; border-bottom: 1px solid #e3ebe7; }
.levers-chip { justify-self: start; }
.levers-name { font-size: .9rem; color: var(--ink, #163040); }
.levers-track { display: flex; height: 14px; background: #eef3f1; border-radius: 3px; overflow: hidden; }
.levers-low { display: block; height: 100%; background: #137f72; }
.levers-high { display: block; height: 100%; background: #9fd0c7; }
.levers-amount { font-variant-numeric: tabular-nums; font-size: .88rem; text-align: right; }
.levers-chip { font-size: .74rem; padding: 2px 8px; border-radius: 10px; white-space: nowrap; background: #eef3f1; color: #2b4a44; }
.levers-measured, .levers-arithmetic { background: #dcefe9; color: #0c5a51; }
.levers-estimate { background: #f6efe0; color: #6c5317; }
.levers-signal { background: #f6e6e2; color: #7a3424; }
.levers-items { margin: 8px 0; }
@media (max-width: 640px) { .levers-row { grid-template-columns: 1fr; gap: 6px; } .levers-amount { text-align: left; } }

/* Card help ("?"), the account setup steps and the new-version banner. Loaded after app.css. */

.has-card-help {
  position: relative;
}
.card-help-button {
  width: 18px;
  height: 18px;
  margin-left: 8px;
  padding: 0;
  border: 1px solid #b9c9cf;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
  vertical-align: 2px;
}
.card-help-button:hover,
.card-help-button[aria-expanded="true"] {
  border-color: var(--teal);
  color: var(--teal);
}
.card-help-popover {
  position: absolute;
  z-index: 30;
  width: min(440px, calc(100% - 16px));
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 8px 24px rgb(16 45 64 / 18%);
  color: var(--ink);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
}
.card-help-title {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}
.card-help-section + .card-help-section {
  margin-top: 8px;
}
.card-help-heading {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.guide-help h3 {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.guide-help p {
  margin: 2px 0 0;
}

.version-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding: 10px 4vw;
  border-bottom: 1px solid #b6d8d2;
  background: #e8f3f1;
  color: var(--ink);
  font-size: 13px;
}
.version-banner button {
  padding: 6px 14px;
}

.account-form input:not([type="checkbox"]) {
  display: block;
  width: 100%;
  max-width: 380px;
  margin-bottom: 14px;
}
.account-form .check-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 16px;
  font-weight: 500;
}
.account-form .check-row input {
  width: auto;
  height: auto;
  margin: 0;
}
.account-form .form-status,
.two-factor-setup .form-status {
  margin: 12px 0 0;
}
.account-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.status-badge.on {
  background: #dff3ee;
  color: #0b6b5b;
}
.status-badge.off {
  background: #eef1f2;
  color: var(--muted);
}
.notice.success {
  border-color: #a8d5c7;
  background: #e9f6f1;
  color: #0d5c4d;
}
.account-section {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.account-section h3 {
  margin-bottom: 10px;
}

.two-factor-steps {
  margin: 0;
  padding-left: 1.2rem;
}
.two-factor-steps > li + li {
  margin-top: 1.25rem;
}
.two-factor-how {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
  margin-top: 8px;
}
.two-factor-qr {
  width: 180px;
  height: 180px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}
.two-factor-instructions {
  flex: 1 1 220px;
  min-width: 0;
}
.two-factor-key-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.two-factor-key {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f6f9f9;
  font:
    15px ui-monospace,
    monospace;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
  user-select: all;
  word-spacing: 0.3em;
}
.login .copy-key {
  width: auto;
}
.login input.two-factor-code,
input.two-factor-code {
  width: 180px;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
}

@media print {
  .card-help-button,
  .card-help-popover,
  .version-banner {
    display: none !important;
  }
}

/* Authenticated workspace. The entry page keeps its own design. */
body:not(.entry-mode) { --ink: #203449; --muted: #566c7e; --line: #dce5ec; --paper: #f3f6fa; --teal: #08776f; --sidebar-width: 248px; }
body:not(.entry-mode) .site-header { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; position: sticky; top: 0; z-index: 20; height: 72px; min-height: 72px; padding: 14px 28px; gap: 16px; background: #122d3d; box-shadow: 0 1px 0 #ffffff12; }
body:not(.entry-mode) .site-header .brand { width: auto; min-width: 0; }
body:not(.entry-mode) .brand-mark { width: 36px; height: 36px; }
body:not(.entry-mode) .site-header h1 { font-size: 18px; font-weight: 650; }
body:not(.entry-mode) .site-header p { font-size: 11px; margin-top: 1px; }
body:not(.entry-mode) .header-actions { margin-left: auto; gap: 8px; }
body:not(.entry-mode) .header-actions button { font-size: 12px; padding: 8px 12px; }
.header-search { display: none; }
body:not(.entry-mode) .header-context { display: none; }
body:not(.entry-mode) .header-search { display: flex; align-items: center; width: clamp(240px, 27vw, 400px); height: 40px; margin: 0 8px 0 0; padding: 0 4px 0 12px; gap: 8px; border: 1px solid #708a9a; border-radius: 7px; background: #fff; color: #203449; }
.header-search:focus-within { outline: 3px solid #53bab2; outline-offset: 3px; }
.header-search input { flex: 1; min-width: 0; width: 100%; margin: 0; padding: 0; border: 0; background: transparent; color: #203449; font-size: 13px; box-shadow: none; }
.header-search input::placeholder { color: #566c7e; opacity: 1; }
.header-search input:focus-visible { outline: none; }
.header-search kbd { flex: none; padding: 2px 5px; border: 1px solid #dce5ec; border-radius: 4px; color: #566c7e; font: 10px system-ui; white-space: nowrap; }
body:not(.entry-mode) .header-search #find-review { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 34px; height: 34px; padding: 7px; border: 0; background: transparent; color: #425970; border-radius: 5px; }
.header-search #find-review:hover { background: #edf7f4; color: #086e65; }
.finder-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.finder-filters button { min-height: 40px; padding: 8px 14px; }
.finder-filters button[aria-pressed="true"] { background: #e4f2ee; border-color: #086e65; color: #086e65; }
.doctor-profile { padding: 0; border: 0; background: transparent; }
.doctor-profile .graph-canvas svg { min-width: 0; min-height: 0; }
.doctor-history-charts .graph-card { margin-top: 12px; }
.doctor-company-context { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; }
.doctor-company-context input { width: auto; margin: 0; }
.doctor-profile #doctor-history-window { margin: 5px 0 8px; }
.doctor-monthly-snapshot { margin-top: 16px; }
#find-review svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
body:not(.entry-mode) main { max-width: none; margin-left: var(--sidebar-width); padding: 22px 32px 48px; }
.entry-mode .navigation-toggle, .navigation-toggle { display: none; }
.workspace-sidebar { position: fixed; inset: 72px auto 0 0; width: var(--sidebar-width); display: flex; flex-direction: column; padding: 24px 14px 16px; background: #fff; border-right: 1px solid var(--line); z-index: 15; overflow-y: auto; overscroll-behavior: auto; }
/* Let scrolling continue into the review when a desktop list reaches its end.
   Only the modal navigation drawer below keeps scrolling contained. */
.sidebar-heading { display: flex; justify-content: space-between; align-items: center; padding: 0 12px 16px; color: #617587; font-size: 10px; font-weight: 750; letter-spacing: 1.7px; }
.sidebar-heading button { display: none; }
#analysis-nav { display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 0; border: 0; margin: 0; z-index: auto; }
#analysis-nav > a, #analysis-nav summary { display: flex; align-items: center; padding: 11px 13px; border: 0; border-radius: 7px; color: #506579; font-size: 13px; font-weight: 600; line-height: 1.4; text-decoration: none; }
#analysis-nav > a::before, #analysis-nav summary::before { content: "◈"; width: 24px; flex: none; font-size: 16px; color: #899aaa; font-weight: 400; }
#analysis-nav > a[data-screen="home"]::before { content: "⌂"; font-size: 20px; }
#analysis-nav > a[data-screen="all"]::before { content: "▦"; }
#analysis-nav .nav-group[data-group="people"] summary::before { content: "♧"; }
#analysis-nav .nav-group[data-group="costs"] summary::before { content: "≋"; font-size: 22px; }
#analysis-nav .nav-group[data-group="commercial"] summary::before { content: "↗"; }
#analysis-nav .nav-group[data-group="data"] summary::before { content: "▤"; }
#analysis-nav summary::after { margin-left: auto; font-size: 16px; transition: transform .15s; }
#analysis-nav details[open] summary::after { transform: rotate(180deg); }
#analysis-nav details { border: 0; padding: 0; margin: 0; }
#analysis-nav > a.active, #analysis-nav .selected-group > summary { border: 0; background: #eaf5f2; color: #08746c; }
#analysis-nav a:hover, #analysis-nav summary:hover { background: #f0f5f8; color: var(--ink); }
#analysis-nav .nav-menu { position: static; min-width: 0; max-width: none; max-height: none; box-shadow: none; border: 0; border-radius: 0; padding: 4px 0 8px 25px; background: transparent; overflow: visible; }
#analysis-nav .nav-menu a { padding: 8px 10px; font-size: 12px; line-height: 1.5; font-weight: 450; border-left: 2px solid #e7edf1; border-radius: 0 5px 5px 0; margin-left: 1px; }
#analysis-nav .nav-menu a.active { border-left-color: #087f78; background: #edf7f4; color: #086e65; font-weight: 650; }
#analysis-nav > a[data-screen]::before, #analysis-nav .nav-group summary::before {
  content: ""; width: 18px; height: 18px; margin-right: 9px; background: #8b9daa;
  mask: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M4 18V11M12 18V5M20 18V8M3 21h18"/%3E%3C/svg%3E') center/contain no-repeat;
}
#analysis-nav > a[data-screen="home"]::before { mask-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="m3 10 9-7 9 7M5 9v12h14V9M9 21v-8h6v8"/%3E%3C/svg%3E'); }
#analysis-nav > a[data-screen="all"]::before { mask-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="1.6"%3E%3Crect x="3" y="3" width="7" height="7" rx="1"/%3E%3Crect x="14" y="3" width="7" height="7" rx="1"/%3E%3Crect x="3" y="14" width="7" height="7" rx="1"/%3E%3Crect x="14" y="14" width="7" height="7" rx="1"/%3E%3C/svg%3E'); }
#analysis-nav > a[data-screen="cockpit"]::before, #analysis-nav .nav-group[data-group="sites"] summary::before { mask-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M4 21V5h10v16M14 10h6v11M2 21h20M8 9h2M8 13h2M8 17h2M17 14h1M17 18h1"/%3E%3C/svg%3E'); }
#analysis-nav > a[data-screen="referrers"]::before, #analysis-nav .nav-group[data-group="people"] summary::before { mask-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="1.6" stroke-linecap="round"%3E%3Ccircle cx="9" cy="7" r="3"/%3E%3Cpath d="M3 21v-3a6 6 0 0 1 12 0v3M17 4a3 3 0 0 1 0 6M18 13a5 5 0 0 1 3 5v3"/%3E%3C/svg%3E'); }
#analysis-nav > a[data-screen="operating"]::before, #analysis-nav .nav-group[data-group="costs"] summary::before { mask-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="1.6" stroke-linecap="round"%3E%3Crect x="3" y="5" width="18" height="14" rx="2"/%3E%3Ccircle cx="12" cy="12" r="3"/%3E%3Cpath d="M6 12h1M17 12h1"/%3E%3C/svg%3E'); }
#analysis-nav .nav-group[data-group="commercial"] summary::before { mask-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="m3 17 6-6 5 3 7-10M15 4h6v6"/%3E%3C/svg%3E'); }
#analysis-nav .nav-group[data-group="data"] summary::before { mask-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="1.6"%3E%3Cellipse cx="12" cy="5" rx="9" ry="3"/%3E%3Cpath d="M3 5v7c0 4 18 4 18 0V5M3 12v7c0 4 18 4 18 0v-7"/%3E%3C/svg%3E'); }
#analysis-nav > a.active::before, #analysis-nav .selected-group summary::before { background: #087f78; }
.sidebar-footnote { margin-top: auto; padding: 28px 12px 0; font-size: 10px; color: #617587; line-height: 1.8; }
.sidebar-footnote > span:last-child { display: block; padding-left: 11px; }
.sidebar-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #0b9281; margin-right: 6px; vertical-align: middle; }
.saved-navigation { padding: 0 6px 15px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.sidebar-label { font-size: 10px; color: #617587; letter-spacing: .6px; text-transform: uppercase; padding: 0 7px 7px; }
.saved-navigation a { display: block; padding: 7px; font-size: 12px; line-height: 1.4; text-decoration: none; border-radius: 5px; color: #526779; }
.saved-navigation a.active { background: #edf7f4; color: #08746c; }
.navigation-backdrop { position: fixed; inset: 72px 0 0; background: #102b3d88; border-radius: 0; z-index: 30; }
#workspace { position: relative; min-width: 0; }
.workspace-tools { margin: 0 0 18px; min-height: 32px; }
.review-tools button { border-color: #d8e2ea; background: white; font-weight: 500; border-radius: 6px; }
.review-options { position: absolute; top: 0; right: 0; margin: 0; z-index: 8; font-size: 12px; }
.review-options > summary { padding: 7px 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; }
.review-options .review-display { position: absolute; top: 40px; right: 0; width: 280px; margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 30px #17304415; background: white; justify-content: flex-start; }
.review-tools { padding-right: 137px; }
.mobile-review-tools { display: none; }
.mobile-review-tools { width: 100%; }
.mobile-review-tools > button { display: none; }
#review-location { color: #526779; font-size: 11px; }
#review-location a { font-size: 11px; }
body:not(.entry-mode) .top-line { margin: 0 0 12px; padding-top: 4px; }
#page-title { font-size: 27px; font-weight: 700; letter-spacing: -.7px; line-height: 1.25; }
.review-description { font-size: 13px; max-width: 780px; line-height: 1.5; margin: 8px 0 5px; }
#period-caption { margin: 4px 0 0; font-size: 11px; }
.data-freshness { padding: 8px 12px; border: 1px solid #dcebe5; background: #eef6f2; font-size: 11px; margin-bottom: 16px; border-radius: 6px; }
.freshness-summary { gap: 12px; }
.filters { display: flex; gap: 12px; flex-wrap: wrap; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 8px; margin: 0 0 18px; }
.filters label { font-size: 10px; text-transform: uppercase; letter-spacing: .65px; font-weight: 650; color: #617587; margin-bottom: 5px; }
.filters select { padding: 8px 30px 8px 10px; min-width: 162px; font-size: 12px; border-color: #d8e2e9; border-radius: 5px; background-color: #fcfdff; min-height: 36px; }
.active-filters { display: flex; gap: 8px; margin: -8px 0 14px; }
.filter-chip { padding: 4px 9px; border: 1px solid #cbe4dc; background: #eaf5f1; color: #186c5f; font-size: 11px; font-weight: 500; border-radius: 20px; }
.section-index { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; padding: 8px 0 14px; border: 0; margin: 0 0 4px; overflow-x: auto; scrollbar-width: thin; white-space: nowrap; }
.section-index-label { color: #526779; font-size: 9px; font-weight: 650; letter-spacing: 1px; flex: none; margin-right: 5px; }
.section-index a { display: block; flex: none; color: #566c7e; font-size: 11px; font-weight: 500; padding: 5px 9px; border: 1px solid transparent; border-radius: 5px; text-decoration: none; }
.section-index a:hover, .section-index a.active { color: #087b70; border-color: #d8e8e2; background: #ebf4ef; }
.panel { scroll-margin-top: 90px; border-radius: 10px; padding: 22px; box-shadow: 0 2px 4px #1b3c5303; }
.panel > h3, .panel-heading h3 { font-size: 16px; font-weight: 650; letter-spacing: -.2px; }
.panel > .muted, .panel > .workflow-notes { font-size: 12px; line-height: 1.6; margin-top: 8px; }
.tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 0 18px; }
.tiles[data-count="5"], .tiles[data-count="6"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { padding: 18px 20px; border-radius: 8px; min-width: 0; position: relative; box-shadow: 0 2px 4px #1b3c5303; }
.tile label { margin-bottom: 8px; color: #526779; font-size: 11px; font-weight: 550; line-height: 1.5; }
.amount { font-size: clamp(21px, 1.7vw, 28px); line-height: 1.35; font-weight: 700; letter-spacing: -.8px; overflow-wrap: anywhere; }
.tile p.metric-comparison { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 9px; font-size: 10px; }
.metric-delta { display: inline-block; padding: 2px 5px; border-radius: 4px; font-size: 10px; font-weight: 650; }
.metric-delta.good { background: #e8f5ed; color: #197749; }
.metric-delta.bad { background: #fceef0; color: #ae3949; }
.tile p.metric-note { font-size: 10px; color: #617587; margin-top: 5px; }
.amount-pair { display: flex; flex-direction: column; gap: 8px; }
.amount-pair .metric-count { font-size: 15px; line-height: 1.2; color: #526779; letter-spacing: 0; font-weight: 500; }
.amount-pair .metric-separator { display: none; }
.amount-pair .metric-value { font-size: clamp(18px, 1.45vw, 25px); }
.site-summary { margin: 18px 0; padding: 0 0 14px; border-bottom: 1px solid var(--line); }
.site-summary h3 { font-size: 21px; letter-spacing: -.5px; }
.site-summary p { margin: 6px 0 0; font-size: 12px; }
.review-empty { display: flex; align-items: center; min-height: 100px; justify-content: center; padding: 24px 16px; background: #f6faf9; border: 1px dashed #d9e6e1; border-radius: 6px; color: #526779; font-size: 12px; text-align: center; margin: 14px 0 0; }
.attention-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid #dbe5ec; background: #fff; border-radius: 8px; margin: 14px 0 24px; }
.attention-item { display: flex; align-items: center; gap: 12px; padding: 16px; color: var(--ink); text-decoration: none; border-right: 1px solid #e4ebf1; }
.attention-item:last-child { border-right: 0; }
.attention-item:hover { background: #f4faf7; }
.attention-count { display: flex; align-items: center; justify-content: center; min-width: 39px; height: 39px; padding: 0 5px; color: #197868; background: #edf6f2; border-radius: 8px; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.attention-label { min-width: 0; }
.attention-label strong { display: block; font-size: 11px; font-weight: 600; }
.attention-label small { display: block; font-size: 9px; color: #617587; margin-top: 3px; }
.attention-arrow { margin-left: auto; color: #93a7b4; font-size: 16px; }
.preview-options { margin: 10px 0 0; font-size: 10px; color: #617587; }
.preview-options > summary { cursor: pointer; padding: 4px 0; }
.preview-options[open] > .table-controls { margin-top: 12px; }
.decision-grid { gap: 18px; }
.decision-grid .panel > h3 { font-size: 16px; }
.decision-grid .panel > .screen-link { margin-top: 12px; font-size: 11px; }
.attention-shortfalls { margin-top: 26px; }
.attention-shortfalls .tiles { gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.attention-shortfalls .tile { padding: 12px; box-shadow: none; background: #f8fafc; }
.attention-shortfalls .amount { font-size: 19px; }
.table-scroll { border: 1px solid #e6edf2; border-radius: 6px; max-width: 100%; scrollbar-width: thin; }
.table-scroll:focus-visible { outline: 2px solid #137f72; outline-offset: 3px; }
table { font-size: 12px; }
th { padding: 10px 12px; font-size: 10px; letter-spacing: .5px; background: #f7f9fc; color: #566c7e; }
td { padding: 11px 12px; border-bottom-color: #eef2f6; }
.table-scroll td:first-child { background: #fff; }
.table-scroll th, .table-scroll th:first-child { background: #f7f9fc; }
tbody tr:nth-child(even) td { background: #fcfdff; }
tbody tr:hover td, tbody tr:focus-within td { background: #f0f7f6; }
.table-sort { font-size: 10px; line-height: 1.4; }
.toolbar { gap: 8px; }
.toolbar button, .toolbar select, .toolbar input { font-size: 12px; }
.report-related, .report-downloads { position: relative; margin: 0; font-size: 12px; }
.report-related > summary, .report-downloads > summary { padding: 9px 12px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: #526b7e; cursor: pointer; min-height: 38px; }
.report-related > select { position: absolute; z-index: 5; top: 42px; left: 0; width: 260px; background: #fff; }
.report-downloads[open] { flex-basis: 100%; }
.report-downloads[open] > summary { display: inline-block; margin-bottom: 8px; }
.report-downloads button { display: block; margin: 6px 0; }
.report-basis { margin: 0 0 18px; color: var(--muted); font-size: 12px; }
.report-basis p { margin: 10px 0; line-height: 1.6; }
.report-graphs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 24px; }
.report-graphs > .panel { margin: 0; }
.report-graphs > .panel:first-child, .report-graphs > .panel:last-child { grid-column: 1/-1; }
.report-graphs .graph-canvas svg { min-width: 0; }
.report-graphs .graph-control select { min-width: 130px; }
.report-graphs.executive-graphs > .panel { grid-column: 1 / -1; }
.report-graphs.forecast-graphs > .panel { grid-column: 1 / -1; }
.forecast-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 18px 0 14px; }
.forecast-summary-card { display: grid; align-content: start; gap: 8px; padding: 15px; border: 1px solid var(--line); border-radius: 7px; background: #f8fafc; min-width: 0; }
.forecast-summary-card > span { font-size: 12px; color: var(--muted); }
.forecast-summary-card > strong { font-size: 21px; letter-spacing: -.4px; overflow-wrap: break-word; }
.forecast-summary-card > small { color: var(--muted); font-size: 11px; }
.forecast-summary-card[data-summary="next"] { background: #f0f4fc; border-top: 3px solid #405dbc; }
.forecast-summary-card[data-summary="range"] > strong { font-size: 16px; line-height: 1.6; }
.forecast-summary-card[data-summary="range"] > strong > span { display: block; }
.forecast-context { font-size: 12px; line-height: 1.6; color: #526779; margin: 12px 0; }
.forecast-values { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 15px; }
.forecast-values > summary { font-size: 13px; font-weight: 600; color: #203449; cursor: pointer; }
.forecast-values > p, .forecast-scope-note { font-size: 12px; line-height: 1.6; }
.forecast-values > button { margin: 10px 0; }
.forecast-scope-note { padding: 12px; background: #f6f8fb; border-radius: 5px; }
.forecast-unavailable { padding: 16px; border: 1px solid #d6e2ec; border-radius: 6px; background: #f6f8fb; }
.forecast-unavailable strong { font-size: 15px; }
.forecast-unavailable p { margin: 8px 0 0; line-height: 1.6; font-size: 13px; }
.report-graphs .forecast-visual .graph-canvas svg { min-width: 0; }
.graph-legend-button.series-dashed::before { height: 0; background: transparent; border-top: 2px dashed var(--series-color); border-radius: 0; }
.graph-legend-button.series-band::before { height: 10px; opacity: var(--band-opacity); }
@media (max-width: 1100px) { .forecast-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 650px) {
  .forecast-summary { gap: 8px; }
  .forecast-summary-card { padding: 12px; }
  .forecast-summary-card > span { font-size: 10px; }
  .forecast-summary-card > strong { font-size: 17px; }
  .forecast-summary-card > small { font-size: 10px; }
  .forecast-summary-card[data-summary="range"] > strong { font-size: 13px; }
  .forecast-panel > .graph-controls .graph-control { width: 100%; }
  .forecast-panel > .graph-controls select { width: 100%; }
  .forecast-visual .graph-inspection { align-items: flex-start; flex-direction: column; gap: 5px; }
}
@media print {
  .forecast-panel { break-inside: auto; }
  .forecast-summary, .forecast-visual { break-inside: avoid; }
}
.ratio-trends { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.ratio-trends.ratio-overlay { display: block; }
.kpi-trend { min-width: 0; border: 1px solid var(--line); border-top: 3px solid var(--series-color); border-radius: 7px; padding: 16px; background: white; }
.kpi-trend:first-child { grid-column: 1 / -1; }
.kpi-trend-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 8px; }
.kpi-trend-value { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 5px 10px; }
.kpi-trend-value h4 { grid-column: 1 / -1; margin: 0; font-size: 14px; }
.kpi-trend-value strong { font-size: 26px; letter-spacing: -.6px; }
.kpi-trend-value > span { font-size: 11px; }
.kpi-trend-change { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 11px; }
.kpi-trend-change .metric-delta, .kpi-row-change .metric-delta { font-size: 12px; }
.kpi-trend .graph-inspection { font-size: 11px; min-height: 44px; padding: 9px; }
.report-graphs .kpi-trend .graph-canvas svg { min-width: 0; }
.kpi-unit-group { margin: 20px 0; }
.kpi-unit-group > h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); margin: 0 0 10px; }
.kpi-unit-group[data-unit="percent"] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.kpi-unit-group[data-unit="percent"] > h4, .kpi-unit-group[data-unit="percent"] > .kpi-comparison-row:nth-child(2) { grid-column: 1 / -1; }
.kpi-comparison-row { padding: 16px 0; border-top: 1px solid var(--line); break-inside: avoid; }
.kpi-row-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kpi-row-heading h5 { margin: 0; font-size: 14px; }
.kpi-row-heading button { font-size: 11px; padding: 4px 8px; white-space: nowrap; }
.kpi-row-values { display: flex; flex-wrap: wrap; gap: 12px 36px; margin: 10px 0 8px; }
.kpi-period-value { display: grid; gap: 3px; }
.kpi-period-value > span { font-size: 11px; color: var(--muted); }
.kpi-period-value strong { font-size: 20px; letter-spacing: -.3px; }
.kpi-period-value.prior strong { color: #596e82; font-size: 18px; }
.kpi-row-change { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 11px; }
.kpi-bars { margin-top: 6px; }
.kpi-bars svg { display: block; width: 100%; height: auto; font-family: Arial, sans-serif; }
.kpi-comparison .graph-note { margin-bottom: 6px; }
@media (max-width: 850px) {
  .ratio-trends { grid-template-columns: minmax(0, 1fr); }
  .kpi-unit-group[data-unit="percent"] { grid-template-columns: minmax(0, 1fr); }
  .kpi-trend { padding: 12px; }
  .kpi-trend-header { gap: 6px; }
  .kpi-trend-value { display: flex; flex-direction: column; gap: 4px; }
  .kpi-trend-change { text-align: right; max-width: 46%; }
  .kpi-row-values { gap: 12px 24px; }
  .kpi-period-value strong { font-size: 19px; }
  .kpi-comparison > .graph-controls button { font-size: 11px; }
}
@media print {
  .executive-ratios, .kpi-comparison { break-inside: auto; }
  .kpi-trend, .kpi-comparison-row { break-inside: avoid; }
  .kpi-row-heading button { display: none; }
  .ratio-trends { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.report-context { font-size: 12px; color: var(--muted); margin: 0 0 22px; }
.profitability-review { display: grid; grid-template-columns: minmax(0,1fr); min-width: 0; gap: 18px; }
.profitability-review > * { min-width: 0; }
.profitability-review > .panel { margin: 0; }
.profit-review-controls { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.profit-review-controls > .eyebrow { font-size: 10px; letter-spacing: .8px; }
.profit-measures, .profit-filter-controls, .profit-focus, .profit-analysis-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.profit-measures { margin: 8px 0 16px; }
.profit-measure-button, .profit-focus-button, .profit-analysis-button { background: #f6f8fb; border: 1px solid #d6e1e9; color: #425970; font-size: 12px; border-radius: 5px; padding: 9px 13px; }
.profit-measure-button.active, .profit-focus-button.active, .profit-analysis-button.active { color: #075e52; background: #e6f4ed; border-color: #9fcbbc; }
.profit-filter-controls { align-items: end; gap: 12px; }
.profit-filter-controls > label { display: grid; gap: 6px; font-size: 11px; color: #425970; flex: 1 1 160px; min-width: 0; }
.profit-filter-controls select, .profit-filter-controls input { min-width: 0; width: 100%; min-height: 40px; font-size: 12px; }
.profit-measure-note { font-size: 12px; line-height: 1.6; color: #425970; margin: 12px 0 0; }
.profit-review-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.profit-health-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.profit-health-note { color: #425970; font-size: 11px; line-height: 1.6; margin: 10px 0 18px; }
.profit-cost-guide { margin: 12px 0 16px; padding: 12px 14px; border: 1px solid #d6e1e9; border-left: 3px solid #137f72; border-radius: 5px; background: #f6f9fb; color: #203449; }
.profit-cost-guide > strong { display: block; font-size: 12px; line-height: 1.6; }
.profit-cost-formula { margin: 7px 0; font-size: 12px; font-weight: 600; line-height: 1.6; }
.profit-cost-definition { margin: 0; font-size: 11px; line-height: 1.6; color: #425970; }
.profit-cost-amount { display: grid; gap: 5px; }
.profit-cost-value { color: #203449; white-space: nowrap; font-variant-numeric: tabular-nums; }
.profit-cost-credit { color: #14624e; }
.profit-cost-amount > small { font-size: 10px; line-height: 1.5; white-space: normal; }
.profit-loss-card { grid-column: 1 / -1; }
.profit-loss-card .table-scroll table { min-width: 1000px; table-layout: fixed; }
.profit-loss-card .table-scroll th:first-child { width: 20%; }
.profit-loss-card .table-scroll th:nth-child(2) { width: 10%; }
.profit-loss-card .table-scroll th:nth-child(9) { width: 16%; }
.profit-loss-card .table-scroll th, .profit-loss-card .table-scroll td { padding-left: 8px; padding-right: 8px; }
.profit-loss-card .table-sort { max-width: 100%; white-space: normal; }
.profit-loss-card .table-scroll td { vertical-align: top; padding-top: 6px; padding-bottom: 6px; }
.profit-review-site { display: grid; gap: 3px; padding: 2px 0; }
.profit-review-site > small { color: #425970; font-size: 11px; line-height: 1.35; white-space: normal; }
.profit-review-site .site-evidence-link { white-space: normal; text-align: left; }
.profit-period-pair { display: grid; grid-template-rows: 48px 48px; }
.profit-period-line { display: flex; align-items: center; min-width: 0; padding: 3px 0; }
.profit-period-line + .profit-period-line { border-top: 1px solid #d6e1e9; background: #f6f9fb; }
.profit-review-period { display: grid; gap: 2px; }
.profit-review-period > strong { font-size: 11px; line-height: 1.2; }
.profit-review-period > small { color: #425970; font-size: 10px; line-height: 1.3; }
.profit-completed-caption { display: block; font-weight: 400; }
.profit-ranked-amount { font-weight: 700; }
.profit-loss-controls { display: flex; align-items: end; flex-wrap: wrap; gap: 14px; margin: 16px 0; }
.profit-loss-controls > label { display: grid; gap: 6px; min-width: 170px; font-size: 11px; color: #425970; }
.profit-loss-controls select { margin: 0; }
.profit-loss-show { display: flex; flex-wrap: wrap; gap: 6px; }
.profit-loss-show button[aria-pressed="true"] { background: #e4f2ee; border-color: #08776f; color: #08645d; }
.profit-loss-summary { font-size: 12px; font-weight: 600; line-height: 1.7; color: #203449; }
.profit-explain-button { justify-self: start; font-size: 11px; }
.profit-explain-period { display: grid; gap: 6px; max-width: 360px; font-size: 12px; }
.profit-fytd-trend { display: grid; align-content: center; height: 96px; min-width: 0; cursor: crosshair; border-radius: 3px; }
.profit-fytd-trend:focus-visible { outline: 2px solid #08776f; outline-offset: 2px; }
.profit-fytd-trend > svg { width: 100%; height: 70px; overflow: visible; }
.profit-fytd-readout { display: block; text-align: center; color: #203449; font-size: 10px; line-height: 1.5; font-variant-numeric: tabular-nums; white-space: normal; }
.profit-month-selected > rect:last-child { stroke: #203449; stroke-width: 1; }
.profit-mobile-trend-title { margin: 8px 0 0; font-size: 11px; color: #425970; }
@media(max-width:650px) { .profit-loss-controls > label { flex: 1 1 180px; } .profit-loss-show { width: 100%; } }
.profit-mobile-period { border-top: 1px solid #d6e1e9; padding-top: 12px; margin-top: 12px; }
.profit-mobile-period > h5 { margin: 0 0 12px; font-size: 12px; line-height: 1.7; }
@media(max-width:650px) {
  .profit-loss-card .mobile-row-card { padding: 12px; }
  .profit-loss-card .mobile-row-card h4 { margin-bottom: 6px; }
  .profit-loss-card .mobile-row-card h4 small { margin-top: 3px; line-height: 1.35; }
  .profit-loss-card .mobile-row-card h4 > .site-evidence-link { display: inline-block; min-height: 24px; }
  .profit-loss-card .mobile-row-card > .profit-explain-button { display: inline-flex; align-items: center; min-height: 32px; padding: 6px 0; }
  .profit-loss-card .profit-mobile-period { padding-top: 8px; margin-top: 8px; }
  .profit-loss-card .profit-mobile-period > h5 { margin-bottom: 8px; line-height: 1.5; }
  .profit-loss-card .mobile-row-summary { gap: 6px; margin-bottom: 6px; }
  .profit-loss-card .mobile-row-card > .profit-fytd-trend { max-width: 280px; height: 90px; margin: 0 auto; }
}
.profit-row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.profit-breakdown-button { align-self: start; font-size: 11px; white-space: normal; }
.profit-breakdown { min-width: 0; }
.profit-cost-flow { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 20px 0; }
.profit-cost-step { display: grid; align-content: start; gap: 12px; padding: 16px; border: 1px solid #d6e1e9; border-radius: 7px; background: #fff; }
.profit-cost-step > span:first-child { color: #425970; font-size: 12px; font-weight: 600; line-height: 1.5; }
.profit-cost-step > .profit-value, .profit-cost-step > .profit-negative, .profit-cost-step .profit-cost-value { font-size: clamp(18px,2vw,26px); font-weight: 700; font-variant-numeric: tabular-nums; white-space: normal; overflow-wrap: anywhere; }
.profit-cost-step > .profit-value { color: #14624e; }
.profit-cost-step > small { color: #425970; font-size: 11px; line-height: 1.6; }
.profit-cost-step[data-cost-step="loaded"] { background: #f6f9fb; border-color: #9badba; }
.profit-breakdown-reading { color: #203449; font-size: 13px; line-height: 1.7; }
.profit-central-step { padding: 12px 14px; margin: 16px 0; border: 1px solid #d6e1e9; border-radius: 5px; font-size: 12px; line-height: 1.6; }
.profit-central-step > span { font-weight: 600; }
.profit-central-step p { margin: 5px 0; }
@media(max-width:650px) { .profit-cost-flow { grid-template-columns: minmax(0,1fr); } .profit-cost-step { padding: 14px; gap: 8px; } }
@media(max-width:650px) { .profit-health-summary { grid-template-columns: repeat(2,minmax(0,1fr)); } .profit-health-summary > :first-child { grid-column: 1 / -1; } }
.profit-summary-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; background: #fff; color: #203449; text-align: left; padding: 17px; border: 1px solid var(--line); border-radius: 7px; min-width: 0; }
.profit-summary-card > span { font-size: 11px; color: #425970; }
.profit-summary-card > strong { font-size: clamp(18px,1.8vw,25px); letter-spacing: -.4px; overflow-wrap: anywhere; }
.profit-summary-card > small { font-size: 11px; line-height: 1.5; color: #425970; }
button.profit-summary-card:hover, button.profit-summary-card[aria-pressed="true"] { border-color: #9fcbbc; background: #f0f8f4; }
#advanced-page[data-page="home"] .attention-strip { margin-bottom: 16px; }
#advanced-page[data-page="home"] .profit-health-summary { margin-bottom: 12px; }
#advanced-page[data-page="home"] .profit-health-summary > .profit-summary-card { display: grid; grid-template-columns: auto minmax(0,1fr); column-gap: 12px; row-gap: 2px; padding: 10px 14px; }
#advanced-page[data-page="home"] .profit-health-summary strong { grid-column: 1; grid-row: 1 / 3; align-self: center; font-size: 22px; }
#advanced-page[data-page="home"] .profit-health-summary span, #advanced-page[data-page="home"] .profit-health-summary small { grid-column: 2; }
.profit-sites-panel { padding: 18px; margin: 0; }
.profit-sites-panel h3 { margin-bottom: 7px; }
.profit-site-table .table-scroll { max-height: 67vh; }
.profit-site-table table { min-width: 1250px; }
.profit-site-table th:first-child, .profit-site-table td:first-child { position: sticky; left: 0; z-index: 2; min-width: 225px; max-width: 275px; background: #fff; border-right: 1px solid var(--line); }
.profit-site-table thead th:first-child { z-index: 4; background: #f6f8fb; }
.profit-site-table tbody tr:nth-child(even) > td:first-child { background: #fbfcfd; }
.profit-site-table td { vertical-align: middle; }
.profit-site-table td:nth-child(2) { font-weight: 700; }
.profit-site { display: grid; gap: 5px; }
.priority-site { grid-template-columns: minmax(0,1fr) auto; gap: 3px 8px; min-width: 175px; }
.priority-site > .site-evidence-link:not(.profit-explain-button), .priority-site > small { grid-column: 1 / -1; }
.profit-site-details { font-size: 11px; line-height: 1.5; white-space: normal; color: #425970; }
.profit-site-details > summary { cursor: pointer; color: #08776f; min-height: 24px; padding: 3px 0; }
.profit-site-details[open] { grid-column: 1 / -1; }
.profit-site-details > dl { display: grid; gap: 3px; margin: 6px 0; }
.profit-site-details dt { font-weight: 600; }
.profit-site-details dd { margin: 0 0 5px; overflow-wrap: anywhere; }
.priority-site > .profit-breakdown-button { align-self: start; }
.priority-periods-panel .table-scroll table { table-layout: fixed; min-width: 1280px; }
.priority-periods-panel .table-scroll th:first-child { width: 16%; }
.priority-periods-panel .table-scroll th:nth-child(2) { width: 10%; }
.priority-periods-panel .table-scroll th:nth-child(9) { width: 6%; }
.priority-periods-panel .table-scroll th:nth-child(10) { width: 12%; }
.priority-periods-panel .table-scroll th:nth-child(11) { width: 8%; }
.priority-periods-panel .table-sort { max-width: 100%; white-space: normal; }
.priority-periods-panel .table-scroll th, .priority-periods-panel .table-scroll td { padding-left: 8px; padding-right: 8px; }
.priority-periods-panel .table-scroll td { vertical-align: top; padding-top: 6px; padding-bottom: 6px; }
.profit-priority-checks { white-space: normal; font-size: 10px; line-height: 1.5; color: #425970; }
@media(max-width:650px) {
  .priority-periods-panel .mobile-row-card { padding: 12px; }
  .priority-periods-panel .mobile-row-card > .profit-explain-button { min-height: 32px; padding: 6px 0; }
  .priority-periods-panel .profit-mobile-period { padding-top: 8px; margin-top: 8px; }
  .priority-periods-panel .profit-mobile-period > h5 { margin-bottom: 8px; line-height: 1.5; }
  .priority-periods-panel .mobile-row-summary { gap: 6px; margin-bottom: 6px; }
}
@media(max-width:650px) { .mobile-row-card > .profit-site-details > summary { min-height: 32px; padding: 6px 0; } }
.mobile-row-card h4 small { display: block; margin-top: 4px; color: #425970; font-size: 11px; font-weight: 400; line-height: 1.5; }
.profit-site .site-evidence-link { white-space: normal; text-align: left; font-size: 12px; }
.profit-site small { color: #425970; font-size: 10px; line-height: 1.5; }
.profit-negative { color: #a5382a; }
.profit-value { white-space: nowrap; }
.profit-pace, .profit-source-flag, .profit-month-value, .profit-source-status { display: flex; flex-direction: column; gap: 5px; }
.profit-month-value { min-width: 125px; }
.profit-month-value small { font-size: 10px; }
.profit-pace small { font-size: 10px; }
.profit-status { display: inline-block; font-size: 10px; line-height: 1.5; white-space: normal; padding: 4px 6px; border-radius: 4px; color: #425970; background: #edf1f5; }
.profit-status.status-negative_site, .profit-status.status-negative_loaded { color: #962f24; background: #fbece8; }
.profit-status.status-low_margin, .profit-status.status-watch, .profit-status.status-coverage { color: #795616; background: #fcf3dd; }
.profit-status.status-protect { color: #14624e; background: #e6f3ed; }
.profit-status.verdict-before_overhead { color: #962f24; background: #fbece8; }
.profit-status.verdict-overhead, .profit-status.verdict-partial { color: #795616; background: #fcf3dd; }
.profit-status.verdict-central { color: #2d5578; background: #e8f0f7; }
.profit-status.verdict-covers { color: #14624e; background: #e6f3ed; }
.profit-judgement h4 { margin: 14px 0 2px; font-size: 13px; }
.profit-judgement-group { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 8px 0 14px; }
@media(max-width:900px) { .profit-judgement-group { grid-template-columns: repeat(2,minmax(0,1fr)); } }
.profit-verdict, .profit-breakeven, .profit-months-loss { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.profit-verdict small, .profit-breakeven small, .profit-months-loss small { font-size: 11px; line-height: 1.45; color: #425970; }
.profit-months-loss small.profit-newer { color: #795616; }
.profit-judgement-lines { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; margin-top: 4px; max-width: 100%; }
.profit-judgement-lines small, .profit-judgement-lines .profit-status { max-width: 100%; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.profit-judgement-lines small { font-size: 11px; line-height: 1.45; color: #425970; }
.profit-source-flag { font-size: 10px; min-width: 135px; white-space: normal; }
.profit-coverage-ok { color: #14624e; }
.profit-coverage-review { color: #795616; }
.profit-months { min-width: 132px; }
.profit-months svg { display: block; }
.profit-trend-coverage { display: block; text-align: center; font-size: 10px; color: #425970; }
.profit-analysis-tabs { margin: 12px 0 18px; }
.profit-analysis-slot > .panel { margin: 0; padding: 0; border: 0; box-shadow: none; }
.loss-review { min-width: 0; }
.loss-context { font-weight: 650; color: #203449; overflow-wrap: anywhere; }
.loss-summary { display: grid; gap: 8px; padding: 18px 20px; margin: 12px 0 18px; background: #f8f1e6; border: 1px solid #dac8a7; border-left: 4px solid #9b712c; border-radius: 8px; color: #503c1d; }
.loss-headline { font-size: clamp(18px,2vw,23px); line-height: 1.35; }
.loss-total { color: #8f332a; font-variant-numeric: tabular-nums; }
.loss-note, .loss-shown { font-size: 13px; color: #425970; line-height: 1.5; }
.loss-site-list { list-style: none; margin: 0; padding: 0; }
.loss-site-row { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(320px,1fr); gap: 22px; padding: 18px 16px; border-bottom: 1px solid #dce5e9; border-left: 3px solid transparent; }
.loss-site-row.loss-core { background: #fcf8f0; border-left-color: #9b712c; }
.loss-site-identity { display: grid; grid-template-columns: 26px minmax(0,1fr); gap: 7px 8px; align-content: start; min-width: 0; }
.loss-rank { grid-row: 1 / span 4; color: #52677c; font-variant-numeric: tabular-nums; }
.loss-site-link { justify-self: start; text-align: left; white-space: normal; overflow-wrap: anywhere; line-height: 1.4; }
.loss-site-code, .loss-stage, .loss-amount-track, .loss-history-link { grid-column: 2; }
.loss-site-code { color: #52677c; }
.loss-stage { font-size: 12px; font-weight: 600; color: #425970; }
.loss-stage-site, .loss-stage-direct { color: #9c3d32; }
.loss-stage-unavailable { color: #735517; }
.loss-amount-track { height: 7px; background: #e9edf0; border-radius: 3px; overflow: hidden; }
.loss-amount-bar { display: block; height: 100%; background: #8b6863; }
.loss-core .loss-amount-bar { background: #a53d33; }
.loss-history-link { justify-self: start; margin-top: 3px; }
.loss-site-numbers { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 10px; align-content: start; min-width: 0; }
.loss-number { display: grid; gap: 5px; min-width: 0; font-variant-numeric: tabular-nums; }
.loss-number small { color: #52677c; font-size: 11px; }
.loss-number strong { font-size: 14px; overflow-wrap: anywhere; }
.loss-number:first-child strong { color: #a53d33; }
.loss-cumulative-track { grid-column: 1 / -1; position: relative; height: 7px; background: #e9edf0; margin-top: 7px; border-radius: 3px; }
.loss-cumulative-fill { display: block; height: 100%; background: #567b8d; border-radius: 3px; }
.loss-80-marker { position: absolute; left: 80%; top: -4px; height: 15px; border-left: 2px solid #805f23; }
.loss-threshold { grid-column: 1 / -1; font-size: 12px; color: #735517; }
.loss-remainder { margin-top: 16px; border: 1px solid #dce5e9; border-radius: 7px; }
.loss-remainder > summary { padding: 14px 16px; font-weight: 650; cursor: pointer; color: #203449; overflow-wrap: anywhere; }
.loss-remainder > .loss-note { padding: 0 16px; }
@media (max-width: 850px) {
  .loss-site-row { grid-template-columns: minmax(0,1fr); gap: 14px; padding: 16px 10px; }
  .loss-site-numbers { padding-left: 34px; }
  .loss-summary { padding: 14px; }
  .loss-number strong { font-size: 12px; }
}
@media print {
  .loss-site-row { break-inside: avoid; print-color-adjust: exact; }
  .loss-review .graph-controls, .loss-history-link { display: none; }
}
.profit-rank-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; align-items: start; }
.profit-rank-scale-note { color: #425970; font-size: 11px; line-height: 1.6; }
.profit-rank-card { min-width: 0; padding: 16px; margin: 0; border-top: 3px solid #137f72; }
.profit-rank-card[data-rank-group="losses"] { border-top-color: #ba493c; }
.profit-rank-card h3 { font-size: 16px; }
.profit-rank-count, .profit-rank-total, .profit-rank-scroll-hint { color: #425970; font-size: 11px; line-height: 1.6; margin: 8px 0; }
.profit-rank-total { font-weight: 600; }
.profit-rank-axis { position: sticky; top: 0; z-index: 1; background: #fff; color: #425970; font-size: 10px; border-bottom: 1px solid #d6e1e9; padding: 8px 8px 8px 40px; }
.profit-rank-ticks { position: relative; height: 18px; }
.profit-rank-ticks > span { position: absolute; top: 0; white-space: nowrap; }
.profit-ranking { max-height: 440px; overflow-y: auto; overflow-x: hidden; overscroll-behavior-y: auto; scrollbar-gutter: stable; scrollbar-width: auto; scrollbar-color: #91a6b4 #f1f5f8; }
.profit-ranking::-webkit-scrollbar { width: 10px; }
.profit-ranking::-webkit-scrollbar-track { background: #f1f5f8; }
.profit-ranking::-webkit-scrollbar-thumb { background: #91a6b4; border: 2px solid #f1f5f8; border-radius: 8px; }
.profit-ranking:focus-visible { outline: 2px solid #137f72; outline-offset: 2px; }
.profit-rank-row { width: 100%; display: grid; grid-template-columns: 24px minmax(0,1fr) auto; column-gap: 8px; row-gap: 6px; align-items: start; padding: 13px 8px; margin: 0; border: 0; border-bottom: 1px solid #e5edf2; border-radius: 0; background: #fff; color: #203449; text-align: left; white-space: normal; }
.profit-rank-row:hover { background: #f1f7f5; }
.profit-rank-row:focus-visible { outline: 2px solid #137f72; outline-offset: -2px; }
.profit-rank-number { color: #617587; font-size: 10px; padding-top: 2px; }
.profit-rank-name { font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.profit-rank-amount { font-size: 12px; line-height: 1.5; white-space: nowrap; font-variant-numeric: tabular-nums; color: #14624e; }
.profit-rank-card[data-rank-group="losses"] .profit-rank-amount { color: #a5382a; }
.profit-rank-detail { grid-column: 2 / -1; font-size: 10px; line-height: 1.5; color: #425970; }
.profit-rank-track { grid-column: 2 / -1; height: 9px; border-radius: 2px; background: #edf1f5; overflow: hidden; }
.profit-rank-bar { display: block; height: 100%; background: #137f72; }
.profit-rank-card[data-rank-group="losses"] .profit-rank-bar { background: #ba493c; }
.cockpit-site-picker { background: #f6f8fb; border: 1px solid #d6e1e9; border-radius: 8px; padding: 16px; margin-bottom: 12px; }
.cockpit-site-search-fields { display: grid; grid-template-columns: minmax(180px,1fr) minmax(240px,1.5fr) auto; gap: 14px; align-items: end; }
.cockpit-site-search-fields > div { min-width: 0; }
.cockpit-site-search-fields label { display: block; font-size: 12px; color: #425970; margin-bottom: 6px; }
.cockpit-site-search-fields input, .cockpit-site-search-fields select { width: 100%; max-width: 100%; min-width: 0; }
.cockpit-site-search-count { color: #425970; font-size: 11px; line-height: 1.6; margin: 9px 0 0; }
.profit-reconciliation > summary { margin-top: 12px; font-size: 12px; color: #315a70; }
.profit-reconciliation[open] > div { margin-top: 14px; }
.profit-total { font-weight: 700; }
@media (max-width: 850px) {
  .cockpit-site-search-fields { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .cockpit-site-search-fields > button { justify-self: start; }
  .profit-review-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .profit-summary-card { padding: 13px; }
  .profit-review-controls { padding: 14px; }
  .profit-filter-controls > label { flex-basis: calc(50% - 6px); }
  .profit-filter-controls > label:last-child { flex-basis: 100%; }
  .profit-focus-button, .profit-analysis-button { font-size: 11px; padding: 8px 9px; }
  .profit-site-table .table-row-cards { max-height: none; }
  .profit-rank-grid { grid-template-columns: minmax(0,1fr); }
  .profit-ranking { max-height: min(440px,60vh); }
  .profit-rank-row { grid-template-columns: 20px minmax(0,1fr); }
  .profit-rank-axis { padding-left: 36px; }
  .profit-rank-amount { grid-column: 2; }
  .profit-rank-card { padding: 13px; }
  .profit-site-table .mobile-row-card h4 { display: flex; flex-direction: column; gap: 5px; }
  .profit-site-table .mobile-row-card h4 small { font-size: 10px; color: #425970; font-weight: 400; }
  .profit-site-table .mobile-row-card > .profit-months { margin: 10px 0 14px; }
  .profit-site-table .mobile-row-card .profit-trend-coverage { text-align: left; }
  .profit-site-table .mobile-row-card .profit-source-status { font-size: 10px; }
  .profit-site-table .mobile-row-card .profit-status { align-self: flex-start; }
}
@media print {
  .cockpit-site-picker { display: none !important; }
  .profit-review-controls, .profit-focus, .profit-analysis-tabs { display: none !important; }
  .profit-review-summary { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .profit-summary-card { break-inside: avoid; }
  .profit-sites-panel, .profitability-review > .panel { break-inside: auto; }
  .profit-site-table .table-scroll { max-height: none; }
  .profit-site-table table { min-width: 0; font-size: 8px; }
  .profit-site-table th:first-child, .profit-site-table td:first-child { position: static; min-width: 120px; }
  .profit-ranking { max-height: none; overflow: visible; scrollbar-gutter: auto; }
  .profit-rank-grid { display: block; }
  .profit-rank-card { margin-bottom: 18px; break-inside: auto; }
  .profit-ranking button.profit-rank-row { display: grid !important; break-inside: avoid; print-color-adjust: exact; }
  .profit-rank-axis { position: static; }
  .profit-rank-scroll-hint { display: none; }
}
.report-context > summary { padding: 12px 16px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.report-context[open] > .panel { margin-top: 12px; }
.report-section-tools { padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: 8px; margin: 0 0 18px; }
.report-section-tools > .eyebrow { font-size: 10px; letter-spacing: .8px; display: block; margin-bottom: 10px; }
.report-section-tools > select { display: none; }
.report-section-tabs { display: flex; flex-wrap: wrap; gap: 7px; }
.section-button { background: #f6f8fb; border: 1px solid #e3eaf0; border-radius: 5px; color: #526779; font-size: 12px; font-weight: 500; padding: 8px 12px; }
.section-button.active { background: #eaf5f1; border-color: #b9d9cc; color: #086d60; }
.section-count { display: inline-block; margin-left: 8px; padding: 0 4px; border-radius: 3px; background: #e9eef3; color: #425970; font-size: 10px; }
.section-button.active .section-count { background: #d4eadd; color: #315942; }
.screen-directory { margin-top: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.directory-item { padding: 12px 0; }
.directory-item p { font-size: 12px; margin: 4px 0 0; }
@media (min-width: 1900px) { body:not(.entry-mode) main { max-width: 1650px; margin-right: auto; } }
@media (max-width: 1250px) { body:not(.entry-mode) { --sidebar-width: 225px; } body:not(.entry-mode) main { padding: 22px; } .attention-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .attention-item:nth-child(2) { border-right: 0; } .attention-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); } .header-context { display: none; } }
@media (max-width: 1050px) {
  .report-graphs { grid-template-columns: minmax(0, 1fr); }
  body:not(.entry-mode) main { margin-left: 0; }
  body:not(.entry-mode) .navigation-toggle { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; font-size: 19px; }
  .workspace-sidebar { transform: translateX(-100%); width: 280px; z-index: 31; transition: transform .18s ease; overscroll-behavior: contain; }
  .navigation-open .workspace-sidebar { transform: translateX(0); }
  .navigation-open { overflow: hidden; }
  .sidebar-heading button { display: block; font-size: 22px; line-height: 1; padding: 5px 9px; }
  body:not(.entry-mode) .header-actions #account-security { display: none; }
  .mobile-review-tools:has([data-review-control="account-security"]) { display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 5px; }
  .mobile-review-tools > [data-review-control="account-security"] { display: inline-flex; }
}
@media (max-width: 900px) {
  body:not(.entry-mode) .header-search { width: 40px; height: 40px; margin-right: 0; padding: 0; border-color: #708a9a; background: transparent; }
  .header-search input, .header-search kbd { display: none; }
  body:not(.entry-mode) .header-search #find-review { width: 38px; height: 38px; color: #fff; }
  .header-search #find-review:hover { background: #ffffff15; }
}
@media (max-width: 650px) {
  body:not(.entry-mode) .site-header { padding: 12px 14px; gap: 10px; height: 72px; }
  body:not(.entry-mode) .site-header h1 { font-size: 14px; letter-spacing: -.3px; }
  body:not(.entry-mode) .site-header p { font-size: 9px; }
  body:not(.entry-mode) .brand { gap: 8px; }
  body:not(.entry-mode) .brand-mark { width: 28px; height: 28px; }
  body:not(.entry-mode) .header-actions { gap: 4px; }
  body:not(.entry-mode) .header-actions button { padding: 7px; font-size: 10px; }
  body:not(.entry-mode) .header-actions button:not(#logout):not(#find-review) { display: none; }
  body:not(.entry-mode) main { padding: 16px 14px 36px; }
  .workspace-tools { align-items: flex-start; flex-direction: row; gap: 5px; margin-bottom: 14px; min-height: 32px; }
  #review-location { gap: 6px; min-width: 0; flex-wrap: wrap; font-size: 10px; padding-top: 8px; }
  .review-tools { width: auto; padding-right: 110px; flex-wrap: nowrap; gap: 4px; }
  .review-tools button { padding: 7px; font-size: 10px; }
  #save-review-shortcut, #print-review { display: none; }
  .mobile-review-tools > button { display: inline-flex; }
  .review-options > summary { padding: 7px 9px; font-size: 10px; }
  .review-options .review-display { top: 36px; }
  .mobile-review-tools { display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 5px; }
  #page-title { font-size: 23px; }
  .review-description { font-size: 12px; }
  .data-freshness { margin-bottom: 14px; padding: 8px 10px; }
  .freshness-summary { gap: 7px; flex-wrap: wrap; font-size: 10px; }
  .filters { padding: 12px; gap: 10px; }
  .filters > div { width: calc(50% - 5px); }
  .filters select { min-width: 0; width: 100%; font-size: 12px; padding: 8px 24px 8px 8px; min-height: 40px; }
  .section-index { padding: 3px 0 10px; gap: 3px; }
  .section-index-label { display: none; }
  .section-index a { font-size: 10px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tiles[data-count="5"], .tiles[data-count="6"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { padding: 14px 12px; }
  .tile label { font-size: 10px; }
  .amount { font-size: 21px; letter-spacing: -.6px; }
  .attention-strip { margin-bottom: 18px; }
  .attention-item { padding: 12px 10px; gap: 8px; }
  .attention-count { min-width: 30px; height: 34px; font-size: 16px; }
  .attention-label strong { font-size: 10px; }
  .attention-label small { font-size: 9px; }
  .attention-arrow { display: none; }
  .decision-grid, .screen-directory { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .panel { padding: 16px; border-radius: 8px; }
  .panel > .muted { font-size: 11px; }
  .report-section-tabs { display: none; }
  .report-graphs .graph-canvas svg { min-width: 640px; }
  .report-section-tools > select { display: block; width: 100%; min-width: 0; }
  .table-scroll td:first-child, .table-scroll th:first-child { max-width: 135px; }
  .table-sort { font-size: 10px; }
  .table-scroll { max-height: 60vh; }
  .toolbar > button { max-width: 100%; white-space: normal; }
}
@media (max-width: 380px) {
  body:not(.entry-mode) .brand-mark, body:not(.entry-mode) .site-header p { display: none; }
  body:not(.entry-mode) .site-header h1 { max-width: 120px; line-height: 1.25; }
}
.turnover-context { margin: 12px 0; color: #425970; font-size: 12px; }
.turnover-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0 18px; }
.turnover-summary-card { display: grid; align-content: start; gap: 7px; padding: 14px 16px; border: 1px solid #d6e1e9; border-top: 3px solid #137f72; border-radius: 6px; background: #f7fafb; min-width: 0; }
.turnover-summary-card[data-summary="expected"] { border-top-color: #40558f; }
.turnover-summary-card[data-summary="gap"] { border-top-color: #536c78; }
.turnover-summary-card > span { font-size: 12px; color: #425970; }
.turnover-summary-card > strong { font-size: 23px; font-variant-numeric: tabular-nums; letter-spacing: -.4px; overflow-wrap: break-word; }
.turnover-summary-card > small { font-size: 11px; color: #425970; line-height: 1.5; }
.turnover-summary-card.below-expected > strong { color: #a44632; }
.turnover-summary-card.above-expected > strong { color: #08685d; }
.turnover-variance-title { margin: 16px 0 5px; font-size: 13px; }
.turnover-variance-note, .turnover-footnote { font-size: 11px; color: #425970; line-height: 1.6; margin: 5px 0 8px; }
.report-graphs .turnover-comparison .graph-canvas svg { min-width: 0; min-height: 0; }
.turnover-inspection { border-left: 3px solid #536c78; }
@media (max-width: 650px) {
  .turnover-summary { gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .turnover-summary-card { padding: 10px; }
  .turnover-summary-card > strong { font-size: 18px; }
  .turnover-summary-card[data-summary="gap"] { grid-column: 1 / -1; }
  .turnover-comparison .graph-controls > button { font-size: 11px; padding: 8px 10px; }
}
@media print { .turnover-summary, .turnover-charts { break-inside: avoid; } }
@media (prefers-reduced-motion: reduce) { .workspace-sidebar, #analysis-nav summary::after { transition: none; } }
@media print {
  body:not(.entry-mode) main { margin: 0 !important; max-width: none; padding: 0 !important; }
  .workspace-sidebar, .navigation-toggle, .navigation-backdrop, .review-options, .active-filters, .section-index, .report-section-tools, .preview-options { display: none !important; }
  body:not(.entry-mode) .site-header { position: static; background: white; color: #203449; box-shadow: none; padding: 8px 0; }
  .attention-strip { break-inside: avoid; }
  .attention-item { color: #203449; }
  .panel, .tile { box-shadow: none; }
  .report-graphs { display: block; }
  .report-graphs > .panel { margin-bottom: 18px; }
  .report-related, .report-downloads { display: none !important; }
}
/* Shared results-first review presentation. Exact values remain in evidence. */
.review-update-notice { padding: 10px 14px; border: 1px solid #c9dbed; border-radius: 6px; background: #edf4fb; color: #284963; font-size: 12px; }
.summary-amount { white-space: nowrap; font-variant-numeric: tabular-nums; }
.related-reviews { margin: 12px 0; font-size: 12px; }
.related-reviews .review-links { margin-top: 10px; }
.section-jump { border: 0; margin: 0; padding: 0; position: relative; }
.section-jump > summary { font-size: 12px; color: #476276; }
.section-jump-links { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; }
.chart-options { margin: 8px 0 12px; padding: 6px 0; border: 0; font-size: 11px; color: #526779; }
.chart-options .graph-controls { margin-top: 12px; }
.review-calculation { margin: 12px 0; font-size: 12px; }
.home-outlook .tiles { grid-template-columns: repeat(3,minmax(0,1fr)); }
.home-outlook .tile { background: #f5faf9; border-color: #dae9e5; }
.outlook-calculation, .profit-loss-explanation { margin-top: 12px; font-size: 12px; }
.shortfall-review .tiles[data-count="2"] { grid-template-columns: repeat(2,minmax(0,1fr)); }
.shortfall-calculation, .shortfall-options { margin: 12px 0; font-size: 12px; }
.profit-loss-card > .review-context { margin: 8px 0 12px; font-size: 12px; font-weight: 550; color: #405c70; }
.profit-loss-card .profit-health-summary { margin: 12px 0; }
.attention-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
@media (min-width: 1051px) {
  #workspace .filters { display: flex; align-items: center; gap: 16px; padding: 9px 14px; margin-bottom: 12px; }
  #workspace .filters > div { display: flex; align-items: center; gap: 8px; margin: 0; }
  #workspace .filters label { margin: 0; }
  #workspace .filters select { min-width: 125px; padding: 5px 8px; font-size: 12px; }
  #workspace .top-line { margin-bottom: 8px; }
  #workspace .data-freshness { margin-bottom: 10px; }
  #workspace .section-index { margin: 0; padding-bottom: 8px; }
  #workspace .tile { padding: 15px 17px; }
  #workspace .tiles .amount { white-space: nowrap; font-size: clamp(20px,2vw,27px); }
  #workspace .panel { padding: 18px; }
}
@media (max-width: 700px) {
  .home-outlook .tiles { grid-template-columns: 1fr; }
  .attention-strip { grid-template-columns: 1fr; }
  .section-jump-links { flex-direction: column; }
  .chart-options summary { line-height: 1.6; }
}
.patterns-context { color:#425970; font-size:12px; line-height:1.65; margin:12px 0 20px; }
.patterns-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.pattern-card { margin:0; min-width:0; display:flex; flex-direction:column; align-items:stretch; }
.pattern-card > h3 { margin:12px 0 8px; font-size:17px; line-height:1.4; }
.pattern-status { align-self:flex-start; font-size:11px; font-weight:600; color:#425970; background:#eef3f7; padding:5px 9px; border-radius:4px; }
.pattern-status[data-status=flag] { color:#933a2a; background:#fff0ec; }
.pattern-status[data-status=watch] { color:#795c17; background:#fff6df; }
.pattern-finding { color:#203449; font-size:14px; line-height:1.6; margin:0 0 8px; font-weight:600; }
.pattern-interpretation { color:#425970; font-size:12px; line-height:1.65; margin:0 0 12px; }
.pattern-card > .panel { border:0; box-shadow:none; padding:0; margin:8px 0 14px; background:transparent; }
.pattern-card > .panel h3 { font-size:12px; }
.pattern-card .graph-canvas svg { min-width:280px; }
.pattern-card .graph-inspection { font-size:11px; }
.pattern-evidence { border-top:1px solid #e6edf2; padding-top:10px; font-size:12px; line-height:1.6; }
.pattern-evidence > summary { cursor:pointer; color:#08776f; padding:4px 0; }
.pattern-evidence > .table-evidence { margin:12px 0; }
.pattern-card > .screen-link { margin-top:auto; padding-top:14px; font-size:12px; align-self:flex-start; }
@media(max-width:1050px) { .patterns-grid { grid-template-columns:minmax(0,1fr); } }
@media print { .patterns-grid { display:block; } .pattern-card { display:block; break-inside:avoid; margin-bottom:18px; } }

#analysis-nav > a[data-screen="actions"]::before { mask-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"%3E%3Crect x="5" y="4" width="14" height="17" rx="2"/%3E%3Cpath d="M9 4V2h6v2M8 12l2 2 5-5M8 18h8"/%3E%3C/svg%3E'); }
/* The site overview keeps source periods and scope visible on every screen size. */
.home-site-controls { min-width:240px; flex:1 1 320px; max-width:520px; }
.home-site-controls > label { display:grid; gap:6px; }
.home-site-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:24px; border:1px solid #cfdfdc; border-radius:12px; background:linear-gradient(110deg,#edf7f4,#fff); }
.home-site-heading h2 { margin:6px 0; font-size:1.5rem; }
.home-site-heading p { margin:8px 0 0; }
.home-site-heading button { flex-shrink:0; }
.home-site-kicker { font-size:.75rem; font-weight:700; letter-spacing:.09em; color:#266c61; }
.home-site-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.home-site-grid > * { min-width:0; margin:0; }
.home-site-grid .tiles { grid-template-columns:repeat(2,minmax(0,1fr)); }
.home-site-source { color:#46605c; font-size:.88rem; margin:4px 0 16px; }
.home-site-conclusion { border-left:3px solid #298575; padding:8px 14px; background:#f1f7f5; }
.home-site-overview > * { min-width:0; }
.home-site-overview { display:grid; gap:20px; }
.home-site-overview > .panel { margin:0; }
@media(max-width:760px) {
  .home-site-controls { max-width:none; min-width:0; width:100%; flex-basis:100%; }
  .home-site-heading { flex-direction:column; align-items:flex-start; padding:18px; gap:14px; }
  .home-site-heading h2 { overflow-wrap:anywhere; }
  .home-site-grid { grid-template-columns:minmax(0,1fr); }
}

/* Home: Start here question cards and the open follow-ups list */
.start-here .start-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(230px, 1fr)); gap:12px; margin-top:10px; }
.start-card { border:1px solid var(--line); border-radius:8px; padding:14px 16px; background:white; display:flex; flex-direction:column; gap:6px; }
.start-card h4 { margin:0; font-size:1rem; }
.start-card p { margin:0; }
.start-links { display:flex; flex-wrap:wrap; gap:6px 12px; margin-top:auto; padding-top:6px; }
.start-link { color:var(--teal); font-weight:500; }
.start-link.primary { font-weight:700; }
.start-fold > summary { cursor:pointer; color:var(--teal); font-weight:600; padding:6px 0; }
@media (min-width: 701px) { .start-fold > summary { display:none; } }
/* Sidebar: rarely used screens one click away under More */
.nav-more { margin-top:4px; border-top:1px solid var(--line); padding-top:4px; }
.nav-more > summary { cursor:pointer; padding:10px 12px; color:var(--muted); border-radius:5px; }
.nav-more > summary:hover { background:#edf6f3; color:var(--teal); }
.nav-more a { padding-left:22px !important; }
/* Long explanations keep their first sentence in view; the rest is one click away */
.note-toggle { background:none; border:0; padding:0 2px; color:var(--teal); font:inherit; font-weight:600; cursor:pointer; text-decoration:underline; }
.note-toggle:focus-visible { outline:2px solid var(--teal); outline-offset:2px; }
abbr[title] { text-decoration:underline dotted; text-underline-offset:2px; cursor:help; }
@media print { .note-rest[hidden] { display:inline !important; content-visibility:visible !important; } .note-toggle { display:none; } .nav-more { display:none; } }
/* The regional sheet's headings carry their periods: they wrap, so more of its columns fit across the screen */
.regional-sheet table th { white-space:normal; min-width:6.5rem; max-width:10.5rem; vertical-align:bottom; line-height:1.3; }
/* A manager's sign-in: the region in the header at every width, and headings that carry their periods */
.manager-region { font-size:12px; font-weight:650; padding:5px 11px; border-radius:999px; background:rgba(255,255,255,.14); color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:16rem; }
.manager-region[hidden] { display:none; }
.manager-view table th { white-space:normal; min-width:5rem; max-width:9rem; vertical-align:bottom; line-height:1.3; }
/* The words under a table are sentences: they wrap, so every one can be read without scrolling sideways */
.manager-words table td { white-space:normal; line-height:1.45; vertical-align:top; }
.manager-words table td:first-child { min-width:11rem; max-width:18rem; font-weight:600; }
.manager-count { font-weight:650; }
@media (max-width: 700px) { .manager-region { font-size:10px; padding:4px 7px; max-width:6.5rem; } .manager-region-label { display:none; } }
/* Your region is three columns: on a phone each measure is read in full, on as many lines as it needs */
@media (max-width: 700px) { .manager-glance .table-scroll td:first-child { white-space:normal; overflow:visible; text-overflow:clip; max-width:11rem; line-height:1.35; } .manager-glance .table-scroll td:last-child { white-space:normal; min-width:7rem; } body:not(.entry-mode) .site-header:has(.manager-region:not([hidden])) .brand p { display:none; } }

.saved-view-link, .saved-view-manage { display: block; width: 100%; text-align: left; border: 0; background: transparent; font-size: 12px; color: #38556b; padding: 8px 12px; overflow-wrap: anywhere; }
.saved-view-link:hover { background: #edf6f3; }
.saved-view-manage { font-size: 11px; color: #08776f; }
.saved-view-row { display: flex; gap: 8px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.saved-view-row > button:first-child { margin-right: auto; text-align: left; }
.review-status { background: #edf6f3; border: 1px solid #c5ddd3; padding: 10px 14px; color: #215e4e; border-radius: 6px; font-size: 12px; }
.review-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 20px; }
.review-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.review-card-grid > .empty-state { grid-column: 1/-1; }
.decision-card { padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #fbfdff; }
.decision-card h4 { font-size: 15px; margin: 12px 0 8px; }
.decision-card p { font-size: 12px; line-height: 1.6; }
.decision-metric { font-weight: 650; color: #203449; }
.status-pill { display: inline-flex; padding: 4px 8px; background: #e7f1ed; color: #205f51; border-radius: 4px; font-size: 10px; font-weight: 650; }
.cockpit-section > .panel { margin-bottom: 18px; }
.cockpit-staff-metrics { margin: 16px 0; }
.cockpit-identity { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 16px 0; }
.cockpit-identity h3 { margin: 0 0 6px; font-size: 21px; }
.cockpit-identity p { margin: 0; font-size: 12px; }
.cockpit-site-tools { flex: 0 0 auto; position: relative; font-size: 12px; }
.cockpit-site-tools > summary { cursor: pointer; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; background: white; }
.cockpit-site-tools > .toolbar { position: absolute; right: 0; top: 38px; z-index: 5; width: min(360px,80vw); padding: 12px; background: white; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 5px 18px #20344918; }
.cockpit-headlines { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.cockpit-role-label { font-size: 20px; margin: 12px 0 18px; }
.cockpit-role-proportions, .cockpit-role-endpoints { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: #425970; }
.cockpit-role-proportions { margin: 18px 0 10px; }
.cockpit-role-proportions > div { min-width: 0; }
.cockpit-role-proportions span { display: block; font-size: 10px; line-height: 1.5; }
.cockpit-role-proportions strong { display: block; font-size: 24px; color: #203449; margin-top: 4px; font-variant-numeric: tabular-nums; }
.cockpit-role-scale { position: relative; height: 12px; margin: 15px 4px 0; border-radius: 6px; background: linear-gradient(90deg,#137f72 0%,#137f72 40%,#bcced5 40%,#bcced5 60%,#4567a3 60%,#4567a3 100%); }
.cockpit-role-scale::before, .cockpit-role-scale::after { content: ""; position: absolute; height: 12px; top: 0; width: 2px; background: white; }
.cockpit-role-scale::before { left: 40%; }.cockpit-role-scale::after { left: 60%; }
.cockpit-role-marker { position: absolute; top: -5px; width: 6px; height: 22px; background: #203449; border: 2px solid white; border-radius: 4px; transform: translateX(-50%); box-shadow: 0 0 0 1px #203449; }
.cockpit-role-endpoints { margin-top: 12px; font-size: 10px; }
.cockpit-profile-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin: 16px 0; }
.cockpit-profile-card { min-width: 0; padding: 18px; border: 1px solid #d8e3ea; border-top: 3px solid #607a85; border-radius: 8px; background: #fbfdff; }
.cockpit-profile-role { border-top-color: #137f72; }.cockpit-profile-size { border-top-color: #4567a3; }
.cockpit-profile-kicker { display: block; font-size: 11px; color: #425970; margin-bottom: 9px; }
.cockpit-profile-card h4 { font-size: 18px; line-height: 1.4; margin: 0 0 18px; color: #203449; }
.cockpit-profile-card p { font-size: 12px; line-height: 1.6; }
.cockpit-profile-note { display: block; font-size: 11px; color: #425970; line-height: 1.6; margin: 9px 0 0; overflow-wrap: anywhere; }
.cockpit-profile-card .notice { margin: 12px 0; }
.cockpit-discipline { display: inline-block; border: 1px solid #ccddd9; background: #edf5f3; color: #205f51; font-size: 12px; font-weight: 600; padding: 7px 10px; border-radius: 5px; margin-bottom: 8px; }
.cockpit-size-value { margin: 0 0 16px; }.cockpit-size-value strong { display: block; font-size: 30px; font-variant-numeric: tabular-nums; color: #203449; line-height: 1.2; }
.cockpit-size-value > span { display: block; font-size: 11px; color: #425970; margin-top: 5px; line-height: 1.5; }
.cockpit-size-bands { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 3px; }
.cockpit-size-band { border: 1px solid #d8e3ea; border-bottom: 4px solid #d8e3ea; border-radius: 3px; background: white; text-align: center; padding: 8px 3px; min-width: 0; }
.cockpit-size-band strong { display: block; font-size: 10px; color: #425970; }.cockpit-size-band small { display: block; font-size: 9px; line-height: 1.5; margin-top: 5px; color: #425970; overflow-wrap: anywhere; }
.cockpit-size-band.selected { background: #e9eff9; border-color: #4567a3; }.cockpit-size-band.selected strong, .cockpit-size-band.selected small { color: #29497e; }
.cockpit-size-band.selected strong::before { content: "● "; }
.cockpit-category-trend { padding: 18px; border: 1px solid #d8e3ea; background: #f7fafc; border-radius: 8px; margin: 16px 0; }
.cockpit-trend-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.cockpit-trend-heading h4 { font-size: 15px; margin: 0; }.cockpit-trend-change { padding: 6px 9px; background: #e8eff5; border: 1px solid #ccd9e4; color: #315369; border-radius: 5px; font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.cockpit-trend-row { display: grid; grid-template-columns: minmax(150px,.8fr) minmax(0,2fr) minmax(65px,auto); gap: 18px; align-items: center; margin: 12px 0; }
.cockpit-trend-period span { display: block; color: #203449; font-size: 12px; }.cockpit-trend-period small { display: block; color: #425970; font-size: 10px; line-height: 1.5; margin-top: 4px; }
.cockpit-trend-row > strong { font-size: 16px; font-variant-numeric: tabular-nums; text-align: right; }
.cockpit-trend-track { height: 16px; background: #e5ecf1; border-radius: 3px; border-left: 1px solid #607a85; overflow: hidden; }
.cockpit-trend-bar { display: block; height: 100%; background: #8092aa; border-radius: 0 3px 3px 0; }.cockpit-trend-bar.recent { background: #4567a3; }
@media(max-width:1100px) { .cockpit-profile-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.cockpit-profile-size { grid-column: 1/-1; }.cockpit-profile-size .cockpit-size-bands { max-width: 520px; } }
@media(max-width:650px) {
  .cockpit-profile-grid { grid-template-columns: minmax(0,1fr); gap: 10px; }.cockpit-profile-size { grid-column: auto; }
  .cockpit-profile-card, .cockpit-category-trend { padding: 14px; }.cockpit-profile-card h4 { font-size: 17px; }
  .cockpit-trend-row { grid-template-columns: minmax(0,1fr) auto; gap: 8px; margin: 18px 0; }.cockpit-trend-track { grid-column: 1/-1; grid-row: 2; }
  .cockpit-trend-heading { align-items: flex-start; }.cockpit-trend-change { font-size: 12px; }.cockpit-size-band small { font-size: 9px; }
}
@media print { .cockpit-profile-card, .cockpit-category-trend { break-inside: avoid; }.cockpit-role-scale, .cockpit-size-band, .cockpit-trend-track { print-color-adjust: exact; }.cockpit-size-band.selected { border-width: 2px; }.cockpit-trend-bar { print-color-adjust: exact; } }
.cockpit-role .toolbar { margin-top: 18px; }
.cockpit-perspectives { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin: 18px 0; }
.cockpit-perspective { margin: 0; min-width: 0; }
.cockpit-perspective[data-emphasis="primary"] { border-top: 3px solid #137f72; }
.cockpit-perspectives-note { grid-column: 1/-1; font-size: 12px; line-height: 1.6; color: #425970; margin: 0; }
@media(max-width:700px) { .cockpit-perspectives { grid-template-columns: minmax(0,1fr); } .cockpit-role-proportions { font-size: 11px; } .cockpit-role .cockpit-flow-summary { grid-template-columns: minmax(0,1fr); } }
.cockpit-headline { display: flex; flex-direction: column; gap: 7px; padding: 18px 20px; background: white; border: 1px solid var(--line); border-radius: 8px; min-width: 0; }
.cockpit-headline > span { color: #425970; font-size: 12px; }
.cockpit-headline > strong { font-size: clamp(22px,2.2vw,32px); letter-spacing: -.6px; font-variant-numeric: tabular-nums; }
.cockpit-headline > small { font-size: 11px; line-height: 1.5; }
.cockpit-conclusion { padding: 10px 14px; margin: 12px 0 0; color: #315369; border-left: 3px solid #137f72; background: #edf5f4; font-size: 12px; line-height: 1.6; border-radius: 0 5px 5px 0; }
.cockpit-tabs { gap: 6px; margin: 14px 0; }
.cockpit-tabs > button { padding: 10px 14px; }
.cockpit-financial table { min-width: 780px; width: 100%; table-layout: fixed; font-size: 12px; }
.cockpit-financial table th { white-space: normal; font-size: 10px; line-height: 1.5; padding: 12px 10px; position: static; }
.cockpit-financial table td { text-align: right; padding: 14px 10px; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 12px; }
.cockpit-financial table th:first-child { width: 155px; text-align: left; }
.cockpit-financial table th:not(:first-child) { text-align: right; }
.cockpit-financial table tbody th { font-size: 12px; font-weight: 400; text-transform: none; background: transparent; }
.cockpit-financial table small { display: block; font-size: 10px; color: #425970; margin-top: 5px; font-weight: 400; }
.cockpit-total { font-weight: 700; background: #eef5f6; }
.cockpit-financial-mobile { display: none; }
.cockpit-coverage { font-size: 11px; line-height: 1.6; margin: 14px 0; }
.cockpit-explain { margin: 14px 0; border-top: 1px solid var(--line); padding-top: 12px; }
.cockpit-explain > summary, .cockpit-history-details > summary { color: #315a70; font-size: 12px; cursor: pointer; min-height: 36px; padding: 8px 0; }
.cockpit-explain p { font-size: 12px; line-height: 1.6; }
.cockpit-history-details { padding: 10px 20px; border: 1px solid var(--line); border-radius: 8px; background: white; margin-bottom: 18px; }
.cockpit-history-details > .panel { border: 0; padding: 12px 0 0; margin: 0; }
.cockpit-monthly > .graph-controls { margin: 10px 0 16px; }
.cockpit-monthly .graph-card { padding: 0; border: 0; margin: 0; box-shadow: none; }
.cockpit-monthly .graph-card > h3, .cockpit-monthly .graph-card > .graph-note { display: none; }
.cockpit-monthly .graph-canvas svg { min-width: 0; min-height: 0; }
.cockpit-chart-context { font-size: 12px; color: #315369; margin: 0 0 14px; }
.cockpit-chart-footnote { font-size: 11px; line-height: 1.6; margin: 10px 0 0; }
.cockpit-source-caption { font-size: 12px; line-height: 1.6; color: #425970; margin: 12px 0 18px; }
.cockpit-staff-metrics .tile { padding: 14px; }
.cockpit-staff-metrics .tile .amount { font-size: 23px; }
.cockpit-peer-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.cockpit-peer-card { padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fbfdff; min-width: 0; }
.cockpit-peer-card h4 { font-size: 13px; line-height: 1.5; margin: 0 0 16px; }
.cockpit-peer-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 5px 10px; margin-bottom: 14px; font-size: 11px; color: #425970; }
.cockpit-peer-row strong { color: #203449; font-size: 13px; font-variant-numeric: tabular-nums; }
.cockpit-peer-track { grid-column: 1/-1; height: 7px; background: #e6edf2; border-radius: 3px; overflow: hidden; }
.cockpit-peer-bar { display: block; height: 100%; border-radius: 3px; }
.cockpit-peer-bar.site { background: #137f72; }
.cockpit-peer-bar.median { background: #8092aa; }
.cockpit-peer-card p { font-size: 12px; margin: 12px 0 6px; }
.cockpit-peer-card > small { font-size: 10px; color: #425970; line-height: 1.5; }
.cockpit-workload-reference { padding: 14px 16px; background: #f3f6fa; border-radius: 6px; margin: 16px 0; font-size: 13px; }
.cockpit-workload-reference p { font-size: 12px; line-height: 1.5; margin: 6px 0 0; }
.cockpit-annual-indications, .cockpit-flow-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 16px 0; }
.cockpit-annual-indications > div, .cockpit-flow-summary > div { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 6px; min-width: 0; }
.cockpit-annual-indications span, .cockpit-flow-summary span { font-size: 12px; color: #425970; }
.cockpit-annual-indications strong, .cockpit-flow-summary strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.cockpit-annual-indications small, .cockpit-flow-summary small { font-size: 10px; color: #425970; line-height: 1.5; }
.cockpit-staffing > h4 { margin: 22px 0 12px; font-size: 14px; }
.cockpit-route-list { margin: 20px 0 12px; }
.cockpit-route-row { display: grid; grid-template-columns: minmax(150px,1.1fr) minmax(60px,1.2fr) minmax(170px,.9fr); gap: 20px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cockpit-route-title, .cockpit-route-amounts { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cockpit-route-title > strong { font-size: 13px; line-height: 1.5; }
.cockpit-route-title small, .cockpit-route-amounts small { font-size: 10px; color: #425970; line-height: 1.5; }
.cockpit-route-amounts { text-align: right; font-variant-numeric: tabular-nums; }
.cockpit-route-amounts > strong { font-size: 16px; }
.cockpit-route-amounts > span { font-size: 12px; }
.cockpit-route-track { position: relative; height: 12px; background: #e6efed; border-radius: 3px; overflow: hidden; }
.cockpit-route-track.signed::after { position: absolute; content: ""; left: 50%; top: 0; bottom: 0; width: 1px; background: #607a85; }
.cockpit-route-bar { position: absolute; height: 100%; background: #137f72; border-radius: 3px; }
.cockpit-route-bar.credit { background: #b99237; }
.cockpit-review-row { padding: 18px 0; border-bottom: 1px solid var(--line); }
.cockpit-review-row h4 { display: inline; font-size: 14px; margin: 0 0 0 8px; line-height: 1.6; }
.cockpit-review-row small { display: block; font-size: 10px; color: #425970; margin-top: 8px; line-height: 1.5; }
.cockpit-review-row p { font-size: 12px; line-height: 1.6; margin: 10px 0; }
.cockpit-review-row strong { font-size: 12px; }
@media (max-width: 1000px) {
  .cockpit-financial-scroll { display: none; }
  .cockpit-financial-mobile { display: block; }
  .cockpit-financial-mobile-head, .cockpit-financial-mobile-row { display: grid; grid-template-columns: minmax(110px,1.1fr) repeat(2,minmax(0,1fr)); gap: 8px; padding: 12px 10px; font-size: 12px; border-bottom: 1px solid var(--line); align-items: center; }
  .cockpit-financial-mobile-head { background: #f3f6fa; font-size: 11px; color: #425970; }
  .cockpit-financial-mobile-row > strong, .cockpit-financial-mobile-head > strong { text-align: right; font-variant-numeric: tabular-nums; }
  .cockpit-peer-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 650px) {
  .cockpit-identity { gap: 8px; }
  .cockpit-identity h3 { font-size: 17px; }
  .cockpit-identity p { font-size: 10px; line-height: 1.5; }
  .cockpit-site-tools > summary { padding: 7px; white-space: nowrap; font-size: 10px; }
  .cockpit-headlines { gap: 8px; }
  .cockpit-headline { padding: 12px 10px; gap: 6px; }
  .cockpit-headline > span { font-size: 10px; line-height: 1.5; }
  .cockpit-headline > strong { font-size: clamp(17px,4.4vw,22px); letter-spacing: -.4px; }
  .cockpit-headline > small { font-size: 10px; }
  .cockpit-conclusion { font-size: 11px; padding: 8px 10px; }
  .cockpit-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cockpit-tabs > button { padding: 10px 8px; font-size: 11px; min-height: 40px; }
  .cockpit-section > .panel { padding: 16px 12px; }
  .cockpit-financial-mobile-head, .cockpit-financial-mobile-row { grid-template-columns: minmax(78px,.9fr) repeat(2,minmax(0,1fr)); padding: 12px 4px; gap: 5px; font-size: 10px; }
  .cockpit-financial-mobile-row > strong { overflow-wrap: anywhere; }
  .cockpit-section h3 { font-size: 15px; }
  .cockpit-history-details { padding: 8px 12px; }
  .cockpit-staff-metrics .tiles { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cockpit-staff-metrics .tile { padding: 10px; }
  .cockpit-staff-metrics .tile .amount { font-size: 19px; }
  .cockpit-annual-indications, .cockpit-flow-summary { grid-template-columns: minmax(0,1fr); }
  .cockpit-annual-indications > div, .cockpit-flow-summary > div { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 6px; padding: 12px; }
  .cockpit-annual-indications small, .cockpit-flow-summary small { grid-column: 1/-1; }
  .cockpit-annual-indications strong, .cockpit-flow-summary strong { font-size: 17px; }
  .cockpit-route-row { grid-template-columns: minmax(0,1fr) auto; gap: 10px; padding: 14px 0; }
  .cockpit-route-track { grid-column: 1/-1; grid-row: 2; height: 8px; }
  .cockpit-route-amounts { max-width: 155px; }
  .cockpit-route-title > strong { font-size: 12px; }
  .cockpit-route-amounts > strong { font-size: 14px; }
  .cockpit-route-amounts > span { font-size: 10px; }
  .cockpit-route-amounts small { font-size: 9px; }
  .cockpit-review-row { padding: 14px 0; }
  .cockpit-review-row h4 { display: block; margin: 6px 0 0; }
}
@media print {
  .cockpit-site-tools, .cockpit-explain > summary, .cockpit-history-details > summary { display: none !important; }
  .cockpit-financial-scroll { display: block !important; }
  .cockpit-financial-mobile { display: none !important; }
  .cockpit-financial table { min-width: 0; font-size: 9px; }
  .cockpit-financial table th:first-child { width: 110px; }
  .cockpit-financial table td { font-size: 9px; padding: 8px 4px; }
  .cockpit-headline { break-inside: avoid; }
}
.stock-summary .tile .amount { font-size: 23px; }
.empty-state { padding: 16px; border: 1px dashed #c5d3df; border-radius: 6px; background: #f8fafc; font-size: 13px; line-height: 1.6; }
.action-column { min-width: 0; padding: 12px; background: #f3f6fa; border: 1px solid #e0e7ee; border-radius: 8px; }
.comparison-card { padding: 18px; border: 1px solid var(--line); border-radius: 8px; min-width: 0; background: #fbfdff; }
.baseline-card { background: #edf6f3; }
.comparison-card h4 { font-size: 14px; margin: 0 0 16px; }
.comparison-amount { font-size: clamp(18px, 1.7vw, 27px); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.5px; overflow-wrap: anywhere; }
.comparison-card p { font-size: 12px; }
.comparison-card .comparison-amount { font-size: clamp(19px, 1.7vw, 27px); font-weight: 700; }
dialog.wide-review { width: min(1160px, 94vw); max-width: 1160px; }
#editor > .panel-heading { position: sticky; top: -25px; z-index: 3; background: white; padding-top: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.comparison-metrics { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; font-size: 11px; margin: 18px 0; }
.comparison-metrics dt { color: #566c7e; }
.comparison-metrics dd { margin: 0; text-align: right; font-weight: 650; max-width: 125px; overflow-wrap: anywhere; }
.case-assumptions { font-size: 11px; margin: 16px 0; border-top: 1px solid var(--line); padding-top: 10px; }
.case-assumptions p { font-size: 11px; line-height: 1.6; }
.site-comparison-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; max-height: 260px; overflow-y: auto; margin: 10px 0 20px; border: 1px solid var(--line); padding: 12px; border-radius: 6px; }
.comparison-choice { display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 9px; min-height: 42px; font-weight: 450; }
.comparison-choice input { width: 18px; height: 18px; min-width: 18px; margin: 0; }
.comparison-selection { display: flex; flex-wrap: wrap; gap: 6px; }
.site-comparison-table table { min-width: 680px; }
.site-comparison-table th { position: static; min-width: 145px; white-space: normal; }
.site-comparison-table th:first-child { position: sticky; left: 0; z-index: 1; }
.site-comparison-table td { min-width: 145px; white-space: normal; }
.field-error { display: block; font-size: 12px; line-height: 1.5; margin: 5px 0 0; color: #a62e44; }
[aria-invalid="true"] { border-color: #ac3a4e !important; }
.form-status { font-size: 13px; }
.discard-changes { padding: 16px; border: 1px solid #dbc792; background: #fff9e9; border-radius: 8px; margin: 12px 0 20px; font-size: 13px; }
.discard-changes button { margin: 4px 8px 0 0; }
.editor-section { grid-column: 1/-1; border-top: 1px solid var(--line); margin: 14px 0 0; padding-top: 16px; }
.editor-section h3 { font-size: 15px; margin: 0 0 6px; }
.editor-section p { font-size: 12px; color: #566c7e; line-height: 1.5; }
.mobile-table-switch, .mobile-row-cards { display: none; }
.efficiency-filters { display:grid; grid-template-columns:minmax(200px,1fr) minmax(220px,1fr) auto; gap:12px; align-items:end; margin-bottom:16px; }
.efficiency-filters label { font-size:12px; font-weight:600; }
.efficiency-filters input,.efficiency-filters select { display:block; margin-top:7px; width:100%; }
.efficiency-filters p { grid-column:1/-1; margin:0; font-size:12px; }
.efficiency-ranking .graph-controls { margin:16px 0; }
.efficiency-context { font-size:12px; line-height:1.6; color:#38546b; }
.efficiency-ranking-count { font-size:12px; font-weight:600; line-height:1.6; }
.efficiency-rank-list { max-height:620px; overflow-y:auto; border:1px solid #d8e3ea; border-radius:8px; scrollbar-gutter:stable; }
.efficiency-rank-row { padding:14px 16px; display:grid; grid-template-columns:minmax(220px,1.05fr) minmax(110px,.7fr) minmax(300px,1.2fr); align-items:center; gap:10px 18px; border-bottom:1px solid #dce5eb; }
.efficiency-rank-row:last-child { border-bottom:0; }
.efficiency-rank-name { min-width:0; }
.efficiency-rank-name .site-evidence-link { text-align:left; white-space:normal; overflow-wrap:anywhere; line-height:1.5; min-height:30px; padding:0; font-size:13px; }
.efficiency-rank-name small { display:block; font-size:10px; color:#526c80; margin-top:4px; line-height:1.5; }
.efficiency-gap-track { position:relative; height:24px; background:#f1f5f8; border-radius:3px; }
.efficiency-gap-track::after { content:""; position:absolute; left:50%; top:-4px; bottom:-4px; width:1px; background:#698391; }
.efficiency-gap-bar { position:absolute; top:4px; height:16px; border-radius:2px; }
.efficiency-gap-bar.above { background:#a3610a; }.efficiency-gap-bar.below { background:#306ba0; }
.efficiency-above { color:#8a5008; }.efficiency-below { color:#245d91; }
.efficiency-rank-evidence { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; text-align:right; }
.efficiency-rank-evidence span { display:block; color:#516b7d; font-size:10px; margin-bottom:5px; }
.efficiency-rank-evidence strong { font-size:13px; font-variant-numeric:tabular-nums; white-space:nowrap; }
.efficiency-rank-range { grid-column:2/-1; color:#516b7d; font-size:10px; text-align:right; }
.efficiency-rank-flags { grid-column:1/-1; font-size:10px; color:#7c4d10; line-height:1.5; }
.efficiency-source-checks,.efficiency-support-details,.efficiency-method { padding:14px 0; margin:8px 0; font-size:12px; }
.efficiency-source-checks>summary,.efficiency-support-details>summary,.efficiency-method>summary { cursor:pointer; font-weight:600; padding:8px 0; line-height:1.5; }
.efficiency-support { margin-top:16px; }
.efficiency-support .graph-canvas svg { min-width:0; min-height:0; }
.efficiency-evidence-values { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:18px 0; }
.efficiency-evidence-values span { display:block; font-size:11px; color:#526c80; }.efficiency-evidence-values strong { display:block; font-size:23px; margin-top:6px; }
.efficiency-baseline-table small { display:block; font-size:10px; line-height:1.5; margin-top:4px; white-space:normal; }
.efficiency-baseline-table td { padding-top:9px; padding-bottom:9px; }
.efficiency-table-values>div { display:flex; gap:12px; justify-content:space-between; align-items:baseline; }
.efficiency-table-values small { margin:0; max-width:160px; }
.efficiency-table-values span { white-space:nowrap; font-variant-numeric:tabular-nums; }
.efficiency-comparison-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:16px 0; }
.efficiency-comparison-summary>div { padding:12px; border:1px solid #d8e3ea; border-radius:8px; background:#f7fafc; }
.efficiency-comparison-summary span,.efficiency-comparison-summary small { display:block; font-size:11px; color:#526c80; line-height:1.5; }
.efficiency-comparison-summary strong { display:block; font-size:23px; margin:5px 0; font-variant-numeric:tabular-nums; }
.efficiency-rank-name .efficiency-range-status { font-weight:600; color:#38546b; }
.efficiency-mobile-detail { margin:12px 0; }
.efficiency-mobile-detail>strong { display:block; margin-bottom:6px; }
.efficiency-baseline-table .mobile-row-card h4 small { display:block; margin-top:6px; font-weight:400; }
@media(max-width:1100px) {
  .efficiency-rank-row { grid-template-columns:minmax(180px,1fr) minmax(270px,1.4fr); }
  .efficiency-gap-track { grid-column:2; grid-row:2; }
  .efficiency-rank-evidence { grid-column:2; grid-row:1; }.efficiency-rank-range { grid-column:1/-1; }
}
@media(max-width:650px) {
  .efficiency-filters { grid-template-columns:minmax(0,1fr); }.efficiency-filters p { grid-column:1; }
  .efficiency-rank-row { grid-template-columns:minmax(0,1fr); padding:14px 12px; gap:12px; }
  .efficiency-rank-name { grid-column:1; }.efficiency-gap-track { grid-column:1; grid-row:auto; }
  .efficiency-rank-evidence { grid-column:1; grid-row:auto; }.efficiency-rank-range { text-align:left; }
  .efficiency-rank-list { max-height:650px; }.efficiency-evidence-values strong { font-size:18px; }
  #staffing-page .tiles { grid-template-columns:repeat(2,minmax(0,1fr)); }.efficiency-ranking .graph-controls { flex-direction:column; }
  .efficiency-comparison-summary { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
}
@media print { .efficiency-rank-list { max-height:none; overflow:visible; }.efficiency-filters,.efficiency-ranking .graph-controls { display:none; }.efficiency-rank-row { break-inside:avoid; } }
@media (max-width: 1250px) {
  .review-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .review-card-grid, .site-comparison-picker { grid-template-columns: minmax(0, 1fr); }
  .review-tabs { gap: 6px; }
  .review-tabs button { font-size: 11px; padding: 10px; min-height: 40px; }
  .comparison-card .comparison-amount { font-size: 26px; }
  .comparison-metrics { font-size: 12px; }
  .saved-view-row { flex-wrap: wrap; }
  .saved-view-row > button:first-child { flex-basis: 100%; }
  .mobile-table-switch { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
  [data-mobile-mode="cards"] > .table-scroll { display: none; }
  [data-mobile-mode="cards"] > .mobile-row-cards { display: grid; gap: 10px; }
  .mobile-row-card { padding: 14px; border: 1px solid var(--line); border-radius: 7px; background: white; min-width: 0; }
  .mobile-row-card h4 { font-size: 13px; line-height: 1.5; margin: 0 0 12px; overflow-wrap: anywhere; }
  .mobile-row-summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; font-size: 11px; margin: 0 0 14px; }
  .mobile-row-summary dt { color: #566c7e; }
  .mobile-row-summary dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
  .mobile-row-details { font-size: 11px; border-top: 1px solid var(--line); padding-top: 10px; }
  .mobile-row-details p { font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
  .mobile-row-details button { margin: 8px 8px 0 0; min-height: 40px; }
}
@media print {
  .mobile-table-switch, .mobile-row-cards, .review-tabs, .review-status, .site-comparison-picker, .comparison-selection { display: none !important; }
  [data-mobile-mode="cards"] > .table-scroll { display: block !important; }
  .cockpit-section[hidden] { display: block !important; }
  .review-card-grid { display: block; }
  .comparison-card, .decision-card { break-inside: avoid; margin-bottom: 12px; }
}
/* Like-for-like peer selection: counts are evidence; the bars share one scale. */
.peer-comparison-evidence { margin: 1rem 0; padding: 1rem; border: 1px solid #d7e2e8; border-radius: 8px; background: #f7fafb; }
.peer-comparison-evidence h4 { margin: 0 0 .6rem; }
.peer-comparison-caption { font-weight: 600; }
.peer-comparison-funnel { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .65rem; }
.peer-comparison-funnel li { display: grid; grid-template-columns: minmax(200px, 1fr) 3rem minmax(100px, 1fr); gap: .7rem; align-items: center; }
.peer-comparison-funnel strong { text-align: right; font-variant-numeric: tabular-nums; }
.peer-comparison-track { height: 9px; border-radius: 5px; background: #e3ebef; overflow: hidden; }
.peer-comparison-track > span { display: block; height: 100%; background: #247b86; border-radius: inherit; }
@media (max-width: 650px) { .peer-comparison-funnel li { grid-template-columns: minmax(0, 1fr) 3rem; } .peer-comparison-track { grid-column: 1 / -1; } }
/* One decision and a few everyday workspaces lead into the source evidence. */
.review-decision-brief{padding:18px 22px;margin:16px 0;background:#edf6f3;border-left:3px solid #147c73;border-radius:9px;line-height:1.5}
.review-decision-brief>strong{font-size:1.1rem;display:block}.review-decision-brief p{margin:8px 0}.review-basis-note{color:#3e5c69;font-size:.9rem}
.graph-explorer-details{border:1px solid #dce6e9;border-radius:9px;padding:14px 18px;margin:18px 0}.graph-explorer-details>summary{cursor:pointer;color:#476473;font-weight:600}.graph-explorer-details>.graph-card{margin:14px 0 0}
.nav-section-label{display:block;padding:18px 18px 8px;text-transform:uppercase;font-size:10px;letter-spacing:.12em;color:#697e87}
.review-section-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 20px}.review-section-tabs button[aria-pressed="true"]{background:#147c73;border-color:#147c73;color:white}
.doctor-provider-population{padding:9px 13px;margin:10px 0;background:#edf4f7;color:#385d6b;border-radius:7px;font-size:.88rem}
@media(max-width:700px){.review-decision-brief{padding:14px}.review-section-tabs{gap:6px}.review-section-tabs button{padding:9px 10px}.graph-explorer-details{padding:12px}}
.home-evidence-fold{border:1px solid #d8e4e7;border-radius:9px;padding:14px 18px;margin:18px 0}.home-evidence-fold>summary{font-weight:600;cursor:pointer;color:#315b65}.home-evidence-fold>.panel{margin-top:14px}
.board-source-preview{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:16px}.board-source-preview>.notice{grid-column:1/-1}.board-slide-preview{padding:18px;border:1px solid #d8e4e7;border-radius:8px;background:white}.board-slide-preview h3{font-size:1rem}.board-slide-preview p{font-size:.85rem}
/* Decision workspaces and the selected-site review journey. */
.review-workspace-shell{display:grid;gap:12px;padding:16px;background:#f0f8f6;border:1px solid #d4e6e0;border-radius:12px;margin-bottom:18px}
.cash-plan-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0}.cash-plan-fields label{display:grid;gap:6px}.cash-plan-fields input{width:100%;min-width:0}.financial-reconciliation-policy{padding:14px 16px;border:1px solid var(--line);border-radius:8px;margin:16px 0;background:#f7f9fb}.financial-reconciliation-policy>summary{cursor:pointer;font-weight:600}.reconciliation-control{margin-top:16px}.reconciliation-control h4{text-transform:none;margin:0 0 8px}.opportunity-cash-result{margin:18px 0}@media(max-width:650px){.cash-plan-fields{grid-template-columns:minmax(0,1fr)}}
.review-workspace-tabs,.review-process,.review-next-steps{display:flex;flex-wrap:wrap;gap:8px;border:0;margin:0;padding:0}
.review-workspace-tabs a,.review-process a,.review-next-steps a{padding:8px 12px;border:1px solid #d8e3df;border-radius:7px;background:#fff;color:#225548;text-decoration:none}
.review-workspace-tabs a.active,.review-process a[aria-current]{background:#126e62;color:white;border-color:#126e62}
.review-workspace-question{font-size:1.05rem;color:#163f36}
/* The tabs of a screen that took another screen in: a row of its own above the report. */
.review-workspace-tabs.review-fold-tabs{margin:0 0 16px}
.review-workspace-shell label{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.review-workspace-shell select{max-width:100%;min-width:240px}
.review-case-context{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.review-scope-note{margin:0;color:#596a64}
.review-next-steps{margin:14px 0}
@media(max-width:600px){.review-workspace-shell{padding:12px}.review-workspace-shell select{width:100%;min-width:0}.review-workspace-tabs a,.review-process a{flex:1 1 130px;text-align:center}.review-next-steps a{width:100%}}

.financial-readiness{display:flex;align-items:center;gap:12px 22px;flex-wrap:wrap;padding:12px 16px;margin:0 0 18px;border:1px solid #d5e4e0;border-left:3px solid #137f72;border-radius:8px;background:#f3f8f6;font-size:.85rem}
.financial-readiness>strong{color:#183e39}.financial-readiness>small{flex-basis:100%;line-height:1.5}.financial-source-dates{display:flex;flex:1;gap:12px 26px;flex-wrap:wrap}.financial-source-dates span{display:grid;gap:2px}.financial-source-dates small{color:#526760;font-size:.72rem}.financial-partial{color:#93591e!important}.financial-card-period{display:block;color:#657770;font-size:.72rem;font-weight:400;margin:2px 0 12px;line-height:1.4}
.allocation-evidence{margin:18px 0}.allocation-evidence h4{margin:0 0 10px}.allocation-evidence p,.allocation-sensitivity p,.forecast-performance>p{font-size:.85rem;line-height:1.55}.allocation-sensitivity,.cockpit-allocation-evidence{margin:14px 0;border:1px solid #dbe5e1;border-radius:8px;padding:12px 14px}.allocation-sensitivity summary,.cockpit-allocation-evidence summary{font-weight:600;cursor:pointer}.allocation-inputs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0}.allocation-inputs label{display:grid;gap:7px;font-size:.8rem}.allocation-inputs small{font-size:.72rem;font-weight:400;color:#657770}.allocation-inputs input{width:100%;min-width:0}.allocation-results table{width:100%}.cockpit-allocation-evidence>select{margin:14px 0 0}.forecast-performance>select{margin:4px 0 18px}.forecast-performance details{margin-top:18px}.forecast-performance .tiles{margin-top:0}
.allocation-evidence td:first-child,.allocation-results td:first-child{max-width:none;white-space:normal;text-overflow:clip;min-width:180px}.allocation-evidence td:first-child{width:65%}.allocation-results td:first-child{width:40%}
@media(max-width:700px){.financial-readiness{padding:10px 12px;gap:10px}.financial-readiness>strong{flex-basis:100%}.financial-source-dates{gap:10px 18px}.allocation-inputs{grid-template-columns:1fr}.allocation-sensitivity{padding:10px}.financial-card-period{margin-bottom:8px}}

.evidence-range-scroll{overflow-x:auto;max-width:100%;border-radius:8px}
.evidence-range-scroll svg{display:block;width:100%;min-width:900px;height:auto;font-family:Arial,sans-serif}
.evidence-range-scroll g[tabindex]{cursor:pointer}
.evidence-range-scroll g[tabindex]:focus{outline:none}
.evidence-range-scroll g[tabindex]:focus text{font-weight:700;text-decoration:underline}
.evidence-range-scroll g[tabindex]:focus circle{stroke:#203449;stroke-width:2}
.routing-comparison{grid-column:1 / -1;min-width:0;width:100%}
.paired-flow-charts{display:grid;grid-template-columns:1fr;gap:16px;align-items:start}
.paired-flow-charts .region-flow-canvas{overflow-x:auto}
.forecast-error-heatmap,.efficiency-history-heatmap{margin-block:16px}
@media(min-width:2300px){.paired-flow-charts{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Ranked bars (web/ranked-graphs.js): the graph is redrawn for the width it has, so it never scrolls sideways. */
.report-graphs>.ranked-graph{grid-column:1 / -1}
.ranked-graph .ranked-canvas{overflow:hidden}
.ranked-graph .ranked-canvas svg,.report-graphs .ranked-graph .ranked-canvas svg{min-width:0;min-height:0}
.ranked-graph .ranked-canvas g[data-graph-point]{cursor:default}
.ranked-finding{margin:8px 0 4px;font-size:14px;line-height:1.55;font-weight:600;color:#203449;max-width:900px}
.ranked-key{display:flex;flex-wrap:wrap;gap:6px 18px;margin:8px 0;font-size:12px;color:#405c70}
.ranked-key-item{display:inline-flex;align-items:center;gap:7px}
.ranked-swatch{width:14px;height:10px;border-radius:2px;flex:none}
.ranked-more{margin-top:8px}
@media print{.ranked-more{display:none!important}}

/* Profit plan and Workforce plan. Status colours keep their meaning in words as well (On track, Behind, Off track). */
.profit-plan .plan-status { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: .78rem; font-weight: 600; white-space: nowrap; background: #eef1f3; color: #3d4f5c; }
.profit-plan .plan-on_track { background: #dcefe9; color: #0c5a51; }
.profit-plan .plan-behind { background: #f6efe0; color: #6c5317; }
.profit-plan .plan-off_track { background: #f6e6e2; color: #7a3424; }
.profit-plan .plan-not_started, .profit-plan .plan-no_measure { background: #eef1f3; color: #3d4f5c; }
.profit-plan .plan-lever { margin: 8px 0; border: 1px solid #d8e1de; border-radius: 6px; padding: 6px 10px; background: #fff; }
.profit-plan .plan-lever > summary { cursor: pointer; font-weight: 600; color: #163040; }
.profit-plan .plan-lever p { margin: 6px 0; }
.profit-plan .plan-notes { margin: 16px 0; }

.explain h4{margin:18px 0 6px;font-size:13px;color:var(--ink)}
.explain .explain-headline{display:flex;align-items:baseline;gap:12px;margin:8px 0}
.explain .explain-number{font-size:clamp(24px,4vw,34px);line-height:1.2;overflow-wrap:anywhere}
.explain .explain-check{margin:8px 0 12px;padding:9px 12px;border-left:3px solid var(--teal);background:#eff7f3;border-radius:6px;font-size:13px;line-height:1.6}
.explain .explain-check.bad{border-left-color:var(--red);background:#fbeeee}
.explain .explain-expression{font-size:14px;font-weight:600;margin:4px 0 8px}
.explain .explain-inputs,.explain .explain-requirements{list-style:none;margin:0;padding:0}
.explain .explain-inputs li{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 14px;padding:7px 0;border-bottom:1px solid var(--line)}
.explain .explain-input-label{flex:1 1 220px;color:var(--muted);font-size:13px}
.explain .explain-input-value{font-size:15px}
.explain .explain-requirements li{padding:3px 0;font-size:13px}
.explain .explain-requirements li.unmet{color:var(--red);font-weight:600}
.explain .explain-decision{margin:12px 0;padding:9px 12px;background:#f4f7f7;border-radius:6px;font-size:13px;line-height:1.6}
.explain .explain-section{margin-top:14px}
.explain .explain-table{width:100%;border-collapse:collapse;font-size:13px}
.explain .explain-table th,.explain .explain-table td{padding:6px 8px;border-bottom:1px solid var(--line);text-align:left}
.explain .explain-table th.number,.explain .explain-table td.number{text-align:right;font-variant-numeric:tabular-nums}
.explain .explain-table tfoot td{font-weight:700;border-top:2px solid var(--line)}
.explain .explain-rules dl{margin:0}.explain .explain-rules dt{font-weight:600;font-size:13px;margin-top:8px}.explain .explain-rules dd{margin:2px 0 0;color:var(--muted);font-size:13px;line-height:1.6}
.explain .explain-source{margin:6px 0;font-size:12px;line-height:2}
.explain .explain-month{display:inline-block;margin:0 4px 2px 0;padding:0 8px;border-radius:10px;background:#eef3f4}
.explain .explain-month.missing{background:#fbeeee;color:var(--red)}
.explain-link,.explain-value{border:0;background:none;padding:0;color:var(--teal);text-decoration:underline;text-underline-offset:2px;font:inherit;cursor:pointer}
.explain-value{color:inherit;text-decoration-style:dotted}
.explain-link:hover,.explain-value:hover{color:var(--blue)}
.explain-links{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 14px;margin:12px 0;font-size:13px}
.explain-links-label{color:var(--muted)}

.ledger-review{min-width:0}.ledger-scope{margin:0 0 14px;padding:14px 16px;background:#f4f8fa;border:1px solid #d7e3e8;border-radius:8px}.ledger-scope>strong{font-size:15px;color:#254d59}.ledger-scope p{font-size:12px;line-height:1.6;margin:5px 0 0}
.ledger-control-status{display:flex;align-items:center;flex-wrap:wrap;gap:10px 22px;padding:10px 14px;border-left:3px solid #327f70;background:#eff7f3;border-radius:6px;font-size:12px;margin-bottom:12px}.ledger-control-status>span{color:#436779}.ledger-control-status>button{margin-left:auto;font-size:12px}
.ledger-review .ledger-financial-controls,.ledger-review .ledger-method,.ledger-review .ledger-trends,.ledger-review .ledger-cost-details{margin:12px 0 18px;padding:12px 14px;border:1px solid #d7e3e8;border-radius:8px;background:#fff;min-width:0}.ledger-review details>summary{cursor:pointer;line-height:1.6;font-size:13px;font-weight:600}.ledger-review .ledger-financial-controls[open]>summary,.ledger-trends[open]>summary,.ledger-cost-details[open]>summary{margin-bottom:12px}
.ledger-result-tiles .amount{font-size:clamp(21px,2vw,30px);overflow-wrap:anywhere}.ledger-result-tiles .ledger-kpi-prior{font-size:12px;margin:6px 0}.ledger-result-tiles small{display:block;color:#526c80;font-size:11px;line-height:1.5;margin-top:6px}.ledger-review .toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:12px 0}.ledger-review .toolbar select{max-width:100%}.ledger-review>.panel{margin:18px 0}.ledger-review .panel{min-width:0}.ledger-review .muted{line-height:1.65}.ledger-review .ledger-site-controls{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin:12px 0}.ledger-site-controls label{display:grid;gap:6px;font-size:12px;color:#496577;min-width:150px;flex:1}.ledger-site-controls input,.ledger-site-controls select{width:100%;min-width:0}.ledger-site-count{font-size:12px;font-weight:600;line-height:1.6}
.ledger-site-table td{vertical-align:middle}.ledger-site-table .ledger-site-name{min-width:180px;max-width:270px}.ledger-site-name .site-evidence-link{white-space:normal;text-align:left;line-height:1.5;padding:0}.ledger-site-table small{display:block;font-size:10px;line-height:1.5;margin-top:3px;color:#526c80;white-space:normal}.ledger-site-table .ledger-posting-caution{font-size:11px;color:#89551b}.ledger-site-table .ledger-posting-ready{font-size:11px;color:#327364}.ledger-site-table button{white-space:normal;min-width:100px;font-size:12px}.ledger-sparkline{min-width:144px;max-width:175px}.ledger-sparkline svg{display:block;width:144px;height:38px}.ledger-sparkline small{font-size:10px;white-space:nowrap}
.ledger-account-group{margin:12px 0;border:1px solid #d7e3e8;border-radius:6px;padding:10px 12px}.ledger-account-group>summary{color:#284f61;font-weight:650;line-height:1.7;font-size:12px;overflow-wrap:anywhere}.ledger-account-subgroup{margin:10px 0 0;padding:8px 10px;border-left:2px solid #cadae1}.ledger-account-subgroup>summary{font-size:12px;font-weight:500;line-height:1.6;cursor:pointer}.ledger-contribution-links{margin-top:18px;padding-top:12px;border-top:1px solid #d8e3e9}.ledger-contribution-links a{display:block;margin:8px 0}.ledger-detail-context{font-weight:600;color:#315768}.ledger-trends .panel{margin-top:14px}.ledger-review .graph-canvas svg{max-width:none}
@media(max-width:1100px){.ledger-result-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.ledger-control-status>strong{flex-basis:100%}}
@media(max-width:650px){.ledger-scope{padding:12px}.ledger-scope>strong{font-size:13px}.ledger-control-status{padding:10px}.ledger-control-status>button{margin-left:0}.ledger-site-controls{flex-direction:column}.ledger-site-controls label{width:100%}.ledger-result-tiles .amount{font-size:21px}.ledger-result-tiles .tile{padding:12px}.ledger-review .ledger-trends,.ledger-review .ledger-cost-details,.ledger-review .ledger-financial-controls{padding:10px}.ledger-account-group{padding:9px}.ledger-account-subgroup{padding:7px}.ledger-review .toolbar>button{font-size:12px}.ledger-site-table .ledger-site-name{min-width:0;max-width:none}.ledger-sparkline{max-width:100%}}

.cost-sales-review .stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.cost-sales-summary{font-size:13px;line-height:1.7;padding:12px 15px;background:#f2f6f7;border-left:3px solid #4e8189;border-radius:5px}.cost-sales-review .tile h3{font-size:12px;line-height:1.5;min-height:36px;margin:0 0 8px;color:#496577}.cost-sales-review .tile{border:1px solid #d7e3e8;border-radius:8px;padding:16px;background:#fff;min-width:0}.cost-sales-review .ledger-site-name small{display:block;white-space:normal;color:#526c80;line-height:1.5;font-size:11px}.cost-sales-review .ledger-site-name button{white-space:normal;text-align:left}.cost-sales-review .ledger-cost-details .toolbar label{min-width:160px}.cost-sales-review .ledger-account-group button{font-size:12px;margin:8px 0}.cost-sales-review .ledger-account-group td button{white-space:normal}.cost-sales-review .ledger-account-group>summary{padding:3px 0}.cost-sales-review .ledger-site-count{margin-top:16px}.cost-sales-review td{vertical-align:top}.cost-sales-review .graph-canvas{max-width:100%}
@media(max-width:1150px){.cost-sales-review .stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.cost-sales-review .stats{gap:8px}.cost-sales-review .tile{padding:12px}.cost-sales-review .tile h3{font-size:11px}.cost-sales-review .amount{font-size:20px}.cost-sales-review .toolbar{align-items:stretch}.cost-sales-review .toolbar>button{white-space:normal}.cost-sales-review .ledger-site-controls{align-items:stretch}.cost-sales-summary{font-size:12px;padding:10px}}

@media(max-width:450px){.cost-sales-review .stats{grid-template-columns:minmax(0,1fr)}.cost-sales-review .tile h3{min-height:0;margin-bottom:7px}.cost-sales-review .amount{font-size:23px;white-space:nowrap}.cost-sales-review .tile{padding:13px 15px}}

.staffing-group-title{margin:22px 0 10px;font-size:1rem;color:#24495d}
.efficiency-ranking .staffing-formula{grid-column:1/-1;color:#526c80;line-height:1.5;font-size:11px}
.efficiency-rank-evidence{grid-template-columns:repeat(4,minmax(0,1fr))}
.efficiency-rank-evidence strong{white-space:normal!important}
.staffing-coverage{margin-top:20px;border-top:1px solid #d8e3ea;padding-top:12px;min-width:0}
.staffing-coverage .staffing-status{font-weight:650;color:#24495d}
.staffing-rank-group{margin-top:24px;min-width:0}
.staffing-rank-group .staffing-group-title{font-size:17px;margin-bottom:4px}
.staffing-rank-group .efficiency-context{margin:0 0 12px}
.staffing-rank-group .efficiency-rank-list{max-height:none;overflow:visible;scrollbar-gutter:auto}
.staffing-rank-header,.staffing-rank-group .staffing-compact-row{display:grid;grid-template-columns:minmax(180px,1.2fr) minmax(64px,.4fr) minmax(230px,1.7fr) minmax(100px,.65fr) minmax(190px,1.15fr);gap:10px 18px;align-items:center}
.staffing-rank-header{padding:12px 16px;background:#f0f5f5;color:#38546b;font-size:11px;font-weight:650;border-bottom:1px solid #d8e3ea;border-radius:8px 8px 0 0}
.staffing-rank-group .staffing-compact-row{padding:14px 16px;gap:7px 18px}
.staffing-compact-row .efficiency-rank-name small{font-size:11px;margin-top:2px}
.staffing-actual strong,.staffing-outside strong{display:block;font-size:19px;font-variant-numeric:tabular-nums}
.staffing-outside small,.staffing-range-cell>small{display:block;font-size:11px;color:#526c80;line-height:1.5}
.staffing-range-cell{min-width:0}
.staffing-range-chart{display:block;width:100%;height:auto;min-height:40px;overflow:visible}
.staffing-cell-label{display:none}
.staffing-review-cell{min-width:0}
.staffing-review-badges{display:flex;flex-wrap:wrap;gap:4px}
.staffing-badge{display:inline-block;font-size:10px;padding:3px 6px;border-radius:4px;background:#eaf2ef;color:#345b51;line-height:1.4}
.staffing-badge.caution{background:#fff3e0;color:#805015}
.staffing-persistence{display:block;flex-basis:100%;font-size:11px;color:#526c80;line-height:1.5}
.staffing-review-cell button{font-size:11px;min-height:32px;padding:5px 8px;margin-top:6px;white-space:normal}
.staffing-chart-legend{font-size:11px;line-height:1.7;color:#526c80;margin:8px 0 12px}
.staffing-row-details{grid-column:1/-1;min-width:0;font-size:12px;margin:0}
.staffing-row-details>summary{cursor:pointer;color:#375f73;font-size:11px;line-height:1.6;width:fit-content;padding:3px 0}
.staffing-row-details[open]{border-top:1px solid #e1e9ec;margin-top:8px;padding-top:8px}
.staffing-detail-figures{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:12px 0}
.staffing-detail-figures span{display:block;color:#526c80;font-size:11px;line-height:1.5}
.staffing-detail-figures strong{display:block;font-size:17px;margin-top:4px}
.staffing-monthly{margin-top:12px;padding:12px;border:1px solid #d8e3ea;border-radius:6px;min-width:0}
.staffing-monthly>summary{font-weight:600;cursor:pointer;line-height:1.5}
.staffing-monthly .panel{margin-top:12px}
.staffing-monthly .toolbar{margin:12px 0}
.staffing-pagination{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin:12px 0;font-size:12px}
@media(max-width:1250px){.staffing-rank-header{display:none}.staffing-rank-group .staffing-compact-row{grid-template-columns:minmax(160px,1.2fr) minmax(65px,.5fr) minmax(200px,1.5fr) minmax(110px,.8fr)}.staffing-review-cell{grid-column:1/-1;display:flex;gap:12px;align-items:center;justify-content:space-between}.staffing-persistence{flex-basis:auto}.staffing-cell-label{display:block;font-size:10px;color:#526c80;margin-bottom:5px}.staffing-review-cell button{margin-top:0;flex-shrink:0}}
@media(max-width:800px){.staffing-rank-group .staffing-compact-row{grid-template-columns:minmax(0,1fr) minmax(80px,.5fr);padding:12px;gap:10px}.staffing-range-cell{grid-column:1/-1;grid-row:2}.staffing-outside{grid-column:1/-1;grid-row:3;display:grid;grid-template-columns:auto 1fr;align-items:center;column-gap:12px}.staffing-outside .staffing-cell-label{grid-column:1/-1}.staffing-review-cell{grid-column:1/-1;grid-row:4;display:block}.staffing-persistence{flex-basis:100%}.staffing-review-cell button{margin-top:6px}.staffing-detail-figures{grid-template-columns:repeat(2,minmax(0,1fr))}.staffing-monthly{padding:10px}.staffing-pagination{justify-content:space-between;gap:5px}.staffing-pagination button{font-size:11px}.staffing-rank-group .efficiency-comparison-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.staffing-actual{text-align:right}.staffing-row-details{grid-row:5}}
@media(max-width:700px){.efficiency-rank-evidence{grid-template-columns:repeat(2,minmax(0,1fr))}}

.radar-controls {
  display: grid;
  gap: 0.75rem;
}

.radar-filter-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.75rem;
  align-items: end;
}

.radar-body {
  display: grid;
  gap: 1rem;
}

.radar-svg {
  width: 100%;
  height: auto;
  display: block;
  font-family: inherit;
}

.radar-dot {
  cursor: pointer;
  transition: fill-opacity 0.12s ease, stroke-width 0.12s ease;
}

.radar-dot:hover,
.radar-dot:focus {
  fill-opacity: 1;
  stroke: #203449;
  stroke-width: 2;
  outline: none;
}

.radar-label {
  pointer-events: none;
}

.radar-type-lbl {
  cursor: pointer;
}

.radar-type-lbl:hover {
  text-decoration: underline;
}

.radar-chart-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.45rem;
}

.radar-signal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.radar-readout {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-top: 0.45rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  background: #f5f8fa;
  border: 1px solid #e1eaef;
  font-size: 0.86rem;
}

.radar-trend-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.45rem;
}

/* Sparkline cell */
.radar-sparkline {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

/* Cross-metric heatmap */
.radar-heat-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.6rem;
}

.radar-hz-chip {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
}

.radar-heatmap-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 2px;
  font-size: 0.82rem;
}

.radar-heatmap-table th {
  text-align: left;
  padding: 0.4rem 0.45rem;
  font-size: 0.78rem;
  color: var(--muted, #425970);
  border-bottom: 1px solid var(--border, #dce5eb);
  white-space: nowrap;
}

.radar-heatmap-table td {
  padding: 0.25rem 0.35rem;
  vertical-align: middle;
}

.radar-heatmap-table tr.is-selected td:first-child {
  box-shadow: inset 3px 0 0 #137f72;
  background: #eff9f7;
}

.radar-heat-cell {
  padding: 2px !important;
  text-align: center;
}

.radar-heat-btn {
  width: 100%;
  min-width: 66px;
  padding: 0.32rem 0.4rem;
  border: 1px solid transparent;
  border-radius: 5px;
  font: inherit;
  font-size: 0.79rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.08s ease, border-color 0.1s ease;
}

.radar-heat-btn:hover,
.radar-heat-btn:focus {
  border-color: #203449;
  transform: scale(1.03);
  outline: none;
}

.radar-heat-btn.is-active {
  border: 2px solid #203449;
}

.hz-severe {
  background: #e69d8c;
  color: #4f160c;
}

.hz-warn {
  background: #f9dfd8;
  color: #8c3320;
}

.hz-ok {
  background: #f2f5f7;
  color: #364c5e;
}

.hz-good {
  background: #d7f0eb;
  color: #0c564c;
}

.hz-na {
  background: #fafafa;
  color: #9aa8b3;
  font-weight: 400;
}

.mgmt-suite-page {
  display: grid;
  gap: 1rem;
}

.mgmt-suite-body {
  display: grid;
  gap: 1rem;
}

.mgmt-svg {
  width: 100%;
  height: auto;
  display: block;
  font-family: inherit;
}

.mgmt-chart-box {
  display: grid;
  gap: 0.4rem;
}

.mgmt-sim-controls {
  display: grid;
  gap: 0.85rem;
}

.mgmt-preset-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.mgmt-slider-grid,
.mgmt-scheme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.65rem;
}

.mgmt-scheme-grid {
  padding-top: 0.65rem;
  border-top: 1px solid var(--border, #dce5eb);
}

.mgmt-slider-card {
  display: grid;
  gap: 0.35rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  background: #f7fafc;
  border: 1px solid #e1eaef;
  font-size: 0.85rem;
}

.mgmt-slider-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.mgmt-slider-top strong {
  color: #137f72;
  font-size: 0.92rem;
}

.mgmt-slider-card input[type="range"] {
  width: 100%;
  accent-color: #137f72;
}

.exco-action-bar {
  display: grid;
  gap: 0.65rem;
}

.exco-shortcuts {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.exco-deep-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.9rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border, #dce5eb);
  font-size: 0.88rem;
}

/* Regional small-multiples grid */
.small-multiples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.8rem;
}

.small-multiple-card {
  display: grid;
  gap: 0.35rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid #dce5eb;
  border-radius: 8px;
  background: #fbfcfd;
  text-align: left;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease;
}

.small-multiple-card:hover,
.small-multiple-card:focus-visible {
  border-color: #137f72;
  background: #f2f9f7;
}

.small-multiple-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.4rem;
  font-size: 0.84rem;
}

.small-multiple-head strong {
  color: #203449;
}

.small-multiple-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.78rem;
  color: #51677a;
}

/* 2D Sensitivity Heatmap Matrix */
.sensitivity-matrix-scroll {
  overflow-x: auto;
  border-radius: 8px;
}

.sensitivity-matrix {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
}

.sensitivity-matrix th,
.sensitivity-matrix td {
  border: 1px solid #dce5eb;
  padding: 0.38rem 0.48rem;
  text-align: center;
}

.sensitivity-matrix thead th {
  background: #eef3f7;
  color: #203449;
  font-weight: 600;
}

.sensitivity-matrix tbody th {
  background: #f6f9fb;
  color: #203449;
  text-align: left;
  white-space: nowrap;
}

.sensitivity-cell-btn {
  width: 100%;
  padding: 0.35rem 0.4rem;
  border-radius: 5px;
  border: 1px solid transparent;
  background: transparent;
  color: #203449;
  cursor: pointer;
  display: grid;
  gap: 0.1rem;
  text-align: center;
  font-size: 0.8rem;
}

.sensitivity-cell-btn:hover,
.sensitivity-cell-btn:focus-visible {
  border-color: #203449;
}

.sensitivity-cell-btn.is-active {
  border: 2px solid #203449;
  font-weight: 700;
}

.sensitivity-cell-btn small {
  font-size: 0.7rem;
  color: #425970;
}

/* Inline sparklines & attainment bullet meters */
.inline-sparkline {
  display: inline-block;
  vertical-align: middle;
}

.inline-meter {
  display: inline-grid;
  gap: 2px;
  min-width: 82px;
  vertical-align: middle;
}

.inline-meter-track {
  position: relative;
  height: 7px;
  background: #e6eef2;
  border-radius: 4px;
  overflow: hidden;
}

.inline-meter-fill {
  height: 100%;
  border-radius: 4px;
  background: #137f72;
}

.inline-meter-fill.is-worse {
  background: #bb5d47;
}

.inline-meter-fill.is-accent {
  background: #2f6db5;
}

/* Operational scorecard cards (Manager view & Regional sheet) */
.ops-scorecard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.7rem;
  margin: 0.75rem 0 1rem;
}

.ops-scorecard-item {
  display: grid;
  gap: 0.3rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #dce5eb;
  border-radius: 8px;
  background: #f9fbfc;
}

.ops-scorecard-item strong {
  font-size: 1.15rem;
  color: #203449;
}

.ops-scorecard-item small {
  font-size: 0.76rem;
  color: #51677a;
}

/* History Explorer compare chips */
.history-compare-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.history-compare-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.4rem 0 0.75rem;
}

.history-compare-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid #cbd6df;
  background: #f5f8fa;
  color: #203449;
  font-size: 0.8rem;
  cursor: pointer;
}

.history-compare-swatch {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

/* Floating chart popover & reusable ChartFrame widgets */
.cf-popover-host {
  position: relative;
}
.cf-popover {
  position: absolute;
  z-index: 30;
  pointer-events: none;
  min-width: 170px;
  max-width: 260px;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  background: rgba(18, 43, 48, 0.96);
  color: #f4f9f8;
  box-shadow: 0 8px 22px rgba(10, 24, 30, 0.28);
  font-size: 0.78rem;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.cf-popover[hidden] {
  display: none;
}
.cf-popover strong {
  font-size: 0.8rem;
  color: #ffffff;
}
.cf-chart-wrap {
  margin: 0.5rem 0 1rem;
}
.cf-clickable {
  cursor: pointer;
}

/* Table quick-filter chips & dynamic totals footer */
.table-quick-chips {
  display: inline-flex;
  gap: 0.3rem;
  align-items: center;
  flex-wrap: wrap;
}
.table-quick-chip[aria-pressed="true"] {
  background: #17685d;
  color: #ffffff;
  border-color: #17685d;
}
.table-auto-totals td {
  font-weight: 600;
  background: #f1f6f5;
  border-top: 2px solid #bfd2cf;
}

/* Side-by-side site comparison & delta digest & print pack */
.compare-pickers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}
.compare-bar-stack {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0.6rem 0 1rem;
}
.compare-bar-row {
  display: grid;
  grid-template-columns: 180px 1fr 90px;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.84rem;
}
.compare-bar-track {
  display: flex;
  height: 18px;
  border-radius: 5px;
  overflow: hidden;
  background: #e9f0ef;
}
.compare-bar-seg {
  height: 100%;
}
.delta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.85rem;
  margin: 0.75rem 0;
}
.delta-card {
  border: 1px solid #d4e0de;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  background: #fbfdfd;
}
.delta-card h4 {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
}
.delta-card ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.84rem;
  line-height: 1.5;
}
.print-pack-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  margin: 0.65rem 0 1rem;
}
.print-pack-checks label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  cursor: pointer;
}
.print-pack-section {
  border-top: 2px solid #d4e1df;
  padding-top: 1rem;
  margin-top: 1.25rem;
}
.print-pack-banner {
  padding: 0.9rem 1.1rem;
  border-radius: 10px;
  background: #eff6f5;
  border: 1px solid #c9dcd9;
  margin-bottom: 1rem;
}
.scenario-pin-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-top: 0.55rem;
}

/* Optional low-glare dark theme (always resets to crisp white for printing) */
html[data-theme="dark"] {
  color-scheme: dark;
}
html[data-theme="dark"] body {
  background: #10191e;
  color: #e4eef1;
}
html[data-theme="dark"] .site-header,
html[data-theme="dark"] .workspace-sidebar,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .tile,
html[data-theme="dark"] .aa-tile,
html[data-theme="dark"] .small-multiple-card,
html[data-theme="dark"] .ops-scorecard-item,
html[data-theme="dark"] .delta-card,
html[data-theme="dark"] .review-bar,
html[data-theme="dark"] dialog {
  background: #162329;
  color: #e4eef1;
  border-color: #293e47;
}
html[data-theme="dark"] th {
  background: #1d2e36;
  color: #e4eef1;
}
html[data-theme="dark"] td,
html[data-theme="dark"] th {
  border-color: #283c45;
}
html[data-theme="dark"] .table-auto-totals td,
html[data-theme="dark"] .table-total-row td,
html[data-theme="dark"] .aa-filters,
html[data-theme="dark"] .print-pack-banner {
  background: #1b2c33;
  color: #e4eef1;
  border-color: #2c434d;
}
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] .subtle-button {
  background: #1b2a31;
  color: #e4eef1;
  border-color: #344e5a;
}
html[data-theme="dark"] .muted,
html[data-theme="dark"] .aa-note,
html[data-theme="dark"] .aa-status,
html[data-theme="dark"] .ops-scorecard-item small {
  color: #9cb4be;
}
html[data-theme="dark"] .mgmt-svg text,
html[data-theme="dark"] .graph-plot svg text {
  fill: #d4e3e8;
}

@media (max-width: 700px) {
  .small-multiples-grid,
  .ops-scorecard-grid {
    grid-template-columns: 1fr;
  }
  .mgmt-slider-grid,
  .mgmt-scheme-grid {
    grid-template-columns: 1fr;
  }
  .compare-bar-row {
    grid-template-columns: 120px 1fr 72px;
  }
}

@media print {
  html[data-theme="dark"] body,
  html[data-theme="dark"] .panel,
  html[data-theme="dark"] .tile,
  html[data-theme="dark"] .delta-card,
  html[data-theme="dark"] .print-pack-banner {
    background: #ffffff !important;
    color: #173c3b !important;
    border-color: #d0dcda !important;
  }
  .exco-action-bar .staff-matrix-export-btns,
  .exco-deep-links,
  .radar-chart-bar button,
  .graph-controls button,
  .history-frames,
  .history-tools,
  .print-pack-controls,
  .table-quick-chips,
  .cf-popover {
    display: none !important;
  }
  .mgmt-chart-box,
  .small-multiple-card,
  .panel {
    break-inside: avoid;
  }
  .print-pack-section {
    break-before: page;
  }
}


/* 5-Line Site Diagnostic Brief & Turnaround Planner */
.cockpit-brief-list { display: flex; flex-direction: column; gap: 0.45rem; }
.cockpit-brief-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.55rem 0.75rem; border-radius: 7px; border-left: 3.5px solid var(--border, #d0dce4); background: var(--surface-alt, #f7fafc); font-size: 0.9rem; }
.cockpit-brief-row.is-worse { border-left-color: #bb5d47; background: rgba(187, 93, 71, 0.08); }
.cockpit-brief-row.is-warn { border-left-color: #b7791f; background: rgba(183, 121, 31, 0.08); }
.cockpit-brief-row.is-better { border-left-color: #137f72; background: rgba(19, 127, 114, 0.08); }
.cockpit-brief-body { flex: 1; line-height: 1.4; }
.cockpit-turnaround-fold { border: 1px solid var(--border, #d4e0e8); border-radius: 10px; padding: 0.75rem 1rem; margin: 0.75rem 0; background: var(--surface, #fff); }
.cockpit-turnaround-fold > summary { cursor: pointer; font-weight: 600; color: var(--ink, #172834); }
.cockpit-turnaround-sliders { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.75rem; margin: 0.75rem 0; }

/* Personal Watchlist & Monday ExCo Pack Drawer */
.watchlist-drawer { position: fixed; top: 4.5rem; right: 1rem; width: min(380px, calc(100vw - 2rem)); max-height: calc(100vh - 6rem); overflow-y: auto; z-index: 1200; background: var(--surface, #fff); color: var(--ink, #172834); border: 1px solid var(--border, #c8d6e0); border-radius: 12px; box-shadow: 0 18px 42px rgba(15, 29, 41, 0.22); padding: 1rem; display: flex; flex-direction: column; gap: 0.85rem; }
.watchlist-drawer[hidden] { display: none; }
.watchlist-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; border-bottom: 1px solid var(--border, #e2e9ef); padding-bottom: 0.6rem; }
.watchlist-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.watchlist-section h4 { margin: 0 0 0.4rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted, #5c7080); }
.watchlist-item { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.3rem 0; border-bottom: 1px dashed var(--border, #e6edf2); }
.watchlist-check { display: flex; align-items: center; gap: 0.45rem; padding: 0.25rem 0; font-size: 0.88rem; cursor: pointer; }
@media print {
  .watchlist-drawer, #watchlist-toggle, .cockpit-turnaround-fold { display: none !important; }
}

/* Intuitiveness & Executive Usability styles (CSP-safe, light + low-glare dark theme compatible) */

/* Always-visible Scope Pill Bar */
.ux-scope-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.55rem;
}
.ux-scope-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.24rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.3;
  border: 1px solid var(--line, #d4d9df);
  background: var(--surface, #f7f9fb);
  color: var(--ink, #1b2832);
  cursor: pointer;
}
.ux-scope-pill:hover {
  border-color: var(--accent, #123b3a);
}
.ux-scope-pill.is-active {
  background: color-mix(in srgb, var(--accent, #123b3a) 12%, transparent);
  border-color: var(--accent, #123b3a);
  color: var(--accent, #123b3a);
  font-weight: 600;
}
.ux-scope-pill.is-locked {
  cursor: default;
  background: color-mix(in srgb, var(--ink, #1b2832) 6%, transparent);
  color: var(--muted, #5c6a76);
}
.ux-scope-pill.is-reset {
  border-style: dashed;
  color: var(--worse, #a63d2d);
  border-color: color-mix(in srgb, var(--worse, #a63d2d) 45%, transparent);
}

/* Home 10-second Morning Briefing & Quick-Start strip */
.ux-morning-brief {
  display: grid;
  gap: 0.85rem;
  margin: 0.75rem 0 1rem;
}
.ux-quickstart {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.95rem;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--accent, #123b3a) 30%, var(--line, #d4d9df));
  background: color-mix(in srgb, var(--accent, #123b3a) 6%, var(--paper, #ffffff));
  font-size: 0.88rem;
}
.ux-quickstart-actions {
  display: flex;
  gap: 0.45rem;
  flex-shrink: 0;
}
.ux-brief-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 0.85rem;
}
.ux-brief-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.95rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--line, #d4d9df);
  border-left: 4px solid var(--accent, #123b3a);
  background: var(--paper, #ffffff);
}
.ux-brief-card.is-retention {
  border-left-color: #b7791f;
}
.ux-brief-card.is-efficiency {
  border-left-color: #123b3a;
}
.ux-brief-card h4 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
}
.ux-brief-body {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted, #5c6a76);
}
.ux-brief-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.35rem;
}
.ux-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted, #5c6a76);
}

/* Strategic Playbooks inside Start Here */
.ux-playbooks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.ux-playbook-card {
  padding: 0.9rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--line, #d4d9df);
  background: var(--surface, #f7f9fb);
}
.ux-playbook-card h4 {
  margin: 0.2rem 0 0.25rem;
  font-size: 0.98rem;
}
.ux-playbook-card p {
  margin: 0 0 0.65rem;
  font-size: 0.84rem;
}
.ux-playbook-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.ux-playbook-step {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.65rem;
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--line, #d4d9df);
  background: var(--paper, #ffffff);
  color: var(--accent, #123b3a);
}
.ux-playbook-step:hover {
  border-color: var(--accent, #123b3a);
  background: color-mix(in srgb, var(--accent, #123b3a) 8%, var(--paper, #ffffff));
}

/* KPI Tile (i) Micro-Tooltip */
.tile.has-ux-tip {
  position: relative;
  padding-right: 1.9rem;
}
.ux-kpi-tip {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line, #c6ced6);
  background: transparent;
  color: var(--muted, #5c6a76);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.ux-kpi-tip:hover,
.ux-kpi-tip:focus-visible {
  border-color: var(--accent, #123b3a);
  color: var(--accent, #123b3a);
}

/* Sticky First Column & Cleaner Wide Table Scanning */
.table-scroll table th:first-child,
.table-scroll table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--paper, #ffffff);
}
.table-scroll table thead th:first-child {
  z-index: 3;
  background: var(--surface, #f7f9fb);
}
.table-scroll table tbody tr:hover td {
  background: color-mix(in srgb, var(--accent, #123b3a) 5%, var(--paper, #ffffff));
}
.ux-key-cols-btn {
  white-space: nowrap;
}

/* Dark theme harmonization */
:root[data-theme="dark"] .ux-brief-card,
:root[data-theme="dark"] .ux-playbook-step,
:root[data-theme="dark"] .table-scroll table td:first-child {
  background: var(--paper, #161d24);
}
:root[data-theme="dark"] .ux-playbook-card,
:root[data-theme="dark"] .ux-scope-pill,
:root[data-theme="dark"] .table-scroll table thead th:first-child {
  background: var(--surface, #1d2630);
}
:root[data-theme="dark"] .ux-scope-pill.is-active,
:root[data-theme="dark"] .ux-playbook-step {
  color: #7cd4c6;
  border-color: #3d7a72;
}

.staff-matrix-controls {
  display: grid;
  gap: 0.75rem;
}

.staff-matrix-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  align-items: end;
}

.staff-matrix-field {
  display: grid;
  gap: 0.25rem;
  font-size: 0.85rem;
}

.staff-matrix-field > span {
  color: var(--muted, #425970);
  font-weight: 600;
}

.staff-matrix-field select,
.staff-matrix-field input {
  width: 100%;
  min-width: 0;
}

.staff-matrix-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.45rem;
  border-top: 1px solid var(--border, #dce5eb);
}

.staff-matrix-export-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.staff-matrix-left-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.staff-matrix-status {
  font-size: 0.86rem;
}

.staff-matrix-search-wrap {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.staff-matrix-search-wrap input {
  flex: 1 1 auto;
}

.staff-matrix-clear {
  flex: 0 0 auto;
  padding: 0.35rem 0.6rem;
}

.staff-matrix-body {
  display: grid;
  gap: 1rem;
}

.staff-matrix-check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  cursor: pointer;
}

/* Charts grid */
.staff-matrix-chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
  gap: 1rem;
  align-items: start;
}

.staff-chart-head p {
  margin: 0 0 0.5rem;
}

.staff-chart-key,
.staff-chart-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-bottom: 0.5rem;
}

.staff-svg-btn {
  margin-left: auto;
}

.staff-chart-slot {
  width: 100%;
  overflow-x: auto;
}

.staff-matrix-svg {
  width: 100%;
  height: auto;
  display: block;
  font-family: inherit;
}

.staff-scatter-dot {
  cursor: pointer;
  transition: fill-opacity 0.12s ease, stroke-width 0.12s ease;
}

.staff-scatter-dot:hover,
.staff-scatter-dot:focus {
  fill-opacity: 1;
  stroke: #203449;
  stroke-width: 2;
  outline: none;
}

.staff-scatter-label {
  pointer-events: none;
}

.staff-bar-row {
  cursor: pointer;
}

.staff-bar-row:hover rect:first-child,
.staff-bar-row:focus rect:first-child {
  fill: #edf4f7;
}

.staff-bar-row:focus {
  outline: none;
}

.staff-chart-readout {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-top: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  background: #f5f8fa;
  border: 1px solid #e1eaef;
  font-size: 0.86rem;
}

/* Staff mix legends & bars */
.staff-overview-mix,
.staff-detail-mix {
  display: grid;
  gap: 0.45rem;
  margin: 0.65rem 0 0.25rem;
}

.staff-mix-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  font-size: 0.82rem;
  color: var(--muted, #425970);
}

.staff-mix-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.staff-mix-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
  flex-shrink: 0;
}

.staff-mix-swatch.round {
  border-radius: 50%;
}

.staff-mix-mini {
  min-width: 96px;
}

.staff-mix-track {
  display: flex;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #e9eff3;
}

.staff-overview-mix .staff-mix-track,
.staff-detail-mix .staff-mix-track {
  height: 14px;
}

.staff-mix-seg {
  height: 100%;
  display: block;
}

/* Site type 100% stacked mix rows */
.staff-type-mix-list {
  display: grid;
  gap: 0.45rem;
  margin: 0.65rem 0;
}

.staff-type-mix-row {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(180px, 1fr) minmax(110px, 130px);
  gap: 0.75rem;
  align-items: center;
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid #e2ebf0;
  border-radius: 8px;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
  transition: border-color 0.12s ease, background-color 0.12s ease;
}

.staff-type-mix-row:hover,
.staff-type-mix-row:focus {
  border-color: #137f72;
  background: #f6fbfa;
  outline: none;
}

.staff-type-mix-row.is-selected {
  border-color: #137f72;
  background: #eaf5f3;
  box-shadow: inset 3px 0 0 #137f72;
}

.staff-type-mix-label,
.staff-type-mix-stat {
  display: grid;
  gap: 0.1rem;
  line-height: 1.25;
}

.staff-type-mix-label strong {
  font-size: 0.88rem;
  color: #203449;
}

.staff-type-mix-stat {
  text-align: right;
}

.staff-type-mix-stat strong {
  font-size: 0.88rem;
  color: #203449;
}

.staff-type-mix-bar {
  display: flex;
  width: 100%;
  height: 24px;
  border-radius: 6px;
  overflow: hidden;
  background: #e9eff3;
}

.staff-type-mix-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
}

/* Variance pills inside matrix table */
.staff-pill {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.84rem;
  white-space: nowrap;
}

.staff-pill.is-worse {
  background: #f9e6e2;
  color: #9b3d28;
}

.staff-pill.is-better {
  background: #e3f4f1;
  color: #0e6358;
}

.staff-pill.is-neutral {
  background: #eef3f6;
  color: #425970;
}

.staff-matrix-review .site-evidence-link.is-selected {
  font-weight: 700;
  text-decoration: underline;
}

.staff-matrix-detail {
  display: grid;
  gap: 0.75rem;
}

@media (max-width: 780px) {
  .staff-matrix-chart-grid {
    grid-template-columns: 1fr;
  }
  .staff-type-mix-row {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
  .staff-type-mix-stat {
    text-align: left;
    display: flex;
    gap: 0.6rem;
    align-items: baseline;
  }
}

.cost-review-intro p { max-width: 100ch; }
.cost-review-filters { position: sticky; top: 80px; z-index: 12; padding: 10px 12px; margin: 16px 0; background: #f5f8f6; border: 1px solid #dce5df; border-radius: 10px; }
.cost-review-filters input { min-width: 230px; flex: 1; }
.cost-review-filters select { max-width: 330px; }
.cost-review-tiles .tile { padding: 14px 16px; }
.cost-review-tiles .tile-label { font-size: .88rem; font-weight: 650; color: #405c53; }
.cost-review-tiles .amount { margin: 5px 0; font-size: clamp(1.3rem, 2vw, 1.85rem); font-variant-numeric: tabular-nums; }
.cost-review-tiles .muted { font-size: .79rem; line-height: 1.4; }
.cost-review-basis { font-size: .84rem; margin: 10px 0 18px; }
.cost-review-ranking { max-height: 490px; overflow: auto; scrollbar-gutter: stable; }
.cost-ranking-row { display: grid; grid-template-columns: minmax(210px, 1.4fr) minmax(90px, 1fr) minmax(180px, .8fr); gap: 18px; align-items: center; padding: 9px 2px; border-bottom: 1px solid #e6ece8; }
.cost-ranking-identity small, .cost-ranking-value small, .cost-table-site small, .cost-review-body td small { display: block; color: #63776e; font-size: .76rem; line-height: 1.4; }
.cost-ranking-identity .site-evidence-link { text-align: left; line-height: 1.35; padding: 0; }
.cost-ranking-value { text-align: right; font-variant-numeric: tabular-nums; }
.cost-ranking-value strong { color: #234e40; }
.cost-ranking-track { height: 10px; border-radius: 5px; background: #edf1ee; overflow: hidden; }
.cost-ranking-track span { display: block; height: 100%; border-radius: inherit; }
.cost-pressure-bar { background: #bb782e; }
.cost-improvement-bar { background: #278277; }
.cost-review-explanation { margin: 16px 0; padding: 12px 16px; border: 1px solid #dce5df; border-radius: 10px; background: white; }
.cost-review-explanation > summary { cursor: pointer; font-weight: 650; color: #294f42; }
.cost-review-explanation > .graph-card { margin-top: 16px; }
.cost-review-body .table-scroll td { padding-top: 7px; padding-bottom: 7px; font-variant-numeric: tabular-nums; }
.cost-table-site { min-width: 185px; }
.cost-review-body .table-scroll td:last-child { min-width: 190px; }
.cost-trend-slot:empty { display: none; }
@media (max-width: 900px) {
  .cost-ranking-row { grid-template-columns: minmax(150px, 1fr) minmax(145px, .65fr); gap: 12px; }
  .cost-ranking-track { display: none; }
  .cost-review-filters { position: static; }
}
@media (max-width: 650px) {
  .cost-review-filters > input, .cost-review-filters > select { width: 100%; max-width: none; min-width: 0; }
  .cost-ranking-row { grid-template-columns: 1fr; gap: 4px; }
  .cost-ranking-value { text-align: left; }
  .cost-review-ranking { max-height: 440px; }
}

.review-links{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px}.review-links a{padding:8px 12px;border:1px solid #d8e3e8;border-radius:7px;background:#fff;font-size:.88rem;text-decoration:none}.review-links a[aria-current=page]{background:#e8f4f0;border-color:#137f72;color:#0c645b;font-weight:650}.review-context{font-weight:600;color:#425970}.shortfall-bridge{display:flex;flex-direction:column;gap:5px;padding:12px 16px;background:#edf5f7;border-radius:8px;margin:12px 0}.shortfall-review>.panel{border:0;padding:0;box-shadow:none}.shortfall-review .toolbar input{flex:1;min-width:180px}.review-rank-scroll{max-height:470px;overflow:auto;overscroll-behavior:auto;padding-right:8px}.review-rank-row{display:grid;grid-template-columns:minmax(180px,1fr) minmax(170px,.7fr);gap:4px 18px;border-bottom:1px solid #e8eef1;padding:10px 2px}.review-rank-row>.site-evidence-link{text-align:left;white-space:normal}.review-rank-values{display:flex;flex-direction:column;align-items:flex-end;gap:3px}.review-rank-track{height:7px;background:#edf1f4;border-radius:3px;grid-column:1/-1}.review-rank-bar{display:block;height:7px;border-radius:3px;background:#137f72;min-width:1px}.review-rank-bar.negative{background:#b55452}.review-rank-values small{font-size:.78rem;text-align:right}.group-cost-lines{margin-top:12px}.selected-region{font-weight:700;color:#09675e}.region-matrix-scroll{overflow:auto;max-height:580px;overscroll-behavior:auto;border:1px solid #dce6eb;border-radius:8px}.region-matrix-scroll table{width:max-content;min-width:100%;border-collapse:separate;border-spacing:0;font-size:.82rem}.region-matrix-scroll td,.region-matrix-scroll th{padding:9px 12px;border-bottom:1px solid #e5edf0;min-width:100px;text-align:right}.region-matrix-scroll th{background:#f3f7f9}.region-matrix-scroll thead th{position:sticky;top:0;z-index:2;white-space:normal;max-width:130px}.region-matrix-scroll th:first-child{position:sticky;left:0;min-width:170px;text-align:left;z-index:1}.region-matrix-scroll thead th:first-child{z-index:3}.region-matrix-scroll .same-region{box-shadow:inset 0 0 0 2px #78b2a9}.matrix-value{border:0;background:transparent;padding:2px;color:#174d50;font:inherit;cursor:pointer}.region-flow-review>.review-ranking{border:0;box-shadow:none;padding:12px 0}.people-review .table-evidence{margin-top:12px}@media(max-width:600px){.review-links{gap:6px}.review-links a{font-size:.8rem;padding:7px 9px}.review-rank-row{grid-template-columns:minmax(0,1fr) minmax(95px,.6fr);gap:6px 10px}.review-rank-values small{overflow-wrap:anywhere}.review-ranking,.region-flow-review,.regions-review,.shortfall-review{min-width:0}.shortfall-review .toolbar>*{max-width:100%}.shortfall-bridge{padding:10px}.region-matrix-scroll{max-width:100%}}@media print{.review-rank-scroll,.region-matrix-scroll{max-height:none;overflow:visible}.review-links,.review-ranking>.toolbar{display:none}.review-rank-bar{print-color-adjust:exact}.region-matrix-scroll th{position:static}}

.flow-review-controls { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 18px; align-items:end; }
.flow-control-field { display:grid; gap:6px; min-width:0; margin:0; font-size:12px; font-weight:600; }
.flow-control-field input,.flow-control-field select { width:100%; min-width:0; min-height:42px; }
.flow-test-search { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; align-items:end; min-width:0; }
.flow-test-search > button { min-height:42px; }
.flow-variant-field { grid-column:1/-1; display:flex; align-items:center; gap:8px; margin:0; font-size:12px; }
.flow-variant-field input { flex:none; }
.flow-control-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; min-height:42px; }
.supporting-route-graph { margin:16px 0; }
.supporting-route-graph > summary { cursor:pointer; padding:12px 14px; border:1px solid var(--line); border-radius:7px; background:#fff; font-size:12px; }
.supporting-route-graph[open] > summary { margin-bottom:12px; }
.additional-source-evidence{margin-top:20px}.additional-source-evidence>summary{font-weight:600;padding:12px;background:#f0f5f8;border-radius:6px}
@container review (max-width:650px) { .flow-review-controls { grid-template-columns:minmax(0,1fr); } .flow-review-controls > * { grid-column:1; } }
@media(max-width:600px) { .flow-review-controls { grid-template-columns:minmax(0,1fr); } .flow-review-controls > * { grid-column:1; } .flow-test-search { grid-template-columns:minmax(0,1fr); } .flow-test-search > button { justify-self:start; } }
.region-margin-explanation{margin:14px 0;border:1px solid #d9e7e4;border-radius:8px;padding:12px 16px;background:#f7fbfa}.region-margin-explanation>summary{font-weight:650;color:#245d55}.region-margin-explanation>.toolbar{margin-top:14px}.margin-formula{padding:12px;border-left:3px solid #137f72;background:#eaf4f1;font-weight:650;overflow-wrap:anywhere}@media(max-width:600px){.region-margin-explanation{padding:10px;min-width:0}.region-margin-explanation .toolbar select{max-width:100%}}
.region-cost-breakdown{min-width:0}.region-cost-breakdown .cost-category{min-width:180px;max-width:300px}.cost-category .site-evidence-link{white-space:normal;text-align:left;margin-bottom:6px}.region-cost-accounts{margin-top:18px}.region-cost-accounts>summary{padding:10px 0;font-weight:650}.region-cost-accounts .toolbar input{flex:1;min-width:160px}.region-cost-accounts .table-scroll{max-height:420px;overflow:auto}.region-cost-breakdown .table-evidence{margin-top:12px}@media(max-width:600px){.region-cost-breakdown .toolbar>*{max-width:100%}.region-cost-breakdown .cost-category{min-width:130px}}
.region-cost-breakdown .tiles{grid-template-columns:repeat(3,minmax(0,1fr))}.region-cost-breakdown .tile{padding:14px}.region-cost-breakdown .amount{font-size:20px;white-space:nowrap;overflow-wrap:normal;word-break:normal}@media(max-width:600px){.region-cost-breakdown .tiles{grid-template-columns:minmax(0,1fr)}}
/* Exact tariff growth keeps long names readable and source tables contained. */
.region-flow-review > .graph-card {border:0;box-shadow:none;padding:12px 0;margin:10px 0 22px;min-width:0}
.region-flow-canvas {max-width:100%;overflow-x:auto;overscroll-behavior:auto;border:1px solid #e1e9ee;border-radius:8px;background:#fff}
.region-flow-canvas > svg {display:block;min-width:900px;width:100%;height:auto;font-family:Arial,sans-serif}
.region-flow-canvas svg:focus,.region-flow-canvas g:focus {outline:2px solid #137f72;outline-offset:-2px}
.test-growth-controls {align-items:end;gap:12px;flex-wrap:wrap}
.test-growth .tiles {grid-template-columns:repeat(3,minmax(0,1fr))}
.test-growth h4 {scroll-margin-top:95px}
.test-growth-controls label {display:flex;flex-direction:column;gap:5px;font-size:12px;min-width:160px;flex:1}
.test-growth-controls select,.test-growth-controls input {width:100%;min-width:0}
.test-growth-ranks {max-height:520px;overflow-y:auto;overscroll-behavior:auto;padding:0 8px 0 0}
.test-growth-rank {display:grid;grid-template-columns:minmax(0,1.4fr) minmax(180px,1fr);gap:5px 16px;padding:10px 0;border-bottom:1px solid var(--border,#dce4eb)}
.test-growth-rank small {display:block;font-size:11px}
.test-growth-rank .site-evidence-link {text-align:left;white-space:normal;overflow-wrap:anywhere}
.test-growth-values {text-align:right;font-variant-numeric:tabular-nums;display:flex;flex-direction:column;gap:3px;font-size:12px}
.test-growth-track {grid-column:1/-1;position:relative;height:5px;background:#eef2f5;border-radius:3px}
.test-growth-track::after {content:"";position:absolute;left:50%;top:-2px;bottom:-2px;width:1px;background:#8496a5}
.test-growth-bar {position:absolute;height:5px;background:#148472;border-radius:2px}
.test-growth-bar.negative {background:#bb5b46}
.test-growth-evidence,.test-growth-table,.test-growth-fold {margin-top:14px}
.test-growth-fold>summary {cursor:pointer;font-weight:650;padding:12px}
@media(max-width:600px){.test-growth .tiles{grid-template-columns:minmax(0,1fr)}.test-growth-rank{grid-template-columns:minmax(0,1fr)}.test-growth-values{text-align:left;flex-direction:row;flex-wrap:wrap;gap:8px}.test-growth-controls label{min-width:130px}.test-growth-ranks{max-height:420px}}

.routing-review {scroll-margin-top:calc(var(--header-height) + var(--review-bar-height, 0px) + 16px)}
.routing-review-controls {display:flex;gap:12px;flex-wrap:wrap;align-items:flex-end;margin:12px 0}
.routing-review-controls .site-picker {min-width:260px;max-width:420px;flex:1}
.routing-review-controls:not(:has([data-review-placement])) {display:none}
.review-bar .review-page-filters>label:has(select[aria-label="Routing comparison"]) {flex:0 1 250px;max-width:290px;min-width:220px}
.routing-review-row {border:1px solid var(--border,#dce4e5);border-radius:12px;padding:18px;margin:14px 0;background:var(--panel,#fff)}
.routing-row-heading {display:flex;gap:12px;justify-content:space-between;align-items:start}
.routing-row-heading .site-evidence-link {font-size:1.08rem;font-weight:700;text-align:left}
.routing-status {border-radius:20px;padding:5px 10px;background:#edf4f3;color:#285550;font-size:.78rem;white-space:nowrap}
.routing-status.material {background:#fff1dd;color:#80571c}.routing-status.incomplete {background:#eef0f5;color:#505d78}
.routing-review-row p {margin:8px 0}.routing-destination-change {font-weight:600}
.routing-destination-summary {margin:12px 0;min-width:0;overflow-wrap:anywhere}.routing-destination-summary p {margin:5px 0}.routing-destination-summary .muted {font-size:.84rem}.routing-largest-change {font-size:.87rem;font-weight:600}
.routing-row-metrics {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:10px 0}
.routing-row-metrics div {display:flex;flex-direction:column;gap:3px}.routing-row-metrics small {color:var(--muted,#5b6f77)}.routing-row-metrics strong {font-size:1.15rem}
.routing-profit-summary {padding:13px 15px;margin:12px 0;background:#f3f7fa;border:1px solid #d9e4eb;border-radius:9px;min-width:0}
.routing-profit-label {font-size:.82rem;color:#345366}.routing-profit-metrics {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:10px 0}
.routing-profit-metrics>div {display:flex;flex-direction:column;gap:5px}.routing-profit-metrics small {font-size:.77rem;color:#526875}.routing-profit-metrics strong {font-size:1.12rem;font-variant-numeric:tabular-nums}
.routing-profit-up {color:#176a52}.routing-profit-down {color:#a43e3a}.routing-profit-components {font-size:.82rem}.routing-profit-coverage {display:block;font-size:.74rem;color:#526875;line-height:1.5}
.routing-profit-gap {font-size:.8rem;color:#6c5b37}.routing-matched-note {padding:10px 12px;background:#edf4f8;border-radius:7px}.routing-paired-months,.routing-cost-evidence {margin:12px 0}
.routing-evidence .routing-history-panels {min-width:0}.routing-evidence .toolbar label {display:grid;gap:5px;font-size:.83rem}
.routing-share-figure {margin:14px 0}.routing-share-figure figcaption {margin-bottom:8px;font-size:.82rem}
.routing-share-line {display:grid;grid-template-columns:95px minmax(120px,1fr) 125px;gap:10px;align-items:center;margin:8px 0;font-size:.83rem}
.routing-share-line>strong {text-align:right;font-variant-numeric:tabular-nums}.routing-period-label {color:var(--muted,#5b6f77)}
.routing-share-track {display:flex;height:28px;border-radius:5px;overflow:hidden;background:#edf0f1;min-width:0}
.routing-share-segment {display:flex;flex-shrink:0;align-items:center;justify-content:center;color:white;font-size:.75rem;font-weight:600;overflow:hidden}
.routing-no-share {padding:5px 8px;color:#5b6f77;font-size:.76rem}
.routing-share-legend {display:flex;flex-wrap:wrap;gap:6px 15px;margin-top:10px;font-size:.76rem;color:var(--muted,#5b6f77)}
.routing-share-legend>span {display:inline-flex;align-items:center;gap:5px;min-width:0}.routing-share-legend i {width:10px;height:10px;flex:0 0 10px;border-radius:2px}
.routing-row-actions,.routing-next-steps,.routing-exports {display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.routing-counts {padding:10px 12px;background:#f0f5f5;border-radius:8px;font-weight:600}
.routing-coverage-queue,.routing-method {margin:16px 0}.routing-evidence {min-width:0}.routing-evidence .routing-period-label {line-height:1.3}
.routing-evidence .routing-share-line {grid-template-columns:140px minmax(120px,1fr) 125px}
@media(max-width:700px) {
 .review-bar .review-page-filters>label:has(select[aria-label="Routing comparison"]) {flex:1 0 100%;max-width:none;min-width:0}
 .routing-review-row {padding:12px}.routing-row-heading {flex-direction:column;gap:7px}.routing-status {white-space:normal}
 .routing-row-metrics {grid-template-columns:repeat(2,minmax(0,1fr))}.routing-row-metrics strong {font-size:1rem}
 .routing-profit-metrics {grid-template-columns:1fr;gap:12px}.routing-profit-metrics>div {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}.routing-profit-metrics strong {font-size:1rem}
 .routing-share-line,.routing-evidence .routing-share-line {grid-template-columns:70px minmax(0,1fr);gap:5px 8px}
 .routing-share-line>strong {grid-column:2;font-size:.78rem;text-align:right}.routing-share-track {height:26px}
 .routing-share-legend {display:grid;grid-template-columns:1fr;gap:5px}.routing-share-legend>span {overflow-wrap:anywhere}
 .routing-review-controls .site-picker {min-width:0;max-width:none;width:100%}.routing-next-steps>* {max-width:100%}
}
@media print {.routing-row-actions,.routing-next-steps,.routing-exports,.routing-review-controls {display:none}.routing-review-row {break-inside:avoid}.routing-share-segment {print-color-adjust:exact;-webkit-print-color-adjust:exact}}

/* Centralisation economics: tabs, controls, the scale chart, move cards and the scenario form. */
.centralisation-review .central-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.centralisation-review .central-tabs button[aria-pressed="true"] { background: #203449; color: #fff; border-color: #203449; }
.centralisation-review .central-scope { margin: 2px 0 10px; }
.centralisation-review .central-controls { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end; margin: 6px 0 12px; }
.centralisation-review .central-field { display: flex; flex-direction: column; gap: 4px; font-size: 0.86rem; color: #425970; max-width: 100%; }
.centralisation-review .central-field input[type="number"], .centralisation-review .central-field select { min-width: 9rem; max-width: 100%; }
.centralisation-review .central-field input[type="checkbox"] { width: 1.1rem; height: 1.1rem; }
.centralisation-review .central-assumption { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 9px; background: #fff3dc; color: #7a4b05; font-size: 0.75rem; font-weight: 600; vertical-align: middle; }
.centralisation-review .central-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 4px 0 8px; font-size: 0.85rem; color: #203449; }
.centralisation-review .central-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.centralisation-review .central-scale .graph-canvas svg, .centralisation-review .central-range svg { width: 100%; height: auto; display: block; }
.centralisation-review .central-legend svg { width: 14px; height: 14px; flex: none; }
.centralisation-review .central-moves { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin: 10px 0; }
.centralisation-review .central-move { border: 1px solid #d8e1de; border-radius: 8px; padding: 10px 12px; background: #fff; min-width: 0; }
.centralisation-review .central-move h4 { margin: 0 0 4px; font-size: 0.95rem; overflow-wrap: anywhere; }
.centralisation-review .central-move p { margin: 4px 0; font-size: 0.85rem; overflow-wrap: anywhere; }
.centralisation-review .central-move-result { color: #203449; font-weight: 600; }
.centralisation-review .central-flag { color: #7a4b05; }
.centralisation-review .central-kind { display: inline-block; padding: 0 6px; border-radius: 9px; background: #e8eef5; color: #203449; font-size: 0.75rem; }
.central-spark { width: 100%; max-width: 340px; height: auto; display: block; margin: 4px 0; }
.centralisation-review .central-turnaround { margin: 8px 0; }
.centralisation-review .central-turnaround-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 14px; margin: 8px 0; }
.centralisation-review .central-picks { display: flex; flex-wrap: wrap; gap: 6px 14px; border: 1px solid #d8e1de; border-radius: 6px; padding: 8px 10px; margin: 8px 0; }
.centralisation-review .central-pick { display: inline-flex; gap: 6px; align-items: center; font-size: 0.86rem; }
.centralisation-review .central-notes { margin: 16px 0; }
.central-detail h4 { margin: 14px 0 6px; }
@media (max-width: 640px) {
  .centralisation-review .central-tabs button { flex: 1 1 45%; }
  .centralisation-review .central-controls { flex-direction: column; align-items: stretch; }
  .centralisation-review .central-field input[type="number"], .centralisation-review .central-field select { width: 100%; }
  .centralisation-review .central-moves { grid-template-columns: 1fr; }
}

/* Close or fix: tabs, assumption controls, the recommendation badges and the one-site pack. */
.close-or-fix-review .closefix-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.close-or-fix-review .closefix-tabs button[aria-pressed="true"] { background: #203449; color: #fff; border-color: #203449; }
.close-or-fix-review .closefix-controls { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end; margin: 6px 0 12px; }
.close-or-fix-review .closefix-field { display: flex; flex-direction: column; gap: 4px; font-size: 0.86rem; color: #425970; max-width: 100%; }
.close-or-fix-review .closefix-field input, .close-or-fix-review .closefix-field select { min-width: 9rem; max-width: 100%; }
.close-or-fix-review .closefix-assumption { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 9px; background: #fff3dc; color: #7a4b05; font-size: 0.75rem; font-weight: 600; vertical-align: middle; }
.closefix-call { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 0.8rem; font-weight: 600; white-space: nowrap; }
.closefix-call-close { background: #f6e6e2; color: #8f3a2b; }
.closefix-call-fix { background: #e5f2ec; color: #0f5f55; }
.closefix-call-watch { background: #eef1f5; color: #34495e; }
.closefix-missing { color: #7a4b05; }
.close-or-fix-review .closefix-headline { font-size: 1.05rem; color: #203449; margin: 6px 0 10px; }
.close-or-fix-review .closefix-reason { border-left: 4px solid #8aa299; padding: 6px 10px; margin: 8px 0; background: #f6f9f8; color: #203449; }
.close-or-fix-review .closefix-steps td:last-child, .close-or-fix-review .closefix-steps th:last-child { text-align: right; }
.close-or-fix-review .closefix-pick { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end; margin: 6px 0 12px; }
.close-or-fix-review .closefix-notes { margin: 16px 0; }
.closefix-import table { margin-top: 8px; }
@media (max-width: 640px) {
  .close-or-fix-review .closefix-tabs button { flex: 1 1 45%; }
  .close-or-fix-review .closefix-controls, .close-or-fix-review .closefix-pick { flex-direction: column; align-items: stretch; }
  .close-or-fix-review .closefix-field input, .close-or-fix-review .closefix-field select { width: 100%; }
}

.fte-review { min-width: 0; }
.fte-filters { display:flex; flex-wrap:wrap; gap:12px; align-items:end; margin:12px 0 18px; }
.fte-filters .graph-control { flex:1 1 160px; min-width:0; max-width:310px; }
.fte-filters select { width:100%; min-width:0; }
.fte-context { color:#425970; font-weight:600; margin:8px 0 14px; }
.fte-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:0 0 18px; }
.fte-summary-card { border:1px solid #dce5e2; border-radius:10px; background:white; padding:14px; display:flex; flex-direction:column; gap:7px; min-width:0; }
.fte-summary-card span { color:#425970; font-size:.85rem; }
.fte-summary-card strong { font-size:1.5rem; color:#203449; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.fte-summary-card small { color:#526a75; font-size:.8rem; }
.fte-history-card { position:relative; min-width:0; }
.fte-scale-note,.fte-change-note { color:#526a75; font-size:.83rem; }
.fte-charts { min-width:0; }
.fte-charts .graph-plot { margin:0; padding:0; border:0; box-shadow:none; }
.fte-charts .graph-view-tools { display:none; }
.fte-charts h4 { margin:8px 0 4px; color:#203449; font-size:.9rem; }
.fte-charts .graph-canvas { overflow:hidden; }
.fte-downloads { display:flex; flex-wrap:wrap; gap:8px; margin:10px 0; }
.fte-inspection { display:flex; flex-wrap:wrap; gap:6px 18px; font-variant-numeric:tabular-nums; margin-top:10px; }
.fte-evidence,.fte-comparison { border:1px solid #dce5e2; border-radius:9px; padding:12px; margin:14px 0; background:white; min-width:0; }
.fte-evidence > summary,.fte-comparison > summary { cursor:pointer; font-weight:600; color:#203449; }
.fte-evidence > .panel { border:0; box-shadow:none; padding:12px 0; margin-bottom:0; }
.fte-drill { padding:0; border:0; background:transparent; box-shadow:none; color:#16796e; text-align:left; white-space:normal; font-weight:600; text-decoration:underline; text-underline-offset:3px; }
.fte-review .table-scroll { max-width:100%; }
.fte-company-trends { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-top:12px; }
.fte-company-trends > div { min-width:0; }
@media(max-width:1000px) { .fte-summary { grid-template-columns:repeat(2,minmax(0,1fr)); } .fte-summary-card strong { font-size:1.3rem; } .fte-company-trends { grid-template-columns:1fr; } }
@media(max-width:520px) { .fte-filters { gap:10px; } .fte-filters .graph-control { flex:1 1 135px; max-width:none; } .fte-summary { gap:8px; } .fte-summary-card { padding:10px; } .fte-summary-card strong { font-size:1.12rem; } .fte-summary-card span,.fte-summary-card small { font-size:.75rem; } .fte-inspection { display:grid; grid-template-columns:1fr; gap:7px; } .fte-evidence,.fte-comparison { padding:10px; } }

.management-controls{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0 18px}.management-field{display:grid;gap:6px;min-width:180px;font-size:.78rem;color:#536963;flex:1}.management-field select,.management-field input{width:100%;min-width:0}.management-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0}.management-tile{display:grid;gap:12px;border:1px solid #dce6e2;border-radius:8px;padding:16px;background:#f9fbfa}.management-tile>span:first-child{font-size:.8rem;color:#576b64}.management-tile>span:last-child{font-size:1.3rem;font-weight:650;color:#203c35}.management-fold{border:1px solid #dce6e2;border-radius:8px;padding:14px 16px;margin:16px 0;background:white;min-width:0;scroll-margin-top:90px}.management-fold>summary{cursor:pointer;font-weight:600;color:#284a42}.management-fold[open]>summary{margin-bottom:16px}.management-fold p{font-size:.85rem;line-height:1.6}.company-tree-node{margin:8px 0;border:1px solid #dce6e2;border-radius:6px;padding:12px}.company-tree-node>summary{display:flex;gap:12px;justify-content:space-between;cursor:pointer;font-size:.85rem}.company-tree-node>summary::before{content:'▸';color:#137f72}.company-tree-node[open]>summary::before{content:'▾'}.company-tree-node>summary>span{font-size:.78rem;color:#5b7069}.company-tree-node>.company-tree-node{margin-left:16px}.company-tree-node>button{margin:12px 0 4px}.forecast-reliability{background:#f4f8f6;border:1px solid #dce6e2;border-radius:8px;padding:16px;margin:18px 0}.forecast-reliability h4{margin:0 0 12px}.forecast-reliability select{max-width:220px;margin-bottom:12px}.forecast-reliability p{font-size:.85rem;line-height:1.5}.forecast-reliability small{display:block;color:#61756d;font-size:.75rem;line-height:1.5}.period-alignment{position:relative;font-size:.8rem;margin-left:auto}.period-alignment>summary{cursor:pointer;color:#31594f;white-space:nowrap}.period-alignment[open]{flex-basis:100%;margin:12px 0 0;background:#f5f9f7;padding:12px;border:1px solid #dce6e2;border-radius:6px}.period-alignment p{line-height:1.5}.period-alignment select{max-width:330px}.site-compare-tools{display:flex;gap:12px;flex-wrap:wrap;margin:14px 0}.site-compare-tools select{max-width:320px}.site-comparison-table td,.site-comparison-table th{max-width:none;white-space:normal;min-width:145px}.site-comparison-table th:first-child{min-width:190px}.profit-change-link{border:0;background:none;padding:0;color:inherit;text-align:left;font:inherit;cursor:pointer;text-decoration:underline;text-underline-offset:5px}
@media(max-width:800px){.management-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.management-field{min-width:150px}.company-tree-node>summary{display:grid;gap:8px}.company-tree-node>summary::before{display:none}.company-tree-node>.company-tree-node{margin-left:6px}.period-alignment{margin:10px 0 0;flex-basis:100%}.period-alignment>summary{white-space:normal}}
@media(max-width:400px){.management-controls{gap:9px}.management-field{min-width:0;flex-basis:100%}.management-tile{padding:12px}.management-tile>span:last-child{font-size:1.05rem}.management-fold{padding:12px}.company-tree-node{padding:10px}}
.management-tile-exact{display:block;color:#536963;font-size:.78rem;font-variant-numeric:tabular-nums;margin-top:2px}

.history-review { min-width: 0; }
.history-context { color: #425970; font-weight: 600; margin: 8px 0 12px; overflow-wrap: anywhere; }
.history-frames { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 10px; }
.history-frame { border: 1px solid #c9d6d3; background: white; color: #203449; border-radius: 999px; padding: 8px 16px; min-height: 40px; font-weight: 600; }
.history-frame:hover { border-color: #147c73; }
.history-frame[aria-pressed="true"] { background: #147c73; border-color: #147c73; color: white; }
.history-frame-caption { color: #526a75; font-size: 0.9rem; margin-left: 8px; }
.history-custom { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 12px; }
.history-custom[hidden] { display: none; }
.history-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin: 0 0 14px; }
.history-tools .graph-control { flex: 1 1 140px; min-width: 0; max-width: 260px; }
.history-tools .graph-control:first-child { flex: 2 1 230px; max-width: 420px; }
.history-tools .graph-control[hidden] { display: none; }
.history-tools select, .history-tools input[type="search"] { width: 100%; min-width: 0; min-height: 38px; font-size: 12px; }
.history-check { display: flex; align-items: center; gap: 8px; min-height: 38px; font-weight: 600; color: #203449; font-size: 0.85rem; }
.history-check[hidden] { display: none; }
.history-viewbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px; margin: 6px 0 12px; border-bottom: 1px solid #dce5e2; padding-bottom: 12px; }
.history-views { margin: 0; gap: 6px; border: 0; }
.history-views button { border: 1px solid #c9d6d3; background: white; color: #203449; border-radius: 999px; padding: 8px 16px; min-height: 40px; font-weight: 600; }
.history-views button:hover { border-color: #147c73; }
.history-views button[aria-pressed="true"] { background: #147c73; border-color: #147c73; color: white; }
.history-status { color: #526a75; min-height: 1.4em; margin: 0 0 8px; }
.history-body { min-width: 0; }
.history-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 0 0 16px; }
.history-card { border: 1px solid #dce5e2; border-radius: 10px; background: white; padding: 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.history-card > span { color: #425970; font-size: 0.85rem; }
.history-card > strong { font-size: 1.45rem; color: #203449; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.history-card > small { color: #526a75; font-size: 0.8rem; }
.history-delta { font-variant-numeric: tabular-nums; color: #526a75; font-size: 0.8rem; font-weight: 600; }
.history-delta.good { color: #13665d; }
.history-delta.bad { color: #a43a26; }
.history-chart { position: relative; min-width: 0; }
.history-chart .graph-canvas { overflow: hidden; }
.history-fymode { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.history-fymode button.subtle-button[aria-pressed="true"] { background: #147c73; border-color: #147c73; color: white; }
.history-numbers, .history-coverage { border: 1px solid #dce5e2; border-radius: 9px; padding: 12px; margin: 14px 0; background: white; min-width: 0; }
.history-numbers > summary, .history-coverage > summary { cursor: pointer; font-weight: 600; color: #203449; }
.history-numbers > .panel { border: 0; box-shadow: none; padding: 12px 0; margin-bottom: 0; }
.history-coverage ul { margin: 10px 0; padding-left: 20px; }
.history-group { margin: 0 0 20px; }
.history-group h3 { margin: 0 0 8px; color: #203449; font-size: 1rem; }
.history-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.history-tile { text-align: left; border: 1px solid #dce5e2; background: white; border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; color: #203449; font: inherit; }
.history-tile:hover { border-color: #147c73; box-shadow: 0 1px 6px rgba(20, 124, 115, 0.18); }
.history-tile-name { color: #425970; font-size: 0.85rem; font-weight: 600; }
.history-tile strong { font-size: 1.2rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.history-spark { width: 100%; height: 34px; margin-top: 4px; }
.history-spark-line { fill: none; stroke: #137f72; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.history-spark-dot { fill: #137f72; }
@media (max-width: 700px) {
  .history-frame { padding: 7px 12px; min-height: 38px; }
  .history-frame-caption { flex-basis: 100%; margin: 4px 0 0; }
  .history-tools { gap: 10px; }
  .history-tools .graph-control { flex: 1 1 135px; max-width: none; }
  .history-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .history-card { padding: 10px; }
  .history-card > strong { font-size: 1.1rem; }
  .history-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .history-chart .graph-canvas svg { min-width: 0; }
}

.scheme-analysis{min-width:0}.scheme-intro{padding:18px 22px;border:1px solid #dbe7e9;border-radius:14px;background:#f4f8fa;margin-bottom:18px}.scheme-intro strong{font-size:1.08rem;color:#213d50}.scheme-intro p{max-width:1050px;margin:8px 0;color:#526575;line-height:1.6}.scheme-intro button{margin:8px 10px 0 0}.scheme-controls{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:14px 0}.scheme-filter{display:flex;flex-direction:column;gap:6px;min-width:180px;max-width:100%;font-size:.84rem;font-weight:600;color:#435b6b}.scheme-filter select{max-width:340px;min-width:180px}.scheme-controls input{width:390px;max-width:100%}.scheme-view-nav{display:flex;gap:8px;flex-wrap:wrap;border-bottom:1px solid #dce6ea;padding:0 0 16px;margin:12px 0 20px}.scheme-view-nav button{background:#fff;color:#3e5668;border:1px solid #d3e0e4;border-radius:9px}.scheme-view-nav button[aria-pressed=true]{background:#214c62;color:#fff;border-color:#214c62}.scheme-graph-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.scheme-graph-grid>*{min-width:0}.scheme-heatmap-scroll{overflow-x:auto;max-width:100%;border:1px solid #dce6ea;border-radius:10px;margin:12px 0}.scheme-heatmap{min-width:600px;width:100%;border-collapse:collapse}.scheme-heatmap td,.scheme-heatmap th{padding:12px;white-space:nowrap;border-bottom:1px solid #e6edef;text-align:left}.scheme-heatmap th{font-size:.8rem;background:#f3f7f9;color:#345266}.scheme-heatmap td strong,.scheme-heatmap td small{display:block}.scheme-heatmap td small{font-size:.72rem;margin-top:5px}.scheme-heat-up{background:#e2f1ed;color:#1e5b50}.scheme-heat-down{background:#fae9e5;color:#824438}.scheme-heat-flat{background:#f0f4f6;color:#586977}.scheme-evidence{padding:14px 18px;border:1px solid #dce6ea;border-radius:12px;margin:18px 0}.scheme-evidence summary{font-weight:600;color:#365569;cursor:pointer}.scheme-evidence p{line-height:1.65}.scheme-detail{min-width:0}.scheme-detail .scheme-graph-grid{grid-template-columns:1fr}@media(max-width:1050px){.scheme-graph-grid{grid-template-columns:1fr}}@media(max-width:650px){.scheme-intro{padding:14px}.scheme-filter{width:100%;min-width:0}.scheme-filter select{width:100%;max-width:100%;min-width:0}.scheme-view-nav{display:grid;grid-template-columns:1fr 1fr}.scheme-view-nav button{padding:10px;font-size:.8rem}.scheme-controls{align-items:stretch}.scheme-heatmap td,.scheme-heatmap th{padding:10px}.scheme-evidence{padding:12px}}
body:not(.entry-mode) .scheme-analysis .scheme-view-nav .subtle-button[aria-pressed="true"]{background:#214c62;color:#fff;border-color:#214c62}

.scheme-headlines{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}.scheme-kpi{border:1px solid #d4e3e3;border-top:2px solid #bdd4d1;border-radius:12px;background:#fff;padding:18px;min-width:0}.scheme-kpi h3{font-size:.84rem;color:#385364;margin:0 0 20px}.scheme-kpi-value{display:block;font-size:1.65rem;color:#173d4c;overflow-wrap:anywhere}.scheme-kpi p{font-size:.78rem;line-height:1.5;color:#526575;margin:8px 0 0}.scheme-scope,.scheme-company-context{padding:12px 16px;border:1px solid #dbe7e9;border-radius:10px;background:#f4f8fa;line-height:1.6}.scheme-active-filters{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.scheme-controls input[type=number]{width:170px}.scheme-controls input[type=search]{width:280px}.scheme-analysis .scheme-header-controls{margin:0}.scheme-header-controls .site-picker{min-width:210px;max-width:300px}.scheme-analysis .toolbar{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.scheme-detail .scheme-kpi-value{font-size:1.3rem}
@media(max-width:1100px){.scheme-headlines{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:450px){.scheme-headlines{grid-template-columns:1fr}.scheme-kpi h3{margin-bottom:12px}.scheme-kpi-value{font-size:1.5rem}.scheme-controls input[type=number],.scheme-controls input[type=search]{width:100%}.scheme-analysis .scheme-controls>label{width:100%}.scheme-view-nav{grid-template-columns:1fr}.scheme-header-controls .site-picker{max-width:100%;min-width:0}.scheme-active-filters button{max-width:100%;white-space:normal}}
/* Negotiation workbench and payer-family upload (scheme-negotiation.js). */
.scheme-negotiation{min-width:0}.scheme-negotiation-controls .site-picker{min-width:240px;max-width:360px}.scheme-negotiation-controls>button{align-self:end}.scheme-negotiation-notice{border-color:#e6d9b8;background:#fbf7ec}.scheme-family-upload input[type=file]{display:block;margin:8px 0 12px}.scheme-family-upload .toolbar{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.scheme-family-preview{margin-top:12px}@media(max-width:650px){.scheme-negotiation-controls .site-picker{max-width:100%;min-width:0;width:100%}}

/* Collections and non-payment (web/collections.js). */
.collections-waiting {
  list-style: none;
  margin: 0.5rem 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.collections-waiting li {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  column-gap: 0.6rem;
  row-gap: 0.1rem;
  align-items: baseline;
}
.collections-waiting li > .muted {
  grid-column: 2;
}
.collections-chip {
  display: inline-block;
  min-width: 7.5rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.8rem;
  text-align: center;
  border: 1px solid #b9c6c3;
  background: #f4f7f6;
  color: #203449;
}
.collections-chip-ready {
  border-color: #2c8a5a;
  color: #1f6643;
}
.collections-chip-partial {
  border-color: #b28a1e;
  color: #6f5512;
}
.collections-chip-waiting {
  border-style: dashed;
  color: #425970;
}
.collections-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin: 0.6rem 0;
}
.collections-format summary,
.collections-notes summary {
  cursor: pointer;
  font-weight: 600;
  margin: 0.4rem 0;
}
.collections-preview h4 {
  margin: 1rem 0 0.4rem;
}
.collections-warnings {
  margin: 0.3rem 0 0.6rem 1.1rem;
  padding: 0;
}
.collections-notes {
  margin-top: 1rem;
}
@media (max-width: 600px) {
  .collections-waiting li {
    grid-template-columns: 1fr;
  }
  .collections-waiting li > .muted {
    grid-column: 1;
  }
  .collections-chip {
    min-width: 0;
    justify-self: start;
  }
}

.daily-header-controls,.daily-view-nav,.daily-downloads,.daily-priority-controls{display:flex;flex-wrap:wrap;gap:.75rem;align-items:end}.daily-header-controls{margin-bottom:1rem}.daily-filter{display:grid;gap:.35rem;min-width:10rem}.daily-filter>span{font-size:.8rem;font-weight:600}.daily-header-controls>.site-picker{min-width:min(25rem,100%);max-width:100%;flex:1}.daily-scope{font-weight:600;line-height:1.6}.daily-readiness-banner{display:flex;flex-wrap:wrap;align-items:center;gap:.65rem 1.25rem;padding:1rem;border:1px solid #c7dfd9;border-radius:.65rem;background:#eff8f5;margin:1rem 0}.daily-readiness-banner strong{width:100%}.daily-readiness-banner.has-concerns{background:#fff8e9;border-color:#e5cd91}.daily-headlines{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.daily-kpi{padding:1.15rem;border:1px solid var(--line,#dce5e5);border-radius:.7rem;background:var(--surface,#fff)}.daily-kpi h3{font-size:.85rem;margin:0 0 .6rem}.daily-kpi>strong{font-size:clamp(1.3rem,2.1vw,2rem);display:block;overflow-wrap:anywhere}.daily-kpi p{font-size:.8rem;margin:.55rem 0 0;color:var(--muted,#516575)}.daily-view-nav{margin:1.25rem 0}.daily-view-nav button[aria-pressed=true]{background:#153f49;color:#fff;border-color:#153f49}.daily-downloads{margin:1rem 0}.daily-downloads small{flex-basis:100%}.daily-priority-controls{margin-bottom:1rem}.daily-site-links{display:flex;flex-wrap:wrap;gap:.5rem;min-width:11rem}.daily-calendar-grid{width:100%;border-collapse:separate;border-spacing:.35rem;min-width:48rem}.daily-calendar-grid th{font-size:.75rem;text-align:left;padding:.45rem}.daily-calendar-grid td{padding:0;vertical-align:top}.daily-calendar-cell{width:100%;min-height:4rem;font-size:.76rem;padding:.5rem;text-align:left;border:1px solid #d5e4df;border-radius:.4rem;color:#183c45}.daily-calendar-cell.missing{background:#eff0f2;color:#52606c;border-style:dashed}.daily-calendar-cell.sparse{background:repeating-linear-gradient(135deg,#fff4d8,#fff4d8 6px,#f6e1ac 6px,#f6e1ac 10px);border-color:#c6a660}.daily-observations{padding:1rem;border:1px solid var(--line,#dce5e5);border-radius:.6rem;margin:1rem 0}.daily-observations>summary{font-weight:600;cursor:pointer}.daily-activity-review>.graph-section{margin:1rem 0}.daily-activity-review table td{overflow-wrap:anywhere}
@media(max-width:700px){.daily-headlines{grid-template-columns:1fr}.daily-filter,.daily-priority-controls>label{width:100%;min-width:0}.daily-filter input,.daily-filter select{width:100%}.daily-view-nav{display:grid;grid-template-columns:1fr 1fr}.daily-view-nav button{white-space:normal}.daily-readiness-banner{align-items:flex-start;flex-direction:column}.daily-header-controls>.site-picker{min-width:0;width:100%}}

.daily-activity-review>.financial-readiness{display:none}
body:not(.entry-mode) .daily-view-nav{border:0;overflow:visible}
body:not(.entry-mode) .daily-view-nav button{padding:10px 14px;border:1px solid #cbd6df;border-radius:8px;background:#fff;color:#354f65}
body:not(.entry-mode) .daily-view-nav button[aria-pressed=true]{background:#153f49;color:#fff;border-color:#153f49}

.pvm-header-controls,.pvm-view-nav,.pvm-downloads,.pvm-driver-controls,.pvm-history-controls,.pvm-next,.pvm-pagination,.pvm-driver-links{display:flex;flex-wrap:wrap;gap:.7rem;align-items:end}.pvm-filter{display:grid;gap:.35rem;min-width:10rem}.pvm-filter>span{font-size:.8rem;font-weight:600}.pvm-header-controls>.site-picker{flex:1;min-width:min(24rem,100%)}.pvm-scope{font-weight:600;line-height:1.6}.pvm-coverage{display:flex;flex-wrap:wrap;gap:.65rem 1.2rem;align-items:center;padding:1rem;border:1px solid #c7dfd9;border-radius:.65rem;background:#eff8f5;margin:1rem 0}.pvm-coverage strong{width:100%}.pvm-coverage.has-concerns{background:#fff8e9;border-color:#e5cd91}.pvm-headlines{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.pvm-kpi{padding:1.15rem;border:1px solid var(--line,#dce5e5);border-radius:.7rem;background:var(--surface,#fff)}.pvm-kpi h3{font-size:.85rem;margin:0 0 .6rem}.pvm-kpi>strong{font-size:clamp(1.3rem,2.1vw,2rem);display:block;overflow-wrap:anywhere}.pvm-kpi p{font-size:.8rem;margin:.55rem 0 0;color:var(--muted,#516575)}.pvm-finding{font-size:1.05rem;padding:.85rem 1rem;background:#edf3f7;border-radius:.5rem;line-height:1.6}.pvm-view-nav{margin:1.25rem 0}.pvm-downloads,.pvm-pagination,.pvm-next{margin:1rem 0}.pvm-downloads small{flex-basis:100%}.pvm-driver-controls,.pvm-history-controls{margin-bottom:1rem}.pvm-driver-links{min-width:13rem;align-items:start}.pvm-review table td{overflow-wrap:anywhere}.pvm-review>.financial-readiness{display:none}body:not(.entry-mode) .pvm-view-nav{border:0;overflow:visible}body:not(.entry-mode) .pvm-view-nav button{padding:10px 14px;border:1px solid #cbd6df;border-radius:8px;background:#fff;color:#354f65}body:not(.entry-mode) .pvm-view-nav button[aria-pressed=true]{background:#153f49;color:#fff;border-color:#153f49}
@media(max-width:700px){.pvm-headlines{grid-template-columns:1fr}.pvm-filter{width:100%;min-width:0}.pvm-filter input,.pvm-filter select{width:100%}.pvm-view-nav{display:grid;grid-template-columns:1fr 1fr}.pvm-view-nav button{white-space:normal}.pvm-coverage{align-items:flex-start;flex-direction:column}.pvm-header-controls>.site-picker{min-width:0;width:100%}}

.operating-review-fold { margin: 14px 0; padding: 14px 16px; border: 1px solid #d5e3dc; border-radius: 10px; background: #fff; min-width: 0; }
.operating-review-fold > summary { cursor: pointer; color: #234f42; font-weight: 650; line-height: 1.4; }
.operating-review-fold[open] > summary { margin-bottom: 14px; }
.operating-review-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.operating-review-controls > select,.operating-review-controls > input { max-width: 100%; min-width: 0; }
.operating-review-fold .panel { margin-top: 14px; }
.operating-site { min-width: 175px; }
.operating-site small { display: block; color: #657b70; font-size: .76rem; }
.operating-review-fold td { padding-top: 7px; padding-bottom: 7px; font-variant-numeric: tabular-nums; }
.operating-detail .graph-card { margin: 16px 0; }
.operating-detail .panel { margin-bottom: 16px; }
@media (max-width: 650px) { .operating-review-controls > select,.operating-review-controls > input { width: 100%; } .operating-review-fold { padding: 12px; } }

.doctor-utilization { min-width: 0; max-width: 100%; }
.doctor-utilization-controls { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.doctor-utilization-controls > * { min-width: 0; max-width: 100%; }
.doctor-utilization-controls input { flex: 1; min-width: 180px; }
.doctor-utilization-caption { line-height: 1.65; color: #536860; }
.doctor-utilization-fold { padding: 14px 16px; background: white; border: 1px solid #d7e2dd; border-radius: 10px; margin: 14px 0; min-width: 0; }
.doctor-utilization-fold > summary { color: #245549; font-weight: 650; cursor: pointer; }
.doctor-utilization-fold[open] > summary { margin-bottom: 12px; }
.doctor-utilization td { padding-top: 8px; padding-bottom: 8px; font-variant-numeric: tabular-nums; }
.doctor-utilization .panel { margin-top: 16px; }
.doctor-heatmap-scroll { width: 100%; overflow: auto; max-height: 620px; border: 1px solid #dde5e1; border-radius: 8px; }
.doctor-heatmap { border-collapse: separate; border-spacing: 0; min-width: 1100px; table-layout: fixed; width: 100%; }
.doctor-heatmap th { background: #f6f9f7; padding: 8px; font-size: .78rem; }
.doctor-heatmap thead th { position: sticky; top: 0; z-index: 3; }
.doctor-heatmap th:first-child { width: 230px; text-align: left; position: sticky; left: 0; z-index: 2; }
.doctor-heatmap thead th:first-child { z-index: 4; }
.doctor-heatmap td { padding: 3px; border-bottom: 1px solid #eef2ef; }
.doctor-heat-cell { border: 0; width: 100%; padding: 9px 3px; min-width: 56px; border-radius: 4px; font-variant-numeric: tabular-nums; color: #193d34; }
.doctor-heat-cell.unavailable { background: #f0f1f3; color: #758078; }
.doctor-utilization-detail { min-width: 0; }
.doctor-review-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.doctor-evidence-status { display: inline-block; padding: 7px 12px; border-radius: 7px; background: #e7f2ee; color: #205649; font-weight: 650; }
.doctor-utilization-detail .graph-card { min-width: 0; }
.doctor-queue-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 22px 0 12px; }
.doctor-queue-button { display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left; min-width: 0; }
.doctor-queue-button > strong { font-size: 17px; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.doctor-queue-description { padding: 12px 14px; background: #f5f7fa; border: 1px solid #e1e7ed; border-radius: 7px; color: #455c70; font-size: 13px; line-height: 1.65; margin-bottom: 20px; }
.doctor-queue-button { background: #f3f7f5; color: #244c43; border: 1px solid #cddcd5; padding: 11px 14px; border-radius: 9px; }
.doctor-queue-button[aria-pressed="true"] { background: #23594d; color: white; border-color: #23594d; }
.doctor-review-intro { padding: 18px 22px; background: #eef5f1; border-left: 4px solid #2b6d59; border-radius: 8px; margin-bottom: 20px; }
.doctor-review-intro h3 { margin-top: 0; }
.doctor-review-intro p { line-height: 1.65; margin-bottom: 0; max-width: 900px; }
.doctor-decision-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 24px 0; }
.doctor-decision-list > h3, .doctor-decision-list > .empty-state { grid-column: 1 / -1; margin: 0; }
.doctor-decision-card { min-width: 0; display: flex; flex-direction: column; padding: 20px; background: #fff; border: 1px solid #d7e2dd; border-left: 4px solid #8c9d94; border-radius: 10px; }
.doctor-decision-card.protect, .doctor-detail-brief.protect { border-left-color: #b3654d; }
.doctor-decision-card.grow, .doctor-detail-brief.grow { border-left-color: #238570; }
.doctor-decision-card.value, .doctor-detail-brief.value { border-left-color: #a48035; }
.doctor-decision-card.local, .doctor-detail-brief.local { border-left-color: #6578a2; }
.doctor-card-identity h4 { margin: 0; font-size: 1.03rem; }
.doctor-card-identity .site-evidence-link { text-align: left; line-height: 1.45; white-space: normal; }
.doctor-card-identity p { margin: 6px 0 12px; font-size: .82rem; }
.doctor-card-reason { font-weight: 650; line-height: 1.5; margin: 0 0 12px; }
.doctor-card-metrics { display: flex; flex-wrap: wrap; gap: 7px 16px; padding: 12px 0; border-top: 1px solid #e5ece8; border-bottom: 1px solid #e5ece8; font-variant-numeric: tabular-nums; }
.doctor-card-metrics strong { flex-basis: 100%; font-size: 1.12rem; color: #244c43; }
.doctor-card-metrics span { font-size: .85rem; color: #54685f; }
.doctor-card-history { font-size: .88rem; line-height: 1.55; }
.doctor-card-next { margin-top: auto; padding-top: 12px; border-top: 1px solid #e5ece8; }
.doctor-card-next p { line-height: 1.6; font-size: .9rem; margin: 0 0 12px; }
.doctor-detail-brief { padding: 18px 22px; margin: 16px 0; background: #f4f8f6; border-left: 4px solid #8c9d94; border-radius: 8px; }
.doctor-detail-brief h3 { line-height: 1.45; }
.doctor-detail-brief strong { font-size: 1.2rem; }
.doctor-detail-brief p { line-height: 1.6; }
.doctor-analysis-options { padding: 9px 12px; border: 1px solid #d7e2dd; border-radius: 7px; align-self: flex-start; }
.doctor-analysis-options summary { cursor: pointer; }
.doctor-analysis-options[open] select { display: block; margin-top: 10px; max-width: 280px; }
.doctor-analysis-options { order: 5; margin-top: 19px; }
.doctor-filter-label { display: flex; flex-direction: column; gap: 4px; }
.doctor-filter-label > span { font-size: .77rem; font-weight: 650; color: #536860; }
.doctor-filter-label select { max-width: 290px; }
.doctor-utilization-controls > input { align-self: flex-end; }
.doctor-geography-controls { display: contents; }
.doctor-geography-controls .doctor-filter-label { display: flex; align-items: flex-start; }
.doctor-geography-controls select { max-width: 350px; min-width: 150px; }
.doctor-geography-controls > button { align-self: flex-end; }
.doctor-scope-path { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 0; color: #245549; font-size: .92rem; }
.doctor-scope-path button { padding: 5px 8px; font-size: .8rem; }
.doctor-geography-dialog { min-width: 0; }
.doctor-decline-review { margin: 22px 0 10px; min-width: 0; }
.doctor-decline-review > h3 { margin-bottom: 6px; }
.doctor-decline-period { margin: 0 0 14px; color: #38584d; font-weight: 600; }
.doctor-decline-basis { color: #536860; font-size: .85rem; line-height: 1.6; margin: 12px 0; }
.doctor-decline-chart { margin: 22px 0; padding: 16px 0; border-top: 1px solid #d7e2dd; border-bottom: 1px solid #d7e2dd; }
.doctor-decline-chart h4 { margin: 0 0 5px; }
.doctor-decline-chart > p { font-size: .82rem; margin: 5px 0 12px; }
.doctor-decline-bars { display: grid; gap: 5px; }
.doctor-decline-bar { display: grid; grid-template-columns: minmax(150px,1.2fr) minmax(80px,2fr) minmax(100px,.7fr); align-items: center; gap: 14px; width: 100%; border: 0; background: transparent; padding: 9px 6px; text-align: left; border-radius: 5px; color: #244c43; }
.doctor-decline-bar:hover { background: #f1f6f3; }
.doctor-decline-name { overflow-wrap: anywhere; font-size: .86rem; }
.doctor-decline-track { display: block; height: 12px; background: #f1e7e3; border-radius: 3px; overflow: hidden; }
.doctor-decline-fill { display: block; height: 100%; background: #af5c44; border-radius: 3px; }
.doctor-decline-amount { text-align: right; font-variant-numeric: tabular-nums; font-size: .9rem; }
.doctor-decline-table { width: 100%; border-collapse: collapse; table-layout: fixed; color: #244c43; white-space: normal; }
.doctor-decline-table-caption { text-align: left; font-size: .85rem; color: #536860; padding-bottom: 10px; }
.doctor-decline-table th { text-align: left; padding: 12px 8px; font-size: .8rem; color: #38584d; border-bottom: 2px solid #d7e2dd; background: #f3f7f5; }
.doctor-decline-table th:first-child { width: 21%; }
.doctor-decline-table th:nth-child(2) { width: 16%; }
.doctor-decline-table th:nth-child(3) { width: 21%; }
.doctor-decline-table th:nth-child(4) { width: 16%; }
.doctor-decline-table th:nth-child(5) { width: 15%; }
.doctor-decline-table th:nth-child(6) { width: 11%; }
.doctor-decline-table td { vertical-align: top; padding: 14px 8px; border-bottom: 1px solid #dce6e0; overflow-wrap: anywhere; font-size: .85rem; }
.doctor-decline-table td:last-child button { white-space: normal; }
.doctor-decline-provider { display: grid; grid-template-columns: 22px minmax(0,1fr); gap: 6px; align-items: baseline; }
.doctor-decline-provider .site-evidence-link { text-align: left; white-space: normal; overflow-wrap: anywhere; font-weight: 600; }
.doctor-decline-provider > small { grid-column: 2; }
.doctor-decline-rank { color: #6c7e75; font-variant-numeric: tabular-nums; }
.doctor-decline-metric { display: flex; flex-direction: column; gap: 9px; font-variant-numeric: tabular-nums; }
.doctor-decline-values { line-height: 1.6; }
.doctor-decline-change { color: #9b442d; line-height: 1.5; }
.doctor-decline-activity { display: flex; flex-direction: column; gap: 5px; }
.doctor-decline-spark { width: 144px; max-width: 100%; height: 40px; display: block; }
.doctor-decline-zero { stroke: #c7d4cc; stroke-width: 1; }
.doctor-decline-line { fill: none; stroke: #3a7967; stroke-width: 1.6; stroke-linejoin: round; }
.doctor-decline-point { fill: #3a7967; }
.doctor-decline-evidence { font-size: .77rem; color: #536860; line-height: 1.5; }
.doctor-decline-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.doctor-decline-stages { margin-top: 8px; }
/* What is likely to come back, on a line of its own under the usual level. */
.doctor-decline-likely { display: block; margin-top: 4px; font-weight: 600; color: #1f4d3f; }
.doctor-decline-shape, .doctor-decline-back { display: block; margin-top: 2px; }
/* Each note under a figure has a line of its own, so two notes never run together. */
.doctor-decline-table td > small.muted { display: block; margin-top: 2px; }
.doctor-fall-shapes .doctor-decline-bar[aria-pressed="true"] { background: #e6f0ec; box-shadow: inset 3px 0 0 #1f4d3f; }
.doctor-fall-shapes .doctor-decline-bar:disabled { cursor: default; }
.doctor-fall-age { cursor: default; }
.doctor-fall-age:hover { background: transparent; }
.doctor-fall-chance { background: #3c7f6b; }
.doctor-fall-note { margin-top: 8px; }
.doctor-early-notice, .doctor-new-notice { margin: 12px 0; padding: 10px 12px; border-left: 4px solid #b99237; background: #fbf6e7; color: #3d3521; font-size: .9rem; line-height: 1.6; }
.doctor-early-notice button, .doctor-new-notice button { margin-left: 6px; }
.doctor-decline-context { margin: 14px 0 6px; }
.doctor-decline-context h4 { margin: 0 0 4px; font-size: .95rem; color: #24423a; }
.doctor-decline-context-table th[scope=row] { text-align: left; font-weight: 600; }
.doctor-decline-left-out { color: #38584d; font-size: .88rem; line-height: 1.6; margin: 12px 0 0; }
.doctor-decline-finding { display: flex; flex-direction: column; gap: 2px; font-size: .77rem; line-height: 1.4; padding-left: 7px; border-left: 3px solid #93a79d; color: #38584d; }
.doctor-decline-finding small { color: #536860; }
.doctor-decline-finding.still_down { border-left-color: #af5c44; }
.doctor-decline-finding.account, .doctor-decline-finding.no_name { border-left-color: #6b7f8f; }
.doctor-decline-finding small.doctor-decline-confirm { color: #8a3d2a; font-weight: 600; }
.doctor-decline-confirm-note { margin: 12px 0 0; padding: 10px 12px; border-left: 4px solid #af5c44; background: #fbf1ee; color: #3d2a24; font-size: .88rem; line-height: 1.6; }
.doctor-decline-finding.back_to_normal, .doctor-decline-finding.comparison_high { border-left-color: #3a7967; }
@media(max-width:1150px) {
  .doctor-decline-table, .doctor-decline-table-caption { display: block; }
  .doctor-decline-table thead { display: none; }
  .doctor-decline-table tbody { display: grid; gap: 14px; }
  .doctor-decline-table tr { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border: 1px solid #d7e2dd; border-radius: 8px; padding: 8px; }
  .doctor-decline-table td { display: block; min-width: 0; padding: 10px; border-bottom: 0; }
  .doctor-decline-table td::before { content: attr(data-label); display: block; font-size: .77rem; color: #536860; font-weight: 600; margin-bottom: 7px; }
  .doctor-decline-table td:first-child { grid-column: 1/-1; border-bottom: 1px solid #e3ebe6; }
  .doctor-decline-table td:first-child::before { display: none; }
  .doctor-decline-table td:last-child { grid-column: 1/-1; }
  .doctor-decline-table td:last-child::before { display: none; }
}
@media(max-width:650px) {
  .doctor-decline-bar { grid-template-columns: minmax(0,1fr) auto; gap: 7px; }
  .doctor-decline-track { grid-column: 1/-1; grid-row: 2; }
  .doctor-decline-amount { grid-column: 2; grid-row: 1; }
  .doctor-decline-table tr { padding: 3px; }
  .doctor-decline-table td { padding: 10px 7px; }
  .doctor-decline-metric { font-size: .8rem; }
}
@media print {
  .doctor-decline-table { display: table; table-layout: auto; }
  .doctor-decline-table-caption { display: table-caption; }
  .doctor-decline-table thead { display: table-header-group; }
  .doctor-decline-table tbody { display: table-row-group; }
  .doctor-decline-table tr { display: table-row; border: 0; }
  .doctor-decline-table td { display: table-cell; border-bottom: 1px solid #d7e2dd; }
  .doctor-decline-table td::before { display: none; }
  .doctor-decline-table tr { break-inside: avoid; }
}
@media(max-width:900px) { .doctor-decision-list { grid-template-columns: minmax(0,1fr); } }
@media(max-width:900px) { .doctor-queue-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media(max-width:650px) { .doctor-queue-nav { grid-template-columns: minmax(0, 1fr); } }
@media(max-width:650px) { .doctor-utilization-controls > * { width: 100%; } .doctor-utilization-controls input { min-width: 0; } .doctor-utilization-fold { padding: 12px; } .doctor-heatmap th:first-child { width: 155px; } }

/* Retention graphs above the retention worklist. */
.retention-graphs { margin: 16px 0 20px; min-width: 0; }
.retention-graphs > summary { cursor: pointer; font-weight: 700; color: var(--ink, #163040); padding: 8px 0; }
.retention-graph-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.retention-graph-grid > .panel, .retention-graphs > .panel { min-width: 0; margin: 0; }
.retention-graphs > .panel { margin-top: 16px; }
.retention-history { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.retention-history > * { min-width: 0; }
.retention-chart > h4 { margin: 0 0 6px; font-size: .95rem; color: var(--ink, #163040); }
.retention-bars { display: grid; gap: 2px; }
.retention-bar { display: grid; grid-template-columns: minmax(130px, 1.2fr) minmax(80px, 2fr) minmax(110px, .8fr); align-items: center; gap: 14px; width: 100%; border: 0; border-radius: 4px; background: transparent; padding: 7px 6px; text-align: left; color: inherit; font: inherit; cursor: pointer; }
.retention-bar:hover { background: #f1f6f3; }
.retention-bar[aria-pressed="true"] { background: #e3efe9; outline: 2px solid var(--teal, #087f78); outline-offset: -2px; }
.retention-bar:focus-visible { outline: 2px solid var(--teal, #087f78); outline-offset: 1px; }
.retention-name { overflow-wrap: anywhere; font-size: .86rem; }
.retention-unmatched { font-style: italic; color: #536860; }
.retention-track { display: block; height: 12px; background: #f1e7e3; border-radius: 3px; overflow: hidden; }
.retention-fill { display: block; height: 100%; background: #af5c44; border-radius: 3px; }
.retention-amount { text-align: right; font-variant-numeric: tabular-nums; font-size: .86rem; white-space: nowrap; }
.retention-bars > .subtle-button { justify-self: start; margin-top: 8px; }
/* Marketer book health: the bar is the share of the book on the list, the mark the share of listings that recovered. */
.retention-health-track { position: relative; overflow: visible; }
.retention-health-mark { position: absolute; top: -4px; width: 4px; height: 20px; margin-left: -2px; background: #137f72; border-radius: 2px; box-shadow: 0 0 0 2px #fff; }
.retention-health-average { position: absolute; top: -3px; width: 0; height: 18px; border-left: 1px dashed #536860; }
.retention-bar-fixed { cursor: default; }
.retention-bar-fixed:hover { background: transparent; }
.retention-health-total { font-weight: 700; }
.retention-health-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0; }
.retention-health-key { display: inline-flex; align-items: center; gap: 6px; }
.retention-health-swatch-bar { width: 22px; height: 10px; background: #af5c44; border-radius: 3px; }
.retention-health-swatch-mark { width: 4px; height: 16px; background: #137f72; border-radius: 2px; }
.retention-health-swatch-average { width: 0; height: 16px; border-left: 1px dashed #536860; }
.retention-health-small { margin: 10px 0; }
.retention-funnel { display: block; width: 100%; max-width: 860px; height: auto; margin: 6px 0 10px; overflow: visible; }
.retention-funnel-grid { stroke: #e3ebe6; stroke-width: 1; }
.retention-funnel-tick, .retention-funnel-axis { font-size: 11px; fill: #536860; }
.retention-funnel-rate { stroke: #163040; stroke-width: 1.5; }
.retention-funnel-limit { fill: none; stroke: #af5c44; stroke-width: 1.5; }
.retention-funnel-far { fill: none; stroke: #8a9a93; stroke-width: 1.2; stroke-dasharray: 5 4; }
.retention-funnel-dot { fill: #7d9288; stroke: #fff; stroke-width: 1.5; }
.retention-funnel-more, .retention-funnel-far_more { fill: #af5c44; }
.retention-funnel-fewer, .retention-funnel-far_fewer { fill: #137f72; }
.retention-funnel-key { display: inline-block; width: 18px; height: 0; border-top: 2px solid #163040; vertical-align: middle; margin-right: 6px; }
.retention-funnel-key-limit { border-top-color: #af5c44; }
.retention-funnel-key-far { border-top: 2px dashed #8a9a93; }
.retention-funnel-key-more, .retention-funnel-key-fewer { width: 10px; height: 10px; border: 0; border-radius: 50%; background: #af5c44; }
.retention-funnel-key-fewer { background: #137f72; }
.retention-health-small > summary { cursor: pointer; font-weight: 600; color: var(--ink, #163040); padding: 6px 0; }
.retention-spark-cell { display: inline-block; line-height: 0; }
.retention-spark { width: 96px; height: 28px; display: block; overflow: visible; }
.retention-spark-line { fill: none; stroke: #137f72; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.retention-spark-end { fill: #137f72; }
.retention-spark-zero { stroke: #b8c6c0; stroke-width: 1; stroke-dasharray: 2 2; }
@media (max-width: 640px) {
  .retention-bar { grid-template-columns: 1fr; gap: 4px; }
  .retention-amount { text-align: left; }
}

.access-activity { color: #173c3b; max-width: 100%; min-width: 0; }
.access-activity .aa-intro { font-size: 1.05rem; }
.access-activity .aa-filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; padding: 16px; background: #f2f7f6; border-radius: 12px; }
.access-activity .aa-filters label { display: flex; flex: 1 1 145px; flex-direction: column; gap: 5px; font-size: .85rem; font-weight: 600; min-width: 0; }
.access-activity input,.access-activity select { width: 100%; min-width: 0; min-height: 40px; padding: 8px; border: 1px solid #b5c9c6; border-radius: 6px; background: white; color: #173c3b; }
.access-activity button { min-height: 40px; padding: 8px 14px; border: 1px solid #97b8b3; border-radius: 7px; background: white; color: #173c3b; cursor: pointer; }
.access-activity .aa-filters button { background: #17685d; color: white; }
.access-activity .aa-export { margin-left: auto; background: #123b3a; color: white; border-color: #123b3a; }
.access-activity button:disabled { opacity: .45; cursor: default; }
.access-activity .aa-shortcuts,.access-activity .aa-pagination { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0; }
.access-activity .aa-status,.access-activity .aa-note { color: #5b6f6d; font-size: .85rem; line-height: 1.6; }
.access-activity .aa-error { color: #a32121; }
.access-activity .aa-tiles { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; margin: 18px 0; }
.access-activity .aa-tile { padding: 18px; border: 1px solid #d3e1df; border-radius: 10px; background: white; }
.access-activity .aa-tile span { display: block; font-size: .82rem; color: #5b6f6d; }
.access-activity .aa-tile strong { display: block; font-size: 1.85rem; padding-top: 6px; }
.access-activity .aa-tile-sub { display: block; font-size: .78rem; color: #5b6f6d; padding-top: 4px; }
.access-activity .aa-table-scroll { max-width: 100%; overflow-x: auto; margin: 12px 0 24px; }
.access-activity table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.access-activity th,.access-activity td { text-align: left; padding: 10px 10px; border-bottom: 1px solid #dbe5e3; white-space: nowrap; vertical-align: top; }
.access-activity th { background: #eff5f4; font-weight: 600; }
.access-activity h3 { font-size: 1.18rem; margin-top: 26px; }
.access-activity .aa-chart { height: 135px; display: flex; gap: 2px; align-items: end; border-bottom: 1px solid #a9c7c2; background: #f4f8f7; padding: 12px 8px 0; }
.access-activity .aa-chart-column { height: 100%; display: flex; flex: 1; min-width: 0; align-items: end; }
.access-activity .aa-chart-bar { display: block; width: 100%; background: #287f72; border-radius: 3px 3px 0 0; }
.access-activity summary { cursor: pointer; color: #17685d; }
.access-activity .aa-user-link { min-height: auto; padding: 0; border: 0; background: transparent; color: #17685d; font-weight: 600; text-decoration: underline; }
.access-activity .aa-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .76rem; font-weight: 600; }
.access-activity .aa-badge-live { background: #e3f5ef; color: #0f5c47; }
.access-activity .aa-badge-ok { background: #e8f1f8; color: #1b4f72; }
.access-activity .aa-badge-warn { background: #fdf2dc; color: #8a5300; }
.access-activity .aa-badge-danger { background: #fbe5e5; color: #9c1f1f; }
.access-activity .aa-badge-muted { background: #eef3f2; color: #4d6260; }
.access-activity .aa-inline-details { white-space: normal; min-width: 190px; }
.access-activity .aa-screen-list { margin: 6px 0 0; padding-left: 16px; font-size: .8rem; color: #365250; }
.access-activity .aa-screen-list li { margin: 2px 0; }
@media(max-width:960px) { .access-activity .aa-tiles { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media(max-width:650px) { .access-activity .aa-tiles { grid-template-columns: repeat(2,minmax(0,1fr)); } .access-activity .aa-tile { padding: 14px; } .access-activity .aa-filters label { flex-basis: 130px; } .access-activity .aa-export { margin-left: 0; } }

.quality-review{display:grid;gap:18px;min-width:0}
.quality-review .panel{margin:0;min-width:0}
.quality-source-summary{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
.quality-source-summary>span{background:#f0f5f5;border:1px solid var(--line,#d8e5e7);padding:6px 9px;border-radius:6px;font-size:.83rem}
.quality-source-details>summary{cursor:pointer;font-weight:650}
.quality-scope{margin:0;color:var(--muted,#526872);font-size:.9rem}
.quality-source-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:14px;align-items:start}
.quality-source-card{padding:16px;border:1px solid var(--line,#d8e5e7);border-radius:12px;background:var(--surface,#fff);min-width:0;display:grid;gap:10px}
.quality-source-card h4,.quality-source-card p{margin:0}
.quality-source-card small{display:block;color:var(--muted,#526872);overflow-wrap:anywhere}
.quality-status{font-size:.8rem;color:#6b4e16;background:#fff5d9;border-radius:6px;padding:6px 8px;width:fit-content}
.quality-source-card details{font-size:.86rem}
.quality-source-card summary{cursor:pointer;font-weight:650}
.quality-guide{display:grid;gap:10px;min-width:0;margin-top:12px}
.quality-guide p{margin:0;line-height:1.55}
.quality-guide .table-wrap{max-width:100%}
.quality-guide table{font-size:.8rem}
.quality-guide td{overflow-wrap:anywhere}
.quality-tabs{display:flex;gap:6px;flex-wrap:wrap;border-bottom:1px solid var(--line,#d8e5e7);padding-bottom:8px}
.quality-review .quality-tabs .subtle-button[aria-selected=true]{background:#0c6d65;color:#fff;border-color:#0c6d65}
.quality-tab-panel{display:grid;gap:18px;min-width:0}
.quality-tab-panel .tiles{margin:0}
.quality-tab-panel .graph-card{margin:0}
.quality-empty,.quality-evidence{border:1px solid var(--line,#d8e5e7);border-radius:12px;padding:18px;background:var(--surface,#fff)}
.quality-empty h3{margin-top:0}
.quality-next-steps{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.quality-next-steps a{border:1px solid var(--line,#d8e5e7);border-radius:7px;padding:8px 11px;text-decoration:none}
.quality-import-preview{display:grid;gap:10px;padding:14px;border:1px solid var(--line,#d8e5e7);border-radius:10px}
@media(max-width:1000px){.quality-source-grid{grid-template-columns:1fr}.quality-source-card{gap:8px}}
@media(max-width:700px){.quality-tabs button{flex:1 1 100px;padding:10px 8px}.quality-next-steps>*{width:100%;box-sizing:border-box;text-align:left}.quality-source-card,.quality-empty,.quality-evidence{padding:14px}.quality-review{gap:14px}.quality-source-card .table-wrap{overflow-x:auto}.quality-guide{max-width:100%}}

/* Shared layouts follow the space available to a report, including detail windows. */
body:not(.entry-mode) { --header-height: 72px; }
body:not(.entry-mode) .site-header { height: var(--header-height); min-height: var(--header-height); }
.workspace-sidebar { top: var(--header-height); }
.navigation-backdrop { top: var(--header-height); }
.panel { scroll-margin-top: calc(var(--header-height, 72px) + 12px); }
body:not(.entry-mode) #toggle-navigation { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex-shrink: 0; }
#advanced-page, #ledger-page, #staffing-page, #editor-body { container: review / inline-size; }
.financial-readiness { padding: 9px 12px; margin-bottom: 14px; gap: 8px 18px; }
.financial-source-details { margin-left: auto; max-width: 100%; }
.financial-source-details > summary { cursor: pointer; color: #375e55; font-weight: 600; }
.financial-source-details[open] { flex: 1 0 100%; margin-left: 0; }
.financial-source-details[open] > summary { margin-bottom: 12px; }
.financial-source-details small { display: block; line-height: 1.5; margin: 8px 0; }
.financial-source-details .financial-source-dates small { margin: 0; }
.financial-source-details button { margin-top: 8px; }
.graph-canvas, .chart-surface { overscroll-behavior-y: auto; touch-action: pan-x pan-y; }
body .graph-canvas svg { width: 100%; min-width: 0; min-height: 0; height: auto; display: block; }
.graph-view-tools { display: flex; justify-content: flex-end; margin: 0 0 8px; }
.graph-view-tools button { padding: 6px 12px; font-size: 12px; }
.graph-legend { gap: 6px 12px; }
.graph-legend button { min-height: 32px; }
dialog { max-height: calc(100dvh - 24px); }
#editor[open], .chart-dialog[open] { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
#editor { width: min(1120px, calc(100vw - 32px)); }
#editor > .panel-heading { position: static; padding: 16px 20px; margin: 0; flex-shrink: 0; border-bottom: 1px solid var(--line); }
#editor-body { overflow: auto; min-height: 0; padding: 18px 20px; }
.chart-dialog { width: min(1500px, calc(100vw - 32px)); }
.chart-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.chart-dialog-heading h2 { font-size: 19px; margin: 0; }
.chart-dialog-heading button { flex-shrink: 0; }
.chart-dialog-body { min-height: 0; overflow: auto; padding: 18px; }
.chart-dialog .graph-card { margin: 0; box-shadow: none; }
.chart-dialog .graph-plot { min-width: 0; }
.cost-review-filters { top: calc(var(--header-height, 72px) + 8px); }
.mobile-row-details > .mobile-row-summary { margin-top: 10px; }
.operating-history-details, .cost-change-scatter { margin: 16px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.operating-history-details > summary, .cost-change-scatter > summary { cursor: pointer; font-weight: 650; font-size: 13px; }
.operating-history-details[open] > summary, .cost-change-scatter[open] > summary { margin-bottom: 14px; }
.operating-history-charts { min-width: 0; }
.operating-history-charts > .panel { margin-top: 16px; }
.operating-history-evidence { margin-top: 16px; }
.operating-history-evidence > summary { cursor: pointer; padding: 8px 0; font-size: 13px; }

/* Keep shared filters on one baseline, including the doctor's area controls. */
#workspace .filters { align-items: flex-end; gap: 12px 16px; }
#workspace .filters > div:not(.doctor-geography-controls) {
  display: grid; align-items: stretch; gap: 6px; flex: 0 1 180px; min-width: 140px;
}

/* Shared site choices retain exact codes while making large directories searchable. */
.site-picker { position: relative; display: flex; flex-direction: column; gap: 5px; width: 350px; max-width: 100%; min-width: 0; align-self: flex-end; text-align: left; }
.site-picker.is-open { z-index: 100; }
.site-picker-label { color: #536860; font-size: .77rem; font-weight: 650; }
.site-picker .site-picker-native { display: none !important; }
.site-picker .site-picker-toggle { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 3px 12px; width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid #c6d4db; border-radius: 7px; background: white; color: #213b50; text-align: left; white-space: normal; }
.site-picker-selection { display: flex; gap: 6px; align-items: stretch; min-width: 0; }
.site-picker .site-picker-selection .site-picker-toggle { flex: 1; width: auto; min-width: 0; }
.site-picker .site-picker-clear { flex: 0 0 auto; min-width: 64px; min-height: 44px; padding: 8px 10px; border: 1px solid #b8cec7; border-radius: 7px; background: #eef6f3; color: #235f51; font-size: .8rem; font-weight: 650; white-space: nowrap; }
.site-picker .site-picker-clear:hover { background: #dfeee8; border-color: #39816d; }
.site-picker .site-picker-clear[hidden] { display: none !important; }
.site-picker-selected { overflow-wrap: anywhere; }
.site-picker-chevron { grid-column: 2; grid-row: 1; }
.site-picker-selected-detail { grid-column: 1/-1; color: #536579; font-size: .75rem; line-height: 1.45; overflow-wrap: anywhere; }
.site-picker-menu { position: absolute; top: 100%; right: 0; width: 490px; max-width: calc(100vw - 40px); min-width: 100%; max-height: var(--site-picker-space,580px); overflow-y: auto; padding: 12px; border: 1px solid #b8cdd3; border-radius: 9px; background: white; box-shadow: 0 12px 35px #163d5533; color: #213b50; }
.site-picker-menu.opens-above { top: auto; bottom: 100%; }
.site-picker-menu[hidden], .site-picker-more[hidden] { display: none !important; }
.site-picker .site-picker-menu input { width: 100%; min-width: 0; max-width: 100%; font-size: 16px; }
.site-picker-results { max-height: min(330px,max(90px,calc(var(--site-picker-space,580px) - 205px))); overflow-y: auto; overscroll-behavior: contain; margin: 8px 0; }
.site-picker .site-picker-option { display: flex; flex-wrap: wrap; gap: 5px 8px; width: 100%; padding: 11px 10px; text-align: left; border: 0; border-bottom: 1px solid #e4ebef; border-radius: 4px; background: white; color: #213b50; white-space: normal; }
.site-picker .site-picker-option:hover, .site-picker .site-picker-option.is-active { background: #e9f4f1; outline: 2px solid #298070; outline-offset: -2px; }
.site-picker .site-picker-option[aria-selected="true"] { background: #f0f5f8; }
.site-picker-name { flex-basis: 100%; font-size: .9rem; line-height: 1.5; overflow-wrap: anywhere; }
.site-picker-detail { flex-basis: 100%; color: #536579; font-size: .8rem; line-height: 1.5; overflow-wrap: anywhere; }
.site-picker-badge { border-radius: 4px; background: #edf1f5; color: #536579; font-size: .7rem; padding: 2px 5px; }
.site-picker .site-picker-status { font-size: .78rem; line-height: 1.5; margin: 9px 0; color: #536579; }
.site-picker .site-picker-reset { margin-top: 8px; text-align: left; white-space: normal; }
.site-picker :focus-visible { outline: 2px solid #168578; outline-offset: 2px; }
.doctor-geography-controls > .site-picker { align-self: flex-end; }
.review-workspace-shell > .site-picker { margin-top: 12px; }
@media (max-width: 700px) {
  .site-picker { width: 100%; }
  .site-picker-menu, .site-picker-menu.opens-above { position: fixed; top: 75px; bottom: auto; left: 12px; right: 12px; width: auto; min-width: 0; max-width: none; max-height: calc(100dvh - 95px); overflow-y: auto; }
  .site-picker-results { max-height: min(340px,45dvh); }
}
@media print {
  .site-picker-menu { display: none !important; }
  .site-picker-chevron { display: none; }
  .site-picker-clear { display: none !important; }
}
#workspace .filters label { margin: 0; }
#workspace .filters select { width: 100%; min-width: 0; min-height: 40px; }
#workspace .filters > .doctor-geography-controls { display: contents; }
.filters .doctor-geography-controls > label { flex: 1 1 180px; min-width: 140px; }
.filters .doctor-geography-controls select { max-width: none; }
.filters .doctor-geography-controls > button { min-height: 40px; }
.filters > .period-alignment { margin: 0 0 0 auto; order: 10; align-self: flex-end; }
.filters > .period-alignment > summary { padding: 10px 0; }
.filters > .period-alignment[open] { margin: 0; flex: 1 0 100%; }
.filters > .period-alignment[open] > summary { padding-top: 0; margin-bottom: 10px; }
.filters > .period-alignment select { width: min(100%, 330px); }

/* Small summary groups fill their row instead of leaving a fourth empty slot. */
.tiles[data-count="1"] { grid-template-columns: minmax(0, 1fr); }
@container review (min-width: 901px) {
  .tiles[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@container review (max-width: 900px) {
  .tiles[data-count="3"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles[data-count="3"] > .tile:last-child { grid-column: 1 / -1; }
}

/* Labelled doctor fields, search and disclosure buttons share a lower edge. */
.doctor-utilization-controls { align-items: flex-end; }
.doctor-utilization-controls > input,
.doctor-utilization-controls .doctor-filter-label select { min-height: 42px; }
.doctor-utilization-controls > .doctor-analysis-options { margin-top: 0; align-self: flex-end; }
.doctor-utilization-controls > .doctor-analysis-options[open] { flex: 1 0 100%; }

/* Long editor headings wrap without crowding the print and close controls. */
#editor > .panel-heading { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
#editor > .panel-heading h2 { flex: 1 1 250px; min-width: 0; margin: 0; }
#editor > .panel-heading button { flex: 0 0 auto; }
@container review (max-width: 900px) {
  .tiles, .tiles[data-count="5"], .tiles[data-count="6"], .home-outlook .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles .amount { font-size: clamp(20px, 3cqw, 27px); }
}
@media (min-width: 1051px) {
  body.compact-navigation { --sidebar-width: 72px; }
  .compact-navigation .workspace-sidebar { padding: 16px 8px; }
  .compact-navigation .sidebar-heading, .compact-navigation .sidebar-footnote, .compact-navigation .sidebar-label, .compact-navigation .saved-navigation { display: none; }
  .compact-navigation #analysis-nav > a, .compact-navigation #analysis-nav > details > summary { font-size: 0; padding: 12px; justify-content: center; gap: 0; min-height: 44px; }
  .compact-navigation #analysis-nav summary::after, .compact-navigation #analysis-nav .nav-menu { display: none; }
  .compact-navigation #analysis-nav a::before, .compact-navigation #analysis-nav summary::before { width: 20px; height: 20px; margin-right: 0; }
  .compact-navigation #analysis-nav { width: 100%; min-width: 0; }
  .compact-navigation #analysis-nav > .nav-section-label { display: none; }
  .compact-navigation .workspace-sidebar { overflow-x: hidden; }
}
@media (max-width: 1000px) {
  .cockpit-financial-mobile { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .cockpit-mobile-period { border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
  .cockpit-mobile-period h4 { font-size: 13px; margin: 0 0 10px; }
  .cockpit-mobile-period dl { margin: 0; }
  .cockpit-mobile-value { display: flex; justify-content: space-between; gap: 12px; margin: 7px 0; font-size: 12px; }
  .cockpit-mobile-value dt { max-width: 48%; }
  .cockpit-mobile-value dd { margin: 0; white-space: nowrap; font-size: 13px; font-weight: 650; }
  .cockpit-mobile-period > small { display: block; margin-top: 8px; }
  .cockpit-mobile-period details { margin-top: 12px; font-size: 12px; }
  .cockpit-mobile-period summary { cursor: pointer; }
}
@media (min-width: 701px) and (max-width: 1000px) {
  .cockpit-financial-mobile { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 700px) {
  body:not(.entry-mode) { --header-height: 60px; }
  body:not(.entry-mode) main { padding: 14px 12px 36px; }
  .financial-readiness > strong { flex-basis: auto; }
  .financial-source-details { margin-left: 0; }
  .tiles { gap: 8px; }
  .tiles .tile { padding: 12px; }
  #workspace .tiles .amount { font-size: clamp(18px, 5vw, 24px); }
  .tile-label { font-size: 12px; }
  .graph-card { padding: 12px; }
  .graph-inspection { font-size: 12px; }
  .graph-legend button { min-height: 38px; }
  #editor { width: 100%; max-width: 100%; max-height: 100dvh; border: 0; border-radius: 0; margin: auto 0; }
  #editor > .panel-heading { padding: 12px; }
  #editor-body { padding: 14px 12px; }
  .chart-dialog { width: calc(100vw - 12px); max-width: calc(100vw - 12px); }
  .chart-dialog-heading, .chart-dialog-body { padding: 12px; }
  input, select, textarea, .filters select { font-size: 16px; }
  #workspace .filters > div:not(.doctor-geography-controls) { width: auto; flex: 1 1 140px; }
  .filters > .period-alignment { flex: 1 0 100%; margin: 0; }
  .filters > .period-alignment > summary { padding: 4px 0; white-space: normal; }
  .doctor-utilization-controls > input { flex-basis: 100%; }
}
@media (max-height: 800px) and (min-width: 701px) {
  body:not(.entry-mode) { --header-height: 60px; }
  body:not(.entry-mode) main { padding-top: 16px; }
  .workspace-sidebar { padding-top: 16px; }
  .cost-review-filters { position: static; }
  #editor > .panel-heading, .chart-dialog-heading { padding: 10px 16px; }
}
@media print {
  #toggle-navigation, .graph-view-tools { display: none !important; }
  .financial-source-details { display: none; }
  #editor-body, .chart-dialog-body { overflow: visible; }
}

/* Workspace finish: one visual hierarchy across reports. Screen-only rules keep
   the established print layout and the source meaning of status colours. */
@media screen {
  body:not(.entry-mode) {
    --ink: #1b3043;
    --muted: #526579;
    --line: #dce4eb;
    --paper: #f5f7fa;
    --teal: #08766e;
    --surface-shadow: 0 2px 8px #21364b06;
  }
  body:not(.entry-mode) .site-header {
    background: #132d40;
    border-bottom: 1px solid #ffffff12;
  }
  body:not(.entry-mode) .site-header h1 { letter-spacing: -.35px; }
  body:not(.entry-mode) .site-header p { color: #c0ced8; font-size: 12px; }
  body:not(.entry-mode) .header-search { border-color: #e0e7ed; border-radius: 8px; }
  body:not(.entry-mode) .workspace-sidebar { background: #fff; }
  body:not(.entry-mode) #analysis-nav > a,
  body:not(.entry-mode) #analysis-nav summary { color: #455c70; }
  body:not(.entry-mode) #analysis-nav > a.active,
  body:not(.entry-mode) #analysis-nav .selected-group > summary {
    background: #e8f3f1; color: #08675f;
  }
  body:not(.entry-mode) #analysis-nav > a.active { box-shadow: inset 3px 0 #08766e; }
  body:not(.entry-mode) #analysis-nav .nav-menu a { font-size: 13px; }
  body:not(.entry-mode) #review-location,
  body:not(.entry-mode) #review-location a { font-size: 12px; }
  body:not(.entry-mode) #page-title {
    font-size: clamp(28px, 2.4vw, 34px); line-height: 1.2;
    letter-spacing: -.85px; font-weight: 720;
  }
  body:not(.entry-mode) .top-line { margin-bottom: 20px; }
  body:not(.entry-mode) .review-description { font-size: 14px; line-height: 1.65; }
  body:not(.entry-mode) #period-caption { font-size: 12px; margin-top: 7px; }
  body:not(.entry-mode) .review-tools > button,
  body:not(.entry-mode) .review-options > summary {
    background: transparent; border-color: transparent; color: #4c6175;
  }
  body:not(.entry-mode) .review-tools > button:hover,
  body:not(.entry-mode) .review-options > summary:hover { background: #e9eef3; }
  body:not(.entry-mode) .data-freshness {
    background: #f0f5f5; border-color: #dce7e6; font-size: 12px;
  }
  body:not(.entry-mode) .filters {
    padding: 16px 18px; border-radius: 10px; box-shadow: var(--surface-shadow);
  }
  body:not(.entry-mode) #workspace .filters label {
    font-size: 12px; text-transform: none; letter-spacing: 0; color: #455c70;
  }
  body:not(.entry-mode) .filters select { font-size: 13px; background-color: #fff; }
  body:not(.entry-mode) input:not([type="checkbox"]):not([type="radio"]),
  body:not(.entry-mode) select,
  body:not(.entry-mode) textarea { border-color: #cbd6df; border-radius: 7px; }
  body:not(.entry-mode) input::placeholder { color: #64778a; opacity: 1; }
  body:not(.entry-mode) .panel { border-radius: 12px; box-shadow: var(--surface-shadow); }
  body:not(.entry-mode) .panel > h3,
  body:not(.entry-mode) .panel-heading h3 { font-size: 18px; line-height: 1.4; }
  body:not(.entry-mode) .panel > .muted,
  body:not(.entry-mode) .panel > .workflow-notes { font-size: 13px; }
  body:not(.entry-mode) .tile {
    border-radius: 10px; padding: 22px; box-shadow: var(--surface-shadow);
    border-top: 2px solid #bcd8d3;
  }
  body:not(.entry-mode) .tile label { font-size: 13px; color: #455c70; font-weight: 600; }
  body:not(.entry-mode) .amount { font-size: clamp(24px, 2.1vw, 32px); letter-spacing: -.7px; }
  body:not(.entry-mode) .tile p,
  body:not(.entry-mode) .tile p.metric-note,
  body:not(.entry-mode) .tile p.metric-comparison { font-size: 12px; line-height: 1.6; }
  body:not(.entry-mode) .metric-delta { font-size: 12px; padding: 3px 6px; }
  body:not(.entry-mode) .tile .amount-pair .metric-value { font-size: clamp(22px, 1.8vw, 30px); }
  body:not(.entry-mode) .tile .amount-pair .metric-count { font-size: 15px; }
  body:not(.entry-mode) .financial-readiness {
    background: #edf4f3; border-radius: 8px; padding: 12px 16px;
  }
  body:not(.entry-mode) .financial-readiness > strong { font-size: 13px; }
  body:not(.entry-mode) .financial-source-details { font-size: 12px; }
  body:not(.entry-mode) .table-scroll { border-radius: 8px; }
  body:not(.entry-mode) table { font-variant-numeric: tabular-nums; }
  body:not(.entry-mode) th,
  body:not(.entry-mode) .table-sort {
    font-size: 12px; text-transform: none; letter-spacing: 0; line-height: 1.5;
  }
  body:not(.entry-mode) .table-scroll th,
  body:not(.entry-mode) .table-scroll th:first-child { background: #eef2f6; color: #40586d; }
  body:not(.entry-mode) #workspace[data-table-density="compact"] table th { font-size: 12px; padding-top: 10px; padding-bottom: 10px; }
  body:not(.entry-mode) #workspace[data-table-density="compact"] table td { font-size: 12px; padding-top: 9px; padding-bottom: 9px; }
  body:not(.entry-mode) .subtle-button { border-color: #cbd6df; background: #fff; color: #354f65; }
  body:not(.entry-mode) .subtle-button:hover { border-color: #94afa9; background: #f0f7f5; }
  body:not(.entry-mode) .site-header .subtle-button { background: transparent; color: #e6edf2; border-color: #526c7d; }
  body:not(.entry-mode) .site-header .subtle-button:hover { background: #ffffff10; }
  body:not(.entry-mode) .graph-controls { gap: 8px 12px; }
  body:not(.entry-mode) .graph-note { font-size: 13px; line-height: 1.65; }
  body:not(.entry-mode) .graph-inspection { background: #f6f8fa; border-color: #dce4eb; border-radius: 7px; }
  body:not(.entry-mode) .graph-legend-button { border-radius: 6px; font-size: 12px; }
  body:not(.entry-mode) .review-workspace-shell { background: #edf3f5; border-color: #d8e3e9; padding: 20px; }
  body:not(.entry-mode) .review-workspace-question { color: #213b50; font-size: 18px; }
  body:not(.entry-mode) .review-workspace-tabs a,
  body:not(.entry-mode) .review-process a { font-size: 13px; font-weight: 600; }
  body:not(.entry-mode) .review-workspace-tabs a.active,
  body:not(.entry-mode) .review-process a[aria-current] { background: #08766e; color: #fff; border-color: #08766e; }
  body:not(.entry-mode) .doctor-filter-label > span { font-size: 12px; color: #455c70; }
  body:not(.entry-mode) .doctor-provider-population {
    background: #f5f7fa; border: 1px solid #e1e7ed; color: #4c6175;
    font-size: 13px; line-height: 1.65; padding: 12px 14px;
  }
  body:not(.entry-mode) .doctor-utilization-caption { font-size: 13px; color: #526579; }
  body:not(.entry-mode) .doctor-scope-path { color: #213b50; font-size: 14px; }
  body:not(.entry-mode) .doctor-queue-button { color: #455c70; background: #fff; border-color: #cbd6df; }
  body:not(.entry-mode) .doctor-queue-button[aria-pressed="true"] { background: #08766e; color: #fff; border-color: #08766e; }
  body:not(.entry-mode) .doctor-decision-card { box-shadow: var(--surface-shadow); border-radius: 12px; }
  body:not(.entry-mode) .doctor-card-identity h4 { font-size: 17px; }
  body:not(.entry-mode) .doctor-card-metrics { background: #f7f9fb; padding: 14px; border: 0; border-radius: 7px; margin-bottom: 12px; }
  body:not(.entry-mode) .doctor-card-metrics strong { color: #213b50; font-size: 20px; }
  body:not(.entry-mode) .attention-label strong { font-size: 13px; }
  body:not(.entry-mode) .attention-label small { font-size: 12px; }
  body:not(.entry-mode) .profit-summary-card > span,
  body:not(.entry-mode) .profit-summary-card > small { font-size: 12px; }
  body:not(.entry-mode) dialog { border-color: #dce4eb; border-radius: 12px; box-shadow: 0 24px 80px #102d4033; }
  body:not(.entry-mode) dialog::backdrop { background: #122b3f80; }
  body:not(.entry-mode) #editor > .panel-heading { background: #f7f9fb; }
}
@media screen and (max-width: 700px) {
  body:not(.entry-mode) .site-header p { font-size: 10px; }
  body:not(.entry-mode) #page-title { font-size: 27px; }
  body:not(.entry-mode) .top-line { margin-bottom: 16px; }
  body:not(.entry-mode) .filters { padding: 14px; }
  body:not(.entry-mode) .tile { padding: 14px; }
  body:not(.entry-mode) .tile label { font-size: 12px; }
  body:not(.entry-mode) .tile p { font-size: 11px; }
  body:not(.entry-mode) input:not([type="checkbox"]):not([type="radio"]),
  body:not(.entry-mode) select,
  body:not(.entry-mode) textarea { font-size: 16px; }
  body:not(.entry-mode) .header-search input { font-size: 13px; }
  body:not(.entry-mode) .review-workspace-shell { padding: 14px; }
  body:not(.entry-mode) #editor { border-radius: 0; }
}
/* Reagent costs use neutral marks and a keyboard-accessible evidence review. */
.reagent-history-button { display:grid; gap:3px; width:200px; max-width:100%; padding:5px; border:1px solid #c7d5db; border-radius:7px; color:#2d5264; background:#f7fafb; text-align:left; }
.reagent-history-button:hover { border-color:#478575; background:#edf6f2; }
.reagent-history-button svg { display:block; width:190px; max-width:100%; height:auto; }
.reagent-history-button small { font-size:11px; color:#4c6670; }
.reagent-history-review { min-width:0; }
.reagent-history-review .panel { margin:14px 0; }
.reagent-review-caption { font-weight:650; color:#315c64; }
.reagent-aligned-charts { display:grid; gap:12px; min-width:0; }
.reagent-history-review .toolbar { margin:12px 0; }
.reagent-history-review .tiles { grid-template-columns:repeat(4,minmax(0,1fr)); }
.reagent-history-review .tile .amount { font-size:clamp(17px,2.4vw,25px); overflow-wrap:anywhere; }
.reagent-month-evidence { padding:10px 0; border-bottom:1px solid #d8e3df; }
.reagent-coverage-checks { margin:14px 0; }
@media(max-width:900px) {
  .reagent-history-review .tiles { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:600px) {
  .reagent-history-review .toolbar { flex-wrap:wrap; }
  .reagent-history-review .toolbar select { max-width:100%; }
}

/* One shared review heading and a compact, page-aware sticky filter bar. */
.review-page-heading { position:relative; z-index:19; display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-areas:"location tools" "title readiness"; gap:8px 20px; align-items:start; margin:0 0 16px; }
.review-page-heading .workspace-tools { grid-area:location; margin:0; min-height:24px; }
.review-page-heading .top-line { grid-area:title; margin:0!important; padding:0; }
.review-page-heading #page-title { font-size:clamp(24px,2.3vw,30px); }
.review-page-heading .review-description { margin:5px 0 0; font-size:13px; line-height:1.45; }
.review-static-context, #review-unfiltered-status { margin:6px 0 0; color:#52697b; font-size:12px; }
.review-static-context[hidden] { display:none; }
#review-unfiltered-status .review-update-notice { font-size:12px; margin:7px 0 0; }
.review-page-heading .review-heading-tools { grid-area:tools; display:flex; align-items:center; justify-content:flex-end; gap:4px; padding:0; width:auto; }
.review-heading-tools.review-tools button, .review-heading-tools .review-options > summary { min-height:36px; padding:7px 10px; font-size:12px; }
.review-heading-tools .review-options { position:relative; inset:auto; margin:0; }
.review-heading-tools .review-options .review-display { top:40px; z-index:25; display:flex; flex-direction:column; align-items:stretch; gap:10px; }
.review-heading-tools .review-options .review-display > button { display:block!important; text-align:left; background:#fff; border:1px solid var(--line); }
.review-heading-tools .review-display select { width:100%; }
.review-page-heading .data-freshness { grid-area:readiness; position:relative; margin:0; padding:6px 9px; border-radius:6px; max-width:360px; font-size:11px; justify-self:end; }
.review-page-heading .freshness-summary { gap:8px; font-size:11px; white-space:nowrap; }
.review-page-heading .freshness-summary strong { white-space:nowrap; }
.review-page-heading .data-freshness > a { font-size:11px; margin:2px 0 0; }
.review-page-heading .freshness-sources { position:absolute; top:100%; right:0; z-index:24; width:min(460px,calc(100vw - 32px)); padding:14px; background:#fff; border:1px solid var(--line); border-radius:8px; box-shadow:0 10px 28px #20344922; }
.review-bar { position:sticky; top:var(--header-height,72px); z-index:18; min-width:0; padding:12px 14px 9px; margin:0 0 16px; background:#fff; border:1px solid #d7e2e8; border-radius:9px; box-shadow:0 3px 9px #2034490c; }
.review-bar-main { display:flex; flex-wrap:wrap; align-items:flex-end; gap:10px 12px; }
body:not(.entry-mode) #workspace .review-bar .filters, .review-page-filters { display:contents; }
.review-bar .filters[hidden], .review-bar[hidden] { display:none!important; }
#workspace .review-bar .filters > div:not(.doctor-geography-controls), .review-page-filters > label, .review-page-filters > .profit-measures { flex:0 1 160px; min-width:130px; max-width:240px; width:auto; margin:0; }
.review-bar label, #workspace .review-bar .filters label { display:grid; gap:5px; align-content:start; margin:0; font-size:11px; font-weight:650; line-height:1.4; }
.review-bar .graph-control { padding:0; }
.review-bar select, #workspace .review-bar .filters select { width:100%; min-width:0; min-height:40px; font-size:13px; padding:8px 28px 8px 10px; }
.review-bar input { min-width:0; width:100%; font-size:13px; min-height:40px; }
.review-page-filters .profit-measures { display:block; }
.review-bar .site-picker, #workspace .review-bar #home-site-controls { flex:1 1 220px; max-width:330px; min-width:190px; }
#workspace .review-bar #home-site-controls > .site-picker { width:100%; }
.review-bar .site-picker-toggle { min-height:40px; padding:8px 10px; }
.review-bar .site-picker-selected { font-size:13px; }
.review-bar .site-picker-selected-detail { display:none; }
.review-bar .site-picker-clear { min-width:42px; padding:8px; font-size:11px; }
.review-bar [data-review-placement="extra"] { display:none!important; }
.review-bar.filters-expanded [data-review-placement="extra"]:not([hidden]) { display:grid!important; }
.review-bar.filters-expanded .period-alignment { display:block!important; flex:1 0 100%; }
.review-bar .review-filter-toggle { flex:0 0 auto; display:flex; align-items:center; justify-content:space-between; gap:10px; order:90; margin:0 0 0 auto; min-height:40px; font-size:12px; padding:8px 10px; color:#365a6d; }
.review-bar .review-filter-toggle[hidden] { display:none!important; }
.review-bar.filters-expanded .review-filter-toggle > span:last-child { transform:rotate(180deg); }
.review-bar .active-filters { display:flex; flex-wrap:wrap; margin:9px 0 0; gap:6px; }
.review-bar .active-filters[hidden] { display:none; }
.review-bar-context { display:flex; align-items:center; flex-wrap:wrap; gap:3px 10px; margin-top:8px; color:#52697b; }
.review-bar-context #period-caption { margin:0; min-width:0; flex:1; font-size:11px; line-height:1.5; }
#review-bar-basis { font-size:11px; font-weight:700; color:#285f59; }
#review-bar-basis[hidden] { display:none; }
.review-bar #busy { font-size:11px; color:#805c1f; }
.review-bar .review-update-notice { margin:7px 0 0; padding:7px 9px; font-size:11px; }
.review-bar .cockpit-site-picker { padding:0; margin:0; border:0; background:transparent; }
.review-bar #date-filter { order:0; }
.review-bar #months-filter, .review-page-filters > label:has(select[aria-label="Profitability period"]), .review-page-filters > label:has(select[aria-label="Doctor utilization period"]) { order:1; }
.review-bar #region-filter { order:2; }
.review-bar #basis-filter, .review-page-filters > .profit-measures, .review-page-filters > .review-field { order:3; }
.review-bar .site-picker, .review-bar #home-site-controls { order:4; }
.review-bar [data-review-placement="extra"] { order:50; }
.review-bar .cockpit-site-picker .site-picker-clear, .review-bar .cockpit-site-picker .site-picker-reset { display:none!important; }
#advanced-page .cost-review-filters:not(:has(select,input)) { display:none; }
.panel, [id^="review-section-"], #page-title { scroll-margin-top:calc(var(--header-height,72px) + var(--review-bar-height,0px) + 16px); }
html { scroll-padding-top:calc(var(--header-height,72px) + var(--review-bar-height,0px) + 12px); }
.review-bar :focus-visible { scroll-margin-top:calc(var(--header-height,72px) + 8px); }
@media(max-width:1050px) { .review-page-heading { grid-template-columns:minmax(0,1fr) auto; } .review-page-heading .data-freshness { max-width:300px; } }
@media(max-width:700px) {
  .review-page-heading { grid-template-areas:"location tools" "title title" "readiness readiness"; gap:8px 10px; margin-bottom:12px; }
  .review-page-heading .data-freshness { justify-self:start; max-width:100%; }
  .review-page-heading .workspace-tools { min-height:0; padding-top:5px; }
  .review-page-heading #page-title { font-size:25px; }
  .review-page-heading .review-description { font-size:12px; }
  .review-heading-tools .review-options .review-display { width:min(280px,calc(100vw - 28px)); }
  .review-bar { padding:9px 11px; border-radius:8px; }
  .review-bar:not(.filters-expanded) .filters, .review-bar:not(.filters-expanded) .review-page-filters { display:none!important; }
  .review-bar .review-filter-toggle { order:-1; flex:1 1 100%; min-width:0; max-width:100%; margin:0; background:#f1f6f6; border-color:#c7dcd8; font-size:12px; }
  .review-bar .review-filter-toggle #review-filter-summary { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .review-bar .review-filter-toggle > span:last-child { flex-shrink:0; }
  #review-filter-summary { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .review-bar.filters-expanded .review-bar-main { max-height:calc(100dvh - var(--header-height,72px) - 150px); overflow-y:auto; overscroll-behavior:contain; padding:2px; }
  #workspace .review-bar .filters > div:not(.doctor-geography-controls), .review-page-filters > label, .review-page-filters > .profit-measures { flex:1 1 130px; max-width:none; min-width:115px; }
  .review-bar .site-picker, #workspace .review-bar #home-site-controls { flex:1 0 100%; max-width:none; width:100%; }
  .review-bar select, #workspace .review-bar .filters select, .review-bar input { font-size:16px; }
  .review-bar .review-bar-context #period-caption { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; flex-basis:100%; }
  .review-bar .active-filters { gap:5px; margin-top:7px; }
  .review-bar .filter-chip { font-size:11px; }
}
/* Mobile-First Field View for Scoped Marketer Workspace */
.mk-filter-bar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; margin:10px 0 12px; }
.mk-chips { display:flex; flex-wrap:wrap; gap:6px; }
.mk-chip { min-height:36px; padding:6px 12px; border:1px solid var(--line, #cbd6df); border-radius:999px; background:#fff; color:var(--ink, #1b3043); font-size:13px; font-weight:600; cursor:pointer; }
.mk-chip.active { background:var(--teal, #08766e); border-color:var(--teal, #08766e); color:#fff; }
.mk-search { min-height:36px; padding:6px 12px; min-width:220px; flex:0 1 280px; border:1px solid var(--line, #cbd6df); border-radius:8px; }
.mk-cards { display:none; }
@media (max-width: 768px) {
  .mk-desktop-table { display:none; }
  .mk-cards { display:grid; grid-template-columns:1fr; gap:10px; }
  .mk-search { flex:1 1 100%; min-width:0; font-size:16px; }
  .mk-chip { min-height:40px; padding:8px 14px; font-size:13px; }
  .mk-card { border:1px solid var(--line, #dce4eb); border-radius:10px; padding:12px 14px; background:#fff; box-shadow:0 1px 4px rgba(19,45,64,.06); }
  .mk-card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; margin-bottom:10px; }
  .mk-card-title { display:flex; flex-direction:column; gap:2px; min-width:0; }
  .mk-card-title strong { font-size:15px; line-height:1.3; color:var(--ink, #1b3043); }
  .mk-card-title span { font-size:12px; }
  .mk-card-metrics { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:8px; border-top:1px solid var(--line, #e6edf2); padding-top:8px; }
  .mk-card-metric { display:flex; flex-direction:column; gap:2px; }
  .mk-card-label { font-size:11px; color:var(--muted, #526579); }
  .mk-card-metric strong { font-size:13px; color:var(--ink, #1b3043); }
  .mk-val-bad { color:#b4432a !important; }
  .mk-val-good { color:#08766e !important; }
}
@media print {
  .review-page-heading .workspace-tools, .review-heading-tools { display:none!important; }
  .review-page-heading { display:block; }
  .review-bar { position:static; box-shadow:none; break-inside:avoid; }
  .review-bar .review-filter-toggle, .review-bar .active-filters { display:none!important; }
  .review-bar .filters, .review-bar .review-page-filters { display:contents!important; }
  .review-bar select { border:0; appearance:none; background:transparent; padding:0; }
  .graph-card, .radar-boxstrip-wrap, .staff-matrix-chart-card, .central-range { break-inside:avoid; }
  .graph-controls, .radar-chart-bar button, .staff-matrix-export-btns { display:none!important; }
  html { scroll-padding-top:0; }
}
