:root {
  color-scheme: dark;
  --bg: #020b18;
  --panel: #071426;
  --panel-2: #0a1930;
  --line: rgba(226, 190, 112, 0.28);
  --line-strong: rgba(239, 82, 96, 0.58);
  --hairline: rgba(226, 190, 112, 0.075);
  --text: #fff8e9;
  --muted: #bec7d7;
  --soft: #e5dece;
  --red: #ff5b68;
  --red-dark: #5b1620;
  --green: #a9e39a;
  --purple: #e3c16d;
  --amber: #f1d179;
  --mono: "SF Mono", SFMono-Regular, ui-monospace, Menlo, Monaco, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
  background:
    radial-gradient(circle at 18% 12%, rgba(226, 190, 112, 0.1), transparent 28rem),
    radial-gradient(circle at 82% 18%, rgba(239, 82, 96, 0.08), transparent 24rem),
    linear-gradient(115deg, transparent 0 46%, rgba(226, 190, 112, 0.03) 46% 47%, transparent 47%),
    linear-gradient(180deg, #07172d 0%, var(--bg) 54%, #010712 100%);
}

::selection {
  color: #04101f;
  background: rgba(224, 184, 95, 0.82);
}

body.modal-open {
  overflow: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(224, 184, 95, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224, 184, 95, 0.028) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

a {
  color: inherit;
  text-decoration-color: rgba(224, 184, 95, 0.72);
  text-underline-offset: 4px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
fieldset:focus-within,
textarea:focus-visible {
  outline: 2px solid rgba(224, 184, 95, 0.78);
  outline-offset: 3px;
}

.terminal-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 28px);
  margin: 0 auto;
  padding: 14px 0;
}

.terminal-shell::before {
  position: absolute;
  inset: 14px 0;
  z-index: -1;
  border-radius: 10px;
  content: "";
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 30px 110px rgba(0, 0, 0, 0.55),
    0 0 90px rgba(224, 184, 95, 0.08);
}

.site-header,
.mission-strip,
.rankings-panel,
.site-footer {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    rgba(4, 16, 32, 0.94);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 12px 18px;
  border-radius: 8px 8px 0 0;
  gap: 18px;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.logo-mark {
  display: grid;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 2px;
  overflow: hidden;
  border: 1px solid rgba(224, 184, 95, 0.62);
  border-radius: 999px;
  background: #06172d;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 0 2px rgba(224, 184, 95, 0.08),
    0 10px 24px rgba(0, 0, 0, 0.34);
  transform: translateZ(0);
}

.logo-mark img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.domain,
.tagline,
.watcher-line,
.desk-label,
.panel-label,
.panel-stamp,
.module-kicker,
.risk-dot {
  margin: 0;
  font-family: var(--mono);
}

.domain {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.05;
}

.tagline {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  font-weight: 650;
}

.watcher-line {
  color: var(--soft);
  font-size: 11px;
  font-weight: 650;
  text-align: right;
}

.header-status {
  display: grid;
  gap: 7px;
  justify-items: end;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-actions span {
  position: relative;
  color: rgba(224, 184, 95, 0.96);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
}

.header-actions span::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 12px rgba(155, 213, 140, 0.74);
  content: "";
  vertical-align: 1px;
}

.report-trigger,
.leave-review,
.comment-toggle,
.findings-toggle,
.drawer-close,
.case-submit,
.case-close {
  font: inherit;
}

.report-trigger,
.leave-review,
.comment-toggle,
.findings-toggle,
.drawer-close {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(224, 184, 95, 0.46);
  border-radius: 5px;
  color: #f7f1e3;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
  background:
    linear-gradient(180deg, rgba(224, 184, 95, 0.18), rgba(224, 184, 95, 0.04)),
    rgba(6, 20, 38, 0.85);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 18px rgba(0, 0, 0, 0.18);
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease;
}

.report-trigger:hover,
.leave-review:hover,
.comment-toggle:hover,
.findings-toggle:hover,
.drawer-close:hover {
  border-color: rgba(224, 184, 95, 0.72);
  color: #ffe7ad;
}

.report-trigger:active,
.leave-review:active,
.comment-toggle:active,
.findings-toggle:active,
.drawer-close:active {
  transform: translateY(1px);
}

.mission-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 54px;
  padding: 9px 18px;
  border-top: 0;
  background:
    linear-gradient(90deg, rgba(226, 190, 112, 0.06), transparent 58%),
    rgba(4, 16, 32, 0.92);
}

.desk-label,
.panel-label,
.module-kicker,
.panel-stamp {
  color: rgba(190, 199, 215, 0.82);
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

.mission-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.mission-copy h1 {
  color: var(--text);
  font-size: 16px;
  line-height: 1.16;
  font-weight: 720;
  text-wrap: balance;
}

.mission-copy p:last-child {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 680;
}

.case-status-rail {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
  flex: 0 0 auto;
}

.case-status-rail span {
  min-height: 22px;
  padding: 5px 8px;
  border: 1px solid rgba(226, 190, 112, 0.24);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
  background: rgba(2, 9, 20, 0.52);
}

.case-status-rail .case-danger {
  border-color: rgba(255, 91, 104, 0.42);
  color: #ffd3d6;
  background: rgba(255, 91, 104, 0.1);
}

.case-status-rail .case-mid {
  border-color: rgba(241, 209, 121, 0.38);
  color: #ffedb9;
  background: rgba(241, 209, 121, 0.09);
}

.case-status-rail .case-good {
  border-color: rgba(169, 227, 154, 0.36);
  color: #e2f7d9;
  background: rgba(169, 227, 154, 0.08);
}

.testimonial-feature {
  position: relative;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 260px;
  padding: 18px 18px 20px;
  overflow: hidden;
  border: 1px solid rgba(224, 184, 95, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(224, 184, 95, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(224, 184, 95, 0.09), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0)),
    rgba(5, 18, 35, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.34);
}

.testimonial-feature::before {
  position: absolute;
  right: 18px;
  bottom: -22px;
  color: rgba(224, 184, 95, 0.062);
  content: "APPROVED";
  font-family: var(--mono);
  font-size: 58px;
  font-weight: 700;
  pointer-events: none;
}

.testimonial-feature::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(90deg, transparent 0 calc(100% - 1px), var(--hairline) calc(100% - 1px)),
    linear-gradient(transparent 0 calc(100% - 1px), var(--hairline) calc(100% - 1px));
  background-size: 24px 24px;
  mask-image: linear-gradient(90deg, black, transparent 72%);
}

.testimonial-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.testimonial-topline span {
  padding: 5px 8px;
  border: 1px solid rgba(224, 184, 95, 0.38);
  border-radius: 999px;
  color: #f2dda2;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.mission-statement,
.quote-stack {
  position: relative;
  display: grid;
  gap: 12px;
  max-width: 610px;
  margin: 38px 0 0;
  padding: 0 0 0 16px;
  border-left: 3px solid transparent;
  border-image: linear-gradient(to bottom, var(--purple), rgba(224, 184, 95, 0.3)) 1;
}

.mission-statement::before,
.quote-stack::before {
  position: absolute;
  top: -18px;
  left: 12px;
  color: rgba(255, 255, 255, 0.08);
  content: "§";
  font-family: Georgia, serif;
  font-size: 64px;
  line-height: 1;
}

.mission-statement p,
.quote-stack p {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 590px;
  color: var(--text);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.3);
  font-size: clamp(21px, 2vw, 26px);
  font-weight: 800;
  line-height: 1.12;
  text-wrap: balance;
}

.quote-stack cite {
  color: var(--purple);
  font-family: var(--mono);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
}

.subtext {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 26px 0 0 21px;
  color: #d9dfeb;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.7;
}

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
  }

  .mission-statement p,
  .quote-stack p {
    font-size: clamp(22px, 2.35vw, 28px);
    line-height: 1.12;
  }

  .featured-name strong {
    font-size: 33px;
  }

  .featured-name span {
    font-size: 24px;
  }

  .metric-grid {
    gap: 7px;
  }

  .metric-grid div {
    padding: 9px 10px;
  }

  .metric-grid strong {
    font-size: 14px;
  }
}

.score-module {
  position: relative;
  overflow: hidden;
  min-height: 252px;
  padding: 16px;
  border: 1px solid rgba(233, 77, 88, 0.64);
  border-radius: 8px;
  background:
    repeating-linear-gradient(0deg, rgba(247, 241, 227, 0.018) 0 1px, transparent 1px 9px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), transparent 34%),
    linear-gradient(135deg, rgba(108, 28, 36, 0.42), rgba(224, 184, 95, 0.06) 40%, rgba(6, 20, 38, 0.96)),
    var(--panel-2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 0 3px rgba(224, 184, 95, 0.08),
    0 0 0 1px rgba(224, 184, 95, 0.1),
    0 22px 50px rgba(0, 0, 0, 0.28);
  transition: border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.score-module.score-good {
  border-color: rgba(169, 227, 154, 0.52);
  background:
    repeating-linear-gradient(0deg, rgba(247, 241, 227, 0.018) 0 1px, transparent 1px 9px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), transparent 34%),
    linear-gradient(135deg, rgba(67, 125, 72, 0.34), rgba(224, 184, 95, 0.08) 42%, rgba(6, 20, 38, 0.96)),
    var(--panel-2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 0 3px rgba(169, 227, 154, 0.055),
    0 0 0 1px rgba(224, 184, 95, 0.1),
    0 22px 50px rgba(0, 0, 0, 0.28);
}

.score-module.score-mid {
  border-color: rgba(241, 209, 121, 0.56);
  background:
    repeating-linear-gradient(0deg, rgba(247, 241, 227, 0.018) 0 1px, transparent 1px 9px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), transparent 34%),
    linear-gradient(135deg, rgba(143, 104, 37, 0.34), rgba(224, 184, 95, 0.08) 42%, rgba(6, 20, 38, 0.96)),
    var(--panel-2);
}

.score-module.score-danger {
  border-color: rgba(233, 77, 88, 0.64);
}

.score-module::before {
  position: absolute;
  inset: 12px;
  pointer-events: none;
  border: 1px solid rgba(224, 184, 95, 0.14);
  border-radius: 5px;
  content: "";
}

.score-module::after {
  position: absolute;
  right: -22px;
  bottom: -20px;
  color: rgba(233, 77, 88, 0.075);
  content: "WANTED";
  font-family: var(--mono);
  font-size: 76px;
  font-weight: 700;
  letter-spacing: 0;
  transform: rotate(-7deg);
  transition: color 220ms ease;
}

.score-module.score-good::after {
  color: rgba(169, 227, 154, 0.06);
  content: "CLEARED";
}

.score-module.score-mid::after {
  color: rgba(241, 209, 121, 0.065);
  content: "REVIEW";
}

.score-module.score-danger::after {
  color: rgba(233, 77, 88, 0.075);
  content: "WANTED";
}

.module-topline,
.featured-name,
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.module-topline {
  align-items: flex-start;
}

.module-kicker {
  line-height: 1.25;
}

.risk-dot {
  padding: 5px 8px;
  border: 1px solid rgba(233, 77, 88, 0.64);
  border-radius: 5px;
  color: #fff0ce;
  font-size: 10px;
  background: rgba(108, 28, 36, 0.28);
  box-shadow: inset 0 0 0 1px rgba(247, 241, 227, 0.035);
  transition: border-color 220ms ease, color 220ms ease, background 220ms ease;
}

.score-module.score-good .risk-dot {
  border-color: rgba(169, 227, 154, 0.5);
  color: #e2f7d9;
  background: rgba(67, 125, 72, 0.22);
}

.score-module.score-mid .risk-dot {
  border-color: rgba(241, 209, 121, 0.52);
  color: #ffedb9;
  background: rgba(143, 104, 37, 0.22);
}

.score-module.score-danger .risk-dot {
  border-color: rgba(233, 77, 88, 0.64);
  color: #fff0ce;
  background: rgba(108, 28, 36, 0.28);
}

.featured-name {
  position: relative;
  z-index: 1;
  margin-top: 22px;
}

.featured-name span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
}

.featured-name strong {
  color: var(--red);
  font-family: var(--mono);
  font-size: 45px;
  line-height: 1;
  text-shadow: 0 0 24px rgba(255, 79, 104, 0.34);
}

.score-rail {
  position: relative;
  height: 8px;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid rgba(224, 184, 95, 0.18);
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(233, 77, 88, 0.18), rgba(231, 198, 111, 0.16), rgba(155, 213, 140, 0.16));
}

.score-rail span {
  position: absolute;
  inset: 1px auto 1px 1px;
  width: 10%;
  border-radius: inherit;
  background: var(--red);
  box-shadow: 0 0 18px rgba(255, 79, 104, 0.72);
  transition: width 260ms cubic-bezier(0.22, 1, 0.36, 1), background 180ms ease, box-shadow 180ms ease;
}

.score-rail span.good {
  background: var(--green);
  box-shadow: 0 0 18px rgba(169, 227, 154, 0.56);
}

.score-rail span.mid {
  background: var(--amber);
  box-shadow: 0 0 18px rgba(241, 209, 121, 0.48);
}

.score-rail span.danger {
  background: var(--red);
  box-shadow: 0 0 18px rgba(255, 91, 104, 0.62);
}

.metric-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.metric-grid div {
  min-height: 62px;
  padding: 10px 12px 11px;
  border: 1px solid rgba(224, 184, 95, 0.2);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent),
    rgba(3, 12, 25, 0.72);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.22);
}

.metric-grid span {
  display: block;
  color: #c8d1df;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.2;
}

.metric-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.12;
}

.metric-grid .bad-score,
.metric-grid .mid-score,
.metric-grid .good-score {
  color: var(--red);
  font-family: var(--mono);
  font-size: 22px;
}

.metric-grid .mid-score {
  color: var(--amber);
}

.metric-grid .good-score {
  color: var(--green);
}

.featured-name strong.featured-score-good {
  color: var(--green);
  text-shadow: 0 0 24px rgba(169, 227, 154, 0.28);
}

.featured-name strong.featured-score-mid {
  color: var(--amber);
  text-shadow: 0 0 24px rgba(241, 209, 121, 0.24);
}

.featured-name strong.featured-score-danger {
  color: var(--red);
  text-shadow: 0 0 24px rgba(255, 79, 104, 0.34);
}

@media (max-width: 1080px) {
  .featured-name span {
    font-size: 24px;
  }

  .featured-name strong {
    font-size: 33px;
  }
}

.rankings-panel {
  flex: 1;
  padding: 13px 18px 16px;
  border-top: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 36%),
    linear-gradient(180deg, transparent 0 calc(100% - 1px), rgba(226, 190, 112, 0.055) calc(100% - 1px)),
    rgba(4, 16, 32, 0.96);
}

.panel-header {
  margin-bottom: 11px;
}

h2 {
  margin-top: 4px;
  font-size: 22px;
  line-height: 1.08;
  font-weight: 760;
}

.panel-stamp {
  color: var(--muted);
  font-size: 9px;
  text-align: right;
}

.panel-meta {
  display: grid;
  gap: 7px;
  justify-items: end;
}

.panel-live {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.panel-live span {
  min-height: 22px;
  padding: 5px 7px;
  border: 1px solid rgba(226, 190, 112, 0.18);
  border-radius: 999px;
  color: #cbd4e0;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  background: rgba(2, 9, 20, 0.5);
}

.panel-live span:first-child {
  color: #e2f7d9;
  border-color: rgba(169, 227, 154, 0.28);
}

.panel-live span:first-child::before {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 6px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 10px rgba(169, 227, 154, 0.58);
  content: "";
  vertical-align: 1px;
}

.ranking-table {
  overflow: hidden;
  border: 1px solid rgba(226, 190, 112, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    rgba(3, 12, 25, 0.84);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 14px 34px rgba(0, 0, 0, 0.18);
}

.table-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.22fr) minmax(72px, 0.46fr) minmax(118px, 0.74fr) minmax(108px, 0.64fr) minmax(142px, 0.84fr) minmax(112px, 0.68fr);
  align-items: center;
  min-width: 0;
  min-height: 44px;
  border-top: 1px solid rgba(226, 190, 112, 0.15);
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.table-row:first-child {
  border-top: 0;
}

.table-row > span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 0 8px;
  overflow: hidden;
  color: #ded8cc;
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-row > span > * {
  min-width: 0;
}

.watcher-name {
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.site-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease;
}

.site-link:focus-visible {
  border-radius: 4px;
  outline-offset: 4px;
}

.site-link:hover .watcher-name {
  color: #ffe7ad;
}

.site-link:hover .site-logo {
  border-color: rgba(224, 184, 95, 0.52);
  transform: translateY(-1px);
}

.site-logo {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  padding: 2px;
  border: 1px solid rgba(224, 184, 95, 0.28);
  border-radius: 5px;
  background: rgba(247, 241, 227, 0.92);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
  object-fit: contain;
  transition: border-color 160ms ease, transform 160ms ease;
}

.table-row > span:first-child {
  color: var(--text);
  font-weight: 700;
}

.table-row:not(.table-head):hover {
  background: rgba(226, 190, 112, 0.055);
}

.table-row:not(.table-head) {
  cursor: default;
}

.table-row:not(.table-head):focus-visible {
  outline: 2px solid rgba(224, 184, 95, 0.58);
  outline-offset: -2px;
}

.table-row.is-selected,
.table-row.has-open-drawer {
  background:
    linear-gradient(90deg, rgba(226, 190, 112, 0.105), rgba(226, 190, 112, 0.035) 56%, transparent),
    rgba(226, 190, 112, 0.035);
  box-shadow: inset 2px 0 0 rgba(226, 190, 112, 0.74);
}

.target-row.is-selected,
.target-row.has-open-drawer {
  background:
    linear-gradient(90deg, rgba(255, 91, 104, 0.28), rgba(255, 91, 104, 0.065) 48%, rgba(226, 190, 112, 0.028)),
    rgba(255, 91, 104, 0.06);
  box-shadow: inset 3px 0 0 var(--red), inset 0 0 0 1px rgba(255, 91, 104, 0.16);
}

.table-head {
  min-height: 34px;
  background:
    linear-gradient(90deg, rgba(226, 190, 112, 0.11), rgba(239, 82, 96, 0.035)),
    rgba(226, 190, 112, 0.052);
}

.table-head > span {
  color: #aeb8c8;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 760;
  text-transform: uppercase;
}

.target-row {
  border-top-color: rgba(255, 91, 104, 0.48);
  border-bottom: 1px solid rgba(255, 91, 104, 0.48);
  background:
    linear-gradient(90deg, rgba(255, 91, 104, 0.23), rgba(255, 91, 104, 0.055) 48%, transparent),
    rgba(255, 91, 104, 0.055);
  box-shadow: inset 3px 0 0 var(--red);
}

.target-row > span:first-child {
  color: #fff;
}

.rating-danger,
.rating-mid,
.rating-good {
  font-family: var(--mono);
  font-size: 13px;
}

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

.rating-mid {
  color: var(--amber);
}

.rating-good {
  color: var(--green);
}

.mini-meter {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 42px;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(226, 190, 112, 0.22);
}

.mini-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.mini-meter.danger i {
  width: 10%;
  background: var(--red);
}

.mini-meter.mid i {
  width: 60%;
  background: var(--amber);
}

.mini-meter.mid-plus i {
  width: 65%;
  background: var(--amber);
}

.mini-meter.good i {
  width: 80%;
  background: var(--green);
}

.vibe {
  display: inline-block;
  justify-self: start;
  padding: 3px 7px;
  border: 1px solid rgba(226, 190, 112, 0.24);
  border-radius: 999px;
  font: inherit;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vibe.danger {
  color: #ffe4bd;
  background: rgba(255, 91, 104, 0.12);
}

.vibe.mid {
  color: #ffe5a4;
  background: rgba(241, 209, 121, 0.11);
}

.vibe.good,
.vibe.neutral {
  color: #e2f7d9;
  background: rgba(112, 220, 134, 0.11);
}

.public-rating {
  color: #ffedb9;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1;
}

.table-row > span[data-label="Public"] {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
}

.comment-toggle,
.findings-toggle,
.drawer-close,
.leave-review {
  min-height: 24px;
  padding: 0 7px;
  font-size: 8px;
}

.comment-toggle,
.findings-toggle,
.leave-review {
  max-width: 100%;
}

.comment-toggle {
  border-color: rgba(226, 190, 112, 0.32);
  color: #c9d2df;
  background: rgba(4, 16, 32, 0.72);
}

.findings-toggle {
  border-color: rgba(226, 190, 112, 0.4);
  color: #ffe7ad;
  background:
    linear-gradient(180deg, rgba(224, 184, 95, 0.12), transparent),
    rgba(4, 16, 32, 0.72);
}

.drawer-close {
  border-color: rgba(224, 184, 95, 0.42);
  color: #ffe7ad;
  background:
    linear-gradient(180deg, rgba(224, 184, 95, 0.13), transparent),
    rgba(2, 9, 20, 0.68);
}

.leave-review {
  width: 100%;
  justify-content: center;
  border-color: rgba(233, 77, 88, 0.34);
  color: #f2d8cf;
  background:
    linear-gradient(180deg, rgba(255, 91, 104, 0.14), rgba(108, 28, 36, 0.2)),
    rgba(6, 20, 38, 0.82);
}

.comment-drawer[hidden],
.findings-drawer[hidden] {
  display: none;
}

.comment-drawer,
.findings-drawer {
  height: 0;
  overflow: hidden;
  border-top: 0 solid rgba(226, 190, 112, 0);
  opacity: 0;
  background:
    linear-gradient(90deg, rgba(224, 184, 95, 0.055), transparent 62%),
    rgba(2, 9, 20, 0.6);
  transform: translateY(-6px);
  transition:
    height 340ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease,
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 220ms ease,
    border-width 220ms ease;
  overflow-anchor: none;
  will-change: height, opacity, transform;
}

.comment-drawer.is-open,
.findings-drawer.is-open {
  border-top-width: 1px;
  border-top-color: rgba(226, 190, 112, 0.16);
  opacity: 1;
  transform: translateY(0);
  box-shadow: inset 2px 0 0 rgba(226, 190, 112, 0.45);
}

.comment-drawer-inner {
  min-height: 0;
  padding: 13px 14px 14px;
  transform: translateY(-4px);
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.comment-drawer.is-open .comment-drawer-inner,
.findings-drawer.is-open .comment-drawer-inner {
  transform: translateY(0);
}

.comment-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.comment-drawer-head p,
.comment-drawer-head span,
.drawer-tools,
.char-count,
.form-error {
  margin: 0;
  font-family: var(--mono);
}

.comment-drawer-head p {
  color: var(--purple);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.comment-drawer-head span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.drawer-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.comment-list {
  display: grid;
  gap: 8px;
}

.findings-drawer-inner {
  display: grid;
  gap: 10px;
}

.findings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.findings-grid span {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(224, 184, 95, 0.14);
  border-radius: 5px;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.35;
  background: rgba(6, 20, 38, 0.46);
}

.findings-grid b {
  display: block;
  margin-bottom: 4px;
  color: var(--purple);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.findings-copy {
  margin: 0;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.6;
}

.comment-card,
.empty-docket {
  margin: 0;
  border: 1px solid rgba(224, 184, 95, 0.14);
  border-radius: 5px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent),
    rgba(6, 20, 38, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.comment-card {
  padding: 11px 12px;
}

.comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.comment-card strong {
  color: var(--text);
  font-size: 13px;
}

.comment-card span {
  flex: 0 0 auto;
  color: var(--purple);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.comment-card p {
  margin: 8px 0 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.5;
}

.vote-bar {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.vote-score {
  display: grid;
  min-width: 58px;
  min-height: 36px;
  place-items: center;
  padding: 5px 8px;
  border: 1px solid rgba(224, 184, 95, 0.22);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    rgba(2, 9, 20, 0.58);
}

.vote-score strong {
  color: #ffedb9;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1;
}

.vote-score span {
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.vote-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.vote-button {
  display: inline-grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid rgba(224, 184, 95, 0.2);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  background: rgba(2, 9, 20, 0.56);
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.vote-button span {
  color: inherit;
  font-size: 10px;
  line-height: 1;
}

.vote-button b,
.vote-button em {
  font: inherit;
  font-style: normal;
}

.vote-button em {
  min-width: 12px;
  color: #ffedb9;
  text-align: right;
}

.vote-button:hover {
  border-color: rgba(224, 184, 95, 0.66);
  color: #ffe7ad;
  background: rgba(224, 184, 95, 0.12);
}

.vote-button.is-voted {
  border-color: rgba(224, 184, 95, 0.74);
  color: #04101f;
  background: linear-gradient(180deg, #ffe7ad, var(--purple));
}

.vote-button.is-voted em {
  color: #04101f;
}

.vote-button.is-voted.vote-down {
  border-color: rgba(255, 91, 104, 0.68);
  color: #fff4dc;
  background: linear-gradient(180deg, rgba(255, 91, 104, 0.72), rgba(108, 28, 36, 0.88));
}

.vote-bar[data-user-vote="up"] .vote-score {
  border-color: rgba(169, 227, 154, 0.38);
  background: rgba(169, 227, 154, 0.08);
}

.vote-bar[data-user-vote="down"] .vote-score {
  border-color: rgba(255, 91, 104, 0.36);
  background: rgba(255, 91, 104, 0.08);
}

.empty-docket {
  padding: 12px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.site-footer {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border-top: 0;
  border-radius: 0 0 8px 8px;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.site-footer a {
  color: var(--soft);
  font-weight: 700;
}

.case-modal[hidden],
.case-body[hidden] {
  display: none;
}

.case-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 22px;
}

.case-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 5, 12, 0.72);
  backdrop-filter: blur(8px);
}

.case-report {
  position: relative;
  width: min(520px, 100%);
  max-height: min(760px, calc(100vh - 44px));
  overflow: hidden;
  border: 1px solid rgba(224, 184, 95, 0.46);
  border-radius: 8px;
  color: var(--text);
  background:
    repeating-linear-gradient(0deg, rgba(247, 241, 227, 0.018) 0 1px, transparent 1px 10px),
    linear-gradient(135deg, rgba(224, 184, 95, 0.1), rgba(3, 14, 29, 0.96) 42%),
    #061426;
  box-shadow:
    inset 0 0 0 3px rgba(224, 184, 95, 0.08),
    0 32px 90px rgba(0, 0, 0, 0.58);
}

.case-report::after {
  position: absolute;
  right: -14px;
  bottom: 16px;
  color: rgba(224, 184, 95, 0.06);
  content: "INTAKE";
  font-family: var(--mono);
  font-size: 64px;
  font-weight: 800;
  transform: rotate(-8deg);
}

.case-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(224, 184, 95, 0.34);
  border-radius: 5px;
  color: var(--soft);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  background: rgba(2, 9, 20, 0.62);
}

.case-close:hover {
  border-color: rgba(224, 184, 95, 0.66);
  color: #ffe7ad;
}

.case-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 54px 14px 18px;
  border-bottom: 1px solid rgba(224, 184, 95, 0.2);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--purple);
}

.case-header p {
  margin: 0;
}

.case-header span {
  color: var(--muted);
}

.case-body {
  position: relative;
  z-index: 1;
  max-height: calc(100vh - 138px);
  overflow: auto;
  padding: 18px;
  scrollbar-color: rgba(224, 184, 95, 0.34) rgba(2, 9, 20, 0.42);
}

.case-body h2 {
  margin: 0;
  color: var(--text);
  font-size: 30px;
  line-height: 1;
}

.case-copy,
.case-receipt p {
  margin: 8px 0 0;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.5;
}

.case-form,
.public-review-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.case-form label,
.public-review-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.case-form input,
.case-form textarea,
.public-review-form input,
.public-review-form textarea {
  width: 100%;
  border: 1px solid rgba(224, 184, 95, 0.22);
  border-radius: 5px;
  color: var(--text);
  font: 600 14px var(--sans);
  background: rgba(2, 9, 20, 0.68);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.case-form input,
.public-review-form input {
  height: 42px;
  padding: 0 12px;
}

.case-form textarea,
.public-review-form textarea {
  resize: vertical;
  min-height: 82px;
  padding: 10px 12px;
}

.case-form input:focus,
.case-form textarea:focus,
.public-review-form input:focus,
.public-review-form textarea:focus {
  border-color: rgba(224, 184, 95, 0.68);
  box-shadow: 0 0 0 3px rgba(224, 184, 95, 0.09);
}

.review-report::after {
  content: "DOCKET";
}

.rating-fields {
  display: grid;
  gap: 10px;
}

.rating-fields fieldset {
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(224, 184, 95, 0.18);
  border-radius: 5px;
  background: rgba(2, 9, 20, 0.36);
}

.rating-fields legend {
  padding: 0 5px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.rating-scale {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 5px;
}

.rating-scale label {
  display: block;
}

.rating-scale input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rating-scale span {
  display: grid;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(224, 184, 95, 0.22);
  border-radius: 4px;
  color: var(--soft);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 900;
  background: rgba(2, 9, 20, 0.58);
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.rating-scale span:hover {
  border-color: rgba(224, 184, 95, 0.5);
  color: #ffe7ad;
}

.rating-scale input:checked + span {
  border-color: rgba(224, 184, 95, 0.78);
  color: #05101f;
  background: linear-gradient(180deg, #ffe7ad, var(--purple));
}

.char-count {
  justify-self: end;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.form-error {
  padding: 9px 10px;
  border: 1px solid rgba(233, 77, 88, 0.35);
  border-radius: 5px;
  color: #ffd3d6;
  font-size: 11px;
  font-weight: 800;
  background: rgba(108, 28, 36, 0.22);
}

.case-submit {
  min-height: 44px;
  margin-top: 4px;
  border: 1px solid rgba(233, 77, 88, 0.58);
  border-radius: 5px;
  color: #fff4e0;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  background:
    linear-gradient(180deg, rgba(233, 77, 88, 0.32), rgba(108, 28, 36, 0.72)),
    #3a1018;
  transition: filter 160ms ease, transform 160ms ease;
}

.case-submit:hover {
  filter: brightness(1.08);
}

.case-submit:active {
  transform: translateY(1px);
}

.case-receipt {
  min-height: 230px;
  align-content: center;
}

.case-receipt h2 {
  color: #ffe7ad;
}

.case-receipt h2:focus {
  outline: none;
}

@media (max-width: 860px) {
  .terminal-shell {
    width: min(100% - 24px, 680px);
    padding: 12px 0;
  }

  .site-header,
  .mission-strip,
  .panel-header {
    align-items: flex-start;
  }

  .site-header,
  .mission-strip,
  .panel-header {
    flex-direction: column;
  }

  .watcher-line,
  .panel-stamp {
    text-align: left;
  }

  .header-status,
  .panel-meta {
    justify-items: start;
  }

  .panel-live {
    justify-content: flex-start;
  }

  .header-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .report-trigger {
    min-height: 34px;
  }

  .mission-strip {
    padding: 14px;
  }

  .mission-copy h1 {
    font-size: 20px;
  }

  .case-status-rail {
    justify-content: flex-start;
  }

  .ranking-table {
    display: grid;
    gap: 10px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .table-head {
    display: none;
  }

  .table-row {
    grid-template-columns: 1fr 1fr;
    gap: 10px 0;
    min-width: 0;
    min-height: 0;
    padding: 14px 10px;
    border: 1px solid rgba(226, 190, 112, 0.22);
    border-radius: 7px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent),
      rgba(3, 12, 25, 0.84);
  }

  .table-row > span {
    display: grid;
    gap: 4px;
    justify-items: start;
    white-space: normal;
  }

  .site-link {
    max-width: 100%;
  }

  .table-row > span::before {
    color: var(--muted);
    content: attr(data-label);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
  }

  .comment-drawer-inner {
    padding: 12px;
  }

  .comment-drawer-head,
  .comment-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .vote-bar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .vote-score {
    display: flex;
    justify-content: space-between;
    min-width: 0;
  }

  .vote-actions {
    flex-wrap: wrap;
  }

  .leave-review {
    width: auto;
  }

  .table-row > span[data-label="Public"] {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .table-row > span[data-label="Action"] {
    align-self: end;
  }
}

@media (max-width: 520px) {
  .metric-grid,
  .table-row {
    grid-template-columns: 1fr;
  }

  .case-modal {
    padding: 12px;
  }

  .case-header {
    align-items: flex-start;
    flex-direction: column;
    padding-right: 54px;
  }

  .rating-scale {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
