:root {
  --bg: #0b0d10;
  --surface: #12161c;
  --text: #e6ebf2;
  --muted: #9aa7b6;
  --border: #232b35;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(1200px 600px at 20% -20%, #1b2330 0%, transparent 55%), var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
}

.app {
  width: min(1500px, 95vw);
  margin: 20px auto;
}

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

.topbar h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: 0.4px;
}

.topbar p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.topbar-right {
  display: flex;
  gap: 10px;
  align-items: center;
}

h2 {
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: 0.3px;
  color: #cfd8e3;
}

.top-tabs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #2a3342;
  background: #0f141c;
  border-radius: 10px;
  padding: 5px;
  margin-bottom: 14px;
}

.top-tab-btn {
  border: 1px solid #2a3442;
  background: #121a24;
  color: #b8c9dc;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
}

.top-tab-btn:hover {
  background: #182336;
  color: #e2eeff;
}

.top-tab-btn.active {
  border-color: #2a89ff;
  background: #1a2d47;
  color: #d9ecff;
}

.main-tab-panel {
  display: none;
}

.main-tab-panel.active {
  display: block;
}

.pipeline-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pipeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.pipeline-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.pipeline-search-box {
  min-width: 260px;
  padding: 8px 10px;
  border: 1px solid #223042;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(17, 25, 34, 0.96) 0%, rgba(13, 21, 31, 0.96) 100%);
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.pipeline-search-input {
  width: 100%;
  min-height: 30px;
  border-radius: 8px;
  border: 1px solid #2f4865;
  background: #0c1520;
  color: #e3f1ff;
  padding: 5px 9px;
  font-size: 12px;
}

.pipeline-search-input::placeholder {
  color: #7288a2;
}

.pipeline-meta {
  color: #9bb0c8;
  font-size: 12px;
}

.pipeline-parallel-box {
  min-width: 240px;
  padding: 8px 10px;
  border: 1px solid #223042;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(17, 25, 34, 0.96) 0%, rgba(13, 21, 31, 0.96) 100%);
  display: grid;
  grid-template-columns: auto 72px;
  gap: 4px 10px;
  align-items: center;
}

.pipeline-parallel-label {
  color: #dbe7f5;
  font-size: 12px;
  font-weight: 700;
}

.pipeline-parallel-input {
  width: 72px;
  min-height: 28px;
  border-radius: 8px;
  border: 1px solid #2f4865;
  background: #0c1520;
  color: #e3f1ff;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
}

.pipeline-parallel-input:disabled {
  opacity: 0.65;
}

.pipeline-parallel-meta {
  grid-column: 1 / -1;
  color: #8ea8c4;
  font-size: 11px;
  line-height: 1.25;
}

.pipeline-trays-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(260px, 1fr));
  gap: 10px;
}

.pipeline-tray-col {
  border: 1px solid #223042;
  background: linear-gradient(180deg, #111922 0%, #0f151d 100%);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  min-height: 540px;
  max-height: 70vh;
}

.pipeline-tray-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 10px 8px;
  border-bottom: 1px solid #223042;
}

.pipeline-tray-head h3 {
  margin: 0;
  font-size: 13px;
  color: #dbe7f5;
}

.pipeline-tray-head-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.pipeline-tray-head-meta {
  color: #88a0b9;
  font-size: 11px;
  line-height: 1.2;
}

.pipeline-tray-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn.btn-xs {
  min-height: 22px;
  padding: 3px 8px;
  font-size: 11px;
}

.btn.btn-active {
  border-color: #25734c;
  background: rgba(20, 95, 58, 0.35);
  color: #d7ffe9;
}

.pipeline-tray-count {
  border: 1px solid #2e4563;
  background: #14263b;
  color: #d5ecff;
  border-radius: 999px;
  min-width: 28px;
  padding: 2px 8px;
  font-size: 11px;
  text-align: center;
  font-weight: 700;
}

.pipeline-tray-list {
  padding: 8px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pipeline-tray-empty {
  border: 1px dashed #2c3b4f;
  border-radius: 8px;
  color: #88a0bb;
  font-size: 12px;
  padding: 10px;
}

.pipeline-v2-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pipeline-v2-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.pipeline-v2-summary {
  color: #90abc7;
  font-size: 12px;
}

.pipeline-v2-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 10px;
}

.pipeline-v2-tray {
  border: 1px solid #223042;
  background: linear-gradient(180deg, #111922 0%, #0f151d 100%);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  min-height: 520px;
  max-height: 72vh;
}

.pipeline-v2-tray-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #223042;
  padding: 10px;
}

.pipeline-v2-tray-head h3 {
  margin: 0;
  font-size: 14px;
  color: #dbe7f5;
}

.pipeline-v2-head-block {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pipeline-v2-limit-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #98afc7;
  font-size: 11px;
}

.pipeline-v2-limit-label input {
  width: 74px;
  min-height: 26px;
  border-radius: 8px;
  border: 1px solid #2f4865;
  background: #0c1520;
  color: #e3f1ff;
  padding: 4px 8px;
}

.pipeline-v2-count {
  border: 1px solid #2e4563;
  background: #14263b;
  color: #d5ecff;
  border-radius: 999px;
  min-width: 28px;
  padding: 2px 8px;
  font-size: 11px;
  text-align: center;
  font-weight: 700;
}

.pipeline-v2-list {
  padding: 10px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pipeline-v2-item {
  border: 1px solid #2a3e57;
  border-radius: 10px;
  padding: 8px;
  background: #0f1926;
  display: grid;
  gap: 4px;
}

.pipeline-v2-item-title {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #deebfb;
}

.pipeline-v2-meta {
  color: #90a8c1;
  font-size: 11px;
}

.pipeline-v2-badge {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  border: 1px solid #38506c;
  background: #15273d;
  color: #cde7ff;
}

.pipeline-v2-badge.phase-xlsx2parquet {
  border-color: #486f9b;
  color: #beddff;
}

.pipeline-v2-badge.phase-key_discovery {
  border-color: #7f6e31;
  color: #f3df9b;
}

.pipeline-v2-badge.phase-parquet2raw {
  border-color: #6c4e8d;
  color: #ddc2ff;
}

.pipeline-v2-badge.phase-integrated {
  border-color: #2f7d4f;
  color: #bdf6d3;
}

.pipeline-v2-progress-wrap {
  height: 8px;
  border-radius: 999px;
  background: #0c131d;
  border: 1px solid #27364a;
  overflow: hidden;
}

.pipeline-v2-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #3277d7, #3db18e);
}

.pipeline-v2-search-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 10px 10px 0;
}

.pipeline-v2-search-controls input,
.pipeline-v2-search-controls select {
  width: 100%;
  min-height: 30px;
  border-radius: 8px;
  border: 1px solid #2f4865;
  background: #0c1520;
  color: #e3f1ff;
  padding: 5px 9px;
  font-size: 12px;
}

.pipeline-v2-empty {
  border: 1px dashed #2c3b4f;
  border-radius: 8px;
  color: #88a0bb;
  font-size: 12px;
  padding: 10px;
}

.pipeline-tray-item {
  border: 1px solid #2a3a4e;
  background: #0d1725;
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.pipeline-tray-item.in-progress {
  border-color: rgba(34, 197, 94, 0.85);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.25) inset;
  animation: pipelineBlink 1s ease-in-out infinite;
}

@keyframes pipelineBlink {
  0% {
    background: #0d1725;
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.25) inset;
  }
  50% {
    background: rgba(10, 60, 38, 0.75);
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.65) inset, 0 0 18px rgba(34, 197, 94, 0.28);
  }
  100% {
    background: #0d1725;
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.25) inset;
  }
}

.pipeline-tray-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.pipeline-tray-item-head-main {
  min-width: 0;
  flex: 1 1 auto;
}

.pipeline-tray-title-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.pipeline-tray-item-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pipeline-relaunch-btn {
  color: #ffe0aa;
}

.pipeline-relaunch-btn:hover:not(:disabled) {
  color: #fff3d7;
}

.pipeline-tray-item-title {
  color: #e2efff;
  font-size: 12px;
  line-height: 1.25;
  word-break: break-all;
}

.pipeline-tray-badge {
  border: 1px solid #2f5d85;
  background: #163154;
  color: #c9e8ff;
  border-radius: 999px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.pipeline-tray-badge.keycols {
  border-color: #2d6b4d;
  background: #163626;
  color: #d8f9e5;
}

.pipeline-tray-item-meta {
  color: #9db4cb;
  font-size: 11px;
  line-height: 1.25;
  word-break: break-word;
}

.pipeline-tray-item-path {
  color: #7f93ab;
  font-size: 10px;
  line-height: 1.2;
  word-break: break-all;
  border-top: 1px dashed #2a3a4e;
  padding-top: 4px;
}

.pipeline-tray-item-path-list {
  white-space: pre-wrap;
}

.pipeline-accordion-toggle {
  border: 1px solid #2f4d6d;
  background: #132033;
  color: #cfe4ff;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 8px;
  cursor: pointer;
}

.pipeline-accordion-toggle:hover {
  border-color: #4b78a8;
}

.pipeline-tray-accordion {
  border-top: 1px dashed #2a3a4e;
  padding-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pipeline-tray-source-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid #233448;
  background: rgba(19, 30, 44, 0.9);
  border-radius: 7px;
  padding: 7px 8px;
}

.pipeline-tray-source-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pipeline-tray-source-label {
  color: #8fb4d9;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pipeline-tray-source-name {
  color: #e4effa;
  font-size: 11px;
  line-height: 1.25;
  word-break: break-all;
}

.pipeline-tray-source-detail,
.pipeline-tray-source-empty {
  color: #7f93ab;
  font-size: 10px;
  line-height: 1.25;
}

.pipeline-source-grid-btn {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid #35577c;
  background: #132844;
  color: #dceeff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
}

.pipeline-source-grid-btn:hover {
  border-color: #5b8dc5;
  background: #173357;
}

.pipeline-source-grid-btn.compact {
  width: 24px;
  min-width: 24px;
  height: 24px;
  padding: 0;
}

.pipeline-source-grid-btn svg {
  width: 14px;
  height: 14px;
}

.pipeline-trace-wrap {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
}

.pipeline-trace-badge {
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 10px;
  font-weight: 700;
  border: 1px solid transparent;
}

.pipeline-trace-badge.ok {
  border-color: #247a55;
  background: #123424;
  color: #9df1ca;
}

.pipeline-trace-badge.miss {
  border-color: #7b4a30;
  background: #332014;
  color: #f0bf9d;
}

@media (max-width: 1400px) {
  .pipeline-trays-grid {
    grid-template-columns: repeat(2, minmax(250px, 1fr));
  }
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 12px;
}

.service-card {
  background: linear-gradient(180deg, var(--surface) 0%, #10141a 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-card-summary {
  grid-column: span 2;
  padding: 10px;
  gap: 6px;
}

.service-card-summary .card-head h3 {
  font-size: 15px;
}

.service-card-summary .meta-row {
  gap: 6px;
}

.service-card-summary .svc-memory {
  font-size: 11px;
}

.svc-suite-usage {
  border: 1px solid rgba(72, 104, 148, 0.35);
  border-radius: 10px;
  background: rgba(10, 16, 24, 0.7);
  padding: 6px 8px;
}

.svc-suite-usage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.svc-suite-usage-table-wrap {
  max-height: 172px;
  overflow: auto;
}

.service-card-summary .svc-suite-usage {
  padding: 4px 6px;
}

.service-card-summary .svc-suite-usage-table-wrap {
  max-height: none;
  overflow: visible;
}

.svc-suite-usage-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 11px;
  line-height: 1.15;
}

.svc-suite-usage-table th,
.svc-suite-usage-table td {
  padding: 2px 4px;
  border-bottom: 1px solid rgba(72, 104, 148, 0.18);
}

.svc-suite-usage-table th {
  color: #9eb8d8;
  font-weight: 700;
  text-align: left;
  position: sticky;
  top: 0;
  background: rgba(12, 19, 29, 0.96);
  z-index: 1;
}

.svc-suite-usage-table th:nth-child(1),
.svc-suite-usage-table td:nth-child(1) {
  width: 58%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.svc-suite-usage-table th:nth-child(2),
.svc-suite-usage-table th:nth-child(3),
.svc-suite-usage-table td:nth-child(2),
.svc-suite-usage-table td:nth-child(3) {
  width: 21%;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.service-card-summary .svc-suite-usage-table {
  font-size: 10px;
  line-height: 1.05;
}

.service-card-summary .svc-suite-usage-table th,
.service-card-summary .svc-suite-usage-table td {
  padding: 1px 3px;
}

.svc-suite-usage-table tfoot td {
  padding-top: 4px;
  padding-bottom: 4px;
  border-bottom: 0;
  border-top: 1px solid rgba(72, 104, 148, 0.28);
  font-weight: 700;
}

.svc-suite-usage-table tfoot tr.subtotal td {
  color: #b8cbe3;
}

.svc-suite-usage-table tfoot tr.total td {
  color: #f2f7ff;
}

.service-card-summary .svc-suite-usage-table tfoot td {
  padding-top: 2px;
  padding-bottom: 2px;
}

@media (max-width: 1100px) {
  .service-card-summary {
    grid-column: span 1;
  }
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.card-head-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.svc-perf-btn {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid #2e3a4d;
  background: #101722;
  color: #b9cce6;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.svc-perf-btn svg {
  width: 14px;
  height: 14px;
  display: block;
}

.svc-perf-btn:hover {
  border-color: #3f6ea2;
  color: #dcecff;
  background: #16253a;
}

.svc-perf-btn.hidden {
  visibility: hidden;
  pointer-events: none;
}

.svc-scan-btn {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid #2e3a4d;
  background: #101722;
  color: #8eb8e8;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.svc-scan-btn svg {
  width: 14px;
  height: 14px;
  display: block;
}

.svc-scan-btn:hover {
  border-color: #3f6ea2;
  color: #dcecff;
  background: #16253a;
}

.svc-scan-btn.active {
  border-color: #248f61;
  color: #9bf5cc;
  background: #123025;
}

.svc-scan-btn.off {
  border-color: #706634;
  color: #e9da8a;
  background: #27220f;
}

.svc-scan-btn.unavailable {
  opacity: 0.45;
  cursor: not-allowed;
}

.svc-scan-btn.busy {
  cursor: wait;
}

.svc-scan-btn.hidden {
  visibility: hidden;
  pointer-events: none;
}

.svc-scan-spinner {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-top-color: #dcecff;
  border-radius: 999px;
  display: inline-block;
  animation: svc-scan-spin 0.9s linear infinite;
}

@keyframes svc-scan-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.svc-name {
  margin: 0;
  font-size: 15px;
}

.svc-config-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.svc-config-btn {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid #2e3a4d;
  background: #101722;
  color: #b9cce6;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.svc-config-btn svg {
  width: 14px;
  height: 14px;
  display: block;
}

.svc-config-btn:hover {
  border-color: #3f6ea2;
  color: #dcecff;
  background: #16253a;
}

.svc-config-btn.active {
  border-color: #2a89ff;
  color: #d9ecff;
  background: #1a2d47;
}

.svc-config-popover {
  position: fixed;
  top: 84px;
  left: 50%;
  transform: translateX(-50%);
  width: min(760px, calc(100vw - 24px));
  max-height: calc(100vh - 112px);
  overflow: auto;
  z-index: 420;
  border: 1px solid #2a3a50;
  border-radius: 10px;
  background: #0d131c;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.5);
  padding: 10px;
}

.svc-config-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.svc-config-title {
  font-size: 12px;
  color: #a8c8ee;
  text-transform: uppercase;
  letter-spacing: 0.45px;
  margin-bottom: 0;
}

.svc-config-close {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid #3a4f68;
  background: #101a27;
  color: #d8eaff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.svc-config-close:hover {
  background: #1c2d45;
  border-color: #5479a4;
}

.svc-config-meta {
  font-size: 11px;
  color: #8ea4c0;
  margin-bottom: 8px;
  font-family: "IBM Plex Mono", "Consolas", monospace;
}

.svc-config-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 12px;
  padding: 8px 10px;
  border: 1px solid #243041;
  border-radius: 10px;
  background: rgba(18, 26, 38, 0.78);
}

.svc-config-toolbar-hint {
  color: #9fb4cc;
  font-size: 11px;
  line-height: 1.35;
}

.svc-config-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.svc-config-empty {
  border: 1px dashed #33465f;
  border-radius: 8px;
  padding: 9px;
  color: #9ab0ca;
  font-size: 12px;
}

.reports-matching-section {
  border: 1px solid #2a3a50;
  border-radius: 8px;
  background: #0b121a;
  padding: 8px;
  margin-bottom: 10px;
}

.reports-matching-head {
  font-size: 12px;
  color: #b9d8ff;
  text-transform: uppercase;
  letter-spacing: 0.35px;
}

.reports-matching-meta {
  margin-top: 3px;
  margin-bottom: 8px;
  font-size: 11px;
  color: #91a6c2;
}

.reports-matching-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.reports-matching-form .scheduler-config-check {
  grid-column: 1 / -1;
}

.reports-matching-table-wrap {
  max-height: 260px;
  overflow: auto;
  border: 1px solid #2c3f57;
  border-radius: 8px;
}

.reports-matching-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.reports-matching-table th,
.reports-matching-table td {
  border-bottom: 1px solid #24364e;
  padding: 5px 6px;
  text-align: left;
  vertical-align: middle;
}

.reports-matching-table th {
  position: sticky;
  top: 0;
  background: #121d2b;
  color: #b8cbe4;
  z-index: 1;
}

.reports-matching-table td select,
.reports-matching-table td input[type="text"] {
  width: 100%;
  border-radius: 6px;
  border: 1px solid #2f425d;
  background: #0f1722;
  color: #e0ecff;
  font-size: 11px;
  padding: 4px 6px;
  box-sizing: border-box;
}

.reports-matching-center {
  text-align: center !important;
}

.reports-matching-del {
  min-width: 24px;
  padding: 2px 6px;
}

.reports-matching-empty {
  color: #8ea4c0;
  text-align: center !important;
  font-style: italic;
}

.reports-matching-estimate {
  border: 1px solid #293a52;
  border-radius: 8px;
  background: #0d1723;
  margin-top: 9px;
  padding: 7px;
}

.reports-matching-estimate-head {
  font-size: 11px;
  color: #a8c8ee;
  text-transform: uppercase;
  letter-spacing: 0.35px;
  margin-bottom: 6px;
}

.reports-matching-estimate-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.reports-matching-estimate-controls select {
  flex: 1 1 auto;
  border-radius: 6px;
  border: 1px solid #2f425d;
  background: #0f1722;
  color: #e0ecff;
  font-size: 11px;
  padding: 5px 7px;
  box-sizing: border-box;
}

.reports-matching-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
}

.reports-matching-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #3a4e68;
  background: #162131;
  color: #bfd3ee;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
}

.reports-matching-badge.ok {
  border-color: #1f6f4f;
  background: #143627;
  color: #96f0c8;
}

.reports-matching-badge.warn {
  border-color: #8b6f25;
  background: #413316;
  color: #f7dd93;
}

.reports-matching-badge.fail {
  border-color: #7b2d2d;
  background: #3a1d22;
  color: #ffb7bd;
}

.reports-matching-badge.off {
  border-color: #3d506a;
  background: #1b2838;
  color: #b7c9df;
}

.reports-matching-kpi {
  color: #c7d9ee;
  font-size: 11px;
}

.reports-matching-warnings {
  margin: 7px 0 0;
  padding-left: 18px;
  color: #f0c7cf;
  font-size: 11px;
  max-height: 120px;
  overflow: auto;
}

.meta-row {
  color: var(--muted);
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.svc-memory {
  color: #c8d6f3;
}

.mono {
  font-family: "IBM Plex Mono", "Consolas", monospace;
}

.badge {
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #202734;
  color: var(--text);
  padding: 3px 10px;
  font-size: 12px;
}

.badge.running {
  border-color: #205c49;
  background: #17362c;
  color: #88f2cd;
}

.badge.stopped,
.badge.exited,
.badge.not_found,
.badge.disconnected {
  border-color: #5f2b2b;
  background: #3a1f22;
  color: #ffb5b5;
}

.badge.restarting,
.badge.created {
  border-color: #5e4a1a;
  background: #3b3119;
  color: #f2d58e;
}

.actions-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.block-title {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.http-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.http-tab-btn {
  border: 1px solid #2b3545;
  background: #0f151d;
  color: #a9b8ca;
  border-radius: 8px;
  padding: 4px 9px;
  font-size: 11px;
  line-height: 1.2;
  cursor: pointer;
}

.http-tab-btn:hover {
  background: #1a2330;
  color: var(--text);
}

.http-tab-btn.active {
  border-color: #2a89ff;
  background: #1a2d47;
  color: #d9ecff;
}

.btn {
  border: 1px solid #2c3542;
  background: #1a2330;
  color: var(--text);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}

.btn:hover {
  background: #243245;
  transform: translateY(-1px);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.btn.ghost {
  background: transparent;
}

.btn.with-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn.with-icon svg {
  width: 14px;
  height: 14px;
}

.progress-wrap {
  margin-top: 4px;
}

.progress-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #0f131a;
  border: 1px solid #202a38;
  overflow: hidden;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #2a89ff 0%, #4de3ab 100%);
  transition: width 0.18s ease;
}

.progress-text {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  min-height: 16px;
}

.prefix-section {
  margin-top: 16px;
  background: linear-gradient(180deg, var(--surface) 0%, #10141a 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
}

.prefix-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.prefix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 10px;
}

.prefix-card {
  border: 1px solid #273141;
  border-radius: 10px;
  background: #0f141c;
  padding: 10px;
}

.prefix-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.prefix-name {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.2px;
}

.prefix-summary {
  font-size: 11px;
  color: #c8d7ea;
  border: 1px solid #31445e;
  background: #182231;
  border-radius: 999px;
  padding: 2px 8px;
}

.prefix-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-family: "IBM Plex Mono", "Consolas", monospace;
}

.prefix-group {
  margin-top: 9px;
}

.prefix-group-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.prefix-group-title.active {
  color: #90e6c9;
}

.prefix-group-title.inactive {
  color: #f1c6c6;
}

.prefix-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.prefix-chip-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.prefix-chip-tooltip-wrap {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
}

.prefix-chip-head {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.prefix-chip {
  border: 1px solid #2c3542;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
  color: #d9e6f7;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.prefix-chip.active {
  border-color: #2f8566;
  background: #163427;
  color: #9df2d3;
}

.prefix-chip.active.pending-processing {
  border-color: #d6a23a;
  background: linear-gradient(180deg, #2d2814 0%, #1d2418 100%);
  color: #f6dd97;
  box-shadow: inset 0 0 0 1px rgba(214, 162, 58, 0.18);
}

.prefix-chip.inactive {
  border-color: #6a3c42;
  background: #2b1b1d;
  color: #f2c2c8;
}

.prefix-chip:hover {
  filter: brightness(1.1);
}

.prefix-chip:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.prefix-chip-label {
  line-height: 1;
}

.prefix-chip-pending-badge {
  min-width: 16px;
  height: 16px;
  padding: 0 5px;
  border-radius: 999px;
  border: 1px solid rgba(214, 162, 58, 0.55);
  background: rgba(214, 162, 58, 0.14);
  color: #ffd877;
  font-size: 10px;
  line-height: 14px;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.prefix-chip-alert {
  font-size: 12px;
  line-height: 1;
  color: #f5c252;
  text-shadow: 0 0 6px rgba(245, 194, 82, 0.35);
}

.prefix-chip-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 50;
  min-width: 250px;
  max-width: min(420px, 80vw);
  white-space: pre-line;
  border: 1px solid #2a3648;
  border-radius: 10px;
  background: #0b1119;
  color: #d3e4f7;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.45);
  padding: 9px 10px;
  font-size: 12px;
  line-height: 1.4;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-2px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
  pointer-events: none;
}

.prefix-chip-tooltip-wrap:hover .prefix-chip-tooltip,
.prefix-chip-tooltip-wrap:focus-within .prefix-chip-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.prefix-chip-side-action {
  border: 1px solid #2c3542;
  background: #16202c;
  color: #9fc0e0;
  border-radius: 999px;
  font-size: 10px;
  padding: 3px 8px;
  cursor: pointer;
}

.prefix-chip-side-action:hover {
  filter: brightness(1.1);
}

.prefix-chip-side-action:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.prefix-chip-mode.accumulative {
  border-color: #2f8566;
  background: #163427;
  color: #9df2d3;
}

.prefix-chip-mode.snapshot {
  border-color: #7b5d2a;
  background: #2b2415;
  color: #f0d28a;
}

.prefix-chip-progress {
  font-size: 10px;
  line-height: 1.25;
  color: #8fc5ff;
  padding-left: 4px;
  white-space: nowrap;
}

.prefix-empty,
.prefix-empty-state {
  color: var(--muted);
  font-size: 12px;
}

.prefix-regex-section {
  margin-top: 10px;
  border-top: 1px dashed #2a3545;
  padding-top: 8px;
}

.prefix-regex-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #88bdf5;
  margin-bottom: 6px;
}

.prefix-regex-form {
  display: grid;
  grid-template-columns: 100px 150px minmax(180px, 1fr) 56px 72px 70px auto;
  gap: 6px;
  align-items: center;
}

.prefix-regex-form select,
.prefix-regex-form input[type="text"] {
  width: 100%;
  min-width: 0;
  border: 1px solid #2a3444;
  border-radius: 7px;
  background: #0f151f;
  color: #d5e2f5;
  padding: 5px 7px;
  font-size: 11px;
}

.prefix-regex-enabled {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #b8c8dd;
  font-size: 11px;
}

.prefix-regex-save {
  padding: 5px 8px;
  font-size: 11px;
  white-space: nowrap;
}

.prefix-regex-list {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.prefix-regex-item {
  border: 1px solid #273141;
  border-radius: 8px;
  background: #0b1119;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.prefix-regex-info {
  flex: 1 1 auto;
  min-width: 0;
}

.prefix-regex-line {
  font-size: 11px;
  color: #d5e6fb;
  font-family: "IBM Plex Mono", "Consolas", monospace;
  word-break: break-all;
}

.prefix-regex-line.sub {
  color: #98aec9;
}

.prefix-regex-del {
  padding: 4px 8px;
  font-size: 11px;
}

.consol-map-dialog {
  width: min(1520px, 98vw);
}

.consol-map-wrap {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.consol-map-col {
  border: 1px solid #2b4059;
  border-radius: 8px;
  background: #0d1623;
  min-height: 420px;
  display: flex;
  flex-direction: column;
}

.consol-map-col-title {
  font-size: 12px;
  letter-spacing: 0.2px;
  color: #cfe2fb;
  font-weight: 600;
}

.consol-map-col-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border-bottom: 1px solid #23364b;
}

.consol-map-col-head .consol-map-col-title {
  margin-right: auto;
}

.consol-map-alias-input {
  min-width: 120px;
  max-width: 220px;
  border: 1px solid #334e6c;
  border-radius: 7px;
  background: #0c1828;
  color: #d7e8ff;
  padding: 6px 8px;
  font-size: 11px;
}

.consol-map-col-search {
  padding: 6px 8px 0;
}

.consol-map-search {
  width: 100%;
  border: 1px solid #334e6c;
  border-radius: 7px;
  background: #0c1828;
  color: #d7e8ff;
  padding: 6px 8px;
  font-size: 11px;
}

.consol-map-list {
  flex: 1 1 auto;
  overflow: auto;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.consol-map-item {
  border: 1px solid #29425f;
  background: #0b1220;
  color: #d8e8ff;
  border-radius: 6px;
  font-size: 11px;
  text-align: left;
  padding: 6px 7px;
  cursor: pointer;
  line-height: 1.3;
}

.consol-map-item:focus-visible {
  outline: 1px solid #4e94d6;
  outline-offset: 1px;
}

.consol-map-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.consol-map-item-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.consol-map-item-sub {
  color: #95add0;
  font-size: 10px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.consol-map-prefix-toggle {
  border: 1px solid #35516f;
  background: #102032;
  color: #cfe2fb;
  border-radius: 999px;
  width: 22px;
  height: 22px;
  min-width: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.consol-map-prefix-toggle svg {
  width: 12px;
  height: 12px;
  display: block;
  fill: currentColor;
}

.consol-map-prefix-toggle.on {
  border-color: #2d8f5d;
  background: #103528;
  color: #7ff0bb;
}

.consol-map-prefix-toggle.off {
  border-color: #6f4d4d;
  background: #2a1717;
  color: #ffb0b0;
}

.consol-map-prefix-toggle:hover:not(:disabled) {
  border-color: #5f89b8;
  background: #18314c;
}

.consol-map-prefix-toggle:disabled {
  opacity: 0.6;
  cursor: wait;
}

.consol-map-prefix-menu-btn {
  border: 1px solid #35516f;
  background: #102032;
  color: #cfe2fb;
  border-radius: 8px;
  width: 22px;
  height: 22px;
  min-width: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.consol-map-prefix-menu-btn:hover:not(:disabled) {
  border-color: #5f89b8;
  background: #18314c;
}

.consol-map-prefix-menu-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.consol-map-approve-btn {
  border: 1px solid #3f7140;
  background: #123018;
  color: #7ef17a;
  border-radius: 999px;
  width: 18px;
  height: 18px;
  min-width: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
}

.consol-map-approve-btn:hover {
  border-color: #5aa65c;
  background: #1a4722;
}

.consol-map-key-badge {
  border: 1px solid #667f23;
  background: #223510;
  color: #d7f0a8;
  border-radius: 999px;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.consol-map-nullable-key-badge {
  border: 1px solid #7f5f23;
  background: #3a2a10;
  color: #ffd79b;
  border-radius: 999px;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
}

.consol-map-zero-null-badge {
  border: 1px solid #23667f;
  background: #0f2f3a;
  color: #9ee9ff;
  border-radius: 999px;
  min-width: 22px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  line-height: 1;
}

.consol-map-key-badge svg {
  width: 12px;
  height: 12px;
  display: block;
}

.consol-map-link-badge {
  border: 1px solid #2c5c7c;
  background: #102d44;
  color: #9dd8ff;
  border-radius: 999px;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.consol-map-excluded-badge {
  border: 1px solid #7b3c3c;
  background: #3a1414;
  color: #ffb0b0;
  border-radius: 999px;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
}

.consol-map-implicit-badge {
  border: 1px solid #4a5970;
  background: #1d2a3a;
  color: #b8c9de;
  border-radius: 999px;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
}

.consol-map-link-badge svg {
  width: 12px;
  height: 12px;
  display: block;
}

.consol-map-item:hover {
  border-color: #4673a3;
  background: #112136;
}

.consol-map-item.active {
  border-color: #4e94d6;
  background: #173459;
  color: #eef6ff;
}

.consol-map-empty {
  color: #8ea7c5;
  font-size: 11px;
  padding: 8px 6px;
}

.consol-map-table-item {
  border: 1px solid #2e435d;
  border-radius: 6px;
  padding: 6px 7px;
  background: #0a1320;
  color: #c6d9f5;
  font-size: 11px;
  font-family: "IBM Plex Mono", "Consolas", monospace;
}

.consol-map-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border-top: 1px solid #23364b;
}

.consol-map-select {
  min-width: 90px;
  border: 1px solid #334e6c;
  border-radius: 7px;
  background: #0c1828;
  color: #d7e8ff;
  padding: 5px 6px;
  font-size: 11px;
}

.consol-map-footer {
  margin-top: 10px;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  flex-direction: column;
  gap: 10px;
}

.consol-map-note {
  color: #9cb4d3;
  font-size: 11px;
}

.consol-map-spec-box {
  border: 1px solid #2b4059;
  border-radius: 8px;
  background: #0d1623;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.consol-map-spec-editor {
  width: 100%;
  min-height: 130px;
  resize: vertical;
  border: 1px solid #334e6c;
  border-radius: 7px;
  background: #0c1828;
  color: #d7e8ff;
  padding: 8px;
  font-size: 12px;
  font-family: "IBM Plex Mono", "Consolas", monospace;
}

.consol-map-context-menu {
  position: fixed;
  z-index: 1200;
  border: 1px solid #304761;
  border-radius: 8px;
  background: #0b1523;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  padding: 6px;
}

.consol-map-context-item {
  border: 1px solid #2f4764;
  border-radius: 6px;
  background: #0f1f33;
  color: #d7e8ff;
  font-size: 12px;
  padding: 6px 10px;
  cursor: pointer;
}

.consol-map-context-item:hover {
  border-color: #4f7aa9;
  background: #173353;
}

.consol-map-context-item:disabled {
  cursor: default;
  opacity: 0.55;
}

.consol-map-context-sep {
  height: 1px;
  margin: 4px 0;
  background: rgba(120, 155, 195, 0.4);
}

.consol-pending-dialog {
  width: min(940px, 94vw);
}

.consol-pending-note {
  font-size: 12px;
  color: #c8dbf7;
  margin-bottom: 10px;
}

.consol-pending-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 44vh;
  overflow: auto;
  padding: 2px 0;
}

.consol-pending-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #38597b;
  background: #11253a;
  color: #d9ecff;
  font-size: 12px;
  line-height: 1.2;
  font-family: "IBM Plex Mono", "Consolas", monospace;
}

.consol-pending-empty {
  color: #8ea7c5;
  font-size: 12px;
}

.browser-section {
  margin-top: 16px;
  background: linear-gradient(180deg, var(--surface) 0%, #10141a 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.panel-controls {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  row-gap: 6px;
  width: 100%;
  max-width: 100%;
  justify-content: flex-end;
  flex: 1 1 520px;
}

.column-kind-toggles {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.column-kind-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #b7cbe3;
  font-size: 12px;
  white-space: nowrap;
  border: 1px solid #2d3a4d;
  border-radius: 8px;
  padding: 5px 8px;
  background: #101722;
}

.column-kind-toggle input {
  accent-color: #2a89ff;
}

.domain-toggles {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 4px;
  flex: 0 0 auto;
}

.domain-btn {
  border: 1px solid #31445f;
  background: #121a25;
  color: #9db8da;
  border-radius: 7px;
  padding: 6px 10px;
  font-size: 11px;
  font-family: "IBM Plex Mono", "Consolas", monospace;
  cursor: pointer;
  min-width: 52px;
}

.domain-btn.active {
  border-color: #2a89ff;
  background: #1a2d47;
  color: #d9ecff;
}

.domain-btn:not(.active) {
  border-color: #324055;
  background: #0f151d;
  color: #72839a;
}

.panel-controls input {
  min-width: 220px;
  max-width: 380px;
  width: 100%;
  flex: 1 1 240px;
  border: 1px solid #2c3542;
  background: #0f151d;
  color: #dbe7f8;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 12px;
}

.prefix-tabs {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 2px;
  overflow: visible;
  padding: 0 1px 1px;
  margin: 0 0 10px;
  border-bottom: 1px solid #2a3648;
}

.prefix-tab-btn {
  border: 1px solid #2d3a4e;
  border-bottom: none;
  background: #101722;
  color: #b5c7dd;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  padding: 7px 11px 6px;
  font-size: 11px;
  font-family: "IBM Plex Mono", "Consolas", monospace;
  cursor: pointer;
  white-space: nowrap;
  min-width: 84px;
  text-align: center;
}

.prefix-tab-btn:hover {
  background: #172131;
  color: #e2eeff;
}

.prefix-tab-btn.active {
  border-color: #2a89ff;
  background: #1a2d47;
  color: #dff0ff;
  position: relative;
  top: 1px;
}

.prefix-tab-btn .count {
  color: #b6cbe5;
  margin-left: 6px;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid #2b3d55;
  background: #0e1825;
  font-variant-numeric: tabular-nums;
}

.activity-led {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  background: #5de6b8;
  box-shadow: 0 0 0 1px rgba(84, 224, 176, 0.4), 0 0 8px rgba(78, 220, 170, 0.35);
  flex: 0 0 auto;
}

.prefix-tab-btn .activity-led {
  margin-left: 6px;
  margin-right: 2px;
}

.struct-file-main .activity-led {
  margin-right: 2px;
}

.struct-proc-state {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  margin-right: 2px;
}

.struct-proc-state.success {
  border: 1px solid rgba(58, 139, 102, 0.75);
  background: #19382b;
  color: #bff4d8;
}

.struct-proc-state.error {
  border: 1px solid rgba(144, 70, 82, 0.82);
  background: #3b1a21;
  color: #ffd2da;
}

.prefix-tab-btn .struct-proc-state {
  width: 11px;
  height: 11px;
  font-size: 9px;
  margin-left: 6px;
  margin-right: 2px;
}

.activity-led.blink {
  animation: activityLedBlink 5s ease-out 1;
}

.struct-proc-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin-right: 2px;
  border: 1px solid transparent;
  background: rgba(19, 35, 58, 0.8);
}

.struct-proc-icon svg {
  width: 10px;
  height: 10px;
}

.struct-proc-icon.file {
  color: #9ad5ff;
  border-color: rgba(88, 137, 184, 0.72);
  box-shadow: 0 0 8px rgba(52, 131, 196, 0.24);
}

.struct-proc-icon.key {
  color: #ffe3a6;
  border-color: rgba(162, 129, 70, 0.74);
  box-shadow: 0 0 8px rgba(190, 132, 44, 0.24);
}

.struct-proc-icon.small {
  width: 11px;
  height: 11px;
  margin-left: 6px;
  margin-right: 2px;
}

.struct-proc-icon.small svg {
  width: 8px;
  height: 8px;
}

.struct-proc-icon.blink {
  animation: structProcIconBlink 5s ease-out 1;
}

@keyframes structProcIconBlink {
  0% {
    transform: scale(0.92);
    filter: brightness(1);
    box-shadow: 0 0 0 0 rgba(152, 220, 255, 0.25), 0 0 6px rgba(152, 220, 255, 0.2);
  }
  8% {
    transform: scale(1.25);
    filter: brightness(1.55);
    box-shadow: 0 0 0 4px rgba(152, 220, 255, 0.46), 0 0 18px rgba(152, 220, 255, 0.78);
  }
  16% {
    transform: scale(1);
    filter: brightness(1);
    box-shadow: 0 0 0 0 rgba(152, 220, 255, 0.18), 0 0 8px rgba(152, 220, 255, 0.3);
  }
  24% {
    transform: scale(1.18);
    filter: brightness(1.42);
    box-shadow: 0 0 0 3px rgba(152, 220, 255, 0.4), 0 0 14px rgba(152, 220, 255, 0.68);
  }
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

@keyframes activityLedBlink {
  0% {
    transform: scale(0.9);
    filter: brightness(1);
    box-shadow: 0 0 0 0 rgba(97, 236, 190, 0.45), 0 0 5px rgba(97, 236, 190, 0.35);
  }
  8% {
    transform: scale(1.28);
    filter: brightness(1.55);
    box-shadow: 0 0 0 4px rgba(103, 238, 193, 0.48), 0 0 16px rgba(103, 238, 193, 0.84);
  }
  16% {
    transform: scale(0.98);
    filter: brightness(1);
    box-shadow: 0 0 0 0 rgba(103, 238, 193, 0.16), 0 0 6px rgba(103, 238, 193, 0.3);
  }
  24% {
    transform: scale(1.24);
    filter: brightness(1.45);
    box-shadow: 0 0 0 3px rgba(103, 238, 193, 0.44), 0 0 14px rgba(103, 238, 193, 0.72);
  }
  32% {
    transform: scale(1);
    filter: brightness(1);
    box-shadow: 0 0 0 0 rgba(103, 238, 193, 0.14), 0 0 6px rgba(103, 238, 193, 0.28);
  }
  40% {
    transform: scale(1.18);
    filter: brightness(1.35);
    box-shadow: 0 0 0 3px rgba(103, 238, 193, 0.4), 0 0 12px rgba(103, 238, 193, 0.64);
  }
  100% {
    transform: scale(1);
    filter: brightness(1);
    box-shadow: 0 0 0 0 rgba(97, 236, 190, 0), 0 0 8px rgba(78, 220, 170, 0.35);
  }
}

.browser-layout {
  display: grid;
  grid-template-columns: minmax(300px, 360px) 1fr;
  gap: 10px;
  min-height: 560px;
}

.browser-sidebar {
  border: 1px solid #273141;
  border-radius: 10px;
  background: #0f141c;
  padding: 8px;
  overflow: auto;
  max-height: 640px;
}

.browser-groups {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100%;
}

.browser-prefix-group {
  border: 1px solid #273142;
  border-radius: 8px;
  background: #0c1118;
}

.browser-prefix-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-bottom: 1px solid #202b3a;
}

.browser-prefix-name {
  font-size: 12px;
  letter-spacing: 0.3px;
  color: #dbe9ff;
  font-family: "IBM Plex Mono", "Consolas", monospace;
}

.browser-prefix-count {
  font-size: 11px;
  color: #9fb1c8;
}

.browser-file-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
}

.browser-file-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.browser-file-row .browser-file-btn {
  flex: 1 1 auto;
  width: auto;
}

.browser-file-row .struct-file-actions {
  flex: 0 0 auto;
}

.browser-file-btn {
  width: 100%;
  text-align: left;
  border: 1px solid #2a3444;
  border-radius: 8px;
  background: #101722;
  color: #d5e2f5;
  padding: 7px 8px;
  cursor: pointer;
  font-size: 11px;
  line-height: 1.3;
}

.browser-file-btn .ctx {
  color: #88b7ff;
  margin-right: 6px;
  font-family: "IBM Plex Mono", "Consolas", monospace;
}

.browser-file-btn .meta-miss {
  color: #f0a8ae;
}

.browser-file-btn:hover {
  background: #172131;
}

.browser-file-btn.active {
  border-color: #2a89ff;
  background: #1b2d45;
  color: #e4f1ff;
}

.browser-main {
  border: 1px solid #273141;
  border-radius: 10px;
  background: #0f141c;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 560px;
}

.browser-file-info {
  color: #b6c7dc;
  font-size: 12px;
  font-family: "IBM Plex Mono", "Consolas", monospace;
  border: 1px dashed #31445e;
  border-radius: 8px;
  padding: 7px 8px;
  min-height: 36px;
}

.browser-grid {
  width: 100%;
  height: 520px;
  border: 1px solid #1f2a38;
  border-radius: 8px;
  overflow: hidden;
}

.parquet-main {
  min-height: 600px;
}

.parquet-grid {
  min-height: 520px;
}

#parquetGrid.ag-theme-alpine-dark .ag-header-cell-label,
#parquetGrid.ag-theme-alpine-dark .col-header-text {
  color: #ffffff !important;
}

#parquetGrid.ag-theme-alpine-dark .ag-body-viewport,
#parquetGrid.ag-theme-alpine-dark .ag-center-cols-viewport {
  scrollbar-gutter: stable;
}

.parquet-sheet-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  min-height: 34px;
  border-top: 1px solid #26374e;
  padding-top: 8px;
}

.parquet-sheet-tab-btn {
  border: 1px solid #2f3f56;
  background: #101926;
  color: #b5c8e2;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
  max-width: 260px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.parquet-sheet-tab-btn:hover {
  background: #18263a;
  color: #e1eeff;
}

.parquet-sheet-tab-btn.active {
  border-color: #2a89ff;
  background: #1a2d47;
  color: #e3f2ff;
}

.parquet-sheet-empty {
  color: #8da2bc;
  font-size: 11px;
  font-family: "IBM Plex Mono", "Consolas", monospace;
}

.header-tips-block {
  margin-top: 10px;
  border: 1px solid #23364d;
  border-radius: 9px;
  background: #0c141f;
  padding: 8px;
}

.header-tips-title {
  font-size: 12px;
  color: #d4e7ff;
  margin-bottom: 7px;
  letter-spacing: 0.2px;
}

.header-tips-list {
  max-height: 120px;
  overflow: auto;
  display: grid;
  gap: 6px;
}

.header-tip-item {
  border: 1px solid #284365;
  border-radius: 7px;
  background: #102139;
  color: #cde3ff;
  font-size: 11px;
  line-height: 1.35;
  padding: 6px 8px;
  font-family: "IBM Plex Mono", "Consolas", monospace;
}

.ag-theme-alpine-dark .ag-header {
  background: linear-gradient(180deg, #1a2c45 0%, #142236 100%);
  border-bottom: 1px solid #2f4f73;
}

.ag-theme-alpine-dark .ag-header-cell {
  border-right-color: #2a3d57;
  position: relative;
}

.ag-theme-alpine-dark .ag-header-cell-label {
  color: #e6f1ff;
  font-weight: 600;
}

.ag-theme-alpine-dark .ag-header-cell-resize {
  width: 8px !important;
  right: -4px;
}

.ag-theme-alpine-dark .ag-header-cell-resize::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 18%;
  transform: translateX(-50%);
  width: 1px;
  height: 64%;
  background: rgba(180, 206, 235, 0.28);
}

.ag-theme-alpine-dark .ag-header-cell:hover .ag-header-cell-resize::after,
.ag-theme-alpine-dark .ag-header-cell-resize:hover::after {
  background: rgba(208, 230, 255, 0.58);
}

.col-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-right: 20px;
  position: relative;
  overflow: hidden;
}

.col-header-text {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.col-info-btn {
  border: 1px solid #406189;
  background: #10233b;
  color: #b9d5fa;
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  border-radius: 50%;
  padding: 0;
  font-size: 10px;
  line-height: 14px;
  font-weight: 700;
  cursor: pointer;
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
}

.col-info-btn:hover {
  background: #1b3a60;
  color: #e6f1ff;
}

.meta-modal {
  display: none;
}

.meta-modal.open {
  display: block;
}

.meta-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 14, 0.62);
  z-index: 3000;
}

.meta-dialog {
  position: fixed;
  z-index: 3001;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(760px, 94vw);
  max-height: 84vh;
  overflow: auto;
  border: 1px solid #2d4463;
  border-radius: 12px;
  background: #0f1723;
  box-shadow: 0 26px 44px rgba(0, 0, 0, 0.55);
}

.meta-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #23354d;
  background: linear-gradient(180deg, #13243a 0%, #101c2d 100%);
}

.meta-head h3 {
  margin: 0;
  font-size: 14px;
  color: #e2eefc;
}

.meta-close {
  border: 1px solid #375071;
  background: #162840;
  color: #d7e9ff;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  cursor: pointer;
}

.meta-body {
  padding: 12px;
  display: grid;
  gap: 10px;
}

.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.meta-box {
  border: 1px solid #24374f;
  border-radius: 8px;
  background: #0b141f;
  padding: 9px;
}

.meta-box h4 {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.3px;
  color: #cfe4ff;
}

.meta-line {
  font-size: 12px;
  color: #b7cae0;
  line-height: 1.35;
  margin: 3px 0;
  font-family: "IBM Plex Mono", "Consolas", monospace;
}

.meta-line strong {
  color: #e2efff;
  font-weight: 600;
}

.meta-status {
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  border: 1px solid #35557d;
  background: #16314f;
  color: #d9ecff;
  display: inline-flex;
}

.meta-status.mismatch {
  border-color: #8f4d5b;
  background: #452531;
  color: #ffd7dd;
}

.struct-section {
  margin-top: 16px;
  background: linear-gradient(180deg, var(--surface) 0%, #10141a 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
}

.struct-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.struct-controls {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  row-gap: 6px;
  width: 100%;
  max-width: 100%;
  justify-content: flex-end;
  flex: 1 1 520px;
}

.struct-missing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #b7cbe3;
  font-size: 12px;
  white-space: nowrap;
  flex: 0 0 auto;
}

.struct-missing-toggle input {
  accent-color: #2a89ff;
}

.struct-controls input {
  min-width: 220px;
  max-width: 380px;
  width: 100%;
  flex: 1 1 240px;
  border: 1px solid #2c3542;
  background: #0f151d;
  color: #dbe7f8;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 12px;
}

.struct-info {
  margin-top: 8px;
  margin-bottom: 8px;
  color: #b7cbe3;
  font-size: 12px;
  font-family: "IBM Plex Mono", "Consolas", monospace;
  border: 1px dashed #31445e;
  border-radius: 8px;
  padding: 7px 8px;
  min-height: 36px;
}

.struct-grid {
  width: 100%;
  height: 560px;
  border: 1px solid #1f2a38;
  border-radius: 8px;
  overflow: hidden;
}

#structGrid.ag-theme-alpine-dark .ag-header {
  min-height: 16px !important;
  background: linear-gradient(180deg, #112035 0%, #0f1b2c 100%);
  border-bottom: 1px solid #2a3f5a;
}

#structGrid.ag-theme-alpine-dark .ag-header-cell {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

#structGrid.ag-theme-alpine-dark .ag-header-cell-label {
  opacity: 0;
  pointer-events: none;
}

#structGrid.ag-theme-alpine-dark .ag-cell,
#structGrid.ag-theme-alpine-dark .ag-cell-value,
#parquetGrid.ag-theme-alpine-dark .ag-cell,
#parquetGrid.ag-theme-alpine-dark .ag-cell-value,
#dbSchemeGrid.ag-theme-alpine-dark .ag-cell,
#dbSchemeGrid.ag-theme-alpine-dark .ag-cell-value {
  font-size: 11px !important;
  line-height: 1.22 !important;
}

#parquetGrid.ag-theme-alpine-dark .ag-tooltip,
#structGrid.ag-theme-alpine-dark .ag-tooltip,
#dbSchemeGrid.ag-theme-alpine-dark .ag-tooltip,
#parquetGrid.ag-theme-alpine-dark .ag-tooltip .ag-tooltip-text,
#structGrid.ag-theme-alpine-dark .ag-tooltip .ag-tooltip-text,
#dbSchemeGrid.ag-theme-alpine-dark .ag-tooltip .ag-tooltip-text {
  background: #0f1a2b !important;
  color: #e6f1ff !important;
  border: 1px solid #355173 !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45) !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
  padding: 6px 8px !important;
  border-radius: 8px !important;
  white-space: pre-line !important;
  max-width: 460px !important;
}

.struct-file-header {
  background: #1b2f4a !important;
  color: #e4f1ff !important;
}

.struct-file-cell {
  background: #101c2d !important;
  color: #d7e8ff !important;
  font-family: "IBM Plex Mono", "Consolas", monospace;
}

.db-tree-name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.db-tree-title {
  color: #e6f1ff;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.db-tree-meta {
  display: inline-flex;
  align-items: center;
  border: 1px solid #2a3c54;
  background: #0f1b29;
  color: #8aa2bf;
  border-radius: 999px;
  padding: 1px 6px;
  font-size: 10px;
  line-height: 1.2;
}

.pipeline-tray-item.dragging {
  opacity: 0.5;
}

.pipeline-tray-item.drag-over {
  border-color: #3f7fb9;
  box-shadow: 0 0 0 1px rgba(63, 127, 185, 0.45) inset;
}

.db-tree-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  line-height: 1.2;
  border: 1px solid transparent;
}

.db-tree-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #1f7a5a;
  color: #e6fff1;
  font-size: 10px;
  line-height: 1;
}

.db-tree-status-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.db-tree-status.active {
  background: #123625;
  border-color: #2f8566;
  color: #b6f7dd;
}

.db-tree-status.muted {
  background: #1a1f28;
  border-color: #394152;
  color: #9aa7b6;
}

.db-tree-status.failed {
  background: #3a1f25;
  border-color: #9f4456;
  color: #ffd5dd;
}

.db-tree-status.excluded {
  background: #222a36;
  border-color: #4f5b6d;
  color: #c7d0dd;
}

.db-tree-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  font-size: 10px;
  line-height: 1;
  border: 1px solid transparent;
  font-weight: 700;
}

.db-tree-flag.failed {
  background: #4b1f2a;
  border-color: #b45568;
  color: #ffd8e0;
}

.db-tree-flag.excluded {
  background: #2a313d;
  border-color: #5f6a7d;
  color: #d1d7e2;
}

#dbSchemeGrid.ag-theme-alpine-dark .db-tree-row-muted .ag-cell {
  color: #8a97aa;
}

#dbSchemeGrid.ag-theme-alpine-dark .db-tree-row-active .ag-cell {
  color: #dbe7f8;
}

.db-row-header-cell {
  text-align: left !important;
  font-size: 11px !important;
  color: #d7e8ff !important;
}

.struct-file-cell-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.struct-file-main {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}

.struct-file-text {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  cursor: copy;
}

.struct-file-text.missing-artifacts {
  color: #7f93ad;
}

.struct-file-keycount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #36547a;
  border-radius: 999px;
  padding: 1px 6px;
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.2px;
  font-family: "IBM Plex Mono", "Consolas", monospace;
  flex: 0 0 auto;
}

.struct-file-keycount.has-keys {
  color: #b9f6d7;
  background: #113528;
  border-color: #2d7a5e;
}

.struct-file-keycount.no-keys {
  color: #a7b8cc;
  background: #142033;
  border-color: #2f4868;
}

.struct-file-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  opacity: 0.9;
}

.struct-file-action {
  border: 1px solid #36547a;
  background: #0f243c;
  color: #b9d5fa;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.struct-file-action svg {
  width: 12px;
  height: 12px;
}

.struct-file-action.primary:hover {
  background: #18406a;
  color: #e8f3ff;
}

.struct-file-action.copy {
  border-color: #406189;
  background: #132944;
  color: #b8d4fb;
}

.struct-file-action.copy:hover {
  background: #1b3a60;
  color: #e6f1ff;
}

.struct-file-action.danger {
  border-color: #6b4254;
  background: #2c1b24;
  color: #f1bac5;
}

.struct-file-action.danger:hover {
  background: #4a2734;
  color: #ffe3e9;
}

.struct-file-action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.struct-file-action.state-running {
  border-color: #7a6a33;
  background: #3c3217;
  color: #ffe7a2;
  animation: structSpinPulse 1s linear infinite;
}

.struct-file-action.state-ok {
  border-color: #2f8f66;
  background: #173b2d;
  color: #b7f5d8;
}

.struct-file-action.state-error {
  border-color: #8a3f4b;
  background: #3c1a22;
  color: #ffd1d8;
}

.struct-rebuild-mode-menu {
  position: absolute;
  z-index: 2400;
  min-width: 140px;
  border: 1px solid #355173;
  border-radius: 8px;
  background: #0f1a2b;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.46);
  padding: 4px;
  display: grid;
  gap: 2px;
}

.struct-rebuild-mode-option {
  border: 1px solid transparent;
  border-radius: 6px;
  background: #13233a;
  color: #d5e7ff;
  padding: 5px 8px;
  font-size: 11px;
  text-align: left;
  cursor: pointer;
}

.struct-rebuild-mode-option:hover {
  border-color: #3b6ea0;
  background: #1d3656;
  color: #edf6ff;
}

.db-scheme-files-list {
  display: grid;
  gap: 8px;
}

.db-scheme-file-item {
  border: 1px solid #2f4969;
  border-radius: 8px;
  background: #0f1f34;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
}

.db-scheme-file-main {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 2px;
}

.db-scheme-file-name {
  color: #d9e9ff;
  font-size: 12px;
  line-height: 1.25;
  word-break: break-word;
}

.db-scheme-file-path {
  color: #8fa7c6;
  font-size: 10px;
  line-height: 1.25;
  font-family: "IBM Plex Mono", "Consolas", monospace;
  word-break: break-all;
}

.db-scheme-file-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.db-scheme-file-empty {
  border: 1px dashed #375174;
  border-radius: 10px;
  background: #0e1b2e;
  color: #9ab1cf;
  font-size: 12px;
  padding: 12px 14px;
}

.db-scheme-upsert-btn {
  flex: 0 0 auto;
}

@keyframes structSpinPulse {
  0% { box-shadow: 0 0 0 rgba(255, 231, 162, 0); }
  50% { box-shadow: 0 0 0 2px rgba(255, 231, 162, 0.18); }
  100% { box-shadow: 0 0 0 rgba(255, 231, 162, 0); }
}

.struct-key-header {
  background: #4d3514 !important;
  color: #ffe3b3 !important;
}

.struct-key-cell {
  background: #2c2010 !important;
  color: #ffdfaa !important;
}

.parquet-key-header {
  background: #3c2a12 !important;
  color: #ffe7bb !important;
}

.parquet-key-cell {
  background: #23180b !important;
  color: #ffe0a8 !important;
}

.db-cat-header {
  background: #1b3048 !important;
  color: #cfe4ff !important;
}

.db-cat-cell {
  background: #0f1a29 !important;
  color: #c6daef !important;
}

.struct-col-header-cell {
  background: #21344d !important;
  color: #e7f2ff !important;
}

.struct-inline-header-cell {
  text-align: left !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.struct-inline-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-right: 20px;
  position: relative;
  overflow: hidden;
}

.struct-inline-header-text {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.struct-bulk-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid rgba(87, 136, 210, 0.55);
  background: rgba(22, 36, 58, 0.7);
  color: #9fc6ff;
  cursor: pointer;
  transition: all 0.15s ease;
}

.struct-bulk-action-btn:hover {
  border-color: rgba(87, 136, 210, 0.9);
  color: #e6f0ff;
  box-shadow: 0 0 0 2px rgba(61, 132, 255, 0.18);
}

.struct-bulk-action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.struct-bulk-action-btn svg {
  width: 15px;
  height: 15px;
}

.struct-pres-cell {
  text-align: center;
  font-size: 11px;
}

.ag-theme-alpine-dark .ag-cell.struct-pres-cell {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.ag-theme-alpine-dark .ag-cell.struct-file-cell {
  padding-left: 8px !important;
  padding-right: 8px !important;
}

#structGrid.ag-theme-alpine-dark .ag-row-pinned .ag-cell {
  border-right: 1px solid #2a3d57 !important;
  border-bottom: 1px solid #315074 !important;
}

#structGrid.ag-theme-alpine-dark .ag-row-pinned .ag-cell .col-info-btn {
  right: 1px;
}

#structGrid.ag-theme-alpine-dark .ag-row.struct-row-missing-artifacts .struct-pres-dot {
  color: #5f7868;
}

.struct-rebuild-log {
  margin: 0;
  height: 130px;
  overflow: auto;
  border: 1px solid #25384f;
  border-radius: 8px;
  background: #0b1119;
  padding: 8px;
  color: #bfd4ee;
  font-size: 11px;
  line-height: 1.32;
  font-family: "IBM Plex Mono", "Consolas", monospace;
}

.struct-pres-dot {
  display: inline-flex;
  width: 16px;
  justify-content: center;
  color: #8ef0c4;
}

.struct-pres-dot.struct-pres-dot-key {
  color: #7af3bf;
  text-shadow: 0 0 6px rgba(122, 243, 191, 0.45);
}

.struct-pres-empty {
  color: #3d4f63;
}

.logs-section {
  margin-top: 16px;
  background: linear-gradient(180deg, var(--surface) 0%, #10141a 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
}

.logs-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.logs-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
  color: var(--muted);
  font-size: 12px;
}

.log-tabs-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 440px;
  min-width: 260px;
  max-width: 100%;
}

.logs-copy-errors-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.logs-age-input {
  width: 72px;
  border-radius: 8px;
  border: 1px solid #2c3542;
  background: #10161f;
  color: #d7e3f2;
  font-size: 12px;
  padding: 4px 6px;
  line-height: 1.2;
}

.logs-icon-btn {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid #2c3542;
  background: #11161d;
  color: #b7c3d4;
  cursor: pointer;
}

.logs-icon-btn svg {
  width: 14px;
  height: 14px;
}

.logs-icon-btn:hover {
  background: #1a2a3f;
  border-color: #2a89ff;
  color: #d9ecff;
}

.logs-icon-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.logs-label {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.log-tabs {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  gap: 6px;
  overflow-x: auto;
  padding: 2px;
  max-width: 100%;
  scrollbar-width: thin;
}

.tab-btn {
  border: 1px solid #2c3542;
  background: #11161d;
  color: #b7c3d4;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.tab-btn.log-state-neutral {
  background: #11161d;
  border-color: #2c3542;
  color: #b7c3d4;
}

.tab-btn.log-state-active {
  background: #15382b;
  border-color: #2f8d68;
  color: #b7f4dc;
  box-shadow: 0 0 0 1px rgba(77, 227, 171, 0.18);
}

.tab-btn.log-state-idle {
  background: #2d2616;
  border-color: #6b5b2b;
  color: #f0dcaa;
}

.tab-btn.log-state-stopped {
  background: #2b1b20;
  border-color: #6e3b46;
  color: #f2c1c7;
}

.tab-btn.log-state-active.active {
  border-color: #4de3ab;
  background: #1d4a3a;
  color: #e9fff6;
  animation: tabPulse 1.7s ease-in-out infinite;
}

.tab-btn.log-state-idle.active {
  border-color: #e0b95a;
  background: #3a321b;
  color: #fff0c4;
}

.tab-btn.log-state-stopped.active {
  border-color: #f08b9a;
  background: #41252c;
  color: #ffe7eb;
}

@keyframes tabPulse {
  0% { box-shadow: 0 0 0 1px rgba(77, 227, 171, 0.20), 0 0 0 rgba(77, 227, 171, 0); }
  50% { box-shadow: 0 0 0 1px rgba(77, 227, 171, 0.45), 0 0 14px rgba(77, 227, 171, 0.28); }
  100% { box-shadow: 0 0 0 1px rgba(77, 227, 171, 0.20), 0 0 0 rgba(77, 227, 171, 0); }
}

.tab-btn:hover {
  background: #1a2330;
  color: var(--text);
}

.tab-btn.log-state-active:hover {
  background: #1b4635;
  color: #e9fff6;
}

.tab-btn.log-state-idle:hover {
  background: #3a3118;
  color: #fff0c4;
}

.tab-btn.log-state-stopped:hover {
  background: #3b2229;
  color: #ffe7eb;
}

.tab-btn.active {
  border-color: #2a89ff;
  background: #1a2d47;
  color: #d9ecff;
}

.inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.logs-view {
  margin: 0;
  height: 340px;
  overflow: auto;
  background: #0a0d12;
  border: 1px solid #1d2530;
  border-radius: 10px;
  padding: 10px;
  color: #d7e3f2;
  font-size: 12px;
  line-height: 1.35;
  font-family: "IBM Plex Mono", "Consolas", monospace;
}

@media (max-width: 900px) {
  .log-tabs-wrap {
    max-width: 100%;
    width: 100%;
  }

  .prefix-regex-form {
    grid-template-columns: 1fr 1fr minmax(170px, 1fr);
  }
}

@media (max-width: 700px) {
  .pipeline-trays-grid {
    grid-template-columns: 1fr;
  }

  .pipeline-v2-grid {
    grid-template-columns: 1fr;
  }

  .pipeline-controls {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .pipeline-tray-col {
    min-height: 420px;
    max-height: 62vh;
  }

  .top-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .top-tab-btn {
    width: 100%;
  }

  .panel-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .panel-controls {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .domain-toggles {
    margin-right: 0;
  }

  .panel-controls input {
    min-width: 0;
    width: 100%;
  }

  .column-kind-toggles {
    width: 100%;
    justify-content: flex-start;
  }

  .prefix-tabs {
    margin-top: 2px;
  }

  .struct-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .struct-controls {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .struct-controls input {
    min-width: 0;
    width: 100%;
  }

  .meta-grid {
    grid-template-columns: 1fr;
  }

  .browser-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .browser-sidebar {
    max-height: 280px;
  }

  .browser-main {
    min-height: 520px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .logs-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .logs-controls {
    width: 100%;
  }

  .log-tabs {
    width: 100%;
  }

  .prefix-regex-form {
    grid-template-columns: 1fr;
  }

  .prefix-regex-save {
    width: 100%;
  }
}

.progress-foot {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.progress-foot .progress-text {
  margin-top: 0;
}

.perf-summary-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #29425d;
  background: #0f1b2a;
}

.perf-summary-wrap.clickable {
  cursor: pointer;
}

.perf-summary-wrap.clickable:hover .perf-summary-value,
.perf-summary-wrap.clickable:focus-visible .perf-summary-value {
  color: #e9f3ff;
  text-decoration: underline;
}

.perf-summary-label {
  font-size: 11px;
  color: #9cb4d2;
}

.perf-summary-value {
  font-size: 12px;
  color: #d5e7ff;
  font-family: "IBM Plex Mono", "Consolas", monospace;
}

.pending-summary-wrap {
  position: relative;
  display: none;
  align-items: center;
}

.pending-summary-label {
  border: 1px dashed #314257;
  border-radius: 999px;
  padding: 2px 8px;
  color: #9cb0c8;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}

.pending-summary-tooltip {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 290px;
  max-width: min(480px, 85vw);
  max-height: 260px;
  overflow: auto;
  z-index: 40;
  border: 1px solid #2a3648;
  border-radius: 10px;
  background: #0b1119;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.45);
  padding: 9px;
}

.pending-summary-wrap:hover .pending-summary-tooltip {
  display: block;
}

.pending-section + .pending-section {
  margin-top: 10px;
}

.pending-title {
  color: #d7e4f3;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.pending-line {
  color: #c6d4e5;
  font-size: 12px;
  line-height: 1.35;
  font-family: "IBM Plex Mono", "Consolas", monospace;
}

.pending-empty {
  color: #8798ad;
}

@media (max-width: 700px) {
  .pending-summary-tooltip {
    right: auto;
    left: 0;
    min-width: min(320px, 90vw);
  }

  .prefix-chip-tooltip {
    left: 0;
    right: auto;
    min-width: min(320px, 90vw);
  }
}


.workspace-section {
  margin-top: 16px;
  background: linear-gradient(180deg, var(--surface) 0%, #10141a 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
}

.perf-day-row {
  border: 1px solid #2b3f59;
  border-radius: 8px;
  background: #0f1722;
  padding: 8px;
  margin-bottom: 8px;
}

.perf-day-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}

.perf-day-date {
  font-weight: 600;
  color: #d5e8ff;
}

.perf-day-kpi {
  color: #94b1d5;
  font-size: 12px;
}

.perf-prefix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 6px;
}

.perf-prefix-chip {
  border: 1px solid #314866;
  border-radius: 999px;
  background: #0b131f;
  color: #bfcee4;
  font-size: 11px;
  padding: 4px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.perf-history-controls {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.perf-history-select-wrap {
  display: grid;
  gap: 4px;
}

.perf-history-select-label {
  font-size: 11px;
  color: #8eabc9;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.perf-history-select {
  min-width: 220px;
  border: 1px solid #2f4562;
  border-radius: 8px;
  background: #0d1724;
  color: #d5e8ff;
  padding: 6px 10px;
}

.perf-history-controls-meta {
  color: #91accd;
  font-size: 12px;
}

.perf-history-tabs {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  flex-wrap: wrap;
  margin-top: 10px;
  border-bottom: 1px solid #2b3850;
  padding: 0 1px;
}

.perf-history-tab {
  border: 1px solid #2d3a4e;
  border-bottom: none;
  background: #101722;
  color: #b5c7dd;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  padding: 7px 11px 6px;
  font-size: 11px;
  font-family: "IBM Plex Mono", "Consolas", monospace;
  cursor: pointer;
  white-space: nowrap;
}

.perf-history-tab:hover {
  background: #172131;
  color: #e2eeff;
}

.perf-history-tab.active {
  border-color: #2a89ff;
  background: #1a2d47;
  color: #dff0ff;
  position: relative;
  top: 1px;
}

.perf-history-tab-panel {
  display: grid;
  gap: 10px;
  padding-top: 10px;
}

.perf-history-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.perf-history-kpi {
  border: 1px solid #263a53;
  border-radius: 10px;
  background: #0c1420;
  padding: 9px 10px;
}

.perf-history-kpi-label {
  color: #88a3c2;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.perf-history-kpi-value {
  margin-top: 4px;
  color: #e6f2ff;
  font-size: 18px;
  font-weight: 700;
}

.perf-history-kpi-note {
  margin-top: 4px;
  color: #9ab4d3;
  font-size: 11px;
}

.perf-history-section {
  display: grid;
  gap: 8px;
}

.perf-history-section-head {
  color: #d6e9ff;
  font-size: 13px;
  font-weight: 700;
}

.perf-history-prefix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.perf-history-prefix-card {
  border: 1px solid #2a405a;
  border-radius: 10px;
  background: #0c1420;
  color: #d8ebff;
  padding: 10px;
  text-align: left;
  cursor: pointer;
}

.perf-history-prefix-card:hover {
  border-color: #3f6086;
  background: #0f1a2b;
}

.perf-history-prefix-name {
  font-size: 13px;
  font-weight: 700;
}

.perf-history-prefix-meta,
.perf-history-prefix-rows {
  margin-top: 4px;
  font-size: 11px;
  color: #98b4d4;
}

.perf-history-stage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.perf-history-stage-chip {
  border: 1px solid #263b55;
  border-radius: 10px;
  background: #0b1320;
  padding: 9px 10px;
}

.perf-history-stage-name {
  color: #deefff;
  font-size: 12px;
  font-weight: 700;
}

.perf-history-stage-meta {
  margin-top: 4px;
  color: #97b4d5;
  font-size: 11px;
  line-height: 1.4;
}

.perf-history-runs {
  display: grid;
  gap: 8px;
}

.perf-history-run {
  border: 1px solid #273b55;
  border-radius: 10px;
  background: #0b1421;
  padding: 10px;
}

.perf-history-run-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.perf-history-run-name {
  color: #e4f2ff;
  font-size: 13px;
  font-weight: 700;
}

.perf-history-run-when {
  color: #8eaacd;
  font-size: 11px;
}

.perf-history-run-meta,
.perf-history-run-extra {
  margin-top: 4px;
  color: #9bb6d7;
  font-size: 11px;
  line-height: 1.4;
}

@media (max-width: 1320px) {
  .consol-map-wrap {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .consol-map-wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .consol-map-wrap {
    grid-template-columns: 1fr;
  }
  .consol-map-dialog {
    width: min(98vw, 98vw);
  }
  .consol-map-col {
    min-height: 260px;
  }
}

.workspace-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.workspace-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 460px;
  min-width: 0;
  gap: 8px;
  flex-wrap: wrap;
}

.workspace-dir {
  border: 1px dashed #32455f;
  border-radius: 8px;
  background: #0f1723;
  color: #afc3dc;
  font-size: 11px;
  padding: 6px 9px;
  flex: 1 1 320px;
  max-width: min(680px, 100%);
  min-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
}

.workspace-metric-card {
  border: 1px solid #2b3b51;
  border-radius: 9px;
  background: #0d1520;
  padding: 8px;
  min-height: 62px;
}

.workspace-metric-label {
  color: #98aec8;
  font-size: 11px;
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}

.workspace-metric-value {
  color: #d9e8fb;
  font-size: 15px;
  line-height: 1.2;
}

.workspace-modal {
  display: none;
}

.workspace-modal.open {
  display: block;
}

.workspace-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(3, 8, 15, 0.68);
}

.workspace-modal-dialog {
  position: fixed;
  z-index: 81;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(1200px, 96vw);
  max-height: 86vh;
  overflow: auto;
  border: 1px solid #2b3f5a;
  border-radius: 12px;
  background: #0f1723;
  box-shadow: 0 24px 42px rgba(0, 0, 0, 0.54);
}

.pipeline-preview-dialog {
  width: min(1320px, 98vw);
}

.pipeline-preview-sheet-tabs {
  padding: 0 16px 12px;
}

.pipeline-preview-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 10px;
  padding: 0 16px 12px;
}

.pipeline-preview-filter {
  display: grid;
  gap: 5px;
  color: #cfe3fb;
  font-size: 12px;
  font-weight: 700;
}

.pipeline-preview-filter input {
  width: 100%;
  min-height: 32px;
  border-radius: 8px;
  border: 1px solid #2f4865;
  background: #0c1520;
  color: #e3f1ff;
  padding: 6px 10px;
  font-size: 12px;
}

.pipeline-preview-filter input::placeholder {
  color: #7288a2;
}

.pipeline-preview-sheet-btn {
  border: 1px solid #304860;
  background: #132033;
  color: #cce0f7;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  cursor: pointer;
}

.pipeline-preview-sheet-btn.active {
  border-color: #58a6ff;
  background: rgba(35, 93, 167, 0.35);
  color: #f1f8ff;
}

.pipeline-preview-grid {
  min-height: 420px;
  height: 62vh;
  margin: 0 16px 16px;
  border: 1px solid #243649;
  border-radius: 10px;
  overflow: hidden;
}

.pipeline-preview-grid .tabulator {
  height: 100%;
  border: 0;
  background: #0d1723;
}

.pipeline-preview-grid .tabulator-header {
  border-bottom: 1px solid #29415b;
}

.pipeline-preview-grid .tabulator-col,
.pipeline-preview-grid .tabulator-cell {
  white-space: nowrap;
}

.workspace-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #24384f;
  background: linear-gradient(180deg, #14253b 0%, #111d2f 100%);
}

.workspace-modal-head h3 {
  margin: 0;
  font-size: 15px;
  color: #e4f1ff;
}

.workspace-modal-close {
  border: 1px solid #385273;
  background: #162840;
  color: #d7e9ff;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  cursor: pointer;
}

.workspace-summary-meta {
  margin: 10px 12px 0;
  border: 1px dashed #325176;
  border-radius: 8px;
  background: #0d1a2a;
  color: #bdd3ee;
  padding: 8px;
  font-size: 12px;
  line-height: 1.35;
  font-family: "IBM Plex Mono", "Consolas", monospace;
}

.workspace-summary-body {
  margin: 10px 12px 12px;
  display: grid;
  gap: 10px;
}

#consolMappingBody {
  position: relative;
}

.workspace-summary-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.workspace-summary-chip-box {
  border: 1px solid #263a53;
  border-radius: 8px;
  background: #0c1420;
  padding: 8px;
}

.workspace-summary-chip-title {
  color: #cfe4ff;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
}

.workspace-summary-chip-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.workspace-summary-chip {
  border: 1px solid #324861;
  background: #122338;
  color: #c5dbf5;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-family: "IBM Plex Mono", "Consolas", monospace;
}

.workspace-summary-table-wrap {
  border: 1px solid #253a55;
  border-radius: 8px;
  overflow: auto;
  max-height: 48vh;
  background: #0b121b;
}

.workspace-summary-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.workspace-summary-table th,
.workspace-summary-table td {
  border-bottom: 1px solid #22344b;
  border-right: 1px solid #1c2d42;
  padding: 6px 8px;
  font-size: 12px;
  color: #ceddf0;
  text-align: left;
  font-family: "IBM Plex Mono", "Consolas", monospace;
}

.workspace-summary-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #1a2d47;
  color: #e5f2ff;
}

.workspace-summary-table td.num,
.workspace-summary-table th.num {
  text-align: right;
}

.workspace-clean-btn {
  border: 1px solid #5a4a1f;
  background: #2f2712;
  color: #ffd995;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  cursor: pointer;
  line-height: 1;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.workspace-clean-btn:hover {
  background: #473916;
  color: #ffe7bf;
}

.workspace-clean-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.workspace-clean-btn.busy {
  border-color: #2f8d68;
  background: #133127;
  color: #bff8dc;
  animation: workspaceCleanPulse 1.1s ease-in-out infinite;
}

@keyframes workspaceCleanPulse {
  0% { box-shadow: 0 0 0 rgba(79, 228, 173, 0); }
  50% { box-shadow: 0 0 0 2px rgba(79, 228, 173, 0.2); }
  100% { box-shadow: 0 0 0 rgba(79, 228, 173, 0); }
}

.workspace-summary-empty {
  color: #8ea5c0;
  font-size: 12px;
  padding: 10px;
  text-align: center;
  font-family: "IBM Plex Mono", "Consolas", monospace;
}

@media (max-width: 700px) {
  .workspace-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .workspace-controls {
    width: 100%;
  }

  .workspace-dir {
    max-width: 100%;
  }

  .workspace-summary-table {
    min-width: 720px;
  }
}
