/* @ekm-tags: style, clinical */
/* Clinical Workspace — "Clinical warmth" palette (owner pick 2026-11-12, direction C: linen and stone surfaces; html[data-dark]
   switches the tokens) with the patient portal's upscale, modern-lux finish (owner 2026-11-20: "the upscale appearance modern lux
   look", not its colours): a thin display-serif wordmark and greeting (Italiana / Cormorant Garamond) over an italic serif line
   (Instrument Serif) and a short accent rule; uppercase letter-spaced labels with hairline rules; calm cards with soft hairlines
   and outlined square icons; gradient pills for the primary action. DM Sans for everything you read and click. Every font is
   already loaded by index.html.
   SCOPE (owner 2026-11-12): Clinical Workspace pages only. Every rule below is nested under the .cw container that
   js/ekm-clinical-workspace.js renders inside #clinical-workspace-content; nothing else in EKM OS (sidebar, Home, Day Sheet,
   Inbox, the GLP-1 workspace, shared components) is touched.
   Alignment rules (owner: no uneven elements): every card in the grid is the same height (grid-auto-rows:1fr), the icon square,
   title row and count row sit at the same offsets in every card, and every control is 44px tall. */
#clinical-workspace-content{width:100%;box-sizing:border-box}
.cw{
  --cw-card:#fffdf9;--cw-ink:#24201b;--cw-ink2:#4d463d;--cw-muted:#6b6257;--cw-line:#ebe3d6;--cw-line2:#ddd3c3;--cw-focus:#7b5b3a;
  --cw-wash:#f4eee4;--cw-hover:#f8f3ea;--cw-field:#fffefb;
  --cw-ok:#3f6b46;--cw-warn:#8f5519;--cw-danger:#a33b2b;
  --cw-accent:#b0916a;--cw-accent-ink:#7b5b3a;--cw-outline:#dccdb6;--cw-strong:#16120e;--cw-wordmark:#3b3128;--cw-option:#fffdf9;
  --cw-pill:linear-gradient(180deg,#3b3229 0%,#231d17 100%);--cw-pill-h:linear-gradient(180deg,#4a3f34 0%,#2c241d 100%);--cw-pill-ink:#fbf6ee;
  --cw-pill-glow:0 10px 22px -14px rgba(36,29,23,.6);
  --cw-sheen:linear-gradient(180deg,#fffefb 0%,#fcf8f2 100%);
  --cw-shadow:0 1px 2px rgba(80,60,30,.04),0 14px 34px -22px rgba(80,60,30,.22);
  --cw-shadow-h:0 1px 2px rgba(80,60,30,.05),0 24px 46px -24px rgba(80,60,30,.32);
  --cw-t-labs:#e9efe8;--cw-i-labs:#46624a;--cw-t-refills:#f3e9e1;--cw-i-refills:#86553a;--cw-t-messages:#e6ecf1;--cw-i-messages:#3f5a70;
  --cw-t-glp1:#efeae1;--cw-i-glp1:#6a5a3c;--cw-t-work:#ece9f1;--cw-i-work:#56497a;
  --cw-pad:28px;--cw-radius:18px;--cw-radius-s:14px;--cw-ctl:44px;--cw-medal:48px;--cw-icon:22px;
  --cw-ic-labs:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3h6M10 3v6.2L4.8 18a2 2 0 0 0 1.7 3h11a2 2 0 0 0 1.7-3L14 9.2V3'/%3E%3Cpath d='M7.5 14.5h9'/%3E%3C/svg%3E");
  --cw-ic-refills:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='8.5' width='17' height='7' rx='3.5' transform='rotate(-45 12 12)'/%3E%3Cpath d='M9.5 9.5l5 5'/%3E%3C/svg%3E");
  --cw-ic-messages:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12.5a7.5 7.5 0 0 1-10.9 6.7L4 20.5l1.3-4.6A7.5 7.5 0 1 1 20 12.5z'/%3E%3Cpath d='M9 11h6M9 14h4'/%3E%3C/svg%3E");
  --cw-ic-glp1:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12h4l2.5-5 4 10 2.5-5H21'/%3E%3C/svg%3E");
  --cw-ic-work:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='4' width='14' height='17' rx='2'/%3E%3Cpath d='M9 4V3h6v1M8.5 11l2 2 4-4M8.5 17h7'/%3E%3C/svg%3E");
  max-width:1080px;margin:0 auto;padding:clamp(20px,4vw,48px) clamp(16px,4vw,40px) 64px;box-sizing:border-box;
  font-family:'DM Sans',var(--ekm-ds-font,system-ui,sans-serif);font-size:14.5px;line-height:1.55;color:var(--cw-ink);background:transparent;
  -webkit-font-smoothing:antialiased}
html[data-dark] .cw{
  --cw-card:#1a1815;--cw-ink:#f3eee6;--cw-ink2:#d2cabd;--cw-muted:#aaa194;--cw-line:#2f2b26;--cw-line2:#3d3832;--cw-focus:#e2c79d;
  --cw-wash:#25211c;--cw-hover:#211e1a;--cw-field:#14120f;
  --cw-ok:#9fd0a6;--cw-warn:#e9b47a;--cw-danger:#f1a596;
  --cw-accent:#d9c3a0;--cw-accent-ink:#e2c79d;--cw-outline:#4a433b;--cw-strong:#fbf6ee;--cw-wordmark:#e9dcc6;--cw-option:#1a1815;
  --cw-pill:linear-gradient(180deg,#faf2e4 0%,#efe0c4 55%,#d9c3a0 100%);--cw-pill-h:linear-gradient(180deg,#fff8ec 0%,#f4e7cf 55%,#e2cdaa 100%);--cw-pill-ink:#1c140e;
  --cw-pill-glow:0 10px 24px -14px rgba(217,195,160,.45);
  --cw-sheen:linear-gradient(180deg,#1d1a17 0%,#181613 100%);
  --cw-shadow:0 1px 2px rgba(0,0,0,.3),0 16px 36px -20px rgba(0,0,0,.7);
  --cw-shadow-h:0 1px 2px rgba(0,0,0,.35),0 24px 46px -22px rgba(0,0,0,.85);
  --cw-t-labs:#223024;--cw-i-labs:#a9c7ab;--cw-t-refills:#33261d;--cw-i-refills:#e1b394;--cw-t-messages:#1f2a33;--cw-i-messages:#a9c2d6;
  --cw-t-glp1:#2e281e;--cw-i-glp1:#d7c39c;--cw-t-work:#29253a;--cw-i-work:#c5bbe6}

/* ── header: wordmark / eyebrow, serif greeting, italic line, accent rule ── */
.cw .cw-head{margin:0 0 34px}
.cw .cw-head::after{content:"";display:block;width:64px;height:1px;margin-top:22px;background:linear-gradient(90deg,var(--cw-accent),transparent)}
.cw .cw-head-home{margin-bottom:42px}
.cw .cw-eyebrow{font-size:11.5px;font-weight:500;letter-spacing:.26em;text-transform:uppercase;color:var(--cw-muted);margin:0 0 14px}
/* the brand wordmark, as on the portal: a thin high-contrast display serif, widely spaced */
.cw .cw-head-home .cw-eyebrow{font-family:'Italiana','Cormorant Garamond',Georgia,serif;font-size:15px;font-weight:400;letter-spacing:.42em;color:var(--cw-wordmark);margin-bottom:22px}
.cw .cw-title{margin:0;font-family:'Cormorant Garamond',Georgia,serif;font-weight:300;font-size:clamp(36px,4.6vw,58px);letter-spacing:-.005em;line-height:1.06;color:var(--cw-ink);outline:none}
.cw .cw-sub{margin:12px 0 0;max-width:62ch;font-family:'Instrument Serif',Georgia,serif;font-style:italic;font-size:clamp(17px,1.6vw,20px);line-height:1.45;color:var(--cw-ink2)}

/* ── landing: equal cards ── */
.cw .cw-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:1fr;gap:20px}
.cw .cw-card{all:unset;box-sizing:border-box;position:relative;display:flex;flex-direction:column;min-width:0;min-height:236px;
  padding:var(--cw-pad);background-color:transparent;background-image:var(--cw-sheen);border:1px solid var(--cw-line);border-radius:var(--cw-radius);box-shadow:var(--cw-shadow);
  color:var(--cw-ink);text-align:left;cursor:pointer;transition:box-shadow .3s ease,transform .3s ease,border-color .3s ease}
.cw .cw-card:hover{transform:translateY(-2px);box-shadow:var(--cw-shadow-h);border-color:var(--cw-outline)}
.cw .cw-card:active{transform:translateY(0)}
.cw .cw-card:focus-visible{outline:2px solid var(--cw-focus);outline-offset:4px}
.cw .cw-card[aria-disabled="true"]{cursor:default;opacity:.55;transform:none;box-shadow:var(--cw-shadow);border-color:var(--cw-line)}
/* outlined square icon (::before) + line icon (::after): the same size and offset in every card */
.cw .cw-card::before{content:"";display:block;box-sizing:border-box;flex:none;width:var(--cw-medal);height:var(--cw-medal);border-radius:12px;
  background:var(--cw-t,var(--cw-wash));border:1px solid var(--cw-outline);margin:0 0 24px}
.cw .cw-card::after{content:"";position:absolute;top:calc(var(--cw-pad) + (var(--cw-medal) - var(--cw-icon)) / 2);left:calc(var(--cw-pad) + (var(--cw-medal) - var(--cw-icon)) / 2);
  width:var(--cw-icon);height:var(--cw-icon);background:var(--cw-i,var(--cw-muted));-webkit-mask:var(--cw-ic) center/contain no-repeat;mask:var(--cw-ic) center/contain no-repeat}
.cw .cw-card[data-cw-go="labs"]{--cw-t:var(--cw-t-labs);--cw-i:var(--cw-i-labs);--cw-ic:var(--cw-ic-labs)}
.cw .cw-card[data-cw-go="refills"]{--cw-t:var(--cw-t-refills);--cw-i:var(--cw-i-refills);--cw-ic:var(--cw-ic-refills)}
.cw .cw-card[data-cw-go="messages"]{--cw-t:var(--cw-t-messages);--cw-i:var(--cw-i-messages);--cw-ic:var(--cw-ic-messages)}
.cw .cw-card[data-cw-go="glp1"]{--cw-t:var(--cw-t-glp1);--cw-i:var(--cw-i-glp1);--cw-ic:var(--cw-ic-glp1)}
.cw .cw-card[data-cw-go="work"]{--cw-t:var(--cw-t-work);--cw-i:var(--cw-i-work);--cw-ic:var(--cw-ic-work)}
.cw .cw-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:32px}
.cw .cw-card-title{font-family:'Cormorant Garamond',Georgia,serif;font-size:26px;font-weight:400;letter-spacing:0;line-height:1.2;color:var(--cw-ink)}
.cw .cw-card-arrow{flex:none;box-sizing:border-box;width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;font-size:14px;
  color:var(--cw-muted);border:1px solid var(--cw-line2);transition:transform .3s ease,background .3s ease,color .3s ease,border-color .3s ease}
.cw .cw-card:hover .cw-card-arrow,.cw .cw-card:focus-visible .cw-card-arrow{transform:translateX(2px);background:var(--cw-pill);border-color:transparent;color:var(--cw-pill-ink)}
/* two lines reserved so the count row starts at the same height whatever the description length */
.cw .cw-card-desc{display:block;margin:8px 0 18px;max-width:40ch;min-height:3em;font-size:14.5px;line-height:1.5;color:var(--cw-ink2)}
.cw .cw-card-foot{display:flex;align-items:baseline;gap:10px;margin-top:auto;padding-top:22px;border-top:1px solid var(--cw-line);margin-bottom:-4px}
.cw .cw-card-num{font-family:'Cormorant Garamond',Georgia,serif;font-size:40px;font-weight:300;line-height:1;letter-spacing:0;font-variant-numeric:lining-nums tabular-nums;color:var(--cw-strong)}
.cw .cw-card-unit{font-size:11.5px;font-weight:500;letter-spacing:.18em;text-transform:uppercase;color:var(--cw-muted)}
.cw .cw-card-skel{cursor:default;background-image:linear-gradient(100deg,var(--cw-card) 40%,var(--cw-wash) 50%,var(--cw-card) 60%);background-size:200% 100%;animation:cw-shimmer 1.4s linear infinite}
.cw .cw-card-skel::before,.cw .cw-card-skel::after{display:none}
@keyframes cw-shimmer{to{background-position:-200% 0}}
.cw .cw-grid+.cw-note{margin-top:22px}

/* ── section chrome ── */
.cw .cw-back{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;gap:10px;min-height:var(--cw-ctl);margin:0 0 18px;padding:0 6px;
  font-size:11.5px;font-weight:500;letter-spacing:.2em;text-transform:uppercase;color:var(--cw-muted);cursor:pointer;border-radius:999px}
.cw .cw-back:hover{color:var(--cw-strong)}
.cw .cw-back:focus-visible{outline:2px solid var(--cw-focus);outline-offset:2px}
.cw .cw-tools{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0 0 22px}
.cw .cw-seg{display:inline-flex;gap:2px;padding:4px;border:1px solid var(--cw-line2);border-radius:999px;background:var(--cw-card);box-sizing:border-box}
.cw .cw-seg-b{all:unset;box-sizing:border-box;min-height:var(--cw-ctl);padding:0 18px;display:inline-flex;align-items:center;font-size:13.5px;color:var(--cw-ink2);border-radius:999px;cursor:pointer;
  transition:color .2s ease,background .2s ease}
.cw .cw-seg-b[aria-checked="true"]{background:var(--cw-pill);color:var(--cw-pill-ink);font-weight:600}
.cw .cw-seg-b:hover{color:var(--cw-strong)}
.cw .cw-seg-b[aria-checked="true"]:hover{color:var(--cw-pill-ink)}
.cw .cw-seg-b:focus-visible{outline:2px solid var(--cw-focus);outline-offset:2px}
.cw .cw-btn{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-height:var(--cw-ctl);padding:0 22px;
  font-size:13.5px;font-weight:500;letter-spacing:.01em;color:var(--cw-ink);background:var(--cw-card);border:1px solid var(--cw-outline);border-radius:999px;cursor:pointer;white-space:nowrap;
  transition:background .2s ease,border-color .2s ease,color .2s ease}
.cw .cw-btn:hover{background:var(--cw-hover);border-color:color-mix(in srgb,var(--cw-ink) 30%,var(--cw-outline));color:var(--cw-ink)}
.cw .cw-btn:focus-visible,.cw .cw-link:focus-visible{outline:2px solid var(--cw-focus);outline-offset:3px}
.cw .cw-btn[disabled]{opacity:.45;cursor:default}
.cw .cw-btn-quiet{background:transparent;border-color:var(--cw-line2);color:var(--cw-ink2)}
.cw .cw-btn-primary{background:var(--cw-pill);color:var(--cw-pill-ink);border-color:transparent;font-weight:600;box-shadow:var(--cw-pill-glow)}
.cw .cw-btn-primary:hover{background:var(--cw-pill-h);color:var(--cw-pill-ink);border-color:transparent}
.cw .cw-btn-primary[disabled]{box-shadow:none}
/* the Refresh button matches the height of the segmented filters beside it */
.cw .cw-tools .cw-btn{min-height:calc(var(--cw-ctl) + 10px)}
.cw .cw-link{all:unset;cursor:pointer;color:var(--cw-accent-ink);font-weight:500;text-decoration:underline;text-decoration-color:var(--cw-accent);text-underline-offset:4px}
.cw .cw-link:hover{color:var(--cw-strong)}
.cw .cw-note{margin:0 0 16px;font-size:14.5px;line-height:1.6;color:var(--cw-ink2)}
.cw .cw-err{color:var(--cw-danger)}
.cw .cw-warn{color:var(--cw-warn)}
.cw .cw-ok{color:var(--cw-ok)}
.cw .cw-muted{color:var(--cw-muted)}
.cw .cw-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ── queues: one table style for Lab Reviews, Refills and Messages ── */
.cw .cw-table{width:100%;border-collapse:separate;border-spacing:0;background-color:transparent;background-image:var(--cw-sheen);border:1px solid var(--cw-line);border-radius:var(--cw-radius);
  box-shadow:var(--cw-shadow);overflow:hidden;margin:0 0 20px}
.cw .cw-table th{text-align:left;font-size:11px;font-weight:500;letter-spacing:.2em;text-transform:uppercase;color:var(--cw-muted);padding:18px 22px 14px;
  border-bottom:1px solid var(--cw-line);white-space:nowrap}
.cw .cw-table td{padding:17px 22px;font-size:14.5px;color:var(--cw-ink);vertical-align:middle;border-bottom:1px solid var(--cw-line)}
.cw .cw-table tbody tr:last-child td{border-bottom:0}
.cw .cw-table tbody tr{transition:background .2s ease}
.cw .cw-table tbody tr:hover{background:var(--cw-hover)}
.cw .cw-table td[data-label="Patient"]{font-family:'Cormorant Garamond',Georgia,serif;font-size:19px;font-weight:400;line-height:1.3;color:var(--cw-strong)}
.cw .cw-table td[data-label="Received"],.cw .cw-table td[data-label="Source"],.cw .cw-table td[data-label="Status"],.cw .cw-table td[data-label="Next visit"],
.cw .cw-table td[data-label="Channel"],.cw .cw-table td[data-label="Last activity"],.cw .cw-table td[data-label="State"]{white-space:nowrap}
.cw .cw-td-act{text-align:right;white-space:nowrap;width:1%}
.cw .cw-td-act .cw-btn+.cw-btn{margin-left:8px}
.cw .cw-status{display:inline-flex;align-items:center;gap:9px;font-size:13.5px;color:var(--cw-ink);white-space:nowrap}
.cw .cw-dot{flex:none;width:7px;height:7px;border-radius:50%;background:var(--cw-muted)}
.cw .cw-st-pending .cw-dot,.cw .cw-st-info_needed .cw-dot{background:var(--cw-ink);box-shadow:0 0 0 3px var(--cw-wash)}
.cw .cw-st-in_review .cw-dot{background:var(--cw-i-messages)}
.cw .cw-st-needs_follow_up .cw-dot{background:var(--cw-warn)}
.cw .cw-st-reviewed .cw-dot,.cw .cw-st-reviewed_follow_up .cw-dot,.cw .cw-st-completed .cw-dot{background:var(--cw-ok)}
.cw .cw-st-declined .cw-dot,.cw .cw-st-cancelled .cw-dot{background:var(--cw-muted)}
.cw .cw-flag{font-family:'DM Sans',sans-serif;font-size:11px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--cw-warn);margin-left:8px;white-space:nowrap}

/* ── one review ── */
.cw .cw-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:0 0 22px;background-color:transparent;background-image:var(--cw-sheen);border:1px solid var(--cw-line);
  border-radius:var(--cw-radius);box-shadow:var(--cw-shadow);overflow:hidden}
.cw .cw-fact{min-width:0;padding:18px 22px;box-shadow:inset -1px 0 0 var(--cw-line),inset 0 -1px 0 var(--cw-line)}
/* the last fact runs to the end of its row, so a short last row never leaves an empty cell */
.cw .cw-fact:last-child{grid-column:auto / -1}
.cw .cw-fact dt{font-size:11px;font-weight:500;letter-spacing:.2em;text-transform:uppercase;color:var(--cw-muted)}
.cw .cw-fact dd{margin:8px 0 0;font-size:14.5px;color:var(--cw-ink);overflow-wrap:anywhere}
.cw .cw-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0 0 20px}
.cw .cw-form{background-color:transparent;background-image:var(--cw-sheen);border:1px solid var(--cw-line);border-radius:var(--cw-radius);box-shadow:var(--cw-shadow);padding:26px;margin:0 0 22px}
.cw .cw-form .cw-actions{margin:4px 0 0}
.cw .cw-label{display:block;font-size:11.5px;font-weight:500;letter-spacing:.18em;text-transform:uppercase;margin:0 0 10px;color:var(--cw-muted)}
.cw .cw-input{display:block;width:100%;box-sizing:border-box;margin:0 0 20px;padding:12px 16px;font:inherit;font-size:14.5px;line-height:1.5;color:var(--cw-ink);
  background:var(--cw-field);border:1px solid var(--cw-line2);border-radius:var(--cw-radius-s);resize:vertical;transition:border-color .2s ease}
.cw .cw-input:hover{border-color:var(--cw-outline)}
.cw .cw-input::placeholder{color:var(--cw-muted)}
.cw .cw-input:focus{outline:2px solid var(--cw-focus);outline-offset:1px;border-color:transparent}
.cw select.cw-input{min-height:var(--cw-ctl)}
.cw select.cw-input option{background:var(--cw-option);color:var(--cw-ink)}
.cw .cw-confirm{display:inline-flex;flex-wrap:wrap;align-items:center;gap:10px;padding:8px 8px 8px 18px;border-radius:var(--cw-radius);background:var(--cw-wash);border:1px solid var(--cw-line2);
  font-size:13.5px;color:var(--cw-ink2)}
.cw .cw-block{margin:0 0 22px;padding:24px 26px;background-color:transparent;background-image:var(--cw-sheen);border:1px solid var(--cw-line);border-radius:var(--cw-radius);box-shadow:var(--cw-shadow)}
/* section label: uppercase, letter-spaced, then a hairline rule to the edge */
.cw .cw-h2{display:flex;align-items:center;gap:16px;font-family:'DM Sans',sans-serif;font-size:11.5px;font-weight:500;letter-spacing:.24em;text-transform:uppercase;margin:0 0 16px;color:var(--cw-accent-ink)}
.cw .cw-h2::after{content:"";flex:1 1 auto;height:1px;background:var(--cw-line2)}
.cw .cw-pre{white-space:pre-wrap;margin:0 0 16px;font-size:14.5px;line-height:1.6;color:var(--cw-ink)}
.cw .cw-pre:last-child{margin-bottom:0}
.cw .cw-audit{list-style:none;margin:0;padding:0}
.cw .cw-audit li{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px;padding:12px 0;border-top:1px solid var(--cw-line);font-size:14px;color:var(--cw-ink)}
.cw .cw-audit li:first-child{border-top:0;padding-top:4px}

/* ── tablet ── */
@media (max-width:960px){
  .cw .cw-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
}
/* ── phone: one column, stacked rows, same rhythm ── */
@media (max-width:720px){
  .cw{--cw-pad:22px;--cw-radius:16px}
  .cw .cw-head-home .cw-eyebrow{font-size:13px;letter-spacing:.34em}
  .cw .cw-grid{grid-template-columns:1fr;gap:14px}
  .cw .cw-card{min-height:212px}
  .cw .cw-card-desc{max-width:none}
  .cw .cw-tools{gap:8px}
  .cw .cw-seg{width:100%}
  .cw .cw-seg-b{flex:1 1 0;justify-content:center;padding:0 10px;text-align:center}
  .cw .cw-table,.cw .cw-table tbody,.cw .cw-table tr,.cw .cw-table td{display:block;width:100%;box-sizing:border-box}
  .cw .cw-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .cw .cw-table tr{padding:14px 0;border-bottom:1px solid var(--cw-line)}
  .cw .cw-table tbody tr:last-child{border-bottom:0}
  .cw .cw-table td{display:flex;justify-content:space-between;align-items:baseline;gap:16px;border:0;padding:6px 18px;text-align:right;overflow-wrap:break-word;min-width:0;white-space:normal}
  .cw .cw-table td[data-label]::before{content:attr(data-label);flex:none;font-family:'DM Sans',sans-serif;font-size:10.5px;font-weight:500;letter-spacing:.18em;text-transform:uppercase;color:var(--cw-muted);text-align:left}
  .cw .cw-td-act{width:100%;display:flex;justify-content:flex-start;gap:8px;padding-top:12px}
  .cw .cw-td-act .cw-btn{flex:1 1 0}
  .cw .cw-td-act .cw-btn+.cw-btn{margin-left:0}
  .cw .cw-facts{grid-template-columns:1fr}
  .cw .cw-form,.cw .cw-block{padding:20px 18px}
  .cw .cw-actions .cw-btn{flex:1 1 auto}
  .cw .cw-confirm{width:100%;box-sizing:border-box;padding:14px}
}
@media (prefers-reduced-motion:reduce){
  .cw .cw-card,.cw .cw-card-arrow,.cw .cw-btn,.cw .cw-seg-b,.cw .cw-input,.cw .cw-table tbody tr{transition:none}
  .cw .cw-card:hover{transform:none}
  .cw .cw-card-skel{animation:none}
}
/* Clinical Messages tasks (patient responses, owner spec 2026-11-13) */
.cw .cw-h3{font-family:'DM Sans',sans-serif;font-size:11px;font-weight:600;letter-spacing:.18em;text-transform:uppercase;margin:18px 0 8px;color:var(--cw-muted)}
.cw .cw-prio-urgent{margin-left:0;font-weight:700;color:var(--cw-danger)}
.cw .cw-done{margin-top:16px}
.cw .cw-done summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-size:11.5px;font-weight:500;letter-spacing:.2em;text-transform:uppercase;color:var(--cw-accent-ink)}
.cw .cw-done summary:focus-visible{outline:2px solid var(--cw-focus);outline-offset:2px;border-radius:8px}
.cw .cw-input-inline{display:inline-block;width:auto;max-width:320px;margin:0}
.cw .cw-check{display:inline-flex;align-items:center;gap:10px;min-height:44px;font-size:13.5px;color:var(--cw-ink)}
.cw .cw-check input{accent-color:var(--cw-focus);width:18px;height:18px}
/* Patient Portal Access (owner 2026-11-19, js/ekm-portal-access-hub.js): the same Clinical Workspace surfaces, no new look. One sheet
   per section (account, programs, standard features, history); a program is a row, not a grid; statuses are a dot and words. */
.cw .cw-card[data-cw-go="portal"]{--cw-t:var(--cw-t-portal);--cw-i:var(--cw-i-portal);--cw-ic:var(--cw-ic-portal)}
/* Patient Progress Tracking card: the same outlined square + line icon as the other cards (it had no icon, so the mask painted a square) */
.cw .cw-card[data-cw-go="progress"]{--cw-t:var(--cw-t-progress);--cw-i:var(--cw-i-progress);--cw-ic:var(--cw-ic-progress)}
.cw{--cw-t-progress:#efe8ee;--cw-i-progress:#6e4a66;
  --cw-ic-progress:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4v15.5h16'/%3E%3Cpath d='M7.5 15l3.5-4 3 2.5 5-6'/%3E%3Cpath d='M15.5 7.5H19V11'/%3E%3C/svg%3E")}
html[data-dark] .cw{--cw-t-progress:#2e2230;--cw-i-progress:#dcbfd5}
.cw{--cw-t-portal:#e8ece9;--cw-i-portal:#3e5f57;
  --cw-ic-portal:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.2'/%3E%3Cpath d='M3.5 19c.6-3.2 2.8-5 5.5-5s4.9 1.8 5.5 5'/%3E%3Crect x='14.5' y='10.5' width='6' height='5' rx='1'/%3E%3Cpath d='M15.8 10.5V9a1.7 1.7 0 0 1 3.4 0v1.5'/%3E%3C/svg%3E")}
html[data-dark] .cw{--cw-t-portal:#1f2d29;--cw-i-portal:#a8cbc1}
.cw .cw-card-cta{font-size:11.5px;font-weight:500;letter-spacing:.18em;text-transform:uppercase;color:var(--cw-accent-ink)}
.cw .pah-find{max-width:720px}
.cw .pah-find .cw-input{margin-bottom:6px}
.cw .pah-results{list-style:none;margin:8px 0 0;padding:0;border-top:1px solid var(--cw-line)}
.cw .pah-result{all:unset;box-sizing:border-box;display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:6px 16px;width:100%;min-height:var(--cw-ctl);
  padding:12px 8px;border-bottom:1px solid var(--cw-line);cursor:pointer;font-size:14px;color:var(--cw-ink2)}
.cw .pah-result:hover{background:var(--cw-hover)}
.cw .pah-result:focus-visible{outline:2px solid var(--cw-focus);outline-offset:-2px}
.cw .pah-result-name{font-family:'Cormorant Garamond',Georgia,serif;font-size:19px;font-weight:400;color:var(--cw-ink)}
.cw .pah-patient{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px 20px;margin:0 0 22px}
.cw .pah-patient .cw-eyebrow{margin-bottom:6px}
.cw .pah-patient .cw-actions{margin:0}
.cw .pah-patient-name{font-family:'Cormorant Garamond',Georgia,serif;font-size:30px;font-weight:300;letter-spacing:0;line-height:1.2;color:var(--cw-ink)}
.cw .pah-sec-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;margin:0 0 14px}
.cw .pah-sec-head .cw-h2{margin:0;flex:1 1 200px}
.cw .pah-st-ok .cw-dot{background:var(--cw-ok)}
.cw .pah-st-warn .cw-dot{background:var(--cw-warn)}
.cw .pah-st-muted .cw-dot{background:var(--cw-muted)}
.cw .pah-st-quiet .cw-dot{background:var(--cw-muted)}
.cw .pah-facts{grid-template-columns:repeat(4,minmax(0,1fr));box-shadow:none;margin:0 0 16px}
.cw .pah-actions{margin:0 0 8px}
.cw .pah-small{font-size:13px;color:var(--cw-muted);margin:0 0 8px}
.cw .pah-progs{list-style:none;margin:0;padding:0}
.cw .pah-prog{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:12px 24px;padding:20px 0;border-top:1px solid var(--cw-line)}
.cw .pah-prog-main{flex:1 1 360px;min-width:0}
.cw .pah-prog-top{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px}
.cw .pah-prog-name{margin:0;font-family:'Cormorant Garamond',Georgia,serif;font-size:22px;font-weight:400;color:var(--cw-ink)}
.cw .pah-prog-desc{margin:4px 0 0;font-size:14px;color:var(--cw-ink2)}
.cw .pah-prog-acts{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.cw .pah-facts-line{margin:8px 0 0;font-size:13.5px;color:var(--cw-muted)}
.cw .pah-missing{margin:12px 0 0;padding:2px 0 2px 14px;border-left:1px solid var(--cw-warn)}
.cw .pah-missing-h{display:block;font-size:11px;font-weight:600;letter-spacing:.18em;text-transform:uppercase;color:var(--cw-warn);margin:0 0 4px}
.cw .pah-missing ul{margin:0;padding:0 0 0 18px;font-size:13.5px;color:var(--cw-ink2)}
.cw .pah-confirm{margin:12px 0 0;padding:16px 18px;border-radius:var(--cw-radius-s);background:var(--cw-wash);border:1px solid var(--cw-line2)}
.cw .pah-confirm .cw-note{margin-bottom:10px;color:var(--cw-ink)}
.cw .pah-confirm .cw-actions{margin:8px 0 0}
.cw .pah-confirm .cw-input{margin-bottom:8px}
.cw .pah-confirm .ekm-pp{margin:16px 0 16px}
.cw .pah-gap{margin-top:14px}
.cw .pah-std{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 28px}
.cw .pah-std li{display:flex;flex-direction:column;gap:2px;padding:12px 0;border-top:1px solid var(--cw-line)}
.cw .pah-std-name{font-size:14px;font-weight:500;color:var(--cw-ink)}
.cw .pah-std-desc{font-size:13px;color:var(--cw-muted)}
.cw .pah-src{display:inline-block;min-width:128px;margin-right:10px;font-size:11px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:var(--cw-muted)}
@media (max-width:960px){.cw .pah-facts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:720px){
  .cw .pah-facts{grid-template-columns:1fr}
  .cw .pah-std{grid-template-columns:1fr}
  .cw .pah-prog-acts{width:100%}
  .cw .pah-prog-acts .cw-btn{flex:1 1 auto}
  .cw .pah-src{display:block;min-width:0;margin:0 0 2px}
}
/* ── Clinical Workspace in the employee's own EKM OS theme (owner 2026-11-22: "never ever should any screen ever choose these
   colors"; then "yes" to the whole workspace) ── Every view and every landing card re-point the --cw-* tokens at the signed-in
   employee's theme (--c-*, --status-*-ink; light or dark), so the rules above paint it unchanged in that theme. The only literals
   are black shadows and the var() fallbacks. On the Pearl looks the sheets are the look's frosted glass (--lux-*,
   css/ekm-pearl-luxe.css) over its own background, with the Oil Slick rim and glow when that box style is chosen. */
.cw{--cw-ic-intakes:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='4' width='14' height='17' rx='2'/%3E%3Cpath d='M9 4V3h6v1'/%3E%3Ccircle cx='12' cy='10.5' r='2.2'/%3E%3Cpath d='M8.5 17c.5-1.9 1.9-3 3.5-3s3 1.1 3.5 3'/%3E%3C/svg%3E")}
.cw,html[data-dark] .cw{
  --cw-card:var(--c-box,#FAF6EF);--cw-ink:var(--c-ink,#1C1814);--cw-ink2:var(--c-ink2,var(--c-ink,#3D3830));--cw-muted:var(--c-muted,#5A5248);
  --cw-line:color-mix(in srgb,var(--c-ink,#1C1814) 10%,transparent);--cw-line2:color-mix(in srgb,var(--c-ink,#1C1814) 17%,transparent);
  --cw-focus:var(--c-accent-fg,var(--c-accent,#9c9a93));--cw-wash:color-mix(in srgb,var(--c-ink,#1C1814) 5%,var(--c-box,#FAF6EF));
  --cw-hover:color-mix(in srgb,var(--c-ink,#1C1814) 4%,transparent);--cw-field:color-mix(in srgb,var(--c-bg,#F3EDE4) 55%,var(--c-box,#FAF6EF));
  --cw-ok:var(--status-success-ink,#2E7051);--cw-warn:var(--status-warning-ink,#855D1C);--cw-danger:var(--status-danger-ink,#AC412A);
  --cw-accent:var(--c-accent,#9c9a93);--cw-accent-ink:var(--c-accent-fg,var(--c-accent,#9c9a93));--cw-outline:color-mix(in srgb,var(--c-ink,#1C1814) 22%,transparent);
  --cw-strong:var(--c-ink,#1C1814);--cw-wordmark:var(--c-ink2,var(--c-ink,#3D3830));--cw-option:var(--c-box,#FAF6EF);
  --cw-pill:linear-gradient(180deg,color-mix(in srgb,var(--c-accent,#9c9a93) 88%,#fff),var(--c-accent,#9c9a93));
  --cw-pill-h:linear-gradient(180deg,color-mix(in srgb,var(--c-accent,#9c9a93) 78%,#fff),color-mix(in srgb,var(--c-accent,#9c9a93) 94%,#fff));
  --cw-pill-ink:var(--c-accent-text,#fff);--cw-pill-glow:0 10px 22px -14px color-mix(in srgb,var(--c-accent,#9c9a93) 70%,transparent);
  --cw-sheen:linear-gradient(180deg,color-mix(in srgb,var(--c-box,#FAF6EF) 96%,#fff),var(--c-box,#FAF6EF));
  --cw-shadow:0 1px 2px rgba(0,0,0,.04),0 14px 34px -22px rgba(0,0,0,.22);--cw-shadow-h:0 1px 2px rgba(0,0,0,.05),0 24px 46px -24px rgba(0,0,0,.3);
  --cw-t-intakes:color-mix(in srgb,var(--c-accent,#9c9a93) 14%,var(--c-box,#FAF6EF));--cw-i-intakes:var(--c-accent-fg,var(--c-accent,#9c9a93));
  --cw-t-labs:var(--cw-t-intakes);--cw-i-labs:var(--cw-i-intakes);--cw-t-refills:var(--cw-t-intakes);--cw-i-refills:var(--cw-i-intakes);
  --cw-t-messages:var(--cw-t-intakes);--cw-i-messages:var(--cw-i-intakes);--cw-t-glp1:var(--cw-t-intakes);--cw-i-glp1:var(--cw-i-intakes);
  --cw-t-work:var(--cw-t-intakes);--cw-i-work:var(--cw-i-intakes);--cw-t-progress:var(--cw-t-intakes);--cw-i-progress:var(--cw-i-intakes);
  --cw-t-portal:var(--cw-t-intakes);--cw-i-portal:var(--cw-i-intakes)}
.cw .cw-card[data-cw-go="intakes"]{--cw-t:var(--cw-t-intakes);--cw-i:var(--cw-i-intakes);--cw-ic:var(--cw-ic-intakes)}
html[data-dark] .cw{
  --cw-line:color-mix(in srgb,var(--c-ink,#EDE6DA) 12%,transparent);--cw-line2:color-mix(in srgb,var(--c-ink,#EDE6DA) 19%,transparent);
  --cw-sheen:linear-gradient(180deg,color-mix(in srgb,var(--c-box,#1C1814) 95%,#fff),var(--c-box,#1C1814));
  --cw-shadow:0 1px 2px rgba(0,0,0,.3),0 16px 36px -20px rgba(0,0,0,.7);--cw-shadow-h:0 1px 2px rgba(0,0,0,.35),0 24px 46px -22px rgba(0,0,0,.85)}
html[data-theme^="pearl"] .cw{
  --cw-card:var(--lux-glass-strong);--cw-ink:var(--lux-ink);--cw-strong:var(--lux-ink);--cw-muted:var(--lux-muted);
  --cw-ink2:color-mix(in srgb,var(--lux-ink) 80%,var(--lux-muted));--cw-line:var(--lux-hair);--cw-hover:var(--lux-well);--cw-wash:var(--lux-well);
  --cw-field:var(--lux-well);--cw-option:var(--c-box);--cw-sheen:linear-gradient(var(--lux-glass-strong),var(--lux-glass-strong));
  --cw-shadow:var(--lux-shadow);--cw-shadow-h:var(--lux-shadow),0 30px 60px -32px rgba(0,0,0,.35)}
html[data-theme^="pearl"] .cw .cw-table,html[data-theme^="pearl"] .cw .cw-card{
  border-color:var(--lux-edge);-webkit-backdrop-filter:blur(14px) saturate(1.15);backdrop-filter:blur(14px) saturate(1.15)}
html[data-theme^="pearl"] .cw .cw-btn:not(.cw-btn-primary){-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
/* Oil Slick: the list's sheet takes the Home boxes' iridescent rim (a masked ::after inside its rounded clip) and glow; the landing
   card already draws its icon with ::before / ::after, so it takes the glow and a film-tinted edge */
html[data-box-style="oil_slick"][data-theme^="pearl"] .cw .cw-table,html[data-box-style="oil_slick"][data-theme^="pearl"] .cw .cw-card{
  box-shadow:var(--lux-shadow),0 0 0 .5px color-mix(in srgb,var(--slick-1) 40%,transparent),0 0 32px -8px color-mix(in srgb,var(--slick-2) 60%,transparent)}
html[data-box-style="oil_slick"][data-theme^="pearl"] .cw .cw-table{position:relative;border-color:transparent;background-clip:padding-box}
html[data-box-style="oil_slick"][data-theme^="pearl"] .cw .cw-table::after{content:"";position:absolute;inset:0;border-radius:inherit;padding:1.5px;
  background:var(--slick-film);pointer-events:none;-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;
  mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0)}
html[data-box-style="oil_slick"][data-theme^="pearl"] .cw .cw-card{border-color:color-mix(in srgb,var(--slick-1) 50%,var(--lux-edge))}
/* ── Patient Portal hub (owner 2026-11-22: "its all organized in one"): the home in two labelled groups, and one screen with a tab row
   over the existing views (New enrollments, GLP-1 Program, Patient Progress Tracking, New Patient Intakes, Find a patient). The same
   surfaces and theme tokens as the rest of the workspace; tabs are 44px pills that wrap, the current one is the person's accent pill. ── */
.cw .cw-group+.cw-group{margin-top:40px}
.cw .cw-group+.cw-note{margin-top:22px}
.cw .cw-group>.cw-h2{margin-bottom:18px}
.cw .cw-card[data-cw-go="hub"]{--cw-t:var(--cw-t-portal);--cw-i:var(--cw-i-portal);--cw-ic:var(--cw-ic-portal)}
.cw .cw-hub{margin:0 0 34px}
.cw .cw-hub-name{font-family:'Italiana','Cormorant Garamond',Georgia,serif;font-size:15px;font-weight:400;letter-spacing:.42em;text-transform:uppercase;color:var(--cw-wordmark);margin:0 0 16px}
.cw .cw-tabs{display:flex;flex-wrap:wrap;gap:8px;padding:0 0 18px;border-bottom:1px solid var(--cw-line2)}
.cw .cw-tab{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;gap:10px;min-height:var(--cw-ctl);padding:0 18px;font-size:13.5px;font-weight:500;color:var(--cw-ink2);
  background:var(--cw-card);border:1px solid var(--cw-line2);border-radius:999px;cursor:pointer;white-space:nowrap;transition:color .2s ease,background .2s ease,border-color .2s ease}
.cw .cw-tab:hover{color:var(--cw-strong);border-color:var(--cw-outline)}
.cw .cw-tab:focus-visible{outline:2px solid var(--cw-focus);outline-offset:3px}
.cw .cw-tab[aria-current="page"]{background:var(--cw-pill);border-color:transparent;color:var(--cw-pill-ink);font-weight:600;box-shadow:var(--cw-pill-glow)}
.cw .cw-tab-n{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:24px;height:24px;padding:0 7px;border-radius:999px;
  font-size:12px;font-weight:600;font-variant-numeric:tabular-nums;color:var(--cw-ink);background:var(--cw-wash);border:1px solid var(--cw-line)}
.cw .cw-tab[aria-current="page"] .cw-tab-n{color:var(--cw-pill-ink);background:color-mix(in srgb,var(--cw-pill-ink) 16%,transparent);border-color:transparent}
html[data-theme^="pearl"] .cw .cw-tab:not([aria-current="page"]){-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.cw .cw-enroll{margin:0 0 30px}
.cw .cw-enroll .cw-table{margin-bottom:10px}
.cw .cw-table td[data-label="Date"]{white-space:nowrap}
/* inside the GLP-1 program's full-width frame the hub row keeps the workspace's own column and spacing, so the tab row never moves
   from tab to tab */
.cw .cw-hub-slot.cw-hub-slot-g1{max-width:1080px;margin:0 auto;padding:clamp(20px,4vw,48px) clamp(16px,4vw,40px) 0;box-sizing:border-box}
.cw .cw-hub-slot.cw-hub-slot-g1 .cw-back{margin:0 0 18px;min-height:var(--cw-ctl)}
.cw .cw-hub-slot.cw-hub-slot-g1 .cw-hub{margin-bottom:8px}
/* the enroll panel and Manage (Patient Portal Access) sit under the hub row: no second page frame */
.cw .cw-pah-mount>.cw{max-width:none;padding:0}
@media (max-width:720px){
  .cw .cw-hub-name{font-size:13px;letter-spacing:.34em}
  /* two even columns of tabs (an odd last one takes the whole row): every tab visible, no sideways scrolling */
  .cw .cw-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .cw .cw-tab{justify-content:center;gap:8px;padding:6px 10px;font-size:13px;line-height:1.25;white-space:normal;text-align:center}
  .cw .cw-tab-n{min-width:22px;height:22px;padding:0 6px}
  .cw .cw-tab:last-child:nth-child(odd){grid-column:1 / -1}
}
@media (prefers-reduced-motion:reduce){.cw .cw-tab{transition:none}}
/* ── Even, always (owner 2026-11-22: "i told you how much i do not like uneven things") ──
   - the home: a card left alone on a row of two takes the whole row, so no row has a gap beside it;
   - the hub's tabs: one row of equal-width tabs, all the same height, the count on the same line;
   - on a phone the tabs are one even list (full-width rows: name on the left, count on the right), never two columns with
     different line counts;
   - on a phone every list row reads top to bottom, each label above its answer, all left-aligned (no answers pushed to the
     right and wrapping raggedly). */
.cw .cw-grid>.cw-card:last-child:nth-child(odd){grid-column:1 / -1}
.cw .cw-tabs{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);align-items:stretch}
.cw .cw-tab{justify-content:center;text-align:center;white-space:nowrap;min-width:0}
.cw .cw-tab-label{overflow:hidden;text-overflow:ellipsis}
@media (max-width:980px){ .cw .cw-tab{white-space:normal;line-height:1.25;padding-top:8px;padding-bottom:8px} }
@media (max-width:720px){
  .cw .cw-tabs{display:grid;grid-auto-flow:row;grid-template-columns:1fr;grid-auto-columns:auto;gap:8px}
  .cw .cw-tab,.cw .cw-tab:last-child:nth-child(odd){grid-column:auto;justify-content:space-between;text-align:left;white-space:nowrap;min-height:48px;padding:0 18px;font-size:14px}
  .cw .cw-table td{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:4px;text-align:left}
  .cw .cw-table td[data-label]::before{text-align:left}
  .cw .cw-table td[data-label="Patient"]::before{display:none}
  .cw .cw-table td[data-label="Patient"]{font-size:21px;padding-bottom:4px}
  .cw .cw-table .cw-td-act{flex-direction:row;align-items:stretch;padding-top:12px}
  .cw .cw-table .cw-td-act::before{display:none}
  .cw .cw-table-list td .cw-status{justify-content:flex-start;text-align:left}
}
.cw .cw-tab-short{display:none}
@media (min-width:721px){ .cw .cw-tab-full{display:none} .cw .cw-tab-short{display:inline} }
/* (owner 2026-11-22: "make clinical messages, med refill, lab three boxes next to each other with patient portal hub under")
   three queues on one row of three equal boxes; the Patient Portal card takes the whole row under them. On a narrower screen the
   three stack as one even column (never two plus one). */
.cw .cw-grid.cw-grid-three{grid-template-columns:repeat(3,minmax(0,1fr))}
.cw .cw-grid.cw-grid-three>.cw-card:last-child:nth-child(odd){grid-column:auto}
@media (max-width:980px){ .cw .cw-grid.cw-grid-three{grid-template-columns:1fr} }
/* ── Enrollment Center (owner 2026-11-23: "one hub spot" to create, manage and enroll; "i told you how much i do not like uneven
   things") ── The hub row carries the main "Enroll a patient" button; Overview has one equal card per program; each program tab
   has equal status chips with counts, a name search and ONE column grid shared by every hub list; the enroll panel shows the three
   programs as three equal cards with one details area under them. Theme tokens only (the --cw-* set above), so the Pearl glass and
   the Oil Slick rim apply as everywhere else in the workspace. On a phone: cards in one even column, chips in two even columns
   (an odd first chip takes the whole row), the search on its own row with its buttons sharing the next. */
.cw .cw-hub-top{display:flex;align-items:center;justify-content:space-between;gap:12px 20px;margin:0 0 16px}
.cw .cw-hub-top .cw-hub-name{margin:0}
.cw .cw-hub-add{min-height:var(--cw-ctl);padding:0 26px}
.cw .cw-hub-add[aria-current="page"]{outline:2px solid var(--cw-focus);outline-offset:3px}
.cw .cw-back-list{margin:-14px 0 18px}
/* one column grid for every hub list: Patient | Status | date | Details | button; New enrollments keeps the first three */
.cw .cw-table-list{table-layout:fixed}
.cw .cw-table-list .cw-col-who{width:24%}
.cw .cw-table-list .cw-col-what{width:21%}
.cw .cw-table-list .cw-col-date{width:13%}
.cw .cw-table-list .cw-col-info{width:auto}
.cw .cw-table-list .cw-col-act{width:156px}
.cw .cw-table-enroll .cw-col-act{width:auto}
.cw .cw-table-list td{overflow-wrap:anywhere}
.cw .cw-table-list td:nth-child(3){white-space:nowrap}
.cw .cw-table-list .cw-status{white-space:normal;align-items:baseline}
.cw .cw-table-list td[data-label="Details"]{font-size:13.5px;color:var(--cw-ink2)}
.cw .cw-table-list .cw-td-act .cw-btn{min-width:104px}
/* Overview: one card per program, equal width and height; three equal numbers in each */
.cw .cw-ov{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:1fr;gap:20px;margin:0 0 44px}
.cw .cw-ov.cw-ov-n2{grid-template-columns:repeat(2,minmax(0,1fr))}
.cw .cw-ov.cw-ov-n1{grid-template-columns:minmax(0,1fr)}
.cw .cw-ov-card{display:flex;flex-direction:column;min-width:0;box-sizing:border-box;padding:24px 24px 22px;background-color:transparent;background-image:var(--cw-sheen);
  border:1px solid var(--cw-line);border-radius:var(--cw-radius);box-shadow:var(--cw-shadow)}
.cw .cw-ov-name{margin:0;font-family:'Cormorant Garamond',Georgia,serif;font-size:25px;font-weight:400;line-height:1.2;color:var(--cw-ink)}
.cw .cw-ov-desc{margin:6px 0 18px;min-height:3em;font-size:14px;line-height:1.5;color:var(--cw-ink2)}
.cw .cw-ov-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid var(--cw-line);border-bottom:1px solid var(--cw-line)}
.cw .cw-ov-stat{all:unset;box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0;min-height:88px;padding:14px 12px;
  box-shadow:inset -1px 0 0 var(--cw-line);color:var(--cw-ink)}
.cw .cw-ov-stat:last-child{box-shadow:none}
.cw button.cw-ov-stat{cursor:pointer;transition:background .2s ease}
.cw button.cw-ov-stat:hover{background:var(--cw-hover)}
.cw button.cw-ov-stat:focus-visible{outline:2px solid var(--cw-focus);outline-offset:-2px;border-radius:8px}
.cw .cw-ov-n{font-family:'Cormorant Garamond',Georgia,serif;font-size:36px;font-weight:300;line-height:1;font-variant-numeric:lining-nums tabular-nums;color:var(--cw-strong)}
/* one line in every cell (an uppercase "NEEDS YOU" wrapped beside one-line labels) */
.cw .cw-ov-l{font-size:12.5px;font-weight:500;letter-spacing:.01em;white-space:nowrap;color:var(--cw-muted)}
.cw .cw-ov-cap{margin:14px 0 18px;font-size:13px;line-height:1.55;color:var(--cw-muted)}
.cw .cw-ov-all{width:100%;margin-top:auto}
.cw h2.cw-ov-recent{margin:0 0 22px;font-family:'Cormorant Garamond',Georgia,serif;font-size:26px;font-weight:400;letter-spacing:0;text-transform:none;color:var(--cw-ink)}
/* status chips: one row of equal chips, each with its count */
.cw .cw-chips{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:8px;margin:0 0 14px}
.cw .cw-chip{all:unset;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;min-height:var(--cw-ctl);padding:6px 16px;
  font-size:13.5px;font-weight:500;line-height:1.25;color:var(--cw-ink2);background:var(--cw-card);border:1px solid var(--cw-line2);border-radius:999px;cursor:pointer;
  transition:color .2s ease,background .2s ease,border-color .2s ease}
.cw .cw-chip:hover{color:var(--cw-strong);border-color:var(--cw-outline)}
.cw .cw-chip:focus-visible{outline:2px solid var(--cw-focus);outline-offset:3px}
.cw .cw-chip[aria-pressed="true"]{background:var(--cw-pill);border-color:transparent;color:var(--cw-pill-ink);font-weight:600;box-shadow:var(--cw-pill-glow)}
.cw .cw-chip-l{min-width:0}
/* six chips (the GLP-1 stages): two even rows of three, so no label wraps */
.cw .cw-chips.cw-chips-n6{grid-auto-flow:row;grid-template-columns:repeat(3,minmax(0,1fr))}
.cw .cw-chip{white-space:nowrap}
.cw .cw-chip-n{flex:none;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:26px;height:24px;padding:0 7px;border-radius:999px;
  font-size:12px;font-weight:600;font-variant-numeric:tabular-nums;color:var(--cw-ink);background:var(--cw-wash);border:1px solid var(--cw-line)}
.cw .cw-chip[aria-pressed="true"] .cw-chip-n{color:var(--cw-pill-ink);background:color-mix(in srgb,var(--cw-pill-ink) 16%,transparent);border-color:transparent}
html[data-theme^="pearl"] .cw .cw-chip:not([aria-pressed="true"]){-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
/* the name search and its buttons, one even row */
.cw .cw-find{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:stretch;margin:0 0 22px}
.cw .cw-find.cw-find-3{grid-template-columns:minmax(0,1fr) auto auto}
.cw .cw-find .cw-find-q{margin:0;min-height:calc(var(--cw-ctl) + 10px)}
.cw .cw-find .cw-btn{min-height:calc(var(--cw-ctl) + 10px)}
/* the enroll panel: three equal program cards, then ONE details area */
.cw .pah-cards{list-style:none;margin:0 0 24px;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:1fr;gap:20px}
.cw .pah-card{display:flex;flex-direction:column;min-width:0;box-sizing:border-box;padding:24px;background-color:transparent;background-image:var(--cw-sheen);
  border:1px solid var(--cw-line);border-radius:var(--cw-radius);box-shadow:var(--cw-shadow);transition:border-color .2s ease,box-shadow .2s ease}
.cw .pah-card.is-open{border-color:var(--cw-accent);box-shadow:var(--cw-shadow),0 0 0 1px var(--cw-accent)}
.cw .pah-card-name{margin:0;font-family:'Cormorant Garamond',Georgia,serif;font-size:24px;font-weight:400;line-height:1.2;color:var(--cw-ink)}
.cw .pah-card-desc{margin:6px 0 0;min-height:4.5em;font-size:13.5px;line-height:1.5;color:var(--cw-ink2)}
.cw .pah-card-st{margin:14px 0 0;padding-top:14px;border-top:1px solid var(--cw-line)}
.cw .pah-card-st .cw-status{white-space:normal;font-weight:500}
.cw .pah-card-facts{margin:8px 0 0;font-size:13.5px;line-height:1.5;color:var(--cw-muted)}
.cw .pah-card-act{margin-top:auto;padding-top:18px}
.cw .pah-card-act .cw-btn{width:100%}
.cw .pah-details{margin:0 0 22px}
.cw .pah-details-empty{padding:18px 22px;border:1px dashed var(--cw-line2);border-radius:var(--cw-radius)}
.cw .pah-details-empty .cw-note{margin:0}
.cw .pah-details-bar{display:flex;align-items:center;gap:12px 16px;margin:0 0 16px}
.cw .pah-details-bar .cw-h2{margin:0;flex:1 1 auto;outline:none}
/* focus moves to this heading when a program opens (tabindex -1): no ring box around a heading (the app-wide [tabindex] ring) */
.cw .pah-details-bar .cw-h2:focus-visible{box-shadow:none}
.cw .pah-progs-one>.pah-prog:first-child{border-top:0;padding-top:0;padding-bottom:0}
.cw .pah-back{margin:0 0 10px}
/* the standard features: an odd last one takes the whole row (nothing alone with a gap beside it) */
.cw .pah-std li:last-child:nth-child(odd){grid-column:1 / -1}
@media (max-width:980px){
  .cw .cw-ov,.cw .cw-ov.cw-ov-n2,.cw .pah-cards{grid-template-columns:minmax(0,1fr);grid-auto-rows:auto}
  .cw .pah-card-desc,.cw .cw-ov-desc{min-height:0}
}
@media (max-width:720px){
  .cw .cw-hub-top{flex-direction:column;align-items:stretch}
  .cw .cw-hub-add{width:100%}
  .cw .cw-chips{grid-auto-flow:row;grid-template-columns:repeat(2,minmax(0,1fr))}
  /* the six GLP-1 stages have long names: one even list, like the tabs, so no name is cut off */
  .cw .cw-chips.cw-chips-n6{grid-template-columns:minmax(0,1fr)}
  .cw .cw-chips-n3 .cw-chip:first-child,.cw .cw-chips-n5 .cw-chip:first-child{grid-column:1 / -1}
  .cw .cw-chip{min-height:48px;padding:0 12px;gap:8px;white-space:nowrap}
  /* the search, then each button, one full row each */
  .cw .cw-find,.cw .cw-find.cw-find-3{grid-template-columns:minmax(0,1fr)}
  .cw .cw-ov-stat{min-height:76px;padding:12px 8px}
  .cw .cw-ov-l{font-size:12px}
  .cw .cw-ov-n{font-size:32px}
  .cw .cw-table-list .cw-td-act .cw-btn{min-width:0}
  .cw .pah-card{padding:20px 18px}
  .cw .pah-details-bar .cw-btn{flex:none}
  .cw .pah-patient>.cw-actions{width:100%}
  .cw .pah-patient>.cw-actions .cw-btn{flex:1 1 0}
}
@media (prefers-reduced-motion:reduce){.cw .cw-chip,.cw button.cw-ov-stat,.cw .pah-card{transition:none}}
/* the new sheets take the same Pearl glass and Oil Slick finish as the landing cards */
html[data-theme^="pearl"] .cw .cw-ov-card,html[data-theme^="pearl"] .cw .pah-card{
  border-color:var(--lux-edge);-webkit-backdrop-filter:blur(14px) saturate(1.15);backdrop-filter:blur(14px) saturate(1.15)}
html[data-box-style="oil_slick"][data-theme^="pearl"] .cw .cw-ov-card,html[data-box-style="oil_slick"][data-theme^="pearl"] .cw .pah-card{
  border-color:color-mix(in srgb,var(--slick-1) 50%,var(--lux-edge));
  box-shadow:var(--lux-shadow),0 0 0 .5px color-mix(in srgb,var(--slick-1) 40%,transparent),0 0 32px -8px color-mix(in srgb,var(--slick-2) 60%,transparent)}
html[data-theme^="pearl"] .cw .pah-card.is-open{border-color:var(--cw-accent);box-shadow:var(--lux-shadow),0 0 0 1px var(--cw-accent)}
/* the same panel inside the patient chart's Portal access section (owner 2026-11-25): no page frame of its own (the chart has one),
   and the three cards follow the chart's column, not the window (the record list takes part of it): three even cards, or one column */
.cw[data-view="chart"]{max-width:none;margin:0;padding:0;container:pah-chart/inline-size}
@container pah-chart (max-width:760px){
  .cw .pah-cards{grid-template-columns:minmax(0,1fr);grid-auto-rows:auto}
  .cw .pah-card-desc{min-height:0}
}
/* ── Portal care (owner 2026-11-26: the staff side of the therapy library should "match the high end ux design, lux modern sleek")
   The patient chart's Portal care page (js/ekm-patient-chart.js renderPortalCare) drawn on the Enrollment Center's surfaces: the same
   --cw-* tokens (so the employee's theme, the Pearl glass and the Oil Slick rim apply unchanged), one row of equal tabs, equal status
   chips with counts, and lists whose rows share one column grid (icon | title | owner | status | buttons), so every status and every
   button sits on the same line in every row. Preview as patient and Assign open one drawer on the right. The chart column is the
   container (.cw[data-view="chart"] is the pah-chart container), so the layout follows the chart, not the window. ── */
.cw{--pcc-ic:44px;--pcc-gap:18px;
  --pcc-ic-practice:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3.5h8.5L19 8v12.5H6z'/%3E%3Cpath d='M14.5 3.5V8H19'/%3E%3Cpath d='M9 12.5h7M9 16h4.5'/%3E%3C/svg%3E");
  --pcc-ic-reading:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 6.5C10 5 7 4.6 3.5 5v13.5c3.5-.4 6.5 0 8.5 1.5 2-1.5 5-1.9 8.5-1.5V5C17 4.6 14 5 12 6.5z'/%3E%3Cpath d='M12 6.5V20'/%3E%3C/svg%3E");
  --pcc-ic-medicine:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='8.5' width='17' height='7' rx='3.5' transform='rotate(-45 12 12)'/%3E%3Cpath d='M9.5 9.5l5 5'/%3E%3C/svg%3E")}
.cw[data-view="drawer"]{max-width:none;margin:0;padding:0}
.cw .pcc-acct{margin:0 0 18px;font-size:14px}
.cw .pcc-acct .cw-status{white-space:normal;color:var(--cw-ink2)}
.cw .pcc-tabs{margin:0 0 24px}
.cw .pcc-page-alert{margin:0 0 16px}
.cw .pcc-callout{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;margin:-8px 0 22px;padding:12px 18px;border:1px solid var(--cw-line2);
  border-radius:var(--cw-radius-s);background:var(--cw-wash);font-size:14px}
.cw .pcc-callout .cw-link{min-height:var(--cw-ctl);display:inline-flex;align-items:center}
.cw .pcc-sec-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;margin:0 0 16px}
.cw .pcc-sec-head .cw-h2{margin:0;flex:1 1 220px}
.cw .pcc-chips{margin:0 0 18px}
.cw .pcc-count{margin:0 0 10px;font-size:13px;color:var(--cw-muted);display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.cw .pcc-count .cw-link{min-height:32px;display:inline-flex;align-items:center}
.cw .pcc-empty{margin:0;padding:22px;border:1px dashed var(--cw-line2);border-radius:var(--cw-radius);font-size:14px;color:var(--cw-muted);text-align:center}
.cw .pcc-small{margin:0 0 12px;font-size:13px;line-height:1.55;color:var(--cw-muted)}
.cw .pcc-warn{margin:0 0 14px;padding:12px 16px;border-left:2px solid var(--cw-warn);background:var(--cw-wash);border-radius:0 var(--cw-radius-s) var(--cw-radius-s) 0;font-size:14px;color:var(--cw-ink)}
/* status: a dot and words (the hub's .cw-status), one tone per meaning */
.cw .pcc-st{white-space:normal;align-items:baseline;line-height:1.35}
.cw .pcc-st .cw-dot{transform:translateY(-1px)}
.cw .pcc-st-ok .cw-dot{background:var(--cw-ok)}
.cw .pcc-st-warn .cw-dot{background:var(--cw-warn)}
.cw .pcc-st-accent .cw-dot{background:var(--cw-accent-ink)}
.cw .pcc-st-draft .cw-dot{background:transparent;box-shadow:inset 0 0 0 1.5px var(--cw-accent-ink)}
.cw .pcc-st-quiet .cw-dot{background:var(--cw-muted)}
/* the outlined square with a line icon, one per kind of item, the same size and colour in every row */
.cw .pcc-ic{position:relative;flex:none;box-sizing:border-box;display:block;width:var(--pcc-ic);height:var(--pcc-ic);border-radius:12px;background:var(--cw-wash);border:1px solid var(--cw-outline)}
.cw .pcc-ic::after{content:"";position:absolute;inset:0;margin:auto;width:22px;height:22px;background:var(--cw-accent-ink);
  -webkit-mask:var(--pcc-ic-u) center/contain no-repeat;mask:var(--pcc-ic-u) center/contain no-repeat}
.cw .pcc-ic-practice{--pcc-ic-u:var(--pcc-ic-practice)}
.cw .pcc-ic-reading{--pcc-ic-u:var(--pcc-ic-reading)}
.cw .pcc-ic-medicine{--pcc-ic-u:var(--pcc-ic-medicine)}
/* ONE sheet per list; rows share a column grid, so statuses and buttons line up from row to row */
.cw .pcc-list{list-style:none;margin:0 0 22px;padding:0 24px;background-color:transparent;background-image:var(--cw-sheen);border:1px solid var(--cw-line);border-radius:var(--cw-radius);box-shadow:var(--cw-shadow)}
.cw .pcc-row{display:grid;align-items:center;gap:var(--pcc-gap);padding:18px 0;border-top:1px solid var(--cw-line);min-width:0}
.cw .pcc-row:first-child{border-top:0}
.cw .pcc-row-asg{grid-template-columns:var(--pcc-ic) minmax(0,1fr) 150px 120px}
.cw .pcc-row-lib{grid-template-columns:var(--pcc-ic) minmax(0,1fr) 150px 178px 212px}
.cw .pcc-row-q{grid-template-columns:var(--pcc-ic) minmax(0,1fr) 170px 178px 120px}
.cw .pcc-row-main{display:flex;flex-direction:column;gap:3px;min-width:0}
.cw .pcc-row-title{font-family:'Cormorant Garamond',Georgia,serif;font-size:21px;font-weight:400;line-height:1.25;color:var(--cw-strong);overflow-wrap:anywhere}
.cw .pcc-id{font-family:'DM Sans',sans-serif;font-size:11px;font-weight:500;letter-spacing:.14em;color:var(--cw-muted);margin-left:4px;white-space:nowrap}
.cw .pcc-row-sub{font-size:13px;line-height:1.5;color:var(--cw-muted);overflow-wrap:anywhere}
.cw .pcc-row-goal{font-size:13.5px;line-height:1.5;color:var(--cw-ink2);overflow-wrap:anywhere}
.cw .pcc-row-col{min-width:0;font-size:13.5px}
.cw .pcc-owner{font-size:13px;color:var(--cw-ink2)}
.cw .pcc-row-act{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:8px}
.cw .pcc-row-act .cw-btn{width:100%;padding:0 14px}
/* the library: section chips, then search / bundle / show in one even row */
.cw .pcc-find{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr);gap:14px;align-items:end;margin:0 0 18px}
.cw .pcc-find .cw-input{margin:0;min-height:calc(var(--cw-ctl) + 4px)}
.cw .pcc-find .cw-label{margin-bottom:8px}
.cw .pcc-bundle{margin:0 0 16px;padding:18px 22px;border:1px solid var(--cw-line2);border-radius:var(--cw-radius);background:var(--cw-wash)}
.cw .pcc-bundle .cw-eyebrow{margin:0 0 6px;color:var(--cw-accent-ink)}
.cw .pcc-bundle-p{margin:0 0 6px;font-family:'Instrument Serif',Georgia,serif;font-style:italic;font-size:18px;line-height:1.45;color:var(--cw-ink)}
.cw .pcc-bundle .pcc-small{margin:0}
.cw .pcc-notice{display:flex;align-items:flex-start;gap:14px;margin:0 0 22px;padding:16px 20px;border:1px solid var(--cw-line2);border-radius:var(--cw-radius);background:var(--cw-wash)}
.cw .pcc-notice-ic{flex:none;width:22px;height:22px;margin-top:1px;border-radius:50%;box-shadow:inset 0 0 0 1.5px var(--cw-accent-ink);position:relative}
.cw .pcc-notice-ic::after{content:"i";position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-family:'Instrument Serif',Georgia,serif;font-style:italic;font-size:15px;color:var(--cw-accent-ink)}
.cw .pcc-notice-t{margin:0 0 4px;font-size:14.5px;font-weight:600;color:var(--cw-ink)}
.cw .pcc-notice .pcc-small{margin:0}
/* one assignment, opened: heading, the plan as four equal facts, the answers, then the review */
.cw .pcc-pane .cw-back{margin:-6px 0 14px}
.cw .pcc-dhead{display:flex;align-items:center;gap:16px;margin:0 0 18px}
.cw .pcc-dhead-main{flex:1 1 auto;min-width:0}
.cw .pcc-dhead .cw-eyebrow{margin:0 0 6px;font-size:11px}
.cw .pcc-dtitle{margin:0;font-family:'Cormorant Garamond',Georgia,serif;font-size:30px;font-weight:300;line-height:1.15;color:var(--cw-ink);outline:none}
.cw .pcc-dhead>.cw-status{flex:none}
.cw .pcc-plan{grid-template-columns:repeat(4,minmax(0,1fr))}
.cw .pcc-sheet{margin:0 0 22px;padding:24px 26px;background-color:transparent;background-image:var(--cw-sheen);border:1px solid var(--cw-line);border-radius:var(--cw-radius);box-shadow:var(--cw-shadow)}
.cw .pcc-sheet .cw-note:last-child{margin-bottom:0}
.cw .pcc-draft{background-image:none;border-style:dashed;box-shadow:none}
.cw .pcc-answers{margin:0}
.cw .pcc-ans{padding:16px 0;border-top:1px solid var(--cw-line)}
.cw .pcc-ans:first-child{border-top:0;padding-top:2px}
.cw .pcc-ans:last-child{padding-bottom:0}
.cw .pcc-ans-l{margin:0 0 8px;font-size:11px;font-weight:500;letter-spacing:.16em;text-transform:uppercase;line-height:1.5;color:var(--cw-muted)}
.cw .pcc-ans dd{margin:0}
.cw .pcc-ans-v{margin:0;font-size:15px;line-height:1.6;color:var(--cw-ink);white-space:pre-wrap;overflow-wrap:anywhere}
.cw .pcc-ans-none{color:var(--cw-muted);font-style:italic}
.cw .pcc-ans-ns{font-family:'Instrument Serif',Georgia,serif;font-style:italic;font-size:19px;color:var(--cw-ink2)}
.cw .pcc-ans-list{margin:0;padding:0 0 0 18px;font-size:15px;line-height:1.6;color:var(--cw-ink)}
/* a rating: the number in the display serif, "of 10", and a hairline track the width of a phrase */
.cw .pcc-meter{display:grid;grid-template-columns:auto auto minmax(0,1fr);grid-template-rows:auto auto;align-items:center;column-gap:12px;row-gap:4px;max-width:520px}
.cw .pcc-meter-n{grid-row:1 / 3;font-family:'Cormorant Garamond',Georgia,serif;font-size:42px;font-weight:300;line-height:1;font-variant-numeric:lining-nums tabular-nums;color:var(--cw-strong);min-width:1.1ch;text-align:right}
.cw .pcc-meter-of{grid-row:1 / 3;font-size:11.5px;font-weight:500;letter-spacing:.16em;text-transform:uppercase;color:var(--cw-muted)}
.cw .pcc-meter-track{position:relative;display:block;height:6px;border-radius:3px;background:color-mix(in srgb,var(--cw-ink) 10%,transparent);overflow:hidden}
.cw .pcc-meter-fill{position:absolute;left:0;top:0;bottom:0;border-radius:3px;background:var(--cw-pill)}
.cw .pcc-meter-ends{display:flex;justify-content:space-between;font-size:11px;color:var(--cw-muted);font-variant-numeric:tabular-nums}
.cw .pcc-earlier{margin:0 0 22px;padding:0 22px;border:1px solid var(--cw-line);border-radius:var(--cw-radius)}
.cw .pcc-earlier summary{cursor:pointer;min-height:var(--cw-ctl);display:flex;align-items:center;font-size:11.5px;font-weight:500;letter-spacing:.18em;text-transform:uppercase;color:var(--cw-accent-ink)}
.cw .pcc-earlier[open]{padding-bottom:18px}
.cw .pcc-composer .cw-seg{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);width:100%;max-width:520px;margin:0 0 10px}
.cw .pcc-composer .cw-seg-b{justify-content:center;text-align:center}
.cw .pcc-seg-help{margin:0 0 20px}
.cw .pcc-adj{padding:18px 18px 1px;margin:0 0 18px;border-left:1px solid var(--cw-accent);background:var(--cw-wash);border-radius:0 var(--cw-radius-s) var(--cw-radius-s) 0}
.cw .pcc-adj .cw-input{background:var(--cw-field)}
.cw .pcc-composer .cw-actions{margin-top:8px}
.cw .pcc-composer .cw-actions .cw-btn{min-width:180px}
/* requests: a row with its status at the top right, then its form */
.cw .pcc-reqs{padding:0 24px}
.cw .pcc-req{padding:20px 0;border-top:1px solid var(--cw-line)}
.cw .pcc-req:first-child{border-top:0}
.cw .pcc-req-top{display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:var(--pcc-gap);align-items:start}
.cw .pcc-req-what{font-size:14px;line-height:1.5;color:var(--cw-ink);overflow-wrap:anywhere}
.cw .pcc-req-form{display:grid;grid-template-columns:minmax(0,220px) minmax(0,1fr);gap:0 16px;align-items:start;margin:16px 0 0;padding:18px 18px 4px;border-radius:var(--cw-radius-s);background:var(--cw-wash)}
.cw .pcc-req-form .cw-input{margin-bottom:14px;background:var(--cw-field)}
.cw .pcc-req-form .cw-actions{grid-column:1 / -1;margin:0 0 14px}
/* trackers */
.cw .pcc-table th[scope="row"]{font-weight:500;white-space:nowrap;text-align:left;padding:17px 22px;border-bottom:1px solid var(--cw-line);font-size:14px;letter-spacing:0;text-transform:none;color:var(--cw-ink)}
.cw .pcc-table tbody tr:last-child th{border-bottom:0}
.cw .pcc-bar{display:inline-block;width:56px;height:5px;margin-right:6px;vertical-align:middle;border-radius:3px;background:color-mix(in srgb,var(--cw-ink) 10%,transparent);overflow:hidden}
.cw .pcc-bar>span{display:block;height:100%;background:var(--cw-pill)}
/* the drawer: a glass sheet on the right over a soft scrim; its foot keeps every button the same width */
.cw .pcc-scrim{position:fixed;inset:0;z-index:2147483000;background:color-mix(in srgb,#000 38%,transparent);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}
.cw .pcc-drawer{position:fixed;top:0;right:0;bottom:0;z-index:2147483001;display:flex;flex-direction:column;width:min(620px,100vw);box-sizing:border-box;
  background:var(--c-box,var(--cw-card));color:var(--cw-ink);border-left:1px solid var(--cw-line2);box-shadow:-30px 0 60px -30px rgba(0,0,0,.45);
  font-family:'DM Sans',var(--ekm-ds-font,system-ui,sans-serif);font-size:14.5px;line-height:1.55}
.cw .pcc-drawer-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px 14px 28px;border-bottom:1px solid var(--cw-line)}
.cw .pcc-drawer-bar .cw-eyebrow{margin:0;color:var(--cw-accent-ink)}
.cw .pcc-x{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;font-size:24px;line-height:1;color:var(--cw-muted);cursor:pointer;border:1px solid var(--cw-line2)}
.cw .pcc-x:hover{color:var(--cw-strong);border-color:var(--cw-outline)}
.cw .pcc-x:focus-visible{outline:2px solid var(--cw-focus);outline-offset:2px}
.cw .pcc-drawer-body{flex:1 1 auto;overflow-y:auto;overflow-x:hidden;padding:24px 28px 8px;overscroll-behavior:contain}
.cw .pcc-drawer-foot{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:10px;padding:16px 28px 20px;border-top:1px solid var(--cw-line)}
.cw .pcc-drawer-foot .cw-btn{width:100%;padding:0 12px;white-space:nowrap;text-align:center}
.cw .pcc-dhead-sm .pcc-dtitle{font-size:26px}
.cw .pcc-dhead-sm{margin-bottom:8px}
.cw .pcc-goal{margin:0 0 20px;padding-left:60px;font-family:'Instrument Serif',Georgia,serif;font-style:italic;font-size:17px;line-height:1.45;color:var(--cw-ink2)}
/* focus lands on the heading when a drawer or an assignment opens (tabindex -1): no ring box around a heading */
.cw .pcc-pv-title:focus,.cw .pcc-dtitle:focus,.cw .pcc-pv-title:focus-visible,.cw .pcc-dtitle:focus-visible{outline:none;box-shadow:none}
.cw .pcc-drawer-foot{grid-auto-flow:row;grid-template-columns:minmax(0,1fr)}
.cw .pcc-foot-row{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:10px}
.cw .pcc-plan-form .cw-input{background:var(--cw-field)}
/* Preview as patient: the patient's page in a quiet frame, then the staff-only facts */
.cw .pcc-pv-frame{margin:0 0 22px;padding:26px 26px 22px;border:1px solid var(--cw-line2);border-radius:var(--cw-radius);background:var(--cw-wash)}
.cw .pcc-pv{font-size:15px;line-height:1.65;color:var(--cw-ink)}
.cw .pcc-pv p{margin:0 0 14px}
.cw .pcc-pv-label{font-size:11px;font-weight:500;letter-spacing:.18em;text-transform:uppercase;color:var(--cw-muted)}
.cw .pcc-pv-title{margin:0 0 8px;font-family:'Cormorant Garamond',Georgia,serif;font-size:32px;font-weight:300;line-height:1.12;color:var(--cw-ink);outline:none}
.cw .pcc-pv-goal{font-family:'Instrument Serif',Georgia,serif;font-style:italic;font-size:18px;line-height:1.45;color:var(--cw-ink2)}
.cw .pcc-pv-goal::after{content:"";display:block;width:56px;height:1px;margin-top:16px;background:linear-gradient(90deg,var(--cw-accent),transparent)}
.cw .pcc-pv-note,.cw .pcc-pv-miss{padding:12px 14px;border-left:2px solid var(--cw-accent);background:var(--cw-card);border-radius:0 10px 10px 0;font-size:14px}
.cw .pcc-pv-miss{border-left-color:var(--cw-warn)}
.cw .pcc-pv-body p{font-size:15px}
.cw .pcc-pv-eyebrow{margin:22px 0 10px !important;font-size:11px;font-weight:600;letter-spacing:.2em;text-transform:uppercase;color:var(--cw-accent-ink)}
.cw .pcc-pv-steps{margin:0 0 14px;padding:0 0 0 20px}
.cw .pcc-pv-steps li{margin:0 0 8px}
.cw .pcc-pv-small{font-size:13px;line-height:1.55;color:var(--cw-muted)}
.cw .pcc-pv-fields{display:flex;flex-direction:column;gap:16px;margin:0 0 14px}
.cw .pcc-pv-f{display:flex;flex-direction:column;gap:7px}
.cw .pcc-pv-fl{font-size:14px;font-weight:500;color:var(--cw-ink)}
.cw .pcc-pv-box{display:block;box-sizing:border-box;min-height:42px;padding:10px 14px;border:1px solid var(--cw-line2);border-radius:10px;background:var(--cw-field)}
.cw .pcc-pv-box-2{min-height:58px}
.cw .pcc-pv-box-3{min-height:84px}
.cw .pcc-pv-ph{font-size:13px;color:var(--cw-muted)}
.cw .pcc-pv-range{position:relative;display:block;height:4px;margin:12px 0 2px;border-radius:2px;background:color-mix(in srgb,var(--cw-ink) 14%,transparent)}
.cw .pcc-pv-knob{position:absolute;left:50%;top:50%;width:18px;height:18px;margin:-9px 0 0 -9px;border-radius:50%;background:var(--cw-card);border:1px solid var(--cw-outline);box-shadow:0 1px 3px rgba(0,0,0,.2)}
.cw .pcc-pv-ends{display:flex;justify-content:space-between;font-size:12px;color:var(--cw-muted)}
.cw .pcc-pv-ns{display:inline-flex;align-items:center;gap:8px;font-size:13.5px;color:var(--cw-ink2)}
.cw .pcc-pv-check{display:inline-block;width:15px;height:15px;border:1px solid var(--cw-outline);border-radius:4px;background:var(--cw-field)}
.cw .pcc-pv-add{font-size:13px;color:var(--cw-accent-ink);text-decoration:underline;text-underline-offset:3px}
.cw .pcc-pv-cta{display:flex;align-items:center;justify-content:flex-end;gap:18px;margin:4px 0 18px !important;font-size:13.5px;color:var(--cw-accent-ink)}
.cw .pcc-pv-btn{display:inline-flex;align-items:center;min-height:40px;padding:0 20px;border-radius:999px;background:var(--cw-pill);color:var(--cw-pill-ink);font-weight:600;opacity:.85}
.cw .pcc-pv-review{margin:0 0 14px;padding:14px 16px;border:1px solid var(--cw-line);border-radius:12px;background:var(--cw-card)}
.cw .pcc-pv-review .pcc-pv-eyebrow{margin-top:0 !important}
.cw .pcc-pv-review p:last-child{margin:0}
.cw .pcc-pv-caution{font-size:14px;color:var(--cw-ink2);padding-left:14px;border-left:1px solid var(--cw-warn)}
.cw .pcc-pv-safety{margin:16px 0 0 !important;padding-top:14px;border-top:1px solid var(--cw-line2);font-size:13px;line-height:1.55;color:var(--cw-ink2)}
.cw .pcc-staff{margin:0 0 18px}
.cw .pcc-staff .cw-h2{margin-bottom:10px}
.cw .pcc-staff-dl{margin:0}
.cw .pcc-staff-dl>div{display:grid;grid-template-columns:120px minmax(0,1fr);gap:14px;padding:10px 0;border-top:1px solid var(--cw-line)}
.cw .pcc-staff-dl>div:first-child{border-top:0}
.cw .pcc-staff-dl dt{font-size:11px;font-weight:500;letter-spacing:.16em;text-transform:uppercase;color:var(--cw-muted);padding-top:2px}
.cw .pcc-staff-dl dd{margin:0;font-size:14px;color:var(--cw-ink);overflow-wrap:anywhere}
/* Approve selected (owner 2026-11-26): clinical leads tick Approvals rows and sign them off together. The tick box is drawn from the
   tokens (the real checkbox stays underneath for keyboard and screen readers); its column lines up with the bar's "Select all" box. */
.cw{--pcc-pick:32px}
.cw .pcc-cbl{position:relative;display:inline-flex;align-items:center;gap:12px;min-height:44px;cursor:pointer;color:var(--cw-ink);font-size:14px;line-height:1.45}
.cw .pcc-cbl.is-off{cursor:not-allowed}
.cw .pcc-cb-in{position:absolute;opacity:0;width:var(--pcc-pick);height:100%;margin:0;left:0;top:0;cursor:inherit}
.cw .pcc-cb{flex:none;position:relative;box-sizing:border-box;width:20px;height:20px;margin:0 6px;border-radius:6px;border:1.5px solid var(--cw-outline);background:var(--cw-field);
  transition:background-color .15s ease,border-color .15s ease}
.cw .pcc-cbl:hover .pcc-cb{border-color:var(--cw-accent-ink)}
.cw .pcc-cb-in:checked+.pcc-cb{background:var(--cw-accent-ink);border-color:var(--cw-accent-ink)}
.cw .pcc-cb-in:checked+.pcc-cb::after{content:"";position:absolute;left:5.5px;top:1.5px;width:5px;height:10px;border:solid var(--cw-card);border-width:0 2px 2px 0;transform:rotate(45deg)}
.cw .pcc-cb-in:focus-visible+.pcc-cb{outline:2px solid var(--cw-focus);outline-offset:2px}
.cw .pcc-cb-in:disabled+.pcc-cb{border-style:dashed;border-color:var(--cw-line2);background:transparent}
.cw .pcc-cbl.is-off:hover .pcc-cb{border-color:var(--cw-line2)}
.cw .pcc-pick{width:var(--pcc-pick);justify-content:flex-start;gap:0}
.cw .pcc-row-q.pcc-row-sel{grid-template-columns:var(--pcc-pick) var(--pcc-ic) minmax(0,1fr) 170px 178px 120px}
.cw .pcc-row-why{display:inline-flex;align-items:center;gap:8px;font-size:12.5px;line-height:1.45;color:var(--cw-muted)}
.cw .pcc-row-why::before{content:"";flex:none;width:12px;height:0;border-top:1.5px dashed var(--cw-line2)}
.cw .pcc-bulk{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;margin:0 0 14px;padding:8px 12px 8px 24px;border:1px solid var(--cw-line);border-radius:var(--cw-radius);
  background-color:transparent;background-image:var(--cw-sheen);box-shadow:var(--cw-shadow)}
.cw .pcc-bulk-all{gap:6px;font-weight:500}
.cw .pcc-bulk-n{font-size:13px;letter-spacing:.04em;color:var(--cw-muted);font-variant-numeric:tabular-nums}
.cw .pcc-bulk-acts{margin-left:auto;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:8px}
.cw .pcc-bulk-acts .cw-btn{width:100%;padding:0 18px}
.cw .pcc-st-bad .cw-dot{background:var(--cw-danger)}
/* the drawer: the list being signed, the choices asked once, then the progress and each result */
.cw .pcc-drawer[data-mode="bulk"] .pcc-dtitle{margin:0 0 10px}
.cw .pcc-bulk-list{list-style:none;margin:6px 0 22px;padding:0;border-top:1px solid var(--cw-line)}
.cw .pcc-bulk-it{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:start;gap:14px;padding:14px 0;border-bottom:1px solid var(--cw-line)}
.cw .pcc-bulk-it>.pcc-ic{--pcc-ic:32px;border-radius:9px}
.cw .pcc-bulk-it>.pcc-ic::after{width:17px;height:17px}
.cw .pcc-bulk-main{display:flex;flex-direction:column;gap:3px;min-width:0}
.cw .pcc-bulk-t{font-family:'Cormorant Garamond',Georgia,serif;font-size:19px;line-height:1.25;color:var(--cw-strong);overflow-wrap:anywhere}
.cw .pcc-bulk-after{font-size:12.5px;line-height:1.45;color:var(--cw-ink2)}
.cw .pcc-bulk-live{font-size:12.5px;line-height:1.45;color:var(--cw-ok)}
.cw .pcc-bulk-err{font-size:13px;line-height:1.45;color:var(--cw-danger);overflow-wrap:anywhere}
.cw .pcc-bulk-st{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding-top:3px;min-width:150px}
.cw .pcc-bulk-st .cw-status{font-size:12.5px}
.cw .pcc-bulk-f{margin:0 0 18px;padding:0;border:0;min-width:0}
.cw .pcc-bulk-f .cw-label{padding:0;margin-bottom:6px}
.cw .pcc-bulk-roles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px;margin:0 0 4px}
.cw .pcc-bulk-role{gap:6px}
.cw .pcc-bulk-date{max-width:260px;margin-bottom:8px}
.cw .pcc-attest{display:flex;align-items:flex-start;gap:6px;margin:4px 0 16px;padding:12px 16px 12px 10px;border:1px solid var(--cw-line2);border-radius:var(--cw-radius-s);background:var(--cw-wash);font-weight:500}
.cw .pcc-attest .pcc-cb{margin-top:1px}
.cw .pcc-attest .pcc-cb-in{height:44px}
.cw .pcc-bulk-prog{margin:0 0 16px}
.cw .pcc-bulk-prog-t{margin:0 0 10px;font-size:15px;font-weight:500;color:var(--cw-ink);font-variant-numeric:tabular-nums}
.cw .pcc-bulk-bar{display:block;height:6px;border-radius:3px;background:color-mix(in srgb,var(--cw-ink) 10%,transparent);overflow:hidden}
.cw .pcc-bulk-bar>span{display:block;height:100%;border-radius:inherit;background:var(--cw-pill);transition:width .25s ease}
.cw .pcc-bulk-sum{display:flex;flex-wrap:wrap;gap:8px 20px;margin:0 0 14px}
@media (prefers-reduced-motion:reduce){.cw .pcc-cb,.cw .pcc-bulk-bar>span{transition:none}}
/* Pearl: the sheets are the look's frosted glass; the drawer is the strong glass over a blur; Oil Slick: the rim and glow */
html[data-theme^="pearl"] .cw .pcc-list,html[data-theme^="pearl"] .cw .pcc-sheet,html[data-theme^="pearl"] .cw .pcc-plan,html[data-theme^="pearl"] .cw .pcc-composer,html[data-theme^="pearl"] .cw .pcc-bulk{border-color:var(--lux-edge);-webkit-backdrop-filter:blur(14px) saturate(1.15);backdrop-filter:blur(14px) saturate(1.15)}
html[data-theme^="pearl"] .cw .pcc-drawer{background:color-mix(in srgb,var(--c-box,#1C1814) 95%,transparent);border-left-color:var(--lux-edge);
  -webkit-backdrop-filter:blur(24px) saturate(1.2);backdrop-filter:blur(24px) saturate(1.2)}
html[data-box-style="oil_slick"][data-theme^="pearl"] .cw .pcc-list,html[data-box-style="oil_slick"][data-theme^="pearl"] .cw .pcc-sheet,
html[data-box-style="oil_slick"][data-theme^="pearl"] .cw .pcc-plan,html[data-box-style="oil_slick"][data-theme^="pearl"] .cw .pcc-composer,
html[data-box-style="oil_slick"][data-theme^="pearl"] .cw .pcc-bulk{position:relative;border-color:transparent;background-clip:padding-box;
  box-shadow:var(--lux-shadow),0 0 0 .5px color-mix(in srgb,var(--slick-1) 40%,transparent),0 0 32px -8px color-mix(in srgb,var(--slick-2) 60%,transparent)}
html[data-box-style="oil_slick"][data-theme^="pearl"] .cw .pcc-list::after,html[data-box-style="oil_slick"][data-theme^="pearl"] .cw .pcc-sheet::after,
html[data-box-style="oil_slick"][data-theme^="pearl"] .cw .pcc-plan::after,html[data-box-style="oil_slick"][data-theme^="pearl"] .cw .pcc-composer::after,
html[data-box-style="oil_slick"][data-theme^="pearl"] .cw .pcc-bulk::after{content:"";position:absolute;inset:0;border-radius:inherit;padding:1.5px;
  background:var(--slick-film);pointer-events:none;-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;
  mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0)}
html[data-box-style="oil_slick"][data-theme^="pearl"] .cw .pcc-drawer{border-left:1.5px solid color-mix(in srgb,var(--slick-1) 55%,var(--lux-edge));
  box-shadow:-30px 0 60px -30px rgba(0,0,0,.5),-1px 0 32px -12px color-mix(in srgb,var(--slick-2) 55%,transparent)}
/* the chart column narrower (a laptop with the record list open): owner and status share one column; then rows stack */
@container pah-chart (max-width:900px){
  .cw .pcc-row-lib{grid-template-columns:var(--pcc-ic) minmax(0,1fr) 176px 212px;grid-template-rows:auto auto;row-gap:4px}
  .cw .pcc-row-q{grid-template-columns:var(--pcc-ic) minmax(0,1fr) 176px 120px;grid-template-rows:auto auto;row-gap:4px}
  .cw .pcc-row-lib>.pcc-ic,.cw .pcc-row-q>.pcc-ic,.cw .pcc-row-lib>.pcc-row-main,.cw .pcc-row-q>.pcc-row-main,.cw .pcc-row-lib>.pcc-row-act,.cw .pcc-row-q>.pcc-row-act{grid-row:1 / 3}
  .cw .pcc-row-lib>.pcc-c2,.cw .pcc-row-q>.pcc-c2{grid-column:3;grid-row:1;align-self:end}
  .cw .pcc-row-lib>.pcc-c1,.cw .pcc-row-q>.pcc-c1{grid-column:3;grid-row:2;align-self:start}
  .cw .pcc-row-lib>.pcc-row-act,.cw .pcc-row-q>.pcc-row-act{grid-column:4}
  .cw .pcc-plan{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cw .pcc-chips-n6{grid-auto-flow:row;grid-template-columns:repeat(3,minmax(0,1fr))}
  /* five tabs in a narrower column: tighter, and a long name wraps rather than being cut off */
  .cw .pcc-tabs .cw-tab{padding:6px 10px;gap:6px;white-space:normal;line-height:1.25}
  .cw .pcc-tabs .cw-tab-label{overflow:visible;text-overflow:clip}
}
@container pah-chart (max-width:680px){
  .cw .pcc-list,.cw .pcc-reqs{padding:0 18px}
  .cw .pcc-row-asg,.cw .pcc-row-lib,.cw .pcc-row-q{grid-template-columns:var(--pcc-ic) minmax(0,1fr);grid-template-rows:none;gap:10px 14px}
  .cw .pcc-row>.pcc-ic{grid-row:auto;align-self:start}
  .cw .pcc-row>.pcc-row-main{grid-column:2;grid-row:auto}
  .cw .pcc-row>.pcc-row-col,.cw .pcc-row-lib>.pcc-c1,.cw .pcc-row-lib>.pcc-c2,.cw .pcc-row-q>.pcc-c1,.cw .pcc-row-q>.pcc-c2{grid-column:2;grid-row:auto;align-self:auto}
  .cw .pcc-row>.pcc-row-act{grid-column:1 / -1;grid-row:auto}
  .cw .pcc-find{grid-template-columns:minmax(0,1fr)}
  .cw .pcc-req-top{grid-template-columns:minmax(0,1fr)}
  .cw .pcc-req-form{grid-template-columns:minmax(0,1fr)}
  .cw .pcc-dhead{flex-wrap:wrap}
  .cw .pcc-dhead>.cw-status{width:100%}
  .cw .pcc-dtitle{font-size:26px}
  .cw .pcc-plan{grid-template-columns:minmax(0,1fr)}
  .cw .pcc-sheet{padding:20px 18px}
  .cw .pcc-chips-n6{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cw .pcc-composer .cw-actions .cw-btn{width:100%}
  .cw .pcc-meter-n{font-size:36px}
}
@media (max-width:720px){
  /* the tabs as the hub's even phone list: every row the same padding (the hub's odd-last rule included) */
  .cw .pcc-tabs .cw-tab,.cw .pcc-tabs .cw-tab:last-child:nth-child(odd){padding:0 18px;white-space:nowrap}
  .cw .pcc-sec-head .cw-btn{width:100%}
  .cw .pcc-drawer{width:100vw;border-left:0}
  .cw .pcc-drawer-bar{padding:10px 12px 10px 18px}
  .cw .pcc-drawer-body{padding:18px 16px 8px}
  .cw .pcc-drawer-foot{padding:12px 16px 16px;gap:8px}
  .cw .pcc-foot-row{grid-auto-flow:row;grid-auto-columns:auto;grid-template-columns:minmax(0,1fr);gap:8px}
  .cw .pcc-pv-frame{padding:20px 16px 16px}
  .cw .pcc-pv-title{font-size:28px}
  .cw .pcc-staff-dl>div{grid-template-columns:minmax(0,1fr);gap:4px}
  .cw .pcc-goal{padding-left:0}
  .cw .pcc-chips-n4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cw .pcc-chips-n4 .cw-chip:first-child{grid-column:auto}
}
/* Approve selected rows: the tick-box column leads; the same stacking as the plain Approvals rows, one column to the right */
@container pah-chart (max-width:900px){
  .cw .pcc-row.pcc-row-q.pcc-row-sel{grid-template-columns:var(--pcc-pick) var(--pcc-ic) minmax(0,1fr) 176px 120px}
  .cw .pcc-row.pcc-row-sel>.pcc-pick{grid-row:1 / 3}
  .cw .pcc-row.pcc-row-sel>.pcc-c2{grid-column:4}
  .cw .pcc-row.pcc-row-sel>.pcc-c1{grid-column:4}
  .cw .pcc-row.pcc-row-sel>.pcc-row-act{grid-column:5}
}
@container pah-chart (max-width:680px){
  .cw .pcc-bulk{padding:8px 12px 8px 18px}
  .cw .pcc-bulk-acts{margin-left:0;flex:1 1 100%}
  .cw .pcc-row.pcc-row-q.pcc-row-sel{grid-template-columns:var(--pcc-pick) var(--pcc-ic) minmax(0,1fr)}
  .cw .pcc-row.pcc-row-sel>.pcc-pick{grid-row:auto;align-self:start;min-height:var(--pcc-ic)}
  .cw .pcc-row.pcc-row-sel>.pcc-row-main{grid-column:3}
  .cw .pcc-row.pcc-row-sel>.pcc-c1,.cw .pcc-row.pcc-row-sel>.pcc-c2{grid-column:3}
  .cw .pcc-row.pcc-row-sel>.pcc-row-act{grid-column:1 / -1}
}
@media (max-width:720px){
  .cw .pcc-bulk-it{grid-template-columns:32px minmax(0,1fr)}
  .cw .pcc-bulk-st{grid-column:2;min-width:0;padding-top:0}
  .cw .pcc-bulk-roles{grid-template-columns:minmax(0,1fr)}
  .cw .pcc-bulk-date{max-width:none}
}
@media (prefers-reduced-motion:reduce){.cw .pcc-x{transition:none}}
