/* ─────────────────────────────────────────────────────────────────────────────
   css/lazy/companion.css — Today Companion (modules/behavioral/todayCompanion.js)
   Theme-matched to the live dashboard: var(--bg-card)/--border-subtle/--text-
   primary/--muted from style.css :root, var(--gold, #E8A33D) convention used
   across deskShell.css/upgrade.css/onAir.css. DM Sans + JetBrains Mono, same
   fonts as the rest of the app. Not the design-testing mock's own palette.
   ───────────────────────────────────────────────────────────────────────────── */

#dxCompanion { margin: 0 12px 16px; }
#dxCompanion[hidden] { display: none; }
@media (max-width: 768px) {
  #dxCompanion { margin: 0 0 12px 0 !important; width: 100% !important; }
}

.dxc-card {
  background: var(--bg-card, #0f172a);
  border: 1px solid var(--border-subtle, #1e293b);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ── Hero ── */
.dxc-hero-eyebrow {
  font-family: 'DM Sans', sans-serif; font-weight: 600;
  font-size: 13px; letter-spacing: .2px; color: var(--muted, #64748b);
  margin-bottom: 10px; display: flex; gap: 6px; flex-wrap: wrap;
}
.dxc-hero-eyebrow b { color: var(--gold, #E8A33D); font-weight: 500; }
.dxc-promise-label {
  font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 2px;
  color: var(--muted, #64748b); text-transform: uppercase; margin-bottom: 4px;
}
.dxc-promise {
  font-family: 'DM Sans', sans-serif; font-weight: 700;
  font-size: 22px; line-height: 1.3; color: var(--text-primary, #f1f5f9);
  margin-bottom: 8px; max-width: 640px;
}
.dxc-promise-more {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  color: var(--muted, #64748b); letter-spacing: .3px; margin: -4px 0 10px;
}
.dxc-sub {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--muted, #64748b); letter-spacing: .2px; margin-bottom: 12px;
}
.dxc-sub b { color: var(--gold, #E8A33D); font-weight: 500; }
.dxc-now {
  padding: 9px 12px; background: rgba(255,255,255,.02);
  border-left: 2px solid var(--gold, #E8A33D); border-radius: 0 5px 5px 0;
  font-size: 13px; color: var(--text-primary, #f1f5f9);
}
.dxc-now b { color: var(--gold, #E8A33D); }

/* ── Pause band — Zen Urge Protocol ── */
.dxc-pause-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.16) 0%, rgba(20, 16, 35, 0.95) 100%);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 18px;
  padding: 16px 18px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px -4px rgba(139, 92, 246, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.dxc-pause-band.dxc-urgent {
  animation: dxcGlow 2.2s ease-in-out infinite;
  border-color: rgba(239, 68, 68, 0.6);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(30, 10, 15, 0.95) 100%);
}
@keyframes dxcGlow { 0%,100%{box-shadow:0 0 0 0 rgba(239,68,68,.25)} 50%{box-shadow:0 0 0 8px rgba(239,68,68,0)} }
.dxc-pause-t { font-size: 15px; color: #fff; font-weight: 700; margin-bottom: 3px; }
.dxc-pause-x { font-family: 'DM Sans', sans-serif; font-size: 12.5px; color: #c4b5fd; }
.dxc-pause-cta {
  background: linear-gradient(135deg, #a78bfa, #8b5cf6);
  border: none;
  color: #0f0a20;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 12px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.45);
  transition: transform 0.12s ease, filter 0.15s ease;
}
.dxc-pause-cta:hover { filter: brightness(1.08); }
.dxc-pause-cta:active { transform: scale(0.96); }

/* ── Pause overlay ── */
.dxc-overlay {
  position: fixed; inset: 0; background: rgba(2,8,23,.94); z-index: 400;
  display: none; align-items: center; justify-content: center; padding: 24px;
  backdrop-filter: blur(10px);
}
.dxc-overlay.on { display: flex; }
.dxc-overlay-in { text-align: center; max-width: 420px; width: 100%; }
.dxc-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold, #E8A33D);
  margin: 0 auto 18px; box-shadow: 0 0 22px var(--gold, #E8A33D);
  animation: dxcBreathe 3.2s ease-in-out infinite;
}
@keyframes dxcBreathe { 0%,100%{opacity:.35;transform:scale(1)} 50%{opacity:1;transform:scale(1.3)} }
.dxc-overlay-l { font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .2px; color: var(--muted, #64748b); margin-bottom: 16px; }
.dxc-overlay-rule { font-size: 17px; color: var(--text-primary, #f1f5f9); line-height: 1.5; margin-bottom: 22px; }
.dxc-overlay-actions { display: flex; flex-direction: column; gap: 9px; }
.dxc-overlay-btn {
  background: var(--bg-inset, #0a0f1e); border: 1px solid var(--border-subtle, #1e293b);
  color: var(--text-primary, #f1f5f9); font-family: 'DM Sans', sans-serif; font-size: 14px;
  padding: 13px; border-radius: 8px; cursor: pointer;
}
.dxc-overlay-btn:hover { border-color: var(--muted, #64748b); }
.dxc-overlay-btn--wait { border-color: rgba(34,197,94,.4); }
.dxc-overlay-btn-s { display: block; font-family: 'DM Sans', sans-serif; font-size: 13px; color: var(--muted, #64748b); margin-top: 3px; }
.dxc-timer { font-family: 'JetBrains Mono', monospace; font-size: 40px; font-weight: 700; color: var(--gold, #E8A33D); margin: 4px 0 12px; }
.dxc-close-quiet {
  background: none; border: none; color: var(--muted, #64748b); font-family: 'DM Sans', sans-serif;
  font-size: 13px; text-decoration: underline; cursor: pointer; margin-top: 16px;
}

/* ── Deck ── */
.dxc-deck-t { font-family: 'DM Sans', sans-serif; font-size: 14.5px; color: var(--text-primary, #f1f5f9); font-weight: 600; }
.dxc-deck-sub { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--muted, #64748b); margin-top: 2px; margin-bottom: 12px; }
.dxc-meter {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
  padding: 10px 12px; background: var(--bg-inset, #0a0f1e); border-radius: 6px; border: 1px solid var(--border-subtle, #1e293b);
}
.dxc-meter-n { font-family: 'JetBrains Mono', monospace; font-size: 22px; font-weight: 700; color: var(--green, #22c55e); }
.dxc-meter-n.dxc-at { color: var(--amber, #f59e0b); }
.dxc-meter-n.dxc-over { color: var(--red, #ef4444); }
.dxc-meter-l { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 1.2px; color: var(--muted, #64748b); text-transform: uppercase; }
.dxc-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 8px; }
@media (max-width: 480px) { .dxc-btns { grid-template-columns: 1fr; } }
.dxc-btn {
  background: var(--bg-inset, #0a0f1e); border: 1px solid var(--border-subtle, #1e293b); border-radius: 7px;
  padding: 12px 13px; cursor: pointer; text-align: left;
}
.dxc-btn:hover { border-color: var(--muted, #64748b); }
.dxc-btn:disabled { opacity: .3; cursor: not-allowed; }
.dxc-btn-t { display: block; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .8px; color: var(--text-primary, #f1f5f9); text-transform: uppercase; font-weight: 600; }
.dxc-btn-s { display: block; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted, #64748b); margin-top: 3px; }
.dxc-btn--red .dxc-btn-t { color: #f38b8b; }
.dxc-btn--amber .dxc-btn-t { color: var(--amber, #f59e0b); }
.dxc-btn--green .dxc-btn-t { color: var(--green, #22c55e); }
.dxc-btn--armed { border-color: var(--amber, #f59e0b) !important; background: rgba(245,158,11,.1) !important; }
.dxc-cdown {
  margin-bottom: 12px; padding: 10px 12px; background: rgba(232,163,61,.06);
  border: 1px solid rgba(232,163,61,.25); border-radius: 6px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted, #64748b); line-height: 1.5;
}
.dxc-cdown b { color: var(--gold, #E8A33D); }

/* ── Restraint reel ── */
.dxc-restraint { background: linear-gradient(160deg, rgba(34,197,94,.05), var(--bg-card, #0f172a)); border-color: rgba(34,197,94,.2); }
.dxc-restraint-t { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 1.5px; color: var(--green, #22c55e); text-transform: uppercase; margin-bottom: 10px; }
.dxc-restraint-row { display: flex; gap: 8px; font-size: 13px; color: var(--text-primary, #f1f5f9); line-height: 1.5; margin-bottom: 7px; }
.dxc-restraint-row:last-child { margin-bottom: 0; }
.dxc-restraint-check { color: var(--green, #22c55e); flex-shrink: 0; }
.dxc-restraint-empty { font-size: 12px; color: var(--muted, #64748b); }

.dxc-toast {
  position: fixed;
  bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: linear-gradient(165deg, rgba(16, 26, 44, 0.96) 0%, rgba(9, 15, 26, 0.98) 100%);
  border: 1px solid rgba(232, 163, 61, 0.45);
  border-radius: 14px;
  padding: 12px 18px;
  z-index: 500;
  transition: transform .3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity .25s ease;
  max-width: 92vw;
  width: max-content;
  min-width: 280px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 16px rgba(232, 163, 61, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  opacity: 0;
  pointer-events: none;
}
.dxc-toast.on {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.dxc-toast-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dxc-toast-l {
  font-family: 'Space Grotesk', 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .3px;
  color: var(--gold, #E8A33D);
}
.dxc-toast-t {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--text-primary, #f1f5f9);
}
.dxc-toast-undo {
  background: rgba(232, 163, 61, 0.15);
  border: 1px solid rgba(232, 163, 61, 0.4);
  color: #FFD97A;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.dxc-toast-undo:hover {
  background: rgba(232, 163, 61, 0.3);
  color: #ffffff;
  border-color: #E8A33D;
  box-shadow: 0 0 10px rgba(232, 163, 61, 0.4);
}
.dxc-toast-undo:active {
  transform: scale(0.95);
}

body.light-theme .dxc-card { background: var(--bg-card); border-color: var(--border); }
body.light-theme .dxc-overlay { background: rgba(245,240,235,.94); }

/* Build 2 §9 — prefers-reduced-motion honoured throughout. dxcBreathe (the
   tilt-pacing dot) and dxcGlow (urgent-pause pulse) keep their base
   keyframes untouched per spec — this only stops the infinite loops from
   running for users who've asked for reduced motion; the toast slide and
   button tap feedback fall back to an instant, non-animated state change. */
@media (prefers-reduced-motion: reduce) {
  .dxc-dot, .dxc-pause-band.dxc-urgent, .dx-act, .dxc-toast {
    animation: none !important;
    transition: none !important;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   Build 2 — box vocabulary (spec §3/§4). Four classes, used across every
   cycleStage phase this module renders. Type scale: promise 30/34px·700,
   big number 40px mono·700, section heading 17px·600 sentence-case, body
   15px, caption/meta 13px, legal 11px. JetBrains Mono for numbers/timestamps
   ONLY — never a label, never uppercase-tracked.
   ───────────────────────────────────────────────────────────────────────────── */

/* .dx-hero-rule-card — Hero commitment shield banner */
.dx-hero-rule-card {
  background: linear-gradient(135deg, rgba(232, 163, 61, 0.14) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(232, 163, 61, 0.38);
  border-radius: 18px;
  padding: 18px 20px;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px -6px rgba(232, 163, 61, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.dx-hero-rule-card .dx-stage-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold, #E8A33D);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.dx-hero-rule-card .dx-sticky-promise {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  margin-bottom: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* .dx-stage — no border, large type, 32px breathing room. Max one per screen. */
.dx-stage { margin: 0 0 32px; }
.dx-stage-cap { font-family: 'DM Sans', sans-serif; font-size: 13px; color: var(--muted, #64748b); margin-bottom: 14px; }
.dx-stage-lead { font-family: 'DM Sans', sans-serif; font-size: 15px; color: var(--muted, #64748b); margin-bottom: 6px; }
.dx-stage-promise {
  font-family: 'DM Sans', sans-serif; font-weight: 700; color: var(--gold, #E8A33D);
  font-size: 30px; line-height: 1.25; margin-bottom: 10px; max-width: 640px;
}
@media (min-width: 769px) { .dx-stage-promise { font-size: 34px; } }
.dx-stage-limit { font-family: 'DM Sans', sans-serif; font-size: 15px; color: var(--text-primary, #f1f5f9); margin-bottom: 4px; }
.dx-stage-meta { font-family: 'DM Sans', sans-serif; font-size: 13px; color: var(--muted, #64748b); margin-top: 14px; }
.dx-stage-heading { font-family: 'DM Sans', sans-serif; font-size: 17px; font-weight: 600; color: var(--text-primary, #f1f5f9); margin-bottom: 14px; }
.dx-stage-big { font-family: 'Space Grotesk', 'JetBrains Mono', monospace; font-size: 42px; font-weight: 700; color: var(--text-primary, #f1f5f9); line-height: 1; }
.dx-stage-big.dxc-at   { color: var(--amber, #f59e0b); }
.dx-stage-big.dxc-over { color: var(--red, #ef4444); }
.dx-stage-big-unit { font-family: 'DM Sans', sans-serif; font-size: 13px; color: var(--muted, #64748b); margin-top: 4px; }

/* Trades HUD meter card */
.dx-trades-hud {
  background: linear-gradient(180deg, rgba(14, 26, 44, 0.9), rgba(9, 15, 26, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 20px 18px 16px;
  margin-bottom: 20px;
  text-align: center;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.dx-trades-hud-max {
  font-size: 18px;
  color: var(--muted, #64748b);
  font-weight: 500;
}
.dx-trades-hud-status {
  font-family: 'Space Grotesk', 'DM Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #2ee6a0;
  margin-top: 12px;
  text-transform: uppercase;
}
.dx-trades-hud-status.at {
  color: #F59E0B;
}
.dx-trades-hud-status.over {
  color: #EF4444;
}

/* Neon Glow Percentage Progress Bar */
.dx-neon-progress-card {
  margin: 14px 0 6px;
  width: 100%;
}
.dx-neon-progress-track {
  height: 12px;
  border-radius: 999px;
  background: rgba(6, 11, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.7);
  position: relative;
  overflow: hidden;
}
.dx-neon-progress-bar {
  height: 100%;
  border-radius: 999px;
  position: relative;
  transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.dx-neon-progress-bar.clean {
  background: linear-gradient(90deg, #2ee6a0, #00FF88);
  box-shadow: 0 0 16px rgba(46, 230, 160, 0.7), 0 0 30px rgba(46, 230, 160, 0.35);
}
.dx-neon-progress-bar.at {
  background: linear-gradient(90deg, #F59E0B, #FBBF24);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.75), 0 0 30px rgba(245, 158, 11, 0.4);
}
.dx-neon-progress-bar.over {
  background: linear-gradient(90deg, #EF4444, #F87171);
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.85), 0 0 30px rgba(239, 68, 68, 0.45);
}
.dx-neon-progress-shimmer {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.45) 50%, transparent 100%);
  animation: dxNeonShimmer 2.2s infinite;
}
@keyframes dxNeonShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.dx-neon-progress-head {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px #ffffff;
}
.dx-neon-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 9px;
}
.dx-neon-pct-chip {
  font-family: 'Space Grotesk', var(--font-mono), monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 6px;
}
.dx-neon-pct-chip.clean {
  background: rgba(46, 230, 160, 0.15);
  color: #2ee6a0;
  border: 1px solid rgba(46, 230, 160, 0.3);
}
.dx-neon-pct-chip.at {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.dx-neon-pct-chip.over {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.dx-neon-trades-count {
  font-family: 'DM Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  color: #8595ad;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* .dx-act — a tappable slab. Min 56px (64px for check-in). Carries its own colour. */
.dx-act {
  display: block; width: 100%; min-height: 56px; border-radius: 16px;
  font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 600;
  padding: 14px 18px; cursor: pointer; text-align: center;
  border: 1px solid var(--border-subtle, #1e293b);
  background: var(--bg-inset, #0a0f1e); color: var(--text-primary, #f1f5f9);
  transition: transform 120ms cubic-bezier(.2,.8,.2,1), filter 120ms ease, background 120ms ease, border-color 150ms ease, box-shadow 150ms ease;
  margin-bottom: 10px;
  position: relative;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.dx-act:last-child { margin-bottom: 0; }
.dx-act:active { transform: scale(.96); filter: brightness(1.15); }
.dx-act--big { min-height: 64px; font-size: 16px; }
.dx-act--gold { background: var(--gold, #E8A33D); border-color: var(--gold, #E8A33D); color: #1a1305; box-shadow: 0 4px 16px rgba(232, 163, 61, 0.35); }
.dx-act--gold:hover { filter: brightness(1.06); }
.dx-act--green {
  background: linear-gradient(145deg, rgba(46, 230, 160, 0.22) 0%, rgba(10, 36, 28, 0.95) 100%) !important;
  border: 1.5px solid #2ee6a0 !important;
  color: #fff !important;
  box-shadow: 0 6px 24px -2px rgba(46, 230, 160, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}
.dx-act--green:hover { background: rgba(34,197,94,.18); }
.dx-act--green .dx-act-sub { color: #a7f3d0 !important; font-weight: 600; }
.dx-act--red {
  background: linear-gradient(145deg, rgba(239, 68, 68, 0.14) 0%, rgba(32, 14, 20, 0.95) 100%);
  border: 1.5px solid rgba(239, 68, 68, 0.38);
  color: #fff;
}
.dx-act--red:hover { background: rgba(239,68,68,.08); }
.dx-act--red .dx-act-sub { color: #fca5a5; }
.dx-act--amber {
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.14) 0%, rgba(32, 22, 10, 0.95) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.38);
  color: #fff;
}
.dx-act--amber .dx-act-sub { color: #fde68a; }
.dx-act--neutral,
.dx-act:not([class*="dx-act--"]) {
  background: linear-gradient(145deg, rgba(91, 155, 213, 0.14) 0%, rgba(14, 26, 44, 0.95) 100%);
  border: 1.5px solid rgba(91, 155, 213, 0.35);
  color: #fff;
}
.dx-act--outline { background: transparent; }
.dx-act--sm { min-height: 44px; font-size: 15px; padding: 10px 16px; }
.dx-act:disabled { opacity: .4; cursor: not-allowed; }
.dx-act-sub { display: block; font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 500; opacity: .85; margin-top: 3px; }

/* Armed Confirmation Button State & Cooldown Animations */
.dx-act--armed {
  position: relative;
  overflow: hidden !important;
  transform: scale(1.02) !important;
  animation: dxArmedPulse 1.2s ease-in-out infinite alternate !important;
}
@keyframes dxArmedPulse {
  0% { box-shadow: 0 0 12px rgba(255, 255, 255, 0.2); }
  100% { box-shadow: 0 0 24px rgba(255, 255, 255, 0.5); }
}

.dx-act--armed-took {
  border-color: #5B9BD5 !important;
  box-shadow: 0 0 24px rgba(91, 155, 213, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  background: linear-gradient(145deg, rgba(91, 155, 213, 0.38), rgba(14, 26, 44, 0.98)) !important;
}
.dx-act--armed-walk {
  border-color: #2ee6a0 !important;
  box-shadow: 0 0 28px rgba(46, 230, 160, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  background: linear-gradient(145deg, rgba(46, 230, 160, 0.38), rgba(10, 36, 28, 0.98)) !important;
}
.dx-act--armed-sl {
  border-color: #EF4444 !important;
  box-shadow: 0 0 28px rgba(239, 68, 68, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  background: linear-gradient(145deg, rgba(239, 68, 68, 0.38), rgba(36, 12, 20, 0.98)) !important;
}
.dx-act--armed-overtrade {
  border-color: #F59E0B !important;
  box-shadow: 0 0 28px rgba(245, 158, 11, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.38), rgba(36, 24, 10, 0.98)) !important;
}
.dx-act--armed-cap {
  border-color: #EF4444 !important;
  box-shadow: 0 0 28px rgba(239, 68, 68, 0.7) !important;
  background: linear-gradient(145deg, rgba(239, 68, 68, 0.35), rgba(36, 12, 20, 0.98)) !important;
}

/* Shrinking countdown bar along the bottom of the button */
.dx-act-countdown-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, #FFFFFF, rgba(255, 255, 255, 0.7));
  box-shadow: 0 0 8px #FFFFFF;
  animation: dxCountdownShrink 3.8s linear forwards;
}
@keyframes dxCountdownShrink {
  0% { width: 100%; }
  100% { width: 0%; }
}

.dx-act-confirm-timer {
  color: #fff !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.dxc-arm-cd {
  color: #FFD97A !important;
  font-family: 'Space Grotesk', var(--font-mono), monospace !important;
  font-size: 13px !important;
  text-decoration: underline;
}

/* Max loss cutoff */
.dx-act--cap-btn {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.14), rgba(20, 10, 15, 0.85)) !important;
  border: 1.5px solid rgba(239, 68, 68, 0.4) !important;
  color: #fca5a5 !important;
  border-radius: 16px !important;
  min-height: 52px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.15) !important;
}

/* SOS Emergency Walk Away */
.dx-act--sos-btn {
  background: linear-gradient(135deg, rgba(232, 89, 63, 0.24), rgba(30, 10, 15, 0.95)) !important;
  border: 1.5px solid #E8593F !important;
  color: #ff8a9e !important;
  box-shadow: 0 4px 24px -2px rgba(232, 89, 63, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em !important;
  border-radius: 16px !important;
  min-height: 56px !important;
}
.dx-act--sos-btn .dx-act-sub {
  color: #fca5a5 !important;
  font-size: 12px !important;
}

.dx-act-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dx-act-grid .dx-act {
  margin-bottom: 0; min-height: 104px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border-radius: 16px; padding: 14px 10px; font-size: 15px; font-weight: 700;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform .12s cubic-bezier(.2,.8,.2,1), filter .15s ease, box-shadow .15s ease;
}
.dx-act-grid .dx-act:active {
  transform: scale(0.96);
  filter: brightness(1.15);
}
@media (max-width: 480px) {
  .dx-act-grid { gap: 10px; }
  .dx-act-grid .dx-act { min-height: 94px; padding: 12px 8px; font-size: 14.5px; }
  .dx-act-sub { font-size: 11.5px; }
}
@media (max-width: 310px) { .dx-act-grid { grid-template-columns: 1fr; } }

/* Icon chip inside a grid tile */
.dx-act-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; margin-bottom: 2px;
}
.dx-act-icon--neutral { background: rgba(91,155,213,.2); color: #7ec4ff; box-shadow: 0 0 10px rgba(91,155,213,.4); }
.dx-act-icon--green   { background: rgba(46,230,160,.25); color: #2ee6a0; box-shadow: 0 0 12px rgba(46,230,160,.6); }
.dx-act-icon--red     { background: rgba(239,68,68,.2); color: #ff8a9e; box-shadow: 0 0 10px rgba(239,68,68,.4); }
.dx-act-icon--amber   { background: rgba(245,158,11,.2); color: #ffd97a; box-shadow: 0 0 10px rgba(245,158,11,.4); }

/* Rule eyebrow (shield + "Today's rule") */
.dx-stage-eyebrow {
  display: flex; align-items: center; gap: 6px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 1.5px;
  color: var(--muted, #64748b); text-transform: uppercase; margin-bottom: 8px;
}
.dx-stage-eyebrow svg { color: var(--gold, #E8A33D); flex-shrink: 0; }

/* .dx-record — quiet card. Muted, low contrast. Numbers/history live here. */
.dx-record {
  background: var(--bg-inset, #0a0f1e); border: 1px solid var(--border-subtle, #1e293b);
  border-radius: 16px; padding: 20px; margin-bottom: 16px;
}
.dx-record-row { display: flex; align-items: baseline; gap: 22px; flex-wrap: wrap; }
.dx-record-item { display: flex; flex-direction: column; gap: 2px; }
.dx-record-n { font-family: 'JetBrains Mono', monospace; font-size: 24px; font-weight: 700; color: var(--text-primary, #f1f5f9); }
.dx-record-l { font-family: 'DM Sans', sans-serif; font-size: 13px; color: var(--muted, #64748b); }

/* .dxc-decay — "The cost of waiting" (Feature 2, theta literacy), inside the
   existing .dx-record quiet-numbers vocabulary. No new box class. */
.dxc-decay { margin-bottom: 0; }
.dxc-decay-label { font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 1px; color: var(--muted, #64748b); margin-bottom: 8px; }
.dxc-decay-line { font-family: 'DM Sans', sans-serif; font-size: 13px; color: var(--text-primary, #f1f5f9);
  line-height: 1.6; }
.dxc-decay-line + .dxc-decay-line { margin-top: 6px; }
.dxc-decay-num { font-family: 'JetBrains Mono', monospace; white-space: nowrap; }

/* .dx-vault — collapsed row / sheet trigger. Present but silent. */
.dx-vault-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 44px; padding: 10px 14px; border-radius: 10px;
  background: rgba(232,163,61,.06); border: 1px solid rgba(232,163,61,.25);
  font-family: 'DM Sans', sans-serif; font-size: 15px; color: var(--text-primary, #f1f5f9);
  cursor: pointer; margin-top: 16px;
}

.dx-quiet-link {
  display: inline-flex; align-items: center; min-height: 44px; background: none; border: none; padding: 6px 0;
  font-family: 'DM Sans', sans-serif; font-size: 13px; color: var(--muted, #64748b);
  text-decoration: underline; cursor: pointer;
}
.dx-quiet-link:hover { color: var(--text-primary, #f1f5f9); }

/* Sticky promise bar — MARKET_OPEN pins the promise while the user trades. */
.dx-sticky-promise {
  font-family: 'DM Sans', sans-serif; font-size: 20px; font-weight: 700;
  color: var(--gold, #E8A33D); line-height: 1.3; margin-bottom: 20px;
}

/* Late-opener strip (2026-09-23 plan §2.2) — MARKET_OPEN, today's morning
   contract not yet acknowledged (the 14:15 bug fix). Slim and optional:
   logging and Pause both work without tapping Confirm, so this never reads
   like a gate. Wraps at 360px rather than overflowing. */
.dxc-late-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex-wrap: wrap; min-height: 40px; padding: 9px 14px; border-radius: 10px;
  background: rgba(232,163,61,.08); border: 1px solid rgba(232,163,61,.3);
  font-family: 'DM Sans', sans-serif; font-size: 13px; color: var(--text-primary, #f1f5f9);
  margin-bottom: 18px;
}
.dxc-late-strip .dx-quiet-link {
  padding: 2px 0; color: var(--gold, #E8A33D); font-weight: 600; text-decoration: none;
}
.dxc-late-strip .dx-quiet-link:hover { color: var(--text-primary, #f1f5f9); }

body.light-theme .dx-record { background: var(--bg-inset); border-color: var(--border); }
body.light-theme .dx-act { background: var(--bg-inset); border-color: var(--border); color: var(--text-primary); }
body.light-theme .dx-act--gold { background: var(--gold, #E8A33D); color: #1a1305; }

/* ── Dashboard Controls (now rendered inside the Vault sheet, css/lazy/
   vault.css owns the sheet chrome; these classes are the grid content).
   Build 2 §3.2/§6: mono is for numbers/timestamps only, never a label — and
   the 44px/15px floor applies to everything that survives relocation into
   the Vault, not just the primary room. Card padding/labels below keep
   their compact card layout (§3.2 exempts static captions, not tap
   targets); .dxc-ctrl-fix / .dxc-seg button / .dxc-emerg-chip are the
   actual interactive controls and are sized to the floor. ── */
.dxc-controls-grid { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.dxc-ctrl-card { background: rgba(14, 20, 34, 0.75); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 14px; padding: 16px; box-sizing: border-box; }
.dxc-ctrl-l { font-family: 'DM Sans', sans-serif; font-size: 14px; color: #f8fafc; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
.dxc-ctrl-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.dxc-ctrl-row:last-of-type { border-bottom: none; }
.dxc-channel-icon { font-size: 18px; flex-shrink: 0; width: 28px; text-align: center; }
.dxc-channel-info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.dxc-ctrl-n { font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600; color: #f1f5f9; }
.dxc-ctrl-hint { font-family: 'DM Sans', sans-serif; font-size: 12px; color: #94a3b8; }
.dxc-ctrl-s { font-family: 'DM Sans', sans-serif; font-size: 13px; color: var(--muted, #64748b); }
.dxc-ctrl-x { font-family: 'DM Sans', sans-serif; font-size: 13px; color: var(--muted, #94a3b8); line-height: 1.5; margin-top: 4px; }
.dxc-ctrl-footnote { font-family: 'DM Sans', sans-serif; font-size: 12px; color: #64748b; line-height: 1.45; margin-top: 8px; }
.dxc-badge-on { display: inline-flex; align-items: center; gap: 6px; font-family: 'JetBrains Mono', monospace; font-size: 11.5px; font-weight: 700; color: #22c55e; background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.35); padding: 5px 12px; border-radius: 20px; flex-shrink: 0; }
.dxc-badge-off { display: inline-flex; align-items: center; font-family: 'JetBrains Mono', monospace; font-size: 11.5px; color: #64748b; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); padding: 5px 12px; border-radius: 20px; flex-shrink: 0; }
.dxc-btn-action {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600; color: #F5CB6B;
  background: rgba(232, 163, 61, 0.14); border: 1px solid rgba(232, 163, 61, 0.4);
  border-radius: 8px; padding: 7px 14px; cursor: pointer; min-height: 36px;
  transition: background 0.15s ease, transform 0.12s ease; flex-shrink: 0;
}
.dxc-btn-action:hover { background: rgba(232, 163, 61, 0.22); }
.dxc-btn-action:active { transform: scale(0.95); }
.dxc-reach-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.dxc-reach-dot-green { background: var(--green, #22c55e); box-shadow: 0 0 6px rgba(34,197,94,.6); }
.dxc-reach-dot-red { background: var(--red, #ef4444); box-shadow: 0 0 6px rgba(239,68,68,.5); }
.dxc-reach-dot-dim { background: var(--muted, #64748b); }

.dxc-schedule-grid { display: flex; flex-direction: column; gap: 6px; }
.dxc-sched-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 255, 255, 0.04); border-radius: 8px; }
.dxc-sched-time { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; font-weight: 700; color: #E8A33D; background: rgba(232, 163, 61, 0.12); padding: 3px 8px; border-radius: 6px; border: 1px solid rgba(232, 163, 61, 0.25); flex-shrink: 0; }
.dxc-sched-label { font-family: 'DM Sans', sans-serif; font-size: 13px; color: #e2e8f0; }

.dxc-mentor-status-row { display: flex; align-items: center; gap: 12px; }

.dxc-seg { display: flex; gap: 4px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.06); padding: 3px; border-radius: 10px; }
.dxc-seg button { flex: 1; min-height: 42px; background: none; border: none; color: #94a3b8; font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600; padding: 8px 4px; border-radius: 8px; cursor: pointer; transition: all 0.15s ease; }
.dxc-seg button.on { background: rgba(232, 163, 61, 0.22); color: #F5CB6B; box-shadow: 0 1px 6px rgba(0, 0, 0, 0.4); }

.dxc-emerg { display: flex; flex-direction: column; gap: 8px; }
.dxc-emerg-chip { display: flex; align-items: center; gap: 10px; text-align: left; min-height: 46px; background: rgba(0, 0, 0, 0.2); border: 1px solid rgba(255, 255, 255, 0.08); color: #94a3b8; font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500; padding: 10px 14px; border-radius: 10px; cursor: pointer; transition: all 0.15s ease; }
.dxc-emerg-chip:hover { border-color: rgba(255, 255, 255, 0.2); color: #f1f5f9; }
.dxc-emerg-chip.on { background: rgba(232, 163, 61, 0.1); border-color: rgba(232, 163, 61, 0.5); color: #F5CB6B; }
.dxc-emerg-radio { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #64748b; flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: all 0.15s ease; }
.dxc-emerg-chip.on .dxc-emerg-radio { border-color: #E8A33D; background: #E8A33D; box-shadow: inset 0 0 0 3px #0f172a; }
.dxc-emerg-text { flex: 1; line-height: 1.35; }

/* ── Discipline v2 Round R2 Anatomy ── */
.dx-stage {
  background: #0F1624;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  padding: 18px 16px;
  margin: 0 0 12px;
  text-align: left;
  box-sizing: border-box;
}

.dx-stage-eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8290A6;
  font-weight: 600;
  margin-bottom: 0;
}

.dx-stage-heading {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #EEF2F7;
  margin-top: 8px;
  margin-bottom: 0;
}
.dx-stage-heading--h2 {
  font-size: 20px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.dx-stage-lead {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 15px;
  color: #A7B1C2;
  line-height: 1.45;
  margin-top: 4px;
  margin-bottom: 0;
}

.dx-stage-meta {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 13px;
  color: #A7B1C2;
  margin-top: 8px;
}

.dx-hero-stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 8px 0 0;
  text-align: left;
}
.dx-hero-stat .n {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #EEF2F7;
  font-variant-numeric: tabular-nums;
}
.dx-hero-stat .of {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 22px;
  color: #8290A6;
  font-weight: 600;
}
.dx-hero-stat.dxc-at .n {
  color: var(--amber, #f59e0b);
}
.dx-hero-stat.dxc-over .n {
  color: var(--neg, #E5534B);
}

.dx-pre-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 14px;
}
.dx-pre-stat .dx-pre-stat-v {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #EEF2F7;
  font-variant-numeric: tabular-nums;
}
.dx-pre-stat .dx-pre-stat-l {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 12px;
  color: #8290A6;
  margin-top: 2px;
}
.dx-pre-stat + .dx-pre-stat {
  padding-left: 16px;
  border-left: 1px solid rgba(148, 163, 184, 0.16);
}

.dx-seg-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(24px, 1fr));
  gap: 6px;
  width: 100%;
  margin: 14px 0 0;
}
.dx-seg {
  height: 6px;
  border-radius: 3px;
  background: #141D2E;
  transition: background 0.2s ease;
}
.dx-seg--filled {
  background: var(--pos, #3FB984);
}
.dx-seg--at {
  background: var(--amber, #f59e0b);
}
.dx-seg--over {
  background: var(--neg, #E5534B);
}

.dx-stage-rule {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 14px;
  color: #A7B1C2;
  line-height: 1.4;
  padding-top: 12px;
  margin-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  text-align: left;
}
.dx-stage-rule b {
  color: #EEF2F7;
  font-weight: 600;
}
.dx-stage-rule svg {
  flex: 0 0 auto;
  margin-top: 1px;
}

.dx-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.dx-act--compact {
  height: 54px !important;
  min-height: 54px !important;
  padding: 0 12px !important;
  border-radius: 12px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  font-family: 'DM Sans', system-ui, sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  border: 1px solid rgba(148, 163, 184, 0.28) !important;
  background: transparent !important;
  color: #EEF2F7 !important;
  box-shadow: none !important;
  margin-bottom: 0 !important;
}
.dx-act--compact.dx-act--armed {
  flex-direction: column !important;
  font-size: 11px !important;
  gap: 2px !important;
  padding: 4px 6px !important;
}

.dx-ans {
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #141D2E;
  color: #EEF2F7;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.dx-ans:hover {
  background: rgba(20, 29, 46, 0.9);
  border-color: rgba(148, 163, 184, 0.4);
}
.dx-ans-ic {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  flex-shrink: 0;
}
.dx-ans--kept .dx-ans-ic {
  background: rgba(63, 185, 132, 0.15);
  color: #3FB984;
}
.dx-ans--broke .dx-ans-ic {
  background: rgba(229, 83, 75, 0.15);
  color: #E5534B;
}
.dx-ans--notrade .dx-ans-ic {
  background: rgba(148, 163, 184, 0.15);
  color: #A7B1C2;
}

.dx-ans-note {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 12px;
  color: #8290A6;
  text-align: center;
  margin-top: 4px;
}

.dx-text-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: 100%;
  text-align: center;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 14px;
  color: #A7B1C2;
  text-decoration: underline;
  padding: 6px 0;
  margin-top: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.dx-tg-banner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(56, 139, 253, 0.08);
  border: 1px solid rgba(56, 139, 253, 0.28);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 14px;
  color: #A7B1C2;
  line-height: 1.4;
  margin-bottom: 12px;
  text-align: left;
}
.dx-tg-banner b {
  color: #EEF2F7;
  font-weight: 600;
}
.dx-tg-banner .dx-tg-tl {
  margin-left: auto;
  text-align: right;
  font-size: 12px;
  color: #8290A6;
  white-space: nowrap;
}
.dx-tg-banner .dx-tg-tl b {
  display: block;
  color: #EEF2F7;
  font-size: 14px;
}

.dx-stage-stats {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary, #f1f5f9);
  margin: 8px 0;
}
.dx-stat-sep {
  color: var(--muted, #64748b);
}
.dx-stage-factual {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #A7B1C2;
  margin: 6px 0;
}

/* Mentor card (text line with 3px gold left border) */
.dx-mentor-card {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--bg-card, #131722);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-left: 3px solid var(--gold, #E8A33D);
  border-radius: 8px;
  text-align: left;
}
.dx-mentor-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gold, #E8A33D);
  margin-bottom: 6px;
}
.dx-mentor-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-primary, #f1f5f9);
  margin-bottom: 8px;
}
.dx-mentor-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted, #64748b);
}

/* Telegram status line */
.dx-reach-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--muted, #94a3b8);
}
.dx-reach-text b {
  color: var(--text-primary, #f1f5f9);
  font-weight: 600;
}
.dx-reach-timer {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--gold, #E8A33D);
  white-space: nowrap;
}
.dx-reach-timer b {
  color: var(--text-primary, #f1f5f9);
}
.dx-reach-timer.dx-reach-closed {
  color: var(--muted, #64748b);
}

/* Today's thread card */
.dx-thread-card {
  margin: 16px 0;
  padding: 14px 16px;
  background: var(--bg-card, #131722);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: 8px;
  text-align: left;
}
.dx-thread-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted, #64748b);
  margin-bottom: 10px;
}
.dx-thread-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dx-thread-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.dx-thread-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted, #64748b);
  width: 44px;
  flex-shrink: 0;
}
.dx-thread-label {
  flex: 1;
  color: var(--text-primary, #f1f5f9);
}
.dx-thread-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted, #94a3b8);
}
.dx-thread-chip--telegram {
  background: rgba(36, 161, 222, 0.16);
  color: #24A1DE;
}
.dx-thread-chip--app {
  background: rgba(232, 163, 61, 0.16);
  color: var(--gold, #E8A33D);
}

.dx-quiet-line {
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px;
  color: var(--muted, #64748b);
  font-style: italic;
  text-align: center;
}

body.light-theme .dx-hero-stat { color: #1a1612; }
body.light-theme .dx-mentor-card { background: #ede8e3; border-color: #c8c0b8; }
body.light-theme .dx-mentor-text { color: #1a1612; }
body.light-theme .dx-thread-card { background: #ede8e3; border-color: #c8c0b8; }
body.light-theme .dx-thread-label { color: #1a1612; }
body.light-theme .dx-reach-line { background: rgba(0, 0, 0, 0.03); border-color: #c8c0b8; }


/* First-run Telegram card (NO_CYCLE): one line of why, one button, a quiet skip. */
.dx-tgcard {
  margin: 0 0 20px; padding: 14px 16px; border-radius: 12px;
  background: rgba(232, 163, 61, 0.06); border: 1px solid rgba(232, 163, 61, 0.25);
}
.dx-tgcard-text { font-family: 'DM Sans', sans-serif; font-size: 14px; line-height: 1.45; color: var(--text-primary, #f1f5f9); margin-bottom: 12px; }
.dx-tgcard .dx-act { width: 100%; margin-bottom: 4px; }
.dx-tgcard .dx-quiet-link { display: block; margin: 0 auto; }
body.light-theme .dx-tgcard { background: rgba(232, 163, 61, 0.10); border-color: rgba(180, 120, 30, 0.35); }
body.light-theme .dx-tgcard-text { color: #1f2937; }

/* Touch: >=44px hit area for the action button (Phase 1). */
@media (pointer: coarse), (max-width: 768px) { .dxc-btn-action { min-height: 44px; } }

/* ─────────────────────────────────────────────────────────────────────────────
   Phase 2 — one loud element per clock stage (todayCompanion.js, .dxt-*).
   The plan sentence / the trigger moment / the close-the-day line is the one
   big thing; everything else is a chip, a pip row or a quiet text button.
   ───────────────────────────────────────────────────────────────────────────── */
:is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-hero { margin: 2px 0 18px; text-align: left; }
:is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-hero--act { margin: 20px 0 12px; }
:is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-hero--next { margin: 6px 0 14px; padding: 14px 16px; border: 1px solid var(--dxs-line, rgba(196,214,200,.1)); border-radius: var(--dxs-radius, 14px); background: var(--dxs-surface, #101413); }
:is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-eyebrow { font-size: 13px; font-weight: 600; color: var(--dxs-text-3, #94a197); line-height: 1.3; display: flex; align-items: center; gap: 8px; }
:is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-plan { margin: 10px 0 0; font-size: 27px; line-height: 1.2; font-weight: 700; letter-spacing: -.015em; color: var(--dxs-text-1, #e9ebee); text-wrap: balance; }
:is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-plan--sm { font-size: 17px; line-height: 1.3; margin-top: 8px; font-weight: 600; }
:is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-sub { margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--dxs-text-2, #c8cdc9); }
:is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-sub b { color: var(--dxs-text-1, #e9ebee); font-weight: 700; }
:is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-sub--c { text-align: center; margin: 8px 0 0; font-size: 13px; color: var(--dxs-text-3, #94a197); }
@media (min-width: 769px) { :is(#dxCompanion, #dxDisciplineRoom) .dxt-plan { font-size: 32px; } }

:is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
:is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--dxs-line-strong, rgba(196,214,200,.2)); background: var(--dxs-surface-2, #161b18); font-size: 13px; color: var(--dxs-text-2, #c8cdc9); white-space: nowrap; }
:is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-chip b { font-size: 15px; font-weight: 700; color: var(--dxs-text-1, #e9ebee); }
:is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-edit { background: none; border: 0; padding: 8px 12px; min-height: 44px; min-width: 44px; font-size: 13px; font-weight: 600; color: var(--dxs-accent-text, #ebc58c); cursor: pointer; }

:is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 20px; margin-top: 6px; }
:is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-textbtn { background: none; border: 0; min-height: 44px; padding: 10px 6px; font-size: 14px; font-weight: 500; color: var(--dxs-text-3, #94a197); cursor: pointer; text-decoration: underline; text-decoration-color: rgba(148,161,151,.4); text-underline-offset: 4px; }
:is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-textbtn:hover { color: var(--dxs-text-1, #e9ebee); }
:is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-textbtn--armed { color: var(--dxs-amber, #f5b25a); text-decoration: none; }

:is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-inline-err { margin: 0 0 10px; padding: 11px 14px; border-radius: 12px; border: 1px solid rgba(245,178,90,.4); background: rgba(245,178,90,.08); font-size: 13.5px; line-height: 1.4; color: var(--dxs-text-1, #e9ebee); }
:is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-tick { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--dxs-accent, #ebc58c); color: var(--dxs-on-accent, #1e1507); font-size: 11px; font-weight: 800; flex: none; }

/* trades used: ●●○ */
:is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-meter { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: 4px; border-radius: var(--dxs-radius, 14px); border: 1px solid var(--dxs-line, rgba(196,214,200,.1)); background: var(--dxs-surface, #101413); font-size: 14px; color: var(--dxs-text-2, #c8cdc9); }
:is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-meter-t b { color: var(--dxs-text-1, #e9ebee); font-weight: 700; }
:is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-meter-r { margin-left: auto; font-size: 13px; color: var(--dxs-text-3, #94a197); }
:is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-meter--at { border-color: rgba(245,178,90,.4); }
:is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-pips { display: inline-flex; gap: 7px; }
:is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-pip { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--dxs-line-strong, rgba(196,214,200,.3)); box-sizing: border-box; transition: background .25s, border-color .25s; }
:is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-pip--on { background: var(--dxs-accent, #ebc58c); border-color: var(--dxs-accent, #ebc58c); }
:is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-pip--at { background: var(--dxs-amber, #f5b25a); border-color: var(--dxs-amber, #f5b25a); }
:is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-pip--over { background: none; border-color: var(--dxs-neg, #ff8a7e); }

/* the trader's own trigger moment */
:is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-hero--act .dxt-eyebrow { margin-bottom: 10px; }
:is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-trigger { min-height: 92px; padding: 16px 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
:is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-trigger-t { font-size: 20px; line-height: 1.2; font-weight: 800; text-wrap: balance; }
:is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-took { width: 100%; min-height: 52px; margin-top: 0; }

/* POST_CLOSE: gentle "still Kept?" check */
:is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-ask { padding: 16px; border-radius: var(--dxs-radius, 14px); border: 1px solid rgba(235,197,140,.35); background: var(--dxs-surface, #101413); }
:is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-ask-q { font-size: 17px; font-weight: 700; color: var(--dxs-text-1, #e9ebee); line-height: 1.3; }
:is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-ask-b { display: flex; gap: 10px; margin-top: 14px; }
:is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-ask-b .dx-act { flex: 1; margin: 0; }

/* DAY_CLOSED: tomorrow locked */
:is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-locked { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin: 6px 0 10px; border-radius: var(--dxs-radius, 14px); border: 1px solid rgba(235,197,140,.3); background: var(--dxs-surface, #101413); }
:is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-locked-t { display: flex; flex-direction: column; gap: 2px; }
:is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-locked-t b { font-size: 15px; color: var(--dxs-text-1, #e9ebee); }
:is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-locked-t span { font-size: 13px; color: var(--dxs-text-3, #94a197); }

/* COOLDOWN: one-line note */
:is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-note { display: block; margin: 4px 0 14px; }
:is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-note > span { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--dxs-text-3, #94a197); }
:is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-note input { width: 100%; box-sizing: border-box; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--dxs-line-strong, rgba(196,214,200,.2)); background: var(--dxs-surface-2, #161b18); color: var(--dxs-text-1, #e9ebee); font-size: 16px; }
:is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-note input:focus { outline: 2px solid rgba(235,197,140,.5); outline-offset: 1px; }

/* "Your first days, read back": a small link, not a card */
:is(#dxDisciplineRoom, #dxmPanel-discipline, #dxmPanel-record) .dx-moment-line { min-height: 44px; margin-top: 4px; padding: 8px 6px; justify-content: center; gap: 8px; border: 0; background: none; font-size: 13px; font-weight: 500; color: var(--dxs-text-3, #94a197); }
:is(#dxDisciplineRoom, #dxmPanel-discipline, #dxmPanel-record) .dx-moment-line .dx-moment-go { font-size: 13px; }

/* Air Mentor after the bell: one compact row */
#dxMentorSummaryCard.dxt-compact .dxmc { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; }
#dxMentorSummaryCard.dxt-compact .dxmc-head { flex: 1 1 auto; min-width: 0; gap: 10px; }
#dxMentorSummaryCard.dxt-compact .dxmc-orb { width: 44px; height: 44px; }
#dxMentorSummaryCard.dxt-compact .dxmc-face .air { --s: 30px; }
#dxMentorSummaryCard.dxt-compact .dxmc-sub,
#dxMentorSummaryCard.dxt-compact .dxmc-quote,
#dxMentorSummaryCard.dxt-compact .dxmc-today,
#dxMentorSummaryCard.dxt-compact .dxmc-meta { display: none; }
#dxMentorSummaryCard.dxt-compact .dxmc-name { font-size: 12px; white-space: nowrap; }
#dxMentorSummaryCard.dxt-compact .dxmc-actions { margin: 0; flex: 0 0 auto; }
#dxMentorSummaryCard.dxt-compact .dxmc-actions .dxmc-btn:not(#dxmcToggle) { display: none; }
#dxMentorSummaryCard.dxt-compact .dxmc-btn { min-height: 44px; padding: 6px 16px; }

/* bottom nav never covers the last action on phones */
@media (max-width: 768px) {
  #dxmPanel-discipline { padding-bottom: calc(var(--dxm-nav-h, 72px) + env(safe-area-inset-bottom, 0px) + 16px); }
}
#dxMentorSummaryCard.dxt-off { display: none !important; }
:is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-evidence { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--dxs-text-2, #c8cdc9); }
:is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-sub { margin-top: 4px; font-size: 13px; color: var(--dxs-text-3, #94a197); }
#dxtRepair, #dxtWeek { margin-top: 14px; }
#dxtRepair[hidden], #dxtWeek[hidden] { display: none; }
:is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-plan.dxt-plan--sm { font-size: 17px; line-height: 1.3; font-weight: 600; }
/* Cooldown: the "can start again" date sits on its own line and never breaks inside the date */
:is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-when { display: block; margin-top: 2px; white-space: nowrap; }

/* DAY_CLOSED: one big number; the other counts sit behind "Details" */
:is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-streak { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 12px; }
:is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-streak span { font-size: 22px; font-weight: 600; color: var(--dxs-text-2, #c8cdc9); letter-spacing: -.01em; }
:is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-bignum { font-size: 68px; line-height: .95; font-weight: 800; letter-spacing: -.04em; color: var(--dxs-amber, #f5b25a); font-variant-numeric: tabular-nums; }
:is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-streak--fresh { font-size: 26px; }
:is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-details { margin-top: 10px; font-size: 13px; color: var(--dxs-text-3, #94a197); }
:is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-details summary { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; cursor: pointer; font-weight: 500; text-decoration: underline; text-decoration-color: rgba(148,161,151,.4); text-underline-offset: 4px; list-style: none; border-radius: 6px; }
:is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-details summary::-webkit-details-marker { display: none; }
:is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-details summary::after { content: "›"; margin-left: 6px; display: inline-block; transition: transform .18s ease; }
:is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-details[open] summary::after { transform: rotate(90deg); }
:is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-details summary:focus-visible { outline: 2px solid rgba(235,197,140,.6); outline-offset: 2px; }
:is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-details ul { margin: 0 0 4px; padding: 0 0 0 18px; display: grid; gap: 6px; line-height: 1.45; }
@media (prefers-reduced-motion: reduce) { :is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-details summary::after { transition: none; } }

/* LOCKED_AHEAD: locked for the next trading day */
:is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-hero--locked .dxt-tick { color: var(--dxs-amber, #f5b25a); font-weight: 800; }
:is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-hero--locked .dxt-sub:not(.dxt-sub--plan) { font-size: 17px; margin-top: 6px; color: var(--dxs-text-2, #c8cdc9); }
:is(#dxCompanion, #dxmPanel-discipline, #dxDisciplineRoom) .dxt-sub--plan { margin-top: 16px; font-size: 15px; line-height: 1.45; }
