/* ============================================================
   PHP Serialized CSV Importer — style.css  v4
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:            #ffffff;
  --bg-secondary:  #f5f5f4;
  --bg-tertiary:   #efefed;
  --bg-info:       #e6f1fb;
  --bg-danger:     #fcebeb;
  --bg-foot-count: #f0f4ff;
  --bg-foot-sum:   #f0faf4;

  --text:          #1a1a18;
  --text-muted:    #6b6b68;
  --text-hint:     #a0a09c;
  --text-info:     #0c447c;
  --text-danger:   #791f1f;
  --text-count:    #2a3a7a;
  --text-sum:      #1a5c34;

  --border:        rgba(0,0,0,0.08);
  --border-med:    rgba(0,0,0,0.15);
  --border-strong: rgba(0,0,0,0.25);

  --accent: #1a1a18;

  --r-sm: 5px;
  --r-md: 8px;
  --r-lg: 12px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  --row-pad-v: 4px;
  --row-font:  12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:            #1c1c1a;
    --bg-secondary:  #252523;
    --bg-tertiary:   #2e2e2b;
    --bg-info:       #042c53;
    --bg-danger:     #501313;
    --bg-foot-count: #0e1a40;
    --bg-foot-sum:   #0a2a18;

    --text:          #e8e6e0;
    --text-muted:    #9b9b97;
    --text-hint:     #6b6b68;
    --text-info:     #85b7eb;
    --text-danger:   #f09595;
    --text-count:    #7ba4f5;
    --text-sum:      #5ec98a;

    --border:        rgba(255,255,255,0.07);
    --border-med:    rgba(255,255,255,0.13);
    --border-strong: rgba(255,255,255,0.22);
  }
}

html, body {
  height: 100%;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg-tertiary);
  -webkit-font-smoothing: antialiased;
}

#app { min-height: 100vh; }

/* ── Upload ── */
#upload-screen {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 2rem;
}

#drop-zone {
  width: 100%; max-width: 460px;
  background: var(--bg); border: 1.5px dashed var(--border-med);
  border-radius: var(--r-lg); padding: 3.5rem 2.5rem;
  text-align: center; cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
#drop-zone:hover, #drop-zone.over { background: var(--bg-secondary); border-color: var(--border-strong); }
#drop-zone input { display: none; }

.dz-icon  { font-size: 38px; color: var(--text-muted); margin-bottom: 1rem; }
.dz-title { font-size: 16px; font-weight: 500; margin-bottom: 8px; }
.dz-sub   { font-size: 13px; color: var(--text-muted); line-height: 1.7; }

.dz-btn {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 1.5rem; font-size: 13px; font-weight: 500;
  padding: 8px 20px; border-radius: var(--r-md);
  border: 0.5px solid var(--border-med);
  background: var(--bg); color: var(--text);
  cursor: pointer; font-family: var(--font);
  transition: background 0.12s;
}
.dz-btn:hover { background: var(--bg-secondary); }

/* ── Main screen ── */
#main-screen { display: none; padding: 1.25rem 1.5rem; }

/* ── Page header ── */
.page-header {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 1rem;
}
.page-header-left {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500;
}
.page-header-left i { color: var(--text-muted); font-size: 17px; }

/* ── Error bar ── */
#err-bar {
  display: none; font-size: 13px;
  padding: 9px 13px; border-radius: var(--r-md);
  border: 0.5px solid var(--text-danger);
  background: var(--bg-danger); color: var(--text-danger);
  margin-bottom: 1rem;
}

/* ── Stats ── */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px; margin-bottom: 1rem;
}
.stat {
  background: var(--bg); border: 0.5px solid var(--border);
  border-radius: var(--r-md); padding: 11px 14px;
}
.stat-label {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 4px;
}
.stat-value { font-size: 22px; font-weight: 500; }

/* ── Toolbar ── */
.toolbar {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; margin-bottom: 0.75rem;
}
.toolbar-left  { display: flex; align-items: center; gap: 7px; flex: 1; flex-wrap: wrap; }
.toolbar-right { display: flex; align-items: center; gap: 7px; }

/* Search */
.search-wrap { position: relative; display: flex; align-items: center; }
.search-wrap > i {
  position: absolute; left: 9px;
  font-size: 14px; color: var(--text-muted); pointer-events: none;
}
#search-box {
  padding: 0 28px 0 30px; height: 32px; min-width: 200px;
  font-size: 13px; font-family: var(--font);
  border-radius: var(--r-md); border: 0.5px solid var(--border-med);
  background: var(--bg); color: var(--text); outline: none;
  transition: border-color 0.12s;
}
#search-box:focus { border-color: var(--border-strong); }

.search-clear {
  position: absolute; right: 6px;
  display: none; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  border: none; background: var(--bg-secondary);
  color: var(--text-muted); cursor: pointer; font-size: 11px;
}
.search-clear.visible { display: flex; }

/* Buttons */
.tbtn {
  display: inline-flex; align-items: center; gap: 5px;
  height: 32px; padding: 0 12px;
  font-size: 13px; font-family: var(--font); font-weight: 400;
  border-radius: var(--r-md); border: 0.5px solid var(--border-med);
  background: var(--bg); color: var(--text);
  cursor: pointer; white-space: nowrap;
  transition: background 0.1s, opacity 0.1s;
}
.tbtn:hover { background: var(--bg-secondary); }
.tbtn i { font-size: 15px; }
.tbtn.accent { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.tbtn.accent:hover { opacity: 0.82; }
.tbtn.small { height: 28px; padding: 0 9px; font-size: 12px; }
.tbtn.active { background: var(--bg-secondary); border-color: var(--border-strong); }

/* Badge */
.filter-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 16px; height: 16px; padding: 0 4px;
  font-size: 10px; font-weight: 600;
  background: var(--accent); color: var(--bg);
  border-radius: 20px; margin-left: 2px;
}

/* Density toggle */
.density-group {
  display: flex; border: 0.5px solid var(--border-med);
  border-radius: var(--r-md); overflow: hidden;
}
.density-btn {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border: none;
  background: var(--bg); color: var(--text-muted);
  cursor: pointer; font-size: 15px;
  transition: background 0.1s, color 0.1s;
  border-right: 0.5px solid var(--border-med);
}
.density-btn:last-child { border-right: none; }
.density-btn:hover  { background: var(--bg-secondary); color: var(--text); }
.density-btn.active { background: var(--bg-secondary); color: var(--text); }

/* Col vis dropdown */
.dropdown-wrap { position: relative; }
.dropdown-panel {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 200;
  background: var(--bg); border: 0.5px solid var(--border-med);
  border-radius: var(--r-md); box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  padding: 8px; min-width: 220px; max-height: 340px; overflow-y: auto;
}
.col-vis-search {
  width: 100%; height: 28px; padding: 0 8px;
  font-size: 12px; font-family: var(--font);
  border: 0.5px solid var(--border-med); border-radius: var(--r-sm);
  background: var(--bg-secondary); color: var(--text);
  margin-bottom: 6px; outline: none;
}
.col-vis-actions { display: flex; gap: 6px; margin-bottom: 6px; }
.col-vis-item {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 6px; border-radius: var(--r-sm);
  cursor: pointer; font-size: 12px; color: var(--text);
  transition: background 0.1s;
}
.col-vis-item:hover { background: var(--bg-secondary); }
.col-vis-item input { cursor: pointer; }
.col-vis-item span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Filter panel ── */
#filter-panel {
  background: var(--bg); border: 0.5px solid var(--border-med);
  border-radius: var(--r-lg); margin-bottom: 0.75rem; overflow: hidden;
}
.filter-panel-inner { padding: 12px 14px; }
.filter-panel-header {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 12px;
}
.filter-panel-title {
  font-size: 12px; font-weight: 500;
  display: flex; align-items: center; gap: 6px;
}
.filter-panel-title i { color: var(--text-muted); }
.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}
.filter-item { display: flex; flex-direction: column; gap: 3px; }
.filter-label {
  font-size: 10px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.filter-input, .filter-select {
  height: 28px; padding: 0 8px;
  font-size: 12px; font-family: var(--font);
  border: 0.5px solid var(--border-med); border-radius: var(--r-sm);
  background: var(--bg-secondary); color: var(--text);
  outline: none; width: 100%; transition: border-color 0.12s;
}
.filter-input:focus, .filter-select:focus { border-color: var(--border-strong); }
.filter-input.active, .filter-select.active {
  border-color: var(--accent); background: var(--bg-info); color: var(--text-info);
}
.filter-range { display: flex; gap: 4px; }
.filter-range .filter-input { flex: 1; min-width: 0; }

/* ── Row count bar ── */
.row-count-bar {
  font-size: 11px; color: var(--text-muted);
  padding: 4px 2px; margin-bottom: 6px;
  display: flex; align-items: center; gap: 8px;
}

/* ── Toast ── */
#toast {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--bg);
  font-size: 12px; padding: 7px 14px; border-radius: 20px;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
  z-index: 999; white-space: nowrap;
}
#toast.show { opacity: 1; }

/* ── Table card ── */
.table-card {
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

/* The scroll container — fixed height so tfoot sticks inside it */
.table-wrap {
  overflow: auto;
  max-height: calc(100vh - 280px);
  min-height: 200px;
  position: relative;
}

table {
  width: 100%; border-collapse: collapse;
  font-size: var(--row-font);
}

/* Sticky thead */
thead tr {
  background: var(--bg-secondary);
  position: sticky; top: 0; z-index: 20;
}

th {
  font-size: 10px; font-weight: 500;
  text-align: left; padding: 7px 12px;
  color: var(--text-muted);
  border-bottom: 0.5px solid var(--border-med);
  white-space: nowrap; cursor: pointer; user-select: none;
  letter-spacing: 0.04em; text-transform: uppercase;
}
th:hover { color: var(--text); background: var(--bg-tertiary); }
th .si { margin-left: 3px; opacity: 0.3; font-size: 11px; vertical-align: -1px; }

td {
  padding: var(--row-pad-v) 12px;
  border-bottom: 0.5px solid var(--border);
  vertical-align: middle; color: var(--text);
  max-width: 240px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
  font-size: var(--row-font);
  cursor: pointer; transition: background 0.08s;
}
td:hover { background: var(--bg-info) !important; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg-secondary); }

/* Density */
body.density-default     { --row-pad-v: 8px;  --row-font: 13px; }
body.density-comfortable { --row-pad-v: 12px; --row-font: 13px; }

/* ── Sticky tfoot ── */
tfoot {
  position: sticky;
  bottom: 0;
  z-index: 15;
}

/* COUNT row */
tfoot tr.foot-count td {
  background: var(--bg-foot-count);
  color: var(--text-count);
  font-size: 10px; font-weight: 600;
  padding: 5px 12px;
  border-top: 1px solid rgba(42,58,122,0.15);
  border-bottom: 0.5px solid rgba(42,58,122,0.1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  cursor: default;
}
tfoot tr.foot-count td:first-child {
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-count); opacity: 0.7;
}

/* SUM row */
tfoot tr.foot-sum td {
  background: var(--bg-foot-sum);
  color: var(--text-sum);
  font-size: 10px; font-weight: 600;
  padding: 5px 12px;
  border-top: 0.5px solid rgba(26,92,52,0.12);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  cursor: default;
}
tfoot tr.foot-sum td:first-child {
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-sum); opacity: 0.7;
}

/* null dash in footer cells */
tfoot td .foot-null { opacity: 0.3; font-size: 10px; }

/* ── Cell types ── */
.cell-plain { overflow: hidden; text-overflow: ellipsis; }
.cell-mono  { font-family: var(--mono); font-size: 11px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; }

.cell-parsed { display: flex; flex-direction: column; gap: 3px; white-space: normal; }
.tag-parsed {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 500;
  padding: 1px 6px; border-radius: 4px;
  background: var(--bg-info); color: var(--text-info);
  margin-bottom: 3px; width: fit-content;
}
.kv-row   { display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; }
.kv-key   { font-size: 10px; font-weight: 500; color: var(--text-muted); background: var(--bg-secondary); border: 0.5px solid var(--border); border-radius: 3px; padding: 1px 5px; white-space: nowrap; }
.kv-val   { font-size: 11px; }
.nested-block { margin: 2px 0 2px 8px; padding-left: 8px; border-left: 2px solid var(--border-med); display: flex; flex-direction: column; gap: 2px; }
.null-val { color: var(--text-hint); font-style: italic; font-size: 11px; }

/* ── Empty row ── */
#empty-row td {
  text-align: center; padding: 3.5rem 1rem;
  color: var(--text-muted); font-size: 13px; white-space: normal;
}
#empty-row i { font-size: 24px; display: block; margin-bottom: 8px; opacity: 0.4; }

/* ── Scroll sentinel & load indicator ── */
#scroll-sentinel { height: 1px; }

#load-more-indicator {
  text-align: center; padding: 12px;
  font-size: 12px; color: var(--text-muted);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}

.load-spinner {
  display: inline-block; width: 14px; height: 14px;
  border: 2px solid var(--border-med);
  border-top-color: var(--text-muted);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* ── Scrollbar ── */
.table-wrap::-webkit-scrollbar { width: 6px; height: 5px; }
.table-wrap::-webkit-scrollbar-track { background: var(--bg-secondary); }
.table-wrap::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }

/* ============================================================
   Row detail modal
   ============================================================ */

/* Prevent body scroll when modal is open */
body.modal-open { overflow: hidden; }

/* Clickable rows */
.clickable-row { cursor: pointer; }

/* Overlay */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  animation: overlay-in 0.15s ease;
}

@keyframes overlay-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Modal box */
.modal-box {
  background: var(--bg);
  border: 0.5px solid var(--border-med);
  border-radius: var(--r-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.25), 0 4px 16px rgba(0,0,0,0.12);
  width: 90%; max-width: 90vw;
  max-height: 90vh;
  display: flex; flex-direction: column;
  animation: modal-in 0.18s cubic-bezier(0.34,1.2,0.64,1);
  overflow: hidden;
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Header */
.modal-header {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 14px 16px 12px;
  border-bottom: 0.5px solid var(--border);
  flex-shrink: 0;
}

.modal-title-wrap {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--text);
}
.modal-title-wrap i { color: var(--text-muted); font-size: 17px; }

.modal-header-actions {
  display: flex; align-items: center; gap: 6px;
}

.modal-row-pos {
  font-size: 12px; color: var(--text-muted);
  min-width: 60px; text-align: center;
}

.modal-close-btn {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: var(--r-md);
  border: 0.5px solid var(--border-med); background: var(--bg);
  color: var(--text-muted); cursor: pointer; font-size: 15px;
  transition: background 0.1s, color 0.1s;
}
.modal-close-btn:hover { background: var(--bg-danger); color: var(--text-danger); border-color: var(--text-danger); }

/* Field search */
.modal-search-wrap {
  position: relative; padding: 10px 16px;
  border-bottom: 0.5px solid var(--border);
  flex-shrink: 0;
}
.modal-search-wrap i {
  position: absolute; left: 25px; top: 50%; transform: translateY(-50%);
  font-size: 14px; color: var(--text-muted); pointer-events: none;
}
#modal-search {
  width: 100%; height: 30px; padding: 0 12px 0 30px;
  font-size: 13px; font-family: var(--font);
  border-radius: var(--r-md); border: 0.5px solid var(--border-med);
  background: var(--bg-secondary); color: var(--text); outline: none;
  transition: border-color 0.12s;
}
#modal-search:focus { border-color: var(--border-strong); background: var(--bg); }

/* Body scroll area */
.modal-body {
  overflow-y: auto; flex: 1;
  padding: 0;
}
.modal-body::-webkit-scrollbar { width: 5px; }
.modal-body::-webkit-scrollbar-track { background: var(--bg-secondary); }
.modal-body::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }

/* Modal table */
.modal-table {
  width: 100%; border-collapse: collapse;
  font-size: 13px;
}
.modal-table thead th {
  position: sticky; top: 0; z-index: 10;
  background: var(--bg-secondary);
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--text-muted); text-align: left;
  padding: 8px 16px;
  border-bottom: 0.5px solid var(--border-med);
}
.modal-table tbody tr {
  border-bottom: 0.5px solid var(--border);
  transition: background 0.08s;
}
.modal-table tbody tr:last-child { border-bottom: none; }
.modal-table tbody tr:hover { background: var(--bg-secondary); }

/* Column name cell */
.modal-col-name {
  width: 15%; max-width: 15%;
  padding: 8px 16px;
  vertical-align: top;
  font-size: 11px; font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border-right: 0.5px solid var(--border);
  user-select: text;
}

/* Value cell */
.modal-col-value {
  padding: 8px 16px;
  vertical-align: top;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  user-select: text;
}

.modal-value  { font-size: 13px; color: var(--text); line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.modal-empty  { font-size: 12px; color: var(--text-hint); font-style: italic; }
.modal-mono   { font-family: var(--mono); font-size: 11px; color: var(--text-muted); white-space: pre-wrap; word-break: break-all; overflow-wrap: anywhere; }
.modal-null   { font-size: 12px; color: var(--text-hint); font-style: italic; }
.modal-scalar { font-size: 13px; color: var(--text); white-space: pre-wrap; word-break: break-word; }

/* Parsed PHP object display */
.modal-parsed { display: flex; flex-direction: column; gap: 2px; }

.modal-obj {
  display: flex; flex-direction: column; gap: 4px;
}
.modal-nested {
  margin-left: 12px;
  padding-left: 10px;
  border-left: 2px solid var(--border-med);
  margin-top: 2px;
}
.modal-kv {
  display: flex; align-items: baseline;
  flex-wrap: wrap; gap: 5px;
  line-height: 1.6;
}
.modal-key {
  font-size: 11px; font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border: 0.5px solid var(--border);
  border-radius: 3px; padding: 0 5px;
  white-space: nowrap;
}
.modal-sep {
  font-size: 11px; color: var(--text-hint);
}

/* Keyboard hint */
.modal-footer {
  padding: 8px 16px;
  border-top: 0.5px solid var(--border);
  background: var(--bg-secondary);
  font-size: 11px; color: var(--text-hint);
  display: flex; gap: 14px; align-items: center;
  flex-shrink: 0;
}
.modal-hint { display: flex; align-items: center; gap: 4px; }
.modal-kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 4px;
  font-size: 10px; font-family: var(--mono);
  background: var(--bg); border: 0.5px solid var(--border-med);
  border-radius: 3px; color: var(--text-muted);
}

/* ============================================================
   Pipe-separated value table (inside modal)
   ============================================================ */

.modal-pipe { display: flex; flex-direction: column; gap: 6px; }

.pipe-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 500;
  padding: 2px 7px; border-radius: 4px;
  background: #f0f4f0; color: #2a5c2a;
  border: 0.5px solid rgba(42,92,42,0.18);
  width: fit-content;
}
@media (prefers-color-scheme: dark) {
  .pipe-badge { background: #0d2a0d; color: #6fcf6f; border-color: rgba(111,207,111,0.18); }
}

.pipe-table {
  width: 100%;
  border-collapse: collapse;
  border: 0.5px solid var(--border-med);
  border-radius: var(--r-sm);
  overflow: hidden;
  font-size: 12px;
}

.pipe-row { border-bottom: 0.5px solid var(--border); }
.pipe-row:last-child { border-bottom: none; }
.pipe-row:hover { background: var(--bg-secondary); }

.pipe-key {
  width: 22%;
  padding: 5px 10px;
  vertical-align: top;
  font-size: 11px; font-weight: 500;
  color: var(--text-muted);
  border-right: 0.5px solid var(--border);
  white-space: nowrap;
  background: var(--bg-secondary);
}
.pipe-key.pipe-no-key { background: transparent; }

.pipe-val {
  padding: 5px 10px;
  vertical-align: top;
  color: var(--text);
  word-break: break-word;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.pipe-scalar {
  font-size: 12px;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

.pipe-json {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  white-space: pre-wrap;
  word-break: break-all;
  background: var(--bg-secondary);
  border-radius: 3px;
  padding: 4px 7px;
}
