/* ch-w2b2.css — clarity wave 2, batch 2: the tool pages in one calm look (6 Oct 2026). SCREEN ONLY: documents keep their print look.
   Opt in with <html class="cw2">. Words of the spec: plain Poppins title, no eyebrow, long intros behind a small (i), one primary
   button per screen (bubblegum + plum line + the 3px hard shadow), sentence case, at most 600 weight, thin plum-tint lines,
   pastel tiles (lilac = posts, lime = live, butter = money, pink = needs you, pale lilac = scores, blue = people), dot + word status.
   Tables take the Live tracker's look (.ch-tcard / .ch-table in ch-theme.css 6); boxes take Today's tiles. */
@media screen {
  html.cw2 body { font-family: var(--ch-font, 'Poppins', system-ui, sans-serif); color: var(--ch-plum, #5B1A42); }

  /* the old page bar (FCM logo / back / crumb) and the gingham stripes: the rail already says where you are */
  html.cw2:not(.cw2-drill) .top.cht-top, html.cw2:not(.cw2-drill) .cht-top { display: none; }
  html.cw2 .cht-applogo { display: none; }
  html.cw2 .gingham, html.cw2 .stripe, html.cw2 .fcm-stripe, html.cw2 .topstripe { display: none !important; }

  /* the title row */
  html.cw2 .hero .eyebrow, html.cw2 .hero .ch-eyebrow, html.cw2 .ch-page-head .ch-eyebrow { display: none !important; }
  html.cw2.cw2 body h1.cw2-title, html.cw2.cw2 body .hero h1, html.cw2.cw2 body .wrap h1 { font: 600 22px/1.3 var(--ch-font, 'Poppins', system-ui, sans-serif) !important; font-family: var(--ch-font, 'Poppins', system-ui, sans-serif) !important; font-variation-settings: normal !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--ch-plum, #5B1A42); margin: 4px 0 6px; display: inline; }
  html.cw2 .cw2-tipbtn { margin: 0 0 0 8px; vertical-align: 3px; }
  html.cw2 body .hero { margin-bottom: 4px; text-align: left; }
  html.cw2 .hero p:not([hidden]) { font: 400 14px/1.5 var(--ch-font, 'Poppins', sans-serif); color: var(--ch-plum-2, #845371); margin: 4px 0 14px; max-width: 90ch; }
  .cw2-i { display: inline-grid; place-items: center; width: 18px; height: 18px; margin: 0 0 0 8px; border: 1.5px solid var(--ch-plum-2, #845371); border-radius: 50%; background: #fff; color: var(--ch-plum-2, #845371); font: 600 10px/1 var(--ch-font, 'Poppins', sans-serif); cursor: help; padding: 0; }

  /* sentence case, nothing heavier than 600, no monospace */
  html.cw2 body :is(label, th, td, .lbl, .sec, small, span, div, p, a, button, h2, h3, h4, legend, summary, li):not(.ch-hero-label) { text-transform: none !important; }
  html.cw2 body :is(b, strong, h1, h2, h3, h4, th) { font-weight: 600; }
  html.cw2 body :is(code, pre, kbd, .mono, [class*="mono"]):not(.ch-doc *) { font-family: var(--ch-font, 'Poppins', sans-serif); }

  /* one primary: a second pink button reads as a secondary */
  html.cw2 .cw2-quiet, html.cw2 button.cw2-quiet, html.cw2 a.cw2-quiet { background: #fff !important; color: var(--ch-plum, #5B1A42) !important; border: 1px solid var(--ch-line-strong, rgba(91,26,66,.24)) !important; box-shadow: none !important; font-weight: 500 !important; transform: none !important; }
  html.cw2 .cw2-quiet:hover { background: var(--ch-wash, rgba(91,26,66,.06)) !important; border-color: var(--ch-plum, #5B1A42) !important; }

  /* the quiet strip of sibling pages in this section */
  .cw2-tabs { display: flex; gap: 24px; align-items: stretch; margin: 8px 0 16px; border-bottom: 1px solid var(--ch-line, rgba(91,26,66,.12)); overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; max-width: 100%; }
  .cw2-tabs::-webkit-scrollbar { display: none; }
  .cw2-tabs a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; color: var(--ch-plum-2, #845371); font: 500 14px/20px var(--ch-font, 'Poppins', sans-serif); text-decoration: none; position: relative; }
  .cw2-tabs a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: transparent; }
  .cw2-tabs a:hover { color: var(--ch-plum, #5B1A42); }
  .cw2-tabs a.is-on { color: var(--ch-plum, #5B1A42); font-weight: 600; }
  .cw2-tabs a.is-on::after { background: var(--ch-plum, #5B1A42); }
  .cw2-tabs a:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ch-here, #FFE4ED); border-radius: 8px; }

  /* pastel tiles (the colourful Today look) for a page's own number boxes */
  html.cw2 .cw2-tile { border-radius: 20px !important; border: 1px solid transparent !important; padding: 16px 18px; background: var(--ch-m-posts, #EBE5FC); color: var(--ch-plum, #5B1A42); box-shadow: none !important; }
  html.cw2 .cw2-tile.t-live { background: var(--ch-m-live, #EAF4C9) !important; }
  html.cw2 .cw2-tile.t-money { background: var(--ch-m-money, #FFF2CC) !important; }
  html.cw2 .cw2-tile.t-needs { background: var(--ch-m-needs, #FFE2EB) !important; }
  html.cw2 .cw2-tile.t-score { background: var(--ch-m-score, #F3EEFD) !important; }
  html.cw2 .cw2-tile.t-people { background: var(--ch-m-people, #F9D2F9) !important; }
  html.cw2 .cw2-tile.t-posts { background: var(--ch-m-posts, #EBE5FC) !important; }
  html.cw2 .cw2-tile b, html.cw2 .cw2-tile .n { font: 600 28px/1.1 var(--ch-font, 'Poppins', sans-serif); font-variant-numeric: tabular-nums; color: var(--ch-plum, #5B1A42); }
  html.cw2 .cw2-tile span, html.cw2 .cw2-tile .l { font: 500 13px/1.3 var(--ch-font, 'Poppins', sans-serif); color: var(--ch-plum, #5B1A42); }

  /* white cards: thin plum-tint line, no shadow */
  html.cw2 .card:not(.cw2-keep-shadow) { box-shadow: none; }

  /* a quiet filter / segmented control */
  html.cw2 .cw2-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--ch-wash, rgba(91,26,66,.06)); }

  /* the "+" wherever people add things: the shared ghost "+" */
  html.cw2 .cw2-plus-row { display: flex; margin: 10px 0 0; }
}
@media screen and (max-width: 760px) {
  html.cw2 .wrap, html.cw2 .ch-main { padding-left: 16px; padding-right: 16px; }
  .cw2-tabs { gap: 18px; }
}

/* ---- shared: the page's own number boxes as pastel tiles (by position; one meaning per colour) ---- */
@media screen {
  html.cw2 .tablewrap.ch-tcard { overflow-x: auto; border-radius: 20px; border: 1px solid var(--ch-line-strong, rgba(91,26,66,.24)); }
  html.cw2 .tablewrap.ch-tcard .ch-table { min-width: 720px; }
  html.cw2 .ch-tcard .ch-table th { font-weight: 600; }
  html.cw2 .ch-tcard .ch-table td { background: transparent; }

  /* cadence: 2 stat rows */
  html.p-cadence .stat .s { border: 1px solid transparent; border-radius: 20px; padding: 14px 18px; min-width: 150px; background: var(--ch-m-posts, #E6DDFB); }
  html.p-cadence .stat .s:nth-child(1) { background: var(--ch-m-people, #F9D2F9); }
  html.p-cadence #stats .s:nth-child(2), html.p-cadence #lStats .s:nth-child(3) { background: var(--ch-m-needs, #FFDCE7); }
  html.p-cadence #stats .s:nth-child(3), html.p-cadence #lStats .s:nth-child(2) { background: var(--ch-m-money, #FFF0C2); }
  html.p-cadence #lStats .s:nth-child(4) { background: var(--ch-m-live, #E9F3C6); }
  html.p-cadence .stat .s b { font-size: 28px; line-height: 1.1; }
  html.p-cadence .stat .s span { color: var(--ch-plum, #5B1A42); }
}

/* ======================= page blocks ======================= */
@media screen {
  /* ---- client story: sentence-case labels, the selected option is a white pill (spec 5.8) ---- */
  html.p-client-story .ch-field-label { text-transform: none; letter-spacing: 0; font: 500 13px/1.4 var(--ch-font, 'Poppins', sans-serif); color: var(--ch-plum, #5B1A42); }
  html.cw2 .ch-seg { background: var(--ch-wash, rgba(91,26,66,.06)); border: 0; }
  html.cw2 .ch-seg .ch-seg-btn { color: var(--ch-plum-2, #845371); font-weight: 500; }
  html.cw2 .ch-seg .ch-seg-btn.is-on, html.cw2 .ch-seg .ch-seg-btn[aria-checked="true"] { background: #fff; color: var(--ch-plum, #5B1A42); font-weight: 600; box-shadow: 0 0 0 1px var(--ch-line, rgba(91,26,66,.12)); }

  /* ---- hand-over: the small section names above each card title are not shown ---- */
  html.p-client-onboarding .sec-eyebrow { display: none; }

  /* ---- connect posting: the old page in the new look ---- */
  html.p-connect body { background: var(--ch-cream, #FFF9E9); color: var(--ch-plum, #5B1A42); font-family: var(--ch-font, 'Poppins', sans-serif); font-size: 14px; }
  html.p-connect .top { display: none; }
  html.p-connect .wrap { padding-top: 24px; }
  html.p-connect .hero p { margin-bottom: 12px; }
  html.p-connect .card { background: #fff; border: 1px solid var(--ch-line, rgba(91,26,66,.12)); border-radius: 20px; box-shadow: none; }
  html.p-connect .srow { background: #fff; border-color: var(--ch-line, rgba(91,26,66,.12)); border-radius: 14px; }
  html.p-connect .srow .dot { width: 8px; height: 8px; flex-basis: 8px; background: #fff; box-shadow: 0 0 0 1px var(--ch-plum, #5B1A42); }
  html.p-connect .srow.on .dot { background: var(--ch-lime, #B8D94A); }
  html.p-connect .srow .nm { font-weight: 600; }
  html.p-connect .srow .nm small { color: var(--ch-plum-2, #845371); }
  html.p-connect .srow .st { font-weight: 600; background: var(--ch-wash, rgba(91,26,66,.06)); color: var(--ch-plum-2, #845371); }
  html.p-connect .srow.on .st { background: var(--ch-m-live, #E9F3C6); color: var(--ch-plum, #5B1A42); }
  html.p-connect .bigstate { font-weight: 600; border: 0 !important; }
  html.p-connect .bigstate.no { background: var(--ch-m-money, #FFF0C2); color: var(--ch-plum, #5B1A42); }
  html.p-connect .bigstate.yes { background: var(--ch-m-live, #E9F3C6); color: var(--ch-plum, #5B1A42); }
  html.p-connect .btn { background: var(--ch-bubblegum, #F9C6D4); color: var(--ch-plum, #5B1A42); border: 1.5px solid var(--ch-plum, #5B1A42); border-radius: 999px; box-shadow: var(--ch-shadow, 3px 3px 0 #5B1A42); font-weight: 600; padding: 9px 18px; }
  html.p-connect .btn:hover { background: var(--ch-bubblegum-hover, #FFB9D0); }
  html.p-connect .btn.ghost { background: #fff; border: 1px solid var(--ch-line-strong, rgba(91,26,66,.24)); box-shadow: none; font-weight: 500; }
  html.p-connect .step .n { background: var(--ch-bubblegum, #F9C6D4); color: var(--ch-plum, #5B1A42); border: 1px solid var(--ch-plum, #5B1A42); font-weight: 600; }
  html.p-connect .step p { color: var(--ch-plum-2, #845371); }
  html.p-connect .step .hint { background: var(--ch-m-posts, #E6DDFB); color: var(--ch-plum, #5B1A42); }
  html.p-connect .kv { font-family: var(--ch-font, 'Poppins', sans-serif); font-weight: 600; background: var(--ch-cream, #FFF9E9); border-color: var(--ch-line, rgba(91,26,66,.12)); }
  html.p-connect .kv button { background: #fff; color: var(--ch-plum, #5B1A42); border: 1px solid var(--ch-line-strong, rgba(91,26,66,.24)); font-weight: 600; }
  html.p-connect .note { background: var(--ch-m-money, #FFF0C2); border: 0; color: var(--ch-plum, #5B1A42); }
  html.p-connect .toast { background: var(--ch-plum, #5B1A42); color: var(--ch-cream, #FFF9E9); font-weight: 500; }
  html.p-connect a { color: var(--ch-plum, #5B1A42); }

  /* ---- team chat: the old page in the new look (two panes inside the rail layout) ---- */
  html.p-channels .top, html.p-channels .gk { display: none !important; }
  html.p-channels body { font-family: var(--ch-font, 'Poppins', sans-serif); background: var(--ch-cream, #FFF9E9); color: var(--ch-plum, #5B1A42); }
  html.p-channels .side { background: #fff; border-right: 1px solid var(--ch-line, rgba(91,26,66,.12)); }
  html.p-channels .sidehead { padding: 20px 18px 6px; }
  html.p-channels .sidehead h1 { font: 600 22px/1.3 var(--ch-font, 'Poppins', sans-serif) !important; letter-spacing: 0; margin: 0; }
  html.p-channels .sidehead .cw2-tabs { margin: 8px 18px 0; gap: 18px; }
  html.p-channels .grouplabel { font: 600 13px/1.3 var(--ch-font, 'Poppins', sans-serif); letter-spacing: 0; text-transform: none; color: var(--ch-plum-2, #845371); }
  html.p-channels .chan { color: var(--ch-plum, #5B1A42); font-weight: 500; border-radius: 10px; }
  html.p-channels .chan:hover { background: var(--ch-cream, #FFF9E9); }
  html.p-channels .chan.on { background: var(--ch-here, #FFE4ED); color: var(--ch-plum, #5B1A42); font-weight: 600; }
  html.p-channels .chan .hash, html.p-channels .chan.on .hash { color: var(--ch-plum-2, #845371); display: inline-flex; align-items: center; }
  html.p-channels .chan.on .hash { color: var(--ch-plum, #5B1A42); }
  html.p-channels .chan .dot { background: var(--ch-watermelon, #F6AEC2); box-shadow: none; }
  html.p-channels .newbtn { border: 1px dashed var(--ch-line-strong, rgba(91,26,66,.24)); color: var(--ch-plum, #5B1A42); font-weight: 600; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
  html.p-channels .newbtn:hover { border-style: solid; border-color: var(--ch-plum, #5B1A42); background: var(--ch-cream, #FFF9E9); }
  html.p-channels .sidefoot { display: none; }
  html.p-channels .panehead { border-bottom: 1px solid var(--ch-line, rgba(91,26,66,.12)); }
  html.p-channels .panehead h2 { font: 600 18px/1.3 var(--ch-font, 'Poppins', sans-serif) !important; }
  html.p-channels .panehead h2 .hash { color: var(--ch-plum-2, #845371); display: inline-flex; align-items: center; }
  html.p-channels .av { font-family: var(--ch-font, 'Poppins', sans-serif); font-weight: 600; }
  html.p-channels .grp .meta .who { font-weight: 600; }
  html.p-channels .grp .meta .you { font-weight: 600; letter-spacing: 0; color: var(--ch-plum, #5B1A42); background: var(--ch-m-posts, #E6DDFB); }
  html.p-channels .empty .big { color: var(--ch-plum-2, #845371); display: grid; place-items: center; }
  html.p-channels .composer { border-top: 1px solid var(--ch-line, rgba(91,26,66,.12)); }
  html.p-channels .composer textarea { border: 1px solid var(--ch-line-strong, rgba(91,26,66,.24)); background: #fff; color: var(--ch-plum, #5B1A42); }
  html.p-channels .composer textarea:focus { border-color: var(--ch-plum, #5B1A42); box-shadow: 0 0 0 3px var(--ch-here, #FFE4ED); }
  html.p-channels .sendbtn { background: var(--ch-bubblegum, #F9C6D4); color: var(--ch-plum, #5B1A42); border: 1.5px solid var(--ch-plum, #5B1A42); box-shadow: var(--ch-shadow, 3px 3px 0 #5B1A42); font-weight: 600; }
  html.p-channels .sendbtn:hover { background: var(--ch-bubblegum-hover, #FFB9D0); }
  html.p-channels .sendbtn:active { box-shadow: none; transform: translate(3px, 3px); }
  html.p-channels .sendbtn:disabled { box-shadow: none; }
  html.p-channels .toast { background: var(--ch-plum, #5B1A42); color: var(--ch-cream, #FFF9E9); box-shadow: none; font-weight: 500; }

  /* ---- composer (compose.html): no old page bar ---- */
  html.p-compose .top.cht-top { display: none; }
}
@media screen and (min-width: 721px) { html.p-compose .stage { height: 100vh; } }

@media screen {
  /* ---- leads (crm.html) ---- */
  html.p-crm .hero .hrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  html.p-crm .hero .hrow h1 { margin: 0; }
  html.p-crm .hero .hrow #hAdd { margin-left: auto; }
  html.p-crm:has(details.addl[open]) #hAdd { display: none; }
  html.p-crm details.addl > summary { display: none; }
  html.p-crm details.addl:not([open]) { display: none; }
  html.p-crm .stats { gap: 12px; }
  html.p-crm .stats .stat { border: 1px solid transparent; border-radius: 20px; padding: 16px 18px; background: var(--ch-m-posts, #E6DDFB); }
  html.p-crm .stats .stat:nth-child(2) { background: var(--ch-m-needs, #FFDCE7); }
  html.p-crm .stats .stat:nth-child(3) { background: var(--ch-m-people, #F9D2F9); }
  html.p-crm .stats .stat:nth-child(4) { background: var(--ch-m-live, #E9F3C6); }
  html.p-crm .stats .stat:nth-child(5) { background: var(--ch-m-score, #F3EFFD); }
  html.p-crm .stats .stat .n { font-size: 28px; }
  html.p-crm .stats .stat .t { color: var(--ch-plum, #5B1A42); font-weight: 500; font-size: 13px; }
  @media (max-width: 760px) { html.p-crm .stats { grid-template-columns: repeat(2, 1fr); } }
  html.cw2 .cw2-menu { position: relative; }
  html.cw2 .cw2-menu > summary { list-style: none; cursor: pointer; letter-spacing: 2px; padding: 6px 14px; }
  html.cw2 .cw2-menu > summary::-webkit-details-marker { display: none; }
  html.cw2 .cw2-menu .cw2-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: min(560px, 86vw); margin: 0; padding: 14px 16px; background: #fff; border: 1px solid var(--ch-line-strong, rgba(91,26,66,.24)); border-radius: 14px; box-shadow: none; }
  html.cw2 .cw2-menu #refresh { position: absolute; right: 0; top: calc(100% + 6px); display: none; }
  html.p-crm .cw2-menu[open] #refresh { display: inline-flex; position: static; margin: 8px 16px 12px; }
  html.p-crm .cw2-menu[open] { background: #fff; border-radius: 14px; }
  html.p-crm .tablewrap, html.p-crm .card.ch-tcard { padding: 0; }
  html.p-crm .card.ch-tcard .ch-table th { white-space: nowrap; }
}
@media screen {
  /* ---- concerns ---- */
  html.p-concern .stat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; }
  html.p-concern .stat > div { border-radius: 20px; padding: 14px 18px; background: var(--ch-m-score, #F3EFFD); }
  html.p-concern .stat > div:nth-child(2) { background: var(--ch-m-needs, #FFDCE7); }
  html.p-concern .stat > div:nth-child(3) { background: var(--ch-m-live, #E9F3C6); }
  html.p-concern .stat b { color: var(--ch-plum, #5B1A42) !important; font: 600 28px/1.1 var(--ch-font, 'Poppins', sans-serif); display: block; }
  html.p-concern .stat span { color: var(--ch-plum, #5B1A42); font: 500 13px/1.3 var(--ch-font, 'Poppins', sans-serif); }
}

@media screen {
  /* drill-down pages keep their way back (spec 5.4): the arrow shows, the old crumb does not */
  html.cw2-drill .top.cht-top { display: flex; }
  html.cw2-drill .cht-crumb, html.cw2-drill .cht-applogo { display: none; }
  html.cw2-drill .cht-back { color: var(--ch-plum-2, #845371); font-weight: 500; }
}
@media screen and (max-width: 760px) {
  /* the sticky action bar sits above the phone's bottom bar, not under it */
  html.cw2 .ch-actionbar { bottom: 68px; background: var(--ch-cream, #FFF9E9); }
}
@media screen { .cw2-back { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; margin: 0 0 6px; color: var(--ch-plum-2, #845371); font: 500 13px/1 var(--ch-font, 'Poppins', sans-serif); text-decoration: none; } .cw2-back:hover { color: var(--ch-plum, #5B1A42); } }
@media print { .cw2-back, .cw2-tabs, .cw2-tipbtn, .cw2-i { display: none !important; } }
