/* Keep the practice conversation in view on small LINE/LIFF screens.
   Applied only while the live chat is active; setup and review keep their full headers. */
.app.session-active > header.header,
.app.session-active > header.brand-header {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 7px 52px 7px 14px;
}
.app.session-active > header .brand-eyebrow,
.app.session-active > header .brand-tagline {
  display: none;
}
.app.session-active > header h1.menu-title {
  margin: 0;
  padding: 0;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: .01em;
}
.app.session-active > header .settings-entry {
  top: 5px;
  right: 12px;
  width: 32px;
  height: 32px;
}
.app.session-active > header .settings-entry svg {
  width: 18px;
  height: 18px;
}
/* Footer stays in normal flex flow, anchored to the bottom of the visible viewport. */
.app.session-active .brand-footer {
  flex: 0 0 auto;
  margin-top: auto;
  padding: 3px 10px calc(3px + env(safe-area-inset-bottom, 0px));
  font-size: 10px;
  line-height: 1.3;
}
.app.session-active.compact-viewport .brand-footer {
  display: block;
  padding-bottom: 2px;
  font-size: 9px;
}
.app.session-active.compact-viewport > header.header,
.app.session-active.compact-viewport > header.brand-header {
  min-height: 36px;
  padding: 4px 44px 4px 12px;
}
.app.session-active.compact-viewport > header h1.menu-title {
  font-size: 16px;
}
.app.session-active.compact-viewport > header .settings-entry {
  top: 3px;
  right: 9px;
  width: 30px;
  height: 30px;
}

/* Hide nonessential shortcuts only during an active roleplay/meeting session.
   The setup and reflection headers retain their usual Post and Settings links. */
.app.session-active > header .settings-entry,
.app.session-active > header .post-entry {
  display: none !important;
}
.app.session-active > header.header,
.app.session-active > header.brand-header {
  padding-right: 14px;
}
.app.session-active.compact-viewport > header.header,
.app.session-active.compact-viewport > header.brand-header {
  padding-right: 12px;
}
