/* Reports hub and detail reports. */
.rp-page { width: min(1180px, 100%); margin: 0 auto; padding-bottom: var(--space-8); }
.rp-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-6); margin-bottom: var(--space-8); padding: var(--space-6) 0 var(--space-5); border-bottom: 1px solid var(--color-border); }
.rp-page-head h1 { margin: 0; color: var(--color-fg); font-size: clamp(1.8rem, 3vw, 2.45rem); line-height: 1.08; letter-spacing: -.04em; }
.rp-page-head > div > p:last-child { max-width: 680px; margin: var(--space-3) 0 0; color: var(--color-fg-muted); font-size: var(--text-sm); line-height: 1.6; }
.rp-eyebrow { margin: 0 0 var(--space-2); color: var(--color-primary); font-size: var(--text-xs); font-weight: var(--font-bold); text-transform: uppercase; letter-spacing: .09em; }
.rp-report-count { display: flex; align-items: baseline; gap: var(--space-2); flex-shrink: 0; padding: var(--space-3) var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); color: var(--color-fg-muted); font-size: var(--text-xs); box-shadow: var(--shadow-sm); }
.rp-report-count b { color: var(--color-fg); font-size: var(--text-xl); font-variant-numeric: tabular-nums; }
.rp-catalog { display: flex; flex-direction: column; gap: var(--space-8); }
.rp-section__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-4); }
.rp-section__head h2 { margin: 0; color: var(--color-fg); font-size: var(--text-lg); letter-spacing: -.02em; }
.rp-section__head p { margin: 4px 0 0; color: var(--color-fg-muted); font-size: var(--text-xs); }
.rp-section__head > span { display: grid; place-items: center; min-width: 28px; height: 28px; border-radius: var(--radius-full); background: var(--color-surface-2); color: var(--color-fg-muted); font-size: var(--text-xs); font-weight: var(--font-bold); }
.rp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.rp-card { min-width: 0; min-height: 112px; padding: var(--space-5); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-xl); background: var(--color-surface); color: var(--color-fg); text-align: left; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), border-color var(--dur-fast); }
.rp-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--color-border-strong); }
.rp-card__icon, .rp-detail-head__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius-lg); flex-shrink: 0; background: var(--color-primary-soft); color: var(--color-primary); }
.rp-card__icon .icon, .rp-detail-head__icon .icon { width: 22px; height: 22px; }
.rp-card--green .rp-card__icon, .rp-detail-head__icon.rp-card--green { background: var(--color-success-soft); color: var(--color-success); }
.rp-card--orange .rp-card__icon, .rp-detail-head__icon.rp-card--orange { background: var(--color-warning-soft); color: var(--color-warning); }
.rp-card--violet .rp-card__icon, .rp-detail-head__icon.rp-card--violet { background: var(--color-primary-soft); color: var(--color-primary); }
.rp-card--cyan .rp-card__icon, .rp-detail-head__icon.rp-card--cyan { background: var(--color-info-soft); color: var(--color-info); }
.rp-card__content { min-width: 0; }
.rp-card__content strong { display: block; margin-bottom: 5px; font-size: var(--text-sm); }
.rp-card__content small { display: block; color: var(--color-fg-muted); font-size: var(--text-xs); font-weight: 400; line-height: 1.45; }
.rp-card__arrow { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-full); background: var(--color-surface-2); color: var(--color-fg-subtle); transition: transform var(--dur-fast) var(--ease-out), color var(--dur-fast); }
.rp-card:hover .rp-card__arrow { transform: translateX(2px); color: var(--color-primary); }
.rp-card__arrow .icon { width: 15px; height: 15px; }

.rp-detail { display: flex; flex-direction: column; gap: var(--space-5); padding-top: var(--space-3); }
.rp-back { align-self: flex-start; display: inline-flex; align-items: center; gap: var(--space-2); padding: 7px 10px 7px 6px; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--color-fg-muted); font: inherit; font-size: var(--text-sm); cursor: pointer; }
.rp-back:hover { background: var(--color-surface-2); color: var(--color-fg); }
.rp-back .icon { width: 16px; height: 16px; }
.rp-detail-head { display: flex; align-items: center; gap: var(--space-4); padding-bottom: var(--space-5); border-bottom: 1px solid var(--color-border); }
.rp-detail-head p { margin: 0 0 3px; color: var(--color-primary); font-size: var(--text-xs); font-weight: var(--font-bold); text-transform: uppercase; letter-spacing: .07em; }
.rp-detail-head h1 { margin: 0; color: var(--color-fg); font-size: clamp(1.55rem, 3vw, 2rem); line-height: 1.15; letter-spacing: -.035em; }
.rp-detail-head span:not(.rp-detail-head__icon) { display: block; margin-top: 6px; color: var(--color-fg-muted); font-size: var(--text-sm); }
#rp-result { display: flex; flex-direction: column; gap: var(--space-5); }

.rp-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); }
.rp-kpis--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rp-kpi { min-width: 0; min-height: 124px; display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-4); padding: var(--space-5); border: 1px solid var(--color-border); border-radius: var(--radius-xl); background: var(--color-surface); box-shadow: var(--shadow-sm); }
.rp-kpi__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--radius-md); background: var(--color-surface-2); color: var(--color-fg-muted); }
.rp-kpi__icon .icon { width: 17px; height: 17px; }
.rp-kpi b { display: block; overflow: hidden; color: var(--color-fg); font-size: var(--text-2xl); font-weight: var(--font-extrabold); line-height: 1.05; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rp-kpi span:not(.rp-kpi__icon) { display: block; margin-top: 5px; color: var(--color-fg-muted); font-size: var(--text-xs); }
.rp-kpi small { display: block; margin-top: 3px; color: var(--color-fg-subtle); font-size: var(--text-xs); }
.rp-kpi--primary .rp-kpi__icon { background: var(--color-primary-soft); color: var(--color-primary); }
.rp-kpi--success .rp-kpi__icon { background: var(--color-success-soft); color: var(--color-success); }
.rp-kpi--warning .rp-kpi__icon { background: var(--color-warning-soft); color: var(--color-warning); }
.rp-kpi--danger .rp-kpi__icon { background: var(--color-danger-soft); color: var(--color-danger); }

.rp-panel { padding: var(--space-5); border: 1px solid var(--color-border); border-radius: var(--radius-xl); background: var(--color-surface); box-shadow: var(--shadow-sm); }
.rp-panel__head { display: flex; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-5); }
.rp-panel__head h3 { margin: 0; color: var(--color-fg); font-size: var(--text-base); }
.rp-panel__head p { margin: 5px 0 0; color: var(--color-fg-muted); font-size: var(--text-xs); }
.rp-toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); padding: var(--space-4) var(--space-5); border: 1px solid var(--color-border); border-radius: var(--radius-xl); background: var(--color-surface); box-shadow: var(--shadow-sm); }
.rp-toolbar strong, .rp-toolbar span { display: block; }
.rp-toolbar strong { font-size: var(--text-sm); }
.rp-toolbar span { margin-top: 4px; color: var(--color-fg-muted); font-size: var(--text-xs); }
.rp-toolbar .people-filter { width: min(300px, 100%); margin: 0; }

.rp-bars { display: flex; flex-direction: column; gap: var(--space-2); }
.rp-bar-row { min-width: 0; display: grid; grid-template-columns: 28px minmax(110px, 180px) minmax(120px, 1fr) 44px 38px; align-items: center; gap: var(--space-3); min-height: 45px; padding: 0 var(--space-2); border-radius: var(--radius-md); font-size: var(--text-sm); }
.rp-bar-row:hover { background: var(--color-surface-2); }
.rp-bar-row__rank { color: var(--color-fg-subtle); font-size: 10px; font-weight: var(--font-bold); }
.rp-bar-row__label { min-width: 0; color: var(--color-fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-bar-row__track { height: 9px; border-radius: var(--radius-full); background: var(--color-surface-2); overflow: hidden; }
.rp-bar-row__track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover)); }
.rp-bar-row__value { text-align: right; font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
.rp-bar-row small { color: var(--color-fg-subtle); font-size: var(--text-xs); text-align: right; }

.rp-celebrations, .rp-balance-grid, .rp-cycle-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.rp-celebration { min-width: 0; display: grid; grid-template-columns: 54px auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-3); padding: var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-xl); background: var(--color-surface); box-shadow: var(--shadow-sm); }
.rp-celebration time { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 50px; border-radius: var(--radius-md); background: var(--color-surface-2); }
.rp-celebration time b { font-size: var(--text-lg); line-height: 1; }
.rp-celebration time span { margin-top: 3px; color: var(--color-fg-muted); font-size: 10px; text-transform: uppercase; }
.rp-celebration > div { min-width: 0; }
.rp-celebration > div strong, .rp-celebration > div span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-celebration > div strong { font-size: var(--text-sm); }
.rp-celebration > div span { margin-top: 4px; color: var(--color-fg-muted); font-size: var(--text-xs); }
.rp-celebration__kind { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-full); background: var(--color-warning-soft); color: var(--color-warning); }
.rp-celebration__kind--anniversary { background: var(--color-primary-soft); color: var(--color-primary); }
.rp-celebration__kind .icon { width: 15px; height: 15px; }
.rp-empty-card { display: grid; place-items: center; min-height: 230px; padding: var(--space-6); border: 1px dashed var(--color-border-strong); border-radius: var(--radius-xl); color: var(--color-fg-muted); text-align: center; }
.rp-empty-card > span { font-size: 2.2rem; }
.rp-empty-card strong { margin-top: var(--space-3); color: var(--color-fg); }
.rp-empty-card p { max-width: 46ch; margin: var(--space-2) 0 0; font-size: var(--text-sm); }

.rp-balance-card, .rp-cycle-card { padding: var(--space-5); border: 1px solid var(--color-border); border-radius: var(--radius-xl); background: var(--color-surface); box-shadow: var(--shadow-sm); }
.rp-balance-card__head, .rp-cycle-card__head { display: flex; align-items: center; gap: var(--space-3); }
.rp-balance-card__head strong { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--text-sm); }
.rp-balance-card__head b { font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
.rp-balance-card__track, .rp-cycle-card__track { height: 9px; margin-top: var(--space-4); border-radius: var(--radius-full); background: var(--color-surface-2); overflow: hidden; }
.rp-balance-card__track span, .rp-cycle-card__track span { display: block; height: 100%; border-radius: inherit; background: var(--color-primary); }
.rp-balance-card__meta, .rp-cycle-card__meta { display: flex; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-3); color: var(--color-fg-muted); font-size: var(--text-xs); }

.rp-status-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.rp-status-card { display: flex; align-items: center; gap: var(--space-3); min-height: 90px; padding: var(--space-4); border-radius: var(--radius-lg); background: var(--color-surface-2); }
.rp-status-card > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius-md); background: var(--color-surface); color: var(--color-fg-muted); }
.rp-status-card--done > span { background: var(--color-success-soft); color: var(--color-success); }
.rp-status-card .icon { width: 17px; height: 17px; }
.rp-status-card b, .rp-status-card small { display: block; }
.rp-status-card b { font-size: var(--text-xl); font-variant-numeric: tabular-nums; }
.rp-status-card small { margin-top: 3px; color: var(--color-fg-muted); }

.rp-funnel { display: flex; flex-direction: column; gap: var(--space-4); }
.rp-funnel__row { position: relative; padding-right: 92px; }
.rp-funnel__meta { display: flex; justify-content: space-between; gap: var(--space-3); margin-bottom: 7px; font-size: var(--text-xs); }
.rp-funnel__meta span { color: var(--color-fg-muted); }
.rp-funnel__meta b { font-variant-numeric: tabular-nums; }
.rp-funnel__track { height: 28px; border-radius: var(--radius-md); background: var(--color-surface-2); overflow: hidden; }
.rp-funnel__track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover)); }
.rp-funnel__row small { position: absolute; right: 0; bottom: 7px; width: 78px; color: var(--color-fg-subtle); font-size: 10px; text-align: right; }

.rp-cycle-card__head { justify-content: space-between; }
.rp-cycle-card__head > div { min-width: 0; display: flex; align-items: center; gap: var(--space-2); }
.rp-cycle-card__head strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--text-sm); }
.rp-cycle-card__head > b { font-size: var(--text-lg); font-variant-numeric: tabular-nums; }
.rp-status-badge { padding: 4px 8px; border-radius: var(--radius-full); background: var(--color-surface-2); color: var(--color-fg-muted); font-size: 10px; font-weight: var(--font-semibold); white-space: nowrap; }
.rp-status-badge--active, .rp-status-badge--in_progress { background: var(--color-primary-soft); color: var(--color-primary); }
.rp-status-badge--completed { background: var(--color-success-soft); color: var(--color-success); }

.rp-panel__head--legend { align-items: center; }
.rp-heat-legend { display: flex; align-items: center; gap: 5px; color: var(--color-fg-muted); font-size: 10px; white-space: nowrap; }
.rp-heat-legend span { width: 16px; height: 16px; border-radius: 4px; }
.rp-heatmap-wrap { overflow-x: auto; }
.rp-heatmap { width: 100%; border-collapse: separate; border-spacing: 5px; }
.rp-heatmap th { min-width: 104px; padding: var(--space-2); color: var(--color-fg-muted); font-size: var(--text-xs); font-weight: var(--font-semibold); text-align: center; }
.rp-heatmap th:first-child { position: sticky; left: 0; z-index: 1; min-width: 180px; background: var(--color-surface); text-align: left; }
.rp-heatmap td { min-width: 76px; padding: 0; text-align: center; }
.rp-heat-cell { display: grid; place-items: center; min-height: 48px; border-radius: var(--radius-md); background: var(--color-danger-soft); color: var(--color-danger); font-size: var(--text-sm); font-weight: var(--font-bold); font-variant-numeric: tabular-nums; }
.rp-heat-cell.is-mid, .rp-heat-legend .is-mid { background: var(--color-warning-soft); color: var(--color-warning); }
.rp-heat-cell.is-good, .rp-heat-legend .is-good { background: var(--color-primary-soft); color: var(--color-primary); }
.rp-heat-cell.is-high, .rp-heat-legend .is-high { background: var(--color-success-soft); color: var(--color-success); }
.rp-heat-cell.is-low, .rp-heat-legend .is-low { background: var(--color-danger-soft); color: var(--color-danger); }
.rp-heat-cell.is-empty { background: var(--color-surface-2); color: var(--color-fg-subtle); }

@media (max-width: 980px) {
  .rp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .rp-page-head { align-items: flex-start; flex-direction: column; margin-bottom: var(--space-6); }
  .rp-grid, .rp-celebrations, .rp-balance-grid, .rp-cycle-list { grid-template-columns: 1fr; }
  .rp-toolbar { align-items: stretch; flex-direction: column; }
  .rp-toolbar .people-filter { width: 100%; }
  .rp-status-grid { grid-template-columns: 1fr; }
  .rp-bar-row { grid-template-columns: 24px minmax(80px, 120px) minmax(70px, 1fr) 36px; gap: var(--space-2); }
  .rp-bar-row small { display: none; }
}
@media (max-width: 520px) {
  .rp-kpis, .rp-kpis--compact { grid-template-columns: 1fr 1fr; }
  .rp-kpi { min-height: 110px; padding: var(--space-4); }
  .rp-detail-head { align-items: flex-start; }
  .rp-detail-head__icon { width: 42px; height: 42px; }
  .rp-panel { padding: var(--space-4); }
  .rp-panel__head--legend { align-items: flex-start; flex-direction: column; }
  .rp-bar-row { grid-template-columns: minmax(90px, 1fr) 56px; padding-block: var(--space-2); }
  .rp-bar-row__rank, .rp-bar-row__track { display: none; }
  .rp-celebration { grid-template-columns: 48px auto minmax(0, 1fr); }
  .rp-celebration__kind { display: none; }
  .rp-balance-card__meta, .rp-cycle-card__meta { align-items: flex-start; flex-direction: column; gap: 4px; }
  .rp-funnel__row { padding-right: 0; }
  .rp-funnel__row small { position: static; display: block; width: auto; margin-top: 4px; text-align: left; }
}

/* Mood report */
.rp-mood { display: flex; flex-direction: column; gap: var(--space-5); max-width: 1100px; }
.rp-mood__toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-5); }
.rp-mood__eyebrow { margin: 0 0 var(--space-1); color: var(--color-primary); font-size: var(--text-xs); font-weight: var(--font-bold); text-transform: uppercase; letter-spacing: .06em; }
.rp-mood__intro { max-width: 62ch; margin: 0; color: var(--color-fg-muted); font-size: var(--text-sm); }
.rp-mood__period { display: flex; flex-direction: column; gap: var(--space-1); flex-shrink: 0; color: var(--color-fg-muted); font-size: var(--text-xs); font-weight: var(--font-semibold); }
.rp-mood__period .people-filter { min-width: 180px; margin: 0; }

.rp-mood-hero { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(0, 1.6fr); gap: var(--space-4); }
.rp-mood-score {
  display: flex; align-items: center; gap: var(--space-4); min-height: 152px; padding: var(--space-6);
  border: 1px solid var(--color-border); border-radius: var(--radius-xl); background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}
.rp-mood-score__emoji { display: grid; place-items: center; width: 76px; height: 76px; flex-shrink: 0; border-radius: var(--radius-full); background: var(--color-surface-2); font-size: 2.5rem; }
.rp-mood-score__value { color: var(--color-fg); font-size: 2.4rem; font-weight: var(--font-extrabold); line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.rp-mood-score__value span { margin-left: 4px; color: var(--color-fg-subtle); font-size: var(--text-sm); font-weight: var(--font-semibold); letter-spacing: 0; }
.rp-mood-score strong { display: block; margin-top: var(--space-2); font-size: var(--text-sm); }
.rp-mood-score p { margin: 2px 0 0; color: var(--color-fg-muted); font-size: var(--text-xs); }
.rp-mood-score--1 .rp-mood-score__emoji, .rp-mood-score--2 .rp-mood-score__emoji { background: var(--color-danger-soft); }
.rp-mood-score--4 .rp-mood-score__emoji, .rp-mood-score--5 .rp-mood-score__emoji { background: var(--color-success-soft); }

.rp-mood-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.rp-mood-kpi { display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-4); min-width: 0; padding: var(--space-5); border: 1px solid var(--color-border); border-radius: var(--radius-xl); background: var(--color-surface); box-shadow: var(--shadow-sm); }
.rp-mood-kpi__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--radius-md); background: var(--color-primary-soft); color: var(--color-primary); }
.rp-mood-kpi__icon .icon { width: 17px; height: 17px; }
.rp-mood-kpi b { display: block; overflow: hidden; color: var(--color-fg); font-size: var(--text-xl); font-weight: var(--font-extrabold); line-height: 1.1; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.rp-mood-kpi span:not(.rp-mood-kpi__icon) { display: block; margin-top: 4px; color: var(--color-fg-muted); font-size: var(--text-xs); }
.rp-mood-kpi.is-positive .rp-mood-kpi__icon { background: var(--color-success-soft); color: var(--color-success); }
.rp-mood-kpi.is-negative .rp-mood-kpi__icon { background: var(--color-danger-soft); color: var(--color-danger); }

.rp-mood-panel { padding: var(--space-5); }
.rp-mood-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-4); }
.rp-mood-panel__head h3 { margin: 0; font-size: var(--text-base); }
.rp-mood-panel__head p { margin: 4px 0 0; color: var(--color-fg-muted); font-size: var(--text-xs); }
.rp-mood-panel__badge { padding: 5px 10px; border-radius: var(--radius-full); background: var(--color-primary-soft); color: var(--color-primary); font-size: var(--text-xs); font-weight: var(--font-semibold); white-space: nowrap; }
.rp-mood-chart { min-height: 240px; padding: var(--space-2) var(--space-2) 0; border-radius: var(--radius-lg); background: var(--color-surface-2); overflow: hidden; }
.rp-mood-chart svg { display: block; width: 100%; height: 230px; overflow: visible; }
.rp-mood-chart__grid { stroke: var(--color-border); stroke-width: 1; stroke-dasharray: 4 5; }
.rp-mood-chart__line { fill: none; stroke: var(--color-primary); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.rp-mood-chart__dot { fill: var(--color-surface); stroke: var(--color-primary); stroke-width: 3; }
.rp-mood-chart__axis, .rp-mood-chart__date { fill: var(--color-fg-subtle); font-size: 11px; font-weight: var(--font-medium); }
.rp-mood-chart__axis { text-anchor: end; }

.rp-mood-depts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-6); }
.rp-mood-dept { min-width: 0; padding: var(--space-3); border-radius: var(--radius-lg); background: var(--color-surface-2); }
.rp-mood-dept__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-3); }
.rp-mood-dept__head strong { min-width: 0; overflow: hidden; font-size: var(--text-sm); text-overflow: ellipsis; white-space: nowrap; }
.rp-mood-dept__head > span { display: flex; align-items: center; gap: var(--space-2); flex-shrink: 0; color: var(--color-fg-muted); font-size: var(--text-xs); }
.rp-mood-dept__head b { display: grid; place-items: center; min-width: 38px; padding: 4px 7px; border-radius: var(--radius-full); background: var(--color-surface); color: var(--color-fg); font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
.rp-mood-dept__track { height: 8px; border-radius: var(--radius-full); background: var(--color-border); overflow: hidden; }
.rp-mood-dept__fill { display: block; height: 100%; border-radius: inherit; background: var(--color-primary); }
.rp-mood-dept__fill--1, .rp-mood-dept__fill--2 { background: var(--color-danger); }
.rp-mood-dept__fill--3 { background: var(--color-warning); }
.rp-mood-dept__fill--4, .rp-mood-dept__fill--5 { background: var(--color-success); }

@media (max-width: 900px) {
  .rp-mood-hero { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .rp-mood__toolbar { align-items: stretch; flex-direction: column; }
  .rp-mood__period .people-filter { width: 100%; }
  .rp-mood-kpis { grid-template-columns: 1fr; }
  .rp-mood-kpi { flex-direction: row; align-items: center; justify-content: flex-start; }
  .rp-mood-depts { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .rp-mood-score { align-items: flex-start; padding: var(--space-5); }
  .rp-mood-score__emoji { width: 60px; height: 60px; font-size: 2rem; }
  .rp-mood-panel { padding: var(--space-4); }
  .rp-mood-panel__head { flex-direction: column; }
  .rp-mood-chart { margin-inline: calc(var(--space-2) * -1); }
}
