@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono/JetBrainsMono-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  --bg: #0d1014;
  --panel: #151a20;
  --panel-raised: #1c232c;
  --ink: #f1f4f8;
  --muted: #adbac9;
  --line: #33404c;
  --blue: #92bcff;
  --green: #82d6bd;
  --coral: #ef9b89;
  --amber: #dcc38c;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}
.studio {
  background: var(--bg);
  font-size: 1rem;
  line-height: 1.55;
}
.studio .shell {
  width: min(1140px, calc(100% - 64px));
}
.studio header {
  background: #11151a;
  border-color: #28313a;
}
.studio header .shell {
  min-height: 64px;
  height: auto;
}
.studio .wordmark {
  color: var(--ink);
  gap: 10px;
  font-size: 1.235rem;
  letter-spacing: -0.035em;
}
.studio .wordmark img {
  width: 27px;
  height: 27px;
}
.brand-context {
  border-left: 1px solid #47505c;
  padding-left: 11px;
  margin-left: 2px;
  color: var(--muted);
  font: 500 0.925rem/1 var(--mono);
  letter-spacing: -0.035em;
}
.topnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}
.studio .topnav a,
.studio .mobile-nav a {
  color: #c5cfda;
  text-decoration: none;
  font-size: 0.9rem;
}
.topnav a:hover,
.mobile-nav a:hover {
  color: var(--blue);
  text-decoration: underline;
}
.mobile-nav {
  display: none;
}
.skip-link {
  position: fixed;
  inset: 6px auto auto 10px;
  transform: translateY(-160%);
  z-index: 8;
  padding: 9px 14px;
  border-radius: 4px;
  background: var(--panel-raised);
}
.skip-link:focus {
  transform: none;
}
.studio main:focus {
  outline: none;
}
.studio .intro {
  padding: 44px 0 24px;
}
.studio .intro h1 {
  font-size: clamp(2.4rem, 4.7vw, 3.8rem);
  line-height: 1.03;
  font-weight: 620;
  letter-spacing: -0.052em;
}
.studio .intro p {
  max-width: 72ch;
  color: var(--muted);
  font-size: 1.075rem;
  margin: 11px 0 0;
}
.tools {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}
.studio .tools a {
  display: inline-flex;
  align-items: center;
  padding: 11px 17px 10px;
  border-bottom: 2px solid transparent;
  color: #afbac8;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 610;
}
.tools a:hover {
  color: var(--ink);
  background: var(--panel);
}
.studio .tools a[aria-current] {
  border-bottom-color: var(--blue);
  color: #c3d9ff;
  background: #192435;
}
.pane {
  margin-bottom: 58px;
}
.sheet,
.featured-audit {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(20px, 2.5vw, 30px);
  background: var(--panel);
}
.sheet {
  max-width: 800px;
}
.sheet > p,
.sheet .scope-note p {
  color: var(--muted);
  max-width: 72ch;
}
.sheet h2 {
  margin: 0 0 15px;
  font-size: clamp(1.32rem, 2.4vw, 1.64rem);
  font-weight: 625;
}
.sheet form {
  border: 0;
  background: transparent;
}
.entry-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}
.entry-grid .audit-entry {
  max-width: none;
  display: flex;
  flex-direction: column;
}
.audit-entry h2 {
  margin: 0 0 15px;
}
.entry-input label {
  margin: 0 0 7px;
}
.studio input,
.studio textarea,
.studio select {
  color: var(--ink);
  background-color: #10151b;
  border: 1px solid #4c5866;
  border-radius: 5px;
}
.studio input:not([type="file"]),
.studio textarea {
  font: 0.925rem/1.5 var(--mono);
}
.studio input:not([type="file"]) {
  min-height: 45px;
  padding: 10px 12px;
}
.studio input::placeholder,
.studio textarea::placeholder {
  color: #91a0b1;
  font: inherit;
}
.studio :is(a, button, summary, input, select, textarea):focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.studio a,
.pane summary {
  color: var(--blue);
}
.studio a:hover {
  color: #d5e5ff;
}
.studio .hint {
  font-size: 0.875rem;
  margin-top: 7px;
}
.studio button {
  border-radius: 5px;
}
.studio .primary {
  color: #101c2c;
  background: #95bfff;
  border-color: #95bfff;
}
.studio .primary:hover:not(:disabled) {
  background: #b3d0ff;
}
.studio .secondary {
  color: #d7e4f6;
  background: #1b222b;
  border-color: #485463;
}
.studio .secondary:hover:not(:disabled) {
  background: #263241;
  border-color: #7392bb;
}
.studio .actions {
  margin-top: 16px;
}
.optional {
  font-weight: 400;
  color: var(--muted);
}
.source-trail {
  margin-top: auto;
  padding-top: 27px;
}
.source-trail h3,
.feature-heading h2 {
  color: #b5c3d2;
  font: 500 0.79rem/1.5 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.055em;
}
.source-trail h3 {
  margin-bottom: 13px;
}
.source-trail ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  list-style: none;
  padding: 0;
  margin: 0;
}
.source-trail li {
  min-width: 0;
  position: relative;
  border-top: 1px solid #4c6178;
  padding: 11px 6px 0 0;
  line-height: 1.45;
}
.source-trail li::before {
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  content: "";
  background: #91b7e6;
  box-shadow: 0 0 0 3px var(--panel);
}
.source-trail li:last-child {
  border-color: transparent;
}
.source-trail li b {
  display: block;
  font: 500 0.855rem/1.5 var(--mono);
  color: #e3eaf3;
}
.source-trail li span {
  display: block;
  color: var(--muted);
  font-size: 0.83rem;
}
.featured-audit {
  background: #18222c;
  border-color: #384c60;
  display: flex;
  flex-direction: column;
}
.feature-heading {
  margin: 0 0 9px;
}
.feature-heading h2 {
  margin: 0;
  color: #b1ccef;
}
#featured-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
#featured-body h3 {
  font-size: clamp(1.35rem, 2.7vw, 1.84rem);
  font-weight: 610;
  line-height: 1.12;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}
#featured-body p {
  margin: 6px 0;
}
.feature-meta,
.feature-observed,
#featured-body > p {
  color: var(--muted);
}
.feature-meta {
  font-size: 0.9rem;
}
#featured-body .feature-volume {
  margin: 15px 0 7px;
  color: #c9d6e3;
  font-size: 0.875rem;
}
.feature-volume strong {
  color: var(--ink);
  font: 600 1.15rem/1.3 var(--mono);
}
.outcome-band {
  display: block;
  width: 100%;
  height: 15px;
  background: #394552;
  border-radius: 2px;
}
.outcome-legend {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  padding: 0;
  margin: 9px 0 13px;
  gap: 8px;
}
.outcome-legend li {
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  gap: 0;
  line-height: 1.4;
}
.outcome-legend li span {
  font-size: 0.83rem;
  color: #d7e0eb;
}
.outcome-legend li span::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 1px;
  margin-right: 4px;
  vertical-align: 1px;
}
.outcome-legend .listed span::before {
  background: var(--green);
}
.outcome-legend .conflict span::before {
  background: var(--coral);
}
.outcome-legend .unknown span::before {
  background: var(--amber);
}
.outcome-legend li b {
  font: 500 1.35rem/1.4 var(--mono);
}
#featured-body .feature-observed {
  font-size: 0.82rem;
  margin: 0;
}
.feature-actions {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #3a4c5c;
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 5px 12px;
}
.feature-date {
  font-variant-numeric: tabular-nums;
}
.studio a.feature-link {
  display: inline-block;
  color: #c1dafe;
  font-weight: 610;
  font-size: 0.925rem;
  padding: 4px 0;
  margin-top: auto;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
#featured-body > p:not([class]) {
  max-width: 36ch;
  margin: 12px 0 22px;
}
.studio #audit:has(#audit-output:not(:empty)) .featured-audit,
.studio #audit:has(#audit-output:not(:empty)) .source-trail {
  display: none;
}
.studio #audit:has(#audit-output:not(:empty)) .entry-grid {
  display: block;
}
.studio #audit:has(#audit-output:not(:empty)) .audit-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 14px;
  padding: 15px clamp(16px, 2vw, 22px);
  background: #13191f;
}
.studio #audit:has(#audit-output:not(:empty)) .audit-entry h2,
.studio #audit:has(#audit-output:not(:empty)) #store-help {
  display: none;
}
.studio #audit:has(#audit-output:not(:empty)) .audit-entry .actions {
  margin: 0;
}
.studio:has(#audit:not([hidden]) #audit-output:not(:empty)) .intro {
  padding: 26px 0 16px;
}
.studio:has(#audit:not([hidden]) #audit-output:not(:empty)) .intro h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.65rem);
}
.studio:has(#audit:not([hidden]) #audit-output:not(:empty)) .intro p {
  display: none;
}

.keyrow,
.tools-actions,
.metrics,
.resultnav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.keyrow {
  gap: 8px;
}
.keyrow input {
  flex: 1;
  min-width: 150px;
}
.studio textarea,
.studio select {
  font: inherit;
  padding: 9px 10px;
}
.studio textarea {
  display: block;
  resize: vertical;
  width: 100%;
}
.studio select {
  max-width: 100%;
  min-height: 42px;
}
.hint code,
code,
.mono,
.metric strong {
  font-family: var(--mono);
}
.pane > p[role="status"]:empty {
  display: none;
}
.pane > p[role="status"] {
  margin: 12px 0;
  color: var(--muted);
}
.pane > p.error[role="status"] {
  color: #ffafa5;
}
.sectiontitle {
  margin: 26px 0 9px;
}
.review-note {
  max-width: 76ch;
  color: var(--muted);
  margin: 7px 0;
}
.metrics {
  gap: 0;
  margin: 17px 0;
  border-block: 1px solid var(--line);
}
.metric {
  padding: 12px 20px 12px 0;
  margin-right: 18px;
  font-size: 0.9rem;
  color: var(--muted);
}
.metric strong {
  display: block;
  color: var(--ink);
  font-size: 1.45rem;
}
.tools-actions {
  margin: 12px 0;
  gap: 8px;
}
.tools-actions label,
.resultnav label {
  margin: 0;
  font-size: 0.9rem;
}
.tools-actions select {
  margin-left: 6px;
}
.tools-actions button,
.resultnav button,
.compact {
  font-size: 0.9rem;
  min-height: 40px;
  padding: 6px 11px;
}
.resultnav {
  gap: 9px;
  margin-top: 10px;
}
.resultnav button:first-of-type {
  margin-left: auto;
}
.datagrid {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.datagrid th,
.datagrid td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  padding: 10px 9px;
  overflow-wrap: anywhere;
}
.datagrid th {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}
.datagrid tbody tr:hover {
  background: var(--panel);
}
.chip {
  font-size: 0.85rem;
  font-weight: 650;
  white-space: nowrap;
  color: var(--amber);
}
.chip.listed,
.chip.found {
  color: var(--green);
}
.chip.conflict,
.chip.unlisted {
  color: var(--coral);
}
.chip.unknown {
  color: var(--amber);
}
.tablebox {
  overflow: auto;
}
.pane details {
  margin: 12px 0;
  border-block-start: 1px solid var(--line);
  padding-top: 9px;
}
.pane details summary {
  font-size: 0.925rem;
}
.datagrid details {
  border: 0;
  margin: 3px 0;
  padding: 0;
}
.datagrid details pre,
.evidence {
  font-size: 0.825rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #d7e1ee;
}
.quiet {
  color: var(--muted);
  font-size: 0.85rem;
}
.sourceitem {
  padding: 7px 0;
}
.history {
  margin-top: 30px;
}
.history select {
  max-width: 260px;
}
.copybox {
  background: var(--panel);
  padding: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.itemlist {
  padding-left: 22px;
}
.itemlist li {
  margin: 6px 0;
}
.pane a {
  overflow-wrap: anywhere;
}
.pane section + section {
  margin-top: 22px;
}
.optional-fields label {
  margin-top: 12px;
}
.studio .sheet .scope-note,
.studio .sheet .optional-fields {
  margin: 13px 0;
  padding: 10px 0;
  border-block: 1px solid var(--line);
}

@media (max-width: 780px) {
  .studio .shell {
    width: calc(100% - 36px);
  }
  .entry-grid {
    grid-template-columns: 1fr;
  }
  .entry-grid .audit-entry {
    max-width: none;
  }
  .source-trail {
    padding-top: 22px;
  }
  .featured-audit {
    min-height: auto;
  }
}
@media (max-width: 600px) {
  .studio .shell {
    width: calc(100% - 28px);
  }
  .studio header .shell {
    min-height: 55px;
    gap: 10px;
  }
  .studio .wordmark {
    gap: 8px;
    font-size: 1.08rem;
  }
  .studio .wordmark img {
    width: 24px;
    height: 24px;
  }
  .brand-context {
    font-size: 0.81rem;
    padding-left: 8px;
  }
  .topnav {
    display: none;
  }
  .mobile-nav {
    display: block;
    position: relative;
  }
  .mobile-nav summary {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--blue);
    padding: 8px 0 8px 8px;
  }
  .mobile-nav nav {
    z-index: 4;
    position: absolute;
    right: 0;
    top: 100%;
    display: grid;
    gap: 2px;
    min-width: 165px;
    padding: 6px;
    background: var(--panel-raised);
    border: 1px solid var(--line);
    border-radius: 5px;
  }
  .mobile-nav a {
    padding: 8px 10px;
  }
  .studio .intro {
    padding: 26px 0 14px;
  }
  .studio .intro h1 {
    font-size: clamp(2rem, 8.6vw, 2.55rem);
  }
  .studio .intro p {
    font-size: 1rem;
    line-height: 1.45;
    margin-top: 8px;
  }
  .tools {
    gap: 0;
    justify-content: space-between;
    margin-bottom: 16px;
  }
  .studio .tools a {
    justify-content: center;
    font-size: 0.87rem;
    padding: 9px 6px 8px;
  }
  .sheet,
  .featured-audit {
    padding: 18px 16px;
  }
  .entry-grid {
    gap: 12px;
  }
  .source-trail li b {
    font-size: 0.76rem;
  }
  .source-trail li span {
    font-size: 0.77rem;
  }
  .studio .sheet p {
    font-size: 0.94rem;
  }
  .studio .sheet .hint {
    font-size: 0.84rem;
  }
  .studio #audit:has(#audit-output:not(:empty)) .audit-entry {
    display: block;
    padding: 13px;
  }
  .studio #audit:has(#audit-output:not(:empty)) .audit-entry .actions {
    margin-top: 10px;
  }
  .studio:has(#audit:not([hidden]) #audit-output:not(:empty)) .intro {
    padding: 18px 0 9px;
  }
  .metric {
    margin-right: 10px;
    padding-right: 9px;
  }
  .resultnav {
    align-items: stretch;
  }
  .tablebox .datagrid {
    min-width: 540px;
  }
  .tools-actions select {
    margin: 0;
  }
  .tools-actions label {
    display: block;
  }
  .sectiontitle {
    font-size: 1.35rem;
  }
}
@media (max-width: 355px) {
  .studio .tools a {
    font-size: 0.81rem;
    padding-inline: 4px;
  }
  .source-trail li b {
    font-size: 0.7rem;
  }
  .outcome-legend {
    gap: 5px;
  }
}
.scenario-entry {
  margin: 1.1rem 0 0.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.7rem;
  color: var(--muted);
}
.scenario-entry a {
  font-weight: 650;
}
.studio #audit:has(#audit-output:not(:empty)) .scenario-entry {
  display: none;
}
