/* Dial Pink client portal: the shell and components come from captain.css (cp-*), plus the pieces below (cl-*).
   Since 2026-11-05 every client page has the welcome slideshow's "night" look (see Night look below): charcoal with a
   blush glow, white text, dark glass cards and Dial Pink pills. */
.cl-side-agency { display: grid; gap: 2px; margin: -10px 6px 22px; padding: 10px 12px; background: rgb(0 0 0 / 16%); border: 1px solid rgb(255 255 255 / 14%); border-radius: 14px; }
.cl-side-agency small { color: rgb(255 255 255 / 66%); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.cl-side-agency strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }

.cl .cp-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-content: start; }
.cl .ps-table-wrap { position: relative; } /* keeps visually-hidden header labels inside the scroll box on phones */
.cl .cp-main > .cp-flash { margin-bottom: 0; }
.cl .cp-card, .cl .cp-card + .cp-card { margin: 0; }
.cl .cp-card { padding: 20px 22px; background: var(--cl-card); border: 1px solid var(--cp-line); box-shadow: var(--cp-shadow); }
.cl .cp-card-title { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 17px; }
.cl-hello-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }
.cl-hello-row > div { max-width: 720px; }

.cl-preview { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 16px; color: var(--cp-ink); background: #fff7d6; border: 1px solid #f1d27a; border-radius: 14px; font-size: 14px; }
.cl-preview a { margin-left: auto; color: var(--cp-pink-dark); font-weight: 700; }

/* Stat tiles */
.cl-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.cl-kpi { display: grid; gap: 4px; align-content: start; text-decoration: none; }
.cl-kpi small { color: var(--cp-muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.cl-kpi strong { font-size: 30px; font-weight: 700; letter-spacing: -.005em; line-height: 1.1; }
.cl-kpi p { color: var(--cp-muted); font-size: 13px; }
.cl-kpi.is-danger { border-color: #f5b9c8; box-shadow: inset 4px 0 0 var(--cp-red), var(--cp-shadow); }
.cl-kpi.is-warning { box-shadow: inset 4px 0 0 #e0a106, var(--cp-shadow); }
.cl-kpi.is-success { box-shadow: inset 4px 0 0 var(--cp-green), var(--cp-shadow); }
.cl-kpi-link:hover { border-color: var(--cp-pink); }
.cl-delta { font-weight: 700; }
.cl-delta.is-up { color: var(--cp-green); }
.cl-delta.is-down { color: var(--cp-red); }

.cl-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.cl-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.cl-card-head .cp-card-title { margin: 0; }
.cl .cl-link { display: inline-flex; align-items: center; gap: 4px; color: var(--cp-pink-dark); font-size: 13px; font-weight: 700; text-decoration: none; }
.cl-link .ap-icon { width: 14px; height: 14px; }

/* Chart (single series: brand pink columns, recessive grid) */
.cl-chart { position: relative; }
.cl-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.cl-grid-line { stroke: #342c31; stroke-width: 1; }
.cl-baseline { stroke: #4a4046; stroke-width: 1; }
.cl-axis { fill: var(--cp-muted); font-size: 11px; font-family: Plus Jakarta Sans, Arial, sans-serif; }
.cl-col path { fill: #e0047a; }
.cl-col.is-today path { fill: #86023f; }
.cl-col.is-hover path, .cl-col:focus path { fill: #ff2a92; }
.cl-hit { fill: transparent; cursor: pointer; }
.cl-col:focus { outline: none; }
.cl-col:focus-visible .cl-hit { stroke: var(--cp-pink); stroke-width: 2; }
.cl-tip { position: absolute; top: -6px; padding: 6px 10px; color: #fff; background: var(--cp-ink); border-radius: 8px; font-size: 12px; font-weight: 700; white-space: nowrap; transform: translate(-50%, -100%); pointer-events: none; }
.cl-tip[hidden] { display: none; }
.cl-table-toggle { margin-top: 10px; font-size: 13px; }
.cl-table-toggle summary { color: var(--cp-pink-dark); font-weight: 700; cursor: pointer; }
.cl-mini-table { min-width: 0 !important; max-width: 360px; margin-top: 8px; }

/* Lists */
.cl-recent, .cl-report-list { display: grid; margin: 0; padding: 0; list-style: none; }
.cl-recent small { color: var(--cp-muted); font-size: 12px; }
.cl-recent li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--cp-line); }
.cl-recent li:first-child { border-top: 0; }
.cl-recent li > span { display: grid; }

/* Tables */
.cl-table td, .cl-table th { vertical-align: middle; }
.cl-num { text-align: right !important; font-variant-numeric: tabular-nums; }
.cl-sub { display: block; color: var(--cp-muted); font-size: 11.5px; }
.cl-model-cell { display: inline-flex; align-items: center; gap: 8px; color: inherit; font-weight: 700; text-decoration: none; }
a.cl-model-cell:hover { color: var(--cp-pink-dark); }
.cl-sales-table { min-width: 860px; }
.cl .cl-fit { min-width: 0; }
.cl-proof { display: inline-flex; align-items: center; gap: 4px; margin-right: 6px; color: var(--cp-pink-dark); font-size: 12.5px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.cl-proof .ap-icon { width: 15px; height: 15px; }
.cl-report-btn { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; color: var(--cp-muted); background: var(--cl-field); border: 1px solid var(--cp-line); border-radius: 999px; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.cl-report-btn:hover { color: var(--cp-red); border-color: #f5b9c8; }
.cl-report-btn .ap-icon { width: 14px; height: 14px; }
.cl-foot { margin-top: 12px !important; font-size: 12.5px; }
.cl-opening td { background: var(--cp-paper); }

.cl-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.cl-filters select { min-height: 38px; padding: 0 12px; background: var(--cl-field); border: 1px solid var(--cp-line); border-radius: 999px; font-size: 13px; font-weight: 700; }
.cl-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.cl-sum { margin-bottom: 12px; }
.cl-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 14px; font-size: 13px; font-weight: 700; }

.cl-report-list li { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--cp-line); }
.cl-report-list li:first-child { border-top: 0; }
.cl-report-main { display: grid; gap: 2px; }
.cl-report-main small { color: var(--cp-muted); font-size: 12.5px; }
.cl-report-main .cl-report-result { color: var(--cp-ink); }

/* Dialogs (base from sales.css) */
.cl-dialog-wide { width: min(760px, calc(100vw - 24px)); }
.cl-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.cl-span-2 { grid-column: 1 / -1; }

/* Models */
.cl-models { display: grid; gap: 18px; }
.cl-model .cp-model-head { position: relative; }
.cl-model-edit { margin-left: auto; align-self: flex-start; }
.cl-model-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px !important; }
.cl-model-status small { color: var(--cp-muted); font-size: 12px; }
.cl-pending { margin: 14px 0; padding: 12px 14px; background: var(--cp-amber-soft); border-radius: 14px; }
.cl-pending > strong { display: block; margin-bottom: 6px; font-size: 13px; }
.cl-pending dl { display: grid; gap: 6px; margin: 0 0 10px; }
.cl-pending dt { color: var(--cp-amber); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.cl-pending dd { margin: 0; font-size: 13.5px; }

/* Account */
.cl-facts { display: grid; gap: 10px; margin: 0 0 18px; }
.cl-facts div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px; }
.cl-facts dt { color: var(--cp-muted); font-size: 13px; font-weight: 700; }
.cl-facts dd { margin: 0; }
.cl-subtitle { margin: 0 0 6px !important; font-size: 14px; }
.cl-instructions { line-height: 1.6; }

/* Statement */
.cl-statement { display: grid; gap: 18px; }
.cl-statement-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--cp-line); }
.cl-statement-brand { display: flex; align-items: center; gap: 12px; }
.cl-statement-brand div { display: grid; }
.cl-statement-brand strong { font-size: 20px; }
.cl-statement-brand small { color: var(--cp-muted); }
.cl-statement-meta { display: grid; justify-items: end; gap: 4px; text-align: right; }
.cl-statement-meta h1 { font-size: 26px; }
.cl-statement-meta p { color: var(--cp-muted); font-weight: 700; }
.cl-statement-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; }
.cl-statement-facts dt { color: var(--cp-muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.cl-statement-facts dd { margin: 2px 0 0; font-weight: 700; }
.cl-statement-facts small { color: var(--cp-muted); font-weight: 400; }
.cl-statement-table tfoot td { font-weight: 700; border-top: 2px solid var(--cp-line); }
.cl-statement-sum { display: grid; gap: 6px; justify-self: end; width: min(380px, 100%); }
.cl-statement-sum div { display: flex; justify-content: space-between; gap: 14px; font-variant-numeric: tabular-nums; }
.cl-statement-sum .is-paid { color: var(--cp-green); }
.cl-statement-sum .is-total { padding-top: 8px; border-top: 2px solid var(--cp-ink); font-size: 18px; }
.cl-statement-pay { padding: 14px 16px; background: var(--cp-paper); border-radius: 14px; }
.cl-statement-pay h2 { margin-bottom: 6px !important; font-size: 15px; }
.cl-print-row { display: flex; justify-content: flex-end; }

@media (max-width: 1080px) {
    .cl-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
    .cl .cp-main { padding-bottom: 96px; }
    .cl-side-agency { display: none; }
    .cl-form-grid { grid-template-columns: minmax(0, 1fr); }
    .cl-statement-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cl-kpi strong { font-size: 26px; }
    .cl-model .cp-model-head { flex-wrap: wrap; }
    .cl-model-edit { margin-left: 0; }
}

@media print {
    body.cp { display: block; background: #fff !important; }
    body.cp::before, .cp-side, .cp-bottom, .cl-noprint, .cl-preview, .cp-flash { display: none !important; }
    .cp-main { max-width: none; padding: 0; }
    .cl .cp-card { border: 0; box-shadow: none; }
    .ps-table { min-width: 0 !important; }
}

/* =============================================================================================
 * Night look (2026-11-05): the welcome slideshow's charcoal with a blush glow on every client page — white text,
 * dark glass cards and Dial Pink pills. Overrides the pink brand layer of captain.css / dp-controls.css for body.cl
 * only, mostly through their colour variables; :not(#dp-x) matches the specificity of dp-controls.css.
 * ============================================================================================= */
body.cl {
    --cp-ink: #fbf6f9;
    --cp-muted: #b9aab3;
    --cp-paper: #2f282d;
    --cp-line: #3d3439;
    --cp-pink: #f4037a;
    --cp-pink-dark: #ff8cc2;
    --cp-pink-soft: rgb(244 3 122 / 16%);
    --cp-green: #3fd796;
    --cp-green-soft: rgb(63 215 150 / 14%);
    --cp-red: #ff6b8b;
    --cp-red-soft: rgb(255 107 139 / 14%);
    --cp-amber: #ffc44d;
    --cp-amber-soft: rgb(255 196 77 / 14%);
    --cp-blue: #7cb6ff;
    --cp-blue-soft: rgb(124 182 255 / 14%);
    --cp-grey-soft: #3a3237;
    --cp-shadow: 0 18px 40px rgb(0 0 0 / 28%);
    --cl-card: #262025;
    --cl-field: #1f1a1e;
    --cl-field-line: #4a4046;
    --dpx-card: #262025;
    --dpx-card-gradient: none;
    --dpx-card-line: #3d3439;
    --dpx-field: #1f1a1e;
    --dpx-field-line: #4a4046;
    color: var(--cp-ink);
    background: radial-gradient(60% 50% at 85% 0%, rgb(255 92 160 / 22%) 0%, rgb(255 92 160 / 0) 70%), #1d181c fixed;
    color-scheme: dark;
}
body.cl::before { display: none; }
body.cl :is(h1, h2, h3, h4, strong, label, dd, dt, td, th) { color: inherit; }
body.cl .cp-hello h1 { color: #fff; }
body.cl .cp-hello p, body.cl .cp-hello p.cp-muted, body.cl .cp-hello .cp-muted { color: #cdbfc8 !important; }
body.cl .cp-hello p strong { color: #fff; }
body.cl a.cp-back { color: #fff; }
body.cl .cp-muted, body.cl .cp-note { color: var(--cp-muted); }

/* Sidebar: glass panel on the charcoal, pink pill for the active page (like the welcome buttons). */
body.cl .cp-side-inner { color: #fff; background: rgb(255 255 255 / 5%); border: 1px solid rgb(255 255 255 / 10%); box-shadow: none; }
body.cl .cp-side-logo { background: #fff; border-color: #fff; }
body.cl .cp-side-logo img { height: 34px; }
body.cl .cp-side-wordmark img { filter: brightness(0) invert(1); }
body.cl .cp-side-wordmark small { color: #ff9cc9; background: rgb(255 120 180 / 14%); }
body.cl .cl-side-agency, body.cl .cp-side-user { background: rgb(255 255 255 / 6%); border-color: rgb(255 255 255 / 10%); }
body.cl .cl-side-agency small { color: #ff9cc9; }
body.cl .cl-side-agency strong { color: #fff; }
body.cl .cp-side-label { color: #8f8189; }
body.cl .cp-side a.cp-side-link { color: #d9ccd4; }
body.cl .cp-side-icon { color: #cdbfc8; background: rgb(255 255 255 / 8%); }
body.cl .cp-side a.cp-side-link:hover { color: #fff; background: rgb(255 255 255 / 7%); }
body.cl .cp-side a.cp-side-link.is-active:not(#dp-x) { color: #fff; background: var(--cp-pink) !important; box-shadow: 0 12px 26px rgb(244 3 122 / 32%); }
body.cl .cp-side-link.is-active .cp-side-icon { color: var(--cp-pink); background: #fff; }
body.cl .cp-side .cp-count, body.cl .cp-side .cp-count.is-hot { color: #fff; background: var(--cp-pink); }
body.cl .cp-side-link.is-active .cp-count { color: var(--cp-pink); background: #fff; }
body.cl .cp-side-avatar { color: #c3025f; background: #fff; }
body.cl .cp-side-user-copy small { color: var(--cp-muted); }
body.cl .cp-side a.cp-side-logout { color: #cdbfc8; background: rgb(255 255 255 / 6%); border: 1px solid rgb(255 255 255 / 12%); }
body.cl .cp-side a.cp-side-logout:hover { color: #fff; }

/* Cards: dark glass with a hairline; buttons are pink pills with the welcome glow. */
body.cl .cp-card { border-radius: 18px; }
body.cl :is(.cp-card, .cp-empty, .sl-dialog):not(#dp-x) { color: var(--cp-ink); background: var(--cl-card) !important; background-image: none !important; border-color: rgb(255 255 255 / 10%) !important; }
body.cl .cp-card th:not(#dp-x) { color: #a3949d; background-color: var(--cp-paper) !important; border-color: var(--cp-line) !important; }
body.cl .cp-card td { border-color: var(--cp-line) !important; }
body.cl .ps-kpis div { background: var(--cp-paper); }
body.cl .cp-btn { color: #fff; background: var(--cp-pink); border-color: var(--cp-pink); border-radius: 999px; box-shadow: 0 12px 26px rgb(244 3 122 / 30%); }
body.cl .cp-btn:hover { background: #c3025f; box-shadow: 0 12px 26px rgb(244 3 122 / 30%); }
body.cl .cp-btn-light:not(#dp-x) { color: #fff; background: rgb(255 255 255 / 8%); border: 1px solid rgb(255 255 255 / 16%); box-shadow: none; }
body.cl .cp-btn-light:hover { background: rgb(255 255 255 / 13%); border-color: var(--cp-pink); }
body.cl .cp-btn:disabled { opacity: .45; box-shadow: none; }
body.cl :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea):not(#dp-x) { color: #fff; background-color: var(--cl-field) !important; border-color: var(--cl-field-line) !important; }
body.cl :is(input, textarea)::placeholder { color: #8f8189; }

body.cl input[type="file"] { color: var(--cp-muted); }
body.cl .cp-field, body.cl .cp-field > span { color: #fff; }
body.cl .cl-preview { color: #ffe6a6; background: rgb(255 196 77 / 10%); border-color: rgb(255 196 77 / 35%); border-radius: 12px; }
body.cl .cl-preview a { color: #ff8cc2; }
body.cl .cp-flash { border-radius: 14px; }
body.cl .at-mavatar { box-shadow: 0 0 0 2px var(--cl-card); }

/* Header tools: model picker and account status. */
.cl-hello-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cl-model-pick select, .cl-filter-form select { min-height: 40px; padding: 0 34px 0 14px; color: var(--cp-ink); background-color: var(--cl-field); border: 1px solid var(--cp-line); border-radius: 12px; font-size: 14px; font-weight: 700; }
.cl-filter-form { display: contents; }
.cl-filter-form select { min-height: 36px; border-radius: 10px; font-size: 13px; }
.cl-filter-form select.is-on { border-color: var(--cp-pink); background-color: var(--cp-pink-soft); }
.cl-status { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; color: var(--cp-ink); background: #fff; border: 1px solid var(--cp-line); border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.cl-status i { width: 8px; height: 8px; border-radius: 99px; background: #19b46b; box-shadow: 0 0 0 4px rgb(25 180 107 / 18%); }
.cl-status.is-preparing i { background: #e0a106; box-shadow: 0 0 0 4px rgb(224 161 6 / 18%); }
.cl-status.is-stopped i { background: #a3969e; box-shadow: none; }

/* "Action needed" banner. */
.cl-action { display: flex; align-items: center; gap: 14px; padding: 14px 18px; color: var(--cp-ink); background: var(--cp-pink-soft); border: 1px solid #f8cfe0; border-radius: 16px; }
.cl-action-icon { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; color: var(--cp-pink); background: #fff; border-radius: 12px; }
.cl-action-text { display: grid; flex: 1; min-width: 0; }
.cl-action-text strong { font-size: 15px; }
.cl-action-text small { overflow: hidden; color: var(--cp-muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.cl-action .cp-btn { flex: 0 0 auto; }

/* Key numbers. */
.cl-kpis-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cl-kpi small { display: flex; align-items: center; gap: 7px; font-size: 13px; letter-spacing: 0; }
.cl-kpi small .ap-icon { width: 17px; height: 17px; color: var(--cp-pink); }
.cl-kpi.cl-kpi-link { color: inherit; }
body.cl .cl-kpi.is-danger { border-color: #f5b9c8; box-shadow: inset 4px 0 0 var(--cp-red), var(--cp-shadow); }

/* Segmented links (periods, views) and tabs. */
.cl-seg { display: inline-flex; flex-wrap: wrap; padding: 3px; background: var(--cp-paper); border: 1px solid var(--cp-line); border-radius: 10px; }
.cl .cl-seg a { padding: 6px 11px; color: var(--cp-muted); border-radius: 8px; font-size: 12.5px; font-weight: 700; text-decoration: none; }
.cl .cl-seg a:hover { color: var(--cp-ink); }
.cl .cl-seg a.is-on { color: var(--cp-ink); background: #fff; box-shadow: 0 1px 3px rgb(35 29 34 / 10%); }
.cl-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.cl .cl-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; color: var(--cp-ink); background: #fff; border: 1px solid var(--cp-line); border-radius: 999px; font-size: 14px; font-weight: 700; text-decoration: none; }
.cl-tabs a b { padding: 1px 8px; background: var(--cp-paper); border-radius: 99px; font-size: 12px; }
.cl .cl-tabs a.is-on { color: #fff; background: var(--cp-pink); border-color: var(--cp-pink); }
.cl-tabs a.is-on b { background: rgb(255 255 255 / 25%); }
.cl-tab-help { margin-bottom: 6px !important; font-size: 13px; }

/* Sales summary: gross / fee / net, per-model bars and where the numbers come from. */
.cl-split { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.cl-split div { padding: 10px 12px; background: var(--cp-paper); border-radius: 12px; }
.cl-split small { display: block; color: var(--cp-muted); font-size: 12px; font-weight: 700; }
.cl-split strong { font-size: 16px; font-variant-numeric: tabular-nums; }
.cl-breakdown { display: grid; gap: 2px; margin-top: 12px; }
.cl .cl-breakdown-row { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(80px, 2fr) auto; align-items: center; gap: 12px; padding: 8px 6px; color: inherit; border-radius: 10px; text-decoration: none; }
.cl-breakdown-row:hover { background: var(--cp-paper); }
.cl-breakdown-row .cl-num { display: grid; }
.cl-breakdown-row .cl-num small { color: var(--cp-muted); font-size: 11.5px; }
.cl-bar { display: block; height: 8px; overflow: hidden; background: var(--cp-line); border-radius: 99px; }
.cl-bar i { display: block; height: 100%; background: var(--cp-pink); border-radius: 99px; }
td .cl-bar { width: 140px; margin-bottom: 3px; }
.cl-source { margin-top: 12px !important; color: var(--cp-muted); font-size: 12.5px; line-height: 1.55; }
.cl-source .cl-link { margin-left: 4px; }

/* Next steps / latest from your team. */
.cl-list { display: grid; margin: 0; padding: 0; list-style: none; }
.cl-list li { border-top: 1px solid var(--cp-line); }
.cl-list li:first-child { border-top: 0; }
.cl .cl-list a { display: flex; align-items: center; gap: 12px; padding: 11px 4px; color: inherit; text-decoration: none; }
.cl-list a:hover strong { color: var(--cp-pink-dark); }
.cl-list-icon { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; color: var(--cp-pink); background: var(--cp-pink-soft); border-radius: 11px; }
.cl-list-icon .ap-icon { width: 18px; height: 18px; }
.cl-list-icon.is-red { color: var(--cp-red); background: var(--cp-red-soft); }
.cl-list-icon.is-amber { color: var(--cp-amber); background: var(--cp-amber-soft); }
.cl-list-icon.is-green { color: var(--cp-green); background: var(--cp-green-soft); }
.cl-list-icon.is-blue { color: var(--cp-blue); background: var(--cp-blue-soft); }
.cl-list-text { display: grid; flex: 1; min-width: 0; }
.cl-list-text strong { font-size: 14.5px; }
.cl-list-text small { color: var(--cp-muted); font-size: 12.5px; }
.cl-list-go { color: #b9adb4; }

/* Account status. */
.cl-chip { padding: 3px 9px; color: var(--cp-muted); background: var(--cp-paper); border: 1px solid var(--cp-line); border-radius: 8px; font-size: 12px; font-weight: 700; }
.cl-stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.cl-stages li { padding: 10px 6px; color: var(--cp-muted); background: var(--cp-paper); border-radius: 12px; font-size: 13px; font-weight: 700; text-align: center; }
.cl-stages li.is-done { color: var(--cp-green); background: var(--cp-green-soft); }
.cl-stages li.is-done::before { content: "✓ "; }
.cl-stages li.is-on { color: #fff; background: var(--cp-pink); }
.cl-stages li.is-on::before { content: "● "; }
.cl-stages li.is-off { color: var(--cp-muted); background: var(--cp-grey-soft); }
.cl-live-line { display: flex; align-items: center; gap: 8px; margin-top: 12px !important; padding: 10px 12px; background: var(--cp-paper); border-radius: 12px; font-size: 13px; font-weight: 700; }

/* Sales filters. */
.cl-filters { gap: 8px; }
.cl .cl-check { gap: 6px; padding: 7px 12px; color: var(--cp-muted); background: var(--cl-field); border: 1px solid var(--cp-line); border-radius: 10px; text-decoration: none; }
.cl .cl-check.is-on { color: var(--cp-pink-dark); background: var(--cp-pink-soft); border-color: #f8cfe0; }
.cl-check .ap-icon { width: 15px; height: 15px; }
.cl-filters-end { margin-left: auto; }
.cl-sum small.cl-delta { display: block; margin-top: 2px; font-size: 12px; letter-spacing: 0; text-transform: none; }

/* Requests. */
.cl-req { margin: 0; padding: 0; list-style: none; }
.cl-req li { border-top: 1px solid var(--cp-line); }
.cl-req li:first-child { border-top: 0; }
.cl .cl-req a { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 13px 4px; color: inherit; text-decoration: none; }
.cl-req a:hover .cl-req-main strong { color: var(--cp-pink-dark); }
.cl-req-main { display: grid; min-width: 0; }
.cl-req-main strong { font-size: 15px; }
.cl-req-main small { overflow: hidden; color: var(--cp-muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.cl-req-side { display: grid; justify-items: end; gap: 5px; text-align: right; }
.cl-req-side small { color: var(--cp-muted); font-size: 12px; }
.cl-type { display: inline-block; margin-right: 8px; padding: 2px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 700; vertical-align: 1px; }
.cl-type.is-custom { color: #7a2bc2; background: #f3e5ff; }
.cl-type.is-account { color: var(--cp-blue); background: var(--cp-blue-soft); }
.cl-type.is-billing { color: var(--cp-amber); background: var(--cp-amber-soft); }
.cl-overdue { color: var(--cp-red) !important; font-weight: 700; }

@media (max-width: 1080px) {
    .cl-kpis-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
    .cl-action { flex-wrap: wrap; }
    .cl-action-text small { white-space: normal; }
    .cl-action .cp-btn { width: 100%; justify-content: center; }
    .cl-split { gap: 6px; }
    .cl-split div { padding: 8px 9px; }
    .cl-split strong { font-size: 14px; }
    .cl .cl-breakdown-row { grid-template-columns: minmax(0, 1fr) auto; }
    .cl-breakdown-row .cl-bar { grid-column: 1 / -1; grid-row: 2; }
    .cl-filters-end { margin-left: 0; }
    .cl .cl-req a { grid-template-columns: 40px minmax(0, 1fr); }
    .cl-req-side { grid-column: 2; justify-items: start; text-align: left; }
    .cl-req-main small { white-space: normal; }
}

/* =============================================================================================
 * Welcome slideshow (views/client/welcome.php): dark charcoal with a blush glow, shown once per user.
 * ============================================================================================= */
body.cw { margin: 0; min-height: 100vh; color: #fff; background: radial-gradient(70% 70% at 78% 30%, rgb(255 92 160 / 30%) 0%, rgb(255 92 160 / 0) 60%), #1d181c; font-family: Plus Jakarta Sans, Arial, sans-serif; }
body.cw *, body.cw *::before, body.cw *::after { box-sizing: border-box; }
.cw-stage { position: relative; display: grid; grid-template-rows: auto 1fr auto; min-height: 100vh; max-width: 1320px; margin: 0 auto; padding: 30px clamp(20px, 6vw, 96px); }
.cw-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cw-brand { display: inline-flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.cw-brand img { width: 40px; height: 40px; padding: 4px; object-fit: contain; background: #fff; border-radius: 12px; }
.cw-inline { display: inline; margin: 0; }
.cw-skip, .cw-ghost { padding: 8px 0; color: #cdbfc8; background: none; border: 0; font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; }
.cw-skip:hover, .cw-ghost:hover { color: #fff; }
.cw-slide { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(24px, 5vw, 64px); padding: 40px 0; }
.cw-slide[hidden] { display: none; }
.cw-slide.is-on { animation: cw-in .35s ease both; }
@keyframes cw-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cw-slide.is-on { animation: none; } }
.cw-kicker { display: inline-block; margin-bottom: 22px; padding: 7px 14px; color: #ff9cc9; background: rgb(255 120 180 / 14%); border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.cw h1 { margin: 0 0 20px; font-size: clamp(40px, 6vw, 76px); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
.cw h1.cw-h-sm { font-size: clamp(34px, 4.6vw, 58px); }
.cw-sub { max-width: 560px; margin: 0 0 34px; color: #cdbfc8; font-size: clamp(16px, 1.6vw, 20px); line-height: 1.5; }
.cw-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.cw-btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 28px; color: #fff; background: #f4037a; border: 0; border-radius: 999px; box-shadow: 0 16px 34px rgb(244 3 122 / 35%); font: inherit; font-size: 17px; font-weight: 800; text-decoration: none; cursor: pointer; }
.cw-btn:hover { background: #c3025f; }

/* Slide 1: the client's models (photo, or the first letter). */
.cw-collage { position: relative; height: 500px; }
.cw-tile { position: absolute; display: flex; flex-direction: column; overflow: hidden; background: #fff; border-radius: 28px; box-shadow: 0 30px 60px rgb(0 0 0 / 35%); }
.cw-photo { position: relative; display: grid; flex: 1; place-items: center; overflow: hidden; color: #fff; background: linear-gradient(160deg, hsl(var(--cw-hue, 330) 70% 62%), hsl(var(--cw-hue, 330) 60% 40%)); font-size: 88px; font-weight: 800; }
.cw-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cw-photo-brand { background: linear-gradient(160deg, #ff4fa3, #c3025f); }
.cw-photo-brand img { position: static; width: 55%; height: auto; }
.cw-cap { padding: 13px 18px; color: #231d22; }
.cw-cap strong { display: block; font-size: 17px; }
.cw-cap small { color: #776c73; font-size: 13px; }
.cw-tile-1 { top: 40px; left: 30px; width: 260px; height: 350px; transform: rotate(-5deg); }
.cw-tile-2 { top: 0; left: 240px; z-index: 2; width: 250px; height: 330px; transform: rotate(4deg); }
.cw-tile-3 { top: 210px; left: 160px; z-index: 3; width: 230px; height: 290px; transform: rotate(-1deg); }
.cw-collage .cw-tile-2:only-of-type { left: 120px; }
.cw-tag { position: absolute; top: -8px; left: -6px; z-index: 4; padding: 13px 18px; color: #231d22; background: #fff; border-radius: 18px; box-shadow: 0 20px 40px rgb(0 0 0 / 30%); font-size: 13.5px; }
.cw-tag strong { display: block; color: #f4037a; font-size: 21px; }

/* Slides 2–3: cards; slide 4: the setup steps. */
.cw-cards { display: grid; gap: 14px; }
.cw-cards article { display: flex; align-items: flex-start; gap: 18px; padding: 20px 22px; background: rgb(255 255 255 / 8%); border: 1px solid rgb(255 255 255 / 16%); border-radius: 22px; }
.cw-cards b { display: grid; width: 46px; height: 46px; flex: 0 0 auto; place-items: center; color: #c3025f; background: #fff; border-radius: 14px; font-size: 16px; }
.cw-cards b .ap-icon { width: 20px; height: 20px; }
.cw-cards strong { display: block; margin-bottom: 4px; font-size: 18px; }
.cw-cards span { color: #e7dbe2; font-size: 15px; line-height: 1.45; }
.cw-plan { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.cw-plan li { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: rgb(255 255 255 / 8%); border: 1px solid rgb(255 255 255 / 16%); border-radius: 20px; font-size: 17px; font-weight: 700; }
.cw-plan li b { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; background: rgb(255 255 255 / 18%); border-radius: 99px; font-size: 15px; }
.cw-plan li.is-done b { color: #0f8a4f; background: #fff; }
.cw-plan li.is-now { color: #231d22; background: #fff; }
.cw-plan li.is-now b { color: #fff; background: #f4037a; }
.cw-plan li small { margin-left: auto; font-size: 13px; opacity: .8; }

.cw-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cw-dots { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.cw-dots li { width: 10px; height: 10px; background: rgb(255 255 255 / 22%); border-radius: 99px; transition: width .2s; }
.cw-dots li.is-on { width: 34px; background: #f4037a; }
.cw-foot small { font-size: 13px; font-weight: 700; }
.cw-nav { display: flex; gap: 10px; }
.cw-nav button { width: 46px; height: 46px; color: #fff; background: rgb(255 255 255 / 10%); border: 0; border-radius: 99px; font: inherit; font-size: 20px; font-weight: 800; cursor: pointer; }
.cw-nav button.is-go { background: #f4037a; }
.cw-nav button:disabled { opacity: .35; cursor: default; }

@media (max-width: 760px) {
    .cw-stage { padding: 20px 18px 24px; }
    .cw-slide { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 24px; padding: 24px 0; }
    .cw-collage { order: -1; height: 280px; }
    .cw-tile-1 { top: 30px; left: 0; width: 140px; height: 190px; }
    .cw-tile-2 { top: 0; left: 150px; width: 145px; height: 190px; }
    .cw-tile-3 { top: 100px; left: 80px; width: 135px; height: 178px; }
    .cw-collage .cw-tile-2:only-of-type { left: 80px; }
    .cw-photo { font-size: 50px; }
    .cw-tag { top: auto; right: 0; bottom: -4px; left: auto; padding: 9px 13px; font-size: 12px; }
    .cw-tag strong { font-size: 16px; }
    .cw-sub { margin-bottom: 22px; }
    .cw-btn { padding: 14px 22px; font-size: 16px; }
}

/* =============================================================================================
 * Setup checklist (views/client/setup.php): night look, no sidebar.
 * ============================================================================================= */
body.cl.cs { display: block; }
.cs-main { max-width: 1320px; margin: 0 auto; }
.cs-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.cl .cs-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--cp-ink); text-decoration: none; }
.cs-brand .cp-side-logo { display: grid; width: 44px; height: 44px; place-items: center; background: var(--cp-pink-soft); border: 1px solid #f8d3e3; border-radius: 14px; }
.cs-brand img { height: 30px; }
.cs-brand strong { font-size: 18px; }
.cs-brand small { padding: 3px 9px; color: var(--cp-muted); background: #fff; border: 1px solid var(--cp-line); border-radius: 99px; font-size: 12px; font-weight: 700; }
.cs-progress { display: inline-flex; align-items: center; gap: 12px; color: var(--cp-muted); font-size: 13.5px; font-weight: 700; }
.cs-progress i { width: 200px; height: 7px; overflow: hidden; background: var(--cp-line); border-radius: 99px; }
.cs-progress b { display: block; height: 100%; background: var(--cp-pink); }
.cs-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr) 280px; gap: 18px; align-items: start; }
.cs-steps ol { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.cl .cs-steps a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; color: var(--cp-ink); border-radius: 14px; font-size: 14.5px; font-weight: 700; text-decoration: none; }
.cs-steps a:hover { background: var(--cp-paper); }
.cs-steps a b { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; color: var(--cp-muted); background: var(--cp-grey-soft); border-radius: 99px; font-size: 13px; }
.cs-steps a span { display: grid; }
.cs-steps a small { color: var(--cp-muted); font-size: 12px; font-weight: 500; }
.cs-steps a.is-done b { color: var(--cp-green); background: var(--cp-green-soft); }
.cl .cs-steps a.is-now { background: var(--cp-pink-soft); }
.cs-steps a.is-now b { color: #fff; background: var(--cp-pink); }
.cs-body .cp-card-title { font-size: 20px; }
.cs-help { margin-bottom: 14px !important; color: var(--cp-muted); line-height: 1.55; }
.cs-form { display: grid; gap: 4px; max-width: 560px; }
.cs-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.cs-check { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 12px; font-size: 14px; font-weight: 600; line-height: 1.45; }
.cs-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--cp-pink); }
.cs-agreement { max-height: 360px; margin-bottom: 16px; padding: 16px 18px; overflow: auto; background: var(--cp-paper); border: 1px solid var(--cp-line); border-radius: 14px; font-size: 14px; line-height: 1.65; }
.cs-signed { display: flex; align-items: center; gap: 8px; margin-bottom: 14px !important; padding: 10px 14px; color: var(--cp-green); background: var(--cp-green-soft); border-radius: 12px; font-weight: 700; }
.cs-signed strong { color: var(--cp-ink); }
.cs-models, .cs-review, .cs-list { display: grid; margin: 0; padding: 0; list-style: none; }
.cs-models li { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--cp-line); }
.cs-models li:first-child { border-top: 0; }
.cs-model-text { display: grid; flex: 1; min-width: 180px; }
.cs-model-text small { color: var(--cp-muted); font-size: 12.5px; }
.cs-meter { display: grid; gap: 3px; width: 130px; }
.cs-meter small { color: var(--cp-muted); font-size: 11.5px; font-weight: 700; }
.cs-list { gap: 8px; margin-bottom: 16px; }
.cs-list li { padding-left: 22px; position: relative; font-size: 14px; }
.cs-list li::before { position: absolute; top: 0; left: 0; color: var(--cp-pink); content: "•"; font-weight: 800; }
.cs-review li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--cp-line); }
.cs-review li:first-child { border-top: 0; }
.cs-review li b { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; color: var(--cp-amber); background: var(--cp-amber-soft); border-radius: 99px; }
.cs-review li.is-done b { color: var(--cp-green); background: var(--cp-green-soft); }
.cs-review li span { display: grid; flex: 1; }
.cs-review li small { color: var(--cp-muted); font-size: 12.5px; }
.cs-plan ol { display: grid; gap: 14px; margin: 0 0 14px; padding: 0; list-style: none; }
.cs-plan li { display: flex; gap: 12px; color: var(--cp-muted); font-size: 13px; }
.cs-plan li b { width: 22px; height: 22px; flex: 0 0 auto; border: 2px solid #d9ccd3; border-radius: 99px; }
.cs-plan li.is-done b { background: var(--cp-pink); border-color: var(--cp-pink); }
.cs-plan li.is-now b { border-color: var(--cp-pink); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 10px var(--cp-pink); }
.cs-plan li strong { display: block; color: var(--cp-ink); font-size: 14px; }
.cs-small { font-size: 12.5px; }

/* Overview + Settings: "finish your setup" banner and the replay link. */
.cl-setup-banner { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: #fff; border: 1px solid var(--cp-line); border-radius: 16px; box-shadow: var(--cp-shadow); }
.cl-setup-banner .cl-action-icon { background: var(--cp-pink-soft); }
.cl-setup-banner .cl-bar { width: 180px; }

@media (max-width: 1080px) {
    .cs-grid { grid-template-columns: minmax(0, 1fr); }
    .cs-steps ol { grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); overflow-x: auto; }
}
@media (max-width: 760px) {
    .cs-progress i { width: 120px; }
    .cl-setup-banner { flex-wrap: wrap; }
    .cl-setup-banner .cl-bar { width: 100%; }
}
@media print {
    body.cl.cs .cs-top, body.cl.cs .cs-steps, body.cl.cs .cs-plan, body.cl.cs .cp-hello { display: none !important; }
    body.cl.cs .cs-grid { display: block; }
    body.cl.cs .cs-agreement { max-height: none; overflow: visible; border: 0; background: none; }
}
.cl a.cl-setup-banner { color: inherit; text-decoration: none; }
.cl a.cl-setup-banner:hover { border-color: var(--cp-pink); }
.cl-card-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.cl-card-row .cp-card-title { margin-bottom: 4px; }
.cl-card-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Phones: tables marked .cl-stack (invoices, sales) become one small card per row instead of scrolling sideways. */
@media (max-width: 760px) {
    .cl .cl-stack { min-width: 0 !important; }
    .cl .cl-stack thead { display: none; }
    .cl .cl-stack, .cl .cl-stack tbody { display: block; width: 100%; }
    .cl .cl-stack tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; padding: 14px 2px; border-bottom: 1px solid var(--cp-line); }
    .cl .cl-stack td { display: block; padding: 0 !important; border: 0 !important; text-align: left !important; }
    .cl .cl-stack td[data-label]::before { display: block; margin-bottom: 1px; color: var(--cp-muted); content: attr(data-label); font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
    .cl .cl-stack .cl-stack-head { grid-row: 1; grid-column: 1; }
    .cl .cl-stack .cl-stack-sub, .cl .cl-stack .cl-stack-pill { grid-row: 1; grid-column: 2; justify-self: end; text-align: right !important; }
    .cl .cl-stack .cl-stack-link { grid-column: 1 / -1; }
    .cl .cl-stack .cl-stack-link:empty { display: none; }
    .cl .cl-stack .cl-stack-skip { display: none; }
}
@media (max-width: 760px) {
    .cl .ps-kpis.cl-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cl .ps-kpis.cl-sum strong { font-size: 18px; }
}

/* =============================================================================================
 * 2026-11-05: Fan LTV, weekly reports, two-way requests, invoices typed in by hand, setup pop-up + Infloww access.
 * ============================================================================================= */
.cl-kpis-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cl .cl-kpi.is-ltv:not(#dp-x) { background: linear-gradient(160deg, #3a1d2d 0%, var(--cl-card) 70%) !important; border-color: rgb(244 3 122 / 45%) !important; }
.cl-kpi.is-ltv strong { color: var(--cp-pink-dark); }
.cl-kpi .cl-kpi-quiet { font-size: 21px; }
.cl-kpis-inner { margin: 12px 0 16px; }
.cl-kpis-inner .cl-kpi { padding: 16px 18px; background: var(--cp-paper); border: 1px solid var(--cp-line); border-radius: 16px; }
.cl .cl-source-top { margin: 0 0 8px !important; }
.cl-legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 6px 0 0 !important; color: var(--cp-muted); font-size: 12px; font-weight: 700; }
.cl-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; vertical-align: -1px; }
.cl-legend i.is-sales { background: var(--cp-pink); }
.cl-legend i.is-ltv { background: #c9a2ff; }
.cl-ltv-line { fill: none; stroke: #c9a2ff; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; pointer-events: none; }
.cl-axis-ltv { fill: #c9a2ff; }
.cl-models-table { display: grid; gap: 2px; margin-top: 12px; }
.cl .cl-model-row { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(70px, 1.6fr) 92px 80px; align-items: center; gap: 12px; padding: 9px 6px; color: inherit; border-top: 1px solid var(--cp-line); text-decoration: none; }
.cl .cl-model-row.is-head { padding-top: 4px; color: var(--cp-muted); border-top: 0; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.cl a.cl-model-row:hover { background: var(--cp-paper); border-radius: 10px; }
.cl-model-row .cl-num { display: grid; }
.cl-model-row .cl-num small { color: var(--cp-muted); font-size: 11px; }
.cl-stack-col { display: grid; gap: 18px; align-content: start; }
.cl-live { display: inline-flex; align-items: center; gap: 7px; color: var(--cp-green); font-size: 14px; font-weight: 800; }
.cl-live i { width: 8px; height: 8px; background: currentColor; border-radius: 99px; box-shadow: 0 0 0 4px rgb(63 215 150 / 18%); }
.cl-live.is-paused { color: var(--cp-red); }
.cl-live.is-paused i { box-shadow: 0 0 0 4px rgb(255 107 139 / 18%); }
.cl-live.is-preparing, .cl-live.is-starts { color: var(--cp-amber); }
.cl-live.is-preparing i, .cl-live.is-starts i { box-shadow: 0 0 0 4px rgb(255 196 77 / 18%); }
.cl-live.is-stopped { color: var(--cp-muted); }
.cl-status.is-paused { color: #ff8fa6; background: var(--cp-red-soft); border-color: rgb(255 107 139 / 40%); }
.cl-status.is-paused i { background: var(--cp-red); box-shadow: 0 0 0 4px rgb(255 107 139 / 18%); }
.cl-status.is-starts i { background: var(--cp-amber); box-shadow: 0 0 0 4px rgb(255 196 77 / 18%); }
.cl-paused { margin: 0 0 12px !important; padding: 12px 14px; color: #ffd6df; background: var(--cp-red-soft); border: 1px solid rgb(255 107 139 / 40%); border-radius: 12px; font-size: 13px; line-height: 1.5; }
.cl-paused strong { color: #fff; }
.cl-status-rows { display: grid; gap: 8px; }
.cl-status-rows div { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; padding: 10px 12px; background: var(--cp-paper); border-radius: 12px; font-size: 13.5px; }
.cl-status-rows span { color: var(--cp-muted); }
.cl-report { display: grid; gap: 10px; }
.cl-report section { padding: 12px 14px; background: var(--cp-paper); border-radius: 12px; }
.cl-report h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; color: var(--cp-muted) !important; font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase; }
.cl-report h3 .ap-icon { width: 15px; height: 15px; color: var(--cp-pink); }
.cl-report ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.6; }
.cl .cl-report-more { margin-top: 12px; }
.cl-report-list { display: grid; gap: 10px; }
.cl-report-list details { padding: 4px 12px; background: var(--cp-paper); border: 1px solid var(--cp-line); border-radius: 14px; }
.cl-report-list details[open] { padding-bottom: 12px; }
.cl-report-list summary { display: flex; align-items: center; gap: 12px; padding: 8px 0; cursor: pointer; list-style: none; }
.cl-report-list summary::-webkit-details-marker { display: none; }
.cl-report-list details[open] .cl-list-go { transform: rotate(180deg); }
.cl-report-list .cl-report section { background: var(--cl-card); }
.cl-numbers-note { display: flex; gap: 10px; align-items: flex-start; margin: 0 !important; padding: 12px 14px; color: #e7dbe2; background: rgb(255 196 77 / 9%); border: 1px solid rgb(255 196 77 / 30%); border-radius: 12px; font-size: 12.5px; line-height: 1.5; }
.cl-numbers-note .ap-icon { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--cp-amber); }
.cl-numbers-note strong { color: #fff; }

/* Invoices */
.cl-action.is-danger { background: linear-gradient(120deg, rgb(255 107 139 / 20%), rgb(255 107 139 / 6%)); border-color: rgb(255 107 139 / 45%); }
.cl-action.is-calm { background: var(--cl-card); border-color: rgb(255 255 255 / 10%); }
.cl-action.is-calm .cl-action-icon { color: var(--cp-green); }
.cl-pay { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.cl-pay article { display: grid; gap: 6px; align-content: start; padding: 14px 16px; background: var(--cp-paper); border: 1px solid var(--cp-line); border-radius: 14px; font-size: 13.5px; }
.cl-pay article strong { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.cl-pay article strong .ap-icon { width: 17px; height: 17px; color: var(--cp-pink); }
.cl-pay small { color: var(--cp-muted); font-size: 12px; line-height: 1.45; }
.cl-pay code, .cl-pay-card code { padding: 1px 6px; color: #fff; background: var(--cl-field); border: 1px solid var(--cl-field-line); border-radius: 6px; font-size: 12.5px; }
.cl-pay form { margin: 2px 0; }
.cl-invoice-lines { min-width: 0 !important; }
.cl-invoice-lines .is-sub td { color: var(--cp-muted); }
.cl-invoice-lines .is-total td { font-size: 17px; font-weight: 800; border-top: 2px solid var(--cp-ink) !important; }
.cl-invoice-note { margin: 0 !important; padding: 12px 14px; background: var(--cp-paper); border-radius: 12px; }

/* Dialogs + forms */
.cl-dialog .mp-dialog-head { display: flex; align-items: flex-start; gap: 12px; }
.cl-dialog .mp-dialog-head > div { flex: 1; }
.cl-dialog form { display: grid; gap: 12px; }
.cl-dialog-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--cp-line); }
.cl-dialog-foot small { display: inline-flex; align-items: center; gap: 6px; }
.cl-dialog-foot .ap-icon, .cl-compose-note .ap-icon, .cl-lock .ap-icon { width: 15px; height: 15px; flex: none; }
.cl-form-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.cl-chips, .cl-choice { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.cl-chips legend, .cl-choice legend { width: 100%; margin-bottom: 8px; font-size: 13.5px; font-weight: 700; }
.cl-chips legend small { display: block; color: var(--cp-muted); font-weight: 500; }
.cl-chips label { position: relative; cursor: pointer; }
.cl-chips input, .cl-choice input { position: absolute; opacity: 0; pointer-events: none; }
.cl-chips span { display: inline-block; padding: 7px 13px; color: #d9ccd4; background: rgb(255 255 255 / 6%); border: 1.5px solid var(--cl-field-line); border-radius: 99px; font-size: 13px; font-weight: 700; }
.cl-chips input:checked + span { color: #fff; background: rgb(244 3 122 / 22%); border-color: var(--cp-pink); }
.cl-chips input:focus-visible + span, .cl-choice input:focus-visible + span { outline: 2px solid var(--cp-pink-dark); outline-offset: 2px; }
.cl-choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.cl-choice.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cl-choice label { position: relative; cursor: pointer; }
.cl-choice span { display: grid; gap: 3px; height: 100%; padding: 12px 14px; background: var(--cl-field); border: 1.5px solid var(--cl-field-line); border-radius: 14px; }
.cl-choice span strong { font-size: 14px; }
.cl-choice span small { color: var(--cp-muted); font-size: 12px; }
.cl-choice input:checked + span { background: rgb(244 3 122 / 16%); border-color: var(--cp-pink); }
.cl-section-label { margin: 4px 0 0 !important; color: var(--cp-pink-dark); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.cl-optional { display: grid; gap: 0 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px 14px 2px; background: var(--cp-paper); border-radius: 14px; }
.cl-optional label:last-child { grid-column: 1 / -1; }
.cl-lock { display: flex; gap: 8px; align-items: flex-start; margin: 0 !important; padding: 10px 12px; color: #bcd7ff; background: rgb(124 182 255 / 10%); border-radius: 12px; font-size: 12.5px; line-height: 1.45; }
.cl-form-two .cl-lock { grid-column: 1 / -1; }

/* Requests chat */
.cl-thread-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.cl-chat-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.cl-chat { display: grid; gap: 12px; padding: 4px 0 14px; }
.cl-msg { max-width: 78%; padding: 11px 14px; background: var(--cp-paper); border-radius: 16px 16px 16px 4px; font-size: 14px; line-height: 1.5; }
.cl-msg.is-me { justify-self: end; color: #fff; background: var(--cp-pink); border-radius: 16px 16px 4px 16px; box-shadow: 0 10px 22px rgb(244 3 122 / 25%); }
.cl-msg small { display: block; margin-bottom: 3px; font-size: 11.5px; font-weight: 700; opacity: .78; }
.cl-msg p { margin: 0 !important; white-space: normal; }
.cl-msg .tm-files, .cl-msg [class*="attach"] { margin-top: 8px; }
.cl-compose { display: flex; align-items: flex-end; gap: 10px; padding: 10px; background: var(--cl-field); border: 1px solid var(--cl-field-line); border-radius: 16px; }
.cl-compose-text { flex: 1; }
.cl .cl-compose textarea:not(#dp-x) { width: 100%; min-height: 44px; padding: 10px 6px; background: transparent !important; border: 0 !important; resize: vertical; }
.cl-compose-file { position: relative; display: grid; width: 44px; height: 44px; flex: none; place-items: center; color: var(--cp-muted); background: var(--cp-paper); border-radius: 12px; cursor: pointer; }
.cl-compose-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cl-compose-note { display: flex; align-items: center; gap: 6px; margin: 8px 0 0 !important; font-size: 12px; }
.cl-thread-side dl { display: grid; gap: 10px; margin: 0 0 14px; }
.cl-thread-side dt { color: var(--cp-muted) !important; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.cl-thread-side dd { margin: 2px 0 0; font-weight: 700; }

/* Setup: agreement terms, model cards + Infloww access */
.cl-terms { display: grid; gap: 8px; margin: 0 0 16px; padding: 14px 16px; list-style: none; background: linear-gradient(160deg, #3a1d2d, var(--cl-card)); border: 1px solid rgb(244 3 122 / 45%); border-radius: 14px; }
.cl-terms li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.cl-terms b { display: grid; width: 22px; height: 22px; flex: none; place-items: center; color: #fff; background: var(--cp-pink); border-radius: 99px; font-size: 12px; }
.cl-model-card { display: grid; gap: 12px; margin-bottom: 12px; padding: 14px 16px; background: var(--cp-paper); border: 1px solid var(--cp-line); border-radius: 16px; }
.cl-model-card header { display: flex; align-items: center; gap: 12px; }
.cl-model-card header > span:not(.at-mavatar) { display: grid; min-width: 0; }
.cl-model-card header small { color: var(--cp-muted); font-size: 12.5px; }
.cl-req-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cl-req-chips span { padding: 4px 10px; color: var(--cp-muted); background: rgb(255 255 255 / 5%); border: 1px solid var(--cp-line); border-radius: 99px; font-size: 12px; font-weight: 700; }
.cl-req-chips span.is-ok { color: var(--cp-green); background: var(--cp-green-soft); border-color: transparent; }
.cl-access-form { display: grid; }
.cl-next-note { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0 !important; padding: 12px 14px; background: var(--cp-paper); border-radius: 12px; font-size: 13.5px; line-height: 1.5; }
.cl-next-note .ap-icon { flex: none; width: 17px; height: 17px; margin-top: 1px; color: var(--cp-pink); }

/* Night look for pieces with their own colours above. */
body.cl .cl-tip { color: #231d22; background: #fff; }
body.cl .cl-grid-line { stroke: #342c31; }
body.cl .cl-baseline { stroke: #4a4046; }
body.cl .cl-col path { fill: #f4037a; }
body.cl .cl-col.is-today path { fill: #ff8cc2; }
body.cl .cl-col.is-hover path, body.cl .cl-col:focus path { fill: #ff5aa8; }
body.cl .cl-type.is-custom { color: #d9b8ff; background: rgb(201 162 255 / 16%); }
body.cl .cl-list-go { color: #6f6269; }
body.cl .cl-seg { background: var(--cl-field); border-color: var(--cp-line); }
body.cl .cl-seg a { color: #cdbfc8; }
body.cl .cl-seg a.is-on { color: #fff; background: var(--cp-pink); box-shadow: none; }
body.cl .cl-tabs a { color: #d9ccd4; background: rgb(255 255 255 / 6%); border-color: rgb(255 255 255 / 12%); }
body.cl .cl-tabs a b { background: rgb(255 255 255 / 10%); }
body.cl .cl-tabs a.is-on { color: #fff; background: var(--cp-pink); border-color: var(--cp-pink); }
body.cl .cl-status { color: #e7dbe2; background: rgb(255 255 255 / 6%); border-color: rgb(255 255 255 / 14%); }
body.cl .cl-chip { color: #e7dbe2; background: rgb(255 255 255 / 6%); border-color: rgb(255 255 255 / 14%); }
body.cl .cl-action { color: #fff; background: linear-gradient(120deg, rgb(244 3 122 / 22%), rgb(244 3 122 / 8%)); border-color: rgb(244 3 122 / 40%); }
body.cl .cl-action-text small { color: #e7dbe2; }
body.cl .cl-setup-banner { background: var(--cl-card); border-color: rgb(255 255 255 / 10%); }
body.cl .cs-brand .cp-side-logo { background: #fff; border-color: #fff; }
body.cl .cs-brand small { color: #ff9cc9; background: rgb(255 120 180 / 14%); border-color: transparent; }
body.cl .cs-steps a:hover { background: rgb(255 255 255 / 6%); }
body.cl .cs-plan li b { border-color: var(--cl-field-line); }
body.cl .cs-plan li.is-now b { box-shadow: inset 0 0 0 4px var(--cl-card), inset 0 0 0 10px var(--cp-pink); }
body.cl .cs-agreement { background: var(--cp-paper); }
body.cl .cp-pill.cp-tone-warning, body.cl .cp-pill.cp-tone-danger, body.cl .cp-pill.cp-tone-success, body.cl .cp-pill.cp-tone-info, body.cl .cp-pill.cp-tone-muted { border: 0; }

@media (max-width: 1080px) {
    .cl-kpis-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cl-thread-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
    body.cl .cp-side-inner { background: rgb(255 255 255 / 5%); }
    body.cl .cp-bottom:not(#dp-x) { background: rgb(29 24 28 / 94%); border-top: 1px solid rgb(255 255 255 / 12%); box-shadow: 0 -6px 20px rgb(0 0 0 / 30%); backdrop-filter: blur(14px); }
    body.cl .cp-bottom a { color: #b9aab3; }
    body.cl .cp-bottom a.is-active { color: #fff; background: var(--cp-pink); }
    .cl-kpis-4 .cl-kpi { padding: 14px; }
    .cl-kpis-4 .cl-kpi strong { font-size: 22px; }
    .cl-kpi .cl-kpi-quiet { font-size: 17px; }
    .cl .cl-model-row { grid-template-columns: minmax(0, 1fr) auto auto; }
    .cl .cl-model-row .cl-bar { grid-column: 1 / -1; grid-row: 2; }
    .cl .cl-model-row.is-head span:nth-child(2) { display: none; }
    .cl-form-two, .cl-optional, .cl-choice.is-two { grid-template-columns: minmax(0, 1fr); }
    .cl-msg { max-width: 90%; }
    .cl-status-rows div { font-size: 13px; }
}

/* Paper again for printing (invoices, the signed agreement). */
@media print {
    body.cl { --cp-ink: #231d22; --cp-muted: #776c73; --cp-paper: #f6f1ec; --cp-line: #e3d9d2; --cl-card: #fff; color: #231d22; background: #fff !important; }
    body.cl :is(.cp-card, .cp-empty):not(#dp-x) { color: #231d22; background: #fff !important; }
    body.cl .cp-pill { border: 1px solid #ccc; }
}

/* Night fields: beat dp-controls.css (its selector has one id-level :not plus many attribute :nots) incl. :focus. */
body.cl :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]), textarea, select):not(#dp-x):not(#dp-y),
body.cl :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]), textarea, select):not(#dp-x):not(#dp-y):focus {
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    background-color: var(--cl-field) !important;
    border-color: var(--cl-field-line) !important;
    box-shadow: none !important;
    color-scheme: dark;
}
body.cl :is(input, textarea, select):not(#dp-x):not(#dp-y):focus { border-color: var(--cp-pink) !important; box-shadow: 0 0 0 3px rgb(244 3 122 / 22%) !important; }
body.cl :is(input, textarea):not(#dp-x)::placeholder { color: #8f8189; -webkit-text-fill-color: #8f8189; }
body.cl input[type="file"]:not(#dp-x):not(#dp-y) { width: 100%; padding: 8px; color: var(--cp-muted) !important; background: var(--cl-field) !important; border: 1.5px dashed var(--cl-field-line) !important; border-radius: 12px; }
body.cl input[type="file"]::file-selector-button { margin-right: 10px; padding: 6px 12px; color: #fff; background: rgb(255 255 255 / 10%); border: 1px solid rgb(255 255 255 / 16%); border-radius: 99px; font: inherit; font-weight: 700; cursor: pointer; }
.cl-compose-file input[type="file"]:not(#dp-x):not(#dp-y) { position: absolute; inset: 0; opacity: 0; }
.cl-model-card header > .at-mavatar { flex: none; }
.cl-model-card header > span:not(.at-mavatar) { flex: 1; }

/* Night look for the model pages: persona form + view (dp-controls.css), photo gallery and its pop-up (captain.css),
   and the styled dropdown list (appearance: base-select) — its options must not inherit the white text fill. */
body.cl :is(.mp-sec legend, .mp-dialog-head h2, .mg-hero h2) { color: #fff; }
body.cl .mp-field > span { color: #e7dbe2; }
body.cl .mp-field.is-warning > span { color: #ff8fa6; }
body.cl .mp-dialog-head { border-color: var(--cp-line); }
body.cl .mp-dialog-foot { background: var(--cp-paper); border-color: var(--cp-line); }
body.cl .mp-dialog-foot small { color: var(--cp-muted); }
body.cl .mp-photo { color: var(--cp-pink-dark); background: var(--cl-field); border-color: #6b3a52; }
body.cl .mp-photo-empty strong { color: #fff; }
body.cl .mp-photo-empty small { color: var(--cp-muted); }
body.cl .mp-view-sec h3 { color: var(--cp-pink-dark); }
body.cl .mp-view .cp-model-field { background: var(--cp-paper); border-color: var(--cp-line); }
body.cl .mp-view .cp-model-field.is-warning { background: var(--cp-red-soft); border-color: rgb(255 107 139 / 40%); }
body.cl .mp-view .cp-model-field dt { color: var(--cp-muted); }
body.cl .mp-view .cp-model-field.is-warning dt { color: #ff8fa6; }
body.cl .mp-view .cp-model-field dd { color: #fff; }
body.cl .mg-tile { color: #fff; background: var(--cl-card); border-color: rgb(255 255 255 / 10%); }
body.cl .mg-tile.mg-add { color: var(--cp-pink-dark); background: rgb(255 255 255 / 4%); border-color: rgb(255 255 255 / 22%); }
body.cl .mg-tile.mg-add:hover, body.cl .mg-tile.mg-add:focus-visible { background: rgb(255 255 255 / 8%); }
body.cl .mg-tile:focus-visible { box-shadow: 0 0 0 4px var(--cl-card), 0 0 0 7px var(--cp-pink); }
body.cl .mg-dialog { color: #fff; background: var(--cl-card); border: 1px solid rgb(255 255 255 / 10%); box-shadow: 0 30px 70px rgb(0 0 0 / 55%); }
body.cl .mg-dialog::backdrop, body.cl .sl-dialog::backdrop { background: rgb(10 6 9 / 70%); }
body.cl .mg-hero .at-mavatar { border-color: var(--cl-card); }
body.cl .mg-close, body.cl .sl-dialog-close { color: #cdbfc8; background: rgb(255 255 255 / 8%); }
body.cl .mg-close:hover, body.cl .sl-dialog-close:hover { color: #fff; background: var(--cp-pink); }
body.cl .cl-pending { background: rgb(255 196 77 / 10%); border: 1px solid rgb(255 196 77 / 30%); }
body.cl .sl-help { color: var(--cp-muted); }
body.cl select:not(#dp-x):not(#dp-y) option { color: #e7dbe2; -webkit-text-fill-color: #e7dbe2; background: var(--cl-card); }
body.cl select:not(#dp-x) optgroup { color: var(--cp-muted); background: var(--cl-card); }
@supports (appearance: base-select) {
    body.cl select:not(#dp-x)::picker(select) { color: #fff; background: var(--cl-card); border-color: var(--cl-field-line); box-shadow: 0 18px 40px rgb(0 0 0 / 50%); scrollbar-color: #4a4046 transparent; }
    body.cl select:not(#dp-x):not(#dp-y) option { background: transparent; }
    body.cl select:not(#dp-x):not(#dp-y) option:hover, body.cl select:not(#dp-x):not(#dp-y) option:focus-visible { color: #fff; -webkit-text-fill-color: #fff; background: rgb(255 255 255 / 8%); }
    body.cl select:not(#dp-x):not(#dp-y) option:checked { color: #ff8cc2; -webkit-text-fill-color: #ff8cc2; background: rgb(244 3 122 / 18%); }
    body.cl select:not(#dp-x) option:disabled { color: #6f6269; -webkit-text-fill-color: #6f6269; }
}

/* Sign in + invite pages (views/client/login.php, invite.php): the same night look, no bunny. */
body.cl .cp-login-wrap::before, body.cl .cp-login-wrap::after { display: none; }
body.cl.cp-login { display: grid; min-height: 100vh; place-items: center; }
body.cl :is(.cp-login-card):not(#dp-x) { color: var(--cp-ink); background: var(--cl-card) !important; background-image: none !important; border: 1px solid rgb(255 255 255 / 10%) !important; box-shadow: 0 30px 60px rgb(0 0 0 / 40%) !important; }
body.cl .cp-login-card h1 { color: #fff; }
body.cl .cp-login-brand .cp-bunny { filter: none; }
body.cl .cp-brand-tag { color: #ff9cc9; background: rgb(255 120 180 / 14%); }
body.cl .cp-or { color: var(--cp-muted); }
body.cl .cp-or::before, body.cl .cp-or::after { background: var(--cp-line); }
body.cl :is(.cp-form-note, .cp-google-note, .cp-invite-copy, .cp-invite-eyebrow, .cp-invite-note) { color: var(--cp-muted); }
body.cl .cp-invite-email { background: var(--cp-paper); }
body.cl .cp-invite-email small { color: var(--cp-muted); }
body.cl .g-btn:not(#dp-x) { color: #fff !important; background: rgb(255 255 255 / 8%) !important; border: 1px solid rgb(255 255 255 / 16%) !important; box-shadow: none !important; }
body.cl .g-btn:not(#dp-x):hover { background: rgb(255 255 255 / 13%) !important; border-color: var(--cp-pink) !important; }
body.cl .g-btn-logo { padding: 2px; background: #fff; border-radius: 99px; }
