/* client-streams: account switcher and client screens per stream. Reuses portal.css tokens; pink means "needs you" only. */

/* Account switcher */
.acct-wrap { margin: -6px 4px 14px; }
.acct-lbl { display: block; font-size: 11.5px; font-weight: 500; color: var(--faint); padding: 0 10px 4px; }
.acct-wrap .surface-switch { margin: 0; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--line-2); }
.acct-switch select { min-width: 0; text-overflow: ellipsis; }
.side-actions.cs-one { grid-template-columns: 1fr; }

/* Waiting for your team: neutral, because it does not need this viewer */
.cs-wait { border-radius: var(--r-m); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; background: var(--sheet); }
.cs-wait-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--well); color: var(--ink); font-weight: 600; }
.cs-wait-head .ms-i { color: var(--muted); }
.cs-wait-head .n { margin-left: auto; font: 400 20px var(--display); }
.attn-item.cs-ai { align-items: start; }
.attn-item.cs-ai:hover { background: transparent; }
.cs-acts { margin-top: 10px; gap: 6px; }

/* Home */
.hello.cs-goal { font-size: 26px; max-width: 40ch; }
.strip.cs-strip { --c: var(--m-built); grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); }
.cs-kv { grid-template-columns: minmax(96px, max-content) minmax(0, 1fr); }
.cs-kv dd.row { gap: 6px; }
.cs-items { display: flex; flex-direction: column; margin-top: 10px; }
.cs-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.cs-item:first-child { border-top: 0; }
.cs-item .t { color: var(--ink); font-weight: 500; min-width: 0; }
.cs-demo { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 12px; font-size: 13px; }
.cs-demo .ms-i { color: var(--muted); }
.cs-demo-row { margin-top: 12px; gap: 12px; }
.cs-scope { margin-top: 10px; }
.cs-group { margin-bottom: 22px; }
.cs-ghead { margin-bottom: 10px; }

/* One row per charge, ticket, system or item. Stacks on narrow screens. */
.cs-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); }
.cs-line:first-child { border-top: 0; }
.cs-main .t { color: var(--ink); font-weight: 600; }
.cs-main .t .code { margin-right: 4px; }
.cs-end { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.cs-pills { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.cs-bar { height: 6px; margin-top: 6px; max-width: 320px; border-radius: 99px; background: var(--well); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.cs-bar i { display: block; height: 100%; background: var(--ink); }
.rail-card .rows .cs-line { padding: 10px 12px; }

/* Overdue: plain, not pink */
.banner.cs-bad { flex-wrap: wrap; background: var(--bad-soft); color: var(--ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bad) 30%, transparent); }
.banner.cs-bad .ms-i { color: var(--bad); }

/* Care tiers offer */
.cs-tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cs-tier { padding: 14px; border-radius: var(--r-m); background: var(--well); box-shadow: inset 0 0 0 1px var(--line); }
.cs-tier .nm { font-weight: 600; color: var(--ink); }
.cs-tier .mid { margin: 6px 0 8px; }
.cs-tier .mid small { font: 500 12px var(--sans); color: var(--muted); }
.cs-tier ul { margin: 0; padding: 0 0 0 16px; font-size: 12.5px; color: var(--ink-2); display: flex; flex-direction: column; gap: 4px; }

/* Checklists, slots and toggles */
.cs-check { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.cs-check label, .cs-slot, .cs-toggle { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.cs-check label:hover, .cs-slot:hover, .cs-toggle:hover { background: var(--well); }
.cs-check input, .cs-slot input, .cs-toggle input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--ink); }
.cs-check b, .cs-slot b, .cs-toggle b { display: block; color: var(--ink); font-weight: 600; font-size: 13.5px; }
.cs-check input:checked + span b { text-decoration: line-through; color: var(--muted); }
.cs-fs { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.cs-fs legend { font-size: 13px; font-weight: 600; color: var(--ink); padding: 0; margin-bottom: 6px; }
.cs-slots { display: flex; flex-direction: column; gap: 6px; }
.cs-slot, .cs-toggle { box-shadow: inset 0 0 0 1px var(--line-2); }
.cs-slot:has(input:checked), .cs-toggle:has(input:checked) { box-shadow: inset 0 0 0 2px var(--ink); }

/* Forms */
.cs-form .drop { padding: 20px; }
.cs-form .drop span { font-size: 12.5px; }
.cs-flabel { font-size: 13px; font-weight: 600; color: var(--ink); }
.cs-flabel .help { font-size: 12px; color: var(--muted); font-weight: 400; }

/* Responsive */
@media (max-width: 1180px) {
  .cs-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .strip.cs-strip { grid-auto-columns: minmax(84px, 1fr); }
  .hello.cs-goal { font-size: 21px; }
}
@media (max-width: 560px) {
  .cs-line { grid-template-columns: minmax(0, 1fr); }
  .cs-end { justify-content: flex-start; }
  .cs-tiers { grid-template-columns: minmax(0, 1fr); }
  .cs-kv { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .cs-kv dd { margin-bottom: 8px; }
  .attn-item.cs-ai { grid-template-columns: auto minmax(0, 1fr); }
  .attn-item.cs-ai .age { grid-column: 2; }
}
