/*! Copyright (c) 2026 Mendonca Advisory Partners, LLC. All rights reserved. Proprietary and confidential. */
/* Work Queue redesign (approved November 2026): header with the KPI pill, menu bar with icons,
   Theme menu (text size + queue style), Queue Style 1 (default) and Style 2, the claims bar
   and the floating claim window. Loads after theme.css and app.css, so these rules win. */

/* Stroke icons (js/icons.js): 24px grid, 1.75 stroke */
.ic{fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;flex:none;vertical-align:middle}

/* ---------- Header ---------- */
.app-title{--hpad:20px;--hgap:16px;display:flex;flex-wrap:nowrap;align-items:center;gap:var(--hgap);min-height:60px;padding:0 var(--hpad);background:#fff;border-bottom:1px solid #E3E8EB;position:relative;z-index:60}
.app-title .wordmark{font-size:14px;letter-spacing:.1em;padding-right:0;border-right:0;flex:none}
/* Brand block: SIMPLY RCM and the logo slot, as wide as the queue's left pane (--left-w, shared with
   the pane and its resizer), so "Aging Command Center" starts where the queue column starts.
   Style 1: pane + 6px divider. Style 2: 16px page padding + pane + 14px gap. No divider line. */
.brand-block{display:flex;align-items:center;gap:12px;flex:none;min-width:0;overflow:hidden;container-type:inline-size;
  width:calc(var(--left-w,clamp(240px,20vw,340px)) + 6px - var(--hpad) - var(--hgap))}
:root[data-queue-style="2"] .brand-block{width:calc(var(--left-w,clamp(248px,18vw,300px)) + 30px - var(--hpad) - var(--hgap))}
:root.pane-hidden .brand-block{width:auto;container-type:normal}
/* Logo slot: a placeholder until the practice's logo and brand colors are added */
/* The client's logo in the slot the demo kept for it. */
img.logo-slot.client-logo{height:28px;width:auto;padding:0;border:0;border-radius:0;background:none}
.logo-slot{display:inline-flex;align-items:center;justify-content:center;height:30px;padding:0 12px;border:1.5px dashed #9DB4BF;border-radius:8px;background:#F3F6F7;color:#55656E;font-size:10.5px;font-weight:600;letter-spacing:.08em;white-space:nowrap;flex:none;cursor:default}
@container (max-width:226px){.logo-slot{display:none}}
.app-title h1{font-size:17px;font-weight:600;letter-spacing:0;flex:0 1 auto;min-width:0;color:#1A2429;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.app-title h1 .view-name{display:none}
.title-spacer{flex:1 1 auto;min-width:0}
.app-title .title-tools{gap:10px;flex:none}
.phone-only{display:none!important}

/* KPI pill: My actions | Team total | More */
.team-kpis.kpi-pill{container:none;container-type:normal;flex:none;align-self:center;display:flex;align-items:center;justify-content:flex-start;gap:10px;padding:5px 6px 5px 12px;border:1px solid #E3E8EB;border-radius:999px;position:relative;min-width:0}
.kpi-item{display:flex;align-items:center;gap:8px;white-space:nowrap;border-radius:999px;outline-offset:3px;min-width:0}
.kpi-ic{color:var(--blue)}
.kpi-ic.red{color:#A33A22}
.kpi-ic.amber{color:#8A5200}
.kpi-label{font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:#4F5F68;white-space:nowrap}
.kpi-item>strong{font-size:18px;font-weight:600;font-variant-numeric:tabular-nums;color:var(--navy);line-height:1.2}
.kpi-delta{display:inline-flex;align-items:center;gap:3px;padding:2px 8px;border-radius:999px;font-size:12px;font-weight:500;white-space:nowrap}
.kpi-delta.ahead{background:#E4F2EA;color:#1F6B4A}
.kpi-delta.behind{background:#FFF1D6;color:#7A4A00}
.kpi-delta.goal{background:#E3EEF3;color:#2F5363}
.kpi-delta.none{background:#EEF3F5;color:#4F5F68}
.kpi-pill .kpi-short{display:none}
.kpi-sep{width:1px;height:22px;background:#E3E8EB;flex:none}
.kpi-more{position:relative;flex:none}
.kpi-more>summary{list-style:none;display:inline-flex;align-items:center;gap:4px;min-height:30px;padding:0 10px;border-radius:999px;background:#EEF3F5;color:var(--navy);font-size:12px;font-weight:500;cursor:pointer;white-space:nowrap}
.kpi-more>summary::-webkit-details-marker{display:none}
.kpi-more>summary:hover{background:#E1EAEE}
.kpi-more[open]>summary{background:var(--navy);color:#fff}
.kpi-more[open]>summary .ic{transform:rotate(180deg)}
.pop-menu{position:absolute;top:calc(100% + 10px);right:-6px;z-index:95;width:300px;max-width:calc(100vw - 16px);padding:8px;background:#fff;border:1px solid #E3E8EB;border-radius:14px;box-shadow:0 12px 32px rgb(22 48 63/18%);display:flex;flex-direction:column;gap:2px;color:var(--navy);font-size:13px}
.menu-head{padding:4px 10px 2px;font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:#4F5F68}
.menu-divider{height:1px;margin:4px 10px;background:#E3E8EB}
.kpi-row{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:0 10px;border:0;border-radius:10px;background:transparent;color:var(--navy);font-size:13px;text-align:left}
button.kpi-row{cursor:pointer}
button.kpi-row:hover,.kpi-row[aria-pressed=true]{background:#EEF3F5}
.kpi-row-text{flex:1 1 auto;display:flex;flex-direction:column;line-height:1.3}
.kpi-row-text small{font-size:11.5px;color:#4F5F68}
.kpi-row>strong{font-size:16px;font-weight:600;font-variant-numeric:tabular-nums}

/* Round icon buttons: Theme, Start here */
.round-btn{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;border:1px solid #D5DCE0;border-radius:50%;background:#fff;color:var(--navy);flex:none;cursor:pointer}
.round-btn:hover{background:var(--soft)}
/* Theme: a gold coin with the teal/gold/peach face. Stacked edge discs give it thickness and a
   reeded rim; it flips left to right on hover (see "Header motion" below). */
#theme-open{position:relative;border:0;background:transparent;perspective:240px;color:var(--navy)}
#theme-open:hover{background:transparent}
#theme-open[aria-expanded=true]{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--navy)}
#theme-open .coin{position:absolute;inset:0;transform-style:preserve-3d;pointer-events:none}
#theme-open .edge{position:absolute;inset:0;border-radius:50%;background:radial-gradient(circle,#D9BC72 0 62%,transparent 63%),repeating-conic-gradient(#9C7A32 0 3deg,#F1DA9A 3deg 6deg)}
#theme-open .face{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;border-radius:50%;backface-visibility:hidden;-webkit-backface-visibility:hidden;background:linear-gradient(135deg,#BFD9E4 0%,#FFE3A8 55%,#F6C6B8 100%);box-shadow:inset 0 0 0 1px #B8954A,inset 0 0 0 2.5px rgba(255,255,255,.7),inset 0 0 0 3.5px rgba(156,122,50,.45)}
#theme-open .front{transform:translateZ(2.6px)}
#theme-open .back{transform:rotateY(180deg) translateZ(2.6px)}
#start-here-open [data-icon]{display:inline-flex}
.theme-wrap{position:relative;display:inline-flex}
.theme-menu{width:270px}
.theme-choice{display:flex;align-items:flex-start;gap:10px;width:100%;padding:8px 10px;border:0;border-radius:10px;background:transparent;text-align:left;cursor:pointer;color:var(--navy);font-size:13px}
.theme-choice:hover{background:#EEF3F5}
.theme-choice small{display:block;color:#4F5F68;font-size:11.5px;font-weight:400}
.theme-choice.on{font-weight:600}
.theme-dot{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;border:1.5px solid #9AA8AF;flex:none;margin-top:1px}
.theme-choice.on .theme-dot{background:var(--blue);border-color:var(--blue);color:#fff}

/* Presence avatars (no "N signed in" text) and the account avatar (name kept for screen readers) */
.app-title .presence-face{width:32px;height:32px;font-size:11px;font-weight:600;position:relative;overflow:visible}
.app-title .presence-face:not(.more)::after{content:"";position:absolute;right:-2px;bottom:-2px;width:9px;height:9px;border-radius:50%;background:#2E8B62;border:2px solid #fff}
.app-title .presence-count,.app-title .portal-online-count{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.app-title .portal-account summary{min-height:40px;padding:0 4px;border-radius:999px;background:#EEF3F5}
.app-title .portal-account summary:hover{background:#E1EAEE}
.app-title .portal-avatar{width:32px;height:32px;background:var(--blue);color:#fff;font-size:12px;font-weight:600}

/* Open menu: shown at the far right of the header while the menu bar is hidden */
.menu-open-pill{display:inline-flex;align-items:center;gap:6px;flex:none;min-height:36px;padding:0 14px 0 10px;border:0;border-radius:999px;background:var(--blue);color:#fff;font-size:13px;font-weight:500;white-space:nowrap;box-shadow:0 2px 8px rgb(22 48 63/18%);cursor:pointer}
.menu-open-pill:hover{background:var(--blue-hover)}

/* ---------- Menu bar ---------- */
.menu-bar{display:flex;align-items:center;gap:2px;padding:0 12px;background:#fff;border-top:0;border-bottom:1px solid #E3E8EB}
.menu-item{gap:7px;min-height:44px;padding:0 11px;border:0;border-bottom:3px solid transparent;border-radius:0;font-size:13px;font-weight:400;color:var(--navy)}
.menu-item:hover{background:#F3F6F7}
.menu-item.active{border-bottom-color:var(--blue);color:#2F5363;font-weight:600}
.menu-item b{padding:1px 8px;border-radius:999px;background:var(--blue);color:#fff;font-size:11px;font-weight:600;line-height:1.35}
.menu-spacer{flex:1 1 auto}
.menu-collapse{display:inline-flex;align-items:center;justify-content:center;flex:none;width:36px;height:36px;padding:0;border:0;border-radius:8px;background:transparent;color:var(--navy);cursor:pointer}
.menu-collapse:hover{background:var(--soft)}
/* A menu tab that opens a sister application (RCM Analytics) in a new browser tab. */
.menu-item.menu-out{text-decoration:none}
.menu-item.menu-out .menu-out-mark{opacity:.6}
body.menu-hidden .menu-bar{display:none}

/* ---------- Shared small controls ---------- */
.icon-btn{display:inline-flex;align-items:center;justify-content:center;flex:none;width:30px;height:30px;padding:0;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--navy);cursor:pointer}
.icon-btn:hover{background:var(--soft)}
.icon-btn.bare{border-color:transparent;background:transparent}
.icon-btn.bare:hover{background:rgb(22 48 63/8%)}
.btn.outline{border-color:var(--blue);color:#2F5363;background:#fff;font-weight:500}
.btn.outline:hover{background:#EEF4F7}
.btn.small{min-height:28px;padding:0 12px;font-size:12px}
.chip-x button{display:inline-flex;align-items:center;justify-content:center}
.st-chip{display:inline-flex;align-items:center;gap:5px;padding:3px 10px 3px 7px;border-radius:999px;border:1px solid #C9D3D9;background:#fff;color:#33444E;font-size:12px;font-weight:500;line-height:1.3;white-space:nowrap}
.st-chip.small{padding:1px 8px 1px 5px;font-size:11.5px}
.st-chip.red{color:#A3301C;background:#FBE9E5;border-color:#E9B7AC}
.st-chip.amber{color:#7A4F00;background:#FBF0D5;border-color:#E5C877}
.st-chip.teal{color:#2F5363;background:#E7EFF2;border-color:#A9C2CC}
.st-chip.violet{color:#54398A;background:#EFE9F8;border-color:#CBB9E6}
.st-chip.green{color:#1F6B4A;background:#E4F2EA;border-color:#A9D3BD}
.st-chip.grey{color:#33444E;background:#EEF1F3;border-color:#C9D3D9}
.st-chip.plain{color:#33444E;background:#fff;border-color:#D5DCE0}
/* Required: navy "R" circle. Optional: grey pill. */
.req{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border:0;border-radius:50%;background:var(--navy);color:#fff;font-size:10.5px;font-weight:600;text-decoration:none;vertical-align:middle;cursor:help}
.opt{display:inline-flex;align-items:center;width:auto;height:18px;padding:0 7px;border:0;border-radius:999px;background:#EEF3F5;color:#4F5F68;font-size:10.5px;font-weight:500;vertical-align:middle}

/* ---------- Queue Style 1 (default) ---------- */
.wq-left{gap:10px;padding:8px 6px;background:#F7F9F9}
.search-row{display:flex;align-items:center;gap:6px}
.search-row .search-box{flex:1 1 auto;min-width:0;height:30px;padding:0 10px;gap:8px;border-color:#7C8A92;color:#55656E}
.search-row .search-box input{font-size:12px;padding:4px 0;min-height:0}
/* Style 1: the search sits in a white strip the same height as the toolbar on the right, so the two
   line up under the header and the pane gets a clear top edge. */
.wq:not(.style-2) .search-row{flex:none;margin:-8px -6px 0;height:41px;box-sizing:border-box;padding:0 8px;background:#fff;border-bottom:1px solid #DDE5E9}
/* Style 1, wider than a phone: both rows are 48px with 8px on top, so the search field sits a little
   lower with room above it, and a soft shadow separates the header from the queue. */
@media (min-width:601px){
  .wq:not(.style-2) .search-row{height:48px;padding:8px 8px 0}
  .wq:not(.style-2) .wq-toolbar{min-height:48px;box-sizing:border-box;padding:8px 10px 0}
  .app-window:has(.wq:not(.style-2)) .app-title{box-shadow:0 2px 6px rgba(22,48,63,.08)}
}
.queue-head{display:flex;flex-direction:column;align-items:stretch;gap:4px;padding:0;background:none;border:0}
.mini-label{font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:#4F5F68}
.queue-pick{display:flex;align-items:center;gap:8px}
.queue-head select{flex:1;min-width:0;height:34px;padding:0 24px 0 10px;border:1px solid #C9D3D9;border-radius:10px;font-size:12.5px;font-weight:500;color:var(--navy);background-color:#fff}
.count-pill{min-width:36px;padding:4px 8px;border-radius:999px;background:var(--blue);color:#fff;text-align:center;font-weight:600;font-size:12px;font-variant-numeric:tabular-nums}
.queue-head b.count-pill{font-size:12.5px;font-weight:600}
.pane-switch strong{display:flex;align-items:center;gap:5px}
.pane-switch button.active{background:#DFEAEE;border-bottom-color:transparent}
.tree-ic{color:var(--blue)}
.tree-caret{display:inline-flex;align-items:center;justify-content:center}
.tree-group summary::before{content:none}
.tree-group summary .tree-chev{color:#55656E;transition:transform .15s}
.tree-group[open] summary .tree-chev{transform:rotate(90deg)}
.regions h2 .ic{color:var(--blue)}

.wq-card{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;min-width:0}
.wq-toolbar{flex-wrap:nowrap;gap:6px;padding:6px 10px;border-bottom:1px solid #DDE5E9}
.wq-toolbar .btn{min-height:28px;height:28px;padding:0 12px;font-size:12px;gap:6px;white-space:nowrap}
.wq-toolbar .btn.primary{min-width:0;padding:0 30px;border:0}
.wq-toolbar .select-all{font-size:12px;font-weight:400;white-space:nowrap;margin-right:0}
.sel-group{display:inline-flex;align-items:center;gap:6px;flex:none}
.sel-count{font-weight:600;color:#2F5363;font-size:12px;white-space:nowrap;padding-left:4px}
.toolbar-scope{flex:1 1 auto;min-width:0;display:flex;justify-content:center;align-items:baseline;gap:4px;font-size:12px;color:var(--navy);white-space:nowrap}
.scope-text{min-width:0;overflow:hidden;text-overflow:ellipsis}
.toolbar-scope .linkish{flex:none}
#wq-bulk>summary.btn{list-style:none}
@container wqlist (max-width:980px){
  .wq-toolbar{flex-wrap:wrap}
  .toolbar-scope{order:9;flex-basis:100%;justify-content:flex-start;flex-wrap:wrap;white-space:normal}
  .toolbar-scope.empty{display:none}
  .wq-toolbar .btn.primary{padding:0 14px}
}

/* Preview bar and the panel it slides up and down */
.wq-right>.claim-empty,.wq-right>.claim-dock{display:none}
.preview-panel{flex:none;display:flex;flex-direction:column;background:#fff;border-top:1px solid #DDE5E9;min-height:0}
.preview-bar{display:flex;align-items:center;gap:10px;min-height:46px;padding:8px 14px;color:var(--navy);font-weight:500;font-size:13px}
.preview-bar h2{font-size:13px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.preview-bar .pv-doc{color:#7C8A92}
.preview-panel.has-claim .preview-bar .pv-doc{color:var(--blue)}
.preview-bar .pv-hint{font-size:12px;color:var(--muted);font-weight:400;white-space:nowrap}
#preview-toggle[aria-expanded=true]{background:#EEF3F5}
.preview-slide{display:grid;grid-template-rows:1fr;transition:grid-template-rows .22s ease}
.preview-panel.collapsed .preview-slide{grid-template-rows:0fr}
.preview-inner{min-height:0;overflow:auto;max-height:clamp(150px,30vh,420px);visibility:visible;transition:visibility 0s}
.preview-panel.collapsed .preview-inner{overflow:hidden;visibility:hidden;transition:visibility 0s .22s}
.pv-empty{margin:0;padding:0 14px 12px 40px;color:var(--muted)}
.preview-inner .task-strip{margin:0 14px 8px}
.preview-inner .pv-body{padding-top:0}
@media (prefers-reduced-motion:reduce){.preview-slide{transition:none}}

/* Claims bar: light grey, one row of tabs, a sixth of the bar each */
.claim-taskbar{display:flex;flex-wrap:nowrap;align-items:center;gap:8px;padding:6px 12px;background:#F3F6F7;border-top:1px solid #DDE5E9;overflow:hidden}
.task-tab{flex:0 1 calc((100% - 40px)/6);min-width:0;max-width:none;display:inline-flex;align-items:center;border:1px solid #6E9AAB;border-radius:10px;background:linear-gradient(135deg,#BFD9E4 0%,#EEF6F9 100%);color:var(--navy)}
.task-tab:hover{border-color:#457385}
.task-tab.unsaved{border:1px solid #D99A1E;background:linear-gradient(135deg,#FFD27A 0%,#FFF4DB 100%)}
.task-tab.saved{border:1px solid #7FBF9C;background:linear-gradient(135deg,#BFE5CF 0%,#F0FAF4 100%)}
.task-tab.active{border-color:var(--navy);background:var(--navy);color:#fff}
.task-tab-title{flex:1 1 auto;min-width:0;overflow:hidden;white-space:nowrap;display:inline-flex;align-items:center;gap:7px;height:auto;min-height:36px;padding:0 6px 0 10px;border:0;background:transparent;color:inherit;font-size:12.5px;font-weight:400;cursor:pointer}
/* When tabs get narrow the claim # gives way first, then the state words; the patient name last. */
.task-tab-name{font-weight:600;overflow:hidden;text-overflow:ellipsis;flex:0 1 auto;min-width:3ch}
.task-tab-id{font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:0 4 auto;min-width:0}
.tab-state{display:inline-flex;align-items:center;gap:3px;flex:0 2 auto;min-width:14px;font-size:11.5px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tab-state-text{overflow:hidden;text-overflow:ellipsis}
.tab-state.locked{color:#2F5363}
.tab-state.unsaved{color:#7A4F00}
.tab-state.saved{color:#1A6847}
.tab-state .dot{width:8px;height:8px;border-radius:50%;background:#9A6400;flex:none;font-size:0;color:transparent}
.tab-state.now{flex:none;padding:0 7px;border-radius:999px;border:1px solid rgb(255 255 255/60%);font-size:11px}
.tab-doc{color:#2F6074}
.task-tab.unsaved .tab-doc{color:#7A4F00}
.task-tab.saved .tab-doc{color:#1A6847}
.task-tab.active .tab-doc{color:#fff}
.task-tab-close{display:inline-flex;align-items:center;justify-content:center;flex:none;width:30px;height:30px;border:0;border-radius:8px;background:transparent;color:inherit;cursor:pointer}
.task-tab-close:hover{background:rgb(22 48 63/10%);color:inherit}
.task-tab.active .task-tab-close:hover{background:rgb(255 255 255/16%)}

/* ---------- Claim window: floating card over the queue; the header stays visible ---------- */
body.claim-max-open .app-window,body.claim-max-open .app-window>*{visibility:visible!important}
#claim-layer{position:fixed;left:0;right:0;top:var(--chrome-h,0px);bottom:var(--taskbar-h,0px);z-index:50;pointer-events:none}
#claim-layer:empty{display:none}
body.claim-max-open:not(.claim-restored) #claim-layer{background:rgb(22 48 63/16%);pointer-events:auto}
#claim-layer>.claim-max,body.has-taskbar #claim-layer>.claim-max{position:absolute;inset:14px 16px 10px;z-index:auto;pointer-events:auto;display:flex;flex-direction:column;background:#fff;border:1px solid #C9D3D9;border-radius:14px;overflow:hidden;box-shadow:0 18px 48px rgb(22 48 63/28%),0 2px 6px rgb(22 48 63/12%);color:var(--navy);font-size:13px}
#claim-layer>.claim-max.restored{inset:36px max(24px,8vw) 24px}
.cw-bar{display:flex;flex-wrap:nowrap;align-items:center;gap:10px;min-height:36px;padding:3px 8px 3px 16px;background:var(--navy);color:#fff;flex:none}
.cw-bar h2{font-size:15px;font-weight:600;font-variant-numeric:tabular-nums;flex:none;overflow:visible}
.cw-balance{display:inline-flex;align-items:center;gap:8px;min-height:26px;padding:0 12px;border-radius:999px;background:var(--blue);color:#fff;white-space:nowrap;flex:none}
.cw-balance>span{font-size:10.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase}
.cw-balance>strong{font-size:13.5px;font-weight:600;font-variant-numeric:tabular-nums}
.cw-lock{display:inline-flex;align-items:center;gap:6px;min-height:28px;padding:0 12px;border-radius:999px;background:rgb(255 255 255/12%);font-size:13px;white-space:nowrap;cursor:default}
.cw-lock.other{background:#FFE3A8;color:#5A3A00}
.cw-ehr{display:inline-flex;align-items:center;gap:6px;min-height:28px;padding:0 12px;border:1px solid rgb(255 255 255/60%);border-radius:999px;background:transparent;color:#fff;font-size:13px;white-space:nowrap;cursor:pointer}
.cw-ehr:hover{background:rgb(255 255 255/12%)}
.cw-bar .win-controls{display:inline-flex;gap:2px;flex:none}
.cw-bar .win-btn{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;border:0;border-radius:8px;background:transparent;color:#fff}
.cw-bar .win-btn:hover{background:rgb(255 255 255/14%)}
.cw-bar #claim-close:hover{background:#c42b1c}
.cw-body{flex:1 1 auto;min-height:0;overflow:auto;display:flex;flex-wrap:wrap;align-items:flex-start;gap:20px;padding:18px 20px}
.claim-max .max-scroll.cw-body>*{max-width:none;margin-inline:0}
.cw-left{flex:999 1 560px;min-width:0;display:flex;flex-direction:column;gap:16px}
.cw-right{flex:1 1 340px;max-width:440px;min-width:0;display:flex;flex-direction:column;gap:12px}
.cw-meaning-row{display:flex;flex-wrap:wrap;align-items:stretch;gap:12px}
.cw-meaning{flex:1 1 360px;display:flex;gap:10px;padding:12px 14px;border-radius:12px;background:#E7EFF2;min-width:0}
.cw-meaning .card-ic{color:var(--blue);margin-top:1px}
.cw-meaning>div{flex:1 1 auto;min-width:0}
.cw-meaning p{margin:2px 0 0;color:var(--navy)}
.cw-flags{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
.cw-label{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:#2F5363}
.cw-deadline{flex:0 0 auto;display:flex;flex-direction:column;justify-content:center;gap:2px;min-width:170px;padding:10px 14px;border-radius:12px;border:1px solid #E9B7AC;background:#FBE9E5;color:#7E2414;cursor:help}
.cw-deadline .cw-label{color:#7E2414}
.cw-deadline-line{display:flex;align-items:baseline;gap:8px}
.cw-deadline-line strong{font-size:20px;font-weight:600;line-height:1.1}
.cw-deadline-line span{font-size:12.5px}
.cw-details{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(360px,100%),1fr));gap:12px 40px;padding:4px 2px 0}
.cw-details .pairs{margin:0;display:grid;grid-template-columns:150px minmax(0,1fr);gap:7px 12px;align-content:start;font-size:13.5px}
.cw-details .pairs>div{display:contents}
.cw-details dt{color:#33444E}
.cw-details dd{margin:0;font-weight:400;color:var(--navy);overflow-wrap:anywhere}
.cw-details dd.strong{font-weight:600}
.cw-details dd.muted{color:#4F5F68;font-size:inherit}
.cw-details dd.mono,.cw-details dd .mono{font-variant-numeric:tabular-nums}
.status-tag{display:inline-block;padding:1px 8px;border-radius:6px;background:#EEF1F3;font-weight:500}
.status-tag.red{background:#FBE9E5;color:#A3301C}
.cw-rule{margin:0;border:0;border-top:1px solid #E3E8EB}
.claim-max .claim-tabs{display:flex;flex-wrap:nowrap;gap:0;padding:0;overflow-x:auto;border-bottom:1px solid #E3E8EB;background:transparent;position:static}
.claim-max .claim-tabs button{flex:1 1 auto;min-height:36px;padding:0 6px;border:0;border-bottom:3px solid transparent;border-radius:0;background:transparent;color:var(--navy);font-size:11px;font-weight:400;white-space:nowrap}
.claim-max .claim-tabs button:hover{background:#F3F6F7}
.claim-max .claim-tabs button.active{border-bottom-color:var(--blue);color:#2F5363;font-weight:600}
.claim-max .max-tab{min-width:0}
.cw-fin{padding:14px 16px;border:0;border-radius:12px;background:#F8F2E7}
.cw-fin h3{margin:0 0 8px;font-size:14px;font-weight:600}
.cw-fin .fin-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px 16px}
.cw-fin .fin-grid>div{display:flex;flex-direction:column;gap:1px}
.cw-fin dt{font-size:11px;color:#4F5F68}
.cw-fin dd{margin:0;font-weight:600;font-variant-numeric:tabular-nums}
.cw-right .work-form{display:flex;flex-direction:column;gap:12px;padding:16px;border:1px solid #C9D3D9;border-radius:14px;background:#fff}
.cw-right .work-form h3{display:flex;align-items:center;gap:8px;margin:0;font-size:15px;font-weight:600}
.cw-right .work-form h3 .ic{color:var(--blue)}
.cw-right .form-row{display:flex;flex-direction:column;align-items:stretch;gap:4px}
.cw-right .form-row label{display:flex;align-items:center;gap:6px;font-size:12.5px;font-weight:500;white-space:normal}
.cw-right .form-row select,.cw-right .next-wrap input,.cw-right .form-row textarea{width:100%;min-height:42px;border:1px solid #C9D3D9;border-radius:10px;font-size:13.5px;color:var(--navy)}
.cw-right .next-wrap{display:flex;flex-direction:column;gap:6px}
.cw-right .form-row textarea{padding:10px}
.deadline-ok{display:flex;align-items:center;gap:6px;margin:0;font-size:12px;color:#1F6B4A}
.side-card{display:flex;align-items:center;flex-wrap:nowrap;gap:10px;padding:10px 12px;margin:0;border:1px solid #E3E8EB;border-radius:12px;background:#fff;color:var(--navy);font-size:13px}
.side-card .card-ic{color:var(--blue)}
.side-card-text{flex:1 1 auto;min-width:0;display:flex;flex-direction:column}
.side-card-text strong{font-weight:500}
.side-card-text small{font-size:12px;color:#4F5F68;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.side-card .linkish{font-weight:500;font-size:12.5px;white-space:nowrap}
.cw-foot{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:12px 20px;border-top:1px solid #E3E8EB;background:#fff;flex:none}
.btn.step{min-height:40px;padding:0 14px;border:1px solid #D5DCE0;background:#fff;color:var(--navy);font-size:13px}
.cw-pos{color:#4F5F68;font-size:12.5px}
.cw-keys{color:#4F5F68;font-size:12px}
.cw-foot .claim-actions{display:flex;gap:10px;align-items:center}
.cw-foot .btn.big{width:auto;min-height:44px;padding:0 22px;font-size:14px;font-weight:600}
@media (max-width:1400px){.cw-keys{display:none}}
@media (max-width:1100px){.cw-right{max-width:none;flex-basis:100%}}

/* ---------- Queue Style 2: cards on a soft gradient ---------- */
:root[data-queue-style="2"] #main.is-queue{background:linear-gradient(135deg,#C9DCE4 0%,#E3ECEF 38%,#F8F2E7 100%)}
.wq.style-2{grid-template-columns:var(--left-w,clamp(248px,18vw,300px)) 14px minmax(0,1fr);padding:16px}
.wq.style-2.left-collapsed{grid-template-columns:minmax(0,1fr)}
.wq.style-2 .wq-resizer{background:transparent;border:0}
.wq.style-2 .wq-resizer:hover,.wq.style-2 .wq-resizer:focus-visible{background:rgb(69 115 133/20%);box-shadow:none;border-radius:6px}
.wq.style-2 .wq-left{background:#fff;border:1px solid #E6DFD0;border-radius:14px;padding:14px;gap:12px}
.wq.style-2 .search-row .search-box{height:40px;border-radius:999px;border-color:#C9D3D9}
.wq.style-2 .search-row .icon-btn{width:40px;height:40px;border-radius:10px;border-color:#D5DCE0}
.wq.style-2 .queue-head select{height:40px;font-size:13px}
.wq.style-2 .pane-switch{gap:4px;padding:4px;background:#EEF3F5;border:0;border-radius:12px}
.wq.style-2 .pane-switch button{border:0;border-radius:9px;background:transparent}
.wq.style-2 .pane-switch button+button{border-left:0}
.wq.style-2 .pane-switch button.active{background:#fff;box-shadow:0 1px 2px rgb(22 48 63/14%)}
.wq.style-2 .tree-row{min-height:34px;border-radius:8px}
.wq.style-2 .tree-row.active{background:var(--blue);color:#fff}
.wq.style-2 .tree-row.active .tree-ic,.wq.style-2 .tree-row.active .tree-num{color:#fff}
.wq.style-2 .wq-right{gap:12px;background:transparent}
.wq-title{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 14px;color:var(--navy)}
.wq-title h1{font-size:24px;font-weight:600;line-height:1.2}
.wq-title span{color:#4F5F68;font-size:13px}
.wq.style-2 .wq-card{background:#fff;border:1px solid #E6DFD0;border-radius:14px;overflow:hidden}
.wq.style-2 .preview-panel{border:1px solid #E6DFD0;border-radius:14px;overflow:hidden}
.wq.style-2 .wq-toolbar{padding:10px 12px;gap:8px;border-bottom-color:#EEF2F4}
.wq.style-2 .wq-toolbar .btn{min-height:34px;height:34px;font-size:13px}
.wq.style-2 .wq-toolbar .btn.primary{padding:0 14px}
.wq.style-2 .sel-group{padding:3px 4px 3px 4px;border-radius:999px;background:#E7EFF2}
.wq.style-2 .sel-group:has(.sel-count){padding-left:8px}
.wq.style-2 #wq-grid thead th{background:#F3F6F7;color:#33444E;font-size:11.5px;font-weight:600}
.wq.style-2 #wq-grid tbody tr{height:54px;border-top:1px solid #EEF2F4}
.wq.style-2 #wq-grid tbody td{vertical-align:middle;padding-block:6px}
.wq.style-2 #wq-grid tr.pri-urgent{background:#FBE6E1}
.wq.style-2 #wq-grid tr.pri-high{background:#FDF1D8}
.wq.style-2 #wq-grid tr.pri-medium{background:#F3F7F9}
.wq.style-2 #wq-grid tr.pri-low{background:#fff}
.wq.style-2 #wq-grid tr.selected,.wq.style-2 #wq-grid tr.active{background:#DCEBF1}
.wq.style-2 #wq-grid tr:hover{filter:brightness(.98)}
#wq-grid td.two-line>*{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#wq-grid td.two-line>.st-chip{display:inline-flex;margin-top:2px}
#wq-grid td.two-line small{font-size:12px;color:#4F5F68;font-weight:400}
.wq.style-2 #wq-grid td.two-line{max-width:240px}
.wq.style-2 #wq-grid td[data-col=payer]{max-width:180px;overflow:hidden;text-overflow:ellipsis}
#wq-grid td.two-line strong{font-weight:600}
#wq-grid td.num.two-line>*{margin-left:auto}
.age-flag-2{display:inline-flex!important;align-items:center;gap:2px;font-size:11px;font-weight:600;color:#A3301C}
.pri-pill{display:inline-flex;align-items:center;gap:5px;padding:2px 9px 2px 7px;border-radius:999px;border:1px solid #D5DCE0;background:#fff;color:#33444E;font-size:12px;white-space:nowrap}
.pri-pill strong{font-weight:600;font-variant-numeric:tabular-nums}
.pri-pill.urgent{background:#16303F;border-color:#16303F;color:#fff}
.pri-pill.high{background:#DCE7EB;border-color:#7FA0AE;color:#16303F}
.pri-pill.medium{background:#F3F6F7;border-color:#C9D3D9}
.pri-shape{display:inline-block;width:8px;height:8px;flex:none}
.pri-shape.diamond{background:currentColor;transform:rotate(45deg)}
.pri-shape.triangle{width:10px;height:9px;background:currentColor;clip-path:polygon(50% 0,100% 100%,0 100%)}
.pri-shape.dot{background:currentColor;border-radius:50%}
.pri-shape.ring{border:1.5px solid currentColor;border-radius:50%}
.lock-pill{display:inline-flex;align-items:center;gap:3px;padding:2px 7px 2px 5px;border-radius:999px;font-size:11px;font-weight:600;white-space:nowrap}
.lock-pill.mine{border:1px solid var(--blue);color:#2F5363}
.lock-pill.other{background:var(--navy);color:#fff}
.wq.style-2 .grid-foot{padding:10px 12px;border-top:1px solid #EEF2F4;font-size:12.5px;color:#4F5F68}
.wq.style-2 .pager{gap:4px}
.wq.style-2 .pager button{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:34px;border-radius:999px;color:var(--navy)}
.wq.style-2 .pager button.current{background:var(--blue);color:#fff;font-weight:600}
.pager button{display:inline-flex;align-items:center;justify-content:center}

/* ---------- Narrower headers: keep one row ---------- */
.kpi-pill .kpi-tiny{display:none}
/* fitHeader() in app.js adds these steps when the title would be cut off */
.app-title.fit-1 .kpi-pill .kpi-long{display:none}
.app-title.fit-1 .kpi-pill .kpi-short{display:inline}
.app-title.fit-2 .presence-bar{display:none}
.app-title.fit-3 .kpi-pill .kpi-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media (max-width:1360px){
  .app-title{--hpad:14px;--hgap:12px}
  .kpi-pill .kpi-long{display:none}
  .kpi-pill .kpi-short{display:inline}
}
@media (max-width:1280px){
  .app-title .presence-bar{display:none}
  .kpi-label{font-size:10px}
}
@media (max-width:1100px){
  .brand-block{display:none}
  .kpi-pill .kpi-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
}
@media (max-width:900px){
  .cw-bar .win-btn.hide-phone{display:none}
  .claim-taskbar{position:sticky;bottom:0;z-index:55}
  .app-title{position:sticky;top:0;z-index:60;flex-wrap:nowrap;padding-block:6px}
  .team-kpis.kpi-pill{order:0;flex-basis:auto;border-top:1px solid #E3E8EB;justify-content:flex-start}
  .app-title h1{font-size:15px}
}

/* ---------- Phones ---------- */
@media (max-width:600px){
  .phone-only{display:inline-flex!important}
  .app-title{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;grid-template-rows:auto auto;column-gap:8px;row-gap:0;align-items:center;min-height:56px;padding:6px 10px}
  #menu-phone{grid-column:1;grid-row:1/3;width:44px;height:44px;border:0;border-radius:10px}
  .brand-block{display:contents}
  .logo-slot{display:none}
  .app-title .wordmark{display:block;grid-column:2;grid-row:1;font-size:10.5px;letter-spacing:.08em;line-height:1.2}
  .app-title h1{position:static;width:auto;height:auto;overflow:hidden;clip:auto;white-space:nowrap;text-overflow:ellipsis;grid-column:2;grid-row:2;font-size:15px;line-height:1.25}
  .app-title h1 .app-name{display:none}
  .app-title h1 .view-name{display:inline}
  .title-spacer{display:none}
  .team-kpis.kpi-pill{grid-column:3;grid-row:1/3;padding:3px 8px;gap:4px;border-top:1px solid #E3E8EB}
  .kpi-pill #kpi-total,.kpi-pill .kpi-sep,.kpi-pill .kpi-more{display:none}
  .kpi-pill .kpi-item{gap:4px}
  .kpi-pill .kpi-ic{width:14px;height:14px}
  .kpi-pill .kpi-item>strong{font-size:13px}
  .kpi-pill .kpi-delta{padding:0 4px;font-size:12px;background:transparent}
  .kpi-pill .kpi-long,.kpi-pill .kpi-short{display:none!important}
  .kpi-pill .kpi-tiny{display:inline}
  .app-title .title-tools{grid-column:4;grid-row:1/3;gap:6px;margin-left:0}
  .app-title .presence-bar,#start-here-open,.menu-open-pill{display:none!important}
  .round-btn{width:40px;height:40px}
  .app-title .portal-account summary{min-height:40px;padding:0;background:transparent}
  .theme-menu{right:-50px}
  .menu-bar{display:none}
  body.phone-menu-open .menu-bar{display:flex!important;position:fixed;top:var(--chrome-h,56px);left:0;z-index:96;flex-direction:column;align-items:stretch;width:min(300px,86vw);max-height:calc(100dvh - var(--chrome-h,56px));overflow:auto;padding:6px 0;border:1px solid #E3E8EB;border-radius:0 0 14px 0;box-shadow:0 12px 32px rgb(22 48 63/22%)}
  body.phone-menu-open .menu-item{border-bottom:0;border-left:3px solid transparent;padding:0 16px}
  body.phone-menu-open .menu-item.active{border-left-color:var(--blue)}
  .menu-spacer,.menu-collapse{display:none}
  /* Queue: claims as cards */
  .wq-toolbar{padding:8px 10px}
  .wq.style-2{padding:8px}
  .wq-title h1{font-size:20px}
  #wq-grid{min-width:0!important;table-layout:auto}
  #wq-grid thead{display:none}
  #wq-grid,#wq-grid tbody{display:block;width:100%}
  #wq-grid tbody tr{display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"chk pat bal" "chk pay st" "chk fu id";gap:3px 8px;height:auto!important;padding:10px 12px;border-bottom:1px solid #EEF2F4}
  #wq-grid tbody td{display:none;padding:0!important;border:0;max-width:none!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;height:auto}
  #wq-grid tbody td.check{display:block;grid-area:chk;align-self:center}
  #wq-grid tbody td[data-col=patientName]{display:block;grid-area:pat;font-weight:600}
  #wq-grid tbody td[data-col=balance]{display:block;grid-area:bal;font-weight:600;text-align:right}
  #wq-grid tbody td[data-col=payer]{display:block;grid-area:pay;font-size:12px;color:#33444E}
  #wq-grid tbody td[data-col=workStatus]{display:block;grid-area:st;font-size:12px;text-align:right}
  #wq-grid tbody td[data-col=nextFollowUp]{display:block;grid-area:fu;font-size:12px}
  #wq-grid tbody td[data-col=claimId]{display:block;grid-area:id;text-align:right;font-size:12px}
  .grid-wrap{max-height:none}
  .grid-foot{flex-wrap:wrap;row-gap:6px}
  .grid-foot .foot-hint{display:none}
  .preview-bar .pv-hint{display:none}
  /* Claims bar: tabs fill the row; state shows as its icon only */
  .claim-taskbar{padding:6px 10px}
  .task-tab{flex:1 1 0}
  .tab-state-text,.tab-state.now{display:none}
  /* Claim window: full screen under the header, Minimize and Close only */
  #claim-layer>.claim-max,#claim-layer>.claim-max.restored,body.has-taskbar #claim-layer>.claim-max{inset:0;border:0;border-radius:0}
  .cw-bar{padding:3px 4px 3px 12px;gap:6px}
  .cw-balance>span,.cw-ehr-text,.cw-lock{display:none}
  .cw-ehr{padding:0 8px}
  .cw-body{padding:12px;gap:14px}
  .cw-left,.cw-right{flex-basis:100%;max-width:none}
  .cw-details .pairs{grid-template-columns:120px minmax(0,1fr);font-size:13px}
  .cw-deadline{flex:1 1 100%}
  .cw-foot{padding:10px 12px;gap:8px}
  .cw-foot .btn.step{flex:1 1 40%}
  .cw-pos{flex-basis:100%;order:3}
  .cw-foot .spacer{display:none}
  .cw-foot .claim-actions{flex-basis:100%;order:4}
  .cw-foot .btn.big{flex:1 1 0;padding:0 10px}
}

/* Copyright notice under the queue and on printed reports. */
.print-legal{margin-top:12px;font-size:9pt;color:#444}

/* Header motion (js/header-motion.js). Icons move on hover and give a small pop when clicked or
   activated from the keyboard (.hdr-pop). Only transforms move, so nothing around them shifts; the
   keyframes use translate/rotate/scale so they add to any rotation the icon already has (the More
   chevron turns over while its menu is open). They play whatever the computer's reduce-motion
   setting says; the person's own "Celebrations and header animations" switch (html.motion-off) stops them. */
@keyframes hdr-hop{0%{translate:0 0;rotate:0deg}35%{translate:0 -4px;rotate:-8deg}65%{translate:0 0;rotate:6deg}100%{translate:0 0;rotate:0deg}}
@keyframes hdr-spin{from{rotate:0deg}to{rotate:360deg}}
@keyframes hdr-drop{0%,100%{translate:0 0}40%{translate:0 3px}70%{translate:0 -1px}}
@keyframes hdr-pop{0%{scale:.8}60%{scale:1.18}100%{scale:1}}
@keyframes coin-flip{0%{transform:rotateY(0)}55%{transform:rotateY(200deg) translateZ(4px)}100%{transform:rotateY(360deg)}}
@keyframes coin-cheer{0%{transform:rotateY(0)}55%{transform:rotateY(200deg) translateZ(4px)}100%{transform:rotateY(360deg)}}
.app-title .acct-chev{flex:none;color:var(--navy);margin-right:4px}
.app-title .portal-account[open]>summary .acct-chev{transform:rotate(180deg)}
.app-title .presence-face{transition:translate .15s ease-out}
.app-title .presence-face:hover{translate:0 -3px}
/* Hover */
.app-title .kpi-item:hover>.kpi-ic,.app-title .logo-slot:hover,#menu-open:hover>.ic,#menu-phone:hover>.ic{animation:hdr-hop .55s cubic-bezier(.3,.7,.3,1)}
.app-title .kpi-more>summary:hover>.ic,.app-title .portal-account>summary:hover>.acct-chev{animation:hdr-drop .5s ease-in-out}
#start-here-open:hover [data-icon]>.ic{animation:hdr-spin .7s cubic-bezier(.45,.05,.3,1)}
#theme-open:hover .coin{animation:coin-flip 1s cubic-bezier(.45,.05,.3,1)}
/* A pick in the Theme menu: one flip, with the Save celebration around the button */
#theme-open.coin-cheer .coin{animation:coin-cheer .9s cubic-bezier(.45,.05,.3,1)}
/* Click or keyboard activation */
.app-title .kpi-item.hdr-pop>.kpi-ic,.app-title .logo-slot.hdr-pop,#menu-open.hdr-pop>.ic,#menu-phone.hdr-pop>.ic,.app-title .kpi-more>summary.hdr-pop>.ic,.app-title .portal-account>summary.hdr-pop>.acct-chev,#start-here-open.hdr-pop [data-icon]>.ic,#theme-open.hdr-pop .coin,.app-title .presence-face.hdr-pop{animation:hdr-pop .35s cubic-bezier(.2,.8,.3,1.4)}
.app-title .kpi-item.hdr-pop:hover>.kpi-ic,.app-title .logo-slot.hdr-pop:hover,#menu-open.hdr-pop:hover>.ic,#menu-phone.hdr-pop:hover>.ic{animation:hdr-hop .55s cubic-bezier(.3,.7,.3,1),hdr-pop .35s cubic-bezier(.2,.8,.3,1.4)}
.app-title .kpi-more>summary.hdr-pop:hover>.ic,.app-title .portal-account>summary.hdr-pop:hover>.acct-chev{animation:hdr-drop .5s ease-in-out,hdr-pop .35s cubic-bezier(.2,.8,.3,1.4)}
#start-here-open.hdr-pop:hover [data-icon]>.ic{animation:hdr-spin .7s cubic-bezier(.45,.05,.3,1),hdr-pop .35s cubic-bezier(.2,.8,.3,1.4)}
#theme-open.hdr-pop:hover .coin{animation:coin-flip 1s cubic-bezier(.45,.05,.3,1),hdr-pop .35s cubic-bezier(.2,.8,.3,1.4)}
#theme-open.coin-cheer.hdr-pop .coin,#theme-open.coin-cheer:hover .coin{animation:coin-cheer .9s cubic-bezier(.45,.05,.3,1)}
html.motion-off .app-title .ic,html.motion-off .app-title .logo-slot,html.motion-off .app-title .presence-face,html.motion-off #theme-open .coin{animation:none!important;transition:none!important}
html.motion-off .app-title .presence-face:hover{translate:none}

/* ---------- Status found and action taken (claim window, board 9) ---------- */
.st-chip.plain.unchecked{border-color:#B9C4CA}
.st-chip .old-mark,td>.old-mark{font-weight:400;color:#55656E}
td.two-line>.old-mark{display:block;font-size:11px;margin-top:2px}
#wq-grid td.old-list{color:#55656E;font-style:italic}
.work-form .field-label{display:flex;align-items:center;gap:6px;font-size:12.5px;font-weight:500}
.work-form .field-label label{font-weight:500}
.info-tip{position:relative;display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;padding:0;border-radius:50%;border:1.5px solid #6E8590;background:#fff;color:#4F5F68;font:700 10px/1 Poppins,system-ui,sans-serif;cursor:help;flex:none}
.info-tip:focus-visible{outline:2px solid var(--navy);outline-offset:2px}
.info-tip:focus-visible::after{content:attr(data-tip);position:absolute;z-index:80;left:50%;top:calc(100% + 6px);translate:-50% 0;width:max-content;max-width:260px;padding:7px 10px;border-radius:8px;background:#16303F;color:#fff;font-size:11.5px;font-weight:400;line-height:1.4;white-space:normal;text-align:left;box-shadow:0 6px 16px rgb(22 48 63/25%)}
.work-form select optgroup{font-weight:600;color:#2F5363}
.closed-row .closed-note{display:flex;align-items:center;gap:6px;margin:0;font-size:12.5px;color:#1F6B4A}
.fu-field{display:flex;align-items:center;min-height:40px;padding:0 4px 0 10px;border:1px solid #C9D3D9;border-radius:10px;background:#fff;box-sizing:border-box}
.fu-field:focus-within{border-color:#457385;box-shadow:0 0 0 2px rgb(69 115 133/20%)}
.fu-field.invalid{border-color:#B8261A}
.fu-field input{flex:1;min-width:0;border:0!important;outline:0;box-shadow:none!important;background:transparent;font:inherit;font-size:13.5px;color:#16303F;font-variant-numeric:tabular-nums;padding:0;min-height:0}
.fu-days{margin-right:8px;font-size:12px;color:#4F5F68;white-space:nowrap}
.fu-cal{width:34px;height:32px;border:0;border-radius:8px;background:#EEF3F5;color:#16303F;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;flex:none}
.fu-cal:hover,.fu-cal[aria-expanded=true]{background:#DCE7EC}
.cal-pop{position:fixed;z-index:120;width:280px;padding:12px;border:1px solid #DDE5E9;border-radius:14px;background:#fff;box-shadow:0 12px 28px rgb(22 48 63/16%);display:flex;flex-direction:column;gap:8px;color:#16303F;font-family:Poppins,system-ui,sans-serif;font-size:13px;animation:panel-in .18s ease-out both}
.cal-nav{display:flex;align-items:center;justify-content:space-between}
.cal-title{font-size:13.5px}
.cal-arrow{width:30px;height:30px;border:0;border-radius:8px;background:transparent;color:#16303F;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.cal-arrow:hover{background:#EEF3F5}
.cal-quicks{display:flex;gap:6px;flex-wrap:wrap}
.cal-quick{height:26px;padding:0 10px;border:1px solid #DDE5E9;border-radius:999px;background:#fff;font:inherit;font-size:11.5px;color:#16303F;cursor:pointer}
.cal-quick.suggested{border-color:#9FC0CE;background:#F4F9FB;font-weight:600;color:#2F5363}
.cal-grid{display:flex;flex-direction:column;gap:2px}
.cal-row{display:grid;grid-template-columns:repeat(7,34px);justify-content:space-between}
.cal-head span{text-align:center;font-size:11px;font-weight:600;color:#4F5F68}
.cal-day{width:34px;height:32px;border:0;border-radius:8px;background:transparent;font:inherit;font-size:12.5px;font-variant-numeric:tabular-nums;color:#16303F;cursor:pointer;padding:0}
.cal-day:hover:not(:disabled){background:#EEF3F5}
.cal-day:focus-visible{outline:2px solid #16303F;outline-offset:1px}
.cal-day.weekend{color:#7A8A93}
.cal-day.today{box-shadow:inset 0 0 0 1.5px #457385;font-weight:600}
.cal-day.chosen{background:#457385;color:#fff;font-weight:600}
.cal-day.past{color:#A7B3B9;cursor:default}
.cal-note{margin:0;font-size:11.5px;color:#4F5F68}

/* @mentions and #claim links */
.mention{display:inline-flex;align-items:center;padding:0 6px;border-radius:6px;background:#E3EEF3;color:#2F5363;font-weight:600}
.mention.me{background:#FFF1D6;color:#7A4A00}
.claim-chip{display:inline-flex;align-items:center;gap:4px;padding:0 7px;border:0;border-radius:999px;background:#FFF1D6;color:#7A4A00;font:inherit;font-weight:600;font-size:12px;cursor:pointer}
button.claim-chip:hover{background:#FCE4B2}
.note-wrap{position:relative}
.mention-list{position:absolute;left:0;right:0;z-index:90;background:#fff;border:1px solid #DDE5E9;border-radius:12px;box-shadow:0 10px 24px rgb(22 48 63/18%);padding:4px;max-height:240px;overflow:auto}
.mention-list[hidden]{display:none}
.mention-list.below{top:calc(100% + 4px)}
.mention-list.above{bottom:calc(100% + 4px)}
.mention-opt{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:8px;cursor:pointer;color:#16303F}
.mention-opt.active,.mention-opt:hover{background:#E3EEF3}
.mention-opt-text{display:flex;flex-direction:column;min-width:0;font-size:12.5px}
.mention-opt-text small{font-size:11px;color:#4F5F68}
.mention-empty{padding:8px;font-size:12px;color:#4F5F68}
.mention-chips{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px;font-size:12px}
.mention-chips[hidden]{display:none}
.avatar{flex:none;width:28px;height:28px;border-radius:50%;background:hsl(var(--hue,200) 38% 42%);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:600}
.avatar.small{width:24px;height:24px;font-size:10px}
.avatar.me{background:#457385}

/* ---------- Bell (header, "Bell v2") ---------- */
.bell-wrap{position:relative;display:inline-flex;flex:none}
.bell-wrap[hidden]{display:none}
.bell-btn{position:relative;border-color:#E3B45C;background:radial-gradient(circle at 30% 25%,#FFF6D8 0%,#FFE08A 45%,#F7B98E 100%);box-shadow:0 1px 2px rgb(22 48 63/12%)}
.bell-btn:hover{background:radial-gradient(circle at 30% 25%,#FFF6D8 0%,#FFE08A 45%,#F7B98E 100%);box-shadow:0 0 0 3px rgb(255 200 90/35%),0 2px 6px rgb(22 48 63/18%)}
.bell-btn[aria-expanded=true]{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--navy)}
.bell-svg{overflow:visible}
.bell-svg .bell-body{transform-box:fill-box;transform-origin:50% 4%}
.bell-svg .bell-clapper{transform-box:view-box;transform-origin:12px 6px}
.bell-svg .bell-waves{opacity:0;transform-box:fill-box;transform-origin:50% 60%}
.bell-badge{position:absolute;top:-5px;right:-6px;min-width:18px;height:18px;padding:0 5px;box-sizing:border-box;border-radius:999px;background:linear-gradient(135deg,#E5482F 0%,#B8261A 100%);color:#fff;border:2px solid #fff;font-size:10.5px;font-weight:700;line-height:14px;text-align:center;box-shadow:0 1px 3px rgb(184 38 26/45%);animation:badge-pop .45s cubic-bezier(.2,.8,.3,1.4) both;pointer-events:none}
.bell-badge[hidden]{display:none}
@keyframes bell-swing{0%,100%{rotate:0deg}8%{rotate:22deg}18%{rotate:-20deg}28%{rotate:16deg}38%{rotate:-12deg}48%{rotate:8deg}58%{rotate:-4deg}68%{rotate:0deg}}
@keyframes clapper-swing{0%,100%{rotate:0deg}10%{rotate:-26deg}20%{rotate:24deg}30%{rotate:-18deg}40%{rotate:14deg}50%{rotate:-8deg}60%{rotate:4deg}70%{rotate:0deg}}
@keyframes bell-waves{0%,100%{opacity:0;scale:.85}15%{opacity:1;scale:1}35%{opacity:0;scale:1.25}45%{opacity:1;scale:1}65%{opacity:0;scale:1.3}}
@keyframes bell-glow{0%{box-shadow:0 0 0 0 rgb(255 184 64/70%)}100%{box-shadow:0 0 0 12px rgb(255 184 64/0%)}}
@keyframes badge-pop{0%{scale:0}60%{scale:1.3}100%{scale:1}}
@keyframes badge-throb{0%,100%{scale:1}50%{scale:1.18}}
@keyframes panel-in{from{opacity:0;translate:0 -8px}to{opacity:1;translate:0 0}}
@keyframes chat-in{from{opacity:0;translate:0 14px;scale:.97}to{opacity:1;translate:0 0;scale:1}}
@keyframes fab-pulse{0%{opacity:.55;scale:1}100%{opacity:0;scale:1.7}}
@keyframes fab-hop{0%,100%{translate:0 0}40%{translate:0 -5px}70%{translate:0 1px}}
.bell-btn:hover .bell-body,.bell-btn:focus-visible .bell-body{animation:bell-swing 1s ease-in-out}
.bell-btn:hover .bell-clapper,.bell-btn:focus-visible .bell-clapper{animation:clapper-swing 1s ease-in-out}
.bell-btn:hover .bell-waves,.bell-btn:focus-visible .bell-waves{animation:bell-waves 1s ease-out}
.bell-btn.has-new .bell-body{animation:bell-swing 1.1s ease-in-out .3s 3}
.bell-btn.has-new .bell-clapper{animation:clapper-swing 1.1s ease-in-out .3s 3}
.bell-btn.has-new .bell-waves{animation:bell-waves 1.1s ease-out .3s 3}
.bell-btn.has-new{animation:bell-glow 1.1s ease-out .3s 3}
.bell-btn.has-new .bell-badge{animation:badge-pop .45s cubic-bezier(.2,.8,.3,1.4) both,badge-throb 1.1s ease-in-out .6s 3}
.np-panel{position:absolute;top:calc(100% + 10px);right:-8px;z-index:140;width:380px;max-width:calc(100vw - 16px);background:#fff;border:1px solid #DDE5E9;border-radius:14px;box-shadow:0 16px 36px rgb(22 48 63/20%);overflow:hidden;text-align:left;color:#16303F;animation:panel-in .22s ease-out both}
.np-panel[hidden]{display:none}
.np-head{display:flex;align-items:center;gap:8px;padding:12px 12px 8px}
.np-head strong{flex:1;font-size:14px}
.np-head .linkish{font-size:12px;font-weight:600;color:#457385}
.np-tabs{display:flex;gap:4px;padding:0 12px 8px}
.np-tab{padding:4px 10px;border:0;border-radius:999px;background:#EEF3F5;color:#16303F;font:inherit;font-size:12px;cursor:pointer}
.np-tab.on{background:#16303F;color:#fff;font-weight:600}
.np-list{border-top:1px solid #E3E8EB;max-height:min(420px,calc(100vh - 160px));overflow:auto}
.np-item{display:flex;gap:10px;width:100%;padding:10px 12px;border:0;border-bottom:1px solid #EEF2F4;background:#fff;text-align:left;color:#16303F;font:inherit;font-size:12.5px;cursor:pointer}
.np-item.unread{background:#F4F9FB}
.np-item:hover{background:#EAF2F5}
.np-avatar{width:32px;height:32px}
.np-ic{flex:none;width:32px;height:32px;border-radius:50%;background:#FFF1D6;color:#7A4A00;display:inline-flex;align-items:center;justify-content:center}
.np-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.np-title{font-weight:600}
.np-where{font-size:11.5px;color:#2F5363}
.np-snippet{color:#33444E;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.np-meta{flex:none;display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.np-time{font-size:11px;color:#4F5F68;white-space:nowrap}
.np-dot{width:8px;height:8px;border-radius:50%;background:#C8321E}
.np-empty{margin:0;padding:18px 14px;color:#4F5F68;font-size:12.5px}

/* ---------- Claims bar and chat (board: Current) ---------- */
.claim-taskbar{display:flex}
.taskbar-tabs{flex:1 1 auto;min-width:0;display:flex;flex-wrap:nowrap;align-items:center;gap:8px;overflow:hidden}
.taskbar-tabs .task-tab{flex:0 1 calc((100% - 40px)/6)}
.chat-fab-slot{flex:none;margin-left:auto;display:inline-flex}
.chat-fab{position:relative;flex:none;width:46px;height:46px;border:0;border-radius:50%;background:linear-gradient(135deg,#457385 0%,#2F5363 100%);color:#fff;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 6px 16px rgb(22 48 63/28%);cursor:pointer}
.chat-fab::after{content:"";position:absolute;inset:0;border-radius:50%;border:2px solid #457385;opacity:0;pointer-events:none}
.chat-fab.has-unread::after{animation:fab-pulse 1.8s ease-out 1s 3}
.chat-fab.pulse::after{animation:fab-pulse 1.8s ease-out 3}
.chat-fab:hover{animation:fab-hop .5s ease-in-out}
.chat-fab[aria-expanded=true]{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--navy)}
.chat-fab .bell-badge{top:-4px;right:-4px}
.chat-panel{position:fixed;right:16px;bottom:calc(var(--taskbar-h,56px) + 10px);z-index:130;width:370px;height:540px;max-height:calc(100vh - var(--taskbar-h,56px) - 80px);display:flex;flex-direction:column;background:#fff;border:1px solid #DDE5E9;border-radius:16px;box-shadow:0 18px 40px rgb(22 48 63/24%);overflow:hidden;color:#16303F;font-size:13px;animation:chat-in .26s cubic-bezier(.2,.8,.3,1) both}
.chat-panel[hidden]{display:none}
.chat-head{display:flex;align-items:center;gap:8px;padding:12px 12px 10px;background:linear-gradient(135deg,#457385 0%,#2F5363 100%);color:#fff}
.chat-head strong{flex:1;font-size:14px}
.chat-close{width:28px;height:28px;border:0;border-radius:8px;background:rgb(255 255 255/15%);color:#fff;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.chat-tabs{display:flex;align-items:center;gap:4px;padding:8px 12px;border-bottom:1px solid #E3E8EB}
.chat-tab{display:inline-flex;align-items:center;gap:4px;padding:4px 10px;border:0;border-radius:999px;background:#EEF3F5;color:#16303F;font:inherit;font-size:12px;cursor:pointer}
.chat-tab.on{background:#16303F;color:#fff;font-weight:600}
.chat-tab-count{min-width:16px;height:16px;padding:0 4px;box-sizing:border-box;border-radius:999px;background:#C8321E;color:#fff;font-size:10px;font-weight:700;text-align:center;line-height:16px}
.chat-tabs .spacer{flex:1}
.chat-new{display:inline-flex;align-items:center;gap:4px;height:26px;padding:0 10px;border:1px solid #9FC0CE;border-radius:999px;background:#F4F9FB;color:#2F5363;font:inherit;font-size:12px;font-weight:600;cursor:pointer}
.chat-list{flex:1;overflow:auto;padding:12px;display:flex;flex-direction:column;gap:12px}
.chat-day,.chat-older{text-align:center;font-size:11px;color:#4F5F68}
.chat-empty{margin:auto;color:#4F5F68;font-size:12.5px;text-align:center;padding:16px}
.chat-msg{display:flex;gap:8px;align-items:flex-start}
.chat-msg.mine{flex-direction:row-reverse}
.chat-msg .avatar{width:32px;height:32px}
.chat-msg-body{max-width:250px;display:flex;flex-direction:column;gap:2px}
.chat-msg.mine .chat-msg-body{align-items:flex-end}
.chat-msg-meta{font-size:11px;color:#4F5F68}
.chat-msg-meta strong{color:#16303F}
.chat-bubble{padding:7px 10px;border-radius:12px;background:#F3F6F7;font-size:12.5px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
.chat-msg.mine .chat-bubble{background:#457385;color:#fff}
.chat-msg.mine .mention{background:rgb(255 255 255/22%);color:#fff}
.chat-msg.highlight .chat-bubble{box-shadow:0 0 0 2px #E3B45C}
.chat-compose{position:relative;padding:10px 12px 8px;border-top:1px solid #E3E8EB}
.chat-compose-row{display:flex;align-items:flex-end;gap:8px}
.chat-compose textarea{flex:1;min-height:40px;max-height:110px;padding:9px 10px;border:1.5px solid #C9D3D9;border-radius:12px;font:inherit;font-size:13px;resize:none;box-sizing:border-box}
.chat-compose textarea:focus{border-color:#457385;outline:0}
.chat-send{width:40px;height:40px;border:0;border-radius:12px;background:#457385;color:#fff;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;flex:none}
.chat-hint{margin-top:6px;font-size:11px;color:#4F5F68}
.chat-status{margin:2px 0 0;font-size:11px;color:#A3301C}
.chat-status:empty{display:none}
.chat-search{display:flex;align-items:center;gap:8px;margin:8px 12px;height:34px;padding:0 10px;border:1px solid #C9D3D9;border-radius:10px;color:#55656E}
.chat-search-input{flex:1;min-width:0;border:0;outline:0;font:inherit;font-size:12.5px;background:transparent}
.dm-list{flex:1;overflow:auto;border-top:1px solid #EEF2F4}
.dm-row{display:flex;align-items:center;gap:10px;width:100%;padding:9px 12px;border:0;border-bottom:1px solid #EEF2F4;background:#fff;text-align:left;color:#16303F;font:inherit;cursor:pointer}
.dm-row:hover{background:#EAF2F5}
.dm-row.unread{background:#F4F9FB}
.dm-faces{position:relative;flex:none;width:34px;height:34px;display:inline-flex}
.dm-faces>.avatar{width:34px;height:34px}
.dm-faces.stack>.avatar{position:absolute;width:24px;height:24px}
.dm-faces.stack>.avatar:first-child{left:0;top:0}
.dm-faces.stack>.avatar:last-child{right:0;bottom:0;border:2px solid #fff}
.online-dot{position:absolute;right:-1px;bottom:-1px;width:10px;height:10px;border-radius:50%;background:#2E8B62;border:2px solid #fff}
.dm-text{flex:1;min-width:0;display:flex;flex-direction:column}
.dm-top{display:flex;gap:6px;align-items:baseline}
.dm-top strong{flex:1;font-size:13px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dm-row.unread .dm-top strong{font-weight:700}
.dm-time{font-size:11px;color:#4F5F68}
.dm-bottom{display:flex;gap:6px;align-items:center}
.dm-preview{flex:1;min-width:0;font-size:12px;color:#4F5F68;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dm-row.unread .dm-preview{color:#16303F}
.dm-count{min-width:18px;height:18px;padding:0 5px;box-sizing:border-box;border-radius:999px;background:#C8321E;color:#fff;font-size:10.5px;font-weight:700;text-align:center;line-height:18px}
.chat-sub-head{display:flex;align-items:center;gap:8px;padding:8px 12px;border-bottom:1px solid #EEF2F4;flex-wrap:wrap}
.chat-sub-head small{flex-basis:100%;color:#4F5F68;font-size:11.5px}
.chat-sub-head .dm-faces,.chat-sub-head .dm-faces>.avatar{width:28px;height:28px}
.chat-back{width:28px;height:28px;border:0;border-radius:8px;background:#EEF3F5;color:#16303F;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.dm-pick{flex:1;overflow:auto;padding:6px 12px;display:flex;flex-direction:column;gap:2px}
.dm-pick-row{display:flex;align-items:center;gap:8px;padding:6px 4px;border-radius:8px;cursor:pointer}
.dm-pick-row:hover{background:#F3F6F7}
.online-word{margin-left:auto;color:#2E8B62}
.chat-sub-foot{padding:10px 12px;border-top:1px solid #E3E8EB;display:flex;justify-content:flex-end}

/* ---------- Setup → Statuses & actions (board 10) ---------- */
.wl-top{display:flex;align-items:center;gap:12px;margin:4px 0 12px}
.wl-top .spacer{flex:1}
.wl-help{display:flex;gap:10px;padding:12px 14px;margin-bottom:14px;border-radius:12px;background:#F0F6F8;border:1px solid #CFE0E7;font-size:12.5px;color:#23394A}
.wl-help .ic{color:#457385;flex:none}
.wl-panes{display:flex;gap:18px;align-items:stretch}
.wl-list{flex:0 0 340px;padding:6px;margin:0;display:flex;flex-direction:column}
.wl-list-head{display:flex;align-items:center;gap:8px;padding:6px 6px 4px}
.wl-list-head strong{flex:1;font-size:14px}
.wl-group-name{display:block;padding:10px 10px 4px;font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:#4F5F68}
.wl-items{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
.wl-items li{display:flex;align-items:center;gap:2px}
.wl-items li.off .wl-name{color:#6B7B84}
.wl-items .drag-grip{flex:none}
.wl-item{flex:1;min-width:0;display:flex;align-items:center;gap:10px;min-height:40px;padding:0 10px;border:0;border-radius:10px;background:transparent;color:#16303F;font:inherit;font-size:13px;text-align:left;cursor:pointer}
.wl-item:hover{background:#F3F6F7}
.wl-item[aria-current=true]{background:#E3EEF3;box-shadow:inset 3px 0 0 #457385;font-weight:600}
.wl-name{flex:1;min-width:0}
.wl-count{margin-left:auto;font-size:11.5px;color:#4F5F68;font-weight:500;white-space:nowrap}
.wl-editor{flex:1 1 auto;min-width:0;margin:0;padding:18px;display:flex;flex-direction:column;gap:16px}
.wl-editor-head{display:flex;align-items:center;gap:10px}
.wl-editor-head h2{margin:0;font-size:18px;flex:1}
.wl-fields{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:12px}
.wl-checks{display:flex;gap:12px;flex-wrap:wrap}
.wl-check,.wl-link{display:flex;align-items:center;gap:10px;min-height:38px;padding:0 10px;border:1px solid #E3E8EB;border-radius:10px;font-size:13px;cursor:pointer}
.wl-check{flex:1 1 220px}
.wl-link.on{border-color:#9FC0CE;background:#F4F9FB}
.wl-link-name{flex:1;min-width:0}
.wl-link-group{font-size:11px;color:#4F5F68;white-space:nowrap}
.wl-links{margin:0;padding:0;border:0;display:flex;flex-direction:column;gap:10px}
.wl-links legend{padding:0;display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.wl-sub{font-size:12px;color:#4F5F68}
.wl-link-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.wl-link-tools{display:flex;gap:8px}
.wl-foot{margin-top:auto;display:flex;gap:10px;align-items:center;border-top:1px solid #E3E8EB;padding-top:14px}
.wl-foot .spacer{flex:1}
@media (max-width:1400px){.wl-link-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:900px){.wl-panes{flex-direction:column}.wl-list{flex:none}.wl-fields{grid-template-columns:1fr}.wl-link-grid{grid-template-columns:1fr}}
@media (max-width:600px){
 .chat-panel{left:8px;right:8px;width:auto;height:min(540px,calc(100vh - var(--taskbar-h,56px) - 70px))}
 .np-panel{position:fixed;top:56px;left:8px;right:8px;width:auto}
 .chat-fab{width:42px;height:42px}
 .bell-btn{width:40px;height:40px}
}
/* The person's "Celebrations and header animations" switch stops the bell and chat motion too. */
html.motion-off .bell-btn,html.motion-off .bell-btn .bell-body,html.motion-off .bell-btn .bell-clapper,html.motion-off .bell-btn .bell-waves,html.motion-off .bell-badge,html.motion-off .bell-btn .bell-badge,html.motion-off .chat-fab,html.motion-off .chat-fab::after,html.motion-off .np-panel,html.motion-off .chat-panel,html.motion-off .cal-pop{animation:none!important;transition:none!important}

/* Chat: delete a message (your own; administrators any). Deleted messages keep their place. */
.chat-del{margin-left:6px;width:24px;height:24px;padding:0;border:0;border-radius:6px;background:transparent;color:#4F5F68;display:inline-flex;align-items:center;justify-content:center;opacity:0;cursor:pointer;vertical-align:middle}
.chat-msg:hover .chat-del,.chat-del:focus-visible{opacity:1}
.chat-del:hover{background:#FBE9E5;color:#A3301C}
@media (hover:none){.chat-del{opacity:1}}
.chat-del-confirm{margin-left:6px;display:inline-flex;align-items:center;gap:6px;font-size:11.5px;color:#16303F}
.chat-del-confirm .danger{color:#A3301C;font-weight:600}
.chat-bubble.deleted{display:inline-flex;flex-wrap:wrap;align-items:center;gap:6px;background:transparent!important;color:#4F5F68!important;border:1px dashed #C9D3D9;font-style:italic}
.chat-show-orig{font-style:normal;font-size:11.5px}
.chat-orig{flex-basis:100%;font-style:normal;color:#16303F;padding-top:4px;border-top:1px solid #E3E8EB}

/* Copyright on the right of the queue footer row; the page footer only when it cannot fit there. */
.grid-legal{flex:0 1 auto;min-width:0;overflow:hidden;white-space:nowrap;font-size:11px;color:#55656E}
body.legal-inline .bar-legal{display:none}
.grid-legal.off{display:none}

/* Full-screen claim, side-by-side layout: the window itself does not scroll. The open section (Transactions,
 History, Tasks…) takes the height that is left and scrolls inside itself; the form column scrolls on its
 own only when the window is very short, without a visible bar. */
@media (min-width:1101px){
  .claim-max .cw-body{flex-wrap:nowrap;align-items:stretch}
  .claim-max .cw-left{min-height:0}
  .claim-max .cw-left>*{flex:none}
  .claim-max .cw-left>.max-tab{flex:1 1 auto;min-height:140px;overflow:auto;scrollbar-width:thin}
  .claim-max .cw-right{min-height:0;overflow:auto;scrollbar-width:none}
  .claim-max .cw-right::-webkit-scrollbar{display:none}
}

/* Claim details: Show all details / Show key details only */
.cw-details .cw-more{grid-column:1/-1;justify-self:start;padding:0;border:0;background:transparent;color:var(--blue,#457385);font-size:12.5px;font-weight:600;cursor:pointer;text-decoration:underline;text-underline-offset:2px}

/* Short screens (under 900px tall): the Financial Summary becomes one line of label/value pairs so the
 full-screen claim fits without the window scrolling. */
@media (min-width:1101px) and (max-height:899px){
  .claim-max .cw-fin{padding:6px 0 0;border:0;border-top:1px solid #E3E8EB}
  .claim-max .cw-fin h3{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .claim-max .cw-fin .fin-grid{display:flex;flex-wrap:nowrap;gap:6px 18px;overflow:hidden;white-space:nowrap}
  .claim-max .cw-fin .fin-grid>div{flex-direction:row;align-items:baseline;gap:5px}
  .claim-max .cw-fin dt{font-size:11.5px}
  .claim-max .cw-fin dd{font-size:13px;text-align:left}
  .claim-max .cw-left{gap:10px}
  .claim-max .cw-left>.max-tab{min-height:110px}
}
/* The copyright line in the claims bar, between the minimized claims and the chat button. It shows when
 it cannot sit in the Work Queue footer row (other screens, narrow windows, a full-screen claim). */
.bar-legal{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:#55656E}
.bar-legal+.chat-fab-slot{margin-left:10px}
@media (max-width:700px){.bar-legal{font-size:10px}.bar-legal .legal-more{display:none}}

/* ---------- AI Status Checks ---------- */
/* The "AI" check badge (BOT Called column, History rows, Last Worked): a small teal pill with a check
   and the letters AI. The cell's label says when the bot called, so meaning never rests on color. */
.ai-badge{display:inline-flex;align-items:center;gap:3px;padding:1px 7px 1px 5px;border-radius:999px;border:1px solid #7FC1BB;background:#DDF2EF;color:#0B5852;font-size:11.5px;font-weight:600;line-height:1.35;letter-spacing:.02em;white-space:nowrap;vertical-align:middle}
.ai-badge .ic{stroke-width:2.4}
.ai-badge.small{padding:0 6px 0 4px;font-size:10.5px}
td.bot-cell{text-align:center}
.grid td.bot-cell,.grid th[data-col="botCalled"]{width:1%}
.bot-row td{background:#F4FBFA;vertical-align:top}
.bot-user{white-space:nowrap}
.ref-no{display:block;font-size:11px;color:#3F5560;font-variant-numeric:tabular-nums}
/* Recent calls: Patient Search layout; the detail is a list of facts */
.aging-view .ai-call .ps-result-top b{white-space:nowrap;color:#3F5560;font-weight:500}
.aging-view .ai-call .st-chip{font-size:11px;padding:1px 8px 1px 5px}
.aging-view .ai-detail{display:flex;flex-direction:column;gap:14px}
.aging-view .ai-detail h2{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.aging-view .ai-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 24px;margin:0}
.aging-view .ai-fact{min-width:0;border-top:1px solid #E3E8EB;padding-top:8px}
.aging-view .ai-fact dt{font-size:11.5px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:#4F5F68;margin:0 0 3px}
.aging-view .ai-fact dd{margin:0;font-size:14px;color:#1A2429;overflow-wrap:anywhere}
.aging-view .ai-fact dd small{display:block;color:#4F5F68;font-size:12.5px;margin-top:2px}
.aging-view .ai-linked{display:flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid #A9C2CC;border-radius:10px;background:#E7EFF2;color:#2F5363;font-size:13.5px}
.aging-view .ai-note{border-top:1px solid #E3E8EB;padding-top:10px}
.aging-view .ai-note h3{font-size:13px;margin:0 0 4px}
.aging-view .ai-note p{margin:0 0 6px;font-size:13px;color:#33444E}
.aging-view .ai-note blockquote{margin:0;padding:8px 12px;border-left:3px solid #7FC1BB;background:#F4FBFA;font-size:13.5px;line-height:1.45;color:#1A2429}
/* Call rules */
.aging-view .ai-rule-cell strong{display:block}
.aging-view .ai-summary{display:block;margin:3px 0 6px;font-size:13px;color:#33444E;max-width:78ch}
.aging-view .ai-rules td.actions{white-space:nowrap}
.aging-view .ai-preview-box{padding:8px 12px;border:1px solid #A9C2CC;border-radius:10px;background:#E7EFF2}
.aging-view .ai-preview-box>span{display:block;font-size:11.5px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:#2F5363}
.aging-view .ai-preview{margin:3px 0 0;font-size:13.5px;color:#1A2429}
.aging-view .ai-rule-form textarea{width:100%;font:inherit;padding:8px 10px;border:1px solid var(--control-line,#9DB4BF);border-radius:8px;resize:vertical}
@media (max-width:1100px){.aging-view .ai-facts{grid-template-columns:1fr}}
.aging-view .ai-rules .ps-flag{white-space:normal}
.aging-view .ai-rules th:nth-child(3),.aging-view .ai-rules td:nth-child(3){white-space:nowrap}

/* New message: when each person was last in the app */
.dm-pick-row .seen-word{margin-left:auto;color:var(--muted,#5F6B73);font-size:12px;white-space:nowrap}

/* Choose a workspace (public/js/workspace-picker.js) */
.ws-screen{position:fixed;inset:0;z-index:200;overflow:auto;background:var(--bg,#F4F6F7);padding:32px 24px 48px;font-family:inherit}
.ws-head{max-width:1280px;margin:0 auto 22px}
.ws-head .wordmark{display:inline-block;margin-bottom:10px}
.ws-head h1{margin:0 0 6px;font-size:26px;color:#16303F}
.ws-head p{margin:0;color:#4A5A63;font-size:14px}
.ws-grid{max-width:1280px;margin:0 auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:16px}
.ws-card{display:flex;flex-direction:column;gap:8px;background:#fff;border:1px solid #D9E1E5;border-radius:14px;padding:18px 18px 16px;box-shadow:0 1px 2px rgba(22,48,63,.06)}
.ws-card.last{border-color:#457385;box-shadow:0 0 0 2px rgba(69,115,133,.18)}
.ws-type{margin:0;display:flex;align-items:center;gap:8px;font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:#457385}
.ws-last{margin-left:auto;text-transform:none;letter-spacing:0;font-weight:600;background:#E3EEF3;color:#2F5363;border-radius:999px;padding:2px 8px}
.ws-card h2{margin:0;font-size:19px;color:#16303F}
.ws-summary{margin:0;color:#4A5A63;font-size:13px;line-height:1.45}
.ws-spec{display:grid;grid-template-columns:max-content 1fr;gap:4px 12px;margin:4px 0 6px;font-size:13px}
.ws-spec dt{color:#5F6B73}
.ws-spec dd{margin:0;color:#16303F;font-weight:500}
.ws-open{margin-top:auto;align-self:flex-start}
@media (max-width:600px){.ws-screen{padding:20px 16px 32px}.ws-grid{grid-template-columns:1fr}}
/* The open workspace in the title bar */
.ws-chip{display:inline-flex;align-items:center;gap:6px;margin-left:12px;padding:4px 10px;border:1px solid #D9E1E5;border-radius:999px;background:#fff;color:#16303F;font:inherit;font-size:12.5px;cursor:pointer;white-space:nowrap;max-width:340px;overflow:hidden}
.ws-chip:hover,.ws-chip:focus-visible{border-color:#457385}
.ws-chip-type{color:#5F6B73}
.ws-chip strong{overflow:hidden;text-overflow:ellipsis}
@media (max-width:1700px){.ws-chip-type{display:none}}
@media (max-width:1100px){.ws-chip{max-width:200px}}
