:root {
  color-scheme: dark;
  --bg-app: #05070a;
  --bg-shell: #090d12;
  --bg-sidebar: #0d131a;
  --bg-panel: #121922;
  --bg-panel-2: #18212b;
  --bg-control: #202a35;
  --bg-control-hover: #263342;
  --bg-selected: #243247;

  --border-subtle: #202a35;
  --border-default: #2d3947;
  --border-strong: #405064;

  --text-primary: #eef3f8;
  --text-secondary: #b4c0cc;
  --text-muted: #7f8b99;
  --text-dim: #5f6b78;

  --accent-cyan: #26d3e6;
  --accent-blue: #3b82f6;
  --accent-orange: #ff6a00;
  --accent-amber: #f5b84b;
  --accent-red: #ef4444;
  --accent-green: #22c55e;

  --font-sans: Inter, "IBM Plex Sans", "SF Pro Text", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --topbar-height: 50px;
  --timeline-height: 172px;
  --sidebar-width: 278px;
  --inspector-width: 338px;
}

* { box-sizing: border-box; }

html, body {
  min-height: 100%;
  margin: 0;
  background: var(--bg-app);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13px;
}

button, input, select, textarea {
  font: inherit;
}

.command-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr) var(--inspector-width);
  grid-template-rows: var(--topbar-height) minmax(0, 1fr) var(--timeline-height);
  grid-template-areas:
    "topbar topbar topbar"
    "sidebar workspace inspector"
    "timeline timeline timeline";
  background:
    radial-gradient(circle at 75% 0%, rgba(255, 106, 0, 0.12), transparent 32rem),
    radial-gradient(circle at 28% 25%, rgba(38, 211, 230, 0.07), transparent 26rem),
    var(--bg-app);
}

.topbar {
  grid-area: topbar;
  height: var(--topbar-height);
  display: grid;
  grid-template-columns: minmax(260px, 390px) minmax(280px, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid var(--border-default);
  background: rgba(9, 13, 18, 0.94);
  backdrop-filter: blur(18px);
}

.topbar-left, .topbar-right, .header-actions, .button-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-orange);
  color: #080a0c;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.topbar-title {
  display: grid;
  gap: 1px;
}

.kicker, .section-kicker, .panel-kicker, .side-label {
  margin: 0;
  color: var(--accent-orange);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.topbar-title strong {
  font-size: 14px;
  line-height: 1.1;
}

.env-badge, .status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.env-badge {
  color: #061013;
  background: var(--accent-cyan);
}

.status-pill.neutral { color: var(--text-secondary); background: var(--bg-control); }
.status-pill.ok { color: #03100a; background: var(--accent-green); }
.status-pill.warn { color: #151000; background: var(--accent-amber); }
.status-pill.error { color: #fff; background: var(--accent-red); }

.global-search {
  position: relative;
  min-width: 260px;
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.global-search input {
  width: 100%;
  height: 32px;
  padding: 0 12px 0 31px;
  border: 1px solid var(--border-default);
  border-radius: 6px;
  color: var(--text-primary);
  background: var(--bg-control);
  outline: none;
}

.sidebar {
  grid-area: sidebar;
  overflow: auto;
  padding: 14px;
  border-right: 1px solid var(--border-default);
  background: rgba(13, 19, 26, 0.96);
}

.side-block {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.side-block:first-child {
  padding-top: 0;
}

.nav-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.nav-link {
  display: grid;
  gap: 2px;
  padding: 10px 11px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: 140ms ease;
}

.nav-link span {
  font-size: 13px;
  font-weight: 800;
}

.nav-link small {
  color: var(--text-muted);
  font-size: 11px;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  border-color: var(--border-strong);
  background: var(--bg-control);
}

.nav-link.active {
  box-shadow: inset 3px 0 0 var(--accent-cyan);
}

.task-card h2 {
  margin: 10px 0 6px;
  font-size: 16px;
}

.task-card p, .side-note {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.45;
}

.task-status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.task-status-grid div, .status-grid div, .metric-strip article {
  border: 1px solid var(--border-default);
  border-radius: 7px;
  background: rgba(18, 25, 34, 0.72);
}

.task-status-grid div {
  padding: 8px;
}

.task-status-grid span, .status-grid span, .metric-strip span {
  display: block;
  margin-bottom: 5px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.task-status-grid strong, .status-grid strong {
  font-size: 12px;
}

.workspace {
  grid-area: workspace;
  overflow: auto;
  min-width: 0;
  padding: 16px;
}

.section {
  display: none;
}

.section.active {
  display: grid;
  gap: 14px;
}

.workspace-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  min-height: 48px;
}

.workspace-header h1 {
  margin: 5px 0 0;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.panel {
  min-width: 0;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  background: rgba(18, 25, 34, 0.92);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.panel-header h3 {
  margin: 3px 0 0;
  font-size: 14px;
}

.command-panel {
  padding-bottom: 14px;
}

.ops-grid {
  display: grid;
  gap: 14px;
}

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

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

.metric-strip article {
  padding: 12px;
}

.metric-strip strong {
  display: block;
  font-size: 21px;
  letter-spacing: -0.05em;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.status-grid div {
  padding: 10px;
}

.command-form {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.command-form.horizontal {
  grid-template-columns: minmax(190px, 1.3fr) 96px minmax(220px, 1.5fr) auto;
  align-items: end;
}

.command-form.horizontal label.wide {
  min-width: 240px;
}

.command-form.horizontal label.narrow {
  min-width: 86px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

input, select, textarea {
  width: 100%;
  min-height: 32px;
  border: 1px solid var(--border-default);
  border-radius: 5px;
  padding: 7px 9px;
  color: var(--text-primary);
  background: var(--bg-control);
  outline: none;
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
}

textarea {
  min-height: 92px;
  resize: vertical;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 1px rgba(38, 211, 230, 0.34);
}

.button {
  min-height: 32px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: 140ms ease;
}

.button.compact {
  min-height: 28px;
}

.button.primary {
  color: #080a0c;
  background: var(--accent-orange);
}

.button.secondary {
  color: var(--text-primary);
  border-color: var(--border-strong);
  background: var(--bg-control);
}

.button:hover:not(:disabled) {
  filter: brightness(1.1);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.44;
}

.button-row {
  padding: 0 14px 12px;
}

.result-summary {
  margin: 0 14px 12px;
  padding: 10px 12px;
  border: 1px solid var(--border-default);
  border-radius: 6px;
  color: var(--text-secondary);
  background: rgba(9, 13, 18, 0.64);
  font-size: 12px;
}

.result-summary strong {
  color: var(--text-primary);
}

.result-summary .success {
  color: var(--accent-green);
}

.result-summary .warn {
  color: var(--accent-amber);
}

.debug-drawer {
  margin: 0 14px 12px;
}

.debug-drawer summary {
  cursor: pointer;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.code-block {
  overflow: auto;
  max-height: 460px;
  margin: 10px 0 0;
  padding: 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: #d6e2ee;
  background: #05070a;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.compact-code {
  max-height: 280px;
}

.data-table-wrap {
  margin: 0 14px 12px;
  overflow: auto;
  border: 1px solid var(--border-default);
  border-radius: 6px;
  background: rgba(9, 13, 18, 0.62);
}

.empty-state {
  padding: 16px;
  color: var(--text-muted);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.data-table th {
  height: 31px;
  padding: 0 9px;
  border-bottom: 1px solid var(--border-default);
  color: var(--text-muted);
  background: #1a2430;
  font-size: 10px;
  font-weight: 900;
  text-align: left;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table td {
  height: 36px;
  padding: 7px 9px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  vertical-align: top;
  white-space: nowrap;
}

.data-table tr {
  cursor: pointer;
}

.data-table tr:hover td {
  background: var(--bg-control);
}

.data-table code {
  font-family: var(--font-mono);
  color: #cfe9ff;
  font-size: 11px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 7px;
  border: 1px solid var(--border-default);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}

.badge.active, .badge.ok {
  color: #9ff0c0;
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.1);
}

.badge.pending, .badge.pending_setup {
  color: #ffe0a3;
  border-color: rgba(245, 184, 75, 0.45);
  background: rgba(245, 184, 75, 0.11);
}

.badge.error, .badge.failed {
  color: #ffb4b4;
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.12);
}

.inspector {
  grid-area: inspector;
  overflow: auto;
  border-left: 1px solid var(--border-default);
  background: rgba(13, 19, 26, 0.94);
}

.inspector-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--border-default);
  border-radius: 5px;
  color: var(--text-secondary);
  background: var(--bg-control);
  cursor: pointer;
}

.inspector-empty {
  margin: 14px;
  padding: 14px;
  border: 1px dashed var(--border-default);
  border-radius: 7px;
  color: var(--text-muted);
  line-height: 1.45;
}

.inspector-content {
  padding: 14px;
}

.hidden {
  display: none;
}

.object-type {
  margin: 0 0 6px;
  color: var(--accent-cyan);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.inspector-content h2 {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.25;
  word-break: break-all;
}

.inspector-meta {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.inspector-meta div {
  display: grid;
  gap: 3px;
  padding: 8px;
  border: 1px solid var(--border-default);
  border-radius: 6px;
  background: rgba(18, 25, 34, 0.7);
}

.inspector-meta span {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.inspector-meta code {
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 11px;
  word-break: break-all;
}

.timeline {
  grid-area: timeline;
  overflow: hidden;
  border-top: 1px solid var(--border-default);
  background: rgba(9, 13, 18, 0.97);
}

.timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.timeline-header span {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.timeline-list {
  overflow: auto;
  height: calc(var(--timeline-height) - 34px);
  margin: 0;
  padding: 8px 14px 12px;
  list-style: none;
  display: grid;
  align-content: start;
  gap: 6px;
}

.timeline-list li {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
}

.timeline-list time {
  color: var(--accent-cyan);
}

.route-grid {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.route-grid code {
  display: block;
  padding: 9px;
  border: 1px solid var(--border-default);
  border-radius: 5px;
  color: #cfe9ff;
  background: rgba(9, 13, 18, 0.7);
  font-family: var(--font-mono);
}

.dense-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 14px 14px 14px 28px;
  color: var(--text-secondary);
}

.danger-panel {
  border-color: rgba(239, 68, 68, 0.35);
}

@media (max-width: 1280px) {
  .command-shell {
    grid-template-columns: 238px minmax(0, 1fr);
    grid-template-areas:
      "topbar topbar"
      "sidebar workspace"
      "timeline timeline";
  }

  .inspector {
    display: none;
  }

  .metric-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ops-grid.two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 880px) {
  .command-shell {
    display: block;
  }

  .topbar {
    height: auto;
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .sidebar, .workspace, .timeline {
    width: 100%;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--border-default);
  }

  .command-form.horizontal {
    grid-template-columns: 1fr;
  }

  .metric-strip {
    grid-template-columns: 1fr 1fr;
  }

  .timeline {
    height: 220px;
  }
}


/* FINAL_POLISH_PASS_V2: Palantir/Gotham-style operational console density */
:root {
  --sidebar-width: 252px;
  --inspector-width: 302px;
  --timeline-height: 138px;
  --topbar-height: 48px;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.command-shell {
  height: 100vh;
  min-height: 0;
  overflow: hidden;
}

.topbar {
  grid-template-columns: minmax(248px, 390px) minmax(320px, 1fr) auto;
}

.workspace,
.sidebar,
.inspector {
  min-height: 0;
}

.workspace {
  padding: 14px;
}

.sidebar {
  padding: 12px 10px;
}

.inspector {
  background:
    linear-gradient(180deg, rgba(38, 211, 230, 0.025), transparent 26rem),
    rgba(13, 19, 26, 0.96);
}

.kicker,
.section-kicker,
.panel-kicker,
.side-label {
  color: var(--accent-cyan);
  letter-spacing: 0.14em;
}

.topbar-title .kicker {
  color: var(--accent-orange);
}

.workspace-header {
  min-height: 42px;
  align-items: center;
}

.workspace-header h1 {
  font-size: 20px;
  letter-spacing: -0.045em;
}

.panel {
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent),
    rgba(18, 25, 34, 0.90);
}

.panel-header {
  padding: 10px 12px;
}

.panel-header.compact-header {
  min-height: 42px;
  padding: 8px 10px;
}

.panel-header h3 {
  font-size: 13px;
}

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

.metric-strip article {
  min-height: 76px;
  padding: 10px;
}

.metric-strip strong {
  font-size: 18px;
}

.status-grid {
  gap: 8px;
  padding: 10px 12px 12px;
}

.status-grid div {
  min-height: 62px;
  padding: 9px;
}

.task-status-grid {
  gap: 7px;
}

.task-status-grid div {
  min-height: 54px;
}

.nav-link {
  padding: 9px 10px;
}

.nav-link span {
  font-size: 12.5px;
}

.nav-link small {
  font-size: 10.5px;
}

.command-form {
  padding: 12px;
}

.command-form.horizontal {
  gap: 8px;
}

.button {
  min-height: 30px;
  border-radius: 5px;
  font-size: 11.5px;
}

.button.primary {
  background: linear-gradient(180deg, #ff7a1a, #f25e00);
}

input,
select,
textarea {
  min-height: 30px;
  border-radius: 4px;
  font-size: 11.5px;
}

.debug-drawer {
  margin: 0 12px 10px;
}

.debug-panel .debug-drawer {
  margin-top: 0;
}

.code-block {
  max-height: 300px;
  font-size: 10.5px;
  border-radius: 5px;
}

.compact-code {
  max-height: 160px;
}

.dashboard-queues {
  align-items: stretch;
}

.queue-panel {
  min-height: 210px;
}

.data-table-wrap {
  margin: 0 10px 10px;
}

.data-table th {
  height: 27px;
  padding: 0 7px;
  font-size: 9.5px;
}

.data-table td {
  height: 31px;
  padding: 6px 7px;
  font-size: 11.5px;
}

.data-table code {
  font-size: 10.5px;
}

.badge {
  min-height: 18px;
  padding: 1px 6px;
  font-size: 9.5px;
}

.result-summary {
  margin: 0 12px 10px;
  padding: 9px 10px;
}

.inspector-header {
  height: 38px;
}

.inspector-empty {
  padding: 12px;
}

.inspector-empty strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text-primary);
  font-size: 13px;
}

.inspector-empty p {
  margin: 0 0 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

.inspector-empty-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.inspector-empty-grid div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--border-default);
  border-radius: 5px;
  background: rgba(18, 25, 34, 0.72);
}

.inspector-empty-grid span {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inspector-empty-grid strong {
  margin: 0;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 12px;
}

.inspector-content {
  padding: 12px;
}

.inspector-content h2 {
  font-size: 14px;
}

.inspector-meta {
  gap: 7px;
}

.inspector-meta div {
  padding: 7px;
}

.timeline {
  display: grid;
  grid-template-rows: 32px minmax(0, 1fr);
  min-height: 0;
}

.timeline-header {
  height: 32px;
  padding: 0 12px;
}

.timeline-stats {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.timeline-stats em {
  color: var(--text-muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-list {
  height: auto;
  min-height: 0;
  padding: 7px 12px 10px;
}

.timeline-list li {
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
  font-size: 10.5px;
}

.section.active {
  gap: 12px;
}

.ops-grid {
  gap: 12px;
}

.ops-grid.two {
  gap: 12px;
}

.brand-mark {
  box-shadow: 0 0 22px rgba(255, 106, 0, 0.20);
}

.env-badge {
  box-shadow: 0 0 22px rgba(38, 211, 230, 0.18);
}

.side-block {
  padding: 10px 0;
}

.task-card h2 {
  font-size: 14px;
}

.task-card p,
.side-note {
  font-size: 12px;
}

.route-grid {
  padding: 12px;
}

@media (max-width: 1280px) {
  html,
  body {
    overflow: auto;
  }

  .command-shell {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }
}


/* ROW_ACTIONS_AND_DETAILS_V1 */
.data-table tr.selected td {
  background: rgba(38, 211, 230, 0.10);
  box-shadow: inset 0 1px 0 rgba(38, 211, 230, 0.28), inset 0 -1px 0 rgba(38, 211, 230, 0.28);
}

.data-table tr.selected td:first-child {
  box-shadow:
    inset 3px 0 0 var(--accent-cyan),
    inset 0 1px 0 rgba(38, 211, 230, 0.28),
    inset 0 -1px 0 rgba(38, 211, 230, 0.28);
}

.table-actions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.table-action {
  min-height: 22px;
  padding: 0 7px;
  border: 1px solid var(--border-default);
  border-radius: 4px;
  color: var(--text-secondary);
  background: rgba(32, 42, 53, 0.74);
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.table-action:hover {
  color: var(--text-primary);
  border-color: var(--accent-cyan);
  background: rgba(38, 211, 230, 0.12);
}

.inspector-actions {
  display: grid;
  gap: 7px;
  margin: 0 0 14px;
}

.inspector-actions:empty {
  display: none;
}

.inspector-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.inspector-action-title {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.inspector-action-button {
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  color: var(--text-primary);
  background: var(--bg-control);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.inspector-action-button.primary-action {
  color: #061013;
  border-color: transparent;
  background: var(--accent-cyan);
}

.inspector-action-button.warning-action {
  color: #151000;
  border-color: transparent;
  background: var(--accent-amber);
}

.inspector-action-button:hover {
  filter: brightness(1.12);
}


/* FILTER_UI_V1 */
.filter-form {
  grid-template-columns: repeat(5, minmax(110px, 1fr)) auto;
  align-items: end;
  gap: 8px;
  padding-top: 4px;
}

.voice-filter-form {
  grid-template-columns: minmax(220px, 1.6fr) repeat(4, minmax(110px, 1fr)) auto;
}

.filter-form label {
  min-width: 0;
}

.filter-form input,
.filter-form select {
  height: 29px;
}

@media (max-width: 1280px) {
  .filter-form,
  .voice-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* I18N_LANGUAGE_SWITCHER_V1 */
.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--border-default);
  border-radius: 6px;
  background: rgba(32, 42, 53, 0.72);
}

.language-button {
  min-height: 24px;
  padding: 0 8px;
  border: 0;
  border-radius: 4px;
  color: var(--text-muted);
  background: transparent;
  font-size: 10.5px;
  font-weight: 900;
  cursor: pointer;
}

.language-button.active {
  color: #061013;
  background: var(--accent-cyan);
}

html[lang="ko"] body {
  word-break: keep-all;
}

html[lang="ko"] .button,
html[lang="ko"] .table-action,
html[lang="ko"] .inspector-action-button,
html[lang="ko"] input,
html[lang="ko"] select,
html[lang="ko"] textarea {
  letter-spacing: -0.01em;
}

html[lang="ko"] .workspace-header h1 {
  letter-spacing: -0.055em;
}

html[lang="ko"] .data-table th {
  letter-spacing: 0.02em;
}

html[lang="ko"] .nav-link small {
  line-height: 1.35;
}


/* I18N_LANGUAGE_SWITCHER_LINK_FIX_V1 */
.language-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  user-select: none;
}


/* MANUAL_I18N_V1_CSS */
.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--border-default);
  border-radius: 6px;
  background: rgba(32, 42, 53, 0.72);
}

.language-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 8px;
  border: 0;
  border-radius: 4px;
  color: var(--text-muted);
  background: transparent;
  font-size: 10.5px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
}

.language-button.active {
  color: #061013;
  background: var(--accent-cyan);
}

html[lang="ko"] body {
  word-break: keep-all;
}

html[lang="ko"] .button,
html[lang="ko"] .table-action,
html[lang="ko"] .inspector-action-button,
html[lang="ko"] input,
html[lang="ko"] select,
html[lang="ko"] textarea {
  letter-spacing: -0.01em;
}
