:root {
  color-scheme: light;

  --page: #e9eef1;
  --surface: #ffffff;
  --surface-soft: #f5f7f8;
  --surface-dark: #17232c;

  --ink: #17222b;
  --ink-soft: #61707b;
  --line: #d5dde2;

  --blue: #0f5f7b;
  --blue-dark: #0b4559;
  --blue-soft: #e7f1f5;

  --green: #1e6b4a;
  --green-soft: #e9f4ee;

  --amber: #9a6200;
  --amber-soft: #fff4dc;

  --red: #a23a3a;
  --red-soft: #fbeaea;

  --shadow: 0 18px 44px rgba(22, 35, 44, 0.09);

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page);
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(rgba(15, 95, 123, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 95, 123, 0.024) 1px, transparent 1px),
    linear-gradient(180deg,
      rgba(15, 95, 123, 0.08) 0,
      rgba(15, 95, 123, 0) 320px),
    var(--page);
  background-size:
    28px 28px,
    28px 28px,
    auto;
  color: var(--ink);
}

button,
input,
textarea {
  font: inherit;
}

button,
a,
label {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.topbar {
  min-height: 76px;
  padding: 0 34px;
  border-bottom: 1px solid rgba(213, 221, 226, 0.95);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent),
    var(--surface-dark);
  color: white;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(23, 35, 44, 0.16);
}

.brand-mark span {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.brand-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
}

.brand-subtitle {
  margin: 2px 0 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 600;
}

.topbar__security {
  padding: 9px 13px;
  border: 1px solid #bdd6c9;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.84rem;
  font-weight: 800;
}

.security-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(30, 107, 74, 0.12);
}

.review-shell {
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 54px;
}

.report-header {
  padding: 0 2px 26px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.report-header h1 {
  margin: 7px 0 8px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.section-label {
  margin: 0;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.report-header__project {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 0.93rem;
  font-weight: 650;
}

.report-header__meta {
  margin-top: 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.report-header__review-status {
  color: var(--blue);
  font-weight: 900;
}

.report-status {
  min-width: 265px;
  padding: 16px 18px;
  border: 1px solid #bdd6c9;
  border-radius: 12px;
  background: var(--green-soft);
  display: flex;
  align-items: center;
  gap: 13px;
}

.report-status__indicator {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(30, 107, 74, 0.11);
  flex: 0 0 auto;
}

.report-status__label {
  margin: 0 0 3px;
  color: #4d6c5c;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.report-status__value {
  margin: 0;
  color: #174c36;
  font-size: 0.95rem;
  font-weight: 850;
}

.health-banner {
  margin-bottom: 24px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(250px, 0.8fr) minmax(0, 1.7fr);
  align-items: center;
  gap: 28px;
}

.health-banner--ready {
  border-color: #b9d9c7;
  background:
    linear-gradient(135deg,
      rgba(30, 107, 74, 0.08),
      rgba(30, 107, 74, 0.02)),
    var(--surface);
}

.health-banner__status {
  display: flex;
  align-items: center;
  gap: 16px;
}

.health-banner__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--green);
  color: white;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(30, 107, 74, 0.2);
  flex: 0 0 auto;
}

.health-banner h2 {
  margin: 5px 0 0;
  color: #174c36;
  font-size: 1.5rem;
  letter-spacing: -0.025em;
}

.health-banner__summary {
  padding-left: 28px;
  border-left: 1px solid #bfd8c8;
}

.health-banner__summary>p {
  margin: 0 0 14px;
  color: #355e49;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.55;
}

.health-banner__facts {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}

.health-banner__facts li {
  position: relative;
  padding-left: 18px;
  color: #456653;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.45;
}

.health-banner__facts li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  position: absolute;
  top: 0.45em;
  left: 0;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  gap: 24px;
  align-items: start;
}

.dashboard-main,
.dashboard-sidebar {
  display: grid;
  gap: 24px;
}

.summary-card,
.results-card,
.photos-card,
.document-card,
.review-card,
.history-card,
.audit-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.summary-card,
.results-card,
.photos-card,
.review-card,
.history-card {
  padding: 24px;
}

.section-heading {
  margin-bottom: 20px;
}

.section-heading--split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.section-heading h2,
.document-toolbar h2,
.review-card h2,
.history-card h2 {
  margin: 5px 0 0;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}

.section-heading__note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 700;
}

.summary-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metric-card {
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-soft);
}

.metric-card--success {
  border-color: #c7ddcf;
  background: var(--green-soft);
}

.metric-card__label {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-card__value {
  margin: 14px 0 5px;
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
}

.metric-card__detail {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 650;
}

.project-summary {
  margin: 20px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
}

.project-summary div {
  min-height: 92px;
  padding: 15px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: white;
}

.project-summary div:nth-child(4n) {
  border-right: 0;
}

.project-summary div:nth-last-child(-n + 4) {
  border-bottom: 0;
}

.project-summary dt {
  margin-bottom: 7px;
  color: var(--ink-soft);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-summary dd {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.4;
}

.result-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
}

.result-stats div {
  min-height: 92px;
  padding: 16px;
  border-right: 1px solid var(--line);
  background: var(--surface-soft);
  display: grid;
  align-content: center;
  gap: 7px;
}

.result-stats div:last-child {
  border-right: 0;
}

.result-stats span {
  color: var(--ink-soft);
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.result-stats strong {
  font-size: 1.12rem;
}

.status-pass {
  color: var(--green);
}

.results-table-wrapper {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow-x: auto;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.results-table th,
.results-table td {
  padding: 14px 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.results-table th {
  background: #edf2f4;
  color: #4f5d66;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.results-table td {
  font-size: 0.82rem;
  font-weight: 700;
}

.results-table tbody tr:last-child td {
  border-bottom: 0;
}

.table-status {
  min-width: 58px;
  padding: 7px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.table-status--pass {
  background: var(--green);
  color: white;
}

.table-status--fail {
  background: var(--red);
  color: white;
}

.status-fail {
  color: var(--red);
}

.density-test-list {
  margin-top: 18px;
  display: grid;
  gap: 16px;
}

.density-test-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.density-test-card__header {
  margin: -20px -20px 18px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  border-radius: 14px 14px 0 0;
  background: #eef3f5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.density-test-card__header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.density-test-card__location {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  display: grid;
  gap: 5px;
}

.density-test-card__location span,
.density-test-card__result span,
.density-test-card__notes span {
  color: var(--ink-soft);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.density-test-card__location strong {
  font-size: 0.92rem;
  line-height: 1.4;
}

.density-test-card__result {
  margin-top: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "label value"
    "requirement value"
    "status value";
  align-items: center;
  gap: 10px 24px;
}

.density-test-card__result--pass {
  border-color: #b9d9c7;
  background: var(--green-soft);
}

.density-test-card__result--fail {
  border-color: #efbcbc;
  background: var(--red-soft);
}

.density-test-card__result>span {
  grid-area: label;
}

.density-test-card__result strong {
  grid-area: value;
  align-self: center;
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
}

.density-test-card__requirement {
  grid-area: requirement;
  display: grid;
  gap: 3px;
}

.density-test-card__requirement span {
  color: var(--ink-soft);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.density-test-card__requirement b {
  font-size: 0.9rem;
}



.density-test-card__details {
  margin: 14px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.density-test-card__details div {
  min-height: 96px;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg,
      #ffffff 0%,
      #fbfcfd 100%);
  transition: background-color 160ms ease;
}

.density-test-card__details div:nth-child(3n) {
  border-right: 0;
}

.density-test-card__details div:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.density-test-card__details dt {
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.density-test-card__details dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
}

.density-test-card__notes {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.density-test-card__notes p {
  margin: 7px 0 0;
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.55;
}

.density-review-comment {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #c8d4da;
  border-radius: 10px;
  background: #f8fafb;
}

.density-review-comment label {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.density-review-comment textarea {
  width: 100%;
  min-height: 88px;
  padding: 12px;
  border: 1px solid #bcc8cf;
  border-radius: 9px;
  background: white;
  color: var(--ink);
  outline: none;
  resize: vertical;
  line-height: 1.5;
}

.density-review-comment textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(15, 95, 123, 0.1);
}

.density-review-comment__toggle {
  width: 100%;
  padding: 12px 16px;
  border: 1px dashed var(--blue);
  border-radius: 9px;
  background: white;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease;
}

.density-review-comment__toggle:hover {
  background: var(--blue-soft);
}

.density-review-comment__toggle[aria-expanded="true"] {
  border-style: solid;
  background: var(--blue);
  color: white;
}

.density-review-comment__editor {
  margin-top: 14px;
}

.density-test-empty {
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--ink-soft);
  text-align: center;
  font-size: 0.84rem;
  font-weight: 700;
}

.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 850;
  cursor: pointer;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.photo-placeholder {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  overflow: hidden;
}

.photo-placeholder__image {
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, rgba(15, 95, 123, 0.08), rgba(23, 35, 44, 0.16)),
    #dfe7eb;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-decoration: none;
  color: #53636d;
  font-size: 0.78rem;
  font-weight: 900;
}

.photo-placeholder__caption {
  padding: 12px;
  display: grid;
  gap: 4px;
}

.photo-placeholder__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 180ms ease;
}

.photo-placeholder:hover .photo-placeholder__image img {
  transform: scale(1.03);
}

.photo-placeholder__caption strong {
  font-size: 0.8rem;
}

.photo-placeholder__caption span {
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.document-card {
  overflow: hidden;
}

.document-toolbar {
  min-height: 88px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.document-toolbar__actions {
  display: flex;
  gap: 10px;
}

.toolbar-button {
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.toolbar-button--primary {
  border-color: var(--blue);
  background: var(--blue);
  color: white;
}

.document-preview {
  min-height: 160px;
  padding: 24px;
  background: var(--surface-soft);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.document-preview__icon {
  width: 64px;
  height: 78px;
  border-radius: 8px 8px 14px 8px;
  background: var(--surface-dark);
  color: white;
  display: grid;
  place-items: center;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.document-preview h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.document-preview p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.55;
}

.document-preview__button {
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid var(--blue);
  border-radius: 9px;
  background: var(--blue);
  color: white;
  font-weight: 850;
  cursor: pointer;
}

.dashboard-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

.review-card__heading {
  margin-bottom: 22px;
}

.review-card__heading p:last-child {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}

.decision-options {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 12px;
}

.decision-card {
  min-height: 100px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 13px;
  cursor: pointer;
}

.decision-card input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--blue);
}

.decision-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  font-weight: 900;
}

.decision-card__content {
  display: grid;
  gap: 5px;
}

.decision-card__content strong {
  font-size: 0.96rem;
}

.decision-card__content small {
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.45;
}

.decision-card--approve .decision-card__icon {
  background: var(--green-soft);
  color: var(--green);
}

.decision-card--return .decision-card__icon {
  background: var(--amber-soft);
  color: var(--amber);
}

.decision-card--approve:has(input:checked) {
  border-color: var(--green);
  background: var(--green-soft);
  box-shadow: 0 0 0 3px rgba(30, 107, 74, 0.1);
}

.decision-card--return:has(input:checked) {
  border-color: var(--amber);
  background: var(--amber-soft);
  box-shadow: 0 0 0 3px rgba(154, 98, 0, 0.1);
}

.form-field {
  margin-top: 20px;
}

.form-field label {
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  font-weight: 850;
}

.form-field label span {
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 650;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid #bcc8cf;
  border-radius: 9px;
  background: white;
  color: var(--ink);
  outline: none;
}

.form-field input {
  min-height: 46px;
  padding: 10px 12px;
}

.form-field textarea {
  padding: 12px;
  resize: vertical;
  line-height: 1.5;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(15, 95, 123, 0.1);
}

.submit-button {
  width: 100%;
  min-height: 50px;
  margin-top: 22px;
  border: 1px solid var(--blue);
  border-radius: 10px;
  background: var(--blue);
  color: white;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 95, 123, 0.2);
}

.form-message {
  margin-top: 18px;
  padding: 13px 14px;
  border-radius: 9px;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.45;
}

.form-message--success {
  border: 1px solid #b9d9c7;
  background: var(--green-soft);
  color: var(--green);
}

.form-message--error {
  border: 1px solid #efbcbc;
  background: var(--red-soft);
  color: var(--red);
}

.history-card__heading {
  margin-bottom: 20px;
}

.history-timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.history-item {
  min-height: 96px;
  position: relative;
  padding: 0 0 24px 34px;
}

.history-item:last-child {
  padding-bottom: 0;
}

.history-item::before {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 0;
  left: 8px;
  width: 2px;
  background: var(--line);
}

.history-item:last-child::before {
  display: none;
}

.history-item__marker {
  width: 18px;
  height: 18px;
  border: 4px solid var(--surface);
  border-radius: 50%;
  background: #98a6ae;
  box-shadow: 0 0 0 1px var(--line);
  position: absolute;
  top: 0;
  left: 0;
}

.history-item--current .history-item__marker {
  background: var(--green);
  box-shadow: 0 0 0 1px #8dbda3;
}

.history-item strong {
  font-size: 0.88rem;
}

.history-item p,
.history-item time {
  margin: 5px 0 0;
  color: var(--ink-soft);
  display: block;
  font-size: 0.75rem;
}

.audit-card {
  padding: 18px;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  background: #f7fafb;
}

.audit-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--surface-dark);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 900;
  flex: 0 0 auto;
}

.audit-card h2 {
  margin: 1px 0 5px;
  font-size: 0.9rem;
}

.audit-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.5;
}

.site-footer {
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 36px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 0.78rem;
}

.site-footer div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.site-footer p {
  margin: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1180px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}

@media (max-width: 900px) {

  .summary-metrics,
  .project-summary,
  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-summary div:nth-child(4n) {
    border-right: 1px solid var(--line);
  }

  .project-summary div:nth-child(2n) {
    border-right: 0;
  }

  .project-summary div:nth-last-child(-n + 4) {
    border-bottom: 1px solid var(--line);
  }

  .project-summary div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

@media (max-width: 760px) {

  .report-header__meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .report-header__meta>span[aria-hidden="true"] {
    display: none;
  }

  .health-banner {
    padding: 20px;
  }

  .density-test-card__details {
    grid-template-columns: 1fr;
  }

  .density-test-card__details div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .density-test-card__details div:nth-last-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

  .density-test-card__details div:last-child {
    border-bottom: 0;
  }

  .density-test-card__result {
    grid-template-columns: 1fr;
  }

  .density-test-card__result strong {
    grid-column: auto;
    grid-row: auto;
    margin-top: 8px;
  }

  .health-banner__facts {
    grid-template-columns: 1fr;
  }

  .topbar {
    min-height: auto;
    padding: 16px;
    align-items: flex-start;
  }

  .brand-subtitle {
    display: none;
  }

  .topbar__security {
    padding: 8px 10px;
    font-size: 0.76rem;
  }

  .review-shell {
    width: min(100% - 24px, 1480px);
    padding-top: 24px;
  }

  .report-header {
    align-items: stretch;
    flex-direction: column;
  }

  .report-status {
    min-width: 0;
  }

  .summary-metrics,
  .project-summary,
  .result-stats,
  .photo-grid {
    grid-template-columns: 1fr;
  }

  .project-summary div,
  .result-stats div {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .project-summary div:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .project-summary div:last-child,
  .result-stats div:last-child {
    border-bottom: 0;
  }

  .document-toolbar,
  .section-heading--split {
    align-items: flex-start;
    flex-direction: column;
  }

  .document-toolbar__actions {
    width: 100%;
  }

  .toolbar-button {
    flex: 1;
  }

  .document-preview {
    grid-template-columns: auto 1fr;
  }

  .document-preview__button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .site-footer {
    width: min(100% - 24px, 1480px);
    align-items: flex-start;
    flex-direction: column;
  }
}