/*
 * Promotion Metrics platform theme contract.
 *
 * Change these tokens to update the shared shell, public authentication and
 * bridged standalone applications together. Product accents remain local so
 * each Flow application can keep its own identity.
 */
:root {
  --pm-theme-sidebar: #102943;
  --pm-theme-sidebar-deep: #0b2239;
  --pm-theme-sidebar-panel: #173753;
  --pm-theme-accent: #008b82;
  --pm-theme-accent-bright: #4fd0c5;
  --pm-theme-ink: #14253d;
  --pm-theme-muted: #687b91;
  --pm-theme-line: #d9e4ec;
  --pm-theme-canvas: #f3f7f9;
  --pm-theme-surface: #ffffff;
  --pm-theme-danger: #9b3528;
  --pm-theme-radius-sm: 8px;
  --pm-theme-radius: 12px;
  --pm-theme-shadow: 0 12px 32px rgba(16, 41, 67, 0.07);
  --pm-theme-font: Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Shared-shell aliases. */
  --pm-navy: var(--pm-theme-sidebar);
  --pm-navy-deep: var(--pm-theme-sidebar-deep);
  --pm-ink: var(--pm-theme-ink);
  --pm-muted: var(--pm-theme-muted);
  --pm-line: var(--pm-theme-line);
  --pm-bg: var(--pm-theme-canvas);
  --pm-radius: var(--pm-theme-radius);
  --pm-shadow: var(--pm-theme-shadow);

  /* Public-auth aliases. */
  --auth-navy: var(--pm-theme-sidebar);
  --auth-deep: var(--pm-theme-sidebar-deep);
  --auth-teal: var(--pm-theme-accent);
  --auth-aqua: var(--pm-theme-accent-bright);
  --auth-ink: var(--pm-theme-ink);
  --auth-muted: var(--pm-theme-muted);
  --auth-line: var(--pm-theme-line);
  --auth-wash: var(--pm-theme-canvas);

  /* Standalone-app aliases retained for compatibility. */
  --nav: var(--pm-theme-sidebar);
  --navy: var(--pm-theme-sidebar);
  --ink: var(--pm-theme-ink);
  --muted: var(--pm-theme-muted);
  --line: var(--pm-theme-line);
  --bg: var(--pm-theme-canvas);
  --cyan: var(--pm-theme-accent);
  --teal: var(--pm-theme-accent);
  --program-primary: var(--pm-theme-sidebar);
  --program-accent: var(--pm-theme-accent);
}

html,
body {
  font-family: var(--pm-theme-font);
}

/* Original Promotion Metrics lockup shared by every shell. */
.pm-suite-brand,
.pm-auth-suite,
.pm-legacy-suite-brand {
  text-decoration: none;
}

.pm-legacy-suite-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.pm-legacy-suite-brand > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid var(--pm-theme-accent-bright);
  border-radius: 9px;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.pm-legacy-suite-brand b,
.pm-legacy-suite-brand small {
  display: block;
}

.pm-legacy-suite-brand b {
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.17em;
}

.pm-legacy-suite-brand small {
  color: #9eb2c1;
  font-size: 7px;
  letter-spacing: 0.35em;
}

/* Organization selection belongs in the left application menu. */
.pm-legacy-org-menu {
  margin: 0 0 15px;
  color: #fff;
}

.pm-legacy-org-menu summary,
.pm-legacy-org-static {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: var(--pm-theme-sidebar-panel);
  color: #fff;
  cursor: pointer;
  list-style: none;
}

.pm-legacy-org-menu summary::-webkit-details-marker {
  display: none;
}

.pm-legacy-org-menu summary > span,
.pm-legacy-org-static > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--pm-theme-accent);
  font-size: 8px;
  font-weight: 900;
}

.pm-legacy-org-menu summary > b,
.pm-legacy-org-static > b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}

.pm-legacy-org-menu summary::after {
  content: "⌄";
  margin-left: auto;
  color: #b9cad6;
}

.pm-legacy-org-list {
  display: grid;
  gap: 3px;
  max-height: 240px;
  margin-top: 5px;
  padding: 6px;
  overflow-y: auto;
  border: 1px solid #ffffff1c;
  border-radius: 9px;
  background: #0d263e;
}

.pm-legacy-org-list button {
  width: 100%;
  min-height: 34px;
  padding: 7px 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #b9cad6;
  text-align: left;
  font: 700 10px/1.3 var(--pm-theme-font);
  cursor: pointer;
}

.pm-legacy-org-list button:hover,
.pm-legacy-org-list button.current {
  background: #ffffff14;
  color: #fff;
}

/* A stale dock from cached JavaScript must never reappear. */
.org-dock,
.org-bubble {
  display: none !important;
}
