/* Contacts is now the primary phone experience. The old Jamie Guide chat is
   retained only as internal compatibility state and is not exposed as a tab. */
.phone-companion .phone-nav,
.phone-companion .phone-nav:has([data-phone-contacts]),
.phone-companion .phone-nav.yume-has-dev-tab{
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
}
.phone-companion .phone-nav [data-phone-tab="chat"],
.phone-companion .phone-tab[data-phone-screen="chat"],
.phone-companion .phone-nav [data-dev-phone-nav]{display:none!important}

.phone-companion .phone-nav [data-phone-contacts]{order:-10}
.phone-companion .phone-nav button{font-size:6.4px!important}
.phone-companion .phone-nav button span{font-size:11px!important}

/* The phone is a general Yume device now, not a permanent Jamie DM. */
.phone-companion .phone-contact-bar{grid-template-columns:22px 30px minmax(0,1fr) auto!important}
.phone-companion:has(.yume-dev-phone-header-button) .phone-contact-bar{grid-template-columns:22px 30px minmax(0,1fr) auto!important}
.phone-companion [data-assist-voice]{display:none!important}
.phone-companion .yume-dev-phone-header-button{
  display:grid!important;
  place-items:center;
  min-width:34px;
  height:28px;
  padding:0 6px;
  border:1px solid rgba(0,0,0,.55)!important;
  border-radius:8px!important;
  background:#20252a!important;
  color:#eef2f5!important;
  font:900 7px/1 Arial!important;
  letter-spacing:.07em;
}
.phone-companion.yume-developer-mode-on .yume-dev-phone-header-button{color:#8fffb6!important;border-color:#2d6d46!important;background:#171c19!important}

/* Guide-only settings are no longer part of the public phone. */
.phone-companion .phone-setting:has([data-assist-master-mini]),
.phone-companion .phone-setting:has([data-assist-voice-mini]),
.phone-companion .phone-field:has([data-assist-voice-select-mini]),
.phone-companion [data-assist-preview-mini],
.phone-companion [data-reset-companion-mini],
.phone-companion .phone-story-progress{display:none!important}
.phone-companion .phone-danger-zone.single{grid-template-columns:1fr}

/* Jamie's directory state now visually reflects the Continuity signal. */
.phone-companion .pc-contact.jamie-signal-blocked,
.contacts-page .contact-entry.jamie-signal-blocked{
  opacity:.72;
  cursor:not-allowed!important;
}
.phone-companion .pc-contact.jamie-signal-blocked .pc-dot,
.contacts-page .contact-entry.jamie-signal-blocked .contact-dot{
  background:#c28b2e!important;
  border-color:#7c5718!important;
  box-shadow:none!important;
}
.phone-companion .pc-contact.jamie-signal-blocked .pc-state,
.contacts-page .contact-entry.jamie-signal-blocked .contact-state{color:#8a5d10!important}

/* Developer Phone is a utility screen opened from the header, so it should sit
   above Contacts while active rather than being hidden underneath its layer. */
.phone-companion.yume-developer-phone-view .phone-contacts-layer{display:none!important}
.phone-companion.yume-developer-phone-view .yume-developer-phone-screen{position:relative;z-index:40}
.phone-companion .yume-dev-phone-return{margin-bottom:12px}

/* The collapsed launcher now represents the whole phone. Developer Mode may
   temporarily replace this label with its existing DEV MODE indicator. */
.phone-companion:not(.yume-developer-mode-on) .phone-pocket-launcher span{background:#ffdf43;color:#111}

@media(max-width:380px){
  .phone-companion .phone-nav button{font-size:5.8px!important}
  .phone-companion .phone-nav button span{font-size:10px!important}
}