/* Founder Pete Compass — shared instrument chrome (Hub / desktop / Z Fold / hologram) */

.pete-compass {
  --pc-bg: #0c1218;
  --pc-ink: #e8eef4;
  --pc-muted: #8b9aab;
  --pc-line: rgba(232, 238, 244, 0.14);
  --pc-tier-fill: #4a5560;
  --pc-needle: 0deg;
  color: var(--pc-ink);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(26, 107, 74, 0.18), transparent 55%),
    linear-gradient(180deg, #121a22 0%, var(--pc-bg) 100%);
  border: 1px solid var(--pc-line);
  border-radius: 18px;
  padding: 14px 16px 16px;
  font-family: "Segoe UI", "IBM Plex Sans", system-ui, sans-serif;
  max-width: 420px;
}

.pete-compass[data-fresh="LIVE"] .pc-dot { background: #2ecc71; box-shadow: 0 0 8px #2ecc71; }
.pete-compass[data-fresh="DEGRADED"] .pc-dot { background: #f1c40f; }
.pete-compass[data-fresh="STALE"],
.pete-compass[data-fresh="OFFLINE"] .pc-dot { background: #e74c3c; }

.pc-head {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pc-muted);
  margin-bottom: 10px;
}
.pc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e74c3c;
  display: inline-block;
}
.pc-session, .pc-age { margin-left: auto; }

.pc-dial {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 8px auto 4px;
}
.pc-gauge-arc {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background:
    conic-gradient(from 250deg, transparent 0 40deg, var(--pc-tier-fill) 40deg 140deg, transparent 140deg 360deg);
  opacity: 0.55;
  mask: radial-gradient(farthest-side, transparent calc(100% - 16px), #000 calc(100% - 15px));
}
.pc-needle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 78px;
  margin-left: -1.5px;
  margin-top: -78px;
  background: linear-gradient(#fff, #9fb4c7);
  transform-origin: bottom center;
  transform: rotate(var(--pc-needle));
  transition: transform 480ms cubic-bezier(0.22, 0.61, 0.36, 1);
  border-radius: 2px;
}
.pc-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: #dfe7ef;
  box-shadow: 0 0 0 4px rgba(12, 18, 24, 0.8);
}
.pc-readout {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  text-align: center;
}
.pc-arrow { font-size: 28px; line-height: 1; }
.pc-bias { font-size: 18px; font-weight: 700; letter-spacing: 0.06em; }
.pc-conf { font-size: 34px; font-weight: 700; line-height: 1; }

.pc-tier, .pc-state {
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pc-tier { font-size: 13px; color: var(--pc-tier-fill); font-weight: 700; margin-top: 4px; }
.pc-state { font-size: 14px; margin: 4px 0 10px; }

.pc-ring {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  font-size: 11px;
  text-align: center;
  color: var(--pc-muted);
  margin-bottom: 10px;
}

.pc-aoi-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.pc-aoi {
  border: 1px solid var(--pc-line);
  border-radius: 10px;
  padding: 8px;
  font-size: 12px;
}
.pc-aoi.is-preferred { border-color: rgba(46, 204, 113, 0.55); background: rgba(46, 204, 113, 0.08); }
.pc-aoi-head { display: flex; justify-content: space-between; align-items: center; }
.pc-aoi-side { font-weight: 700; letter-spacing: 0.05em; }
.pc-aoi-zone { font-size: 13px; margin: 4px 0; }
.pc-aoi-meta, .pc-accounts, .pc-wait { font-size: 12px; color: var(--pc-muted); }
.pc-pill {
  font-size: 9px;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(46, 204, 113, 0.2);
  color: #9dffc4;
}
.pc-accounts { margin: 6px 0; line-height: 1.45; }
.pc-wait { margin: 8px 0 10px; }
.pc-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-btn {
  appearance: none;
  border: 1px solid var(--pc-line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--pc-ink);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 11px;
  letter-spacing: 0.05em;
  cursor: pointer;
}
.pc-btn:hover { background: rgba(255, 255, 255, 0.08); }

.pc-quicklook {
  margin-top: 12px;
  border-top: 1px solid var(--pc-line);
  padding-top: 10px;
  font-size: 13px;
  line-height: 1.45;
}
.pc-quicklook h3 {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
}
.pc-quicklook ul { margin: 4px 0 8px 18px; padding: 0; }

.pete-compass[data-profile="TV_16_9"],
.pete-compass[data-profile="HOLOGRAM_DARK"],
.pete-compass[data-profile="BRAIN_COMPASS"] {
  max-width: none;
  width: min(920px, 96vw);
  padding: 28px;
}
.pete-compass[data-profile="Z_FOLD_LOCK"] {
  max-width: 360px;
  padding: 10px 12px;
}
.pete-compass[data-profile="Z_FOLD_LOCK"] .pc-dial { width: 160px; height: 160px; }
.pete-compass[data-profile="HOLOGRAM_TRANSPARENT"] {
  background: transparent;
  border-color: rgba(180, 255, 220, 0.25);
  box-shadow: 0 0 40px rgba(46, 204, 113, 0.12);
}

.pete-compass.is-offline { opacity: 0.85; }

/* Analysis Hub host — Founder authoritative dial (does not replace LAST ANALYSIS pair) */
.founder-pete-compass-host {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(232, 238, 244, 0.12);
}
.founder-pete-compass-label {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #9dffc4;
}
.founder-pete-compass-mount .pete-compass[data-profile="ANALYSIS_HUB"] {
  max-width: 100%;
  width: 100%;
}
.founder-pete-compass-mount .pete-compass[data-profile="ANALYSIS_HUB"] .pc-dial {
  width: 180px;
  height: 180px;
}
body:not(.waypoint-founder-login) .founder-pete-compass-host {
  display: none !important;
}
