:root{
  --bg:#0b0e14;
  --text:#e5e7eb;
  --muted:#9ca3af;
  --border:#1f2a3a;
  --accent:#60a5fa;
  --good:#34d399;
  --warn:#fbbf24;
  --bad:#f87171;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--mono);
  font-size:13px;
  line-height:1.35;
}

.wrap{
  display:grid;
  grid-template-columns: 1.05fr 0.95fr;
  height:100%;
}
@media (max-width: 980px){
  .wrap{grid-template-columns:1fr}
}

.pane{border-right:1px solid var(--border); min-height:100%;}
.pane:last-child{border-right:none}

.paneHeader{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 10px 8px;
  border-bottom:1px solid var(--border);
  position:sticky;
  top:0;
  background:rgba(11,14,20,0.95);
  backdrop-filter: blur(6px);
  z-index:5;
}

.title{white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.actions{display:flex; gap:6px; flex-wrap:wrap; justify-content:flex-end;}

button{
  font-family:var(--mono);
  font-size:12px;
  color:var(--text);
  background:transparent;
  border:1px solid var(--border);
  padding:6px 8px;
  cursor:pointer;
}
button:hover{border-color:rgba(96,165,250,0.6)}
button.primary{border-color:rgba(96,165,250,0.7); color:var(--accent);}
button.danger{border-color:rgba(248,113,113,0.55); color:var(--bad);}

.text{padding:10px;}

.line{display:flex; align-items:baseline; gap:8px; padding:2px 0; border-bottom:1px solid transparent;}
.line:hover{border-bottom-color:rgba(31,42,58,0.45)}

.section{padding:6px 0 4px;}
.section + .section{margin-top:10px}

.hdr{padding:2px 0; color:var(--text);}

.comment{color:var(--muted); padding:2px 0; white-space:pre-wrap;}
.comment::before{content:"# "; color:var(--muted);}

.key{min-width:140px; color:var(--text);}
.eq{color:var(--muted);}

input, textarea, select{
  font-family:var(--mono);
  font-size:13px;
  color:var(--text);
  background:transparent;
  border:none;
  outline:none;
  padding:0;
  margin:0;
  width: 100%;
}

.val{flex:1; border-bottom:1px dotted rgba(156,163,175,0.25); padding-bottom:1px;}
.val:focus-within{border-bottom-color:rgba(96,165,250,0.8);}

.val input::placeholder, .val textarea::placeholder{color:rgba(156,163,175,0.55);}

textarea{resize:vertical; min-height:40px; line-height:1.35;}

.peerTop{display:flex; justify-content:space-between; align-items:baseline; gap:10px; padding:2px 0 4px;}

.status{
  padding:8px 10px;
  border-top:1px solid var(--border);
  color:var(--muted);
  display:flex;
  flex-direction:column;
  gap:4px;
}

.ok{color:var(--good)}
.warn{color:var(--warn)}
.bad{color:var(--bad)}

.tiny{color:var(--muted); font-size:12px;}

.out{padding:10px; white-space:pre; overflow:auto;}
.outBox{border-top:1px solid var(--border);}

.divider{height:10px;}

.inlineSelect{min-width: 260px; border-bottom:1px dotted rgba(156,163,175,0.25); padding-bottom:1px;}

/* minimal checkbox styling to keep the "txt" vibe */
.checkRow{display:flex; align-items:center; gap:8px; padding:2px 0;}
.checkRow input[type="checkbox"]{width:auto; margin:0;}
.checkRow label{color:var(--muted); user-select:none;}
