/* QuarterEdge — first-visit "How calls work" pop-up.
   Separate include. Do not edit this from the live dashboard until wired on purpose.
   Prefix: qe-hc- to avoid colliding with desk styles. */

.qe-hc-overlay {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px 12px calc(16px + env(safe-area-inset-bottom, 0px));
  background: rgba(3, 3, 6, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
@media (min-width: 720px) {
  .qe-hc-overlay { align-items: center; padding: 32px 24px; }
}

.qe-hc-modal {
  width: min(520px, 100%);
  max-height: min(86dvh, 720px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #F3F1EA;
  font-family: "DM Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  border-radius: 22px;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(16, 16, 24, 0.98), rgba(6, 6, 10, 0.98)) padding-box,
    linear-gradient(135deg, rgba(125, 255, 200, 0.7) 0%, rgba(224, 184, 255, 0.7) 100%) border-box;
  box-shadow:
    0 0 0 1px rgba(125, 255, 200, 0.10),
    0 24px 64px rgba(0, 0, 0, 0.55),
    0 0 48px rgba(224, 184, 255, 0.12);
}
.qe-hc-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 20px 18px 12px;
}
.qe-hc-foot {
  flex: 0 0 auto;
  padding: 10px 18px 18px;
  border-top: 1px solid rgba(224, 184, 255, 0.16);
  background: linear-gradient(180deg, rgba(16, 16, 24, 0.98), rgba(6, 6, 10, 0.98));
}
.qe-hc-hint {
  margin: 0 0 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #ffd56a;
  line-height: 1.35;
}
.qe-hc-hint[hidden] { display: none; }

.qe-hc-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-family: Syne, "DM Sans", sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #E0B8FF;
}
.qe-hc-mark {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 8px;
  font-family: Syne, sans-serif;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: #04140e;
  background: linear-gradient(135deg, #7dffc8 0%, #E0B8FF 100%);
  flex: 0 0 auto;
}
.qe-hc-modal h2 {
  font-family: Syne, "DM Sans", sans-serif;
  font-weight: 800;
  font-size: clamp(1.45rem, 5.5vw, 1.85rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 10px;
  color: #F3F1EA;
}
.qe-hc-modal h2 .glow {
  background: linear-gradient(135deg, #7dffc8 0%, #E0B8FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.qe-hc-lead {
  margin: 0 0 16px;
  color: #A8A69E;
  font-size: 15px;
  line-height: 1.45;
}

.qe-hc-tip {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 213, 106, 0.45);
  background: rgba(255, 213, 106, 0.10);
  color: #F3F1EA;
  font-size: 13px;
  line-height: 1.4;
}
.qe-hc-tip strong { color: #ffd56a; }

.qe-hc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.qe-hc-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: Syne, "DM Sans", sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -0.02em;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
}
.qe-hc-chip .opt {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: #E0B8FF;
  color: #111;
  border-radius: 4px;
  padding: 1px 5px;
}
.qe-hc-chip.buy {
  color: #7dffc8;
  border-color: rgba(125, 255, 200, 0.8);
  background: linear-gradient(180deg, rgba(125, 255, 200, 0.16), rgba(20, 60, 40, 0.28));
  box-shadow: 0 0 10px rgba(125, 255, 200, 0.35);
}
.qe-hc-chip.ready {
  color: #7dffc8;
  border-color: rgba(125, 255, 200, 0.5);
  background: rgba(125, 255, 200, 0.10);
}
.qe-hc-chip.add {
  color: #E0B8FF;
  border-color: rgba(224, 184, 255, 0.8);
  background: linear-gradient(180deg, rgba(224, 184, 255, 0.16), rgba(40, 16, 64, 0.28));
  box-shadow: 0 0 10px rgba(224, 184, 255, 0.3);
}
.qe-hc-chip.sell {
  color: #ffd56a;
  border-color: rgba(255, 210, 63, 0.85);
  background: linear-gradient(180deg, rgba(255, 210, 63, 0.16), rgba(50, 36, 8, 0.28));
}

.qe-hc-how {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(125, 255, 200, 0.22);
  background: rgba(125, 255, 200, 0.06);
  color: #F3F1EA;
  font-size: 14px;
  line-height: 1.45;
}
.qe-hc-how strong { color: #7dffc8; }

.qe-hc-pace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 12px;
}
.qe-hc-stat {
  padding: 12px 12px 10px;
  border-radius: 14px;
  border: 1px solid rgba(224, 184, 255, 0.28);
  background: rgba(224, 184, 255, 0.06);
}
.qe-hc-stat .n {
  margin: 0;
  font-family: Syne, "DM Sans", sans-serif;
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  color: #7dffc8;
  line-height: 1.05;
}
.qe-hc-stat .s {
  margin: 4px 0 0;
  color: #A8A69E;
  font-size: 12px;
  line-height: 1.35;
}
.qe-hc-stat.none .n { color: #E8C872; }  /* statbox1: same amber as STATUS */
.qe-hc-stat.none .n { white-space: nowrap; }  /* statbox1: '⚠ calls' stays on one line */
@media (max-width: 379px) {
  .qe-hc-stat.none .n { font-size: 1.2rem; }
  .qe-hc-stat.none .s { font-size: 11.5px; }
}

.qe-hc-note {
  margin: 0 0 16px;
  color: #A8A69E;
  font-size: 14px;
  line-height: 1.45;
}
.qe-hc-note strong { color: #F3F1EA; }

.qe-hc-actions {
  display: grid;
  gap: 8px;
}
.qe-hc-gotit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: #04140e;
  cursor: pointer;
  background: linear-gradient(135deg, #7dffc8 0%, #b8f5e0 45%, #E0B8FF 100%);
  box-shadow: 0 0 16px rgba(125, 255, 200, 0.3), 0 0 28px rgba(224, 184, 255, 0.18);
}
.qe-hc-gotit:hover { filter: brightness(1.06); }
.qe-hc-gotit:focus-visible {
  outline: 2px solid #E0B8FF;
  outline-offset: 3px;
}
.qe-hc-gotit:disabled {
  cursor: not-allowed;
  opacity: 0.4;
  filter: grayscale(0.2);
  box-shadow: none;
}
.qe-hc-gotit:disabled:hover { filter: grayscale(0.2); }
.qe-hc-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(224, 184, 255, 0.35);
  color: #E0B8FF;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  background: rgba(224, 184, 255, 0.06);
}
.qe-hc-more:hover { color: #f0d8ff; border-color: rgba(224, 184, 255, 0.6); }
.qe-hc-more:focus-visible {
  outline: 2px solid #7dffc8;
  outline-offset: 3px;
}

body.qe-hc-lock { overflow: hidden; }

@media (min-width: 520px) {
  .qe-hc-body { padding: 24px 24px 14px; }
  .qe-hc-foot { padding: 12px 24px 20px; }
  .qe-hc-chip { font-size: 14px; }
  .qe-hc-actions {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .qe-hc-more { width: auto; padding: 12px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .qe-hc-overlay, .qe-hc-modal { transition: none !important; }
}

/* t980u: LEAN / WEAK CALL STATUS stays on one line; JS shrinks the font to fit. Real-call .status-word wrap behavior is unchanged. */
.status-word.lean-status,
.status-word.weak-status,
.action-box.lean-box .status-word,
.action-box.weak-box .status-word {
  white-space: nowrap !important;
  overflow: hidden;
  max-width: 100%;
  min-width: 0;
}
/* Example pills / sheet badges for these call states also stay on one line. */
.qe-st.weak,
.qe-st.settle-won,
.qe-st.settle-lost,
.badge.LEAN,
.lean-status-word,
.call-chip.lean,
.call-chip.weak {
  white-space: nowrap !important;
  max-width: 100%;
  overflow: hidden;
  text-overflow: clip;
}
.qe-st-sub,
.lean-status-sub,
.sheet-card:has(.badge.LEAN) .sheet-sub {
  display: none !important;
}

/* t980u override: yellow STATUS example pills stay on one line (wins over earlier wrap fixes). Leave .qe-st.badge-weak wrapping. */
.qe-lean-ex .qe-st.weak,
.qe-lean-ex .qe-st.settle-won,
.qe-lean-ex .qe-st.settle-lost,
.qe-quick-ex > .qe-st.weak,
.qe-quick-ex > .qe-st.settle-won,
.qe-quick-ex > .qe-st.settle-lost,
.qe-st.weak,
.qe-st.settle-won,
.qe-st.settle-lost,
.badge.LEAN,
.lean-status-word,
.call-chip.lean,
.call-chip.weak {
  white-space: nowrap !important;
  max-width: 100%;
  overflow: hidden;
  text-overflow: clip;
}
