.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 36px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}
.brand:hover {
  text-decoration: none;
}
.brand > span:last-child {
  display: grid;
  gap: 3px;
}
.brand strong {
  font-size: 16px;
}
.brand small {
  color: var(--muted);
  font-size: 11px;
}
.brand-symbol {
  height: 35px;
  width: 42px;
  font-size: 22px;
  line-height: 35px;
  font-weight: 750;
  color: var(--cyan);
}
.brand-symbol span {
  font-size: 12px;
  color: var(--text);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
}
.primary,
.secondary,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  min-height: 36px;
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
}
.primary {
  background: var(--cyan);
  color: var(--bg);
  border-color: var(--cyan);
}
.secondary:hover,
.icon-button:hover {
  background: var(--panel-2);
  border-color: var(--muted);
}
.icon-button {
  width: 36px;
  flex: none;
  padding: 0;
}
.text-button {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--cyan);
  background: none;
  border: 0;
  padding: 4px 0;
  font-size: 12px;
  text-align: left;
}
.text-button:hover {
  text-decoration: underline;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 7px;
  border: 1px solid currentColor;
  border-radius: 3px;
  line-height: 1.25;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.badge:before {
  content: "";
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
  flex: none;
}
.badge.source {
  color: var(--cyan);
}
.badge.advisory {
  color: var(--violet);
}
.badge.unknown {
  color: var(--amber);
}
.badge.measured {
  color: var(--green);
}
.notice {
  padding: 12px 36px;
  background: #32271a;
  border-bottom: 1px solid #685031;
  color: var(--amber);
  font-size: 12px;
}
.notice.error {
  background: #321a1b;
  color: var(--red);
}
.workspace {
  max-width: 1520px;
  padding: 32px 36px 0;
  margin: auto;
}
.workspace-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.workspace-heading h1 {
  margin-bottom: 9px;
}
.revision {
  display: grid;
  gap: 7px;
  min-width: 230px;
  text-align: right;
}
.revision label {
  color: var(--muted);
  font-size: 11px;
}
.revision select {
  max-width: 310px;
}
.tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  overflow-x: auto;
}
.tab {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--muted);
  padding: 13px 0 16px;
  font-size: 12px;
}
.tab[aria-current="page"] {
  border-bottom-color: var(--cyan);
  color: var(--cyan);
}
.tab:hover {
  color: var(--text);
}
input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  color: var(--text);
  padding: 10px 12px;
  min-width: 0;
  max-width: 100%;
}
select {
  font-size: 12px;
}
textarea {
  resize: vertical;
  width: 100%;
  min-height: 120px;
  line-height: 1.6;
}
label {
  font-size: 12px;
  color: var(--muted);
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.section-head h2 {
  font-size: 18px;
}
.section-head p {
  font-size: 12px;
  color: var(--muted);
}
.rule-section {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.empty {
  padding: 48px 16px;
  text-align: center;
  color: var(--muted);
  border-block: 1px solid var(--line);
}
.empty h3 {
  color: var(--text);
  margin-bottom: 8px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}
th {
  color: var(--muted);
  font-weight: 500;
  font-size: 10px;
  text-transform: uppercase;
  padding: 11px 12px;
  background: var(--panel);
}
td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
td p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
tr:hover td {
  background: #0b161a;
}
td:first-child,
th:first-child {
  padding-left: 16px;
}
td strong {
  font-weight: 550;
}
.number {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.inline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.divider {
  color: var(--line);
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 21px 0 28px;
  margin-top: 32px;
  font-size: 11px;
  color: var(--muted);
}
dialog {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 6px;
  width: min(980px, 94vw);
  max-height: 90vh;
  padding: 24px;
}
dialog::backdrop {
  background: #000b;
}
#source-dialog[open] {
  display: flex;
  flex-direction: column;
}
#source-dialog > header,
#source-dialog > .source-meta,
#source-dialog > .source-actions {
  flex-shrink: 0;
}
#source-rendered,
#source-text {
  min-height: 0;
}
dialog header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}
dialog h2 {
  font-size: 18px;
  overflow-wrap: anywhere;
}
.source-meta {
  color: var(--muted);
  margin: 16px 0;
  line-height: 1.8;
}
.source-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}
.source-actions a {
  font-size: 12px;
}
.source-mode {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
}
.source-mode button {
  min-width: 76px;
  border: 0;
  border-radius: 0;
  padding: 8px 12px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}
.source-mode button[aria-pressed="true"] {
  color: var(--cyan);
  background: var(--panel-2);
}
.source-actions button:disabled {
  opacity: 0.5;
  cursor: default;
}
.markdown-body {
  max-height: 57vh;
  overflow: auto;
  padding: 22px 8px 22px 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.markdown-body > :first-child {
  margin-top: 0;
}
.markdown-body h1 {
  font-size: 24px;
  line-height: 1.3;
  margin: 28px 0 16px;
}
.markdown-body h2 {
  font-size: 21px;
  margin: 28px 0 12px;
}
.markdown-body h3 {
  font-size: 17px;
  margin: 22px 0 10px;
}
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
  font-size: 14px;
  margin: 20px 0 8px;
}
.markdown-body p {
  margin: 12px 0;
}
.markdown-body ul,
.markdown-body ol {
  padding-left: 26px;
  margin: 12px 0;
}
.markdown-body li {
  margin: 5px 0;
}
.markdown-body blockquote {
  margin: 16px 0;
  padding: 2px 16px;
  border-left: 3px solid var(--cyan);
  color: var(--muted);
}
.markdown-body a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.markdown-body code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  background: var(--panel-2);
  padding: 2px 5px;
  border-radius: 3px;
}
.markdown-body pre {
  max-height: none;
  padding: 14px;
  margin: 16px 0;
  border: 1px solid var(--line);
  background: var(--panel);
  white-space: pre;
  overflow-wrap: normal;
}
.markdown-body pre code {
  padding: 0;
  background: none;
  border-radius: 0;
}
.markdown-body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}
.markdown-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  margin: 18px 0;
}
.markdown-body table {
  width: 100%;
  border-collapse: collapse;
}
.markdown-body th,
.markdown-body td {
  min-width: 120px;
  padding: 9px 12px;
  white-space: normal;
}
.markdown-body th {
  color: var(--text);
  font-size: 12px;
  text-transform: none;
}
.markdown-body td {
  font-size: 13px;
}
.markdown-body .align-center {
  text-align: center;
}
.markdown-body .align-right {
  text-align: right;
}
.markdown-image {
  color: var(--muted);
  font-style: italic;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font:
    12px/1.75 ui-monospace,
    monospace;
  color: #c1d3d3;
}
dialog pre {
  max-height: 57vh;
  overflow: auto;
  padding: 16px 4px;
}
.access {
  max-width: 1200px;
  margin: 90px auto;
  padding: 36px;
}
.access h1 {
  font-size: 92px;
  font-weight: 700;
  line-height: normal;
  margin: 18px 0 14px;
}
.access > p {
  max-width: 750px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
}
.access-rule {
  width: 70px;
  height: 3px;
  background: var(--cyan);
  margin: 38px 0;
}
.access button {
  margin-top: 22px;
  font-size: 14px;
  font-weight: 800;
}
.loading {
  padding: 80px;
  text-align: center;
  color: var(--muted);
}
