/* Pete Watch — large switch above video + mid-desk Tier 1 alert */

.pete-watch-switch-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 10px;
  padding: 10px 10px 8px;
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(24, 30, 42, 0.95), rgba(8, 12, 20, 0.92));
}

.pete-watch-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #f0e6c8;
  cursor: pointer;
  text-align: left;
}

.pete-watch-switch-track {
  position: relative;
  width: 64px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 999px;
  background: #2a3140;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.pete-watch-switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #c5c0b4;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, background 0.2s ease;
}

.pete-watch-switch.is-on .pete-watch-switch-track,
.pete-watch-switch-wrap.is-on .pete-watch-switch-track {
  background: linear-gradient(180deg, #d4b056, #a07a28);
  border-color: rgba(240, 214, 140, 0.7);
}

.pete-watch-switch.is-on .pete-watch-switch-knob {
  transform: translateX(30px);
  background: #0d141f;
}

.pete-watch-switch-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pete-watch-switch-copy strong {
  font-family: Cinzel, "Times New Roman", serif;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pete-databento-switch {
  margin-top: 2px;
  border-top: 1px solid rgba(201, 162, 39, 0.18);
}
.pete-watch-switch-copy span {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(240, 230, 200, 0.7);
}

.pete-watch-switch.is-on .pete-watch-switch-copy span {
  color: #6fdc8c;
}

.pete-watch-price {
  margin: 0;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  color: #f0e6c8;
  letter-spacing: 0.04em;
}

.pete-watch-cadence {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.35;
  color: var(--text-muted, #8a93a3);
}

.watch-toggle-legacy {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.pete-watch-alert {
  position: fixed;
  inset: 0;
  z-index: 11500;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 8, 14, 0.62);
  backdrop-filter: blur(4px);
}

.pete-watch-alert[hidden] {
  display: none !important;
}

.pete-watch-alert-card {
  width: min(520px, calc(100vw - 32px));
  padding: 22px 22px 18px;
  border-radius: 16px;
  border: 1px solid rgba(201, 162, 39, 0.55);
  background: linear-gradient(180deg, #161c28 0%, #0a1018 100%);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  color: #f0e6c8;
}

.pete-watch-alert-card h2 {
  margin: 4px 0 8px;
  font-family: Cinzel, Georgia, serif;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.pete-watch-alert-meta {
  margin: 0 0 10px;
  font-size: 0.82rem;
  color: rgba(240, 230, 200, 0.78);
}

.pete-watch-alert-spoken {
  margin: 0 0 16px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.pete-watch-alert-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pete-watch-alert-actions .btn {
  flex: 1 1 auto;
  min-width: 120px;
}

body.pete-material-thesis-alert .deck-workspace::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 10800;
  pointer-events: none;
  background: rgba(255, 42, 154, 0.2);
  box-shadow: inset 0 0 90px rgba(255, 42, 154, 0.34);
  animation: pete-material-workspace-flash 2.4s ease-out forwards;
}

body.pete-tier1-opportunity-alert:not(.pete-material-thesis-alert) .deck-workspace::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 10790;
  pointer-events: none;
  background: rgba(35, 135, 255, 0.16);
  box-shadow: inset 0 0 90px rgba(35, 135, 255, 0.3);
  animation: pete-tier1-workspace-flash 2.2s ease-out forwards;
}

@keyframes pete-tier1-workspace-flash {
  0%, 20% { opacity: 0.88; }
  100% { opacity: 0; }
}

@keyframes pete-material-workspace-flash {
  0%, 18% { opacity: 0.9; }
  38% { opacity: 0.26; }
  58% { opacity: 0.72; }
  100% { opacity: 0; }
}

body.helm-mode .pete-watch-switch-wrap {
  margin-bottom: 8px;
}

body.helm-mode .pete-watch-switch {
  padding: 4px 6px;
}

body.helm-mode .pete-watch-switch-track {
  width: 52px;
  height: 28px;
}

body.helm-mode .pete-watch-switch-knob {
  width: 22px;
  height: 22px;
}

body.helm-mode .pete-watch-switch.is-on .pete-watch-switch-knob {
  transform: translateX(24px);
}

body.helm-mode .pete-watch-price {
  font-size: 0.9rem;
}

.pete-live-watch {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 12px;
  position: relative;
}

.pete-companion-mode-btn {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(201, 162, 39, 0.32);
  background: rgba(10, 16, 24, 0.88);
  color: #e8d8a8;
  cursor: pointer;
  text-align: left;
}

.pete-companion-mode-btn:hover,
.pete-companion-mode-btn:focus-visible {
  outline: none;
  border-color: rgba(201, 162, 39, 0.55);
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.18);
}

.pete-companion-mode-title {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

.pete-companion-mode-state {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 216, 168, 0.7);
  white-space: nowrap;
}

.pete-companion-mode-btn.is-on {
  border-color: rgba(70, 220, 140, 0.45);
  box-shadow: 0 0 0 1px rgba(70, 220, 140, 0.22);
}

.pete-companion-mode-btn.is-on .pete-companion-mode-state {
  color: #6fdc8c;
}

.pete-watch-live-btn {
  width: 100%;
  min-height: 34px;
  letter-spacing: 0.04em;
}

.pete-watch-live-btn.is-on {
  box-shadow: 0 0 0 1px rgba(70, 220, 140, 0.45), 0 0 14px rgba(70, 220, 140, 0.18);
}

.pete-watch-next,
.pete-watch-source {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.pete-watch-popover {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 11400;
}

.pete-watch-popover[hidden] {
  display: none !important;
}

.pete-watch-popover-panel {
  width: 100%;
  max-width: 280px;
  padding: 12px 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(201, 162, 39, 0.32);
  background: linear-gradient(180deg, #0b141c 0%, #070c12 100%);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.pete-watch-drawer {
  position: absolute;
  inset: auto;
  z-index: 11400;
}

.pete-watch-drawer[hidden] {
  display: none;
}

.pete-watch-drawer-backdrop {
  display: none;
}

.pete-watch-drawer-panel {
  position: relative;
  top: auto;
  right: auto;
  width: 100%;
  height: auto;
  padding: 12px;
  background: linear-gradient(180deg, #071018 0%, #04080d 100%);
  border: 1px solid rgba(201, 162, 39, 0.28);
  border-radius: 10px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  overflow: visible;
}

.pete-watch-drawer-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px 8px;
  margin-bottom: 8px;
}

.pete-watch-drawer-head h2 {
  flex: 1 1 120px;
  margin: 0;
  font-size: 0.82rem;
  color: #f0e6c8;
}

.pete-watch-drawer-copy {
  margin: 0 0 10px;
  font-size: 0.72rem;
}

.pete-watch-source-note {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid rgba(201, 162, 39, 0.28);
  border-radius: 8px;
  font-size: 0.8rem;
  color: #d7c48a;
}

.pete-watch-intervals {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.pete-watch-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: 8px;
  cursor: pointer;
  min-height: 32px;
  font-size: 0.78rem;
}

.pete-watch-opt:has(input:checked) {
  border-color: rgba(201, 162, 39, 0.7);
  background: rgba(201, 162, 39, 0.08);
}

.pete-watch-opt:has(input:disabled) {
  opacity: 0.55;
  cursor: not-allowed;
}

.pete-watch-pro {
  margin-left: auto;
  font-size: 0.62rem;
  font-style: normal;
  letter-spacing: 0.12em;
  color: #c5a059;
  border: 1px solid rgba(197, 160, 89, 0.45);
  border-radius: 999px;
  padding: 2px 7px;
}

.pete-watch-change-modal {
  position: fixed;
  inset: 0;
  z-index: 11600;
  display: grid;
  place-items: center;
}

.pete-watch-change-modal[hidden] {
  display: none;
}

.pete-watch-change-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 12, 0.72);
}

.pete-watch-change-card {
  position: relative;
  width: min(520px, calc(100vw - 28px));
  max-height: min(86vh, 720px);
  overflow-y: auto;
  padding: 22px 22px 18px;
  border: 1px solid rgba(255, 70, 180, 0.45);
  border-radius: 12px;
  background: linear-gradient(180deg, #120814 0%, #07060c 100%);
  box-shadow: 0 0 28px rgba(255, 70, 180, 0.18);
}

.pete-watch-change-card h2 {
  margin: 4px 0 14px;
  color: #ff8ad4;
}

.pete-watch-change-body h3 {
  margin: 14px 0 4px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: #c5a059;
}

.pete-watch-change-body p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
}

.plan-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.plan-card-head .eyebrow {
  margin: 0;
}

.plan-updated {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-align: right;
  max-width: 62%;
}

.pete-watch-heartbeat {
  position: relative;
  display: none;
  flex: 0 0 auto;
  max-width: 220px;
}
body.waypoint-founder-login .pete-watch-heartbeat:not([hidden]) {
  display: block;
}
.pete-watch-heartbeat-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 4px 8px;
  border: 1px solid rgba(125, 206, 160, 0.28);
  border-radius: 999px;
  background: rgba(8, 16, 22, 0.72);
  color: inherit;
  font: inherit;
  letter-spacing: 0.05em;
  cursor: pointer;
  white-space: nowrap;
}
.pete-watch-heartbeat-btn span {
  font-size: 0.62rem;
  font-weight: 700;
}
.pete-watch-heartbeat-watching { color: #7dcea0; }
.pete-watch-heartbeat-degraded { color: #e8c36a; }
.pete-watch-heartbeat-degraded .pete-watch-heartbeat-btn {
  border-color: rgba(232, 195, 106, 0.4);
}
.pete-watch-heartbeat-offline { color: #e06b6b; }
.pete-watch-heartbeat-offline .pete-watch-heartbeat-btn {
  border-color: rgba(224, 107, 107, 0.4);
}
.pete-watch-heartbeat[data-in-trade="1"] .pete-watch-heartbeat-btn::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: #3dff8a;
  box-shadow: 0 0 8px rgba(61, 255, 138, 0.85);
  animation: pete-watch-in-trade-pulse 1.4s ease-in-out infinite;
}
@keyframes pete-watch-in-trade-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.pete-watch-heartbeat-details {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 40;
  min-width: 220px;
  padding: 8px 10px;
  border: 1px solid rgba(201, 162, 39, 0.28);
  border-radius: 8px;
  background: rgba(8, 12, 18, 0.96);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.pete-watch-heartbeat-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 10px;
  margin: 0;
  font-size: 0.6rem;
  letter-spacing: 0.03em;
}
.pete-watch-heartbeat-grid dt {
  margin: 0;
  color: #8b93a3;
}
.pete-watch-heartbeat-grid dd {
  margin: 0;
  color: #f0e6c8;
}

@media (max-width: 720px) {
  .pete-watch-alert-actions .btn {
    min-width: 46%;
  }

  .pete-watch-popover,
  .pete-watch-popover-panel {
    max-width: none;
  }
}
