/**
 * Live Stats — ライバー画面テーマ（完成イメージ mockup 準拠）
 * 既存 style.css のコンポーネントを上書き・拡張
 */

:root {
  --liver-sidebar-w: 304px;
  --liver-main-padding-x: 1.5rem;
  --liver-main-padding-y: 1.35rem;
  --liver-panel: rgba(16, 18, 32, 0.92);
  --liver-panel-border: rgba(255, 255, 255, 0.07);
  --liver-accent-soft: rgba(124, 58, 237, 0.18);
}

.layout {
  grid-template-columns: var(--liver-sidebar-w) 1fr;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  gap: 0;
  padding: 0;
  width: var(--liver-sidebar-w);
  min-width: var(--liver-sidebar-w);
  background: linear-gradient(180deg, rgba(4, 5, 10, 0.99) 0%, rgba(7, 8, 16, 0.98) 100%);
  border-right: 1px solid rgba(168, 85, 247, 0.12);
  box-shadow: 4px 0 32px rgba(0, 0, 0, 0.35);
}

.sidebar--saas {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas:
    'brand'
    'nav';
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}

.sidebar--saas .sidebar-brand {
  grid-area: brand;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.25rem 1.1rem 1rem;
  border-bottom: 1px solid rgba(168, 85, 247, 0.12);
}

.sidebar--saas .sidebar-nav {
  grid-area: nav;
  flex: none;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.65rem 0.85rem 0.75rem;
  -webkit-overflow-scrolling: touch;
}

.sidebar-dock {
  grid-area: dock;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.65rem 0.85rem 0.85rem;
  background: rgba(0, 0, 0, 0.32);
  border-top: 1px solid rgba(168, 85, 247, 0.14);
}

.sidebar-dock__divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.22), rgba(59, 130, 246, 0.15), transparent);
}

.sidebar-dock__label {
  margin: 0 0 0.35rem;
  padding: 0 0.1rem;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.sidebar-dock__viewing {
  min-width: 0;
}

.sidebar-dock__current {
  min-width: 0;
}

.sidebar-dock__account {
  margin: 0;
  padding: 0;
  border-top: none;
  background: transparent;
}

.sidebar-dock__account .sidebar-settings {
  margin-bottom: 0.55rem;
}

.sidebar-dock__account .sidebar-settings__plan {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  font-size: 0.72rem;
}

.sidebar-dock__account .sidebar-settings__billing {
  display: block;
  margin: 0.2rem 0 0;
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.42);
}

.sidebar-dock__account .sidebar__footer-meta {
  padding-top: 0.15rem;
}

.sidebar-brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.45), rgba(59, 130, 246, 0.35));
  border: 1px solid rgba(168, 85, 247, 0.35);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.2);
}

.sidebar-brand__gem {
  font-size: 0.95rem;
  color: #e9d5ff;
}

.sidebar-brand__name {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.sidebar-brand__subtitle {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
}

.sidebar-brand__agency {
  margin: 0.2rem 0 0;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(147, 197, 253, 0.75);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar-nav .nav__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.58rem 0.7rem;
  border-radius: 11px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  border: 1px solid transparent;
  border-left: 3px solid transparent;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.sidebar-nav .nav__label {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

.sidebar-nav .nav__icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: 1.05rem;
  flex-shrink: 0;
  line-height: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-nav__list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.sidebar-nav .nav__item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.06);
  border-left-color: rgba(168, 85, 247, 0.35);
}

.sidebar-nav .nav__item:hover .nav__icon {
  background: rgba(124, 58, 237, 0.12);
  border-color: rgba(168, 85, 247, 0.2);
}

.sidebar-nav .nav__item--active {
  color: #faf5ff;
  font-weight: 600;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.55), rgba(59, 130, 246, 0.2));
  border-color: rgba(168, 85, 247, 0.5);
  border-left-color: #d8b4fe;
  box-shadow: inset 0 0 0 1px rgba(168, 85, 247, 0.18), 0 4px 20px rgba(124, 58, 237, 0.22);
}

.sidebar-nav .nav__item--active .nav__icon {
  background: rgba(124, 58, 237, 0.4);
  border-color: rgba(216, 180, 254, 0.35);
  filter: drop-shadow(0 0 8px rgba(192, 132, 252, 0.45));
}

.sidebar-dock .streamer-current,
.sidebar-dock .streamer-current--mini {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.45rem 0.5rem;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: none;
  min-width: 0;
}

.sidebar-dock .streamer-current__body {
  flex: 1;
  min-width: 0;
}

.sidebar-dock .streamer-current__name {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: anywhere;
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  white-space: normal;
}

.sidebar-dock .streamer-current__handle {
  font-size: 0.68rem;
  opacity: 0.58;
  line-height: 1.3;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  word-break: break-all;
}

.sidebar-dock .streamer-current--mini .streamer-current__avatar {
  width: 30px;
  height: 30px;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.sidebar-dock .streamer-row__name {
  white-space: normal;
  word-break: break-word;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.sidebar-dock .streamer-row__meta {
  white-space: normal;
  word-break: break-all;
  overflow: visible;
  text-overflow: unset;
}

.streamer-switcher--dock {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  gap: 0.4rem;
}

.streamer-switcher--dock.streamer-switcher {
  display: flex;
  flex-direction: column;
}

.streamer-switcher__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.42rem 0.55rem;
  border-radius: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  font: inherit;
  font-size: 0.7rem;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.streamer-switcher__toggle:hover {
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(168, 85, 247, 0.25);
  background: rgba(124, 58, 237, 0.08);
}

.streamer-switcher__toggle[aria-expanded='true'] {
  color: #ddd6fe;
  border-color: rgba(168, 85, 247, 0.35);
  background: rgba(124, 58, 237, 0.12);
}

.streamer-switcher__toggle[aria-expanded='true'] .streamer-switcher__toggle-icon {
  transform: rotate(180deg);
}

.streamer-switcher__toggle-icon {
  font-size: 0.55rem;
  opacity: 0.7;
  transition: transform 0.15s ease;
}

.streamer-switcher--compact .streamer-switcher__viewport {
  --streamer-list-visible-rows: 5;
  max-height: min(40vh, 220px);
}

.sidebar-divider {
  flex-shrink: 0;
  height: 1px;
  margin: 0.5rem 0.85rem;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.25), rgba(59, 130, 246, 0.2), transparent);
}

.sidebar-zone {
  flex-shrink: 0;
  padding: 0 0.75rem 0.65rem;
}

.sidebar-zone__label {
  margin: 0 0 0.45rem;
  padding: 0 0.15rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.sidebar-zone__body {
  min-width: 0;
}

.sidebar--saas .streamer-switcher {
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  gap: 0.4rem;
  background: transparent;
  border: none;
  border-radius: 0;
  order: unset;
  width: 100%;
}

.streamer-switcher--compact .streamer-switcher__panel {
  padding-top: 0;
  border-top: none;
}

.streamer-switcher--compact .streamer-switcher__panel-fixed {
  background: transparent;
  padding-bottom: 0.35rem;
}

.streamer-switcher--compact .streamer-switcher__panel-head {
  justify-content: flex-end;
  min-height: 0;
}

.streamer-switcher--compact .streamer-switcher__count {
  font-size: 0.6rem;
  opacity: 0.7;
}

.streamer-switcher--compact .streamer-switcher__search {
  padding: 0.42rem 0.55rem;
  font-size: 0.75rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.streamer-switcher--compact .streamer-switcher__viewport {
  --streamer-list-visible-rows: 5;
  max-height: min(40vh, 220px);
  border-radius: 10px;
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
  overflow-y: auto;
}

.sidebar-bottom .streamer-switcher,
.sidebar-dock .streamer-switcher {
  margin: 0;
  width: 100%;
}

.sidebar-zone--settings {
  display: none;
}

.sidebar-settings__plan {
  display: flex;
}

.sidebar-settings__billing {
  display: block;
}

.sidebar--saas .sidebar__plan-btn {
  display: none;
}

.sidebar-hidden-meta {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.sidebar--saas .sidebar__profile {
  display: none;
}

.brand__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 1.1rem;
}

.brand__subtitle {
  margin: 0.1rem 0 0;
  font-size: 0.62rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.nav {
  gap: 0.2rem;
  flex: none;
  min-height: 0;
  overflow: visible;
  padding-right: 0;
}

.sidebar--saas .nav,
.sidebar--saas .sidebar-nav {
  order: unset !important;
  width: auto;
  flex-shrink: unset;
}

.sidebar--saas > .nav:not(.sidebar-nav) {
  display: none;
}

.nav__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.62rem 0.75rem;
  font-size: 0.84rem;
  font-weight: 500;
  border: 1px solid transparent;
}

.nav__icon {
  width: 18px;
  text-align: center;
  font-size: 0.95rem;
  opacity: 0.85;
}

.nav__item--active {
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.55), rgba(59, 130, 246, 0.35));
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.2);
}

.sidebar__profile {
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  padding: 0.85rem;
  background: var(--liver-panel);
  border: 1px solid var(--liver-panel-border);
  border-radius: 14px;
}

.sidebar__profile-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.sidebar__profile-text {
  min-width: 0;
  flex: 1;
}

.sidebar__plan {
  display: grid;
  gap: 0.35rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--liver-panel-border);
  font-size: 0.72rem;
}

.sidebar__plan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--text-muted);
}

.sidebar__plan-row strong {
  color: var(--text);
  font-weight: 600;
}

.plan-badge {
  display: inline-flex;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 600;
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.sidebar__plan-btn {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--liver-panel-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 0.72rem;
  cursor: pointer;
}

.sidebar__plan-btn:hover {
  color: var(--text);
  border-color: rgba(168, 85, 247, 0.35);
}

.main.liver-main {
  max-width: none;
  min-width: 0;
  padding: var(--liver-main-padding-y) var(--liver-main-padding-x) 2.25rem;
  overflow-y: auto;
  height: 100vh;
  background: linear-gradient(180deg, rgba(6, 7, 14, 0.35) 0%, transparent 120px);
}

.dash-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.dash-header__title h1 {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}

.dash-header__welcome {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.dash-header__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-profile {
  position: relative;
  flex-shrink: 0;
}

.header-profile__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.7rem 0.45rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(168, 85, 247, 0.35);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.22), rgba(59, 130, 246, 0.12));
  color: #f5f3ff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  max-width: min(220px, 42vw);
}

.header-profile__trigger:hover:not(:disabled) {
  border-color: rgba(192, 132, 252, 0.55);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.25);
}

.header-profile__trigger:disabled {
  cursor: default;
  opacity: 0.92;
}

.header-profile--open .header-profile__trigger {
  border-color: rgba(192, 132, 252, 0.6);
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.3);
}

.header-profile__avatar {
  font-size: 1rem;
  line-height: 1;
}

.header-profile__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 9rem;
}

.header-profile__identity {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.08rem;
  min-width: 0;
  max-width: 100%;
}

.profile-league-badge {
  font-family: var(--font-display, 'Orbitron', sans-serif);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  padding: 0.1rem 0.26rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
}

.profile-league-badge--a {
  color: #fde68a;
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.12);
}

.profile-league-badge--b {
  color: #bfdbfe;
  border-color: rgba(147, 197, 253, 0.45);
  background: rgba(59, 130, 246, 0.12);
}

.profile-league-badge--c {
  color: #fed7aa;
  border-color: rgba(251, 146, 60, 0.45);
  background: rgba(234, 88, 12, 0.12);
}

.profile-league-badge--d {
  color: #d4a574;
  border-color: rgba(196, 136, 106, 0.45);
  background: rgba(146, 64, 14, 0.12);
}

.header-profile__chevron {
  font-size: 0.55rem;
  opacity: 0.75;
  transition: transform 0.15s ease;
}

.header-profile--open .header-profile__chevron {
  transform: rotate(180deg);
}

.header-profile__dropdown {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 120;
  width: min(280px, calc(100vw - 2rem));
  padding: 0.45rem;
  border-radius: 14px;
  border: 1px solid rgba(168, 85, 247, 0.28);
  background: rgba(10, 11, 20, 0.98);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
}

.header-profile__search-wrap {
  padding: 0.25rem 0.25rem 0.45rem;
}

.header-profile__search {
  width: 100%;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  font: inherit;
  font-size: 0.78rem;
}

.header-profile__search:focus {
  outline: none;
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2);
}

.header-profile__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: min(320px, 50vh);
  overflow-y: auto;
}

.header-profile__item {
  margin: 0;
}

.header-profile__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  font: inherit;
  font-size: 0.84rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.header-profile__option:hover {
  background: rgba(124, 58, 237, 0.18);
  color: #fff;
}

.header-profile__option--active {
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.35), rgba(59, 130, 246, 0.15));
  color: #faf5ff;
  font-weight: 600;
}

.header-profile__option-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-profile__option-check {
  flex-shrink: 0;
  color: #c4b5fd;
  font-size: 0.75rem;
}

.header-profile__empty {
  padding: 0.75rem 0.65rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}

.header-profile__count {
  margin: 0.35rem 0.25rem 0.15rem;
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: right;
}

.dash-date {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--liver-panel-border);
  background: var(--liver-panel);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.dash-sync {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.dash-sync strong {
  color: var(--cyan);
  font-weight: 600;
}

.liver-main .notification-center {
  position: static;
  top: auto;
  right: auto;
  z-index: auto;
}

.liver-main .notification-bell {
  position: relative;
}

/* KPI row — growth dashboard */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.kpi-card {
  padding: 1.15rem 1.2rem;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(20, 16, 40, 0.95), rgba(12, 14, 28, 0.92));
  border: 1px solid var(--liver-panel-border);
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.kpi-card__value {
  font-size: 2.1rem;
  font-family: 'Orbitron', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.kpi-card__label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.kpi-card__trend {
  margin-top: 0.45rem;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.kpi-card__trend--up {
  color: #34d399;
}

.kpi-card__trend--neutral {
  color: var(--text-muted);
}

.kpi-card--rate {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  gap: 0.25rem 0.75rem;
}

.kpi-card--rate .kpi-card__label {
  grid-column: 1;
}

.kpi-card--rate .kpi-card__value {
  grid-column: 1;
  align-self: end;
}

.kpi-card--rate .kpi-card__trend {
  grid-column: 1;
}

.kpi-donut {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  font-weight: 700;
  background: conic-gradient(
    var(--purple) calc(var(--pct, 0) * 1%),
    rgba(255, 255, 255, 0.08) 0
  );
  position: relative;
}

.kpi-donut::after {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: var(--liver-panel);
}

.kpi-donut span {
  position: relative;
  z-index: 1;
}

.kpi-card--streak .kpi-card__icon {
  float: right;
  font-size: 1.5rem;
  opacity: 0.9;
}

/* Charts */
.chart-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.chart-card {
  padding: 1rem 1.1rem 1.1rem;
  border-radius: 14px;
  background: var(--liver-panel);
  border: 1px solid var(--liver-panel-border);
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.chart-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.chart-card__title {
  font-size: 0.88rem;
  font-weight: 600;
}

.chart-card__total {
  font-size: 1.35rem;
  font-weight: 700;
}

.chart-card__body {
  flex: 1;
  min-height: 200px;
  display: flex;
  align-items: flex-end;
}

.chart-placeholder {
  width: 100%;
  height: 100%;
  min-height: 190px;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 0.78rem;
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.15);
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  width: 100%;
  height: 190px;
  padding-top: 0.5rem;
}

.chart-bars__col {
  flex: 1;
  min-width: 0;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--purple), var(--blue));
  opacity: 0.85;
  min-height: 4px;
}

.chart-line {
  width: 100%;
  height: 190px;
}

.chart-line--large {
  min-height: 190px;
}

.chart-grid-line {
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 0.35;
  vector-effect: non-scaling-stroke;
}

/* Bottom triple grid */
.dash-triple-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 240px;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.dash-panel {
  padding: 1rem;
  border-radius: 14px;
  background: var(--liver-panel);
  border: 1px solid var(--liver-panel-border);
  min-width: 0;
}

.dash-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.dash-panel__title {
  font-size: 0.88rem;
  font-weight: 600;
}

.dash-panel__link {
  font-size: 0.68rem;
  color: var(--purple);
  text-decoration: none;
}

.dash-panel__link:hover {
  text-decoration: underline;
}

.dash-panel .table-wrap {
  max-height: 280px;
  overflow-y: auto;
}

.dash-panel .table {
  font-size: 0.78rem;
}

.dash-panel .table th {
  font-size: 0.68rem;
  text-transform: none;
  color: var(--text-muted);
  font-weight: 600;
  padding: 0.45rem 0.5rem;
  border-bottom: 1px solid var(--liver-panel-border);
}

.dash-panel .table td {
  padding: 0.55rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.battle-result-pill {
  display: inline-flex;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
}

.battle-result-pill--win {
  color: #c4b5fd;
  background: rgba(124, 58, 237, 0.25);
}

.battle-result-pill--lose {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.2);
}

/* —— サイドバー：バトル分析グループ —— */
.nav-group {
  margin: 0.1rem 0;
}

.nav-group__toggle {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.58rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.nav-group__toggle:hover,
.nav-group--active > .nav-group__toggle {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.06);
}

.nav-group--active > .nav-group__toggle {
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.35), rgba(59, 130, 246, 0.18));
  border-color: rgba(168, 85, 247, 0.3);
}

.nav-group__chevron {
  margin-left: auto;
  font-size: 0.65rem;
  opacity: 0.6;
  transition: transform 0.15s ease;
}

.nav-group:not(.nav-group--open) .nav-group__chevron {
  transform: rotate(-90deg);
}

.nav-group__children {
  display: none;
  padding: 0.15rem 0 0.2rem 0.35rem;
  margin-left: 0.55rem;
  border-left: 1px solid rgba(168, 85, 247, 0.2);
}

.nav-group--open .nav-group__children {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.nav__item--sub {
  padding: 0.45rem 0.65rem 0.45rem 0.85rem !important;
  font-size: 0.76rem !important;
  gap: 0.45rem !important;
}

.nav__item--sub::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.45);
  flex-shrink: 0;
}

.nav__item--sub.nav__item--active::before {
  background: #c084fc;
  box-shadow: 0 0 8px rgba(192, 132, 252, 0.8);
}

/* —— ダッシュボード（今日だけ） —— */
.dash-home {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.growth-hero--compact {
  margin-top: 0;
}

.dash-today-battle-wrap {
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(59, 130, 246, 0.08));
  border: 1px solid rgba(168, 85, 247, 0.22);
}

.dash-today-battle-wrap__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.dash-today-battle-wrap__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.dash-today-battle-wrap__link {
  font-size: 0.75rem;
  color: #c4b5fd;
  text-decoration: none;
}

.dash-today-battle__summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.dash-today-battle__stat {
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.dash-today-battle__label {
  margin: 0;
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.5);
}

.dash-today-battle__value {
  margin: 0.2rem 0 0;
  font-family: var(--font-display, 'Orbitron', sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
}

.dash-today-battle__meta {
  margin: 0.15rem 0 0;
  font-size: 0.68rem;
  color: rgba(147, 197, 253, 0.85);
}

.dash-today-battle__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.dash-today-battle__item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.78rem;
}

.dash-today-battle__score {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.75);
}

.dash-today-battle__link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: #a78bfa;
  text-decoration: none;
}

/* —— バトル分析 —— */
.liver-section--battle .liver-section__badge {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.5), rgba(59, 130, 246, 0.35));
}

.battle-subsection {
  margin-top: 1.35rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(168, 85, 247, 0.15);
  scroll-margin-top: 5.5rem;
}

.battle-subsection:first-of-type {
  margin-top: 0.75rem;
  padding-top: 0;
  border-top: none;
}

.battle-subsection__head {
  margin-bottom: 1rem;
}

.battle-subsection__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.battle-subsection__desc {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.48);
}

.pk-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.pk-stat-card {
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.pk-stat-card--purple {
  border-color: rgba(168, 85, 247, 0.25);
  background: linear-gradient(145deg, rgba(124, 58, 237, 0.14), transparent);
}

.pk-stat-card--blue {
  border-color: rgba(59, 130, 246, 0.25);
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.12), transparent);
}

.pk-stat-card--pink {
  border-color: rgba(236, 72, 153, 0.22);
  background: linear-gradient(145deg, rgba(236, 72, 153, 0.1), transparent);
}

.pk-stat-card__label {
  margin: 0;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.52);
}

.pk-stat-card__value {
  margin: 0.35rem 0 0;
  font-family: var(--font-display, 'Orbitron', sans-serif);
  font-size: 1.15rem;
  font-weight: 700;
}

.chart-grid--battle {
  margin: 1rem 0;
}

.vs-insight-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.vs-insight-card {
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.vs-insight-card--freq {
  border-color: rgba(168, 85, 247, 0.25);
}

.vs-insight-card--easy {
  border-color: rgba(52, 211, 153, 0.22);
}

.vs-insight-card--hard {
  border-color: rgba(248, 113, 113, 0.22);
}

.vs-insight-card__title {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.vs-insight-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.vs-insight-card__row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.74rem;
}

.vs-insight-card__row:last-child {
  border-bottom: none;
}

.vs-insight-card__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vs-insight-card__meta {
  flex-shrink: 0;
  color: rgba(147, 197, 253, 0.9);
}

.vs-insight-card__empty {
  margin: 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
}

.battle-type-pill {
  display: inline-flex;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.battle-type-pill--pk {
  color: #e9d5ff;
  background: rgba(124, 58, 237, 0.28);
}

.battle-type-pill--vs {
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.25);
}

.table--battle-history td {
  font-size: 0.78rem;
}

.battle-memo {
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.55);
}

.career-strip--compact {
  margin-top: 1rem;
}

.chart-card--gift {
  margin-top: 1rem;
}

.liver-section--settings .settings-panel {
  padding: 1.1rem 1.2rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.settings-panel__label {
  margin: 0;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.45);
}

.settings-panel__value {
  margin: 0.35rem 0 0;
  font-size: 1rem;
}

.settings-panel__meta {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

.settings-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.settings-panel__role {
  margin: 0.85rem 0 0;
}

.settings-panel__tiktok-link {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.settings-panel__tiktok-link .sidebar__plan-btn {
  width: 100%;
  text-align: center;
  text-decoration: none;
}

/* —— TikTok 連携ページ —— */
.tiktok-link-page .tiktok-link-shell {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.tiktok-link-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.tiktok-link-head__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.tiktok-link-head h1 {
  margin: 0;
  font-size: 1.65rem;
}

.tiktok-link-head__lead {
  margin: 0.45rem 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
}

.tiktok-link-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.tiktok-link-back {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.82rem;
}

.tiktok-link-error {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fecaca;
}

.tiktok-link-card {
  margin-bottom: 1rem;
  padding: 1.15rem 1.2rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tiktok-link-card--notice {
  border-color: rgba(129, 140, 248, 0.25);
  background: rgba(99, 102, 241, 0.06);
}

.tiktok-link-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.tiktok-link-card__head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.tiktok-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
}

.tiktok-status-badge[data-status='linked'] {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
}

.tiktok-link-meta {
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.tiktok-link-meta__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tiktok-link-meta__row dt {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

.tiktok-link-meta__row dd {
  margin: 0;
  font-size: 0.92rem;
  text-align: right;
}

.tiktok-link-meta__error {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  color: #fca5a5;
}

.tiktok-link-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.1rem;
}

.tiktok-link-btn {
  appearance: none;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.tiktok-link-btn--primary {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff;
}

.tiktok-link-btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.85);
}

.tiktok-link-readonly-note,
.tiktok-link-phase-note {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
}

.tiktok-targets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.tiktok-targets__item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
}

.tiktok-targets__label {
  font-weight: 600;
  font-size: 0.9rem;
}

.tiktok-targets__note {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

.tiktok-notice-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.55rem;
  font-size: 0.86rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

.tiktok-link-dialog {
  max-width: 440px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: #12121a;
  color: #fff;
}

.tiktok-link-dialog::backdrop {
  background: rgba(0, 0, 0, 0.65);
}

.tiktok-link-dialog__inner {
  padding: 1.25rem 1.35rem 1.35rem;
}

.tiktok-link-dialog__inner h2 {
  margin: 0 0 0.65rem;
  font-size: 1.1rem;
}

.tiktok-link-dialog__inner p {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

.tiktok-link-dialog__steps {
  margin: 0 0 0.75rem;
  padding-left: 1.1rem;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.65);
}

.tiktok-link-dialog__note {
  font-size: 0.78rem !important;
  color: rgba(253, 224, 71, 0.85) !important;
}

.tiktok-link-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-top: 1rem;
}

.liver-section--profile .personal-page-panel {
  display: grid;
  gap: 1rem;
}

.personal-page-panel__account,
.personal-page-panel__tiktok,
.personal-page-panel {
  padding: 1.1rem 1.2rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.personal-page-panel__name {
  margin: 0.35rem 0 0;
  font-size: 1.15rem;
  font-weight: 600;
}

.personal-page-panel__id {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
}

.personal-page-panel__tiktok-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.personal-page-meta {
  margin-bottom: 0.75rem;
}

.personal-page-panel__cta {
  display: inline-flex;
  text-decoration: none;
  justify-content: center;
  width: 100%;
  max-width: 280px;
}

.personal-page-panel__note,
.personal-page-panel__hint {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.52);
}

.personal-page-success {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #bbf7d0;
  font-size: 0.88rem;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}

.quick-grid__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 72px;
  padding: 0.5rem 0.35rem;
  border-radius: 12px;
  border: 1px solid var(--liver-panel-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.62rem;
  text-align: center;
  line-height: 1.25;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.quick-grid__item:hover {
  color: var(--text);
  border-color: rgba(168, 85, 247, 0.35);
  background: var(--liver-accent-soft);
}

.quick-grid__icon {
  font-size: 1.15rem;
}

/* Sections below dashboard */
.liver-section {
  margin-bottom: 2rem;
  scroll-margin-top: 1.25rem;
}

.liver-section__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.liver-section__title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.25rem;
}

.liver-section__desc {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.liver-section__badge {
  flex-shrink: 0;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c4b5fd;
  background: rgba(124, 58, 237, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.liver-section--pk .liver-section__badge {
  color: #f0abfc;
  background: rgba(236, 72, 153, 0.12);
  border-color: rgba(236, 72, 153, 0.35);
}

.liver-dual-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1rem;
}

.panel--feature,
.panel--wide {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: var(--liver-panel);
  border: 1px solid var(--liver-panel-border);
}

.panel--wide {
  margin-top: 1rem;
}

.stat-grid--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pk-list--feature,
.gift-list--feature {
  max-height: 320px;
  overflow-y: auto;
}

.liver-stream-log .table-wrap {
  max-height: 360px;
  overflow-y: auto;
}

.table--feature {
  font-size: 0.8rem;
}

.table--feature th {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 600;
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid var(--liver-panel-border);
}

.table--feature td {
  padding: 0.6rem 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.liver-section .section__head,
.liver-section .panel__head {
  margin-bottom: 0.85rem;
}

.liver-section .panel,
.liver-section .stat-card,
.liver-section .career-card {
  background: var(--liver-panel);
  border-color: var(--liver-panel-border);
}

.liver-section--collapsed {
  opacity: 0.95;
}

.liver-hidden-meta {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* ── TikTok LIVE リーグ（最重要） ── */
.league-hero {
  position: relative;
  margin-bottom: 1.5rem;
  padding: 1.35rem 1.4rem 1.4rem;
  border-radius: 20px;
  background: linear-gradient(155deg, rgba(20, 16, 36, 0.96), rgba(10, 12, 24, 0.98));
  border: 1px solid rgba(168, 85, 247, 0.28);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  scroll-margin-top: 1rem;
  overflow: hidden;
}

.league-hero__glow {
  position: absolute;
  top: -40%;
  right: -10%;
  width: 55%;
  height: 120%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.15), transparent 65%);
  pointer-events: none;
}

.league-hero__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  position: relative;
}

.league-hero__eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--league-accent, var(--purple));
}

.league-hero__title {
  margin: 0 0 0.2rem;
  font-size: 1.35rem;
  font-weight: 700;
}

.league-hero__period {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.league-tier-path {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.league-tier-path__item {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.league-tier-path__item--active {
  color: var(--league-color, var(--purple));
  border-color: rgba(168, 85, 247, 0.4);
  background: rgba(124, 58, 237, 0.15);
}

.league-tier-path__gem {
  font-size: 0.55rem;
}

.league-tier-path__arrow {
  color: var(--text-muted);
  font-size: 0.65rem;
  opacity: 0.5;
}

.league-hero__main {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 1.1rem;
  position: relative;
}

.league-badge {
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--liver-panel);
  border: 2px solid var(--league-color, var(--purple));
  box-shadow: 0 0 24px color-mix(in srgb, var(--league-color, #a855f7) 35%, transparent);
}

.league-badge--hero {
  width: 108px;
  height: 108px;
  transform: rotate(45deg);
  border-radius: 18px;
}

.league-badge--hero .league-badge__gem,
.league-badge--hero .league-badge__tier,
.league-badge--hero .league-badge__level {
  transform: rotate(-45deg);
}

.league-badge__gem {
  font-size: 0.7rem;
  color: var(--league-color);
  line-height: 1;
}

.league-badge__tier {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
}

.league-badge__level {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1;
}

.league-badge--tier-a { --league-color: #fbbf24; }
.league-badge--tier-b { --league-color: #93c5fd; }
.league-badge--tier-c { --league-color: #fb923c; }
.league-badge--tier-d { --league-color: #c4886a; }

.league-hero__code {
  margin: 0 0 0.15rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.league-hero__label {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.league-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.league-stat {
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--liver-panel-border);
}

.league-stat__label {
  margin: 0 0 0.25rem;
  font-size: 0.62rem;
  color: var(--text-muted);
}

.league-stat__value {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.league-stat__meta {
  margin: 0.15rem 0 0;
  font-size: 0.62rem;
  color: var(--text-muted);
}

.league-progress-block {
  margin-bottom: 1rem;
  position: relative;
}

.league-progress-block__label {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #c4b5fd;
}

.league-progress-block__track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.league-progress-block__bar {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--league-accent, var(--purple)), var(--blue));
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.5);
  transition: width 0.6s ease;
}

.league-conditions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.league-condition {
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--liver-panel-border);
}

.league-condition--up { border-left: 3px solid #34d399; }
.league-condition--stay { border-left: 3px solid #93c5fd; }
.league-condition--down { border-left: 3px solid #f87171; }

.league-condition__title {
  margin: 0 0 0.3rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
}

.league-condition__text {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.4;
}

.league-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1rem;
}

.league-panel {
  padding: 1rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--liver-panel-border);
  min-width: 0;
}

.league-panel__title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
}

.league-panel__head {
  margin-bottom: 0.75rem;
}

.league-panel__body {
  min-height: 180px;
}

.league-panel__scroll {
  max-height: 220px;
  overflow-y: auto;
}

/* ── Growth feature slots (Live Stats) ── */

.growth-slot-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  white-space: nowrap;
}

.growth-slot-badge--inline {
  margin-left: auto;
}

.growth-slot-badge--preparing {
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.18);
  border: 1px solid rgba(167, 139, 250, 0.35);
}

.growth-slot-badge--pending {
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.growth-slot-empty {
  display: grid;
  gap: 0.35rem;
  place-items: center;
  text-align: center;
  min-height: 120px;
  padding: 1.25rem 1rem;
}

.growth-slot-empty__text {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
}

.growth-slot-empty__hint {
  margin: 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.45;
  max-width: 28ch;
}

.growth-panel {
  margin-bottom: 1.25rem;
  padding: 1.1rem 1.15rem;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--liver-panel-border);
}

.growth-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.growth-panel__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.growth-panel__desc {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.growth-week-summary__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.growth-week-summary__hint {
  margin: 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
}

.growth-week-summary__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.growth-week-card {
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.growth-week-card__label {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.growth-week-card__value {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.growth-monthly {
  display: grid;
  gap: 0.75rem;
}

.growth-monthly__skeleton {
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
  min-height: 140px;
  padding: 0.75rem 0.5rem 0;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.15);
}

.growth-monthly__bar {
  flex: 1;
  height: var(--h, 40%);
  min-height: 24px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.45), rgba(59, 130, 246, 0.2));
  opacity: 0.35;
}

.league-panel--prediction .league-panel__head {
  display: grid;
  gap: 0.15rem;
}

.league-panel__subtitle {
  margin: 0;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.league-panel--wide {
  margin-top: 1rem;
}

.league-prediction {
  display: grid;
  gap: 0.75rem;
}

.league-prediction-rates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.league-prediction-rates--placeholder {
  opacity: 0.55;
}

.league-prediction-rate {
  padding: 0.85rem 0.75rem;
  border-radius: 12px;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.league-prediction-rate--up {
  border-color: rgba(74, 222, 128, 0.25);
}

.league-prediction-rate--stay {
  border-color: rgba(147, 197, 253, 0.25);
}

.league-prediction-rate--down {
  border-color: rgba(251, 113, 133, 0.25);
}

.league-prediction-rate__label {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.league-prediction-rate__value {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
}

.league-panel__head:has(#league-trend-badge:not([hidden])) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.chart-placeholder--growth {
  grid-template-rows: auto auto;
  gap: 0.35rem;
  align-content: center;
}

.chart-placeholder__label {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
}

.chart-placeholder__hint {
  margin: 0;
  font-size: 0.72rem;
  opacity: 0.65;
}

.vs-opponent-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.vs-opponent-panel {
  padding: 1rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--liver-panel-border);
  min-height: 160px;
}

.vs-opponent-panel--strong {
  border-color: rgba(74, 222, 128, 0.2);
}

.vs-opponent-panel--weak {
  border-color: rgba(251, 113, 133, 0.2);
}

.vs-opponent-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.vs-opponent-panel__title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
}

.growth-opponent-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.growth-opponent-list__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.growth-opponent-list__name {
  font-size: 0.78rem;
  font-weight: 600;
}

.growth-opponent-list__meta {
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.listener-segments-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.listener-segment {
  padding: 1rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--liver-panel-border);
  min-width: 0;
}

.listener-segment--purple {
  border-color: rgba(167, 139, 250, 0.25);
}

.listener-segment--blue {
  border-color: rgba(96, 165, 250, 0.25);
}

.listener-segment--pink {
  border-color: rgba(244, 114, 182, 0.25);
}

.listener-segment__head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
  flex-wrap: wrap;
}

.listener-segment__icon {
  font-size: 1rem;
}

.listener-segment__title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  flex: 1;
}

.listener-segment__value {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.listener-segment__hint {
  margin: 0;
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.league-chart {
  width: 100%;
  height: 180px;
}

.league-chart__label {
  fill: var(--text-muted);
  font-size: 3.5px;
}

.league-pill {
  display: inline-flex;
  padding: 0.12rem 0.45rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: 'Orbitron', sans-serif;
}

.league-pill--a { color: #fde68a; background: rgba(251, 191, 36, 0.15); }
.league-pill--b { color: #bfdbfe; background: rgba(59, 130, 246, 0.15); }
.league-pill--c { color: #fed7aa; background: rgba(249, 115, 22, 0.15); }
.league-pill--d { color: #d4a574; background: rgba(146, 64, 14, 0.15); }

.league-change { font-size: 0.72rem; font-weight: 600; }
.league-change--up { color: #34d399; }
.league-change--down { color: #f87171; }
.league-change--stay { color: var(--text-muted); }

/* ── Growth dashboard header ── */
.growth-header__eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
}

/* ── 5-second glance strip ── */
.growth-glance-wrap {
  margin-bottom: 1.25rem;
}

.growth-glance-wrap__head {
  margin-bottom: 0.65rem;
}

.growth-glance-wrap__title {
  margin: 0 0 0.15rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.growth-glance-wrap__hint {
  margin: 0;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.growth-glance {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
}

.glance-card {
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: var(--liver-panel);
  border: 1px solid var(--liver-panel-border);
  min-width: 0;
}

.glance-card--purple {
  border-color: rgba(168, 85, 247, 0.25);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(16, 18, 32, 0.9));
}

.glance-card--blue {
  border-color: rgba(59, 130, 246, 0.25);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(16, 18, 32, 0.9));
}

.glance-card--pink {
  border-color: rgba(236, 72, 153, 0.25);
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(16, 18, 32, 0.9));
}

.glance-card__label {
  margin: 0 0 0.3rem;
  font-size: 0.62rem;
  color: var(--text-muted);
}

.glance-card__value {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Growth hero (level / missions / coach teaser) ── */
.growth-hero {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.growth-card {
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: var(--liver-panel);
  border: 1px solid var(--liver-panel-border);
  min-width: 0;
}

.growth-card--level {
  background: linear-gradient(160deg, rgba(124, 58, 237, 0.18), rgba(16, 18, 32, 0.95));
  border-color: rgba(168, 85, 247, 0.3);
}

.growth-card--missions {
  background: linear-gradient(160deg, rgba(59, 130, 246, 0.12), rgba(16, 18, 32, 0.95));
}

.growth-card--coach-teaser {
  background: linear-gradient(160deg, rgba(236, 72, 153, 0.08), rgba(16, 18, 32, 0.95));
}

.growth-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.growth-card__title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
}

.growth-card__badge {
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: 'Orbitron', sans-serif;
  color: #e9d5ff;
  background: rgba(124, 58, 237, 0.35);
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.growth-card__link {
  font-size: 0.68rem;
  color: var(--purple);
  text-decoration: none;
}

.growth-level__title {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  font-weight: 700;
}

.growth-level__xp {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.growth-level__track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 0.45rem;
}

.growth-level__bar {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple), var(--blue));
  transition: width 0.6s ease;
}

.growth-level__next {
  margin: 0;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.growth-missions__summary {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.growth-missions__track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.growth-missions__bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transition: width 0.5s ease;
}

.growth-missions__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.mission-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.55rem;
}

.mission-item--done .mission-item__status {
  color: #34d399;
}

.mission-item__icon {
  font-size: 1rem;
}

.mission-item__label {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 500;
}

.mission-item__track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.mission-item__fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--blue));
}

.mission-item__status {
  font-size: 0.62rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.coach-teaser {
  margin: 0 0 0.65rem;
  display: grid;
  gap: 0.45rem;
}

.coach-teaser dt {
  font-size: 0.62rem;
  color: var(--text-muted);
}

.coach-teaser dd {
  margin: 0.1rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
}

.coach-teaser__advice {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--text-muted);
}

/* ── PK triple grid ── */
.pk-triple-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.opp-winrate-list {
  display: grid;
  gap: 0.65rem;
  max-height: 280px;
  overflow-y: auto;
}

.opp-rate-row__head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.opp-rate-row__name {
  font-size: 0.78rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.opp-rate-row__pct {
  font-size: 0.78rem;
  font-weight: 700;
  color: #c4b5fd;
}

.opp-rate-row__track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.opp-rate-row__fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--blue));
}

.opp-rate-row__meta {
  margin: 0.2rem 0 0;
  font-size: 0.62rem;
  color: var(--text-muted);
}

/* ── Gift highlights ── */
.gift-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.gift-highlight {
  padding: 1rem;
  border-radius: 14px;
  background: var(--liver-panel);
  border: 1px solid var(--liver-panel-border);
}

.gift-highlight--king {
  background: linear-gradient(145deg, rgba(124, 58, 237, 0.2), rgba(16, 18, 32, 0.92));
  border-color: rgba(168, 85, 247, 0.35);
}

.gift-highlight__label {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.gift-highlight__value {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gift-highlight__meta {
  margin: 0.25rem 0 0;
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* ── Listener insights ── */
.listener-insights-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.insight-card {
  padding: 0.9rem;
  border-radius: 14px;
  background: var(--liver-panel);
  border: 1px solid var(--liver-panel-border);
  min-width: 0;
}

.insight-card__icon {
  font-size: 1.25rem;
  display: block;
  margin-bottom: 0.35rem;
}

.insight-card__label {
  margin: 0 0 0.25rem;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.insight-card__value {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.insight-card__hint {
  margin: 0.2rem 0 0;
  font-size: 0.62rem;
  color: var(--text-muted);
}

/* ── AI Coach section ── */
.coach-insights-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.coach-insight {
  padding: 1rem;
  border-radius: 14px;
  background: var(--liver-panel);
  border: 1px solid var(--liver-panel-border);
}

.coach-insight--wide {
  grid-column: span 1;
}

.coach-insight__label {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.coach-insight__value {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  font-family: 'Orbitron', sans-serif;
}

.coach-insight__hint,
.coach-insight__advice {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.liver-section--achievements .badge-collection-group__title {
  font-size: 0.82rem;
}

.liver-section--achievements .badge-scroll-wrap {
  border-radius: 14px;
  border: 1px solid var(--liver-panel-border);
  background: rgba(0, 0, 0, 0.15);
}

/* ── Mobile bottom nav ── */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.35rem 0.5rem calc(0.35rem + env(safe-area-inset-bottom));
  background: rgba(8, 8, 16, 0.92);
  border-top: 1px solid var(--liver-panel-border);
  backdrop-filter: blur(16px);
  justify-content: space-around;
  gap: 0.25rem;
}

.mobile-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.35rem;
  font-size: 0.58rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 10px;
}

.mobile-nav__item span {
  font-size: 1rem;
}

.mobile-nav__item--active {
  color: #faf5ff;
  font-weight: 600;
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.35), rgba(59, 130, 246, 0.15));
  box-shadow: inset 0 -2px 0 #a855f7;
}

@media (max-width: 1200px) {
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chart-grid,
  .dash-triple-grid,
  .liver-dual-grid,
  .pk-triple-grid,
  .pk-stats-grid,
  .vs-insight-cards,
  .dash-today-battle__summary,
  .growth-hero,
  .gift-highlight-grid,
  .listener-insights-grid,
  .coach-insights-grid,
  .league-conditions,
  .league-stat-row,
  .league-detail-grid,
  .league-hero__main {
    grid-template-columns: 1fr;
  }

  .growth-week-summary__grid,
  .league-prediction-rates,
  .vs-opponent-panels,
  .listener-segments-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .growth-glance {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.sidebar-bottom .streamer-row__name,
.sidebar-dock .streamer-row__name {
  white-space: normal;
  word-break: break-word;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.sidebar-bottom .streamer-row__meta,
.sidebar-dock .streamer-row__meta {
  white-space: normal;
  word-break: break-all;
  overflow: visible;
  text-overflow: unset;
}

@media (max-width: 960px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar--saas {
    position: relative;
    width: 100%;
    min-width: 0;
    height: auto;
    max-height: none;
    grid-template-rows: auto auto;
    overflow: visible;
  }

  .sidebar--saas .sidebar-nav {
    max-height: none;
    overflow: visible;
  }

  .main.liver-main {
    height: auto;
    padding-bottom: 5rem;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .growth-glance {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .growth-week-summary__grid,
  .league-prediction-rates,
  .vs-opponent-panels,
  .listener-segments-grid {
    grid-template-columns: 1fr;
  }

  .mobile-nav {
    display: flex;
  }
}

@media (max-width: 560px) {
  .kpi-grid,
  .growth-glance {
    grid-template-columns: 1fr;
  }

  .kpi-card__value {
    font-size: 1.75rem;
  }
}

/* ── Manager Shell ── */

#liver-shell[hidden],
#manager-shell[hidden] {
  display: none !important;
}

#manager-shell:not([hidden]) {
  display: grid;
}

#liver-shell:not([hidden]) {
  display: grid;
}

body.body--manager-shell {
  overflow-x: hidden;
}

body[data-shell='manager'] .mobile-nav {
  display: none;
}

.manager-main {
  padding-bottom: 2rem;
}

.manager-header .growth-header__eyebrow {
  color: #93c5fd;
}

.kpi-grid--mgr {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.kpi-card--mgr .growth-slot-badge {
  margin-top: 0.35rem;
}

.kpi-card--mgr.kpi-card--purple {
  border-color: rgba(167, 139, 250, 0.28);
}

.kpi-card--mgr.kpi-card--blue {
  border-color: rgba(96, 165, 250, 0.28);
}

.kpi-card--mgr.kpi-card--pink {
  border-color: rgba(244, 114, 182, 0.28);
}

.manager-section {
  margin-bottom: 1.5rem;
}

.mgr-table-wrap {
  border-radius: 14px;
  border: 1px solid var(--liver-panel-border);
  background: rgba(0, 0, 0, 0.2);
  overflow: auto;
}

.mgr-streamer-link {
  display: grid;
  gap: 0.1rem;
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.mgr-streamer-link:hover .mgr-streamer-link__name {
  color: #c4b5fd;
}

.mgr-streamer-link__name {
  font-weight: 600;
  font-size: 0.82rem;
}

.mgr-streamer-link__handle {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.mgr-table-growth {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.mgr-table-growth.mgr-rank-list__growth--up {
  color: #6ee7b7;
}

.mgr-table-growth.mgr-rank-list__growth--down {
  color: #f87171;
}

.mgr-streamer-table th,
.mgr-streamer-table td {
  white-space: nowrap;
}

.mgr-streamer-table th:first-child,
.mgr-streamer-table td:first-child {
  white-space: normal;
  min-width: 7rem;
}

.mgr-status-pill {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 600;
  white-space: nowrap;
}

.mgr-status-pill--thriving {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.mgr-status-pill--follow {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.mgr-status-pill--inactive {
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.mgr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  border: 1px solid rgba(167, 139, 250, 0.35);
  background: rgba(124, 58, 237, 0.2);
  color: #e9d5ff;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}

.mgr-btn:hover {
  background: rgba(124, 58, 237, 0.35);
}

.mgr-btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.mgr-btn--sm {
  padding: 0.25rem 0.55rem;
  font-size: 0.68rem;
}

.mgr-league-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.85rem;
}

.mgr-league-card {
  padding: 1rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--liver-panel-border);
  min-width: 0;
}

.mgr-league-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.mgr-league-card__name {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
}

.mgr-league-card__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0 0 0.75rem;
}

.mgr-league-card__stats dt {
  font-size: 0.62rem;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.mgr-league-card__stats dd {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
}

.mgr-league-card__history-label {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.mgr-league-card__history .chart-placeholder {
  min-height: 100px;
}

.mgr-league-card__history-text {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  color: #c4b5fd;
}

.mgr-league-card__history-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.3rem;
  min-height: 56px;
  padding: 0.35rem 0.25rem 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.15);
}

.mgr-league-card__history-bar {
  flex: 1;
  height: var(--h, 40%);
  min-height: 12px;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.5), rgba(59, 130, 246, 0.25));
}

.mgr-rank-list__growth {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.mgr-rank-list__growth--up {
  color: #6ee7b7;
}

.mgr-rank-list__growth--down {
  color: #f87171;
}

.mgr-alert-card__detail {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  color: #e9d5ff;
  line-height: 1.4;
}

.mgr-panel {
  padding: 1rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--liver-panel-border);
}

.mgr-rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.mgr-rank-list__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mgr-rank-list__rank {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #a78bfa;
  min-width: 1.5rem;
}

.mgr-rank-list__body {
  flex: 1;
  min-width: 0;
}

.mgr-rank-list__name {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
}

.mgr-rank-list__meta {
  margin: 0.2rem 0 0;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.mgr-alerts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.mgr-alert-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: start;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--liver-panel-border);
}

.mgr-alert-card--stream-drop {
  border-color: rgba(251, 113, 133, 0.25);
}

.mgr-alert-card--gift-up,
.mgr-alert-card--league-near {
  border-color: rgba(74, 222, 128, 0.22);
}

.mgr-alert-card--follow-rec {
  border-color: rgba(167, 139, 250, 0.28);
}

.mgr-alert-card__icon {
  font-size: 1.35rem;
}

.mgr-alert-card__title {
  margin: 0 0 0.25rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.mgr-alert-card__streamer {
  margin: 0 0 0.2rem;
  font-size: 0.78rem;
  color: #c4b5fd;
}

.mgr-alert-card__hint {
  margin: 0;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.mgr-alert-card__foot {
  display: grid;
  gap: 0.4rem;
  justify-items: end;
}

.mgr-back-btn {
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(167, 139, 250, 0.35);
  background: rgba(124, 58, 237, 0.15);
  color: #e9d5ff;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  margin-right: 0.5rem;
}

.mgr-back-btn:hover {
  background: rgba(124, 58, 237, 0.3);
}

.sidebar--manager .sidebar-brand__gem {
  color: #93c5fd;
}

@media (max-width: 1200px) {
  .kpi-grid--mgr {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mgr-alerts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .kpi-grid--mgr {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mgr-league-card__stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .kpi-grid--mgr {
    grid-template-columns: 1fr;
  }
}

/* ── Manager Shell v2 · 運営ダッシュボード ── */

.mgr-team-pulse {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.mgr-pulse-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.28);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.mgr-pulse-card:hover {
  transform: translateY(-1px);
  border-color: rgba(167, 139, 250, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.mgr-pulse-card--ace {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(0, 0, 0, 0.3));
  border-color: rgba(251, 191, 36, 0.25);
}

.mgr-pulse-card--follow {
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.1), rgba(0, 0, 0, 0.28));
  border-color: rgba(250, 204, 21, 0.2);
}

.mgr-pulse-card--rising {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.1), rgba(0, 0, 0, 0.28));
  border-color: rgba(52, 211, 153, 0.22);
}

.mgr-pulse-card__icon {
  font-size: 1.5rem;
  line-height: 1;
}

.mgr-pulse-card__label {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.mgr-pulse-card__name {
  margin: 0.1rem 0 0;
  font-size: 1rem;
  font-weight: 700;
}

.mgr-pulse-card__highlight {
  margin: 0.2rem 0 0;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #e9d5ff;
}

.mgr-pulse-card--ace .mgr-pulse-card__highlight {
  color: #fde68a;
}

.mgr-pulse-card--rising .mgr-pulse-card__highlight {
  color: #6ee7b7;
}

.mgr-pulse-card__sub {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.mgr-pulse-card__arrow {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.35);
}

.mgr-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.mgr-kpi {
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.22);
}

.mgr-kpi--gold {
  border-color: rgba(251, 191, 36, 0.2);
  background: linear-gradient(160deg, rgba(251, 191, 36, 0.08), rgba(0, 0, 0, 0.25));
}

.mgr-kpi--purple {
  border-color: rgba(167, 139, 250, 0.22);
}

.mgr-kpi--green {
  border-color: rgba(52, 211, 153, 0.2);
}

.mgr-kpi--blue {
  border-color: rgba(96, 165, 250, 0.2);
}

.mgr-kpi__label {
  margin: 0;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.mgr-kpi__value {
  margin: 0.35rem 0 0;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.1rem, 3.5vw, 1.45rem);
  font-weight: 700;
  line-height: 1.2;
  word-break: break-word;
}

.mgr-kpi__sub {
  margin: 0.25rem 0 0;
  font-size: 0.72rem;
  color: #c4b5fd;
}

.mgr-liver-cards {
  display: grid;
  gap: 1rem;
}

.mgr-liver-card {
  padding: 1.1rem 1.15rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.28);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.mgr-liver-card--ace {
  border-color: rgba(251, 191, 36, 0.28);
  background: linear-gradient(165deg, rgba(251, 191, 36, 0.07) 0%, rgba(0, 0, 0, 0.32) 45%);
}

.mgr-liver-card--follow {
  border-color: rgba(250, 204, 21, 0.22);
}

.mgr-liver-card--rising {
  border-color: rgba(52, 211, 153, 0.22);
  background: linear-gradient(165deg, rgba(52, 211, 153, 0.06) 0%, rgba(0, 0, 0, 0.3) 50%);
}

.mgr-liver-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.mgr-liver-card__role {
  display: inline-block;
  margin-bottom: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.06);
  color: #c4b5fd;
}

.mgr-liver-card--ace .mgr-liver-card__role {
  background: rgba(251, 191, 36, 0.15);
  color: #fde68a;
}

.mgr-liver-card--follow .mgr-liver-card__role {
  background: rgba(250, 204, 21, 0.12);
  color: #fef08a;
}

.mgr-liver-card--rising .mgr-liver-card__role {
  background: rgba(52, 211, 153, 0.12);
  color: #6ee7b7;
}

.mgr-liver-card__name-btn {
  display: block;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 1.35rem;
  font-weight: 800;
  color: #f5f3ff;
  cursor: pointer;
  text-align: left;
}

.mgr-liver-card__name-btn:hover {
  color: #c4b5fd;
}

.mgr-liver-card__league-label {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.mgr-liver-card__status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.mgr-liver-card__status--hot {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

.mgr-liver-card__status--follow {
  background: rgba(250, 204, 21, 0.12);
  color: #fde047;
}

.mgr-liver-card__status--rising {
  background: rgba(52, 211, 153, 0.12);
  color: #6ee7b7;
}

.mgr-liver-card__hero-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.mgr-liver-card__metric {
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mgr-liver-card__metric--today {
  border-color: rgba(96, 165, 250, 0.2);
}

.mgr-liver-card__metric--month {
  border-color: rgba(167, 139, 250, 0.22);
}

.mgr-liver-card__metric-label {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.mgr-liver-card__metric-value {
  display: block;
  margin-top: 0.25rem;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.15rem, 4.5vw, 1.65rem);
  font-weight: 700;
  line-height: 1.15;
}

.mgr-liver-card__stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.mgr-liver-card__stat {
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  text-align: center;
}

.mgr-liver-card__stat-label {
  display: block;
  font-size: 0.62rem;
  color: var(--text-muted);
}

.mgr-liver-card__stat-value {
  display: block;
  margin-top: 0.2rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
}

.mgr-liver-card__stat-value--promo {
  font-size: 0.78rem;
  color: #93c5fd;
}

.mgr-liver-card__gifter {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
  margin-bottom: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: rgba(236, 72, 153, 0.08);
  border: 1px solid rgba(236, 72, 153, 0.15);
}

.mgr-liver-card__gifter-label {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.mgr-liver-card__gifter-name {
  font-weight: 700;
  font-size: 0.88rem;
}

.mgr-liver-card__gifter-val {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #f9a8d4;
}

.mgr-liver-card__ai {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem 0.75rem;
  align-items: start;
  margin-bottom: 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(0, 0, 0, 0.2));
  border: 1px solid rgba(167, 139, 250, 0.2);
}

.mgr-liver-card__ai-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: rgba(124, 58, 237, 0.35);
  color: #e9d5ff;
}

.mgr-liver-card__ai-lines p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #e9d5ff;
}

.mgr-liver-card__ai-lines p + p {
  margin-top: 0.2rem;
  color: #c4b5fd;
  font-size: 0.78rem;
}

.mgr-liver-card__foot {
  display: flex;
  justify-content: flex-end;
}

.mgr-btn--primary {
  padding: 0.55rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(167, 139, 250, 0.35);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.45), rgba(59, 130, 246, 0.25));
  color: #f5f3ff;
  font-size: 0.82rem;
  font-weight: 600;
}

.mgr-btn--primary:hover {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.6), rgba(59, 130, 246, 0.35));
}

.mgr-rankings-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.mgr-ranking-panel {
  padding: 1rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--liver-panel-border);
}

.mgr-ranking-panel__title {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #c4b5fd;
}

.mgr-medal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.mgr-medal-list__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.75rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mgr-medal-list__medal {
  font-size: 1.35rem;
  line-height: 1;
}

.mgr-medal-list__name {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
}

.mgr-medal-list__sub {
  margin: 0.1rem 0 0;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.mgr-medal-list__value {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
}

.mgr-medal-list__value--diamond {
  color: #93c5fd;
}

.mgr-stat--up {
  color: #6ee7b7;
}

.mgr-stat--down {
  color: #f87171;
}

.mgr-alerts-grid--tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.mgr-alert-tile {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
}

.mgr-alert-tile:hover {
  transform: translateY(-1px);
  border-color: rgba(167, 139, 250, 0.3);
}

.mgr-alert-tile--ace {
  border-color: rgba(239, 68, 68, 0.25);
  background: linear-gradient(160deg, rgba(239, 68, 68, 0.08), rgba(0, 0, 0, 0.28));
}

.mgr-alert-tile--follow {
  border-color: rgba(250, 204, 21, 0.22);
}

.mgr-alert-tile--rising {
  border-color: rgba(52, 211, 153, 0.22);
}

.mgr-alert-tile__icon {
  font-size: 1.5rem;
}

.mgr-alert-tile__name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
}

.mgr-alert-tile__title {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #e9d5ff;
}

.mgr-alert-tile__hint {
  margin: 0.2rem 0 0;
  font-size: 0.72rem;
  color: var(--text-muted);
}

@media (max-width: 960px) {
  .mgr-kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mgr-rankings-split {
    grid-template-columns: 1fr;
  }

  .mgr-alerts-grid--tiles {
    grid-template-columns: 1fr;
  }

  .mgr-liver-card__stats-row {
    grid-template-columns: 1fr;
  }

  .mgr-liver-card__stat {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .mgr-kpi-strip {
    grid-template-columns: 1fr;
  }

  .mgr-liver-card__hero-metrics {
    grid-template-columns: 1fr;
  }

  .mgr-liver-card__metric-value {
    font-size: 1.45rem;
  }

  .manager-main {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
}

/* Stream detail page */
.stream-detail-page {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.stream-detail-page__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.stream-detail-page__back a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
}

.stream-detail-page__back a:hover {
  color: #c084fc;
}

.stream-detail-page__title {
  margin: 0.25rem 0 0.35rem;
  font-size: 1.45rem;
}

.stream-detail-page__eyebrow,
.stream-detail-page__subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.stream-detail-summary {
  margin-bottom: 1rem;
}

.stream-detail-charts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.stream-detail-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 1rem;
}

.stream-detail-narrative__text {
  margin: 0;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
}

.stream-history-row--link {
  cursor: pointer;
}

.stream-history-row--link:hover {
  background: rgba(168, 85, 247, 0.08);
}

.stream-history-row__hint {
  font-size: 0.75rem;
}

@media (max-width: 960px) {
  .stream-detail-charts,
  .stream-detail-bottom {
    grid-template-columns: 1fr;
  }
}

/* ── Agency Dashboard ─────────────────────────────────────── */

.mgr-rankings-split--in-overview {
  margin-top: 1.25rem;
}

.agency-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.agency-settings-grid dt {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.agency-settings-grid dd {
  margin: 0;
  font-weight: 600;
}

.agency-settings-grid code {
  font-size: 0.85em;
  opacity: 0.85;
}

.agency-invite-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.agency-invite-card {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

.agency-invite-card__title {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.agency-invite-card__desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
}

.agency-invite-card__status {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.agency-table-wrap {
  overflow-x: auto;
}

.agency-panel-note,
.settings-panel--inline {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.settings-panel--inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}
