/* Scoped to the Dashboard and its two review subpages. */
.dashboard-shell .global-search { width: 315px; max-width: 30vw; }
.dashboard-shell .global-search kbd { display: none; }
.dashboard-shell .global-search input { padding-right: 14px; }
.dashboard-shell .top-actions { gap: 10px; }
.dashboard-role-tabs { display: flex; align-items: center; gap: 3px; padding: 4px; border: 1px solid var(--line); background: #F8F6FA; border-radius: 999px; }
.dashboard-role-tabs > span { padding: 0 8px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.dashboard-role-tabs button { height: 30px; border: 0; border-radius: 999px; padding: 0 11px; font-size: 12px; font-weight: 700; background: transparent; color: var(--text-secondary); }
.dashboard-role-tabs button[aria-pressed=true] { background: var(--purple); color: #fff; box-shadow: 0 2px 5px #74548f20; }
.dashboard-period { position: relative; flex: none; }
.dashboard-period summary { display: flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; min-height: 36px; border: 1px solid var(--border-strong); border-radius: 999px; padding: 0 12px; background: white; font-size: 11.5px; font-weight: 650; }
.dashboard-period summary::-webkit-details-marker { display: none; }
.dashboard-period > div { position: absolute; top: 44px; right: 0; padding: 18px; width: 260px; background: white; box-shadow: var(--shadow-md); border: 1px solid var(--line); border-radius: 14px; z-index: 30; }
.dashboard-period p { font-size: 12px; color: var(--text-secondary); margin: 8px 0; }
.dashboard-current-user { display: flex; align-items: center; gap: 8px; max-width: 140px; }
.dashboard-current-user strong { font-size: 12px; line-height: 1.35; }
.dashboard-current-user .avatar { background: var(--purple); color: #fff; }
.dashboard-tabs { display: flex; gap: 5px; align-items: center; margin: -4px 0 24px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.dashboard-tabs button { border: 0; background: transparent; color: var(--text-secondary); border-radius: 999px; padding: 8px 13px; font-size: 12px; font-weight: 700; }
.dashboard-tabs button.active { background: #EDE6F5; color: var(--purple); }
.dashboard-tabs > span { margin-left: auto; color: var(--muted); font-size: 11px; }
.dashboard-overview .page-top { align-items: flex-start; margin-bottom: 22px; }
.dashboard-overview .page-top .eyebrow { font-size: 12px; letter-spacing: .18em; margin-bottom: 6px; }
.dashboard-overview .page-top .subtitle { font-size: 14.5px; color: var(--text-secondary); line-height: 1.55; max-width: 600px; }
.dashboard-overview .source-income { min-height: 128px; }
.dashboard-overview .source-income .row { align-items: flex-start; }
.dashboard-overview .source-income-tag { font-size: 11px; flex: none; }
.dashboard-income-note { margin-top: 10px; color: #E7DBEF; font-size: 11.5px; line-height: 1.5; }
.dashboard-overview .source-kpi > span { display: block; color: var(--muted); margin-top: 2px; font-size: 12px; line-height: 1.5; }
.dashboard-overview .source-kpi > span.dot-icon { display: grid; margin-top: 0; }
.dashboard-overview .source-kpi > small { display: block; font-size: 10px; color: var(--muted); margin-top: 4px; }
.dashboard-trend { padding: 20px 22px; }
.dashboard-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dashboard-card-heading p { margin-top: 4px; font-size: 12px; color: var(--muted); }
.dashboard-legend { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--text-secondary); white-space: nowrap; }
.dashboard-legend i { width: 9px; height: 9px; background: #8B6AAE; border-radius: 3px; }
.dashboard-trend-bars { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 13px; margin-top: 18px; }
.dashboard-trend-column { min-width: 0; text-align: center; }
.dashboard-bar-space { height: 161px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; border-bottom: 1px solid var(--line); }
.dashboard-bar-space > i { width: 30px; max-width: 80%; background: #8B6AAE; border-radius: 5px 5px 0 0; }
.dashboard-bar-space > span { font-size: 10px; margin-bottom: 8px; color: var(--purple); font-weight: 650; }
.dashboard-trend-column.missing .dashboard-bar-space > i { height: 2px; background: transparent; border-bottom: 2px dashed #D8D2E0; }
.dashboard-trend-column.missing .dashboard-bar-space > span { color: var(--muted); font-weight: 400; }
.dashboard-trend-column > strong { display: block; margin-top: 9px; font-size: 10px; font-weight: 600; color: var(--muted); }
.dashboard-chart-note { display: flex; gap: 8px; margin-top: 18px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.6; }
.dashboard-chart-note svg { flex: none; margin-top: 2px; }
.dashboard-overview .source-rail-value { font-size: 29px; }
.dashboard-status-note { display: block; margin-top: 12px; color: var(--muted); font-size: 10px; }
.dashboard-leaderboard .list-item { padding: 16px 18px; gap: 10px; }
.dashboard-leaderboard .list-item > strong { color: var(--purple); font-size: 12px; white-space: nowrap; }
.dashboard-rank { width: 12px; flex: none; }
.dashboard-attention .card-head { color: #8A6930; }
.dashboard-attention .list-item { padding: 14px 18px; }
.dashboard-empty { padding: 24px 20px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.dashboard-metric-basis > summary { display: flex; align-items: center; gap: 8px; padding: 17px 20px; list-style: none; cursor: pointer; font-size: 12px; font-weight: 700; color: var(--purple); }
.dashboard-metric-basis > summary::-webkit-details-marker { display: none; }
.dashboard-metric-basis > summary > svg:last-child { margin-left: auto; }
.dashboard-metric-basis > div { padding: 0 20px 18px; }
.dashboard-metric-basis p { font-size: 12px; line-height: 1.75; margin: 10px 0; color: var(--text-secondary); }
.dashboard-review-shortcut { display: flex; align-items: center; gap: 10px; padding: 16px; background: #F0EAF5; border: 1px solid #E4D9EF; border-radius: 14px; color: var(--purple); }
.dashboard-review-shortcut > svg { flex: none; }
.dashboard-review-shortcut > div { flex: 1; }
.dashboard-review-shortcut strong { font-size: 12px; }
.dashboard-review-shortcut p { font-size: 11px; margin-top: 3px; }
@media(max-width:1280px){.dashboard-current-user{display:none}.dashboard-shell .global-search{width:300px}.dashboard-role-tabs>span{display:none}}
@media(max-width:1000px){.dashboard-shell .topbar{flex-wrap:wrap;height:auto;min-height:60px;padding-top:10px;padding-bottom:10px}.dashboard-shell .top-actions{flex-wrap:wrap}.dashboard-shell .global-search{flex:1;max-width:100%}.dashboard-overview .source-dashboard{grid-template-columns:1fr}.dashboard-role-tabs button{padding:0 9px}}
@media(max-width:650px){.dashboard-shell .top-actions{gap:7px;justify-content:flex-end;flex:1}.dashboard-role-tabs{order:2;flex-basis:100%;justify-content:center}.dashboard-shell .global-search{display:none}.dashboard-period summary{font-size:11px}.dashboard-overview .source-kpis{grid-template-columns:1fr}.dashboard-overview .source-kpi{position:relative;padding:16px 18px 16px 62px}.dashboard-overview .source-kpi>.dot-icon{position:absolute;left:17px;top:20px}.dashboard-overview .source-kpi>strong{margin-top:0}.dashboard-tabs{gap:2px}.dashboard-tabs>span{display:none}.dashboard-overview .source-income>.row{flex-wrap:wrap}.dashboard-card-heading{flex-wrap:wrap}.dashboard-bar-space{height:150px}.dashboard-trend-bars{gap:5px}.dashboard-trend{padding:18px 14px}.dashboard-overview .source-income-value{font-size:34px}.dashboard-tabs button{font-size:11px;padding:8px 10px}}

.dashboard-trend-column.negative .dashboard-bar-space > i { background: var(--red); }
.dashboard-trend-column.negative .dashboard-bar-space > span { color: var(--red); }
