/* insights.css: Insights, the staff analytics dashboard (insights.js, 2026-11-11). Portal v2 tokens, light and dark. */
.ins { color: var(--text); padding: 4px 0 60px; }
.insHead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.insHead h1 { margin: 2px 0 4px; font: 800 42px/1.04 'EC', serif; color: var(--text); }
.insSub { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.insRange { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--u2-surf); }
.insRange button { border: 0; background: none; color: var(--text); font: 600 13.5px Poppins, sans-serif; padding: 8px 14px; border-radius: 9px; cursor: pointer; }
.insRange button.on { background: var(--u2-chipOn); color: var(--u2-chipOnText); }
.insTabs { display: flex; gap: 4px; margin: 20px 0 18px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.insTabs a { padding: 10px 14px; color: var(--muted); font: 600 14.5px Poppins, sans-serif; text-decoration: none; border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.insTabs a:hover { color: var(--text); }
.insTabs a.on { color: var(--text); border-bottom-color: var(--u2-link); }
.insRange button:focus-visible, .insTabs a:focus-visible { outline: 2px solid var(--u2-link); outline-offset: 2px; }
.insBody { display: flex; flex-direction: column; gap: 16px; }
.insStats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.insStat { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: 16px; background: var(--u2-surf); min-width: 0; }
.insStat b { font: 800 34px/1 'EC', serif; color: var(--text); font-variant-numeric: tabular-nums; }
.insStat span { font-weight: 600; font-size: 13.5px; }
.insStat small { font-size: 12px; color: var(--muted); }
.insStat.up small { color: #2F7A3E; } .insStat.down small { color: var(--u2-link); }
html.u2[data-theme="dark"] .insStat.up small { color: #9FD8A8; }
.insCard { padding: 18px 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg); min-width: 0; }
.insCard h2 { margin: 0 0 4px; font: 700 17px/1.3 Poppins, sans-serif; color: var(--text); }
.insCard .insSub { margin-bottom: 14px; }
.insTwo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.insBig { margin: 0 0 4px; font: 800 40px/1 'EC', serif; }
.insEmpty { margin: 0; padding: 14px 0; color: var(--muted); font-size: 14px; }
.insChart { display: block; width: 100%; height: auto; }
.insGrid { stroke: var(--border); stroke-width: 1; }
.insAx { fill: var(--muted); font: 500 11px Poppins, sans-serif; }
.insLine { fill: none; stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.insArea { stroke: none; opacity: .14; }
.insDot { stroke: var(--bg); stroke-width: 2; }
.insLine.tAll, .insDot.tAll { stroke: #602D36; } .insArea.tAll, .insDot.tAll { fill: #602D36; }
.insLine.tWeb { stroke: #CE3D1C; } .insDot.tWeb { fill: #CE3D1C; }
.insLine.tIos { stroke: #6B69C9; } .insDot.tIos { fill: #6B69C9; }
.insLine.tAnd { stroke: #8C9221; } .insDot.tAnd { fill: #8C9221; }
html.u2[data-theme="dark"] .insLine.tAll, html.u2[data-theme="dark"] .insDot.tAll { stroke: #FAF8EE; }
html.u2[data-theme="dark"] .insArea.tAll, html.u2[data-theme="dark"] .insDot.tAll { fill: #FAF8EE; }
html.u2[data-theme="dark"] .insLine.tWeb { stroke: #F2805F; } html.u2[data-theme="dark"] .insDot.tWeb { fill: #F2805F; }
html.u2[data-theme="dark"] .insLine.tIos { stroke: #B1AFFF; } html.u2[data-theme="dark"] .insDot.tIos { fill: #B1AFFF; }
html.u2[data-theme="dark"] .insLine.tAnd { stroke: #E1E782; } html.u2[data-theme="dark"] .insDot.tAnd { fill: #E1E782; }
.insKey { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.insKey span::before { content: ''; display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; background: currentColor; }
.insKey .tAll::before { background: #602D36; } .insKey .tWeb::before { background: #CE3D1C; } .insKey .tIos::before { background: #6B69C9; } .insKey .tAnd::before { background: #8C9221; }
html.u2[data-theme="dark"] .insKey .tAll::before { background: #FAF8EE; }
.insBars { display: flex; flex-direction: column; gap: 9px; }
.insBar { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) 48px; gap: 12px; align-items: center; font-size: 14px; }
.insBarL { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.insBarL small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 400; overflow: hidden; text-overflow: ellipsis; }
.insBarT { height: 10px; border-radius: 6px; background: var(--u2-track); overflow: hidden; }
.insBarT i { display: block; height: 100%; border-radius: 6px; background: var(--u2-chipOn); }
.insBar b { text-align: right; font-variant-numeric: tabular-nums; }
.insMini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.insMini .insStat { padding: 12px 14px; } .insMini .insStat b { font-size: 26px; }
.insTblW { overflow-x: auto; }
.insTbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.insTbl th { text-align: left; font: 600 11px Poppins, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.insTbl td { padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: top; font-variant-numeric: tabular-nums; }
.insTbl td.m { color: var(--muted); }
.insTbl td b { display: block; font-weight: 600; } .insTbl td small { display: block; color: var(--muted); font-size: 12px; }
.insTools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.insSearch input, .insTools select, .insAdd input { height: 42px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text); font: 400 14px Poppins, sans-serif; }
.insSearch input { width: 280px; max-width: 100%; }
.insLbl { display: inline-block; padding: 2px 9px; border-radius: 999px; font-weight: 600; font-size: 12.5px; background: var(--u2-surf); white-space: nowrap; }
.insLbl.l-champion, .insLbl.l-active { background: #E3F2E1; color: #2F6B3A; }
.insLbl.l-cooling { background: #FBF0D0; color: #7A5A12; }
.insLbl.l-at_risk { background: #FBE0D8; color: #9E2A14; }
.insLbl.l-new { background: #E4E3FF; color: #45449A; }
html.u2[data-theme="dark"] .insLbl.l-champion, html.u2[data-theme="dark"] .insLbl.l-active { background: rgba(159,216,168,.16); color: #9FD8A8; }
html.u2[data-theme="dark"] .insLbl.l-cooling { background: rgba(225,231,130,.14); color: #E1E782; }
html.u2[data-theme="dark"] .insLbl.l-at_risk { background: rgba(242,128,95,.16); color: #F2A08C; }
html.u2[data-theme="dark"] .insLbl.l-new { background: rgba(177,175,255,.16); color: #C5C4FF; }
.insDrop { color: var(--u2-link) !important; font-weight: 600; }
.insAdd { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 6px; }
.insAdd input[type=email] { width: 280px; } .insAdd input[type=text] { width: 260px; }
.insErr { padding: 10px 12px; border-radius: 10px; background: rgba(206,61,28,.12); font-size: 14px; }
.insH3 { margin: 22px 0 8px; font: 600 12px Poppins, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.insPeople { list-style: none; margin: 0; padding: 0; }
.insPeople li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.insPeople li b { display: block; font-weight: 600; } .insPeople li small { color: var(--muted); font-size: 12.5px; }
.insTag { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--u2-surf); color: var(--muted); }
@media (max-width: 900px) {
  .insTwo { grid-template-columns: 1fr; }
  .insHead h1 { font-size: 34px; }
  .insBar { grid-template-columns: minmax(0, 1fr) 90px 40px; }
}

/* the drill-down (2026-11-12): click a day on "Active members per day" to see who */
.insPick .insHit { fill: transparent; cursor: pointer; }
.insPick .insHit:hover { fill: rgba(96, 45, 54, .07); }
.insPick .insHit.on { fill: rgba(206, 61, 28, .08); }
.insSel { stroke: #CE3D1C; stroke-width: 1.5; stroke-dasharray: 4 4; }
html.u2[data-theme="dark"] .insPick .insHit:hover { fill: rgba(250, 248, 238, .08); }
html.u2[data-theme="dark"] .insSel { stroke: #E1E782; }
.insPickRow { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-top: 14px; font-size: 13.5px; }
.insPickRow label { font-weight: 600; }
.insPickRow select { font: 500 13.5px Poppins, sans-serif; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); }
.insHint { color: var(--muted); font-size: 12.5px; }
.insDay { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.insDayHead { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 8px; }
.insDayHead h3 { margin: 0; font: 700 16px Poppins, sans-serif; color: var(--text); outline: none; }
.insDayHead span { color: var(--muted); font-size: 13.5px; }
.insDayX { margin-left: auto; width: 36px; height: 36px; border-radius: 10px; border: 0; background: none; color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; }
.insDayX:hover { background: var(--u2-active); }
.insWho { border: 0; background: none; padding: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.insWho:hover b, .insWho:focus-visible b { text-decoration: underline; text-underline-offset: 2px; }
.insNew { display: inline-block; margin: 3px 0 2px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #E1E782; color: #3D3A06; }
.insPlat { display: inline-block; margin: 0 4px 4px 0; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--u2-surf); white-space: nowrap; }
.insPlat.p-web { color: #CE3D1C; } .insPlat.p-ios { color: #6B69C9; } .insPlat.p-android { color: #8C9221; }
.insDayTbl td:last-child { min-width: 200px; }
