:root{--navy:#0f2a43;--teal:#0e7c7b;--ink:#1c2733;--muted:#5a6b7a;--line:#dde5ea;--soft:#f4f8f9;--red:#b3261e;--amber:#9a6a00;--green:#146c2e;--panel:#ffffff}
*{box-sizing:border-box}
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;color:var(--ink);line-height:1.55;background:var(--soft);-webkit-font-smoothing:antialiased}
.wrap{max-width:1020px;margin:0 auto;padding:0 20px}
header{background:#fff;border-bottom:1px solid var(--line)}
.bar{display:flex;align-items:center;gap:14px;padding:13px 0;flex-wrap:wrap}
.mark{width:40px;height:40px;border-radius:10px;background:transparent;color:var(--ink);display:flex;align-items:center;justify-content:center;font-weight:700}
.brand{font-weight:700;color:var(--navy);font-size:17px}
.bar .who{margin-left:auto;color:var(--muted);font-size:14px;display:flex;gap:12px;align-items:center;flex-wrap:wrap}
button,.btn{background:var(--brand-d, var(--teal));border:0;color:#fff;padding:9px 16px;border-radius:8px;font-weight:600;cursor:pointer;font-size:14px}
button.ghost{background:#fff;color:var(--brand-d, var(--teal));border:1px solid var(--brand-d, var(--teal))}
.card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:26px;max-width:430px;margin:56px auto}
.card h1{color:var(--navy);font-size:22px;margin:0 0 4px;font-family:Georgia,"Iowan Old Style","Palatino Linotype","Book Antiqua",serif;font-weight:600}
.card p.sub{color:var(--muted);margin:0 0 18px;font-size:14.5px}
label{display:block;font-size:14px;font-weight:600;margin:12px 0 5px}
input{width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:8px;font-size:15px}
.err{color:var(--red);font-size:14px;min-height:20px;margin-top:10px}
main{padding:26px 0 40px}
h1.page{color:var(--navy);font-size:26px;margin:0 0 4px;font-family:Georgia,"Iowan Old Style","Palatino Linotype","Book Antiqua",serif;font-weight:500}
p.sub{color:var(--muted);margin:0 0 16px}
table{width:100%;border-collapse:collapse;background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}
th,td{text-align:left;padding:11px 13px;font-size:14.5px;border-bottom:1px solid var(--line);vertical-align:top}
th{color:var(--navy);background:var(--soft);font-size:13px;text-transform:uppercase;letter-spacing:.4px}
tr:last-child td{border-bottom:0}
.pill{display:inline-block;padding:1px 9px;border-radius:99px;font-size:12.5px;font-weight:600;border:1px solid var(--line)}
.pill.stat{color:#fff;background:var(--red);border-color:var(--red)}
.pill.critical{color:var(--red);border-color:var(--red)}
.pill.urgent{color:var(--amber);border-color:var(--amber)}
.pill.routine{color:var(--muted)}
.note{color:var(--muted);font-size:13.5px;margin-top:14px}
.counts{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:16px;margin-top:16px}
.count{background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px}
.count b{display:block;font-size:28px;color:var(--navy)}
.count span{color:var(--muted);font-size:14px}
@media (max-width:640px){table,thead,tbody,tr,th,td{display:block}thead{display:none}tr{border-bottom:1px solid var(--line);padding:8px 0}td{border:0;padding:4px 13px}}
/* Header controls — drawn line icons with visible text labels, in one
   consistent style on every device (no emoji). */
.hbtn{display:inline-flex;align-items:center;gap:7px;border:0;background:transparent;color:var(--muted);font-size:13.5px;font-weight:600;cursor:pointer;text-decoration:none;line-height:1;padding:8px 9px;border-radius:9px;position:relative}
.hbtn svg{width:19px;height:19px;color:var(--brand,var(--teal));flex:none}
.hbtn:hover{background:color-mix(in srgb,var(--teal) 10%,transparent);color:var(--navy)}
.hbtn.on{color:var(--teal);background:color-mix(in srgb,var(--teal) 15%,transparent)}
:root[data-theme="dark"] .hbtn:hover{background:color-mix(in srgb,var(--teal) 18%,transparent)}
:root[data-theme="dark"] .hbtn.on{background:color-mix(in srgb,var(--teal) 28%,transparent)}
/* The theme trio sits in one segmented pill; the active one is filled. */
.themesw{display:inline-flex;gap:2px;background:var(--soft);border:1px solid var(--line);border-radius:99px;padding:3px}
.themesw .hbtn{padding:6px 8px;border-radius:99px}
.themesw .hbtn svg{width:16px;height:16px}
.themesw .hbtn.on{background:#fff;color:var(--teal);box-shadow:0 1px 4px rgba(10,20,35,.18)}
:root[data-theme="dark"] .themesw .hbtn.on{background:color-mix(in srgb,var(--teal) 35%,transparent);color:#fff;box-shadow:none}
/* Wide pages (worklist, studies, library) and the portal nav row */
.wrap.wide{max-width:1360px}
.pagenav{display:flex;gap:8px;align-items:center;margin:0 0 16px;flex-wrap:wrap}
.pagenav a{padding:8px 15px;border-radius:9px;color:var(--muted);text-decoration:none;font-weight:600;font-size:14.5px;border:1px solid transparent}
.pagenav a:hover{border-color:var(--line)}
.pagenav a.on{background:var(--teal);color:#fff}
:root[data-theme="dark"] .pagenav a.on{background:var(--teal)}
/* Dark theme — the bootstrap script sets data-theme="dark" on <html>. */
:root[data-theme="dark"]{--navy:#cfe2f5;--teal:#35a29d;--ink:#e7eff6;--muted:#9db4c6;--line:#2b3e50;--soft:#0c1624;--amber:#ffca6a;--green:#7bd88f;--panel:#132539}
:root[data-theme="dark"] body{background:#0c1624}
:root[data-theme="dark"] header{background:#101f31}
:root[data-theme="dark"] .card,:root[data-theme="dark"] .count,:root[data-theme="dark"] table{background:#132334}
:root[data-theme="dark"] th{background:#0e1c2c}
:root[data-theme="dark"] button.ghost{background:transparent;color:var(--brand, var(--teal))}
:root[data-theme="dark"] input,:root[data-theme="dark"] select,:root[data-theme="dark"] textarea{background:#0e1c2c;color:var(--ink);border-color:var(--line)}
:root[data-theme="dark"] .ed{background:#0e1c2c!important;color:var(--ink)}
:root[data-theme="dark"] .mic{background:transparent}
:root[data-theme="dark"] .stat{background:#132334}
:root[data-theme="dark"] .mark{background:transparent}
:root[data-theme="dark"] .pill.routine{color:var(--muted)}
:root[data-theme="dark"] .modalbox{background:#132334}
:root[data-theme="dark"] .docbar{background:#101f31}

/* Dark-theme surfaces: several pages carry light card styles of their own
   from before the theme system. In dark mode those surfaces follow the
   theme panel colour instead of staying white. Print sheets (the report
   document) are deliberately not listed: paper is white in both themes. */
:root[data-theme="dark"] .panel,:root[data-theme="dark"] .acct,:root[data-theme="dark"] .libcard,
:root[data-theme="dark"] .doccard,:root[data-theme="dark"] details.guide,:root[data-theme="dark"] .card,
:root[data-theme="dark"] header{background:var(--panel)}
:root[data-theme="dark"] select,:root[data-theme="dark"] textarea,:root[data-theme="dark"] .editor{background:var(--panel);color:var(--ink)}
:root[data-theme="dark"] .chip,:root[data-theme="dark"] .tab,:root[data-theme="dark"] .iconbtn,
:root[data-theme="dark"] .mic,:root[data-theme="dark"] .toolbar button{background:var(--panel);color:var(--ink)}
:root[data-theme="dark"] .notice{background:color-mix(in srgb, var(--green) 12%, var(--panel))}
:root[data-theme="dark"] .banner,:root[data-theme="dark"] .sup{background:color-mix(in srgb, var(--amber) 14%, var(--panel))}
/* Show/Hide in password boxes: the word sits at the box's right edge.
   Wired onto every password box by theme.js (wirePwToggles). */
.pwwrap{position:relative;display:inline-block;width:100%}
.pwwrap>input{width:100%;padding-right:54px}
.pwtoggle{position:absolute;right:8px;top:50%;transform:translateY(-50%);background:none;border:0;color:var(--teal);font-size:13px;font-weight:600;cursor:pointer;padding:2px 4px}
/* List pager: Previous / Page x of y / Next, centred under a list. */
.pager{display:flex;gap:14px;align-items:center;justify-content:center;margin:14px 0 4px;font-size:14px}
.pager button[disabled]{opacity:.45;cursor:default}

/* ============ The Imaging sidebar (shell.js) ============
   The EMR's sidebar, at its own measurements, so the two services
   teach one menu: 240px wide narrowing to a 64px rail, brand block
   with the hospital's badge and name, the service switch under it,
   a tools row, the home screen ungrouped, labelled groups, a foot
   pinned to the bottom (avatar, name, role, Log out) and the theme
   pill under the foot. On narrow screens it is the EMR's drawer
   under a top bar. Tokens are this side's own; the numbers are the
   EMR's. */
body.sb-on{padding-left:240px}
body.sb-rail{padding-left:64px}
.vsb{position:fixed;top:0;left:0;width:240px;height:100vh;height:100dvh;z-index:65;background:var(--panel);border-right:1px solid var(--line);padding:22px 16px;display:flex;flex-direction:column;gap:4px;overflow-y:auto;visibility:hidden}
body.sb-on .vsb{visibility:visible}
body.sb-rail .vsb{width:64px;padding:22px 10px}
.vsb-brand{display:flex;align-items:center;gap:10px;padding:6px 8px 22px;margin-bottom:10px;border-bottom:1px solid var(--line)}
.vsb-badge{width:34px;height:34px;border-radius:9px;background:transparent;border:0;object-fit:contain;padding:0;flex:none}
.vsb-badge-fallback{background:transparent;color:var(--brand,var(--teal));display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;padding:0}
.vsb-name{font-weight:600;font-size:15px;color:var(--navy);display:block;line-height:1.3;font-family:Georgia,"Iowan Old Style","Palatino Linotype","Book Antiqua",serif}
.vsb-cap{font-size:10.5px;color:var(--muted);text-transform:uppercase;letter-spacing:.6px;display:block}
.vsb-close{display:none;margin-left:auto;width:26px;height:26px;border-radius:8px;border:none;background:var(--soft);color:var(--muted);font-size:13px;cursor:pointer;align-items:center;justify-content:center;padding:0}
.vsb-switch{display:flex;align-items:center;gap:6px;padding:7px 9px;border-radius:10px;border:1px solid var(--line);background:var(--soft);color:var(--muted);font-size:12.5px;text-decoration:none;margin-bottom:8px;flex:none}
.vsb-switch:hover{color:var(--ink);border-color:var(--brand,var(--teal))}
.vsb-tools{display:flex;align-items:stretch;gap:6px;margin-bottom:6px}
.vsb-jump{display:flex;align-items:center;gap:6px;flex:1 1 auto;min-width:0;padding:7px 9px;border-radius:10px;border:1px solid var(--line);background:var(--soft);color:var(--muted);font-size:12.5px;cursor:pointer;text-align:left}
.vsb-jump svg{width:16px;height:16px;flex:none}
.vsb-jump:hover{color:var(--ink);border-color:var(--brand,var(--teal))}
.vsb-jump-text{flex:1;white-space:nowrap}
.vsb-jump kbd{font-family:inherit;font-size:10px;padding:2px 4px;border-radius:5px;flex:none;border:1px solid var(--line);background:var(--panel);color:var(--muted)}
.vsb-railtoggle{flex:none;width:28px;border:1px solid var(--line);background:var(--soft);color:var(--muted);border-radius:10px;cursor:pointer;font-size:12px;line-height:1;padding:0}
.vsb-railtoggle:hover{color:var(--ink)}
.vsb-label{font-size:10.5px;text-transform:uppercase;letter-spacing:.7px;color:var(--muted);padding:16px 12px 6px}
.vsb-item{display:flex;align-items:center;gap:11px;padding:9px 12px;border-radius:10px;font-size:13.5px;font-weight:500;color:var(--ink);text-decoration:none}
.vsb-item svg{width:20px;height:20px;flex:none;opacity:.85}
.vsb-item:hover{background:var(--soft)}
.vsb-item.active{background:var(--brand,var(--teal));color:#fff}
.vsb-item.active svg{opacity:1}
.vsb-foot{margin-top:auto;padding:12px;border-top:1px solid var(--line);display:flex;align-items:center;gap:10px}
.vsb-avatar{width:32px;height:32px;border-radius:50%;background:var(--brand,var(--teal));color:#fff;display:flex;align-items:center;justify-content:center;font-size:12.5px;font-weight:700;flex:none}
.vsb-avatar img{width:100%;height:100%;border-radius:50%;object-fit:cover;display:block}
.vsb-who{min-width:0}
.vsb-who strong{font-size:12.5px;display:block;color:var(--ink);line-height:1.35}
.vsb-who span{font-size:11px;color:var(--muted);display:block}
.vsb-logout{border:none;background:none;color:var(--muted);font-size:11px;cursor:pointer;margin-left:auto;min-height:24px;padding:4px 8px;border-radius:6px;white-space:nowrap}
.vsb-logout:hover{background:var(--soft);color:var(--ink)}
.vsb-theme{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px 2px}
.vsb-theme .st-label{font-size:11px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.6px}
/* The rail: the label goes, the icon and its hover name stay. */
body.sb-rail .vsb-name-wrap,body.sb-rail .vsb-label,body.sb-rail .vsb-item-text,body.sb-rail .vsb-jump-text,body.sb-rail .vsb-jump kbd,body.sb-rail .vsb-switch-text,body.sb-rail .vsb-who,body.sb-rail .vsb-theme,body.sb-rail .vsb-switcher{display:none}
body.sb-rail .vsb-item{justify-content:center;padding:9px 0;gap:0}
body.sb-rail .vsb-brand{justify-content:center;padding-bottom:14px}
body.sb-rail .vsb-tools{flex-direction:column;align-items:center}
body.sb-rail .vsb-jump{justify-content:center;padding:7px 0;width:100%}
body.sb-rail .vsb-switch{justify-content:center;padding:7px 0}
body.sb-rail .vsb-railtoggle{width:28px;height:26px}
body.sb-rail .vsb-foot{flex-direction:column;gap:6px;padding:12px 4px}
body.sb-rail .vsb-logout{margin-left:0;font-size:10px}
/* The top bar and drawer for narrow screens. */
.vsb-topbar{display:none}
.vsb-jumpoverlay{position:fixed;inset:0;background:rgba(15,23,42,.45);z-index:90;display:flex;align-items:flex-start;justify-content:center;padding:12vh 16px 16px}
/* The house confirmation for the shell pages (UX audit Finding 9, 20
   November 2026), rendered by theme.js's VNConfirm. The browser's own
   confirm box cannot carry the hospital's colours or the dark theme,
   and reads as browser chrome at the most consequential clicks in
   the product, so it is not used for them any more. */
.vn-confirm-overlay{position:fixed;inset:0;background:rgba(15,23,42,.45);z-index:120;display:flex;align-items:center;justify-content:center;padding:16px}
.vn-confirm-box{background:#fff;border-radius:14px;padding:22px;width:92%;max-width:440px;box-shadow:0 18px 50px rgba(15,23,42,.25)}
:root[data-theme="dark"] .vn-confirm-box{background:#132334}
.vn-confirm-box h3{margin:0 0 8px;font-size:17px;color:var(--ink)}
:root[data-theme="dark"] .vn-confirm-box h3{color:#e8eef4}
.vn-confirm-box p{margin:0 0 18px;font-size:14px;line-height:1.55;color:var(--muted);white-space:pre-line}
:root[data-theme="dark"] .vn-confirm-box p{color:#a9bccd}
.vn-confirm-actions{display:flex;gap:8px;justify-content:flex-end}
.vn-confirm-actions .danger{background:var(--red)}
.vsb-jumpbox{background:var(--panel);border:1px solid var(--line);border-radius:14px;width:100%;max-width:460px;box-shadow:0 20px 50px rgba(15,23,42,.28);overflow:hidden}
.vsb-jumpfield{display:flex;align-items:center;gap:9px;padding:12px 14px;border-bottom:1px solid var(--line);color:var(--muted)}
.vsb-jumpfield svg{width:18px;height:18px;flex:none}
.vsb-jumpfield input{flex:1;border:none;background:none;font-size:14.5px;color:var(--ink);outline:none;width:auto;padding:0}
.vsb-jumplist{list-style:none;margin:0;padding:6px;max-height:52vh;overflow-y:auto}
.vsb-jumpitem{display:flex;align-items:center;gap:11px;width:100%;padding:9px 10px;border-radius:9px;border:none;background:none;color:var(--ink);font-size:13.5px;cursor:pointer;text-align:left}
.vsb-jumpitem svg{width:19px;height:19px;flex:none}
.vsb-jumptext{display:flex;flex-direction:column;gap:1px;min-width:0}
.vsb-jumpabout{font-size:12px;color:var(--muted);white-space:normal}
.vsb-jumpitem.active .vsb-jumpabout{color:rgba(255,255,255,.85)}
.vsb-jumpitem.active{background:var(--brand,var(--teal));color:#fff}
.vsb-jumpempty{padding:16px 14px;font-size:12.5px;color:var(--muted)}
@media (max-width:900px){
  body.sb-on,body.sb-rail{padding-left:0;padding-top:54px}
  .vsb{width:260px;transform:translateX(-105%);transition:transform .22s ease;z-index:80;box-shadow:0 20px 50px rgba(15,23,42,.28)}
  body.sb-rail .vsb{width:260px;padding:22px 16px}
  body.sb-rail .vsb-name-wrap,body.sb-rail .vsb-label,body.sb-rail .vsb-item-text,body.sb-rail .vsb-jump-text,body.sb-rail .vsb-jump kbd,body.sb-rail .vsb-switch-text,body.sb-rail .vsb-who{display:block}
  body.sb-rail .vsb-theme{display:flex}
  body.sb-rail .vsb-switcher{display:flex}
  body.sb-rail .vsb-item{justify-content:flex-start;padding:9px 12px;gap:11px}
  body.sb-rail .vsb-brand{justify-content:flex-start;padding-bottom:22px}
  body.sb-rail .vsb-tools{flex-direction:row;align-items:stretch}
  body.sb-rail .vsb-foot{flex-direction:row;gap:10px;padding:12px}
  body.sb-rail .vsb-logout{margin-left:auto;font-size:11px}
  .vsb.open{transform:none}
  .vsb-close{display:flex}
  .vsb-topbar{display:none;position:fixed;top:0;left:0;right:0;height:54px;z-index:70;background:var(--panel);border-bottom:1px solid var(--line);align-items:center;gap:10px;padding:0 14px}
  body.sb-on .vsb-topbar{display:flex}
  .vsb-menubtn{width:40px;height:40px;border-radius:10px;border:1px solid var(--line);background:var(--panel);color:var(--ink);font-size:18px;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0}
  .vsb-title{font-weight:600;font-size:15px;color:var(--navy);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-family:Georgia,"Iowan Old Style","Palatino Linotype","Book Antiqua",serif}
  .vsb-scrim{position:fixed;inset:0;background:rgba(10,10,30,.45);z-index:75}
}

/* The tester user-switcher, under the theme row (the EMR's seat
   for its own switchers): a dashed rule, the state said out loud,
   a select to hop, Switch Back to go home. */
.vsb-switcher{border-top:1px dashed var(--line);margin-top:6px;padding:10px 12px;display:flex;flex-direction:column;align-items:stretch;gap:6px}
.vsb-sw-label{display:block;font-size:10.5px;color:var(--muted);text-transform:uppercase;letter-spacing:.4px}
.vsb-sw-select{width:100%;padding:3px 6px;border:1px solid var(--line);border-radius:7px;background:var(--soft);color:var(--ink);font-size:11.5px}

/* The preview banner and the Charting As PIN step (Batch 49): the
   banner uses the EMR banner's words; the PIN card borrows the
   shell's own palette so it sits naturally over any imaging page. */
.vsb-preview-note{font-size:11.5px;line-height:1.45;color:#8f6809;background:#fbf1da;border:1px solid #e8d48f;border-radius:8px;padding:7px 9px}
:root[data-theme="dark"] .vsb-preview-note{color:#e8b93a;background:#3a2e0e;border-color:#6b5510}
.vsb-more-toggle{display:flex;align-items:center;gap:6px;background:none;border:0;padding:0;font:inherit;color:inherit;text-transform:inherit;letter-spacing:inherit;cursor:pointer}
.vsb-more-caret{font-size:13px;line-height:1;transition:transform .15s}
.vsb-more-toggle[aria-expanded="true"] .vsb-more-caret{transform:rotate(90deg)}
.vsb-item-badge{margin-left:auto;font-size:9.5px;font-weight:700;letter-spacing:.4px;color:var(--muted);border:1px solid var(--line);border-radius:5px;padding:1px 5px;flex:none}
.vsb-sec-label{padding-top:12px}
.vsb-preview-banner{margin:2px 10px 10px}
body.sb-rail .vsb-preview-banner{display:none}
.vsb-end-row{border-top:1px solid var(--line);margin-top:4px;padding-top:8px}
.vsb-switch-person{width:100%;text-align:left;font-size:12px;color:var(--ink);border:1px solid var(--line);border-radius:7px;padding:6px 8px;background:var(--soft);cursor:pointer}
.vsb-switch-person span{display:block;font-size:11px;color:var(--muted);margin-top:2px}
.vsb-pin-scrim{position:fixed;inset:0;background:rgba(10,10,30,.45);z-index:200;display:flex;align-items:center;justify-content:center}
.vsb-pin-card{background:var(--panel);color:var(--ink);border-radius:12px;padding:18px;width:min(380px,92vw);box-shadow:0 18px 50px rgba(0,0,0,.25);display:flex;flex-direction:column;gap:8px}
.vsb-pin-title{margin:0;font-size:15px;color:var(--navy)}
.vsb-pin-note{margin:0;font-size:12.5px;color:var(--muted);line-height:1.45}
.vsb-pin-error{font-size:12.5px;color:#b3261e;background:#fdecea;border:1px solid #f5c6c2;border-radius:8px;padding:7px 9px;line-height:1.4}
.vsb-pin-input{width:100%;padding:7px 9px;border:1px solid var(--line);border-radius:8px;background:var(--soft);color:var(--ink);font-size:14px;letter-spacing:3px}
.vsb-pin-row{display:flex;gap:8px;margin-top:4px}
.vsb-pin-btn{padding:7px 12px;border:1px solid var(--line);border-radius:8px;background:var(--soft);color:var(--ink);font-size:12.5px;cursor:pointer}
.vsb-pin-primary{background:var(--brand,var(--teal));border-color:var(--brand,var(--teal));color:#fff}

/* Row action icons (the Work List's uniform buttons, shared by the
   Studies, Library and Signed Reports pages): one 36x32 box, one
   border, one navy glyph at 18px, the action's name on hover.
   Colour appears only as state - amber when saved, red for the
   one destructive action. */
.icobtn{width:36px;height:32px;padding:0;display:inline-flex;align-items:center;justify-content:center;background:#fff;color:var(--navy);border:1px solid var(--line);border-radius:8px;cursor:pointer;vertical-align:middle;text-decoration:none;flex:none}
.icobtn svg{width:18px;height:18px}
.icobtn:hover{border-color:var(--muted)}
.icobtn.on{color:var(--amber);border-color:var(--amber)}
.icobtn.on svg{fill:currentColor}
.icobtn.danger{color:var(--red)}
.icobtn.danger:hover{border-color:var(--red)}
.icobtn:disabled{opacity:.45;cursor:not-allowed}
:root[data-theme="dark"] .icobtn{background:transparent}
.iconstack{display:flex;flex-direction:column;gap:6px}
.iconrow{display:flex;gap:6px}

/* The Velnova Assistant (Batch 118): the floating help chat. */
.vhc-bubble{position:fixed;right:22px;bottom:22px;z-index:1200;display:flex;align-items:center;gap:8px;background:#3b4bc0;color:#fff;border:0;border-radius:999px;padding:12px 18px;font-size:14px;font-weight:600;cursor:pointer;box-shadow:0 8px 22px rgba(28,43,90,.28);font-family:inherit}
.vhc-bubble svg{width:17px;height:17px;flex:none}
.vhc-panel{position:fixed;right:22px;bottom:78px;z-index:1201;width:392px;max-width:calc(100vw - 32px);max-height:min(640px,calc(100vh - 110px));background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:14px;box-shadow:0 18px 44px rgba(28,43,90,.22);display:flex;flex-direction:column;overflow:hidden}
.vhc-head{background:var(--navy);color:#fff;padding:12px 14px;display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
:root[data-theme="dark"] .vhc-head{background:#0c1a2c}
.vhc-head b{font-size:14.5px}
.vhc-sub{font-size:12px;color:#b9c9da;margin-top:2px;line-height:1.35}
.vhc-x{background:transparent;border:0;color:#fff;font-size:19px;line-height:1;cursor:pointer;padding:0 2px}
.vhc-chips{display:flex;flex-wrap:wrap;gap:6px;padding:10px 12px 2px}
.vhc-chip{border:1px solid var(--line);background:var(--soft);color:var(--ink);border-radius:999px;padding:5px 11px;font-size:12.5px;cursor:pointer;font-family:inherit;text-align:left}
.vhc-msgs{padding:12px;display:flex;flex-direction:column;gap:9px;overflow-y:auto}
.vhc-msg{max-width:88%;padding:9px 12px;border-radius:12px;font-size:13.8px;line-height:1.45;white-space:pre-wrap;overflow-wrap:break-word}
.vhc-me{align-self:flex-end;background:#3b4bc0;color:#fff;border-bottom-right-radius:4px}
.vhc-ai{align-self:flex-start;background:var(--soft);border:1px solid var(--line);border-bottom-left-radius:4px}
.vhc-composer{display:flex;gap:8px;padding:10px 12px;border-top:1px solid var(--line)}
.vhc-composer input{flex:1;border:1px solid var(--line);border-radius:9px;padding:9px 11px;font-size:13.8px;font-family:inherit;background:var(--panel);color:var(--ink);min-width:0}
.vhc-composer button{background:#3b4bc0;color:#fff;border:0;border-radius:9px;padding:9px 15px;font-size:13.8px;font-weight:600;cursor:pointer}
.vhc-foot{padding:0 12px 10px;font-size:11.8px;color:var(--muted)}
@media (max-width:640px){.vhc-panel{right:12px;bottom:74px}.vhc-bubble{right:12px;bottom:14px}}
