/* 9 · The rules: six example calls on the left; on the right the sales team's Trello board, where each outcome's card lands in its
   list, and under the board the rule the app follows. The unclear match holds the board and waits for review in the manager's app. */
.cm-rules h2 { max-width: none; }
.cr-stage { display: grid; grid-template-columns: 25.5cqw minmax(0, 1fr); gap: 1.6cqw; min-height: 0; }

/* The six calls: the salesperson, the outcome, the company and the founder's words */
.cr-calls { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: .6cqw; min-height: 0; padding: .95cqw .9cqw .85cqw; border-radius: 1.2cqw; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 1.8cqw 3.4cqw -2.2cqw rgb(15 26 21 / 28%); }
.cr-calls h3 { padding: 0 .4cqw; font-size: 1.1cqw; }
.cr-rows { display: grid; grid-auto-rows: minmax(0, 1fr); gap: .15cqw; min-height: 0; }
.cr-rows li { display: grid; min-height: 0; }
.cr-row { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .75cqw; width: 100%; padding: .35cqw .55cqw; border: 0; border-radius: .8cqw; background: none; text-align: left; transition: background .2s, box-shadow .2s; }
.cr-row:hover { background: rgb(41 59 51 / 5%); }
.cr-row:focus-visible { outline: .2cqw solid var(--rose); outline-offset: .1cqw; }
.cr-row[aria-pressed="true"] { background: rgb(43 93 125 / 10%); box-shadow: inset .22cqw 0 0 #2b5d7d; }
.cr-row-t { display: grid; gap: .1cqw; min-width: 0; }
.cr-row-h { display: flex; align-items: baseline; gap: .55cqw; min-width: 0; white-space: nowrap; }
.cr-row-h b { font-size: 1.02cqw; font-weight: 650; }
.cr-row-h small { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: .8cqw; font-weight: 550; color: var(--muted); }
.cr-row q { font-size: .95cqw; font-weight: 550; line-height: 1.3; quotes: "“" "”"; text-wrap: pretty; }
.cr-row[aria-pressed="true"] .cr-row-h b { color: #1f4a66; }
.cr-confirm { display: flex; align-items: flex-start; gap: .5cqw; padding: .65cqw .4cqw 0; border-top: 1px solid var(--line); font-size: .86cqw; font-weight: 550; line-height: 1.35; color: var(--muted); }
.cr-confirm .ic { width: 1.15cqw; height: 1.15cqw; margin-top: .02cqw; }

/* The board */
.cr-right { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: .9cqw; min-width: 0; min-height: 0; }
.cr-win { min-height: 0; }
.cr-members { display: flex; padding-left: .12cqw; }
.cr-members .cm-av { margin-left: -.12cqw; box-shadow: 0 0 0 .12cqw #2b6585; }
.cr-board .tr-list { grid-template-columns: minmax(0, 1fr); align-content: start; transition: flex-grow .35s cubic-bezier(.3, .7, .2, 1), opacity .3s, filter .3s, box-shadow .3s; }
.cr-board .tr-list.is-on { flex-grow: 1.75; box-shadow: 0 0 0 .2cqw #fff, 0 0 0 .4cqw rgb(255 255 255 / 45%); }
.cr-board.is-held .tr-list { opacity: .5; filter: saturate(.45); }
.cr-cards { display: grid; gap: .5cqw; }
.cr-cards:empty { display: none; }
.cr-add { display: flex; align-items: center; gap: .35cqw; padding: .1cqw .35cqw; font-size: .88cqw; font-weight: 550; color: #44546f; }
.cr-add .ic { width: .95cqw; height: .95cqw; }
.cr-board .tr-list > h4 { padding: 0 .25cqw; font-size: 1cqw; }
.cm-rules .tr-card h4 { font-size: 1.05cqw; }
.cm-rules .tr-label { font-size: .82cqw; }
.cm-rules .tr-badges { font-size: .84cqw; }
.cm-rules .tr-badge { white-space: nowrap; }
.cr-cards .tr-card:not(.cr-open) .tr-badges { font-size: .8cqw; }
.cr-cards .tr-card:not(.cr-open) footer { flex-wrap: wrap; row-gap: .3cqw; }
.cm-rules .tr-card.is-in { animation: d-rise .45s ease-out both, d-new 1.1s ease-out; }
.cm-rules .tr-card.is-gone { opacity: 0; transition: opacity .2s; }
/* The card of the step, open: its checklist, the founder's words, its due date (or none) and its member */
.cr-open { gap: .45cqw; }
.cr-open h4 { font-size: 1.1cqw; }
.cr-check { gap: .15cqw; }
.cr-check li { align-items: flex-start; gap: .45cqw; padding: 0; font-size: .95cqw; line-height: 1.32; transition: color .3s; }
.cr-check li::before { width: 1cqw; height: 1cqw; margin-top: .12cqw; }
.cr-said { display: flex; align-items: flex-start; gap: .4cqw; padding: .4cqw .5cqw; border-radius: .45cqw; background: #f1f2f4; font-size: .95cqw; line-height: 1.32; }
.cr-said .ic { width: .95cqw; height: .95cqw; margin-top: .12cqw; color: #44546f; }
.cr-said q { font-weight: 600; quotes: "“" "”"; }
.cr-open footer { align-items: center; }
.cr-open .tr-badges { flex-wrap: nowrap; }
.cr-nodue { box-shadow: inset 0 0 0 1px #b3b9c4; color: #44546f; }
.cr-struck { text-decoration: line-through; opacity: .7; }
.cr-member { flex: none; display: inline-flex; align-items: center; gap: .3cqw; font-size: .84cqw; font-weight: 600; color: #44546f; }

/* The rule under the board */
.cr-rule { display: flex; align-items: center; gap: 1cqw; min-height: 4.9cqw; padding: .6cqw 1.2cqw; border-radius: 1cqw; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: 1cqw; line-height: 1.4; }
.cr-rule.is-in { animation: d-rise .4s ease-out both; }
.cr-rule-ic { flex: none; display: grid; place-items: center; width: 2.8cqw; height: 2.8cqw; border-radius: .7cqw; background: rgb(43 93 125 / 13%); color: #1f4a66; }
.cr-rule-ic .ic { width: 1.4cqw; height: 1.4cqw; }
.cr-rule-ic.is-review { background: var(--app-accent-soft); color: var(--app-accent); }
.cr-rule p { flex: 1; min-width: 0; text-wrap: pretty; }
.cr-rule p b { display: block; margin-bottom: .05cqw; font-size: 1.12cqw; font-weight: 650; letter-spacing: -.01em; }
.cr-rule .tr-label { font-size: .84cqw; vertical-align: .05cqw; }
.cr-rule .tr-label.is-pick { box-shadow: 0 0 0 .13cqw #fff, 0 0 0 .27cqw #c9372c; }
.cr-extra { flex: none; display: flex; justify-content: flex-end; min-width: 11.5cqw; }
.cr-extra .cm-chip { padding: .3cqw .75cqw; font-size: .95cqw; }

/* The call that waits for review, in the manager's app */
.cr-review { position: absolute; z-index: 3; left: 50%; top: 54%; width: 31cqw; translate: -50% -50%; display: grid; gap: .7cqw; padding: 1cqw 1.25cqw 1.15cqw; border-radius: 1.1cqw; background: var(--app-bg); color: var(--ink); box-shadow: 0 0 0 1px var(--app-line), 0 1.8cqw 3.6cqw -1.2cqw rgb(9 30 66 / 60%); font-size: .98cqw; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.cr-review.is-on { opacity: 1; visibility: visible; animation: cr-pop .4s ease-out both; }
@keyframes cr-pop { from { transform: translateY(.8cqw) scale(.98); } }
.cr-review header { display: flex; align-items: center; gap: .7cqw; padding-bottom: .6cqw; border-bottom: 1px solid var(--app-line); }
.cr-review header img { height: 1.5cqw; width: auto; }
.cr-review header small { margin-left: auto; font-size: .8cqw; font-weight: 550; color: var(--app-mute); }
.cr-rv-tab { display: inline-flex; align-items: center; gap: .4cqw; padding: .25cqw .65cqw; border-radius: .6cqw; background: var(--app-accent-soft); color: var(--app-accent); font-size: .95cqw; font-weight: 650; }
.cr-rv-tab .ic { width: 1.05cqw; height: 1.05cqw; }
.cr-rv-call { display: flex; align-items: center; gap: .5cqw; }
.cr-rv-call b { font-weight: 650; }
.cr-rv-call .cm-chip { margin-left: auto; }
.cr-rv-q { justify-self: start; }
.cr-rv-opts { display: grid; gap: .4cqw; }
.cr-rv-opts li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: .65cqw; padding: .45cqw .75cqw; border-radius: .7cqw; background: #fff; box-shadow: 0 0 0 1px var(--app-line); }
.cr-rv-opts i { grid-row: span 2; width: 1cqw; height: 1cqw; border-radius: 50%; box-shadow: inset 0 0 0 .14cqw #8f9590; }
.cr-rv-opts b { font-weight: 650; }
.cr-rv-opts small { font-size: .8cqw; color: var(--app-mute); }
.cr-rv-foot { display: flex; align-items: center; gap: .45cqw; font-size: .92cqw; font-weight: 650; color: var(--app-accent); }
.cr-rv-foot .ic { width: 1.05cqw; height: 1.05cqw; }

@media (prefers-reduced-motion: reduce) {
  .cr-board .tr-list, .cr-review { transition: none; }
  .cm-rules .tr-card.is-in, .cr-rule.is-in, .cr-review.is-on { animation: none; }
}
