/* MacTools – egyetlen stíluslap. Tokenek → komponensek → oldalspecifikus. */

:root {
  color-scheme: light;
  --bg: #f5f6f8; --surface: #ffffff; --surface-2: #f0f2f5; --surface-3: #e6e9ee; --border: #dfe3e8;
  --text: #1c2026; --muted: #5f6b7a; --accent: #2563eb; --accent-soft: #e8efff; --accent-text: #fff;
  --ok: #15803d; --ok-bg: #e7f6ec; --err: #b91c1c; --err-bg: #fdecec;
  --warn: #a16207; --warn-bg: #fdf6e3; --info-bg: #eaf1fd;
  --code-bg: #0f172a; --code-text: #e2e8f0; --code-muted: #64748b;
  --series-1: #2a78d6; --series-2: #eb6834; --grid: #e7e9ed; --axis: #9aa3ae;
  --radius: 10px; --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-lg: 0 20px 50px rgba(16, 24, 40, .25);
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --sidebar: 232px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0f1216; --surface: #171b21; --surface-2: #1f242c; --surface-3: #2a303a; --border: #2a3039;
    --text: #e6e9ee; --muted: #9aa4b2; --accent: #5b93ff; --accent-soft: #1b2740;
    --ok: #4ade80; --ok-bg: #13251b; --err: #f87171; --err-bg: #2c1618;
    --warn: #facc15; --warn-bg: #29230f; --info-bg: #16213a;
    --code-bg: #0b0e12; --code-muted: #5b6678;
    --series-1: #3987e5; --series-2: #d95926; --grid: #262c35; --axis: #6b7582;
    --shadow: none; --shadow-lg: 0 20px 50px rgba(0, 0, 0, .6);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1216; --surface: #171b21; --surface-2: #1f242c; --surface-3: #2a303a; --border: #2a3039;
  --text: #e6e9ee; --muted: #9aa4b2; --accent: #5b93ff; --accent-soft: #1b2740;
  --ok: #4ade80; --ok-bg: #13251b; --err: #f87171; --err-bg: #2c1618;
  --warn: #facc15; --warn-bg: #29230f; --info-bg: #16213a;
  --code-bg: #0b0e12; --code-muted: #5b6678;
  --series-1: #3987e5; --series-2: #d95926; --grid: #262c35; --axis: #6b7582;
  --shadow: none; --shadow-lg: 0 20px 50px rgba(0, 0, 0, .6);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 22px; margin: 0; letter-spacing: -.01em; }
h2 { font-size: 15px; margin: 0 0 12px; }
h3 { font-size: 13px; margin: 16px 0 6px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
code, pre, .mono { font-family: var(--mono); font-size: 12.5px; }
pre { white-space: pre-wrap; word-break: break-word; margin: 0; }
summary { cursor: pointer; }
hr { border: 0; border-top: 1px solid var(--border); }

/* --- Elrendezés ------------------------------------------------------------ */
main { max-width: 1280px; margin: 0 auto; padding: 24px 24px 80px; }
body.with-sidebar main { margin-left: var(--sidebar); max-width: none; padding-left: 32px; padding-right: 32px; }
@media (min-width: 1600px) { body.with-sidebar main { padding-right: calc(100vw - var(--sidebar) - 1320px); } }

.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); background: var(--surface);
  border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 16px 12px; z-index: 20; }
.sidebar .brand { font-weight: 700; font-size: 16px; color: var(--text); padding: 4px 10px 14px; display: flex; gap: 8px; align-items: center; }
.sidebar .brand:hover { text-decoration: none; }
.logo { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6); color: #fff; font-size: 15px; }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.sidebar nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--radius-sm); color: var(--muted); font-weight: 500; }
.sidebar nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.sidebar nav a.active { background: var(--accent-soft); color: var(--accent); }
.nav-icon { width: 20px; text-align: center; font-size: 14px; }
.sidebar-foot { display: flex; justify-content: space-between; gap: 4px; padding-top: 12px; border-top: 1px solid var(--border); }
.search-trigger { display: flex; justify-content: space-between; align-items: center; margin: 0 0 14px; padding: 7px 10px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--muted); font: inherit; cursor: pointer; }
.search-trigger:hover { border-color: var(--accent); }
.mobilebar { display: none; }

@media (max-width: 900px) {
  body.with-sidebar main { margin-left: 0; padding: 16px 16px 64px; }
  .sidebar { transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: none; }
  .mobilebar { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 15;
    background: var(--surface); border-bottom: 1px solid var(--border); padding: 6px 8px; }
  .mobilebar .brand { font-weight: 700; color: var(--text); }
}

.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); margin-bottom: 16px; }
.grid-2 > .card { margin-bottom: 0; }
.grid-3 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin-bottom: 16px; }
.grid-3 > .card { margin-bottom: 0; }
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); margin-bottom: 16px; }
.cards > .card { margin-bottom: 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; box-shadow: var(--shadow); min-width: 0; }
.card > h2:first-child, .card > .row:first-child h2 { margin-bottom: 12px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
form.inline { display: inline; margin: 0; }
.list-row { display: flex; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.list-row:last-child { border-bottom: 0; }

/* --- Gombok, jelvények ------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font: inherit; font-weight: 500; cursor: pointer; white-space: nowrap; line-height: 1.4; }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--err); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.small { padding: 3px 9px; font-size: 12px; }
label.btn { font-weight: 500; margin: 0; }
.kbd { font-family: var(--mono); font-size: 11px; padding: 1px 5px; border: 1px solid var(--border); border-radius: 4px; color: var(--muted); background: var(--surface); }
.btn.primary .kbd { color: inherit; border-color: rgba(255,255,255,.4); background: transparent; }

.badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--surface-2); color: var(--muted); white-space: nowrap; vertical-align: middle; }
.badge.running, .badge.started, .badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.failed, .badge.error, .badge.err { background: var(--err-bg); color: var(--err); }
.badge.disabled, .badge.stopped, .badge.none, .badge.unloaded { background: var(--surface-2); color: var(--muted); }
.badge.loaded, .badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.scheduled, .badge.idle { background: var(--info-bg); color: var(--accent); }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px 2px 10px; margin: 0 6px 6px 0;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); }

/* --- Táblák ------------------------------------------------------------------ */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: 12px; color: var(--muted); font-weight: 600; }
th a { color: inherit; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td, table.files tr:hover td { background: var(--surface-2); }
.table-wrap { overflow-x: auto; }
td.actions { text-align: right; white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
table.compact td, table.compact th { padding: 5px 8px; }

/* --- Üzenetek ----------------------------------------------------------------- */
.messages { margin-bottom: 16px; display: grid; gap: 8px; }
.msg { position: relative; padding: 10px 36px 10px 14px; border-radius: var(--radius); background: var(--info-bg); border: 1px solid var(--border); }
.msg.success { background: var(--ok-bg); }
.msg.error { background: var(--err-bg); color: var(--err); }
.msg.warning { background: var(--warn-bg); }
.msg pre { max-height: 300px; overflow: auto; }
.msg-close { position: absolute; top: 6px; right: 8px; border: 0; background: transparent; color: inherit; font-size: 18px; cursor: pointer; opacity: .6; }

/* --- Űrlapok ------------------------------------------------------------------ */
label { display: block; font-weight: 600; margin-bottom: 4px; }
input[type=text], input[type=number], input[type=password], input[type=email], input[type=url], input[type=search], select, textarea {
  width: 100%; padding: 7px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); font: inherit; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.row > input, .row > select { width: auto; }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); }
.field { margin-bottom: 14px; }
.field .help { color: var(--muted); font-size: 12px; margin-top: 3px; }
.errorlist { color: var(--err); margin: 4px 0 0; padding: 0; list-style: none; font-size: 12px; }
.form-grid { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

/* --- Kód és log ---------------------------------------------------------------- */
textarea.code, .log { font-family: var(--mono); font-size: 12.5px; line-height: 1.55;
  background: var(--code-bg); color: var(--code-text); border-radius: var(--radius); tab-size: 4; }
textarea.code { min-height: 420px; padding: 12px; border: 1px solid var(--border); resize: vertical; }
textarea.code[rows="4"] { min-height: 100px; }
.log { padding: 12px; max-height: 480px; overflow: auto; }
.CodeMirror { height: auto; min-height: 120px; max-height: 75vh; border-radius: var(--radius); border: 1px solid var(--border);
  font-family: var(--mono); font-size: 12.5px; line-height: 1.55; background: var(--code-bg); color: var(--code-text); }
.CodeMirror.cm-tall { min-height: 480px; }
.CodeMirror-scroll { min-height: inherit; max-height: 75vh; }
.CodeMirror-gutters { background: var(--code-bg); border-right: 1px solid #1e293b; }
.CodeMirror-linenumber { color: var(--code-muted); }
.CodeMirror-cursor { border-left-color: #e2e8f0; }
.CodeMirror-activeline-background { background: rgba(148, 163, 184, .08); }
.CodeMirror-selected, .CodeMirror-focused .CodeMirror-selected { background: rgba(59, 130, 246, .3) !important; }
.CodeMirror-matchingbracket { color: #fde047 !important; outline: 1px solid rgba(253, 224, 71, .4); }
.CodeMirror-dialog { background: #1e293b; color: #e2e8f0; }
.cm-s-default .cm-keyword { color: #c792ea; } .cm-s-default .cm-def { color: #82aaff; }
.cm-s-default .cm-variable { color: #e2e8f0; } .cm-s-default .cm-variable-2 { color: #89ddff; }
.cm-s-default .cm-variable-3, .cm-s-default .cm-type { color: #ffcb6b; }
.cm-s-default .cm-string, .cm-s-default .cm-string-2 { color: #c3e88d; }
.cm-s-default .cm-number { color: #f78c6c; } .cm-s-default .cm-atom { color: #f78c6c; }
.cm-s-default .cm-comment { color: #64748b; font-style: italic; }
.cm-s-default .cm-property { color: #82aaff; } .cm-s-default .cm-attribute { color: #ffcb6b; }
.cm-s-default .cm-tag { color: #f07178; } .cm-s-default .cm-builtin { color: #82aaff; }
.cm-s-default .cm-meta { color: #89ddff; } .cm-s-default .cm-operator { color: #89ddff; }
.cm-s-default .cm-header { color: #82aaff; font-weight: bold; } .cm-s-default .cm-qualifier { color: #ffcb6b; }
.cm-s-default .cm-bracket { color: #94a3b8; } .cm-s-default .cm-link { color: #89ddff; }
.cm-s-default .cm-error { color: #ff5370; }

.terminal { border-radius: var(--radius); overflow: hidden; border: 1px solid #1e293b; background: var(--code-bg); }
.terminal-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: #111827; color: #94a3b8; }
.terminal-bar > span { width: 11px; height: 11px; border-radius: 50%; background: #ef4444; }
.terminal-bar > span:nth-child(2) { background: #f59e0b; } .terminal-bar > span:nth-child(3) { background: #22c55e; }
.terminal-bar label { display: flex; gap: 6px; align-items: center; font-weight: 400; margin: 0; color: #94a3b8; }
.terminal pre { color: var(--code-text); padding: 14px 16px; min-height: 300px; font-size: 12.5px; line-height: 1.55; }

/* --- Statok, csempék ------------------------------------------------------------- */
.stat { font-size: 13px; }
.stat strong { font-size: 20px; display: block; }
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 16px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; min-width: 0; }
.tile > .muted:first-child { font-size: 12px; font-weight: 600; }
.tile strong { font-size: 24px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; line-height: 1.3; }
a.tile, .tile a { color: inherit; text-decoration: none; }
a.tile:hover { border-color: var(--accent); }
.sysinfo { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px 20px; }
.sysinfo > div { display: flex; flex-direction: column; min-width: 0; }
.sysinfo .muted:first-child { font-size: 12px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }

.meter { height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; margin: 6px 0 4px; }
.meter.thin { height: 5px; margin: 3px 0 8px; }
.meter-fill { height: 100%; border-radius: 4px; background: var(--series-1); min-width: 2px; }
.meter-fill.warn { background: var(--warn); } .meter-fill.err { background: var(--err); }
.meter-row { margin-bottom: 14px; }
.hbar-row code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 75%; }

.cores { display: flex; gap: 6px; align-items: flex-end; height: 140px; }
.core { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; }
.core-bar { flex: 1; width: 100%; max-width: 36px; background: var(--surface-3); border-radius: 4px; display: flex; align-items: flex-end; overflow: hidden; }
.core-bar div { width: 100%; background: var(--series-1); border-radius: 4px 4px 0 0; transition: height .4s; min-height: 2px; }
.core span { font-size: 11px; color: var(--muted); }
.hbars.hours { display: flex; gap: 3px; align-items: flex-end; height: 120px; }
.vbar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; }
.vbar-fill { width: 100%; background: var(--series-1); border-radius: 4px 4px 0 0; min-height: 1px; }
.vbar span { font-size: 10px; color: var(--muted); }
.vbar:hover .vbar-fill { filter: brightness(1.15); }

/* --- Grafikon (charts.js) ----------------------------------------------------------- */
.timechart { position: relative; }
.timechart svg { display: block; width: 100%; overflow: visible; touch-action: none; }
.chart-grid line { stroke: var(--grid); stroke-width: 1; }
.chart-grid line.chart-base { stroke: var(--axis); }
.chart-grid text, .chart-direct text { font-size: 11px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.chart-direct text { fill: var(--text); font-weight: 600; paint-order: stroke; stroke: var(--surface); stroke-width: 3px; }
.chart-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-area { opacity: .12; }
.chart-hair { stroke: var(--axis); stroke-width: 1; stroke-dasharray: 3 3; }
.chart-dot { stroke: var(--surface); stroke-width: 2; }
.chart-tip { position: absolute; top: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 6px 10px; font-size: 12px; box-shadow: var(--shadow-lg); pointer-events: none; white-space: nowrap; z-index: 2; }
.chart-tip i, .chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.chart-legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-bottom: 6px; }

/* --- Navigáció a lapokon belül ---------------------------------------------------------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: -6px 0 18px; overflow-x: auto; }
.tabs a { padding: 8px 14px; color: var(--muted); border-bottom: 2px solid transparent; font-weight: 500; white-space: nowrap; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.active { color: var(--accent); border-bottom-color: var(--accent); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; }
.crumbs span { color: var(--muted); }

/* --- Dashboard ------------------------------------------------------------------------ */
.alerts { display: grid; gap: 8px; margin-bottom: 16px; }
.alert { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.alert .alert-icon { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-weight: 700; font-size: 12px; flex: none; }
.alert.err .alert-icon { background: var(--err-bg); color: var(--err); }
.alert.warn .alert-icon { background: var(--warn-bg); color: var(--warn); }
.alert.info .alert-icon { background: var(--info-bg); color: var(--accent); }
.alert.err { border-color: color-mix(in srgb, var(--err) 35%, var(--border)); }
.all-good { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: var(--radius); background: var(--ok-bg); color: var(--ok); font-weight: 600; margin-bottom: 16px; }
.project-card h2 { margin: 0; }
.project-card h2 a { color: var(--text); }
.pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 4px; animation: pulse 2s infinite; }
.stale .pulse { background: var(--muted); animation: none; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* --- Fájlkezelő ------------------------------------------------------------------------- */
#drop-zone.dragging { outline: 2px dashed var(--accent); outline-offset: 4px; border-radius: var(--radius); }
table.files td { padding: 6px 10px; }
table.files a { color: var(--text); }

/* --- Gyorskereső ------------------------------------------------------------------------ */
.palette { position: fixed; inset: 0; background: rgba(15, 18, 22, .45); z-index: 100; display: flex; justify-content: center; align-items: flex-start; padding-top: 12vh; }
.palette[hidden] { display: none; }
.palette-box { width: min(620px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; }
.palette-box input { border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: 16px 18px; font-size: 16px; }
.palette-box input:focus { outline: none; }
.palette-list { max-height: 50vh; overflow-y: auto; padding: 6px; }
.palette-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-radius: var(--radius-sm); color: var(--text); cursor: pointer; }
.palette-item.active { background: var(--accent-soft); color: var(--accent); text-decoration: none; }
.palette-item .muted { font-size: 11px; }
.palette-foot { padding: 8px 14px; border-top: 1px solid var(--border); }

@media (max-width: 640px) {
  .page-head h1 { font-size: 19px; }
  .card { padding: 14px; }
  .tile strong { font-size: 20px; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
}

/* --- Monitorozás ----------------------------------------------------------------------- */
.sparkline { display: block; overflow: visible; }
.spark-line { fill: none; stroke: var(--series-1); stroke-width: 1.5; stroke-linejoin: round; }
.spark-down { fill: var(--err); }
.status-strip { display: grid; grid-template-columns: repeat(48, 1fr); gap: 2px; margin: 4px 0 6px; }
.status-strip span { height: 32px; border-radius: 3px; background: var(--surface-3); }
.status-strip span.ok { background: var(--ok); }
.status-strip span.warn { background: var(--warn); }
.status-strip span.err { background: var(--err); }
.status-strip span:hover { opacity: .75; }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; background: var(--surface-3); }
.legend-dot.ok { background: var(--ok); } .legend-dot.warn { background: var(--warn); } .legend-dot.err { background: var(--err); }
ul[id$="events"], div[id$="events"] { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
div[id$="events"] label, ul[id$="events"] label, div[id$="levels"] label { font-weight: 400; display: flex; gap: 8px; align-items: center; }
div[id$="levels"] { display: grid; gap: 4px; }
.range-tabs { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.range-tabs button { border: 0; background: var(--surface); color: var(--muted); padding: 4px 12px; font: inherit; font-size: 12px; cursor: pointer; }
.range-tabs button.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

/* --- Terminál ---------------------------------------------------------------------------- */
.term-full #term { height: calc(100vh - 230px); min-height: 360px; padding: 8px 4px 4px 10px; }
.term-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.term-tab { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.term-tab button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 12px; padding: 4px 8px; cursor: pointer; }
.term-tab.active { border-color: var(--accent); }
.term-tab.active .tab-name { color: var(--accent); font-weight: 600; }
.term-tab.dead .tab-name { text-decoration: line-through; }
.term-tab .tab-close:hover { color: var(--err); }
.xterm .xterm-viewport { background: transparent !important; }

/* --- Docker Hub keresés ------------------------------------------------------------------ */
.hub-results { display: grid; gap: 4px; margin-top: 8px; max-width: 720px; }
.hub-results:empty { display: none; }
.hub-item { display: block; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); }
.hub-item:hover { border-color: var(--accent); text-decoration: none; background: var(--surface-2); }

/* --- Adatbázis kliens (dbclient.js) ------------------------------------------------------ */
body.dbc-page main { padding: 0 !important; max-width: none; }
body.dbc-page .messages { margin: 12px 16px 0; }
.dbc { --dbc-nav-w: 290px; display: flex; height: 100vh; height: 100dvh; position: relative; overflow: hidden; }
.dbc [hidden], .dbc-dialog [hidden] { display: none !important; }
.dbc-nav { width: var(--dbc-nav-w); flex: none; display: flex; flex-direction: column; min-height: 0; background: var(--surface); border-right: 1px solid var(--border); }
.dbc-nav-head { padding: 8px 8px 0; }
.dbc-nav-foot { padding: 8px 12px; border-top: 1px solid var(--border); }
.dbc-resizer { width: 6px; margin-left: -3px; margin-right: -3px; cursor: col-resize; z-index: 5; flex: none; }
.dbc-resizer:hover { background: color-mix(in srgb, var(--accent) 40%, transparent); }
.dbc-work { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dbc-pane { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.dbc-pane-bar { display: flex; gap: 4px; padding: 8px; align-items: center; }
.dbc-pane-bar input { padding: 4px 8px; font-size: 12.5px; }
.dbc-seg { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; flex: none; }
.dbc-seg button { border: 0; background: var(--surface); color: var(--muted); padding: 4px 10px; font: inherit; font-size: 12px; cursor: pointer; white-space: nowrap; }
.dbc-seg button + button { border-left: 1px solid var(--border); }
.dbc-seg button.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.dbc-nav-head .dbc-seg { display: flex; }
.dbc-nav-head .dbc-seg button { flex: 1; }
.dbc-empty { padding: 20px 14px; text-align: center; color: var(--muted); display: grid; gap: 8px; justify-items: center; }
.dbc-empty p { margin: 0; }

/* Fa */
.dbc-tree { flex: 1; overflow: auto; padding: 0 0 16px; font-size: 13px; outline: none; }
.tn { display: flex; align-items: center; gap: 5px; padding: 2px 8px 2px 6px; min-height: 24px; white-space: nowrap; user-select: none; cursor: default; }
.tn:hover { background: var(--surface-2); }
.tn.selected { background: var(--surface-3); }
.dbc-tree:focus .tn.selected { background: var(--accent-soft); }
.tn-toggle { width: 12px; flex: none; color: var(--muted); font-size: 9px; text-align: center; transition: transform .12s; cursor: pointer; }
.open > .tn > .tn-toggle { transform: rotate(90deg); }
.tn-icon { width: 16px; flex: none; text-align: center; font-size: 12px; color: var(--muted); }
.tn-conn .tn-icon, .tn-database .tn-icon { color: inherit; }
.tn-label { overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
.tn-meta { margin-left: auto; padding-left: 8px; color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 100 auto; }
.tn-kids { display: none; }
.open > .tn-kids { display: block; }
.tn-conn { font-weight: 600; box-shadow: inset 3px 0 0 var(--conn-color, transparent); min-height: 28px; }
.tn-conn.connected .tn-label::after, .tn-conn.failed .tn-label::after { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-left: 6px; vertical-align: 1px; background: var(--ok); }
.tn-conn.failed .tn-label::after { background: var(--err); }
.tn-ro { font-size: 9px; font-weight: 700; padding: 0 4px; border-radius: 3px; background: var(--warn-bg); color: var(--warn); }
.tn-group { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; cursor: pointer; margin-top: 6px; }
.tn-column .tn-label { color: var(--muted); }
.tn-icon.pk { font-size: 10px; }
.tn-error { color: var(--err); font-size: 12px; white-space: normal; gap: 4px; }
.tn-loading, .tn-empty { color: var(--muted); font-size: 12px; font-style: italic; }
.tn-more { color: var(--muted); font-size: 12px; }
.filtered { display: none !important; }
.tn-badge { flex: none; width: 15px; height: 15px; border-radius: 3px; font: 700 9px/15px var(--mono); text-align: center; color: #fff; background: #64748b; }
.tn-badge.t-string { background: #2563eb; } .tn-badge.t-hash { background: #9333ea; } .tn-badge.t-list { background: #16a34a; }
.tn-badge.t-set { background: #ea580c; } .tn-badge.t-zset { background: #db2777; } .tn-badge.t-stream { background: #0891b2; }
.tn-badge.t-rejsonrl, .tn-badge.t-json { background: #ca8a04; }

/* Listák (scriptek, előzmények) */
.dbc-list { flex: 1; overflow: auto; padding: 0 6px 12px; }
.dbc-list-group { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 10px 8px 4px; }
.dbc-list-item { padding: 6px 8px; border-radius: var(--radius-sm); cursor: pointer; border-left: 3px solid var(--conn-color, transparent); outline: none; }
.dbc-list-item:hover, .dbc-list-item:focus { background: var(--surface-2); }
.dbc-li-title { display: flex; gap: 6px; align-items: center; font-weight: 500; }
.dbc-li-meta { display: flex; gap: 2px; align-items: center; flex-wrap: wrap; margin-top: 2px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dbc-hist-sql { font-size: 11.5px; max-height: 4.2em; overflow: hidden; white-space: pre-wrap; word-break: break-all; margin: 0; }
.dbc-hist.err { border-left-color: var(--err); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 4px; background: var(--muted); }
.dot.ok { background: var(--ok); } .dot.err { background: var(--err); }

/* Fülek */
.dbc-tabbar { display: flex; align-items: flex-end; gap: 4px; padding: 5px 6px 0; min-height: 38px; background: var(--surface); border-bottom: 1px solid var(--border); flex: none; }
.dbc-tabbar > .btn { margin-bottom: 4px; }
.dbc-nav-toggle { display: none; }
.dbc-tabs { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.dbc-tabs::-webkit-scrollbar { display: none; }
.dbc-tab { display: flex; align-items: center; gap: 6px; max-width: 260px; padding: 6px 6px 6px 10px; border: 1px solid transparent; border-bottom: 0;
  border-radius: 8px 8px 0 0; color: var(--muted); font-size: 13px; white-space: nowrap; cursor: pointer; user-select: none; box-shadow: inset 0 2px 0 var(--conn-color, transparent); }
.dbc-tab:hover { background: var(--surface-2); color: var(--text); }
.dbc-tab.active { background: var(--bg); border-color: var(--border); color: var(--text); margin-bottom: -1px; padding-bottom: 7px; }
.dbc-tab-icon { font-size: 12px; }
.dbc-tab-title { overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.dbc-tab.dirty .dbc-tab-title::after { content: " ●"; color: var(--accent); }
.dbc-tab-conn { font-size: 11px; color: var(--muted); max-width: 90px; overflow: hidden; text-overflow: ellipsis; }
.dbc-tab-close { border: 0; background: transparent; color: inherit; opacity: .45; cursor: pointer; font-size: 15px; line-height: 1; padding: 0 3px; border-radius: 4px; }
.dbc-tab-close:hover { opacity: 1; color: var(--err); background: var(--err-bg); }
.dbc-tabbody { flex: 1; min-height: 0; position: relative; background: var(--bg); }
.dbc-tabbody:empty { display: none; }
.dbc-tabbody > div { position: absolute; inset: 0; display: flex; flex-direction: column; }
.dbc-welcome { flex: 1; overflow: auto; display: flex; justify-content: center; padding: 48px 24px; }
.dbc-welcome-box { width: 100%; max-width: 640px; }
.dbc-welcome-box h1 { margin-bottom: 4px; }
.dbc-welcome-conns { margin-top: 24px; }
.dbc-welcome-conn { display: flex; gap: 10px; align-items: center; width: 100%; padding: 8px 12px; margin-bottom: 6px; border: 1px solid var(--border);
  border-left: 3px solid var(--conn-color, var(--border)); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.dbc-welcome-conn:hover { border-color: var(--accent); }
.dbc-keys { margin-top: 24px; }

/* Eszköztár, szerkesztő, eredmények */
.dbc-toolbar { display: flex; align-items: center; gap: 5px; padding: 5px 8px; flex-wrap: wrap; flex: none; background: var(--surface); border-bottom: 1px solid var(--border); }
.dbc-toolbar:first-child { border-top: 2px solid var(--conn-color, transparent); }
.dbc-toolbar .sep { width: 1px; height: 20px; background: var(--border); margin: 0 3px; }
.dbc-toolbar select { width: auto; max-width: 220px; padding: 3px 6px; font-size: 12.5px; }
.dbc-toolbar input[type=text] { padding: 4px 8px; font-size: 12.5px; }
.dbc-check { display: inline-flex; gap: 5px; align-items: center; font-weight: 400; font-size: 12.5px; margin: 0; white-space: nowrap; }
.dbc-check input { width: 14px; height: 14px; }
.dbc-scriptname { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.readonly-conn .dbc-toolbar:first-child::after { content: "CSAK OLVASHATÓ"; font-size: 10px; font-weight: 700; color: var(--warn); background: var(--warn-bg); padding: 1px 6px; border-radius: 4px; order: 99; }
.dbc-editor { flex: none; min-height: 60px; position: relative; background: var(--code-bg); }
.dbc-editor.full { flex: 1; min-height: 0; }
.dbc .CodeMirror, .dbc-dialog .CodeMirror { height: 100%; max-height: none; min-height: 0; border: 0; border-radius: 0; }
.dbc .CodeMirror-scroll, .dbc-dialog .CodeMirror-scroll { max-height: none; min-height: 0; }
.dbc-dialog .CodeMirror { height: 52vh; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.dbc-running-stmt { background: rgba(250, 204, 21, .22); }
.dbc-hsplit { flex: none; height: 6px; cursor: row-resize; background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.dbc-hsplit:hover { background: color-mix(in srgb, var(--accent) 35%, var(--surface-2)); }
.dbc-results { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--surface); }
.dbc-rtabs { flex: none; display: flex; align-items: flex-end; gap: 2px; padding: 4px 6px 0; border-bottom: 1px solid var(--border); overflow-x: auto; }
.dbc-rtabs button { border: 1px solid transparent; border-bottom: 0; background: transparent; color: var(--muted); font: inherit; font-size: 12px; padding: 4px 10px; border-radius: 6px 6px 0 0; cursor: pointer; white-space: nowrap; }
.dbc-rtabs button.active { background: var(--surface-2); border-color: var(--border); color: var(--text); font-weight: 600; }
.dbc-rtabs button.err { color: var(--err); }
.dbc-rtabs > span { align-self: center; padding-bottom: 4px; }
.dbc-rbody { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; position: relative; }
.dbc-rbody.loading { opacity: .5; pointer-events: none; }
.dbc-rfoot { flex: none; display: flex; align-items: center; gap: 4px; padding: 3px 10px; min-height: 32px; font-size: 12px; background: var(--surface); border-top: 1px solid var(--border); flex-wrap: wrap; }
.dbc-sqlline { max-width: 50%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dbc-error { margin: 12px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--err-bg); color: var(--err); overflow: auto; }
.dbc-error pre { font-size: 12.5px; }
.dbc-error details { margin-top: 8px; color: var(--text); }
.dbc-ok { margin: 12px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--ok-bg); color: var(--ok); font-weight: 500; }
.dbc-hint { padding: 14px 16px; }
.dbc-text { flex: 1; overflow: auto; margin: 0; padding: 10px 14px; background: var(--code-bg); color: var(--code-text); font-size: 12.5px; white-space: pre; word-break: normal; }
.dbc-json { flex: 1; min-height: 0; }
.dbc-running { display: flex; align-items: center; gap: 10px; padding: 16px; color: var(--muted); }
.dbc-clock { font-variant-numeric: tabular-nums; min-width: 50px; }
.dbc-spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--accent); animation: dbc-spin .8s linear infinite; }
@keyframes dbc-spin { to { transform: rotate(360deg); } }
.warn-text { color: var(--warn); }

/* Rács */
.dg-wrap { flex: 1; min-height: 0; overflow: auto; outline: none; background: var(--surface); }
table.dg { width: auto; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-family: var(--mono); font-size: 12px; }
.dg th, .dg td { padding: 3px 8px; height: 25px; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; vertical-align: middle; }
.dg tr:last-child td { border-bottom: 1px solid var(--border); }
.dg thead th { position: sticky; top: 0; z-index: 2; background: var(--surface-2); color: var(--text); font: 600 12px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; cursor: pointer; user-select: none; height: auto; padding-top: 4px; padding-bottom: 4px; }
.dg thead th:hover { background: var(--surface-3); }
.dg-h { display: flex; align-items: center; gap: 2px; overflow: hidden; }
.dg-hname { overflow: hidden; text-overflow: ellipsis; }
.dg-sort { color: var(--accent); font-size: 11px; flex: none; }
.dg-pk { font-size: 9px; flex: none; }
.dg-type { display: block; font: 400 10.5px var(--mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.dg-resize { position: absolute; top: 0; right: -3px; bottom: 0; width: 7px; cursor: col-resize; z-index: 1; }
.dg-resize:hover { background: color-mix(in srgb, var(--accent) 40%, transparent); }
.dg th.dg-rn { position: sticky; left: 0; z-index: 1; background: var(--surface-2); color: var(--muted); font: 400 11px var(--mono); text-align: right; cursor: pointer; }
.dg thead th.dg-rn { z-index: 3; text-align: center; }
.dg tbody tr:hover td { background: var(--surface-2); }
.dg td.num { text-align: right; }
.dg-null { color: var(--muted); font-style: italic; font-size: 11px; }
.dg tr.dg-selrow td, .dg tr.dg-selrow th.dg-rn { background: var(--accent-soft); }
.dg td.dg-sel { outline: 2px solid var(--accent); outline-offset: -2px; background: var(--accent-soft); }
.dg td.dg-dirty { background: var(--warn-bg); color: var(--warn); font-weight: 600; }
.dg tr.dg-new td { background: var(--ok-bg); }
.dg tr.dg-deleted td { background: var(--err-bg); color: var(--muted); text-decoration: line-through; }
.dg td.dg-editing { padding: 0; outline: 2px solid var(--accent); outline-offset: -2px; }
.dg-input { width: 100%; height: 24px; padding: 2px 8px; border: 0; border-radius: 0; background: var(--surface); color: var(--text); font: inherit; outline: none !important; }
.dg-more td { text-align: center; padding: 8px; font-family: inherit; }

/* Tábla fül */
.dbc-datahead { flex: none; display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: var(--surface); border-bottom: 1px solid var(--border); border-top: 2px solid var(--conn-color, transparent); }
.dbc-crumbs { display: flex; align-items: center; gap: 4px; font-size: 13px; min-width: 0; overflow: hidden; white-space: nowrap; }
.dbc-crumbs .badge { margin-left: 6px; }
.dbc-where-label { color: var(--muted); font-weight: 700; }
.dbc-where { flex: 1; min-width: 180px; width: auto !important; }
.dbc-pageinfo { min-width: 70px; text-align: center; font-variant-numeric: tabular-nums; color: var(--muted); }
.dbc-pane-data, .dbc-pane-structure, .dbc-pane-ddl { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.dbc-struct-wrap { flex: 1; overflow: auto; padding: 8px 16px 24px; }
.dbc-struct-block { margin-bottom: 8px; }
table.dbc-struct { max-width: 1100px; }
.dbc-struct td { word-break: break-word; }
.dbc-mongo-filter input { flex: 3; min-width: 160px; width: auto !important; }
.dbc-mongo-filter input[name=sort], .dbc-mongo-filter input[name=projection] { flex: 1.3; }
.dbc-keyinfo { flex: none; display: flex; gap: 16px; align-items: center; padding: 6px 12px; font-size: 12.5px; background: var(--surface); border-bottom: 1px solid var(--border); flex-wrap: wrap; }

/* Helyi menü, értesítés */
.dbc-menu { position: fixed; z-index: 250; min-width: 210px; max-width: 360px; padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow-lg); }
.dbc-menu button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 5px 10px; border: 0; border-radius: 5px; background: transparent; color: var(--text); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.dbc-menu button:hover:not(:disabled) { background: var(--accent-soft); color: var(--accent); }
.dbc-menu button.danger { color: var(--err); }
.dbc-menu button:disabled { opacity: .45; cursor: default; }
.dbc-menu .mi { width: 18px; text-align: center; flex: none; }
.dbc-menu hr { margin: 4px 6px; }
.dbc-menu .grow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dbc-toast { position: fixed; right: 18px; bottom: 18px; z-index: 300; max-width: min(480px, calc(100vw - 36px)); padding: 10px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); white-space: pre-wrap; cursor: pointer; }
.dbc-toast.ok { border-left: 4px solid var(--ok); } .dbc-toast.err { border-left: 4px solid var(--err); color: var(--err); } .dbc-toast.warn { border-left: 4px solid var(--warn); }

/* Dialógusok */
.dbc-dialog { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
.dbc-dialog.wide { width: min(1000px, calc(100vw - 32px)); }
.dbc-dialog::backdrop { background: rgba(15, 18, 22, .5); }
.dbc-dialog h2 { margin-bottom: 12px; }
.dbc-dialog label { font-size: 12px; }
.dbc-dialog label > input, .dbc-dialog label > select { margin-top: 3px; font-weight: 400; }
#dbc-prompt-fields { display: grid; gap: 10px; }
.dbc-dialog-foot { display: flex; gap: 8px; align-items: center; margin-top: 16px; }
.dbc-engines { display: flex; gap: 6px; flex-wrap: wrap; }
.dbc-engine { display: inline-flex !important; align-items: center; gap: 6px; padding: 6px 12px; margin: 0; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; font-size: 13px !important; font-weight: 500; }
.dbc-engine input { position: absolute; opacity: 0; pointer-events: none; }
.dbc-engine.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.dbc-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.dbc-form-grid .wide { grid-column: 1 / -1; }
.dbc-checks { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; }
.dbc-checks label { display: flex; gap: 6px; align-items: center; font-weight: 400; font-size: 13px; margin: 0; }
.dbc-colors { display: flex; gap: 5px; margin-top: 6px; }
.dbc-swatch { width: 22px; height: 22px; padding: 0; border-radius: 50%; border: 2px solid var(--border); cursor: pointer; }
.dbc-swatch[data-color=""] { background: repeating-linear-gradient(45deg, var(--surface), var(--surface) 3px, var(--surface-3) 3px, var(--surface-3) 6px) !important; }
.dbc-swatch.active { outline: 2px solid var(--accent); outline-offset: 1px; }
.dbc-test { margin-top: 12px; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--surface-2); font: 12px/1.5 var(--mono); white-space: pre-wrap; }
.dbc-test.ok { background: var(--ok-bg); color: var(--ok); } .dbc-test.err { background: var(--err-bg); color: var(--err); }
.dbc-sql-preview { max-height: 55vh; overflow: auto; white-space: pre-wrap; }

/* Kiegészítő lista */
.CodeMirror-hints { z-index: 400; font-family: var(--mono); font-size: 12px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); border-radius: 6px; }
.CodeMirror-hint { color: var(--text); border-radius: 3px; }
li.CodeMirror-hint-active { background: var(--accent); color: #fff; }
.CodeMirror-hint-keyword { color: var(--muted); }

@media (max-width: 900px) {
  .dbc { height: calc(100dvh - 49px); }
  .dbc-nav { position: absolute; top: 0; bottom: 0; left: 0; z-index: 40; width: min(320px, 85vw); transform: translateX(-100%); transition: transform .2s; }
  .dbc.nav-open .dbc-nav { transform: none; box-shadow: var(--shadow-lg); }
  .dbc-resizer { display: none; }
  .dbc-nav-toggle { display: inline-flex; }
  .dbc-form-grid { grid-template-columns: 1fr; }
  .dbc-sqlline { display: none; }
}
