/* house style, sales area. loaded after ui/house-style.css; rules here override the shared look for this area only.
   screens: home, leads (and the lead pop-up), closer, setter, payments.
   order: tones, shared sales parts, home, leads, lead pop-up, closer, setter, payments, phones. */

/* ---------- a. tones ---------- */

/* each sales page carried its own five tone hexes. they now read the shared tone tokens, light and midnight */
body.balanced-blue.minimal-calm,
body.balanced-blue.minimal-calm.theme-dark{
  --dl-new:var(--quiet);--dl-ok:var(--ok);--dl-ok-bg:var(--ok-wash);--dl-ok-ink:var(--ok-text);
  --dl-stop:var(--bad);--dl-stop-bg:var(--bad-wash);--dl-stop-ink:var(--bad-text);
  --dl-warn:var(--warn);--dl-warn-bg:var(--warn-wash);--dl-warn-ink:var(--warn-text);
}
body.balanced-blue.minimal-calm #main.page-leads .sx-crm{--crm-green:var(--tone-green);--crm-amber:var(--tone-amber);--crm-violet:var(--tone-violet);--crm-red:var(--tone-red);--crm-blue:var(--tone-blue)}
body.balanced-blue.minimal-calm #main.page-closer .cl-page{--cl-green:var(--tone-green);--cl-amber:var(--tone-amber);--cl-violet:var(--tone-violet);--cl-red:var(--tone-red);--cl-blue:var(--tone-blue)}
/* a parked stage has a quiet grey dot */
body.balanced-blue.minimal-calm :is(#main,#drawer) :is(.sx-crm-idle,.cl-tone-idle){--tone:var(--quiet)}

/* ---------- b. shared sales parts ---------- */

/* initials: a soft tile with a hairline ring and second-ink letters, never a tinted disc */
body.balanced-blue.minimal-calm :is(#main,#drawer) :is(.sx-crm-avatar,.cl-avatar,.sx-avatar,.sx-call-avatar,.minimal-payment-avatar,.ho-student-avatar){border:0;background:var(--soft);box-shadow:inset 0 0 0 1px var(--line);color:var(--secondary);font-weight:600;letter-spacing:normal}
body.balanced-blue.minimal-calm #main :is(.sx-crm-avatar,.cl-avatar,.sx-avatar,.minimal-payment-avatar,.ho-student-avatar){flex:0 0 28px;width:28px;height:28px;font-size:10.5px}

/* text links inside sales pages are ink, with an underline on hover. pink is for the one filled button */
body.balanced-blue.minimal-calm :is(#main.page-leads,#main.page-closer,#main.page-setter,#main.page-payments,#drawer) .sx-link{color:var(--ink);font-weight:500;text-decoration:none}
body.balanced-blue.minimal-calm :is(#main.page-leads,#main.page-closer,#main.page-setter,#main.page-payments,#drawer) .sx-link:hover{color:var(--ink);text-decoration:underline;text-underline-offset:3px}

/* something needs doing: a hairline row, an amber dot, the sentence in ink, one outline button.
   the older rule is !important, so this one has to be too */
body.balanced-blue.minimal-calm :is(#main,#drawer) :is(.sx-attention,.pl-notice){display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;margin:0 0 12px;padding:8px 8px 8px 14px!important;border:1px solid var(--line)!important;border-radius:var(--r-card);background:var(--surface)!important;color:var(--ink)!important;font-size:13px!important;line-height:20px}
body.balanced-blue.minimal-calm :is(#main,#drawer) :is(.sx-attention,.pl-notice)>:first-child::before{content:"";display:inline-block;width:8px;height:8px;margin-right:10px;border-radius:50%;background:var(--warn);vertical-align:1px}
body.balanced-blue.minimal-calm :is(#main,#drawer) .pl-notice strong{color:var(--ink);font-weight:600}
body.balanced-blue.minimal-calm :is(#main,#drawer) :is(.sx-attention,.pl-notice) :is(.sx-link,.btn){display:inline-flex;align-items:center;min-height:32px;padding:0 12px;border:1px solid var(--line);border-radius:var(--r-control);background:transparent;color:var(--ink);font-size:13px;font-weight:500;text-decoration:none}
body.balanced-blue.minimal-calm :is(#main,#drawer) :is(.sx-attention,.pl-notice) :is(.sx-link,.btn):hover{background:var(--soft);text-decoration:none}

/* dropdowns typed into a table row sit flat until you point at them, so a row reads as words, not boxes */
body.balanced-blue.minimal-calm :is(#main.page-leads,#main.page-closer,#main.page-setter,#main.page-payments) td .sx-inline-choice:not(.dl-status,.dl-pill,.sx-lead-choice-outcome) .hq-select-trigger{min-height:28px;margin:0;padding:3px 8px;gap:6px;border:1px solid transparent;border-radius:var(--r-control);background:transparent;box-shadow:none;color:var(--ink);font-size:13px;font-weight:400}
body.balanced-blue.minimal-calm :is(#main.page-leads,#main.page-closer,#main.page-setter,#main.page-payments) td .sx-inline-choice:not(.dl-status,.dl-pill,.sx-lead-choice-outcome) .hq-select-trigger:is(:hover,[aria-expanded=true],:focus-visible){border-color:var(--line);background:var(--soft)}
body.balanced-blue.minimal-calm :is(#main.page-leads,#main.page-closer,#main.page-setter,#main.page-payments) td .sx-inline-choice:not(.dl-status,.dl-pill,.sx-lead-choice-outcome) .hq-select-inline{margin-left:-9px}
body.balanced-blue.minimal-calm :is(#main.page-leads,#main.page-closer,#main.page-setter,#main.page-payments) td .sx-inline-choice .hq-select-chevron{width:12px;height:12px;color:var(--quiet);opacity:1}
/* a touch screen has no hover, so the box stays drawn there */
@media(hover:none){
  body.balanced-blue.minimal-calm :is(#main.page-leads,#main.page-closer,#main.page-setter,#main.page-payments) td .sx-inline-choice:not(.dl-status,.dl-pill,.sx-lead-choice-outcome) .hq-select-trigger{border-color:var(--line)}
  body.balanced-blue.minimal-calm :is(#main.page-leads,#main.page-closer,#main.page-setter,#main.page-payments) td .sx-inline-choice:not(.dl-status,.dl-pill,.sx-lead-choice-outcome) .hq-select-inline{margin-left:0}
}
/* a money field typed into a row: right aligned, tabular, a hairline box */
body.balanced-blue.minimal-calm #main td input.sx-inline-cash{min-height:28px;padding:3px 8px;border:1px solid var(--line);border-radius:var(--r-control);background:var(--surface);color:var(--ink);font-size:13px;font-weight:500;text-align:right;font-variant-numeric:tabular-nums}
body.balanced-blue.minimal-calm #main td input.sx-inline-cash:hover:not(:disabled){border-color:var(--line-strong);background:var(--surface)}
/* the commission rate box */
body.balanced-blue.minimal-calm #main td .sx-rate{gap:6px;font-size:13px;color:var(--secondary)}
body.balanced-blue.minimal-calm #main td .sx-rate input{width:60px;text-align:right}

/* commission tabs: each table sits in one card under its own title */
body.balanced-blue.minimal-calm :is(#main.page-closer,#main.page-setter) .sx-page>.sx-section{margin:0 0 12px;padding:0 0 4px;border:1px solid var(--line);border-radius:var(--r-card);background:var(--surface)}
body.balanced-blue.minimal-calm :is(#main.page-closer,#main.page-setter) .sx-page>.sx-section>.sx-section-head{min-height:0;margin:0;padding:16px 16px 12px}
body.balanced-blue.minimal-calm :is(#main.page-closer,#main.page-setter) .sx-page>.sx-section .sx-table-wrap{padding:0 12px}
body.balanced-blue.minimal-calm :is(#main.page-closer,#main.page-setter) .sx-page>.sx-section .sx-table-wrap>.table-container{padding:0}
body.balanced-blue.minimal-calm :is(#main.page-closer,#main.page-setter) .sx-person strong{font-size:14px;font-weight:600}
/* the person and month picker beside the tabs */
body.balanced-blue.minimal-calm :is(#main.page-closer,#main.page-setter) .sx-owner-toolbar{gap:8px;margin-bottom:16px}
body.balanced-blue.minimal-calm #main.page-closer .sx-closer-who .hq-record-identity{gap:8px;font-size:13px;font-weight:500}
body.balanced-blue.minimal-calm #main.page-closer .sx-closer-who :is(.hq-record-avatar,.hq-record-avatar img){width:28px;height:28px}

/* forms in a pop-up: 36px fields, a dropdown as wide as its field, the buttons on a hairline */
body.balanced-blue.minimal-calm #drawer #sales-form .sx-form-grid{gap:14px 12px}
body.balanced-blue.minimal-calm #drawer #sales-form .sx-field{gap:6px}
body.balanced-blue.minimal-calm #drawer #sales-form .sx-field>.hq-select{display:flex;width:100%}
body.balanced-blue.minimal-calm #drawer #sales-form .sx-field .hq-select-trigger{width:100%;min-height:36px;justify-content:space-between;font-size:14px;font-weight:400}
body.balanced-blue.minimal-calm #drawer #sales-form .sx-form-actions{gap:8px;margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}
body.balanced-blue.minimal-calm #drawer #sales-form .sx-form-actions .btn{min-height:36px}
body.balanced-blue.minimal-calm #drawer .sx-drawer-note{margin:0 0 16px;font-size:13px;line-height:20px;color:var(--secondary)}
body.balanced-blue.minimal-calm #drawer #sales-form-error{margin:12px 0 0;color:var(--bad-text)}
body.balanced-blue.minimal-calm #drawer #sales-form-error:empty{display:none}

/* ---------- c. home ---------- */

/* sections sit 18px apart, cards 12px apart */
body.balanced-blue.minimal-calm #main.page-home .home-overview{gap:18px}
body.balanced-blue.minimal-calm #main.page-home .ho-metrics{margin:0}
body.balanced-blue.minimal-calm #main.page-home .ho-bottom{gap:12px}
/* the range row: just the range picker and refresh under the greeting, 32px controls */
body.balanced-blue.minimal-calm #main.page-home .ho-toolbar{gap:12px}
body.balanced-blue.minimal-calm #main.page-home .ho-range-controls .input{min-height:32px}
/* tiles that have a goal get a thin bar under the number, with a tick where it should be by today. red when behind */
body.balanced-blue.minimal-calm #main.page-home .ho-metric{position:relative}
/* the goal beside a number; on a narrow tile it drops under the number instead of running out of the box */
body.balanced-blue.minimal-calm #main.page-home .ho-metric dd:has(.ho-of){display:flex;flex-wrap:wrap;align-items:baseline;column-gap:6px}
body.balanced-blue.minimal-calm #main.page-home .ho-metric dd .ho-of{font-size:14px;font-weight:500;letter-spacing:0;color:var(--secondary)}
body.balanced-blue.minimal-calm #main.page-home .ho-meter{position:relative;display:block;height:4px;margin-top:6px;border-radius:999px;background:var(--soft);box-shadow:inset 0 0 0 1px var(--line)}
body.balanced-blue.minimal-calm #main.page-home .ho-meter>b{position:absolute;inset:0 auto 0 0;border-radius:inherit;background:var(--accent)}
body.balanced-blue.minimal-calm #main.page-home .ho-meter.is-late>b{background:var(--bad)}
body.balanced-blue.minimal-calm #main.page-home .ho-meter>i{position:absolute;top:-3px;bottom:-3px;width:2px;margin-left:-1px;border-radius:1px;background:var(--ink)}
/* the cash tile opens the monthly target */
body.balanced-blue.minimal-calm #main.page-home .ho-tile-edit{position:absolute;inset:0;width:100%;margin:0;padding:0;border:0;border-radius:inherit;background:transparent;cursor:pointer}
body.balanced-blue.minimal-calm #main.page-home .ho-metric:has(.ho-tile-edit:hover){border-color:var(--line-strong)}
body.balanced-blue.minimal-calm #main.page-home .ho-tile-edit:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
/* the other four numbers, one click away */
body.balanced-blue.minimal-calm #main.page-home .ho-more>summary{display:inline-flex;align-items:center;gap:6px;min-height:28px;font-size:13px;font-weight:500;color:var(--secondary);cursor:pointer;list-style:none}
body.balanced-blue.minimal-calm #main.page-home .ho-more>summary::-webkit-details-marker{display:none}
body.balanced-blue.minimal-calm #main.page-home .ho-more>summary::before{content:"";width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);transition:transform .15s}
body.balanced-blue.minimal-calm #main.page-home .ho-more[open]>summary::before{transform:rotate(45deg)}
body.balanced-blue.minimal-calm #main.page-home .ho-more>summary:hover{color:var(--ink)}
body.balanced-blue.minimal-calm #main.page-home .ho-more>.ho-metrics{margin:8px 0 0}
body.balanced-blue.minimal-calm #main.page-home .home-overview>.ho-metrics:has(+.ho-metrics){margin-bottom:-6px}
/* to chase: one hairline card, a row per thing still undone. a dot, one sentence, one outline button */
body.balanced-blue.minimal-calm #main.page-home .ho-chase{border:1px solid var(--line);border-radius:var(--r-card);background:var(--surface)}
body.balanced-blue.minimal-calm #main.page-home .ho-chase-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:8px 8px 8px 14px;font-size:13px;line-height:20px;color:var(--ink)}
body.balanced-blue.minimal-calm #main.page-home .ho-chase-row+.ho-chase-row{border-top:1px solid var(--line)}
body.balanced-blue.minimal-calm #main.page-home .ho-chase-row>span::before{content:"";display:inline-block;width:8px;height:8px;margin-right:10px;border-radius:50%;background:var(--warn);vertical-align:1px}
body.balanced-blue.minimal-calm #main.page-home .ho-chase-row.is-late>span::before{background:var(--bad)}
body.balanced-blue.minimal-calm #main.page-home .ho-chase-act{display:inline-flex;align-items:center;flex:none;min-height:32px;padding:0 12px;border:1px solid var(--line);border-radius:var(--r-control);background:transparent;color:var(--ink);font:inherit;font-size:13px;font-weight:500;text-decoration:none;cursor:pointer}
body.balanced-blue.minimal-calm #main.page-home .ho-chase-act:hover{background:var(--soft)}
/* recurrings: what is unpaid sits beside the title; a late row says how late, with the red dot in front (only the dot
   is coloured, same as the payments page) */
body.balanced-blue.minimal-calm #main.page-home .ho-unpaid{font-size:13px;font-weight:600;font-variant-numeric:tabular-nums;color:var(--ink)}
body.balanced-blue.minimal-calm #main.page-home .ho-payment-row.is-late .ho-row-date{display:inline-flex;align-items:center;gap:6px;color:var(--ink);font-weight:500;white-space:nowrap}
body.balanced-blue.minimal-calm #main.page-home .ho-payment-row.is-late .ho-row-date::before{content:"";flex:none;width:6px;height:6px;border-radius:50%;background:var(--bad)}
/* recent closes with one closer: no closer column */
body.balanced-blue.minimal-calm #main.page-home .ho-one-closer :is(.ho-list-head,.ho-close-row){grid-template-columns:minmax(0,1fr) 88px 14px}
body.balanced-blue.minimal-calm #main.page-home .ho-range-controls label{font-size:12px;font-weight:500;color:var(--secondary)}
body.balanced-blue.minimal-calm #main.page-home .ho-range-error{color:var(--bad-text)}
body.balanced-blue.minimal-calm #main.page-home .ho-notice{padding:8px 14px;border:1px solid var(--line);border-radius:var(--r-card);font-size:13px;line-height:20px}
body.balanced-blue.minimal-calm #main.page-home :is(.ho-source,.ho-section-note){font-size:12px;line-height:18px;color:var(--secondary)}
/* quiet text buttons in a card head */
body.balanced-blue.minimal-calm #main.page-home .ho-link{gap:6px;font-size:13px;font-weight:500;line-height:20px;color:var(--ink)}
body.balanced-blue.minimal-calm #main.page-home .ho-link .icon{width:14px;height:14px;color:var(--quiet)}
body.balanced-blue.minimal-calm #main.page-home .ho-chart-controls{gap:12px}
body.balanced-blue.minimal-calm #main.page-home .ho-list-tools{gap:12px}
/* the cash chart: flat pink bars with a small round top, hairline grid, quiet axis words */
body.balanced-blue.minimal-calm #main.page-home .home-overview .ho-chart{padding:0 16px 12px}
body.balanced-blue.minimal-calm #main.page-home .ho-chart text{fill:var(--secondary);font-variant-numeric:tabular-nums}
body.balanced-blue.minimal-calm #main.page-home .ho-chart-grid{stroke:var(--line)}
body.balanced-blue.minimal-calm #main.page-home :is(.ho-chart-bar,.ho-chart-dot){fill:var(--accent)}
body.balanced-blue.minimal-calm #main.page-home .ho-chart-bar{rx:3px}
body.balanced-blue.minimal-calm #main.page-home .ho-chart-line{stroke:var(--accent)}
/* the two lists: a soft rounded header bar, hairlines between rows, both inset 12px from the card edge */
body.balanced-blue.minimal-calm #main.page-home .ho-list-head{min-height:32px;margin:0 12px;padding:0 12px;border-radius:var(--r-control);background:var(--soft);box-shadow:none;font-size:12px;font-weight:500;line-height:18px;color:var(--secondary)}
body.balanced-blue.minimal-calm #main.page-home .ho-rows{padding:0 12px 4px}
body.balanced-blue.minimal-calm #main.page-home :is(.ho-close-row,.ho-payment-row){min-height:52px;padding:8px 12px;border-radius:0;border-bottom:1px solid var(--record-line);transition:background-color .15s}
body.balanced-blue.minimal-calm #main.page-home :is(.ho-close-row,.ho-payment-row):last-child{border-bottom-color:transparent}
body.balanced-blue.minimal-calm #main.page-home :is(.ho-close-row,.ho-payment-row):hover{background:var(--record-hover)}
body.balanced-blue.minimal-calm #main.page-home .ho-row-main{gap:1px}
body.balanced-blue.minimal-calm #main.page-home .ho-row-main strong{font-size:14px;line-height:20px;font-weight:600}
body.balanced-blue.minimal-calm #main.page-home :is(.ho-row-main small,.ho-row-date){font-size:12px;line-height:16px;color:var(--secondary)}
body.balanced-blue.minimal-calm #main.page-home .ho-row-owner{font-size:13px}
body.balanced-blue.minimal-calm #main.page-home :is(.ho-row-cash strong,.ho-payment-row>strong){font-size:13px;font-weight:600;font-variant-numeric:tabular-nums}
body.balanced-blue.minimal-calm #main.page-home :is(.ho-close-row,.ho-payment-row)>.icon{color:var(--quiet)}
body.balanced-blue.minimal-calm #main.page-home .ho-empty{min-height:96px;padding:18px 16px;font-size:13px;line-height:20px;color:var(--secondary)}
@media(max-width:650px){
  body.balanced-blue.minimal-calm #main.page-home .home-overview{gap:12px}
  body.balanced-blue.minimal-calm #main.page-home .ho-list-head{margin-inline:8px;padding-inline:8px}
  body.balanced-blue.minimal-calm #main.page-home .ho-rows{padding-inline:8px}
  body.balanced-blue.minimal-calm #main.page-home :is(.ho-close-row,.ho-payment-row){padding-inline:8px}
  body.balanced-blue.minimal-calm #main.page-home .home-overview .ho-chart{padding:0 8px 12px}
}
/* the monthly target form */
body.balanced-blue.minimal-calm #drawer .ho-target-form{gap:16px}
body.balanced-blue.minimal-calm #drawer .ho-target-form label{gap:6px;font-size:12px;font-weight:500;line-height:18px;color:var(--secondary)}
body.balanced-blue.minimal-calm #drawer .ho-target-form .input{min-height:36px;font-variant-numeric:tabular-nums}
body.balanced-blue.minimal-calm #drawer .ho-target-form .btn{min-height:36px}

/* ---------- d. leads ---------- */

/* the tracker card: one 32px controls row (search, filters, source, month, add), then the table. no rules between them.
   in the filters list a count sits after each name and calls waiting on a report get an amber dot */
body.balanced-blue.minimal-calm #main.page-leads .sx-crm .hq-option-dot,body.balanced-blue.minimal-calm .hq-select-menu[aria-label=filters] .hq-option-dot{width:6px;height:6px;background:var(--warn)}
body.balanced-blue.minimal-calm #main.page-leads .sx-crm .sx-crm-toolbar{gap:8px;margin:0;padding:12px;border:0}
body.balanced-blue.minimal-calm #main.page-leads .sx-crm .sx-filters{gap:8px}
/* table: nine columns, so cells sit 8px apart and the first one lines up with the header bar */
body.balanced-blue.minimal-calm #main.page-leads .sx-crm-table :is(th,td){padding-inline:8px!important}
body.balanced-blue.minimal-calm #main.page-leads .sx-crm-table :is(th,td):first-child{padding-left:12px!important}
body.balanced-blue.minimal-calm #main.page-leads .sx-crm-table :is(th,td):last-child{padding:0 6px!important}
body.balanced-blue.minimal-calm #main.page-leads .sx-crm-table thead th{height:32px;background:var(--soft)}
/* a little width moves from the name to the stage and the setter, so a whole stage pill and a full name fit on a laptop */
body.balanced-blue.minimal-calm #main.page-leads .sx-crm-table col.sx-crm-col-lead{width:18%}
body.balanced-blue.minimal-calm #main.page-leads .sx-crm-table col.sx-crm-col-stage{width:14%}
body.balanced-blue.minimal-calm #main.page-leads .sx-crm-table col.sx-crm-col-setter{width:11%}
body.balanced-blue.minimal-calm #main.page-leads .sx-crm-table td .sx-inline-choice.sx-lead-choice:not(.sx-lead-choice-outcome) .hq-select-trigger{gap:5px;padding:3px 6px}
body.balanced-blue.minimal-calm #main.page-leads .sx-crm-table td .sx-inline-choice.sx-lead-choice:not(.sx-lead-choice-outcome) .hq-select-inline{margin-left:-7px}
body.balanced-blue.minimal-calm #main.page-leads .sx-crm-table td{height:52px;padding-block:6px!important;background:transparent;font-size:13px;line-height:18px}
body.balanced-blue.minimal-calm #main.page-leads .sx-crm-table tr[data-lead-row]:is(:hover,:focus-within) td{background:var(--record-hover)}
body.balanced-blue.minimal-calm #main.page-leads .sx-crm .sx-lead-name{font-size:14px;line-height:20px;font-weight:600}
body.balanced-blue.minimal-calm #main.page-leads .sx-crm-lead-text small{font-size:12px;line-height:16px}
body.balanced-blue.minimal-calm #main.page-leads .sx-crm .sx-lead-when time{font-size:13px}
body.balanced-blue.minimal-calm #main.page-leads .sx-crm .sx-lead-time{font-size:12px;color:var(--secondary)}
/* stage: a round outlined pill, ink words, the tone only on the dot */
body.balanced-blue.minimal-calm #main.page-leads .sx-crm-stage,
body.balanced-blue.minimal-calm #main.page-leads .sx-crm-table td .sx-inline-choice.sx-lead-choice-outcome .hq-select-trigger,
body.balanced-blue.minimal-calm.theme-dark #main.page-leads .sx-crm-table td .sx-inline-choice.sx-lead-choice-outcome .hq-select-trigger:not(:hover,[aria-expanded=true]){gap:6px;min-height:22px;padding:0 8px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--ink);font-size:12px;font-weight:500;line-height:1}
body.balanced-blue.minimal-calm #main.page-leads .sx-crm-table td .sx-inline-choice.sx-lead-choice-outcome .hq-select-trigger:is(:hover,[aria-expanded=true]){border-color:var(--line-strong);background:var(--soft)}
body.balanced-blue.minimal-calm #main.page-leads .sx-crm-table td .sx-inline-choice.sx-lead-choice-outcome .hq-select-chevron{color:var(--quiet);opacity:1}
/* "add post-call" is the one small outline button on a row. the stage dot already says it is waiting */
body.balanced-blue.minimal-calm #main.page-leads .sx-crm .sx-lead-post-call{gap:4px;min-height:28px;padding:4px 8px;border:1px solid var(--line);border-radius:var(--r-control);background:transparent;color:var(--ink);font-size:12px;font-weight:500;line-height:16px;white-space:nowrap}
/* on a laptop the arrow goes so the words stay on one line */
@media(max-width:1400px){body.balanced-blue.minimal-calm #main.page-leads .sx-crm .sx-lead-post-call>span{display:none}}
body.balanced-blue.minimal-calm #main.page-leads .sx-crm .sx-lead-post-call:hover{border-color:var(--line);background:var(--soft)}
body.balanced-blue.minimal-calm #main.page-leads .sx-crm td:nth-last-child(2) :is(.muted,.sx-link){font-size:12px;color:var(--secondary)}
/* the edit pencil shows on the row you point at or tab into, and always on a touch screen */
body.balanced-blue.minimal-calm #main.page-leads .sx-crm .sx-lead-edit{width:28px;height:28px;border:0;border-radius:var(--r-control);color:var(--quiet);opacity:0}
body.balanced-blue.minimal-calm #main.page-leads .sx-crm :is(tr:is(:hover,:focus-within) .sx-lead-edit,.sx-lead-edit:focus-visible){opacity:1}
@media(hover:none){body.balanced-blue.minimal-calm #main.page-leads .sx-crm .sx-lead-edit{opacity:1}}
body.balanced-blue.minimal-calm #main.page-leads .sx-crm .sx-lead-edit:hover{background:var(--soft);color:var(--ink)}
/* the count under the table is a quiet summary line */
body.balanced-blue.minimal-calm #main.page-leads .sx-crm-foot{padding:8px 24px 12px;border-top:0;font-size:12px;line-height:18px;color:var(--secondary)}
@media(max-width:760px){
  body.balanced-blue.minimal-calm #main.page-leads .sx-crm .sx-crm-toolbar{padding:12px}
}
/* oliver 2026-10-04: "this leads table should go lower as well". on a laptop or bigger the card runs to the bottom of the
   window and its rows scroll inside it under the header row, the way the chat inbox fills its page; it never gets
   shorter than 420px, and phones scroll the page instead */
@media(min-width:761px){
  body.balanced-blue.minimal-calm #main.page-leads{display:flex;flex-direction:column;padding-bottom:24px}
  body.balanced-blue.minimal-calm #main.page-leads>*{flex:none}
  body.balanced-blue.minimal-calm #main.page-leads>#page-body{display:flex;flex-direction:column;flex:1 1 auto;min-height:420px}
  body.balanced-blue.minimal-calm #main.page-leads [data-leads-page]{display:flex;flex-direction:column;flex:1 1 auto;min-height:0}
  body.balanced-blue.minimal-calm #main.page-leads [data-leads-page]>*{flex:none}
  body.balanced-blue.minimal-calm #main.page-leads [data-leads-page]>.sx-crm{display:flex;flex-direction:column;flex:1 1 auto;min-height:0}
  body.balanced-blue.minimal-calm #main.page-leads .sx-crm>*{flex:none}
  body.balanced-blue.minimal-calm #main.page-leads .sx-crm>.sx-crm-table{display:flex;flex-direction:column;flex:1 1 0;min-height:0}
  body.balanced-blue.minimal-calm #main.page-leads .sx-crm-table>.table-container{flex:1 1 0;min-height:0;max-height:none}
}

/* ---------- e. the lead pop-up (pre-call answers beside the post-call form) ---------- */

/* head: who it is, their stage at the right, three outlined chips under */
body.balanced-blue.minimal-calm #drawer .sx-call-head{gap:10px 12px;padding:20px 64px 16px 24px;border-bottom:1px solid var(--line)}
body.balanced-blue.minimal-calm #drawer .sx-call-avatar{width:40px;height:40px;font-size:15px;font-weight:550}
body.balanced-blue.minimal-calm #drawer .sx-call-title{gap:2px}
body.balanced-blue.minimal-calm #drawer .sx-call-title strong{font-size:20px;line-height:28px;font-weight:600;letter-spacing:-.02em;color:var(--ink)}
body.balanced-blue.minimal-calm #drawer .sx-call-title span{font-size:13px;line-height:20px;color:var(--secondary)}
body.balanced-blue.minimal-calm #drawer .sx-call-chip{gap:6px;min-height:22px;padding:0 8px;border:1px solid var(--line);border-radius:999px;background:var(--surface);font-size:12px;font-weight:500;line-height:1;color:var(--ink)}
body.balanced-blue.minimal-calm #drawer .sx-call-chip small{font-size:12px;font-weight:400;color:var(--secondary)}
body.balanced-blue.minimal-calm #drawer:has(.sx-call-drawer) .drawer-head{top:14px;right:14px}
/* two columns on the card colour, split by one hairline */
body.balanced-blue.minimal-calm #drawer .sx-call-drawer h3{margin:0 0 16px;font-size:17px;line-height:24px;font-weight:600;letter-spacing:-.01em;color:var(--ink)}
body.balanced-blue.minimal-calm #drawer .sx-call-pre{padding:20px 24px 24px;border-right:1px solid var(--line);background:transparent}
body.balanced-blue.minimal-calm #drawer .sx-call-post{gap:14px;padding:20px 24px 24px}
body.balanced-blue.minimal-calm #drawer .sx-call-answers{gap:14px 16px;margin:0 0 16px}
body.balanced-blue.minimal-calm #drawer .sx-call-answers dt{font-size:12px;font-weight:500;line-height:18px;color:var(--secondary)}
body.balanced-blue.minimal-calm #drawer .sx-call-answers dd{margin:2px 0 0;font-size:13.5px;font-weight:400;line-height:20px;color:var(--ink)}
body.balanced-blue.minimal-calm #drawer .sx-call-empty{font-size:13px;line-height:20px;color:var(--secondary)}
/* "merge duplicate lead" is a quiet text button */
body.balanced-blue.minimal-calm #drawer .sx-call-pre [data-merge-lead]{min-height:28px;margin-left:-8px;padding:0 8px;border-radius:var(--r-control);color:color-mix(in srgb,var(--ink) 70%,transparent);font-size:13px;font-weight:500;text-decoration:none}
body.balanced-blue.minimal-calm #drawer .sx-call-pre [data-merge-lead]:hover{background:var(--soft);color:var(--ink);text-decoration:none}
/* labels over the fields */
body.balanced-blue.minimal-calm #drawer .sx-call-post .sx-field>span,
body.balanced-blue.minimal-calm #drawer :is(.sx-call-result,.sx-call-money) .sx-call-answer legend{margin:0;padding:0;font-size:12px;font-weight:500;line-height:18px;color:var(--secondary)}
body.balanced-blue.minimal-calm #drawer :is(.sx-call-result,.sx-call-money) .sx-call-answer legend{margin-bottom:6px}
body.balanced-blue.minimal-calm #drawer :is(.sx-call-result,.sx-call-money,.sx-call-next){gap:12px}
/* yes / no is the house switch, as wide as its field */
body.balanced-blue.minimal-calm #drawer :is(.sx-call-result,.sx-call-money) .sx-call-answer>div{gap:2px;padding:2px;border-radius:var(--r-control);background:var(--control-tray)}
body.balanced-blue.minimal-calm #drawer :is(.sx-call-result,.sx-call-money) .sx-call-answer label{min-height:32px;border-radius:var(--r-seg);color:var(--secondary);font-size:13px;font-weight:500;transition:color .12s,background-color .12s,box-shadow .12s}
body.balanced-blue.minimal-calm #drawer :is(.sx-call-result,.sx-call-money) .sx-call-answer label:hover{color:var(--ink)}
body.balanced-blue.minimal-calm #drawer :is(.sx-call-result,.sx-call-money) .sx-call-answer label:has(input:checked){background:var(--switch-raise);color:var(--ink);box-shadow:var(--switch-shadow)}
body.balanced-blue.minimal-calm #drawer :is(.sx-call-result,.sx-call-money) .sx-call-answer label:has(input:focus-visible){outline:2px solid var(--quiet);outline-offset:1px}
body.balanced-blue.minimal-calm #drawer .sx-call-money .sx-field::after{bottom:8px;font-size:14px;line-height:20px;color:var(--quiet)}
body.balanced-blue.minimal-calm #drawer .sx-call-post textarea.input{min-height:80px}
/* the folded extra fields */
body.balanced-blue.minimal-calm #drawer .sx-call-more{padding-top:12px;border-top:1px solid var(--line)}
body.balanced-blue.minimal-calm #drawer .sx-call-more>summary{gap:8px;font-size:13px;font-weight:500;line-height:20px;color:var(--secondary)}
body.balanced-blue.minimal-calm #drawer .sx-call-more>summary:hover{color:var(--ink)}
body.balanced-blue.minimal-calm #drawer .sx-call-more>summary::before{width:18px;height:18px;border-color:var(--line);border-radius:5px;color:var(--secondary)}
body.balanced-blue.minimal-calm #drawer .sx-call-more>.sx-form-grid{gap:12px;margin-top:12px}
/* save stays on a hairline at the bottom */
body.balanced-blue.minimal-calm #drawer:has(.sx-call-drawer) #sales-form .sx-form-actions{margin:0;padding:12px 24px;border-top:1px solid var(--line);background:var(--surface)}
body.balanced-blue.minimal-calm #drawer:has(.sx-call-drawer) #sales-form-error{margin:0 24px 12px}
@media(max-width:820px){
  body.balanced-blue.minimal-calm #drawer .sx-call-pre{border-right:0;border-bottom:1px solid var(--line)}
  body.balanced-blue.minimal-calm #drawer :is(.sx-call-head,.sx-call-pre,.sx-call-post){padding-left:16px;padding-right:16px}
  body.balanced-blue.minimal-calm #drawer .sx-call-head{padding-right:56px}
  body.balanced-blue.minimal-calm #drawer:has(.sx-call-drawer) #sales-form .sx-form-actions{padding-inline:16px}
}

/* ---------- f. closer ---------- */

/* cards sit 12px apart */
body.balanced-blue.minimal-calm #main.page-closer .cl-row{gap:12px;margin:0 0 12px}
body.balanced-blue.minimal-calm #main.page-closer .cl-stack{gap:12px}
body.balanced-blue.minimal-calm #main.page-closer .cl-card-head{border-bottom:0}
body.balanced-blue.minimal-calm #main.page-closer .cl-card-meta{font-size:13px;line-height:20px;color:var(--secondary)}
body.balanced-blue.minimal-calm #main.page-closer .cl-card-body{padding:0 16px 16px}
body.balanced-blue.minimal-calm #main.page-closer .cl-card-foot{padding:8px 16px 12px;border-top:0;font-size:12px}
body.balanced-blue.minimal-calm #main.page-closer .cl-empty{padding:18px 16px;font-size:13px;line-height:20px}
/* calls waiting on a report: a round outlined chip with an amber dot */
body.balanced-blue.minimal-calm #main:is(.page-closer,.page-setter) .sx-closer-notices{gap:8px;margin:-6px 0 12px}
body.balanced-blue.minimal-calm #main:is(.page-closer,.page-setter) .sx-closer-notices>.sx-link,
body.balanced-blue.minimal-calm #main:is(.page-closer,.page-setter) .sx-closer-notices>.sx-link:first-child{gap:8px;min-height:28px;padding:0 12px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--ink);font-size:12px;font-weight:500;text-decoration:none}
body.balanced-blue.minimal-calm #main:is(.page-closer,.page-setter) .sx-closer-notices>.sx-link:hover{background:var(--soft);text-decoration:none}
body.balanced-blue.minimal-calm #main:is(.page-closer,.page-setter) .sx-closer-notices>.sx-link:first-child::before{content:"";flex:none;width:6px;height:6px;border-radius:50%;background:var(--warn)}

/* the cash chart card: one 16px inset for title, number and plot */
body.balanced-blue.minimal-calm #main.page-closer .cl-row-chart>.hq-closer-chart{padding:16px}
body.balanced-blue.minimal-calm #main .hq-closer-chart .hq-closer-chart-head{align-items:center;padding:0}
body.balanced-blue.minimal-calm #main .hq-closer-chart-head p{font-size:12px;line-height:18px;color:var(--secondary)}
body.balanced-blue.minimal-calm #main .hq-closer-chart-modes button[aria-pressed=true]{color:var(--ink)}
body.balanced-blue.minimal-calm #main .hq-closer-chart-summary{gap:8px;margin:8px 0 0}
body.balanced-blue.minimal-calm #main .hq-closer-chart-summary strong{font-size:24px;line-height:32px;font-weight:600;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
body.balanced-blue.minimal-calm #main .hq-closer-chart-summary>span{font-size:12px;color:var(--secondary)}
body.balanced-blue.minimal-calm #main .hq-closer-chart-axis{font-size:10.5px;font-weight:500;color:var(--secondary)}
body.balanced-blue.minimal-calm #main .hq-closer-chart-gridline{border-top-color:var(--line)}
/* bars are flat pink. recurring cash is the lighter pink, cash with no type is grey */
body.balanced-blue.minimal-calm #main .hq-closer-chart-bar{border-radius:3px 3px 0 0;background:var(--accent)}
body.balanced-blue.minimal-calm #main .hq-closer-chart-bar[class*=Cash]{border-radius:0}
body.balanced-blue.minimal-calm #main :is(.hq-closer-chart-bar,.hq-closer-chart-footer i).hq-closer-chart-newCash{background:var(--accent)}
body.balanced-blue.minimal-calm #main :is(.hq-closer-chart-bar,.hq-closer-chart-footer i).hq-closer-chart-recurringCash{background:color-mix(in srgb,var(--accent) 40%,var(--surface))}
body.balanced-blue.minimal-calm #main :is(.hq-closer-chart-bar,.hq-closer-chart-footer i).hq-closer-chart-unclassifiedCash{background:var(--line-strong)}
body.balanced-blue.minimal-calm #main .hq-closer-chart-point{border-radius:4px}
body.balanced-blue.minimal-calm #main .hq-closer-chart-point>small{font-size:10.5px;font-weight:500;color:var(--secondary);font-variant-numeric:tabular-nums}
body.balanced-blue.minimal-calm #main .hq-closer-chart-footer{font-size:12px;line-height:18px;color:var(--secondary)}
body.balanced-blue.minimal-calm #main .hq-closer-chart-footer i{width:6px;height:6px;border-radius:50%;background:var(--accent)}
/* a key with one colour says nothing the title does not: only the split key (new, recurring) stays */
body.balanced-blue.minimal-calm #main .hq-closer-chart-footer:not(:has(.hq-closer-chart-legend>span+span)){display:none}
body.balanced-blue.minimal-calm #main .hq-closer-chart-empty{font-size:13px;line-height:20px;color:var(--secondary)}
/* the value shown on hover: a small card, not a dark slab */
body.balanced-blue.minimal-calm .hq-closer-chart-tooltip{padding:8px 10px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--ink);box-shadow:var(--shadow-float);font-size:12px;line-height:18px}
body.balanced-blue.minimal-calm .hq-closer-chart-tooltip>strong{font-size:12px;font-weight:600}
body.balanced-blue.minimal-calm .hq-closer-chart-tooltip>small{font-size:10.5px;font-weight:500;color:var(--secondary)}
body.balanced-blue.minimal-calm .hq-closer-chart-tooltip dl{gap:4px 16px;margin:6px 0 0}
body.balanced-blue.minimal-calm .hq-closer-chart-tooltip dt{color:var(--secondary)}

/* call outcomes: the tone stays on the dot, every meter fills in pink */
body.balanced-blue.minimal-calm #main.page-closer .cl-outcome-list{gap:0;padding:0 16px 12px}
body.balanced-blue.minimal-calm #main.page-closer .cl-outcome-list li{min-height:36px;font-size:13px}
body.balanced-blue.minimal-calm #main.page-closer .cl-outcome-label i{width:6px;height:6px}
body.balanced-blue.minimal-calm #main.page-closer .cl-outcome-bar{height:6px;background:var(--soft)}
body.balanced-blue.minimal-calm #main.page-closer .cl-outcome-bar b{background:var(--accent)}
body.balanced-blue.minimal-calm #main.page-closer .cl-outcome-list strong{font-size:13px;font-weight:600}

/* tables in a card: the header bar and the row lines share a 12px inset */
body.balanced-blue.minimal-calm #main.page-closer .cl-table{padding:0 12px 4px}
body.balanced-blue.minimal-calm #main.page-closer .cl-table .table-container{padding:0}
body.balanced-blue.minimal-calm #main.page-closer .cl-table thead th{height:32px}
body.balanced-blue.minimal-calm #main.page-closer .cl-table td{height:52px;background:transparent;font-size:13px}
body.balanced-blue.minimal-calm #main.page-closer .cl-table tbody tr:hover td{background:var(--record-hover)}
body.balanced-blue.minimal-calm #main.page-closer .cl-person{gap:10px}
body.balanced-blue.minimal-calm #main.page-closer .cl-person-text .sx-link{font-size:14px;line-height:20px;font-weight:600}
body.balanced-blue.minimal-calm #main.page-closer .cl-person-text small{font-size:12px;line-height:16px}
body.balanced-blue.minimal-calm #main.page-closer .cl-recording{min-height:28px;padding:0 10px;border:1px solid var(--line);border-radius:var(--r-control);font-size:12px;font-weight:500}
body.balanced-blue.minimal-calm #main.page-closer .cl-drill{padding:4px 16px 12px}
body.balanced-blue.minimal-calm #main.page-closer .cl-drill-head h3{font-size:13px;font-weight:600}
/* lead sources: the total is a quiet summary line, not a grey strip */
body.balanced-blue.minimal-calm #main.page-closer .minimal-source-table{border:0}
body.balanced-blue.minimal-calm #main.page-closer .minimal-source-table :is(th,td){padding-inline:10px!important}
body.balanced-blue.minimal-calm #main.page-closer .minimal-source-table tbody tr:last-child{box-shadow:none}
body.balanced-blue.minimal-calm #main.page-closer .minimal-source-table tbody tr:last-child td{background:transparent;font-weight:500}
body.balanced-blue.minimal-calm #main.page-closer .minimal-source-table tbody tr:last-child td strong{font-weight:500;color:var(--secondary)}
body.balanced-blue.minimal-calm #main.page-closer .minimal-source-link{font-size:13px;font-weight:500}

/* with one closer, the commission rate sits beside their name */
body.balanced-blue.minimal-calm #main.page-closer .sx-closer-who{display:flex;align-items:center;gap:8px}
body.balanced-blue.minimal-calm #main.page-closer .sx-closer-who .sx-rate-label{margin-left:8px;font-size:13px;color:var(--secondary)}
body.balanced-blue.minimal-calm #main.page-closer .sx-closer-who .sx-rate{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:var(--secondary)}
body.balanced-blue.minimal-calm #main.page-closer .sx-closer-who .sx-rate input{width:60px;min-height:32px;padding:3px 8px;border:1px solid var(--line);border-radius:var(--r-control);background:var(--surface);color:var(--ink);font:inherit;font-size:13px;text-align:right;font-variant-numeric:tabular-nums}

/* common objections: rows with a pink meter. the picked row is a soft grey fill with a darker hairline */
body.balanced-blue.minimal-calm #main.page-closer .minimal-objection-bar{margin:0 0 4px;padding:10px 12px;border:1px solid transparent;border-radius:var(--r-control);background:transparent}
body.balanced-blue.minimal-calm #main.page-closer .minimal-objection-bar:hover{background:var(--soft)}
body.balanced-blue.minimal-calm #main.page-closer .minimal-objection-bar[aria-pressed=true]{border-color:var(--picked-line);background:var(--picked)}
body.balanced-blue.minimal-calm #main.page-closer .minimal-objection-bar-label{font-size:13px}
body.balanced-blue.minimal-calm #main.page-closer .minimal-objection-bar-label span{font-variant-numeric:tabular-nums}
body.balanced-blue.minimal-calm #main.page-closer .minimal-objection-bar-label strong{font-weight:500}
body.balanced-blue.minimal-calm #main.page-closer .minimal-objection-bar-label small{font-size:12px;color:var(--secondary)}
body.balanced-blue.minimal-calm #main.page-closer .minimal-objection-track{height:6px;margin-top:8px;border-radius:999px;background:var(--soft)}
body.balanced-blue.minimal-calm #main.page-closer .minimal-objection-bar[aria-pressed=true] .minimal-objection-track{background:var(--surface)}
body.balanced-blue.minimal-calm #main.page-closer .minimal-objection-track>i{border-radius:999px;background:color-mix(in srgb,var(--accent) 40%,var(--surface))}
body.balanced-blue.minimal-calm #main.page-closer .minimal-objection-call-notes{margin-top:12px;border-top:1px solid var(--line);font-size:13px}
body.balanced-blue.minimal-calm #main.page-closer .minimal-objection-call-notes summary{padding:10px 0 6px;font-weight:500;color:var(--ink)}
body.balanced-blue.minimal-calm #main.page-closer .minimal-objection-evidence-calls article{padding:10px 0;border-top:1px solid var(--record-line)}
body.balanced-blue.minimal-calm #main.page-closer .minimal-objection-evidence-calls article:first-child{border-top:0}
body.balanced-blue.minimal-calm #main.page-closer .minimal-objection-evidence-calls p{margin:0 0 8px;font-size:13.5px;line-height:24px}
body.balanced-blue.minimal-calm #main.page-closer .minimal-objection-footnote{font-size:12px;color:var(--secondary)}

/* call recordings: search and list read as one card. each call is an edge to edge row */
body.balanced-blue.minimal-calm #main.page-closer .sx-record-search{gap:8px;padding:12px;border:1px solid var(--line);border-bottom:0;border-radius:var(--r-card) var(--r-card) 0 0;background:var(--surface)}
body.balanced-blue.minimal-calm #main.page-closer .sx-record-search .sx-search{min-height:32px;font-size:13px;line-height:18px}
body.balanced-blue.minimal-calm #main.page-closer .sx-record-search :is(.btn,.sx-select){min-height:32px;font-size:13px;line-height:18px}
body.balanced-blue.minimal-calm #main.page-closer .sx-recordings{border:1px solid var(--line);border-top:0;border-radius:0 0 var(--r-card) var(--r-card);background:var(--surface);overflow:hidden}
body.balanced-blue.minimal-calm #main.page-closer .sx-recording{gap:12px;padding:12px 16px;border-bottom:1px solid var(--record-line);background:transparent}
body.balanced-blue.minimal-calm #main.page-closer .sx-recording:first-child{border-top:1px solid var(--record-line)}
body.balanced-blue.minimal-calm #main.page-closer .sx-recording:last-child{border-bottom:0;border-radius:0}
body.balanced-blue.minimal-calm #main.page-closer .sx-recording:hover{background:var(--record-hover)}
body.balanced-blue.minimal-calm #main.page-closer .sx-recording:has(.sx-record-open:focus-visible){outline:2px solid var(--ring);outline-offset:-2px}
body.balanced-blue.minimal-calm #main.page-closer .sx-record-open{gap:12px;min-height:64px}
body.balanced-blue.minimal-calm #main.page-closer :is(.sx-record-preview,.sx-record-icon){border:1px solid var(--line);border-radius:var(--r-control);background:var(--soft)}
body.balanced-blue.minimal-calm #main.page-closer .sx-record-preview :is(span,small){font-size:10.5px;font-weight:500;font-variant-numeric:tabular-nums}
body.balanced-blue.minimal-calm #main.page-closer .sx-record-text{gap:2px}
body.balanced-blue.minimal-calm #main.page-closer .sx-record-text>strong{font-size:14px;line-height:20px;font-weight:600}
body.balanced-blue.minimal-calm #main.page-closer .sx-record-text>small{font-size:12px;line-height:16px;color:var(--secondary)}
/* the summary gets two lines, then stops */
body.balanced-blue.minimal-calm #main.page-closer .sx-record-text>:is(.sx-record-excerpt,p){display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;white-space:normal;font-size:12px;line-height:18px;color:var(--secondary)}
/* under the name and time: how the call ended, from its lead's post-call report (a dot and a word), then one line of why
   cut to the row with the whole note on hover. no line when the call is older than the loaded months */
body.balanced-blue.minimal-calm #main.page-closer .sx-record-result-line{display:flex;align-items:center;gap:10px;min-width:0;font-size:12px;line-height:18px}
body.balanced-blue.minimal-calm #main.page-closer .sx-record-result{--tone:var(--secondary);display:inline-flex;align-items:center;gap:6px;flex:none;font-weight:500;color:var(--ink);white-space:nowrap}
body.balanced-blue.minimal-calm #main.page-closer .sx-record-result>i{flex:none;width:6px;height:6px;border-radius:50%;background:var(--tone)}
body.balanced-blue.minimal-calm #main.page-closer .sx-record-result[data-tone=green]{--tone:var(--ok)}
body.balanced-blue.minimal-calm #main.page-closer .sx-record-result[data-tone=amber]{--tone:var(--warn)}
body.balanced-blue.minimal-calm #main.page-closer .sx-record-result[data-tone=quiet]{--tone:var(--quiet);font-weight:400;color:var(--secondary)}
body.balanced-blue.minimal-calm #main.page-closer .sx-record-why{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--secondary)}
body.balanced-blue.minimal-calm #main.page-closer .sx-recording .sx-arrow{font-size:14px;line-height:20px;color:var(--quiet)}
body.balanced-blue.minimal-calm #main.page-closer .sx-recordings:empty+.empty-state{margin:0;border:1px solid var(--line);border-top:0;border-radius:0 0 var(--r-card) var(--r-card);background:var(--surface);font-size:13px}
body.balanced-blue.minimal-calm #main.page-closer [data-sx-action="more-recordings"]{margin-top:12px}
/* the recording pop-up */
body.balanced-blue.minimal-calm #drawer .sx-fathom-player{margin:0 0 12px;border:1px solid var(--line);border-radius:var(--r-card)}
body.balanced-blue.minimal-calm #drawer .sx-record-detail{margin-top:16px;font-size:13px;line-height:20px}
body.balanced-blue.minimal-calm #drawer .sx-record-detail .sx-section{margin:0 0 12px;padding:16px;border:1px solid var(--line);border-radius:var(--r-card)}
body.balanced-blue.minimal-calm #drawer .sx-record-detail .sx-section-head :is(h2,h3){margin:0 0 8px;font-size:13px;font-weight:600;line-height:20px;color:var(--ink)}
body.balanced-blue.minimal-calm #drawer .sx-record-detail :is(p,ul){margin:6px 0;font-size:13.5px;line-height:24px;color:var(--ink)}
@media(max-width:1400px){
  /* on a narrower chart a fifth-day date right before the last date would sit on top of it */
  body.balanced-blue.minimal-calm #main.page-closer .cl-row-chart .hq-closer-chart-point:nth-child(5n):nth-last-child(2)>small{visibility:hidden}
}
@media(max-width:600px){
  body.balanced-blue.minimal-calm #main.page-closer .sx-recording{padding:12px}
  body.balanced-blue.minimal-calm #main.page-closer .sx-record-search :is(.btn,.sx-select,.sx-search){min-height:40px}
  body.balanced-blue.minimal-calm #main.page-closer .cl-table{padding-inline:8px}
}

/* ---------- g. setter ---------- */

/* outbound: its own house-style rules live in ui/discord-outbound.css */

/* the board: channel list beside the leads, 12px apart */
body.balanced-blue.minimal-calm #main .dl-board{grid-template-columns:240px minmax(0,1fr);gap:12px;font-size:13px;line-height:20px}
@media(max-width:1180px){body.balanced-blue.minimal-calm #main .dl-board{grid-template-columns:224px minmax(0,1fr)}}
@media(max-width:1100px){body.balanced-blue.minimal-calm #main .dl-board{grid-template-columns:minmax(0,1fr)}}
body.balanced-blue.minimal-calm #main .dl-board .dl-rail{top:0;border-radius:var(--r-card);box-shadow:none}
body.balanced-blue.minimal-calm #main .dl-board .dl-rail-head{min-height:0;padding:16px 12px 8px 16px}
body.balanced-blue.minimal-calm #main .dl-board .dl-rail-title{font-size:17px;line-height:24px;font-weight:600;letter-spacing:-.01em;color:var(--ink)}
body.balanced-blue.minimal-calm #main .dl-board .dl-rail-head .hq-select-trigger{min-height:28px;padding:4px 8px 4px 10px;border:1px solid var(--control-border);border-radius:var(--r-control);background:var(--surface);font-size:12px;font-weight:500;box-shadow:none}
body.balanced-blue.minimal-calm #main .dl-board .dl-rail-head .hq-select-trigger:is(:hover,[aria-expanded=true]){background:var(--soft)}
body.balanced-blue.minimal-calm #main .dl-board .dl-rail-list{scrollbar-color:var(--scroll) transparent}
body.balanced-blue.minimal-calm #main .dl-board .dl-rail-group{padding:10px 10px 4px;font-size:12.5px;font-weight:500;line-height:18px;letter-spacing:normal;color:var(--quiet)}
/* a channel row: the picked one is a soft grey fill, never a lifted card */
body.balanced-blue.minimal-calm #main .dl-board .dl-channel{border-color:transparent;font-size:14px;transition:background-color .12s}
body.balanced-blue.minimal-calm #main .dl-board .dl-channel:hover{background:var(--soft)}
body.balanced-blue.minimal-calm #main .dl-board .dl-channel.is-active{border-color:transparent;background:var(--picked);box-shadow:none;font-weight:500}
body.balanced-blue.minimal-calm #main .dl-board .dl-channel:focus-visible{outline:2px solid var(--ring);outline-offset:-2px}
body.balanced-blue.minimal-calm #main .dl-board .dl-channel-count{min-width:20px;font-size:12px;font-weight:500;color:var(--secondary)}
body.balanced-blue.minimal-calm #main .dl-board .dl-channel.is-active .dl-channel-count{color:var(--ink);font-weight:600}
/* a finished channel's tick is second ink, like the one on "all channels" */
body.balanced-blue.minimal-calm #main .dl-board .dl-channel-count.is-done{color:var(--secondary)}
body.balanced-blue.minimal-calm #main .dl-board .dl-channel:is(.is-drop-before,.is-drop-after){background:var(--soft)}
body.balanced-blue.minimal-calm #main .dl-board .dl-pic{box-shadow:inset 0 0 0 1px var(--line)}
body.balanced-blue.minimal-calm #main .dl-board .dl-pic-xs{width:20px;height:20px;border-radius:5px;font-size:8.5px}
@media(min-width:1101px){
  body.balanced-blue.minimal-calm #main .dl-board .dl-rail-list{gap:2px;padding:0 8px 8px}
  body.balanced-blue.minimal-calm #main .dl-board .dl-channel{grid-template-columns:10px 28px minmax(0,1fr) auto;gap:8px;min-height:40px;padding:4px 10px 4px 4px;border:0;border-radius:var(--r-nav)}
  body.balanced-blue.minimal-calm #main .dl-board .dl-channel .dl-pic-sm{width:28px;height:28px;border-radius:var(--r-control);font-size:11px}
  body.balanced-blue.minimal-calm #main .dl-board .dl-channel .dl-pic-sm.is-long{font-size:9.5px}
}
@media(max-width:1100px){
  body.balanced-blue.minimal-calm #main .dl-board .dl-rail-head{padding:12px 12px 4px 16px}
  body.balanced-blue.minimal-calm #main .dl-board .dl-rail-list{padding:8px 12px 12px}
  body.balanced-blue.minimal-calm #main .dl-board .dl-channel{min-height:32px;border:1px solid var(--line)}
  body.balanced-blue.minimal-calm #main .dl-board .dl-channel.is-active{border-color:var(--picked-line)}
}

/* the six numbers: label over number. "we owe a reply" keeps a red dot instead of a red slab */
body.balanced-blue.minimal-calm #main .dl-board .dl-stats{gap:12px;margin:0 0 12px}
body.balanced-blue.minimal-calm #main .dl-board .dl-stats>.sx-stat.is-alert{border-color:var(--line);background:var(--surface)}
body.balanced-blue.minimal-calm #main .dl-board .dl-stats>.sx-stat.is-alert>span{display:inline-flex;align-items:center;gap:6px;color:var(--secondary)}
body.balanced-blue.minimal-calm #main .dl-board .dl-stats>.sx-stat.is-alert>span::before{content:"";flex:none;width:6px;height:6px;border-radius:50%;background:var(--bad)}
body.balanced-blue.minimal-calm #main .dl-board .dl-stats>.sx-stat.is-alert>strong{color:var(--ink)}
body.balanced-blue.minimal-calm #main .dl-board .dl-stat-button{transition:background-color .15s,border-color .15s}
body.balanced-blue.minimal-calm #main .dl-board .dl-stat-button:hover{transform:none;background:var(--soft);box-shadow:none}
body.balanced-blue.minimal-calm #main .dl-board .dl-stats>.dl-stat-button[aria-pressed=true]{border-color:var(--picked-line);background:var(--picked);box-shadow:none}
body.balanced-blue.minimal-calm #main .dl-board .dl-stat-button:focus-visible{outline:2px solid var(--ring);outline-offset:2px}
body.balanced-blue.minimal-calm #main .dl-board .dl-stats .dl-stat-of{margin-left:6px;font-size:12px;font-weight:400;letter-spacing:normal;color:var(--secondary)}

/* status tabs and the search share one 32px row */
body.balanced-blue.minimal-calm #main .dl-board .dl-controls{gap:8px 12px;margin-bottom:12px}
body.balanced-blue.minimal-calm #main .dl-board .dl-status-tab{gap:6px;padding:0 10px}
body.balanced-blue.minimal-calm .dl-dot{flex:0 0 6px;width:6px;height:6px}
body.balanced-blue.minimal-calm #main .dl-board .dl-filters{gap:8px}
body.balanced-blue.minimal-calm #main .dl-board .dl-search{width:260px;min-height:32px;border-radius:var(--r-control);box-shadow:none}
body.balanced-blue.minimal-calm #main .dl-board .dl-filters .hq-select-trigger{min-height:32px;border-radius:var(--r-control);box-shadow:none}
body.balanced-blue.minimal-calm #main .dl-board .dl-head-actions .btn{min-height:32px;padding-inline:12px;border-radius:var(--r-control);box-shadow:none}
body.balanced-blue.minimal-calm #main .dl-board .dl-head{min-height:0;margin-bottom:12px}
body.balanced-blue.minimal-calm #main .dl-board .dl-head h2{font-size:17px;line-height:24px;font-weight:600;letter-spacing:-.01em}
body.balanced-blue.minimal-calm #main .dl-board .dl-synced{font-size:12px;line-height:18px;color:var(--secondary)}
body.balanced-blue.minimal-calm #main .dl-board .dl-synced.is-late{color:var(--bad-text)}
body.balanced-blue.minimal-calm #main .dl-board .dl-kind-row{margin:0 0 12px;font-size:13px}
body.balanced-blue.minimal-calm #main .dl-board>.dl-main>.dl-fresh{margin-bottom:12px;border-radius:var(--r-card)}
body.balanced-blue.minimal-calm #main .dl-board .dl-fresh{min-height:0;padding:10px 16px;font-size:13px}
body.balanced-blue.minimal-calm #main .dl-board .dl-fresh strong{font-weight:500}

/* the lead table: one card, a soft header bar, columns narrowed so all five fit beside the channel list */
body.balanced-blue.minimal-calm #main .dl-board .dl-table-wrap{border-radius:var(--r-card);box-shadow:none;scrollbar-color:var(--scroll) transparent}
body.balanced-blue.minimal-calm #main .dl-board .dl-table-wrap .dl-table{min-width:840px;font-size:13px}
body.balanced-blue.minimal-calm #main .dl-board .dl-table-wrap .dl-table.is-one-channel{min-width:690px}
body.balanced-blue.minimal-calm #main .dl-board .dl-table-wrap .dl-table.is-no-why{min-width:650px}
body.balanced-blue.minimal-calm #main .dl-board .dl-table-wrap .dl-table.is-one-channel.is-no-why{min-width:500px}
body.balanced-blue.minimal-calm #main .dl-board .dl-table-wrap .dl-table :is(th,td){padding-inline:8px!important}
body.balanced-blue.minimal-calm #main .dl-board .dl-table-wrap .dl-table :is(th,td):first-child{padding-left:12px!important}
body.balanced-blue.minimal-calm #main .dl-board .dl-table-wrap .dl-table :is(th,td):last-child{padding-right:12px!important}
body.balanced-blue.minimal-calm #main .dl-board .dl-table-wrap .dl-table th{height:32px;font-size:12px}
body.balanced-blue.minimal-calm #main .dl-board .dl-table-wrap .dl-table td{height:auto;padding-block:8px!important}
body.balanced-blue.minimal-calm #main .dl-board .dl-table-wrap .dl-table tbody tr:hover td{background:var(--record-hover)}
body.balanced-blue.minimal-calm #main .dl-board .dl-table .dl-cell-channel{width:150px}
body.balanced-blue.minimal-calm #main .dl-board .dl-table .dl-cell-status{width:140px}
body.balanced-blue.minimal-calm #main .dl-board .dl-table .dl-cell-why{width:196px}
body.balanced-blue.minimal-calm #main .dl-board .dl-table .dl-cell-icp{width:100px}
/* who: name in semibold, the handle and the discord shortcuts small under it */
body.balanced-blue.minimal-calm #main .dl-board .dl-creator{gap:3px}
body.balanced-blue.minimal-calm #main .dl-board .dl-name{font-size:14px;line-height:20px;font-weight:600}
body.balanced-blue.minimal-calm #main .dl-board .dl-name:hover{text-decoration-color:currentColor}
body.balanced-blue.minimal-calm #main .dl-board .dl-handle{font-size:12px;color:var(--secondary)}
body.balanced-blue.minimal-calm #main .dl-board .dl-handle .dl-action{margin-left:4px}
body.balanced-blue.minimal-calm #main .dl-board :is(.dl-copy,.dl-edit){border-radius:6px;color:var(--quiet)}
body.balanced-blue.minimal-calm #main .dl-board :is(.dl-copy,.dl-edit):hover{background:var(--soft);color:var(--ink)}
body.balanced-blue.minimal-calm #main .dl-board .dl-action{height:22px;padding:0 7px 0 5px;border:1px solid var(--line);border-radius:6px;background:transparent;color:var(--secondary);font-size:12px;font-weight:500}
body.balanced-blue.minimal-calm #main .dl-board .dl-action:hover{border-color:var(--line);background:var(--soft);color:var(--ink)}
body.balanced-blue.minimal-calm #main .dl-board .dl-action.is-chat{border-color:var(--line);color:var(--ink)}
body.balanced-blue.minimal-calm #main .dl-board .dl-action:focus-visible{outline:2px solid var(--ring);outline-offset:1px}
body.balanced-blue.minimal-calm #main .dl-board .dl-role{border-color:var(--line);color:var(--secondary);font-size:11.5px}
body.balanced-blue.minimal-calm #main .dl-board .dl-dash{color:var(--quiet)}
body.balanced-blue.minimal-calm #main .dl-board .dl-channel-tag{gap:8px}
body.balanced-blue.minimal-calm #main .dl-board .dl-channel-more{font-size:12px;color:var(--secondary)}
body.balanced-blue.minimal-calm #main .dl-board .dl-checked{font-size:11.5px;color:var(--secondary)}
/* the screenshot slot beside a name */
body.balanced-blue.minimal-calm #main .dl-board .sx-screenshot-upload{border:1px dashed var(--line-strong);border-radius:var(--r-control);color:var(--quiet)}
body.balanced-blue.minimal-calm #main .dl-board .sx-screenshot-upload:hover{border-color:var(--secondary);color:var(--ink)}
body.balanced-blue.minimal-calm #main .dl-board .sx-screenshot-thumb{border-radius:var(--r-control);box-shadow:none}
body.balanced-blue.minimal-calm #main .dl-board .sx-screenshot-thumb:hover{transform:none;box-shadow:none}
body.balanced-blue.minimal-calm #main .dl-board .sx-screenshot-cell .sx-screenshot-replace{border-color:var(--line);box-shadow:none}

/* status, conversation and icp pickers: one round outlined pill, ink words, the meaning on the dot */
body.balanced-blue.minimal-calm #main .dl-board :is(.dl-status,.dl-pill,.dl-kind-pick) .hq-select-trigger{min-height:26px;margin:0;padding:0 6px 0 9px;gap:6px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--ink);font-size:12px;font-weight:500;line-height:1;box-shadow:none;filter:none}
body.balanced-blue.minimal-calm #main .dl-board :is(.dl-status,.dl-pill,.dl-kind-pick) .hq-select-trigger:is(:hover,[aria-expanded=true]){border-color:var(--line-strong);background:var(--soft);filter:none}
body.balanced-blue.minimal-calm #main .dl-board :is(.dl-status,.dl-pill,.dl-kind-pick) .hq-select-chevron{width:12px;height:12px;color:var(--quiet);opacity:1}
body.balanced-blue.minimal-calm #main .dl-board :is(.dl-status,.dl-pill) select:not(.hq-select-native){min-height:26px;padding:0 10px;border:1px solid var(--line);border-radius:999px;background:var(--surface);font-size:12px}
body.balanced-blue.minimal-calm #main .dl-board :is(.dl-pill,.dl-kind-pick) .hq-select-trigger::before{content:"";flex:none;width:6px;height:6px;border-radius:50%;background:var(--tone,var(--line-strong))}
body.balanced-blue.minimal-calm #main .dl-board :is(.dl-pill:is(.is-icp,.is-booked),.dl-kind-pick.is-campaign){--tone:var(--ok)}
body.balanced-blue.minimal-calm #main .dl-board .dl-pill:is(.is-unsure,.is-replied){--tone:var(--warn)}
body.balanced-blue.minimal-calm #main .dl-board .dl-pill:is(.is-not-icp,.is-late){--tone:var(--bad)}
body.balanced-blue.minimal-calm #main .dl-board .dl-pill.is-talking{--tone:var(--info)}
/* nothing picked yet: a dashed outline and a quiet dash */
body.balanced-blue.minimal-calm #main .dl-board .dl-pill.is-none .hq-select-trigger{border-style:dashed;border-color:var(--line-strong);background:transparent;color:var(--secondary);font-weight:400}
body.balanced-blue.minimal-calm #main .dl-board .dl-pill.is-none .hq-select-trigger::before{content:none}
body.balanced-blue.minimal-calm #main .dl-board .dl-pill.is-old .hq-select-trigger{color:var(--secondary)}
/* why a lead is do not dm, and the pitched / qualified marks */
body.balanced-blue.minimal-calm #main .dl-board .dl-tag{height:22px;padding:0 8px;border:1px solid var(--line);background:var(--surface);color:var(--secondary);font-size:12px;font-weight:500}
body.balanced-blue.minimal-calm #main .dl-board .dl-stage{gap:5px;height:20px;padding:0 7px;border:1px solid var(--line);background:var(--surface);color:var(--secondary);font-size:11.5px;font-weight:500}
body.balanced-blue.minimal-calm #main .dl-board .dl-stage.is-qualified{border-color:var(--line);background:var(--surface);color:var(--ink)}
body.balanced-blue.minimal-calm #main .dl-board .dl-stage.is-qualified::before{content:"";flex:none;width:5px;height:5px;border-radius:50%;background:var(--ok)}

/* under the table, the empty state and the undo bar */
body.balanced-blue.minimal-calm #main .dl-board .dl-foot{min-height:32px;margin-top:12px;font-size:12px;line-height:18px;color:var(--secondary)}
body.balanced-blue.minimal-calm #main .dl-board .dl-empty{gap:4px;padding:48px 16px;border:1px dashed var(--line);border-radius:var(--r-card);background:color-mix(in srgb,var(--soft) 40%,transparent);font-size:12px;line-height:18px;color:var(--secondary)}
body.balanced-blue.minimal-calm #main .dl-board .dl-empty strong,
body.balanced-blue.minimal-calm #main .dl-board .dl-empty.is-done strong{font-size:14px;font-weight:500;line-height:20px;color:var(--ink)}
body.balanced-blue.minimal-calm #main .dl-board .dl-undo{gap:12px;padding:6px 6px 6px 14px;border:1px solid var(--line);border-radius:var(--r-card);box-shadow:var(--shadow-float);font-size:13px;line-height:20px}
body.balanced-blue.minimal-calm #main .dl-board .dl-undo-button{min-height:28px;padding:0 10px;border:1px solid var(--line);border-radius:var(--r-control);background:transparent;font-size:12px;font-weight:500;box-shadow:none}
body.balanced-blue.minimal-calm #main .dl-board .dl-undo-button:hover{background:var(--soft)}

/* the bulk screenshot pop-up */
body.balanced-blue.minimal-calm .hq-drawer .dl-bulk{gap:12px;font-size:13px;line-height:20px}
body.balanced-blue.minimal-calm .hq-drawer .dl-bulk-lead{font-size:14px;line-height:20px}
body.balanced-blue.minimal-calm .hq-drawer .dl-bulk-lead strong,
body.balanced-blue.minimal-calm .hq-drawer .dl-bulk-lead.is-done strong{font-size:24px;line-height:32px;font-weight:600;color:var(--ink)}
body.balanced-blue.minimal-calm .hq-drawer :is(.dl-bulk-note,.dl-bulk-note.is-warn){gap:4px;padding:10px 14px;border:1px solid var(--line);border-radius:var(--r-card);background:var(--surface)}
body.balanced-blue.minimal-calm .hq-drawer .dl-bulk-note.is-warn strong::before{content:"";display:inline-block;width:6px;height:6px;margin-right:8px;border-radius:50%;background:var(--warn);vertical-align:2px}
body.balanced-blue.minimal-calm .hq-drawer .dl-bulk-files li{padding:1px 8px;border-radius:999px;box-shadow:inset 0 0 0 1px var(--line)}
body.balanced-blue.minimal-calm .hq-drawer .dl-bulk-progress{box-shadow:none}
body.balanced-blue.minimal-calm .hq-drawer .dl-bulk-actions .btn{min-height:36px}
@media(max-width:700px){
  body.balanced-blue.minimal-calm #main .dl-board .dl-stats{margin-bottom:12px}
  body.balanced-blue.minimal-calm #main .dl-board :is(.dl-filters,.dl-search){width:100%}
  body.balanced-blue.minimal-calm #main .dl-board .dl-search{min-height:36px}
  body.balanced-blue.minimal-calm #main .dl-board .dl-status-tab{padding-inline:6px}
}

/* ---------- h. payments ---------- */

/* tabs and "match payments" share one 32px row */
body.balanced-blue.minimal-calm #main.page-payments .sx-payment-navigation{gap:8px;margin:0 0 12px}
body.balanced-blue.minimal-calm #main.page-payments .sx-payment-navigation>.page-tabs{margin-bottom:0}
body.balanced-blue.minimal-calm #main.page-payments .sx-payment-tools .btn{min-height:32px;padding:6px 12px;border-radius:var(--r-control);font-size:13px}
body.balanced-blue.minimal-calm #main.page-payments .sx-payment-tools .btn.active{border-color:var(--picked-line);background:var(--picked);box-shadow:none}
/* the card: title with its total at the right, one toolbar row, the table inset once */
body.balanced-blue.minimal-calm #main.page-payments .sx-payment-card{padding:16px 16px 8px}
body.balanced-blue.minimal-calm #main.page-payments .sx-payment-card-heading{margin-bottom:12px}
body.balanced-blue.minimal-calm #main.page-payments .sx-payment-card-heading :is(h2,strong){font-size:17px;line-height:24px;font-weight:600;letter-spacing:-.01em;color:var(--ink);font-variant-numeric:tabular-nums}
body.balanced-blue.minimal-calm #main.page-payments .sx-payment-caveat{margin:-6px 0 12px;font-size:12px;line-height:18px}
body.balanced-blue.minimal-calm #main.page-payments .sx-payment-card .sx-toolbar{gap:8px;padding:0 0 12px}
body.balanced-blue.minimal-calm #main.page-payments .sx-payment-card .sx-filters{gap:8px}
body.balanced-blue.minimal-calm #main.page-payments .sx-payment-card .sx-table-wrap,
body.balanced-blue.minimal-calm #main.page-payments .sx-payment-card .sx-table-wrap>.table-container{padding:0;border:0}
body.balanced-blue.minimal-calm #main.page-payments .minimal-payments-table thead{box-shadow:none}
body.balanced-blue.minimal-calm #main.page-payments .minimal-payments-table :is(th,td){font-size:13px}
body.balanced-blue.minimal-calm #main.page-payments .minimal-payments-table td{height:52px}
body.balanced-blue.minimal-calm #main.page-payments .minimal-payments-surface tbody tr:hover td{background:var(--record-hover)}
body.balanced-blue.minimal-calm #main.page-payments .minimal-payments-table .minimal-payment-person{gap:10px}
body.balanced-blue.minimal-calm #main.page-payments .minimal-payment-name{font-size:14px;line-height:20px;font-weight:600}
body.balanced-blue.minimal-calm #main.page-payments .minimal-payment-date-cell{color:var(--secondary)!important}
body.balanced-blue.minimal-calm #main.page-payments .minimal-payment-amount-cell .sx-inline-cash{width:112px;max-width:100%}
/* payment type is plain words. a pill with no dot adds nothing */
body.balanced-blue.minimal-calm #main.page-payments .minimal-payment-ledger .sx-badge{min-height:0;padding:0;border:0;border-radius:0;background:transparent;color:var(--ink);font-size:13px;font-weight:400}
body.balanced-blue.minimal-calm #main.page-payments .minimal-payment-state{color:var(--ink);font-size:13px}
/* a late date keeps ink words behind a red dot */
body.balanced-blue.minimal-calm #main .sx-overdue{display:inline-flex;align-items:center;gap:6px;color:var(--ink)}
body.balanced-blue.minimal-calm #main .sx-overdue::before{content:"";flex:none;width:6px;height:6px;border-radius:50%;background:var(--bad)}
/* matching a payment */
body.balanced-blue.minimal-calm #drawer .pl-receipt{padding:4px 0 16px}
body.balanced-blue.minimal-calm #drawer .pl-receipt>strong{font-size:24px;line-height:32px;font-weight:600;letter-spacing:-.02em}
body.balanced-blue.minimal-calm #drawer .pl-receipt p{margin:6px 0;font-size:13px;line-height:20px;color:var(--secondary)}
body.balanced-blue.minimal-calm #drawer .pl-match{gap:14px}
body.balanced-blue.minimal-calm #drawer .pl-match [role=alert]{color:var(--bad-text)}
body.balanced-blue.minimal-calm #drawer .pl-match .btn{min-height:36px}
@media(max-width:650px){
  body.balanced-blue.minimal-calm #main.page-payments .sx-payment-card{padding:12px 12px 4px}
  body.balanced-blue.minimal-calm #main.page-payments .sx-payment-tools .btn{min-height:36px}
}

/* ---------- i. simplify pass (2026-10-03) ---------- */

/* closer: the new cash card repeated the new cash tile right above it in big type. the tile keeps the number */
body.balanced-blue.minimal-calm #main.page-closer .hq-closer-chart-summary{display:none}
/* the bars take the room it left, so the card still ends level with call outcomes beside it */
body.balanced-blue.minimal-calm #main.page-closer :is(.hq-closer-chart-axis,.hq-closer-chart-plot){height:210px}
/* recent closes: a close with no recording or no source leaves its cell empty, not a dash */
body.balanced-blue.minimal-calm #main .cl-closes-table td>.cl-muted{display:none}

/* leads and payments: the cash in a row reads as a number, like the dashboard's tables. the box shows when you
   point at it or type in it */
body.balanced-blue.minimal-calm #main td input.sx-inline-cash{border-color:transparent;background:transparent}
body.balanced-blue.minimal-calm #main td input.sx-inline-cash:is(:hover,:focus):not(:disabled){border-color:var(--line-strong);background:var(--surface)}

/* payments: the card's title said the tab's name again, and what is still owed is the remaining tile */
body.balanced-blue.minimal-calm #main.page-payments .sx-payment-card-heading{display:none}
/* the overdue tile opens to collect filtered to the late ones */
body.balanced-blue.minimal-calm #main.page-payments .sx-stat-button{font:inherit;text-align:left;cursor:pointer;transition:background-color .15s,border-color .15s}
body.balanced-blue.minimal-calm #main.page-payments .sx-stat-button:hover{background:var(--soft)}
body.balanced-blue.minimal-calm #main.page-payments .sx-stat-button[aria-pressed=true]{border-color:var(--picked-line);background:var(--picked)}
body.balanced-blue.minimal-calm #main.page-payments .sx-stat-button:focus-visible{outline:2px solid var(--ring);outline-offset:2px}
/* to collect: late and due today, then everyone due later behind one fold. both tables share their column widths */
body.balanced-blue.minimal-calm #main.page-payments .sx-owed-table table{table-layout:fixed;width:100%}
body.balanced-blue.minimal-calm #main.page-payments .sx-owed-table :is(th,td):nth-child(1){width:42%}
body.balanced-blue.minimal-calm #main.page-payments .sx-owed-table :is(th,td):nth-child(2){width:18%}
body.balanced-blue.minimal-calm #main.page-payments .sx-owed-table :is(th,td):nth-child(3){width:22%}
body.balanced-blue.minimal-calm #main.page-payments .sx-collect-later{margin:4px 0 8px;border-top:1px solid var(--record-line)}
body.balanced-blue.minimal-calm #main.page-payments .sx-collect-later>summary{display:flex;align-items:center;gap:8px;min-height:44px;padding:0 12px;font-size:13px;font-weight:500;color:var(--secondary);cursor:pointer;list-style:none}
body.balanced-blue.minimal-calm #main.page-payments .sx-collect-later>summary::-webkit-details-marker{display:none}
body.balanced-blue.minimal-calm #main.page-payments .sx-collect-later>summary::before{content:"";width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);transition:transform .15s}
body.balanced-blue.minimal-calm #main.page-payments .sx-collect-later[open]>summary::before{transform:rotate(45deg)}
body.balanced-blue.minimal-calm #main.page-payments .sx-collect-later>summary:hover{color:var(--ink)}
/* the folded list keeps its column names for screen readers only; the list above already shows them */
body.balanced-blue.minimal-calm #main.page-payments .sx-table-wrap+.sx-collect-later thead{box-shadow:none}
body.balanced-blue.minimal-calm #main.page-payments .sx-table-wrap+.sx-collect-later thead th{height:0!important;padding-block:0!important;border:0!important;background:transparent!important;font-size:0;line-height:0;overflow:hidden}
/* to collect on a phone: no sideways scroll on the default tab. each person is two lines, name and what's left, then
   when it was due (how late, with its dot) and a status pill when there is one */
@media(max-width:640px){
  body.balanced-blue.minimal-calm #main.page-payments .sx-owed-table :is(.table-container,table,tbody){display:block;width:100%;min-width:0;overflow:visible}
  body.balanced-blue.minimal-calm #main.page-payments .sx-owed-table thead{display:none}
  body.balanced-blue.minimal-calm #main.page-payments .sx-owed-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:12px;row-gap:2px;padding:10px 4px;border-bottom:1px solid var(--record-line)}
  body.balanced-blue.minimal-calm #main.page-payments .sx-owed-table tr:last-child{border-bottom:0}
  body.balanced-blue.minimal-calm #main.page-payments .sx-owed-table td{display:block;width:auto!important;min-width:0!important;height:auto;min-height:0;padding:0!important;border:0!important;background:none}
  body.balanced-blue.minimal-calm #main.page-payments .sx-owed-table td:nth-child(1){grid-column:1;grid-row:1;overflow:hidden}
  body.balanced-blue.minimal-calm #main.page-payments .sx-owed-table td:nth-child(2){grid-column:2;grid-row:1;text-align:right}
  body.balanced-blue.minimal-calm #main.page-payments .sx-owed-table td:nth-child(3){grid-column:1;grid-row:2;padding-left:36px!important;font-size:13px;color:var(--secondary)}
  body.balanced-blue.minimal-calm #main.page-payments .sx-owed-table td:nth-child(4){grid-column:2;grid-row:2;justify-self:end}
  body.balanced-blue.minimal-calm #main.page-payments .sx-owed-table td:nth-child(4):empty{display:none}
}
/* match payments: the refresh sits at the right */
body.balanced-blue.minimal-calm #main.page-payments .sx-payment-card .sx-section-head:not(:has(h2)){justify-content:flex-end}

/* leads: the "call needs an outcome" notice already has the house dot in front, so the page's own dot goes */
body.balanced-blue.minimal-calm :is(#main,#drawer) :is(.sx-attention,.pl-notice) .sx-dot{display:none}
/* leads: the table fits the page at 1440 instead of hiding the status column behind a sideways scroll. the name
   column gives up its fixed width and the last column wraps; narrower windows still scroll */
body.balanced-blue.minimal-calm #main.page-leads .sx-lead-table table{min-width:0}
body.balanced-blue.minimal-calm #main.page-leads .sx-lead-table .sx-inline-name{width:150px;min-width:0}
body.balanced-blue.minimal-calm #main.page-leads .sx-lead-table td:last-child{white-space:normal}

/* setter: outbound is a title and its one button while the queue is shut, not a card holding them */
body.balanced-blue.minimal-calm #main .do-outbound:has(.do-toggle[aria-expanded=false]){padding:0;border:0;background:transparent}
/* "dms checked 5m ago" is a last-checked line. a late check stays, in red, and so does "not checked yet" */
body.balanced-blue.minimal-calm #main .dl-board .dl-synced[title]:not(.is-late){display:none}

@media(prefers-reduced-motion:reduce){
  body.balanced-blue.minimal-calm #main.page-home :is(.ho-close-row,.ho-payment-row),
  body.balanced-blue.minimal-calm #main .dl-board :is(.dl-channel,.dl-stat-button),
  body.balanced-blue.minimal-calm #drawer :is(.sx-call-result,.sx-call-money) .sx-call-answer label{transition:none}
}
