/* Control Room · the P1 screens' pieces (agent B4: Growth, App Insights usage/searches/video, Marketplace, লাইভ খামার,
   Fraud & risk). Pastel Bento tokens from app.css only; sizes as on boards M02, M05, M06, M09. */

/* segmented control (7 days · 30 days · 90 days, Weekly · Monthly, Auto · Pinned) */
.seg { display: inline-flex; padding: 3px; border-radius: 14px; background: var(--bg); }
.tile .seg { background: var(--bg); }
.seg a, .seg button { height: 32px; padding: 0 12px; border-radius: 11px; border: 0; background: transparent; font-size: 12.5px; font-weight: 600; color: var(--text2); display: inline-flex; align-items: center; text-decoration: none; cursor: pointer; white-space: nowrap; font-family: inherit; }
.seg a.on, .seg button.on { background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); color: var(--text); }
.seg .bn { font-family: var(--bn); }
.head .seg { background: var(--surface); }
.head .seg a.on, .head .seg button.on { background: var(--bg); box-shadow: none; }

/* funnels (Growth signup funnel, Marketplace deal funnel) */
.fun { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.fun > .l { width: 150px; flex: none; font-size: 13px; font-weight: 600; }
.fun > .b { flex: 1; height: 34px; border-radius: 10px; background: var(--bg); position: relative; overflow: hidden; }
.fun > .b > i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); border-radius: 10px; }
.fun > .b > span { position: absolute; left: 12px; top: 0; bottom: 0; display: flex; align-items: center; color: #fff; font-size: 12.5px; font-weight: 700; }
.fun > .b > span.dark { color: var(--text); }
.fun > .p { width: 50px; text-align: right; font-size: 12.5px; color: var(--text2); }
.fun > .d { width: 96px; text-align: right; font-size: 14px; color: var(--text); white-space: nowrap; }
.fun > .d.none { color: var(--text3); font-size: 12px; }

/* cell grids (cohorts, demand ÷ supply) */
.cg .hd { display: flex; gap: 6px; font-size: 11.5px; color: var(--text3); font-weight: 600; margin-top: 12px; }
.cg .hd > span:first-child, .cg .rw > span:first-child { width: 90px; flex: none; }
.cg .hd > span { flex: 1; text-align: center; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cg .rw { display: flex; gap: 6px; margin-top: 6px; align-items: center; }
.cg .rw > span:first-child { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cg .c { flex: 1; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; position: relative; overflow: hidden; min-width: 0; }
.cg .c > i { position: absolute; inset: 0; background: var(--accent); }
.cg .c > i.hot { background: var(--neg); }
.cg .c > b { position: relative; font-weight: 700; }
.cg .c.empty { background: rgba(255, 255, 255, .6); }
.cg.hm .c { height: 38px; font-size: 12px; }

/* stacked share bar (who your active users are) */
.stack { display: flex; height: 16px; border-radius: 8px; overflow: hidden; margin-top: 12px; }
.legend { margin-top: 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 10px; }
.legend > div { display: flex; align-items: center; gap: 8px; font-size: 13px; white-space: nowrap; min-width: 0; }
.legend .sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }

/* ranked rows with white bars (on pastel tiles, as on the boards) */
.wr .rank > i { background: var(--surface); }

/* লাইভ খামার: the home section's cards */
.hcards { margin-top: 12px; display: flex; gap: 10px; }
.hcard { flex: 1; min-width: 0; border-radius: 16px; background: var(--surface); padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.hcard .ph { height: 92px; border-radius: 12px; background: var(--lilac); position: relative; overflow: hidden; }
.hcard .ph > span { position: absolute; left: 6px; top: 6px; height: 20px; padding: 0 7px; border-radius: 10px; background: var(--surface); color: var(--pos); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; font-family: var(--bn); }
.hcard b { font-size: 13px; font-family: var(--bn); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hcard .o { font-size: 12px; color: var(--text3); font-family: var(--bn); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hcard.empty { align-items: center; justify-content: center; color: var(--text3); font-size: 12px; min-height: 170px; }

/* a check list inside dialogs */
.picks { display: flex; flex-direction: column; gap: 4px; max-height: 300px; overflow: auto; }
.picks label { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: 13px; cursor: pointer; }
.picks label:hover { background: var(--bg); }
.picks input { accent-color: var(--accent); width: 16px; height: 16px; }

/* sub-tabs inside a module (Insights: Usage · Searches · Video) */
.subtabs { display: flex; gap: 6px; flex-wrap: wrap; }
.subtabs a { height: 34px; padding: 0 14px; border-radius: 17px; background: var(--surface); color: var(--text2); font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; text-decoration: none; }
.subtabs a.on { background: var(--text); color: #fff; }
