@font-face{font-family:"CARESTEP Pretendard";src:url("./pretendard-variable-1.3.9.woff2") format("woff2");font-weight:100 900;font-display:swap}
:root{--muted:#58677d;--line:#dce4ef}
body{font-family:"CARESTEP Pretendard","Malgun Gothic",system-ui,sans-serif;font-size:15px;line-height:1.55}
button,input,select,textarea{font-family:inherit}
.shell{grid-template-columns:218px minmax(0,1fr)}
.main,.view,.card,.split,.grid2,.plan-grid,.table-wrap,.hq-payment-card,.hq-payment-head,.head>div{min-width:0;max-width:100%}
.main{margin:0 auto;padding:24px;width:100%}
.top{gap:12px;top:0;flex-wrap:wrap}.brand b{font-size:18px}.brand span{font-size:12px}
.top-actions{flex-wrap:wrap}.pill{font-size:12px}.hq-quick-search{min-width:180px}.hq-quick-search input{font-size:14px;min-height:42px}
.btn,.btn.small,.nav button,.hq-nav-link{font-size:14px;min-height:42px;padding:9px 13px;line-height:1.4}
.btn:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,a:focus-visible{outline:3px solid #84a7ff;outline-offset:3px}
.hq-nav-group-toggle{font-size:12px!important;min-height:40px}
.input,.plan-card .input{font-size:15px;min-height:44px;max-width:100%;width:100%;padding:10px 12px}
input[type="checkbox"]{width:18px;height:18px;flex-shrink:0;accent-color:var(--blue)}
.head h1{font-size:24px;line-height:1.35}.card h2{font-size:18px}.plan-card h3{font-size:21px}
.head p,.card .sub,.muted,.notice,.warn,.field label,.feature,.limits label,.audit,.empty,.clinic-item small,.kpi span,.kpi small{font-size:13px;line-height:1.65}
.main [style*="font-size:8"],.main [style*="font-size:9"],.main [style*="font-size:10"],.main [style*="font-size:11"]{font-size:12px!important;line-height:1.6!important}
.status,.cs-status,.cs-reasons span,.hq-nav-count{font-size:12px;line-height:1.4}
.table th,.table td,.launch-table th,.launch-table td{font-size:13px;padding:12px;line-height:1.6;overflow-wrap:anywhere}
.table-wrap{width:100%;overflow:auto;overscroll-behavior-x:contain}
.table-wrap:focus-visible{outline:3px solid #84a7ff;outline-offset:2px}
.kpis,.customer-success-kpis,.launch-kpis{grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr))!important}
.kpi strong{font-size:25px}.kpi{padding:16px}.mini span,.hq-service span,.approval-center-card span,.approval-center-card small{font-size:12px}
.kpi small,.mini span,.approval-center-card small{color:#58677d}
.clinic-item{padding:14px}.clinic-item b{font-size:15px}.clinic-list{max-height:75vh}
.form-grid,.price-row,.limits{gap:12px}.field{gap:6px;margin-top:16px}
.notice,.warn,.critical-note{padding:14px;font-size:13px;overflow-wrap:anywhere}
.bulk-bar{gap:12px}.bulk-bar label{display:flex;align-items:center;gap:8px}
.hq-tabs{display:flex;gap:8px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding-bottom:12px;margin:18px 0}
.hq-tabs [aria-selected="true"]{background:var(--blue);border-color:var(--blue);color:#fff}
.hq-policy{margin:14px 0}.hq-policy>summary{cursor:pointer;font-weight:700;padding:12px}
.hq-clinic-link{border:0;color:var(--blue);padding:0;text-align:left;min-height:32px}
.hq-load-status{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:10px 0;padding:10px 12px;border-radius:10px;background:#f1f5fc;color:#4c5c73;font-size:13px}
.hq-load-status[data-state="error"]{background:#fff3f1;color:#963d34;border:1px solid #efd1cd}
.hq-load-status[data-state="loading"]:before{content:"";width:16px;height:16px;border:2px solid #c6d6ff;border-top-color:var(--blue);border-radius:50%;animation:hq-spin .8s linear infinite}
@keyframes hq-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.hq-load-status[data-state="loading"]:before{animation:none}}
.hq-editor-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0}
.hq-edit-state{font-size:13px;color:#55657a;margin-right:auto}.hq-edit-state.dirty{color:#97600b;font-weight:700}
.hq-editor [disabled]{color:#435168;opacity:1;background:#f5f7fb}
.hq-editor .hq-read-value{display:block;font-size:16px;font-weight:700;color:var(--ink);padding:8px 0;overflow-wrap:anywhere}
.hq-editor[data-editing="false"] input:not([type="checkbox"]),.hq-editor[data-editing="false"] textarea,.hq-editor[data-editing="false"] select{display:none}
.hq-editor[data-editing="true"] .hq-read-value{display:none}
.hq-price-summary{background:#f4f7ff;border-radius:10px;padding:12px;font-size:14px;line-height:1.8}
.hq-price-summary strong{display:block;color:#163b83;font-size:17px}
.hq-editor-note{font-size:13px;color:#5a6a80;margin:8px 0}
.hq-review{border:0;border-radius:18px;padding:24px;width:min(640px,calc(100vw - 28px));max-height:85vh;overflow:auto;color:var(--ink);box-shadow:0 20px 80px #17203340}
.hq-review::backdrop{background:#17203399}.hq-review h2{font-size:21px;margin-top:0}
.hq-review-table{width:100%;border-collapse:collapse}.hq-review-table td,.hq-review-table th{padding:10px;border-bottom:1px solid var(--line);text-align:left;overflow-wrap:anywhere;font-size:14px}
.hq-review-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}
.hq-subscription-search{max-width:360px}.hq-current-contract{display:block;font-size:12px;color:#52627b;margin-top:5px}
.hq-detail-loading{padding:20px;border:1px solid var(--line);border-radius:12px}
.hq-clinic-workspace{align-items:start}
.hq-clinic-detail-region{min-width:0}
.hq-clinic-detail-region>.hq-load-status{margin:0 0 10px;min-height:40px}
.hq-clinic-list-panel{position:sticky;top:100px}
.hq-clinic-list-panel .clinic-list{max-height:max(160px,calc(100dvh - 430px))}
.hq-clinic-list-summary{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:12px 0;color:var(--muted);font-size:13px}
.clinic-item[role="button"]:focus-visible{outline:3px solid #84a7ff;outline-offset:-3px}
.clinic-item[aria-pressed="true"]{border-color:var(--blue);background:#eef3ff;box-shadow:inset 4px 0 var(--blue)}
#clinicDetail{scroll-margin-top:100px}
#clinicDetail .detail-title{flex-wrap:wrap;gap:12px;border-bottom:1px solid var(--line);padding-bottom:14px}
#clinicDetail .detail-title h2{font-size:22px;margin:0}
.hq-detail-tabs{gap:6px;margin:14px 0}
.hq-detail-tabs .btn{font-size:13px;padding:8px 10px}
.hq-detail-pane[hidden]{display:none}
.hq-detail-pane>h2:first-child{margin-top:0!important}
.hq-back-to-list{display:none}
.hq-contract-summary{border:1px solid #d7e3fa;background:#f8faff;border-radius:12px;padding:16px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:14px 0}
.hq-contract-summary span,.hq-contract-summary strong,.hq-contract-summary small{display:block}
.hq-contract-summary span{font-size:13px;color:var(--muted)}
.hq-contract-summary strong{font-size:21px;color:#173e85;margin:6px 0}
.hq-contract-summary small{font-size:13px;line-height:1.7}
.hq-contract-summary p{grid-column:1/-1;font-size:13px;margin:0;padding-top:12px;border-top:1px solid var(--line)}
.hq-feature-details{margin:16px 0;border:1px solid var(--line);border-radius:10px;padding:12px}
.hq-feature-details summary{font-size:14px;font-weight:700;cursor:pointer}
.hq-feature-details .entitlement{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.hq-feature-details .entitlement span{font-size:12px;padding:6px 9px;line-height:1.5}
@media(max-width:900px){.hq-clinic-list-panel{position:static}.hq-clinic-list-panel .clinic-list{max-height:280px}.hq-back-to-list{display:block}#clinicDetail{scroll-margin-top:180px}.hq-clinic-workspace>.hq-clinic-detail-region{grid-column:1}.hq-detail-tabs{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior:contain}.hq-detail-tabs .btn{flex:0 0 auto;white-space:nowrap}}
@media(max-width:650px){.hq-contract-summary{grid-template-columns:minmax(0,1fr)}.hq-contract-summary>div+div{border-top:1px solid var(--line);padding-top:12px}#clinicDetail .detail-title .hq-back-to-list{width:100%}}
.hq-voice-body{white-space:pre-wrap;overflow-wrap:anywhere;margin-top:10px;max-width:440px}
.hq-voice-save-result{display:block;max-width:220px;white-space:normal;overflow-wrap:anywhere;margin-top:6px;font-size:12px}
.hq-content-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}
.hq-content-filters{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;margin-bottom:14px}
.hq-content-filters>label{font-size:13px;color:var(--muted);flex:1 1 155px}
.hq-content-filters>label:first-child{flex:2 1 260px}.hq-content-filters .input{margin-top:5px}
.hq-content-review{display:flex;align-items:center;gap:6px;min-height:44px}
.hq-content-help{font-size:13px;line-height:1.7;color:var(--muted);margin:12px 0}
.hq-content-help summary{cursor:pointer;min-height:32px}
.hq-content-bulk{flex-wrap:wrap;gap:12px}.hq-content-bulk label{display:flex;align-items:center;gap:8px;font-size:14px}
.hq-content-bulk .btn{margin-left:auto}.hq-content-result{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;margin:12px 0}
.hq-content-table{table-layout:fixed;min-width:950px}.hq-content-table th:nth-child(1){width:60px}.hq-content-table th:nth-child(2){width:27%}
.hq-content-table th:nth-child(4){width:90px}.hq-content-table th:nth-child(7){width:160px}
.hq-content-table td{vertical-align:top;white-space:normal;overflow-wrap:anywhere}
.hq-content-title b{display:block;font-size:15px;line-height:1.6}.hq-content-title .muted{display:block;margin-top:4px}
.hq-content-actions{display:flex;gap:6px;flex-wrap:wrap}.hq-content-due{color:#925300;font-size:13px}
.hq-content-check{display:flex;align-items:center;gap:8px;min-height:42px}.hq-content-check span{display:none}
@media(max-width:650px){
  .hq-content-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}.hq-content-kpis .kpi{min-width:0;padding:14px}
  .hq-content-filters>label{flex-basis:100%}.hq-content-filters>.btn{width:100%}
  .hq-content-table,.hq-content-table tbody{display:block;min-width:0;width:100%}
  .hq-content-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .hq-content-table tr{display:block;border:1px solid var(--line);border-radius:12px;padding:12px;margin:12px 0}
  .hq-content-table td{display:block;border:0;padding:6px 0!important;width:auto!important}
  .hq-content-table td::before{content:attr(data-label);display:block;font-size:12px;color:var(--muted);margin-bottom:3px}
  .hq-content-table td.hq-content-title::before{display:none}.hq-content-check span{display:inline}
}
.toast{font-size:14px;max-width:calc(100vw - 36px);line-height:1.6}
@media(max-width:1100px){#planGrid{grid-template-columns:repeat(2,minmax(0,1fr))}.split{grid-template-columns:270px minmax(0,1fr)}}
@media(max-width:900px){.shell{grid-template-columns:minmax(0,1fr)}.main{padding:16px}.split,.grid2{grid-template-columns:minmax(0,1fr)}.hq-nav{display:flex;flex-wrap:wrap;gap:6px;overflow:visible}.hq-nav-group{min-width:0;margin:0;flex:1 1 150px}.hq-quick-search{order:3;margin:0;max-width:none;flex-basis:100%}.top{padding:12px 16px}.clinic-list{max-height:300px}}
@media(max-width:650px){#planGrid,.plan-grid,.form-grid,.hq-payment-kpis,.hq-deployment-grid{grid-template-columns:minmax(0,1fr)!important}.main{padding:12px}.head{display:block}.head .toolbar{margin-top:12px}.card{padding:14px}.brand{width:100%}.top-actions{width:100%;gap:6px}.top-actions .pill{margin-right:auto}.hq-tabs .btn{flex:1 1 120px}.hq-review{padding:18px}.hq-review-table td,.hq-review-table th{font-size:13px;padding:8px}.bulk-bar .btn{width:100%}.toolbar .grow{min-width:0;flex-basis:100%}.hq-payment-actions{flex-wrap:wrap}.content-setting{grid-template-columns:auto minmax(0,1fr)}}

/* Shared reading scale and focused operations workspace. */
.btn,.btn.small,.nav button,.hq-nav-link{font-weight:650}
.status,.cs-status{font-weight:700}
.hq-onboarding-kpis{grid-template-columns:repeat(auto-fit,minmax(min(100%,155px),1fr))!important}
.hq-onboarding-kpis span,.customer-success-kpis span,.cs-subline,.customer-success-note{font-size:13px;line-height:1.6;color:var(--muted)}
.hq-onboarding-kpis b,.customer-success-kpis b{font-size:24px;font-weight:700;font-variant-numeric:tabular-nums}
.onboarding-table th,.onboarding-table td,.cs-next,.cs-score b{font-size:13px;line-height:1.65}
.onboarding-reasons span,.onboarding-step-dots i{font-size:12px;line-height:1.5}
.main .hq-payment-table-title{font-size:14px}
.table td,.onboarding-table td,.hq-read-value,.hq-contract-summary strong{font-variant-numeric:tabular-nums}
.hq-header-tools{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex:1;min-width:0}
.hq-header-tools .hq-quick-search{flex:1;max-width:440px;margin:0}
.hq-mobile-control{display:none}
.hq-nav-backdrop{position:fixed;inset:var(--hq-header-height,70px) 0 0;border:0;background:#17203380;z-index:40}
.hq-clinic-list-panel{top:calc(var(--hq-header-height,76px) + 16px)}
#clinicDetail{scroll-margin-top:calc(var(--hq-header-height,76px) + 16px)}
.hq-contract-summary{grid-template-columns:minmax(0,1fr)}
.hq-contract-summary>div>strong{font-size:24px}
.hq-catalog-comparison,.hq-contract-settings{border-top:1px solid var(--line);padding-top:10px}
.hq-catalog-comparison summary,.hq-contract-settings summary{cursor:pointer;font-size:14px;font-weight:650;padding:7px 0}
.hq-catalog-comparison>div{margin:12px 0}
.hq-catalog-comparison strong{font-size:18px}
.hq-contract-settings>.form-grid{margin-top:14px}
.hq-contract-settings>button{margin:14px 0}
.hq-load-status{min-height:28px;padding:6px 10px;font-size:13px}
.hq-load-status[data-state="ready"]{min-height:24px;padding:0;background:transparent;color:var(--muted);justify-content:flex-end;margin:6px 0;font-size:12px}
.head>.hq-load-status{margin-left:auto;max-width:440px}
.hq-clinic-detail-region>.hq-load-status[data-state="ready"]{min-height:24px}
.hq-detail-loading{min-height:300px}
.hq-loading-lines{display:grid;gap:18px;margin-top:28px}
.hq-loading-lines i{height:34px;border-radius:8px;background:#edf2f9}
.hq-loading-lines i:last-child{width:65%}
.hq-compact-wrap{overflow:auto;max-height:70vh;border:1px solid var(--line);border-radius:12px}
.hq-compact-table{min-width:0!important;width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0}
.hq-compact-table th,.hq-compact-table td{font-size:13px;padding:12px;line-height:1.65;vertical-align:top;overflow-wrap:anywhere;word-break:normal;border-bottom:1px solid var(--line)}
.hq-compact-table th{position:sticky;top:0;z-index:3;background:#f6f8fc;color:#526178}
.hq-compact-table th:first-child,.hq-compact-table td:first-child{position:sticky;left:0;width:26%;background:#fff;z-index:2}
.hq-compact-table th:first-child{z-index:4;background:#f6f8fc}
.hq-compact-table th:nth-child(2){width:16%}
.hq-compact-table th:nth-child(3){width:18%}
.hq-compact-table th:nth-child(4){width:23%}
.hq-compact-table th:last-child{width:17%}
.hq-compact-table td:first-child button{text-align:left;max-width:100%;white-space:normal}
.hq-row-toggle{cursor:pointer;color:#164aaf;font-weight:650;font-size:13px;min-height:42px;padding:7px 0;border:0;background:transparent;text-align:left}
.hq-row-toggle::before{content:"▸ ";}.hq-row-toggle[aria-expanded="true"]::before{content:"▾ ";}
.hq-compact-table .hq-compact-detail-row>td{position:static;width:auto;background:#f8faff;padding:14px 18px}
.hq-row-details dl{margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 20px}
.hq-row-details dl>div{padding:9px 0;border-top:1px solid var(--line)}
.hq-row-details dt{font-size:12px;color:var(--muted);font-weight:600}
.hq-row-details dd{margin:4px 0 0}
.hq-row-details .onboarding-step-dots{display:grid;gap:7px}
.hq-row-details .onboarding-step-dots i{width:auto;height:auto;min-height:30px;display:block;padding:7px}
.hq-contract-plan-label{display:block;font-size:12px;color:var(--muted);margin-bottom:4px}
@media(max-width:1100px) and (min-width:901px){
  .hq-header-tools{flex-wrap:wrap;gap:6px}
  .hq-header-tools .hq-quick-search{min-width:160px}
}
@media(max-width:900px){
  .top{padding:10px 12px;gap:10px;flex-wrap:wrap}
  .top .hq-mobile-control{display:block;flex:0 0 auto;min-height:42px;font-size:13px}
  .top .brand{flex:1;min-width:0;width:auto}
  .top .brand b{font-size:16px}.top .brand span{font-size:12px;line-height:1.4;margin:2px 0 0}
  .top .hq-header-tools{display:none;flex:0 0 100%;padding:8px 0 2px}
  .hq-tools-open .top .hq-header-tools{display:flex;flex-direction:column;align-items:stretch}
  .hq-header-tools .hq-quick-search{order:0;max-width:none;width:100%}
  .hq-header-tools .top-actions{justify-content:flex-end;flex-wrap:wrap;width:100%}
  #nav.hq-nav{display:none;position:fixed;top:var(--hq-header-height,70px);bottom:0;left:0;width:min(330px,90vw);max-height:none;overflow:auto;z-index:50;padding:14px;background:#fff;border-right:1px solid var(--line)}
  .hq-menu-open #nav.hq-nav{display:block}
  .hq-menu-open{overflow:hidden}
  #nav .hq-mobile-control{display:block;width:100%;margin-bottom:14px}
  #nav .hq-nav-group{display:block;min-width:0;margin:0 0 10px;width:100%}
  #nav .hq-nav-group-toggle{min-height:44px;font-size:13px!important}
  #nav .hq-nav-items>button{white-space:normal}
  .head>.hq-load-status{max-width:100%;margin:8px 0}
  .hq-clinic-list-panel{position:static}
}
@media(max-width:650px){
  .hq-contract-summary>div+div{border:0;padding-top:0}
  .hq-compact-wrap{max-height:none;overflow:visible;border:0}
  .hq-compact-table,.hq-compact-table tbody{display:block;width:100%}
  .hq-compact-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .hq-compact-table tr{display:block;border:1px solid var(--line);border-radius:12px;padding:12px;margin:12px 0;background:#fff}
  .hq-compact-table td,.hq-compact-table td:first-child{display:block;position:static;width:auto;padding:7px 0;border:0}
  .hq-compact-table td[data-label]::before{content:attr(data-label);display:block;font-size:12px;color:var(--muted);margin-bottom:3px}
  .hq-compact-table td:first-child::before{display:none}
  .hq-row-toggle{min-height:44px}
  .hq-compact-table .hq-compact-detail-row{margin-top:-12px;border-top-left-radius:0;border-top-right-radius:0;background:#f8faff}
  .hq-compact-table .hq-compact-detail-row>td{padding:0}
  .hq-row-details dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}
  .hq-row-details dd{min-width:0}
}

/* Prioritize pending work and keep secondary information optional. */
.hq-dashboard-details{border:1px solid var(--line);border-radius:14px;background:#fff;margin:16px 0;padding:16px}
.hq-dashboard-details>summary{cursor:pointer;font-size:16px;font-weight:700;padding:4px 0;min-height:36px}
.hq-dashboard-details[open]>summary{margin-bottom:14px}
.hq-dashboard-details .kpis{margin-top:12px}
#dashboard .approval-center-grid{grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:10px}
#dashboard .approval-center-card{min-height:100px;padding:14px}
#dashboard .approval-center-card b{font-size:24px;line-height:1.5}
#dashboard .approval-center-card b[data-state="loading"],#dashboard .approval-center-card b[data-state="error"],#acTotalPending{font-size:18px}
#dashboard .approval-center-card.hq-action-zero{border-color:var(--line);background:#f8fafc}
#dashboard .approval-center-card.hq-action-zero b{color:var(--muted)}
.hq-back-to-list.hq-source-back{display:inline-block}
.hq-journey-count,.hq-journey-row,.hq-journey-detail-row,.plan-card{scroll-margin-top:calc(var(--hq-header-height,76px) + 18px)}
.hq-journey-count{font-size:13px;color:var(--muted)}
.hq-journey-filters{display:grid;grid-template-columns:minmax(180px,1fr) 180px auto;gap:8px}
.hq-journey-wrap{max-height:75vh;overflow:auto}
.hq-journey-table{min-width:0!important;table-layout:fixed}
.hq-journey-table th{position:sticky;top:0;z-index:2}
.hq-journey-table th:nth-child(1){width:60px}
.hq-journey-table th:nth-child(2){width:38%}
.hq-journey-table th:nth-child(3){width:16%}
.hq-journey-table th:nth-child(4){width:70px}
.hq-journey-table th:last-child{width:auto}
.hq-journey-row td>b{font-size:15px;line-height:1.6}
.hq-journey-category{display:block;font-size:13px;line-height:1.6;margin-top:4px}
.hq-journey-actions{display:flex;gap:8px;flex-wrap:wrap}
.hq-journey-detail-row td{background:#f8faff;padding:18px}
.hq-journey-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0}
.hq-journey-details dt{font-size:13px;font-weight:700;color:var(--muted);margin-bottom:6px}
.hq-journey-details dd{font-size:14px;line-height:1.7;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.hq-pagination{display:flex;align-items:center;justify-content:center;gap:16px;flex-wrap:wrap;padding:16px 0 4px}
.hq-pagination span{font-size:13px;color:var(--muted)}
.hq-plan-comparison{margin:18px 0}
.hq-plan-comparison h2{font-size:20px}
.hq-plan-compare-table{min-width:0;table-layout:fixed}
.hq-plan-compare-table th:nth-child(1){width:19%}
.hq-plan-compare-table th:nth-child(2){width:25%}
.hq-plan-compare-table th:nth-child(3){width:14%}
.hq-plan-compare-table th:nth-child(4){width:19%}
.hq-plan-compare-table th:nth-child(5){width:23%}
.hq-plan-compare-table [aria-pressed="true"]{background:#eaf1ff;border-color:var(--blue);color:#1749c4}
.hq-plan-disabled{display:block;font-size:12px;font-weight:400;color:var(--muted)}
#planGrid{display:block!important}
#planGrid>.notice{margin:16px 0}
#planGrid .plan-card{max-width:100%;width:100%;padding:22px}
#planGrid .price-row,#planGrid .limits{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:650px){
  .hq-journey-filters{grid-template-columns:minmax(0,1fr)}
  #dashboard .approval-center-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  #dashboard .approval-center-card{padding:12px;min-height:104px}
  #dashboard .approval-center-card span,#dashboard .approval-center-card small{font-size:12px}
  .hq-journey-wrap{max-height:none;overflow:visible;border:0}
  .hq-journey-table,.hq-journey-table tbody,.hq-plan-compare-table,.hq-plan-compare-table tbody{display:block;width:100%}
  .hq-journey-table thead,.hq-plan-compare-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .hq-journey-table tr,.hq-plan-compare-table tr{display:block;background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px;margin:12px 0}
  .hq-journey-table td,.hq-plan-compare-table td,.hq-plan-compare-table tbody th{display:block;border:0;padding:7px 0;width:auto!important}
  .hq-journey-table td[data-label]::before,.hq-plan-compare-table td[data-label]::before{content:attr(data-label);display:inline-block;margin-right:8px;font-size:12px;color:var(--muted)}
  .hq-journey-table td:nth-child(2)::before{display:none}
  .hq-journey-table .hq-journey-detail-row{background:#f8faff;margin-top:-12px;border-top-left-radius:0;border-top-right-radius:0}
  .hq-journey-details{grid-template-columns:minmax(0,1fr)}
  .hq-plan-compare-table tbody th{position:static;font-size:17px;background:transparent}
  .hq-plan-compare-table .btn{width:100%}
  #planGrid .plan-card{padding:16px}
  #planGrid .price-row,#planGrid .limits{grid-template-columns:minmax(0,1fr)}
}

/* Readable task counts and compact secondary information. */
[hidden]{display:none!important}
.hq-action-summary{display:flex;align-items:baseline;gap:7px 10px;flex-wrap:wrap;margin:14px 0;font-size:14px;color:var(--ink)}
.hq-action-summary #acTotalPending{font-size:24px;color:var(--ink);font-variant-numeric:tabular-nums}
.hq-action-summary small{display:block;font-size:14px;color:var(--muted);margin-left:auto}
.hq-zero-actions{border-top:1px solid var(--line);padding-top:12px;margin-top:14px}
.hq-zero-actions>summary,.hq-help>summary{min-height:42px;padding:10px 0;cursor:pointer;font-size:14px;font-weight:650}
.hq-zero-actions .approval-center-grid{margin-top:10px}
.hq-no-actions{padding:14px;border-radius:10px;background:#f3f7fc;font-size:15px}
.hq-help{border:1px solid var(--line);border-radius:10px;padding:0 12px;margin:12px 0}
.hq-help>.notice{margin:0 0 12px!important;background:transparent;padding:8px 0;border:0}
.hq-journey-summary{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.hq-journey-summary .kpi{padding:12px 16px}
.hq-journey-summary small{font-size:13px}
.hq-compact-table td,.table td{font-size:14px;line-height:1.65}
.hq-compact-table th,.table th,.cs-subline,.hq-row-details dt{font-size:13px}
.hq-adoption-table th:first-child,.hq-adoption-table td:first-child{width:23%}
.hq-adoption-table th:nth-child(2){width:13%}
.hq-adoption-table th:nth-child(3){width:27%}
.hq-adoption-table th:nth-child(4){width:24%}
.hq-adoption-table th:last-child{width:13%}
.hq-adoption-table .cs-next{font-size:14px;line-height:1.7}
.hq-adoption-table .cs-reasons span{font-size:13px;line-height:1.6}
#surveys>.grid2,#crm>.grid2{grid-template-columns:minmax(0,1fr)}
#hqSubscriptionStatus{max-width:220px;margin:8px 0 8px 8px}
#surveys .head .toolbar{flex-wrap:wrap}
#surveys .head .toolbar>.input{width:auto;min-width:160px}
#surveys[aria-busy="true"] .kpi strong{color:var(--muted)}
@media(max-width:650px){
 .hq-action-summary small{width:100%;margin-left:0}
 .hq-journey-summary .kpi{padding:12px 8px}.hq-journey-summary .kpi span{font-size:13px}.hq-journey-summary small{display:none}
 .hq-journey-summary .kpi strong{font-size:22px}
 .hq-adoption-table td:first-child{width:auto}
 #hqSubscriptionStatus{max-width:100%;margin:8px 0}
 #surveys .head .toolbar>.input{width:100%}
}


/* Hospital portfolios: compact overview, readable reasons and explicit next steps. */
.hq-core-metrics{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;margin-bottom:8px!important}
.hq-core-metrics>div{min-width:0;padding:12px!important}
.hq-core-metrics span{display:block;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.hq-core-metrics b{font-size:24px!important}
.hq-portfolio-metrics{margin-bottom:16px}
.hq-portfolio-metrics>summary,.hq-list-filters>summary,.hq-help>summary{cursor:pointer;min-height:42px;padding:10px 0;font-size:14px;font-weight:650}
.hq-extra-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;margin:8px 0}
.hq-extra-metrics>div{padding:12px;background:#fff;border:1px solid var(--line);border-radius:10px}
.hq-extra-metrics span{display:block;font-size:13px;color:var(--muted)}
.hq-extra-metrics b{font-size:20px}
.hq-portfolio-metrics>[id$="Generated"]{display:block;font-size:13px;padding:8px 0}
.cs-filters.hq-portfolio-search{display:flex;flex-wrap:nowrap;gap:8px;margin:12px 0 0}
.hq-portfolio-search .input{flex:1;min-width:0}
.hq-portfolio-search .btn{flex-shrink:0}
.hq-list-filters{margin:4px 0}
.hq-filter-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:8px 0}
.hq-filter-fields label{display:grid;gap:6px;font-size:13px;color:var(--muted)}
.hq-list-filters .hq-priority-legend{display:block;font-size:13px;padding:8px 0}
.hq-results-summary{font-size:14px;color:var(--ink);margin:8px 0 12px;line-height:1.65;overflow-wrap:anywhere}
.onboarding-table .onboarding-reasons span,.hq-adoption-table .cs-reasons span,.hq-adoption-table .cs-next{font-size:14px;line-height:1.65}
.onboarding-reasons span,.cs-reasons span{padding:4px 8px}
.hq-more-reasons{flex-basis:100%;margin-top:4px}
.hq-more-reasons>summary,.hq-technical-help>summary{cursor:pointer;font-size:14px;color:var(--blue);min-height:42px;padding:10px 0}
.hq-reason-list{display:flex;flex-wrap:wrap;gap:5px;margin-top:4px}
.hq-next-action{display:block;margin-top:10px;white-space:normal;text-align:left;color:var(--blue)}
.hq-technical-help p{font-size:13px;line-height:1.65;margin:4px 0}
.hq-portfolio-loading td{height:170px;min-width:0}
.hq-portfolio-loading span{display:block;font-size:14px;color:var(--muted)}
.hq-portfolio-loading .hq-loading-lines{max-width:560px}
@media(max-width:650px){
 .hq-core-metrics{gap:6px!important}
 .hq-core-metrics>div{padding:10px 8px!important}
 .hq-core-metrics b{font-size:22px!important}
 .hq-filter-fields{grid-template-columns:minmax(0,1fr)}
 .hq-more-reasons{width:100%}
}

.hq-adoption-table .cs-status{font-size:14px;line-height:1.6}

/* Common HQ reading and state scale, including operational and legacy screens. */
:root{
 --hq-text:15px;--hq-table-text:14px;--hq-help-text:13px;
 --hq-weight:400;--hq-medium:600;--hq-strong:700;
 --hq-neutral-bg:#f0f3f7;--hq-neutral-ink:#526178;
 --hq-ok-bg:#eaf7f1;--hq-ok-ink:#16704e;
 --hq-progress-bg:#eaf1ff;--hq-progress-ink:#174cbd;
 --hq-attention-bg:#fff6df;--hq-attention-ink:#805700;
 --hq-error-bg:#fff0ef;--hq-error-ink:#a52a20;
}
body{font-size:var(--hq-text);font-weight:var(--hq-weight);line-height:1.65}
button,input,select,textarea{font-family:inherit}
.btn,.btn.small,.nav button,.hq-nav-link,.hq-priority-chip{font-size:var(--hq-table-text);font-weight:var(--hq-medium);min-height:42px;line-height:1.5}
.head h1{font-size:24px;font-weight:var(--hq-strong)}
.card h2{font-size:18px;font-weight:var(--hq-strong)}
.card b,.card strong,.link,.go-live-live,.go-live-attention,.go-live-setting{font-weight:var(--hq-strong)}
.plan-card label,.login p,.login .field label,.hq-monthly-report-kpis span,
.launch-kpi span,.launch-kpi small,.launch-backup-row small,.hq-deployment-grid span,
.hq-deployment-summary,.hq-service span,.hq-service b,.hq-priority-legend,
.bulk-result,.approval-row small,.hq-empty-action span,.hq-current-contract,.hq-contract-plan-label{font-size:var(--hq-help-text);line-height:1.65}
.launch-check,.launch-manual label,.launch-backup-row b,.hq-deployment-grid b,
.hq-empty-action b,.hq-payment-kpis b,.hq-monthly-report-kpis b{font-size:var(--hq-table-text);line-height:1.65}
.launch-kpi b{font-size:24px;font-weight:var(--hq-strong);font-variant-numeric:tabular-nums}
.hq-monthly-report-kpis b,.hq-payment-kpis b{font-size:20px;font-weight:var(--hq-strong);font-variant-numeric:tabular-nums}
.launch-check b,.launch-manual b,.launch-backup-row b,.field label,.plan-card label{font-weight:var(--hq-medium)}
.launch-check .muted{font-size:var(--hq-help-text)}
.table th,.table td,.launch-table th,.launch-table td,.hq-compact-table th,.hq-compact-table td{line-height:1.65}
.table td,.launch-table td,.hq-compact-table td{font-size:var(--hq-table-text)}
.table th,.launch-table th,.hq-compact-table th{font-size:var(--hq-help-text);font-weight:var(--hq-medium)}
.table th.right,.table td.right,.launch-table th.right,.launch-table td.right,.hq-compact-table th.right,.hq-compact-table td.right{text-align:right;font-variant-numeric:tabular-nums}
.table td:first-child:not(.right){text-align:left}
.status,.cs-status,.pay-badge,.launch-status{
 display:inline-flex;align-items:center;max-width:100%;padding:4px 8px;border-radius:8px;
 font-size:var(--hq-help-text);font-weight:var(--hq-medium);line-height:1.6;white-space:normal;overflow-wrap:anywhere;
 background:var(--hq-neutral-bg);color:var(--hq-neutral-ink);
}
.status:is(.active,.published,.answered,.approved,.paid),.pay-badge:is(.paid,.on),.launch-status.good,.cs-status.success{background:var(--hq-ok-bg)!important;color:var(--hq-ok-ink)!important}
.status:is(.trialing,.registering,.reviewing,.planned,.building),.cs-status.healthy{background:var(--hq-progress-bg)!important;color:var(--hq-progress-ink)!important}
.status:is(.pending,.new,.review),.cs-status.watch{background:var(--hq-attention-bg)!important;color:var(--hq-attention-ink)!important}
.status:is(.past_due,.failed,.rejected,.danger),.pay-badge:is(.failed,.warn),.launch-status.bad,.cs-status.risk{background:var(--hq-error-bg)!important;color:var(--hq-error-ink)!important}
.status:is(.suspended,.archived,.canceled,.paused,.hold),.cs-status.starting{background:var(--hq-neutral-bg)!important;color:var(--hq-neutral-ink)!important}
.hq-priority-chip{padding:8px 12px}
.card{border-radius:14px}
.notice,.warn,.critical-note,.billing-runtime-note{font-size:var(--hq-help-text);line-height:1.7}
.hq-quick-item{min-height:64px;line-height:1.6;text-align:left}
.hq-quick-item div{min-width:0;overflow-wrap:anywhere}
.hq-quick-item b{font-size:var(--hq-text);font-weight:var(--hq-strong)}
.hq-quick-item small,.hq-quick-item span,.hq-quick-empty{font-size:var(--hq-help-text)}
.hq-quick-item[aria-selected="true"]{background:#eaf1ff!important;box-shadow:inset 3px 0 var(--blue)}
.hq-quick-item:focus-visible{outline:3px solid #84a7ff;outline-offset:-3px}
.hq-sender-table,.hq-audit-table{table-layout:fixed;min-width:0}
.hq-sender-table th:nth-child(1){width:21%}.hq-sender-table th:nth-child(2){width:18%}
.hq-sender-table th:nth-child(3){width:13%}.hq-sender-table th:nth-child(4){width:25%}.hq-sender-table th:nth-child(5){width:23%}
.hq-sender-table .btn{margin:0 4px 6px 0;white-space:normal}
.hq-sender-table summary,.hq-audit-raw summary,.hq-passed-checks>summary{cursor:pointer;min-height:42px;padding:9px 0;font-size:14px;font-weight:var(--hq-medium);line-height:1.65}
.hq-sender-table label{display:grid;gap:6px;font-size:13px}.hq-sender-table .input{min-width:0!important;max-width:100%}
.hq-check-summary{grid-column:1/-1;margin:0 0 6px;font-size:15px;font-weight:var(--hq-medium)}
.hq-passed-checks{grid-column:1/-1;border-top:1px solid var(--line);padding-top:6px}
.hq-passed-checks .launch-check{margin:8px 0}
.hq-audit-table th:nth-child(1){width:16%}.hq-audit-table th:nth-child(2){width:13%}
.hq-audit-table th:nth-child(3){width:22%}.hq-audit-table th:nth-child(4){width:16%}.hq-audit-table th:nth-child(5){width:33%}
.hq-audit-summary{margin:0;display:grid;gap:6px}.hq-audit-summary>div{display:grid;grid-template-columns:72px minmax(0,1fr);gap:8px}
.hq-audit-summary dt{font-size:13px;color:var(--muted)}.hq-audit-summary dd{margin:0;overflow-wrap:anywhere}
.hq-audit-raw pre{max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.7;margin:8px 0}
.hq-audit-raw p{font-size:13px;line-height:1.7;overflow-wrap:anywhere}
.hq-auth-notice{display:none;margin:24px;font-size:15px;color:var(--muted)}
.hq-auth-locked .shell{display:none}.hq-auth-locked .hq-auth-notice{display:block}
.hq-auth-locked .hq-header-tools,.hq-auth-locked .hq-mobile-control{visibility:hidden;pointer-events:none}
.login{max-height:calc(100dvh - 32px);overflow:auto}.login .field label{font-size:13px}.login h1{font-size:22px}
@media(max-width:650px){
 .hq-responsive-table,.hq-responsive-table tbody{display:block;width:100%;min-width:0}
 .hq-responsive-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .hq-responsive-table tr{display:block;padding:14px;border:1px solid var(--line);border-radius:12px;margin:12px 0;background:#fff}
 .hq-responsive-table td{display:block;width:auto!important;padding:7px 0;border:0}
 .hq-responsive-table td[data-label]::before{content:attr(data-label);display:block;font-size:13px;color:var(--muted);margin-bottom:4px}
 .hq-responsive-table td:first-child{font-size:15px}
 .hq-responsive-table .btn{min-height:44px}
 .hq-quick-item span{white-space:normal;flex:0 0 72px}
 .hq-check-summary{font-size:14px}
}
.approval-center-card span,.approval-center-card small,.mini span,.hq-nav-count,.hq-priority-legend,.plan-card .feature{font-size:var(--hq-help-text)}
.hq-nav-group-toggle{font-size:var(--hq-help-text)!important}

/* Same two-level hierarchy and control rhythm as Clinic. */
#nav.hq-nav{display:flex;flex-direction:column;overflow:hidden;gap:0}
@media(min-width:901px){#nav.hq-nav{position:sticky;top:var(--hq-header-height,80px);height:calc(100dvh - var(--hq-header-height,80px));align-self:start}}
.hq-nav-main{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding-right:4px}
#nav .hq-nav-group{margin:0 0 5px}
#nav .hq-nav-group-toggle{width:100%!important;min-height:46px;font-size:14px!important;font-weight:600;padding:10px 12px!important;border:0!important;background:transparent!important;color:#4a6265!important;border-radius:9px;line-height:1.4;text-align:left}
#nav .hq-nav-group.open>.hq-nav-group-toggle{background:#eef5f3!important;color:#16766e!important}
#nav .hq-nav-items{padding-left:10px}
#nav .hq-nav-items>button,#nav .hq-nav-link{min-height:42px;font-size:13px;font-weight:650;line-height:1.4;padding:10px 12px;white-space:normal}
.hq-nav-utilities{flex-shrink:0;margin-top:auto;padding-top:10px;border-top:1px solid var(--line)}
.hq-account-menu{padding:0;border:0;background:transparent;margin:5px 0 0}
.hq-account-menu>summary{cursor:pointer;font-size:14px;font-weight:650;min-height:42px;padding:10px 12px}
[data-hq-account-controls]{display:grid;gap:8px;padding:8px 12px;font-size:13px}
@media(max-width:900px){#nav.hq-nav{display:none}.hq-menu-open #nav.hq-nav{display:flex}#nav .hq-nav-items>button,#nav .hq-nav-link{min-height:44px;font-size:14px}.hq-nav-utilities{max-height:30dvh;overflow-y:auto}}
.status,.cs-status,.pay-badge,.launch-status{font-size:var(--hq-table-text)}

/* Shared material navigation, independent of list renderers. */
.hq-material-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:6px;background:#edf2fa;border-radius:12px;margin:0 0 20px}.hq-material-tabs .btn{min-height:44px;white-space:normal;line-height:1.4}.hq-material-tabs [aria-current=page]{background:#2456ed;color:white;border-color:#2456ed;font-weight:700}.hq-protocol-search{flex:1;min-width:160px}.hq-protocol-search input{width:100%}.hq-protocol-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:12px}.hq-protocol-card{margin:0;min-width:0;overflow-wrap:anywhere}.hq-protocol-card h2{font-size:16px;line-height:1.5;margin:0}.hq-protocol-card .btn{margin-top:8px}.hq-material-tabs .btn:focus-visible{outline:3px solid #7c9dff;outline-offset:2px}
@media(max-width:600px){.hq-material-tabs{gap:4px;padding:4px;margin-bottom:14px}.hq-material-tabs .btn{padding:8px 5px;font-size:13px}#protocols .toolbar{flex-wrap:wrap}#protocols .toolbar label{display:grid;gap:5px}}

.hq-read-summary{font-size:12px;color:#60738f;line-height:1.5;margin:4px 0}.hq-load-status[hidden]{display:none!important}

/* HQ uses the same calm visual hierarchy as CLINIC. */
:root{--blue:#19766f;--bg:#f6f5f1;--ink:#183c45;--muted:#566f76;--line:#d6e1df}
body{background:var(--bg);color:var(--ink)}
button,input,select,textarea{font-family:inherit}
.btn,.staff-training .st-button,.gs-button{font-size:14px;font-weight:600;line-height:1.4;min-height:40px;border-radius:8px}
.btn.primary,.staff-training .st-primary{background:var(--blue);border-color:var(--blue)}
.hq-material-tabs{background:#eaf1ee;margin-bottom:16px}
.hq-material-tabs [aria-current=page]{background:var(--blue);border-color:var(--blue)}
.hq-material-tabs .btn:focus-visible,button:focus-visible{outline-color:#19766f}
.hq-nav-item.active,#nav button.active,.cs-quick.active{background:#e5f1ed;color:#12635e;border-color:#a9cbc5}
.card,.hq-protocol-card,.staff-training .st-card{border-color:var(--line);border-radius:12px;box-shadow:0 2px 6px #183c4505}
.hq-protocol-card{display:flex;flex-direction:column;gap:6px;padding:16px}
.hq-protocol-card p{margin:0;line-height:1.6;font-size:13px}
.hq-protocol-card .btn{align-self:flex-start;margin-top:auto}
.hq-protocol-filters{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin:12px 0}
.hq-protocol-filters label{display:grid;gap:5px;font-size:13px;min-width:150px}
.hq-protocol-filters [data-protocol-count]{margin-left:auto;color:var(--muted);font-size:13px;padding:10px 0}
.gs-draft-group{min-width:0;padding:12px;border:1px solid var(--line);border-radius:12px;background:white}
.gs-draft-group>.gs-draft{width:100%;border:0;padding:4px;box-shadow:none;text-align:left}
.gs-draft-group details{border-top:1px solid var(--line);margin-top:8px;padding-top:8px;font-size:13px}
.gs-draft-group details .gs-draft{width:100%;margin-top:8px;text-align:left}
.gs-draft-group p{margin:0 0 8px}.gs-draft-group small{overflow-wrap:anywhere}
.hq-login-advanced{margin:14px 0;font-size:14px}.hq-login-advanced summary{cursor:pointer;color:var(--muted)}
.hq-read-summary{font-size:13px;color:var(--muted)}
@media(max-width:650px){.hq-protocol-filters{gap:8px}.hq-protocol-filters label{flex:1 1 130px;min-width:0}.hq-protocol-filters select{width:100%}.hq-protocol-filters [data-protocol-count]{flex-basis:100%;padding:0}.btn,.staff-training .st-button,.gs-button{min-height:44px}.hq-protocol-card{padding:14px}}

/* HQ operations filters share the primary palette and remain usable at narrow widths. */
.hq-protocol-quick{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.hq-protocol-filters [data-protocol-conditions]{grid-column:1/-1;margin:0;color:var(--muted);overflow-wrap:anywhere}
.hq-protocol-filters [data-protocol-reset]{align-self:end;justify-self:start}
.hq-protocol-next{font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.hq-audit-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:12px}
.hq-audit-filters label{display:grid;gap:6px;font-size:14px;min-width:0}
.hq-audit-filters .input{width:100%;min-width:0;box-sizing:border-box}
.hq-audit-filters>button{align-self:end;justify-self:start}
#hqAuditSummary{grid-column:1/-1;margin:0;color:var(--muted);font-size:13px;overflow-wrap:anywhere}
.hq-deployment-card b,.hq-deployment-card p{overflow-wrap:anywhere}
.hq-deployment-card[data-state="schema_missing"],.hq-deployment-card[data-state="automation_warning"]{border-color:#c58a40}
.hq-protocol-quick .btn.primary{background:#137c74;color:#fff;border-color:#137c74}
.ck-jobs [data-ck-job]:focus{outline:2px solid #137c74;outline-offset:4px}
@media(max-width:650px){.hq-audit-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.hq-audit-filters>label:nth-child(3){grid-column:1/-1}.hq-protocol-quick .btn{flex:1 1 calc(50% - 8px)}.hq-deployment-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Unified HQ lists and document workspaces. */
.hq-confirm{width:min(520px,calc(100vw - 32px));padding:24px;border:1px solid #cbd5e1;border-radius:16px;color:#203644;box-shadow:0 18px 70px #152a4540}
.hq-confirm::backdrop{background:#14283b80}.hq-confirm h2{margin:0 0 16px;font-size:22px}.hq-confirm p{white-space:pre-line;overflow-wrap:anywhere;line-height:1.65}.hq-confirm input{width:100%;box-sizing:border-box;min-height:44px;margin:8px 0;border:1px solid #b6c8d7;border-radius:8px;padding:10px;font:inherit}.hq-confirm-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}
.hq-document-workspace:is(dialog){box-sizing:border-box;width:min(1320px,calc(100vw - 32px));max-width:calc(100vw - 32px);height:calc(100dvh - 40px);max-height:calc(100dvh - 40px);margin:auto;padding:0;border:1px solid #ccd8e2;border-radius:16px;overflow:auto;font-size:16px;line-height:1.6}
.hq-document-workspace>header{position:sticky;top:0;z-index:5;display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;padding:16px 24px;background:#fff;border-bottom:1px solid #dce5ed}
.hq-document-workspace>header h2{font-size:22px;margin:0;flex:1;min-width:0;overflow-wrap:anywhere}.hq-document-workspace>header>div{flex:1;min-width:0}.hq-document-label{color:#526b7b;font-size:13px;width:100%}.hq-document-workspace .gs-eyebrow{display:none}.hq-document-workspace .gs-body,.hq-document-workspace .st-dialog-body{padding:20px 24px}.hq-document-workspace input:not([type=checkbox]):not([type=radio]),.hq-document-workspace select,.hq-document-workspace button{min-height:40px}.hq-document-workspace textarea{line-height:1.6;font:inherit}.hq-document-workspace .gs-message:empty,.hq-document-workspace .st-status:empty{display:none}.hq-document-workspace .gs-actions,.hq-document-workspace .st-actions{gap:10px;flex-wrap:wrap}.hq-discard{padding:12px 24px;background:#fff6dd;border-bottom:1px solid #e4c66f}.hq-discard p{margin:0 0 10px}.hq-discard button{margin-right:8px}
.hq-pagination{display:flex;align-items:center;justify-content:center;gap:16px;padding:18px 8px;width:100%;grid-column:1/-1}.hq-pagination span{color:#486273;font-size:14px;font-variant-numeric:tabular-nums}.hq-pagination button{min-width:72px;min-height:40px}
.hq-voice-search{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;margin:16px 0}.hq-voice-search label{display:grid;gap:6px;flex:1;min-width:200px}.hq-voice-search input{width:100%;box-sizing:border-box}.hq-voice-table td{vertical-align:top}.hq-voice-table textarea{width:100%;min-width:190px;min-height:90px;box-sizing:border-box;resize:vertical;font:inherit;border:1px solid #bdcbd8;border-radius:8px;padding:10px}.hq-voice-table td:nth-child(2){overflow-wrap:anywhere;white-space:pre-wrap;max-width:400px}.hq-voice-table select{min-width:130px}.hq-voice-table .hq-voice-draft-status{display:block;color:#856220;font-size:13px}
.hq-content-filters,.hq-protocol-filters,#training .st-toolbar{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.hq-content-filters>label,.hq-protocol-filters>label,#training .st-toolbar>label{display:grid;gap:6px;min-width:140px;font-size:14px}.hq-content-filters input,.hq-content-filters select,.hq-protocol-filters input,.hq-protocol-filters select,#training .st-toolbar input,#training .st-toolbar select{min-height:42px}.hq-content-table .status{display:inline-block;margin:0 4px 5px 0}.hq-version-history{display:flex;flex-direction:column;align-items:start;gap:8px;margin:10px 0}.hq-content-title{min-width:190px}.hq-content-actions{display:flex;gap:8px;flex-wrap:wrap}#guardianStudioRoot{margin:8px 0 16px}#guardianStudioRoot>p{margin:6px 0}#training .st-card h2{font-size:18px}#training .st-grid{gap:12px}.hq-subscription-results{padding:12px 0}
@media(max-width:700px){.hq-document-workspace:is(dialog){width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0;border:0}.hq-document-workspace>header{padding:12px 16px}.hq-document-workspace .gs-body,.hq-document-workspace .st-dialog-body{padding:16px}.hq-document-workspace>header h2{font-size:20px}.hq-confirm{padding:18px}.hq-voice-table,.hq-voice-table tbody,.hq-voice-table tr,.hq-voice-table td{display:block;width:100%;box-sizing:border-box}.hq-voice-table thead{display:none}.hq-voice-table tr{border:1px solid #dbe3eb;border-radius:12px;margin:12px 0;padding:8px}.hq-voice-table td{max-width:none!important;border:0}.hq-voice-table textarea{min-width:0}.hq-voice-table td::before{content:attr(data-label);display:block;font-weight:700;font-size:13px;margin-bottom:6px}.hq-content-filters>label,.hq-protocol-filters>label,#training .st-toolbar>label{flex:1;min-width:130px}.hq-content-filters>label:first-child{flex-basis:100%}.hq-pagination{gap:10px}}
#guardianStudioRoot{border:0;background:transparent;padding:0;margin:8px 0}#guardianStudioRoot:empty{display:none}.hq-content-filters>label.hq-content-review{display:flex;align-items:center;gap:8px;min-height:40px;flex:1}.hq-content-filters>label.hq-content-review input{min-height:0;width:18px;height:18px;margin:0}.hq-content-filters>label.hq-content-review+button{margin-left:auto}

/* Material review: primary actions first, secondary filters on demand. */
.hq-secondary-filters{margin:8px 0;min-width:0}.hq-secondary-filters>summary{cursor:pointer;font-weight:600;padding:8px 0;color:var(--muted,#526b7b)}
.hq-secondary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;padding-top:8px}.hq-secondary-grid label{min-width:0}.hq-secondary-grid select{width:100%}
.hq-content-filters>.hq-secondary-filters{grid-column:1/-1}.hq-protocol-filters{margin:0!important}.st-toolbar [hidden]{display:none!important}
#protocols [data-protocol-count]{display:block;font-size:13px;color:#526b7b}#protocols [data-protocol-conditions]{margin:4px 0 10px}
@media(max-width:600px){
 .hq-material-tabs{gap:4px!important;margin-bottom:10px!important}.hq-material-tabs .btn{font-size:13px!important;padding:8px 6px!important;min-height:40px;flex:1}
 #training .st-heading p,#content>.head p,#protocols>.head p{display:none}
 #training .st-heading,#content>.head,#protocols>.head{margin-bottom:10px;padding-bottom:0}
 #training .st-toolbar{gap:8px}#training .st-toolbar>label:has([data-search]){flex-basis:100%}#training .st-filter-options{flex-basis:100%}
 #content .hq-content-kpis{gap:6px;margin-bottom:10px}#content .hq-content-kpis .kpi{padding:10px}#content .hq-content-kpis small{display:none}
 #content .hq-content-filters{gap:8px;grid-template-columns:1fr}#content .hq-content-filters>.hq-secondary-filters{margin:0}
 #protocols .card{padding:12px}#protocols .hq-protocol-quick{gap:6px;margin:6px 0}
}

/* Focused HQ review: compact lists, explicit restoration, and optional setup. */
.hq-session-loading{display:none;text-align:center;max-width:420px}
.hq-session-restoring #hqLoginForm{display:none}
.hq-session-restoring .hq-session-loading{display:block}
.hq-session-loading p::before{content:"";display:inline-block;width:14px;height:14px;border:2px solid var(--line);border-top-color:var(--blue);border-radius:50%;margin-right:10px;vertical-align:middle;animation:hq-session-spin 1s linear infinite}
@keyframes hq-session-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.hq-session-loading p::before{animation:none}}
.hq-optional-steps{display:grid;gap:5px;margin-top:10px}
.hq-optional-steps b{font-size:13px}
.hq-optional-steps span{font-size:12px;color:var(--muted)}
.hq-pagination-top{grid-column:1/-1;margin:0 0 10px}
.hq-protocol-card{display:flex;flex-direction:column;align-items:flex-start}
.hq-protocol-card h2{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:1.5}
.hq-protocol-description{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--muted);margin:6px 0}
.hq-protocol-card>.btn{margin-top:auto}
#staffTrainingRoot .st-eyebrow{display:none}
@media(max-width:600px){
 #staffTrainingRoot .st-heading{align-items:center;gap:8px;margin-bottom:10px}
 #staffTrainingRoot .st-heading h1{font-size:20px;margin:0}
 #staffTrainingRoot .st-heading p{display:none}
 .hq-pagination{gap:8px;flex-wrap:wrap}
}

/* Empty status messages must not reserve another row above the results. */
#protocols [data-protocol-status]:empty,#protocols [data-protocol-count]:empty,#protocols [data-protocol-conditions]:empty{display:none}

/* Keep list controls and results close together without shrinking reading text. */
#content .hq-content-kpis{gap:10px;margin-bottom:12px}
#content .hq-content-kpis .kpi{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;padding:12px 14px;min-height:0}
#content .hq-content-kpis .kpi strong{grid-column:2;grid-row:1/3;align-self:center;font-size:24px;margin:0}
#content .hq-content-kpis .kpi span{font-size:13px}
#content .hq-content-kpis .kpi small{font-size:12px;line-height:1.4}
#content>.head,#protocols>.head{margin-bottom:12px}
#content>.head p,#protocols>.head p,#staffTrainingRoot .st-heading p{margin:4px 0 0;line-height:1.5}
#content .hq-secondary-filters,#protocols .hq-secondary-filters{margin:2px 0 8px}
#protocols>.card>.toolbar>.hq-protocol-search{flex:1;max-width:none}
#protocols .hq-protocol-card{padding:14px;gap:4px}
#protocols .hq-protocol-card h2{margin:4px 0;font-size:17px}
#protocols .hq-protocol-description{margin:0 0 6px}
#staffTrainingRoot .st-card h2{margin:8px 0}
#staffTrainingRoot .st-card>p{margin:6px 0;line-height:1.5}
#integrations .head{margin-bottom:12px}
#integrations .notice:not(.hq-technical-help){padding:12px;line-height:1.6}
.hq-review [data-category-value]{display:block;width:100%;margin-top:6px}
.hq-review [data-category-message]:empty{display:none}
@media(max-width:600px){
 #content .hq-content-kpis{gap:6px}
 #content .hq-content-kpis .kpi{padding:10px;gap:4px}
 #content .hq-content-kpis .kpi strong{font-size:22px}
 #protocols .hq-protocol-card{padding:12px}
}

#integrations .mini-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
#integrations .mini strong,#integrations .mini span{word-break:keep-all;overflow-wrap:anywhere}

/* Compact list controls without reducing card or touch target readability. */
#training .hq-pagination-top,#protocols .hq-pagination-top{padding:4px 0;margin:0 0 8px;justify-content:flex-end;gap:10px}
#training .st-count{margin:6px 0 8px}
#protocols [data-protocol-count]{display:block;margin:4px 0 8px}
#protocols [data-protocol-count]:empty{display:none}
#protocols [data-protocol-conditions]{margin:4px 0 8px}
#protocols .hq-secondary-filters{margin-bottom:8px}
#training .st-toolbar{margin-bottom:8px}
#training .hq-pagination-top~.st-count{display:none}
@media(max-width:600px){#training .hq-pagination-top,#protocols .hq-pagination-top{justify-content:center}}

/* Short clinic lists use page scrolling, including expanded details. */
.hq-compact-wrap.hq-short-portfolio{max-height:none;overflow-x:auto}

/* Page status and actions share a predictable right-hand position. */
.view>.head{display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px}
.view>.head>:first-child:not(button):not(.hq-read-summary):not(.hq-load-status){flex:1 1 280px;margin-right:auto}
.view>.head>.hq-read-summary{order:1;flex:0 1 auto;margin:0;color:var(--muted)}
.view>.head>button,.view>.head>.toolbar{order:2;flex:0 1 auto;margin:0}
.view>.head>.hq-load-status[data-state=error]{order:3;flex:1 1 100%;max-width:none;margin:0}
#staffTrainingRoot{font-family:inherit;--st-primary:var(--blue);--st-line:var(--line)}
#staffTrainingRoot .st-heading{display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px}
#staffTrainingRoot .st-heading>div{flex:1 1 280px;margin-right:auto}
#staffTrainingRoot .st-read-summary{font-size:12px;line-height:1.5;color:var(--muted)}
#staffTrainingRoot .st-read-summary:empty{display:none}
#staffTrainingRoot .st-heading>.st-button{margin:0;flex:none}
#staffTrainingRoot .st-tabs{gap:6px;border:0;background:#eaf1ee;padding:6px;border-radius:10px}
#staffTrainingRoot .st-tabs button{font-family:inherit;font-size:14px;font-weight:600;line-height:1.4;min-height:40px;padding:9px 13px;border:1px solid transparent;border-radius:8px;color:var(--ink);background:transparent}
#staffTrainingRoot .st-tabs button[aria-current=page]{background:var(--blue);border-color:var(--blue);color:#fff}
#content .gs-manage-toggle[hidden]{display:none!important}
@media(max-width:650px){
 .view>.head>:first-child:not(button):not(.hq-read-summary):not(.hq-load-status),#staffTrainingRoot .st-heading>div{flex-basis:100%}
 .view>.head>.hq-read-summary,#staffTrainingRoot .st-read-summary{margin-left:auto}
 .view>.head>button,.view>.head>.toolbar,#staffTrainingRoot .st-heading>.st-button{margin-left:auto}
 .view>.head:has(>.hq-read-summary:not([hidden]))>button,.view>.head:has(>.hq-read-summary:not([hidden]))>.toolbar,#staffTrainingRoot .st-heading:has(.st-read-summary:not(:empty))>.st-button{margin-left:0}
 #staffTrainingRoot .st-tabs button{min-height:44px;padding:8px}
}

/* Unified subscription settings: common choices first, exact saved values in advanced controls. */
#planGrid .price-row,#planGrid .hq-plan-resources{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:16px 0}
#planGrid .hq-plan-resources label,#planGrid .price-row label{display:grid;gap:6px}
#planGrid label.feature{display:flex;align-items:center;gap:8px}
#planGrid [data-plan-quantity][hidden]{display:none!important}
#planGrid .hq-allowance{padding:14px;background:#f2f7f6;border:1px solid #d6e2e1;border-radius:10px}
#planGrid .hq-allowance [data-plan-quantity]{margin-top:10px}
#planGrid details{border-top:1px solid #d6e2e1;margin-top:16px;padding-top:12px}
#planGrid summary{cursor:pointer;padding:6px 0;font-weight:700}
#planGrid .save-plan{margin-top:18px;width:100%}
@media(max-width:650px){#planGrid .price-row,#planGrid .hq-plan-resources{grid-template-columns:1fr}}

#nav .hq-nav-home{width:100%;min-height:46px;margin:0 0 5px;padding:10px 12px;font-size:14px;font-weight:650;text-align:left}#nav .hq-nav-group-toggle{gap:8px}#nav .nav-group-attention{margin-left:auto;flex-shrink:0;padding:2px 6px;border-radius:12px;background:#fff0ef;color:#a82720;font-size:11px;font-weight:700;line-height:1.4}#nav .nav-group-attention[hidden],#nav .hq-nav-group.open .nav-group-attention{display:none}
