/* Joey's ClientCue board, in #slot-clientcue on the Today tab.

   ClientCue is its own brand inside the AVP app, so the board wears its own
   colours: the navy of clientcue.io, the green of the CC mark in its logo, gold
   for money, peach for "needs a nudge". Sora is close to the logo's geometric
   type and is used only for the figures and the title; everything else stays
   in the app's own face (--sans) so the board still reads as part of the same app.
   Everything is scoped under .cc-board so none of it leaks into the rest. */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700&display=swap');

.cc-board{
  --cc-ink:#161625; --cc-raise:#1e1e36; --cc-line:#2d2d4b;
  --cc-green:#00d18b; --cc-gold:#deb541; --cc-peach:#efb394;
  --cc-text:#ecebf5; --cc-muted:#a4a3c2;
  --cc-display:'Sora',var(--sans);
  background:var(--cc-ink); color:var(--cc-text);
  border:1px solid var(--cc-line); border-radius:18px;
  padding:18px 18px 20px; margin:0 0 18px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 2px 0 rgba(0,0,0,.55),0 12px 28px rgba(0,0,0,.45);
}
.cc-board :focus-visible{outline:2px solid var(--cc-green); outline-offset:2px; border-radius:6px}

.cc-head{display:flex; align-items:center; justify-content:space-between; gap:12px}
.cc-logo{height:48px; width:auto; display:block}
.cc-wordmark{font-family:var(--cc-display); font-weight:700; font-size:20px; color:var(--cc-green)}

.cc-sync{display:inline-flex; align-items:center; gap:7px; font-size:12.5px; color:var(--cc-muted); white-space:nowrap}
.cc-sync::before{content:''; width:8px; height:8px; border-radius:50%; background:var(--cc-muted)}
.cc-sync.ok::before{background:var(--cc-green); box-shadow:0 0 0 3px rgba(0,209,139,.18)}
.cc-sync.warn{color:var(--cc-peach)}
.cc-sync.warn::before{background:var(--cc-peach)}

.cc-title{font-family:var(--cc-display); font-weight:600; font-size:15px; letter-spacing:-.01em; color:var(--cc-muted); margin:18px 0 4px}

/* The three counts are the board's headline: big, in the brand's face. */
.cc-figs{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:0 0 18px}
.cc-fig{display:flex; flex-direction:column; gap:4px}
.cc-fig-n{font-family:var(--cc-display); font-weight:700; font-size:42px; line-height:1; letter-spacing:-.03em; font-variant-numeric:tabular-nums; color:var(--cc-text)}
.cc-fig:first-child .cc-fig-n{color:var(--cc-green)}
.cc-fig-k{font-size:13px; color:var(--cc-muted)}
.cc-fig-h{font-size:11.5px; line-height:1.3; color:var(--cc-muted); opacity:.85}

/* Leads by stage, in pipeline order. One grid for the whole list, shared by
   every row through subgrid, so the bars start in the same place whatever
   the longest stage name is. */
.cc-funnel{list-style:none; margin:0 0 16px; padding:0; display:grid; grid-template-columns:max-content minmax(48px,1fr) 2.2ch; gap:7px 10px}
.cc-funnel li{display:grid; grid-column:1 / -1; grid-template-columns:subgrid; align-items:center; font-size:13px}
.cc-stage{color:var(--cc-text)}
.cc-bar{height:8px; border-radius:4px; background:rgba(0,209,139,.1); position:relative; overflow:hidden}
.cc-bar::after{content:''; position:absolute; inset:0 auto 0 0; width:calc(var(--w) * 100%); background:var(--cc-green); border-radius:4px}
.cc-count{font-family:var(--cc-display); font-weight:600; text-align:right; font-variant-numeric:tabular-nums}
.cc-funnel li.none .cc-stage,.cc-funnel li.none .cc-count{color:var(--cc-muted)}

.cc-nudge{border-left:3px solid var(--cc-peach); background:rgba(239,179,148,.07); border-radius:0 10px 10px 0; padding:10px 12px; margin:0 0 16px}
.cc-nudge h3{font-size:13px; font-weight:600; color:var(--cc-peach); margin:0 0 6px}
.cc-nudge ul{list-style:none; margin:0; padding:0; display:grid; gap:4px}
.cc-nudge li{display:flex; flex-direction:column; font-size:13px}
.cc-nudge li span{color:var(--cc-muted)}

/* Money is gold, and only ever drawn from what the server chose to send. */
.cc-money{background:var(--cc-raise); border-radius:14px; padding:14px; margin:0 0 16px}
.cc-money-top{display:grid; grid-template-columns:1fr 1fr; gap:12px}
.cc-cell{display:flex; flex-direction:column; gap:2px}
.cc-cell-n{font-family:var(--cc-display); font-weight:700; font-size:26px; letter-spacing:-.02em; color:var(--cc-gold); font-variant-numeric:tabular-nums}
.cc-cell-k{font-size:13px; color:var(--cc-text)}
.cc-cell-h{font-size:12px; color:var(--cc-muted)}
.cc-cut{display:flex; flex-wrap:wrap; justify-content:space-between; gap:4px 12px; border-top:1px solid var(--cc-line); margin-top:12px; padding-top:10px; font-size:13px}
.cc-cut-k{font-weight:600}
.cc-cut-v{color:var(--cc-muted)}
.cc-owed{display:flex; justify-content:space-between; align-items:baseline; margin-top:8px}
.cc-owed-k{font-size:13px}
.cc-owed-v{font-family:var(--cc-display); font-weight:700; font-size:20px; color:var(--cc-gold); font-variant-numeric:tabular-nums}

.cc-h{font-size:13px; font-weight:600; color:var(--cc-muted); margin:0 0 8px}
.cc-empty{font-size:13px; color:var(--cc-muted); margin:6px 0 14px; line-height:1.45}
.cc-note{font-size:12.5px; color:var(--cc-muted); line-height:1.45; margin:0 0 10px}

.cc-clients ul,.cc-suggest ul,.cc-ledger{list-style:none; margin:0 0 14px; padding:0}
.cc-clients li,.cc-suggest li,.cc-ledger li{display:flex; justify-content:space-between; align-items:center; gap:12px; padding:9px 0; border-top:1px solid var(--cc-line)}
.cc-clients li:first-child,.cc-suggest li:first-child,.cc-ledger li:first-child{border-top:0}
.cc-client,.cc-l-what{display:flex; flex-direction:column; gap:2px; min-width:0}
.cc-client-n,.cc-l-n{font-size:14px; font-weight:600; overflow-wrap:anywhere}
.cc-client-s,.cc-l-s{font-size:12px; color:var(--cc-muted)}
.cc-client-r,.cc-l-r{display:flex; align-items:center; gap:10px; flex-shrink:0}
.cc-mrr{font-family:var(--cc-display); font-weight:600; font-size:14px; color:var(--cc-gold); font-variant-numeric:tabular-nums}
.cc-mrr.none{font-family:var(--sans); font-weight:400; font-size:12px; color:var(--cc-muted)}
.cc-clients li.ended{opacity:.55}

.cc-history{margin:0 0 4px}
.cc-history summary{cursor:pointer; font-size:13px; font-weight:600; color:var(--cc-muted); padding:6px 0; list-style-position:inside}
.cc-history[open] summary{margin-bottom:6px}
.cc-l-amt{font-family:var(--cc-display); font-weight:600; font-size:14px; color:var(--cc-gold); font-variant-numeric:tabular-nums}
.cc-l-amt.neg{color:var(--cc-peach)}
.cc-ledger li.voided .cc-l-n,.cc-ledger li.voided .cc-l-amt{text-decoration:line-through; opacity:.6}

.cc-board .link.cc-link{color:var(--cc-muted); font-size:12.5px; padding:4px 2px}
.cc-board .link.cc-link:hover{color:var(--cc-text)}

/* The owners' tools sit under a dashed rule: part of the board, not part of
   what Joey sees. */
.cc-admin{border-top:1px dashed var(--cc-line); margin-top:14px; padding-top:14px}
.cc-actions{display:flex; flex-wrap:wrap; gap:8px; margin:0 0 16px}
.cc-board .btn{background:transparent; border-color:var(--cc-line); color:var(--cc-text)}
.cc-board .btn:hover{border-color:var(--cc-muted)}
.cc-board .btn.cc-go{background:var(--cc-green); border-color:var(--cc-green); color:var(--cc-ink)}
.cc-board .btn.cc-go:hover{filter:brightness(1.08)}

@media (max-width:420px){
  .cc-board{padding:16px 14px 18px}
  .cc-logo{height:40px}
  .cc-fig-n{font-size:34px}
  .cc-cell-n{font-size:22px}
}
