:root {
  --bg: #0d0d0d;
  --surface: #181818;
  --accent: #cc1033;
  --text: #f0ede8;
  --muted: #aaa;
  --line: #303030;
  --soft: #141414;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Outfit, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid #ff8099;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
a {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  line-height: 1.15;
}
h1 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(42px, 5vw, 66px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 15px;
}
h1 span {
  color: var(--accent);
}
h2 {
  font-size: 20px;
  font-weight: 600;
}
h3 {
  font-size: 18px;
}
p {
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.skip {
  position: absolute;
  top: -80px;
  left: 20px;
  z-index: 10;
  background: var(--accent);
  padding: 12px;
}
.skip:focus {
  top: 10px;
}
.sidebar {
  width: 252px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #141414;
  border-right: 1px solid #2c1820;
  display: flex;
  flex-direction: column;
}
.brand {
  padding: 28px 24px;
  border-bottom: 1px solid #2c1820;
}
.brand img {
  height: 34px;
  max-width: 190px;
  object-fit: contain;
}
nav {
  padding: 25px 0;
}
nav a {
  display: flex;
  gap: 14px;
  padding: 15px 26px;
  text-decoration: none;
  color: var(--muted);
  border-left: 3px solid transparent;
  font-size: 14px;
}
.active {
  color: #ff5d7a;
  background: #cc103312;
  border-color: var(--accent);
}
.sidebar-note {
  margin: auto 25px 30px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.sidebar-note span {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #d3c5c7;
}
.sidebar-note p {
  font-size: 13px;
  margin: 10px 0 0;
}
main {
  margin-left: 252px;
  max-width: 1450px;
  padding: 30px 52px 0;
}
.topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.13em;
  color: var(--muted);
  padding-bottom: 24px;
  border-bottom: 1px solid #252525;
}
.badge {
  border: 1px solid #64303b;
  background: #cc10330d;
  color: #ee9aaa;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 9px;
  letter-spacing: 0.08em;
}
.heading {
  padding: 38px 0 20px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 12px;
}
.heading > p:last-child {
  max-width: 620px;
  font-size: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.access {
  padding: 19px 23px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
}
.access h2 {
  font-size: 15px;
  margin-bottom: 5px;
}
.access p {
  font-size: 12px;
  margin-bottom: 0;
}
.access form {
  display: flex;
  gap: 8px;
  flex: 1;
  max-width: 430px;
}
.access input {
  margin: 0;
  min-width: 0;
}
.secondary {
  white-space: nowrap;
  background: #232323;
  color: var(--text);
  border: 1px solid #414141;
  border-radius: 8px;
  padding: 11px 15px;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: center;
}
.secondary:hover {
  border-color: #aaa;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 36px;
  align-items: start;
}
.form-card {
  padding: 28px;
}
.card-heading {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 23px;
  border-bottom: 1px solid var(--line);
}
.step {
  font-family: "Barlow Condensed", sans-serif;
  border: 1px solid #69303b;
  color: #ee9aaa;
  border-radius: 8px;
  font-size: 21px;
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.card-heading h2 {
  margin-bottom: 5px;
}
.card-heading p {
  font-size: 12px;
  margin-bottom: 0;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin: 19px 0 8px;
}
.required {
  color: #f0a3b1;
}
input,
select {
  width: 100%;
  background: #111;
  color: var(--text);
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  padding: 13px 14px;
  font-size: 14px;
  min-height: 47px;
}
input::placeholder {
  color: #929292;
}
input:focus,
select:focus {
  border-color: #cc667a;
}
select {
  padding-right: 25px;
}
small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  margin-top: 7px;
}
.optional {
  border-top: 1px solid var(--line);
  margin: 25px 0;
  padding-top: 20px;
}
.optional summary {
  font-size: 12px;
  cursor: pointer;
  color: #ddd;
}
.optional summary span {
  color: var(--muted);
  font-size: 10px;
  float: right;
}
.optional > div {
  padding-top: 8px;
}
.primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  width: 100%;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: white;
  padding: 15px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
}
.primary:hover:enabled {
  background: #b40d2c;
}
.submit-note {
  text-align: center;
  margin-top: 12px;
}
.guidance {
  padding: 25px 0 0;
}
.guidance-icon {
  color: #ef6a84;
  width: 46px;
  height: 46px;
  border: 1px solid #68303b;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 27px;
  margin-bottom: 23px;
}
.guidance h2 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 31px;
  font-weight: 700;
}
.guidance > p {
  font-size: 13px;
  line-height: 1.7;
}
.guidance ol {
  padding: 0;
  list-style: none;
  margin: 27px 0;
  counter-reset: steps;
}
.guidance li {
  padding: 0 0 24px 31px;
  position: relative;
  counter-increment: steps;
}
.guidance li:before {
  content: "0" counter(steps);
  position: absolute;
  left: 0;
  top: 0;
  font-size: 10px;
  color: #ee9aaa;
}
.guidance b {
  font-size: 13px;
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}
.guidance li span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  display: block;
}
.quiet-note {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
}
footer {
  padding: 34px 0 25px;
  margin-top: 40px;
  border-top: 1px solid #252525;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
footer span {
  letter-spacing: normal;
}
.error {
  border: 1px solid #85404e;
  color: #ffd0da;
  background: #2a1419;
  padding: 12px 15px;
  border-radius: 8px;
  font-size: 13px;
}
.session-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin: 0 0 22px;
  padding: 12px 0;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
}
.text-button {
  border: 0;
  background: none;
  color: #e8b4be;
  font-size: 12px;
}
.progress-card {
  text-align: center;
  padding: 70px 25px;
}
.spinner {
  width: 38px;
  height: 38px;
  border: 3px solid #444;
  border-top-color: #ef6a84;
  border-radius: 50%;
  margin: 0 auto 28px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.progress-card h2 {
  font-size: 28px;
}
.progress-card p:last-child {
  max-width: 450px;
  margin: auto;
}
.result-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin: 15px 0;
}
.result-heading h2 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 42px;
  margin-bottom: 0;
}
.coverage {
  font-size: 12px;
  border-left: 2px solid var(--accent);
  padding-left: 12px;
  margin: 25px 0 35px;
}
.priorities {
  display: grid;
  gap: 12px;
  margin-bottom: 25px;
}
.priority {
  padding: 22px;
  display: flex;
  gap: 18px;
}
.priority .number {
  color: #ee9aaa;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 30px;
  line-height: 1;
}
.priority h4 {
  margin: 0 0 8px;
  font-size: 16px;
}
.priority p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
}
.result-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 20px;
}
.result-columns > .card {
  padding: 23px;
}
.result-columns p {
  font-size: 13px;
  line-height: 1.7;
}
.pending {
  padding: 23px;
  margin: 20px 0;
}
.pending ul {
  color: var(--muted);
  font-size: 13px;
  padding-left: 18px;
  line-height: 1.8;
}
.result-details {
  padding: 22px;
}
.result-details summary {
  cursor: pointer;
  font-size: 13px;
}
.group {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.group h4 {
  margin: 0 0 10px;
  font-size: 14px;
}
.group p {
  font-size: 12px;
  margin-bottom: 8px;
}
.evidence-link {
  display: block;
  font-size: 12px;
  color: #e8b4be;
  overflow-wrap: anywhere;
  margin: 10px 0;
}
.disclaimer {
  font-size: 11px;
  margin-top: 22px;
}
.result-details #evidence {
  padding-top: 15px;
}
#result:focus {
  outline: 0;
}
@media (min-width: 1550px) {
  main {
    margin-right: auto;
  }
}
@media (max-width: 1160px) {
  main {
    padding: 25px 30px 0;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) 225px;
    gap: 25px;
  }
  .access {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .access form {
    max-width: none;
    width: 100%;
  }
  .guidance h2 {
    font-size: 28px;
  }
}
@media (max-width: 900px) {
  .sidebar {
    position: static;
    width: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #302027;
    border-right: 0;
  }
  .brand {
    padding: 20px;
    border: 0;
  }
  .brand img {
    height: 28px;
    max-width: 165px;
  }
  .sidebar nav {
    padding: 0;
    display: flex;
  }
  .sidebar nav a {
    padding: 20px 14px;
    font-size: 12px;
    border-left: 0;
    border-bottom: 2px solid transparent;
  }
  .sidebar nav a.active {
    border-bottom-color: var(--accent);
  }
  .sidebar-note {
    display: none;
  }
  main {
    margin: 0;
    padding: 25px 25px 0;
  }
  .heading {
    padding-top: 30px;
  }
}
@media (max-width: 650px) {
  main {
    padding: 20px 18px 0;
  }
  .topline {
    font-size: 8px;
    gap: 12px;
    letter-spacing: 0.08em;
  }
  .badge {
    font-size: 8px;
    white-space: nowrap;
  }
  .heading h1 {
    font-size: 48px;
  }
  .heading > p:last-child {
    font-size: 14px;
  }
  .workspace {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .form-card {
    padding: 22px;
  }
  .guidance {
    padding: 16px 6px;
  }
  .guidance h2 br {
    display: none;
  }
  .guidance-icon {
    display: none;
  }
  .guidance ol {
    margin: 22px 0 0;
  }
  .guidance li {
    padding-bottom: 20px;
  }
  .quiet-note {
    margin-top: 5px;
  }
  .access {
    padding: 18px;
  }
  .access form {
    flex-direction: column;
  }
  .access .secondary {
    min-height: 44px;
  }
  .access input {
    font-size: 16px;
  }
  .sidebar nav a.active {
    display: none;
  }
  .sidebar nav a {
    font-size: 11px;
  }
  .sidebar nav a span {
    display: none;
  }
  .result-columns {
    grid-template-columns: 1fr;
  }
  .result-heading {
    align-items: flex-start;
  }
  .result-heading h2 {
    font-size: 34px;
  }
  .result-heading .secondary {
    font-size: 10px;
    padding: 10px;
  }
  .priority {
    padding: 20px;
    gap: 13px;
  }
  input,
  select {
    font-size: 16px;
  }
  .optional summary {
    font-size: 11px;
  }
  .optional summary span {
    float: none;
    display: block;
    margin-top: 5px;
  }
  footer {
    font-size: 9px;
  }
  .result-heading > div {
    min-width: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation: none;
  }
}

.finding-evidence {
  margin: 1rem 0;
  padding: 1rem;
  border-left: 3px solid var(--red, #cc1033);
  background: #111;
  border-radius: 0 8px 8px 0;
  overflow-wrap: anywhere;
}
.finding-evidence strong {
  color: #eee;
  font-size: 0.9rem;
}
.finding-evidence p {
  margin: 0.6rem 0;
}
.finding-evidence blockquote {
  margin: 0.6rem 0;
  color: #ddd;
  font-style: italic;
}
.finding-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.75rem 0;
  font-size: 0.8rem;
}
.finding-colors span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.finding-colors i {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 1px solid #777;
  border-radius: 50%;
}
.priority > div {
  min-width: 0;
}

.finding-task {
  color: #f0ede8;
  font-size: 1.05rem;
  line-height: 1.7;
}
.finding-evidence.has-image {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.9fr);
  gap: 1rem;
  align-items: start;
}
.evidence-image {
  margin: 0;
  min-width: 0;
}
.evidence-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 440px;
  object-fit: contain;
  object-position: top;
  background: #fff;
  border: 1px solid #444;
  border-radius: 8px;
}
.evidence-image figcaption {
  font-size: 0.8rem;
  color: #aaa;
  margin-top: 0.5rem;
}
.technical-evidence,
.image-gallery {
  margin: 1rem 0;
}
.technical-evidence summary,
.image-gallery summary {
  cursor: pointer;
  font-size: 0.9rem;
  color: #ccc;
}
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}
@media (max-width: 700px) {
  .finding-evidence.has-image {
    grid-template-columns: minmax(0, 1fr);
  }
}
