/* Additions the real application needs that the prototype did not have.
   Built only from the prototype's tokens and component vocabulary (cards, pills,
   buttons, .sub/.k type), so new elements read as part of the approved design.
   No inline styles anywhere: the site's Content-Security-Policy forbids them. */

.visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

.case-closure{min-width:0;overflow-wrap:anywhere}
.case-closure form{display:grid;gap:8px;min-width:0}
.case-closure textarea,.case-closure select{box-sizing:border-box;width:100%;min-width:0;max-width:100%}

.case-purpose-label{display:block;margin-top:12px}
.case-purpose-fields{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.case-purpose-field{min-width:0}
.case-purpose-field h2{font-size:15px;line-height:21px;margin:0 0 6px}
.case-purpose-text{font-size:14px;line-height:21px;overflow-wrap:anywhere;white-space:pre-wrap}
.case-purpose-note{margin:12px 0 0;border-top:1px solid var(--line);padding-top:10px}
@media(max-width:760px){.case-purpose-fields{grid-template-columns:1fr;gap:16px}}

/* Preview bar: same look as the prototype's top note bar (.proto). */
.proto a{color:inherit;font-weight:600}

/* Account control in the header: prototype icon button + a panel in the style of
   the prototype's search results panel */
.acct{position:relative;flex:none}
.acct-panel{position:absolute;top:50px;right:0;z-index:30;min-width:220px;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.12);padding:12px;display:flex;flex-direction:column;gap:6px}
.acct-panel[hidden]{display:none}
.acct-panel .name{color:var(--ink);font-weight:600;overflow-wrap:anywhere;margin-bottom:6px}

/* Bell badge for "at least" counts when the page of notifications was not complete */
.ibadge.more{background:var(--surface);color:var(--orange);border:1.5px solid var(--orange);line-height:16px}

/* Search results: a note row for honest coverage */
.results .note{padding:8px 10px;font-size:12px;color:var(--muted);border-top:1px solid var(--hair);margin-top:4px}
.results .err{padding:8px 10px;font-size:13px;color:var(--crit)}
.results .group{padding:8px 10px 2px}
.results .empty.small{padding:6px 10px;text-align:left;font-size:13px}
.results .more{padding:2px 10px 6px;font-size:12px;color:var(--muted)}

/* Sign-in: a single centred card in the prototype's card style */
.signin{max-width:440px;width:100%;margin:48px auto 0;display:flex;flex-direction:column;gap:16px}
.signin h1{font-size:26px;line-height:32px}
.signin form{display:flex;flex-direction:column;gap:14px}
.signin input[type=email],.signin input[type=password]{border:1px solid var(--control);border-radius:var(--r-ctl);background:var(--surface);padding:9px 12px;font-size:15px;line-height:22px;min-width:0;width:100%}
.signin .btn{width:100%}

/* Messages */
.alert{border-radius:12px;padding:10px 14px;font-size:14px;line-height:20px;background:var(--crit-bg);color:var(--crit);border:1px solid var(--crit-line)}
.notice{border-radius:12px;padding:10px 14px;font-size:14px;line-height:20px;background:var(--note);color:var(--ink);border:1px solid var(--line)}

/* Screens still being rebuilt */
.pending{display:flex;flex-direction:column;gap:14px}
.pending .actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:4px}
.pending ul{margin:0;padding-left:20px;color:var(--muted);font-size:14px;line-height:21px}
.pagehead{display:flex;flex-direction:column;gap:4px}

@media (max-width:760px){
  .topin{padding-inline:16px;gap:12px;flex-wrap:wrap}
  .topright{gap:8px}
  main{padding-inline:16px}
  .signin{margin-top:24px}
}

/* ---------- Today and My work (steps 2-3) ----------
   The prototype set these with inline styles; the same values live here as classes. */
.todayhead{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;flex-wrap:wrap}
.dayhead{font-size:34px;line-height:40px;font-weight:800;letter-spacing:.04em;color:var(--head);margin:0}
.greet{font-size:16px;margin:6px 0 0}
.asof{text-align:right}
.slide-main{display:flex;flex-direction:column;gap:8px;min-width:0}
.slide-head{font-size:26px;font-weight:800;line-height:32px}
.slide-why{font-size:15px;line-height:22px}
.slide-flag{display:flex;align-items:center;gap:12px;margin-top:auto;flex-wrap:wrap}
.linkbtn.onband{color:var(--on-orange)}
.side-head{font-size:17px;font-weight:600}
.side-sub{font-size:13px;line-height:19px;color:var(--on-orange-soft)}
.bandbtns{display:flex;flex-direction:column;gap:10px}
.bandnav{width:38px;padding:0;justify-content:center}
.bandnote{font-size:13px;color:var(--on-orange-soft);margin-left:auto}
.band-empty{font-size:22px;font-weight:800;line-height:28px}
.tile-crit{border-top:4px solid var(--crit)}
.tile-attn{border-top:4px solid var(--attn)}
.tile-money{border-top:4px solid var(--pend)}
.tile-later{border:1px dashed var(--control);box-shadow:none}
.later,.unknown{font-size:20px;font-weight:600;line-height:26px;color:var(--unk)}
.money-status{font-size:20px;font-weight:700;line-height:26px;color:var(--head)}
.money-lines{margin:0;padding-left:18px;font-size:14px;line-height:21px}
.tile .src{align-self:flex-start}
.today-promises .src{white-space:normal;max-width:100%;overflow-wrap:anywhere}
.today-promises nav{display:flex;flex-wrap:wrap;gap:8px}
.cardhead{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap}
.cardhead h2{margin:0}
.card>.cardhead+.sub{margin-top:2px}
.stack{gap:12px}
.sources{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.sources .k{margin-right:4px}
.li .problem{font-size:14px;line-height:20px;margin-top:3px}
.queue{padding-top:6px}
.workhead{flex-direction:row;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap}
.workhead h1{margin:0}
.tab .pill{margin-left:4px}
.pager{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.pager .actions{display:flex;gap:10px}

@media (max-width:760px){
  .dayhead{font-size:26px;line-height:32px}
  .asof{text-align:left}
  .bandnote{margin-left:0;flex-basis:100%}
  .bandbtns{flex-direction:row}
  .slide-head{font-size:22px;line-height:28px}
  /* Case rows: both pills share the first line, the case text gets the full width below. */
  .li.caserow{flex-wrap:wrap;row-gap:8px}
  .li.caserow>.pill:last-child{margin-left:auto}
  .li.caserow>.grow{order:3;flex-basis:100%}
}

/* ---------- Case workspace (step 4) ----------
   The prototype's inline styles for viewCase, as classes. */
.casehead{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap}
.casetitle{min-width:0;max-width:820px}
.casetitle h1{margin:6px 0 0;font-size:20px;line-height:28px;font-weight:600;overflow-wrap:anywhere}
.caseclient{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 12px;margin-top:12px}
.caseclient-name{font-size:24px;line-height:32px;font-weight:600;color:var(--head);overflow-wrap:anywhere;min-width:0}
.caseclient .viewclient{font-size:14px}
.casesum{margin:6px 0 0;max-width:760px;font-size:15px;line-height:22px;color:var(--ink)}
.casepills{display:flex;gap:8px;flex-wrap:wrap}
.ownership{display:flex;flex-direction:column;gap:16px}
.casebandrow{flex-direction:column;align-items:stretch;gap:14px}
.casebandrow .bandmain{min-width:0}
.casebandrow .bandhead{font-size:15px;line-height:23px;font-weight:400}
.ownership .roles{grid-template-columns:repeat(4,minmax(0,1fr));row-gap:16px}
.ownership .role:nth-child(4){border-left:1px solid var(--hair);padding-left:14px}
.ownership .case-detail-role{grid-column:span 2;border-top:1px solid var(--hair);padding-top:12px}
.ownership .case-detail-role:nth-child(5){border-left:0;padding-left:0}
.ownership .role-text .disclose-text{font-size:14px;line-height:21px;font-weight:400}
@media(max-width:760px){
  .ownership .roles{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ownership .role:nth-child(4){border-left:0;padding-left:0}
  .ownership .case-detail-role{border-left:0;padding-left:0}
  .caseclient-name{font-size:22px;line-height:30px}
}
.bandmain{flex:1;min-width:260px;display:flex;flex-direction:column;gap:6px}
.bandhead{font-size:22px;font-weight:800;line-height:28px}
.bandtext{font-size:14px;line-height:21px;max-width:760px}
.bandact{display:flex;gap:10px;flex-wrap:wrap}
.actionmsg:empty{display:none}
.actionmsg{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.actionmsg .msg{font-size:14px;line-height:20px;font-weight:600;border-radius:10px;padding:6px 12px;background:var(--surface);color:var(--ink)}
.actionmsg .msg.ok{background:var(--ok-bg);color:var(--ok)}
.actionmsg .msg.warn{background:var(--attn-bg);color:var(--attn)}
.actionmsg .msg.err{background:var(--crit-bg);color:var(--crit)}
.caseg{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 320px;grid-template-rows:auto auto 1fr}
.caseg>.composer{align-self:start}
.fuside{display:flex;flex-direction:column;align-items:flex-end;gap:8px;flex-shrink:0}
.caseside{grid-row:span 3;display:flex;flex-direction:column;gap:12px;min-width:0}
.case-tools{font-size:14px;line-height:21px;overflow-wrap:anywhere}
.case-tools .card{padding:16px;border-radius:14px;min-width:0}
.case-tools h2,.case-tools h3{font-size:16px;line-height:22px;font-weight:600;margin:0 0 8px}
.case-tools h2.k{letter-spacing:0;text-transform:none}
.case-tools p{margin:8px 0;font-size:14px;line-height:21px}
.case-tools .sub{font-size:13px;line-height:19px}
.case-tools .cardhead{gap:8px;align-items:center}
.case-tools .cardhead h2{margin:0}
.case-tools .btn{font-size:13px;line-height:18px;padding:7px 10px;white-space:normal;max-width:100%}
.case-tools .closesteps{border:0;border-top:1px solid var(--line);border-radius:0;padding:10px 0 0}
.case-tools .closesteps li{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.case-tools .disclose-text{font-weight:400;margin:0}
.case-side-group{border:1px solid var(--line);border-radius:14px;background:var(--surface);min-width:0}
.case-side-group>summary{padding:14px 16px;cursor:pointer;border-radius:14px}
.case-side-title{font-size:15px;font-weight:600;line-height:22px}
.case-side-group>summary>.sub{display:block;margin-top:4px}
.case-side-group[open]>summary{border-bottom:1px solid var(--line);border-radius:14px 14px 0 0}
.case-side-body>.card{border:0;border-radius:0;background:transparent}
.case-side-body>.card+.card{border-top:1px solid var(--line)}
.case-tools .card .card{padding:12px 0 0;margin-top:12px;border:0;border-top:1px solid var(--line);border-radius:0;background:transparent}
.case-tools .helpcheck{display:flex;flex-direction:column;gap:12px;min-width:0;border-top:1px solid var(--line);margin-top:12px;padding-top:12px}
.case-tools .helpcheck .field input,.case-tools .helpcheck .field select,.case-tools .helpcheck .field textarea{width:100%;min-width:0;max-width:100%;box-sizing:border-box}
.case-tools .helpcheck .row{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;flex-wrap:wrap;overflow-wrap:anywhere}
.case-tools .helpcheck .row>div{min-width:0}
.teamlog{display:flex;flex-direction:column;gap:4px}
.notebody{white-space:pre-wrap;overflow-wrap:anywhere;margin-top:2px}
.teamlog .lg{grid-template-columns:72px minmax(0,1fr)}
.logtime{display:flex;flex-direction:column}
.logday{font-size:12px;line-height:16px}
.empty-log{padding:10px 0}
.card .row{font-size:14px}
.closesteps{list-style:none;margin:10px 0 0;padding:10px 12px;border:1px solid var(--line);border-radius:10px;display:flex;flex-direction:column;gap:6px;font-size:13px;line-height:18px}
.closesteps li{display:flex;justify-content:space-between;gap:8px}
.caseg>.case-specialists{grid-column:1 / 3;align-self:start}
.caseg>.composer{grid-column:1 / 3;display:flex;flex-direction:column;gap:12px}
.composer-modes{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.composer-modes .k{margin-right:4px}
a.mode{display:inline-flex;align-items:center;text-decoration:none;color:var(--ink)}
.dest{margin:0;font-size:14px;line-height:20px}
.composer textarea{border:1px solid var(--control);border-radius:var(--r-ctl);background:var(--surface);padding:9px 12px;font:inherit;font-size:15px;line-height:22px;min-height:84px;resize:vertical;width:100%}
.composer-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
@media (max-width:1100px){
  .caseg>.composer,.caseg>.case-specialists{grid-column:auto}
  .caseside{grid-row:auto}
  .caseg{grid-template-rows:none}
}
.bandact .btn{white-space:normal;text-align:center}
@media (max-width:760px){
  .bandact{flex-direction:column;align-items:stretch;width:100%}
}

/* ---------- Case dialogs (step 4b): the prototype's .modal, with its inline styles as classes ---------- */
.casemodal{width:min(560px,100%);max-height:calc(100vh - 32px);overflow-y:auto}
.casemodal h2{margin:0}
.casemodal textarea,.casemodal input[type=text],.casemodal input[type=search],.casemodal input[type=datetime-local],.casemodal input[type=date],.casemodal input[type=time],.casemodal select{border:1px solid var(--control);border-radius:var(--r-ctl);background:var(--surface);padding:9px 12px;font:inherit;font-size:15px;line-height:22px;width:100%;min-width:0}
.casemodal textarea{min-height:84px;resize:vertical}
.choice{border:0;margin:0;padding:0;display:flex;flex-direction:column;gap:6px;min-width:0}
.choice .option{display:flex;align-items:flex-start;gap:8px;font-size:14px;line-height:20px;overflow-wrap:anywhere}
.choice .option input{margin-top:3px;accent-color:var(--orange)}
/* New case (case-new.js): "The person is not a confirmed client yet" and client results ("<name> · <ref>") are wider
   than a 320px card, and the shared .btn never wraps (N1 surfaces run: 56px page overflow at 320). Here a button keeps
   its whole label, wraps inside the card and keeps its height for a one-line label (44px; 36px small). */
.case-new .btn{max-width:100%;height:auto;min-height:44px;padding-block:10px;line-height:22px;white-space:normal;text-align:center}
.case-new .btn.btn-sm{min-height:36px;padding-block:7px;line-height:20px}
.pickrow{display:flex;gap:8px}
.modalfoot{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}
.casemodal .actionmsg .msg{background:var(--ground)}
.casemodal .actionmsg .msg.ok{background:var(--ok-bg)}
.casemodal .actionmsg .msg.warn{background:var(--attn-bg)}
.casemodal .actionmsg .msg.err{background:var(--crit-bg)}
/* A step whose time or occurrence is unknown (history unreadable or not in the latest page). */
.steps li.unknown{border-top-style:dashed;border-top-color:var(--unk)}
/* Client conversation and reply drafts (step 4c, D1/A11). */
.convo{display:flex;flex-direction:column;gap:10px}
.convo .bin,.convo .bout{overflow-wrap:anywhere}
.convo .coverage{margin:0}
.drafts{display:flex;flex-direction:column;gap:8px;border-top:1px solid var(--hair);padding-top:10px}
.draft{display:flex;flex-direction:column;gap:6px;align-items:flex-start;background:var(--ground);border:1px dashed var(--control);border-radius:10px;padding:10px 12px;font-size:14px;line-height:20px}
.draft .meta{display:flex;flex-wrap:wrap;gap:6px}
.drafts[hidden],.draft[hidden]{display:none}
.replyeditor{display:flex;flex-direction:column;gap:12px}
.replypick{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
.replyeditor select,.replyeditor textarea{border:1px solid var(--control);border-radius:var(--r-ctl);background:var(--surface);padding:9px 12px;font:inherit;font-size:15px;line-height:22px;width:100%;min-width:0;color:var(--ink)}
.replyeditor textarea{min-height:84px;resize:vertical}
@media (max-width:760px){.replypick{grid-template-columns:minmax(0,1fr)}}
/* Same-day payment promises (step 4c, A9). */
.promises .notebody{margin-top:4px}
.review{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:6px 14px;margin:4px 0}
.review dt{color:var(--muted);font-size:13px;line-height:20px}
.review dd{margin:0;font-size:14px;line-height:20px;overflow-wrap:anywhere}
.option.confirm{font-weight:600}
@media (max-width:760px){.review{grid-template-columns:minmax(0,1fr)}.review dd{margin-bottom:6px}}
.promises .li{flex-direction:column;gap:6px}
.promises .fuside{flex-direction:row;flex-wrap:wrap;align-items:center}

/* Case readability (case-disclosure.js): compact previews and bounded record lists. New and Case-only; colours use the existing tokens, so light and dark follow the theme. */
.disclose{min-width:0;max-width:100%}
.disclose-text{margin:0;min-width:0;max-width:100%;overflow-wrap:anywhere;word-break:break-word;white-space:pre-wrap}
.disclose-text:not(.expanded){display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}
.disclose-toggle{display:inline-flex;align-items:center;justify-content:flex-start;min-height:36px;margin:2px 0 0;padding:4px 2px;border:0;border-radius:6px;background:transparent;box-shadow:none;color:var(--link);font:inherit;font-size:13px;line-height:18px;font-weight:600;text-decoration:underline;cursor:pointer}
.disclose-toggle[hidden]{display:none}
.disclose-toggle:focus-visible{outline:3px solid var(--link);outline-offset:2px}
.band .disclose-toggle{color:var(--on-orange)}
.band .disclose-toggle:focus-visible{outline-color:var(--on-orange)}
.bandhead-box .disclose-text{font:inherit}
.ownership .role-text{margin-top:2px}
.ownership .role-text strong,.ownership strong.disclose-text{font-size:16px;line-height:22px;color:var(--head)}
.ownership .recorded-label{margin-top:6px}
.evsum{font-weight:700}
.casesum.disclose{margin:6px 0 0}
.bounded-count{margin:8px 0 0}
.bounded-rest[hidden]{display:none}
@media(max-width:760px){.disclose-toggle{min-height:44px}}

/* ---------- Header on phones (shell) ----------
   Find a client or case stays visible: row 1 is the logo and the icon buttons, row 2 is
   the search at full width, row 3 is the menu. Same control and styling as desktop. */
@media (max-width:760px){
  .topright{display:contents}
  .topin>.logo{order:1}
  .topright>:not(.search){order:2}
  .topright>:first-child{margin-left:auto}
  .topright>.search{order:3;flex:1 0 100%;min-width:0}
  .search input{width:100%;min-width:0}
  .results{min-width:0}
  .nav{order:4}
}

/* Case page: matching summary (source record). */
.sourcematch{display:flex;flex-direction:column;gap:6px;min-width:0;overflow-wrap:anywhere}
.sourcematch ul{margin:0;padding-left:18px}

/* ---------- Conversations: compact bubbles (Case, Client account) and the composer mode buttons ---------- */
/* Scoped to .convo / .composer-modes so no other control changes. Colours are the existing tokens, so light and dark follow the theme. */
.convo .cthread{display:flex;flex-direction:column;gap:8px;min-width:0}
.convo .cmsg{display:flex;flex-direction:column;gap:2px;max-width:min(92%,640px);min-width:0;padding:8px 12px;font-size:14px;line-height:20px;overflow-wrap:anywhere}
.convo .cmsg.cout{align-self:flex-end}
.convo .cmsg.cin{align-self:flex-start}
.convo .cmsg.cpilot{border-style:dashed}
.convo .cmeta{display:flex;flex-wrap:wrap;align-items:center;gap:2px 8px;margin:0;font-size:12px;line-height:18px;color:var(--muted)}
.convo .cmeta .who{font-weight:600;color:var(--ink);overflow-wrap:anywhere}
.convo .cmeta .when{white-space:nowrap}
.convo .cmeta .pill{padding:0 8px;font-size:11px;line-height:18px;white-space:nowrap}
.convo .cbody{white-space:pre-wrap;overflow-wrap:anywhere;margin:0}
.convo .cnote{font-size:12px;line-height:16px;color:var(--muted)}
.convo .clink{align-self:flex-start;display:inline-flex;align-items:center;min-height:32px;margin-top:2px;font-size:12px;line-height:16px;font-weight:600;color:var(--link);text-decoration:underline}
.convo .clink:focus-visible{outline:3px solid var(--link);outline-offset:2px}
.convo .pilotblock{gap:8px}
.convpanel{gap:12px}
.convpanel .cgenuine,.convpanel .cpilotslot{display:flex;flex-direction:column;gap:10px;min-width:0}
.convpanel .cpilotslot:empty{display:none}
.convpanel .pager{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
@media (max-width:560px){.convo .cmsg{max-width:100%}}
/* Mode buttons: the prototype's fixed 40px height let a wrapped label overflow so its text sat against the top edge. */
.composer-modes .mode{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;height:auto;min-height:44px;max-width:100%;padding:8px 16px;font-family:inherit;line-height:20px;text-align:center;white-space:normal;overflow-wrap:anywhere;color:var(--ink)}
.composer-modes .mode:focus-visible{outline:3px solid var(--link);outline-offset:2px}

/* WhatsApp channel tabs (Joseph's approved design, 9 Oct 2026). Colour is an accent ONLY: every tab, note, bubble and composer line also
   names its channel (and the recipient) in text. Support uses Andito orange, Zoho uses the shared information blue, team notes stay neutral.
   Channel colour is separate from success green (semantic colour policy). */
/* The channel accent variables (--ch-support, --ch-zoho and their -bg) are shared aliases defined once in tokens.css. */
.convo .chtabs,.convpanel .chtabs{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0}
.convo .chtab,.convpanel .chtab{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:44px;max-width:100%;padding:8px 16px;border:1px solid var(--line);border-radius:var(--r-ctl);background:var(--surface);color:var(--ink);font:inherit;font-weight:600;line-height:20px;text-align:center;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
.convo .chtab.ch-support[aria-selected="true"],.convpanel .chtab.ch-support[aria-selected="true"]{background:var(--ch-support-bg);color:var(--ch-support);border-color:var(--ch-support);box-shadow:inset 0 -3px 0 var(--ch-support)}
.convo .chtab.ch-zoho[aria-selected="true"],.convpanel .chtab.ch-zoho[aria-selected="true"]{background:var(--ch-zoho-bg);color:var(--ch-zoho);border-color:var(--ch-zoho);box-shadow:inset 0 -3px 0 var(--ch-zoho)}
.convo .chtab[aria-disabled="true"],.convpanel .chtab[aria-disabled="true"]{opacity:.6;cursor:not-allowed}
.convo .chtab:focus-visible,.convpanel .chtab:focus-visible{outline:3px solid var(--link);outline-offset:2px}
.convo .chlock,.convpanel .chlock{flex:1 1 220px;min-width:0;overflow-wrap:anywhere}
.convo .chnote,.convpanel .chnote{margin:0;padding:6px 10px;border-left:4px solid var(--line);overflow-wrap:anywhere}
.convo .chnote.ch-support,.convpanel .chnote.ch-support{border-left-color:var(--ch-support)}
.convo .chnote.ch-zoho,.convpanel .chnote.ch-zoho{border-left-color:var(--ch-zoho)}
.convo .cmsg.ch-support{border-left:4px solid var(--ch-support)}
.convo .cmsg.ch-zoho{border-left:4px solid var(--ch-zoho)}
.convo .chcomposer-unavailable{overflow-wrap:anywhere}
.composer-modes.cchan{align-items:flex-start;padding:6px 10px;border-left:4px solid var(--line);flex-direction:column;gap:2px}
.composer-modes.cchan .cchan-line{margin:0;overflow-wrap:anywhere;min-width:0;max-width:100%}
.composer-modes.cchan .cchan-line strong{font-weight:700}
.composer-modes.cchan.ch-support{border-left-color:var(--ch-support)}
.composer-modes.cchan.ch-zoho{border-left-color:var(--ch-zoho)}
.composer-modes.cchan.ch-team{border-left-color:var(--line)}
/* The "Reply via ..." button itself carries the channel accent (border always, tint when pressed); the Team note button keeps its neutral style. */
.composer-modes .mode.client.ch-support{border-color:var(--ch-support)}
.composer-modes .mode.client.ch-zoho{border-color:var(--ch-zoho)}
.composer-modes .mode.client.ch-support[aria-pressed="true"]{background:var(--ch-support-bg);color:var(--ch-support);box-shadow:inset 0 -3px 0 var(--ch-support)}
.composer-modes .mode.client.ch-zoho[aria-pressed="true"]{background:var(--ch-zoho-bg);color:var(--ch-zoho);box-shadow:inset 0 -3px 0 var(--ch-zoho)}
.composer-modes .mode[aria-disabled="true"]{opacity:.6;cursor:not-allowed}

/* Side-by-side comparison before a source record is proposed for a client (case-client-choice.js). */
.smsides { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0; }
.smside { border: 1px solid var(--line, #d7d7d7); border-radius: 8px; padding: 8px 10px; min-width: 0; overflow-wrap: anywhere; }
.smside h3 { margin: 0 0 4px; font-size: 14px; }
@media (max-width: 560px) { .smsides { grid-template-columns: 1fr; } }
.smchoose input[type="text"], .smchoose input[type="search"], .smchoose textarea, .smlink input[type="search"] { box-sizing: border-box; width: 100%; max-width: 100%; }
.smchoose ul, .smlink ul { list-style: none; padding-left: 0; }
.smchoose li button, .smlink li button { width: 100%; text-align: left; white-space: normal; }
.smchoose .smform textarea, .smchoose .smform input { box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; }
.smdecide textarea, .smdecide input, .smlink textarea, .smlink input[type="text"] { box-sizing: border-box; max-width: 100%; min-width: 0; }
.srcid { margin: 8px 0; }
.srcid-name, .smname { font-size: 18px; font-weight: 600; overflow-wrap: anywhere; margin: 2px 0; }
.srcnext { margin: 8px 0; padding: 8px 10px; border: 1px solid var(--line, #d7d7d7); border-radius: 8px; }
.srcnext, .srcnext a, .smchoose a.btn, .sourcematch a.btn { overflow-wrap: anywhere; white-space: normal; max-width: 100%; box-sizing: border-box; height: auto; }
.wififind input[type="search"], .wififind textarea { box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; }
.wififind ul { list-style: none; padding-left: 0; }
.wififind li button, .wififind .btn { width: 100%; text-align: left; white-space: normal; overflow-wrap: anywhere; max-width: 100%; box-sizing: border-box; height: auto; }
.wififind .smlink { margin-top: .5rem; }
.supportnumber { margin-top: 1rem; }
.supportnumber input[type="tel"], .supportnumber input[type="text"], .supportnumber textarea { box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; }
.supportnumber .smopt, .supportnumber .snsource { overflow-wrap: anywhere; }
.supportnumber .snsource { margin: .25rem 0 .5rem 1.5rem; }

/* Matching search-result buttons: ink on the page surface in every state (they were the on-orange band style, near-white on a light page),
   the name on its own full-width line with the router/case line below it, so a long username wraps readably instead of being squeezed. */
.smpick { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; height: auto; min-height: 44px; padding: 8px 14px; text-align: left; white-space: normal; color: var(--ink); }
.smpick [data-part="name"] { display: block; width: 100%; font-weight: 600; overflow-wrap: break-word; word-break: normal; }
.smpick [data-part="meta"] { display: block; width: 100%; font-weight: 400; overflow-wrap: anywhere; }
.smpick:hover { background: var(--note); color: var(--ink); }
.smpick:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.smpick[aria-pressed="true"], .smpick[aria-current="true"] { background: var(--tint); color: var(--ink); border-color: var(--link); }
.smpick:disabled { background: var(--note); color: var(--muted); border-style: dashed; cursor: not-allowed; }
/* .btn-ow is the on-orange BAND style (near-white text, transparent background). Anywhere it is not inside an orange .band it sits on the page
   surface (matching and support cards, modals, recovery controls), so it takes the plain surface style in every state. Band buttons are unchanged. */
.btn-ow:not(.band .btn-ow) { background: var(--surface); color: var(--ink); border-color: var(--control); }
.btn-ow:not(.band .btn-ow):hover { background: var(--note); color: var(--ink); }
.btn-ow:not(.band .btn-ow):focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.btn-ow:not(.band .btn-ow):disabled, .btn-ow[aria-disabled="true"]:not(.band .btn-ow) { background: var(--note); color: var(--muted); border-style: dashed; cursor: not-allowed; }

.actionmsg .msg.pend{background:var(--pend-bg);color:var(--pend)}
.case-context-tags{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0;min-width:0}
.case-context-tags .pill{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.support-send [hidden]{display:none}

/* Exact Deon task changes and mention selection. */
.deon-form{display:grid;gap:10px}.deon-form input,.deon-form select,.deon-form textarea{max-width:100%;min-width:0}.deon-field{display:grid;grid-template-columns:auto 1fr;gap:6px}.deon-field>input:not([type=checkbox]),.deon-field>select{grid-column:1/-1;width:100%}.deon-task{padding:12px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.mention-recipients,.mention-picker [role=listbox]{display:flex;flex-wrap:wrap;gap:6px}

/* Current case result is separate from historical timing and original intentions. */
.case-outcome h2{font-size:20px;line-height:28px;margin:6px 0 16px}
.case-summary-fields{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.case-summary-field,.case-review-criteria,.case-summary-tasks{min-width:0;overflow-wrap:anywhere;font-size:14px;line-height:21px}
.case-summary-field h3,.case-summary-tasks h3,.case-review-criteria h3{font-size:15px;margin:0 0 6px}
.case-summary-update{grid-column:1/-1;border-top:1px solid var(--line);padding-top:14px}
.case-matching-progress{border-left:3px solid var(--orange);padding-left:10px}
.case-review-criteria,.case-summary-proof,.case-summary-tasks:not(:empty){border-top:1px solid var(--line);padding-top:14px;margin-top:14px}
.case-summary-tasks .case-summary-field{padding:12px 0;border-bottom:1px solid var(--line)}
.case-outcome details summary,.casemodal details summary{cursor:pointer;font-size:13px}
.case-outcome p{margin:6px 0}
.case-summary-proof .case-summary-field{padding:10px 0}
.case-action-strip{background:var(--surface);color:var(--ink);border:1px solid var(--line);padding:16px 20px}
.case-action-strip .bk,.case-action-strip .bandtext{color:inherit}
.case-action-strip .btn-w,.case-action-strip .btn-ow{color:inherit;border:1px solid var(--line);background:transparent}
.case-action-strip a.linkbtn.onband{color:var(--link)}
.case-side-group:has(> summary + .case-side-body > .ownership){margin-bottom:16px}
.casemodal .choice details{padding:0 10px 12px;overflow-wrap:anywhere}
@media(max-width:760px){.case-summary-fields{grid-template-columns:1fr;gap:16px}}

.case-action-strip .btn-w{background:var(--orange);color:var(--on-orange);border-color:var(--orange)}

/* Keep all desktop destinations visible as the application menu grows. */
@media(min-width:761px){.topin{flex-wrap:wrap;gap:0 26px}.nav{order:3;flex:1 0 100%;flex-wrap:wrap;overflow:visible}.nav a{padding:10px 2px 12px}}

/* Address confirmation stays readable beside its proof and retained save state. */
.case-address{min-width:0;overflow-wrap:anywhere}
.case-address form{display:grid;gap:14px;min-width:0}
.case-address label{display:block;font-size:14px;line-height:22px}
.case-address input:not([type=checkbox]),.case-address textarea,.case-address select{box-sizing:border-box;display:block;width:100%;min-width:0;max-width:100%;padding:9px 12px;border:1px solid var(--control);border-radius:var(--r-ctl);background:var(--surface);color:var(--ink);font:inherit}
.case-address textarea{min-height:84px;resize:vertical}
.case-address fieldset{min-width:0;border:1px solid var(--line);border-radius:var(--r-ctl);padding:12px}
.case-address fieldset label{margin:8px 0}
.case-address input[type=checkbox]{margin-right:8px;accent-color:var(--orange)}
.case-address button{justify-self:start;max-width:100%;white-space:normal}
/* Work destination (WORK-1): views navigation, incident and response-check strip, delegated items, incoming review.
   Same width and gutters as main; links wrap instead of overflowing; status never relies on colour alone (text says it). */
.workstatus-host,.worknav{max-width:1280px;margin:0 auto;padding-inline:24px;box-sizing:border-box;width:100%}
.workstatus-host:empty{display:none}
.workstatus{display:flex;flex-wrap:wrap;gap:8px 16px;padding-block:10px 0}
.workstatus-item{margin:0;padding:6px 10px;border-radius:var(--r-ctl);border:1px solid var(--line);background:var(--surface);color:var(--text);font-size:14px;line-height:20px;overflow-wrap:anywhere;min-width:0}
.workstatus-item.attn{background:var(--attn-bg);border-color:var(--attn)}
.workstatus-item.ok{background:var(--ok-bg);border-color:var(--ok)}
.workstatus-item.unk{background:var(--unk-bg);border-color:var(--unk)}
.worknav{display:flex;flex-wrap:wrap;gap:6px;padding-block:12px 0}
.worknav-link{display:inline-flex;align-items:center;min-height:36px;padding:0 12px;border-radius:18px;border:1px solid var(--line);color:var(--link);text-decoration:none;font-size:14px;white-space:nowrap}
.worknav-link[aria-current=page]{background:var(--chip-on-bg);color:var(--chip-on-fg);border-color:var(--chip-on-bg);font-weight:600}
.worknav-link:focus-visible{outline:2px solid var(--link);outline-offset:2px}
.delegated-head{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between}
.delegated h3,.incoming h3{margin:4px 0;overflow-wrap:anywhere}
.delegated-facts{display:grid;grid-template-columns:minmax(120px,max-content) 1fr;gap:4px 12px;margin:8px 0}
.delegated-facts dt{color:var(--muted)}
.delegated-facts dd{margin:0;overflow-wrap:anywhere;min-width:0}
.incoming-body{white-space:pre-wrap;overflow-wrap:anywhere}
.incoming-review select,.incoming-review textarea,.incoming-review input[type=search]{box-sizing:border-box;width:100%;max-width:100%;min-width:0}
@media (max-width:760px){
  .workstatus-host,.worknav{padding-inline:16px}
  .delegated-facts{grid-template-columns:1fr}
  .delegated-facts dd{margin-bottom:6px}
}

/* Shared commitment summary on Today and cases, using the Agreements projection. */
.today-promises .agr-register{list-style:none;margin:0;padding:0}
.today-promises .agr-row{align-items:flex-start;flex-wrap:wrap}
.today-promises .agr-text{min-width:0;overflow-wrap:anywhere;flex:1 1 220px}
.today-promises .agr-side{display:flex;flex-wrap:wrap;gap:6px}
.today-promises .agr-needs{padding-left:18px}
.today-promises .btn{margin-top:8px}

.commitment-capture{min-width:0;overflow-wrap:anywhere}
.commitment-capture .commitment-report{display:block;border-block-end:1px solid var(--line);padding-block:12px}
.commitment-capture .agr-form{display:grid;grid-template-columns:minmax(0,1fr);align-items:start}
.commitment-capture .field{min-width:0}
.commitment-capture input,.commitment-capture select,.commitment-capture textarea{width:100%;max-width:100%;min-width:0}
.commitment-capture input[type=checkbox]{width:auto;justify-self:start}
.commitment-capture .btn{white-space:normal;max-width:100%}
