:root {
  color-scheme: light;
  font-family: "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  --button-tooltip-delay: 0.7s;
  --semantic-tooltip-delay: 0.28s;
  --panel-header-height: 3rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f8fafc;
  color: #1f2933;
  height: 100vh;
  overflow: hidden;
}

.page {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.toolbar {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  background: #111827;
  border-bottom: 1px solid #020617;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

.toolbar-brand {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  min-width: 12rem;
  color: #f8fafc;
}

.title {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0;
}

.subtitle {
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.055em;
}

.class-filter {
  display: flex;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid #e2e8f0;
}

.filter-box {
  position: relative;
  display: flex;
  align-items: center;
}

.filter-box input {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.38rem 2rem 0.38rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #334155;
  width: 100%;
  max-width: none;
  background: #ffffff;
}

.filter-box input::placeholder {
  color: #94a3b8;
}

.filter-box input:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.35);
  outline-offset: 2px;
}

.input-clear {
  position: absolute;
  right: 0.38rem;
  width: 1.35rem;
  height: 1.35rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transition: background 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.input-clear.visible {
  opacity: 1;
  pointer-events: auto;
}

.input-clear:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.input-clear:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.45);
  outline-offset: 2px;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
}

.toolbar-icon {
  position: relative;
  border: 1px solid #334155;
  background: #1e293b;
  color: #e2e8f0;
  border-radius: 6px;
  width: 1.9rem;
  height: 1.9rem;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.toolbar-icon:hover {
  background: #334155;
  border-color: #475569;
  color: #ffffff;
}

.toolbar-icon.active {
  background: #334155;
  border-color: #64748b;
  color: #ffffff;
}

.toolbar-icon:disabled {
  color: #64748b;
  cursor: default;
  opacity: 0.8;
}

.toolbar-icon:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.45);
  outline-offset: 2px;
}

.toolbar-icon svg,
.toolbar-icon .app-icon {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.view-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  padding: 0.12rem;
  border-left: 1px solid #cbd5e1;
  margin-left: 0;
  padding-left: 0.65rem;
}

.view-button {
  position: relative;
  width: auto;
  height: 1.9rem;
  border: 0;
  background: transparent;
  color: #475569;
  border-radius: 6px;
  padding: 0 0.48rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  font-weight: 650;
  transition: background 0.18s ease, color 0.18s ease;
}

.view-button:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.view-button.active {
  background: #dbeafe;
  color: #1d4ed8;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.16);
}

.view-button:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.45);
  outline-offset: 2px;
}

.view-button svg,
.view-button .app-icon {
  width: 0.95rem;
  height: 0.95rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.statusbar {
  min-height: 1.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.18rem 0.75rem;
  border-top: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #475569;
  font-size: 0.74rem;
  font-weight: 500;
}

.status-message {
  color: #334155;
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 0.28rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.statusbar-left {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.status-warning {
  border: 1px solid rgba(217, 119, 6, 0.32);
  border-radius: 999px;
  background: rgba(254, 243, 199, 0.72);
  color: #92400e;
  font: inherit;
  font-weight: 700;
  padding: 0.1rem 0.5rem;
  cursor: pointer;
}

.status-warning.hidden {
  display: none;
}

.status-warning:hover,
.status-warning:focus-visible,
.status-warning[aria-expanded="true"] {
  background: rgba(253, 230, 138, 0.95);
  border-color: rgba(217, 119, 6, 0.52);
  outline: none;
}

.warnings-panel {
  position: fixed;
  left: 0.65rem;
  bottom: 2.2rem;
  z-index: 80;
  width: min(34rem, calc(100vw - 1.3rem));
  max-height: min(22rem, calc(100vh - 5rem));
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.2);
}

.warnings-panel.hidden {
  display: none;
}

.warnings-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.warnings-list {
  max-height: 18rem;
  overflow: auto;
  padding: 0.45rem;
}

.warning-item {
  padding: 0.55rem 0.65rem;
  border-radius: 7px;
  background: rgba(254, 243, 199, 0.5);
}

.warning-item + .warning-item {
  margin-top: 0.4rem;
}

.warning-item-title {
  color: #92400e;
  font-weight: 750;
  font-size: 0.78rem;
}

.warning-item-message,
.warning-item-recommendation {
  margin-top: 0.25rem;
  color: #475569;
  font-size: 0.76rem;
  line-height: 1.4;
}

.warning-item-recommendation {
  color: #64748b;
}

.status-file {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  color: #334155;
}

.status-file-icon {
  width: 0.82rem;
  height: 0.82rem;
}

.status-file-icon svg {
  width: 0.82rem;
  height: 0.82rem;
}

.status-file-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.statusbar-right {
  min-width: 0;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.theme-switch {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.08rem;
  padding: 0.08rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
}

.theme-button {
  position: relative;
  width: 1.35rem;
  height: 1.35rem;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.theme-button:hover,
.theme-button:focus-visible {
  background: #e2e8f0;
  color: #0f172a;
  outline: none;
}

.theme-button.active {
  background: #dbeafe;
  color: #1d4ed8;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.16);
}

.theme-button .app-icon {
  width: 0.82rem;
  height: 0.82rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.status-item {
  color: #64748b;
  white-space: nowrap;
}

.status-link {
  border: 0;
  background: transparent;
  color: #2563eb;
  padding: 0;
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.status-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.status-link:disabled {
  color: #94a3b8;
  cursor: default;
  text-decoration: none;
}

.status-link:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.3);
  outline-offset: 2px;
  border-radius: 3px;
}

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

.hidden {
  display: none !important;
}

.workspace {
  flex: 1;
  display: flex;
  min-height: 0;
  overflow: hidden;
}

.activity-rail {
  width: 2.35rem;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.28rem;
  background: #f1f5f9;
  border-color: #cbd5e1;
  border-style: solid;
}

.activity-rail-left {
  border-width: 0 1px 0 0;
}

.activity-rail-right {
  border-width: 0 0 0 1px;
}

.activity-button {
  position: relative;
  width: 1.75rem;
  height: 1.75rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.activity-button:hover,
.activity-button:focus-visible {
  background: #e2e8f0;
  color: #0f172a;
  outline: none;
}

.activity-button.active {
  background: #dbeafe;
  color: #1d4ed8;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.16);
}

.activity-button svg,
.activity-button .app-icon {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.semantic-outline {
  width: 17rem;
  min-width: 14rem;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  border-left: 1px solid #cbd5e1;
  background: #f8fafc;
  position: relative;
}

.semantic-outline-resizer {
  position: absolute;
  top: 0;
  left: -3px;
  width: 6px;
  height: 100%;
  cursor: col-resize;
  z-index: 8;
}

.semantic-outline-resizer:hover,
.semantic-outline.resizing .semantic-outline-resizer {
  background: rgba(37, 99, 235, 0.22);
}

.semantic-outline-header {
  height: var(--panel-header-height);
  flex: 0 0 var(--panel-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.semantic-outline-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0.45rem;
}

.outline-node {
  --outline-depth: 0;
  min-width: 0;
}

.outline-node + .outline-node {
  margin-top: 0.08rem;
}

.outline-children {
  min-width: 0;
}

.filter-option,
.filter-type-label {
  width: 100%;
  min-height: 1.72rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #334155;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.45rem 0.32rem calc(0.45rem + var(--outline-depth, 0) * 0.9rem);
  text-align: left;
  font: 650 0.74rem/1.25 "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
}

.filter-option-marker {
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 3px;
  border: 1px solid currentColor;
  flex: 0 0 auto;
  opacity: 0.58;
}

.filter-option-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.outline-pin-clear {
  width: 1.15rem;
  height: 1.15rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: currentColor;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  flex: 0 0 auto;
  font-size: 0.9rem;
  line-height: 1;
  opacity: 0.72;
}

.filter-option.outline-pinned .outline-pin-clear {
  display: inline-flex;
}

.outline-pin-clear:hover,
.outline-pin-clear:focus-visible {
  background: rgba(194, 65, 12, 0.12);
  opacity: 1;
  outline: none;
}

.filter-option:hover,
.filter-option:focus-visible,
.filter-type-label:hover,
.filter-type-label:focus-visible,
.filter-option.outline-hover,
.filter-type-label.outline-hover {
  background: #dbeafe;
  color: #1d4ed8;
  outline: none;
}

.filter-option.outline-pinned,
.filter-type-label.outline-pinned {
  background: #ffedd5;
  color: #c2410c;
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.22);
}

.filter-type-label {
  color: #1e40af;
}

.filter-private-type-label {
  color: #475569;
  font-weight: 650;
}

.filter-private-type-label .filter-option-marker {
  border-radius: 50%;
  background: currentColor;
  border-color: currentColor;
  opacity: 0.38;
}

.filter-field-option {
  color: #8a5a00;
}

.filter-field-option .filter-option-marker {
  width: 0.62rem;
  height: 1px;
  border: 0;
  border-radius: 0;
  background: #cbd5e1;
  opacity: 1;
}

.filter-empty {
  padding: 0.55rem 0.45rem;
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 600;
}

.workbench-main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #eef2f7;
  position: relative;
}

.panels {
  flex: 1;
  min-width: 0;
  padding: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #eef2f7;
}

.output-body {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  background: #ffffff;
}

.result-area {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}

.output-header {
  height: var(--panel-header-height);
  flex: 0 0 var(--panel-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.42rem 0.75rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.output-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.output-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: none;
}

.view-actions {
  display: none;
  align-items: center;
  gap: 0.18rem;
}

.view-actions.active {
  display: inline-flex;
}

.output-title {
  color: #334155;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.mini-action {
  position: relative;
  height: 1.55rem;
  width: 1.55rem;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
}

.mini-action:hover,
.mini-action:focus-visible {
  background: #e2e8f0;
  color: #0f172a;
  outline: none;
}

.mini-action svg,
.mini-action .app-icon {
  width: 0.95rem;
  height: 0.95rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.file-panel {
  width: 18rem;
  min-width: 11rem;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #cbd5e1;
  background: #ffffff;
  box-shadow: 6px 0 16px rgba(15, 23, 42, 0.05);
  position: relative;
}

.file-panel-resizer {
  position: absolute;
  top: 0;
  right: -3px;
  width: 6px;
  height: 100%;
  cursor: col-resize;
  z-index: 8;
}

.file-panel-resizer:hover,
.file-panel.resizing .file-panel-resizer {
  background: rgba(37, 99, 235, 0.22);
}

.file-panel-header {
  height: var(--panel-header-height);
  flex: 0 0 var(--panel-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.file-panel-title-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.file-panel-title {
  color: #334155;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-panel-tools {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: auto;
}

.file-panel-close {
  position: relative;
  width: 1.6rem;
  height: 1.6rem;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 1.1rem;
  line-height: 1;
}

.file-panel-close .app-icon,
.input-clear .app-icon {
  width: 0.9rem;
  height: 0.9rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.file-panel-close:hover,
.file-panel-close:focus-visible {
  background: #e2e8f0;
  color: #0f172a;
  outline: none;
}

.file-panel-body {
  flex: 1;
  min-height: 0;
  display: block;
  position: relative;
  overflow: hidden;
}

.file-panel-list {
  background: #f8fafc;
  overflow: auto;
  padding: 0.45rem;
  height: 100%;
  min-height: 0;
}

.file-tree-folder {
  margin: 0.2rem 0;
}

.file-tree-folder-name {
  width: 100%;
  border: 0;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 700;
  margin: 0.35rem 0 0.12rem;
  overflow: hidden;
  padding: 0.22rem 0.35rem;
  border-radius: 5px;
  text-align: left;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.file-tree-folder-name:hover,
.file-tree-folder-name:focus-visible {
  background: #e2e8f0;
  color: #334155;
  outline: none;
}

.file-tree-folder-chevron {
  width: 0.72rem;
  height: 0.72rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.16s ease;
}

.file-tree-folder-icon {
  width: 0.9rem;
  height: 0.9rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.file-tree-folder-name span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-tree-folder-children {
  border-left: 1px solid #e2e8f0;
  margin-left: 0.45rem;
  padding-left: 0.35rem;
}

.file-tree-folder:not(.collapsed) > .file-tree-folder-name .file-tree-folder-chevron {
  transform: rotate(90deg);
}

.file-tree-folder.collapsed > .file-tree-folder-children {
  display: none;
}

.file-panel-row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 5px;
  opacity: 0.52;
  transition: background 0.18s ease, opacity 0.18s ease;
}

.file-panel-row:hover,
.file-panel-row:focus-within,
.file-panel-row.active-spec,
.file-panel-row.active-input,
.file-panel-row.dependency {
  opacity: 1;
}

.file-panel-row.active-spec,
.file-panel-row.active-input {
  background: #eef6ff;
}

.file-panel-row.dependency:not(.active-spec):not(.active-input) {
  background: #f8fbff;
}

.file-panel-file {
  min-width: 0;
  flex: 1;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #334155;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  overflow: hidden;
  padding: 0.4rem 0.5rem;
  text-align: left;
}

.file-panel-file:hover {
  background: #e2e8f0;
}

.file-panel-file.active {
  background: #dbeafe;
  color: #1d4ed8;
}

.file-panel-file-icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.file-panel-file-icon svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.file-panel-file-icon text {
  fill: currentColor;
  font: 800 0.55rem/1 "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  stroke: none;
}

.file-icon-yaml {
  color: #2563eb;
}

.file-icon-text {
  color: #64748b;
}

.file-panel-row.active-spec .file-icon-yaml,
.file-panel-row.active-input .file-icon-text,
.file-panel-file.active .file-panel-file-icon {
  color: currentColor;
}

.file-panel-file-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-panel-badges {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
  flex: none;
}

.file-panel-badge {
  border-radius: 4px;
  background: #e2e8f0;
  color: #475569;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 0.18rem 0.28rem;
}

.file-panel-row.active-spec .file-panel-badge {
  background: #dbeafe;
  color: #1d4ed8;
}

.file-panel-row.active-input .file-panel-badge {
  background: #dcfce7;
  color: #15803d;
}

.file-panel-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  flex: none;
  opacity: 0;
  padding-right: 0.2rem;
  transition: opacity 0.18s ease;
}

.file-panel-row:hover .file-panel-actions,
.file-panel-row:focus-within .file-panel-actions {
  opacity: 1;
}

.file-panel-action {
  position: relative;
  width: 1.35rem;
  height: 1.35rem;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.file-panel-action:hover {
  border-color: #93c5fd;
  color: #1d4ed8;
  z-index: 20;
}

.file-panel-action svg,
.file-panel-action .app-icon {
  width: 0.85rem;
  height: 0.85rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.file-panel-viewer {
  margin: 0;
  min-width: 0;
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0.65rem 0.75rem;
  background: #ffffff;
  color: #1f2933;
  font: 0.76rem/1.55 "Menlo", "Consolas", "Ubuntu Mono", monospace;
  white-space: pre;
}

.file-preview {
  position: absolute;
  inset: 0.75rem;
  z-index: 20;
  display: flex;
  flex-direction: column;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.24);
}

.file-preview-header {
  min-height: 2.35rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.45rem 0.65rem;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 8px 8px 0 0;
  background: #f8fafc;
}

.file-preview-title-group {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.file-preview-kicker {
  color: #334155;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.file-preview-title {
  min-width: 0;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.syntax-key {
  color: #2563eb;
}

.syntax-type-key {
  color: #2563eb;
  font-weight: 700;
}

.syntax-type-reference {
  color: #2563eb;
  font-weight: inherit;
}

.syntax-directive-key {
  color: #7c3aed;
  font-weight: inherit;
}

.syntax-field-key,
.syntax-field-reference {
  color: #b45309;
  font-weight: inherit;
}

.syntax-marker {
  color: #94a3b8;
}

.syntax-string {
  color: #0891b2;
}

.syntax-comment {
  color: #94a3b8;
}

.syntax-literal {
  color: #f97316;
}

.syntax-number {
  color: #16a34a;
}

.panel {
  flex: 1;
  min-height: 0;
  display: none;
  flex-direction: column;
  background: #ffffff;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  height: 100%;
  overflow: visible;
  position: relative;
  z-index: 0;
}

.panel.active {
  display: flex;
}

.panel-actions {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 7px;
  background: rgba(248, 250, 252, 0.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.icon-button {
  position: relative;
  width: 1.9rem;
  height: 1.9rem;
  border: 0;
  background: transparent;
  color: #475569;
  border-radius: 6px;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.icon-button:hover {
  background: #f1f5f9;
  color: #1d4ed8;
}

.icon-button:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.35);
  outline-offset: 2px;
}

.icon-button svg,
.icon-button .app-icon {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button.copied {
  color: #16a34a;
}

.toolbar-icon[data-tooltip]::after,
.view-button[data-tooltip]::after,
.input-clear[data-tooltip]::after,
.activity-button[data-tooltip]::after,
.mini-action[data-tooltip]::after,
.icon-button[data-tooltip]::after,
.file-panel-close[data-tooltip]::after,
.file-panel-action[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 50;
  width: max-content;
  max-width: 14rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2);
  color: #f8fafc;
  font: 600 0.68rem/1.25 "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -3px);
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0s linear 0.14s;
  visibility: hidden;
  white-space: nowrap;
}

.toolbar-icon[data-tooltip]:not(:hover):not(:focus-visible)::before,
.toolbar-icon[data-tooltip]:not(:hover):not(:focus-visible)::after,
.view-button[data-tooltip]:not(:hover):not(:focus-visible)::before,
.view-button[data-tooltip]:not(:hover):not(:focus-visible)::after,
.input-clear[data-tooltip]:not(:hover):not(:focus-visible)::before,
.input-clear[data-tooltip]:not(:hover):not(:focus-visible)::after,
.activity-button[data-tooltip]:not(:hover):not(:focus-visible)::before,
.activity-button[data-tooltip]:not(:hover):not(:focus-visible)::after,
.mini-action[data-tooltip]:not(:hover):not(:focus-visible)::before,
.mini-action[data-tooltip]:not(:hover):not(:focus-visible)::after,
.icon-button[data-tooltip]:not(:hover):not(:focus-visible)::before,
.icon-button[data-tooltip]:not(:hover):not(:focus-visible)::after,
.file-panel-close[data-tooltip]:not(:hover):not(:focus-visible)::before,
.file-panel-close[data-tooltip]:not(:hover):not(:focus-visible)::after,
.file-panel-action[data-tooltip]:not(:hover):not(:focus-visible)::before,
.file-panel-action[data-tooltip]:not(:hover):not(:focus-visible)::after {
  transition-delay: 0s;
}

.toolbar-icon[data-tooltip]::before,
.view-button[data-tooltip]::before,
.input-clear[data-tooltip]::before,
.activity-button[data-tooltip]::before,
.mini-action[data-tooltip]::before,
.icon-button[data-tooltip]::before,
.file-panel-close[data-tooltip]::before,
.file-panel-action[data-tooltip]::before {
  content: "";
  position: absolute;
  top: calc(100% + 3px);
  left: 50%;
  z-index: 51;
  width: 8px;
  height: 8px;
  background: rgba(15, 23, 42, 0.95);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -3px) rotate(45deg);
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0s linear 0.14s;
  visibility: hidden;
}

.toolbar-icon[data-tooltip]:hover::before,
.toolbar-icon[data-tooltip]:hover::after,
.toolbar-icon[data-tooltip]:focus-visible::before,
.toolbar-icon[data-tooltip]:focus-visible::after,
.view-button[data-tooltip]:hover::before,
.view-button[data-tooltip]:hover::after,
.view-button[data-tooltip]:focus-visible::before,
.view-button[data-tooltip]:focus-visible::after,
.input-clear[data-tooltip]:hover::before,
.input-clear[data-tooltip]:hover::after,
.input-clear[data-tooltip]:focus-visible::before,
.input-clear[data-tooltip]:focus-visible::after,
.activity-button[data-tooltip]:hover::before,
.activity-button[data-tooltip]:hover::after,
.activity-button[data-tooltip]:focus-visible::before,
.activity-button[data-tooltip]:focus-visible::after,
.mini-action[data-tooltip]:hover::before,
.mini-action[data-tooltip]:hover::after,
.mini-action[data-tooltip]:focus-visible::before,
.mini-action[data-tooltip]:focus-visible::after,
.icon-button[data-tooltip]:hover::before,
.icon-button[data-tooltip]:hover::after,
.icon-button[data-tooltip]:focus-visible::before,
.icon-button[data-tooltip]:focus-visible::after,
.file-panel-close[data-tooltip]:hover::before,
.file-panel-close[data-tooltip]:hover::after,
.file-panel-close[data-tooltip]:focus-visible::before,
.file-panel-close[data-tooltip]:focus-visible::after,
.file-panel-action[data-tooltip]:hover::before,
.file-panel-action[data-tooltip]:hover::after,
.file-panel-action[data-tooltip]:focus-visible::before,
.file-panel-action[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
  transition-delay: var(--button-tooltip-delay), var(--button-tooltip-delay), 0s;
  visibility: visible;
}

.toolbar-icon[data-tooltip]:hover::before,
.toolbar-icon[data-tooltip]:focus-visible::before,
.view-button[data-tooltip]:hover::before,
.view-button[data-tooltip]:focus-visible::before,
.input-clear[data-tooltip]:hover::before,
.input-clear[data-tooltip]:focus-visible::before,
.activity-button[data-tooltip]:hover::before,
.activity-button[data-tooltip]:focus-visible::before,
.mini-action[data-tooltip]:hover::before,
.mini-action[data-tooltip]:focus-visible::before,
.icon-button[data-tooltip]:hover::before,
.icon-button[data-tooltip]:focus-visible::before,
.file-panel-close[data-tooltip]:hover::before,
.file-panel-close[data-tooltip]:focus-visible::before,
.file-panel-action[data-tooltip]:hover::before,
.file-panel-action[data-tooltip]:focus-visible::before {
  transform: translate(-50%, 0) rotate(45deg);
}

.toolbar-actions .toolbar-icon[data-tooltip]::after,
.toolbar-actions .view-button[data-tooltip]::after {
  top: calc(100% + 10px);
}

.panel-actions .icon-button[data-tooltip]::after {
  top: calc(100% + 10px);
}

.activity-rail-left .activity-button[data-tooltip]::after {
  top: 50%;
  left: calc(100% + 9px);
  transform: translate(-3px, -50%);
}

.activity-rail-left .activity-button[data-tooltip]::before {
  top: 50%;
  left: calc(100% + 5px);
  transform: translate(-3px, -50%) rotate(45deg);
}

.activity-rail-left .activity-button[data-tooltip]:hover::after,
.activity-rail-left .activity-button[data-tooltip]:focus-visible::after {
  transform: translate(0, -50%);
}

.activity-rail-left .activity-button[data-tooltip]:hover::before,
.activity-rail-left .activity-button[data-tooltip]:focus-visible::before {
  transform: translate(0, -50%) rotate(45deg);
}

.activity-rail-right .activity-button[data-tooltip]::after {
  top: 50%;
  left: auto;
  right: calc(100% + 9px);
  transform: translate(3px, -50%);
}

.activity-rail-right .activity-button[data-tooltip]::before {
  top: 50%;
  left: auto;
  right: calc(100% + 5px);
  transform: translate(3px, -50%) rotate(45deg);
}

.activity-rail-right .activity-button[data-tooltip]:hover::after,
.activity-rail-right .activity-button[data-tooltip]:focus-visible::after {
  transform: translate(0, -50%);
}

.activity-rail-right .activity-button[data-tooltip]:hover::before,
.activity-rail-right .activity-button[data-tooltip]:focus-visible::before {
  transform: translate(0, -50%) rotate(45deg);
}

.file-panel-action[data-tooltip]::after {
  left: auto;
  right: 0;
  max-width: 10rem;
  transform: translate(0, -3px);
}

.file-panel-action[data-tooltip]::before {
  left: auto;
  right: 0.42rem;
  transform: translate(0, -3px) rotate(45deg);
}

.file-panel-action[data-tooltip]:hover::after,
.file-panel-action[data-tooltip]:focus-visible::after {
  transform: translate(0, 0);
}

.file-panel-action[data-tooltip]:hover::before,
.file-panel-action[data-tooltip]:focus-visible::before {
  transform: translate(0, 0) rotate(45deg);
}

.theme-button[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  z-index: 50;
  width: max-content;
  max-width: 10rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2);
  color: #f8fafc;
  font: 600 0.68rem/1.25 "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 3px);
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0s linear 0.14s;
  visibility: hidden;
  white-space: nowrap;
}

.theme-button[data-tooltip]::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 3px);
  left: 50%;
  z-index: 51;
  width: 8px;
  height: 8px;
  background: rgba(15, 23, 42, 0.95);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 3px) rotate(45deg);
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0s linear 0.14s;
  visibility: hidden;
}

.theme-button[data-tooltip]:hover::before,
.theme-button[data-tooltip]:hover::after,
.theme-button[data-tooltip]:focus-visible::before,
.theme-button[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
  transition-delay: var(--button-tooltip-delay), var(--button-tooltip-delay), 0s;
  visibility: visible;
}

.theme-button[data-tooltip]:hover::before,
.theme-button[data-tooltip]:focus-visible::before {
  transform: translate(-50%, 0) rotate(45deg);
}

.panel-body {
  flex: 1;
  overflow: auto;
}

.semantic-path-tooltip {
  position: absolute;
  z-index: 60;
  width: max-content;
  min-width: 10rem;
  max-width: min(42rem, calc(100% - 2rem));
  padding: 0.5rem 0.55rem;
  border: 1px solid rgba(148, 163, 184, 0.36);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.18);
  pointer-events: none;
  opacity: 1;
  transform: translateY(0) scale(1);
  transform-origin: top left;
  visibility: visible;
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.2, 0, 0, 1), visibility 0s linear 0s;
}

.semantic-path-tooltip-hidden {
  opacity: 0;
  transform: translateY(6px) scale(0.98);
  transition-delay: 0s, 0s, 0.2s;
  visibility: hidden;
}

.semantic-path-tooltip-row {
  display: grid;
  grid-template-columns: 0.9rem minmax(0, 1fr);
  align-items: center;
  gap: 0.28rem;
  margin-left: calc(var(--semantic-path-depth) * 0.9rem);
  min-height: 1.35rem;
  color: #334155;
  font: 0.72rem/1.35 "Menlo", "Consolas", "Ubuntu Mono", monospace;
  animation: semantic-tooltip-row-enter 0.14s ease both;
  animation-delay: calc(var(--semantic-path-depth) * 18ms);
}

.semantic-path-tooltip-row:last-child {
  font-weight: 700;
}

.semantic-path-tooltip-marker {
  color: #94a3b8;
  text-align: center;
}

.semantic-path-tooltip-row:last-child .semantic-path-tooltip-marker {
  color: #2563eb;
}

.semantic-path-tooltip-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.semantic-path-tooltip-row-type .semantic-path-tooltip-label {
  color: #1d4ed8;
}

.semantic-path-tooltip-row-field .semantic-path-tooltip-label {
  color: #92400e;
}

.semantic-path-tooltip-field {
  color: #92400e;
}

.semantic-path-tooltip-field-separator {
  color: #94a3b8;
  padding: 0 0.35rem;
  font-weight: 600;
}

.semantic-path-tooltip-field-type {
  color: #1d4ed8;
}

.semantic-path-tooltip-text {
  min-width: min-content;
  max-width: min(32rem, calc(100% - 2rem));
  border-color: rgba(59, 130, 246, 0.24);
  background: rgba(248, 250, 252, 0.98);
}

.semantic-path-tooltip-text .semantic-path-tooltip-row {
  display: block;
  margin-left: 0;
  min-height: auto;
}

.semantic-path-tooltip-text .semantic-path-tooltip-marker {
  display: none;
}

.semantic-path-tooltip-text .semantic-path-tooltip-label {
  display: inline-block;
  max-width: 28rem;
  white-space: pre-wrap;
  overflow: visible;
  text-overflow: clip;
  color: #1f2933;
  font-weight: 500;
}

@keyframes semantic-tooltip-row-enter {
  from {
    opacity: 0;
    transform: translateY(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .semantic-path-tooltip,
  .semantic-path-tooltip-row {
    animation: none;
    transition: none;
  }
}

.interactive-view {
  min-height: 260px;
  font: 0.82rem/1.55 "Menlo", "Consolas", "Ubuntu Mono", monospace;
  color: #0f172a;
  padding: 1.35rem 1.25rem 1.25rem;
  position: relative;
}

.json-container {
  min-height: 260px;
  font: 0.82rem/1.6 "Menlo", "Consolas", "Ubuntu Mono", monospace;
  color: #1f2933;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.35rem 1.25rem;
}


.json-text {
  margin: 0;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #ffffff;
  color: #1f2933;
  line-height: 1.55;
  white-space: pre;
  overflow: auto;
  min-height: 100%;
}

.json-tree-text {
  white-space: normal;
}

.json-match-node {
  display: block;
  border-radius: 5px;
  margin-left: -0.25rem;
  padding-left: 0.25rem;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.json-match-node.class-highlight-hover {
  background: rgba(219, 234, 254, 0.72);
  box-shadow: 0 0 0 2px rgba(191, 219, 254, 0.65);
}

.json-match-node.class-highlight-pinned {
  background: rgba(255, 237, 213, 0.82);
  box-shadow: 0 0 0 2px rgba(253, 186, 116, 0.55);
}

.json-empty {
  color: #6b7280;
  font-style: italic;
}

.match-tree {
  min-height: 100%;
  padding: 1rem 1.1rem;
  overflow: auto;
  color: #334155;
  font: 0.82rem/1.68 "Menlo", "Consolas", "Ubuntu Mono", monospace;
}

.match-tree-node {
  margin: 0.08rem 0;
}

.match-tree-summary {
  display: flex;
  align-items: baseline;
  gap: 0.42rem;
  min-height: 1.5rem;
  cursor: pointer;
  outline: none;
}

.match-tree-summary::marker {
  content: "";
}

.match-tree-toggle {
  flex: 0 0 0.9rem;
  width: 0.9rem;
  height: 0.9rem;
  align-self: center;
  position: relative;
  color: #64748b;
}

.match-tree-toggle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.38rem;
  height: 0.38rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translate(-55%, -65%) rotate(45deg);
  transition: transform 0.14s ease;
}

.match-tree-node:not(.match-tree-has-children) > .match-tree-summary {
  cursor: default;
}

.match-tree-node:not(.match-tree-has-children) > .match-tree-summary .match-tree-toggle::before {
  display: none;
}

.match-tree-node:not([open]) > .match-tree-summary .match-tree-toggle::before {
  transform: translate(-65%, -50%) rotate(-45deg);
}

.match-tree-key {
  flex: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0.32rem;
  font-weight: 500;
}

.match-tree-key-combined {
  align-items: center;
  min-height: 1.35rem;
  padding: 0.08rem 0.55rem;
  border: 1px solid rgba(217, 119, 6, 0.42);
  border-radius: 8px;
  background: rgba(251, 191, 36, 0.08);
}

.match-tree-key-type-only {
  align-items: center;
  min-height: 1.35rem;
  padding: 0.08rem 0.55rem;
  border: 1px solid rgba(37, 99, 235, 0.32);
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.06);
}

.match-tree .node-field {
  display: inline-flex;
  align-items: center;
  min-height: 1.05rem;
  padding: 0.02rem 0.42rem;
  border: 1px solid rgba(217, 119, 6, 0.45);
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.1);
  color: #92400e;
  font-size: 0.74rem;
  font-weight: 600;
}

.match-tree-key-combined .node-field {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #b45309;
  font-size: 0.82rem;
  font-weight: 700;
}

.match-tree .node-type {
  color: #2563eb;
  font-weight: 600;
}

.match-tree-key-combined .node-type {
  font-weight: 700;
}

.match-tree-text {
  min-width: 0;
  color: #475569;
  font-weight: 400;
  opacity: 0.78;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-tree-children {
  margin-left: 1.08rem;
  padding-left: 0.85rem;
  border-left: 1px solid rgba(148, 163, 184, 0.52);
}

.json-warning {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  color: #7c2d12;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  font-size: 0.78rem;
}

.json-plain {
  margin: 0;
  padding: 1rem;
  border-radius: 12px;
  background: #0f172a;
  color: #e2e8f0;
  overflow: auto;
}

.json-tree {
  list-style: none;
  margin: 0;
  padding-left: 1rem;
}

.json-node {
  margin: 0.15rem 0;
}

.json-branch {
  margin: 0.08rem 0;
}

.json-branch-summary {
  cursor: pointer;
  color: #1f2933;
  min-height: 1.3rem;
  outline: none;
}

.json-branch-summary::marker {
  color: #94a3b8;
}

.json-branch-summary:focus-visible {
  border-radius: 5px;
  outline: 3px solid rgba(37, 99, 235, 0.32);
  outline-offset: 2px;
}

.json-branch-children {
  margin-left: 1.05rem;
  padding-left: 0.8rem;
  border-left: 1px solid rgba(148, 163, 184, 0.34);
}

.json-branch-close,
.json-line {
  min-height: 1.3rem;
}

.json-branch-close {
  color: #1f2933;
}

.json-bracket {
  color: #1f2933;
}

.json-collapsed-preview {
  display: none;
  color: #94a3b8;
}

.json-branch:not([open]) .json-collapsed-preview {
  display: inline;
}

.json-summary {
  position: relative;
  cursor: pointer;
  font-weight: 600;
  color: #1f2933;
}

.json-summary::marker {
  color: #94a3b8;
}

.json-summary:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  border-radius: 6px;
}

.json-key {
  color: #2563eb;
}

.json-root {
  color: #1f2933;
  font-weight: 600;
}

.json-count {
  margin-left: 0.5rem;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.04em;
  opacity: 0.5;
}

.json-array-count {
  display: none;
}

.json-branch:not([open]) > .json-branch-summary .json-array-count {
  display: inline-flex;
  opacity: 0.8;
}

.json-children {
  margin-left: 1.1rem;
  padding-left: 0.8rem;
  border-left: 2px solid rgba(148, 163, 184, 0.35);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.json-entry {
  display: flex;
  gap: 0.35rem;
  align-items: baseline;
}

.json-colon {
  color: #94a3b8;
  margin-right: 0.35rem;
}

.json-value-string {
  color: #0ea5e9;
}

.json-value-number {
  color: #22c55e;
}

.json-value-boolean {
  color: #f97316;
}

.json-value-null {
  color: #ef4444;
}

.json-token-key {
  color: #2563eb;
}

.json-token-string {
  color: #0891b2;
}

.json-token-number {
  color: #16a34a;
}

.json-token-boolean {
  color: #f97316;
}

.json-token-null {
  color: #ef4444;
}

.empty-state {
  color: #6b7280;
  font-style: italic;
}

@media (max-width: 900px) {
  body {
    height: auto;
    min-height: 100vh;
    overflow: auto;
  }

  .page {
    height: auto;
    min-height: 100vh;
  }

  .toolbar,
  .workspace,
  .workbench-main,
  .panels {
    padding-left: 0;
    padding-right: 0;
  }

  .toolbar {
    align-items: stretch;
    padding: 0.6rem;
  }

  .toolbar-brand {
    width: 100%;
    min-width: 0;
  }

  .panel {
    height: auto;
    min-height: 320px;
  }

  .workspace {
    flex-direction: column;
  }

  .output-body {
    flex-direction: column;
  }

  .activity-rail {
    width: 100%;
    min-height: 2.25rem;
    flex-direction: row;
    justify-content: flex-start;
    border-width: 0 0 1px 0;
  }

  .semantic-outline {
    width: 100%;
    min-width: 0;
    max-height: 32vh;
    border-left: 0;
    border-bottom: 1px solid #cbd5e1;
  }

  .semantic-outline-resizer {
    display: none;
  }

  .file-panel {
    width: 100%;
    min-width: 0;
    max-height: 42vh;
    border-right: 0;
    border-top: 1px solid #cbd5e1;
  }

  .file-panel-body {
    min-height: 20rem;
  }

  .file-preview {
    position: fixed;
    inset: 4rem 0.75rem 2.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
  }

  .file-panel-resizer {
    display: none;
  }

  .class-filter {
    width: 100%;
  }

  .filter-box,
  .filter-box input {
    width: 100%;
    max-width: none;
  }

  .toolbar-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .view-switch {
    margin-left: 0;
    padding-left: 0.4rem;
  }

  .statusbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.35rem 0.6rem;
  }

  .statusbar-right {
    width: 100%;
    justify-content: space-between;
  }

  .status-meta {
    width: 100%;
    justify-content: space-between;
    gap: 0.45rem;
  }

  .panel-actions {
    top: 0.5rem;
    right: 0.5rem;
  }
}

.json-entry.class-highlight-match,
.json-summary.class-highlight-match,
.json-text.class-highlight-match {
  background: #fff7ed;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(234, 88, 12, 0.35);
}

.json-entry.class-highlight-match .json-key,
.json-summary.class-highlight-match .json-key {
  color: #c2410c;
}

.json-entry.class-highlight-match .json-value-string,
.json-entry.class-highlight-match .json-value-number,
.json-entry.class-highlight-match .json-value-boolean,
.json-entry.class-highlight-match .json-value-null {
  color: #ea580c;
}

.json-entry.class-highlight-dim,
.json-summary.class-highlight-dim,
.json-text.class-highlight-dim {
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-switch {
    background: #0f172a;
    border-color: #334155;
  }

  :root:not([data-theme]) .theme-button {
    color: #94a3b8;
  }

  :root:not([data-theme]) .theme-button:hover,
  :root:not([data-theme]) .theme-button:focus-visible {
    background: #1e293b;
    color: #f8fafc;
  }

  :root:not([data-theme]) .theme-button.active {
    background: #1e3a8a;
    color: #bfdbfe;
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.34);
  }
}

:root[data-theme="dark"] .theme-switch {
  background: #0f172a;
  border-color: #334155;
}

:root[data-theme="dark"] .theme-button {
  color: #94a3b8;
}

:root[data-theme="dark"] .theme-button:hover,
:root[data-theme="dark"] .theme-button:focus-visible {
  background: #1e293b;
  color: #f8fafc;
}

:root[data-theme="dark"] .theme-button.active {
  background: #1e3a8a;
  color: #bfdbfe;
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.34);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .activity-rail,
  :root:not([data-theme]) .semantic-outline,
  :root:not([data-theme]) .file-panel,
  :root:not([data-theme]) .file-panel-list,
  :root:not([data-theme]) .output-header,
  :root:not([data-theme]) .semantic-outline-header,
  :root:not([data-theme]) .file-panel-header,
  :root:not([data-theme]) .file-preview-header,
  :root:not([data-theme]) .statusbar {
    background: #1f2229;
    border-color: #3a404c;
  }

  :root:not([data-theme]) .output-body,
  :root:not([data-theme]) .panel,
  :root:not([data-theme]) .result-area,
  :root:not([data-theme]) .file-panel-viewer,
  :root:not([data-theme]) .file-preview,
  :root:not([data-theme]) .json-text {
    background: #171a21;
  }

  :root:not([data-theme]) .view-button.active,
  :root:not([data-theme]) .activity-button.active,
  :root:not([data-theme]) .file-panel-file.active,
  :root:not([data-theme]) .theme-button.active {
    background: #30384a;
    color: #d7e4f5;
    box-shadow: inset 0 0 0 1px rgba(122, 162, 214, 0.42);
  }

  :root:not([data-theme]) .file-panel-row.active-spec,
  :root:not([data-theme]) .file-panel-row.active-input,
  :root:not([data-theme]) .file-panel-row.dependency:not(.active-spec):not(.active-input) {
    background: rgba(48, 56, 74, 0.56);
  }

  :root:not([data-theme]) .filter-option:hover,
  :root:not([data-theme]) .filter-option:focus-visible,
  :root:not([data-theme]) .filter-type-label:hover,
  :root:not([data-theme]) .filter-type-label:focus-visible,
  :root:not([data-theme]) .filter-option.outline-hover,
  :root:not([data-theme]) .filter-type-label.outline-hover,
  :root:not([data-theme]) .view-button:hover,
  :root:not([data-theme]) .activity-button:hover,
  :root:not([data-theme]) .activity-button:focus-visible,
  :root:not([data-theme]) .mini-action:hover,
  :root:not([data-theme]) .mini-action:focus-visible,
  :root:not([data-theme]) .icon-button:hover,
  :root:not([data-theme]) .file-panel-close:hover,
  :root:not([data-theme]) .file-panel-close:focus-visible,
  :root:not([data-theme]) .input-clear:hover,
  :root:not([data-theme]) .file-tree-folder-name:hover,
  :root:not([data-theme]) .file-tree-folder-name:focus-visible,
  :root:not([data-theme]) .file-panel-file:hover,
  :root:not([data-theme]) .theme-button:hover,
  :root:not([data-theme]) .theme-button:focus-visible {
    background: #2a2f3a;
    color: #f0f4fa;
  }

  :root:not([data-theme]) .file-icon-yaml,
  :root:not([data-theme]) .filter-type-label,
  :root:not([data-theme]) .json-key,
  :root:not([data-theme]) .json-token-key,
  :root:not([data-theme]) .status-link,
  :root:not([data-theme]) .semantic-path-tooltip-row-type .semantic-path-tooltip-label,
  :root:not([data-theme]) .semantic-path-tooltip-field-type,
  :root:not([data-theme]) .syntax-key {
    color: #7aa2d6;
  }

  :root:not([data-theme]) .json-branch-summary,
  :root:not([data-theme]) .json-branch-close,
  :root:not([data-theme]) .json-bracket {
    color: #d7dce4;
  }

  :root:not([data-theme]) .filter-field-option,
  :root:not([data-theme]) .semantic-path-tooltip-row-field .semantic-path-tooltip-label,
  :root:not([data-theme]) .semantic-path-tooltip-field {
    color: #c9a26d;
  }
}

:root[data-theme="dark"] .activity-rail,
:root[data-theme="dark"] .semantic-outline,
:root[data-theme="dark"] .file-panel,
:root[data-theme="dark"] .file-panel-list,
:root[data-theme="dark"] .output-header,
:root[data-theme="dark"] .semantic-outline-header,
:root[data-theme="dark"] .file-panel-header,
:root[data-theme="dark"] .file-preview-header,
:root[data-theme="dark"] .statusbar {
  background: #1f2229;
  border-color: #3a404c;
}

:root[data-theme="dark"] .output-body,
:root[data-theme="dark"] .panel,
:root[data-theme="dark"] .result-area,
:root[data-theme="dark"] .file-panel-viewer,
:root[data-theme="dark"] .file-preview,
:root[data-theme="dark"] .json-text {
  background: #171a21;
  border-color: #3a404c;
}

:root[data-theme="dark"] .view-button.active,
:root[data-theme="dark"] .activity-button.active,
:root[data-theme="dark"] .file-panel-file.active,
:root[data-theme="dark"] .theme-button.active {
  background: #30384a;
  color: #d7e4f5;
  box-shadow: inset 0 0 0 1px rgba(122, 162, 214, 0.42);
}

:root[data-theme="dark"] .file-panel-row.active-spec,
:root[data-theme="dark"] .file-panel-row.active-input,
:root[data-theme="dark"] .file-panel-row.dependency:not(.active-spec):not(.active-input) {
  background: rgba(48, 56, 74, 0.56);
}

:root[data-theme="dark"] .filter-option:hover,
:root[data-theme="dark"] .filter-option:focus-visible,
:root[data-theme="dark"] .filter-type-label:hover,
:root[data-theme="dark"] .filter-type-label:focus-visible,
:root[data-theme="dark"] .filter-option.outline-hover,
:root[data-theme="dark"] .filter-type-label.outline-hover,
:root[data-theme="dark"] .view-button:hover,
:root[data-theme="dark"] .activity-button:hover,
:root[data-theme="dark"] .activity-button:focus-visible,
:root[data-theme="dark"] .mini-action:hover,
:root[data-theme="dark"] .mini-action:focus-visible,
:root[data-theme="dark"] .icon-button:hover,
:root[data-theme="dark"] .file-panel-close:hover,
:root[data-theme="dark"] .file-panel-close:focus-visible,
:root[data-theme="dark"] .input-clear:hover,
:root[data-theme="dark"] .file-tree-folder-name:hover,
:root[data-theme="dark"] .file-tree-folder-name:focus-visible,
:root[data-theme="dark"] .file-panel-file:hover,
:root[data-theme="dark"] .theme-button:hover,
:root[data-theme="dark"] .theme-button:focus-visible {
  background: #2a2f3a;
  color: #f0f4fa;
}

:root[data-theme="dark"] .file-icon-yaml,
:root[data-theme="dark"] .filter-type-label,
:root[data-theme="dark"] .json-key,
:root[data-theme="dark"] .json-token-key,
:root[data-theme="dark"] .status-link,
:root[data-theme="dark"] .semantic-path-tooltip-row-type .semantic-path-tooltip-label,
:root[data-theme="dark"] .semantic-path-tooltip-field-type,
:root[data-theme="dark"] .syntax-key {
  color: #7aa2d6;
}

:root[data-theme="dark"] .json-branch-summary,
:root[data-theme="dark"] .json-branch-close,
:root[data-theme="dark"] .json-bracket {
  color: #d7dce4;
}

:root[data-theme="dark"] .filter-field-option,
:root[data-theme="dark"] .semantic-path-tooltip-row-field .semantic-path-tooltip-label,
:root[data-theme="dark"] .semantic-path-tooltip-field {
  color: #c9a26d;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) body,
  :root:not([data-theme]) .app-shell {
    background: #171a21;
    color: #d7dce4;
  }

  :root:not([data-theme]) .app-header {
    background: #151922;
    border-color: #333a46;
  }

  :root:not([data-theme]) .activity-rail,
  :root:not([data-theme]) .semantic-outline,
  :root:not([data-theme]) .file-panel,
  :root:not([data-theme]) .file-panel-list,
  :root:not([data-theme]) .output-header,
  :root:not([data-theme]) .semantic-outline-header,
  :root:not([data-theme]) .file-panel-header,
  :root:not([data-theme]) .file-preview-header,
  :root:not([data-theme]) .statusbar {
    background: #1f2229;
    border-color: #3a404c;
  }

  :root:not([data-theme]) .output-body,
  :root:not([data-theme]) .panel,
  :root:not([data-theme]) .result-area,
  :root:not([data-theme]) .file-panel-viewer,
  :root:not([data-theme]) .file-preview,
  :root:not([data-theme]) .json-text {
    background: #171a21;
    color: #d7dce4;
  }

  :root:not([data-theme]) .view-button.active,
  :root:not([data-theme]) .activity-button.active,
  :root:not([data-theme]) .file-panel-file.active,
  :root:not([data-theme]) .theme-button.active {
    background: #30384a;
    color: #d7e4f5;
    box-shadow: inset 0 0 0 1px rgba(122, 162, 214, 0.42);
  }

  :root:not([data-theme]) .file-panel-row.active-spec,
  :root:not([data-theme]) .file-panel-row.active-input,
  :root:not([data-theme]) .file-panel-row.dependency:not(.active-spec):not(.active-input) {
    background: rgba(48, 56, 74, 0.56);
  }

  :root:not([data-theme]) .view-button:hover,
  :root:not([data-theme]) .activity-button:hover,
  :root:not([data-theme]) .activity-button:focus-visible,
  :root:not([data-theme]) .mini-action:hover,
  :root:not([data-theme]) .mini-action:focus-visible,
  :root:not([data-theme]) .icon-button:hover,
  :root:not([data-theme]) .file-panel-close:hover,
  :root:not([data-theme]) .file-panel-close:focus-visible,
  :root:not([data-theme]) .input-clear:hover,
  :root:not([data-theme]) .file-tree-folder-name:hover,
  :root:not([data-theme]) .file-tree-folder-name:focus-visible,
  :root:not([data-theme]) .file-panel-file:hover,
  :root:not([data-theme]) .filter-option:hover,
  :root:not([data-theme]) .filter-option:focus-visible,
  :root:not([data-theme]) .filter-type-label:hover,
  :root:not([data-theme]) .filter-type-label:focus-visible,
  :root:not([data-theme]) .filter-option.outline-hover,
  :root:not([data-theme]) .filter-type-label.outline-hover,
  :root:not([data-theme]) .theme-button:hover,
  :root:not([data-theme]) .theme-button:focus-visible {
    background: #2a2f3a;
    color: #f0f4fa;
  }

  :root:not([data-theme]) .filter-option.outline-pinned,
  :root:not([data-theme]) .filter-type-label.outline-pinned,
  :root:not([data-theme]) .json-match-node.class-highlight-pinned,
  :root:not([data-theme]) .json-entry.class-highlight-match,
  :root:not([data-theme]) .json-summary.class-highlight-match,
  :root:not([data-theme]) .json-text.class-highlight-match {
    background: rgba(91, 54, 42, 0.72);
    color: #f1c7a2;
    box-shadow: inset 0 0 0 1px rgba(201, 125, 83, 0.42);
  }

  :root:not([data-theme]) .json-match-node.class-highlight-hover {
    background: rgba(48, 56, 74, 0.76);
    box-shadow: 0 0 0 2px rgba(122, 162, 214, 0.28);
  }





  :root:not([data-theme]) .file-icon-yaml,
  :root:not([data-theme]) .filter-type-label,
  :root:not([data-theme]) .json-key,
  :root:not([data-theme]) .json-token-key,
  :root:not([data-theme]) .status-link,
  :root:not([data-theme]) .semantic-path-tooltip-row-type .semantic-path-tooltip-label,
  :root:not([data-theme]) .semantic-path-tooltip-field-type,
  :root:not([data-theme]) .syntax-key {
    color: #7aa2d6;
  }

  :root:not([data-theme]) .filter-field-option,
  :root:not([data-theme]) .semantic-path-tooltip-row-field .semantic-path-tooltip-label,
  :root:not([data-theme]) .semantic-path-tooltip-field {
    color: #c9a26d;
  }


  :root:not([data-theme]) .semantic-path-tooltip {
    background: rgba(31, 34, 40, 0.98);
    border-color: rgba(86, 95, 112, 0.9);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.48);
  }

  :root:not([data-theme]) .semantic-path-tooltip-text {
    background: rgba(31, 34, 40, 0.98);
    border-color: rgba(122, 162, 214, 0.24);
  }

  :root:not([data-theme]) .semantic-path-tooltip-text .semantic-path-tooltip-label {
    color: #d7dce4;
  }

  :root:not([data-theme]) .status-warning {
    background: rgba(91, 54, 42, 0.58);
    border-color: rgba(201, 125, 83, 0.48);
    color: #f1c7a2;
  }

  :root:not([data-theme]) .status-warning:hover,
  :root:not([data-theme]) .status-warning:focus-visible,
  :root:not([data-theme]) .status-warning[aria-expanded="true"] {
    background: rgba(113, 63, 38, 0.76);
    border-color: rgba(242, 177, 121, 0.58);
  }

  :root:not([data-theme]) .warnings-panel {
    background: #1f2229;
    border-color: #3a404c;
    color: #d7dce4;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.46);
  }

  :root:not([data-theme]) .warnings-panel-header {
    border-color: #3a404c;
    color: #d7dce4;
  }

  :root:not([data-theme]) .warning-item {
    background: rgba(91, 54, 42, 0.36);
  }

  :root:not([data-theme]) .warning-item-title {
    color: #f1c7a2;
  }

  :root:not([data-theme]) .warning-item-message {
    color: #d7dce4;
  }

  :root:not([data-theme]) .warning-item-recommendation {
    color: #a8b3c3;
  }

  :root:not([data-theme]) .match-tree {
    color: #d7dce4;
  }

  :root:not([data-theme]) .match-tree .node-field {
    background: rgba(139, 88, 38, 0.24);
    border-color: rgba(214, 164, 95, 0.52);
    color: #d6a45f;
  }

  :root:not([data-theme]) .match-tree-key-combined {
    background: rgba(139, 88, 38, 0.18);
    border-color: rgba(214, 164, 95, 0.5);
  }

  :root:not([data-theme]) .match-tree-key-type-only {
    background: rgba(64, 91, 142, 0.16);
    border-color: rgba(138, 180, 248, 0.44);
  }

  :root:not([data-theme]) .match-tree-key-combined .node-field {
    background: transparent;
    border-color: transparent;
    color: #d6a45f;
  }

  :root:not([data-theme]) .match-tree .node-type {
    color: #8ab4f8;
  }

  :root:not([data-theme]) .match-tree-text {
    color: #d7dce4;
    opacity: 0.72;
  }

  :root:not([data-theme]) .match-tree-children {
    border-color: rgba(127, 140, 163, 0.46);
  }
}

:root[data-theme="dark"] body,
:root[data-theme="dark"] .app-shell {
  background: #171a21;
  color: #d7dce4;
}

:root[data-theme="dark"] .app-header {
  background: #151922;
  border-color: #333a46;
}

:root[data-theme="dark"] .activity-rail,
:root[data-theme="dark"] .semantic-outline,
:root[data-theme="dark"] .file-panel,
:root[data-theme="dark"] .file-panel-list,
:root[data-theme="dark"] .output-header,
:root[data-theme="dark"] .semantic-outline-header,
:root[data-theme="dark"] .file-panel-header,
:root[data-theme="dark"] .file-preview-header,
:root[data-theme="dark"] .statusbar {
  background: #1f2229;
  border-color: #3a404c;
}

:root[data-theme="dark"] .output-body,
  :root[data-theme="dark"] .panel,
  :root[data-theme="dark"] .result-area,
  :root[data-theme="dark"] .file-panel-viewer,
  :root[data-theme="dark"] .file-preview,
  :root[data-theme="dark"] .json-text {
  background: #171a21;
  border-color: #3a404c;
  color: #d7dce4;
}

:root[data-theme="dark"] .view-button.active,
:root[data-theme="dark"] .activity-button.active,
:root[data-theme="dark"] .file-panel-file.active,
:root[data-theme="dark"] .theme-button.active {
  background: #30384a;
  color: #d7e4f5;
  box-shadow: inset 0 0 0 1px rgba(122, 162, 214, 0.42);
}

:root[data-theme="dark"] .file-panel-row.active-spec,
:root[data-theme="dark"] .file-panel-row.active-input,
:root[data-theme="dark"] .file-panel-row.dependency:not(.active-spec):not(.active-input) {
  background: rgba(48, 56, 74, 0.56);
}

:root[data-theme="dark"] .view-button:hover,
:root[data-theme="dark"] .activity-button:hover,
:root[data-theme="dark"] .activity-button:focus-visible,
:root[data-theme="dark"] .mini-action:hover,
:root[data-theme="dark"] .mini-action:focus-visible,
:root[data-theme="dark"] .icon-button:hover,
:root[data-theme="dark"] .file-panel-close:hover,
:root[data-theme="dark"] .file-panel-close:focus-visible,
:root[data-theme="dark"] .input-clear:hover,
:root[data-theme="dark"] .file-tree-folder-name:hover,
:root[data-theme="dark"] .file-tree-folder-name:focus-visible,
:root[data-theme="dark"] .file-panel-file:hover,
:root[data-theme="dark"] .filter-option:hover,
:root[data-theme="dark"] .filter-option:focus-visible,
:root[data-theme="dark"] .filter-type-label:hover,
:root[data-theme="dark"] .filter-type-label:focus-visible,
:root[data-theme="dark"] .filter-option.outline-hover,
:root[data-theme="dark"] .filter-type-label.outline-hover,
:root[data-theme="dark"] .theme-button:hover,
:root[data-theme="dark"] .theme-button:focus-visible {
  background: #2a2f3a;
  color: #f0f4fa;
}

:root[data-theme="dark"] .filter-option.outline-pinned,
:root[data-theme="dark"] .filter-type-label.outline-pinned,
:root[data-theme="dark"] .json-match-node.class-highlight-pinned,
:root[data-theme="dark"] .json-entry.class-highlight-match,
:root[data-theme="dark"] .json-summary.class-highlight-match,
:root[data-theme="dark"] .json-text.class-highlight-match {
  background: rgba(91, 54, 42, 0.72);
  color: #f1c7a2;
  box-shadow: inset 0 0 0 1px rgba(201, 125, 83, 0.42);
}

:root[data-theme="dark"] .json-match-node.class-highlight-hover {
  background: rgba(48, 56, 74, 0.76);
  box-shadow: 0 0 0 2px rgba(122, 162, 214, 0.28);
}





:root[data-theme="dark"] .file-icon-yaml,
:root[data-theme="dark"] .filter-type-label,
:root[data-theme="dark"] .json-key,
:root[data-theme="dark"] .json-token-key,
:root[data-theme="dark"] .status-link,
:root[data-theme="dark"] .semantic-path-tooltip-row-type .semantic-path-tooltip-label,
:root[data-theme="dark"] .semantic-path-tooltip-field-type,
:root[data-theme="dark"] .syntax-key {
  color: #7aa2d6;
}

:root[data-theme="dark"] .filter-field-option,
:root[data-theme="dark"] .semantic-path-tooltip-row-field .semantic-path-tooltip-label,
:root[data-theme="dark"] .semantic-path-tooltip-field {
  color: #c9a26d;
}


:root[data-theme="dark"] .semantic-path-tooltip {
  background: rgba(31, 34, 40, 0.98);
  border-color: rgba(86, 95, 112, 0.9);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.48);
}

:root[data-theme="dark"] .semantic-path-tooltip-text {
  background: rgba(31, 34, 40, 0.98);
  border-color: rgba(122, 162, 214, 0.24);
}

:root[data-theme="dark"] .semantic-path-tooltip-text .semantic-path-tooltip-label {
  color: #d7dce4;
}

:root[data-theme="dark"] .status-warning {
  background: rgba(91, 54, 42, 0.58);
  border-color: rgba(201, 125, 83, 0.48);
  color: #f1c7a2;
}

:root[data-theme="dark"] .status-warning:hover,
:root[data-theme="dark"] .status-warning:focus-visible,
:root[data-theme="dark"] .status-warning[aria-expanded="true"] {
  background: rgba(113, 63, 38, 0.76);
  border-color: rgba(242, 177, 121, 0.58);
}

:root[data-theme="dark"] .warnings-panel {
  background: #1f2229;
  border-color: #3a404c;
  color: #d7dce4;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.46);
}

:root[data-theme="dark"] .warnings-panel-header {
  border-color: #3a404c;
  color: #d7dce4;
}

:root[data-theme="dark"] .warning-item {
  background: rgba(91, 54, 42, 0.36);
}

:root[data-theme="dark"] .warning-item-title {
  color: #f1c7a2;
}

:root[data-theme="dark"] .warning-item-message {
  color: #d7dce4;
}

:root[data-theme="dark"] .warning-item-recommendation {
  color: #a8b3c3;
}

:root[data-theme="dark"] .match-tree {
  color: #d7dce4;
}

:root[data-theme="dark"] .match-tree .node-field {
  background: rgba(139, 88, 38, 0.24);
  border-color: rgba(214, 164, 95, 0.52);
  color: #d6a45f;
}

:root[data-theme="dark"] .match-tree-key-combined {
  background: rgba(139, 88, 38, 0.18);
  border-color: rgba(214, 164, 95, 0.5);
}

:root[data-theme="dark"] .match-tree-key-type-only {
  background: rgba(64, 91, 142, 0.16);
  border-color: rgba(138, 180, 248, 0.44);
}

:root[data-theme="dark"] .match-tree-key-combined .node-field {
  background: transparent;
  border-color: transparent;
  color: #d6a45f;
}

:root[data-theme="dark"] .match-tree .node-type {
  color: #8ab4f8;
}

:root[data-theme="dark"] .match-tree-text {
  color: #d7dce4;
  opacity: 0.72;
}

:root[data-theme="dark"] .match-tree-children {
  border-color: rgba(127, 140, 163, 0.46);
}

@media (max-width: 900px) {
  body {
    height: 100vh;
    min-height: 0;
    overflow: hidden;
  }

  .page {
    height: 100vh;
    min-height: 0;
  }

  .toolbar {
    align-items: center;
    flex-wrap: nowrap;
    padding: 0.55rem 0.75rem;
  }

  .toolbar-brand {
    width: auto;
    min-width: 0;
    flex: 0 1 auto;
  }

  .toolbar-actions {
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
    justify-content: flex-end;
  }

  .workspace {
    flex-direction: row;
    padding-left: 0;
    padding-right: 0;
  }

  .activity-rail {
    width: 2.35rem;
    min-height: 0;
    flex-direction: column;
    justify-content: flex-start;
    border-width: 0 1px 0 0;
  }

  .activity-rail-right {
    border-width: 0 0 0 1px;
  }

  .workbench-main,
  .panels {
    padding-left: 0;
    padding-right: 0;
  }

  .panel {
    height: 100%;
    min-height: 0;
  }

  .output-body {
    flex-direction: row;
  }

  .semantic-outline {
    width: 17rem;
    min-width: 14rem;
    max-height: none;
    border-left-width: 1px;
    border-left-style: solid;
    border-bottom: 0;
  }

  .semantic-outline-resizer {
    display: block;
  }

  .file-panel {
    width: 18rem;
    min-width: 11rem;
    max-height: none;
    border-top: 0;
    border-right-width: 1px;
    border-right-style: solid;
  }

  .file-panel-body {
    min-height: 0;
  }

  .file-panel-resizer {
    display: block;
  }

  .file-preview {
    position: absolute;
    inset: 0.75rem;
    border-radius: 8px;
  }

  .statusbar {
    align-items: center;
    flex-direction: row;
    gap: 1rem;
    padding: 0.18rem 0.75rem;
  }

  .statusbar-right {
    width: auto;
    min-width: 0;
    justify-content: flex-end;
  }

  .status-meta {
    width: auto;
    justify-content: flex-end;
    gap: 0.75rem;
    overflow: hidden;
  }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .syntax-type-key,
  :root:not([data-theme]) .syntax-type-reference {
    color: #7aa2d6;
  }

  :root:not([data-theme]) .syntax-directive-key {
    color: #b89ce8;
  }

  :root:not([data-theme]) .syntax-field-key,
  :root:not([data-theme]) .syntax-field-reference {
    color: #c9a26d;
  }
}

:root[data-theme="dark"] .syntax-type-key,
:root[data-theme="dark"] .syntax-type-reference {
  color: #7aa2d6;
}

:root[data-theme="dark"] .syntax-directive-key {
  color: #b89ce8;
}

:root[data-theme="dark"] .syntax-field-key,
:root[data-theme="dark"] .syntax-field-reference {
  color: #c9a26d;
}

:root {
  --semantic-type: #2563eb;
  --semantic-field: #b45309;
  --semantic-private: #64748b;
  --semantic-highlight-bg: rgba(254, 243, 199, 0.7);
  --semantic-highlight-border: rgba(217, 119, 6, 0.24);
  --semantic-pinned-bg: rgba(253, 230, 138, 0.92);
  --semantic-pinned-border: rgba(217, 119, 6, 0.34);
}

.filter-type-label,
.semantic-path-tooltip-row-type .semantic-path-tooltip-label,
.semantic-path-tooltip-field-type {
  color: var(--semantic-type);
}

.filter-field-option,
.semantic-path-tooltip-row-field .semantic-path-tooltip-label,
.semantic-path-tooltip-field {
  color: var(--semantic-field);
}

.filter-private-type-label {
  color: var(--semantic-private);
}

.filter-option.outline-hover,
.filter-type-label.outline-hover,
.json-match-node.class-highlight-hover {
  background: var(--semantic-highlight-bg);
  box-shadow: inset 0 0 0 1px var(--semantic-highlight-border);
}

.filter-option.outline-pinned,
.filter-type-label.outline-pinned,
.json-match-node.class-highlight-pinned,
.json-entry.class-highlight-match,
.json-summary.class-highlight-match,
.json-text.class-highlight-match {
  background: var(--semantic-pinned-bg);
  box-shadow: inset 0 0 0 1px var(--semantic-pinned-border);
}

.filter-type-label.outline-hover,
.filter-type-label.outline-pinned {
  color: var(--semantic-type);
}

.filter-field-option.outline-hover,
.filter-field-option.outline-pinned {
  color: var(--semantic-field);
}

.json-match-node.class-highlight-hover {
  box-shadow: 0 0 0 2px var(--semantic-highlight-border);
}

.json-match-node.class-highlight-pinned {
  box-shadow: 0 0 0 2px var(--semantic-pinned-border);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --semantic-type: #8ab4f8;
    --semantic-field: #d6a45f;
    --semantic-private: #7f8ca3;
    --semantic-highlight-bg: rgba(120, 80, 38, 0.34);
    --semantic-highlight-border: rgba(232, 174, 105, 0.34);
    --semantic-pinned-bg: rgba(139, 88, 38, 0.48);
    --semantic-pinned-border: rgba(242, 190, 128, 0.44);
  }

  :root:not([data-theme]) .filter-box input {
    background: #151922;
    border-color: #3a404c;
    color: #d7dce4;
  }

  :root:not([data-theme]) .filter-box input::placeholder {
    color: #7f8ca3;
  }
}

:root[data-theme="dark"] {
  --semantic-type: #8ab4f8;
  --semantic-field: #d6a45f;
  --semantic-private: #7f8ca3;
  --semantic-highlight-bg: rgba(120, 80, 38, 0.34);
  --semantic-highlight-border: rgba(232, 174, 105, 0.34);
  --semantic-pinned-bg: rgba(139, 88, 38, 0.48);
  --semantic-pinned-border: rgba(242, 190, 128, 0.44);
}

:root[data-theme="dark"] .filter-box input {
  background: #151922;
  border-color: #3a404c;
  color: #d7dce4;
}

:root[data-theme="dark"] .filter-box input::placeholder {
  color: #7f8ca3;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .output-header,
  :root:not([data-theme]) .semantic-outline-header,
  :root:not([data-theme]) .class-filter {
    background: #1f2229;
    border-color: #3a404c;
  }

  :root:not([data-theme]) .output-title,
  :root:not([data-theme]) .semantic-outline-header {
    color: #d7dce4;
  }

  :root:not([data-theme]) .view-switch {
    border-left-color: #3a404c;
  }
}

:root[data-theme="dark"] .output-header,
:root[data-theme="dark"] .semantic-outline-header,
:root[data-theme="dark"] .class-filter {
  background: #1f2229;
  border-color: #3a404c;
}

:root[data-theme="dark"] .output-title,
:root[data-theme="dark"] .semantic-outline-header {
  color: #d7dce4;
}

:root[data-theme="dark"] .view-switch {
  border-left-color: #3a404c;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .json-text {
    border-color: transparent;
  }
}

:root[data-theme="dark"] .json-text {
  border-color: transparent;
}
