/* =========================================================
   GB MARSS DOCK — SLIDE MODULE PANEL
========================================================= */

.gb-marss-dock {
  display: grid;
  grid-template-columns: 44px 0fr;
  gap: 0;

  width: auto;
  min-width: 58px;

  transition:
    grid-template-columns 220ms ease,
    gap 220ms ease,
    width 220ms ease;
}

.gb-marss-dock.has-active-tool {
  grid-template-columns: 44px minmax(280px, 420px);
  gap: 10px;
}

.gb-marss-dock__head,
.gb-marss-dock__tools {
  grid-column: 1;
}

.gb-marss-tool-slide {
  grid-column: 2;
  grid-row: 1 / span 2;

  min-width: 0;
  width: min(880px, calc(100vw - var(--app-rail-width, 78px) - 110px));
  max-height: calc(100dvh - 130px);

  display: flex;
  flex-direction: column;

  border: 1px solid rgba(143, 212, 189, 0.18);
  border-radius: 18px;

  background:
    radial-gradient(circle at 14% 0%, rgba(143, 212, 189, 0.10), transparent 58%),
    radial-gradient(circle at 80% 8%, rgba(127, 181, 255, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(10, 16, 32, 0.985), rgba(4, 7, 16, 0.99));

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    inset 0 -1px 0 rgba(0, 0, 0, 0.56),
    0 16px 38px rgba(0, 0, 0, 0.34),
    0 0 24px rgba(143, 212, 189, 0.08);

  overflow: hidden;

  opacity: 1;
  transform: translateX(0);

  transition:
    opacity 180ms ease,
    transform 220ms ease;
}

.gb-marss-tool-slide[hidden] {
  display: none !important;
}

.gb-marss-tool-slide__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  padding: 12px 13px;

  border-bottom: 1px solid rgba(143, 212, 189, 0.12);

  background:
    radial-gradient(circle at 14% 0%, rgba(143, 212, 189, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(18, 30, 48, 0.92), rgba(9, 16, 30, 0.94));
}

.gb-marss-tool-slide__kicker {
  margin: 0 0 5px;

  color: rgba(143, 212, 189, 0.72);

  font-size: 0.58rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gb-marss-tool-slide__title {
  margin: 0;

  color: var(--zom-text-main, rgba(244, 248, 255, 0.96));

  font-size: 0.95rem;
  line-height: 1.15;
  font-weight: 850;
}

.gb-marss-tool-slide__close {
  width: 30px;
  height: 30px;

  display: grid;
  place-items: center;

  padding: 0;

  border: 1px solid rgba(143, 212, 189, 0.16);
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.035);
  color: rgba(226, 245, 239, 0.78);

  font-size: 18px;
  line-height: 1;

  cursor: pointer;
}

.gb-marss-tool-slide__close:hover {
  color: #ffffff;
  border-color: rgba(143, 212, 189, 0.34);
  background: rgba(143, 212, 189, 0.10);
}

.gb-marss-tool-slide__body {
  min-height: 0;
  flex: 1;

  padding: 10px;

  overflow: auto;

  scrollbar-width: thin;
  scrollbar-color: rgba(143, 212, 189, 0.32) transparent;
}

.gb-marss-tool-view[hidden] {
  display: none !important;
}

.gb-marss-tool-placeholder {
  display: grid;
  gap: 6px;

  padding: 14px;

  border: 1px solid rgba(145, 164, 220, 0.13);
  border-radius: 16px;

  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.018));

  color: var(--zom-text-soft, rgba(182, 194, 229, 0.72));
}

.gb-marss-tool-placeholder strong {
  color: var(--zom-text-main, rgba(244, 248, 255, 0.96));
}

/* Collapsed dock should remain only the round MARSS icon */
.gb-marss-dock-wrapper.is-collapsed .gb-marss-dock {
  display: block;
  min-width: 54px;
}

.gb-marss-dock-wrapper.is-collapsed .gb-marss-tool-slide {
  display: none !important;
}

/* Mobile slide panel behaves more like a compact drawer */
@media (max-width: 768px) {
  .gb-marss-dock.has-active-tool {
    grid-template-columns: 44px minmax(220px, 1fr);
  }

  .gb-marss-tool-slide {
    width: min(300px, calc(100vw - 76px));
    max-height: calc(100dvh - 160px);
  }
}