: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) {
    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,
  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;
  }
  .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; } }
