:root {
  --bg: #f2f2f2;
  --surface: #ffffff;
  --surface-subtle: #f7f7f7;
  --text: #444444;
  --text-strong: #222222;
  --text-muted: #767676;
  --border: #e4e4e4;
  --border-strong: #cdcdcd;
  --accent: #ffec7d;
  --accent-hover: #fae155;
  --accent-border: #e6cf4d;
  --primary: #444444;
  --primary-hover: #2b2b2b;
  --primary-text: #ffffff;
  --danger: #dc2626;
  --danger-hover: #b91c1c;
  --ok-bg: #dcfce7;
  --ok-text: #166534;
  --warn-bg: #fef3c7;
  --warn-text: #92400e;
  --err-bg: #fee2e2;
  --err-text: #991b1b;
  --info-bg: rgba(255, 236, 125, 0.45);
  --info-text: #222222;
  --plan-bg: #ede9fe;
  --plan-text: #5b21b6;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  font-family: "Geologica", "Segoe UI", system-ui, -apple-system, sans-serif;
}

:root[data-theme="dark"] {
  --bg: #1c1c1c;
  --surface: #262626;
  --surface-subtle: #1f1f1f;
  --text: #f2f2f2;
  --text-strong: #ffffff;
  --text-muted: #a3a3a3;
  --border: #363636;
  --border-strong: #4a4a4a;
  --accent: #ffec7d;
  --accent-hover: #fae155;
  --accent-border: #d9c347;
  --primary: #ffec7d;
  --primary-hover: #fae155;
  --primary-text: #1c1c1c;
  --danger: #ef4444;
  --danger-hover: #dc2626;
  --ok-bg: rgba(34, 197, 94, 0.16);
  --ok-text: #86efac;
  --warn-bg: rgba(255, 236, 125, 0.16);
  --warn-text: #ffec7d;
  --err-bg: rgba(239, 68, 68, 0.16);
  --err-text: #fca5a5;
  --info-bg: rgba(255, 236, 125, 0.18);
  --info-text: #ffec7d;
  --plan-bg: rgba(167, 139, 250, 0.16);
  --plan-text: #c4b5fd;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

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

.layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  height: 30px;
  width: auto;
  display: block;
}

.brand-divider {
  width: 1px;
  height: 22px;
  background: var(--border-strong);
}

.topbar h1 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-strong);
}

.tenant-badge {
  background: var(--info-bg);
  color: var(--info-text);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.signer-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.15s ease;
}

.signer-badge:hover {
  opacity: 0.85;
}

.signer-badge:disabled {
  cursor: wait;
  opacity: 0.7;
}

.signer-badge.connected {
  background: var(--ok-bg);
  color: var(--ok-text);
}

.signer-badge.offline {
  background: var(--surface-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

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

.icon-btn {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
}

.btn-danger {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  background: var(--danger);
  color: #ffffff;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

.btn-danger:hover {
  background: var(--danger-hover);
}

.workspace {
  display: grid;
  grid-template-columns: var(--sidebar-width, 380px) 12px minmax(280px, 1fr);
  gap: 0;
  padding: 14px 16px 16px;
  flex: 1;
  min-height: 0;
  max-width: 100%;
}

.workspace-splitter {
  position: relative;
  cursor: col-resize;
  touch-action: none;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.workspace-splitter::before {
  content: "";
  width: 2px;
  height: 44px;
  border-radius: 2px;
  background: var(--border-strong);
  transition: background 0.15s ease, height 0.15s ease;
}

.workspace-splitter:hover::before,
.workspace-splitter.dragging::before {
  background: var(--primary);
  height: 72px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  min-width: 0;
}

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

.sidebar-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.input-panel-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.scope-note {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

.summary-banner {
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}

.country-check-row {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.country-check-row:last-child {
  border-bottom: none;
}

.back-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-subtle);
  cursor: pointer;
  font-weight: 700;
}

.quick-actions {
  display: flex;
  gap: 6px;
}

.ghost-btn {
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.ghost-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.country-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.country-tabs-planned {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}

.tab-btn {
  padding: 8px 6px;
  border: 1px solid var(--border-strong);
  background: var(--surface-subtle);
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

.tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.tab-btn.planned {
  font-size: 12px;
  color: var(--text-muted);
  padding: 5px 6px;
}

.tab-btn.planned.active {
  color: #ffffff;
}

.input-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.toolbar-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tool-btn {
  padding: 5px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--surface);
  font-size: 12px;
  cursor: pointer;
}

.tool-btn.active {
  border-color: var(--accent-border);
  background: var(--info-bg);
  color: var(--text-strong);
  font-weight: 600;
}

.line-count {
  font-size: 12px;
  color: var(--text-muted);
}

/* Line-numbered code editor */
.code-editor {
  flex: 1;
  min-height: 200px;
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  overflow: auto;
  position: relative;
}

.code-editor:focus-within {
  outline: 2px solid var(--primary);
  outline-offset: -1px;
}

.line-numbers {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 44px;
  flex-shrink: 0;
  margin: 0;
  padding: 10px 8px;
  background: var(--surface-subtle);
  border-right: 1px solid var(--border);
  color: var(--text-muted);
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 21px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  white-space: pre;
  text-align: right;
  user-select: none;
  box-sizing: border-box;
}

.code-input {
  flex: 0 0 auto;
  min-width: 100px;
  border: none;
  outline: none;
  resize: none;
  margin: 0;
  padding: 10px;
  background: transparent;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 21px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  white-space: pre;
  overflow-wrap: normal;
  overflow: hidden;
  box-sizing: border-box;
}

.btn-primary {
  padding: 11px 16px;
  border: 1px solid var(--accent-border);
  border-radius: 10px;
  background: var(--accent);
  color: #222222;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: wait;
}

.results-pane {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  min-height: 0;
  min-width: 0;
  overflow: auto;
  box-shadow: var(--shadow);
}

.empty-state {
  margin: auto;
  color: var(--text-muted);
  font-size: 14px;
}

/* 5-Tab Bar */
.result-tabs {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--surface-subtle);
}

.result-tab-btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.result-tab-btn {
  flex: 1 1 auto;
  padding: 9px 10px;
  border: none;
  border-right: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
  margin-bottom: -1px;
  background: var(--surface-subtle);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
}

.result-tab-btn:last-child {
  border-right: none;
}

.result-tab-btn.active {
  background: var(--accent);
  color: #222222;
  font-weight: 600;
}

.tab-count {
  margin-left: 4px;
  opacity: 0.85;
  font-size: 12px;
}

/* Summary tab layout */
.summary-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.summary-block h3 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
}

.summary-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.summary-table th,
.summary-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
}

.summary-table tr:last-child td {
  border-bottom: none;
}

.summary-table .label-cell {
  background: var(--surface-subtle);
  color: var(--text-muted);
}

.summary-table th.label-cell {
  text-align: left;
}

.summary-table th.val-cell {
  text-align: right;
  background: var(--surface-subtle);
  color: var(--text-muted);
}

.summary-table .val-cell {
  text-align: right;
  font-weight: 600;
}

.summary-group-row td:first-child {
  font-weight: 600;
}

.summary-subrow td {
  font-size: 12.5px;
  color: var(--text-muted);
}

.summary-subrow td:first-child {
  padding-left: 26px;
}

.summary-total-row td {
  background: var(--surface-subtle);
  font-weight: 700;
}

/* Details table tab */
.details-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.toolbar-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.toolbar-left-stack {
  flex: 1 1 360px;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.search-filter {
  padding: 7px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  background: var(--bg);
  font-size: 13px;
  width: 100%;
  max-width: 540px;
  min-width: 280px;
}

.toolbar-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  position: relative;
}

.export-link {
  padding: 7px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.col-menu {
  position: absolute;
  right: 0;
  top: 38px;
  z-index: 20;
  width: 220px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 10px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}

.col-menu label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.bulk-preview-card {
  flex: 1;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.bulk-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--surface-subtle);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}

.bulk-preview-scroll {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: stretch;
  overflow: auto;
}

.bulk-preview-scroll .line-numbers {
  height: max-content;
  min-height: 100%;
}

.bulk-preview-lines {
  flex: 1;
  margin: 0;
  padding: 10px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 21px;
  white-space: pre;
}

.bulk-preview-foot {
  padding: 7px 12px;
  border-top: 1px solid var(--border);
  background: var(--surface-subtle);
  color: var(--text-muted);
  font-size: 12px;
}

.pagination-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-subtle);
}

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

.pagination-info {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  padding: 0 4px;
}

.table-wrap {
  overflow: auto;
  flex: 1;
  min-height: 220px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

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

table.data-table th {
  position: sticky;
  top: 0;
  background: var(--surface-subtle);
  font-weight: 600;
  z-index: 1;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

table.data-table th,
table.data-table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

table.data-table tbody tr.data-row:hover {
  background: var(--surface-subtle);
  cursor: pointer;
}

table.data-table tbody tr.data-row.non-expandable:hover {
  background: transparent;
  cursor: default;
}

table.data-table tbody tr.data-row.selected {
  background: var(--info-bg);
}

.child-codes-box {
  margin: 8px 0 4px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-subtle);
  overflow: hidden;
}

.child-codes-head {
  position: sticky;
  left: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
}

.copy-children-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.child-codes-list {
  margin: 0;
  padding: 6px 10px 6px 28px;
  max-height: 320px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.child-nested {
  margin: 6px 0 4px 4px;
}

.child-codes-table-wrap {
  max-height: 420px;
  overflow: auto;
  background: var(--surface);
}

.child-codes-table-wrap .data-table {
  font-size: 12px;
}

.child-codes-table-wrap .data-table th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.child-code-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 6px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.child-code-toggle:hover {
  background: var(--surface);
  border-color: var(--border);
}

.child-code-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.expand-caret {
  display: inline-block;
  width: 16px;
  color: var(--primary);
  font-size: 11px;
}

.expanded-row td {
  background: var(--bg);
  padding: 12px 14px;
}

.mono {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-valid { background: var(--ok-bg); color: var(--ok-text); }
.badge-warning { background: var(--warn-bg); color: var(--warn-text); }
.badge-invalid { background: var(--err-bg); color: var(--err-text); }
.badge-planned { background: var(--plan-bg); color: var(--plan-text); }
.badge-neutral { background: var(--surface-subtle); color: var(--text-muted); border: 1px solid var(--border); }

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.detail-grid.one-col {
  grid-template-columns: 1fr;
}

.layer-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
}

.layer-box h4 {
  margin: 0 0 8px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.kv {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 0;
  border-bottom: 1px dashed var(--border);
}

.kv-k {
  color: var(--text-muted);
}

.note-list {
  margin: 8px 0 0;
  padding-left: 16px;
  color: var(--text-muted);
}

.gs1-spoiler {
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 8px 12px;
}

.gs1-spoiler summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.gs1-body {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 12px;
}

.warn-box {
  color: var(--warn-text);
  background: var(--warn-bg);
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.4;
}

.error-box {
  color: var(--err-text);
  background: var(--err-bg);
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 12px;
}

.history-row {
  cursor: pointer;
}

.history-row:hover td {
  background: var(--surface-subtle);
}

.history-row-active td {
  background: var(--warn-bg);
}

.login-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 100vh;
  padding: 20px;
}

.login-card {
  margin: auto 0;
  width: 390px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.login-logo {
  height: 44px;
  width: auto;
  align-self: flex-start;
  margin-bottom: 4px;
}

.login-card h2 {
  margin: 0;
  font-size: 18px;
}

.login-subtitle {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.login-card input {
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  background: var(--bg);
}

.login-footer {
  margin-top: 16px;
  padding: 8px 0 4px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

.login-download-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.login-download-link:hover {
  opacity: 0.85;
}

.danger-btn {
  color: #dc2626;
  border-color: rgba(220, 38, 38, 0.35);
}

.danger-btn:hover {
  background: rgba(220, 38, 38, 0.08);
}

.danger-fill-btn {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

.danger-fill-btn:hover {
  background: #b91c1c;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 100;
}

.modal-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-card h3 {
  margin: 0;
  font-size: 16px;
}

.modal-card input {
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  background: var(--bg);
  color: var(--text);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.lang-select {
  padding: 5px 8px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.login-lang-bar {
  width: 100%;
  max-width: 390px;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.filter-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.col-filter-row th.col-filter-cell {
  top: 31px;
  background: var(--surface);
  padding: 4px 6px;
  cursor: default;
}

.col-filter-box {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 110px;
}

.col-filter-op {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  background: var(--surface-subtle);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.col-filter-op.is-neq {
  background: var(--warn-bg);
  color: var(--warn-text);
  border-color: var(--accent-border);
}

.col-filter-input {
  width: 100%;
  min-width: 72px;
  height: 24px;
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--bg);
  color: var(--text);
  font-size: 11.5px;
  font-weight: 400;
}

.col-filter-input:focus {
  outline: 1px solid var(--accent-border);
  border-color: var(--accent-border);
}

.check-progress-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--accent-border);
  border-radius: 10px;
  background: var(--info-bg);
}

.check-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-strong);
}

.check-progress-sub {
  font-size: 12.5px;
  color: var(--text);
}

.check-progress-bar {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
  position: relative;
}

.check-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.check-progress-fill.indeterminate {
  width: 38%;
  position: absolute;
  animation: dm-progress-slide 1.2s ease-in-out infinite;
}

@keyframes dm-progress-slide {
  0% { left: -38%; }
  100% { left: 100%; }
}

.summary-notfound-row td {
  background: var(--err-bg);
  color: var(--err-text);
  font-weight: 600;
  border-top: 1.5px solid var(--danger);
  border-bottom: 1.5px solid var(--danger);
}

.summary-notfound-row td:first-child {
  border-left: 1.5px solid var(--danger);
}

.summary-notfound-row td:last-child {
  border-right: 1.5px solid var(--danger);
}

@media (max-width: 960px) {
  .layout {
    height: auto;
    min-height: 100vh;
  }
  .workspace {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .workspace-splitter {
    display: none;
  }
  .code-editor {
    height: 280px;
    flex: 0 0 auto;
  }
  .results-pane {
    overflow: visible;
  }
  .result-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
  .summary-grid-2,
  .detail-grid {
    grid-template-columns: 1fr;
  }
}
