.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.button,
.utility-button,
.mini-button,
.drawer-close,
.icon-button {
  min-height: var(--control-height);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  color: var(--rox-body);
  background: var(--rox-control);
  border: 1px solid var(--rox-stroke);
  border-radius: var(--radius-control);
  cursor: pointer;
  font-size: var(--type-control);
  font-weight: 560;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.button:hover,
.utility-button:hover,
.mini-button:hover,
.drawer-close:hover,
.icon-button:hover,
.utility-button[aria-expanded="true"] {
  color: var(--rox-ink);
  background: var(--rox-control-hover);
}

.button.primary {
  color: #ffffff;
  background: var(--rox-blue);
  border-color: var(--rox-blue);
}

.button.primary:hover {
  background: var(--rox-blue-hover);
  border-color: var(--rox-blue-hover);
}

.button:disabled,
.utility-button:disabled,
.mini-button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.icon-button {
  width: var(--control-height);
  padding: 0;
  color: var(--rox-muted);
  background: transparent;
  border-color: transparent;
  font-size: 18px;
}

.utility-button span {
  margin-left: 2px;
  color: var(--rox-muted);
  font-family: var(--font-mono);
  font-size: var(--type-caption);
}

.timer-button .review-time {
  color: var(--rox-green);
}

.timer-button .review-time.expired {
  color: var(--rox-red);
}

.nav-group-label,
.drawer-kicker,
.document-kicker,
.review-brief-eyebrow,
.empty-kicker,
.card-kicker,
.row-kicker,
.metric-label {
  color: var(--rox-muted);
  font-family: var(--font-ui);
  font-size: var(--type-caption);
  font-weight: 650;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.nav-item {
  width: 100%;
  min-height: 32px;
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  margin: 0 0 1px;
  padding: 0 7px;
  color: var(--rox-body);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  font-size: var(--type-label);
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}

.nav-item > .ph {
  color: var(--rox-muted);
  font-size: 16px;
}

.nav-item:hover {
  color: var(--rox-ink);
  background: var(--rox-panel);
  border-color: transparent;
}

.nav-item.active {
  color: var(--rox-ink);
  background: var(--rox-control);
  border-color: transparent;
  font-weight: 620;
}

.nav-item.active > .ph,
.nav-item.active .nav-meta {
  color: var(--rox-blue);
}

.nav-meta {
  color: var(--rox-faint);
  font-family: var(--font-mono);
  font-size: var(--type-caption);
  font-weight: 600;
}

.workspace-tabs,
.inspector-primary-tabs,
.inspector-tabs {
  display: flex;
  align-items: stretch;
  gap: 4px;
  overflow-x: auto;
}

.workspace-tabs button,
.inspector-primary-tabs button,
.inspector-tabs button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--rox-muted);
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  font-size: var(--type-control);
  font-weight: 520;
  white-space: nowrap;
}

.workspace-tabs button:hover,
.workspace-tabs button.active,
.inspector-primary-tabs button:hover,
.inspector-primary-tabs button.active,
.inspector-tabs button:hover,
.inspector-tabs button.active {
  color: var(--rox-ink);
  background: transparent;
}

.workspace-tabs button.active::after,
.inspector-primary-tabs button.active::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 0;
  left: 10px;
  height: 2px;
  background: var(--rox-blue);
  border-radius: 2px;
}

.inspector-tabs button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font-size: var(--type-label);
}

.inspector-tabs button:hover,
.inspector-tabs button.active {
  color: var(--rox-ink);
  background: var(--rox-control);
  border-color: var(--rox-stroke);
}

.inspector-tabs button.active {
  color: var(--rox-blue);
}

.review-brief,
.inspector-card,
.component-group,
.component-row,
.graphic-row,
.font-row,
.resolution-row,
.package-tree,
.text-row,
.tree-root,
.section-row {
  color: var(--rox-body);
  background: var(--rox-panel);
  border: 1px solid var(--rox-stroke);
  border-radius: var(--radius-panel);
}

.review-brief {
  padding: 14px 15px;
}

.review-brief-eyebrow {
  margin-bottom: 6px;
}

.review-brief-copy {
  margin: 0 0 10px;
  color: var(--rox-body);
  font-size: var(--type-body);
  line-height: 1.45;
}

.review-brief-chip,
.severity-tag,
.font-runtime-state {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: var(--type-caption);
  font-weight: 650;
}

.review-brief-chip {
  color: var(--rox-red);
  background: var(--rox-red-soft);
}

.quality-metric {
  min-width: 0;
  padding: 2px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.metric-label,
.metric-state {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-value {
  margin: 4px 0 2px;
  color: var(--rox-body);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
}

.metric-state {
  color: var(--rox-faint);
  font-size: var(--type-caption);
}

.quality-metric.pass .metric-value {
  color: var(--rox-green);
}

.quality-metric.fail .metric-value {
  color: var(--rox-red);
}

.quality-metric.pending .metric-value {
  color: var(--rox-amber);
}

.inspector-card,
.component-row,
.graphic-row,
.font-row {
  padding: 14px;
}

.card-kicker,
.row-kicker {
  margin-bottom: 5px;
}

.card-title,
.row-title {
  margin-bottom: 5px;
  color: var(--rox-ink);
  font-size: var(--type-body);
  font-weight: 620;
  line-height: 1.35;
}

.card-body,
.row-meta,
.resolution-body p {
  color: var(--rox-body);
  font-size: var(--type-control);
  line-height: 1.5;
}

.text-row {
  overflow: hidden;
}

.text-row summary {
  min-height: 68px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  cursor: pointer;
  list-style: none;
}

.text-row summary::-webkit-details-marker {
  display: none;
}

.text-row-summary {
  min-width: 0;
}

.text-row-summary .row-title {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-row-state {
  color: var(--rox-muted);
  font-size: var(--type-caption);
}

.text-row summary > .ph {
  color: var(--rox-faint);
  font-size: 16px;
  transition: transform 140ms ease;
}

.text-row[open] summary > .ph {
  transform: rotate(180deg);
}

.text-row-body {
  padding: 0 14px 14px;
}

.text-editor {
  width: 100%;
  min-height: 112px;
  padding: 12px;
  resize: vertical;
  color: var(--rox-ink);
  background: var(--rox-field);
  border: 1px solid var(--rox-stroke);
  border-radius: var(--radius-control);
  font-size: var(--type-body);
  line-height: 1.5;
}

.row-actions,
.resolution-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.mini-button {
  min-height: 34px;
  padding: 0 11px;
  font-size: var(--type-label);
}

.resolution-row {
  overflow: hidden;
}

.resolution-row[open] {
  background: var(--rox-control);
}

.resolution-row summary {
  min-height: 64px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}

.resolution-title strong {
  margin-bottom: 3px;
  font-size: var(--type-control);
  font-weight: 620;
}

.resolution-title span,
.resolution-state {
  color: var(--rox-muted);
  font-size: var(--type-caption);
}

.resolution-state {
  font-family: var(--font-mono);
}

.resolution-body {
  padding: 0 14px 14px 68px;
}

.severity-tag {
  min-width: 56px;
  justify-content: center;
  text-transform: uppercase;
}

.severity-tag.critical,
.severity-tag.high,
.font-runtime-state.blocked {
  color: var(--rox-red);
  background: var(--rox-red-soft);
}

.severity-tag.medium {
  color: var(--rox-amber);
  background: var(--rox-amber-soft);
}

.severity-tag.low {
  color: var(--rox-blue);
  background: var(--rox-blue-soft);
}

.font-runtime-state.ready {
  color: var(--rox-green);
  background: var(--rox-green-soft);
}

.font-fingerprint,
.font-gates span,
.font-source-note,
.source-state,
.package-file,
.package-tree summary,
.section-summary small,
.component-contract,
.section-contract {
  font-size: var(--type-caption);
}

.font-fingerprint {
  margin-top: 9px;
}

.font-gates {
  gap: 6px;
  margin-top: 8px;
}

.font-gates span,
.font-source-note,
.slot-list span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  color: var(--rox-muted);
  background: var(--rox-control);
  border-radius: 5px;
}

.package-tree {
  padding: 8px;
}

.package-tree summary,
.package-file {
  min-height: 38px;
  padding: 0 10px;
}

.package-file span:last-child {
  font-size: var(--type-caption);
}

.page-thumb-meta,
.upload-note,
.compile-state {
  font-size: var(--type-caption);
}

.empty-state p {
  font-size: var(--type-body);
}

.upload-title {
  font-size: var(--type-body);
}

.tree-root {
  min-height: 44px;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 9px;
  padding: 0 11px;
  font-size: var(--type-control);
}

.tree-root span {
  font-size: var(--type-caption);
}

.section-row summary {
  min-height: 52px;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 9px;
  padding: 0 11px;
}

.section-summary strong {
  font-size: var(--type-control);
}

.section-summary small,
.asset-slot span,
.source-state,
.slot-list span,
.component-group > summary span,
.component-contract,
.token-name,
.token-value,
.package-tree summary span {
  font-size: var(--type-caption);
}

.section-contract {
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 6px 10px;
  padding: 10px;
}

.asset-slot {
  min-height: 54px;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 8px;
  border-radius: var(--radius-control);
}

.asset-slot img {
  width: 58px;
  height: 36px;
}

.asset-slot strong {
  font-size: var(--type-control);
}

.slot-list {
  gap: 6px;
  margin-top: 8px;
}

.slot-list span {
  min-height: 26px;
  padding: 0 7px;
}

.component-group > summary {
  min-height: 48px;
  padding: 0 12px;
}

.component-group > summary strong {
  font-size: var(--type-control);
}

.component-group-body {
  padding: 0 8px 8px;
}

.component-head {
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
}

.component-asset-preview {
  width: 34px;
  height: 30px;
}

.component-contract {
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 5px 9px;
  margin-top: 10px;
  padding: 10px;
}

.token-row {
  min-height: 46px;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 10px;
  margin-bottom: 6px;
  padding: 7px 9px;
  border-radius: var(--radius-control);
}

.token-swatch {
  width: 30px;
  height: 30px;
}
