/* story.derekjperna.com — Story floor chrome */
body.story-site .nav-group[data-nav-group="mira"],
body.story-site .nav-group[data-nav-group="builder"],
body.story-site .nav-group[data-nav-group="app"],
body.story-site .nav-group[data-nav-group="reference"],
body.story-site .nav-subtabs[data-nav-group="mira"],
body.story-site .nav-subtabs[data-nav-group="builder"],
body.story-site .nav-subtabs[data-nav-group="app"],
body.story-site .nav-subtabs[data-nav-group="reference"],
body.story-site #mira-anchor,
body.story-site #btn-voice-settings,
body.story-site .btn-install,
body.story-site .ui-mode-switch {
  display: none !important;
}

body.story-site .nav-group[data-nav-group="cinder"] {
  font-weight: 700;
}

body.story-site #auth-gate .auth-gate-avatar {
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(200, 140, 100, 0.35);
}

/* Story mode pill — clickable toggle in Cinder chat (not header) */
body.story-site .story-mode-pill.cinder-story-mode-toggle {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(180, 120, 90, 0.22);
  border: 1px solid rgba(200, 140, 100, 0.45);
  color: #e8c4a8;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

body.story-site .story-mode-pill.cinder-story-mode-toggle:hover {
  background: rgba(200, 140, 100, 0.32);
  border-color: rgba(220, 160, 120, 0.55);
}

body.story-site .story-mode-pill.cinder-story-mode-toggle.is-on {
  background: rgba(180, 120, 90, 0.28);
  border-color: rgba(200, 140, 100, 0.55);
  color: #f0d4bc;
}

body.story-site .story-mode-pill.cinder-story-mode-toggle.is-off {
  background: rgba(90, 95, 110, 0.35);
  border-color: rgba(130, 135, 150, 0.45);
  color: #b8bcc8;
}

body.story-site .cinder-chat-chrome {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  width: 100%;
  margin-bottom: 0.15rem;
}

body.story-site.cinder-chat-active .cinder-chat-chrome {
  display: flex;
}

body.story-site.cinder-chat-active .reader-lens-chrome {
  display: none !important;
}

body.story-site.cinder-chat-active .chat-compose-soul {
  display: none;
}

body.story-site.cinder-chat-active #reader-hint {
  font-style: italic;
}

/* House controls — Help panel only */
body.story-site .help-house-controls-card {
  margin-top: 0.5rem;
}

body.story-site .help-house-banner.story-action-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  padding: 0.65rem 0;
  border: none;
  margin: 0;
}

body.story-site .help-house-banner .story-action-banner-hint {
  flex: 1 1 100%;
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted, #9aa0ad);
}

body.story-site .help-house-banner .story-action-banner-hint:not([hidden]) {
  display: block;
}

/* Mira panels — never flash on story floor */
body.story-site #panel-chat,
body.story-site #panel-setup,
body.story-site #panel-edit,
body.story-site #panel-build,
body.story-site #panel-shutterstock,
body.story-site #panel-app-setup,
body.story-site #panel-app-builder,
body.story-site #panel-versions,
body.story-site #panel-author,
body.story-site #panel-keeps,
body.story-site #voice-panel,
body.story-site #mira-anchor {
  display: none !important;
}

body.story-site #panel-create .chat-identity-avatar,
body.story-site #panel-create .chat-compose-avatar,
body.story-site .chat-bubble-avatar.cinder-avatar {
  border-color: rgba(200, 140, 100, 0.55);
  animation: none;
}