:root {
  color: #0b1733;
  background: #f7faff;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background: #f7faff;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(11, 91, 211, 0.32);
  outline-offset: 2px;
}

.app-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 100vh;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fe 100%);
  transition: grid-template-columns 180ms ease;
}

.app-shell.sidebar-collapsed {
  grid-template-columns: 76px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  display: flex;
  flex-direction: column;
  top: 0;
  height: 100vh;
  overflow: hidden;
  border-right: 1px solid #dbe4f0;
  background: rgba(255, 255, 255, 0.88);
  color: #10213f;
  padding: 22px 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 30px;
  padding: 0 10px;
}

.brand-copy {
  min-width: 0;
  transition: opacity 160ms ease;
}

.brand-mark {
  flex: 0 0 36px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  border: 2px solid #1459d9;
  color: #1459d9;
  font-weight: 850;
}

.brand-title {
  margin: 0;
  color: #07142d;
  font-size: 21px;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.brand-subtitle {
  color: #0b5bd3;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.sidebar-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  border: 1px solid #d2deee;
  border-radius: 9px;
  background: #ffffff;
  color: #24466f;
  font-weight: 800;
  margin-top: auto;
  padding: 9px 12px;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.sidebar-toggle:hover,
.sidebar-toggle:focus-visible {
  border-color: #b7d2fb;
  background: #eaf3ff;
  color: #0759d7;
}

.sidebar-toggle svg {
  flex: 0 0 auto;
}

.eyebrow {
  margin-bottom: 8px;
  color: #60718e;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav-list {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.nav-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 8px;
  padding: 12px 13px;
  background: transparent;
  color: #122544;
  text-align: left;
  transition: background 160ms ease, color 160ms ease;
}

.nav-item.active,
.nav-item:hover {
  background: #eaf3ff;
  color: #0759d7;
}

.nav-item svg {
  flex: 0 0 auto;
  color: #24466f;
}

.nav-item.active svg,
.nav-item:hover svg {
  color: #0759d7;
}

.sidebar-collapsed .sidebar {
  padding-inline: 12px;
}

.sidebar-collapsed .brand {
  justify-content: center;
  margin-bottom: 18px;
  padding: 0;
}

.sidebar-collapsed .brand-copy,
.sidebar-collapsed .nav-item span,
.sidebar-collapsed .sidebar-toggle span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.sidebar-collapsed .sidebar-toggle,
.sidebar-collapsed .nav-item {
  justify-content: center;
  padding-inline: 0;
}

.sidebar-collapsed .sidebar-toggle {
  width: 42px;
  height: 42px;
  margin-top: auto;
  margin-inline: auto;
}

.sidebar-collapsed .nav-item {
  height: 44px;
}

.main-panel {
  min-width: 0;
}

.topbar {
  display: flex;
  min-width: 0;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #dbe4f0;
  background: rgba(255, 255, 255, 0.88);
  padding: 14px 28px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h2 {
  margin-bottom: 8px;
  font-size: 24px;
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.run-selector {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 100%;
  min-width: 206px;
  border: 1px solid #d2deee;
  border-radius: 9px;
  background: white;
  color: #07142d;
  padding: 11px 14px;
}

.run-selector span {
  font-weight: 750;
}

.run-selector strong {
  flex: 1;
  font-size: 14px;
}

.topbar-actions {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  width: min(740px, 100%);
  border: 1px solid #d2deee;
  border-radius: 9px;
  background: white;
  padding: 11px 14px;
  color: #64748b;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #0f172a;
}

.ready-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #b7efd4;
  border-radius: 9px;
  background: #eefdf5;
  color: #047857;
  font-size: 14px;
  font-weight: 800;
  padding: 11px 18px;
}

.ready-pill span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #24466f;
}

.page-stack {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.alert-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  background: #fff7ed;
  color: #9a3412;
  padding: 12px 16px;
}

.alert-banner strong {
  color: #7c2d12;
}

.hero-dashboard {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  background: white;
  padding: 18px 20px;
}

.compact-hero {
  padding: 16px 20px;
}

.hero-dashboard p {
  max-width: 760px;
  margin-bottom: 0;
  color: #53657f;
  line-height: 1.55;
}

.hero-status {
  display: flex;
  max-width: 100%;
  min-width: 230px;
  align-items: center;
  gap: 12px;
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  background: #f8fbff;
  color: #0b5bd3;
  padding: 14px;
}

.hero-status strong,
.hero-status span {
  display: block;
}

.hero-status span {
  color: #60718e;
  font-size: 13px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.metric-card {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 13px;
  min-height: 110px;
  align-items: center;
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  background: white;
  box-shadow: 0 14px 34px rgba(16, 33, 63, 0.05);
  padding: 18px;
}

.metric-card::before {
  display: grid;
  width: 52px;
  height: 52px;
  grid-row: span 3;
  place-items: center;
  border-radius: 50%;
  background: var(--metric-bg, #edf4ff);
  color: var(--metric-fg, #0b5bd3);
  content: "◉";
  font-size: 22px;
}

.metric-card span,
.metric-card small {
  display: block;
  color: #53657f;
  font-size: 13px;
}

.metric-card span {
  font-weight: 750;
}

.metric-card strong {
  display: block;
  margin: 2px 0;
  color: #07142d;
  font-size: 26px;
  font-weight: 850;
  letter-spacing: -0.045em;
}

.metric-card small {
  color: #05825f;
}

.tone-blue {
  --metric-bg: #eaf3ff;
  --metric-fg: #0b5bd3;
}

.tone-cyan {
  --metric-bg: #e7f8fb;
  --metric-fg: #0891b2;
}

.tone-purple {
  --metric-bg: #f1eafe;
  --metric-fg: #7c3aed;
}

.tone-red {
  --metric-bg: #fff0f3;
  --metric-fg: #e11d48;
}

.tone-amber {
  --metric-bg: #fff6e9;
  --metric-fg: #ea580c;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr) minmax(0, 0.92fr);
  gap: 16px;
  min-width: 0;
}

.panel,
.repository-tree,
.object-hero,
.object-meta-grid,
.tabs,
.object-browser,
.object-detail-card {
  min-width: 0;
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  background: white;
  box-shadow: 0 14px 34px rgba(16, 33, 63, 0.05);
}

.panel {
  overflow-x: visible;
  min-width: 0;
  padding: 18px;
}

.table-panel {
  overflow-x: auto;
}

.wide-panel {
  grid-column: span 2;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.compact-heading {
  align-items: center;
}

.panel-meta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #53657f;
  font-size: 12px;
  font-weight: 800;
}

.panel-heading-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.panel-collapse-button {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #d2deee;
  border-radius: 8px;
  background: white;
  color: #24466f;
}

.panel-collapse-button:hover,
.panel-collapse-button:focus-visible {
  border-color: #a9c8f6;
  background: #eaf3ff;
  color: #0759d7;
}

.repo-browser-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(340px, 1fr) minmax(520px, 1.35fr);
  gap: 16px;
  min-width: 0;
}

.repo-browser-grid.repo-panel-collapsed {
  grid-template-columns: 76px minmax(340px, 1fr) minmax(520px, 1.35fr);
}

.repo-browser-grid.pp-panel-collapsed {
  grid-template-columns: minmax(300px, 0.85fr) 76px minmax(520px, 1.35fr);
}

.repo-browser-grid.repo-panel-collapsed.pp-panel-collapsed {
  grid-template-columns: 76px 76px minmax(520px, 1fr);
}

.list-panel {
  min-height: 640px;
}

.collapsible-list-panel {
  min-width: 0;
}

.repo-browser-grid.repo-panel-collapsed .repo-list-panel,
.repo-browser-grid.pp-panel-collapsed .pp-list-panel {
  padding: 12px;
}

.repo-browser-grid.repo-panel-collapsed .repo-list-panel .panel-heading,
.repo-browser-grid.pp-panel-collapsed .pp-list-panel .panel-heading {
  align-items: center;
  flex-direction: column;
}

.repo-browser-grid.repo-panel-collapsed .repo-list-panel .panel-heading > div:first-child,
.repo-browser-grid.pp-panel-collapsed .pp-list-panel .panel-heading > div:first-child,
.repo-browser-grid.repo-panel-collapsed .repo-list-panel .panel-meta,
.repo-browser-grid.pp-panel-collapsed .pp-list-panel .panel-meta {
  display: none;
}

.collapsed-panel-summary {
  display: grid;
  min-height: 520px;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: #24466f;
  text-align: center;
}

.collapsed-panel-summary strong {
  writing-mode: vertical-rl;
  color: #07142d;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.collapsed-panel-summary span {
  color: #0759d7;
  font-size: 12px;
  font-weight: 850;
}

.stack-list {
  display: grid;
  gap: 8px;
  max-height: 600px;
  overflow: auto;
  padding-right: 4px;
}

.stack-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  width: 100%;
  border: 1px solid #e3ebf5;
  border-radius: 10px;
  background: #ffffff;
  color: #122544;
  padding: 10px;
  text-align: left;
}

.stack-row-select {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
}

.stack-row.active,
.stack-row:hover {
  border-color: #b7d2fb;
  background: #eaf3ff;
}

.stack-row-select strong,
.stack-row-select small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stack-row-select small {
  margin-top: 4px;
  color: #60718e;
  font-size: 12px;
}

.stack-row-select em {
  color: #0759d7;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.objects-live-panel {
  overflow-x: auto;
  min-width: 0;
}

.uri-cell {
  max-width: 330px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-link-button {
  border: 1px solid #b7d2fb;
  border-radius: 7px;
  background: #eaf3ff;
  color: #0759d7;
  font-size: 12px;
  font-weight: 850;
  padding: 6px 9px;
}

.copyable-value {
  position: relative;
  display: inline-flex;
  max-width: 100%;
  min-width: 0;
  align-items: center;
  gap: 5px;
  vertical-align: middle;
}

.copyable-value-text {
  display: inline-block;
  max-width: min(100%, 360px);
  min-width: 0;
  overflow: hidden;
  color: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inline-copyable {
  width: 100%;
}

.inline-copyable .copyable-value-text {
  max-width: min(100%, 520px);
}

.stack-row-copy {
  width: 100%;
  color: #60718e;
  font-size: 12px;
}

.stack-row-copy.secondary {
  color: #24466f;
}

.stack-row-copy .copyable-value-text {
  max-width: 100%;
}

.copy-icon-button {
  display: inline-grid;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid #d2deee;
  border-radius: 7px;
  background: white;
  color: #0b5bd3;
  padding: 0;
}

.copy-icon-button:hover,
.copy-icon-button:focus-visible {
  border-color: #a9c8f6;
  background: #eaf3ff;
}

.copy-state-text {
  color: #047857;
  font-size: 11px;
  font-weight: 850;
}

.copyable-tooltip {
  position: fixed;
  z-index: 1000;
  max-width: min(760px, calc(100vw - 32px));
  transform: translate(-50%, -100%);
  border: 1px solid #b7d2fb;
  border-radius: 10px;
  background: #07142d;
  box-shadow: 0 16px 42px rgba(7, 20, 45, 0.22);
  color: white;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  padding: 9px 11px;
  pointer-events: none;
  white-space: normal;
}

.current-page-filter {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.current-page-filter span {
  color: #60718e;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.current-page-filter input {
  width: 100%;
  border: 1px solid #d2deee;
  border-radius: 8px;
  background: white;
  color: #0f172a;
  padding: 9px 10px;
}

.current-page-filter input:disabled {
  background: #f7faff;
  color: #94a3b8;
}

.cursor-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  color: #60718e;
  font-size: 12px;
}

.cursor-pager span {
  display: grid;
  gap: 2px;
  min-width: 160px;
  color: #122544;
  font-weight: 850;
  text-align: center;
}

.cursor-pager small {
  color: #60718e;
  font-size: 11px;
  font-weight: 750;
}

.cursor-pager button {
  border: 1px solid #d2deee;
  border-radius: 7px;
  background: white;
  color: #0b5bd3;
  font-weight: 800;
  padding: 7px 10px;
}

.cursor-pager button:disabled,
.ghost-button:disabled,
.primary-button:disabled,
.table-link-button:disabled,
.filter-pill:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.pagination-note,
.empty-state,
.loading-line {
  margin-top: 12px;
  color: #60718e;
  font-size: 13px;
}

.loading-line {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 12px;
}

.loading-line svg {
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.panel-icon {
  color: #0b5bd3;
}

.panel-icon.success {
  color: #059669;
}

.panel-icon.warning {
  color: #ea580c;
}

.donut-wrap {
  position: relative;
  display: grid;
  min-height: 178px;
  place-items: center;
}

.donut {
  width: 166px;
  height: 166px;
  border-radius: 50%;
  background: conic-gradient(#0ca678 0 87%, #facc15 87% 96%, #e11d48 96% 100%);
  box-shadow: inset 0 0 0 24px white;
}

.donut-center {
  position: absolute;
  display: grid;
  place-items: center;
}

.donut-center strong {
  color: #07142d;
  font-size: 30px;
  letter-spacing: -0.05em;
}

.donut-center span {
  color: #53657f;
  font-size: 13px;
  font-weight: 750;
}

.legend-list,
.bar-list,
.issue-list,
.check-list,
.detail-list,
.chain-flow {
  display: grid;
  gap: 12px;
}

.legend-row,
.bar-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.legend-row span:first-child {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.legend-row label {
  flex: 1;
  color: #122544;
}

.bar-meta {
  margin-bottom: 7px;
  color: #53657f;
  font-size: 13px;
}

.bar-track {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: #e6edf6;
}

.bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0b5bd3, #20b7c9);
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

th {
  color: #60718e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}

td,
th {
  border-bottom: 1px solid #e3ebf5;
  padding: 13px 10px;
}

td {
  color: #263c59;
  font-size: 14px;
}

.status-badge,
.severity {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 9px;
  text-transform: capitalize;
}

.status-badge.healthy,
.status-badge.matched,
.status-badge.current,
.status-badge.valid {
  background: #dcfce7;
  color: #047857;
}

.status-badge.warning {
  background: #fff7cc;
  color: #b45309;
}

.status-badge.fallback,
.status-badge.cached {
  background: #eaf3ff;
  color: #0759d7;
}

.issue-card {
  min-width: 0;
  max-width: 100%;
  border-bottom: 1px solid #e3ebf5;
  padding: 14px 0;
}

.issue-card:last-child {
  border-bottom: 0;
}

.issue-card div {
  display: flex;
  min-width: 0;
  max-width: 100%;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.issue-card p {
  max-width: 100%;
  overflow-wrap: anywhere;
  margin: 9px 0;
  color: #122544;
}

.issue-card code {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #53657f;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.issue-card small {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  margin-top: 7px;
  color: #60718e;
}

.severity.high {
  background: #ffe5eb;
  color: #be123c;
}

.severity.medium {
  background: #fff3dc;
  color: #c2410c;
}

.severity.low {
  background: #eaf3ff;
  color: #0759d7;
}

.ghost-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  padding: 9px 12px;
}

.ghost-button {
  border: 1px solid #d2deee;
  background: white;
  color: #0b5bd3;
}

.primary-button {
  border: 1px solid #0b5bd3;
  background: #0b5bd3;
  color: white;
}

.object-page {
  padding: 0;
}

.object-layout {
  display: grid;
  grid-template-columns: 248px minmax(350px, 1fr) minmax(330px, 0.9fr);
  min-height: calc(100vh - 76px);
  gap: 0;
  min-width: 0;
}

.object-detail-only-layout {
  min-height: calc(100vh - 76px);
  min-width: 0;
  padding: 18px;
}

.object-detail-card-expanded {
  width: min(100%, 1120px);
  margin: 0 auto;
}

.object-detail-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #dbe4f0;
  margin-bottom: 18px;
  padding-bottom: 14px;
}

.object-detail-toolbar .search-box {
  flex: 1 1 420px;
  max-width: 580px;
  padding: 9px 12px;
}

.object-detail-toolbar strong {
  color: #24466f;
  font-size: 13px;
}

.repository-tree {
  border-top: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 20px 14px;
}

.tree-node {
  position: relative;
  margin-top: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #263c59;
  font-size: 13px;
  font-weight: 750;
  padding: 9px 10px;
}

.tree-node.root {
  background: #f7faff;
}

.tree-node.nested {
  margin-left: 18px;
}

.tree-node.current {
  border-color: #b7d2fb;
  background: #eaf3ff;
  color: #0759d7;
}

.object-picker-list {
  display: grid;
  gap: 4px;
  margin-top: 10px;
}

.object-picker {
  display: grid;
  gap: 6px;
  width: calc(100% - 18px);
}

.object-picker-select {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
}

.object-picker-select strong,
.object-picker-select span {
  display: block;
}

.object-picker-select span {
  overflow: hidden;
  margin-top: 4px;
  color: #60718e;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.object-main {
  display: contents;
}

.object-browser {
  overflow-x: auto;
  overflow-y: hidden;
  border-top: 0;
  border-bottom: 0;
  border-radius: 0;
  box-shadow: none;
}

.browser-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #dbe4f0;
  padding: 18px;
}

.browser-toolbar .search-box {
  flex: 1 1 220px;
  max-width: 240px;
  padding: 9px 12px;
}

.browser-toolbar .object-uri-search {
  max-width: 420px;
}

.filter-pill {
  border: 1px solid #d2deee;
  border-radius: 8px;
  background: white;
  color: #53657f;
  padding: 9px 12px;
}

.object-row-active {
  background: #eef6ff;
  box-shadow: inset 3px 0 0 #0b5bd3;
}

.object-type {
  color: #0b5bd3;
  font-weight: 850;
}

.object-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.object-detail-card {
  align-self: start;
  margin: 14px;
  padding: 18px;
}

.object-detail-card.object-detail-card-expanded {
  margin: 0 auto;
}

.object-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0 0 14px;
}

.object-hero > div:first-child {
  flex: 1 1 220px;
  min-width: 0;
}

.object-hero p {
  overflow-wrap: anywhere;
  color: #53657f;
  line-height: 1.55;
}

.object-actions {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
}

.object-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  border-radius: 8px;
  box-shadow: none;
  padding: 12px;
}

.meta-item {
  min-width: 0;
}

.meta-item span {
  display: block;
  margin-bottom: 5px;
  color: #60718e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.meta-item strong {
  display: block;
  overflow-wrap: anywhere;
  color: #07142d;
  font-size: 13px;
}

.tabs {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  margin-top: 12px;
  border: 0;
  border-bottom: 1px solid #dbe4f0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #53657f;
  font-weight: 800;
  padding: 12px 0;
}

.tabs button.active {
  border-color: #0b5bd3;
  color: #0b5bd3;
}

.object-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 12px;
}

.prefix-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.prefix-list span {
  border-radius: 8px;
  background: #eaf3ff;
  color: #0759d7;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 10px;
}

.check-item {
  display: flex;
  gap: 10px;
  border: 1px solid #c9f3dd;
  border-radius: 10px;
  background: #f0fdf4;
  color: #047857;
  padding: 10px;
}

.check-item.warning-check {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #c2410c;
}

.check-item p {
  margin: 4px 0 0;
  color: #53657f;
  font-size: 13px;
  line-height: 1.45;
}

.chain-flow {
  grid-template-columns: repeat(4, minmax(92px, 1fr));
}

.live-chain-flow {
  grid-template-columns: 1fr;
}

.chain-node {
  position: relative;
  border: 1px solid #c9f3dd;
  border-radius: 10px;
  background: #f0fdf4;
  color: #047857;
  padding: 10px;
}

.chain-node strong,
.chain-node span {
  display: block;
}

.chain-node span {
  margin-top: 5px;
  color: #60718e;
  font-size: 12px;
  font-weight: 800;
}

.chain-node code {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 8px;
  color: #24466f;
  font-size: 11px;
}

.json-preview {
  overflow: auto;
  max-height: 360px;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  background: #f8fbff;
  color: #10213f;
  font-size: 12px;
  line-height: 1.55;
  padding: 12px;
  white-space: pre-wrap;
}

.object-browser table,
.objects-live-panel table {
  min-width: 760px;
}

.explain-box {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.explain-box span {
  color: #60718e;
  font-size: 13px;
}

.explain-result {
  margin-top: 14px;
}

.inline-actions {
  justify-content: flex-start;
  margin-top: 10px;
}

.workflow-status {
  margin-top: 12px;
  box-shadow: none;
}

.workflow-status-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: #53657f;
  font-size: 13px;
}

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

@media (max-width: 1380px) {
  .metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .repo-browser-grid {
    grid-template-columns: 1fr;
  }

  .repo-browser-grid.repo-panel-collapsed,
  .repo-browser-grid.pp-panel-collapsed,
  .repo-browser-grid.repo-panel-collapsed.pp-panel-collapsed {
    grid-template-columns: 1fr;
  }

  .collapsed-panel-summary {
    min-height: 88px;
  }

  .collapsed-panel-summary strong {
    writing-mode: horizontal-tb;
  }

  .issue-panel {
    grid-column: span 2;
  }
}

@media (max-width: 1180px) {
  .dashboard-grid,
  .object-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .wide-panel,
  .issue-panel {
    grid-column: auto;
  }

  .repository-tree {
    border-right: 0;
    border-bottom: 1px solid #dbe4f0;
  }
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-shell.sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    overflow: visible;
  }

  .sidebar-collapsed .sidebar {
    padding: 22px 14px;
  }

  .sidebar-collapsed .brand {
    justify-content: flex-start;
    margin-bottom: 30px;
    padding: 0 10px;
  }

  .sidebar-collapsed .brand-copy,
  .sidebar-collapsed .nav-item span,
  .sidebar-collapsed .sidebar-toggle span {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }

  .sidebar-collapsed .sidebar-toggle,
  .sidebar-collapsed .nav-item {
    justify-content: flex-start;
    padding-inline: 12px;
  }

  .sidebar-collapsed .sidebar-toggle {
    width: 100%;
    height: auto;
    margin-inline: 0;
  }

  .topbar,
  .hero-dashboard,
  .topbar-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .page-stack {
    padding: 14px;
  }

  .topbar {
    gap: 14px;
    padding: 14px;
  }

  .run-selector,
  .search-box,
  .ready-pill,
  .hero-status {
    width: 100%;
    min-width: 0;
  }

  .ready-pill {
    justify-content: center;
  }

  .object-layout {
    min-height: auto;
  }

  .object-detail-only-layout {
    min-height: auto;
    padding: 14px;
  }

  .object-detail-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .object-detail-toolbar .search-box,
  .object-detail-toolbar .filter-pill {
    width: 100%;
    max-width: none;
  }

  .object-detail-card {
    margin: 14px;
  }

  .object-detail-card-expanded {
    margin: 0;
  }

  .metric-grid,
  .object-meta-grid,
  .chain-flow {
    grid-template-columns: 1fr;
  }
}
