/* footflow 共通ヘッダー */

#app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 48px;
  min-height: 48px;
  padding: 0 12px;
  background: #0f1117;
  color: #e1e1e6;
  border-bottom: 1px solid #1f222a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.app-header__back,
.app-header__back-spacer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #e1e1e6;
  text-decoration: none;
  border-radius: 6px;
  flex-shrink: 0;
}
.app-header__back:hover { background: rgba(255,255,255,0.06); }
.app-header__back .material-symbols-outlined { font-size: 22px; }

.app-header__title {
  flex: 1;
  color: #e1e1e6;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
  padding: 0 4px;
  margin: 0;
}
.app-header__title--hero {
  font-size: 1.3rem;
  font-weight: 700;
}

.app-header__account,
.app-header__login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e1e1e6;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 0.85rem;
  flex-shrink: 0;
  max-width: 55%;
}
.app-header__account:hover,
.app-header__login:hover { background: rgba(255,255,255,0.06); }
.app-header__account .material-symbols-outlined { font-size: 20px; color: #5b8def; }

.app-header__email {
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #bbb;
}

@media (max-width: 480px) {
  .app-header__email { max-width: 140px; font-size: 0.8rem; }
  .app-header__title { font-size: 0.95rem; }
}

/* ライトテーマのページで使う場合のオーバーライド */
body.app-theme-light #app-header {
  background: #fff;
  color: #1a1a1a;
  border-bottom-color: #e5e5e5;
}
body.app-theme-light .app-header__back,
body.app-theme-light .app-header__title,
body.app-theme-light .app-header__account,
body.app-theme-light .app-header__login { color: #1a1a1a; }
body.app-theme-light .app-header__email { color: #666; }
