:root{
  --divider-px: 6px;
  --bg: #0b0c10;
  --panel: #14161d;
  --text: #e8e8e8;
  --muted: #9aa3ad;
  --accent: #4ea1ff;
}

/* predictable sizing [web:292] */
*,
*::before,
*::after{
  box-sizing: border-box;
}

html, body{
  width:100%;
  height:100%;
  margin:0;
  padding:0;
}

body{
  background:var(--bg);
  color:var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  overflow:hidden; /* app is fullscreen */
}

/* App layout */
#app{
  width:100%;
  height:100%;
  display:flex;
  flex-direction:row;
  margin:0;
  padding:0;
}

/* panes fill available space */
.pane{
  flex:1 1 50%;
  min-width:0;
  min-height:0;
  overflow:hidden;
  background:var(--panel);
  margin:0;
  padding:0;
  border:0;
}

/* IMPORTANT: modules must fill whole pane */
.paneInner{
  width:100%;
  height:100%;
  overflow:hidden; /* no scroll by default */
  margin:0;
  padding:0;
  border:0;
}

/* wrapper for dynamically inserted module */
.moduleRoot{
  width:100%;
  height:100%;
  margin:0;
  padding:0;
  border:0;
}

/* divider between panes */
#divider{
  width: var(--divider-px);
  background:#2a2f3a;
  margin:0;
  padding:0;
  border:0;
}

/* generic “no spacing” rule for modules */
.mod{
  width:100%;
  height:100%;
  margin:0;
  padding:0;
  border:0;
}

/* Settings overlay */
.hidden{ display:none !important; }

.overlay{
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  background: rgba(0,0,0,0.70);
  display:flex;
  flex-direction:column;
  margin:0;
  padding:0;
}

.overlayHeader{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 14px; /* UI padding is ok; only panes/modules are 0 */
  background:#0f1117;
  border-bottom:1px solid #2a2f3a;
}
.overlayTitle{ font-weight:600; }

.btn{
  background:#1c2330;
  color:var(--text);
  border:1px solid #2a2f3a;
  padding:8px 10px;
  border-radius:10px;
}

.tabs{
  display:flex;
  gap:8px;
  padding:10px 14px;
  flex-wrap:wrap;
  border-bottom:1px solid #2a2f3a;
  background:#0f1117;
}

.tabBtn{
  background:#1c2330;
  border:1px solid #2a2f3a;
  color:var(--text);
  padding:8px 10px;
  border-radius:10px;
  cursor:pointer;
}
.tabBtn.active{
  border-color: var(--accent);
}

.tabPanels{
  padding:14px;
  overflow:auto;
}
.tabPanel{ display:none; }
.tabPanel.active{ display:block; }

.fieldRow{
  display:flex;
  align-items:center;
  gap:12px;
  margin:12px 0;
}
.label{ width:240px; color:var(--muted); }
.input{
  flex:1;
  background:#0f1117;
  border:1px solid #2a2f3a;
  color:var(--text);
  padding:10px 12px;
  border-radius:10px;
}

.hr{ border:none; border-top:1px solid #2a2f3a; margin:16px 0; }
.h3{ margin:10px 0; font-size:14px; color:var(--muted); font-weight:600; }
.hint{ color:var(--muted); font-size:13px; }

.grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}

.modRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 10px;
  background:#0f1117;
  border:1px solid #2a2f3a;
  border-radius:10px;
  margin-bottom:8px;
}
.modName{ font-weight:600; }
.modActions{ display:flex; gap:6px; align-items:center; }
.smallBtn{
  padding:6px 8px;
  border-radius:8px;
  border:1px solid #2a2f3a;
  background:#1c2330;
  color:var(--text);
}
.toggle{
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--muted);
}
