#health-crm-demo {
  --hc-bg: light-dark(#f5f5f7, #101010);
  --hc-card: light-dark(#ffffff, #1c1c1e);
  --hc-text: light-dark(#1d1d1f, #f5f5f7);
  --hc-muted: light-dark(#6e6e73, #a1a1a6);
  --hc-border: light-dark(#e5e5e7, #38383a);
  --hc-brand: light-dark(#1d1d1f, #f5f5f7);
  --hc-soft: light-dark(#ededf0, #2c2c2e);
  --hc-on-brand: light-dark(#ffffff, #1d1d1f);
  --hc-warning: var(--hc-text);
  --hc-warning-bg: var(--hc-soft);
  --hc-red: var(--hc-text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "PingFang SC", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--hc-text);
  background: var(--hc-bg);
  max-width: 640px;
  margin: 0 auto;
  border-radius: 26px;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
#health-crm-demo * { box-sizing: border-box; }
#health-crm-demo button, #health-crm-demo input, #health-crm-demo select, #health-crm-demo textarea { font: inherit; }
#health-crm-demo button { border: 0; background: none; color: inherit; min-height: 46px; padding: 12px 18px; border-radius: 13px; font-weight: 500; }
#health-crm-demo button:disabled { opacity: .35; }
#health-crm-demo button:focus-visible, #health-crm-demo input:focus-visible, #health-crm-demo select:focus-visible, #health-crm-demo textarea:focus-visible { outline: 2px solid var(--hc-brand); outline-offset: 3px; }
#health-crm-demo .hc-chrome { padding: 20px 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--hc-border); }
#health-crm-demo .hc-chrome > div:first-child { font-weight: 500; letter-spacing: -.4px; }
#health-crm-demo .hc-stage { color: var(--hc-muted); font-size: 14px; font-weight: 400; }
#health-crm-demo .hc-content { padding: 24px 28px 32px; }
#health-crm-demo h1 { font-size: 30px; line-height: 1.25; font-weight: 500; letter-spacing: -1px; margin: 8px 0 12px; }
#health-crm-demo h2 { font-size: 20px; font-weight: 500; margin: 32px 0 16px; letter-spacing: -.4px; }
#health-crm-demo h3 { font-size: 17px; font-weight: 500; margin: 22px 0 12px; }
#health-crm-demo p { margin: 8px 0 16px; }
#health-crm-demo .hc-sub { color: var(--hc-muted); font-size: 14px; }
#health-crm-demo .hc-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
#health-crm-demo .hc-card { background: var(--hc-card); border-radius: 18px; padding: 22px; margin-bottom: 14px; }
#health-crm-demo .hc-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 26px 0 20px; }
#health-crm-demo .hc-metric { background: var(--hc-card); border-radius: 18px; padding: 24px; }
#health-crm-demo .hc-num { font-size: 40px; line-height: 1.2; font-weight: 500; letter-spacing: -1.5px; font-variant-numeric: tabular-nums; }
#health-crm-demo .hc-metric .hc-sub { margin-top: 8px; }
#health-crm-demo .hc-pill { display: inline-block; background: var(--hc-soft); color: var(--hc-text); padding: 5px 10px; border-radius: 8px; font-size: 13px; white-space: nowrap; }
#health-crm-demo .hc-pill.warn { font-weight: 500; }
#health-crm-demo .hc-primary { background: var(--hc-brand); color: var(--hc-on-brand); }
#health-crm-demo .hc-secondary { background: var(--hc-card); color: var(--hc-text); border: 1px solid var(--hc-border); }
#health-crm-demo .hc-btn-wide { width: 100%; margin-top: 14px; }
#health-crm-demo .hc-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
#health-crm-demo .hc-actions button { flex: 1; }
#health-crm-demo .hc-link { color: var(--hc-text); }
#health-crm-demo .hc-line { border-bottom: 1px solid var(--hc-border); padding: 14px 0; }
#health-crm-demo .hc-line:last-child { border: 0; }
#health-crm-demo .hc-sep { height: 1px; background: var(--hc-border); margin: 18px 0; }
#health-crm-demo .hc-name { font-size: 18px; font-weight: 500; letter-spacing: -.4px; }
#health-crm-demo input, #health-crm-demo select, #health-crm-demo textarea { width: 100%; min-height: 48px; background: var(--hc-card); color: var(--hc-text); border: 1px solid var(--hc-border); border-radius: 12px; padding: 12px 14px; min-width: 0; font-size: 16px; }
#health-crm-demo input::placeholder, #health-crm-demo textarea::placeholder { color: var(--hc-muted); }
#health-crm-demo textarea { min-height: 112px; resize: vertical; }
#health-crm-demo label { display: block; font-size: 14px; color: var(--hc-muted); margin-bottom: 8px; }
#health-crm-demo .hc-field { margin: 18px 0; }
#health-crm-demo .hc-formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
#health-crm-demo .hc-tabs { display: flex; background: var(--hc-card); border-top: 1px solid var(--hc-border); padding: 12px 18px; gap: 10px; }
#health-crm-demo .hc-tabs button { flex: 1; font-size: 14px; color: var(--hc-muted); display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px; }
#health-crm-demo .hc-tabs button[aria-pressed=true] { background: var(--hc-soft); color: var(--hc-text); }
#health-crm-demo .hc-icon { width: 20px; height: 20px; }
#health-crm-demo .hc-topback { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
#health-crm-demo .hc-topback button { padding-left: 0; }
#health-crm-demo .hc-topback .hc-sub { display: none; }
#health-crm-demo .hc-note { color: var(--hc-muted); font-size: 14px; padding: 14px 0; }
#health-crm-demo .hc-error { color: var(--hc-text); font-size: 14px; margin-top: 12px; }
#health-crm-demo .hc-error:not(:empty) { border-left: 2px solid var(--hc-text); padding-left: 12px; }
#health-crm-demo .hc-empty { padding: 28px 4px; color: var(--hc-muted); text-align: center; }
#health-crm-demo .hc-chart { display: block; width: 100%; height: 190px; color: var(--hc-text); }
#health-crm-demo .hc-chart text { font-size: 12px; fill: var(--hc-muted); font-family: inherit; }
#health-crm-demo .hc-chart .hc-gridline { stroke: var(--hc-border); stroke-width: 1; }
#health-crm-demo .hc-chart .hc-series { stroke: var(--hc-brand); stroke-width: 2.2; fill: none; stroke-linejoin: round; stroke-linecap: round; }
#health-crm-demo .hc-report-title { text-align: center; font-size: 24px; font-weight: 500; letter-spacing: -.6px; margin: 16px 0; }
#health-crm-demo table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
#health-crm-demo td, #health-crm-demo th { text-align: left; padding: 12px 6px; border-bottom: 1px solid var(--hc-border); font-weight: 400; }
#health-crm-demo .hc-report-section { padding: 14px 0 10px; font-size: 18px; font-weight: 500; color: var(--hc-text); border-bottom: 1px solid var(--hc-border); margin: 26px 0 14px; }
#health-crm-demo details summary { min-height: 48px; display: flex; align-items: center; color: var(--hc-text); font-size: 14px; }
#health-crm-demo .hc-toast { padding: 14px 16px; color: var(--hc-text); background: var(--hc-card); border-radius: 13px; margin-bottom: 18px; font-size: 14px; }
#health-crm-demo .hc-pre { white-space: pre-wrap; word-break: break-word; }
@media (max-width: 480px) {
  #health-crm-demo { border-radius: 20px; }
  #health-crm-demo .hc-chrome { padding: 18px 20px; }
  #health-crm-demo .hc-content { padding: 22px 20px 28px; }
  #health-crm-demo .hc-card { padding: 18px; }
  #health-crm-demo .hc-metric { padding: 20px; }
  #health-crm-demo .hc-name { font-size: 17px; }
}
@media (max-width: 360px) {
  #health-crm-demo .hc-content { padding: 20px 16px; }
  #health-crm-demo .hc-formgrid { grid-template-columns: 1fr; }
  #health-crm-demo .hc-actions { gap: 8px; }
  #health-crm-demo .hc-actions button { padding: 12px 10px; }
}

/* Responsive web application shell */
:root { color-scheme: light; background: #f5f5f7; }
body { margin: 0; }
#health-crm-demo { max-width: none; min-height: 100dvh; margin: 0; border-radius: 0; display: grid; grid-template-columns: 228px minmax(0,1fr); overflow: visible; }
#health-crm-demo button { cursor: pointer; transition: background .15s, opacity .15s; }
#health-crm-demo button:disabled { cursor: default; }
#health-crm-demo .hc-link:hover { background: var(--hc-soft); }
#health-crm-demo .hc-primary:hover { opacity: .85; }
#health-crm-demo .hc-sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; background: var(--hc-card); border-right: 1px solid var(--hc-border); }
#health-crm-demo .hc-chrome { border: 0; padding: 36px 24px 30px; }
#health-crm-demo .hc-brand { display: flex; align-items: center; gap: 10px; font-size: 22px; }
#health-crm-demo .hc-brand svg { width: 32px; height: 32px; }
#health-crm-demo .hc-stage { font-size: 12px; border: 1px solid var(--hc-border); padding: 2px 7px; border-radius: 5px; }
#health-crm-demo .hc-tabs { flex-direction: column; border: 0; padding: 12px 16px; gap: 7px; }
#health-crm-demo .hc-tabs button { flex: none; flex-direction: row; justify-content: flex-start; gap: 14px; padding: 14px 18px; font-size: 15px; border-radius: 10px; }
#health-crm-demo .hc-tabs button[aria-pressed=true] { background: var(--hc-brand); color: var(--hc-on-brand); }
#health-crm-demo .hc-icon { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
#health-crm-demo .hc-account { display: flex; align-items: center; gap: 12px; font-size: 14px; margin: auto 24px 26px; padding-top: 20px; border-top: 1px solid var(--hc-border); }
#health-crm-demo .hc-avatar { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 38px; height: 38px; background: var(--hc-soft); border-radius: 50%; font-size: 14px; font-weight: 500; }
#health-crm-demo .hc-content { width: 100%; max-width: 1450px; min-width: 0; margin: 0 auto; padding: 46px clamp(28px,4vw,64px) 60px; }
#health-crm-demo h1 { font-size: 30px; margin: 0; }
#health-crm-demo h2 { font-size: 19px; margin: 0 0 18px; }
#health-crm-demo h3 { margin-top: 0; }
#health-crm-demo .hc-pagehead { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 32px; min-height: 56px; }
#health-crm-demo .hc-pagehead .hc-sub { margin: 9px 0 0; }
#health-crm-demo .hc-pagehead .hc-actions { margin: 0; }
#health-crm-demo .hc-pagehead .hc-actions button { flex: none; white-space: nowrap; }
#health-crm-demo .hc-count { color: var(--hc-muted); font-size: 16px; font-weight: 400; letter-spacing: 0; padding-left: 8px; }
#health-crm-demo .hc-metrics { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; margin: 0 0 36px; }
#health-crm-demo .hc-metric { padding: 24px 26px; border: 1px solid var(--hc-border); border-radius: 16px; }
#health-crm-demo .hc-metric .hc-sub { margin: 0 0 18px; }
#health-crm-demo .hc-num { font-size: 38px; }
#health-crm-demo .hc-dashboard-grid { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(300px,1fr); gap: 24px; align-items: start; }
#health-crm-demo .hc-dashboard-grid > *, #health-crm-demo .hc-detail-grid > * { min-width: 0; }
#health-crm-demo .hc-sectionhead { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
#health-crm-demo .hc-sectionhead h2 { margin: 0; }
#health-crm-demo .hc-panel, #health-crm-demo .hc-card { background: var(--hc-card); border: 1px solid var(--hc-border); border-radius: 16px; }
#health-crm-demo .hc-card { padding: 26px; margin-bottom: 0; }
#health-crm-demo .hc-name { font-size: 16px; letter-spacing: -.2px; }
#health-crm-demo .hc-task-row { display: grid; grid-template-columns: minmax(130px,1fr) auto auto; gap: 14px; padding: 22px 24px; align-items: center; border-bottom: 1px solid var(--hc-border); }
#health-crm-demo .hc-task-row:last-child { border: 0; }
#health-crm-demo .hc-task-main > div { margin-top: 7px; font-size: 14px; color: var(--hc-muted); }
#health-crm-demo .hc-task-date { display: none; }
#health-crm-demo .hc-task-row button { padding: 10px; }
#health-crm-demo .hc-recent-client { display: flex; align-items: center; gap: 12px; padding: 22px; border-bottom: 1px solid var(--hc-border); }
#health-crm-demo .hc-recent-client:last-child { border: 0; }
#health-crm-demo .hc-recent-client button { padding: 10px; white-space: nowrap; }
#health-crm-demo .hc-grow { flex: 1; min-width: 0; }
#health-crm-demo .hc-toolbar { margin-bottom: 24px; }
#health-crm-demo .hc-toolbar input { max-width: 340px; }
#health-crm-demo .hc-client-table { overflow: hidden; }
#health-crm-demo .hc-client-head, #health-crm-demo .hc-client-row { display: grid; grid-template-columns: minmax(170px,1.4fr) minmax(150px,1.25fr) 94px 100px 110px 110px; gap: 20px; padding: 20px 24px; align-items: center; }
#health-crm-demo .hc-client-head { font-size: 14px; color: var(--hc-muted); border-bottom: 1px solid var(--hc-border); padding-top: 18px; padding-bottom: 18px; }
#health-crm-demo .hc-client-row { min-height: 108px; border-bottom: 1px solid var(--hc-border); font-size: 14px; }
#health-crm-demo .hc-client-row:last-child { border: 0; }
#health-crm-demo .hc-client-identity { display: flex; align-items: center; gap: 12px; }
#health-crm-demo .hc-client-row button { white-space: nowrap; padding: 10px 4px; font-size: 14px; }
#health-crm-demo .hc-client-weight { font-variant-numeric: tabular-nums; }
#health-crm-demo .hc-mobile-label { display: none; }
#health-crm-demo .hc-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#health-crm-demo .hc-detail-grid { display: grid; grid-template-columns: 280px minmax(0,1fr); gap: 24px; margin-bottom: 32px; }
#health-crm-demo .hc-profile .hc-line { padding: 12px 0; }
#health-crm-demo .hc-profile .hc-line > div:last-child { margin-top: 4px; font-size: 15px; }
#health-crm-demo .hc-trend .hc-chart { height: 310px; margin-top: 24px; }
#health-crm-demo .hc-line .hc-row { margin-top: 8px; }
#health-crm-demo .hc-dashboard-grid > section > h2 { margin: 0 0 20px; }
#health-crm-demo .hc-topback { margin-top: -18px; margin-bottom: 18px; }
#health-crm-demo .hc-topback button { color: var(--hc-muted); font-size: 14px; min-height: 36px; }
#health-crm-demo[data-view=new-client] .hc-content, #health-crm-demo[data-view=record] .hc-content, #health-crm-demo[data-view=task] .hc-content { max-width: 1000px; }
#health-crm-demo form { background: var(--hc-card); border: 1px solid var(--hc-border); border-radius: 16px; padding: 20px 28px 28px; margin-top: 28px; }
#health-crm-demo form .hc-formgrid { gap: 0 24px; }
#health-crm-demo form .hc-btn-wide { width: auto; min-width: 160px; }
#health-crm-demo form h2 { margin-top: 30px; }
#health-crm-demo .hc-report-settings { margin: 24px 0; display: grid; grid-template-columns: minmax(190px,1.2fr) minmax(150px,1fr) minmax(150px,1fr) auto; align-items: end; gap: 18px; padding: 22px 24px; }
#health-crm-demo .hc-report-settings .hc-field { margin: 0; }
#health-crm-demo .hc-report-settings button { white-space: nowrap; height: 48px; }
#health-crm-demo .hc-report-settings .hc-error:empty { display: none; }
#health-crm-demo .hc-report-settings .hc-error { grid-column: 1/-1; }
#health-crm-demo .hc-report-paper { padding: 32px 40px; margin: 24px 0; }
#health-crm-demo .hc-report-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
#health-crm-demo .hc-report-charts, #health-crm-demo .hc-narratives { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
#health-crm-demo .hc-chart { height: auto; aspect-ratio: 2.5; }
#health-crm-demo .hc-chart text { font-size: 13px; }
#health-crm-demo td, #health-crm-demo th { padding: 14px 12px; }
#health-crm-demo .hc-report-paper .hc-field { margin: 12px 0; }
#health-crm-demo .hc-report-paper textarea { min-height: 130px; }
#health-crm-demo[data-view=report] > .hc-content > .hc-actions { justify-content: flex-end; }
#health-crm-demo[data-view=report] > .hc-content > .hc-actions button { flex: none; min-width: 160px; }
@media (min-width: 1500px) {
 #health-crm-demo .hc-task-row { grid-template-columns: minmax(160px,1fr) auto auto auto; }
 #health-crm-demo .hc-task-date { display: block; }
}
@media (max-width: 1250px) and (min-width: 801px) {
 #health-crm-demo { grid-template-columns: 200px minmax(0,1fr); }
 #health-crm-demo .hc-content { padding: 36px 28px 48px; }
 #health-crm-demo .hc-client-head, #health-crm-demo .hc-client-row { grid-template-columns: minmax(145px,1.4fr) minmax(120px,1fr) 84px 90px 92px; gap: 12px; padding-left: 18px; padding-right: 18px; }
 #health-crm-demo .hc-client-manager, #health-crm-demo .hc-client-head > :nth-child(5) { display: none; }
 #health-crm-demo .hc-dashboard-grid { grid-template-columns: 1fr; }
 #health-crm-demo .hc-report-settings { grid-template-columns: 1fr 1fr; }
 #health-crm-demo .hc-report-settings button { align-self: end; }
 #health-crm-demo .hc-detail-grid { grid-template-columns: 240px minmax(0,1fr); }
 #health-crm-demo .hc-report-paper { padding: 26px; }
}
@media (max-width: 800px) {
 #health-crm-demo { display: block; min-height: 100dvh; }
 #health-crm-demo .hc-sidebar { display: contents; }
 #health-crm-demo .hc-chrome { padding: 18px 22px; background: var(--hc-card); border-bottom: 1px solid var(--hc-border); }
 #health-crm-demo .hc-brand { font-size: 20px; }
 #health-crm-demo .hc-brand svg { width: 28px; height: 28px; }
 #health-crm-demo .hc-tabs { position: fixed; z-index: 10; bottom: 0; left: 0; right: 0; flex-direction: row; border-top: 1px solid var(--hc-border); padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); gap: 8px; }
 #health-crm-demo .hc-tabs button { flex: 1; flex-direction: column; justify-content: center; gap: 4px; padding: 9px 6px; font-size: 12px; border-radius: 10px; }
 #health-crm-demo .hc-tabs button[aria-pressed=true] { color: var(--hc-text); background: var(--hc-soft); }
 #health-crm-demo .hc-account { display: none; }
 #health-crm-demo .hc-content { padding: 28px 22px 112px; }
 #health-crm-demo h1 { font-size: 27px; }
 #health-crm-demo .hc-pagehead { gap: 16px; margin-bottom: 26px; }
 #health-crm-demo .hc-pagehead > button { padding: 10px 14px; font-size: 14px; }
 #health-crm-demo .hc-metrics { grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 28px; }
 #health-crm-demo .hc-metric { padding: 20px; }
 #health-crm-demo .hc-metric .hc-sub { margin-bottom: 12px; }
 #health-crm-demo .hc-num { font-size: 34px; }
 #health-crm-demo .hc-dashboard-grid, #health-crm-demo .hc-detail-grid { grid-template-columns: 1fr; gap: 26px; }
 #health-crm-demo .hc-dashboard-grid > section > h2 { margin-bottom: 16px; }
 #health-crm-demo .hc-card { padding: 20px; }
 #health-crm-demo .hc-sectionhead { margin-bottom: 12px; }
 #health-crm-demo .hc-task-row { padding: 18px; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
 #health-crm-demo .hc-task-main { grid-row: span 2; }
 #health-crm-demo .hc-task-row > .hc-pill { justify-self: end; }
 #health-crm-demo .hc-task-row button { min-height: 34px; padding: 5px 0; }
 #health-crm-demo .hc-recent-client { padding: 18px; }
 #health-crm-demo .hc-toolbar input { max-width: none; }
 #health-crm-demo .hc-client-table { background: none; border: 0; overflow: visible; }
 #health-crm-demo .hc-client-head { display: none; }
 #health-crm-demo .hc-client-row { background: var(--hc-card); border: 1px solid var(--hc-border); border-radius: 16px; padding: 20px; margin-bottom: 14px; grid-template-columns: minmax(0,1fr) auto; gap: 16px 12px; }
 #health-crm-demo .hc-client-row > :nth-child(3) { grid-column: 2; grid-row: 1; }
 #health-crm-demo .hc-client-package { grid-column: 1/-1; color: var(--hc-muted); }
 #health-crm-demo .hc-client-weight { grid-column: 1; }
 #health-crm-demo .hc-mobile-label { display: block; color: var(--hc-muted); font-size: 13px; margin-bottom: 4px; }
 #health-crm-demo .hc-client-manager { display: none; }
 #health-crm-demo .hc-client-row > :last-child { grid-column: 2; }
 #health-crm-demo[data-view=client] .hc-pagehead { display: block; }
 #health-crm-demo .hc-pagehead .hc-actions { margin-top: 20px; gap: 8px; }
 #health-crm-demo .hc-pagehead .hc-actions button { flex: 1; padding: 10px 8px; font-size: 14px; }
 #health-crm-demo .hc-profile .hc-line { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
 #health-crm-demo .hc-profile .hc-line > div:last-child { margin: 0; text-align: right; }
 #health-crm-demo .hc-trend .hc-chart { height: auto; margin-top: 12px; }
 #health-crm-demo .hc-topback { margin-top: -10px; margin-bottom: 10px; }
 #health-crm-demo form { padding: 10px 20px 24px; margin-top: 24px; }
 #health-crm-demo form .hc-formgrid { gap: 0 14px; }
 #health-crm-demo form .hc-btn-wide { width: 100%; }
 #health-crm-demo form h2 { margin-top: 24px; }
 #health-crm-demo .hc-report-settings { grid-template-columns: 1fr 1fr; gap: 18px 12px; padding: 20px; }
 #health-crm-demo .hc-report-settings > .hc-field:first-child { grid-column: 1/-1; }
 #health-crm-demo .hc-report-settings button { grid-column: 1/-1; }
 #health-crm-demo .hc-report-paper { padding: 22px 18px; }
 #health-crm-demo .hc-report-meta, #health-crm-demo .hc-report-charts, #health-crm-demo .hc-narratives { grid-template-columns: 1fr; gap: 0; }
 #health-crm-demo .hc-report-title { font-size: 23px; }
 #health-crm-demo .hc-report-section { margin-top: 22px; }
 #health-crm-demo td, #health-crm-demo th { padding: 12px 5px; }
 #health-crm-demo .hc-report-paper .hc-row { gap: 10px; font-size: 14px; }
 #health-crm-demo .hc-report-charts { gap: 18px; }
 #health-crm-demo .hc-report-charts .hc-chart { aspect-ratio: 1.9; }
 #health-crm-demo[data-view=report] > .hc-content > .hc-actions button { flex: 1; min-width: 0; }
}
@media (max-width: 360px) {
 #health-crm-demo .hc-content { padding-left: 16px; padding-right: 16px; }
 #health-crm-demo .hc-client-row { padding: 16px; }
 #health-crm-demo .hc-client-identity { gap: 8px; }
 #health-crm-demo .hc-client-identity .hc-avatar { display: none; }
}
@media (min-width: 801px) and (max-width: 1100px) {
 #health-crm-demo .hc-client-head, #health-crm-demo .hc-client-row { grid-template-columns: minmax(140px,1fr) 86px 90px 96px; }
 #health-crm-demo .hc-client-package, #health-crm-demo .hc-client-head > :nth-child(2) { display: none; }
 #health-crm-demo .hc-metric { padding: 20px 16px; }
}
@media (prefers-reduced-motion: reduce) {
 #health-crm-demo button { transition: none; }
}
#health-crm-demo .hc-field { min-width: 0; }
@media (max-width: 380px) {
 #health-crm-demo .hc-report-settings { grid-template-columns: minmax(0,1fr); }
 #health-crm-demo .hc-report-meta .hc-row { flex-wrap: wrap; }
}
#health-crm-demo button { transition: opacity .15s; }

[hidden] { display: none !important; }
#health-crm-demo.hc-auth { display: grid; grid-template-columns: 1fr; min-height: 100dvh; }
#health-crm-demo.hc-auth .hc-sidebar { display: none; }
#health-crm-demo.hc-auth .hc-content { padding: 8vh 24px; max-width: 450px; }
#health-crm-demo .hc-login .hc-brand { margin-bottom: 44px; font-size: 24px; }
#health-crm-demo .hc-login form { padding: 0; border: 0; background: none; }
#health-crm-demo .hc-login h1 { font-size: 30px; }
#health-crm-demo .hc-login .hc-field { margin: 24px 0; }
#health-crm-demo .hc-filterbar { display: flex; gap: 14px; }
#health-crm-demo .hc-filterbar input { flex: 1; }
#health-crm-demo .hc-filterbar select { width: 180px; }
#health-crm-demo .hc-margin-top { margin-top: 26px; }
#health-crm-demo .hc-center { text-align: center; }
#health-crm-demo .hc-inline-form { display: flex; align-items: end; gap: 20px; border: 0; margin: 0; padding: 0; }
#health-crm-demo .hc-inline-form .hc-field { flex: 1; margin: 0; }
#health-crm-demo .hc-card form:not(.hc-report-settings) { margin: 0; padding: 0; border: 0; }
#health-crm-demo .hc-report-settings { background: var(--hc-card); }
#health-crm-demo .hc-transfer-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--hc-border); }
#health-crm-demo .hc-transfer-row:last-child { border-bottom: 0; }
#health-crm-demo .hc-transfer-row .hc-actions { margin: 0; align-items: center; }
#health-crm-demo .hc-transfer-row .hc-actions button { white-space: nowrap; }
#health-crm-demo .hc-table-scroll { overflow-x: auto; }
#health-crm-demo .hc-global-error { margin-bottom: 20px; padding: 12px 16px; background: var(--hc-card); border-left: 2px solid var(--hc-text); }
#health-crm-demo .hc-profile .hc-line { overflow-wrap: anywhere; }
#health-crm-demo form button:disabled { cursor: wait; }
#health-crm-demo .hc-print-value { display: none; }
#health-crm-demo .hc-trend { overflow: hidden; }
@media (max-width:800px) {
 #health-crm-demo .hc-filterbar { flex-wrap: wrap; }
 #health-crm-demo .hc-filterbar input { flex-basis: 100%; }
 #health-crm-demo .hc-filterbar select { width: calc(50% - 7px); }
 #health-crm-demo .hc-tabs button { padding-left: 2px; padding-right: 2px; }
 #health-crm-demo .hc-tabs { gap: 3px; }
 #health-crm-demo .hc-transfer-row { display: block; }
 #health-crm-demo .hc-transfer-row .hc-actions { margin-top: 18px; }
 #health-crm-demo .hc-inline-form { display: block; }
 #health-crm-demo .hc-inline-form button { width: 100%; margin-top: 18px; }
 #health-crm-demo[data-view=profile] .hc-content, #health-crm-demo[data-view=account] .hc-content, #health-crm-demo[data-view=transfer] .hc-content { padding-bottom: 120px; }
}
@media (min-width:801px) {
 #health-crm-demo[data-view=profile] .hc-content, #health-crm-demo[data-view=account] .hc-content, #health-crm-demo[data-view=transfer] .hc-content { max-width: 1000px; }
}
@media print {
 @page { size: A4; margin: 14mm; }
 :root,body { background: white; }
 #health-crm-demo { display:block; background:white; }
 #health-crm-demo .hc-sidebar, #health-crm-demo .hc-pagehead, #health-crm-demo .hc-topback, #health-crm-demo .hc-toast, #health-crm-demo .hc-global-error { display:none !important; }
 #health-crm-demo .hc-content { padding:0; max-width:none; }
 #health-crm-demo .hc-report-paper { border:0; padding:0; margin:0; }
 #health-crm-demo .hc-report-paper textarea { display:none; }
 #health-crm-demo .hc-report-paper .hc-print-value { display:block; white-space:pre-wrap; overflow-wrap:anywhere; }
 #health-crm-demo .hc-report-charts { grid-template-columns:1fr 1fr; }
 #health-crm-demo .hc-narratives { grid-template-columns:1fr; }
 #health-crm-demo .hc-field, #health-crm-demo tr, #health-crm-demo .hc-chart { break-inside:avoid; }
 #health-crm-demo table { font-size:12px; }
 #health-crm-demo .hc-table-scroll { overflow:visible; }
}

#health-crm-demo .hc-sync-controls { display:grid; grid-template-columns:1fr 1fr auto; align-items:end; gap:16px; margin-bottom:20px; }
#health-crm-demo .hc-sync-controls .hc-field { margin:0; }
@media(max-width:800px){#health-crm-demo .hc-sync-controls {grid-template-columns:minmax(0,1fr) minmax(0,1fr);}#health-crm-demo .hc-sync-controls button {grid-column:1/-1;}}
@media(max-width:380px){#health-crm-demo .hc-sync-controls {grid-template-columns:minmax(0,1fr);}}

@media print {
 #health-crm-demo {font-size:14px;line-height:1.45;}
 #health-crm-demo .hc-report-title {font-size:22px;margin:10px 0;}
 #health-crm-demo .hc-report-meta {grid-template-columns:1fr 1fr;}
 #health-crm-demo .hc-report-section {margin:18px 0 8px;padding:8px 0;font-size:16px;break-after:avoid;}
 #health-crm-demo .hc-line {padding:9px 0;}
 #health-crm-demo .hc-report-paper .hc-field {margin:8px 0;}
 #health-crm-demo label, #health-crm-demo .hc-sub, #health-crm-demo .hc-note {font-size:12px;}
 #health-crm-demo .hc-note {padding:7px 0;}
 #health-crm-demo td, #health-crm-demo th {padding:9px 6px;}
 #health-crm-demo .hc-field:has(.hc-print-value:empty) {display:none;}
}

#health-crm-demo .hc-mobile-account {display:none;}
@media(max-width:800px){#health-crm-demo .hc-mobile-account {display:flex;align-items:center;justify-content:center;padding:10px;min-height:40px;border-radius:50%;background:var(--hc-soft);}}
@media print {
 html, body, #health-crm-demo, #health-crm-demo .hc-content { min-height:0 !important; height:auto !important; }
 #health-crm-demo .hc-report-meta { gap:8px 24px; }
 #health-crm-demo .hc-report-meta .hc-row { display:block; }
 #health-crm-demo .hc-report-meta .hc-row span { display:block; }
 #health-crm-demo .hc-report-meta .hc-row span + span { margin-top:4px; }
}


#health-crm-demo[data-view=imports] .hc-content {max-width:none;}
#health-crm-demo .hc-ai-upload-images {display:flex;gap:12px;flex-wrap:wrap;margin:18px 0;}
#health-crm-demo .hc-ai-upload-images>div {width:120px;}
#health-crm-demo .hc-ai-upload-images img {width:120px;height:90px;object-fit:contain;background:var(--hc-card);border:1px solid var(--hc-border);border-radius:10px;}
#health-crm-demo .hc-ai-save {display:flex;gap:20px;align-items:center;margin:24px 0;flex-wrap:wrap;}
#health-crm-demo .hc-ai-source-tabs {display:flex;gap:10px;overflow-x:auto;padding:0 0 18px;margin-bottom:4px;}
#health-crm-demo .hc-ai-source-tabs button {display:flex;align-items:center;gap:10px;flex-shrink:0;text-align:left;padding:8px 16px 8px 8px;border:1px solid var(--hc-border);border-radius:12px;background:var(--hc-card);color:var(--hc-text);min-height:64px;}
#health-crm-demo .hc-ai-source-tabs button[aria-selected=true] {border-color:var(--hc-text);box-shadow:inset 0 0 0 1px var(--hc-text);}
#health-crm-demo .hc-ai-source-tabs img,.hc-ai-text-icon {width:48px;height:44px;object-fit:contain;border-radius:6px;background:var(--hc-soft);}
#health-crm-demo .hc-ai-source-tabs small {display:block;font-size:12px;color:var(--hc-muted);margin-top:3px;}
#health-crm-demo .hc-ai-text-icon {display:flex;align-items:center;justify-content:center;font-size:20px;}
#health-crm-demo form.hc-ai-review-form {padding:0;border:0;background:transparent;margin:0;}
#health-crm-demo .hc-ai-workspace {display:grid;grid-template-columns:minmax(260px,.8fr) minmax(0,1.2fr);gap:20px;align-items:start;}
#health-crm-demo .hc-ai-viewer {position:sticky;top:20px;background:var(--hc-card);border:1px solid var(--hc-border);border-radius:16px;padding:16px;min-width:0;}
#health-crm-demo .hc-ai-viewer a {display:block;background:var(--hc-soft);border-radius:8px;}
#health-crm-demo .hc-ai-viewer img {display:block;width:100%;height:clamp(260px,49dvh,560px);object-fit:contain;}
#health-crm-demo .hc-ai-viewer .hc-sub {margin-top:10px;font-size:12px;overflow-wrap:anywhere;}
#health-crm-demo .hc-ai-original-text {white-space:pre-wrap;overflow-wrap:anywhere;max-height:52dvh;overflow:auto;font-size:15px;line-height:1.7;}
#health-crm-demo .hc-ai-editor {min-width:0;background:var(--hc-card);border:1px solid var(--hc-border);border-radius:16px;padding:20px;max-height:calc(100dvh - 310px);min-height:300px;overflow:auto;}
#health-crm-demo .hc-ai-entry {border:0;border-top:1px solid var(--hc-border);padding:18px 0;margin:0;min-width:0;}
#health-crm-demo .hc-ai-entry:first-child {border-top:0;padding-top:0;}
#health-crm-demo .hc-ai-entry legend {font-size:16px;font-weight:600;padding:0;margin-bottom:10px;max-width:100%;}
#health-crm-demo .hc-ai-check {display:flex;gap:9px;align-items:center;line-height:1.5;cursor:pointer;font-size:14px;}
#health-crm-demo .hc-ai-check input {width:18px;height:18px;min-height:18px;flex:0 0 18px;margin:0;accent-color:#111;}
#health-crm-demo .hc-ai-entry .hc-field {margin:10px 0;}
#health-crm-demo .hc-ai-meta {display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:end;margin-bottom:10px;}
#health-crm-demo .hc-ai-meta>label {margin:10px 0;}
#health-crm-demo .hc-ai-meta label {font-size:13px;}
#health-crm-demo .hc-ai-meta input,#health-crm-demo .hc-ai-meta select {min-height:40px;padding:8px 10px;font-size:14px;border-radius:8px;}
#health-crm-demo .hc-ai-macros {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:16px 0;margin-bottom:10px;border-top:1px solid var(--hc-border);border-bottom:1px solid var(--hc-border);}
#health-crm-demo .hc-ai-macros>div {display:flex;flex-direction:column;gap:3px;}
#health-crm-demo .hc-ai-macros span {font-size:12px;color:var(--hc-muted);}
#health-crm-demo .hc-ai-macros strong {font-size:24px;font-weight:600;letter-spacing:-.7px;}
#health-crm-demo .hc-ai-food-scroll {overflow:auto;max-width:100%;}
#health-crm-demo table.hc-ai-food-table {min-width:520px;table-layout:fixed;width:100%;}
#health-crm-demo .hc-ai-food-table th {font-size:12px;padding:8px 4px;text-align:left;white-space:nowrap;}
#health-crm-demo .hc-ai-food-table th:first-child {width:28%;}
#health-crm-demo .hc-ai-food-table th span {display:block;font-size:11px;font-weight:400;color:var(--hc-muted);}
#health-crm-demo .hc-ai-food-table td {padding:5px 2px;vertical-align:top;}
#health-crm-demo .hc-ai-food-table input {border:0;border-radius:5px;background:var(--hc-soft);min-height:38px;font-size:14px;padding:7px 6px;width:100%;}
#health-crm-demo .hc-ai-food-table input[type=number] {appearance:textfield;-moz-appearance:textfield;}
#health-crm-demo .hc-ai-food-table input::-webkit-inner-spin-button {appearance:none;}
#health-crm-demo .hc-ai-portion-hint {font-size:12px;margin:10px 0;}
#health-crm-demo .hc-ai-more {border-top:1px solid var(--hc-border);padding:12px 0 0;margin-top:12px;font-size:14px;}
#health-crm-demo .hc-ai-more summary {cursor:pointer;color:var(--hc-muted);}
#health-crm-demo .hc-ai-evidence {white-space:pre-wrap;overflow-wrap:anywhere;}
#health-crm-demo .hc-ai-issues {background:var(--hc-soft);border-left:2px solid var(--hc-text);padding:10px 12px;margin:12px 0;line-height:1.6;font-size:13px;}
#health-crm-demo .hc-ai-review-footer {position:sticky;bottom:0;z-index:5;background:var(--hc-bg);display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 0 8px;}
#health-crm-demo .hc-ai-review-footer>span {font-size:13px;white-space:nowrap;}
#health-crm-demo .hc-ai-review-footer .hc-actions {margin:0;gap:8px;}
#health-crm-demo .hc-ai-config {margin-bottom:28px;max-width:720px;}
@media(max-width:1000px){#health-crm-demo .hc-ai-workspace{grid-template-columns:minmax(220px,.7fr) minmax(0,1fr);}#health-crm-demo .hc-ai-editor{padding:16px;}}
@media(max-width:700px){#health-crm-demo[data-view=imports] .hc-content{padding-bottom:100px;}#health-crm-demo .hc-ai-workspace{grid-template-columns:minmax(0,1fr);gap:12px;}#health-crm-demo .hc-ai-viewer{position:static;padding:10px;}#health-crm-demo .hc-ai-viewer img{height:220px;}#health-crm-demo .hc-ai-editor{max-height:none;overflow:visible;}#health-crm-demo .hc-ai-review-footer{bottom:72px;flex-wrap:wrap;background:var(--hc-card);border-top:1px solid var(--hc-border);padding:12px;margin:12px -4px 0;}#health-crm-demo .hc-ai-review-footer .hc-actions{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:8px;}#health-crm-demo .hc-ai-review-footer .hc-actions button[type=submit]{grid-column:1/-1;}#health-crm-demo .hc-ai-source-tabs{position:sticky;top:0;z-index:4;background:var(--hc-bg);padding:8px 0 12px;}#health-crm-demo .hc-ai-source-tabs button{min-height:56px;padding-right:12px;}#health-crm-demo .hc-ai-source-tabs img{width:36px;height:36px;}#health-crm-demo .hc-ai-macros strong{font-size:23px;}}
#health-crm-demo .hc-ai-pagehead {display:flex;align-items:center;gap:18px;margin-bottom:18px;}
#health-crm-demo .hc-ai-pagehead .hc-topback {flex-shrink:0;margin:0;}
#health-crm-demo .hc-ai-pagehead .hc-pagehead {flex:1;min-width:0;margin:0;}
@media(min-width:701px){#health-crm-demo[data-view=imports] .hc-content{padding-top:24px;padding-bottom:20px;}#health-crm-demo .hc-ai-source-tabs{padding-bottom:12px;}#health-crm-demo .hc-ai-review-footer button{white-space:nowrap;}}
@media(max-width:700px){#health-crm-demo .hc-ai-pagehead{display:block;}#health-crm-demo .hc-ai-pagehead .hc-topback{margin-bottom:8px;}#health-crm-demo .hc-ai-pagehead .hc-pagehead{align-items:flex-start;}#health-crm-demo .hc-ai-pagehead .hc-pagehead h1{font-size:22px;}#health-crm-demo .hc-ai-pagehead .hc-actions{flex-wrap:wrap;justify-content:flex-end;max-width:150px;}}
@media(max-width:700px){
 #health-crm-demo .hc-ai-pagehead .hc-pagehead{align-items:center;gap:8px;}
 #health-crm-demo .hc-ai-pagehead .hc-pagehead h1{font-size:19px;white-space:nowrap;letter-spacing:-.5px;}
 #health-crm-demo .hc-ai-pagehead .hc-actions{flex-wrap:nowrap;max-width:none;gap:6px;flex-shrink:0;}
 #health-crm-demo .hc-ai-pagehead .hc-actions button{min-height:36px;white-space:nowrap;font-size:12px;padding:7px 9px;}
 #health-crm-demo .hc-ai-viewer img{height:128px;}
 #health-crm-demo .hc-ai-viewer .hc-sub{margin-top:6px;}
 #health-crm-demo .hc-ai-review-footer{gap:7px;padding:9px 10px;}
 #health-crm-demo .hc-ai-review-footer>span{font-size:12px;}
 #health-crm-demo .hc-ai-review-footer .hc-actions{grid-template-columns:1fr 1fr 1.25fr;gap:6px;}
 #health-crm-demo .hc-ai-review-footer .hc-actions button{min-height:42px;font-size:14px;padding:9px 7px;white-space:nowrap;}
 #health-crm-demo .hc-ai-review-footer .hc-actions button[type=submit]{grid-column:auto;}
}

#health-crm-demo .hc-ai-composer {background:var(--hc-card);border:1px solid var(--hc-border);border-radius:14px;overflow:hidden;margin-top:8px;}
#health-crm-demo .hc-ai-composer:focus-within {border-color:var(--hc-text);box-shadow:0 0 0 1px var(--hc-text);}
#health-crm-demo .hc-ai-composer textarea {display:block;min-height:180px;width:100%;background:transparent;border:0;border-radius:0;resize:vertical;padding:16px;font-size:16px;line-height:1.6;box-shadow:none;}
#health-crm-demo .hc-ai-composer textarea:focus {outline:none;border:0;box-shadow:none;}
#health-crm-demo .hc-ai-composer .hc-ai-upload-images {margin:0;padding:0 16px 16px;}
#health-crm-demo .hc-ai-composer .hc-ai-upload-images:empty {display:none;}
/* Entry and report paths */
#health-crm-demo .hc-entry-overview{display:flex;align-items:center;gap:36px;margin:0 0 28px;padding:22px 24px;background:var(--hc-card);border:1px solid var(--hc-border);border-radius:16px;}
#health-crm-demo .hc-entry-overview>div{display:flex;flex-direction:column;gap:6px;}
#health-crm-demo .hc-entry-overview strong{font-size:28px;line-height:1;letter-spacing:-1px;}
#health-crm-demo .hc-entry-overview span{font-size:13px;color:var(--hc-muted);}
#health-crm-demo .hc-entry-overview>button{margin-left:auto;}
#health-crm-demo .hc-entry-client{display:grid;grid-template-columns:minmax(150px,1fr) 130px auto;align-items:center;gap:18px;padding:20px 22px;border-bottom:1px solid var(--hc-border);}
#health-crm-demo .hc-entry-client:last-child{border-bottom:0;}
#health-crm-demo .hc-entry-client .hc-sub{margin-top:6px;}
#health-crm-demo .hc-entry-client .hc-actions{margin:0;gap:8px;}
#health-crm-demo #entry-search{max-width:300px;}
#health-crm-demo .hc-pending-imports summary{font-size:16px;font-weight:600;cursor:pointer;}
#health-crm-demo .hc-save-receipt{display:flex;flex-direction:column;gap:8px;padding:20px 24px;border:1px solid var(--hc-text);background:var(--hc-card);border-radius:14px;margin-bottom:22px;}
#health-crm-demo .hc-data-context,#health-crm-demo .hc-client-data-summary{display:flex;align-items:center;gap:24px;flex-wrap:wrap;margin:20px 0;color:var(--hc-muted);font-size:14px;}
#health-crm-demo .hc-data-filters{display:flex;align-items:end;gap:16px;margin:24px 0;}
#health-crm-demo .hc-data-filters label{width:200px;}
#health-crm-demo .hc-data-day summary{display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer;}
#health-crm-demo .hc-data-day h3{margin:20px 0 12px;}
#health-crm-demo .hc-data-highlight{border-color:var(--hc-text);}
#health-crm-demo .hc-record-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:16px;padding:16px 0;}
#health-crm-demo .hc-record-grid>div{display:flex;flex-direction:column;gap:6px;}
#health-crm-demo .hc-record-grid span,#health-crm-demo .hc-record-grid small{font-size:12px;color:var(--hc-muted);font-weight:400;}
#health-crm-demo .hc-record-grid strong{font-size:20px;font-weight:600;}
#health-crm-demo .hc-data-sources{display:flex;align-items:center;gap:16px;margin-top:16px;border-top:1px solid var(--hc-border);padding-top:12px;flex-wrap:wrap;}
#health-crm-demo .hc-report-settings{display:block;}
#health-crm-demo .hc-report-settings>button{margin-top:24px;}
#health-crm-demo .hc-report-settings>.hc-field{margin-top:24px;}
#health-crm-demo .hc-report-range{display:grid;grid-template-columns:1fr 1fr 1fr;gap:18px;align-items:end;}
#health-crm-demo .hc-report-range label{display:flex;flex-direction:column;gap:8px;margin:18px 0;min-width:0;}
#health-crm-demo .hc-report-range input,#health-crm-demo .hc-report-range select{width:100%;box-sizing:border-box;}
#health-crm-demo .hc-report-field-groups{display:grid;grid-template-columns:1fr 1fr;gap:0 28px;}
#health-crm-demo .hc-report-field-groups>section{padding:18px 0;border-top:1px solid var(--hc-border);min-width:0;}
#health-crm-demo .hc-report-section-check{font-weight:600;display:flex;align-items:center;gap:9px;}
#health-crm-demo .hc-report-choices{display:flex;gap:12px 18px;flex-wrap:wrap;padding-top:14px;}
#health-crm-demo .hc-report-choices label{display:flex;align-items:center;gap:7px;font-size:14px;margin:0;}
#health-crm-demo .hc-report-choices input,#health-crm-demo .hc-report-section-check input{width:17px;height:17px;min-height:17px;margin:0;accent-color:#111;}
#health-crm-demo .hc-report-progress{padding:18px 22px;background:var(--hc-card);border:1px solid var(--hc-border);border-radius:14px;margin-bottom:20px;font-size:14px;line-height:1.65;}
#health-crm-demo .hc-report-editors summary{font-weight:600;cursor:pointer;}
#health-crm-demo .hc-report-editors form{border:0;margin:12px 0 0;padding:0;}
#health-crm-demo .hc-report-preview-label{display:flex;justify-content:space-between;margin:28px 0 16px;font-size:14px;color:var(--hc-muted);}
#health-crm-demo .hc-output-preview{max-width:100%;overflow-x:auto;}
#health-crm-demo .hc-sheet-wrap{position:relative;margin:0 auto 24px;}
#health-crm-demo .hc-report-page{position:absolute;top:0;left:0;transform-origin:top left;box-sizing:border-box;width:794px;height:1123px;padding:52px;background:#fff;color:#111;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;font-size:14px;line-height:1.65;box-shadow:0 1px 8px #00000010;overflow:hidden;}
#health-crm-demo .hc-sheet-inner{height:1000px;overflow:hidden;}
#health-crm-demo .hc-sheet-header{margin:0 0 20px;border-bottom:1px solid #aaa;padding-bottom:14px;}
#health-crm-demo .hc-sheet-header h1{margin:0 0 8px;font-size:25px;line-height:1.4;letter-spacing:0;font-weight:600;}
#health-crm-demo .hc-sheet-header h1 span{font-size:17px;}
#health-crm-demo .hc-sheet-header div{font-size:13px;color:#555;}
#health-crm-demo .hc-sheet-content h2{font-size:16px;line-height:1.4;padding:7px 0;margin:14px 0 8px;border-bottom:1px solid #bbb;letter-spacing:0;font-weight:600;}
#health-crm-demo .hc-sheet-content p{font-size:14px;line-height:1.7;margin:6px 0;white-space:pre-wrap;overflow-wrap:anywhere;}
#health-crm-demo .hc-sheet-content table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:12px;line-height:1.5;margin:0;}
#health-crm-demo .hc-sheet-content th,#health-crm-demo .hc-sheet-content td{border:1px solid #d1d1d1;padding:8px 7px;text-align:left;overflow-wrap:anywhere;vertical-align:top;color:#222;font-weight:400;}
#health-crm-demo .hc-sheet-content th{font-weight:600;background:#f3f3f3;}
#health-crm-demo .hc-sheet-footer{position:absolute;left:52px;right:52px;bottom:24px;display:flex;justify-content:space-between;border-top:1px solid #ddd;padding-top:8px;font-size:11px;color:#777;}
#health-crm-demo .hc-sheet-chart{display:block;width:100%;height:210px;}
#health-crm-demo .hc-sheet-chart-block{margin:0;padding:0;}
#health-crm-demo .hc-sheet-compact .hc-sheet-content th,#health-crm-demo .hc-sheet-compact .hc-sheet-content td{padding:5px 6px;}
#health-crm-demo .hc-sheet-balanced .hc-sheet-content th,#health-crm-demo .hc-sheet-balanced .hc-sheet-content td{padding:5px 6px;}
#health-crm-demo .hc-sheet-compact .hc-sheet-content p{font-size:13px;line-height:1.55;}
#health-crm-demo .hc-sheet-compact .hc-sheet-content h2{margin-top:10px;}
@media(max-width:1000px){#health-crm-demo .hc-entry-client{grid-template-columns:1fr auto;}#health-crm-demo .hc-entry-client>.hc-actions{grid-column:1/-1;}#health-crm-demo .hc-report-field-groups{grid-template-columns:1fr;}}
@media(max-width:700px){#health-crm-demo .hc-entry-overview{gap:22px;padding:18px;flex-wrap:wrap;}#health-crm-demo .hc-entry-overview>button{margin:0;}#health-crm-demo .hc-entry-client{padding:18px 16px;}#health-crm-demo .hc-entry-client .hc-actions{display:flex;flex-wrap:wrap;}#health-crm-demo #entry-search{max-width:190px;}#health-crm-demo .hc-data-day summary{align-items:flex-start;flex-direction:column;gap:7px;}#health-crm-demo .hc-data-filters{flex-wrap:wrap;}#health-crm-demo .hc-data-filters label{width:calc(50% - 8px);}#health-crm-demo .hc-report-range{grid-template-columns:1fr;gap:0;}#health-crm-demo[data-view=report] .hc-pagehead{display:block;}#health-crm-demo[data-view=report] .hc-pagehead .hc-actions{display:flex;flex-wrap:wrap;margin-top:18px;}}
@media(max-width:700px){#health-crm-demo[data-view=data] .hc-pagehead{display:block;}#health-crm-demo[data-view=data] .hc-pagehead .hc-actions{margin-top:16px;display:flex;flex-wrap:wrap;}#health-crm-demo[data-view=data] .hc-pagehead h1{font-size:26px;}}
@media print{
 @page{size:A4;margin:0;}
 html,body,#health-crm-demo{margin:0!important;padding:0!important;width:210mm!important;background:white!important;}
 #health-crm-demo .hc-content{padding:0!important;margin:0!important;max-width:none!important;width:210mm!important;}
 #health-crm-demo .hc-content>:not(.hc-output-preview){display:none!important;}
 #health-crm-demo .hc-output-preview{overflow:visible!important;max-width:none!important;width:210mm!important;}
 #health-crm-demo .hc-sheet-wrap{width:210mm!important;height:297mm!important;margin:0!important;break-after:page;page-break-after:always;}
 #health-crm-demo .hc-sheet-wrap:last-child{break-after:auto;page-break-after:auto;}
 #health-crm-demo .hc-report-page{position:relative!important;transform:none!important;width:210mm!important;height:297mm!important;box-shadow:none!important;}
 #health-crm-demo .hc-sheet-content th,#health-crm-demo .hc-sheet-content td{break-inside:avoid;}
}
#health-crm-demo .hc-input-steps{display:flex;gap:16px;align-items:center;margin:0 0 22px;flex-wrap:wrap;font-size:13px;color:var(--hc-muted);}
#health-crm-demo .hc-input-steps span{padding:7px 10px;border-bottom:1px solid transparent;}
#health-crm-demo .hc-input-steps .current{color:var(--hc-text);font-weight:600;border-color:var(--hc-text);}
#health-crm-demo .hc-input-steps .done{color:var(--hc-text);}
#health-crm-demo .hc-tabs button[hidden]{display:none!important;}
#health-crm-demo .hc-brand{gap:11px;align-items:baseline;}
#health-crm-demo .hc-brand-name{font-weight:650;letter-spacing:-1.2px;line-height:1;}
#health-crm-demo .hc-brand-tag{font-size:11px;line-height:1;letter-spacing:1.8px;font-weight:500;color:var(--hc-muted);border-left:1px solid var(--hc-border);padding-left:11px;}
#health-crm-demo .hc-login .hc-brand-name{font-size:34px;}
#health-crm-demo .hc-login .hc-brand-tag{font-size:13px;}
#health-crm-demo .hc-role-section{margin-bottom:28px;}
#health-crm-demo .hc-administrator-section{margin-bottom:28px;}
#health-crm-demo .hc-appoint-admin-form{display:flex;align-items:flex-end;gap:16px;margin:24px 0;}
#health-crm-demo .hc-appoint-admin-form .hc-field{flex:1;max-width:560px;margin:0;}
#health-crm-demo .hc-appoint-admin-form button,#health-crm-demo .hc-administrators .hc-link{flex-shrink:0;white-space:nowrap;}
#health-crm-demo .hc-admin-revoke-note{margin-top:18px;}
@media(max-width:700px){#health-crm-demo .hc-administrator-section .hc-sectionhead{align-items:flex-start;flex-direction:column;gap:10px;}#health-crm-demo .hc-appoint-admin-form{align-items:stretch;flex-direction:column;}#health-crm-demo .hc-administrators .hc-line{gap:12px;}}
#health-crm-demo[data-view=admin] .hc-line .hc-link{flex-shrink:0;white-space:nowrap;}
#health-crm-demo .hc-role-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;}
#health-crm-demo .hc-role-grid form.hc-edit-role,#health-crm-demo .hc-role-admin{border:1px solid var(--hc-border);border-radius:10px;padding:20px;margin:0;}
#health-crm-demo .hc-edit-role>.hc-row input{max-width:190px;}
#health-crm-demo .hc-role-permissions{display:flex;gap:12px 20px;flex-wrap:wrap;margin:18px 0;}
#health-crm-demo .hc-role-permissions label{display:flex;gap:8px;align-items:center;font-size:14px;cursor:pointer;}
#health-crm-demo .hc-role-permissions input{width:17px;min-height:17px;height:17px;margin:0;accent-color:var(--hc-brand);}
#health-crm-demo .hc-new-role{border-top:1px solid var(--hc-border);padding-top:20px;margin-top:22px;}
#health-crm-demo .hc-new-role summary{cursor:pointer;font-size:14px;font-weight:500;}
#health-crm-demo .hc-new-role form{border:0;padding:20px 0 0;margin:0;max-width:680px;}
#health-crm-demo .hc-hospital-frame{display:block;width:100%;min-height:700px;border:0;background:transparent;}
#health-crm-demo .hc-hospital-tabs{display:flex;gap:6px;border-bottom:1px solid var(--hc-border);margin:0 0 24px;}
#health-crm-demo .hc-hospital-tabs button{background:transparent;border:0;border-bottom:2px solid transparent;padding:14px 16px;color:var(--hc-muted);font:inherit;font-size:14px;cursor:pointer;}
#health-crm-demo .hc-hospital-tabs button[aria-pressed=true]{border-bottom-color:var(--hc-text);color:var(--hc-text);font-weight:600;}
#health-crm-demo .hc-hospital-tabs button:focus-visible{outline:2px solid var(--hc-text);outline-offset:-2px;}
#health-crm-demo[data-view=hospitals] .hc-content{max-width:none;padding-left:28px;padding-right:28px;}
@media(max-width:800px){#health-crm-demo .hc-role-grid{grid-template-columns:1fr;}#health-crm-demo .hc-role-section .hc-sectionhead{align-items:flex-start;gap:12px;flex-direction:column;}#health-crm-demo .hc-role-grid form.hc-edit-role{padding:16px;}#health-crm-demo[data-view=hospitals] .hc-content{padding:22px 12px;}}
/* Daily work and the shared health-data entry dialog. */
#health-crm-demo .hc-work-heading-actions{display:flex;gap:22px;align-items:center;}
#health-crm-demo .hc-work-heading-actions button{white-space:nowrap;}
#health-crm-demo .hc-work-listhead{gap:18px;flex-wrap:wrap;margin:26px 0 16px;}
#health-crm-demo .hc-work-filters{display:flex;gap:8px;flex-wrap:wrap;}
#health-crm-demo .hc-work-filters button{white-space:nowrap;padding:10px 16px;}
#health-crm-demo .hc-entry-client{grid-template-columns:minmax(180px,1fr) auto auto;gap:22px;}
#health-crm-demo .hc-entry-client .hc-actions{gap:8px;}
#health-crm-demo .hc-entry-client .hc-actions button{white-space:nowrap;}
#health-crm-demo .hc-history-client{display:grid;grid-template-columns:minmax(180px,1fr) minmax(160px,auto) auto;gap:24px;align-items:center;padding:22px 24px;border-bottom:1px solid var(--hc-border);}
#health-crm-demo .hc-history-client:last-child{border-bottom:0;}
#health-crm-demo .hc-history-client .hc-actions{display:flex;gap:8px;}
#health-crm-demo .hc-history-client .hc-actions button{white-space:nowrap;}
#health-crm-demo dialog.hc-entry-dialog{width:min(1060px,calc(100vw - 48px));max-width:none;max-height:calc(100dvh - 48px);margin:auto;padding:0;border:1px solid var(--hc-border);border-radius:18px;background:var(--hc-card);color:var(--hc-text);overflow:auto;box-shadow:0 24px 90px #0002;}
#health-crm-demo .hc-entry-dialog::backdrop{background:rgba(15,18,22,.38);}
#health-crm-demo .hc-entry-dialog-head{position:sticky;top:0;z-index:5;display:flex;justify-content:space-between;align-items:center;gap:18px;padding:22px 28px;background:var(--hc-card);border-bottom:1px solid var(--hc-border);}
#health-crm-demo .hc-entry-dialog-head h1{font-size:25px;margin:0 0 5px;}
#health-crm-demo .hc-entry-dialog-head p{margin:0;}
#health-crm-demo #hc-entry-dialog-body{padding:22px 28px 0;}
#health-crm-demo .hc-entry-dialog form{margin:0;padding:0;border:0;border-radius:0;}
#health-crm-demo .hc-entry-dialog h2{font-size:17px;margin:25px 0 14px;}
#health-crm-demo .hc-entry-dialog .hc-field{margin:0 0 18px;}
#health-crm-demo .hc-entry-dialog .hc-main-metrics{grid-template-columns:repeat(3,minmax(0,1fr));}
#health-crm-demo .hc-extra-metrics{border-top:1px solid var(--hc-border);border-bottom:1px solid var(--hc-border);padding:16px 0;margin:8px 0 24px;}
#health-crm-demo .hc-extra-metrics summary{cursor:pointer;margin-bottom:0;font-size:14px;}
#health-crm-demo .hc-extra-metrics[open] summary{margin-bottom:18px;}
#health-crm-demo .hc-entry-footer,#health-crm-demo .hc-entry-dialog .hc-ai-review-footer{position:sticky;bottom:0;background:var(--hc-card);border-top:1px solid var(--hc-border);padding:18px 0;display:flex;justify-content:space-between;align-items:center;gap:18px;z-index:3;}
#health-crm-demo .hc-entry-footer .hc-actions{display:flex;gap:8px;flex-shrink:0;}
#health-crm-demo .hc-entry-dialog .hc-ai-workspace{grid-template-columns:minmax(220px,.8fr) minmax(0,1.2fr);gap:24px;}
#health-crm-demo .hc-entry-dialog .hc-ai-viewer{top:115px;}
#health-crm-demo .hc-entry-dialog .hc-ai-entry{margin-top:0;}
#health-crm-demo .hc-entry-dialog .hc-ai-review-footer .hc-actions{flex-wrap:wrap;}
@media(max-width:1100px){#health-crm-demo .hc-entry-client,#health-crm-demo .hc-history-client{grid-template-columns:minmax(0,1fr) auto;}#health-crm-demo .hc-entry-client>.hc-actions,#health-crm-demo .hc-history-client>.hc-actions{grid-column:1/-1;justify-content:flex-start;}}
@media(max-width:700px){#health-crm-demo .hc-work-heading-actions{width:100%;justify-content:space-between;}#health-crm-demo .hc-work-listhead{align-items:stretch;}#health-crm-demo #entry-search{max-width:none;width:100%;}#health-crm-demo .hc-entry-client{gap:14px;padding:18px 16px;}#health-crm-demo .hc-entry-client .hc-actions{width:100%;display:grid;grid-template-columns:1fr 1fr;}#health-crm-demo .hc-entry-client .hc-actions .hc-link{grid-column:1/-1;padding:6px;}#health-crm-demo .hc-entry-client .hc-actions button{font-size:13px;padding:10px 12px;}#health-crm-demo .hc-history-client{padding:18px 16px;gap:14px;}#health-crm-demo dialog.hc-entry-dialog{width:100vw;max-height:100dvh;height:100dvh;border:0;border-radius:0;}#health-crm-demo .hc-entry-dialog-head{padding:16px 18px;gap:12px;}#health-crm-demo .hc-entry-dialog-head h1{font-size:21px;}#health-crm-demo #hc-entry-dialog-body{padding:18px 18px 0;}#health-crm-demo .hc-entry-dialog .hc-main-metrics{grid-template-columns:1fr 1fr;}#health-crm-demo .hc-entry-dialog .hc-ai-workspace{grid-template-columns:1fr;}#health-crm-demo .hc-entry-dialog .hc-ai-viewer{position:static;max-height:260px;overflow:auto;}#health-crm-demo .hc-entry-dialog .hc-ai-viewer img{max-height:230px;object-fit:contain;}#health-crm-demo .hc-entry-footer{align-items:stretch;flex-direction:column;gap:10px;}#health-crm-demo .hc-entry-footer .hc-actions{width:100%;}#health-crm-demo .hc-entry-footer .hc-actions button{flex:1;}#health-crm-demo .hc-entry-dialog .hc-ai-review-footer{align-items:stretch;flex-direction:column;gap:10px;}#health-crm-demo .hc-entry-dialog .hc-ai-review-footer .hc-actions{width:100%;display:flex;}#health-crm-demo .hc-entry-dialog .hc-ai-review-footer .hc-actions button{padding:10px 12px;flex:1;}#health-crm-demo .hc-entry-dialog .hc-ai-source-tabs{position:static;}}
#health-crm-demo .hc-entry-footer .hc-actions button{white-space:nowrap;}
#health-crm-demo .hc-ai-dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin:0 0 18px;flex-wrap:wrap;}
#health-crm-demo .hc-entry-client .hc-actions button:focus-visible{outline-offset:2px;}
@media(max-width:700px){#health-crm-demo[data-view=home] .hc-pagehead{display:block;}#health-crm-demo[data-view=home] .hc-pagehead h1{white-space:nowrap;margin-bottom:16px;}#health-crm-demo[data-view=home] .hc-work-heading-actions .hc-sub{margin:0;}}
@media(max-width:700px){#health-crm-demo .hc-entry-dialog .hc-input-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;font-size:12px;}#health-crm-demo .hc-entry-dialog .hc-input-steps span{padding:7px 3px;text-align:center;white-space:nowrap;}}
#health-crm-demo .hc-service-clock{border-top:1px solid var(--hc-border);padding-top:20px;margin-top:18px;}
#health-crm-demo .hc-service-clock>p{font-size:14px;margin:10px 0 18px;}
#health-crm-demo .hc-service-clock summary{cursor:pointer;margin-top:20px;font-size:14px;}
#health-crm-demo .hc-service-change{padding:18px 0;border-bottom:1px solid var(--hc-border);font-size:14px;}
#health-crm-demo .hc-service-change:last-child{border-bottom:0;}
#health-crm-demo .hc-service-change p{margin:10px 0;white-space:pre-wrap;overflow-wrap:anywhere;}
#health-crm-demo .hc-service-current{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;padding:0 0 24px;margin:0 0 24px;border-bottom:1px solid var(--hc-border);}
#health-crm-demo .hc-service-current>div{display:grid;gap:8px;}
#health-crm-demo .hc-service-current strong{font-size:15px;font-weight:500;}
#health-crm-demo .hc-service-preview{padding:16px 18px;background:var(--hc-soft);border-radius:10px;font-weight:500;margin:18px 0;}
#health-crm-demo[data-view=service-time] .hc-content{max-width:1100px;}
#health-crm-demo .hc-service-admin-log table{min-width:1100px;}
#health-crm-demo .hc-service-admin-log td{vertical-align:top;white-space:normal;overflow-wrap:anywhere;}
#health-crm-demo .hc-service-admin-log>button{margin-top:20px;}
@media(max-width:700px){#health-crm-demo .hc-service-current{grid-template-columns:1fr;gap:18px;}#health-crm-demo .hc-service-change>.hc-row{align-items:flex-start;flex-direction:column;gap:6px;}#health-crm-demo[data-view=service-time] .hc-pagehead h1{font-size:24px;}}

/* Remaining fulfillment time in the customer heading. */
#health-crm-demo .hc-client-title{display:inline-flex;align-items:center;flex-wrap:wrap;gap:8px 12px;max-width:100%;vertical-align:middle;}
#health-crm-demo .hc-client-name{font-weight:600;overflow-wrap:anywhere;min-width:0;}
#health-crm-demo .hc-fulfillment-progress{display:inline-flex;align-items:center;gap:6px;padding:4px 9px;border:1px solid var(--hc-border);border-radius:6px;color:var(--hc-muted);background:var(--hc-soft);font-size:12px;font-weight:400;line-height:1.5;letter-spacing:0;white-space:nowrap;}
#health-crm-demo .hc-fulfillment-progress>span{color:var(--hc-text);font-weight:500;font-variant-numeric:tabular-nums;}
#health-crm-demo .hc-pagehead h1>.hc-client-title{gap:10px 16px;}
#health-crm-demo .hc-client-title+.hc-sub{margin-top:6px;}
@media(max-width:700px){#health-crm-demo .hc-client-title{gap:6px 8px;}#health-crm-demo .hc-fulfillment-progress{padding:3px 7px;}}

/* Fixed time columns keep every customer's badge vertically aligned. */
#health-crm-demo .hc-history-client{grid-template-columns:minmax(160px,1fr) 188px 180px 218px;grid-template-areas:"identity time status actions";}
#health-crm-demo .hc-entry-client{grid-template-columns:minmax(160px,1fr) 188px 100px 336px;grid-template-areas:"identity time status actions";gap:24px;}
#health-crm-demo .hc-customer-info{grid-area:identity;min-width:0;overflow-wrap:anywhere;}
#health-crm-demo .hc-customer-info>.hc-sub{margin-top:6px;}
#health-crm-demo .hc-service-slot{grid-area:time;min-width:0;}
#health-crm-demo .hc-service-slot>.hc-fulfillment-progress{width:100%;box-sizing:border-box;justify-content:space-between;}
#health-crm-demo .hc-customer-status{grid-area:status;min-width:0;}
#health-crm-demo .hc-history-client>.hc-actions,#health-crm-demo .hc-entry-client>.hc-actions{grid-area:actions;justify-content:flex-end;}
@media(max-width:1250px){#health-crm-demo .hc-history-client,#health-crm-demo .hc-entry-client{grid-template-columns:minmax(0,1fr) 188px;grid-template-areas:"identity time" "status time" "actions actions";gap:10px 20px;}#health-crm-demo .hc-service-slot{align-self:start;}#health-crm-demo .hc-history-client>.hc-actions,#health-crm-demo .hc-entry-client>.hc-actions{justify-content:flex-start;margin-top:8px;}}
@media(max-width:700px){#health-crm-demo .hc-history-client,#health-crm-demo .hc-entry-client{grid-template-columns:minmax(0,1fr) 174px;grid-template-areas:"name time" "meta meta" "status status" "actions actions";gap:10px 12px;}#health-crm-demo .hc-customer-info{display:contents;}#health-crm-demo .hc-customer-info>.hc-client-name{grid-area:name;}#health-crm-demo .hc-customer-info>.hc-sub{grid-area:meta;margin-top:0;}#health-crm-demo .hc-customer-status{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;}#health-crm-demo .hc-history-client>.hc-actions{display:flex;}#health-crm-demo .hc-history-client>.hc-actions button{flex:1;}#health-crm-demo .hc-service-slot>.hc-fulfillment-progress{font-size:11px;padding:5px 7px;}}
@media(max-width:359px){#health-crm-demo .hc-history-client,#health-crm-demo .hc-entry-client{grid-template-areas:"name name" "meta meta" "status time" "actions actions";}}

#health-crm-demo .hc-ai-progress{border:1px solid var(--hc-border);border-radius:14px;padding:22px;margin:18px 0;background:var(--hc-card);}
#health-crm-demo .hc-ai-progress progress{display:block;width:100%;height:8px;margin:18px 0 12px;border:0;border-radius:10px;overflow:hidden;accent-color:#222;}
#health-crm-demo .hc-ai-progress progress::-webkit-progress-bar{background:#ededf0;border-radius:10px;}
#health-crm-demo .hc-ai-progress progress::-webkit-progress-value{background:#222;border-radius:10px;transition:width .2s;}
#health-crm-demo .hc-ai-progress p{font-size:14px;margin:10px 0;color:var(--hc-muted);}
#health-crm-demo .hc-ai-image-statuses{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px;}
#health-crm-demo .hc-ai-image-statuses span{display:flex;align-items:center;justify-content:center;border:1px solid #e3e3e8;border-radius:8px;min-width:38px;height:34px;font-size:13px;color:#888;}
#health-crm-demo .hc-ai-image-statuses .done{background:#222;color:#fff;border-color:#222;}
#health-crm-demo .hc-ai-image-statuses .active{border-color:#222;color:#111;}
#health-crm-demo .hc-ai-image-statuses .failed{border-style:dashed;color:#111;}
@media(max-width:700px){#health-crm-demo .hc-ai-progress{padding:18px 16px;}#health-crm-demo .hc-ai-progress .hc-row{align-items:flex-start;gap:12px;}#health-crm-demo .hc-ai-image-statuses span{min-width:32px;}}

#health-crm-demo .hc-cell-value{display:block;min-height:1.5em;white-space:pre-wrap;overflow-wrap:anywhere;}
#health-crm-demo .hc-cell-value[role=button]{cursor:text;border-radius:2px;outline-offset:3px;}
#health-crm-demo .hc-cell-value[role=button]:hover{background:#00000005;}
#health-crm-demo .hc-cell-value[role=button]:focus-visible{outline:1px solid #444;}
#health-crm-demo .hc-cell-tail{display:block;font-size:inherit;font-weight:400;color:inherit;}
#health-crm-demo textarea.hc-cell-editor{position:fixed;z-index:9999;box-sizing:border-box;margin:0;padding:10px 12px;min-height:52px;border:1.5px solid #222;border-radius:8px;background:#fff;color:#111;font-family:inherit;font-size:16px;line-height:1.5;resize:none;overflow:auto;box-shadow:0 5px 24px #00000018;outline:none;}
#health-crm-demo #report-save-state{color:var(--hc-text);}
@media print{#health-crm-demo .hc-cell-editor{display:none!important;}#health-crm-demo .hc-cell-value{outline:0!important;background:none!important;}}

#health-crm-demo dialog.hc-report-modal{width:min(1050px,calc(100vw - 32px));max-width:none;height:calc(100dvh - 32px);max-height:none;padding:0;margin:auto;border:1px solid var(--hc-border);border-radius:16px;background:var(--hc-soft);color:var(--hc-text);overflow:auto;}
#health-crm-demo .hc-report-modal::backdrop{background:#10121680;}
#health-crm-demo .hc-report-modal>header{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:20px;background:var(--hc-card);border-bottom:1px solid var(--hc-border);padding:18px 24px;}
#health-crm-demo .hc-report-modal>header h2{margin:0;font-size:20px;}
#health-crm-demo .hc-report-modal>.hc-output-preview{margin:24px auto;padding:0 12px;box-sizing:border-box;}
@media(max-width:700px){#health-crm-demo dialog.hc-report-modal{width:100vw;height:100dvh;border:0;border-radius:0;}#health-crm-demo .hc-report-modal>header{padding:14px 16px;}}
/* Report profile editing remains in a native modal so the report draft stays mounted. */
#health-crm-demo .hc-report-profile-status{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 22px;background:var(--hc-card);border:1px solid var(--hc-border);border-radius:14px;margin:0 0 20px;}
#health-crm-demo .hc-report-profile-status p{margin:6px 0 0;color:var(--hc-muted);font-size:14px;}
#health-crm-demo .hc-report-profile-status button{flex-shrink:0;}
#health-crm-demo .hc-profile-dialog{max-width:900px;}
#health-crm-demo .hc-profile-dialog-body{padding:24px;}
#health-crm-demo .hc-profile-footer{position:sticky;bottom:0;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 0;background:var(--hc-card);border-top:1px solid var(--hc-border);}
#health-crm-demo .hc-profile-error button{display:block;margin-top:12px;}
@media(max-width:700px){#health-crm-demo .hc-report-profile-status{align-items:stretch;flex-direction:column;gap:12px;padding:16px;}#health-crm-demo .hc-profile-dialog-body{padding:18px;}#health-crm-demo .hc-profile-footer{align-items:stretch;flex-direction:column;}#health-crm-demo .hc-profile-dialog .hc-entry-dialog-head{gap:12px;align-items:flex-start;}}

/* Phone-based store distributor registration. */
#health-crm-demo .hc-distributor-card{max-width:540px;padding:32px}
#health-crm-demo .hc-distributor-card form{display:grid;gap:24px}
#health-crm-demo .hc-distributor-card .hc-field{margin:0}
#health-crm-demo .hc-distributor-card input{min-height:48px}
#health-crm-demo .hc-distributor-card select{min-height:48px;width:100%;min-width:0}
#health-crm-demo .hc-distributor-shop{font-size:17px;font-weight:500;margin-bottom:28px}
#health-crm-demo .hc-distributor-new-group{margin-top:24px;padding-top:24px;border-top:1px solid var(--hc-border)}
#health-crm-demo .hc-distributor-new-group summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-size:16px}
#health-crm-demo .hc-distributor-new-group form{margin-top:16px}
#health-crm-demo .hc-distributor-group-error{display:grid;gap:12px;margin-bottom:24px;overflow-wrap:anywhere}
#health-crm-demo #distributor-result,#health-crm-demo #distributor-group{scroll-margin-bottom:110px}
#health-crm-demo .hc-distributor-card button[type=submit]{margin-top:4px;min-height:48px}
#health-crm-demo .hc-distributor-receipt{display:grid;gap:8px;margin-top:28px;padding-top:24px;border-top:1px solid #e5e5e7;overflow-wrap:anywhere}
#health-crm-demo .hc-distributor-receipt strong{font-size:18px}
#health-crm-demo .hc-distributor-receipt span{color:#68686e;font-size:15px}
@media(max-width:640px){#health-crm-demo .hc-distributor-card{padding:24px}}

/* Phone layout: four main destinations, with secondary tools in a sheet. */
#health-crm-demo .hc-tabs .hc-mobile-more{display:none;}
#health-crm-demo #hc-archive-frame{display:block;width:100%;height:100dvh;border:0;}
#health-crm-demo[data-view=archive] .hc-content{padding:0;max-width:none;}
#health-crm-demo .hc-mobile-image-picker{display:none;}
#health-crm-demo .hc-more-dialog{width:min(500px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);padding:24px;margin:auto;border:1px solid var(--hc-border);border-radius:22px;color:var(--hc-text);background:var(--hc-card);overflow:auto;}
#health-crm-demo .hc-more-dialog::backdrop{background:#0005;}
#health-crm-demo .hc-more-dialog header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px;}
#health-crm-demo .hc-more-dialog h2{margin:0;font-size:22px;}
#health-crm-demo .hc-more-dialog nav{display:grid;gap:8px;}
#health-crm-demo .hc-more-item{display:flex;align-items:center;gap:16px;width:100%;min-height:56px;text-align:left;padding:14px 16px;border-radius:12px;background:var(--hc-bg);font-size:16px;}
#health-crm-demo .hc-more-item[aria-pressed=true]{background:var(--hc-brand);color:var(--hc-on-brand);}
#health-crm-demo .hc-report-preview-label>div{display:flex;align-items:center;gap:12px;flex-shrink:0;}
#health-crm-demo .hc-report-preview-label button{font-size:14px;min-height:44px;padding:8px 12px;white-space:nowrap;}
#health-crm-demo .hc-report-progress:empty{display:none;}
#health-crm-demo .hc-report-mobile-details{background:var(--hc-card);border:1px solid var(--hc-border);border-radius:14px;padding:8px 16px;margin-bottom:10px;}
#health-crm-demo .hc-report-mobile-details>summary{font-weight:500;cursor:pointer;min-height:44px;}
#health-crm-demo .hc-report-mobile-details>.hc-report-profile-status{border:0;margin:0;padding:8px 0;}
#health-crm-demo .hc-report-mobile-details>.hc-table-tools{border:0;margin:0;padding:8px 0;}
@media screen and (max-width:800px){
 #health-crm-demo{--hc-mobile-nav-height:calc(76px + env(safe-area-inset-bottom));}
 #health-crm-demo .hc-chrome{height:calc(76px + env(safe-area-inset-top));padding:14px 20px;padding-top:calc(14px + env(safe-area-inset-top));}
 #health-crm-demo .hc-mobile-account{min-height:44px;width:44px;padding:12px;flex-shrink:0;}
 #health-crm-demo .hc-tabs{height:var(--hc-mobile-nav-height);padding:6px 8px calc(6px + env(safe-area-inset-bottom));gap:4px;}
 #health-crm-demo .hc-tabs button{min-width:0;flex:1;min-height:56px;padding:7px 2px;font-size:12px;white-space:nowrap;gap:4px;}
 #health-crm-demo .hc-tabs button[data-go=hospitals],#health-crm-demo .hc-tabs button[data-go=distributors],#health-crm-demo .hc-tabs button[data-go=admin]{display:none;}
 #health-crm-demo .hc-tabs .hc-mobile-more{display:flex;}
 #health-crm-demo .hc-content{padding:24px 16px calc(100px + env(safe-area-inset-bottom));}
 #health-crm-demo .hc-pagehead{margin-bottom:22px;}
 #health-crm-demo .hc-pagehead h1{overflow-wrap:anywhere;}
 #health-crm-demo .hc-topback button{min-height:44px;}
 #health-crm-demo .hc-sectionhead{gap:12px;flex-wrap:wrap;}
 #health-crm-demo .hc-sectionhead>*{min-width:0;}
 #health-crm-demo .hc-sectionhead input{max-width:100%;}
 #health-crm-demo input:not([type=checkbox]):not([type=radio]),#health-crm-demo select,#health-crm-demo textarea{font-size:16px;}
 #health-crm-demo .hc-formgrid{grid-template-columns:repeat(2,minmax(0,1fr));}
 #health-crm-demo .hc-history-client,#health-crm-demo .hc-entry-client{grid-template-columns:minmax(0,1fr);grid-template-areas:"name" "time" "meta" "status" "actions";gap:8px;}
 #health-crm-demo .hc-service-slot{justify-self:start;}
 #health-crm-demo .hc-service-slot>.hc-fulfillment-progress{font-size:12px;}
 #health-crm-demo .hc-history-client>.hc-actions,#health-crm-demo .hc-entry-client>.hc-actions{margin-top:10px;}
 #health-crm-demo .hc-history-client>.hc-actions button,#health-crm-demo .hc-entry-client>.hc-actions button{min-height:46px;font-size:14px;}
 #health-crm-demo .hc-report-range label{margin:10px 0;}
 #health-crm-demo[data-view=report] .hc-pagehead .hc-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
 #health-crm-demo[data-view=report] .hc-pagehead .hc-actions button{min-width:0;min-height:46px;white-space:normal;}
 #health-crm-demo[data-view=report] .hc-pagehead .hc-actions [data-action=edit-report-client]{grid-column:1/-1;}
 #health-crm-demo .hc-report-choices{gap:4px 12px;padding-top:8px;}
 #health-crm-demo .hc-report-choices label,#health-crm-demo .hc-report-section-check{min-height:44px;}
 #health-crm-demo .hc-report-preview-label{align-items:center;gap:12px;margin:20px 0 10px;}
 #health-crm-demo .hc-report-preview-label>span{font-size:13px;}
 #health-crm-demo .hc-table-tools{gap:8px;margin:10px 0 16px;}
 #health-crm-demo .hc-table-tools button{min-height:44px;flex:1 1 calc(50% - 8px);white-space:nowrap;}
 #health-crm-demo .hc-report-progress,#health-crm-demo .hc-report-profile-status{padding:14px 16px;margin-bottom:12px;}
 #health-crm-demo .hc-report-editors .hc-card{padding:12px 16px;margin-bottom:10px;}
 #health-crm-demo .hc-report-modal>header{flex-wrap:wrap;gap:10px;padding-top:calc(14px + env(safe-area-inset-top));}
 #health-crm-demo .hc-report-modal>header .hc-actions{margin:0;gap:8px;}
 #health-crm-demo .hc-report-modal>.hc-output-preview{padding-bottom:env(safe-area-inset-bottom);}
 #health-crm-demo .hc-mobile-image-picker{display:inline-flex;align-items:center;justify-content:center;}
 #health-crm-demo .hc-ai-save{gap:10px;align-items:stretch;}
 #health-crm-demo .hc-ai-save button{flex:1;min-height:48px;}
 #health-crm-demo .hc-ai-save>.hc-sub{flex-basis:100%;}
 #health-crm-demo .hc-entry-dialog-head{padding-top:calc(16px + env(safe-area-inset-top));}
 #health-crm-demo .hc-entry-footer,#health-crm-demo .hc-entry-dialog .hc-ai-review-footer{padding-bottom:calc(16px + env(safe-area-inset-bottom));}
 #health-crm-demo .hc-profile-footer{padding-bottom:calc(18px + env(safe-area-inset-bottom));}
 #health-crm-demo .hc-more-dialog{margin:auto auto 0;width:100%;padding:22px 20px calc(24px + env(safe-area-inset-bottom));border:0;border-radius:24px 24px 0 0;overscroll-behavior:contain;}
 #health-crm-demo[data-view=archive] .hc-content{padding:0;}
 #health-crm-demo #hc-archive-frame{height:calc(100dvh - 76px - env(safe-area-inset-top) - var(--hc-mobile-nav-height));}
 #health-crm-demo[data-view=hospitals] .hc-content{padding:22px 12px calc(100px + env(safe-area-inset-bottom));}
}
@media screen and (max-width:359px){
 #health-crm-demo .hc-formgrid,#health-crm-demo .hc-entry-dialog .hc-main-metrics{grid-template-columns:minmax(0,1fr);}
 #health-crm-demo .hc-metrics{gap:8px;}
 #health-crm-demo .hc-metric{padding:16px 12px;}
 #health-crm-demo .hc-client-data-summary{gap:12px;}
 #health-crm-demo .hc-pagehead .hc-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));}
 #health-crm-demo .hc-pagehead .hc-actions button{min-width:0;}
 #health-crm-demo .hc-record-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media print{#health-crm-demo .hc-more-dialog{display:none!important;}}
.hc-upload-status{position:fixed;z-index:90;left:252px;right:24px;bottom:20px;max-width:860px;margin:auto;padding:16px 20px;border:1px solid #d9d9de;border-radius:14px;background:#fff;box-shadow:0 4px 24px #00000012;display:flex;align-items:center;justify-content:space-between;gap:16px}.hc-upload-status[hidden]{display:none}.hc-upload-status>div:first-child{display:grid;gap:5px;min-width:0}.hc-upload-status strong,.hc-upload-status span,.hc-upload-status small{overflow-wrap:anywhere}.hc-upload-status .hc-actions{flex-shrink:0}.hc-upload-status small{color:#73737c}@media(max-width:760px){.hc-upload-status{left:12px;right:12px;bottom:calc(86px + env(safe-area-inset-bottom));padding:12px;align-items:stretch;flex-direction:column;font-size:13px}.hc-upload-status .hc-actions{gap:8px;justify-content:flex-end}.hc-upload-status button{padding:8px 12px;min-height:40px}}
#health-crm-demo.hc-has-upload .hc-content{padding-bottom:180px}@media(max-width:760px){#health-crm-demo.hc-has-upload .hc-content{padding-bottom:calc(270px + env(safe-area-inset-bottom))}}

/* Workbench chrome and task views share the same screen-only palette. */
.hc-topbar,.hc-nav-group,.work-archive-head{display:none}
@media screen {
 #health-crm-demo{--hc-bg:#f3f5f8;--hc-text:#202534;--hc-card:#fff;--hc-border:#dee3eb;--hc-brand:#0052d9;--hc-soft:#edf2fa;--hc-muted:#616b7b;--hc-on-brand:#fff;--hc-red:#b32832;--hc-warning-bg:#fff2dd;--hc-warning:#895612}
 #health-crm-demo [hidden]{display:none!important}
 #health-crm-demo .hc-card,#health-crm-demo .hc-panel{border-radius:8px}
 #health-crm-demo :is(.hc-primary,.hc-secondary,.hc-link),#health-crm-demo :is(input,select,textarea){border-radius:5px}
 #health-crm-demo .hc-link{color:var(--hc-brand)}
 #health-crm-demo .hc-toast{background:#eaf6f0;color:#185f43;border:1px solid #c6e6d5;border-radius:6px}
 #health-crm-demo .hc-global-error,#health-crm-demo .hc-error:not(:empty){border-color:#b32832;color:#9d2331}
 #health-crm-demo .hc-tabs button[aria-pressed=true],#health-crm-demo .hc-more-item[aria-pressed=true]{background:#e8f0ff;color:#0052d9}
 #health-crm-demo .hc-hospital-tabs button[aria-pressed=true]{border-color:var(--hc-brand);color:var(--hc-brand)}
 #health-crm-demo button:active:not(:disabled){filter:brightness(.94)}
 #health-crm-demo button[aria-busy=true]{cursor:progress;opacity:.65}
 #health-crm-demo .hc-brand-tag{color:#53698f;font-weight:600}
 #health-crm-demo .work-report-dates{display:block;color:var(--hc-muted);font-size:14px;letter-spacing:0;font-weight:400;margin-top:4px}
 #health-crm-demo .work-heading time{display:block;margin-top:5px;color:var(--hc-muted);font-size:14px}
 #health-crm-demo .work-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}
 #health-crm-demo .work-stat{position:relative;display:block;text-align:left;background:#fff;color:var(--hc-text);padding:18px 20px;border-radius:8px;min-width:0;box-shadow:inset 0 0 0 1px #e5e9f0}
 #health-crm-demo .work-stat[aria-pressed=true]{background:#0052d9;color:#fff;box-shadow:none}
 #health-crm-demo .work-stat-label{font-size:14px;font-weight:500}
 #health-crm-demo .work-stat strong{display:block;margin-top:9px;font:600 32px/1.15 Arial,sans-serif}
 #health-crm-demo .work-stat small{font-family:inherit;line-height:1.3;font-size:13px;font-weight:400;margin-left:6px}
 #health-crm-demo .work-stat svg{position:absolute;right:16px;top:18px;width:30px;height:30px;padding:6px;stroke:currentColor;stroke-width:1.6;fill:none;background:#eef2fa;border-radius:6px;color:#4b6382}
 #health-crm-demo .work-stat[data-filter=review] svg{background:#fff1db;color:#976019}
 #health-crm-demo .work-stat[data-filter=done] svg{background:#e6f5ed;color:#18744d}
 #health-crm-demo .work-stat[aria-pressed=true] svg{background:#ffffff25;color:#fff}
 #health-crm-demo .work-panel{background:#fff;border-radius:8px;padding:21px 22px 12px;margin-bottom:16px;min-width:0}
 #health-crm-demo .work-panel h2{font-size:19px;margin:0}
 #health-crm-demo .work-tools{display:flex;align-items:center;justify-content:space-between;gap:15px}
 #health-crm-demo #entry-search{width:230px;max-width:100%}
 #health-crm-demo .work-tabs{display:flex;flex-wrap:wrap;gap:15px;border-bottom:1px solid var(--hc-border);margin:10px 0 14px}
 #health-crm-demo .work-tab{min-height:42px;padding:7px 2px;border-radius:0;border-bottom:2px solid transparent;font-size:14px;color:var(--hc-muted)}
 #health-crm-demo .work-tab[aria-pressed=true]{color:var(--hc-brand);border-color:var(--hc-brand);font-weight:600}
 #health-crm-demo .work-grid{display:grid;grid-template-columns:minmax(82px,1.1fr) minmax(62px,.8fr) minmax(84px,1fr) minmax(86px,1fr) minmax(65px,.8fr) minmax(210px,2.2fr);align-items:center;gap:12px;padding:8px 12px}
 #health-crm-demo .work-th,#health-crm-demo .work-archive-head{background:#f3f5f8;color:#586275;font-size:13px}
 #health-crm-demo .work-record{border-bottom:1px solid #e9ecf1;font-size:14px;min-height:58px}
 #health-crm-demo .work-record:last-child{border:0}
 #health-crm-demo .work-record:hover{background:#fafbfe}
 #health-crm-demo .hc-name-link{font-size:inherit;font-weight:650;overflow-wrap:anywhere;text-align:left;padding:5px 0;min-height:34px}
 #health-crm-demo .hc-name-link:hover{color:var(--hc-brand);text-decoration:underline}
 #health-crm-demo .work-actions{display:flex;align-items:center;flex-wrap:wrap;gap:3px 10px}
 #health-crm-demo .work-actions .hc-link{font-size:13px;padding:3px 0;min-height:30px}
 #health-crm-demo .work-date span{display:none}
 #health-crm-demo .work-time .hc-fulfillment-progress{font-size:0;border:none;background:none;padding:0}
 #health-crm-demo .work-time .hc-fulfillment-progress span{font-size:14px;font-variant-numeric:tabular-nums}
 #health-crm-demo .work-status{display:inline-block;white-space:nowrap;padding:2px 8px;border-radius:4px;font-size:12px;color:#4d5969;background:#eff2f5}
 #health-crm-demo .work-status[data-state=review]{color:#865014;background:#fff0d8}
 #health-crm-demo .work-status[data-state=processing]{color:#164da6;background:#e8efff}
 #health-crm-demo .work-status[data-state=done]{color:#166b48;background:#e9f6ef}
 #health-crm-demo .work-status[data-state=failed]{color:#a52836;background:#fcebee}
 #health-crm-demo .hc-job-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap;border-bottom:1px solid var(--hc-border);padding:12px 0}
 #health-crm-demo .hc-job-row:last-child{border:0}
 #health-crm-demo .hc-job-row>div{margin-right:auto;min-width:0;overflow-wrap:anywhere}
 #health-crm-demo .hc-job-row .hc-sub{display:block}
}
@media screen and (min-width:801px){
 #health-crm-demo:not(.hc-auth){grid-template-columns:204px minmax(0,1fr);grid-template-rows:auto 1fr}
 #health-crm-demo:not(.hc-auth) .hc-sidebar{grid-row:1/3;min-height:0;overflow-y:auto}
 #health-crm-demo .hc-chrome{padding:18px 22px}
 #health-crm-demo .hc-tabs{gap:3px;padding:0 12px 15px}
 #health-crm-demo .hc-tabs button{padding:9px 12px;min-height:42px;font-size:14px;border-radius:5px}
 #health-crm-demo .hc-nav-group{display:block;margin:22px 12px 7px;color:var(--hc-muted);font-size:12px}
 #health-crm-demo:not(.hc-auth) .hc-topbar{display:flex;align-items:center;gap:16px;background:white;border-bottom:1px solid var(--hc-border);padding:0 26px;height:55px;color:var(--hc-muted);font-size:13px}
 #health-crm-demo .hc-topbar button{display:flex;align-items:center;justify-content:center;min-height:36px;padding:6px 8px}
 #health-crm-demo .hc-topbar .hc-account{border:0;margin:0 0 0 auto;gap:8px}
 #health-crm-demo .hc-topbar .hc-avatar{width:29px;height:29px;color:var(--hc-brand);background:#e8f0ff}
 #health-crm-demo.hc-nav-collapsed:not(.hc-auth){grid-template-columns:64px minmax(0,1fr)}
 #health-crm-demo.hc-nav-collapsed .hc-tabs button{justify-content:center;font-size:0;gap:0;padding:10px}
 #health-crm-demo.hc-nav-collapsed .hc-nav-group,#health-crm-demo.hc-nav-collapsed .hc-brand-tag{display:none}
 #health-crm-demo.hc-nav-collapsed .hc-tabs{padding:8px}
 #health-crm-demo.hc-nav-collapsed .hc-chrome{padding:16px 8px;justify-content:center}
 #health-crm-demo .hc-content{padding:28px clamp(20px,2.25vw,38px) 56px}
 #health-crm-demo .hc-pagehead{margin-bottom:20px}
 #health-crm-demo :is(.hc-primary,.hc-secondary,.hc-link){min-height:36px;padding:7px 12px;font-size:14px}
 #health-crm-demo :is(input:not([type=checkbox]):not([type=radio]),select){min-height:38px;padding:7px 11px}
 #health-crm-demo .work-panel .hc-filterbar{margin:0 0 16px}
 #health-crm-demo .work-archive-head,#health-crm-demo .hc-history-client{display:grid;grid-template-columns:minmax(140px,1.2fr) minmax(150px,1fr) minmax(135px,1fr) minmax(155px,.85fr);grid-template-areas:"identity time status actions";gap:14px;padding:12px;align-items:center}
 #health-crm-demo .hc-history-client>.hc-actions{justify-content:flex-start;margin:0}
 #health-crm-demo .hc-history-client .hc-actions button{background:none;color:var(--hc-brand);border:none;padding:3px 1px}
}
@media screen and (max-width:1040px){
 #health-crm-demo .work-grid{grid-template-columns:minmax(72px,1fr) minmax(65px,.8fr) minmax(78px,1fr) minmax(82px,1fr) minmax(60px,.7fr) minmax(120px,1.55fr);gap:7px}
}
@media screen and (max-width:800px){
 #health-crm-demo .work-heading{display:flex!important;align-items:center;gap:8px}
 #health-crm-demo[data-view=home] .work-heading h1{margin:0}
 #health-crm-demo .work-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:12px}
 #health-crm-demo .work-stat{padding:13px 12px}
 #health-crm-demo .work-stat svg{top:12px;right:9px;width:24px;height:24px;padding:4px}
 #health-crm-demo .work-stat strong{font-size:26px}
 #health-crm-demo .work-panel{padding:15px 13px 6px}
 #health-crm-demo .work-tools{align-items:stretch;flex-direction:column;gap:10px}
 #health-crm-demo #entry-search{width:100%}
 #health-crm-demo .work-tabs{gap:2px 10px;margin:5px 0}
 #health-crm-demo .work-tab{font-size:13px;min-height:44px}
 #health-crm-demo .work-th{display:none}
 #health-crm-demo .work-record{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"person state" "plan time" "date date" "actions actions";gap:3px 6px;padding:10px 0}
 #health-crm-demo .work-person{grid-area:person}
 #health-crm-demo .work-plan{grid-area:plan;color:var(--hc-muted)}
 #health-crm-demo .work-time{grid-area:time}
 #health-crm-demo .work-time .hc-fulfillment-progress{font-size:12px;color:var(--hc-muted)}
 #health-crm-demo .work-time .hc-fulfillment-progress span{font-size:13px}
 #health-crm-demo .work-state{grid-area:state;justify-self:end}
 #health-crm-demo .work-date{grid-area:date;font-size:13px;color:var(--hc-muted)}
 #health-crm-demo .work-date span{display:inline}
 #health-crm-demo .work-actions{grid-area:actions;gap:4px 13px}
 #health-crm-demo .work-actions .hc-link,#health-crm-demo .hc-name-link{min-height:44px}
 #health-crm-demo .hc-job-row{gap:6px}
}
@media screen and (min-width:801px) and (max-width:1000px){
 #health-crm-demo .work-archive-head{display:none}
 #health-crm-demo .hc-history-client{
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-areas:"identity time" "status actions";
  gap:6px 12px;
 }
 #health-crm-demo .hc-history-client .hc-actions{flex-wrap:wrap;justify-content:flex-end}
}
/* Keep tappable content in its own viewport above the mobile navigation. */
@media screen and (max-width:800px){
 #health-crm-demo:not(.hc-auth){
  display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;
  height:100dvh;min-height:0;overflow:hidden;
 }
 #health-crm-demo:not(.hc-auth) .hc-sidebar{display:contents}
 #health-crm-demo:not(.hc-auth) .hc-chrome{grid-row:1;grid-column:1}
 #health-crm-demo:not(.hc-auth) .hc-content{grid-row:2;grid-column:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding-bottom:22px}
 #health-crm-demo:not(.hc-auth) .hc-tabs{grid-row:3;grid-column:1;position:static}
 #health-crm-demo.hc-has-upload:not(.hc-auth) .hc-content{padding-bottom:200px;scroll-padding-bottom:170px}
}

.hc-upload-status details,.hc-upload-status .hc-upload-row{width:100%}.hc-upload-status details{max-height:35vh;overflow:auto}.hc-upload-status summary{cursor:pointer;font-weight:600}.hc-upload-status .hc-upload-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.hc-upload-row>div:first-child{display:grid;gap:2px}.hc-upload-status details .hc-upload-row{padding-block:8px;border-top:1px solid #e7e9ee}
@media(max-width:760px){.hc-upload-status .hc-upload-row{flex-wrap:wrap}.hc-upload-row .hc-actions{margin-left:auto}}

.hc-intake-day{display:grid;gap:8px;border-top:1px solid #e4e7ed;padding-block:14px}.hc-intake-day label,.hc-intake-day a{overflow-wrap:anywhere}.hc-intake-day button{justify-self:start}.hc-intake-day [hidden]{display:none}

