@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/ibm-plex-mono-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/ibm-plex-mono-500.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/sora-400-800.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Shared brand tokens from malware-go/website/style.css. */
:root {
  --bg:        #0a0c0f;
  --bg-raise:  #0e1116;
  --surface:   #12151b;
  --surface-2: #171b22;
  --line:      rgba(214, 224, 232, 0.09);
  --line-strong: rgba(214, 224, 232, 0.16);

  --text:      #edf1f4;
  --muted:     #9aa6b2;
  --faint:     #6b7683;

  --brand:       #ff4c4e;
  --brand-soft:  rgba(255, 76, 78, 0.12);
  --brand-deep:  #7c3534;

  --ok:   #3ecf8e;   /* copy confirmation */

  --font-display: "Sora", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius: 10px;
  --radius-sm: 6px;
  --container: 1160px;
  --nav-h: 72px;
  --brand-hover: #ff7475;
  --success: #68dfab;
  --success-bg: #122b21;
  --danger: #ffa0a6;
  --danger-bg: #321b20;
  --danger-line: #71363f;
  --warning: #f2ce89;
  --warning-bg: #2d2518;
  --warning-line: #675231;
  --info: #9bcaff;
  --info-bg: #192b40;
}
html { color-scheme: dark; }
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: var(--font-display);
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}
a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  padding: 9px 14px;
  font-weight: 600;
  transition: background 0.15s;
}
button:hover {
  background: var(--surface-2);
}
button.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--text);
}
button.primary:hover {
  background: var(--brand-hover);
}
button.danger {
  color: var(--danger);
  border-color: var(--danger-line);
}
button.small {
  padding: 5px 10px;
  font-size: 12px;
}
.skip {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 20;
  padding: 10px;
  background: var(--surface);
}
.skip:focus {
  top: 12px;
}
.layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--bg-raise);
  color: var(--muted);
  padding: 28px 16px;
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  padding: 0 12px 28px;
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.6px;
}
.brand svg {
  width: 29px;
  height: 34px;
  color: var(--brand);
}
.brand small {
  font-size: 9px;
  font-weight: 500;
  display: block;
  letter-spacing: 2.6px;
  color: var(--muted);
  line-height: 1;
}
.nav-group {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--muted);
  padding: 22px 14px 7px;
  font-weight: 700;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  padding: 10px 13px;
  margin: 2px 0;
  font-size: 13px;
}
.nav a:hover {
  background: var(--surface-2);
  text-decoration: none;
  color: var(--text);
}
.nav a.active {
  background: var(--brand-soft);
  color: var(--brand-hover);
  box-shadow: inset 3px 0 var(--brand);
}
.icon {
  height: 18px;
  width: 18px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 24px 12px 0;
  color: var(--muted);
  font-size: 11px;
}
.sidebar-bottom strong {
  display: block;
  color: var(--text);
  margin-bottom: 3px;
}
.workspace {
  min-width: 0;
}
.topbar {
  height: 75px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.crumb {
  font-size: 12px;
  color: var(--muted);
}
.crumb b {
  color: var(--text);
  font-weight: 550;
}
.account {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--brand);
  background: var(--brand-soft);
  font-weight: 700;
}
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.lang-option {
  appearance: none;
  border: 0;
  margin: 0;
  padding: 5px 9px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.lang-option + .lang-option {
  border-left: 1px solid var(--line-strong);
}
.lang-option:hover {
  color: var(--text);
}
.lang-option[aria-pressed="true"] {
  color: var(--brand);
  background: var(--brand-soft);
}
.lang-option:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
}
.auth-tools {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}
.support-link {
  color: var(--muted);
  font-size: 12px;
}
.support-link a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.support-line {
  margin-top: 18px;
  text-align: center;
}
.account-email {
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.menu-button {
  display: none;
}
.main {
  padding: 30px 36px 48px;
  max-width: 1280px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}
.eyebrow {
  color: var(--brand);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
h1 {
  font-size: 27px;
  line-height: 1.25;
  letter-spacing: -0.8px;
  margin: 0 0 9px;
  font-weight: 700;
}
h2 {
  font-size: 16px;
  letter-spacing: -0.2px;
  margin: 0;
}
h3 {
  font-size: 14px;
  margin: 0 0 12px;
}
p {
  margin: 0 0 14px;
}
.subtitle,
.muted {
  color: var(--muted);
}
.subtitle {
  font-size: 13px;
}
.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.metric-label {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.metric-value {
  font-size: 33px;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -1.1px;
  margin: 13px 0 6px;
}
.metric-note {
  font-size: 11px;
  color: var(--muted);
}
.metric-value.alert {
  color: var(--danger);
}
.metric-value.good {
  color: var(--brand);
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 22px;
  overflow: hidden;
}
.panel-head {
  padding: 19px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.panel-body {
  padding: 22px;
}
.panel-head p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 22px;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 18px;
}
.search {
  width: 280px;
  max-width: 100%;
}
.toolbar .spacer {
  flex: 1;
}
input,
select,
textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 9px 11px;
  color: var(--text);
}
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
  flex-shrink: 0;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--line-strong);
  border-color: var(--brand);
}
label {
  display: block;
  font-size: 12px;
  color: var(--text);
  font-weight: 600;
  margin: 0 0 6px;
}
label.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
  line-height: 1.6;
}
label.check input {
  margin: 3px 0 0;
}
form .field {
  margin-bottom: 17px;
}
form .hint {
  font-weight: 400;
  color: var(--muted);
  font-size: 11px;
  margin-top: 5px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid .field {
  margin: 0;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  white-space: nowrap;
}
th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  background: var(--bg-raise);
  font-weight: 650;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: var(--bg-raise);
}
.cell-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.cell-sub {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 3px;
  max-width: 480px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.path {
  font-family: var(--font-mono);
  font-size: 11px;
  max-width: 430px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 5px;
  background: var(--surface-2);
  color: var(--muted);
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.1px;
}
.badge.good {
  background: var(--success-bg);
  color: var(--success);
}
.badge.bad {
  background: var(--danger-bg);
  color: var(--danger);
}
.badge.warn {
  background: var(--warning-bg);
  color: var(--warning);
}
.badge.info {
  background: var(--info-bg);
  color: var(--info);
}
.dialog-body .path {
  max-width: 100%;
  overflow: visible;
  overflow-wrap: anywhere;
  white-space: normal;
}
.dot {
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
}
.empty {
  padding: 45px 24px;
  text-align: center;
  color: var(--muted);
}
.empty .empty-icon {
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--success);
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin: 0 auto 16px;
}
.empty h3 {
  color: var(--text);
  margin-bottom: 6px;
}
.empty p {
  max-width: 420px;
  margin: 0 auto 18px;
  font-size: 12px;
}
.pagination {
  border-top: 1px solid var(--line);
  padding: 13px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
}
.notice {
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  border-radius: 8px;
  padding: 15px 17px;
  color: var(--text);
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.notice.warning {
  border-color: var(--warning-line);
  background: var(--warning-bg);
  color: var(--warning);
}
.notice.error {
  border-color: var(--danger-line);
  background: var(--danger-bg);
  color: var(--danger);
}
.notice p:last-child {
  margin: 0;
}
.health {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--success);
  font-size: 11px;
}
.health:before {
  content: "";
  background: var(--success);
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.details {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  font-size: 12px;
  margin: 0;
}
.details dt {
  color: var(--muted);
}
.details dd {
  margin: 0;
  word-break: break-word;
}
.section-gap {
  margin-top: 24px;
}
.code {
  font-family: var(--font-mono);
  background: var(--bg);
  color: var(--text);
  padding: 17px;
  border-radius: var(--radius-sm);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.file-view {
  width: 100%;
  height: 420px;
  resize: vertical;
  white-space: pre;
  font:
    12px/1.7 var(--font-mono);
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 15px;
  color: var(--text);
  overflow: auto;
}
.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.diff-head {
  font-size: 11px;
  font-weight: 650;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
}
.diff {
  max-height: 550px;
  overflow: auto;
  background: var(--bg-raise);
  font:
    12px/1.8 var(--font-mono);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 0;
  white-space: pre;
}
.diff .line {
  padding: 0 15px;
  min-height: 20px;
}
.diff .add {
  background: var(--success-bg);
  color: var(--success);
}
.diff .remove {
  background: var(--danger-bg);
  color: var(--danger);
}
.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.tabs a {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
}
.tabs a.active {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}
.opinion {
  border-left: 3px solid var(--line-strong);
  padding: 0 0 0 14px;
  margin: 16px 0;
  font-size: 12px;
}
.opinion small {
  color: var(--muted);
}
.form-error {
  color: var(--danger);
  font-size: 12px;
  line-height: 1.6;
  margin: 10px 0;
  min-height: 0;
}
.loading-page {
  display: grid;
  place-items: center;
  min-height: 65vh;
  color: var(--muted);
}
.loading {
  height: 150px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
}
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-aside {
  background: var(--bg-raise);
  color: var(--muted);
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-aside .brand {
  padding: 0;
  color: var(--text);
}
.login-aside h1 {
  color: var(--text);
  font-size: 44px;
  max-width: 440px;
  line-height: 1.2;
  font-weight: 600;
  margin-bottom: 20px;
}
.login-aside p {
  max-width: 370px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}
.login-points {
  display: flex;
  gap: 14px;
  flex-direction: column;
  padding-top: 25px;
}
.login-points span {
  font-size: 12px;
  color: var(--text);
  display: flex;
  gap: 10px;
}
.login-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: var(--bg-raise);
}
.login-inner {
  width: 390px;
  max-width: 100%;
}
.login-inner h1 {
  font-size: 26px;
}
.login-inner .subtitle {
  margin-bottom: 27px;
}
.login-inner button.full {
  width: 100%;
  justify-content: center;
  padding: 11px;
}
.divider {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 10px;
  color: var(--muted);
  margin: 20px 0;
}
.divider:before,
.divider:after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}
.login-switch {
  display: flex;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 28px;
}
.login-switch button {
  flex: 1;
  border: 0;
  background: transparent;
  font-size: 12px;
}
.login-switch .selected {
  background: var(--surface);
  box-shadow: 0 1px 5px rgba(0,0,0,.45);
  color: var(--brand);
}
.login-fine {
  font-size: 11px;
  color: var(--muted);
  margin: 22px 0 0;
  line-height: 1.8;
}
.link-code {
  font-family: var(--font-mono);
  letter-spacing: 1px;
  font-size: 16px;
}
.login-back {
  font-size: 12px;
  display: inline-block;
  margin-bottom: 20px;
}
.banner-row {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.mobile-only {
  display: none;
}
.progress-track {
  height: 5px;
  background: var(--surface-2);
  border-radius: 4px;
  overflow: hidden;
  width: 130px;
  margin-top: 5px;
}
.progress-track progress {
  width: 100%;
  height: 100%;
  accent-color: var(--brand);
}
.chip-list {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.strong {
  font-weight: 650;
}
.nowrap {
  white-space: nowrap;
}
dialog {
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  padding: 0;
  width: min(520px, calc(100vw - 32px));
  max-height: 90vh;
  box-shadow: 0 25px 90px rgba(0,0,0,.45);
}
dialog::backdrop {
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(2px);
}
.dialog-head {
  padding: 22px 25px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dialog-head button {
  padding: 3px 9px;
  border: 0;
  font-size: 22px;
  color: var(--muted);
}
.dialog-body {
  padding: 24px;
  max-height: calc(90vh - 80px);
  overflow: auto;
}
.dialog-body pre {
  max-height: 50vh;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.dialog-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
#toast {
  visibility: hidden;
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--line-strong);
  box-shadow: 0 5px 25px rgba(0,0,0,.45);
  padding: 13px 20px;
  border-radius: 8px;
  z-index: 100;
  max-width: 90vw;
  transition: transform 0.2s;
  font-size: 13px;
}
#toast.show {
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.cost {
  color: var(--muted);
  font-size: 11px;
}
.mini-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mini-list li {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mini-list li:last-child {
  border: 0;
}
.mini-list p {
  font-size: 12px;
  margin: 3px 0;
  color: var(--muted);
}
.credits-total {
  font-size: 42px;
  color: var(--brand);
  font-weight: 650;
  letter-spacing: -1px;
}
.meter {
  height: 7px;
  background: var(--surface-2);
  border-radius: 8px;
  margin: 16px 0;
  overflow: hidden;
}
.meter progress {
  width: 100%;
  height: 100%;
  accent-color: var(--brand);
}
details.category {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 12px;
  background: var(--surface);
}
details.category summary {
  padding: 15px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
}
details.category[open] summary {
  border-bottom: 1px solid var(--line);
}
.category pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 11px;
  padding: 15px 20px;
  max-height: 400px;
  overflow: auto;
}
.footer-note {
  font-size: 10px;
  color: var(--muted);
  margin-top: 25px;
}
.error-page {
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--danger-line);
  border-radius: var(--radius);
}
.word-break {
  overflow-wrap: anywhere;
}
.role-select {
  max-width: 130px;
}
@media (min-width: 1600px) {
  .main {
    padding-top: 40px;
  }
  .cards {
    gap: 22px;
  }
  .card {
    padding: 25px;
  }
}
@media (max-width: 1100px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
  .main {
    padding: 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .login-aside {
    padding: 40px;
  }
  .login-aside h1 {
    font-size: 36px;
  }
  .diff-grid {
    gap: 12px;
  }
}
@media (max-width: 760px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar {
    position: fixed;
    transform: translateX(-100%);
    width: 224px;
    transition: transform 0.2s;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .menu-button {
    display: block;
  }
  .topbar {
    height: 62px;
    padding: 0 16px;
    gap: 10px;
  }
  .account-email,
  .crumb {
    display: none;
  }
  .main {
    padding: 22px 16px;
  }
  .page-heading {
    flex-direction: column;
    gap: 13px;
  }
  .page-heading .actions {
    width: 100%;
  }
  h1 {
    font-size: 24px;
  }
  .cards {
    gap: 10px;
  }
  .card {
    padding: 16px;
  }
  .metric-value {
    font-size: 29px;
  }
  .metric-label {
    font-size: 11px;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .toolbar .search {
    width: 100%;
  }
  .form-grid,
  .diff-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .login-page {
    grid-template-columns: minmax(0, 1fr);
  }
  .login-aside {
    min-height: 150px;
    padding: 28px;
  }
  .login-aside .login-story,
  .login-aside .login-foot {
    display: none;
  }
  .login-form {
    padding: 35px 24px;
    align-items: flex-start;
  }
  .panel-head {
    padding: 17px;
  }
  .panel-body {
    padding: 17px;
  }
  .details {
    grid-template-columns: 110px 1fr;
  }
  .banner-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .file-view {
    height: 320px;
  }
  .mobile-only {
    display: block;
  }
  td,
  th {
    padding-left: 15px;
    padding-right: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.login-aside .eyebrow {
  color: var(--brand);
}
td > a {
  display: block;
}
a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
a.button.full {
  display: flex;
  width: 100%;
}
@media (max-width: 760px) {
  .sidebar {
    visibility: hidden;
  }
  .sidebar.open {
    visibility: visible;
  }
}

.sidebar {
  overflow: hidden;
}
.sidebar .nav {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
}
.sidebar .brand,
.sidebar-bottom {
  flex-shrink: 0;
}

.split > *,
.form-grid > *,
.diff-grid > *,
.page-heading > * {
  min-width: 0;
}
.table-wrap {
  max-width: 100%;
}

/* The public site's 72px brand header frames the operational workspace. */
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
::selection { background: var(--brand); color: var(--bg); }
.topbar {
  position: fixed; inset: 0 0 auto; height: var(--nav-h); z-index: 30;
  background: rgba(10,12,15,.94); backdrop-filter: blur(16px);
  padding: 0 28px; border-bottom: 1px solid var(--line-strong);
}
.topbar .brand { flex-shrink: 0; min-width: 200px; }
.brand { padding: 0; font-weight: 800; letter-spacing: .015em; font-size: 19px; }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 36px; display: block; }
.brand em { font-style: normal; color: var(--brand); }
.brand small { color: var(--muted); font-family: var(--font-mono); font-size: 9px; letter-spacing: 1.6px; margin-top: 5px; }
.crumb { margin-right: auto; }
.workspace { padding-top: var(--nav-h); }
.sidebar { top: var(--nav-h); height: calc(100vh - var(--nav-h)); margin-top: var(--nav-h); padding: 22px 16px; border-right: 1px solid var(--line); overflow-y: auto; }
.sidebar-bottom { line-height: 1.8; }
.nav a { font-size: 13px; padding: 11px 13px; }
.nav a.active { color: var(--text); box-shadow: inset 2px 0 var(--brand); background: var(--brand-soft); }
.nav a.active svg { color: var(--brand); }
.nav-group,.eyebrow,.metric-label,th { font-family: var(--font-mono); font-weight: 500; }
.main { padding-top: 36px; }
h1 { font-size: 29px; letter-spacing: -.8px; }
.subtitle { line-height: 1.8; }
.cards { gap: 18px; }
.card { background: linear-gradient(140deg,var(--surface-2),var(--surface)); }
.metric-value { font-weight: 600; letter-spacing: -1.4px; }
.metric-value.good { color: var(--success); }
.card,.panel,.category { border-color: var(--line-strong); }
button,.button { transition: background .18s,border-color .18s,transform .18s; }
button:hover,.button:hover { border-color: var(--line-strong); }
button:active,.button:active { transform: translateY(1px); }
button.primary,.button.primary { color: var(--bg); background: var(--brand); border-color: var(--brand); box-shadow: 0 4px 20px rgba(255,76,78,.12); }
button.primary:hover,.button.primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
button.danger { background: transparent; }
input::placeholder,textarea::placeholder { color: var(--muted); opacity: .8; }
input:focus,select:focus,textarea:focus { outline-color: var(--brand); }
td { font-size: 13px; }
.path { font-size: 12px; }
dialog { background: var(--surface); color: var(--text); border-radius: var(--radius); border-color: var(--line-strong); }
.login-aside { background: radial-gradient(ellipse at 10% 40%,rgba(255,76,78,.09),transparent 65%),var(--bg-raise); border-right: 1px solid var(--line-strong); }
.login-aside h1 { font-weight: 700; font-size: clamp(32px,3.6vw,52px); letter-spacing: -1.6px; }
.login-form { background: var(--bg); }
.login-switch .selected { background: var(--brand-soft); color: var(--text); box-shadow: inset 0 0 0 1px rgba(255,76,78,.3); }
.login-inner .brand { margin-bottom: 28px; }
@media (max-width: 1100px) { .account-email { display: none; } }
@media (max-width: 760px) {
 .sidebar { top: var(--nav-h); margin-top: 0; width: 246px; box-shadow: 20px 0 60px rgba(0,0,0,.5); }
 .topbar { height: var(--nav-h); padding: 0 20px; gap: 10px; }
 .topbar .brand { min-width: 0; margin-right: auto; font-size: 15px; gap: 7px; }
 .topbar .brand img { width: 30px; height: 30px; }
 .topbar .brand small { font-size: 7px; letter-spacing: .8px; }
 .menu-button { order: -1; padding: 7px; }
 .account { gap: 5px; }
 .account .small { padding: 6px; }
 .account .avatar { display: none; }
 .main { padding: 26px 20px; }
 h1 { font-size: 25px; }
 .login-aside { border-right: 0; }
}
@media (max-width: 380px) {
 .topbar { padding: 0 12px; gap: 6px; }
 .topbar .brand { font-size: 12px; gap: 5px; }
 .topbar .brand img { width: 26px; }
 .account { gap: 3px; }
 .account .small { padding: 5px; }
 .main { padding-left: 16px; padding-right: 16px; }
}

.sidebar .nav { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.sidebar-bottom { flex-shrink: 0; }

.nav-close, .nav-backdrop { display: none; }
@media (max-width: 760px) {
 body.nav-open { overflow: hidden; }
 .nav-close { display: block; width: 100%; margin-bottom: 16px; }
 .nav-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 40; border: 0; border-radius: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(3px); }
 .sidebar.open { z-index: 41; top: 0; height: 100dvh; padding-top: 20px; }
}

.split .table-wrap table { white-space: normal; }
.split .table-wrap th, .split .table-wrap td { padding-left: 14px; padding-right: 14px; }
.split .table-wrap .cell-sub { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 620px) {
 .table-wrap { overflow: visible; }
 .table-wrap table, .table-wrap tbody { display: block; width: 100%; }
 .table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
 .table-wrap tr { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 14px; padding: 18px; border-bottom: 1px solid var(--line); }
 .table-wrap tr:last-child { border-bottom: 0; }
 .table-wrap td { display: block; padding: 0; border: 0; min-width: 0; white-space: normal; overflow-wrap: anywhere; }
 .table-wrap td:nth-child(-n+2) { grid-column: 1 / -1; }
 .table-wrap td::before { content: attr(data-label); display: block; margin-bottom: 5px; color: var(--muted); font: 11px var(--font-mono); text-transform: uppercase; letter-spacing: .06em; }
 .table-wrap .path { white-space: normal; overflow-wrap: anywhere; }
}

@media (max-width: 620px) {
 .table-wrap td[data-label=""]::before, .table-wrap td:empty { display: none; }
 .table-wrap .cell-sub, .table-wrap .badge { white-space: normal; overflow-wrap: anywhere; }
 .split .table-wrap td { padding: 0; }
}

/* Live scan workspace: counts and phase progress, using the public-site palette. */
.scan-progress-panel { background: linear-gradient(125deg,var(--surface-2),var(--surface) 70%); }
.scan-progress-body { padding: 28px; }
.scan-progress-top,.scan-progress-heading,.scan-progress-bottom { display: flex; justify-content: space-between; gap: 20px; }
.scan-progress-top { align-items: center; margin-bottom: 24px; }
.scan-live-label,.scan-phase-counter { font: 11px var(--font-mono); letter-spacing: .06em; }
.scan-live-label { display: inline-flex; align-items: center; gap: 9px; color: var(--text); text-transform: uppercase; }
.scan-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.scan-phase-counter { color: var(--muted); text-align: right; }
.scan-progress-heading { align-items: center; margin-bottom: 24px; }
.scan-progress-heading > div:first-child { min-width: 0; }
.scan-progress-heading h2 { font-size: clamp(19px,2vw,24px); letter-spacing: -.5px; margin: 0 0 9px; line-height: 1.4; }
.scan-progress-heading p { margin: 0; color: var(--muted); max-width: 620px; font-size: 13px; line-height: 1.8; }
.scan-percent { flex: 0 0 auto; text-align: right; font-size: 48px; font-weight: 600; line-height: 1.1; letter-spacing: -2px; font-variant-numeric: tabular-nums; }
.scan-percent > span:not(.scan-percent-text) { font-size: 24px; color: var(--muted); margin-left: 3px; }
.scan-percent small { display: block; font: 11px var(--font-mono); color: var(--muted); letter-spacing: 0; margin-top: 9px; }
.scan-percent .scan-percent-text { font-size: 16px; letter-spacing: 0; font-weight: 400; color: var(--muted); }
.scan-meter { display: block; width: 100%; height: 12px; overflow: hidden; border: 0; border-radius: 4px; appearance: none; background: var(--bg); color: var(--brand); }
.scan-meter::-webkit-progress-bar { background: var(--bg); border-radius: 4px; }
.scan-meter::-webkit-progress-value { background: linear-gradient(90deg,var(--brand-deep),var(--brand)); border-radius: 4px; transition: width .4s ease; }
.scan-meter::-moz-progress-bar { background: linear-gradient(90deg,var(--brand-deep),var(--brand)); border-radius: 4px; }
.scan-meter.indeterminate { background: var(--bg); }
.scan-meter.indeterminate::-webkit-progress-bar { background: repeating-linear-gradient(110deg,var(--bg) 0,var(--bg) 16px,var(--brand-soft) 16px,var(--brand-soft) 32px); }
.scan-meter.indeterminate::-moz-progress-bar { background: var(--brand-soft); }
.scan-progress-bottom { align-items: center; margin-top: 17px; font-size: 11px; color: var(--muted); }
.scan-agent-name { display: inline-flex; align-items: center; gap: 7px; min-width: 0; overflow-wrap: anywhere; text-align: right; }
.scan-agent-name .icon { flex: 0 0 auto; width: 15px; height: 15px; }
.scan-database-detail { font: 12px var(--font-mono); color: var(--muted); margin: 16px 0 0; }
.scan-progress-panel.is-stale .scan-live-dot { background: var(--warning); box-shadow: 0 0 0 4px var(--warning-bg); }
.scan-progress-panel.is-stale .scan-progress-bottom { color: var(--warning); }
.scan-progress-panel.is-stopped .scan-live-dot { background: var(--muted); box-shadow: none; }
.scan-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-bottom: 22px; }
.scan-metric { padding: 21px; min-width: 0; display: flex; flex-direction: column; }
.scan-metric .metric-label { font-size: 11px; gap: 8px; }
.scan-metric .metric-label .icon { width: 16px; height: 16px; flex-shrink: 0; color: var(--faint); }
.scan-metric .metric-value { font-size: clamp(24px,2.4vw,34px); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.scan-metric-total { color: var(--muted); font: 12px var(--font-mono); margin-bottom: 7px; }
.scan-metric .metric-note { margin-top: auto; padding-top: 8px; line-height: 1.7; }
.scan-stage-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); padding: 22px 28px; margin: 0; gap: 24px; }
.scan-stage { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.scan-stage-marker { flex: 0 0 29px; height: 29px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; font: 11px var(--font-mono); color: var(--muted); }
.scan-stage-marker .icon { width: 15px; height: 15px; }
.scan-stage strong { display: block; font-size: 12px; font-weight: 500; overflow-wrap: anywhere; }
.scan-stage small { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
.scan-stage.current .scan-stage-marker { color: var(--brand); background: var(--brand-soft); border-color: var(--brand-deep); }
.scan-stage.current strong { color: var(--text); }
.scan-stage.current small { color: var(--brand-hover); }
.scan-stage.done .scan-stage-marker { color: var(--success); background: var(--success-bg); border-color: transparent; }
.scan-stage.issue .scan-stage-marker { color: var(--warning); background: var(--warning-bg); border-color: var(--warning-line); }
.scan-stage.pending strong { color: var(--muted); }
@media (max-width: 1100px) { .scan-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 760px) {
 .scan-progress-body { padding: 21px; }
 .scan-progress-top { gap: 12px; margin-bottom: 20px; }
 .scan-progress-heading { gap: 18px; align-items: flex-start; }
 .scan-percent { font-size: 38px; }
 .scan-progress-bottom { flex-wrap: wrap; gap: 10px; }
 .scan-metrics { gap: 12px; }
 .scan-metric { padding: 17px; }
 .scan-stage-list { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 21px; gap: 22px 14px; }
}
@media (max-width: 420px) {
 .scan-progress-heading { flex-wrap: wrap; }
 .scan-percent { text-align: left; display: flex; align-items: baseline; gap: 5px; }
 .scan-percent small { margin-left: 6px; }
 .scan-metric { padding: 14px; }
 .scan-metric .metric-label { flex-wrap: nowrap; }
 .scan-metric .metric-label .icon { display: none; }
 .scan-stage-list { grid-template-columns: 1fr; }
}

.scan-progress-bottom,.scan-phase-counter,.scan-live-label,.scan-percent small,
.scan-stage small,.scan-metric .metric-note { font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) {
 .scan-meter::-webkit-progress-value { transition: none; }
}
@media (forced-colors: active) {
 .scan-meter { appearance: auto; color: Highlight; background: Canvas; border: 1px solid CanvasText; }
 .scan-meter::-webkit-progress-bar { background: Canvas; }
 .scan-meter::-webkit-progress-value { background: Highlight; }
 .scan-meter::-moz-progress-bar { background: Highlight; }
 .scan-meter.indeterminate::-webkit-progress-bar { background: Canvas; }
 .scan-live-dot { background: Highlight; box-shadow: none; }
 .scan-stage-marker { border-color: CanvasText; }
}

/* Keep resolution work readable and anchored to the current view. */
[hidden] { display: none !important; }
.findings-table table { table-layout: fixed; white-space: normal; }
.findings-table th:first-child { width: 28%; }
.findings-table th:last-child { width: 23%; }
.findings-table td { overflow-wrap: anywhere; vertical-align: top; }
.findings-table td, .findings-table th { padding: 16px; }
.findings-table .cell-sub.path { white-space: normal; overflow-wrap: anywhere; }
.finding-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: start; }
.finding-actions button { min-height: 36px; text-align: left; white-space: normal; }
.finding-workflow { margin-top: 8px; display: grid; gap: 8px; }
.finding-workflow:empty, .finding-workflow .actions:empty { display: none; }
.finding-workflow .actions { gap: 8px 14px; }
.finding-workflow a { font-size: 12px; }
.workflow-pending { color: var(--blue, #8cc4ff); font-size: 12px; }
.action-hint { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 10px 0 0; }
.context-back { margin: -10px 0 20px; }
.context-links { display: flex; flex-wrap: wrap; gap: 16px; margin: 0 0 20px; }
.text-button { border: 0; padding: 0; background: none; color: var(--muted); }
.dialog-file { background: var(--bg-raise); border: 1px solid var(--line); padding: 12px; border-radius: 6px; margin-bottom: 16px; overflow-wrap: anywhere; }
.metric-link { color: inherit; transition: border-color .15s; }
.metric-link:hover { border-color: var(--red); color: inherit; }
.page-loading::before { content: "Loading…"; position: fixed; z-index: 100; top: 12px; left: 50%; transform: translateX(-50%); padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--panel); color: var(--text); box-shadow: 0 4px 16px #0005; }
.login-recovery { max-width: 640px; margin: 12vh auto; }
.login-recovery p { margin: 18px 0; }
@media (max-width: 1100px) and (min-width: 621px) {
  .findings-table table { min-width: 850px; }
}
@media (max-width: 620px) {
  .findings-table td { padding: 0; }
  .findings-table td:last-child { grid-column: 1 / -1; }
  .finding-actions button { min-height: 44px; }
  .toolbar { flex-wrap: wrap; }
  .toolbar .search { min-width: 0; flex: 1 1 180px; }
  .dialog-head { padding: 18px; }
  .dialog-body { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { .metric-link { transition: none; } }
.action-hint a, .notice p a, .login-fine a { text-decoration: underline; text-underline-offset: 3px; }

.repair-request-result { border-left: 3px solid var(--line-strong); padding: 10px 12px; background: var(--bg-raise); border-radius: 0 6px 6px 0; overflow-wrap: anywhere; }
.repair-request-result.bad { border-color: var(--danger); }
.repair-request-result.warn { border-color: #d5a347; }
.repair-request-result.good { border-color: #5cc794; }
.repair-request-result > strong { display: block; font-size: 13px; line-height: 1.5; }
.result-label { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 7px; }
.result-explanation { font-size: 12px; line-height: 1.6; margin: 8px 0; white-space: normal; }
.result-explanation.compact { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.result-points, .result-time { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 8px 0; }
.result-points a { text-decoration: underline; text-underline-offset: 3px; }
.request-evidence { margin: 16px 0; border-top: 1px solid var(--line); padding-top: 14px; white-space: normal; }
.request-evidence summary { cursor: pointer; margin-bottom: 12px; font-weight: 600; }
#finding-workflow > .finding-workflow { margin-bottom: 20px; }
.repair-requests-table table { table-layout: fixed; white-space: normal; }
.repair-requests-table th:first-child { width: 25%; }
.repair-requests-table th:nth-child(3) { width: 42%; }
.repair-requests-table td { vertical-align: top; overflow-wrap: anywhere; }
.repair-requests-table .path { white-space: normal; }
.collection-tabs { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.collection-tabs a { padding: 12px 14px; color: var(--muted); border-bottom: 2px solid transparent; }
.collection-tabs a[aria-current="page"] { color: var(--text); border-bottom-color: var(--brand); }
@media (max-width: 620px) {
 .repair-requests-table td:nth-child(3) { grid-column: 1 / -1; }
 .repair-requests-table .repair-request-result { margin-top: 8px; }
}

/* Fleet (ISPProtect Monitor masters) */
.badge.crit { background: var(--brand); color: #fff; }
.fleet-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.fleet-msg { max-width: 520px; white-space: normal; overflow-wrap: anywhere; }
.fleet-error { color: var(--danger); }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.panel-body h3 { margin: 0 0 14px; font-size: 14px; }
.toolbar select { width: auto; min-width: 150px; }
@media (max-width: 620px) {
  .toolbar select { flex: 1 1 140px; }
}

/* Severity badges: the level name and the filled-dot meter carry the meaning, colour only supports it. */
.badge.sev { gap: 6px; border: 1px solid transparent; }
.sev-meter { letter-spacing: 1px; font-size: 9px; }
.badge.sev-info { background: var(--surface-2); color: var(--muted); border-color: var(--line-strong); }
.badge.sev-low { background: var(--info-bg); color: var(--info); border-color: var(--info); }
.badge.sev-medium { background: var(--warning-bg); color: var(--warning); border-color: var(--warning-line); }
.badge.sev-high { background: var(--danger-bg); color: var(--danger); border-color: var(--danger-line); }
.badge.sev-critical { background: var(--brand); color: #fff; border-color: var(--brand-hover); font-weight: 750; }
.severity-filter { min-width: 150px; }
ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li { margin: 2px 0; }
.detection { padding: 0 0 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.detection:last-of-type { border-bottom: 0; }
.detection h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 14px; overflow-wrap: anywhere; }
.report-breakdown { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 16px 0; }
.report-breakdown h3 { font-size: 12px; margin: 0 0 6px; color: var(--muted); }
.report-breakdown li { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.report-group .cell-sub { white-space: normal; overflow-wrap: anywhere; }
