/* Contacts keep the app footprint; shared stage geometry is in app-stage.css. */
#screen [data-tab='compatibility']:is(.active, [aria-selected='true']) {
  color: #b899ff;
  background-color: #b899ff20;
}
#screen [data-tab='today']:is(.active, [aria-selected='true']),
#screen
  .pp-top-tabs
  [data-pp-section='sky']:is(.active, [aria-selected='true']) {
  color: #8db8de;
  background-color: #8db8de20;
}
.cc-contact-carousel {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  height: 64px;
  box-sizing: border-box;
  border-top: 1px solid
    color-mix(in srgb, var(--contact-accent, #8db8de) 25%, transparent);
}
.cc-contact-viewport {
  flex: 1;
  min-width: 0;
  position: relative;
}
.cc-contact-slides {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  width: 100%;
}
.cc-contact-slides::-webkit-scrollbar {
  display: none;
}
.cc-contact-card {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  flex: 0 0 100%;
  min-width: 0;
  height: 63px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  scroll-snap-align: start;
}
.cc-contact-carousel[data-multiple='true'] .cc-contact-card {
  padding-top: 4px;
  padding-bottom: 16px;
}
.cc-contact-card:focus-visible {
  outline: 2px solid var(--contact-accent, #8db8de);
  outline-offset: -2px;
  border-radius: 6px;
}
.cc-strip-target {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 24px;
}
.cc-strip-lock {
  width: 28px;
  flex-shrink: 0;
  color: #e7c58c;
  font-size: 26px;
}
.cc-strip-lock > svg {
  width: 26px;
  height: 26px;
}
.cc-strip-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.cc-strip-copy > strong {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: #efe8f5;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.cc-strip-copy > small {
  font-size: 9px;
  line-height: 14px;
  color: #ac9cb7;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.cc-strip-open {
  font-size: 11px;
  color: #ac9cb7;
}
.cc-strip-aspect {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 68px;
}
.cc-strip-aspect > i {
  font-size: 23px;
  line-height: 25px;
  font-style: normal;
}
.cc-strip-aspect > small {
  font-size: 10px;
  line-height: 13px;
}
.cc-contact-arrow {
  all: unset;
  cursor: pointer;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  font-size: 22px;
  color: var(--contact-accent, #8db8de);
}
.cc-contact-arrow:disabled {
  opacity: 0;
  pointer-events: none;
}
.cc-contact-arrow:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -5px;
  border-radius: 12px;
}
.cc-contact-controls {
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--contact-accent, #8db8de);
  pointer-events: none;
}
.cc-contact-carousel[data-multiple='false'] .cc-contact-controls {
  display: none;
}
.cc-contact-track {
  height: 2px;
  width: 48px;
  background: #ffffff20;
  border-radius: 2px;
  overflow: hidden;
}
.cc-contact-track > i {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.15s ease;
}
.cc-contact-count {
  font-size: 8px;
  line-height: 10px;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 359px) {
  .cc-contact-carousel[data-multiple='true'] .cc-strip-target {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cc-contact-track > i {
    transition: none;
  }
}
.cc-contact-diagram {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 16px 0;
  flex: 1;
}
.cc-contact-node {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}
.cc-contact-node > i,
.cc-contact-node > button {
  box-sizing: border-box;
  width: 48px;
  height: 48px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 29px;
  border: 1px solid #b899ff30;
  border-radius: 50%;
  background: #b899ff0a;
}
.cc-contact-node > strong {
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  color: #efe8f5;
}
.cc-contact-node > small {
  font-size: 10px;
  line-height: 15px;
  color: #b7a8c2;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cc-contact-aspect > i,
.cc-contact-aspect > button {
  color: var(--contact-aspect, #83c8b5);
  border-color: transparent;
  background: transparent;
}
.cc-contact-unresolved {
  font-size: 13px;
  line-height: 21px;
  padding: 28px 8px;
  color: #b7a8c2;
}
.cc-contact-story {
  border: 1px solid #b899ff25;
  border-radius: 20px;
  padding: 0 12px;
}
.cc-change-why > h2 {
  font-size: 23px;
  line-height: 1.3;
  margin: 10px 0 20px;
}
.cc-change-why .read-card p {
  font-size: 16px;
  line-height: 1.65;
}
.cc-change-kicker {
  display: block;
  color: var(--accent);
  margin-top: 25px;
  font-size: 10px;
  letter-spacing: 0.14em;
  font-weight: 600;
}
.cc-change-points {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: point;
}
.cc-change-points > li {
  counter-increment: point;
  position: relative;
  padding: 10px 0 16px 34px;
}
.cc-change-points > li::before {
  content: '0' counter(point);
  position: absolute;
  left: 0;
  top: 14px;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.cc-change-points strong {
  font-size: 16px;
  line-height: 24px;
}
.cc-change-points p {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 24px;
  color: #c8bbd2;
}
.cc-change-closing {
  font-size: 13px;
  line-height: 21px;
  color: #ad9fb9;
  padding: 12px 0;
}
.cc-change-proof {
  border-block: 1px solid #ffffff12;
  padding: 16px 0;
}
.cc-change-proof summary {
  min-height: 44px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cc-change-proof summary::after {
  content: '+';
  color: var(--accent);
}
.cc-change-proof[open] summary::after {
  content: '−';
}
.cc-change-proof p {
  font-size: 14px;
  line-height: 23px;
  color: #c8bbd2;
}
@media (prefers-reduced-motion: reduce) {
  .cc-contact-track > i {
    transition: none;
  }
}
#why .td-radar-contact :is(button.td-contact-planet, button.td-radar-aspect) {
  appearance: none;
  background: transparent;
  border: 0;
  color: inherit;
  padding: 8px;
  min-height: 44px;
  cursor: pointer;
  font: inherit;
}
#why .td-radar-contact button:focus-visible,
.cc-contact-node > button:focus-visible {
  outline: 2px solid var(--contact-accent, #8db8de);
}

.cc-contact-evidence + .cc-contact-evidence {
  border-top: 1px solid #b899ff20;
  padding-top: 16px;
}
.cc-contact-evidence > small {
  color: #b899ff;
  font-size: 10px;
  letter-spacing: 1px;
}
button.cc-contact-node {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
button.cc-contact-node:focus-visible {
  outline: 2px solid var(--contact-accent, #8db8de);
  outline-offset: 3px;
  border-radius: 12px;
}

.cc-portrait-changes {
  margin: 24px 0;
}
.cc-portrait-changes > h3 {
  font-size: 20px;
  line-height: 1.35;
  margin: 0 0 18px;
  color: #efe8f5;
}
.cc-portrait-change-cards {
  display: grid;
  gap: 12px;
}

/* Match the deployed TodaySourceStage, TodayContactChart and TodayOpening.
   Scope both previews together so personal Sky cannot inherit a different grid. */
:is(#screen[data-temporal='true'], #sky-now[data-personal-sky]) {
  --cc-heading-height: 114px;
  --cc-wave-height: 179px;
}
:is(#screen[data-temporal='true'], #sky-now[data-personal-sky]) .td-radar-hero {
  margin: 0 2px !important;
  width: calc(100% - 4px) !important;
  box-sizing: border-box;
  padding: 0 !important;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
}
:is(#screen[data-temporal='true'], #sky-now[data-personal-sky])
  .td-radar-hero::before,
:is(#screen[data-temporal='true'], #sky-now[data-personal-sky])
  .td-radar-hero::after,
:is(#screen[data-temporal='true'], #sky-now[data-personal-sky])
  .td-radar-countdown::before {
  display: none;
}
:is(#screen[data-temporal='true'], #sky-now[data-personal-sky])
  .td-radar-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 32px var(--cc-heading-height) 64px 91px var(
      --cc-wave-height
    );
  gap: 0;
  padding: 0;
  min-width: 0;
}
:is(#screen[data-temporal='true'], #sky-now[data-personal-sky])
  .td-radar-overview
  * {
  box-sizing: border-box;
  text-shadow: none;
}
:is(#screen[data-temporal='true'], #sky-now[data-personal-sky])
  .td-radar-eyebrow {
  font-size: 9px;
  line-height: 13px;
  font-weight: 700;
  letter-spacing: 1.1px;
  gap: 12px;
}
:is(#screen[data-temporal='true'], #sky-now[data-personal-sky])
  .td-radar-eyebrow
  > strong {
  padding: 5px 10px;
  font-size: 9px;
  line-height: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  border-radius: 18px;
  text-transform: none;
}
:is(#screen[data-temporal='true'], #sky-now[data-personal-sky])
  .td-radar-planet-scene {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 0;
  height: var(--cc-heading-height);
  margin: 0;
  gap: 8px;
}
.cc-app-planet-art {
  flex: 0 0 136px;
  width: 136px;
  height: 114.24px;
  overflow: visible;
}
:is(#screen[data-temporal='true'], #sky-now[data-personal-sky])
  .td-radar-planet-scene
  > div {
  flex: 1;
  min-width: 0;
}
:is(#screen[data-temporal='true'], #sky-now[data-personal-sky])
  .td-radar-planet-scene
  small {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  line-height: 13px;
  color: #b3a5bc;
  letter-spacing: 1.2px;
}
:is(#screen[data-temporal='true'], #sky-now[data-personal-sky])
  .td-radar-planet-scene
  small
  i {
  font-size: 15px;
  line-height: 15px;
  font-style: normal;
}
:is(#screen[data-temporal='true'], #sky-now[data-personal-sky])
  .td-radar-hero
  .td-radar-planet-scene
  h3 {
  margin: 0;
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  color: var(--source-accent);
  letter-spacing: -0.6px;
  text-transform: uppercase;
}
:is(#screen[data-temporal='true'], #sky-now[data-personal-sky])
  .td-radar-hero
  .td-radar-planet-scene
  p {
  margin: 0;
  font-size: 11px;
  line-height: 16px;
  color: #b3a5bc !important;
}
:is(#screen[data-temporal='true'], #sky-now[data-personal-sky])
  .td-radar-overview
  > .td-radar-hero-timing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 91px;
  min-height: 0;
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid #ffffff16;
}
:is(#screen[data-temporal='true'], #sky-now[data-personal-sky])
  .td-radar-overview
  .td-radar-hero-timing
  > strong {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  height: 76px;
  min-height: 0;
  padding: 0;
  margin: 0;
  background: none;
  border: 0;
  border-radius: 0;
  font-size: 18px;
  line-height: 24px;
  color: var(--source-accent);
}
:is(#screen[data-temporal='true'], #sky-now[data-personal-sky]) .td-peak-label {
  font-size: 11px;
  line-height: 16px;
  font-weight: 600;
}
:is(#screen[data-temporal='true'], #sky-now[data-personal-sky])
  .td-radar-hero-timing
  time {
  font-size: 23px;
  line-height: 32px;
  font-weight: 700;
  letter-spacing: -0.4px;
  font-variant-numeric: tabular-nums;
}
:is(#screen[data-temporal='true'], #sky-now[data-personal-sky])
  .td-radar-hero-timing
  time
  small {
  font-size: 12px;
  font-weight: 500;
}
:is(#screen[data-temporal='true'], #sky-now[data-personal-sky])
  .td-radar-hero-timing
  > span {
  max-width: 125px;
  font-size: 11px;
  line-height: 16px;
  text-align: right;
  color: #ac9cb7;
}
.ps-time-summary {
  display: grid;
  gap: 2px;
}
.ps-peak-value {
  font-size: 18px;
  line-height: 24px;
}
:is(#screen[data-temporal='true'], #sky-now[data-personal-sky])
  .td-radar-overview
  > .td-radar-wave {
  display: block;
  height: var(--cc-wave-height);
  padding: 10px 0 0;
  margin: 0;
  overflow: hidden;
}
:is(#screen[data-temporal='true'], #sky-now[data-personal-sky])
  .td-radar-wave
  > small {
  display: block;
  height: 24px;
  text-align: left;
  color: var(--source-accent);
  font-size: 9px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 1.2px;
}
:is(#screen[data-temporal='true'], #sky-now[data-personal-sky])
  .td-radar-wave
  svg {
  display: block;
  width: 100%;
  height: 54px;
  max-height: 54px;
  margin: 5px 0 8px;
  filter: none;
}
:is(#screen[data-temporal='true'], #sky-now[data-personal-sky])
  .td-radar-wave
  .td-wave-labels {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  margin: 0;
  font-size: 9px;
  line-height: 14px;
  color: #ac9cb7;
}
:is(#screen[data-temporal='true'], #sky-now[data-personal-sky])
  .td-radar-wave-contact {
  margin-top: 4px;
  font-size: 10px;
  line-height: 15px;
  color: #ac9cb7;
}
:is(#screen[data-temporal='true'], #sky-now[data-personal-sky])
  .td-planet-picker {
  margin: 20px 0 0;
  padding: 13px 0 0;
  border-top: 1px solid #ffffff16;
}
:is(#screen[data-temporal='true'], #sky-now[data-personal-sky])
  .td-planet-navigation {
  display: flex;
  gap: 5px;
  padding: 0 7px 7px;
  margin: 0;
  max-width: none;
  border: 0;
  justify-content: safe center;
  overflow-x: auto;
}
:is(#screen[data-temporal='true'], #sky-now[data-personal-sky])
  .td-planet-option {
  box-sizing: border-box;
  min-width: 60px;
  min-height: 94px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 2px 4px 5px;
  border: 1px solid transparent;
  border-radius: 15px;
}
:is(#screen[data-temporal='true'], #sky-now[data-personal-sky])
  .td-planet-option[aria-pressed='true'] {
  border-color: #8db8de66;
  background: #8db8de12;
}
:is(#screen[data-temporal='true'], #sky-now[data-personal-sky])
  .td-planet-option
  .td-planet-dot {
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  margin: 0;
  box-shadow: none;
}
:is(#screen[data-temporal='true'], #sky-now[data-personal-sky])
  .td-planet-option
  small {
  font-size: 10px;
  line-height: 12.5px;
}
:is(#screen[data-temporal='true'], #sky-now[data-personal-sky])
  .td-planet-option
  em {
  font-size: 8px;
  line-height: 10px;
  font-style: normal;
}
:is(#screen[data-temporal='true'], #sky-now[data-personal-sky])
  .td-radar-hero[data-source]
  .cc-portrait-changes
  > h3,
#sky-now[data-personal-sky] .ps-motif-connections > h3 {
  font-size: 16px;
  line-height: 22px;
  margin: 0 0 10px;
  max-width: none;
  letter-spacing: 0;
  font-weight: 600;
}
@media (max-width: 359px) {
  :is(#screen[data-temporal='true'], #sky-now[data-personal-sky]) {
    --cc-heading-height: 102px;
    --cc-wave-height: 203px;
  }
  .cc-app-planet-art {
    flex-basis: 120px;
    width: 120px;
    height: 100.8px;
  }
  :is(#screen[data-temporal='true'], #sky-now[data-personal-sky])
    .td-radar-hero
    .td-radar-planet-scene
    h3 {
    font-size: 22px;
  }
  :is(#screen[data-temporal='true'], #sky-now[data-personal-sky])
    .td-planet-option {
    min-width: 52px;
  }
}

/* Nested headings must not inherit the prototype's generic 32px card title. */
#screen[data-temporal='true']
  .td-radar-hero
  .cc-portrait-change-cards
  .td-activation
  h3 {
  font-size: 16px;
  line-height: 22px;
}
#screen[data-temporal='true'] .cc-portrait-changes {
  margin-top: 12px;
}
.cc-strip-copy > small > span {
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
}

#screen[data-temporal='true'] .td-radar-hero {
  margin-inline: 4px !important;
  width: calc(100% - 8px) !important;
}
:is(#screen[data-temporal='true'], #sky-now[data-personal-sky])
  .td-planet-option[aria-pressed='true']::after {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  border-radius: 1px;
  background: #8db8de;
}
:is(#screen[data-temporal='true'], #sky-now[data-personal-sky])
  .td-radar-wave
  svg
  * {
  filter: none;
}
