/* Kindue · Overview, Invoices and Agent screens. Same canvas rules as kindue.css:
   desktop places cards on the 1440×1000 frame, html.fluid stacks them for phones and tablets. */

/* ───────────── shared ───────────── */
:is(.ov-cash, .ov-payers, .ov-agenda, .ag-tone, .ag-book) > .card-title { position: absolute; left: 25px; top: 22px; }
.av-more { display: grid; place-items: center; background: #EFEDEA; color: #77746F; font-size: 11.5px; font-weight: 500; }
.sw { position: relative; flex: none; width: 38px; height: 22px; border-radius: 999px; background: #D6D3CE; transition: background-color .25s ease; }
.sw i { position: absolute; left: 2px; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .32s var(--ease); }
.is-on > .sw { background: #19181B; }
.is-on > .sw i { transform: translateX(16px); }
.ev-ic { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #F2F0ED; color: #6B6966; }
.ev-ic svg { width: 13px; height: 13px; }

/* the dark-card numerals on these screens fade each dot in on its cue */
:is(#ovMatrix, #agMatrix) i { transition: background-color .08s ease-out; }

/* ───────────── Overview ───────────── */
.ov-cash { left: 36px; top: 121px; width: 947px; height: 391px; contain: layout style; }
.ov-read { position: absolute; left: 25px; top: 86px; display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.ov-big { font-size: 34px; font-weight: 500; letter-spacing: -.03em; line-height: 1; min-width: 3.3em; }
.ov-cap { font-size: 14px; color: var(--ink-2); }
.ov-plus {
  align-self: center; height: 24px; padding: 0 9px; border-radius: 999px; display: inline-flex; align-items: center;
  background: #EEEDFA; color: #5B57A8; font-size: 12.5px; opacity: 0; transform: translateY(3px);
  transition: opacity .2s ease, transform .3s var(--ease);
}
.ov-plus.is-on { opacity: 1; transform: none; }
.ov-plot { position: absolute; left: 69px; top: 160px; width: 845px; height: 180px; touch-action: pan-y; cursor: default; }
.ov-plot:focus-visible { outline-offset: 10px; border-radius: 8px; }
.ov-ticks, .ov-cols { position: absolute; inset: 0; }
.ov-col { position: absolute; top: 0; bottom: 0; width: calc(100% / var(--n)); margin-left: calc(-50% / var(--n)); transition: opacity .25s ease; }
.ov-clip { position: absolute; left: 50%; top: -6px; bottom: 0; width: 28px; margin-left: -14px; overflow: hidden; }
.ov-stk { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 3px; will-change: transform; }
.ov-stk i { display: block; flex: 1 1 0; min-height: 8px; border-radius: 999px; }
.ov-p { background: var(--black); }
.ov-q { background: var(--lav); }
.ov-col.is-next .ov-q { background: #CFCBF1; }
.ov-plot.is-scrub .ov-col:not(.is-sel) { opacity: .3; }
.ov-x { position: absolute; top: calc(100% + 11px); left: 50%; transform: translateX(-50%); font-size: 12px; color: var(--ink-3); white-space: nowrap; transition: color .2s ease; }
.ov-col.is-now .ov-x, .ov-col.is-sel .ov-x { color: var(--ink); }
.ov-today { position: absolute; top: -8px; bottom: 0; width: 1px; background: repeating-linear-gradient(to bottom, #CFCCC8 0 3px, transparent 3px 6px); pointer-events: none; }
.ov-today .guide-tag { top: -26px; left: 0; }

.ov-prom { background: #3A3566; }
.ov-plab { position: absolute; left: 24px; top: 244px; font-size: 13px; color: rgba(255, 255, 255, .74); }
.ov-pdots { position: absolute; left: 24px; right: 24px; top: 268px; height: 40px; display: flex; align-items: center; justify-content: space-between; touch-action: pan-y; }
.ov-pdots i { width: 16px; height: 16px; border-radius: 50%; background: rgba(255, 255, 255, .92); transition: transform .22s var(--ease); }
.ov-pdots i.is-missed { background: var(--accent); }
.ov-pdots i.is-hot { transform: scale(1.32); }
.ov-ptip {
  position: absolute; bottom: calc(100% + 2px); left: 0; z-index: 2; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .95);
  color: #1A1A1A; font-size: 12px; white-space: nowrap; pointer-events: none; opacity: 0; transform: translate(-50%, 4px);
  transition: opacity .16s ease, transform .22s var(--ease);
}
.ov-ptip b { font-weight: 500; }
.ov-ptip.is-on { opacity: 1; transform: translate(-50%, 0); }
.ov-ptip[data-edge="l"] { transform: translate(-14px, 4px); }
.ov-ptip[data-edge="l"].is-on { transform: translate(-14px, 0); }
.ov-ptip[data-edge="r"] { transform: translate(calc(-100% + 14px), 4px); }
.ov-ptip[data-edge="r"].is-on { transform: translate(calc(-100% + 14px), 0); }
.ov-pkey { position: absolute; left: 24px; bottom: 26px; display: flex; gap: 16px; font-size: 12.5px; color: rgba(255, 255, 255, .78); }
.ov-pkey span { display: inline-flex; align-items: center; gap: 7px; }
.ov-pkey i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .92); }
.ov-pkey i.is-missed { background: var(--accent); }

.ov-payers { left: 36px; top: 534px; width: 560px; height: 338px; contain: layout style; }
.ov-stack { position: absolute; left: 25px; right: 25px; top: 92px; height: 34px; display: flex; gap: 5px; cursor: pointer; }
.ov-stack i { flex: 1 1 0; min-width: 34px; border-radius: 999px; background: var(--c); transition: opacity .25s ease, transform .3s var(--ease); }
.has-hl .ov-stack i:not(.is-hl) { opacity: .2; }
.ov-stack i.is-hl { transform: scaleY(1.14); }
.ov-prows { position: absolute; left: 10px; right: 10px; top: 146px; display: flex; flex-direction: column; }
.ov-prow {
  position: relative; height: 58px; display: grid; grid-template-columns: 12px minmax(0, 1fr) auto 84px 22px; align-items: center; gap: 12px;
  padding: 0 10px 0 16px; text-align: left; border-radius: 16px; transition: opacity .25s ease;
}
.ov-prow .row-bg { left: 0; right: 0; transition: opacity .2s ease; }
.ov-prow:hover .row-bg, .ov-prow.is-hl .row-bg { opacity: 1; }
.ov-prow > *:not(.row-bg) { position: relative; }
.has-hl .ov-prow:not(.is-hl) { opacity: .55; }
.ov-sw { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.ov-pn b { display: block; font-weight: 500; font-size: 15px; letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-pn small { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 1px; }
.ov-avs { display: flex; padding-left: 7px; }
.ov-avs .av { width: 26px; height: 26px; margin-left: -7px; box-shadow: 0 0 0 2px var(--card); }
.ov-prow:hover .ov-avs .av, .ov-prow.is-hl .ov-avs .av { box-shadow: 0 0 0 2px var(--hover); }
.ov-pamt { text-align: right; font-size: 15px; font-weight: 500; }
.ov-go { display: grid; place-items: center; color: #B9B7B2; transition: transform .25s var(--ease), color .2s ease; }
.ov-go i { display: block; width: 7px; height: 7px; margin-left: -3px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); }
.ov-prow:hover .ov-go, .ov-prow.is-hl .ov-go { color: #3D3C3A; transform: translateX(3px); }
.ov-prow:active { transform: scale(.985); }

.ov-agenda { left: 618px; top: 534px; width: 785px; height: 338px; contain: layout style; }
.ov-sum { position: absolute; right: 23px; top: 24px; height: 28px; padding: 0 12px; border-radius: 999px; background: #F2F0ED; color: #6B6966; font-size: 12.5px; display: flex; align-items: center; white-space: nowrap; }
.ov-days { position: absolute; left: 14px; right: 14px; top: 84px; bottom: 12px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.ov-day { border-radius: 18px; padding: 8px 7px; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.ov-day.is-today { background: #F6F4F1; }
.ov-dh { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 4px; font-size: 13.5px; }
.ov-dh b { font-weight: 500; }
.ov-dh span { color: var(--ink-3); font-size: 12.5px; }
.is-today .ov-dh b { height: 24px; padding: 0 10px; display: inline-flex; align-items: center; border-radius: 999px; background: #19181B; color: #fff; font-size: 12.5px; }
.ov-chips { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ov-chip {
  height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 11px 0 5px; border-radius: 999px; min-width: 0;
  background: #fff; box-shadow: inset 0 0 0 1px #ECEAE6; font-size: 13px; white-space: nowrap; text-align: left;
  transition: transform .22s var(--ease), box-shadow .2s ease, background-color .2s ease;
}
.ov-chip:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px #E2DFDA, 0 6px 14px rgba(0, 0, 0, .06); }
.ov-chip:active { transform: scale(.97); }
.ov-chip .av { width: 30px; height: 30px; }
.ov-kind { position: absolute; right: -4px; bottom: -3px; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; background: #19181B; color: #fff; box-shadow: 0 0 0 2px #fff; }
.ov-kind svg { width: 9px; height: 9px; }
.ov-cl { overflow: hidden; text-overflow: ellipsis; }
.ov-chip.k-promise { background: #EEEDFA; box-shadow: none; }
.ov-chip.k-promise:hover { box-shadow: 0 6px 14px rgba(91, 87, 168, .12); }
.ov-chip.k-promise .ov-kind { background: #7C76CF; box-shadow: 0 0 0 2px #EEEDFA; }
.ov-chip.k-promise .ov-cl { font-weight: 500; color: #4B4796; }
.ov-chip.k-hand .ov-kind, .ov-chip.k-offer .ov-kind { background: var(--accent); }
.ov-atip { left: 0; top: 0; opacity: 0; transition: opacity .15s ease; }
.ov-atip.is-on { opacity: 1; }

/* ───────────── Invoices ───────────── */
.iv-pipe { left: 36px; top: 121px; width: 1367px; height: 112px; }
.iv-track { position: absolute; inset: 8px; display: flex; align-items: stretch; }
.iv-pill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 17px; background: #19181B; opacity: 0; transition: opacity .22s ease, background-color .25s ease; will-change: transform, width; }
.iv-track.has-sel .iv-pill { opacity: 1; }
.iv-track[data-sel="overdue"] .iv-pill { background: var(--accent); }
.iv-stage {
  position: relative; z-index: 1; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 10px 18px; border-radius: 17px; text-align: left; transition: color .25s ease, background-color .2s ease;
}
.iv-stage:hover { background: #F6F4F1; }
.iv-stage.is-on, .iv-stage.is-on:hover { background: transparent; color: #fff; }
.iv-stage:active { transform: scale(.985); }
.iv-sl { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--ink-2); transition: color .25s ease; }
.iv-sl i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.s-sent { --c: #C9C5BF; } .s-opened { --c: #6B6A68; } .s-promised { --c: var(--lav); } .s-paid { --c: #7C76CF; } .s-overdue { --c: var(--accent); }
.iv-amt { font-size: 26px; font-weight: 500; letter-spacing: -.03em; line-height: 1.15; margin-top: 5px; }
.s-overdue .iv-amt { color: var(--accent-text); }
.iv-stage small { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; transition: color .25s ease; }
.iv-stage.is-on .iv-sl, .iv-stage.is-on small { color: rgba(255, 255, 255, .74); }
.iv-stage.is-on .iv-amt { color: #fff; }
.iv-stage.is-on .iv-sl i { background: #fff; }
.iv-arr { flex: none; width: 24px; display: grid; place-items: center; color: #CDCAC5; }
.iv-arr svg { width: 13px; height: 13px; }
.iv-sep { flex: none; width: 1px; margin: 14px 16px; background: #ECEAE6; }

.iv-list { left: 36px; top: 255px; width: 820px; height: 617px; overflow: hidden; contain: layout paint style; }
.iv-all {
  margin-left: 12px; height: 30px; padding: 0 12px 0 9px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px;
  background: #F2F0ED; color: #5E5C59; font-size: 12.5px;
}
.iv-all svg { width: 11px; height: 11px; }
.iv-all:hover { background: #EAE7E3; }
.iv-all[hidden] { display: none; }
.iv-cols, .iv-row { display: grid; grid-template-columns: 116px minmax(0, 1fr) 112px 120px 110px 34px; column-gap: 10px; padding-left: 28px; align-items: center; }
.iv-cols { position: absolute; left: 0; right: 0; top: 72px; height: 18px; font-size: 12.5px; color: #A9A7A3; }
.iv-body { position: absolute; left: 0; right: 0; top: 95px; bottom: 8px; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; overscroll-behavior: contain; }
.iv-body::-webkit-scrollbar { display: none; }
.iv-row { position: relative; height: 60px; cursor: pointer; }
.iv-row .row-bg { transition: opacity .2s ease; }
.iv-row:hover .row-bg { opacity: .65; }
.iv-row.is-sel .row-bg { opacity: 1; }
.iv-row > *:not(.row-bg) { position: relative; }
.iv-row:focus-visible { outline-offset: -4px; border-radius: 16px; }
.iv-no b { display: block; font-weight: 500; font-size: 14.5px; letter-spacing: -.01em; }
.iv-no small, .iv-du small { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 1px; white-space: nowrap; }
.iv-cu { display: flex; align-items: center; gap: 10px; min-width: 0; }
.iv-cu .av { width: 30px; height: 30px; }
.iv-cu b { position: relative; font-weight: 500; font-size: 14.5px; letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iv-am { font-size: 14.5px; }
.iv-du span { display: block; font-size: 14px; }
.iv-du small.is-late, .ivd-amt em.is-late { color: var(--accent-text); }
.iv-du small.is-paid, .ivd-amt em.is-paid { color: #6F6AC0; }
.iv-row.is-sel .c-go { color: #3D3C3A; transform: translateX(3px); }
.iv-row:hover .c-go { color: #6F6D69; }
.ivc { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px 0 8px; border-radius: 999px; font-size: 12.5px; white-space: nowrap; background: var(--neutral-bg); color: var(--neutral); }
.ivc i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ivc--overdue { background: var(--warm-bg); color: var(--warm); }
.ivc--disputed { background: #1A1A1A; color: #fff; }
.ivc--promised { background: #EEEDFA; color: #5B57A8; }
.ivc--paid { background: #F1F0F9; color: #6F6AC0; }
.ivc--opened { background: #ECEAE6; color: #4F4D4A; }
.ivc--sent { background: transparent; box-shadow: inset 0 0 0 1px #E3E0DB; color: #7B7874; }

.iv-detail { left: 876px; top: 255px; width: 527px; height: 617px; display: flex; flex-direction: column; overflow: hidden; contain: layout paint style; }
.ivd-grab, .ivd-close, .iv-scrim { display: none; }
.ivd-in { flex: none; padding: 22px 24px 0; }
.ivd-top { display: flex; align-items: center; gap: 12px; }
.ivd-top .av { width: 42px; height: 42px; }
.ivd-who { flex: 1; min-width: 0; }
.ivd-who b { display: block; font-size: 16.5px; font-weight: 500; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ivd-who span { display: block; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.ivd-amt { margin-top: 18px; }
.ivd-amt b { display: block; font-size: 38px; font-weight: 500; letter-spacing: -.035em; line-height: 1; }
.ivd-amt span { display: block; margin-top: 9px; font-size: 13.5px; color: var(--ink-2); }
.ivd-amt em { font-style: normal; display: inline-block; }
.ivd-track { position: relative; margin: 22px 0 0; height: 40px; display: grid; grid-template-columns: repeat(4, 1fr); }
.ivd-track span { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); }
.ivd-track span i { width: 12px; height: 12px; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 2px #E1DFDA; transition: background-color .3s ease, box-shadow .3s ease; }
.ivd-track span.is-on { color: var(--ink-2); }
.ivd-track span.is-on i { background: var(--black); box-shadow: none; }
.ivd-track span.is-cur { color: var(--ink); font-weight: 500; }
.ivd-track span.is-cur i { box-shadow: 0 0 0 4px rgba(26, 26, 26, .1); }
.ivd-track.is-risk span.is-cur { color: var(--accent-text); }
.ivd-track.is-risk span.is-cur i { background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 123, 67, .18); }
.ivd-line { position: absolute; left: 12.5%; right: 12.5%; top: 5px; height: 2px; border-radius: 2px; background: #ECEAE6; }
.ivd-line i { position: absolute; inset: 0; border-radius: inherit; background: var(--black); transform-origin: 0 50%; transform: scaleX(var(--p)); }
.ivd-track.is-risk .ivd-line i { background: linear-gradient(90deg, var(--black) 40%, var(--accent)); }
.ivd-thread { position: relative; flex: 1 1 auto; min-height: 0; margin-top: 16px; padding: 14px 24px 16px; border-top: 1px solid var(--line); overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22px); mask-image: linear-gradient(to bottom, transparent 0, #000 22px); }
.ivd-thread::-webkit-scrollbar { display: none; }
.ivd-tt { font-size: 12.5px; color: var(--ink-3); margin-bottom: 12px; }
#ivEvents { display: flex; flex-direction: column; gap: 10px; }
.ev { font-size: 13.5px; }
.ev-sys, .ev-tag, .ev-next { display: flex; align-items: center; gap: 10px; min-height: 28px; color: #5E5C59; }
.ev time { margin-left: auto; padding-left: 10px; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.msg { margin: 0; padding: 10px 13px; border-radius: 16px; font-size: 13.5px; line-height: 1.42; letter-spacing: -.005em; }
.ev-out { align-self: flex-end; max-width: 86%; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ev-out .msg { background: #1B1A1D; color: #fff; border-bottom-right-radius: 5px; }
.ev-in { align-self: flex-start; display: flex; align-items: flex-end; gap: 8px; max-width: 86%; }
.ev-in .av { width: 26px; height: 26px; flex: none; margin-bottom: 20px; }
.ev-in > div { display: flex; flex-direction: column; gap: 4px; }
.ev-in .msg { background: #F2F0ED; color: var(--ink); border-bottom-left-radius: 5px; }
.ev-meta { font-size: 11.5px; color: var(--ink-3); }
.t-promise .ev-ic { background: #EEEDFA; color: #5B57A8; }
.t-promise span { color: #4B4796; }
.t-paid .ev-ic { background: #1B1A1D; color: #fff; }
.t-paid span { color: var(--ink); font-weight: 500; }
.t-missed .ev-ic, .t-hand .ev-ic, .t-paused .ev-ic { background: var(--warm-bg); color: var(--warm); }
.t-missed span, .t-paused span { color: var(--warm); }
.ev-next { margin-top: 2px; padding: 5px 12px 5px 5px; border-radius: 999px; border: 1px dashed #D6D3CE; }
.ev-next .ev-ic { background: transparent; }
.ev-next b { font-weight: 500; color: var(--ink); }
.ivd-foot { flex: none; height: 72px; padding: 0 20px 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); }
.ivd-switch { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 10px 0 6px; border-radius: 999px; font-size: 13.5px; color: #4A4946; transition: background-color .15s ease, opacity .2s ease; }
.ivd-switch:hover { background: #F6F4F1; }
.ivd-switch:disabled { opacity: .4; cursor: default; background: none; }
.ivd-paid { height: 42px; padding: 0 18px 0 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; background: #EEEDFA; color: #4B4796; font-size: 14px; white-space: nowrap; }
.ivd-paid svg { width: 14px; height: 14px; }
.ivd-paid:hover { background: #E4E2F7; }
.ivd-paid.is-undo { background: #F2F0ED; color: #4A4946; }
.ivd-paid.is-undo:hover { background: #EAE7E3; }
.ivd-paid:disabled { opacity: .55; cursor: default; background: #F1F0F9; }

/* ───────────── Agent ───────────── */
.ag-switch {
  height: 42px; padding: 0 17px 0 10px; display: inline-flex; align-items: center; gap: 10px; border-radius: 999px;
  background: var(--card); box-shadow: 0 1px 2px rgba(0, 0, 0, .03), 0 6px 18px rgba(0, 0, 0, .04); font-size: 14.5px; white-space: nowrap;
}
.ag-switch:hover { background: #fff; }
.ag-switch.is-on > .sw { background: #3E9B5C; }

.ag-tone { left: 36px; top: 121px; width: 947px; height: 391px; contain: layout style; }
.ag-dial { position: absolute; left: 25px; top: 108px; width: 410px; }
.ag-slider { position: relative; height: 44px; margin: 0 18px; touch-action: pan-y; cursor: pointer; outline-offset: 8px; border-radius: 999px; }
.ag-track { position: absolute; left: -18px; right: -18px; top: 15px; height: 14px; border-radius: 999px; background: linear-gradient(90deg, #F6C2A2 0%, #E8E4DE 50%, #2A2A2C 100%); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04); }
.ag-stop { position: absolute; top: 19px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: rgba(255, 255, 255, .9); }
.ag-thumb {
  position: absolute; top: 4px; left: calc(var(--p, 0) * 100%); width: 36px; height: 36px; margin-left: -18px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .16), 0 0 0 1px rgba(0, 0, 0, .04); transition: box-shadow .2s ease;
}
.ag-thumb i { width: 12px; height: 12px; border-radius: 50%; background: var(--tc, #DE6E3E); transition: background-color .3s ease; }
.ag-slider[data-tone="neutral"] { --tc: #8B8985; }
.ag-slider[data-tone="firm"] { --tc: #1A1A1A; }
.ag-slider:hover .ag-thumb { box-shadow: 0 4px 14px rgba(0, 0, 0, .18), 0 0 0 5px rgba(0, 0, 0, .04); }
.ag-slider.is-drag .ag-thumb { box-shadow: 0 6px 18px rgba(0, 0, 0, .2), 0 0 0 7px rgba(0, 0, 0, .05); }
.ag-labs { position: relative; height: 34px; margin: 8px 18px 0; }
.ag-lab { position: absolute; top: 0; height: 34px; padding: 0 11px; transform: translateX(-50%); border-radius: 999px; font-size: 14px; color: var(--ink-3); white-space: nowrap; transition: color .2s ease, background-color .2s ease; }
.ag-lab:nth-child(1) { left: 0; } .ag-lab:nth-child(2) { left: 50%; } .ag-lab:nth-child(3) { left: 100%; }
.ag-lab:hover { color: var(--ink-2); background: #F4F2EF; }
.ag-lab.is-on { color: var(--ink); font-weight: 500; }
.ag-line { margin: 26px 0 0; max-width: 390px; min-height: 52px; font-size: 19px; line-height: 1.35; letter-spacing: -.02em; }
.ag-used { display: flex; align-items: center; gap: 14px; margin-top: 22px; font-size: 13.5px; color: var(--ink-2); }
.ag-avs { display: flex; padding-left: 7px; }
.ag-avs .av { width: 28px; height: 28px; margin-left: -7px; box-shadow: 0 0 0 2px var(--card); }

.ag-phone { position: absolute; left: 474px; right: 22px; top: 22px; bottom: 22px; border-radius: 20px; background: #F4F2EF; overflow: hidden; }
.ag-ph-head { position: absolute; left: 18px; top: 16px; display: flex; align-items: center; gap: 10px; }
.ag-ph-head .av { width: 36px; height: 36px; }
.ag-ph-who b { display: block; font-size: 14.5px; font-weight: 500; letter-spacing: -.015em; }
.ag-ph-who span { display: block; font-size: 12.5px; color: var(--ink-2); margin-top: 1px; }
.ag-ch { position: absolute; left: 16px; top: 64px; height: 40px; background: #E8E5E0; }
.ag-ch .seg-pill { height: 32px; }
.ag-ch .seg-item { height: 32px; padding: 0 12px; gap: 6px; font-size: 13px; }
.ag-ch svg { width: 13px; height: 13px; }
.ag-body { position: absolute; left: 18px; right: 18px; top: 116px; bottom: 18px; display: flex; flex-direction: column; justify-content: flex-end; }
.ag-msg { align-self: flex-end; max-width: 94%; transform-origin: 100% 100%; }
.ag-text { margin: 0; padding: 13px 16px; border-radius: 18px 18px 5px 18px; background: #1B1A1D; color: #fff; font-size: 15px; line-height: 1.45; letter-spacing: -.008em; white-space: pre-line; }
.ag-msg.is-email .ag-text, .ag-msg.is-call .ag-text { background: #fff; color: var(--ink); border-radius: 14px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 18px rgba(0, 0, 0, .05); }
.ag-msg.is-call .ag-text { border-left: 3px solid var(--accent); border-radius: 6px 14px 14px 6px; }
.ag-subj { display: block; font-weight: 600; margin-bottom: 2px; }
.ag-meta { display: flex; justify-content: flex-end; align-items: center; gap: 4px; margin-top: 7px; font-size: 12px; color: var(--ink-3); }
.ag-ticks svg { width: 13px; height: 13px; color: #5B57A8; }
.ag-typing { position: absolute; right: 0; bottom: 0; display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--ink-2); opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity .18s ease, transform .3s var(--ease); }
.ag-typing.is-on { opacity: 1; transform: none; }
.ag-typing span { order: 2; display: flex; align-items: center; gap: 4px; height: 34px; padding: 0 14px; border-radius: 999px; background: #1B1A1D; }
.ag-typing span i { width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: .35; }
.ag-typing.is-on span i { animation: agDot 1s ease-in-out infinite; }
.ag-typing.is-on span i:nth-child(2) { animation-delay: .15s; }
.ag-typing.is-on span i:nth-child(3) { animation-delay: .3s; }
@keyframes agDot { 0%, 80%, 100% { opacity: .3; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }

.ag-month { background: #2D4A43; }
.ag-live { position: absolute; left: 24px; top: 234px; display: flex; align-items: center; gap: 9px; font-size: 13px; color: rgba(255, 255, 255, .78); }
.ag-live i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #A6E88F; }
.ag-live i::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #A6E88F; animation: agLive 1.8s ease-out infinite; }
@keyframes agLive { from { transform: scale(1); opacity: .6; } to { transform: scale(2.8); opacity: 0; } }
.ag-feed { position: absolute; left: 18px; right: 18px; top: 258px; height: 108px; overflow: hidden; transition: opacity .3s ease; }
.ag-feed-in { will-change: transform; }
.ag-fr { height: 36px; display: flex; align-items: center; gap: 10px; padding: 0 6px; font-size: 13.5px; color: rgba(255, 255, 255, .94); }
.ag-fr .av { width: 24px; height: 24px; }
.ag-ft { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-fr time { flex: none; font-size: 12px; color: rgba(255, 255, 255, .6); }
.is-paused .ag-feed { opacity: .4; }
.is-paused .ag-live i, .is-paused .ag-live i::after { background: rgba(255, 255, 255, .5); animation: none; }

.ag-book { left: 36px; top: 534px; width: 1367px; height: 338px; contain: layout style; }
.ag-proj { position: absolute; right: 25px; top: 18px; display: flex; align-items: center; gap: 12px; }
.ag-proj span { max-width: 118px; font-size: 13px; line-height: 1.25; color: var(--ink-2); text-align: right; }
.ag-proj b { min-width: 50px; font-size: 40px; font-weight: 500; letter-spacing: -.035em; line-height: 1; text-align: right; }
.ag-delta { font-style: normal; height: 24px; padding: 0 9px; display: inline-flex; align-items: center; border-radius: 999px; font-size: 12.5px; background: #F2F0ED; opacity: 0; transition: opacity .2s ease; }
.ag-delta.is-good { opacity: 1; background: #EEEDFA; color: #5B57A8; }
.ag-delta.is-bad { opacity: 1; background: var(--warm-bg); color: var(--warm); }
.ag-axis { position: absolute; left: 69px; right: 57px; top: 92px; height: 160px; contain: layout style; transition: opacity .3s ease; }
.ag-zone { position: absolute; top: 0; bottom: 34px; right: -14px; border-radius: 16px; background: linear-gradient(90deg, var(--zone-a), var(--zone-b)); }
.ag-zone span { position: absolute; right: 12px; top: 9px; font-size: 11.5px; color: var(--warm); white-space: nowrap; }
.ag-dueline { position: absolute; top: 66px; bottom: 34px; width: 1px; background: repeating-linear-gradient(to bottom, #CFCCC8 0 3px, transparent 3px 6px); }
.ag-rail { position: absolute; left: 0; right: 0; top: 96px; height: 2px; border-radius: 2px; background: #E3E0DB; transform-origin: 0 50%; }
.ag-axis .xlab { top: 140px; white-space: nowrap; }
.ag-axis .xlab:last-of-type { transform: translateX(-70%); }
.ag-step { position: absolute; top: 0; width: 120px; height: 130px; margin-left: -60px; pointer-events: none; }
.ag-st { position: absolute; left: 0; right: 0; top: 26px; text-align: center; }
.ag-st b { display: block; font-size: 14px; font-weight: 500; letter-spacing: -.015em; white-space: nowrap; }
.ag-st small { display: inline-block; margin-top: 2px; font-size: 12px; color: var(--ink-3); }
.ag-node {
  position: absolute; left: 50%; top: 75px; width: 44px; height: 44px; margin-left: -22px; border-radius: 50%; pointer-events: auto;
  display: grid; place-items: center; background: #fff; color: #3D3C3A; cursor: grab; touch-action: none;
  box-shadow: 0 0 0 1.5px #E3E0DB, 0 4px 12px rgba(0, 0, 0, .06);
  transition: transform .22s var(--ease), background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.ag-node svg { width: 16px; height: 16px; }
.ag-node:hover { transform: scale(1.07); box-shadow: 0 0 0 1.5px #D6D3CE, 0 6px 16px rgba(0, 0, 0, .09); }
.ag-step.is-sel .ag-node { background: #19181B; color: #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .2); }
.ag-step.is-drag .ag-node { cursor: grabbing; transform: scale(1.12); }
.ag-step.is-fixed .ag-node { cursor: default; }
.ag-step.is-sel .ag-st small { color: var(--ink); }
.ag-step.is-drag .ag-st small { color: var(--ink); font-weight: 500; }
.ag-book.is-dragging, .ag-book.is-dragging * { cursor: grabbing; }
.ag-lock { position: absolute; right: -4px; top: -4px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink-2); box-shadow: 0 0 0 1px #E3E0DB; }
.ag-lock svg { width: 10px; height: 10px; }
.ag-pm { display: none; }
.ag-detail { position: absolute; left: 25px; right: 25px; bottom: 20px; height: 48px; padding: 0 18px 0 8px; display: flex; align-items: center; gap: 12px; border-radius: 999px; background: #F6F4F1; font-size: 14px; transition: opacity .3s ease; }
.ag-detail .ev-ic { width: 32px; height: 32px; background: #fff; color: #3D3C3A; }
.ag-detail .ev-ic svg { width: 14px; height: 14px; }
.ag-detail b { font-weight: 500; white-space: nowrap; }
.ag-dl { flex: 1; min-width: 0; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-detail em { font-style: normal; color: #5B57A8; white-space: nowrap; font-size: 13px; }
.is-paused .ag-axis, .is-paused .ag-detail { opacity: .45; }

/* ───────────── fluid (phones, tablets) ───────────── */
html.fluid :is(.ov-payers, .ov-agenda, .ag-tone, .ag-book) > :is(.card-title, .card-sub) { position: static; }
html.fluid :is(.ov-payers, .ov-agenda, .ag-tone, .ag-book) > .card-sub { margin-top: 4px; white-space: normal; line-height: 1.35; }
html.fluid :is(.ov-payers, .ov-agenda, .ag-tone, .ag-book) > .card-title { font-size: 19px; }

html.fluid .ov { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
html.fluid .ov-cash { height: 372px; }
html.fluid .ov-cash .card-title { left: 18px; top: 18px; font-size: 19px; }
html.fluid .ov-cash .legend { left: auto; right: 18px; top: 22px; }
html.fluid .ov-read { left: 18px; right: 18px; top: 80px; flex-wrap: wrap; row-gap: 6px; }
html.fluid .ov-big { font-size: 30px; }
html.fluid .ov-plot { left: 50px; right: 18px; width: auto; top: 176px; height: auto; bottom: 46px; }
html.fluid .ov-clip { width: min(22px, calc(100% - 8px)); margin-left: calc(min(22px, calc(100% - 8px)) / -2); }
html.fluid .ov-x { font-size: 11px; }
html.fluid .ov-cols[data-p="weeks"] .ov-col .ov-x { visibility: hidden; }
html.fluid .ov-cols[data-p="weeks"] .ov-col:is(:first-child, :last-child, .is-now) .ov-x { visibility: visible; }
html.fluid .ov-plot.is-scrub .ov-cols[data-p="weeks"] .ov-col .ov-x { visibility: hidden; }
html.fluid .ov-plot.is-scrub .ov-cols[data-p="weeks"] .ov-col.is-sel .ov-x { visibility: visible; }
html.fluid .ov-today .guide-tag { font-size: 11px; height: 20px; padding: 0 7px; top: -22px; }
html.fluid .ov-prom { height: 378px; }
html.fluid .ov-plab { left: 20px; top: 236px; }
html.fluid .ov-pdots { left: 20px; right: 20px; top: 258px; }
html.fluid .ov-pkey { left: 20px; bottom: 22px; }
html.fluid .ov-payers { height: auto; padding: 18px 8px 10px; }
html.fluid .ov-payers > :is(.card-title, .card-sub) { margin-left: 10px; margin-right: 10px; }
html.fluid .ov-stack { position: relative; left: auto; right: auto; top: auto; height: 30px; margin: 16px 10px 8px; }
html.fluid .ov-prows { position: static; }
html.fluid .ov-prow { height: 60px; gap: 10px; padding: 0 8px 0 12px; grid-template-columns: 10px minmax(0, 1fr) auto 70px 18px; }
html.fluid .ov-agenda { height: auto; padding: 18px 8px 10px; }
html.fluid .ov-agenda > :is(.card-title, .card-sub) { margin-left: 10px; margin-right: 10px; }
html.fluid .ov-sum { position: static; display: inline-flex; margin: 12px 10px 0; }
html.fluid .ov-days { position: static; display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }
html.fluid .ov-day { flex-direction: row; align-items: flex-start; gap: 8px; padding: 8px; }
html.fluid .ov-dh { flex: none; width: 54px; height: 40px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; padding: 0 0 0 4px; }
html.fluid .is-today .ov-dh b { height: 22px; padding: 0 8px; margin-left: -4px; }
html.fluid .ov-chips { flex: 1; flex-direction: row; flex-wrap: wrap; gap: 6px; }
html.fluid .ov-chip { max-width: 100%; }

html.fluid .iv-pipe { margin-top: 16px; height: auto; }
html.fluid .iv-track { position: relative; inset: auto; padding: 6px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
html.fluid .iv-track::-webkit-scrollbar { display: none; }
html.fluid .iv-pill { top: 6px; bottom: 6px; }
html.fluid .iv-stage { flex: 0 0 auto; min-width: 128px; padding: 12px 14px; }
html.fluid .iv-amt { font-size: 22px; }
html.fluid .iv-arr { width: 16px; }
html.fluid .iv-sep { margin: 12px 8px; }
html.fluid .iv-list { height: auto; margin-top: 12px; padding-bottom: 8px; overflow: visible; }
html.fluid .iv-list .tc-head .card-title { margin: 0; }
html.fluid .iv-all { height: 40px; }
html.fluid .iv-cols { display: none; }
html.fluid .iv-body { position: relative; top: auto; bottom: auto; overflow: visible; padding-top: 6px; }
html.fluid .iv-row {
  height: 66px; padding: 0 14px 0 20px; column-gap: 0; row-gap: 4px; align-content: center;
  grid-template-columns: 46px minmax(0, 1fr) auto 26px; grid-template-areas: 'av name amt go' 'av meta st go';
  content-visibility: auto; contain-intrinsic-size: auto 66px;
}
html.fluid .iv-row .row-bg { left: 8px; right: 8px; }
html.fluid .iv-cu { display: contents; }
html.fluid .iv-cu .av { grid-area: av; width: 34px; height: 34px; }
html.fluid .iv-cu b { grid-area: name; min-width: 0; }
html.fluid .iv-am { grid-area: amt; text-align: right; padding-left: 8px; }
html.fluid .iv-no { grid-area: meta; min-width: 0; }
html.fluid .iv-no b { font-size: 12.5px; font-weight: 400; color: var(--ink-3); }
html.fluid .iv-no small, html.fluid .iv-du { display: none; }
html.fluid .iv-st { grid-area: st; justify-self: end; padding-left: 8px; }
html.fluid .iv-row .c-go { grid-area: go; justify-self: end; margin: -9px -12px -9px 0; }
html.fluid .ivc { height: 22px; font-size: 12px; }
html.fluid .iv-detail {
  position: fixed; left: 0; right: 0; top: auto; bottom: 0; z-index: 30; width: auto; height: auto; max-height: 88vh; max-height: 88svh;
  border-radius: 26px 26px 0 0; box-shadow: 0 -12px 40px rgba(20, 16, 28, .2); padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(104%); visibility: hidden; transition: transform .5s var(--ease), visibility 0s linear .5s;
}
html.fluid .iv-detail.is-open { transform: none; visibility: visible; transition: transform .5s var(--ease), visibility 0s; }
html.fluid .ivd-grab { display: block; flex: none; width: 40px; height: 5px; margin: 10px auto 0; border-radius: 3px; background: #DAD7D2; }
html.fluid .ivd-close { position: absolute; right: 12px; top: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #F2F0ED; color: #3D3C3A; }
html.fluid .ivd-close svg { width: 14px; height: 14px; }
html.fluid .ivd-in { padding: 10px 18px 0; }
html.fluid .ivd-top { padding-right: 46px; }
html.fluid .ivd-top .ivc { display: none; }
html.fluid .ivd-amt b { font-size: 32px; }
html.fluid .ivd-thread { padding: 12px 18px 14px; }
html.fluid .ivd-foot { height: 68px; padding: 0 14px 0 8px; }
html.fluid .iv-scrim { display: block; position: fixed; inset: 0; z-index: 29; background: rgba(24, 20, 30, .38); opacity: 0; pointer-events: none; transition: opacity .35s ease; }
html.fluid .iv-scrim.is-on { opacity: 1; pointer-events: auto; }

html.fluid .ag-tone { height: auto; margin-top: 16px; padding: 18px; }
html.fluid .ag-dial { position: static; width: auto; margin-top: 22px; }
html.fluid .ag-labs { margin-top: 6px; height: 40px; }
html.fluid .ag-lab { height: 40px; }
html.fluid .ag-line { margin-top: 16px; min-height: 46px; font-size: 17px; }
html.fluid .ag-used { margin-top: 14px; flex-direction: column; align-items: flex-start; gap: 8px; }
html.fluid .ag-phone { position: relative; inset: auto; height: 330px; margin-top: 18px; }
html.fluid .ag-ch { left: 12px; right: 12px; top: 64px; width: auto; height: 48px; }
html.fluid .ag-ch .seg-pill { height: 40px; }
html.fluid .ag-ch .seg-item { flex: 1 1 0; justify-content: center; height: 40px; }
html.fluid .ag-body { left: 14px; right: 14px; top: 124px; bottom: 14px; }
html.fluid .ag-text { font-size: 14px; }
html.fluid .ag-month { height: 382px; }
html.fluid .ag-live { left: 20px; top: 226px; }
html.fluid .ag-feed { left: 14px; right: 14px; top: 252px; }
html.fluid .ag-book { height: auto; margin-top: 12px; padding: 18px 18px 16px; }
html.fluid .ag-proj { position: static; margin-top: 14px; justify-content: flex-start; }
html.fluid .ag-proj span { order: 3; text-align: left; max-width: 160px; }
html.fluid .ag-proj b { order: 1; min-width: 1.25em; text-align: left; font-size: 36px; }
html.fluid .ag-delta { order: 2; }
html.fluid .ag-book:not(.is-list) .ag-axis { position: relative; left: auto; right: auto; top: auto; margin: 22px 26px 0 36px; }
html.fluid .ag-detail { position: relative; left: auto; right: auto; bottom: auto; height: auto; min-height: 48px; margin-top: 14px; padding: 8px 14px 8px 8px; border-radius: 18px; flex-wrap: wrap; row-gap: 2px; }
html.fluid .ag-dl { flex-basis: 100%; order: 3; padding-left: 44px; white-space: normal; }
html.fluid .ag-detail em { margin-left: auto; }
.ag-book.is-list .ag-axis { position: static; height: auto; margin-top: 12px; display: flex; flex-direction: column; }
.ag-book.is-list :is(.ag-zone, .ag-dueline, .ag-rail, .xlab) { display: none; }
.ag-book.is-list .ag-step { position: relative; left: auto !important; width: auto; height: 60px; margin: 0; display: flex; align-items: center; gap: 12px; pointer-events: auto; }
.ag-book.is-list .ag-step + .ag-step::before { content: ''; position: absolute; left: 21px; top: -14px; width: 2px; height: 28px; background: #E6E3DE; }
.ag-book.is-list .ag-node { position: relative; z-index: 1; left: auto; top: auto; margin: 0; flex: none; cursor: pointer; }
.ag-book.is-list .ag-st { position: static; flex: 1; min-width: 0; text-align: left; }
.ag-book.is-list .ag-st b { font-size: 15px; }
.ag-book.is-list .ag-st small { font-size: 12.5px; }
.ag-book.is-list .ag-pm { display: flex; gap: 6px; }
.ag-book.is-list .ag-step.is-fixed .ag-pm { display: none; }
.ag-pmb { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #F2F0ED; color: #3D3C3A; transition: background-color .15s ease, transform .15s ease, opacity .2s ease; }
.ag-pmb svg { width: 14px; height: 14px; }
.ag-pmb:hover { background: #EAE7E3; }
.ag-pmb:active { transform: scale(.92); }
.ag-pmb:disabled { opacity: .35; cursor: default; transform: none; }

@media (min-width: 760px) {
  html.fluid .ov { grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); }
  html.fluid .ov-payers, html.fluid .ov-agenda { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  html.fluid .ov-avs { display: none; }
  html.fluid .ov-prow { grid-template-columns: 10px minmax(0, 1fr) 70px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .ag-typing.is-on span i, .ag-live i::after { animation: none; }
}
