/* Resizable main dashboard. Side-panel mode keeps its existing single-feed layout. */
.monitor-shell {
  --monitor-split: 50;
  grid-template-columns: minmax(0, calc(var(--monitor-split) * 1% - 4px)) 8px minmax(0, 1fr);
}

.monitor-column + .monitor-column { border-left: 0; }

.monitor-divider {
  position: relative;
  z-index: 8;
  width: 8px;
  min-width: 8px;
  height: 100vh;
  border: 0;
  outline: 0;
  background: #111820;
  cursor: col-resize;
  touch-action: none;
  user-select: none;
}

.monitor-divider span {
  position: absolute;
  top: 50%;
  left: 2px;
  width: 4px;
  height: 52px;
  border-radius: 999px;
  background: #35414d;
  transform: translateY(-50%);
  transition: background .14s, box-shadow .14s;
}

.monitor-divider:hover span,
.monitor-divider:focus-visible span,
.monitor-divider.dragging span {
  background: #45d389;
  box-shadow: 0 0 0 4px rgba(69, 211, 137, .12);
}

.monitor-shell[data-monitor-layout="bell-only"],
.monitor-shell[data-monitor-layout="gmgn-only"],
.monitor-shell[data-monitor-layout="disabled"] {
  grid-template-columns: minmax(0, 1fr);
}

.restore-monitor-button {
  flex: 0 0 auto;
  padding: 6px 8px;
  border: 1px solid #285f4b;
  border-radius: 8px;
  background: #10251d;
  color: #6de0aa;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.restore-monitor-button:hover { border-color: #45a879; background: #143126; }

.monitors-disabled {
  width: 100%;
  height: 100vh;
  place-items: center;
  padding: 24px;
  background: #090d12;
  text-align: center;
}

.monitors-disabled:not([hidden]) { display: grid; }
.monitors-disabled > div { max-width: 480px; padding: 30px; border: 1px solid #202832; border-radius: 16px; background: #0d141b; }
.monitors-disabled span { color: #45d389; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.monitors-disabled h2 { margin: 8px 0 6px; font-size: 20px; }
.monitors-disabled p { margin: 0 0 18px; color: #72808d; font-size: 12px; }
.monitors-disabled div div { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.monitors-disabled button { padding: 10px 14px; border: 1px solid #285f4b; border-radius: 9px; background: #10251d; color: #75e4b0; font-size: 11px; font-weight: 800; }
[hidden] { display: none !important; }

@media (max-width: 900px) {
  html, body { overflow: hidden; }
  .monitor-shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, calc(var(--monitor-split) * 1% - 4px)) 8px minmax(0, 1fr);
    width: 100%;
    height: 100vh;
  }
  .monitor-column { width: 100%; height: auto; min-height: 0; }
  .monitor-column + .monitor-column { border-top: 0; }
  .monitor-divider { width: 100%; min-width: 0; height: 8px; min-height: 8px; cursor: row-resize; }
  .monitor-divider span { top: 2px; left: 50%; width: 52px; height: 4px; transform: translateX(-50%); }
  .monitor-shell[data-monitor-layout="bell-only"],
  .monitor-shell[data-monitor-layout="gmgn-only"],
  .monitor-shell[data-monitor-layout="disabled"] { grid-template-rows: minmax(0, 1fr); }
}

.side-panel-mode .monitor-shell { display: block; height: calc(100vh - 44px); }
.side-panel-mode .monitor-column { height: calc(100vh - 44px); }
.side-panel-mode .monitor-divider,
.side-panel-mode .monitors-disabled { display: none !important; }
