/* ASA OS Growth (request 244): #/growth and #/growth/c/<campaign>. Only shop.css tokens; hairlines, one accent. */
.gr { display: flex; flex-direction: column; gap: 26px; }
.gr-muted { color: var(--ink-2); margin: 0 0 8px; }
.gr-small { font-size: 12.5px; }
.gr-warn { color: var(--amber); margin: 6px 0; font-size: 14px; }
.gr-none { color: var(--ink-2); padding: 18px 4px; margin: 0; }
.gr-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.gr-sec-head h2 { margin: 0; }
.gr-n { color: var(--ink-2); font-size: 13px; }
.gr-tools { display: flex; gap: 8px; flex-wrap: wrap; }

/* capacity + counts */
.gr-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gr-stat { background: var(--surface); border-radius: var(--r-m); padding: 14px 16px; box-shadow: 0 0 0 .5px var(--hair); }
.gr-stat-n { font: 600 28px/1.1 var(--font-display); letter-spacing: -0.02em; display: block; }
.gr-stat-l { font-size: 13px; color: var(--ink-2); display: block; margin-top: 2px; }
.gr-stat.is-alert .gr-stat-n { color: var(--red); }
.gr-rule { grid-column: 1 / -1; font-size: 13px; color: var(--ink-2); }
.gr-rule p { margin: 6px 0 0; max-width: 80ch; }
.gr-stats.is-small { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 12px; }

/* rows */
ul.gr-rows { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: var(--r-l); box-shadow: 0 0 0 .5px var(--hair); overflow: hidden; }
.card ul.gr-rows { box-shadow: none; border-radius: 0; background: transparent; }
.gr-row, .gr-out, .gr-camp { display: grid; grid-template-columns: 28px minmax(150px, 0.9fr) minmax(0, 2.4fr) auto; gap: 4px 14px; align-items: start;
  padding: 13px 16px; border-bottom: 1px solid var(--hair); }
.card .gr-row, .card .gr-out { padding-left: 0; padding-right: 0; grid-template-columns: minmax(130px, 0.8fr) minmax(0, 2.4fr); }
.gr-call .gr-row { grid-template-columns: minmax(150px, 0.9fr) minmax(0, 2.4fr) auto; }
.gr-rows > li:last-child { border-bottom: 0; }
.gr-row.is-out .gr-who strong { color: var(--ink-2); }
.gr-pick { display: flex; align-items: center; padding-top: 2px; }
.gr-pick input { width: 18px; height: 18px; }
.gr-who { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.gr-veh { color: var(--ink-2); font-size: 13px; }
.gr-what { min-width: 0; }
.gr-what p { margin: 0; }
ul.gr-opps { list-style: none; padding: 0; margin: 0 0 4px; display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
.gr-detail { color: var(--ink); }
.gr-src { color: var(--ink-3); font-size: 12.5px; }
.gr-link { font-size: 12.5px; margin-left: 6px; }
.gr-why { color: var(--ink-2); font-size: 13px; }
.gr-why.is-ok { color: var(--green); }
.gr-tag { display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: .01em; padding: 1px 7px; border-radius: 999px; background: var(--fill); color: var(--ink-2); vertical-align: 1px; }
.gr-tag.is-safety { background: var(--amber-soft); color: var(--amber); }
.gr-tag.is-urgent { background: var(--red-soft); color: var(--red); margin: 0 6px 4px 0; }
.gr-tag.is-manager { background: var(--amber-soft); color: var(--amber); }
.gr-tag.is-ok { background: var(--green-soft); color: var(--green); }
.gr-call .gr-row { background: color-mix(in srgb, var(--red-soft) 40%, transparent); }

/* builder */
.gr-build h2 { margin: 0; }
.gr-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; margin-top: 6px; }
.gr-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.gr-field p { margin: 0; }
.gr-wide { grid-column: 1 / -1; }
.gr-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.gr-inline input[type="text"] { flex: 1 1 160px; }
.gr-cur { color: var(--ink-2); }
.gr-money { width: 120px; }
.gr-label-row { display: flex; align-items: center; gap: 10px; }
.gr-label-row label { margin-right: auto; }
.gr-count { color: var(--ink-3); font-size: 12px; }
.gr-build textarea { width: 100%; box-sizing: border-box; }
.gr-approval { margin: 0; font-size: 14px; color: var(--ink-2); }
.gr-preview { margin-top: 14px; font-size: 14px; }
.gr-preview ul { margin: 8px 0 0; padding-left: 18px; color: var(--ink-2); }
.gr-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.gr-actions input[type="text"] { flex: 1 1 220px; }
.gr-msg:empty { display: none; }

/* campaigns */
.gr-camp { grid-template-columns: 1fr; padding: 0; }
.gr-camp a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 13px 16px; color: var(--ink); }
.gr-camp a:hover { background: var(--surface-2); text-decoration: none; }
.gr-camp .gr-veh { grid-column: 1 / -1; }
.gr-state { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--fill); color: var(--ink-2); align-self: start; justify-self: start; }
.gr-state.is-submitted { background: var(--amber-soft); color: var(--amber); }
.gr-state.is-approved { background: var(--accent-soft); color: var(--accent); }
.gr-state.is-queued, .gr-state.is-held { background: var(--fill); color: var(--ink); }
.gr-state.is-rejected { background: var(--red-soft); color: var(--red); }

/* campaign page */
.gr-back { margin: 0 0 8px; font-size: 14px; }
.gr-steps { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; counter-reset: s; }
.gr-steps li { counter-increment: s; font-size: 13px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.gr-steps li::before { content: counter(s); width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px; font-weight: 600; background: var(--fill); color: var(--ink-2); }
.gr-steps li + li { padding-left: 18px; position: relative; }
.gr-steps li + li::after { content: ''; position: absolute; left: 4px; top: 50%; width: 10px; height: 1px; background: var(--hair-strong); }
.gr-steps li.is-done { color: var(--ink-2); }
.gr-steps li.is-done::before { content: '✓'; background: var(--green-soft); color: var(--green); }
.gr-steps li.is-now { color: var(--ink); font-weight: 600; }
.gr-steps li.is-now::before { background: var(--accent); color: var(--accent-ink); }
.gr-card h2 { margin-bottom: 8px; }
.gr-next { box-shadow: 0 0 0 1px var(--accent-soft), 0 0 0 .5px var(--hair); }
.gr-next p { margin: 0; }
.gr-bubble { background: var(--fill); border-radius: 16px 16px 16px 4px; padding: 10px 14px; margin: 0 0 14px; max-width: 60ch; white-space: pre-wrap; }
.gr-bubble.is-small { font-size: 14px; margin: 0; }
.gr-ph { background: var(--accent-soft); color: var(--accent); border-radius: 5px; padding: 0 5px; font-weight: 500; }
.gr-kv { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 6px 14px; margin: 0; font-size: 14px; }
.gr-kv dt { color: var(--ink-2); }
.gr-kv dd { margin: 0; }
.gr-notsent { margin: 0 0 6px; padding: 9px 12px; border-radius: var(--r-s); background: var(--fill); font-size: 14px; font-weight: 500; }
.gr-out { grid-template-columns: minmax(110px, 0.6fr) minmax(0, 2.4fr); }
.gr-edit summary { font-size: 14px; }
.gr-edit .gr-field { margin-top: 12px; }
.gr-edit textarea { width: 100%; box-sizing: border-box; }
.gr-history { margin: 4px 0 30px; font-size: 13px; color: var(--ink-2); }
.gr-history ol { margin: 8px 0 0; padding-left: 18px; }

@media (max-width: 860px) {
  .gr-stats { grid-template-columns: 1fr 1fr; }
  .gr-stats > .gr-stat:first-child { grid-column: 1 / -1; }
  .gr-form { grid-template-columns: 1fr; }
  .gr-row, .gr-call .gr-row { grid-template-columns: 28px minmax(0, 1fr); }
  .gr-call .gr-row { grid-template-columns: minmax(0, 1fr); }
  .gr-row .gr-what { grid-column: 2; }
  .gr-call .gr-row .gr-what { grid-column: 1; }
  .card .gr-row, .card .gr-out, .gr-out { grid-template-columns: minmax(0, 1fr); }
  .card .gr-row .gr-what { grid-column: 1; }
  .gr-steps { flex-wrap: wrap; }
  .gr-steps li + li { padding-left: 14px; }
  .pg-head .gr-steps { width: 100%; }
}

/* Request 246: AI message check under the campaign message */
.gr-check { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; margin-top: 12px; padding: 10px 12px; border-radius: var(--r-s); background: var(--fill); font-size: 13.5px; }
.gr-check.is-warn { background: var(--amber-soft); color: var(--amber); }
/* 074: sent from the outbox */
.gr-state.is-delivered { background: var(--green-soft); color: var(--green); }
.gr-status { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }   /* message-state.js chip + what the practice customer did */
/* Shop M2: Customer (to call) and the ticket, side by side. */
.gr-call-acts { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
@media (max-width: 700px) { .gr-call-acts { justify-content: flex-start; } }

/* Batch 30 (UI_COVERAGE.md, stream B): Growth cards under the shared band look (stream A's .band: the accent, white heavy
   italic, square). Markup unchanged: a panel whose first child is its heading (or a head row holding it) gets the band. */
body.shop-on :is(.gr-card):has(> h2:first-child, > :is(div, header):first-child > h2) { padding-top: 0; padding-left: 18px; padding-right: 18px; }   /* no overflow clip: rows, menus and popovers stay reachable */
body.shop-on :is(.gr-card) > h2:first-child,
body.shop-on :is(.gr-card) > :is(div, header):first-child:has(> h2) { display: flex; align-items: center; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap;
  margin: 0 -18px 14px; padding: 9px 18px; min-height: 44px; box-sizing: border-box; background: var(--accent); color: var(--accent-ink, #fff); border-radius: 3px 3px 0 0; }
body.shop-on :is(.gr-card) > :is(div, header):first-child > h2 { margin: 0; }
body.shop-on :is(.gr-card) > h2:first-child, body.shop-on :is(.gr-card) > :is(div, header):first-child > h2 { color: var(--accent-ink, #fff);
  font: italic 900 23px/1.08 var(--font-title); text-transform: uppercase; letter-spacing: -0.004em; }
body.shop-on :is(.gr-card) > :is(div, header):first-child:has(> h2) :is(span, small, label, .cp-fine, a:not(.btn)) { color: inherit; }
body.shop-on :is(.gr-card) > :is(div, header):first-child:has(> h2) :is(button.quiet, .btn.quiet) { color: inherit; background: rgba(255, 255, 255, 0.14); }
@media (max-width: 860px) { body.shop-on :is(.gr-card) > h2:first-child, body.shop-on :is(.gr-card) > :is(div, header):first-child > h2 { font-size: 19px; } body.shop-on :is(.gr-card):has(> h2:first-child, > :is(div, header):first-child > h2) { padding-left: 14px; padding-right: 14px; } body.shop-on :is(.gr-card) > h2:first-child, body.shop-on :is(.gr-card) > :is(div, header):first-child:has(> h2) { margin-left: -14px; margin-right: -14px; padding-left: 14px; padding-right: 14px; } }

/* Batch 30 (UI_COVERAGE.md, stream B): Growth's unboxed sections (Call personally, Follow-up opportunities, Campaigns): the
   section heading in the shared section-label look (stream A's .section-label). Markup unchanged. */
body.shop-on :is(.gr-call, .gr-opps-sec, .gr-camps) > .gr-sec-head > h2, body.shop-on :is(.gr-call, .gr-opps-sec, .gr-camps) > h2:first-child {
  font: italic 900 17px/1.2 var(--font-title); text-transform: uppercase; letter-spacing: .01em; color: var(--ink); margin: 0; }
