:root {
  --wtc-navy-deep: #0a1921;
  --wtc-navy-panel: #0d1b2a;
  --wtc-navy-steel: #132337;
  --wtc-navy-elevated: #1a2d42;
  --pm-bg: var(--wtc-navy-deep);
  --pm-panel: rgba(13, 27, 42, 0.92);
  --pm-gold: #c5a059;
  --pm-gold-soft: #e8d5a3;
  --pm-text: #f0ebe3;
  --pm-muted: #8a9bb0;
  --pm-green: #5cb88a;
  --pm-red: #c96a6a;
  --pm-line: rgba(197, 160, 89, 0.16);
  --pm-safe-b: env(safe-area-inset-bottom, 0px);
  --pm-safe-t: env(safe-area-inset-top, 0px);
  --pm-vh: 100dvh;
  --pm-vv-top: 0px;
  --font-display: "Cinzel", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html.pm-html,
html.pm-html body.pm-body,
html, body.pm-body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  height: 100%;
  height: 100svh;
  height: var(--pm-vh, 100dvh);
  max-height: 100%;
  max-height: 100svh;
  max-height: var(--pm-vh, 100dvh);
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--pm-bg);
  background-image:
    radial-gradient(ellipse 70% 45% at 50% -8%, rgba(197, 160, 89, 0.07), transparent),
    radial-gradient(ellipse 50% 30% at 80% 100%, rgba(13, 27, 42, 0.9), transparent),
    linear-gradient(180deg, var(--wtc-navy-panel) 0%, var(--pm-bg) 45%);
  color: var(--pm-text);
  font-family: var(--font-body);
}
html.pm-html,
html.pm-html body.pm-body {
  display: block !important;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  min-height: 100svh;
  max-height: none;
}
.pm-shell {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  height: 100dvh;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: var(--pm-safe-t) 0 0;
}
html.pm-keyboard,
html.pm-keyboard body.pm-body {
  top: var(--pm-vv-top, 0px);
  height: var(--pm-vh, 100dvh);
  bottom: auto;
}
html.pm-keyboard .pm-shell {
  height: 100%;
}
html.pm-ios .pm-shell {
  padding-top: max(8px, env(safe-area-inset-top, 0px));
}
html.pm-android,
html.pm-android body.pm-body {
  max-height: none;
  height: 100%;
  min-height: 100%;
}
html.pm-android .pm-shell {
  height: 100%;
  max-height: none;
  padding-bottom: 0;
}
html.pm-android .pm-dock {
  padding-bottom: max(2px, env(safe-area-inset-bottom, 0px));
}
html.pm-android .pm-nested {
  bottom: calc(56px + env(safe-area-inset-bottom, 0px));
}
html.pm-ios .pm-top {
  padding-top: 12px;
}
body.pm-social-full .pm-messenger-tabs {
  display: none;
}
.pm-social-full-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px 0;
}
.pm-social-full-bar input[type="search"] {
  flex: 1;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid var(--pm-line);
  background: var(--wtc-navy-steel);
  color: inherit;
  font: inherit;
  padding: 0 12px;
}
html.pm-standalone #pmInstallBanner,
html.pm-standalone #pmIosInstall {
  display: none !important;
}
.pm-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 8px;
  border-bottom: 1px solid var(--pm-line);
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 25, 33, 0.94);
  backdrop-filter: blur(10px);
}
.pm-tabs { display: flex; gap: 4px; }
.pm-tab {
  background: transparent;
  border: 0;
  color: var(--pm-muted);
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
}
.pm-tab.active {
  color: var(--pm-gold-soft);
  background: rgba(197, 160, 89, 0.12);
  box-shadow: 0 0 18px rgba(197, 160, 89, 0.12);
}
.pm-conn { font-size: 0.65rem; letter-spacing: 0.12em; color: var(--pm-green); }
.pm-conn[data-state="STALE"], .pm-conn[data-state="OFFLINE"] { color: var(--pm-red); }
.pm-top-status {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
  margin: 0 8px;
}
.pm-pete-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-height: 18px;
  padding: 0 2px;
  color: var(--pm-green);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pm-pete-live-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3dcf86;
  box-shadow: 0 0 0 2px rgba(61, 207, 134, 0.22), 0 0 10px rgba(61, 207, 134, 0.55);
  animation: pm-live-pulse 2.2s ease-in-out infinite;
}
.pm-pete-live[data-in-trade="1"] .pm-pete-live-dot {
  background: #f0d080;
  box-shadow: 0 0 0 2px rgba(240, 208, 128, 0.25), 0 0 12px rgba(240, 208, 128, 0.5);
}
.pm-pete-live[data-state="offline"] {
  color: var(--pm-muted);
}
.pm-pete-live[data-state="offline"] .pm-pete-live-dot {
  background: #7a8fa3;
  box-shadow: none;
  animation: none;
}
@keyframes pm-live-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.85; }
}
.pm-pete-live-label {
  overflow: hidden;
  text-overflow: ellipsis;
}
.pm-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin: 8px 12px 0; padding: 10px 12px;
  border: 1px solid var(--pm-line); border-radius: 12px;
  background: rgba(197, 160, 89, 0.08); font-size: 0.82rem;
}
.pm-banner[data-push-fail="1"] {
  border-color: #c45b5b;
  background: rgba(196, 91, 91, 0.14);
}
.pm-push-health {
  margin: 10px 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--pm-line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  font-size: 0.78rem;
  line-height: 1.45;
}
.pm-push-health[data-fail="1"] {
  border-color: #c45b5b;
}
.pm-push-health dt {
  color: var(--pm-muted);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pm-push-health dd {
  margin: 0 0 8px;
  font-variant-numeric: tabular-nums;
}
.pm-push-health .pm-push-missing {
  color: #e8b4b4;
  font-weight: 600;
}
.pm-ticker {
  display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px 4px;
  -webkit-overflow-scrolling: touch;
}
/* Founder Pete conversation: hide the large MNQ/MES/QQQ/SPY/OIL strip — status lives in pmPeteStatusStrip / Markets. */
[data-pm-panel="pete"] > #pmTicker.pm-ticker {
  display: none !important;
}
.pm-tick {
  flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  min-width: 78px; padding: 8px 10px;
  border: 1px solid var(--pm-line); border-radius: 12px;
  background: var(--pm-panel); color: inherit; cursor: pointer;
}
.pm-tick span { font-size: 0.62rem; letter-spacing: 0.12em; color: var(--pm-muted); }
.pm-tick strong { font-variant-numeric: tabular-nums; font-size: 0.86rem; }
.pm-tick em { font-style: normal; font-size: 0.7rem; }
.pm-tick[data-dir="up"] strong, .pm-tick[data-dir="up"] em { color: var(--pm-green); }
.pm-tick[data-dir="down"] strong, .pm-tick[data-dir="down"] em { color: var(--pm-red); }
.pm-tick .pm-badge { font-size: 0.55rem; letter-spacing: 0.08em; color: var(--pm-gold); }
.pm-tick .pm-badge-delayed { color: var(--pm-muted); letter-spacing: 0.04em; }
.pm-brain-row {
  display: grid; grid-template-columns: 176px 1fr; gap: 12px;
  padding: 8px 12px 10px; align-items: center;
  flex: 0 0 auto;
  max-height: 248px;
  overflow: visible;
  position: relative;
  z-index: 1;
  isolation: isolate;
}
.pm-brain { width: 176px; height: auto; min-height: 186px; overflow: visible; }
.pm-body .pm-brain.pete-mini-brainscan { margin: 0; }
.pm-body .pm-brain .pete-mini-brainscan-frame {
  height: 148px !important;
  min-height: 0 !important;
  max-height: 148px !important;
}
.pm-mode {
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  color: var(--pm-gold-soft);
  margin: 4px 0;
}
.pm-eyebrow { margin: 0; font-size: 0.62rem; letter-spacing: 0.18em; color: var(--pm-gold); }
.pm-muted { color: var(--pm-muted); font-size: 0.8rem; }
.pm-ticket-bar { padding: 0 12px 6px; flex: 0 0 auto; display: flex; gap: 8px; flex-wrap: wrap; }
.pm-quick-look {
  margin: 0 12px 8px;
  padding: 8px 10px;
  border: 1px solid var(--pm-line);
  border-radius: 10px;
  background: rgba(13,27,42,0.88);
  font-size: 0.78rem;
  line-height: 1.35;
}
.pm-quick-look p { margin: 0 0 4px; }
.pm-build-badge {
  margin: 0 12px 6px;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: var(--pm-muted);
  opacity: 0.85;
}
.pm-smsg,
.pm-bubble {
  display: inline-block;
  width: fit-content;
  max-width: min(70%, 20rem);
  margin: 2px 0;
  padding: 4px 8px;
  border-radius: 10px;
  background: rgba(19,35,55,0.9);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 0.8rem;
  line-height: 1.28;
}
.pm-chat {
  flex: 1 1 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: 8px 12px 12px;
  max-height: none;
  position: relative;
  z-index: 2;
}
html:is(.waypoint-fold-tablet, .pm-fold-cover, .pm-iphone-regular, .pm-iphone-plus) [data-pm-panel="pete"]:not([hidden]) {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
html:is(.waypoint-fold-tablet, .pm-fold-cover, .pm-iphone-regular, .pm-iphone-plus) [data-pm-panel="pete"] .pm-chat {
  flex: 1 1 0;
  min-height: 0;
  padding-bottom: 16px;
}
html:is(.waypoint-fold-tablet, .pm-fold-cover, .pm-iphone-regular, .pm-iphone-plus) [data-pm-panel="pete"] .pm-composer {
  position: relative;
  flex: 0 0 auto;
  z-index: 3;
}
@media (max-width: 699px) {
  [data-pm-panel="pete"]:not([hidden]) {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
  }
  [data-pm-panel="pete"] .pm-chat {
    flex: 1 1 0;
    min-height: 0;
    padding-bottom: 16px;
  }
  [data-pm-panel="pete"] .pm-composer {
    position: relative;
    flex: 0 0 auto;
    z-index: 3;
  }
}
.pm-bubble {
  max-width: min(86%, 22rem); margin: 4px 0; padding: 6px 9px; border-radius: 12px;
  font-size: 0.84rem; line-height: 1.32;
  white-space: pre-wrap;
}
.pm-bubble.me { margin-left: auto; background: rgba(197, 160, 89, 0.16); }
.pm-bubble.pete {
  background: var(--pm-panel);
  border: 1px solid var(--pm-line);
  box-shadow: 0 0 24px rgba(197, 160, 89, 0.05);
}
.pm-day-line {
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--pm-muted);
  opacity: 0.72;
  margin: 12px 0 4px;
}
.pm-swipe {
  position: relative;
  overflow: hidden;
  margin: 8px 0;
}
.pm-swipe .pm-bubble,
.pm-swipe .pm-smsg { margin: 0; }
.pm-swipe-actions {
  position: absolute;
  inset: 0 0 0 auto;
  width: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pm-swipe-front {
  position: relative;
  z-index: 1;
  transform: translateX(0);
  transition: transform 0.18s ease;
}
.pm-swipe.is-open .pm-swipe-front { transform: translateX(-64px); }
.pm-msg-trash {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(180, 70, 70, 0.92);
  color: #fff;
  font-size: 1.05rem;
}
.pm-msg-time {
  display: block;
  margin-top: 5px;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: var(--pm-muted);
  opacity: 0.85;
}
.pm-bubble.me .pm-msg-time,
.pm-smsg.is-me .pm-msg-time { text-align: right; }
.pm-ticket {
  margin: 10px 0; padding: 12px;
  border: 1px solid var(--pm-line); border-radius: 16px;
  background: linear-gradient(180deg, rgba(197,160,89,0.08), rgba(13, 27, 42, 0.92));
}
.pm-ticket h3 { margin: 0 0 8px; font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0.08em; color: var(--pm-gold-soft); }
.pm-ticket dl { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin: 0 0 10px; }
.pm-ticket dt { font-size: 0.65rem; letter-spacing: 0.08em; color: var(--pm-muted); }
.pm-ticket dd { margin: 0; font-variant-numeric: tabular-nums; }
.pm-composer {
  display: flex; align-items: flex-end; gap: 6px;
  padding: 8px 12px calc(10px + var(--pm-safe-b));
  border-top: 1px solid var(--pm-line);
  background: rgba(10, 25, 33, 0.96);
  position: relative;
  z-index: 6;
  flex: 0 0 auto;
}
.pm-composer textarea {
  flex: 1; resize: none; min-height: 40px; max-height: 120px;
  border-radius: 12px; border: 1px solid var(--pm-line);
  background: var(--wtc-navy-steel); color: var(--pm-text); padding: 10px 12px;
  font: inherit;
}
.pm-icon, .pm-btn {
  border: 1px solid var(--pm-line); background: var(--wtc-navy-panel); color: var(--pm-text);
  border-radius: 12px; min-height: 40px; padding: 0 12px; cursor: pointer;
}
.pm-icon { width: 40px; font-size: 1.1rem; }
.pm-icon.is-mic-on {
  color: #7AD4FF;
  border-color: rgba(30, 155, 255, 0.65);
  background: rgba(30, 155, 255, 0.22);
  box-shadow: 0 0 14px rgba(30, 155, 255, 0.45);
}
.pm-btn-gold {
  background: linear-gradient(135deg, #a8883e 0%, #c5a059 45%, #e8d5a3 100%);
  color: #0a1921;
  font-weight: 600;
  border: 0;
  box-shadow: 0 2px 12px rgba(197, 160, 89, 0.2);
}
.pm-btn-ghost { background: transparent; color: var(--pm-gold-soft); letter-spacing: 0.08em; font-size: 0.75rem; }
.pm-btn-danger { border-color: rgba(224,112,112,0.5); color: #ffd0d0; }
.pm-btn-sm { min-height: 34px; font-size: 0.72rem; letter-spacing: 0.06em; }
.pm-send { letter-spacing: 0.08em; }
.pm-panel { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; overflow: hidden; min-width: 0; }
.pm-accounts, .pm-settings {
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.pm-settings-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--pm-line);
  background: rgba(19, 35, 55, 0.55);
  color: inherit;
  text-decoration: none;
}
.pm-settings-link strong { font-size: 0.92rem; }
.pm-settings-link span { color: var(--pm-muted); font-size: 0.78rem; }
.pm-card {
  margin: 12px; padding: 16px; border-radius: 16px;
  border: 1px solid var(--pm-line); background: var(--pm-panel);
  min-width: 0;
}
.pm-card-head { display: flex; justify-content: space-between; align-items: center; }
.pm-card h2 { margin: 4px 0 12px; font-family: var(--font-display); font-size: 1.15rem; }
.pm-pill { font-size: 0.65rem; letter-spacing: 0.12em; color: var(--pm-green); border: 1px solid rgba(92,184,138,0.4); padding: 4px 8px; border-radius: 999px; }
.pm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pm-stat span { display: block; color: var(--pm-muted); font-size: 0.72rem; }
.pm-stat strong { font-variant-numeric: tabular-nums; }
.pm-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.pm-link { background: none; border: 0; color: var(--pm-gold); padding: 0; cursor: pointer; font: inherit; }
.pm-foot { padding: 0 12px 24px; }
.pm-gate {
  margin: auto; max-width: 360px; padding: 32px 20px; text-align: center;
  overflow-y: auto;
  max-height: 100%;
}
#pmAuthGate,
#pmPausedGate {
  position: absolute;
  inset: 0;
  z-index: 40;
  max-width: none;
  display: none;
  pointer-events: none;
  visibility: hidden;
}
body:not(.pm-in-session) #pmAuthGate:not([hidden]),
body:not(.pm-in-session) #pmPausedGate:not([hidden]) {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--pm-bg);
  pointer-events: auto;
  visibility: visible;
}
#pmAuthGate[hidden],
#pmPausedGate[hidden],
body.pm-in-session #pmAuthGate,
body.pm-in-session #pmPausedGate {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
  z-index: -1;
}
.pm-gate h1 { font-family: var(--font-display); }
.pm-input {
  width: 100%; margin: 8px 0; padding: 12px; border-radius: 12px;
  border: 1px solid var(--pm-line); background: var(--wtc-navy-steel); color: inherit; font: inherit;
}
html.pm-ios .pm-input,
html.pm-ios textarea,
html.pm-ios select {
  font-size: 16px;
}
.pm-remember {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0 16px;
  text-align: left;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--pm-muted);
  cursor: pointer;
}
.pm-remember input {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--pm-gold);
}
.pm-gate .pm-btn {
  width: 100%;
  min-height: 48px;
}
.pm-error { color: var(--pm-red); min-height: 1.2em; }
/* display:flex on sheets/banners must not override the hidden attribute or
   the Market Data overlay covers login and Add to Home Screen. */
.pm-body [hidden] {
  display: none !important;
}
.pm-sheet {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  display: none;
  align-items: flex-end; justify-content: center; z-index: 40;
}
.pm-sheet:not([hidden]) {
  display: flex;
}
.pm-sheet-card {
  width: min(640px, 100%); max-height: 92dvh; overflow: auto;
  background: var(--wtc-navy-panel); border: 1px solid var(--pm-line);
  border-radius: 18px 18px 0 0; padding: 16px 16px calc(16px + var(--pm-safe-b));
}
.pm-sheet-card .pm-actions .pm-btn-gold {
  width: 100%;
  min-height: 48px;
}
.pm-editor-fields label { display: block; margin: 8px 0; font-size: 0.78rem; color: var(--pm-muted); }
.pm-editor-fields input, .pm-editor-fields select {
  width: 100%; margin-top: 4px; padding: 10px; border-radius: 10px;
  border: 1px solid var(--pm-line); background: var(--wtc-navy-steel); color: inherit;
}
.pm-maint-banner {
  display: grid;
  gap: 4px;
  padding: 10px 14px;
  background: linear-gradient(165deg, #0a1220, #152238);
  border-bottom: 1px solid rgba(201, 162, 39, 0.45);
  color: #e8d48b;
  font-size: 0.78rem;
  line-height: 1.35;
  letter-spacing: 0.02em;
  z-index: 40;
}
.pm-maint-banner[hidden] { display: none !important; }
.pm-maint-banner strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}
.pm-maint-banner span {
  color: #c5cedb;
  white-space: pre-wrap;
}
.pm-group { margin: 12px 0; }
.pm-group h3 { font-size: 0.72rem; letter-spacing: 0.14em; color: var(--pm-gold); }
.pm-group.pm-northstar-group > h3 {
  color: #c9a227;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pm-ns-badge {
  display: inline-block;
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  padding: 2px 7px;
  border: 1px solid rgba(201, 162, 39, 0.55);
  color: #e8d48b;
  background: rgba(10, 18, 32, 0.95);
  border-radius: 2px;
}
.pm-ns-row {
  text-align: left;
  width: 100%;
  border: 1px solid rgba(126, 200, 227, 0.28);
  background: linear-gradient(165deg, rgba(8, 14, 26, 0.98), rgba(18, 28, 44, 0.94));
  color: #d7dde8;
  border-radius: 6px;
  padding: 12px 12px 10px;
  display: grid;
  gap: 6px;
  margin: 0 0 8px;
  box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.08);
}
.pm-ns-row .pm-ns-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pm-ns-row .pm-ns-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 6px;
  background: #0a1220 url("/icons/pete-northstar.svg") center / cover no-repeat;
}
.pm-ns-row strong {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #e8d48b;
  font-size: 0.92rem;
}
.pm-ns-row .pm-ns-meta {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7ec8e3;
}
.pm-ns-row .pm-ns-body {
  white-space: pre-wrap;
  font-size: 0.82rem;
  line-height: 1.35;
  color: #c5cedb;
  border-top: 1px solid rgba(126, 200, 227, 0.15);
  padding-top: 8px;
}
.pm-ns-sev-p0 { color: #f0b429; }
.pm-ns-sev-p1 { color: #7ec8e3; }
.pm-ns-sev-p2, .pm-ns-sev-info { color: #9aa7b8; }
.pm-ns-sheet .pm-sheet-card {
  background: linear-gradient(165deg, #0a1220, #152238);
  border: 1px solid rgba(201, 162, 39, 0.35);
  color: #d7dde8;
}
.pm-ns-sheet .pm-sheet-card header h2 {
  color: #e8d48b;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.04em;
}
.pm-ns-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.pm-plan, .pm-pos {
  margin: 10px 0 0;
  padding: 12px;
  border: 1px solid var(--pm-line);
  border-radius: 14px;
  background: var(--wtc-navy-steel);
}
.pm-plan header, .pm-pos header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}
.pm-plan h3, .pm-pos h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--pm-gold-soft);
}
.pm-plan dl, .pm-pos dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  margin: 0;
}
.pm-plan dt, .pm-pos dt { font-size: 0.65rem; letter-spacing: 0.08em; color: var(--pm-muted); }
.pm-plan dd, .pm-pos dd { margin: 0; font-variant-numeric: tabular-nums; }
.pm-side-label { font-size: 0.68rem; letter-spacing: 0.1em; color: var(--pm-gold); margin: 8px 0 4px; }

@media (min-width: 720px) {
  .pm-brain-row { grid-template-columns: 200px 1fr; max-height: 240px; }
  .pm-brain { width: 200px; height: 210px; }
  .pm-body .pm-brain .pete-mini-brainscan-frame {
    height: 168px !important;
    max-height: 168px !important;
  }
}

#pmApp {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.pm-top {
  gap: 10px;
}
.pm-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  text-transform: uppercase;
}
.pm-bell {
  position: relative;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: rgba(26, 45, 66, 0.7);
  color: var(--pm-gold-soft);
  cursor: pointer;
}
.pm-bell em {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #c96a6a;
  color: #fff;
  font-size: 0.58rem;
  font-style: normal;
  line-height: 16px;
  animation: pm-badge-pulse 1.8s ease-in-out infinite;
}
@keyframes pm-badge-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.pm-install {
  align-items: center;
}
.pm-install img { flex-shrink: 0; }
.pm-install strong { display: block; letter-spacing: 0.08em; }
.pm-install-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.pm-web-portal-link {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 12px;
  color: rgba(232, 238, 246, 0.68);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.pm-install-steps {
  margin: 10px 0 0;
  padding-left: 22px;
  display: grid;
  gap: 8px;
  color: var(--pm-text);
  font-size: 0.92rem;
  line-height: 1.45;
}
.pm-dock {
  position: relative;
  bottom: auto;
  z-index: 25;
  flex: 0 0 auto;
  margin-top: auto;
  margin-bottom: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  padding: 4px 4px 2px;
  min-height: 52px;
  background: rgba(10, 25, 33, 0.94);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(122, 212, 255, 0.12);
}
html.pm-standalone .pm-dock {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.pm-dock:not(:has(#pmDockChartsBtn:not([hidden]))) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.pm-dock-mark {
  font-size: 1.15rem;
  line-height: 26px;
  color: var(--pm-gold, #d9b75e);
}
.pm-desk-body { padding: 8px 12px 16px; overflow: auto; }
.pm-desk-card {
  margin: 8px 0;
  padding: 10px 12px;
  background: #0c1c28;
  border: 1px solid rgba(217, 183, 94, 0.35);
  border-radius: 10px;
}
.pm-desk-ticks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pm-desk-tick { padding: 6px; background: #071018; border-radius: 8px; }
.pm-desk-tick strong { display: block; }
.pm-desk-tick.is-stale em { color: #e07a7a; }
.pm-desk-tick.is-fresh em { color: #8fd18f; }
.pm-desk-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.pm-gauge-track {
  position: relative;
  height: 10px;
  border-radius: 99px;
  background: linear-gradient(90deg, #c45b5b, #8a8f98 50%, #3f9d6a);
}
.pm-gauge-track i {
  position: absolute;
  top: -4px;
  width: 4px;
  height: 18px;
  background: #f1d88b;
  border-radius: 2px;
  transition: none;
}
.pm-gauge-scale { display: flex; justify-content: space-between; font-size: 0.68rem; letter-spacing: 0.08em; }
[data-pm-panel="pete"] .pm-brain-row,
[data-pm-panel="pete"] .pm-ticket-bar { display: none !important; }
[data-pm-panel="pete"] .pm-chat,
[data-pm-panel="pete"] .pm-composer { grid-column: 1 / -1 !important; }
.pm-dock-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 48px;
  border: 0;
  background: transparent;
  color: var(--pm-muted);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.pm-dock-btn.active { color: var(--pm-gold-soft); }
.pm-dock-btn img {
  display: block;
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex: 0 0 auto;
}
.pm-dock-pete img {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 0 10px rgba(90, 221, 244, 0.35));
}
.pm-dock-pete.is-alive img {
  animation: pm-pete-pulse 2.4s ease-in-out infinite;
}
@keyframes pm-pete-pulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 8px rgba(90,221,244,0.3)); }
  50% { transform: scale(1.06); filter: drop-shadow(0 0 16px rgba(197,160,89,0.45)); }
}
.pm-dock-btn em {
  position: absolute;
  top: 0;
  right: calc(50% - 22px);
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #c96a6a;
  color: #fff;
  font-style: normal;
  font-size: 0.58rem;
  line-height: 16px;
  text-align: center;
  padding: 0 4px;
}
.pm-dock-btn em.pm-badge-red,
#pmAccountsBadge,
#pmSocialBadge,
#pmPeteBadge {
  background: #c96a6a;
}
.pm-dock-accounts img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(90, 221, 244, 0.28));
}
.pm-dock-charts img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(197, 160, 89, 0.35));
}
.pm-dock-charts.active {
  color: var(--pm-gold-soft);
}
.pm-dock-charts.active img {
  filter: drop-shadow(0 0 12px rgba(92, 184, 138, 0.55));
}
#pmChartsTopBtn {
  display: none !important;
}
.pm-dock-gear {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  font-size: 1.35rem;
  line-height: 1;
}
@media (max-width: 400px) {
  .pm-brain-row {
    grid-template-columns: minmax(118px, 40%) minmax(0, 1fr);
    gap: 8px;
    padding: 6px 10px 8px;
  }
  .pm-brain { width: 118px; height: 128px; }
  .pm-body .pm-brain .pete-mini-brainscan-frame {
    height: 96px !important;
    max-height: 96px !important;
  }
  .pm-brain-modes button {
    padding: 4px 6px;
    font-size: 0.52rem;
  }
  .pm-top { padding: 8px 10px 6px; }
  .pm-composer { gap: 6px; padding-left: 10px; padding-right: 10px; }
}
@media (min-width: 401px) and (max-width: 480px) {
  .pm-brain-row {
    grid-template-columns: minmax(140px, 38%) minmax(0, 1fr);
    gap: 10px;
    padding: 8px 12px 10px;
  }
  .pm-brain { width: 140px; height: 150px; }
  .pm-body .pm-brain .pete-mini-brainscan-frame {
    height: 118px !important;
    max-height: 118px !important;
  }
}
@media (max-height: 740px) {
  html:not(.pm-fold-open) .pm-brain-row {
    grid-template-columns: 132px 1fr;
    max-height: 156px;
    padding: 4px 12px 6px;
  }
  html:not(.pm-fold-open) .pm-brain { width: 132px; height: 140px; }
  html:not(.pm-fold-open) .pm-body .pm-brain .pete-mini-brainscan-frame {
    height: 108px !important;
    max-height: 108px !important;
  }
  .pm-dock-pete img { width: 34px; height: 34px; }
  .pm-dock-btn { font-size: 0.56rem; gap: 2px; }
}
@media (max-height: 620px) {
  html:not(.pm-fold-open) .pm-brain-row {
    grid-template-columns: 108px 1fr;
    max-height: 128px;
  }
  html:not(.pm-fold-open) .pm-brain { width: 108px; height: 116px; }
  html:not(.pm-fold-open) .pm-body .pm-brain .pete-mini-brainscan-frame {
    height: 88px !important;
    max-height: 88px !important;
  }
  .pm-ticker { padding: 4px 12px; }
}
.pm-ticket { cursor: pointer; }
.pm-ticket.pm-ticket-chip {
  padding: 10px 12px;
}
.pm-ticket.pm-ticket-chip dl,
.pm-ticket.pm-ticket-chip .pm-actions { display: none; }
.pm-ticket.pm-ticket-chip h3 { margin: 0; font-size: 0.82rem; }
.pm-ticket-chip-meta { margin: 4px 0 0; font-size: 0.75rem; color: var(--pm-muted); }
.pm-brain-modes {
  display: flex;
  gap: 4px;
  margin-top: 6px;
  flex-wrap: wrap;
  overflow: visible;
  position: relative;
  z-index: 6;
  pointer-events: auto;
  touch-action: manipulation;
}
.pm-brain {
  position: relative;
  touch-action: manipulation;
}
.pm-brain .pete-mini-brainscan-frame {
  touch-action: none;
}
.pm-brain-modes button {
  border: 0;
  border-radius: 999px;
  padding: 4px 7px;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  background: rgba(26,45,66,0.8);
  color: var(--pm-muted);
  pointer-events: auto;
  touch-action: manipulation;
}
.pm-brain-modes button.is-on {
  color: #7AD4FF;
  background: rgba(30, 155, 255, 0.18);
}
.pm-brain-tools {
  display: none !important;
}
.pm-brain-tools button {
  display: none !important;
}
.pm-brain-tools button[aria-pressed="true"] {
  display: none !important;
}
.pm-brain-fs-btn {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 8;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(10,25,33,0.55);
  color: rgba(240,235,227,0.85);
  opacity: 0.75;
  cursor: pointer;
  pointer-events: auto;
}
.pm-brain-fs-btn:hover, .pm-brain-fs-btn:focus-visible { opacity: 1; }
.pm-brain-fs-chrome {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
}
.pm-brain-fs-close, .pm-brain-reset {
  pointer-events: auto;
  position: absolute;
  top: calc(10px + var(--pm-safe-t));
  border: 0;
  border-radius: 10px;
  background: rgba(13,27,42,0.7);
  color: var(--pm-text);
  min-height: 36px;
}
.pm-brain-fs-close { right: 12px; width: 40px; font-size: 1.3rem; }
.pm-brain-reset { left: 12px; padding: 0 10px; font-size: 0.62rem; letter-spacing: 0.1em; }
html:has(body.pm-brain-fs),
.pm-body.pm-brain-fs {
  overflow: hidden !important;
  height: 100%;
  overscroll-behavior: none;
}
.pm-body.pm-brain-fs .pm-dock,
.pm-body.pm-brain-fs .pm-top,
.pm-body.pm-brain-fs .pm-ticker,
.pm-body.pm-brain-fs .pm-chat,
.pm-body.pm-brain-fs .pm-composer,
.pm-body.pm-brain-fs .pm-ticket-bar,
.pm-body.pm-brain-fs .pm-banner,
.pm-body.pm-brain-fs .pm-brain-meta { display: none !important; }
.pm-body.pm-brain-fs .pm-shell,
.pm-body.pm-brain-fs #pmApp,
.pm-body.pm-brain-fs .pm-panel,
.pm-body.pm-brain-fs .pm-brain-row {
  overflow: visible !important;
  transform: none !important;
  filter: none !important;
  contain: none !important;
  isolation: auto;
  max-height: none !important;
}
.pm-body.pm-brain-fs .pm-brain-row {
  position: static;
  display: block;
  padding: 0;
  grid-template-columns: none;
  z-index: 70;
}
.pm-body.pm-brain-fs .pm-brain {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  max-width: none !important;
  max-height: none !important;
  overflow: hidden !important;
  z-index: 80;
  background: #000;
  margin: 0 !important;
}
.pm-body.pm-brain-fs .pm-brain .pete-mini-brainscan-frame {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  max-height: none !important;
  border-radius: 0;
  border: 0;
}
.pm-body.pm-brain-fs .pm-brain-fs-btn { display: none; }
.pm-body.pm-brain-fs .pm-brain-modes {
  position: fixed;
  left: 12px;
  bottom: calc(16px + var(--pm-safe-b));
  z-index: 91;
  overflow: visible;
  flex-wrap: wrap;
}
.pm-splash {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: radial-gradient(circle at 50% 40%, #132337, #0a1921 70%);
}
.pm-splash-brain {
  animation: pm-wake 1.1s ease;
  filter: drop-shadow(0 0 24px rgba(90,221,244,0.4));
}
@keyframes pm-wake {
  from { opacity: 0.2; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
.pm-social, .pm-social-split { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.pm-social-thread {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.pm-social-list,
.pm-social-msgs {
  flex: 1 1 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: 8px 12px;
}
.pm-att { display: grid; gap: 8px; margin: 6px 0; }
.pm-att img,
.pm-att video,
.pm-smsg .crew-msg-att-image img,
.pm-smsg .crew-msg-att-video,
.pm-bubble .crew-msg-att-image img,
.pm-bubble .crew-msg-att-video {
  display: block;
  max-width: 100%;
  max-height: 240px;
  border-radius: 10px;
  background: #0a1018;
}
.pm-att-report img,
.pm-bubble .pm-att-report .crew-msg-att-image img,
.pm-preweek-page img {
  max-height: none;
  width: 100%;
  height: auto;
}
.pm-sheet-report {
  max-height: min(92vh, 1100px);
  overflow: auto;
}
.pm-preweek,
.pm-preweek-card {
  display: grid;
  gap: 12px;
  margin: 10px 0 16px;
}
.pm-preweek-page {
  margin: 0;
  display: grid;
  gap: 8px;
}
.pm-preweek-page img {
  border-radius: 10px;
  border: 1px solid var(--pm-line, #243044);
  background: #0a1018;
}
.pm-att-file,
.pm-smsg .crew-msg-att-file,
.pm-bubble .crew-msg-att-file {
  display: flex;
  gap: 8px;
  align-items: center;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--pm-line);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(10, 16, 24, 0.55);
}
.pm-attach-hint {
  font-size: 0.72rem;
  color: var(--pm-muted);
  padding: 0 12px 4px;
}
.pm-msg-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin: 0 4px;
}
.pm-msg-tab {
  border: 0;
  background: transparent;
  color: var(--pm-muted);
  padding: 10px 6px;
  cursor: pointer;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.pm-msg-tab.active {
  color: var(--pm-gold-soft);
  box-shadow: inset 0 -2px 0 var(--pm-gold);
}
.pm-crew-search input {
  width: 100%;
  margin: 4px 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0a1018;
  color: var(--pm-text);
  padding: 10px 12px;
  font: inherit;
}
.pm-crew-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pm-crew-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  min-height: 72px;
  margin: 0;
  padding: 12px 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: rgba(13, 27, 42, 0.88);
  color: inherit;
}
.pm-crew-main {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.pm-avatar-hit,
.pm-msg-avatar {
  touch-action: manipulation;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
.pm-crew-row:hover,
.pm-crew-row:focus-visible {
  border-color: rgba(197, 160, 89, 0.35);
  background: rgba(19, 35, 55, 0.95);
}
.pm-crew-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #1a2436;
  flex-shrink: 0;
}
.pm-crew-avatar-portrait {
  object-fit: contain;
  background: transparent;
  border-radius: 10px;
}
.pm-crew-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  color: var(--pm-gold-soft);
  border: 1px solid rgba(201, 162, 39, 0.35);
}
.pm-crew-name {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.pm-crew-name strong {
  font-size: 0.95rem;
}
.pm-crew-name span {
  font-size: 0.75rem;
  color: var(--pm-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pm-crew-meta {
  font-size: 0.68rem;
  font-style: normal;
  color: var(--pm-muted);
  white-space: nowrap;
}
.pm-crew-unread {
  justify-self: end;
  background: #1e9bff;
  color: #fff;
  border-radius: 999px;
  padding: 2px 7px;
  font-style: normal;
  font-size: 0.7rem;
}
.pm-social-row {
  display: grid;
  width: 100%;
  text-align: left;
  gap: 4px;
  margin: 0 0 8px;
  padding: 12px;
  border: 0;
  border-radius: 14px;
  background: rgba(13,27,42,0.88);
  color: inherit;
  cursor: pointer;
}
.pm-social-row em {
  justify-self: end;
  background: #1e9bff;
  color: #fff;
  border-radius: 999px;
  padding: 0 6px;
  font-style: normal;
  font-size: 0.7rem;
}
.pm-social-head { display: flex; align-items: center; gap: 8px; padding: 8px 12px; }
.pm-smsg,
.pm-bubble {
  display: inline-block;
  width: fit-content;
  max-width: min(72%, 22rem);
  margin: 3px 0;
  padding: 5px 9px;
  border-radius: 12px;
  background: rgba(19,35,55,0.9);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 0.84rem;
  line-height: 1.32;
}
.pm-smsg.is-me,
.pm-bubble.me { margin-left: auto; background: rgba(30,155,255,0.18); }
.pm-msg-row { display: flex; align-items: flex-end; gap: 6px; margin: 3px 0; }
.pm-msg-row.is-me { flex-direction: row-reverse; }
.pm-smsg.is-failed,
.pm-bubble.is-failed { outline: 1px solid #c45c5c; }
.pm-msg-retry { margin-top: 4px; font-size: 0.72rem; }
.pm-group-picker { max-height: 40vh; overflow: auto; display: grid; gap: 6px; margin: 8px 0; }
.pm-journal-list { max-height: 42vh; overflow: auto; display: grid; gap: 8px; margin: 10px 0; }
.pm-journal-item { text-align: left; padding: 10px; border-radius: 12px; background: rgba(13,27,42,0.88); }
.pm-voice-controls { display: flex; flex-wrap: wrap; gap: 6px; }
.pm-screen-title {
  margin: 12px 12px 0;
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  font-size: 1.05rem;
}
.pm-switch, .pm-select {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  font-size: 0.88rem;
}
.pm-empty { color: var(--pm-muted); padding: 24px 12px; text-align: center; }
.pm-composer { padding-bottom: 8px; }
[data-pm-panel="pete"] .pm-composer { padding-bottom: 8px; }
.pm-panel { padding-bottom: 8px; }
[data-pm-panel="pete"] {
  min-height: 0;
  overflow: hidden;
}
[data-pm-panel="pete"] .pm-composer {
  flex: 0 0 auto;
  z-index: 6;
}

html:is(.waypoint-fold-tablet, .pm-fold-open) .pm-shell,
[data-device-mode="fold-tablet"] .pm-shell {
  max-width: none;
}
html.pm-fold-cover .pm-social-split,
html.pm-iphone-regular .pm-social-split,
html.pm-iphone-plus .pm-social-split {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
}
html.pm-fold-cover .pm-social-list[hidden],
html.pm-fold-cover .pm-social-thread[hidden],
html.pm-iphone-regular .pm-social-list[hidden],
html.pm-iphone-regular .pm-social-thread[hidden],
html.pm-iphone-plus .pm-social-list[hidden],
html.pm-iphone-plus .pm-social-thread[hidden] {
  display: none !important;
}
html.pm-fold-cover .pm-social-thread:not([hidden]),
html.pm-iphone-regular .pm-social-thread:not([hidden]),
html.pm-iphone-plus .pm-social-thread:not([hidden]) {
  display: flex !important;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
}

@media (max-width: 699px) {
  .pm-social-split {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
  }
  .pm-social-list[hidden],
  .pm-social-thread[hidden] {
    display: none !important;
  }
  .pm-social-thread:not([hidden]) {
    display: flex !important;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
  }
}

@media (min-width: 700px) {
  html.pm-fold-open .pm-social-split {
    display: grid;
    grid-template-columns: minmax(220px, 32%) minmax(0, 1fr);
    min-height: 70dvh;
  }
  html.pm-fold-open .pm-social-thread {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  html.pm-fold-open .pm-social-list[hidden] {
    display: block;
  }
}
html.pm-fold-cover .pm-social-thread,
html.pm-iphone-regular .pm-social-thread,
html.pm-iphone-plus .pm-social-thread {
  min-width: 0;
}
html:is(.waypoint-fold-tablet, .pm-fold-open) .pm-body.pm-brain-fs .pm-brain,
[data-device-mode="fold-tablet"] .pm-body.pm-brain-fs .pm-brain {
  inset: 0;
}

@media (orientation: landscape) and (min-width: 700px) {
  [data-pm-panel="pete"] {
    display: grid;
    grid-template-columns: minmax(280px, 42%) 1fr;
    grid-template-rows: auto 1fr auto;
    min-height: 0;
    overflow: hidden;
  }
  [data-pm-panel="pete"] .pm-ticker { grid-column: 1 / -1; grid-row: 1; display: none !important; }
  [data-pm-panel="pete"] .pm-pete-status { grid-column: 1 / -1; grid-row: 1; }
  [data-pm-panel="pete"] .pm-brain-row { grid-column: 1; grid-row: 2; min-height: 0; max-height: none; height: auto; overflow: hidden; }
  [data-pm-panel="pete"] .pm-ticket-bar { grid-column: 1; grid-row: 3; }
  [data-pm-panel="pete"] .pm-chat { grid-column: 2; grid-row: 2; min-height: 0; overflow-y: auto; max-height: none; }
  [data-pm-panel="pete"] .pm-composer { grid-column: 2; grid-row: 3; }
}

.pm-analysis-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.pm-analysis-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  text-align: left;
  padding: 12px;
  border: 1px solid var(--pm-line);
  border-radius: 14px;
  background: rgba(13, 27, 42, 0.72);
  color: inherit;
  cursor: pointer;
}
.pm-analysis-row strong { letter-spacing: 0.06em; color: var(--pm-gold-soft); }
.pm-analysis-row span { font-size: 0.78rem; color: var(--pm-muted); }
#pmFounderAnalysisBtn, #pmMyAnalysisBtn { width: 100%; margin-top: 8px; }
#pmTicketPopup .pm-sheet-card header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  align-items: start;
}
#pmTicketPopupKicker { grid-column: 1; color: var(--pm-gold); }
#pmTicketPopupTitle { grid-column: 1; margin: 0; }
#pmTicketPopupX { grid-column: 2; grid-row: 1 / span 2; }
.pm-analysis-reader {
  position: fixed;
  inset: 0;
  z-index: 80;
  padding: var(--pm-safe-t) 0 var(--pm-safe-b);
  background:
    radial-gradient(ellipse 70% 50% at 50% 12%, rgba(197, 160, 89, 0.16), transparent 58%),
    rgba(4, 8, 16, 0.94);
  overflow: auto;
}
.pm-analysis-reader[hidden] { display: none !important; }
.pm-analysis-reader-card {
  min-height: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 18px 16px 28px;
}
.pm-analysis-reader-card header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.pm-analysis-kicker {
  margin: 0 0 6px;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(197, 160, 89, 0.9);
}
.pm-analysis-reader-card h2 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  font-size: 1.15rem;
  color: var(--pm-gold-soft);
}
.pm-analysis-summary {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 12px;
  color: var(--pm-text);
}
.pm-analysis-banner {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid rgba(197, 160, 89, 0.35);
  border-radius: 12px;
  background: rgba(197, 160, 89, 0.1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: var(--pm-gold-soft);
}
.pm-analysis-report {
  margin: 0 0 16px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--pm-line);
  background: rgba(13, 27, 42, 0.88);
  white-space: pre-wrap;
  font: 0.92rem/1.5 var(--font-body);
  color: var(--pm-text);
}
.pm-analysis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  margin: 0 0 18px;
}
.pm-analysis-grid dt { font-size: 0.62rem; letter-spacing: 0.1em; color: var(--pm-muted); }
.pm-analysis-grid dd { margin: 0; font-variant-numeric: tabular-nums; }
.pm-analysis-action-long { color: var(--pm-green); }
.pm-analysis-action-short { color: var(--pm-red); }
.pm-acct-lead { padding: 0 12px; margin: 0 0 4px; }
.pm-accounts > .pm-muted { padding: 0 12px; }
.pm-book-launch {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}
.pm-book-launch-btn {
  width: 100%;
  min-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  padding: 12px 14px;
  text-align: left;
  letter-spacing: 0;
}
.pm-book-launch-btn span {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: #d7e4f4 !important;
}
.pm-book-launch-btn strong {
  font-size: 0.98rem;
  font-weight: 700;
  color: #f4efe6 !important;
}
.pm-book-day-fut {
  border-color: rgba(92, 184, 138, 0.7);
  background: linear-gradient(180deg, rgba(92, 184, 138, 0.22), rgba(13, 27, 42, 0.96));
}
.pm-book-day-fut span { color: #8fe0c9 !important; }
.pm-book-day-opt {
  border-color: rgba(110, 150, 210, 0.7);
  background: linear-gradient(180deg, rgba(110, 150, 210, 0.22), rgba(13, 27, 42, 0.96));
}
.pm-book-day-opt span { color: #9ec7f0 !important; }
.pm-book-long-fut {
  border-color: rgba(232, 213, 163, 0.72);
  background: linear-gradient(180deg, rgba(197, 160, 89, 0.22), rgba(13, 27, 42, 0.96));
}
.pm-book-long-fut span { color: #f0d9a0 !important; }
.pm-book-long-opt {
  border-color: rgba(180, 140, 255, 0.72);
  background: linear-gradient(180deg, rgba(124, 77, 255, 0.24), rgba(13, 27, 42, 0.96));
}
.pm-book-long-opt span { color: #d4b8ff !important; }
.pm-book-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: start;
  margin-bottom: 12px;
}
.pm-book-head h2 { margin: 4px 0 0; font-family: var(--font-display); font-size: 1.02rem; }
.pm-book-close {
  width: 40px;
  min-height: 40px;
  font-size: 1.35rem;
  line-height: 1;
}
.pm-accounts[data-open-book] .pm-foot { display: none; }
.pm-book h2 { font-size: 1.02rem; }
.pm-order-form {
  display: grid;
  grid-template-columns: 1fr 1fr 64px;
  gap: 6px;
  margin-top: 12px;
}
.pm-order-form select,
.pm-order-form input {
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid var(--pm-line);
  background: var(--wtc-navy-steel);
  color: inherit;
  font: inherit;
  padding: 0 8px;
}
.pm-order-form button { grid-column: 1 / -1; }
.pm-opt-toolbar {
  display: flex;
  gap: 8px;
  margin: 10px 0 8px;
}
.pm-opt-toolbar select,
.pm-opt-toolbar input {
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid var(--pm-line);
  background: var(--wtc-navy-steel);
  color: inherit;
  font: inherit;
  padding: 0 8px;
}
.pm-opt-toolbar select { flex: 1; }
.pm-opt-toolbar input { width: 72px; }
.pm-exp-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0 8px;
}
.pm-exp-btn {
  flex: 0 0 auto;
  min-height: 32px;
  border-radius: 999px;
  border: 1px solid var(--pm-line);
  background: rgba(26, 45, 66, 0.8);
  color: var(--pm-muted);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  padding: 0 10px;
}
.pm-exp-btn.is-on {
  color: var(--pm-gold-soft);
  border-color: rgba(197, 160, 89, 0.5);
  background: rgba(197, 160, 89, 0.14);
}
.pm-chain-scroll {
  max-height: 260px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--pm-line);
  border-radius: 12px;
}
.pm-chain {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
}
.pm-chain th {
  position: sticky;
  top: 0;
  background: #0d1b2a;
  color: var(--pm-muted);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 4px;
  text-align: center;
}
.pm-chain td {
  text-align: center;
  padding: 6px 4px;
  border-top: 1px solid rgba(197, 160, 89, 0.08);
}
.pm-chain tr[data-atm="1"] { background: rgba(197, 160, 89, 0.08); }
.pm-price-btn {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  min-height: 32px;
  min-width: 48px;
  padding: 4px;
  cursor: pointer;
}
.pm-price-btn[data-side="BUY"] { color: var(--pm-green); }
.pm-price-btn[data-side="SELL"] { color: #9ec4ff; }
.pm-pos .pm-actions { margin-top: 8px; }

@media (max-width: 430px) {
  .pm-banner {
    flex-wrap: wrap;
    margin: 8px 10px 0;
  }
  .pm-card {
    margin: 8px 10px;
    padding: 12px;
  }
  .pm-screen-title,
  .pm-acct-lead,
  .pm-accounts > .pm-muted,
  .pm-foot {
    margin-left: 10px;
    margin-right: 10px;
  }
  .pm-acct-lead,
  .pm-accounts > .pm-muted,
  .pm-foot {
    padding-left: 0;
    padding-right: 0;
  }
  .pm-book-head {
    grid-template-columns: minmax(0, 1fr) 36px;
    align-items: start;
  }
  .pm-book-head .pm-pill {
    grid-column: 1;
    justify-self: start;
  }
  .pm-book-close {
    grid-column: 2;
    grid-row: 1 / span 3;
    width: 36px;
    min-height: 36px;
  }
  .pm-book-head h2 {
    overflow-wrap: anywhere;
  }
  .pm-order-form {
    grid-template-columns: 1fr 1fr;
  }
  .pm-order-form [name="limitPrice"],
  .pm-order-form button {
    grid-column: 1 / -1;
  }
  .pm-analysis-grid {
    grid-template-columns: 1fr;
  }
  .pm-opt-toolbar input {
    width: 56px;
  }
  .pm-chain {
    font-size: 0.68rem;
  }
  .pm-chain th,
  .pm-chain td {
    padding: 6px 2px;
  }
  .pm-price-btn {
    min-width: 0;
    padding: 4px 1px;
  }
  .pm-book-launch-btn strong {
    font-size: 0.88rem;
    overflow-wrap: anywhere;
  }
  .pm-switch,
  .pm-select {
    gap: 8px;
    align-items: flex-start;
  }
}

/* —— Mobile cleanup pass: shell, messenger, accounts, voice, Fold —— */
:root { --pm-long: #c4a6ff; --pm-long-deep: #7c4dff; }
.pm-top-actions { display: flex; align-items: center; gap: 8px; }
.pm-admin-chip {
  min-height: 44px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(197, 160, 89, 0.45);
  background: rgba(197, 160, 89, 0.12);
  color: var(--pm-gold-soft);
  letter-spacing: 0.12em;
  font-size: 0.62rem;
  font-weight: 700;
}
.pm-pull {
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--pm-gold);
  padding: 6px;
  transform: translateY(var(--pm-pull, 0px));
}
.pm-pull.is-armed { color: var(--pm-gold-soft); }
.pm-nested {
  position: absolute;
  left: 0; right: 0;
  top: 52px;
  bottom: 56px;
  z-index: 14;
  background: var(--pm-bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
html.pm-standalone .pm-nested {
  bottom: calc(52px + env(safe-area-inset-bottom, 0px));
}
.pm-nested[hidden] { display: none !important; }
#pmApp { position: relative; }
.pm-nested-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--pm-line);
  position: sticky;
  top: 0;
  background: rgba(10, 25, 33, 0.96);
  z-index: 2;
}
.pm-nested-head.pm-admin-head {
  flex-wrap: wrap;
}
.pm-nested-head .pm-screen-title { margin: 0; }
.admin-founder-tools-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  width: 100%;
  min-width: 0;
  flex: 1 1 100%;
}
.admin-founder-tools-row .pm-admin-chip {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pm-helm-chip {
  min-height: 36px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(197, 160, 89, 0.45);
  background: rgba(197, 160, 89, 0.12);
  color: var(--pm-gold-soft);
  letter-spacing: 0.08em;
  font-size: 0.58rem;
  font-weight: 700;
  white-space: nowrap;
}
.pm-pete-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 6px 12px 0;
  padding: 8px 10px;
  border: 1px solid rgba(197, 160, 89, 0.28);
  border-radius: 10px;
  background: rgba(12, 28, 38, 0.92);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}
.pm-pete-status span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pm-pete-status strong { color: var(--pm-gold-soft); font-weight: 700; }
.pm-pete-status[data-in-trade="1"] {
  border-color: rgba(90, 200, 140, 0.55);
  box-shadow: inset 0 0 0 1px rgba(90, 200, 140, 0.18);
}
.pm-charts {
  min-height: 0;
}
.pm-charts-root,
.pm-charts-host {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: auto;
  padding: 8px 12px 12px;
}
.pm-charts-overlay-host {
  flex: 1;
  min-height: 280px;
  position: relative;
}
.pm-charts-compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  margin: 0 0 12px;
}
.pm-charts-compact dt {
  color: var(--pm-muted);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pm-charts-compact dd {
  margin: 2px 0 0;
  font-weight: 600;
}
body.pm-charts-open #waypointChartsOverlay,
body.pm-charts-open #waypointChartsOverlay.wp-charts-embedded {
  position: relative;
  inset: auto;
  display: flex;
  width: 100%;
  height: min(68dvh, 720px);
  min-height: 280px;
  padding: 0;
  z-index: 1;
}
body.pm-charts-open .wp-charts-close { display: none; }
body.pm-charts-open .wp-charts-bar {
  flex-wrap: wrap;
  gap: 8px;
}
.pm-charts-health {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
  font-size: 0.68rem;
  line-height: 1.25;
  color: rgba(220, 198, 138, 0.9);
}
.pm-charts-health span {
  padding: 4px 7px;
  border: 1px solid rgba(197, 160, 89, 0.22);
  border-radius: 999px;
  background: rgba(11, 14, 18, 0.66);
  white-space: nowrap;
}
.pm-charts-health .is-good {
  color: #8fe0b3;
  border-color: rgba(90, 200, 140, 0.42);
}
.pm-charts-health .is-warn { color: #f0cf7b; }
.pm-charts-health .is-error {
  color: #ff9e9e;
  border-color: rgba(255, 110, 110, 0.42);
}
body.pm-charts-open .wp-charts-grid {
  grid-template-columns: 1fr;
  grid-template-rows: none;
  grid-auto-rows: minmax(220px, 34vh);
  overflow: auto;
}
@media (min-width: 720px) {
  body.pm-charts-open .wp-charts-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    grid-auto-rows: unset;
  }
}
@media (max-width: 430px) {
  .pm-charts-compact { grid-template-columns: minmax(0, 1fr); }
  body.pm-charts-open #waypointChartsOverlay { height: min(62dvh, 560px); }
}
.pm-nested-body { padding: 8px 12px 20px; overflow: auto; flex: 1; min-height: 0; }
.pm-msg-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin: 8px 0;
}
.pm-msg-row.is-me { flex-direction: row-reverse; }
.pm-msg-avatar {
  border: 0;
  background: transparent;
  padding: 0;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}
.pm-msg-avatar .pm-crew-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.pm-crew-avatar-fallback {
  display: grid;
  place-items: center;
  background: #1a2d42;
  font-size: 0.7rem;
}
.pm-swipe { flex: 1; min-width: 0; overflow: hidden; }
.pm-swipe-actions { opacity: 0; pointer-events: none; }
.pm-swipe.is-open .pm-swipe-actions { opacity: 1; pointer-events: auto; }
.pm-dir-badge, .pm-side-label.is-long, .pm-analysis-action-long {
  color: #f4edff;
  background: rgba(124, 77, 255, 0.32);
  border: 1px solid rgba(196, 166, 255, 0.55);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.pm-dir-badge.is-short, .pm-side-label.is-short, .pm-analysis-action-short {
  color: #ffd9d4;
  background: rgba(201, 106, 106, 0.28);
  border: 1px solid rgba(201, 106, 106, 0.5);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
}
.pm-pos.is-long { box-shadow: inset 3px 0 0 var(--pm-long-deep); }
.pm-pos.is-short { box-shadow: inset 3px 0 0 var(--pm-red); }
.pm-order-form select[name="side"]:has(option[value="long"]:checked) {
  color: var(--pm-long);
  border-color: rgba(124, 77, 255, 0.55);
}
.pm-acct-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 12px 12px;
}
.pm-acct-action {
  min-height: 64px;
  border-radius: 14px;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  border: 1px solid var(--pm-line);
  background: var(--pm-panel);
  color: inherit;
}
.pm-acct-action span { display: block; font-size: 0.62rem; letter-spacing: 0.14em; color: var(--pm-muted); }
.pm-acct-action-overview { border-color: rgba(197, 160, 89, 0.45); box-shadow: 0 0 18px rgba(197, 160, 89, 0.12); }
.pm-acct-action-positions { border-color: rgba(90, 196, 168, 0.45); }
.pm-acct-action-positions strong { color: #8fe0c9; }
.pm-acct-action-news { border-color: rgba(232, 213, 163, 0.35); }
.pm-acct-action-books { border-color: rgba(110, 150, 210, 0.4); }
.pm-acct-action-pete {
  border-color: rgba(197, 160, 89, 0.55);
  display: none;
}
body.waypoint-founder-login .pm-acct-action-pete {
  position: relative;
  isolation: isolate;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 92px;
  overflow: hidden;
  border-color: rgba(226, 194, 108, 0.72);
  background:
    radial-gradient(circle at 14% 50%, rgba(67, 205, 235, 0.19), transparent 34%),
    linear-gradient(125deg, rgba(9, 24, 34, 0.98), rgba(18, 31, 43, 0.98) 55%, rgba(64, 49, 17, 0.48));
  box-shadow: 0 0 0 1px rgba(83, 217, 242, 0.08), 0 12px 28px rgba(0, 0, 0, 0.3), 0 0 24px rgba(197, 160, 89, 0.16);
}
body.waypoint-founder-login .pm-acct-action-pete::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 34%, rgba(255, 231, 155, 0.11) 48%, transparent 62%);
  transform: translateX(-80%);
  animation: pm-direct-line-sweep 5.5s ease-in-out infinite;
}
.pm-direct-line-mark {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 0 13px rgba(80, 219, 244, 0.55)) drop-shadow(0 0 7px rgba(226, 194, 108, 0.42));
}
.pm-direct-line-copy { min-width: 0; }
.pm-acct-action .pm-direct-line-copy > span {
  color: #f1d984;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
}
.pm-direct-line-copy strong {
  display: block;
  margin-top: 4px;
  color: #f5f8fb;
  font-family: "Cinzel", serif;
  font-size: clamp(0.92rem, 3.6vw, 1.08rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.pm-direct-line-copy em {
  display: block;
  margin-top: 5px;
  color: #7ee4f5;
  font-size: 0.58rem;
  font-style: normal;
  letter-spacing: 0.16em;
}
@keyframes pm-direct-line-sweep {
  0%, 62%, 100% { transform: translateX(-80%); opacity: 0; }
  72% { opacity: 1; }
  88% { transform: translateX(90%); opacity: 0; }
}
.pm-etrade-confirm-lane {
  position: relative;
  margin: 12px 0;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(226, 194, 108, 0.52);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(9, 24, 34, 0.96), rgba(20, 37, 50, 0.93));
  box-shadow: inset 0 0 28px rgba(72, 208, 237, 0.05), 0 10px 24px rgba(0, 0, 0, 0.24);
}
.pm-etrade-confirm-head { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 10px; align-items: center; }
.pm-etrade-confirm-head img { width: 42px; height: 42px; filter: drop-shadow(0 0 10px rgba(76, 217, 243, 0.5)); }
.pm-etrade-confirm-head span { display: block; color: var(--pm-gold); font-size: 0.6rem; letter-spacing: 0.16em; }
.pm-etrade-confirm-head strong { display: block; color: #f5f8fb; line-height: 1.25; }
.pm-etrade-confirm-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 12px 0; }
.pm-etrade-confirm-steps span { padding: 8px 5px; border: 1px solid rgba(94, 207, 231, 0.2); border-radius: 9px; text-align: center; font-size: 0.58rem; letter-spacing: 0.08em; color: #9fe8f4; }
@media (prefers-reduced-motion: reduce) {
  body.waypoint-founder-login .pm-acct-action-pete::after { animation: none; }
}
.pm-pete-acct-list { display: grid; gap: 8px; margin: 10px 0; }
.pm-pete-acct-btn {
  display: grid;
  gap: 2px;
  width: 100%;
  text-align: left;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--pm-line);
  background: var(--pm-panel);
  color: inherit;
  font: inherit;
}
.pm-pete-acct-btn.is-on { border-color: var(--pm-gold); }
.pm-pete-acct-btn span { font-size: 0.68rem; letter-spacing: 0.12em; color: var(--pm-muted); }
.pm-pete-why {
  margin: 8px 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(10, 25, 33, 0.7);
  border: 1px solid var(--pm-line);
}
.pm-pete-tap {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  padding: 8px 0;
  min-height: 44px;
}
.pm-pete-tap strong { display: block; color: var(--pm-gold-soft); }
.pm-pete-watch {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 12px;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}
.pm-in-trade-light {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: #3a4a52;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
.pm-pete-watch[data-in-trade="1"] .pm-in-trade-light {
  background: #3dff8a;
  box-shadow: 0 0 10px rgba(61, 255, 138, 0.85);
  animation: pm-in-trade-pulse 1.4s ease-in-out infinite;
}
@keyframes pm-in-trade-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.pm-pete-book {
  margin: 14px 0;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  align-items: start;
}
.pm-pete-book-tabs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pm-pete-book-tab {
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid var(--pm-line);
  background: var(--pm-panel);
  color: inherit;
  font: inherit;
  letter-spacing: 0.08em;
}
.pm-pete-book-tab.is-on {
  border-color: var(--pm-gold);
  color: var(--pm-gold-soft);
}
.pm-social-top { display: flex; gap: 10px; align-items: flex-start; padding: 8px 12px 0; }
.pm-my-avatar-btn {
  width: 44px; height: 44px; border-radius: 50%; padding: 0; border: 1px solid var(--pm-line); background: #132337; overflow: hidden;
}
.pm-my-avatar-btn .pm-crew-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.pm-my-avatar-btn.is-hold, .pm-dock-btn.is-hold, .pm-avatar-hit.is-hold {
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.45);
}
.pm-social-feed {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.pm-post, .pm-news-card {
  margin: 8px 0;
  padding: 12px;
  border: 1px solid var(--pm-line);
  border-radius: 14px;
  background: var(--pm-panel);
}
.pm-post-img { width: 100%; border-radius: 10px; margin-top: 8px; }
.pm-post-img-heavy {
  display: grid;
  place-items: center;
  min-height: 72px;
  color: var(--pm-muted);
  background: rgba(10, 16, 24, 0.55);
}
.pm-feed-scroll {
  flex: 1 1 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: 0 12px 16px;
}
.pm-feed-compose { display: flex; gap: 8px; padding: 8px 12px; flex: 0 0 auto; }
.pm-feed-compose textarea { flex: 1; }
.pm-social-peer {
  display: flex; align-items: center; gap: 8px;
  background: transparent; border: 0; color: inherit; min-width: 0;
}
.pm-social-head { display: flex; align-items: center; gap: 8px; }
.pm-profile-hero { display: flex; gap: 12px; align-items: center; padding: 8px 0 12px; }
.pm-profile-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.pm-profile-form label { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; font-size: 0.8rem; color: var(--pm-muted); }
.pm-profile-pop {
  position: fixed; z-index: 40;
  background: #132337; border: 1px solid var(--pm-line); border-radius: 12px;
  padding: 8px; min-width: 180px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
.pm-profile-pop button {
  display: block; width: 100%; text-align: left;
  background: transparent; border: 0; color: inherit; padding: 10px; min-height: 44px;
}
.pm-voice-hud {
  padding: 8px 12px;
  border-top: 1px solid var(--pm-line);
  background: rgba(10, 25, 33, 0.96);
}
.pm-voice-controls { display: flex; gap: 8px; margin-top: 6px; }
.pm-voice-level {
  height: 4px; border-radius: 99px; background: rgba(197,160,89,0.15); margin: 8px 0;
}
.pm-voice-level::after {
  content: ""; display: block; height: 100%; width: calc(var(--pm-level, 0) * 100%);
  background: var(--pm-gold); border-radius: inherit;
}
.pm-body.pm-voice-live [data-pm-panel="pete"] .pm-brain-row {
  max-height: none;
  grid-template-columns: 1fr;
  justify-items: center;
  padding-top: 12px;
}
.pm-body.pm-voice-live .pm-brain {
  width: min(88vw, 340px);
  height: min(48vh, 340px);
}
.pm-body.pm-voice-live .pm-brain .pete-mini-brainscan-frame {
  height: min(44vh, 300px) !important;
  max-height: none !important;
  min-height: 180px !important;
}
.pm-body.pm-voice-speaking .pm-brain {
  animation: pm-brain-float 3.4s ease-in-out infinite;
}
@keyframes pm-brain-float {
  0%, 100% { transform: translateY(0) rotate(-0.35deg); }
  50% { transform: translateY(-8px) rotate(0.45deg); }
}
.pm-body.pm-wake-on .pm-dock-pete img {
  box-shadow: 0 0 16px rgba(122, 212, 255, 0.55);
}
.pm-body.pm-voice-listening #pmVoiceListenState,
.pm-body.pm-wake-on #pmVoiceListenState {
  color: #7ad4ff;
}
#pmMicBtn.is-listening { color: #7ad4ff; }
#pmMicBtn.is-thinking { color: #c5a059; }
#pmMicBtn.is-speaking { color: #f0e6c8; }
#pmMicBtn.is-live { box-shadow: 0 0 0 2px rgba(197,160,89,0.45); }
.pm-voice-consent {
  width: min(440px, calc(100vw - 24px));
  border: 1px solid rgba(197,160,89,0.4);
  border-radius: 14px;
  background: #0c1218;
  color: inherit;
  padding: 0;
}
.pm-voice-consent-card { padding: 18px; display: grid; gap: 10px; }
.pm-voice-consent-card ul { margin: 0; padding-left: 18px; }
.pm-voice-consent-card menu { display: flex; gap: 8px; justify-content: flex-end; margin: 8px 0 0; padding: 0; }
.pm-body.pm-voice-org-focus [data-pm-panel="pete"] .pm-brain-modes,
.pm-body.pm-voice-org-focus [data-pm-panel="pete"] .pm-ticket-bar { opacity: 0.35; }
.pm-body.pm-voice-org-focus [data-pm-panel="pete"] .pm-brain-row {
  justify-items: center;
}
.pm-body.pm-voice-org-focus #pmBrainMode {
  text-transform: uppercase;
}
.pm-body.pm-brain-fs.pm-voice-live .pm-brain-modes,
.pm-body.pm-brain-fs.pm-voice-org-focus .pm-brain-modes {
  display: none !important;
}
.pm-body.pm-brain-fs.pm-voice-live #pmVoiceHud,
.pm-body.pm-brain-fs.pm-voice-org-focus #pmVoiceHud {
  display: block !important;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + var(--pm-safe-b));
  z-index: 96;
  max-width: min(520px, calc(100vw - 24px));
  margin: 0 auto;
  border: 1px solid rgba(197, 160, 89, 0.35);
  border-radius: 14px;
  background: rgba(8, 16, 22, 0.88);
  backdrop-filter: blur(10px);
}
dialog.pm-voice-consent:not([open]) {
  display: none !important;
}
.pm-admin-split { display: flex; flex-direction: column; min-height: 0; flex: 1; overflow: hidden; }
.pm-admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  overflow: auto;
  max-height: 38vh;
  padding: 8px 12px;
  flex: 0 0 auto;
  z-index: 8;
  pointer-events: auto;
}
.pm-admin-nav-btn {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--pm-line);
  background: var(--pm-panel);
  color: inherit;
  font: inherit;
  font-size: 0.78rem;
  white-space: nowrap;
  touch-action: manipulation;
}
.pm-admin-nav-btn.active { border-color: var(--pm-gold); color: var(--pm-gold-soft); }
.pm-admin-nav-primary,
.pm-admin-nav-group-body {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pm-admin-nav-primary { width: 100%; }
.pm-admin-nav-group {
  flex: 0 0 auto;
  border: 1px solid var(--pm-line);
  border-radius: 12px;
  background: rgba(8, 16, 22, 0.72);
}
.pm-admin-nav-group > summary {
  min-height: 44px;
  padding: 11px 13px;
  color: var(--pm-muted);
  cursor: pointer;
  list-style-position: inside;
  font-size: 0.78rem;
  font-weight: 700;
}
.pm-admin-nav-group[open] > summary { color: var(--pm-gold-soft); }
.pm-admin-nav-group-body { padding: 0 8px 8px; }
.pm-admin-list { list-style: none; padding: 0; margin: 0; }
.pm-admin-list li { padding: 10px 0; border-bottom: 1px solid var(--pm-line); }
.pm-admin-list span { display: block; color: var(--pm-muted); font-size: 0.78rem; }
.pm-film-root { flex: 1; overflow: auto; padding: 8px; min-height: 0; }
.pm-btn-danger { background: rgba(180, 70, 70, 0.9); color: #fff; border: 0; }
.pm-util-list { display: flex; flex-direction: column; gap: 4px; }
.pm-news-delay { display: block; font-size: 0.68rem; color: var(--pm-muted); margin-top: 4px; }
.pm-comment { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0; }
.pm-avatar-hit { border: 0; background: transparent; padding: 0; }
.pm-linkish { background: transparent; border: 0; color: inherit; text-align: left; padding: 0; }
body.pm-film-open .pm-dock { opacity: 0.35; pointer-events: none; }

html:is(.waypoint-fold-tablet, .pm-fold-open) .pm-admin-split,
[data-device-mode="fold-tablet"] .pm-admin-split {
  display: grid;
  grid-template-columns: minmax(220px, 34%) 1fr;
  min-height: 0;
}
html:is(.waypoint-fold-tablet, .pm-fold-open) .pm-admin-nav,
[data-device-mode="fold-tablet"] .pm-admin-nav {
  flex-direction: column;
  flex-wrap: nowrap;
  overflow-y: auto;
  max-height: none;
}
html:is(.waypoint-fold-tablet, .pm-fold-open) .pm-admin-nav-btn,
[data-device-mode="fold-tablet"] .pm-admin-nav-btn {
  width: 100%;
  text-align: left;
  border-radius: 10px;
}
html:is(.waypoint-fold-tablet, .pm-fold-open) .pm-admin-nav-primary,
html:is(.waypoint-fold-tablet, .pm-fold-open) .pm-admin-nav-group-body,
[data-device-mode="fold-tablet"] .pm-admin-nav-primary,
[data-device-mode="fold-tablet"] .pm-admin-nav-group-body {
  flex-direction: column;
  flex-wrap: nowrap;
}
html:is(.waypoint-fold-tablet, .pm-fold-open) .pm-admin-nav-group,
[data-device-mode="fold-tablet"] .pm-admin-nav-group {
  width: 100%;
}
html:is(.waypoint-fold-tablet, .pm-fold-open) [data-pm-panel="accounts"],
[data-device-mode="fold-tablet"] [data-pm-panel="accounts"] {
  display: grid;
  grid-template-columns: minmax(280px, 42%) 1fr;
}
html:is(.waypoint-fold-tablet, .pm-fold-open) #pmAcctHome,
[data-device-mode="fold-tablet"] #pmAcctHome { grid-column: 1; overflow: auto; }
html:is(.waypoint-fold-tablet, .pm-fold-open) #pmOpenPositionsCard,
[data-device-mode="fold-tablet"] #pmOpenPositionsCard { grid-column: 2; }
html:is(.waypoint-fold-tablet, .pm-fold-open) .pm-social-feed,
[data-device-mode="fold-tablet"] .pm-social-feed {
  display: grid;
  grid-template-columns: minmax(280px, 42%) 1fr;
  min-height: 0;
  overflow: hidden;
}
html:is(.waypoint-fold-tablet, .pm-fold-open) .pm-social-feed .pm-feed-scroll,
[data-device-mode="fold-tablet"] .pm-social-feed .pm-feed-scroll {
  grid-column: 2;
  min-height: 0;
  overflow-y: auto;
}

.pm-admin-hub-host {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  flex: 1;
  padding: 0;
  -webkit-overflow-scrolling: touch;
}
.pm-admin-hub-host .admin-app-embedded {
  display: flex !important;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}
.pm-admin-hub-host .admin-app-embedded[hidden] {
  display: flex !important;
}
.pm-admin-hub-host .admin-portal-header,
.pm-admin-hub-host .admin-section-nav,
html:is(.waypoint-fold-tablet, .pm-fold-open) .pm-admin-hub-host .admin-section-nav,
[data-device-mode="fold-tablet"] .pm-admin-hub-host .admin-section-nav {
  display: none !important;
}
.pm-admin-hub-host .admin-layout,
html:is(.waypoint-fold-tablet, .pm-fold-open) .pm-admin-hub-host .admin-layout,
[data-device-mode="fold-tablet"] .pm-admin-hub-host .admin-layout,
.pm-admin-hub-host .admin-layout.pete-hub-open {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
  min-width: 0;
  min-height: 0;
  height: auto !important;
  flex: 1;
  gap: 8px !important;
  overflow: hidden;
}
.pm-admin-hub-host .admin-layout.ah-layout-absorbed {
  display: flex !important;
}
.pm-admin-hub-host .ah-desk-host,
.pm-admin-hub-host .ah-layout-toolbar {
  display: none !important;
}
.pm-admin-hub-host .admin-sections {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  pointer-events: auto;
}
.pm-admin-hub-host .everything-pete-nav {
  flex: 0 0 auto;
  max-height: 36vh;
  overflow: auto;
  width: 100%;
}
.pm-admin-hub-host .admin-section,
.pm-admin-hub-host .admin-panel {
  min-width: 0;
  max-width: 100%;
}
.pm-admin-hub-host .admin-members-table {
  min-width: 0 !important;
}
.pm-admin-hub-host .admin-mai-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pm-admin-hub-host dialog.admin-member-activity,
.pm-admin-hub-host .admin-member-activity.is-open {
  inset: 8px;
  width: auto;
  max-width: calc(100vw - 16px);
  max-height: calc(100dvh - 16px);
}
@media (max-width: 699px) {
  .pm-admin-hub-host .admin-cell-layout,
  .pm-admin-hub-host .admin-layout.pete-hub-open {
    display: block;
    grid-template-columns: none;
  }
  .pm-admin-hub-host,
  .pm-admin-hub-host .admin-sections,
  .pm-admin-hub-host .admin-mai-body {
    overflow-x: hidden;
    max-width: 100%;
  }
  .pm-admin-hub-host .admin-member-activity-head,
  .pm-admin-hub-host .admin-mai-identity,
  .pm-admin-hub-host .admin-mai-kpis,
  .pm-admin-hub-host .admin-mai-filters,
  .pm-admin-hub-host .admin-mai-tabs {
    flex-wrap: wrap;
    min-width: 0;
  }
  .pm-admin-hub-host .admin-member-activity-head h2 {
    word-break: break-word;
  }
}
.pm-film-root {
  min-height: 0;
  flex: 1;
  overflow: auto;
  padding: 8px 12px 20px;
}

html.pm-desk-mode [data-pm-panel="pete"] .pm-brain {
  filter: brightness(0.72) saturate(0.85);
  transition: filter 0.6s ease, transform 0.6s ease;
}
html.pm-desk-mode body.pm-desk-active [data-pm-panel="pete"] .pm-brain,
html.pm-desk-mode body.pm-voice-org-focus [data-pm-panel="pete"] .pm-brain {
  filter: none;
}
html.pm-fold-cover .pm-shell {
  max-width: 100%;
}
html.pm-fold-cover .pm-dock-btn {
  min-height: 44px;
}
html.pm-fold-open .pm-shell {
  max-width: none;
}
html.pm-fold-open [data-pm-panel="pete"] .pm-brain-row {
  max-height: none;
  grid-template-columns: minmax(240px, 40%) minmax(0, 1fr);
}
html.pm-fold-open [data-pm-panel="pete"] .pm-brain {
  width: min(36vw, 320px);
  height: min(38vw, 340px);
  max-height: 58vh;
}
html.pm-fold-open body.pm-brain-fs .pm-brain,
html.pm-native.pm-fold-open body.pm-brain-fs .pm-brain {
  width: min(88vw, 640px);
  height: min(88vw, 640px);
  max-height: 78vh;
}
html.pm-iphone-regular .pm-dock-btn,
html.pm-iphone-plus .pm-dock-btn {
  min-height: 44px;
}
body.pm-desk-active .pm-dock {
  opacity: 0.45;
}

/* Phone / Fold widths — keep composer, attach, and voice HUD from colliding */
@media (max-width: 430px) {
  .pm-smsg, .pm-bubble { max-width: min(82%, 22rem); }
  .pm-composer { gap: 6px; }
  .pm-voice-hud { max-width: calc(100% - 16px); }
}
@media (min-width: 820px) and (max-height: 780px) {
  .pm-smsg, .pm-bubble { max-width: min(56%, 26rem); }
  .pm-social-head { flex-wrap: wrap; }
}

/* Founder Helm AOI long-press */
.pm-helm-aoi-strip { display:flex; flex-wrap:wrap; gap:6px; margin:6px 0 4px; }
.pm-helm-aoi-chip {
  border:1px solid rgba(126,200,255,0.35);
  background:rgba(126,200,255,0.08);
  color:inherit; font-size:0.7rem; padding:6px 8px; border-radius:6px;
  touch-action:manipulation; user-select:none;
}
.pm-helm-aoi-bubble {
  margin:4px 0 8px; padding:8px 10px; border-radius:8px;
  background:rgba(12,18,28,0.92); border:1px solid rgba(197,160,89,0.4);
  font-size:0.78rem; line-height:1.35;
}
.pm-pete-other { margin-top:10px; }
.pm-eyebrow { letter-spacing:0.12em; font-size:0.65rem; opacity:0.7; margin:8px 0 4px; }


/* Founder Helm AOI long-press */
.pm-helm-aoi-strip { display:flex; flex-wrap:wrap; gap:6px; margin:6px 0 4px; }
.pm-helm-aoi-chip { border:1px solid rgba(126,200,255,0.35); background:rgba(126,200,255,0.08); color:inherit; font-size:0.7rem; padding:6px 8px; border-radius:6px; touch-action:manipulation; user-select:none; }
.pm-helm-aoi-bubble { margin:4px 0 8px; padding:8px 10px; border-radius:8px; background:rgba(12,18,28,0.92); border:1px solid rgba(197,160,89,0.4); font-size:0.78rem; line-height:1.35; }
.pm-pete-other { margin-top:10px; }
.pm-eyebrow { letter-spacing:0.12em; font-size:0.65rem; opacity:0.7; margin:8px 0 4px; }

.pm-acct-journal { z-index: 46; }
.pm-acct-journal-card { display: grid; gap: 10px; }
.pm-acct-journal-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.pm-acct-cal-toolbar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.pm-acct-cal-toolbar strong { flex: 1; text-align: center; }
.pm-acct-cal-weekdays,
.pm-acct-cal-grid {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px;
}
.pm-acct-cal-weekdays span {
  text-align: center; font-size: 0.65rem; letter-spacing: 0.06em; opacity: 0.65;
}
.pm-acct-cal-cell {
  min-height: 54px; border-radius: 8px; border: 1px solid var(--pm-line);
  background: rgba(13, 27, 42, 0.88); color: inherit; padding: 4px 3px;
  display: grid; align-content: start; gap: 1px; text-align: left;
}
.pm-acct-cal-cell.is-empty { border: 0; background: transparent; }
.pm-acct-cal-cell[disabled] { opacity: 0.45; }
.pm-acct-cal-cell.has-trades { opacity: 1; }
.pm-acct-cal-cell.is-win { border-color: rgba(80, 200, 120, 0.45); }
.pm-acct-cal-cell.is-loss { border-color: rgba(220, 90, 90, 0.45); }
.pm-acct-cal-cell.is-today { outline: 1px solid rgba(197, 160, 89, 0.7); }
.pm-acct-cal-cell.is-on { background: rgba(197, 160, 89, 0.16); }
.pm-acct-cal-cell strong { font-size: 0.78rem; }
.pm-acct-cal-cell em { font-style: normal; font-size: 0.68rem; }
.pm-acct-cal-cell small { font-size: 0.58rem; opacity: 0.7; }
.pm-acct-cal-foot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pm-acct-trade-list { display: grid; gap: 8px; margin-top: 10px; }
.pm-acct-trade {
  padding: 10px; border-radius: 12px; background: rgba(13, 27, 42, 0.88);
  border: 1px solid var(--pm-line);
}
.pm-acct-trade header { display: flex; justify-content: space-between; gap: 8px; }
.pm-acct-trade p { margin: 4px 0 0; font-size: 0.78rem; opacity: 0.8; }
.pm-win { color: #7dffb3; }
.pm-loss { color: #ff8b8b; }

