/*! Generated from assets/scss/app.scss. Edit SCSS and run php bin/build-css.php. */
:root {
  --ink:#000;
  --muted:#626262;
  --bg:#f7f7f7;
  --line:#e3e3e3;
  --green:#b9120f;
  --mint:#fff1f0;
  --red:#a94032;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

a {
  color: var(--green);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.sidebar {
  width: 244px;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: #000;
  color: #fff;
  padding: 34px 24px;
}

.sidebar > * {
  flex-shrink: 0;
}

.brand {
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
}

.brand-icon {
  width: 42px;
  height: 42px;
  background: #d8edb4;
  border-radius: 12px;
  color: #18372b;
  font-size: 32px;
  text-align: center;
  line-height: 36px;
  font-family: Georgia, serif;
}

.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  color: #b5b5b5;
  margin-top: 5px;
}

.nav-title {
  font-size: 10px;
  letter-spacing: 2px;
  color: #aaa;
  margin: 58px 10px 18px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  padding: 12px;
  border-radius: 8px;
}

.nav-icon {
  width: 20px;
  height: 20px;
  flex: none;
}

.nav.active {
  background: #33201f;
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 28px;
  color: #ccc;
  font-size: 12px;
}

.sidebar-bottom small {
  display: block;
  margin: 8px 0 0 17px;
  color: #aaa;
}

.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #f04e4b;
  border-radius: 50%;
  margin-right: 7px;
}

main {
  margin-left: 244px;
  padding: 36px 48px;
  max-width: 1800px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: var(--muted);
  font-weight: 600;
}

h1 {
  font-size: 31px;
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.3;
  margin: 8px 0;
}

h2 {
  font-size: 18px;
  letter-spacing: -0.3px;
  margin: 0 0 14px;
  font-weight: 600;
}

h3 {
  font-size: 15px;
  margin: 8px 0;
}

.intro {
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 30px;
}

.muted {
  color: var(--muted);
  font-size: 12px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}

.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
}

.stat > span {
  font-size: 12px;
  color: var(--muted);
}

.stat strong {
  display: block;
  font-size: 38px;
  font-weight: 500;
  line-height: 1.2;
  margin: 16px 0;
}

.stat strong small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 8px;
}

.stat p {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 0;
}

.red {
  color: var(--red);
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px;
  margin-bottom: 24px;
  scroll-margin-top: 24px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.section-heading h2, .section-heading p {
  margin: 0;
}

.section-heading p {
  margin-top: 4px;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 24px;
}

.notice {
  padding: 14px 18px;
  border-radius: 8px;
  background: var(--mint);
  border: 1px solid #f7ccc9;
  margin: 16px 0;
  font-size: 13px;
}

.warning {
  background: #fff8e7;
  border-color: #efe1bf;
  color: #806329;
}

.danger {
  background: #fcece8;
  border-color: #edcfc5;
  color: #8c392d;
}

.badge {
  display: inline-block;
  white-space: normal;
  font-size: 11px;
  border-radius: 5px;
  padding: 4px 8px;
  background: #edf0ec;
  color: #6b7872;
  line-height: 1.5;
}

.badge.vulnerable, .badge.error {
  background: #fae9e4;
  color: #a64332;
}

.badge.no_known {
  background: #e6f1e5;
  color: #326345;
}

.badge.incomplete {
  background: #fff3d8;
  color: #85611b;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  text-align: left;
}

th {
  font-weight: 500;
  color: var(--muted);
  font-size: 11px;
  background: #fafafa;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

td {
  padding: 17px 14px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}

td small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

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

.site-link {
  font-weight: 600;
  color: var(--ink);
}

.table-scroll {
  overflow-x: auto;
}

label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin: 15px 0;
}

input, select, textarea {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
  margin-top: 6px;
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid #f04e4b;
  outline-offset: 2px;
}

button, .button {
  display: inline-block;
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: 6px;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  padding: 10px 16px;
  cursor: pointer;
  text-align: center;
}

button:hover, .button:hover {
  filter: brightness(0.94);
  text-decoration: none;
}

.secondary {
  background: #fff;
  color: var(--green);
  border-color: #ddd;
}

.quiet {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
  padding: 6px 10px;
}

.text-danger {
  background: transparent;
  color: var(--red);
  border-color: #edcfc5;
}

form + form {
  margin-top: 12px;
}

.empty {
  text-align: center;
  padding: 46px 20px 52px;
  color: var(--muted);
}

.empty h3 {
  color: var(--ink);
  font-size: 18px;
}

.empty-icon {
  font-size: 40px;
  color: #888;
}

.empty p {
  margin-bottom: 22px;
}

.back {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 12px;
}

.environment {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.environment .section-heading {
  margin: 0;
}

.url {
  font-size: 13px;
  margin: 6px 0;
  overflow-wrap: anywhere;
}

.environment > .muted {
  margin-top: 0;
}

details {
  margin: 12px 0;
}

summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--green);
}

details > form {
  margin-top: 16px;
}

.add {
  padding-top: 12px;
}

.recipient {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.recipient span {
  overflow-wrap: anywhere;
}

dl {
  font-size: 12px;
}

dt {
  color: var(--muted);
  margin-top: 14px;
}

dd {
  margin: 2px 0 16px;
}

.connection {
  background: #fff1f0;
  border-color: #f7ccc9;
}

.connection textarea {
  font-family: monospace;
  font-size: 12px;
  word-break: break-all;
}

.finding {
  border-left: 3px solid #d77c60;
  padding: 12px 16px;
  background: #fcf8f5;
  margin: 12px 0;
}

pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 11px;
  font-family: inherit;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 25px 0;
}

footer {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0 20px;
}

.login {
  max-width: 460px;
  margin: 65px auto;
}

header form {
  flex-shrink: 0;
}

header .muted {
  margin-right: 12px;
}

@media (min-width: 1600px) {
  main {
    padding: 46px 68px;
  }
}
@media (max-width: 1100px) {
  main {
    padding: 28px;
  }
  .sidebar {
    width: 205px;
    padding: 30px 18px;
  }
  main {
    margin-left: 205px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  header .muted {
    display: none;
  }
}
@media (max-width: 700px) {
  .sidebar {
    position: static;
    display: block;
    overflow-y: visible;
    width: auto;
    padding: 18px 22px;
  }
  .sidebar .nav-title, .sidebar .nav, .sidebar-bottom {
    display: none;
  }
  main {
    margin: 0;
    padding: 24px 18px;
  }
  .brand-icon {
    width: 35px;
    height: 35px;
    font-size: 28px;
    line-height: 30px;
  }
  h1 {
    font-size: 26px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 16px;
  }
  .stat strong {
    font-size: 32px;
  }
  .panel {
    padding: 20px;
  }
  .section-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  header {
    align-items: flex-start;
  }
  footer {
    flex-direction: column;
    gap: 6px;
  }
  .intro {
    font-size: 14px;
  }
}
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: none;
}

.scan-controls dl {
  margin-bottom: 0;
}

.scan-controls [data-scan-progress] {
  color: var(--green);
  font-weight: 600;
}

.scan-controls form {
  margin: 0;
}

.scan-controls dd {
  font-size: 15px;
}

:root {
  --white:#fff;
  --black:#000;
  --tangerine:#f04e4b;
  --tangerine-d-05:#ee3733;
  --tangerine-d-10:#ec201c;
}

.brand-logo {
  display: block;
  width: 48px;
  height: 48px;
  flex: none;
}

.brand:hover {
  text-decoration: none;
}

.nav.active {
  border-left: 3px solid var(--tangerine);
}

button, .button {
  background: var(--tangerine);
  border-color: var(--tangerine);
  color: var(--white);
  font-weight: 600;
}

button:hover, .button:hover {
  background: var(--tangerine-d-05);
  border-color: var(--tangerine-d-05);
  filter: none;
}

button:active, .button:active {
  background: var(--tangerine-d-10);
}

button.secondary {
  background: var(--white);
  border-color: #ccc;
  color: #000;
}

button.quiet, button.text-danger {
  background: transparent;
  border-color: var(--line);
}

button.quiet {
  color: var(--muted);
}

button.text-danger {
  color: var(--red);
}

button.secondary:hover, button.quiet:hover, button.text-danger:hover {
  background: #fff1f0;
  border-color: var(--tangerine);
}

:focus-visible {
  outline: 2px solid var(--tangerine);
  outline-offset: 3px;
}

.security-rating {
  border-top: 4px solid var(--tangerine);
}

.rating-heading {
  display: flex;
  align-items: center;
  gap: 22px;
}

.rating-heading h2 {
  font-size: 24px;
  margin: 6px 0;
}

.rating-heading p {
  margin-bottom: 0;
}

.grade {
  display: grid;
  place-items: center;
  flex: none;
  width: 94px;
  height: 94px;
  border-radius: 14px;
  font-size: 58px;
  font-weight: 700;
  line-height: 1;
}

.rating-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 16px;
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 20px;
}

.rating-metrics strong {
  display: block;
  font-size: 26px;
  line-height: 1.3;
}

.rating-metrics span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.severity-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.security-rating ul {
  padding-left: 20px;
  margin-bottom: 0;
}

.severity-critical {
  background: #651727;
  color: #fff;
}

.severity-high {
  background: #ffe3e0;
  color: #9f221d;
}

.severity-medium {
  background: #fff0cb;
  color: #755200;
}

.severity-low {
  background: #e7efff;
  color: #294d8b;
}

.severity-none {
  background: #e6f1e5;
  color: #285337;
}

.severity-unknown {
  background: #ececec;
  color: #505050;
}

.finding-category {
  margin: 24px 0;
}

.finding-category h4, h4 {
  font-size: 16px;
  margin: 20px 0 12px;
}

h5 {
  font-size: 13px;
  margin: 18px 0 8px;
}

.category-count {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  border-radius: 20px;
  background: #eee;
  color: #555;
  padding: 1px 8px;
  margin-left: 5px;
  vertical-align: middle;
}

.finding {
  background: #fafafa;
  border-left-color: #aaa;
  overflow-wrap: anywhere;
}

.finding-critical {
  border-left-color: #651727;
}

.finding-high {
  border-left-color: var(--tangerine);
}

.finding-medium {
  border-left-color: #b58200;
}

.finding-low {
  border-left-color: #294d8b;
}

.finding-score {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.finding-score strong {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.finding p {
  font-size: 12px;
}

@media (max-width: 700px) {
  .rating-heading {
    gap: 14px;
    align-items: flex-start;
  }
  .grade {
    width: 64px;
    height: 72px;
    font-size: 42px;
  }
  .rating-heading h2 {
    font-size: 19px;
  }
  .rating-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .rating-metrics > div:last-child {
    grid-column: 1/-1;
  }
  .brand-logo {
    width: 40px;
    height: 40px;
  }
}
.finding .finding-component {
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 10px;
  font-weight: 700;
}

.finding-title {
  display: block;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.history-table > tbody > .history-summary > td {
  border-bottom: 0;
  padding-bottom: 4px;
}

.history-table > tbody > .history-report-row > td {
  padding-top: 0;
}

.history-report {
  margin: 0 0 12px;
}

.history-report > summary {
  padding: 10px 0;
}

.history-report-content {
  padding: 4px 20px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-top: 8px;
  background: #fff;
}

.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  font-size: 12px;
}

.check-label input[type=checkbox] {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: none;
  margin: 0;
  accent-color: var(--tangerine);
}

.history-delete {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 16px;
}

.history-pagination {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
}

.notice.success {
  background: #e6f1e5;
  border-color: #c4ddc1;
  color: #285337;
}

.rating-heading {
  flex-wrap: wrap;
}

.rating-report-button {
  margin-left: auto;
}

@media (max-width: 700px) {
  .rating-report-button {
    margin-left: 0;
  }
}
.header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.header-actions form {
  margin: 0;
}

.language-form {
  display: flex;
  align-items: center;
  gap: 6px;
}

.language-form select {
  width: auto;
  margin: 0;
  padding: 6px 10px;
  font-size: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.recipient small {
  display: block;
  color: var(--muted);
}

@media (max-width: 700px) {
  .header-actions {
    gap: 10px;
  }
  .sidebar .nav {
    display: inline-flex;
    padding: 8px;
    margin-top: 10px;
  }
  .sidebar .nav-title {
    display: none;
  }
  header {
    flex-wrap: wrap;
  }
}
