.security-page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 64px;
}

.security-hero {
  min-height: 360px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  align-items: end;
  gap: 36px;
  padding: 24px 0 42px;
  border-bottom: 1px solid var(--line);
}

.security-hero h1 {
  max-width: 820px;
  font-size: clamp(3.2rem, 8vw, 6.2rem);
}

.security-lede {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.65;
}

.audit-card,
.summary-grid article,
.report-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.audit-card {
  padding: 24px;
}

.audit-card.subdued {
  background: #fbfcfd;
}

.audit-card__label {
  margin: 0;
  color: #7a4d09;
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
}

.audit-card__value {
  margin: 10px 0;
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 780;
}

.audit-card__note,
.note {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.summary-grid article {
  min-height: 148px;
  padding: 18px;
}

.summary-grid span {
  display: block;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 760;
  text-transform: uppercase;
}

.summary-grid strong {
  display: block;
  margin: 12px 0 8px;
  font-size: 2.4rem;
  line-height: 1;
}

.summary-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.report-section {
  margin-top: 18px;
  padding: 24px;
}

.report-section h2 {
  margin: 0 0 14px;
  font-size: 1.45rem;
}

.report-section p {
  color: var(--muted);
  line-height: 1.65;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
  gap: 24px;
  align-items: start;
}

.port-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.port-grid div {
  min-height: 96px;
  padding: 14px;
  border: 1px solid #dbe4ec;
  border-radius: 8px;
  background: #f8fbfc;
}

.port-grid b {
  display: block;
  margin-bottom: 8px;
  color: #0f5f58;
  font-size: 1rem;
}

.port-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

code {
  padding: 0.1em 0.35em;
  border-radius: 5px;
  background: #eef2f5;
  color: #263442;
  font-size: 0.92em;
}

.finding-list,
.recommendations {
  margin: 16px 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.7;
}

.masked-ip {
  margin: 12px 0;
  padding: 12px;
  border-radius: 8px;
  background: #eef8f6;
  color: #103f3b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid #dbe4ec;
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid #e5ebf0;
  text-align: left;
  vertical-align: top;
}

th {
  color: #334250;
  background: #f3f6f8;
  font-size: 0.8rem;
  font-weight: 760;
  text-transform: uppercase;
}

td {
  color: #263442;
  font-size: 0.93rem;
  line-height: 1.4;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.bar-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.bar-list div {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.bar-list span {
  color: #334250;
  font-weight: 760;
}

.bar-list b {
  position: relative;
  min-height: 32px;
  padding: 7px 10px;
  border-radius: 7px;
  background: #f0f3f5;
  color: #17202a;
  overflow: hidden;
}

.bar-list b::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  background: linear-gradient(90deg, rgba(20, 124, 114, 0.24), rgba(201, 137, 43, 0.22));
}

.bar-list b {
  isolation: isolate;
}

.report-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.report-footer a {
  color: var(--accent-strong);
  font-weight: 750;
  text-decoration: none;
}

@media (max-width: 980px) {
  .summary-grid,
  .port-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .security-hero,
  .two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .security-page {
    width: min(100% - 28px, 680px);
    padding-top: 28px;
  }

  .summary-grid,
  .port-grid {
    grid-template-columns: 1fr;
  }

  .summary-grid article {
    min-height: 120px;
  }

  .report-section {
    padding: 18px;
  }
}
