/* MarketMind — the marketing console's own components.
   Loaded after base.css and app.css; everything here is new to this product
   (calendar, composer previews, creatives, segments, insights, briefs). */

/* ============================================================ layout */
.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.split-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .split { grid-template-columns: minmax(0, 1fr); } }
.content-wide { max-width: none; }

/* ============================================================ notices */
.notice { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--sh-1); color: var(--text-2); }
a.notice { text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
a.notice:hover { border-color: var(--brand-line); box-shadow: var(--sh-2); transform: translateY(-1px); }
.notice > .icon { flex: none; margin-top: 1px; color: var(--brand); }
.notice p { line-height: 1.5; }
.notice-brand { background: var(--brand-soft); border-color: var(--brand-line); }
.notice-amber { background: var(--amber-bg); border-color: var(--amber-line); }
.notice-amber > .icon { color: var(--amber); }
.notice-blue { background: var(--blue-bg); border-color: var(--blue-line); }
.notice-blue > .icon { color: var(--blue); }
.notice-red { background: var(--red-bg); border-color: var(--red-line); }
.notice-red > .icon { color: var(--red); }

/* ============================================================ small pieces */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { --chip: var(--brand); }
.chip-soft { background: color-mix(in srgb, var(--chip) 10%, var(--surface)); border-color: color-mix(in srgb, var(--chip) 22%, transparent); color: color-mix(in srgb, var(--chip) 72%, var(--text)); }
.chip-ghost { background: transparent; border-style: dashed; color: var(--muted); }
.chip-action { cursor: pointer; height: auto; min-height: 30px; padding: 7px 11px; text-align: left; white-space: normal; line-height: 1.35; transition: border-color .15s, background .15s, transform .15s; }
.chip-action:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); transform: translateY(-1px); }

.chan-dot { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 7px; color: #fff; flex: none; }
.chan-dot-lg { width: 40px; height: 40px; border-radius: 12px; }
.chan-dot .icon { width: 13px; height: 13px; }
.chan-dot-lg .icon { width: 20px; height: 20px; }

.mini-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r); color: var(--text-2); transition: background .12s; }
a.mini-row:hover { background: var(--surface-2); color: var(--text); }
.mini-row.is-active { background: var(--brand-soft); }

.mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mini-stats > div { display: flex; flex-direction: column; gap: 2px; }
.mini-stats strong { font-size: 17px; }
@media (max-width: 720px) { .mini-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.kv { display: flex; flex-direction: column; }
.kv-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.kv-row:last-child { border-bottom: 0; }
.kv-key { font-size: 12.5px; color: var(--muted); flex: none; }
.kv-val { font-size: 13.5px; font-weight: 600; color: var(--text); text-align: right; min-width: 0; }

.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--surface-3); border: 1px solid var(--border); flex-wrap: wrap; }
.seg-item { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.seg-item:hover { color: var(--text); }
.seg-item.is-active { background: var(--surface); color: var(--text); box-shadow: var(--sh-1); }

.legend { display: flex; flex-wrap: wrap; gap: 14px; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.legend-item .legend-dot { width: 8px; height: 8px; border-radius: 50%; }

.tick-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tick-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: var(--text-2); line-height: 1.5; }
.tick-list .icon { flex: none; margin-top: 3px; color: var(--green); }
.plain-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; color: var(--text-2); }

.step-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; counter-reset: step; }
.step-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--text-2); line-height: 1.55; }
.step-num { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

.feature-mini { display: flex; gap: 10px; align-items: flex-start; }
.feature-mini p { line-height: 1.45; margin-top: 2px; }

.swatch { height: 74px; border-radius: var(--r-lg); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; letter-spacing: .01em; box-shadow: var(--sh-1); }

/* ============================================================ dashboard */
.tline { display: flex; flex-direction: column; }
.tline-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 18px; border-bottom: 1px solid var(--border); color: var(--text-2); transition: background .12s; }
.tline-row:last-child { border-bottom: 0; }
.tline-row:hover { background: var(--surface-2); color: var(--text); }
.tline-when { flex: none; width: 42px; text-align: center; padding-top: 2px; }
.tline-day { display: block; font-size: 18px; font-weight: 700; color: var(--text); line-height: 1; }
.tline-month { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-2); margin-top: 2px; }
.tline-body { flex: 1; min-width: 0; }
.tline-thumb { flex: none; width: 52px; height: 52px; border-radius: 10px; object-fit: cover; border: 1px solid var(--border); }

.perf-row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--r); color: var(--text-2); transition: background .12s; }
.perf-row:hover { background: var(--surface-2); color: var(--text); }
.perf-thumb { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; border: 1px solid var(--border); flex: none; }
.perf-metrics { display: flex; gap: 18px; flex: none; }
.perf-metrics > div { display: flex; flex-direction: column; align-items: flex-end; }
@media (max-width: 720px) { .perf-metrics { gap: 12px; } }

.pipeline { display: flex; flex-direction: column; }
.pipeline-row { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-radius: var(--r); color: var(--text-2); transition: background .12s; }
a.pipeline-row:hover { background: var(--surface-2); color: var(--text); }
.pipeline-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }

.insight-mini { display: flex; gap: 10px; align-items: flex-start; }
.insight-icon { flex: none; width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-3); color: var(--muted); }
.insight-icon.green { background: var(--green-bg); color: var(--green); }
.insight-icon.red { background: var(--red-bg); color: var(--red); }
.insight-icon.amber { background: var(--amber-bg); color: var(--amber); }
.insight-icon.blue { background: var(--blue-bg); color: var(--blue); }
.insight-icon.violet { background: var(--violet-bg); color: var(--violet); }

/* ============================================================ ask your marketer */
.ask-card { padding: 20px; background: linear-gradient(180deg, var(--brand-soft), var(--surface) 55%); }
.ask-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ask-input { font-size: 15px; line-height: 1.55; border-radius: var(--r-lg); }
.ask-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.avatar-agent { background: var(--grad); color: #fff; }
.avatar-lg { width: 44px; height: 44px; font-size: 15px; }

.task-row { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--r); color: var(--text-2); transition: background .12s; }
.task-row:hover { background: var(--surface-2); color: var(--text); }

.chat-turn { display: flex; gap: 12px; align-items: flex-start; }
.chat-bubble { flex: 1; padding: 14px 16px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--border); line-height: 1.6; color: var(--text-2); }
.chat-agent .chat-bubble { background: var(--brand-soft); border-color: var(--brand-line); color: var(--text); }

/* ============================================================ calendar */
.cal-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.cal-title { font-size: 17px; font-weight: 700; margin: 0 6px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-dow { padding: 10px 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--border); text-align: center; }
.cal-day { min-height: 118px; padding: 8px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; }
.cal-day:nth-child(7n + 7) { border-right: 0; }
.cal-day.is-outside { background: var(--surface-2); opacity: .55; }
.cal-day.is-today { background: var(--brand-soft); }
.cal-day-head { display: flex; align-items: center; justify-content: space-between; }
.cal-date { font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.cal-day.is-today .cal-date { color: var(--brand); }
.cal-count { font-size: 10.5px; font-weight: 700; color: var(--muted-2); }
.cal-items { display: flex; flex-direction: column; gap: 4px; overflow: hidden; }
.cal-item { display: flex; align-items: center; gap: 5px; padding: 4px 6px; border-radius: 7px; background: var(--surface); border: 1px solid var(--border); font-size: 11.5px; color: var(--text-2); transition: border-color .12s, transform .12s; }
.cal-item:hover { border-color: var(--brand); transform: translateX(1px); color: var(--text); }
.cal-item-dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.cal-item-time { font-variant-numeric: tabular-nums; color: var(--muted-2); flex: none; font-size: 10.5px; }
.cal-item-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-item.is-amber { border-left: 3px solid var(--amber); }
.cal-item.is-green { border-left: 3px solid var(--green); }
.cal-item.is-violet { border-left: 3px solid var(--violet); }
.cal-item.is-blue { border-left: 3px solid var(--blue); }
.cal-item.is-red { border-left: 3px solid var(--red); }
.cal-week .cal-day { min-height: 320px; }
@media (max-width: 900px) {
  .cal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cal-dow { display: none; }
  .cal-day { min-height: 90px; }
  .cal-day.is-outside { display: none; }
}

/* ============================================================ content grid */
.content-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.content-card { display: flex; flex-direction: column; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); overflow: hidden; box-shadow: var(--sh-1); transition: transform .15s, box-shadow .15s, border-color .15s; }
.content-card:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--brand-line); }
.content-card-media { position: relative; aspect-ratio: 1 / 1; background: var(--surface-3); }
.content-card-media img { width: 100%; height: 100%; object-fit: cover; }
.content-card-blank { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted-2); }
.content-card-status { position: absolute; top: 10px; left: 10px; }
.content-card-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.content-card-text { font-size: 13px; color: var(--text-2); line-height: 1.5; flex: 1; }
.content-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; border-top: 1px solid var(--border); }

/* ============================================================ approvals */
.approval-list { display: flex; flex-direction: column; gap: 18px; }
.approval { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0; overflow: hidden; }
.approval-preview { padding: 20px; background: var(--surface-2); border-right: 1px solid var(--border); }
.approval-side { display: flex; flex-direction: column; }
.approval-meta { padding: 20px; flex: 1; }
.approval-actions { padding: 16px 20px; border-top: 1px solid var(--border); background: var(--surface-2); }
@media (max-width: 900px) { .approval { grid-template-columns: minmax(0, 1fr); } .approval-preview { border-right: 0; border-bottom: 1px solid var(--border); } }

/* ============================================================ post preview */
.post { border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); overflow: hidden; box-shadow: var(--sh-1); max-width: 460px; margin: 0 auto; }
.post-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.post-name { font-size: 13.5px; font-weight: 700; color: var(--text); display: block; }
.post-meta { font-size: 11.5px; color: var(--muted-2); }
.post-body { padding: 0 14px 10px; font-size: 13.5px; line-height: 1.6; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.post-tail { padding: 0 14px 12px; }
.post-cta { font-size: 13.5px; font-weight: 600; color: var(--text); }
.post-tags { font-size: 13px; color: var(--brand); margin-top: 4px; word-break: break-word; }
.post-media { background: var(--surface-3); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.post-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-media-missing { aspect-ratio: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted-2); font-size: 12.5px; text-align: center; padding: 20px; }
.post-foot { display: flex; align-items: center; justify-content: space-around; padding: 9px 14px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12.5px; font-weight: 600; }
.post-foot span { display: inline-flex; align-items: center; gap: 5px; }
.post-instagram .post-body { order: 2; }
.post-x .post-body { font-size: 15px; }
.post-linkedin { border-radius: var(--r); }

/* ============================================================ campaigns */
.campaign-card { padding: 18px; display: flex; flex-direction: column; gap: 10px; transition: transform .15s, box-shadow .15s, border-color .15s; }
.campaign-card:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--brand-line); }
.campaign-head { display: flex; align-items: center; gap: 12px; }
.campaign-promise { font-size: 13.5px; color: var(--text-2); line-height: 1.5; }
.campaign-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--muted); }
.campaign-meta span { display: inline-flex; align-items: center; gap: 5px; }

.plan-block { padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--border); }
.plan-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.angle-list { display: flex; flex-direction: column; gap: 10px; }
.angle { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--border); background: var(--surface); }
.angle-stage { flex: none; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--brand); background: var(--brand-soft); padding: 4px 8px; border-radius: 6px; }

/* ============================================================ choices */
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.choice-grid-3 { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-body { display: flex; flex-direction: column; gap: 5px; height: 100%; padding: 14px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); transition: border-color .15s, box-shadow .15s, background .15s; }
.choice:hover .choice-body { border-color: var(--border-strong); }
.choice input:checked + .choice-body { border-color: var(--brand); background: var(--brand-soft); box-shadow: var(--ring); }
.choice input:focus-visible + .choice-body { box-shadow: var(--ring); }
.choice-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 10px; background: var(--surface-3); color: var(--brand); margin-bottom: 2px; }
.choice input:checked + .choice-body .choice-icon { background: var(--brand); color: #fff; }
.choice-title { font-size: 13.5px; font-weight: 700; color: var(--text); }
.choice-text { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.choice-meta { font-size: 11.5px; color: var(--muted-2); margin-top: auto; padding-top: 6px; }
.choice-sm .choice-body { padding: 11px 13px; }
.choice-row .choice-body { flex-direction: row; align-items: flex-start; gap: 10px; }
.choice-row .choice-body > * { flex: 1; }
.choice.is-disabled { opacity: .5; pointer-events: none; }

.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.check-card { position: relative; display: block; cursor: pointer; }
.check-card input { position: absolute; opacity: 0; pointer-events: none; }
.check-body { display: flex; align-items: center; gap: 10px; padding: 12px 13px; border-radius: var(--r); border: 1px solid var(--border); background: var(--surface); transition: border-color .15s, background .15s; }
.check-card input:checked + .check-body { border-color: var(--brand); background: var(--brand-soft); }

.switch-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--border); background: var(--surface-2); cursor: pointer; }
.switch-row input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--brand); flex: none; }

/* ============================================================ segments */
.segment-card { padding: 18px; display: flex; flex-direction: column; gap: 10px; transition: transform .15s, box-shadow .15s, border-color .15s; }
.segment-card:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--brand-line); }
.segment-top { display: flex; align-items: center; justify-content: space-between; }
.segment-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 12px; }
.segment-name { font-size: 15px; color: var(--text); }
.segment-count { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--text); line-height: 1; }
.segment-count small { font-size: 12px; font-weight: 500; color: var(--muted-2); margin-left: 6px; }
.segment-rule { font-size: 12.5px; color: var(--muted); line-height: 1.5; min-height: 38px; }
.segment-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--border); }

.rules { display: flex; flex-direction: column; gap: 10px; }
.rule-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; }
@media (max-width: 720px) { .rule-row { grid-template-columns: minmax(0, 1fr) auto; } }

/* ============================================================ creatives */
.creative-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.creative-card { margin: 0; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); overflow: hidden; box-shadow: var(--sh-1); }
.creative-canvas { background: var(--surface-3); }
.creative-canvas img { width: 100%; height: 100%; object-fit: cover; display: block; }
.creative-card figcaption { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.creative-actions { display: flex; gap: 6px; align-items: center; }
.creative-actions .select { font-size: 12px; }
.creative-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.creative-thumb { position: relative; flex: none; width: 104px; border-radius: var(--r); overflow: hidden; border: 2px solid transparent; }
.creative-thumb.is-selected { border-color: var(--brand); }
.creative-thumb img { width: 100%; display: block; }
.creative-thumb form { position: absolute; inset: auto 0 0 0; padding: 6px; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); }
.creative-thumb .btn { width: 100%; }

/* ============================================================ connections */
.channel-card { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.channel-head { display: flex; align-items: center; gap: 12px; }
.channel-accounts { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 6px 0; }
.channel-connect summary { list-style: none; display: inline-flex; }
.channel-connect summary::-webkit-details-marker { display: none; }
.channel-foot { display: flex; flex-wrap: wrap; gap: 14px; font-size: 11.5px; color: var(--muted-2); padding-top: 12px; border-top: 1px solid var(--border); }
.channel-foot span { display: inline-flex; align-items: center; gap: 5px; }

/* ============================================================ insights */
.insight { padding: 18px; }
.insight-head { display: flex; gap: 14px; align-items: flex-start; }
.insight-head .insight-icon { width: 40px; height: 40px; border-radius: 12px; }
.insight-title { font-size: 15.5px; margin-bottom: 4px; }
.insight-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }

/* ============================================================ reports */
.report-row { display: flex; align-items: center; gap: 16px; padding: 16px 18px; color: var(--text-2); transition: border-color .15s, transform .15s; }
.report-row:hover { border-color: var(--brand-line); transform: translateY(-1px); color: var(--text); }
.report-date { flex: none; width: 54px; text-align: center; }
.report-day { display: block; font-size: 22px; font-weight: 800; color: var(--text); line-height: 1; }
.report-month { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-2); margin-top: 3px; }
.report-narrative { font-size: 13.5px; line-height: 1.55; }
.report-metrics { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; font-size: 12px; color: var(--muted); }

.brief { padding: 22px; background: linear-gradient(135deg, var(--brand-soft), var(--surface) 60%); }
.brief-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.brief-narrative { font-size: 16px; line-height: 1.65; color: var(--text); }
.brief-dump { font-family: var(--mono); font-size: 11.5px; line-height: 1.6; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r); padding: 14px; max-height: 420px; overflow: auto; white-space: pre-wrap; word-break: break-word; margin: 0; }

/* ============================================================ analytics */
.fnl { display: flex; flex-direction: column; gap: 14px; }
.fnl-bar { height: 10px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.fnl-bar > span { display: block; height: 100%; border-radius: 999px; background: var(--grad); }
.meter-sm { height: 6px; }

.heat { display: flex; flex-direction: column; gap: 4px; }
.heat-row { display: grid; grid-template-columns: 34px repeat(9, minmax(0, 1fr)); gap: 4px; align-items: center; }
.heat-day { font-size: 11px; color: var(--muted); }
.heat-hour { font-size: 10px; color: var(--muted-2); text-align: center; }
.heat-cell { height: 20px; border-radius: 5px; border: 1px solid var(--border); }

/* ============================================================ broadcasts */
.mail-preview { border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface-2); overflow: hidden; }
.mail-head { padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--surface); display: flex; flex-direction: column; gap: 2px; }
.mail-body { padding: 16px 14px; font-size: 13.5px; line-height: 1.65; color: var(--text-2); white-space: pre-wrap; }

/* ============================================================ public site hero console */
.console { width: min(430px, 100%); border-radius: 22px; background: rgba(12, 16, 36, .88); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8); overflow: hidden; backdrop-filter: blur(14px); }
.console-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.console-dots { display: inline-flex; gap: 5px; }
.console-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.console-title { font-size: 11.5px; color: rgba(255, 255, 255, .55); }
.console-head { display: flex; align-items: center; gap: 11px; padding: 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.console-head strong { display: block; font-size: 14px; color: #fff; }
.console-head span { font-size: 11.5px; color: rgba(255, 255, 255, .5); }
.console-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: #34D399; }
.console-live i { width: 7px; height: 7px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: pulse 2s infinite; }
.console-thread { min-height: 300px; max-height: 330px; overflow: hidden; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; }
.console-foot { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid rgba(255, 255, 255, .08); }
.console-input { flex: 1; font-size: 12.5px; color: rgba(255, 255, 255, .4); padding: 9px 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); }
.console-send { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }

/* ============================================================ card head (used everywhere here) */
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.card-head .card-title { font-size: 15px; font-weight: 700; }
.card-head .card-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.card-body { padding: 18px; }
.card-foot { padding: 14px 18px; border-top: 1px solid var(--border); background: var(--surface-2); }

/* ============================================================ hero console placement
   The floating cards belong beside the console, not on top of the conversation. */
.hero-visual .console { margin-left: auto; }
.hero-visual:has(.console) .float-card.c1 { top: 4%; left: -16%; }
.hero-visual:has(.console) .float-card.c2 { top: 46%; left: -20%; animation-delay: -2s; }
.hero-visual:has(.console) .float-card.c3 { bottom: 6%; left: -12%; animation-delay: -4s; }
@media (max-width: 1180px) {
  .hero-visual:has(.console) .float-card { display: none; }
  .hero-visual .console { margin: 0 auto; }
}

/* The site hero reuses the console turn styles from the old chat mock. */
.console-thread .turn { display: flex; }
.console-thread .turn-agent { justify-content: flex-start; }
.console-thread .turn-customer { justify-content: flex-end; }
.console-thread .bubble { max-width: 84%; padding: 10px 13px; border-radius: 14px; font-size: 12.5px; line-height: 1.5; background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .92); }
.console-thread .turn-customer .bubble { background: var(--brand); color: #fff; border-bottom-right-radius: 5px; }
.console-thread .turn-agent .bubble { border-bottom-left-radius: 5px; }
.console-thread .tool-call { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: rgba(52, 211, 153, .12); border: 1px solid rgba(52, 211, 153, .28); color: #6EE7B7; font-size: 11.5px; font-weight: 600; }
.console-thread .is-typing .bubble { display: inline-flex; gap: 4px; align-items: center; }
.console-thread .is-typing i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .6); animation: typing 1.2s infinite; }
.console-thread .is-typing i:nth-child(2) { animation-delay: .18s; }
.console-thread .is-typing i:nth-child(3) { animation-delay: .36s; }
.console-thread .turn-new { animation: rise .32s var(--ease) both; }
@keyframes typing { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
