/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }
body {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.65;
  color: var(--color-text-primary);
  background: var(--color-bg-page);
  height: 100%;
  overflow: hidden;
}
a { color: var(--color-text-link); text-decoration: none; }
a:hover { color: var(--color-text-link-hover); text-decoration: underline; }

/* Custom scrollbars */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--color-scrollbar-thumb);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--color-scrollbar-thumb-hover); }
* { scrollbar-width: thin; scrollbar-color: var(--color-scrollbar-thumb) transparent; }

/* ============================================================
   Loading Screen
   ============================================================ */
.loading-screen {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: var(--color-bg-page);
  z-index: 9999;
  gap: var(--space-4);
}
.loading-spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--color-border-default);
  border-top-color: var(--color-bg-accent-strong);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-screen p {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
}

/* ============================================================
   Header
   ============================================================ */
.app-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: var(--color-bg-surface);
  border-bottom: 1px solid var(--color-border-subtle);
  display: flex; align-items: center;
  padding: 0 var(--space-5);
  gap: var(--space-4);
  z-index: 100;
}
.header-logo {
  width: var(--sidebar-width);
  flex-shrink: 0;
  display: flex; align-items: center;
  gap: var(--space-3);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-primary);
  text-decoration: none;
  cursor: pointer;
  letter-spacing: -0.01em;
}
.header-logo:hover { text-decoration: none; color: var(--color-text-primary); }
.header-logo-icon {
  width: 30px; height: 30px;
  background: var(--color-bg-accent-strong);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-on-accent);
}
.header-search {
  flex: 1; max-width: 640px;
  position: relative;
}
.search-bar { position: relative; width: 100%; }
.search-bar-icon {
  position: absolute; left: var(--space-3); top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-placeholder);
  pointer-events: none;
}
.search-bar-input {
  width: 100%; height: 38px;
  padding: 0 var(--space-3) 0 38px;
  font-size: var(--text-body);
  font-family: var(--font-sans);
  background: var(--color-bg-page);
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-xl);
  outline: none;
  color: var(--color-text-primary);
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
.search-bar-input::placeholder { color: var(--color-text-placeholder); }
.search-bar-input:hover {
  border-color: var(--color-border-strong);
}
.search-bar-input:focus {
  border-color: var(--color-border-accent);
  box-shadow: 0 0 0 3px rgba(11, 111, 204, 0.10);
  background: var(--color-bg-surface);
}
.search-bar-shortcut {
  position: absolute; right: var(--space-3); top: 50%;
  transform: translateY(-50%);
  font-size: var(--text-small);
  color: var(--color-text-placeholder);
  background: var(--color-bg-page);
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-sm);
  padding: 1px 6px;
  pointer-events: none;
}
.header-actions {
  display: flex; align-items: center;
  gap: var(--space-2); margin-left: auto;
}
.lang-switcher {
  position: relative;
}
.lang-btn {
  display: flex; align-items: center; gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  font-size: var(--text-body); font-weight: 500;
  font-family: var(--font-sans);
  color: var(--color-text-primary);
  background: transparent; border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 120ms ease;
}
.lang-btn:hover { background: var(--color-bg-surface); }
.lang-dropdown {
  display: none;
  position: absolute; top: calc(100% + 4px); right: 0;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  min-width: 100px; padding: var(--space-1) 0;
  z-index: 200;
}
.lang-dropdown.open { display: block; }
.lang-option {
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-body); cursor: pointer;
  color: var(--color-text-primary);
  transition: background 80ms ease;
}
.lang-option:hover { background: var(--color-bg-surface); }
.lang-option.active { color: var(--color-text-link); font-weight: 500; }
.lang-option .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-bg-accent-strong);
}
.lang-option:not(.active) .dot { visibility: hidden; }
.header-icon-btn {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border: none; background: transparent;
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}
.header-icon-btn:hover {
  background: var(--color-bg-page);
  color: var(--color-text-primary);
}
.user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3B9AE8 0%, #0B6FCC 100%);
  color: var(--color-text-on-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-label); font-weight: 600;
  cursor: pointer;
  transition: box-shadow 150ms ease;
}
.user-avatar:hover {
  box-shadow: 0 0 0 2px var(--color-bg-surface), 0 0 0 4px var(--color-bg-accent-strong);
}

/* ============================================================
   Layout
   ============================================================ */
.app-body {
  display: flex;
  margin-top: var(--header-height);
  height: calc(100vh - var(--header-height));
}
.sidebar {
  position: fixed; top: var(--header-height); left: 0;
  width: var(--sidebar-width);
  height: calc(100vh - var(--header-height));
  background-color: var(--color-bg-surface);
  background-image:
    linear-gradient(var(--color-bg-surface) 30%, transparent),
    linear-gradient(transparent, var(--color-bg-surface) 70%),
    radial-gradient(farthest-side at 50% 0, rgba(0,0,0,0.06), transparent),
    radial-gradient(farthest-side at 50% 100%, rgba(0,0,0,0.06), transparent);
  background-position: 0 0, 0 100%, 0 0, 0 100%;
  background-repeat: no-repeat;
  background-size: 100% 24px, 100% 24px, 100% 8px, 100% 8px;
  background-attachment: local, local, scroll, scroll;
  overflow-y: auto;
  padding: var(--space-3) var(--space-3);
  border-right: 1px solid var(--color-border-subtle);
  z-index: 50;
}
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  overflow-y: auto;
  padding: var(--space-8) var(--content-padding) 64px;
  min-width: 640px;
}
/* Scroll shadow at top of main content */
.main-content {
  background:
    linear-gradient(var(--color-bg-page) 30%, transparent),
    linear-gradient(transparent, var(--color-bg-page) 70%) 0 100%,
    radial-gradient(farthest-side at 50% 0, rgba(0,0,0,0.04), transparent),
    radial-gradient(farthest-side at 50% 100%, rgba(0,0,0,0.04), transparent) 0 100%;
  background-repeat: no-repeat;
  background-size: 100% 20px, 100% 20px, 100% 6px, 100% 6px;
  background-attachment: local, local, scroll, scroll;
}
.content-wrapper {
  width: 100%;
  animation: fadeIn 200ms ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Footer */
.app-footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-4);
  background: var(--color-bg-surface);
  border-top: 1px solid var(--color-border-subtle);
  font-size: var(--text-label);
  z-index: 50;
}
.app-footer-version {
  color: var(--color-text-secondary);
}
.app-footer-links {
  display: flex;
  gap: var(--space-4);
}
.app-footer a {
  color: var(--color-text-secondary);
  text-decoration: none;
}
.app-footer a:hover {
  color: var(--color-text-link);
  text-decoration: underline;
}

/* ============================================================
   Sidebar Navigation
   ============================================================ */
.nav-item {
  display: flex; align-items: center;
  gap: var(--space-2);
  padding: 7px var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-body); font-weight: 400;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
  margin-bottom: 1px;
  text-decoration: none;
}
.nav-item:hover {
  background: var(--color-bg-surface-hover);
  text-decoration: none;
  color: var(--color-text-primary);
}
.nav-item.active {
  background: var(--color-bg-accent);
  color: var(--color-bg-accent-strong);
  font-weight: 500;
}
.nav-item.nav-item-parent {
  font-weight: 500;
  color: var(--color-text-primary);
}
.nav-item .nav-count {
  margin-left: auto;
  font-size: var(--text-label);
  font-weight: 500;
  color: var(--color-text-placeholder);
  background: var(--color-bg-page);
  padding: 0 6px;
  border-radius: var(--radius-sm);
  line-height: 1.6;
}
.nav-item.active .nav-count {
  color: var(--color-bg-accent-strong);
  background: rgba(11, 111, 204, 0.1);
}
.nav-section-label {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-text-placeholder);
  padding: var(--space-2) var(--space-3);
  margin-top: var(--space-3);
}
.nav-divider {
  height: 1px;
  background: var(--color-border-subtle);
  margin: var(--space-3) var(--space-3);
}
.nav-recent-item {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  padding: 5px var(--space-3);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: var(--radius-md);
  transition: background 120ms ease, color 120ms ease;
}
.nav-recent-item:hover {
  color: var(--color-text-link);
  background: var(--color-bg-surface-hover);
}
.nav-recent-item::before {
  content: '';
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--color-border-default);
  margin-right: var(--space-2);
  vertical-align: middle;
}

/* ============================================================
   Breadcrumb
   ============================================================ */
.breadcrumb {
  display: flex; align-items: center;
  gap: var(--space-1);
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}
.breadcrumb-link {
  color: var(--color-text-secondary);
  text-decoration: none;
  cursor: pointer;
  transition: color 100ms ease;
}
.breadcrumb-link:hover { color: var(--color-text-link); text-decoration: none; }
.breadcrumb-current { color: var(--color-text-primary); font-weight: 500; }
.breadcrumb-separator { color: var(--color-text-placeholder); user-select: none; font-size: 10px; }

/* ============================================================
   Title Block
   ============================================================ */
.title-block {
  display: flex; align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.title-block-icon {
  width: 36px; height: 36px;
  flex-shrink: 0; margin-top: 0;
  color: var(--color-bg-accent-strong);
  background: var(--color-bg-accent);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
}
.title-block-content { flex: 1; }
.title-block-name {
  font-size: var(--text-display); font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.3; margin: 0;
  letter-spacing: -0.02em;
}
.title-block-badge { flex-shrink: 0; margin-top: 4px; }
.title-block-actions {
  flex-shrink: 0;
  display: flex; align-items: center;
  gap: var(--space-2);
  margin-top: 4px;
}

/* ============================================================
   Tab Bar
   ============================================================ */
.tab-bar {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--color-bg-surface);
  border-bottom: 1px solid var(--color-border-subtle);
  border-radius: 0;
  margin-bottom: var(--space-5);
  padding: 0 var(--space-2);
  position: relative;
}
.tab {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-body); font-weight: 400;
  font-family: var(--font-sans);
  color: var(--color-text-secondary);
  border-radius: 0;
  cursor: pointer;
  border: none; background: transparent;
  border-bottom: 2px solid transparent;
  transition: color 100ms ease, border-color 100ms ease;
  white-space: nowrap;
  line-height: 1.4;
  margin-bottom: -1px;
}
.tab:hover {
  color: var(--color-text-primary);
  border-bottom-color: var(--color-border-default);
}
.tab.active {
  color: var(--color-bg-accent-strong);
  font-weight: 500;
  border-bottom-color: var(--color-bg-accent-strong);
}
.tab-bar-spacer { flex: 1; }

/* Grouping dropdown */
.grouping-dropdown { position: relative; display: flex; align-items: center; }
.grouping-btn {
  display: flex; align-items: center; gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-small); font-family: var(--font-sans);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  background: var(--color-bg-page);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 100ms ease;
}
.grouping-btn:hover { border-color: var(--color-text-secondary); }
.grouping-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 4px);
  background: var(--color-bg-surface); border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md); box-shadow: var(--shadow-md);
  min-width: 140px; z-index: 20;
  padding: var(--space-1) 0;
}
.grouping-menu.open { display: block; }
.grouping-option {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-small); cursor: pointer;
  color: var(--color-text-primary);
}
.grouping-option:hover { background: var(--color-bg-surface-hover); }
.grouping-option.active { color: var(--color-text-link); font-weight: 500; }

/* ============================================================
   Badges
   ============================================================ */
.badge {
  display: inline-flex; align-items: center;
  gap: var(--space-1);
  padding: 2px 8px;
  font-size: var(--text-label); font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 10px;
  border: none;
  white-space: nowrap;
}
.badge-certified, .badge-approved, .badge-active, .badge-public { color: var(--color-status-certified); background: var(--color-status-certified-bg); }
.badge-draft { color: var(--color-status-draft); background: var(--color-status-draft-bg); }
.badge-deprecated { color: var(--color-status-deprecated); background: var(--color-status-deprecated-bg); }
.badge-review, .badge-internal { color: var(--color-text-link); background: var(--color-bg-accent); }
.badge-confidential { color: var(--color-status-draft); background: var(--color-status-draft-bg); }
.badge-restricted { color: var(--color-error); background: var(--color-error-bg); }

.status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  display: inline-block;
}
.status-dot-certified, .status-dot-approved, .status-dot-active { background: var(--color-status-certified); }
.status-dot-draft { border: 1.5px solid var(--color-status-draft); }
.status-dot-deprecated { background: var(--color-status-deprecated); }

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  cursor: pointer;
  transition: box-shadow 180ms ease, border-color 180ms ease, transform 180ms ease;
  display: flex; align-items: flex-start;
  gap: var(--space-3);
}
.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border-color: var(--color-border-default);
  transform: translateY(-1px);
}
.card-icon { color: var(--color-text-secondary); flex-shrink: 0; margin-top: 2px; }
.card-content { flex: 1; min-width: 0; }
.card-title {
  font-size: var(--text-body); font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
}
.card-meta {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  line-height: 1.5;
}
.card-actions { flex-shrink: 0; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-3);
}

/* ============================================================
   Tables
   ============================================================ */
.data-table {
  width: 100%; border-collapse: collapse;
  font-size: var(--text-body);
  table-layout: fixed;
}
.data-table thead th {
  font-size: var(--text-label); font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--color-text-placeholder);
  padding: var(--space-2) var(--space-3);
  text-align: left;
  border-bottom: 2px solid var(--color-border-subtle);
  white-space: nowrap;
  cursor: pointer; user-select: none;
  transition: color 100ms ease;
}
.data-table thead th:hover { color: var(--color-text-secondary); }
.data-table thead th::after {
  content: ''; display: inline-block; width: 14px; height: 14px;
  vertical-align: -2px; margin-left: 4px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23BFBFBA' stroke-width='2'%3E%3Cpath d='M8 9l4-4 4 4'/%3E%3Cpath d='M16 15l-4 4-4-4'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: 0.4;
}
.data-table thead th:hover::after { opacity: 0.7; }
.data-table thead th.sort-asc::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23335E8A' stroke-width='2.5'%3E%3Cpath d='M8 14l4-4 4 4'/%3E%3C/svg%3E");
  opacity: 1;
}
.data-table thead th.sort-desc::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23335E8A' stroke-width='2.5'%3E%3Cpath d='M8 10l4 4 4-4'/%3E%3C/svg%3E");
  opacity: 1;
}
.data-table thead th.sort-asc,
.data-table thead th.sort-desc { color: var(--color-text-link); }
.data-table tbody tr {
  border-bottom: 1px solid var(--color-border-subtle);
  transition: background 80ms ease;
}
.data-table tbody tr:hover { background: rgba(11, 111, 204, 0.03); }
.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody td {
  padding: 10px var(--space-3);
  color: var(--color-text-primary);
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* First cell in clickable rows gets a subtle link color on hover */
.clickable-row:hover td:first-child { color: var(--color-text-link); }
.data-table .cell-mono {
  font-family: var(--font-mono);
  font-size: var(--text-mono);
}
.data-table a { color: var(--color-text-link); text-decoration: none; }
.data-table a:hover { text-decoration: underline; }

.clickable-row { cursor: pointer; }

/* ============================================================
   Section-specific
   ============================================================ */
.section-header {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}
.section-title {
  font-size: var(--text-display); font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
}
.section-subtitle {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  margin-top: var(--space-1);
  line-height: 1.5;
}

/* White panels for content sections (Informatica style) */
.tab-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.list-panel {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.content-section {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  transition: border-color 150ms ease;
}
.content-section:hover {
  border-color: var(--color-border-default);
}
.section-label {
  font-size: var(--text-body); font-weight: 600;
  letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
  margin-top: 0;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border-subtle);
}
.section-label:first-child { margin-top: 0; }

/* Collapsible groups */
.group-header {
  display: flex; align-items: center;
  gap: var(--space-2); cursor: pointer;
  padding: var(--space-3) var(--space-2);
  border-bottom: 1px solid var(--color-border-subtle);
  user-select: none;
  margin-top: var(--space-4);
  border-radius: var(--radius-sm);
  transition: background 80ms ease;
}
.group-header:hover { background: var(--color-bg-surface-hover); }
.group-header:first-child { margin-top: 0; }
.group-header-title {
  font-size: var(--text-heading-m); font-weight: 600;
  color: var(--color-text-primary);
  flex: 1;
}
.group-header-count {
  font-size: var(--text-small);
  color: var(--color-text-placeholder);
  font-weight: 500;
}
.group-content { padding: var(--space-2) 0; }

/* Properties table */
.props-table {
  width: 100%; border-collapse: collapse;
}
.props-table td {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-body);
  border-bottom: 1px solid var(--color-border-subtle);
  vertical-align: top;
}
.props-table td:first-child {
  font-weight: 500;
  color: var(--color-text-placeholder);
  width: 200px;
  white-space: nowrap;
  font-size: var(--text-small);
}
.props-table td:last-child { color: var(--color-text-primary); }
.props-table tr:last-child td { border-bottom: none; }

/* Names table */
.names-table {
  width: 100%; border-collapse: collapse;
}
.names-table td {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-body);
  border-bottom: 1px solid var(--color-border-subtle);
}
.names-table td:first-child {
  font-weight: 500; width: 50px;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  font-size: var(--text-label);
  letter-spacing: 0.06em;
}
.names-table tr:last-child td { border-bottom: none; }

/* Quality bars */
.quality-bar-container {
  display: flex; align-items: center; gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.quality-bar-label { width: 130px; font-size: var(--text-body); color: var(--color-text-primary); }
.quality-bar {
  flex: 1; display: flex; height: 8px;
  border-radius: 4px;
  background: var(--color-quality-bg);
  overflow: hidden; min-width: 120px;
}
.quality-bar-fill-complete { background: var(--color-quality-complete); height: 100%; border-radius: 4px; transition: width 600ms ease; }
.quality-bar-fill-null { background: var(--color-quality-null); height: 100%; }
.quality-bar-value {
  width: 50px; text-align: right;
  font-size: var(--text-body); color: var(--color-text-primary);
  font-weight: 600; font-variant-numeric: tabular-nums;
}

/* Data Quality dimension cards */
.dq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
}
.dq-card {
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  background: var(--color-bg-surface);
  transition: border-color 150ms ease;
}
.dq-card:hover { border-color: var(--color-border-default); }
.dq-card-header {
  display: flex; align-items: center; gap: var(--space-2);
  margin-bottom: var(--space-2);
}
.dq-card-title {
  font-size: var(--text-body); font-weight: 600;
  color: var(--color-text-primary);
}
.dq-card-desc {
  font-size: var(--text-small); color: var(--color-text-secondary);
  line-height: 1.5; margin-bottom: var(--space-3);
}
.dq-card-score {
  font-size: 28px; font-weight: 700;
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.dq-card-score--empty {
  color: var(--color-text-placeholder);
}
.dq-card-empty {
  font-size: var(--text-small); color: var(--color-text-placeholder);
  margin-top: var(--space-2);
}
.dq-card .quality-bar { margin-top: 0; }

/* ============================================================
   Vocabulary Diagram (ArchiMate style)
   ============================================================ */
.diagram-canvas {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.diagram-row {
  display: flex;
  gap: var(--space-4);
}
.diagram-row > .domain-group {
  flex: 1;
  min-width: 0;
}
.domain-group {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: border-color 150ms ease;
}
.domain-group:hover {
  border-color: var(--color-border-default);
}
.domain-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}
.domain-group-title {
  font-size: var(--text-heading-m);
  font-weight: 500;
  color: var(--color-text-primary);
}
.domain-group-count {
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--color-text-secondary);
  background: var(--color-bg-page);
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
}
.domain-group-concepts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.concept-box {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-text-primary);
  font-size: var(--text-body);
  font-weight: 400;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
  cursor: pointer;
  white-space: nowrap;
}
.concept-box:hover {
  border-color: var(--color-bg-accent-strong);
  box-shadow: 0 2px 8px rgba(11, 111, 204, 0.08);
  background: var(--color-bg-accent);
  text-decoration: none;
  color: var(--color-bg-accent-strong);
}

/* Flat diagram grid */
.diagram-flat-grid {
  display: flex; flex-wrap: wrap; gap: var(--space-2);
}
.concept-box--flat {
  flex-direction: column; align-items: flex-start;
  gap: var(--space-1);
  min-width: 140px;
  white-space: normal;
}
.concept-box-domain {
  font-size: 11px; color: var(--color-text-placeholder);
  font-weight: 400;
}

/* ============================================================
   Relationship Graph (SVG + CSS, Informatica style)
   ============================================================ */
.rel-viewport {
  position: relative;
  overflow: hidden;
  cursor: grab;
}
.rel-viewport:active { cursor: grabbing; }
.rel-svg {
  position: absolute;
  top: 0; left: 0;
  pointer-events: none;
}

/* Center node — double ring like Informatica */
.rel-center {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.rel-center-outer {
  border-radius: 50%;
  background: rgba(11, 111, 204, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.rel-center-inner {
  border-radius: 50%;
  background: linear-gradient(135deg, #3B9AE8 0%, #0B6FCC 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(11, 111, 204, 0.3);
}
.rel-center-label {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: var(--space-2);
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--color-text-primary);
  white-space: nowrap;
}

/* Satellite groups — double ring */
.rel-satellite {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}
.rel-satellite-outer {
  border-radius: 50%;
  background: var(--color-scrollbar-thumb);
  display: flex;
  align-items: center;
  justify-content: center;
}
.rel-satellite-inner {
  border-radius: 50%;
  background: var(--color-scrollbar-thumb-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Items inside satellite */
.rel-satellite-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  width: 100%;
  height: 100%;
}
.rel-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  cursor: default;
  transition: transform 100ms ease;
}
a.rel-item { cursor: pointer; }
a.rel-item:hover { transform: scale(1.1); text-decoration: none; }
.rel-item-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--color-text-primary);
  max-width: 80px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}
a.rel-item:hover .rel-item-label { color: var(--color-text-primary); }

/* Count badge — speech bubble, always top-left 45°, positioned by JS */
.rel-satellite-count {
  position: absolute;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--color-text-secondary);
  font-size: var(--text-label);
  font-weight: 600;
  color: var(--color-text-on-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

/* Title below satellite — absolute so it doesn't affect satellite div height */
.rel-satellite-title {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: var(--space-2);
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--color-text-primary);
  white-space: nowrap;
}

/* Tooltip */
.rel-tooltip {
  display: none;
  position: absolute;
  z-index: 10;
  background: var(--color-bg-overlay);
  color: var(--color-text-on-accent);
  font-size: var(--text-small);
  font-weight: 500;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-md);
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Right panel — legend/filter */
.rel-panel {
  position: absolute;
  top: var(--space-4); right: var(--space-4);
  width: 200px;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.rel-panel-nav {
  display: flex;
  gap: var(--space-1);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border-subtle);
}
.rel-panel-btn {
  width: 32px; height: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  background: var(--color-bg-page);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  transition: background 100ms ease, color 100ms ease;
}
.rel-panel-btn:hover {
  background: var(--color-bg-surface-hover);
  color: var(--color-text-primary);
}
.rel-panel-search {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-small);
  font-family: var(--font-sans);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  outline: none;
  margin-bottom: var(--space-3);
  background: var(--color-bg-page);
  color: var(--color-text-primary);
}
.rel-panel-search:focus {
  border-color: var(--color-border-accent);
  box-shadow: 0 0 0 3px rgba(11, 111, 204, 0.12);
}
.rel-panel-title {
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}
.rel-panel-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) 0;
  font-size: var(--text-small);
  color: var(--color-text-primary);
  cursor: pointer;
}
.rel-panel-item input[type="checkbox"] {
  accent-color: var(--color-bg-accent-strong);
}
.rel-panel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================================
   Home View
   ============================================================ */
.home-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
.home-kpi-card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  cursor: pointer;
  transition: box-shadow 150ms ease, border-color 150ms ease, transform 150ms ease;
  position: relative;
  overflow: hidden;
}
.home-kpi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--color-bg-accent-strong);
  opacity: 0;
  transition: opacity 150ms ease;
}
.home-kpi-card:hover {
  box-shadow: var(--shadow-card);
  border-color: var(--color-border-default);
  transform: translateY(-1px);
}
.home-kpi-card:hover::before { opacity: 1; }
.home-kpi-icon {
  color: var(--color-bg-accent-strong);
  margin-bottom: var(--space-3);
  opacity: 0.7;
}
.home-kpi-count {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1;
  margin-bottom: var(--space-1);
  letter-spacing: -0.02em;
}
.home-kpi-label {
  font-size: var(--text-body);
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: 2px;
}
.home-kpi-sub {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  line-height: 1.4;
}
.home-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-4);
}
.home-domain-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px var(--space-3);
  border-bottom: 1px solid var(--color-border-subtle);
  font-size: var(--text-body);
  font-weight: 450;
  color: var(--color-text-primary);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 80ms ease, color 80ms ease;
}
.home-domain-row:last-child { border-bottom: none; }
.home-domain-row:hover {
  background: rgba(11, 111, 204, 0.03);
  color: var(--color-text-link);
}
.home-domain-count {
  font-weight: 500;
  color: var(--color-text-secondary);
  font-size: var(--text-small);
}

/* Lineage tree */
.lineage-tree {
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  color: var(--color-text-primary);
  line-height: 1.8;
  white-space: pre;
  overflow-x: auto;
}
.lineage-node { color: var(--color-text-link); cursor: pointer; text-decoration: none; }
.lineage-node:hover { text-decoration: underline; }
.lineage-edge-label {
  font-family: var(--font-sans);
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  font-style: italic;
}

/* Stakeholder cards */
.stakeholder-section { margin-bottom: var(--space-4); }
.stakeholder-section:last-child { margin-bottom: 0; }
.stakeholder-role-title {
  font-size: var(--text-heading-m); font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
}
.stakeholder-role-desc {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-3);
}
.stakeholder-card {
  display: flex; align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-2);
  transition: border-color 120ms ease;
}
.stakeholder-card:hover { border-color: var(--color-border-default); }
.stakeholder-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3B9AE8 0%, #0B6FCC 100%);
  color: var(--color-text-on-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-label); font-weight: 600;
  flex-shrink: 0;
}
.stakeholder-name { font-size: var(--text-body); font-weight: 500; color: var(--color-text-primary); }
.stakeholder-org { font-size: var(--text-small); color: var(--color-text-secondary); }
.stakeholder-email { font-size: var(--text-small); color: var(--color-text-link); }

/* Empty state */
.empty-state {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  padding: var(--space-12) var(--space-8);
  color: var(--color-text-secondary);
}
.empty-state-icon {
  margin-bottom: var(--space-4);
  color: var(--color-text-placeholder);
  opacity: 0.6;
  width: 56px; height: 56px;
  padding: var(--space-3);
  background: var(--color-bg-page);
  border-radius: 50%;
}
.empty-state-title {
  font-size: var(--text-heading-m); font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}
.empty-state-description {
  font-size: var(--text-body); color: var(--color-text-secondary);
  max-width: 360px; line-height: 1.6;
}

/* Prose */
.prose { max-width: var(--prose-max-width); }
.prose p { margin-bottom: var(--space-3); }

/* Definition locale selector */
.locale-select {
  display: inline-flex; gap: var(--space-1);
  margin-bottom: var(--space-2);
}
.locale-btn {
  padding: var(--space-1) var(--space-2);
  font-size: var(--text-small); font-weight: 500;
  font-family: var(--font-sans);
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-sm);
  background: var(--color-bg-page);
  cursor: pointer;
  color: var(--color-text-secondary);
  transition: background 100ms ease, color 100ms ease;
}
.locale-btn.active {
  background: var(--color-bg-accent);
  color: var(--color-text-link);
  border-color: var(--color-border-accent);
}
.locale-btn:hover:not(.active) { background: var(--color-bg-surface-hover); }

/* Search results page */
.search-group-label {
  font-size: var(--text-label); font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--color-text-secondary);
  padding: var(--space-2) 0;
  margin-top: var(--space-6);
  border-bottom: 1px solid var(--color-border-subtle);
  margin-bottom: var(--space-2);
}
.search-group-label:first-child, .list-panel > .search-group-label:first-child { margin-top: 0; }
.search-result-item {
  display: flex; align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-3);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 80ms ease;
}
.search-result-item:hover {
  background: rgba(11, 111, 204, 0.04);
}
.search-result-item:hover .search-result-name { color: var(--color-text-link); }
.search-result-icon { color: var(--color-text-secondary); margin-top: 2px; flex-shrink: 0; }
.search-result-name { font-size: var(--text-body); font-weight: 500; color: var(--color-text-primary); }
.search-result-type { font-size: var(--text-small); color: var(--color-text-secondary); }
.search-result-desc { font-size: var(--text-small); color: var(--color-text-secondary); margin-top: 2px; }

/* Focus */
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(11, 111, 204, 0.20);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0ms !important; animation-duration: 0ms !important; }
  .loading-spinner { animation: none; border-top-color: var(--color-bg-accent-strong); }
}

/* Inline filter */
.inline-filter {
  margin-bottom: var(--space-4);
  position: relative;
}
.inline-filter input {
  width: 100%; max-width: 300px;
  height: 32px;
  padding: 0 var(--space-3) 0 32px;
  font-size: var(--text-body);
  font-family: var(--font-sans);
  background: var(--color-bg-page);
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-md);
  outline: none;
  color: var(--color-text-primary);
}
.inline-filter input:focus {
  border-color: var(--color-border-accent);
  box-shadow: 0 0 0 3px rgba(11, 111, 204, 0.12);
}
.inline-filter .search-icon {
  position: absolute; left: 8px; top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-placeholder);
  pointer-events: none;
}

/* Distribution list item */
.distribution-item {
  display: flex; align-items: flex-start;
  gap: var(--space-3); padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border-subtle);
}
.distribution-item:last-child { border-bottom: none; }
.distribution-icon { color: var(--color-text-secondary); margin-top: 2px; flex-shrink: 0; }
.distribution-name { font-size: var(--text-body); font-weight: 500; }
.distribution-url { font-size: var(--text-small); color: var(--color-text-secondary); font-family: var(--font-mono); font-size: var(--text-mono); word-break: break-all; }
.distribution-meta { font-size: var(--text-small); color: var(--color-text-secondary); }

/* concept pill */
.concept-pill {
  display: inline-flex; align-items: center;
  gap: var(--space-1);
  padding: 3px 10px;
  font-size: var(--text-small); font-weight: 500;
  background: var(--color-bg-accent);
  color: var(--color-text-link);
  border-radius: 10px;
  cursor: pointer; text-decoration: none;
  margin-right: var(--space-1);
  margin-bottom: var(--space-1);
  transition: background 100ms ease;
}
.concept-pill:hover { background: rgba(11, 111, 204, 0.15); text-decoration: none; }

/* verified check */
.verified-check { color: var(--color-status-certified); }
.unverified { color: var(--color-text-placeholder); }

/* ============================================================
   Button Components (STYLEGUIDE §9.6)
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-body);
  font-weight: 500;
  font-family: var(--font-sans);
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 120ms ease, box-shadow 120ms ease, transform 120ms ease;
  text-decoration: none;
}
.btn:active:not(:disabled) { transform: scale(0.98); }
.btn-primary {
  background: var(--color-bg-accent-strong);
  color: var(--color-text-on-accent);
}
.btn-primary:hover { background: var(--color-text-link-hover); }
.btn-primary:active { background: var(--color-text-link-active); }
.btn-secondary {
  background: var(--color-bg-page);
  color: var(--color-text-primary);
  border-color: var(--color-border-default);
}
.btn-secondary:hover { background: var(--color-bg-surface); }
.btn-secondary:active { background: var(--color-bg-surface-hover); }
.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--color-text-link);
  padding-left: 0;
  padding-right: 0;
}
.btn-ghost:hover { text-decoration: underline; }
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.btn-sm {
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-small);
}

/* ============================================================
   Loading Skeleton
   ============================================================ */
@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.skeleton-bar {
  background: linear-gradient(90deg, var(--color-bg-surface) 25%, var(--color-bg-surface-hover) 50%, var(--color-bg-surface) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.8s ease-in-out infinite;
  border-radius: var(--radius-md);
  height: 14px;
  margin-bottom: var(--space-2);
}
.skeleton-bar-lg { height: 24px; width: 40%; margin-bottom: var(--space-4); }
.skeleton-bar-md { height: 14px; width: 70%; }
.skeleton-bar-sm { height: 12px; width: 50%; }
.skeleton-nav-item {
  height: 36px;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-1);
  background: linear-gradient(90deg, var(--color-bg-surface-hover) 25%, var(--color-border-subtle) 50%, var(--color-bg-surface-hover) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}
.loading-skeleton-sidebar {
  padding: var(--space-4) var(--space-3);
}
.loading-skeleton-main {
  padding: var(--space-10) var(--content-padding);
}

/* ============================================================
   Locked Asset (Access-Restricted)
   ============================================================ */
.locked-name {
  color: var(--color-status-restricted);
}
.locked-icon {
  color: var(--color-status-restricted);
  display: inline-flex;
  align-items: center;
  margin-left: var(--space-1);
  vertical-align: middle;
}
.badge-warning {
  color: var(--color-warning);
  background: var(--color-warning-bg);
  border: 1px solid var(--color-warning);
}
.locked-content-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-12) var(--space-8);
  color: var(--color-text-secondary);
}
.locked-content-message i {
  margin-bottom: var(--space-4);
  color: var(--color-status-restricted);
}
.locked-content-message h3 {
  font-size: var(--text-heading-m);
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}
.locked-content-message p {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  max-width: 400px;
  margin-bottom: var(--space-4);
}

/* ============================================================
   Translation Gap Indicator
   ============================================================ */
.translation-gap {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-left: var(--space-2);
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--color-warning);
  background: var(--color-warning-bg);
  padding: 1px var(--space-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-warning);
}

/* ============================================================
   Improved Lineage Tree
   ============================================================ */
.lineage-tree-visual {
  padding: var(--space-4) 0;
}
.lineage-section {
  margin-bottom: var(--space-6);
}
.lineage-section h4 {
  font-size: var(--text-heading-m);
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
}
.lineage-node-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  margin-left: var(--space-4);
  border-left: 2px solid var(--color-border-default);
  position: relative;
  cursor: pointer;
  transition: background 80ms ease;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.lineage-node-item:hover {
  background: var(--color-bg-surface);
}
.lineage-node-item::before {
  content: '';
  position: absolute;
  left: -2px;
  top: 50%;
  width: 12px;
  height: 2px;
  background: var(--color-border-default);
}
.lineage-node-item:last-child {
  border-left-color: transparent;
}
.lineage-node-item:last-child::before {
  height: calc(50% + 2px);
  top: 0;
  border-left: 2px solid var(--color-border-default);
  border-bottom: 2px solid var(--color-border-default);
  width: 12px;
  background: none;
}
.lineage-node-icon {
  color: var(--color-text-secondary);
  flex-shrink: 0;
}
.lineage-node-name {
  font-weight: 500;
  color: var(--color-text-link);
  font-size: var(--text-body);
}
.lineage-node-meta {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  margin-left: var(--space-2);
}
.lineage-current-node {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg-accent);
  border: 1px solid var(--color-border-accent);
  border-radius: var(--radius-lg);
  margin: var(--space-3) 0;
  font-weight: 500;
  color: var(--color-text-link);
}
