:root {
  --gp-auth-bg-0: #030715;
  --gp-auth-bg-1: #07111f;
  --gp-auth-card: rgba(12, 16, 31, 0.92);
  --gp-auth-card-2: rgba(18, 23, 42, 0.86);
  --gp-auth-border: rgba(148, 163, 184, 0.18);
  --gp-auth-border-strong: rgba(148, 163, 184, 0.28);
  --gp-auth-text: #f8fafc;
  --gp-auth-muted: #9ca3af;
  --gp-auth-dim: #6b7280;
  --gp-auth-cyan: #19d7ff;
  --gp-auth-cyan-soft: rgba(25, 215, 255, 0.22);
  --gp-auth-danger: #ff5f7a;
  --gp-auth-ok: #37f2a4;
}

body.gp-prime-auth-open {
  overflow: hidden !important;
}

.gp-prime-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: max(22px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  color: var(--gp-auth-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 14%, rgba(27, 124, 212, 0.22), transparent 34%),
    radial-gradient(circle at 86% 24%, rgba(15, 33, 82, 0.32), transparent 38%),
    radial-gradient(circle at 50% 100%, rgba(9, 21, 61, 0.46), transparent 44%),
    linear-gradient(180deg, var(--gp-auth-bg-0), #050715 46%, #080a1a);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow-y: auto;
}

.gp-prime-auth-card {
  position: relative;
  width: min(92vw, 680px);
  margin: auto;
  padding: clamp(28px, 5vw, 48px) clamp(22px, 5vw, 42px) clamp(26px, 4.4vw, 42px);
  border: 1px solid var(--gp-auth-border);
  border-radius: clamp(28px, 5vw, 44px);
  background:
    linear-gradient(145deg, rgba(13, 22, 38, 0.92), rgba(9, 11, 26, 0.94) 46%, rgba(12, 12, 32, 0.93)),
    var(--gp-auth-card);
  box-shadow:
    0 34px 100px rgba(0, 0, 0, 0.56),
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.gp-prime-auth-card::before {
  content: "";
  position: absolute;
  inset: -120px -70px auto auto;
  width: 280px;
  height: 280px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(25, 215, 255, 0.14), transparent 66%);
  filter: blur(1px);
}

.gp-prime-auth-card::after {
  content: "";
  position: absolute;
  inset: auto auto -120px -90px;
  width: 300px;
  height: 300px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(63, 92, 255, 0.14), transparent 68%);
}

.gp-prime-auth-inner {
  position: relative;
  z-index: 2;
}

.gp-prime-auth-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  color: rgba(248, 250, 252, 0.72);
  background: rgba(15, 23, 42, 0.64);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.gp-prime-auth-close:hover {
  transform: translateY(-1px);
  color: #ffffff;
  border-color: rgba(25, 215, 255, 0.42);
}

.gp-prime-auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 2px auto 34px;
  text-align: left;
}

.gp-prime-auth-logoBox {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(30, 41, 59, 0.72), rgba(9, 12, 28, 0.92)),
    rgba(10, 14, 27, 0.8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 34px rgba(0, 0, 0, 0.32),
    0 0 34px rgba(25, 215, 255, 0.08);
  overflow: hidden;
}

.gp-prime-auth-logoBox img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(25, 215, 255, 0.2));
}

.gp-prime-auth-wordmark strong {
  display: block;
  color: #ffffff;
  font-size: clamp(25px, 5vw, 35px);
  line-height: 0.94;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.gp-prime-auth-wordmark strong span {
  color: var(--gp-auth-cyan);
}

.gp-prime-auth-wordmark small {
  display: block;
  margin-top: 9px;
  color: rgba(156, 163, 175, 0.88);
  font-size: clamp(11px, 2.4vw, 14px);
  font-weight: 800;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.gp-prime-auth-head {
  margin: 0 auto 30px;
  text-align: center;
}

.gp-prime-auth-head h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(42px, 8vw, 62px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 900;
}

.gp-prime-auth-head p {
  margin: 18px auto 0;
  max-width: 530px;
  color: rgba(203, 213, 225, 0.76);
  font-size: clamp(17px, 3vw, 22px);
  line-height: 1.45;
  font-weight: 500;
}

.gp-prime-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: min(100%, 420px);
  margin: -10px auto 28px;
  padding: 6px;
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.34);
}

.gp-prime-auth-tabs button {
  border: 0;
  border-radius: 13px;
  padding: 12px 14px;
  color: rgba(203, 213, 225, 0.72);
  background: transparent;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.gp-prime-auth-tabs button.is-active {
  color: #08111f;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(255, 255, 255, 0.08);
}

.gp-prime-auth-form {
  display: grid;
  gap: 20px;
}

.gp-prime-auth-field {
  display: grid;
  gap: 9px;
}

.gp-prime-auth-field label {
  display: block;
  color: rgba(203, 213, 225, 0.76);
  font-size: clamp(13px, 2.7vw, 18px);
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.gp-prime-auth-inputWrap {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(64px, 11vw, 82px);
  border: 1px solid var(--gp-auth-border-strong);
  border-radius: clamp(20px, 4vw, 25px);
  background: rgba(21, 25, 42, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.gp-prime-auth-inputWrap:focus-within {
  border-color: rgba(25, 215, 255, 0.62);
  background: rgba(20, 28, 50, 0.92);
  box-shadow: 0 0 0 4px rgba(25, 215, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.gp-prime-auth-ico {
  display: grid;
  place-items: center;
  width: 66px;
  min-width: 66px;
  color: rgba(148, 163, 184, 0.72);
}

.gp-prime-auth-ico svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gp-prime-auth-inputWrap input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #f8fafc;
  background: transparent;
  font: inherit;
  font-size: clamp(18px, 3.2vw, 23px);
  font-weight: 600;
  letter-spacing: -0.02em;
  caret-color: var(--gp-auth-cyan);
}

.gp-prime-auth-inputWrap input::placeholder {
  color: rgba(148, 163, 184, 0.38);
}

.gp-prime-auth-eye {
  display: grid;
  place-items: center;
  width: 56px;
  min-width: 56px;
  height: 56px;
  margin-right: 8px;
  border: 0;
  color: rgba(148, 163, 184, 0.68);
  background: transparent;
  cursor: pointer;
}

.gp-prime-auth-eye svg {
  width: 25px;
  height: 25px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gp-prime-auth-message {
  display: none;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 13px 15px;
  border: 1px solid rgba(255, 95, 122, 0.28);
  border-radius: 16px;
  color: #ffd3dc;
  background: rgba(255, 95, 122, 0.09);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.gp-prime-auth-message.is-visible {
  display: flex;
}

.gp-prime-auth-message.is-ok {
  border-color: rgba(55, 242, 164, 0.28);
  color: #c9ffe7;
  background: rgba(55, 242, 164, 0.08);
}

.gp-prime-auth-submit,
.gp-prime-auth-secondaryAction {
  width: 100%;
  min-height: clamp(66px, 11vw, 82px);
  border: 0;
  border-radius: clamp(20px, 4vw, 24px);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.gp-prime-auth-submit {
  margin-top: 10px;
  color: #050505;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(255, 255, 255, 0.08);
  font-size: clamp(19px, 3.4vw, 25px);
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.gp-prime-auth-submit span {
  margin-left: 10px;
  font-size: 1.25em;
  line-height: 0;
  vertical-align: -0.05em;
}

.gp-prime-auth-secondaryAction {
  display: none;
  margin-top: -6px;
  border: 1px solid rgba(25, 215, 255, 0.28);
  color: #dff9ff;
  background: rgba(25, 215, 255, 0.08);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gp-prime-auth-secondaryAction.is-visible {
  display: block;
}

.gp-prime-auth-submit:hover,
.gp-prime-auth-secondaryAction:hover {
  transform: translateY(-1px);
}

.gp-prime-auth-submit:disabled,
.gp-prime-auth-secondaryAction:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.gp-prime-auth-bottom {
  margin: 28px 0 0;
  color: rgba(203, 213, 225, 0.72);
  font-size: clamp(15px, 3vw, 20px);
  font-weight: 500;
  text-align: center;
}

.gp-prime-auth-bottom button {
  border: 0;
  padding: 0;
  color: var(--gp-auth-cyan);
  background: transparent;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.gp-prime-auth-fineprint {
  margin: 14px auto 0;
  max-width: 520px;
  color: rgba(148, 163, 184, 0.62);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

@media (max-width: 560px) {
  .gp-prime-auth-overlay {
    align-items: start;
    padding-top: max(24px, env(safe-area-inset-top));
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }

  .gp-prime-auth-card {
    width: min(92vw, 390px);
    padding: 40px 22px 28px;
    border-radius: 30px;
  }

  .gp-prime-auth-close {
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
  }

  .gp-prime-auth-brand {
    gap: 13px;
    margin-bottom: 30px;
  }

  .gp-prime-auth-logoBox {
    width: 58px;
    height: 58px;
    border-radius: 18px;
  }

  .gp-prime-auth-logoBox img {
    width: 44px;
    height: 44px;
  }

  .gp-prime-auth-head h2 {
    font-size: 42px;
  }

  .gp-prime-auth-head p {
    font-size: 17px;
  }

  .gp-prime-auth-field {
    gap: 7px;
  }

  .gp-prime-auth-form {
    gap: 17px;
  }

  .gp-prime-auth-ico {
    width: 52px;
    min-width: 52px;
  }

  .gp-prime-auth-eye {
    width: 48px;
    min-width: 48px;
  }
}

@media (max-width: 380px) {
  .gp-prime-auth-card {
    width: min(94vw, 360px);
    padding-left: 18px;
    padding-right: 18px;
  }

  .gp-prime-auth-wordmark strong {
    font-size: 22px;
  }

  .gp-prime-auth-wordmark small {
    letter-spacing: 0.32em;
  }

  .gp-prime-auth-head h2 {
    font-size: 36px;
  }
}

/* GUARDEER PRIME redesign step 01: chart left + DOM/volume profile right. */
:root {
  --gp-step01-dom-width: clamp(360px, 27vw, 460px);
}

.gp-bookmap-title {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.gp-bookmap-title small {
  color: rgba(159, 186, 220, 0.68);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.gp-dom-visual-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 8px;
  border-bottom: 1px solid rgba(70, 123, 196, 0.16);
  background: linear-gradient(180deg, rgba(6, 15, 30, 0.95), rgba(4, 10, 22, 0.92));
}

.gp-dom-visual-tabs button {
  flex: 1 1 0;
  min-width: 0;
  border: 1px solid rgba(80, 145, 231, 0.16);
  border-radius: 7px;
  padding: 7px 6px;
  color: rgba(205, 224, 249, 0.78);
  background: rgba(8, 18, 34, 0.9);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.gp-dom-visual-tabs button.active,
.gp-dom-visual-tabs button:hover {
  color: #ffffff;
  border-color: rgba(35, 144, 255, 0.58);
  background: linear-gradient(180deg, rgba(19, 67, 122, 0.62), rgba(8, 20, 39, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 18px rgba(35, 144, 255, 0.08);
}

.gp-dom-bookmap-body {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(96px, 8vw, 126px);
  border-bottom: 1px solid rgba(70, 123, 196, 0.14);
  background: radial-gradient(circle at 50% 0%, rgba(35, 144, 255, 0.08), transparent 34%), #030912;
  overflow: hidden;
}

.gp-dom-volume-profile {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(70, 123, 196, 0.16);
  background:
    linear-gradient(90deg, rgba(35, 144, 255, 0.08) 1px, transparent 1px) 0 0 / 22px 100%,
    linear-gradient(180deg, rgba(6, 16, 30, 0.98), rgba(3, 8, 18, 0.98));
}

.gp-dom-vp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 7px 8px;
  border-bottom: 1px solid rgba(70, 123, 196, 0.13);
}

.gp-dom-vp-head strong {
  color: #eaf4ff;
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.gp-dom-vp-head span {
  color: rgba(159, 186, 220, 0.66);
  font-size: 8px;
  font-weight: 800;
}

.gp-dom-vp-bars {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: 3px;
  padding: 7px 8px;
  overflow: hidden;
}

.gp-dom-vp-row {
  position: relative;
  height: 13px;
  min-height: 10px;
  display: flex;
  align-items: center;
}

.gp-dom-vp-row i {
  display: block;
  height: 7px;
  min-width: 8px;
  border-radius: 999px;
  box-shadow: 0 0 12px currentColor;
  opacity: 0.88;
  transition: width 0.16s ease;
}

.gp-dom-vp-row--ask {
  justify-content: flex-start;
  color: rgba(255, 92, 122, 0.8);
}

.gp-dom-vp-row--ask i {
  background: linear-gradient(90deg, rgba(255, 92, 122, 0.95), rgba(255, 158, 73, 0.92));
}

.gp-dom-vp-row--bid {
  justify-content: flex-end;
  color: rgba(43, 146, 255, 0.82);
}

.gp-dom-vp-row--bid i {
  background: linear-gradient(90deg, rgba(35, 144, 255, 0.88), rgba(0, 224, 143, 0.82));
}

.gp-dom-vp-midline {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 18px;
}

.gp-dom-vp-midline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px dashed rgba(255, 213, 106, 0.58);
}

.gp-dom-vp-midline span {
  position: relative;
  z-index: 1;
  padding: 2px 6px;
  border: 1px solid rgba(255, 213, 106, 0.28);
  border-radius: 999px;
  color: #ffe3a3;
  background: rgba(8, 12, 23, 0.92);
  font-size: 8px;
  font-weight: 950;
}

.gp-dom-vp-split {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  padding: 6px 8px 8px;
  border-top: 1px solid rgba(70, 123, 196, 0.13);
  color: rgba(205, 224, 249, 0.76);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0.03em;
}

.gp-dom-vp-split span:first-child { color: #62b7ff; }
.gp-dom-vp-split span:last-child { color: #ff9e73; }

@media (min-width: 1181px) {
  body.terminal-active.gp-dashboard-chart-mode #app,
  body.gp-terminal-active.gp-dashboard-chart-mode #app {
    display: grid !important;
    grid-template-columns: 132px minmax(0, 1fr) var(--gp-step01-dom-width) !important;
    grid-template-rows: 48px 78px minmax(430px, calc(100dvh - 394px)) minmax(220px, 25vh) minmax(230px, 25vh) !important;
    gap: 8px !important;
    padding: 0 8px 8px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    align-items: stretch !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .header,
  body.gp-terminal-active.gp-dashboard-chart-mode .header {
    grid-column: 1 / 4 !important;
    grid-row: 1 !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-terminal-side,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-terminal-side {
    grid-column: 1 !important;
    grid-row: 2 / 6 !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-market-overview,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-market-overview {
    grid-column: 2 / 4 !important;
    grid-row: 2 !important;
    min-height: 78px !important;
    height: 78px !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .main,
  body.gp-terminal-active.gp-dashboard-chart-mode .main {
    grid-column: 2 !important;
    grid-row: 3 !important;
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 430px !important;
    overflow: hidden !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .chart-container,
  body.gp-terminal-active.gp-dashboard-chart-mode .chart-container {
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 430px !important;
    border: 1px solid rgba(70, 123, 196, 0.16) !important;
    border-radius: 9px !important;
    background: rgba(2, 8, 18, 0.82) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 18px 46px rgba(0, 0, 0, 0.28) !important;
    overflow: hidden !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-chart-card-head,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-chart-card-head {
    min-height: 38px !important;
    padding: 8px 10px !important;
    border-bottom: 1px solid rgba(70, 123, 196, 0.14) !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .timeframes,
  body.gp-terminal-active.gp-dashboard-chart-mode .timeframes {
    flex: 0 0 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    overflow: hidden !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .chart-area,
  body.gp-terminal-active.gp-dashboard-chart-mode .chart-area {
    flex: 1 1 auto !important;
    min-height: 285px !important;
    height: auto !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .cvd-container,
  body.gp-terminal-active.gp-dashboard-chart-mode .cvd-container {
    flex: 0 0 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .analytics,
  body.gp-terminal-active.gp-dashboard-chart-mode .analytics {
    flex: 0 0 58px !important;
    min-height: 58px !important;
    max-height: 58px !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 6px !important;
    padding: 6px !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .metric,
  body.gp-terminal-active.gp-dashboard-chart-mode .metric {
    padding: 6px 8px !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .metric__label,
  body.gp-terminal-active.gp-dashboard-chart-mode .metric__label {
    font-size: 8px !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .metric__value,
  body.gp-terminal-active.gp-dashboard-chart-mode .metric__value {
    font-size: 13px !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .sidebar,
  body.gp-terminal-active.gp-dashboard-chart-mode .sidebar {
    grid-column: 3 !important;
    grid-row: 3 !important;
    display: flex !important;
    align-self: stretch !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 430px !important;
    max-height: none !important;
    overflow: hidden !important;
    border: 1px solid rgba(70, 123, 196, 0.16) !important;
    border-radius: 9px !important;
    background: linear-gradient(180deg, rgba(5, 13, 27, 0.96), rgba(2, 8, 18, 0.98)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 18px 46px rgba(0, 0, 0, 0.3) !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .orderbook__header,
  body.gp-terminal-active.gp-dashboard-chart-mode .orderbook__header {
    min-height: 45px !important;
    padding: 8px 10px !important;
    gap: 8px !important;
    background: linear-gradient(180deg, rgba(7, 18, 36, 0.98), rgba(3, 9, 20, 0.96)) !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .orderbook__title,
  body.gp-terminal-active.gp-dashboard-chart-mode .orderbook__title {
    color: #f4f8ff !important;
    font-size: 12px !important;
    font-weight: 950 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .orderbook__modes,
  body.gp-terminal-active.gp-dashboard-chart-mode .orderbook__modes {
    flex: 0 0 auto !important;
    gap: 3px !important;
    background: rgba(255, 255, 255, 0.03) !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .orderbook__modes .btn,
  body.gp-terminal-active.gp-dashboard-chart-mode .orderbook__modes .btn {
    min-height: 25px !important;
    height: 25px !important;
    padding: 0 8px !important;
    border-radius: 5px !important;
    font-size: 9px !important;
    font-weight: 900 !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .orderbook__depth,
  body.gp-terminal-active.gp-dashboard-chart-mode .orderbook__depth {
    flex: 0 0 auto !important;
    min-height: 31px !important;
    padding: 5px 10px !important;
    background: rgba(3, 9, 20, 0.78) !important;
    border-bottom: 1px solid rgba(70, 123, 196, 0.14) !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .orderbook__content,
  body.gp-terminal-active.gp-dashboard-chart-mode .orderbook__content {
    min-height: 0 !important;
    height: 100% !important;
    overflow: auto !important;
    border-right: 1px solid rgba(70, 123, 196, 0.13) !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .dom-ladder,
  body.gp-terminal-active.gp-dashboard-chart-mode .dom-ladder {
    height: 100% !important;
    min-height: 0 !important;
    font-size: 9px !important;
    background: transparent !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .dom-ladder__header,
  body.gp-terminal-active.gp-dashboard-chart-mode .dom-ladder__header {
    padding: 5px 8px !important;
    font-size: 8px !important;
    color: rgba(205, 224, 249, 0.68) !important;
    background: rgba(5, 14, 28, 0.78) !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .dom-ladder__row,
  body.gp-terminal-active.gp-dashboard-chart-mode .dom-ladder__row {
    height: 16px !important;
    min-height: 16px !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .dom-ladder__bar,
  body.gp-terminal-active.gp-dashboard-chart-mode .dom-ladder__bar {
    opacity: 0.34 !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .dom-ladder__bar--ask,
  body.gp-terminal-active.gp-dashboard-chart-mode .dom-ladder__bar--ask {
    background: linear-gradient(90deg, rgba(255, 92, 122, 0.58), rgba(255, 92, 122, 0.16)) !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .dom-ladder__bar--bid,
  body.gp-terminal-active.gp-dashboard-chart-mode .dom-ladder__bar--bid {
    background: linear-gradient(90deg, rgba(35, 144, 255, 0.16), rgba(35, 144, 255, 0.6)) !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .dom-ladder__spread,
  body.gp-terminal-active.gp-dashboard-chart-mode .dom-ladder__spread {
    min-height: 26px !important;
    padding: 5px !important;
    background: linear-gradient(90deg, rgba(35, 144, 255, 0.1), rgba(255, 213, 106, 0.12), rgba(255, 92, 122, 0.1)) !important;
  }

  body.terminal-active.gp-dashboard-chart-mode #levels-summary,
  body.gp-terminal-active.gp-dashboard-chart-mode #levels-summary {
    flex: 0 0 118px !important;
    max-height: 118px !important;
    overflow: auto !important;
    border-top: 1px solid rgba(70, 123, 196, 0.14) !important;
    background: rgba(4, 12, 25, 0.92) !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .levels-summary,
  body.gp-terminal-active.gp-dashboard-chart-mode .levels-summary {
    padding: 9px !important;
    gap: 7px !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .tools-panel,
  body.gp-terminal-active.gp-dashboard-chart-mode .tools-panel {
    grid-column: 2 !important;
    grid-row: 4 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-terminal-bottom,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-terminal-bottom {
    grid-column: 2 / 4 !important;
    grid-row: 5 !important;
    min-height: 0 !important;
  }
}

@media (min-width: 1181px) and (max-width: 1500px) {
  :root { --gp-step01-dom-width: clamp(330px, 29vw, 420px); }

  body.terminal-active.gp-dashboard-chart-mode #app,
  body.gp-terminal-active.gp-dashboard-chart-mode #app {
    grid-template-columns: 126px minmax(0, 1fr) var(--gp-step01-dom-width) !important;
    grid-template-rows: 48px 74px minmax(400px, calc(100dvh - 372px)) minmax(210px, 24vh) minmax(220px, 24vh) !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .main,
  body.gp-terminal-active.gp-dashboard-chart-mode .main,
  body.terminal-active.gp-dashboard-chart-mode .chart-container,
  body.gp-terminal-active.gp-dashboard-chart-mode .chart-container,
  body.terminal-active.gp-dashboard-chart-mode .sidebar,
  body.gp-terminal-active.gp-dashboard-chart-mode .sidebar {
    min-height: 400px !important;
  }

  .gp-dom-bookmap-body {
    grid-template-columns: minmax(0, 1fr) 104px;
  }
}

@media (min-width: 1181px) and (max-height: 820px) {
  body.terminal-active.gp-dashboard-chart-mode #app,
  body.gp-terminal-active.gp-dashboard-chart-mode #app {
    grid-template-rows: 48px 70px minmax(370px, calc(100dvh - 342px)) minmax(190px, 24vh) minmax(205px, 24vh) !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .main,
  body.gp-terminal-active.gp-dashboard-chart-mode .main,
  body.terminal-active.gp-dashboard-chart-mode .chart-container,
  body.gp-terminal-active.gp-dashboard-chart-mode .chart-container,
  body.terminal-active.gp-dashboard-chart-mode .sidebar,
  body.gp-terminal-active.gp-dashboard-chart-mode .sidebar {
    min-height: 370px !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .chart-area,
  body.gp-terminal-active.gp-dashboard-chart-mode .chart-area {
    min-height: 235px !important;
  }
}

@media (max-width: 1180px) {
  .gp-dom-visual-tabs,
  .gp-dom-volume-profile {
    display: none !important;
  }

  .gp-dom-bookmap-body {
    display: block !important;
    min-height: 0;
  }
}

/* GUARDEER PRIME redesign step 02: Bookmap-style DOM volume profile + BID/ASK strip. */
:root {
  --gp-step01-dom-width: clamp(342px, 23.5vw, 405px);
  --gp-dom-vp-width: clamp(116px, 7.6vw, 148px);
}

.gp-dom-bookmap-body {
  align-items: stretch;
}

.gp-dom-volume-profile {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-left: 1px solid rgba(60, 116, 195, 0.22);
  background:
    linear-gradient(90deg, rgba(40, 95, 176, 0.16) 1px, transparent 1px) 0 0 / 18px 100%,
    radial-gradient(circle at 0% 48%, rgba(46, 134, 255, 0.14), transparent 54%),
    linear-gradient(180deg, rgba(4, 12, 26, 0.98), rgba(2, 7, 16, 0.98));
}

.gp-dom-vp-head {
  flex: 0 0 auto;
  min-height: 25px;
  padding: 6px 8px 5px;
  border-bottom: 1px solid rgba(68, 128, 214, 0.15);
  background: linear-gradient(180deg, rgba(8, 20, 40, 0.72), rgba(3, 9, 20, 0.42));
}

.gp-dom-vp-head strong {
  font-size: 8px;
  letter-spacing: 0.11em;
}

.gp-dom-vp-head span {
  font-size: 7px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gp-dom-vp-bars {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 7px 9px 7px 7px;
  overflow: hidden;
}

.gp-dom-vp-bars::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 7px;
  bottom: 7px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(82, 155, 255, 0.55), transparent);
  box-shadow: 0 0 16px rgba(39, 128, 255, 0.26);
  pointer-events: none;
}

.gp-dom-vp-line,
.gp-dom-vp-row {
  position: relative;
  flex: 0 0 7px;
  height: 7px;
  min-height: 5px;
  width: 100%;
  isolation: isolate;
}

.gp-dom-vp-line::after,
.gp-dom-vp-row::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid rgba(45, 96, 166, 0.08);
  transform: translateY(-50%);
  z-index: 0;
}

.gp-dom-vp-base,
.gp-dom-vp-hot,
.gp-dom-vp-row i {
  position: absolute;
  left: 0;
  top: 50%;
  display: block;
  border-radius: 0 999px 999px 0;
  transform: translateY(-50%);
  transition: width 0.16s ease, filter 0.16s ease, opacity 0.16s ease;
}

.gp-dom-vp-base,
.gp-dom-vp-row i {
  z-index: 1;
  width: var(--gp-vp-width, 38%);
  height: 5px;
  min-width: 5px;
  background: linear-gradient(90deg, rgba(10, 55, 178, 0.96), rgba(26, 112, 255, 0.98) 50%, rgba(35, 169, 255, 0.92));
  box-shadow: 0 0 10px rgba(28, 118, 255, 0.34);
  opacity: 0.92;
}

.gp-dom-vp-hot {
  z-index: 2;
  width: var(--gp-vp-hot, 0%);
  height: 5px;
  min-width: 0;
  background: linear-gradient(90deg, rgba(255, 120, 20, 0.98), rgba(255, 185, 45, 0.98));
  box-shadow: 0 0 12px rgba(255, 158, 35, 0.45);
  opacity: 0.96;
}

.gp-dom-vp-line[style*="--gp-vp-hot:0"] .gp-dom-vp-hot {
  opacity: 0;
}

.gp-dom-vp-line.is-poc .gp-dom-vp-base,
.gp-dom-vp-line.is-poc .gp-dom-vp-hot {
  height: 7px;
  filter: brightness(1.12);
}

.gp-dom-vp-line:hover .gp-dom-vp-base,
.gp-dom-vp-line:hover .gp-dom-vp-hot {
  filter: brightness(1.22);
}

.gp-dom-vp-midline {
  position: relative;
  flex: 0 0 11px;
  min-height: 11px;
  display: grid;
  place-items: center;
  margin: 1px 0;
}

.gp-dom-vp-midline::before {
  left: 0;
  right: 0;
  border-top-color: rgba(255, 176, 55, 0.48);
}

.gp-dom-vp-midline span {
  padding: 1px 5px;
  border-color: rgba(255, 176, 55, 0.28);
  color: #ffc15c;
  background: rgba(4, 9, 18, 0.92);
  font-size: 7px;
  line-height: 1.1;
}

.gp-dom-vp-split {
  display: none !important;
}

.gp-dom-bidask-panel {
  flex: 0 0 42px;
  min-height: 42px;
  padding: 6px 10px 8px;
  border-top: 1px solid rgba(71, 130, 219, 0.18);
  border-bottom: 1px solid rgba(71, 130, 219, 0.08);
  background:
    radial-gradient(circle at 26% 0%, rgba(35, 144, 255, 0.16), transparent 44%),
    radial-gradient(circle at 76% 0%, rgba(255, 83, 90, 0.12), transparent 45%),
    linear-gradient(180deg, rgba(5, 15, 30, 0.96), rgba(2, 8, 18, 0.98));
}

.gp-dom-bidask-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.045em;
  white-space: nowrap;
}

.gp-dom-bidask-label--bid {
  color: #55b7ff;
}

.gp-dom-bidask-label--ask {
  color: #ff6a76;
}

.gp-dom-bidask-label b {
  font: inherit;
  color: currentColor;
}

.gp-dom-bidask-track {
  position: relative;
  display: flex;
  width: 100%;
  height: 8px;
  overflow: hidden;
  border: 1px solid rgba(78, 142, 231, 0.22);
  border-radius: 999px;
  background: rgba(6, 14, 27, 0.9);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025), 0 0 16px rgba(35, 144, 255, 0.08);
}

.gp-dom-bidask-fill {
  display: block;
  height: 100%;
  min-width: 0;
  transition: width 0.16s ease, flex-basis 0.16s ease;
}

.gp-dom-bidask-fill--bid {
  flex: 0 0 var(--gp-bid-pct, 60%);
  background: linear-gradient(90deg, rgba(16, 88, 225, 0.94), rgba(31, 143, 255, 0.98));
  box-shadow: 0 0 14px rgba(35, 144, 255, 0.34);
}

.gp-dom-bidask-fill--ask {
  flex: 1 1 auto;
  background: linear-gradient(90deg, rgba(128, 27, 45, 0.96), rgba(255, 70, 88, 0.94));
  box-shadow: 0 0 14px rgba(255, 67, 89, 0.24);
}

.gp-dom-bidask-track em {
  position: absolute;
  left: var(--gp-bid-pct, 60%);
  top: -3px;
  bottom: -3px;
  width: 2px;
  border-radius: 999px;
  background: rgba(230, 242, 255, 0.92);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.42);
  transform: translateX(-1px);
}

@media (min-width: 1181px) {
  body.terminal-active.gp-dashboard-chart-mode #app,
  body.gp-terminal-active.gp-dashboard-chart-mode #app {
    grid-template-columns: 132px minmax(0, 1fr) var(--gp-step01-dom-width) !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-dom-bookmap-body,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-dom-bookmap-body {
    grid-template-columns: minmax(198px, 1fr) var(--gp-dom-vp-width) !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .chart-container,
  body.gp-terminal-active.gp-dashboard-chart-mode .chart-container {
    min-width: 0 !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .sidebar,
  body.gp-terminal-active.gp-dashboard-chart-mode .sidebar {
    min-width: 0 !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-dom-bidask-panel,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-dom-bidask-panel {
    display: block !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .sidebar:not([data-gp-dom-view="levels"]) #levels-summary,
  body.gp-terminal-active.gp-dashboard-chart-mode .sidebar:not([data-gp-dom-view="levels"]) #levels-summary {
    flex: 0 0 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-top: 0 !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .sidebar[data-gp-dom-view="levels"] #levels-summary,
  body.gp-terminal-active.gp-dashboard-chart-mode .sidebar[data-gp-dom-view="levels"] #levels-summary {
    flex: 0 0 118px !important;
    max-height: 118px !important;
    overflow: auto !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .dom-ladder__row,
  body.gp-terminal-active.gp-dashboard-chart-mode .dom-ladder__row {
    height: 15px !important;
    min-height: 15px !important;
  }
}

@media (min-width: 1181px) and (max-width: 1500px) {
  :root {
    --gp-step01-dom-width: clamp(324px, 25vw, 374px);
    --gp-dom-vp-width: clamp(104px, 8vw, 128px);
  }

  body.terminal-active.gp-dashboard-chart-mode #app,
  body.gp-terminal-active.gp-dashboard-chart-mode #app {
    grid-template-columns: 126px minmax(0, 1fr) var(--gp-step01-dom-width) !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-dom-bookmap-body,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-dom-bookmap-body {
    grid-template-columns: minmax(188px, 1fr) var(--gp-dom-vp-width) !important;
  }

  .gp-dom-vp-bars {
    padding-left: 6px;
    padding-right: 7px;
    gap: 1.5px;
  }

  .gp-dom-bidask-panel {
    padding-left: 8px;
    padding-right: 8px;
  }

  .gp-dom-bidask-labels {
    font-size: 9px;
  }
}

@media (min-width: 1181px) and (max-height: 820px) {
  .gp-dom-bidask-panel {
    flex-basis: 38px;
    min-height: 38px;
    padding-top: 5px;
    padding-bottom: 6px;
  }

  .gp-dom-bidask-labels {
    margin-bottom: 4px;
  }

  .gp-dom-vp-head {
    min-height: 22px;
    padding-top: 5px;
    padding-bottom: 4px;
  }

  .gp-dom-vp-line,
  .gp-dom-vp-row {
    flex-basis: 6px;
    height: 6px;
  }
}

@media (max-width: 1180px) {
  .gp-dom-bidask-panel {
    display: none !important;
  }
}


/* GUARDEER PRIME redesign step 03: chart-style visible-range volume profile inside DOM panel, mirrored left-to-right. */
:root {
  --gp-step01-dom-width: clamp(360px, 24vw, 420px);
  --gp-dom-vp-width: clamp(132px, 8.8vw, 160px);
}

.gp-dom-bookmap-body {
  align-items: stretch !important;
}

.gp-dom-volume-profile.gp-dom-volume-profile--chart-style {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-left: 1px solid rgba(67, 125, 212, 0.24);
  background:
    linear-gradient(90deg, rgba(32, 74, 142, 0.20) 1px, transparent 1px) 0 0 / 18px 100%,
    linear-gradient(180deg, rgba(55, 101, 176, 0.10) 1px, transparent 1px) 0 0 / 100% 20px,
    radial-gradient(circle at 0% 50%, rgba(30, 136, 255, 0.16), transparent 56%),
    linear-gradient(180deg, rgba(4, 12, 26, 0.98), rgba(1, 7, 16, 0.99));
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.025);
}

.gp-dom-volume-profile--chart-style .gp-dom-vp-head {
  flex: 0 0 auto;
  min-height: 27px;
  padding: 6px 8px 5px;
  border-bottom: 1px solid rgba(70, 130, 218, 0.16);
  background: linear-gradient(180deg, rgba(8, 21, 42, 0.86), rgba(2, 8, 18, 0.50));
}

.gp-dom-volume-profile--chart-style .gp-dom-vp-head strong {
  display: block;
  color: rgba(237, 246, 255, 0.98);
  font-size: 8px;
  letter-spacing: 0.11em;
  line-height: 1.1;
}

.gp-dom-volume-profile--chart-style .gp-dom-vp-head span {
  display: block;
  margin-top: 2px;
  color: rgba(143, 174, 211, 0.78);
  font-size: 7px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gp-dom-volume-profile--chart-style .gp-dom-vp-bars {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: block !important;
  padding: 8px 6px 8px 8px;
  overflow: hidden;
  isolation: isolate;
}

.gp-dom-volume-profile--chart-style .gp-dom-vp-bars::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(77, 161, 255, 0.58), transparent);
  box-shadow: 0 0 18px rgba(39, 128, 255, 0.30);
  pointer-events: none;
  z-index: 0;
}

.gp-dom-volume-profile--chart-style .gp-dom-vp-bars::after {
  content: "";
  position: absolute;
  inset: 8px 6px 8px 8px;
  background:
    linear-gradient(90deg, rgba(46, 96, 255, 0.045) 1px, transparent 1px) 0 0 / 22px 100%,
    linear-gradient(180deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px) 0 0 / 100% 18px;
  pointer-events: none;
  z-index: 0;
}

.gp-dom-vp-profile-row {
  position: absolute;
  left: 8px;
  right: 6px;
  min-height: 3px;
  isolation: isolate;
  z-index: 2;
}

.gp-dom-vp-profile-row.is-value::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(38, 93, 255, 0.09), transparent 70%);
  z-index: 0;
}

.gp-dom-vp-profile-row.is-poc::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: rgba(255, 211, 122, 0.96);
  box-shadow: 0 0 12px rgba(255, 197, 92, 0.72), 0 0 22px rgba(255, 148, 38, 0.28);
  z-index: 3;
}

.gp-dom-vp-bar-stack {
  position: absolute;
  left: 0;
  top: 50%;
  width: var(--gp-vp-width, 42%);
  min-width: 4px;
  max-width: calc(100% - 28px);
  height: min(8px, max(4px, 100%));
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border-radius: 0 999px 999px 0;
  transform: translateY(-50%);
  background: rgba(18, 58, 130, 0.28);
  box-shadow: 0 0 10px rgba(38, 127, 255, 0.30);
  z-index: 2;
}

.gp-dom-vp-sell,
.gp-dom-vp-buy {
  display: block;
  height: 100%;
  min-width: 0;
}

.gp-dom-vp-buy {
  width: var(--gp-vp-buy, 60%);
  background: linear-gradient(90deg, rgba(18, 100, 238, 0.98), rgba(42, 154, 255, 0.96));
  box-shadow: 0 0 10px rgba(40, 130, 255, 0.32);
}

.gp-dom-vp-sell {
  width: var(--gp-vp-sell, 40%);
  background: linear-gradient(90deg, rgba(103, 47, 6, 0.96), rgba(172, 82, 13, 0.96), rgba(214, 111, 24, 0.94));
  box-shadow: 0 0 10px rgba(217, 116, 22, 0.28);
}

.gp-dom-vp-profile-row.is-poc .gp-dom-vp-sell {
  background: linear-gradient(90deg, rgba(255, 174, 83, 0.98), rgba(255, 213, 132, 0.98));
  box-shadow: 0 0 15px rgba(255, 189, 92, 0.55);
}

.gp-dom-vp-profile-row.is-poc .gp-dom-vp-bar-stack {
  height: min(10px, max(6px, 100%));
  filter: brightness(1.08);
}

.gp-dom-vp-poc-tag {
  position: absolute;
  right: 18px;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);
  padding: 1px 4px;
  border: 1px solid rgba(255, 211, 122, 0.38);
  border-radius: 999px;
  background: rgba(8, 13, 24, 0.88);
  color: #ffd37a;
  font: 950 7px/1 JetBrains Mono, monospace;
  box-shadow: 0 0 12px rgba(255, 170, 48, 0.22);
}

.gp-dom-vp-price,
.gp-dom-vp-base,
.gp-dom-vp-hot,
.gp-dom-vp-row i,
.gp-dom-vp-midline,
.gp-dom-vp-split {
  display: none !important;
}

.gp-dom-vp-footer {
  flex: 0 0 auto;
  min-height: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 5px 7px 6px;
  border-top: 1px solid rgba(67, 126, 216, 0.14);
  background: linear-gradient(180deg, rgba(4, 12, 26, 0.22), rgba(2, 8, 18, 0.80));
  color: rgba(189, 214, 246, 0.78);
  font: 800 7px/1.1 JetBrains Mono, monospace;
  white-space: nowrap;
}

.gp-dom-vp-footer span:first-child {
  color: #ffd37a;
}

.gp-dom-vp-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 14px;
  color: rgba(188, 214, 246, 0.68);
  font-size: 10px;
  font-weight: 850;
  text-align: center;
}

@media (min-width: 1181px) {
  body.terminal-active.gp-dashboard-chart-mode .gp-dom-bookmap-body,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-dom-bookmap-body {
    grid-template-columns: minmax(188px, 1fr) var(--gp-dom-vp-width) !important;
  }
}

@media (min-width: 1181px) and (max-width: 1500px) {
  :root {
    --gp-step01-dom-width: clamp(342px, 25.5vw, 390px);
    --gp-dom-vp-width: clamp(124px, 9vw, 148px);
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-dom-bookmap-body,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-dom-bookmap-body {
    grid-template-columns: minmax(178px, 1fr) var(--gp-dom-vp-width) !important;
  }

  .gp-dom-vp-footer {
    font-size: 6.5px;
    gap: 4px;
    padding-left: 6px;
    padding-right: 6px;
  }

  .gp-dom-vp-poc-tag {
    right: 12px;
  }
}

@media (min-width: 1181px) and (max-height: 820px) {
  .gp-dom-volume-profile--chart-style .gp-dom-vp-head {
    min-height: 23px;
    padding-top: 5px;
    padding-bottom: 4px;
  }

  .gp-dom-vp-footer {
    min-height: 22px;
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .gp-dom-vp-bar-stack {
    height: min(7px, max(4px, 100%));
  }
}


/* GUARDEER PRIME redesign step 04: market selector, chart liquidity strip and wider candle workspace. */
:root {
  --gp-step04-dom-width: clamp(318px, 19.6vw, 356px);
  --gp-step04-vp-width: clamp(106px, 6.8vw, 126px);
  --gp-step04-side-width: 126px;
}

.gp-overview-market--switch {
  position: relative;
  min-width: 0;
  display: grid !important;
  grid-template-rows: auto auto minmax(0, 1fr);
  align-content: center;
  gap: 5px !important;
  overflow: hidden;
}

.gp-overview-market--switch::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background:
    radial-gradient(circle at 10% 20%, rgba(35, 151, 255, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(10, 36, 73, 0.42), transparent 58%);
}

.gp-overview-market--switch > * {
  position: relative;
  z-index: 1;
}

.gp-overview-market--switch > span {
  color: rgba(157, 185, 222, 0.92) !important;
  font-size: 9px !important;
  letter-spacing: 0.095em !important;
}

.gp-market-type-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  width: 100%;
  padding: 2px;
  border: 1px solid rgba(45, 137, 255, 0.22);
  border-radius: 10px;
  background: rgba(1, 7, 16, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.gp-market-type-switch button {
  min-width: 0;
  height: 22px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(184, 211, 245, 0.74);
  font: 900 9px/1 Inter, system-ui, sans-serif;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.18s ease;
}

.gp-market-type-switch button:hover {
  color: #eef8ff;
  background: rgba(36, 124, 255, 0.16);
}

.gp-market-type-switch button.active,
.gp-market-type-switch button.is-active,
.gp-market-type-switch button[aria-pressed="true"] {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(0, 132, 255, 0.96), rgba(0, 222, 206, 0.78));
  box-shadow: 0 0 16px rgba(0, 141, 255, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.gp-market-symbol-row {
  display: grid;
  grid-template-columns: minmax(72px, 0.72fr) minmax(92px, 1fr);
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.gp-market-symbol-row strong {
  min-width: 0;
  font: 950 16px/1.05 "JetBrains Mono", monospace !important;
  letter-spacing: 0.012em;
  color: #f4f9ff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gp-market-instrument-select {
  min-width: 0;
  width: 100%;
  height: 28px;
  padding: 0 24px 0 9px;
  border: 1px solid rgba(54, 144, 255, 0.30);
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(7, 22, 43, 0.98), rgba(2, 8, 18, 0.98));
  color: rgba(232, 244, 255, 0.96);
  font: 850 11px/1 Inter, system-ui, sans-serif;
  outline: none;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 0 0 1px rgba(0, 0, 0, 0.20);
}

.gp-market-instrument-select:focus,
.gp-market-instrument-select:hover {
  border-color: rgba(0, 214, 255, 0.58);
  box-shadow: 0 0 0 2px rgba(0, 134, 255, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.gp-chart-aggregation-strip {
  position: relative;
  z-index: 3;
  flex: 0 0 38px;
  min-height: 38px;
  display: grid;
  grid-template-columns: minmax(170px, 230px) minmax(240px, 1fr) minmax(126px, auto);
  align-items: center;
  gap: 14px;
  padding: 6px 12px;
  border-top: 1px solid rgba(67, 123, 196, 0.16);
  border-bottom: 1px solid rgba(67, 123, 196, 0.16);
  background:
    linear-gradient(90deg, rgba(2, 8, 18, 0.96), rgba(7, 18, 35, 0.96) 42%, rgba(2, 8, 18, 0.96)),
    radial-gradient(circle at 62% 50%, rgba(40, 118, 255, 0.12), transparent 30%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.028);
}

.gp-chart-aggregation-strip::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(80, 166, 255, 0.30), rgba(255, 152, 39, 0.22), transparent);
  pointer-events: none;
}

.gp-chart-agg-control,
.gp-liquidity-gradient,
.gp-chart-agg-actions {
  display: flex;
  align-items: center;
  min-width: 0;
}

.gp-chart-agg-control {
  gap: 9px;
}

.gp-chart-agg-control span,
.gp-liquidity-gradient span {
  color: rgba(174, 200, 231, 0.72);
  font: 900 9px/1 Inter, system-ui, sans-serif;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.gp-chart-agg-control select {
  width: 116px;
  height: 27px;
  padding: 0 24px 0 9px;
  border: 1px solid rgba(65, 125, 204, 0.34);
  border-radius: 8px;
  background: rgba(2, 8, 18, 0.90);
  color: #edf6ff;
  font: 850 10px/1 Inter, system-ui, sans-serif;
  outline: none;
}

.gp-liquidity-gradient {
  justify-content: center;
  gap: 10px;
}

.gp-liquidity-gradient i {
  display: block;
  width: min(246px, 34vw);
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(90deg, #071836 0%, #073777 24%, #05b7e8 46%, #f4d469 62%, #ff8a24 78%, #6e2418 100%);
  box-shadow: 0 0 18px rgba(0, 135, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.gp-chart-agg-actions {
  justify-content: flex-end;
  gap: 6px;
}

.gp-chart-agg-actions button {
  height: 26px;
  padding: 0 8px;
  border: 1px solid rgba(65, 125, 204, 0.20);
  border-radius: 8px;
  background: rgba(2, 8, 18, 0.50);
  color: rgba(204, 224, 247, 0.76);
  font: 900 10px/1 Inter, system-ui, sans-serif;
  cursor: pointer;
  white-space: nowrap;
}

.gp-chart-agg-actions button:hover,
.gp-chart-agg-actions button.active {
  border-color: rgba(0, 202, 255, 0.46);
  color: #f4fbff;
  background: rgba(18, 100, 238, 0.22);
}

body.gp-chart-log-scale .chart-area::after,
body.gp-chart-log-mode .chart-area::after {
  content: "LOG";
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 20;
  padding: 4px 7px;
  border-radius: 999px;
  border: 1px solid rgba(0, 202, 255, 0.36);
  background: rgba(1, 7, 16, 0.72);
  color: rgba(208, 238, 255, 0.86);
  font: 900 9px/1 Inter, system-ui, sans-serif;
  pointer-events: none;
}

@media (min-width: 1181px) {
  body.terminal-active.gp-dashboard-chart-mode #app,
  body.gp-terminal-active.gp-dashboard-chart-mode #app {
    grid-template-columns: var(--gp-step04-side-width) minmax(0, 1fr) var(--gp-step04-dom-width) !important;
    grid-template-rows: 48px 78px minmax(458px, calc(100dvh - 386px)) minmax(210px, 23vh) minmax(220px, 24vh) !important;
    column-gap: 8px !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-terminal-side,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-terminal-side {
    width: var(--gp-step04-side-width) !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-market-overview,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-market-overview {
    grid-template-columns: minmax(252px, 1.14fr) repeat(5, minmax(132px, 1fr)) minmax(118px, 0.72fr) !important;
    gap: 7px !important;
    min-width: 0 !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .main,
  body.gp-terminal-active.gp-dashboard-chart-mode .main {
    min-height: 458px !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .chart-container,
  body.gp-terminal-active.gp-dashboard-chart-mode .chart-container {
    min-height: 458px !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .chart-area,
  body.gp-terminal-active.gp-dashboard-chart-mode .chart-area {
    flex: 1 1 auto !important;
    min-height: 306px !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-chart-aggregation-strip,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-chart-aggregation-strip {
    display: grid !important;
  }

  body.terminal-active.gp-dashboard-chart-mode:not(.gp-cvd-enabled) .cvd-container,
  body.gp-terminal-active.gp-dashboard-chart-mode:not(.gp-cvd-enabled) .cvd-container {
    flex-basis: 0 !important;
    min-height: 0 !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    border-top: 0 !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .analytics,
  body.gp-terminal-active.gp-dashboard-chart-mode .analytics {
    flex: 0 0 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .sidebar,
  body.gp-terminal-active.gp-dashboard-chart-mode .sidebar {
    min-height: 458px !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-dom-bookmap-body,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-dom-bookmap-body {
    grid-template-columns: minmax(164px, 1fr) var(--gp-step04-vp-width) !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-dom-volume-profile--chart-style .gp-dom-vp-bars,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-dom-volume-profile--chart-style .gp-dom-vp-bars {
    padding-left: 7px !important;
    padding-right: 5px !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .dom-ladder__row,
  body.gp-terminal-active.gp-dashboard-chart-mode .dom-ladder__row {
    height: 14px !important;
    min-height: 14px !important;
  }
}

@media (min-width: 1181px) and (max-width: 1500px) {
  :root {
    --gp-step04-dom-width: clamp(302px, 20.6vw, 332px);
    --gp-step04-vp-width: clamp(96px, 7vw, 114px);
    --gp-step04-side-width: 120px;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-market-overview,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-market-overview {
    grid-template-columns: minmax(220px, 1.04fr) repeat(5, minmax(116px, 1fr)) minmax(104px, 0.62fr) !important;
  }

  .gp-market-type-switch button {
    font-size: 8px;
  }

  .gp-market-symbol-row {
    grid-template-columns: minmax(68px, 0.68fr) minmax(82px, 1fr);
  }

  .gp-chart-aggregation-strip {
    grid-template-columns: minmax(156px, 210px) minmax(210px, 1fr) minmax(110px, auto);
    gap: 9px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .gp-liquidity-gradient i {
    width: min(190px, 31vw);
  }
}

@media (max-width: 1180px) {
  .gp-overview-market--switch {
    min-height: 96px;
  }

  .gp-chart-aggregation-strip {
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: auto;
    padding: 10px;
  }

  .gp-liquidity-gradient {
    justify-content: flex-start;
  }

  .gp-liquidity-gradient i {
    flex: 1 1 auto;
    width: auto;
  }

  .gp-chart-agg-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .gp-market-symbol-row {
    grid-template-columns: 1fr;
  }

  .gp-market-type-switch button {
    height: 28px;
    font-size: 10px;
  }
}

/* Step 04 ordering fix: keep the aggregation strip directly below the candle chart. */
@media (min-width: 1181px) {
  body.terminal-active.gp-dashboard-chart-mode .chart-area,
  body.gp-terminal-active.gp-dashboard-chart-mode .chart-area {
    order: 1 !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-chart-aggregation-strip,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-chart-aggregation-strip {
    order: 2 !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .cvd-container,
  body.gp-terminal-active.gp-dashboard-chart-mode .cvd-container {
    order: 3 !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .analytics,
  body.gp-terminal-active.gp-dashboard-chart-mode .analytics {
    order: 4 !important;
  }
}

/* GUARDEER PRIME redesign step 05: market card visibility, metrics row, and working DOM tabs. */
:root {
  --gp-step05-overview-height: 96px;
  --gp-step05-chart-min-height: 506px;
}

.gp-overview-market--switch {
  overflow: visible !important;
  align-content: start !important;
  grid-template-rows: auto auto auto !important;
  gap: 6px !important;
  padding-top: 9px !important;
  padding-bottom: 10px !important;
  z-index: 12 !important;
}

.gp-overview-market--switch .gp-market-type-switch,
.gp-overview-market--switch .gp-market-symbol-row {
  position: relative !important;
  z-index: 4 !important;
}

.gp-market-type-switch {
  min-height: 28px !important;
}

.gp-market-type-switch button {
  height: 24px !important;
  line-height: 1 !important;
}

.gp-market-symbol-row {
  grid-template-columns: minmax(92px, 0.8fr) minmax(118px, 1fr) !important;
  gap: 8px !important;
  align-items: center !important;
}

.gp-market-symbol-row strong {
  min-height: 24px !important;
  display: flex !important;
  align-items: center !important;
}

.gp-market-instrument-select {
  height: 30px !important;
  min-height: 30px !important;
  line-height: 30px !important;
  position: relative !important;
  z-index: 5 !important;
}

@media (min-width: 1181px) {
  body.terminal-active.gp-dashboard-chart-mode #app,
  body.gp-terminal-active.gp-dashboard-chart-mode #app {
    grid-template-rows: 48px var(--gp-step05-overview-height) minmax(var(--gp-step05-chart-min-height), max-content) minmax(210px, 23vh) minmax(220px, 24vh) !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-market-overview,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-market-overview {
    min-height: var(--gp-step05-overview-height) !important;
    height: var(--gp-step05-overview-height) !important;
    overflow: visible !important;
    align-items: stretch !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .main,
  body.gp-terminal-active.gp-dashboard-chart-mode .main,
  body.terminal-active.gp-dashboard-chart-mode .chart-container,
  body.gp-terminal-active.gp-dashboard-chart-mode .chart-container,
  body.terminal-active.gp-dashboard-chart-mode .sidebar,
  body.gp-terminal-active.gp-dashboard-chart-mode .sidebar {
    min-height: var(--gp-step05-chart-min-height) !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .chart-container,
  body.gp-terminal-active.gp-dashboard-chart-mode .chart-container {
    display: flex !important;
    flex-direction: column !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .chart-area,
  body.gp-terminal-active.gp-dashboard-chart-mode .chart-area {
    flex: 1 1 306px !important;
    min-height: 286px !important;
    height: auto !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-chart-aggregation-strip,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-chart-aggregation-strip {
    flex: 0 0 36px !important;
    min-height: 36px !important;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .analytics,
  body.gp-terminal-active.gp-dashboard-chart-mode .analytics {
    flex: 0 0 68px !important;
    min-height: 68px !important;
    max-height: 68px !important;
    overflow: visible !important;
    padding: 7px 8px !important;
    align-items: stretch !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .metric,
  body.gp-terminal-active.gp-dashboard-chart-mode .metric {
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 5px !important;
    overflow: visible !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .metric__label,
  body.gp-terminal-active.gp-dashboard-chart-mode .metric__label {
    line-height: 1.1 !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .metric__value,
  body.gp-terminal-active.gp-dashboard-chart-mode .metric__value {
    display: block !important;
    line-height: 1.15 !important;
    min-height: 18px !important;
    overflow: visible !important;
  }
}

/* DOM panel tabs: DOM, Key Levels, Volume Profile. */
.sidebar[data-gp-dom-view="dom"] .orderbook__depth,
.sidebar[data-gp-dom-view="dom"] .gp-dom-bookmap-body,
.sidebar[data-gp-dom-view="dom"] .gp-dom-bidask-panel {
  display: flex !important;
}

.sidebar[data-gp-dom-view="dom"] .gp-dom-bookmap-body {
  display: grid !important;
}

.sidebar[data-gp-dom-view="dom"] #levels-summary {
  display: none !important;
  flex-basis: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-top: 0 !important;
}

.sidebar[data-gp-dom-view="levels"] .orderbook__depth,
.sidebar[data-gp-dom-view="levels"] .gp-dom-bookmap-body,
.sidebar[data-gp-dom-view="levels"] .gp-dom-bidask-panel {
  display: none !important;
}

.sidebar[data-gp-dom-view="levels"] #levels-summary {
  display: block !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  height: auto !important;
  padding: 0 !important;
  overflow: auto !important;
  border-top: 1px solid rgba(70, 123, 196, 0.16) !important;
  background: radial-gradient(circle at 18% 0%, rgba(35, 144, 255, 0.12), transparent 42%), rgba(4, 12, 25, 0.96) !important;
}

.sidebar[data-gp-dom-view="levels"] #levels-summary.levels-summary,
.sidebar[data-gp-dom-view="levels"] #levels-summary .levels-summary {
  padding: 12px !important;
}

.sidebar[data-gp-dom-view="volume"] .orderbook__depth {
  display: none !important;
}

.sidebar[data-gp-dom-view="volume"] .gp-dom-bookmap-body {
  display: flex !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  grid-template-columns: none !important;
}

.sidebar[data-gp-dom-view="volume"] .orderbook__content {
  display: none !important;
}

.sidebar[data-gp-dom-view="volume"] .gp-dom-volume-profile {
  display: flex !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  max-width: none !important;
  border-left: 0 !important;
}

.sidebar[data-gp-dom-view="volume"] .gp-dom-volume-profile--chart-style .gp-dom-vp-bars {
  padding-left: 12px !important;
  padding-right: 10px !important;
}

.sidebar[data-gp-dom-view="volume"] .gp-dom-bidask-panel {
  display: block !important;
  flex: 0 0 44px !important;
  min-height: 44px !important;
}

.sidebar[data-gp-dom-view="volume"] #levels-summary {
  display: none !important;
  flex-basis: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.sidebar[data-gp-dom-view="volume"] .gp-dom-vp-head strong::after {
  content: " FULL";
  color: rgba(95, 188, 255, 0.85);
}

.gp-dom-visual-tabs button[aria-selected="true"],
.gp-dom-visual-tabs button.is-active {
  color: #ffffff !important;
  border-color: rgba(35, 144, 255, 0.68) !important;
  background: linear-gradient(180deg, rgba(18, 91, 171, 0.72), rgba(8, 20, 39, 0.94)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 0 20px rgba(35,144,255,0.12) !important;
}

@media (min-width: 1181px) and (max-width: 1500px) {
  :root {
    --gp-step05-overview-height: 100px;
    --gp-step05-chart-min-height: 512px;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-market-overview,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-market-overview {
    grid-template-columns: minmax(260px, 1.16fr) repeat(5, minmax(112px, 1fr)) minmax(100px, 0.62fr) !important;
  }

  .gp-market-symbol-row {
    grid-template-columns: minmax(88px, 0.78fr) minmax(110px, 1fr) !important;
  }

  .gp-market-symbol-row strong {
    font-size: 15px !important;
  }
}

/* Step 05 fine tune: BID/ASK stays stacked in DOM tab. */
.sidebar[data-gp-dom-view="dom"] .gp-dom-bidask-panel {
  display: block !important;
}

/* GUARDEER PRIME redesign step 06: bottom insight row with compact order flow tools. */
:root {
  --gp-step06-row-height: minmax(212px, 25vh);
}

.gp-hidden-control-bank {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.gp-orderflow-dashboard {
  display: grid;
  grid-template-columns: 1.18fr 0.92fr 0.96fr 0.92fr;
  gap: 10px;
  min-height: 0;
  padding: 10px;
  background: transparent;
}

.gp-of-dash-card {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(57, 119, 193, 0.20);
  background:
    linear-gradient(180deg, rgba(4, 13, 26, 0.98), rgba(2, 9, 19, 0.98)),
    radial-gradient(circle at 18% 0%, rgba(40, 124, 255, 0.10), transparent 38%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.045), 0 12px 28px rgba(0,0,0,0.18);
}

.gp-of-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 18px;
}

.gp-of-card-head strong {
  color: #f3f9ff;
  font: 900 12px/1 Inter, system-ui, sans-serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.gp-of-card-sliders {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.gp-of-mirror-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
  align-items: center;
}

.gp-of-mirror-row--wide {
  grid-column: 1 / span 2;
}

.gp-of-mirror-row span,
.gp-of-inline-select span,
.gp-of-inline-switch span,
.gp-trade-feed-head span {
  color: rgba(184, 211, 245, 0.72);
  font: 800 10px/1.15 Inter, system-ui, sans-serif;
  letter-spacing: 0.035em;
}

.gp-of-mirror-row b {
  color: rgba(233, 246, 255, 0.86);
  font: 900 10px/1 Inter, system-ui, sans-serif;
}

.gp-of-mirror-row input {
  grid-column: 1 / -1;
  width: 100%;
  accent-color: #2795ff;
  cursor: pointer;
}

.gp-of-inline-bottom {
  margin-top: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.gp-of-inline-select {
  display: grid;
  gap: 7px;
}

.gp-of-inline-select select {
  width: 100%;
  height: 34px;
  padding: 0 32px 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(65, 125, 204, 0.34);
  background: rgba(3, 12, 25, 0.94);
  color: rgba(237, 246, 255, 0.96);
  font: 800 11px/1 Inter, system-ui, sans-serif;
  outline: none;
}

.gp-of-inline-switch {
  display: grid;
  gap: 7px;
  justify-items: end;
}

.gp-of-inline-switch .gp-mini-switch {
  min-width: 60px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(43, 193, 162, 0.34);
  background: rgba(5, 26, 30, 0.95);
  color: #e9fffb;
  font: 900 11px/1 Inter, system-ui, sans-serif;
  cursor: pointer;
}

.gp-of-inline-switch .gp-mini-switch.active,
.gp-of-inline-switch .gp-mini-switch[aria-pressed="true"] {
  background: linear-gradient(135deg, rgba(0, 161, 255, 0.84), rgba(35, 224, 183, 0.88));
  border-color: rgba(80, 227, 255, 0.52);
  color: #ffffff;
}

.gp-bottom-vp-card {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px;
  gap: 8px;
  align-items: stretch;
}

.gp-bottom-vp-bars {
  position: relative;
  min-height: 142px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(5, 14, 28, 0.95), rgba(2, 8, 18, 0.95)),
    repeating-linear-gradient(180deg, transparent 0 13px, rgba(255,255,255,0.03) 13px 14px);
  overflow: hidden;
}

.gp-bottom-vp-row {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
}

.gp-bottom-vp-row::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: var(--gp-bottom-width, 28%);
  height: max(5px, calc(100% - 2px));
  transform: translateY(-50%);
  border-radius: 999px 0 0 999px;
  background: linear-gradient(90deg, rgba(29, 108, 255, 0.76), rgba(48, 170, 255, 0.96));
  box-shadow: 0 0 14px rgba(33, 128, 255, 0.18);
}

.gp-bottom-vp-row::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: calc(var(--gp-bottom-width, 28%) * var(--gp-bottom-hot, 0.42));
  height: max(5px, calc(100% - 3px));
  transform: translateY(-50%);
  border-radius: 999px 0 0 999px;
  background: linear-gradient(90deg, rgba(161, 74, 0, 0.92), rgba(255, 169, 60, 0.98));
  box-shadow: 0 0 12px rgba(255, 153, 40, 0.18);
}

.gp-bottom-vp-row.is-poc::after {
  background: linear-gradient(90deg, rgba(255, 183, 74, 0.95), rgba(255, 216, 131, 1));
  box-shadow: 0 0 16px rgba(255, 201, 97, 0.28);
}

.gp-bottom-vp-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  gap: 6px;
  padding: 2px 0;
}

.gp-bottom-vp-axis span {
  color: rgba(198, 221, 247, 0.78);
  font: 800 10px/1 "JetBrains Mono", monospace;
}

.gp-bottom-vp-price-tag {
  position: absolute;
  right: 58px;
  top: 50%;
  transform: translateY(-50%);
  padding: 3px 6px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(25, 138, 100, 0.95), rgba(37, 204, 149, 0.95));
  color: #ffffff;
  font: 900 10px/1 "JetBrains Mono", monospace;
  box-shadow: 0 0 14px rgba(37, 204, 149, 0.16);
}

.gp-trade-feed-head,
.gp-trade-feed-row {
  display: grid;
  grid-template-columns: 0.9fr 1fr 0.7fr 0.62fr;
  gap: 10px;
  align-items: center;
}

.gp-trade-feed-list {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.gp-trade-feed-row span {
  color: rgba(210, 229, 246, 0.82);
  font: 800 11px/1.2 "JetBrains Mono", monospace;
}

.gp-trade-feed-row span.buy { color: #31d88e; }
.gp-trade-feed-row span.sell { color: #ff667f; }

.gp-liquidity-level-list {
  display: grid;
  gap: 10px;
  margin-top: 2px;
}

.gp-liquidity-item {
  display: grid;
  grid-template-columns: auto max-content minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.gp-liquidity-item i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
}

.gp-liquidity-item b {
  color: rgba(214, 232, 246, 0.76);
  font: 750 11px/1 Inter, system-ui, sans-serif;
}

.gp-liquidity-item span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.78;
}

.gp-liquidity-item em {
  color: rgba(217, 235, 247, 0.90);
  font: 900 11px/1 "JetBrains Mono", monospace;
  font-style: normal;
}

.gp-liquidity-item--strong-high { color: #4f7cff; }
.gp-liquidity-item--high { color: #2b9cff; }
.gp-liquidity-item--medium { color: #46d8ff; }
.gp-liquidity-item--current { color: #4fe0a1; }
.gp-liquidity-item--low { color: #ffb85c; }
.gp-liquidity-item--strong-low { color: #ff8a34; }

@media (min-width: 1181px) {
  body.terminal-active.gp-dashboard-chart-mode #app,
  body.gp-terminal-active.gp-dashboard-chart-mode #app {
    grid-template-rows: 48px var(--gp-step05-overview-height) minmax(var(--gp-step05-chart-min-height), max-content) var(--gp-step06-row-height) minmax(210px, 23vh) !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .tools-panel,
  body.gp-terminal-active.gp-dashboard-chart-mode .tools-panel {
    grid-column: 2 / 4 !important;
    grid-row: 4 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    inset: auto !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .tools-panel__header,
  body.gp-terminal-active.gp-dashboard-chart-mode .tools-panel__header {
    display: none !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .tools-panel__body,
  body.gp-terminal-active.gp-dashboard-chart-mode .tools-panel__body {
    height: 100% !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-terminal-bottom,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-terminal-bottom {
    grid-column: 2 / 4 !important;
    grid-row: 5 !important;
  }
}

@media (min-width: 1181px) and (max-width: 1500px) {
  :root { --gp-step06-row-height: minmax(224px, 26vh); }
  .gp-orderflow-dashboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gp-of-dash-card--controls { grid-column: 1 / -1; }
}

@media (max-width: 1180px) {
  .gp-orderflow-dashboard {
    grid-template-columns: 1fr;
  }

  .gp-of-card-sliders {
    grid-template-columns: 1fr;
  }

  .gp-of-mirror-row--wide {
    grid-column: 1;
  }

  .gp-of-inline-bottom {
    grid-template-columns: 1fr;
  }
}

/* GUARDEER PRIME redesign step 07: wider lower row, visible PRIME panel, and bottom VP polish. */
:root {
  --gp-step07-bottom-row-height: minmax(238px, 27vh);
}

@media (min-width: 1181px) {
  body.terminal-active.gp-dashboard-chart-mode #app,
  body.gp-terminal-active.gp-dashboard-chart-mode #app {
    grid-template-rows: 48px var(--gp-step05-overview-height) minmax(var(--gp-step05-chart-min-height), max-content) var(--gp-step07-bottom-row-height) minmax(190px, 20vh) !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .tools-panel,
  body.gp-terminal-active.gp-dashboard-chart-mode .tools-panel {
    grid-column: 2 / 4 !important;
    grid-row: 4 !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-orderflow-dashboard,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-orderflow-dashboard {
    grid-template-columns:
      minmax(500px, 1.42fr)
      minmax(350px, 1.02fr)
      minmax(320px, 0.92fr)
      minmax(300px, 0.84fr) !important;
    gap: 10px !important;
    padding: 10px 12px !important;
    overflow: visible !important;
  }
}

.gp-of-dash-card {
  overflow: hidden;
}

.gp-of-dash-card--controls {
  min-width: 500px;
}

.gp-of-dash-card--controls .gp-of-card-sliders {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 14px;
}

.gp-of-dash-card--controls .gp-of-mirror-row--wide {
  grid-column: 1 / span 2;
}

.gp-of-dash-card--controls .gp-of-inline-bottom {
  grid-template-columns: minmax(250px, 1fr) minmax(145px, auto);
  align-items: end;
}

.gp-of-dash-card--controls .gp-of-inline-select select {
  height: 32px;
}

.gp-bottom-vp-bars {
  min-height: 160px !important;
  background:
    radial-gradient(circle at 18% 50%, rgba(20, 115, 255, 0.15), transparent 40%),
    linear-gradient(180deg, rgba(4, 14, 29, 0.98), rgba(2, 8, 18, 0.98)),
    repeating-linear-gradient(180deg, transparent 0 11px, rgba(255,255,255,0.04) 11px 12px) !important;
}

.gp-bottom-vp-bars .gp-dom-vp-empty {
  display: grid;
  place-items: center;
  height: 100%;
  color: rgba(170, 205, 235, 0.72);
  font: 800 11px/1 Inter, system-ui, sans-serif;
}

.gp-bottom-vp-row {
  opacity: 0.98;
}

.gp-of-dash-card--vp .gp-of-card-head strong,
.gp-of-dash-card--feed .gp-of-card-head strong,
.gp-of-dash-card--liquidity .gp-of-card-head strong {
  white-space: nowrap;
}

.gp-trade-feed-list,
.gp-liquidity-level-list {
  min-height: 132px;
}

.gp-trade-feed-row,
.gp-liquidity-item {
  min-height: 18px;
}

/* The legacy PRIME Order Flow popup is generated inline; these rules make it fully visible. */
#prime-orderflow-panel {
  position: fixed !important;
  top: 138px !important;
  right: calc(var(--gp-step04-dom-width, 332px) + 22px) !important;
  width: 340px !important;
  max-width: min(340px, calc(100vw - 32px)) !important;
  max-height: calc(100dvh - 164px) !important;
  overflow-y: auto !important;
  padding: 14px 14px 16px !important;
  z-index: 10020 !important;
  border-radius: 18px !important;
  box-shadow: 0 22px 60px rgba(0,0,0,.62), 0 0 38px rgba(0,224,255,.16) !important;
}

#prime-orderflow-panel .prime-row {
  margin: 8px 0 !important;
  gap: 6px !important;
}

#prime-orderflow-panel .prime-row input {
  min-height: 18px !important;
}

#prime-orderflow-panel .prime-select {
  min-height: 34px !important;
}

#prime-orderflow-panel .prime-check {
  margin: 8px 0 !important;
}

#prime-orderflow-panel .prime-mini {
  min-height: 34px !important;
}

@media (min-width: 1181px) and (max-width: 1660px) {
  body.terminal-active.gp-dashboard-chart-mode .gp-orderflow-dashboard,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-orderflow-dashboard {
    grid-template-columns:
      minmax(460px, 1.32fr)
      minmax(310px, 1fr)
      minmax(292px, 0.88fr)
      minmax(260px, 0.78fr) !important;
  }

  .gp-of-dash-card--controls {
    min-width: 460px;
  }

  .gp-of-dash-card--controls .gp-of-card-sliders {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gp-of-dash-card--controls .gp-of-mirror-row--wide {
    grid-column: 1 / span 2;
  }

  #prime-orderflow-panel {
    width: 322px !important;
    right: calc(var(--gp-step04-dom-width, 318px) + 14px) !important;
  }
}

@media (max-width: 1180px) {
  #prime-orderflow-panel {
    position: fixed !important;
    top: 88px !important;
    right: 12px !important;
    left: 12px !important;
    width: auto !important;
    max-width: none !important;
    max-height: calc(100dvh - 110px) !important;
  }

  .gp-of-dash-card--controls {
    min-width: 0;
  }

  .gp-of-dash-card--controls .gp-of-card-sliders,
  .gp-of-dash-card--controls .gp-of-inline-bottom {
    grid-template-columns: 1fr;
  }

  .gp-of-dash-card--controls .gp-of-mirror-row--wide {
    grid-column: 1;
  }
}

/* GUARDEER PRIME redesign step 07: wider bottom cards, visible VP, full PRIME Order Flow popup. */
:root {
  --gp-step07-row-height: minmax(258px, 30vh);
}

@media (min-width: 1181px) {
  body.terminal-active.gp-dashboard-chart-mode #app,
  body.gp-terminal-active.gp-dashboard-chart-mode #app {
    grid-template-rows: 48px var(--gp-step05-overview-height) minmax(var(--gp-step05-chart-min-height), max-content) var(--gp-step07-row-height) minmax(210px, 23vh) !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .tools-panel,
  body.gp-terminal-active.gp-dashboard-chart-mode .tools-panel {
    overflow: visible !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .tools-panel__body,
  body.gp-terminal-active.gp-dashboard-chart-mode .tools-panel__body {
    min-height: 250px !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-orderflow-dashboard,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-orderflow-dashboard {
    grid-template-columns: minmax(460px, 1.58fr) minmax(340px, 1.15fr) minmax(300px, 1fr) minmax(300px, 1fr) !important;
    gap: 12px !important;
    padding: 10px 12px !important;
    align-items: stretch !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-of-dash-card,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-of-dash-card {
    min-height: 232px !important;
    overflow: hidden !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-of-dash-card--controls,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-of-dash-card--controls {
    padding-bottom: 12px !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-of-card-sliders,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-of-card-sliders {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px 16px !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-of-inline-bottom,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-of-inline-bottom {
    grid-template-columns: minmax(220px, 1fr) minmax(122px, auto) !important;
    align-items: end !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-of-inline-select select,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-of-inline-select select {
    min-width: 0 !important;
  }
}

@media (min-width: 1501px) and (max-width: 1780px) {
  body.terminal-active.gp-dashboard-chart-mode .gp-orderflow-dashboard,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-orderflow-dashboard {
    grid-template-columns: minmax(500px, 1.62fr) minmax(360px, 1.12fr) minmax(300px, 0.95fr) minmax(300px, 0.95fr) !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-trade-feed-head,
  body.terminal-active.gp-dashboard-chart-mode .gp-trade-feed-row,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-trade-feed-head,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-trade-feed-row {
    grid-template-columns: 0.78fr 0.95fr 0.55fr 0.55fr !important;
    gap: 7px !important;
  }
}

@media (min-width: 1181px) and (max-width: 1500px) {
  :root { --gp-step07-row-height: minmax(300px, 35vh); }

  body.terminal-active.gp-dashboard-chart-mode .gp-orderflow-dashboard,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-orderflow-dashboard {
    grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr) !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-of-dash-card--controls,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-of-dash-card--controls {
    grid-column: auto !important;
  }
}

/* Make the bottom visible-range profile show like the reference: bars from left, price axis on right. */
.gp-bottom-vp-bars {
  min-height: 174px !important;
  background:
    radial-gradient(circle at 22% 45%, rgba(37, 144, 255, 0.12), transparent 44%),
    linear-gradient(180deg, rgba(5, 17, 34, 0.96), rgba(2, 8, 18, 0.96)),
    repeating-linear-gradient(180deg, transparent 0 11px, rgba(255,255,255,0.04) 11px 12px) !important;
}

.gp-bottom-vp-bars::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 32px, rgba(92, 158, 255, 0.045) 32px 33px);
  pointer-events: none;
}

.gp-bottom-vp-row::before {
  left: 0 !important;
  right: auto !important;
  border-radius: 0 999px 999px 0 !important;
}

.gp-bottom-vp-row::after {
  left: 0 !important;
  right: auto !important;
  border-radius: 0 999px 999px 0 !important;
}

.gp-bottom-vp-row.is-poc {
  z-index: 3;
}

.gp-bottom-vp-row.is-poc::before {
  box-shadow: 0 0 18px rgba(35, 144, 255, 0.30) !important;
}

.gp-bottom-vp-price-tag {
  right: 58px !important;
  z-index: 4 !important;
}

.gp-bottom-vp-axis {
  padding-right: 2px !important;
}

/* The original PRIME Order Flow popup has inline absolute styling; force it into a visible fixed panel. */
#prime-orderflow-panel {
  position: fixed !important;
  top: 104px !important;
  right: clamp(16px, 2.2vw, 38px) !important;
  left: auto !important;
  bottom: auto !important;
  width: min(360px, calc(100vw - 32px)) !important;
  max-height: calc(100dvh - 126px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 14px !important;
  z-index: 10080 !important;
  border-radius: 18px !important;
  box-shadow: 0 24px 70px rgba(0,0,0,.68), 0 0 40px rgba(0,224,255,.18) !important;
}

#prime-orderflow-panel .prime-row {
  margin: 8px 0 !important;
  gap: 5px !important;
}

#prime-orderflow-panel .prime-check {
  margin: 7px 0 !important;
}

#prime-orderflow-panel .prime-select {
  height: 36px !important;
}

#prime-orderflow-panel .prime-mini {
  min-height: 34px !important;
}

@media (max-height: 780px) {
  #prime-orderflow-panel {
    top: 64px !important;
    max-height: calc(100dvh - 78px) !important;
  }

  #prime-orderflow-panel .prime-row {
    margin: 6px 0 !important;
  }
}

/* GUARDEER PRIME redesign step 07: wider bottom panels, visible lower volume profile, full PRIME popup. */
:root {
  --gp-step07-row-height: minmax(268px, 30vh);
}

.gp-orderflow-dashboard {
  grid-template-columns: minmax(420px, 1.18fr) minmax(400px, 1.12fr) minmax(320px, 0.92fr) minmax(360px, 1fr) !important;
  gap: 8px !important;
  padding: 9px !important;
  align-items: stretch !important;
  overflow: visible !important;
}

.gp-of-dash-card {
  padding: 10px 12px !important;
  gap: 9px !important;
  overflow: hidden !important;
}

.gp-of-dash-card--controls {
  min-width: 420px !important;
}

.gp-of-card-sliders {
  gap: 9px 13px !important;
}

.gp-of-inline-bottom {
  gap: 10px !important;
  align-items: end !important;
}

.gp-of-inline-select select {
  min-width: 0 !important;
}

.gp-bottom-vp-card {
  min-height: 0 !important;
  grid-template-columns: minmax(0, 1fr) 62px !important;
}

.gp-bottom-vp-bars {
  min-height: 176px !important;
  border: 1px solid rgba(53, 118, 192, 0.10) !important;
  background:
    radial-gradient(circle at 16% 50%, rgba(29, 144, 255, 0.11), transparent 46%),
    linear-gradient(180deg, rgba(5, 14, 28, 0.98), rgba(2, 8, 18, 0.98)),
    repeating-linear-gradient(180deg, transparent 0 13px, rgba(255,255,255,0.035) 13px 14px) !important;
}

.gp-bottom-vp-row::before {
  left: 0 !important;
  right: auto !important;
  border-radius: 0 999px 999px 0 !important;
}

.gp-bottom-vp-row::after {
  left: 0 !important;
  right: auto !important;
  border-radius: 0 999px 999px 0 !important;
}

.gp-bottom-vp-price-tag {
  right: 68px !important;
  left: auto !important;
}

.gp-trade-feed-list,
.gp-liquidity-level-list {
  min-height: 142px !important;
  align-content: start !important;
}

#prime-orderflow-panel {
  position: fixed !important;
  top: 138px !important;
  right: calc(var(--gp-step04-dom-width, 330px) + 26px) !important;
  width: clamp(340px, 24vw, 420px) !important;
  max-height: calc(100vh - 168px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  z-index: 2500 !important;
  padding: 14px !important;
  border-radius: 18px !important;
  box-sizing: border-box !important;
}

#prime-orderflow-panel .prime-row {
  margin: 7px 0 !important;
  gap: 5px !important;
}

#prime-orderflow-panel .prime-check {
  margin: 7px 0 !important;
}

#prime-orderflow-panel .prime-mini {
  min-height: 32px !important;
}

#prime-orderflow-panel::-webkit-scrollbar {
  width: 6px !important;
}

#prime-orderflow-panel::-webkit-scrollbar-thumb {
  background: rgba(0, 224, 255, 0.34) !important;
  border-radius: 999px !important;
}

@media (min-width: 1181px) {
  body.terminal-active.gp-dashboard-chart-mode #app,
  body.gp-terminal-active.gp-dashboard-chart-mode #app {
    grid-template-rows: 48px var(--gp-step05-overview-height) minmax(var(--gp-step05-chart-min-height), max-content) var(--gp-step07-row-height) minmax(210px, 23vh) !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .tools-panel,
  body.gp-terminal-active.gp-dashboard-chart-mode .tools-panel {
    overflow: visible !important;
  }
}

@media (min-width: 1181px) and (max-width: 1680px) {
  .gp-orderflow-dashboard {
    grid-template-columns: minmax(390px, 1.12fr) minmax(360px, 1.05fr) minmax(285px, 0.86fr) minmax(310px, 0.94fr) !important;
  }

  .gp-of-dash-card--controls {
    min-width: 390px !important;
  }
}

@media (min-width: 1181px) and (max-width: 1450px) {
  .gp-orderflow-dashboard {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .gp-of-dash-card--controls {
    min-width: 0 !important;
  }

  #prime-orderflow-panel {
    right: 18px !important;
    top: 96px !important;
    width: min(420px, calc(100vw - 36px)) !important;
  }
}

@media (max-width: 1180px) {
  #prime-orderflow-panel {
    right: 12px !important;
    left: 12px !important;
    top: 86px !important;
    width: auto !important;
    max-height: calc(100vh - 112px) !important;
  }
}

/* GUARDEER PRIME redesign step 07: wider bottom panels, visible PRIME popup, bottom VP data. */
:root {
  --gp-step06-row-height: minmax(258px, 29vh);
}

@media (min-width: 1181px) {
  body.terminal-active.gp-dashboard-chart-mode #app,
  body.gp-terminal-active.gp-dashboard-chart-mode #app {
    grid-template-rows: 48px var(--gp-step05-overview-height) minmax(var(--gp-step05-chart-min-height), max-content) var(--gp-step06-row-height) minmax(210px, 23vh) !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .tools-panel,
  body.gp-terminal-active.gp-dashboard-chart-mode .tools-panel {
    overflow: visible !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .tools-panel__body.gp-orderflow-dashboard,
  body.gp-terminal-active.gp-dashboard-chart-mode .tools-panel__body.gp-orderflow-dashboard {
    display: grid !important;
    grid-template-columns: minmax(460px, 1.32fr) minmax(360px, 1.05fr) minmax(330px, 0.92fr) minmax(330px, 0.92fr) !important;
    align-items: stretch !important;
    gap: 10px !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 252px !important;
    overflow: visible !important;
    padding: 10px !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-of-dash-card,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-of-dash-card {
    min-height: 232px !important;
    height: 100% !important;
    overflow: hidden !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-of-dash-card--controls,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-of-dash-card--controls {
    padding: 12px 14px !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-of-dash-card--controls .gp-of-card-sliders,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-of-dash-card--controls .gp-of-card-sliders {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 11px 15px !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-of-dash-card--controls .gp-of-inline-bottom,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-of-dash-card--controls .gp-of-inline-bottom {
    grid-template-columns: minmax(0, 1fr) minmax(120px, auto) !important;
    gap: 14px !important;
    align-items: end !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-bottom-vp-bars,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-bottom-vp-bars {
    min-height: 178px !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-trade-feed-list,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-trade-feed-list,
  body.terminal-active.gp-dashboard-chart-mode .gp-liquidity-level-list,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-liquidity-level-list {
    overflow: hidden !important;
  }
}

@media (min-width: 1181px) and (max-width: 1500px) {
  :root { --gp-step06-row-height: minmax(268px, 31vh); }

  body.terminal-active.gp-dashboard-chart-mode .tools-panel__body.gp-orderflow-dashboard,
  body.gp-terminal-active.gp-dashboard-chart-mode .tools-panel__body.gp-orderflow-dashboard {
    grid-template-columns: minmax(410px, 1.28fr) minmax(315px, 1fr) minmax(280px, 0.88fr) minmax(292px, 0.92fr) !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    scrollbar-width: thin;
  }
}

/* The legacy PRIME ORDER FLOW panel is created with inline styles; these overrides keep it readable and unclipped. */
#prime-orderflow-panel {
  position: fixed !important;
  top: 92px !important;
  right: 24px !important;
  width: clamp(340px, 22vw, 430px) !important;
  max-height: calc(100dvh - 124px) !important;
  overflow-y: auto !important;
  padding: 14px !important;
  z-index: 5000 !important;
  border-radius: 18px !important;
}

#prime-orderflow-panel .prime-row {
  margin: 10px 0 !important;
  gap: 7px !important;
  font-size: 11px !important;
}

#prime-orderflow-panel .prime-row input {
  min-height: 18px !important;
}

#prime-orderflow-panel .prime-select {
  min-height: 38px !important;
}

#prime-orderflow-panel .prime-check {
  margin: 10px 0 !important;
  min-height: 20px !important;
}

#prime-orderflow-panel .prime-mini {
  min-height: 36px !important;
}

body.terminal-active.gp-dashboard-chart-mode .chart-container,
body.gp-terminal-active.gp-dashboard-chart-mode .chart-container,
body.terminal-active.gp-dashboard-chart-mode .main,
body.gp-terminal-active.gp-dashboard-chart-mode .main {
  overflow: visible !important;
}

body.terminal-active.gp-dashboard-chart-mode .chart-area,
body.gp-terminal-active.gp-dashboard-chart-mode .chart-area {
  overflow: visible !important;
}

.gp-bottom-vp-bars .gp-dom-vp-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: rgba(184, 211, 245, 0.62);
  font: 900 11px/1 Inter, system-ui, sans-serif;
}

.gp-bottom-vp-row.is-poc::before {
  box-shadow: 0 0 0 1px rgba(255, 196, 94, 0.45), 0 0 18px rgba(255, 171, 46, 0.24);
}

.gp-bottom-vp-row.is-poc::after {
  min-width: 32px;
}

#prime-orderflow-panel > div:last-child {
  position: sticky !important;
  bottom: -16px !important;
  padding-top: 9px !important;
  padding-bottom: 2px !important;
  background: linear-gradient(180deg, rgba(3,7,18,0), rgba(3,7,18,.98) 30%) !important;
}

/* GUARDEER PRIME redesign step 07: wider bottom row, fixed PRIME flow popover, visible bottom profile. */
:root {
  --gp-step07-row-height: 282px;
}

@media (min-width: 1181px) {
  body.terminal-active.gp-dashboard-chart-mode #app,
  body.gp-terminal-active.gp-dashboard-chart-mode #app {
    grid-template-rows: 48px var(--gp-step05-overview-height) minmax(var(--gp-step05-chart-min-height), max-content) var(--gp-step07-row-height) minmax(210px, 23vh) !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .tools-panel,
  body.gp-terminal-active.gp-dashboard-chart-mode .tools-panel,
  body.terminal-active.gp-dashboard-chart-mode .tools-panel__body,
  body.gp-terminal-active.gp-dashboard-chart-mode .tools-panel__body {
    overflow: visible !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-orderflow-dashboard,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-orderflow-dashboard {
    grid-template-columns: minmax(430px, 1.22fr) minmax(360px, 1.02fr) minmax(330px, 0.92fr) minmax(330px, 0.90fr) !important;
    gap: 10px !important;
    height: 100% !important;
    min-height: var(--gp-step07-row-height) !important;
    align-items: stretch !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-of-dash-card,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-of-dash-card {
    min-height: 0 !important;
    height: 100% !important;
    overflow: hidden !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-of-dash-card--controls,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-of-dash-card--controls {
    min-width: 430px !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-of-dash-card--vp,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-of-dash-card--vp {
    min-width: 350px !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-of-card-sliders,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-of-card-sliders {
    gap: 8px 14px !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-of-inline-bottom,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-of-inline-bottom {
    grid-template-columns: minmax(230px, 1fr) minmax(110px, auto) !important;
    gap: 12px !important;
    align-items: end !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-bottom-vp-card,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-bottom-vp-card,
  body.terminal-active.gp-dashboard-chart-mode .gp-bottom-vp-bars,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-bottom-vp-bars {
    min-height: 204px !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-trade-feed-list,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-trade-feed-list,
  body.terminal-active.gp-dashboard-chart-mode .gp-liquidity-level-list,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-liquidity-level-list {
    overflow: visible !important;
  }
}

@media (min-width: 1181px) and (max-width: 1640px) {
  :root { --gp-step07-row-height: 294px; }

  body.terminal-active.gp-dashboard-chart-mode .gp-orderflow-dashboard,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-orderflow-dashboard {
    grid-template-columns: minmax(410px, 1.18fr) minmax(330px, 1fr) minmax(300px, 0.9fr) minmax(300px, 0.88fr) !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-of-dash-card--controls,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-of-dash-card--controls {
    min-width: 410px !important;
  }
}

@media (min-width: 1181px) and (max-width: 1450px) {
  body.terminal-active.gp-dashboard-chart-mode .gp-orderflow-dashboard,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-orderflow-dashboard {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    min-height: 460px !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-of-dash-card--controls,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-of-dash-card--controls,
  body.terminal-active.gp-dashboard-chart-mode .gp-of-dash-card--vp,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-of-dash-card--vp {
    min-width: 0 !important;
  }
}

/* Bottom visible range profile should read left-to-right like the reference lower card. */
.gp-bottom-vp-row::before {
  left: 0 !important;
  right: auto !important;
  border-radius: 0 999px 999px 0 !important;
}

.gp-bottom-vp-row::after {
  left: 0 !important;
  right: auto !important;
  border-radius: 0 999px 999px 0 !important;
}

.gp-bottom-vp-bars::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, transparent 0 32px, rgba(60, 120, 190, 0.08) 32px 33px),
    repeating-linear-gradient(180deg, transparent 0 18px, rgba(60, 120, 190, 0.08) 18px 19px);
  opacity: 0.65;
}

.gp-bottom-vp-bars[data-gp-profile-ready="true"] .gp-dom-vp-empty {
  display: none !important;
}

/* Keep PRIME ORDER FLOW settings fully visible when it opens. */
#prime-orderflow-panel {
  position: fixed !important;
  top: clamp(150px, 25vh, 285px) !important;
  right: calc(var(--gp-step04-dom-width, 340px) + 26px) !important;
  width: min(340px, calc(100vw - var(--gp-step04-dom-width, 340px) - 170px)) !important;
  max-height: min(66vh, 590px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  z-index: 99999 !important;
  padding: 14px !important;
  border-radius: 18px !important;
  scrollbar-width: thin;
}

#prime-orderflow-panel .prime-row {
  margin: 8px 0 !important;
}

#prime-orderflow-panel .prime-check {
  margin: 7px 0 !important;
}

#prime-orderflow-panel .prime-mini {
  min-width: 0 !important;
  white-space: nowrap !important;
}

@media (max-width: 1180px) {
  #prime-orderflow-panel {
    left: 14px !important;
    right: 14px !important;
    top: 86px !important;
    width: auto !important;
    max-height: calc(100dvh - 118px) !important;
  }
}

/* GUARDEER PRIME redesign step 08: lower workspace height, aligned journal/calendar, visible journal CTA. */
:root {
  --gp-step08-orderflow-row-height: 258px;
  --gp-step08-terminal-bottom-height: 330px;
}

@media (min-width: 1181px) {
  body.terminal-active.gp-dashboard-chart-mode #app,
  body.gp-terminal-active.gp-dashboard-chart-mode #app {
    grid-template-rows:
      48px
      var(--gp-step05-overview-height)
      minmax(calc(var(--gp-step05-chart-min-height) - 22px), max-content)
      var(--gp-step08-orderflow-row-height)
      minmax(var(--gp-step08-terminal-bottom-height), max-content) !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-orderflow-dashboard,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-orderflow-dashboard {
    min-height: var(--gp-step08-orderflow-row-height) !important;
    height: var(--gp-step08-orderflow-row-height) !important;
    padding-bottom: 8px !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-of-dash-card,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-of-dash-card {
    min-height: 0 !important;
    height: 100% !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-bottom-vp-card,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-bottom-vp-card,
  body.terminal-active.gp-dashboard-chart-mode .gp-bottom-vp-bars,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-bottom-vp-bars {
    min-height: 178px !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-terminal-bottom,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-terminal-bottom {
    grid-column: 2 / 4 !important;
    grid-row: 5 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    grid-auto-rows: 1fr !important;
    align-items: stretch !important;
    gap: 12px !important;
    height: 100% !important;
    min-height: var(--gp-step08-terminal-bottom-height) !important;
    padding: 10px 10px 18px !important;
    overflow: visible !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-journal-card,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-journal-card,
  body.terminal-active.gp-dashboard-chart-mode .gp-news-card,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-news-card {
    align-self: stretch !important;
    min-height: 300px !important;
    height: 100% !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: visible !important;
  }
}

.gp-terminal-bottom .gp-bottom-card,
.gp-terminal-bottom .gp-journal-card,
.gp-terminal-bottom .gp-news-card {
  position: relative;
  border-radius: 14px;
  border: 1px solid rgba(61, 122, 196, 0.24) !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(35, 144, 255, 0.10), transparent 34%),
    linear-gradient(180deg, rgba(4, 14, 28, 0.98), rgba(2, 8, 18, 0.98)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.045), 0 14px 30px rgba(0,0,0,0.20);
}

.gp-terminal-bottom .gp-bottom-head,
.gp-terminal-bottom .gp-bottom-head--journal {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  min-height: 36px !important;
  margin-bottom: 10px !important;
}

.gp-terminal-bottom .gp-bottom-head strong {
  color: #f5fbff !important;
  font: 950 16px/1 Inter, system-ui, sans-serif !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

.gp-bottom-head-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  min-width: 0 !important;
}

.gp-terminal-bottom .gp-bottom-head select,
.gp-terminal-bottom .gp-bottom-head .gp-chip {
  height: 32px !important;
  min-height: 32px !important;
}

.gp-journal-open-btn,
.gp-journal-card button[data-open-fxbook],
.gp-journal-card [data-gp-step08-journal-open] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  min-height: 34px !important;
  padding: 0 14px !important;
  border: 1px solid rgba(21, 193, 255, 0.46) !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, rgba(0, 124, 255, 0.95), rgba(0, 222, 206, 0.88)) !important;
  color: #ffffff !important;
  font: 950 11px/1 Inter, system-ui, sans-serif !important;
  letter-spacing: 0.025em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  box-shadow: 0 0 18px rgba(0, 161, 255, 0.22), inset 0 1px 0 rgba(255,255,255,0.18) !important;
}

.gp-journal-open-btn:hover,
.gp-journal-card button[data-open-fxbook]:hover,
.gp-journal-card [data-gp-step08-journal-open]:hover {
  filter: brightness(1.08) !important;
  transform: translateY(-1px);
}

.gp-journal-open-btn--footer,
.gp-journal-card > button[data-open-fxbook] {
  width: 100% !important;
  margin-top: auto !important;
  min-height: 38px !important;
}

.gp-journal-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin-bottom: 10px !important;
}

.gp-journal-grid > div {
  min-height: 52px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(66, 125, 198, 0.22) !important;
  background: rgba(4, 18, 38, 0.82) !important;
  padding: 10px 12px !important;
}

.gp-news-card ul {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  margin: 8px 0 12px !important;
}

.gp-news-card button[data-open-ai-calendar-page] {
  margin-top: auto !important;
  min-height: 38px !important;
}

@media (min-width: 1181px) and (max-width: 1500px) {
  :root {
    --gp-step08-orderflow-row-height: 270px;
    --gp-step08-terminal-bottom-height: 345px;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-terminal-bottom,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-terminal-bottom {
    grid-template-columns: 1fr !important;
    grid-auto-rows: minmax(300px, auto) !important;
  }
}

@media (max-width: 1180px) {
  .gp-terminal-bottom {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .gp-bottom-head-actions {
    width: 100% !important;
    justify-content: space-between !important;
  }
}

/* GUARDEER PRIME redesign step 09: bottom area is calendar-only with important news. */
:root {
  --gp-step09-calendar-bottom-height: 320px;
}

.gp-terminal-bottom--calendar-only .gp-journal-card,
.gp-terminal-bottom .gp-journal-card[data-gp-step09-removed="true"] {
  display: none !important;
}

.gp-terminal-bottom--calendar-only {
  grid-template-columns: 1fr !important;
  grid-auto-rows: 1fr !important;
}

.gp-news-card--priority {
  width: 100% !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

.gp-calendar-priority-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  margin-bottom: 12px !important;
}

.gp-calendar-priority-head > div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.gp-calendar-priority-head > div:first-child span {
  color: rgba(178, 207, 239, 0.76);
  font: 750 11px/1.25 Inter, system-ui, sans-serif;
}

.gp-calendar-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.gp-calendar-head-actions button[data-open-ai-calendar-page],
.gp-news-card--priority > button[data-open-ai-calendar-page] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 34px !important;
  padding: 0 14px !important;
  border: 1px solid rgba(27, 198, 255, 0.48) !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, rgba(0, 124, 255, 0.95), rgba(0, 220, 206, 0.90)) !important;
  color: #ffffff !important;
  font: 950 11px/1 Inter, system-ui, sans-serif !important;
  letter-spacing: 0.025em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  box-shadow: 0 0 18px rgba(0, 161, 255, 0.22), inset 0 1px 0 rgba(255,255,255,0.18) !important;
}

.gp-calendar-priority-layout {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(270px, 0.62fr) minmax(0, 1.38fr);
  gap: 12px;
}

.gp-calendar-priority-summary,
.gp-priority-news-list li {
  border-radius: 13px;
  border: 1px solid rgba(66, 125, 198, 0.22);
  background:
    radial-gradient(circle at 18% 0%, rgba(35, 144, 255, 0.12), transparent 38%),
    rgba(4, 18, 38, 0.82);
}

.gp-calendar-priority-summary {
  position: relative;
  min-height: 0;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  overflow: hidden;
}

.gp-calendar-priority-summary::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -58px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 220, 206, 0.18), transparent 66%);
  pointer-events: none;
}

.gp-calendar-kicker {
  color: rgba(52, 214, 255, 0.94);
  font: 950 10px/1 Inter, system-ui, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gp-calendar-priority-summary h3 {
  margin: 0;
  color: #f5fbff;
  font: 950 22px/1.08 Inter, system-ui, sans-serif;
  letter-spacing: -0.015em;
}

.gp-calendar-priority-summary p {
  margin: 0;
  color: rgba(196, 221, 245, 0.82);
  font: 750 12px/1.55 Inter, system-ui, sans-serif;
}

.gp-calendar-priority-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  position: relative;
  z-index: 1;
}

.gp-calendar-priority-tags span {
  padding: 6px 8px;
  border-radius: 999px;
  border: 1px solid rgba(62, 143, 232, 0.26);
  background: rgba(6, 22, 45, 0.82);
  color: rgba(215, 236, 255, 0.86);
  font: 850 10px/1 Inter, system-ui, sans-serif;
}

.gp-priority-news-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  gap: 8px !important;
  min-height: 0 !important;
  overflow: auto !important;
}

.gp-priority-news-list li {
  min-height: 54px;
  padding: 10px 12px;
  display: grid !important;
  grid-template-columns: 64px minmax(0, 1fr) 72px !important;
  gap: 12px !important;
  align-items: center !important;
}

.gp-priority-news-list time {
  color: rgba(120, 188, 255, 0.95);
  font: 950 11px/1 "JetBrains Mono", monospace;
  text-transform: uppercase;
}

.gp-priority-news-list div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.gp-priority-news-list strong {
  color: rgba(244, 250, 255, 0.96);
  font: 900 13px/1.18 Inter, system-ui, sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gp-priority-news-list span {
  color: rgba(177, 203, 232, 0.74);
  font: 720 11px/1.22 Inter, system-ui, sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gp-priority-news-list b {
  justify-self: end;
  min-width: 58px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(255, 77, 116, 0.15);
  color: #ff7590;
  border: 1px solid rgba(255, 77, 116, 0.28);
  font: 950 10px/1 Inter, system-ui, sans-serif;
  text-align: center;
  text-transform: uppercase;
}

.gp-priority-news-list b.medium {
  background: rgba(255, 184, 92, 0.14);
  color: #ffc87f;
  border-color: rgba(255, 184, 92, 0.26);
}

@media (min-width: 1181px) {
  body.terminal-active.gp-dashboard-chart-mode #app,
  body.gp-terminal-active.gp-dashboard-chart-mode #app {
    grid-template-rows: 48px var(--gp-step05-overview-height) minmax(var(--gp-step05-chart-min-height), max-content) var(--gp-step08-orderflow-row-height) minmax(var(--gp-step09-calendar-bottom-height), max-content) !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-terminal-bottom,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-terminal-bottom,
  body.terminal-active.gp-dashboard-chart-mode .gp-terminal-bottom--calendar-only,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-terminal-bottom--calendar-only {
    grid-column: 2 / 4 !important;
    grid-row: 5 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-auto-rows: 1fr !important;
    gap: 0 !important;
    min-height: var(--gp-step09-calendar-bottom-height) !important;
    height: 100% !important;
    padding: 10px 10px 20px !important;
    overflow: visible !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-news-card--priority,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-news-card--priority {
    min-height: calc(var(--gp-step09-calendar-bottom-height) - 30px) !important;
    height: 100% !important;
    padding: 16px !important;
  }
}

@media (min-width: 1181px) and (max-width: 1500px) {
  :root {
    --gp-step09-calendar-bottom-height: 330px;
  }

  .gp-calendar-priority-layout {
    grid-template-columns: minmax(230px, 0.58fr) minmax(0, 1.42fr);
  }

  .gp-calendar-priority-summary h3 {
    font-size: 19px;
  }
}

@media (max-width: 900px) {
  .gp-calendar-priority-layout {
    grid-template-columns: 1fr;
  }

  .gp-calendar-priority-head,
  .gp-calendar-head-actions {
    align-items: stretch !important;
    flex-direction: column;
  }

  .gp-priority-news-list li {
    grid-template-columns: 58px minmax(0, 1fr) !important;
  }

  .gp-priority-news-list b {
    grid-column: 2;
    justify-self: start;
  }
}

/* GUARDEER PRIME redesign step 10: lift and expand the Market Calendar so priority news is fully visible. */
:root {
  --gp-step10-orderflow-row-height: 226px;
  --gp-step10-calendar-height: 470px;
  --gp-step10-calendar-lift: 128px;
}

@media (min-width: 1181px) {
  body.terminal-active.gp-dashboard-chart-mode #app,
  body.gp-terminal-active.gp-dashboard-chart-mode #app {
    grid-template-rows:
      48px
      var(--gp-step05-overview-height)
      minmax(calc(var(--gp-step05-chart-min-height) - 22px), max-content)
      var(--gp-step10-orderflow-row-height)
      minmax(var(--gp-step10-calendar-height), max-content) !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .tools-panel,
  body.gp-terminal-active.gp-dashboard-chart-mode .tools-panel {
    min-height: var(--gp-step10-orderflow-row-height) !important;
    height: var(--gp-step10-orderflow-row-height) !important;
    align-self: start !important;
    overflow: visible !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-orderflow-dashboard,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-orderflow-dashboard {
    min-height: var(--gp-step10-orderflow-row-height) !important;
    height: var(--gp-step10-orderflow-row-height) !important;
    padding-top: 8px !important;
    padding-bottom: 6px !important;
    align-items: stretch !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-of-dash-card,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-of-dash-card {
    height: 100% !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-bottom-vp-bars,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-bottom-vp-bars {
    min-height: 150px !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-terminal-bottom,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-terminal-bottom,
  body.terminal-active.gp-dashboard-chart-mode .gp-terminal-bottom--calendar-only,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-terminal-bottom--calendar-only {
    grid-column: 2 / 4 !important;
    grid-row: 5 !important;
    margin-top: calc(var(--gp-step10-calendar-lift) * -1) !important;
    min-height: calc(var(--gp-step10-calendar-height) + var(--gp-step10-calendar-lift)) !important;
    height: auto !important;
    padding: 0 10px 24px !important;
    overflow: visible !important;
    align-self: start !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-news-card--priority,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-news-card--priority {
    min-height: var(--gp-step10-calendar-height) !important;
    height: auto !important;
    padding: 18px !important;
    overflow: visible !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-calendar-priority-layout,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-calendar-priority-layout {
    min-height: 348px !important;
    grid-template-columns: minmax(330px, 0.48fr) minmax(0, 1.52fr) !important;
    align-items: stretch !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-calendar-priority-summary,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-calendar-priority-summary {
    min-height: 348px !important;
    justify-content: flex-start !important;
    gap: 14px !important;
    padding: 18px !important;
    overflow: visible !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-calendar-kicker,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-calendar-kicker {
    display: block !important;
    min-height: 14px !important;
    white-space: nowrap !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-calendar-priority-summary h3,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-calendar-priority-summary h3 {
    font-size: 23px !important;
    line-height: 1.1 !important;
    overflow: visible !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-calendar-priority-summary p,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-calendar-priority-summary p {
    font-size: 12px !important;
    line-height: 1.55 !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-priority-news-list,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-priority-news-list {
    overflow: visible !important;
    max-height: none !important;
    align-content: start !important;
    gap: 10px !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-priority-news-list li,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-priority-news-list li {
    min-height: 74px !important;
    padding: 12px 14px !important;
    grid-template-columns: 70px minmax(0, 1fr) 74px !important;
    align-items: start !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-priority-news-list strong,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-priority-news-list strong,
  body.terminal-active.gp-dashboard-chart-mode .gp-priority-news-list span,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-priority-news-list span {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-priority-news-list span,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-priority-news-list span {
    line-height: 1.35 !important;
  }
}

@media (min-width: 1181px) and (max-width: 1500px) {
  :root {
    --gp-step10-orderflow-row-height: 232px;
    --gp-step10-calendar-height: 500px;
    --gp-step10-calendar-lift: 118px;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-calendar-priority-layout,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-calendar-priority-layout {
    grid-template-columns: minmax(292px, 0.52fr) minmax(0, 1.48fr) !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-calendar-priority-summary h3,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-calendar-priority-summary h3 {
    font-size: 21px !important;
  }
}

/* GUARDEER PRIME redesign step 11: calendar directly under lower order-flow panels + live source badge. */
:root {
  --gp-step11-orderflow-row-height: 228px;
  --gp-step11-calendar-lift: clamp(260px, 28vh, 340px);
  --gp-step11-calendar-visible-height: 590px;
}

.gp-calendar-source-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(66, 125, 198, 0.32);
  background: rgba(5, 18, 38, 0.92);
  color: rgba(204, 224, 247, 0.84);
  font: 950 10px/1 Inter, system-ui, sans-serif;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  white-space: nowrap;
}

.gp-calendar-source-badge--live {
  border-color: rgba(31, 218, 168, 0.38);
  background: linear-gradient(135deg, rgba(0, 116, 255, 0.22), rgba(0, 213, 174, 0.20));
  color: #bfffee;
  box-shadow: 0 0 18px rgba(0, 213, 174, 0.12);
}

.gp-calendar-source-badge--loading {
  border-color: rgba(255, 210, 105, 0.38);
  color: #ffe2a2;
}

.gp-calendar-source-badge--fallback {
  border-color: rgba(255, 110, 138, 0.35);
  color: #ffc0cc;
}

.gp-priority-news-list--live li {
  border-color: rgba(45, 151, 255, 0.26) !important;
}

@media (min-width: 1181px) {
  body.terminal-active.gp-dashboard-chart-mode #app,
  body.gp-terminal-active.gp-dashboard-chart-mode #app {
    grid-template-rows:
      48px
      var(--gp-step05-overview-height)
      minmax(calc(var(--gp-step05-chart-min-height) - 22px), max-content)
      var(--gp-step11-orderflow-row-height)
      minmax(calc(var(--gp-step11-calendar-visible-height) + var(--gp-step11-calendar-lift)), max-content) !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .tools-panel__body.gp-orderflow-dashboard,
  body.gp-terminal-active.gp-dashboard-chart-mode .tools-panel__body.gp-orderflow-dashboard,
  body.terminal-active.gp-dashboard-chart-mode .gp-orderflow-dashboard,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-orderflow-dashboard {
    min-height: var(--gp-step11-orderflow-row-height) !important;
    height: var(--gp-step11-orderflow-row-height) !important;
    padding-bottom: 6px !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-terminal-bottom,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-terminal-bottom,
  body.terminal-active.gp-dashboard-chart-mode .gp-terminal-bottom--calendar-only,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-terminal-bottom--calendar-only {
    margin-top: calc(-1 * var(--gp-step11-calendar-lift)) !important;
    min-height: calc(var(--gp-step11-calendar-visible-height) + var(--gp-step11-calendar-lift)) !important;
    padding: 0 10px 26px !important;
    align-self: start !important;
    overflow: visible !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-news-card--priority,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-news-card--priority {
    min-height: var(--gp-step11-calendar-visible-height) !important;
    height: auto !important;
    padding: 18px !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-calendar-priority-head,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-calendar-priority-head {
    margin-bottom: 14px !important;
    align-items: center !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-calendar-head-actions,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-calendar-head-actions {
    flex-wrap: wrap !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-calendar-priority-layout,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-calendar-priority-layout {
    min-height: calc(var(--gp-step11-calendar-visible-height) - 82px) !important;
    grid-template-columns: minmax(390px, 0.48fr) minmax(0, 1.52fr) !important;
    gap: 14px !important;
    align-items: stretch !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-calendar-priority-summary,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-calendar-priority-summary {
    min-height: 100% !important;
    padding: 20px !important;
    gap: 16px !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-priority-news-list,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-priority-news-list {
    gap: 10px !important;
    min-height: 100% !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-priority-news-list li,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-priority-news-list li {
    min-height: 78px !important;
    padding: 13px 14px !important;
    grid-template-columns: 92px minmax(0, 1fr) 84px !important;
  }
}

@media (min-width: 1181px) and (max-width: 1500px) {
  :root {
    --gp-step11-orderflow-row-height: 224px;
    --gp-step11-calendar-lift: clamp(230px, 25vh, 305px);
    --gp-step11-calendar-visible-height: 550px;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-calendar-priority-layout,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-calendar-priority-layout {
    grid-template-columns: minmax(320px, 0.52fr) minmax(0, 1.48fr) !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-priority-news-list li,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-priority-news-list li {
    grid-template-columns: 76px minmax(0, 1fr) 72px !important;
    min-height: 72px !important;
  }
}

/* GUARDEER PRIME redesign step 11: calendar begins directly under the order-flow insight row and uses live-key status. */
:root {
  --gp-step11-orderflow-row-height: 226px;
  --gp-step11-calendar-height: 560px;
}

@media (min-width: 1181px) {
  body.terminal-active.gp-dashboard-chart-mode #app,
  body.gp-terminal-active.gp-dashboard-chart-mode #app {
    grid-template-rows:
      48px
      var(--gp-step05-overview-height)
      minmax(calc(var(--gp-step05-chart-min-height) - 22px), max-content)
      var(--gp-step11-orderflow-row-height)
      minmax(var(--gp-step11-calendar-height), max-content) !important;
    row-gap: 8px !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .tools-panel,
  body.gp-terminal-active.gp-dashboard-chart-mode .tools-panel {
    grid-row: 4 !important;
    min-height: var(--gp-step11-orderflow-row-height) !important;
    height: var(--gp-step11-orderflow-row-height) !important;
    z-index: 5 !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-orderflow-dashboard,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-orderflow-dashboard {
    min-height: var(--gp-step11-orderflow-row-height) !important;
    height: var(--gp-step11-orderflow-row-height) !important;
    padding-top: 8px !important;
    padding-bottom: 6px !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-terminal-bottom,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-terminal-bottom,
  body.terminal-active.gp-dashboard-chart-mode .gp-terminal-bottom--calendar-only,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-terminal-bottom--calendar-only {
    grid-column: 2 / 4 !important;
    grid-row: 4 / 6 !important;
    margin-top: 0 !important;
    padding: calc(var(--gp-step11-orderflow-row-height) + 8px) 10px 24px !important;
    min-height: calc(var(--gp-step11-orderflow-row-height) + var(--gp-step11-calendar-height) + 32px) !important;
    height: auto !important;
    align-self: start !important;
    overflow: visible !important;
    z-index: 1 !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-news-card--priority,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-news-card--priority {
    min-height: var(--gp-step11-calendar-height) !important;
    height: auto !important;
    padding: 18px !important;
    overflow: visible !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-calendar-priority-layout,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-calendar-priority-layout {
    min-height: calc(var(--gp-step11-calendar-height) - 112px) !important;
    grid-template-columns: minmax(360px, 0.50fr) minmax(0, 1.50fr) !important;
    align-items: stretch !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-calendar-priority-summary,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-calendar-priority-summary {
    min-height: calc(var(--gp-step11-calendar-height) - 112px) !important;
    overflow: visible !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-priority-news-list,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-priority-news-list {
    overflow: visible !important;
    max-height: none !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-priority-news-list li,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-priority-news-list li {
    min-height: 72px !important;
  }
}

.gp-calendar-priority-tags span:first-child {
  border-color: rgba(38, 216, 255, 0.42) !important;
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.24), rgba(0, 214, 197, 0.16)) !important;
  color: #c8f8ff !important;
}

@media (min-width: 1181px) and (max-width: 1500px) {
  :root {
    --gp-step11-orderflow-row-height: 230px;
    --gp-step11-calendar-height: 580px;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-calendar-priority-layout,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-calendar-priority-layout {
    grid-template-columns: minmax(310px, 0.52fr) minmax(0, 1.48fr) !important;
  }
}

/* Step 11 live calendar badge + live-row readability. */
.gp-calendar-live-source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(39, 239, 159, 0.38);
  background: linear-gradient(135deg, rgba(0, 116, 255, 0.22), rgba(0, 213, 174, 0.18));
  color: #c6fff0;
  font: 950 10px/1 Inter, system-ui, sans-serif;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 0 16px rgba(0, 213, 174, 0.12);
}

.gp-calendar-live-source::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #27ef9f;
  box-shadow: 0 0 12px rgba(39, 239, 159, 0.72);
}

.gp-calendar-live-source.is-fallback {
  border-color: rgba(255, 190, 92, 0.38);
  background: rgba(255, 190, 92, 0.12);
  color: #ffe0a8;
  box-shadow: none;
}

.gp-calendar-live-source.is-fallback::before {
  background: #ffbe5c;
  box-shadow: 0 0 12px rgba(255, 190, 92, 0.55);
}

.gp-priority-news-list[data-gp-live-news="true"] li {
  min-height: 84px !important;
  grid-template-columns: 94px minmax(0, 1fr) 84px !important;
}

.gp-priority-news-list[data-gp-live-news="true"] strong {
  font-size: 14px !important;
}

.gp-priority-news-list[data-gp-live-news="true"] span {
  font-size: 12px !important;
  line-height: 1.35 !important;
}

/* GUARDEER PRIME redesign step 12: put Market Calendar directly under insight cards and unclip the lower cards. */
:root {
  --gp-step12-orderflow-row-height: 272px;
  --gp-step12-calendar-height: 560px;
}

@media (min-width: 1181px) {
  body.terminal-active.gp-dashboard-chart-mode #app,
  body.gp-terminal-active.gp-dashboard-chart-mode #app {
    grid-template-rows:
      48px
      var(--gp-step05-overview-height)
      minmax(calc(var(--gp-step05-chart-min-height) - 22px), max-content)
      var(--gp-step12-orderflow-row-height)
      minmax(var(--gp-step12-calendar-height), max-content) !important;
    row-gap: 8px !important;
    align-content: start !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .tools-panel,
  body.gp-terminal-active.gp-dashboard-chart-mode .tools-panel {
    grid-column: 2 / 4 !important;
    grid-row: 4 !important;
    height: var(--gp-step12-orderflow-row-height) !important;
    min-height: var(--gp-step12-orderflow-row-height) !important;
    max-height: var(--gp-step12-orderflow-row-height) !important;
    margin: 0 !important;
    padding: 0 !important;
    align-self: stretch !important;
    overflow: visible !important;
    z-index: 6 !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .tools-panel__body.gp-orderflow-dashboard,
  body.gp-terminal-active.gp-dashboard-chart-mode .tools-panel__body.gp-orderflow-dashboard,
  body.terminal-active.gp-dashboard-chart-mode .gp-orderflow-dashboard,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-orderflow-dashboard {
    display: grid !important;
    grid-template-columns:
      minmax(380px, 1.36fr)
      minmax(320px, 1.04fr)
      minmax(280px, 0.92fr)
      minmax(300px, 0.98fr) !important;
    gap: 10px !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 8px 10px !important;
    align-items: stretch !important;
    overflow: visible !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-of-dash-card,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-of-dash-card {
    min-height: 0 !important;
    height: 100% !important;
    padding: 11px 12px !important;
    gap: 8px !important;
    overflow: hidden !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-of-dash-card--controls,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-of-dash-card--controls {
    min-width: 0 !important;
    overflow: visible !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-of-dash-card--controls .gp-of-card-sliders,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-of-dash-card--controls .gp-of-card-sliders {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px 14px !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-of-dash-card--controls .gp-of-mirror-row,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-of-dash-card--controls .gp-of-mirror-row {
    gap: 5px 8px !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-of-dash-card--controls .gp-of-inline-bottom,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-of-dash-card--controls .gp-of-inline-bottom {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(116px, max-content) !important;
    gap: 14px !important;
    align-items: end !important;
    min-height: 54px !important;
    margin-top: auto !important;
    overflow: visible !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-of-inline-select select,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-of-inline-select select {
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-of-inline-switch,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-of-inline-switch {
    min-width: 116px !important;
    justify-items: end !important;
    overflow: visible !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-of-inline-switch .gp-mini-switch,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-of-inline-switch .gp-mini-switch {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 66px !important;
    min-width: 66px !important;
    height: 36px !important;
    min-height: 36px !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-of-dash-card--vp,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-of-dash-card--vp {
    min-width: 0 !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-bottom-vp-card,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-bottom-vp-card {
    height: 100% !important;
    min-height: 0 !important;
    grid-template-columns: minmax(0, 1fr) 58px !important;
    overflow: visible !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-bottom-vp-bars,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-bottom-vp-bars {
    height: 100% !important;
    min-height: 176px !important;
    max-height: none !important;
    overflow: hidden !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-bottom-vp-axis,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-bottom-vp-axis {
    min-width: 54px !important;
    overflow: visible !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-bottom-vp-price-tag,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-bottom-vp-price-tag {
    right: 64px !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-terminal-bottom,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-terminal-bottom,
  body.terminal-active.gp-dashboard-chart-mode .gp-terminal-bottom--calendar-only,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-terminal-bottom--calendar-only {
    grid-column: 2 / 4 !important;
    grid-row: 5 !important;
    margin: 0 !important;
    transform: none !important;
    padding: 0 10px 22px !important;
    min-height: var(--gp-step12-calendar-height) !important;
    height: auto !important;
    align-self: start !important;
    justify-self: stretch !important;
    overflow: visible !important;
    z-index: 3 !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-news-card--priority,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-news-card--priority {
    min-height: var(--gp-step12-calendar-height) !important;
    height: auto !important;
    padding: 16px !important;
    overflow: visible !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-calendar-priority-layout,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-calendar-priority-layout {
    min-height: calc(var(--gp-step12-calendar-height) - 96px) !important;
    grid-template-columns: minmax(330px, 0.48fr) minmax(0, 1.52fr) !important;
    gap: 14px !important;
    align-items: stretch !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-calendar-priority-summary,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-calendar-priority-summary,
  body.terminal-active.gp-dashboard-chart-mode .gp-priority-news-list,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-priority-news-list {
    min-height: calc(var(--gp-step12-calendar-height) - 96px) !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

@media (min-width: 1181px) and (max-width: 1500px) {
  :root {
    --gp-step12-orderflow-row-height: 286px;
    --gp-step12-calendar-height: 560px;
  }

  body.terminal-active.gp-dashboard-chart-mode .tools-panel__body.gp-orderflow-dashboard,
  body.gp-terminal-active.gp-dashboard-chart-mode .tools-panel__body.gp-orderflow-dashboard,
  body.terminal-active.gp-dashboard-chart-mode .gp-orderflow-dashboard,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-orderflow-dashboard {
    grid-template-columns:
      minmax(380px, 1.32fr)
      minmax(290px, 1fr)
      minmax(260px, 0.9fr)
      minmax(290px, 0.96fr) !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-bottom-vp-bars,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-bottom-vp-bars {
    min-height: 190px !important;
  }

  body.terminal-active.gp-dashboard-chart-mode .gp-calendar-priority-layout,
  body.gp-terminal-active.gp-dashboard-chart-mode .gp-calendar-priority-layout {
    grid-template-columns: minmax(300px, 0.50fr) minmax(0, 1.50fr) !important;
  }
}


/* GUARDEER PRIME redesign step 13: dock Market Calendar directly under the four insight cards. */
:root {
  --gp-step13-orderflow-row-height: 244px;
  --gp-step13-calendar-height: 540px;
}

@media (min-width: 1181px) {
  body.terminal-active.gp-dashboard-chart-mode.gp-step13-calendar-docked #app,
  body.gp-terminal-active.gp-dashboard-chart-mode.gp-step13-calendar-docked #app {
    grid-template-rows:
      48px
      var(--gp-step05-overview-height)
      minmax(calc(var(--gp-step05-chart-min-height) - 22px), max-content)
      minmax(calc(var(--gp-step13-orderflow-row-height) + var(--gp-step13-calendar-height) + 20px), max-content)
      0px !important;
    row-gap: 8px !important;
    align-content: start !important;
  }

  body.terminal-active.gp-dashboard-chart-mode.gp-step13-calendar-docked .tools-panel,
  body.gp-terminal-active.gp-dashboard-chart-mode.gp-step13-calendar-docked .tools-panel {
    grid-column: 2 / 4 !important;
    grid-row: 4 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: calc(var(--gp-step13-orderflow-row-height) + var(--gp-step13-calendar-height) + 20px) !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    align-self: start !important;
    position: relative !important;
    inset: auto !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    z-index: 8 !important;
  }

  body.terminal-active.gp-dashboard-chart-mode.gp-step13-calendar-docked .tools-panel__header,
  body.gp-terminal-active.gp-dashboard-chart-mode.gp-step13-calendar-docked .tools-panel__header {
    display: none !important;
  }

  body.terminal-active.gp-dashboard-chart-mode.gp-step13-calendar-docked .tools-panel > .tools-panel__body.gp-orderflow-dashboard,
  body.gp-terminal-active.gp-dashboard-chart-mode.gp-step13-calendar-docked .tools-panel > .tools-panel__body.gp-orderflow-dashboard,
  body.terminal-active.gp-dashboard-chart-mode.gp-step13-calendar-docked .tools-panel > .gp-orderflow-dashboard,
  body.gp-terminal-active.gp-dashboard-chart-mode.gp-step13-calendar-docked .tools-panel > .gp-orderflow-dashboard {
    flex: 0 0 var(--gp-step13-orderflow-row-height) !important;
    height: var(--gp-step13-orderflow-row-height) !important;
    min-height: var(--gp-step13-orderflow-row-height) !important;
    max-height: var(--gp-step13-orderflow-row-height) !important;
    display: grid !important;
    grid-template-columns:
      minmax(390px, 1.34fr)
      minmax(320px, 1.02fr)
      minmax(280px, 0.92fr)
      minmax(300px, 0.98fr) !important;
    gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 8px 10px !important;
    align-items: stretch !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
  }

  body.terminal-active.gp-dashboard-chart-mode.gp-step13-calendar-docked .gp-orderflow-dashboard .gp-of-dash-card,
  body.gp-terminal-active.gp-dashboard-chart-mode.gp-step13-calendar-docked .gp-orderflow-dashboard .gp-of-dash-card {
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 10px 12px !important;
    gap: 7px !important;
    overflow: hidden !important;
  }

  body.terminal-active.gp-dashboard-chart-mode.gp-step13-calendar-docked .gp-of-dash-card--controls,
  body.gp-terminal-active.gp-dashboard-chart-mode.gp-step13-calendar-docked .gp-of-dash-card--controls {
    overflow: visible !important;
  }

  body.terminal-active.gp-dashboard-chart-mode.gp-step13-calendar-docked .gp-of-dash-card--controls .gp-of-card-sliders,
  body.gp-terminal-active.gp-dashboard-chart-mode.gp-step13-calendar-docked .gp-of-dash-card--controls .gp-of-card-sliders {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px 13px !important;
  }

  body.terminal-active.gp-dashboard-chart-mode.gp-step13-calendar-docked .gp-of-dash-card--controls .gp-of-mirror-row,
  body.gp-terminal-active.gp-dashboard-chart-mode.gp-step13-calendar-docked .gp-of-dash-card--controls .gp-of-mirror-row {
    gap: 4px 8px !important;
  }

  body.terminal-active.gp-dashboard-chart-mode.gp-step13-calendar-docked .gp-of-dash-card--controls .gp-of-mirror-row input,
  body.gp-terminal-active.gp-dashboard-chart-mode.gp-step13-calendar-docked .gp-of-dash-card--controls .gp-of-mirror-row input {
    min-height: 16px !important;
  }

  body.terminal-active.gp-dashboard-chart-mode.gp-step13-calendar-docked .gp-of-dash-card--controls .gp-of-inline-bottom,
  body.gp-terminal-active.gp-dashboard-chart-mode.gp-step13-calendar-docked .gp-of-dash-card--controls .gp-of-inline-bottom {
    grid-template-columns: minmax(0, 1fr) minmax(118px, max-content) !important;
    gap: 14px !important;
    min-height: 48px !important;
    margin-top: auto !important;
    align-items: end !important;
    overflow: visible !important;
  }

  body.terminal-active.gp-dashboard-chart-mode.gp-step13-calendar-docked .gp-of-inline-select select,
  body.gp-terminal-active.gp-dashboard-chart-mode.gp-step13-calendar-docked .gp-of-inline-select select {
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
  }

  body.terminal-active.gp-dashboard-chart-mode.gp-step13-calendar-docked .gp-of-inline-switch,
  body.gp-terminal-active.gp-dashboard-chart-mode.gp-step13-calendar-docked .gp-of-inline-switch {
    min-width: 118px !important;
    justify-items: end !important;
    overflow: visible !important;
  }

  body.terminal-active.gp-dashboard-chart-mode.gp-step13-calendar-docked .gp-of-inline-switch .gp-mini-switch,
  body.gp-terminal-active.gp-dashboard-chart-mode.gp-step13-calendar-docked .gp-of-inline-switch .gp-mini-switch {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 66px !important;
    min-width: 66px !important;
    height: 34px !important;
    min-height: 34px !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  body.terminal-active.gp-dashboard-chart-mode.gp-step13-calendar-docked .gp-bottom-vp-card,
  body.gp-terminal-active.gp-dashboard-chart-mode.gp-step13-calendar-docked .gp-bottom-vp-card {
    min-height: 0 !important;
    height: 100% !important;
    grid-template-columns: minmax(0, 1fr) 58px !important;
    overflow: visible !important;
  }

  body.terminal-active.gp-dashboard-chart-mode.gp-step13-calendar-docked .gp-bottom-vp-bars,
  body.gp-terminal-active.gp-dashboard-chart-mode.gp-step13-calendar-docked .gp-bottom-vp-bars {
    min-height: 156px !important;
    height: 100% !important;
    max-height: none !important;
    overflow: hidden !important;
  }

  body.terminal-active.gp-dashboard-chart-mode.gp-step13-calendar-docked .gp-bottom-vp-axis,
  body.gp-terminal-active.gp-dashboard-chart-mode.gp-step13-calendar-docked .gp-bottom-vp-axis {
    min-width: 54px !important;
    overflow: visible !important;
  }

  body.terminal-active.gp-dashboard-chart-mode.gp-step13-calendar-docked .tools-panel > .gp-terminal-bottom,
  body.gp-terminal-active.gp-dashboard-chart-mode.gp-step13-calendar-docked .tools-panel > .gp-terminal-bottom,
  body.terminal-active.gp-dashboard-chart-mode.gp-step13-calendar-docked .tools-panel > .gp-terminal-bottom--calendar-only,
  body.gp-terminal-active.gp-dashboard-chart-mode.gp-step13-calendar-docked .tools-panel > .gp-terminal-bottom--calendar-only {
    flex: 0 0 auto !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-auto-rows: auto !important;
    grid-column: auto !important;
    grid-row: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: var(--gp-step13-calendar-height) !important;
    height: auto !important;
    margin: 0 !important;
    transform: none !important;
    padding: 0 10px 22px !important;
    align-self: stretch !important;
    justify-self: stretch !important;
    overflow: visible !important;
    z-index: 2 !important;
  }

  body.terminal-active.gp-dashboard-chart-mode.gp-step13-calendar-docked .tools-panel > .gp-terminal-bottom .gp-news-card--priority,
  body.gp-terminal-active.gp-dashboard-chart-mode.gp-step13-calendar-docked .tools-panel > .gp-terminal-bottom .gp-news-card--priority {
    min-height: var(--gp-step13-calendar-height) !important;
    height: auto !important;
    padding: 16px !important;
    overflow: visible !important;
  }

  body.terminal-active.gp-dashboard-chart-mode.gp-step13-calendar-docked .gp-calendar-priority-layout,
  body.gp-terminal-active.gp-dashboard-chart-mode.gp-step13-calendar-docked .gp-calendar-priority-layout {
    min-height: calc(var(--gp-step13-calendar-height) - 96px) !important;
    grid-template-columns: minmax(330px, 0.48fr) minmax(0, 1.52fr) !important;
    gap: 14px !important;
  }

  body.terminal-active.gp-dashboard-chart-mode.gp-step13-calendar-docked .gp-calendar-priority-summary,
  body.gp-terminal-active.gp-dashboard-chart-mode.gp-step13-calendar-docked .gp-calendar-priority-summary,
  body.terminal-active.gp-dashboard-chart-mode.gp-step13-calendar-docked .gp-priority-news-list,
  body.gp-terminal-active.gp-dashboard-chart-mode.gp-step13-calendar-docked .gp-priority-news-list {
    min-height: calc(var(--gp-step13-calendar-height) - 96px) !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

@media (min-width: 1181px) and (max-width: 1500px) {
  :root {
    --gp-step13-orderflow-row-height: 252px;
    --gp-step13-calendar-height: 520px;
  }

  body.terminal-active.gp-dashboard-chart-mode.gp-step13-calendar-docked .tools-panel > .tools-panel__body.gp-orderflow-dashboard,
  body.gp-terminal-active.gp-dashboard-chart-mode.gp-step13-calendar-docked .tools-panel > .tools-panel__body.gp-orderflow-dashboard,
  body.terminal-active.gp-dashboard-chart-mode.gp-step13-calendar-docked .tools-panel > .gp-orderflow-dashboard,
  body.gp-terminal-active.gp-dashboard-chart-mode.gp-step13-calendar-docked .tools-panel > .gp-orderflow-dashboard {
    grid-template-columns:
      minmax(380px, 1.30fr)
      minmax(290px, 1fr)
      minmax(260px, 0.9fr)
      minmax(290px, 0.96fr) !important;
    gap: 8px !important;
  }

  body.terminal-active.gp-dashboard-chart-mode.gp-step13-calendar-docked .gp-calendar-priority-layout,
  body.gp-terminal-active.gp-dashboard-chart-mode.gp-step13-calendar-docked .gp-calendar-priority-layout {
    grid-template-columns: minmax(300px, 0.50fr) minmax(0, 1.50fr) !important;
  }
}

/* STEP 14: remove the empty implicit grid row above Market Calendar after docking. */
body.terminal-active.gp-dashboard-chart-mode .gp-terminal-bottom--calendar-only > .gp-news-card--priority,
body.gp-terminal-active.gp-dashboard-chart-mode .gp-terminal-bottom--calendar-only > .gp-news-card--priority {
  grid-row: 1 !important;
  grid-column: 1 !important;
}

@media (min-width: 1181px) {
  body.terminal-active.gp-dashboard-chart-mode.gp-step13-calendar-docked .tools-panel > .gp-terminal-bottom--calendar-only,
  body.gp-terminal-active.gp-dashboard-chart-mode.gp-step13-calendar-docked .tools-panel > .gp-terminal-bottom--calendar-only {
    grid-template-rows: minmax(0, auto) !important;
    grid-auto-rows: auto !important;
    align-content: start !important;
    height: auto !important;
    min-height: var(--gp-step13-calendar-height) !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  body.terminal-active.gp-dashboard-chart-mode.gp-step13-calendar-docked .tools-panel > .gp-terminal-bottom--calendar-only > .gp-news-card--priority,
  body.gp-terminal-active.gp-dashboard-chart-mode.gp-step13-calendar-docked .tools-panel > .gp-terminal-bottom--calendar-only > .gp-news-card--priority {
    grid-row: 1 !important;
    grid-column: 1 !important;
    align-self: start !important;
    justify-self: stretch !important;
    margin-top: 0 !important;
  }
}
