/* Compact task guidance shares the existing blue controls and semantics. */
/* R179: shrink only the glyph, keeping every existing help hit/focus area. */
.help-trigger > .help-trigger__symbol { display: contents; color: inherit; width: auto; font-size: .92em; font-family: inherit; font-weight: inherit; line-height: 1; letter-spacing: normal; text-transform: none; margin: 0; padding: 0; pointer-events: none; }
.help-trigger { flex-shrink: 0; }
.help-tooltip > p { margin: 0; }
.help-tooltip > p + p { margin-top: 8px; }
.help-tooltip > p > strong { display: inline; margin: 0; color: inherit; font: inherit; font-weight: 700; text-transform: none; letter-spacing: inherit; }
.patients-options-menu { display: grid; grid-template-columns: minmax(0,1fr) 24px; align-items: center; gap: 2px 4px; }
.patients-options-menu > button:not(.help-trigger) { grid-column: 1/-1; min-width: 0; white-space: normal; }
.patients-options-menu > button:not(.help-trigger):has(+ .help-trigger) { grid-column: 1; }
.patients-options-menu > .help-trigger { grid-column: 2; width: 22px; height: 22px; padding: 0; margin: 0; display: inline-grid; place-items: center; border-radius: 50%; background: #f0f5ff; }
/* Workflow progression uses warm squares; section identity keeps blue circles. */
.patient-task-steps li::before,.patient-reference-dialog .patient-step-number { border-radius: 7px; background: #fff5e7; color: #805017; border: 1px solid #dfbd8d; }
.patient-task-steps [aria-current=step],.patient-reference-dialog .patient-flow-steps [aria-current=step] { color: #86500f; }
.patient-task-steps [aria-current=step]::before,.patient-reference-dialog .patient-flow-steps [aria-current=step] .patient-step-number { background: #9b5c16; color: white; border-color: #9b5c16; box-shadow: none; }
.patient-task-steps li:has(~li[aria-current=step])::before,.patient-reference-dialog .patient-flow-steps .is-complete .patient-step-number { background: #fff0db; color: #805017; }
@media (max-width:1150px) {
 .admin-header .brand--sidebar .brand__logo,.admin-header .brand--sidebar.is-clinic-brand .brand__logo { max-width: min(180px,100%); max-height: 50px; }
}
.workflow-guidance { margin: 10px 0 16px; color: #476483; font-size: 13px; line-height: 1.6; }
.workflow-guidance--row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.workflow-inline-steps { list-style: none; counter-reset: workflow-step; display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; font-size: 13px; color: #325777; }
.workflow-inline-steps li { display: inline-flex; align-items: center; gap: 7px; counter-increment: workflow-step; }
.workflow-inline-steps li::before { content: counter(workflow-step); display: grid; place-items: center; background: #fff0db; color: #86500f; border: 1px solid #dfbd8d; border-radius: 7px; width: 24px; height: 24px; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.team-health-subheading { grid-column: 1/-1; margin: 4px 0 0; font-size: 15px; color: #183f6d; }
.team-health-fields { counter-reset: professional-section; }
.team-health-subheading { display: flex; align-items: center; gap: 12px; font-size: 19px; padding-top: 18px; border-top: 1px solid #d8e4f5; }
.team-health-subheading::before { counter-increment: professional-section; content: counter(professional-section); display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; color: white; background: #2b6ac7; font-size: 17px; }
.lia-collapsible h3:has(> [data-lia-section-label]) { display: flex; align-items: center; gap: 6px; min-width: 0; }
.lia-collapsible h3 > .help-trigger { margin: 0; flex: none; }
[data-lia-section-label] { display: inline-flex; align-items: center; gap: 12px; }
[data-lia-section-label] { min-width: 0; }
@media (max-width:520px) {
 .lia-collapsible > .panel__header { display: grid; grid-template-columns: minmax(0,1fr); gap: 12px; }
 .lia-collapsible > .panel__header > .compact-action { justify-self: end; }
}
[data-lia-section-label][data-step-number]::before { content: attr(data-step-number); display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; background: #2b6ac7; color: white; border-radius: 50%; font-size: 17px; }
.team-health-fields .field-label-row:has(> label[hidden]) { display: none; }
.team-health-fields .field-label-row:has(> .team-health-wide) { grid-column: 1/-1; }
.business-hours-row > .field-label-row { min-width: 0; }
.business-hours-range > .field-label-row { min-width: 0; align-items: flex-end; }
.business-hours-range > .field-label-row > label { min-width: 0; flex: 1; }
.business-hours-range > .field-label-row > label { display: grid; gap: 5px; color: #476483; font-size: 12px; }
.business-hours-row > .compact-action { margin-top: 23px; }
.business-hours-row > .compact-action .business-hours-add { margin-top: 0; }
@container business-hours (max-width:720px) { .business-hours-row > .field-label-row { grid-column: 1/-1; } }
@container business-hours (max-width:500px) { .business-hours-row > .compact-action { margin-top: 0; } .business-hours-range > .compact-action { grid-column: 1/-1; justify-self: end; } }
.password-field:has(> .help-trigger) > input { padding-right: 122px; }
.password-field:has(> .help-trigger) > .password-toggle { right: 31px; }
.credential-field:has(> .help-trigger) > input { padding-right: 82px; }
.credential-field:has(> .help-trigger) > .credential-eye { right: 31px; }
.password-field > .help-trigger,.credential-field > .help-trigger { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); margin: 0; }
.confirm-dialog__close + .help-trigger { position: absolute; right: 70px; top: 26px; margin: 0; }
.team-create-menu .team-create-options { grid-template-columns: minmax(0,1fr) auto; align-items: center; width: 290px; }
.team-create-options > .help-trigger { width: 22px; min-width: 22px; height: 22px; min-height: 22px; padding: 0; display: inline-flex; justify-content: center; gap: 0; border-radius: 50%; background: #edf4ff; }
.team-create-options > .help-trigger:hover,.team-create-options > .help-trigger:focus-visible,.team-create-options > .help-trigger[aria-expanded="true"] { background: #245fbc; color: #fff; }
.team-create-options > button:not(.help-trigger) { grid-column: 1; min-width: 0; padding: 9px 8px; font-size: 13px; }
.lia-validation-link { border: 0; padding: 4px 0; background: transparent; color: #1758a8; font: inherit; cursor: pointer; text-align: left; text-decoration: underline; text-underline-offset: 3px; }
.lia-validation-link:hover,.lia-validation-link:focus-visible { color: #123962; }
/* R178: composition and scale follow the approved desktop references. */
:root { --reference-gutter: clamp(20px,2.6vw,64px); --reference-title: clamp(28px,1.95vw,40px); --reference-label: clamp(14px,1.05vw,22px); --reference-body: clamp(14px,1.05vw,22px); --reference-value: clamp(19px,1.37vw,28px); }
.reference-icon { width: 1.3em; height: 1.3em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.button:has(> .reference-icon) { display: inline-flex; align-items: center; justify-content: center; gap: .6em; }
.compact-action { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.compact-action:has(> button[hidden]),.compact-action:has(> details[hidden]) { display: none; }
.compact-action > .help-trigger { margin: 0; flex-shrink: 0; }
.help-trigger:hover,.help-trigger:focus-visible,.help-trigger[aria-expanded="true"] { color: #fff; background: #245fbc; border-color: #245fbc; }
.admin-header .nav-item { white-space: nowrap; }
.topbar #topbar-context { display: none; }
.topbar { gap: 16px; flex-wrap: wrap; padding: 24px var(--reference-gutter); min-height: 92px; }
.topbar h1 { font-size: var(--reference-title); }
.topbar__context { flex: 0 1 auto; }
#agenda-primary-actions { margin-left: auto; align-items: center; }
#appointments-section > .section-heading { display: none; }
#team-heading-actions { margin: 0 0 0 auto; align-items: center; }
#team-refresh-control { display: none; }
body[data-current-view="access"] #team-refresh-control { display: block; }
body[data-current-view="access"] .topbar { background: transparent; border: 0; padding-top: clamp(28px,2.6vw,54px); padding-bottom: 24px; }
body:is([data-current-view="conversations"],[data-current-view="patients"],[data-current-view="lia"]) .topbar { position: absolute; width: 1px; height: 1px; min-height: 0; overflow: hidden; clip-path: inset(50%); padding: 0; border: 0; }
.content { width: 100%; max-width: none; padding: clamp(24px,1.9vw,40px) var(--reference-gutter) 24px; }
body[data-current-view="lia"] .content { padding-top: clamp(22px,1.25vw,26px); }
body[data-current-view="access"] .content { padding-top: 0; }
.workspace > .platform-attribution,.platform-attribution--summary { display: flex; justify-content: flex-end; color: #6781a2; gap: 4px; font-size: clamp(12px,.86vw,18px); margin: 0; }
.workspace > .platform-attribution { max-width: none; padding: 8px var(--reference-gutter) 18px; }
.platform-attribution--summary { padding: 0; }
.platform-attribution strong { font-weight: 650; }
body:is([data-current-view="lia"],[data-current-view="access"],[data-current-view="conversations"]) .workspace > .platform-attribution { display: none; }
#conversations-section > .section-heading,#lia-section > .section-heading { align-items: center; gap: 18px; margin-bottom: clamp(22px,1.45vw,30px); }
#conversations-section > .section-heading h2,#lia-section > .section-heading h2 { font-size: var(--reference-title); letter-spacing: -.035em; }
#conversations-section > .section-heading .eyebrow,#conversations-section > .section-heading > div > p,#lia-section > .section-heading .eyebrow,#lia-section > .section-heading > div > p { display: none; }
#conversations-section > .section-heading { justify-content: space-between; }
#conversations-section :is(.metric-grid,.toolbar,.section-heading) .help-trigger,#lia-section > .section-heading .help-trigger,.lia-overview .help-trigger,.public-link-box .help-trigger,.team-overview .help-trigger,#team-refresh-control .help-trigger,#team-heading-actions .help-trigger { width: clamp(22px,1.5vw,32px); height: clamp(22px,1.5vw,32px); font-size: clamp(12px,.85vw,18px); margin-left: 8px; }
#lia-heading > .help-trigger { width: clamp(28px,1.75vw,37px); height: clamp(28px,1.75vw,37px); }
#conversations-section > .section-heading .button { min-height: 46px; font-size: clamp(14px,.96vw,20px); }
#conversations-section .metric-grid { margin: 0; gap: clamp(14px,1.2vw,24px); }
#conversations-section .metric-card { display: flex; align-items: center; justify-content: space-between; min-height: clamp(78px,5.55vw,112px); padding: 18px clamp(20px,1.5vw,32px); gap: 12px; border-radius: 18px; }
#conversations-section .metric-card::after { display: none; }
#conversations-section .metric-card > span { font-size: var(--reference-label); }
#conversations-section .metric-card strong { margin: 0; font-size: clamp(32px,2.42vw,50px); }
#conversations-section .metric-card > small { display: none; }
#conversations-section .toolbar { margin: 24px 0 20px; display: flex; align-items: center; flex-flow: row wrap; gap: 22px; padding: clamp(22px,1.6vw,32px); border-radius: 18px; }
#conversations-section .toolbar > .field { flex: 1 1 150px; min-width: 0; }
#conversations-section .toolbar > .field:has(#conversation-search) { flex: 2.2 1 310px; }
#conversations-section .toolbar > .field:has(#conversation-clinic):not([hidden]) { flex: 1 1 160px; }
#conversations-section .toolbar label { font-size: var(--reference-label); }
.reference-search-control { position: relative; min-width: 0; }
.reference-search-control > .reference-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #315d91; width: 22px; height: 22px; pointer-events: none; }
html body #conversations-section .reference-search-control input { padding-left: 46px; width: 100%; }
html body #conversations-section .toolbar :is(input,select) { font-size: var(--reference-body); min-height: clamp(44px,2.8vw,58px); }
#conversation-plan-usage { flex: 1.4 1 240px; padding-left: 26px; border-left: 1px solid #d8e4f4; }
.usage-compact { min-width: 0; margin: 0; padding: 0; gap: 12px; align-self: stretch; align-content: center; box-shadow: none; }
.usage-compact .plan-usage-panel__heading { align-items: center; gap: 8px; }
.usage-compact .plan-usage-panel__heading h3 { font-size: var(--reference-label); line-height: 1.3; }
.usage-compact .plan-usage-panel__percentage { font-size: var(--reference-value); margin: 0; }
.usage-compact .plan-usage-panel__content { gap: 12px; }
.usage-compact .plan-usage-progress { height: clamp(9px,.9vw,18px); }
.usage-compact .plan-usage-panel__facts { display: block; }
.usage-compact .plan-usage-panel__facts span { border: 0; padding: 0; background: transparent; font-size: var(--reference-body); line-height: 1.4; text-transform: none; font-weight: 400; }
.usage-compact .plan-usage-panel__placeholder,.usage-compact .plan-usage-panel__technical { font-size: 13px; overflow-wrap: anywhere; }
#access-section > .section-heading { display: none; }
#team-people-panel > .team-intro { display: none; }
#access-section .team-overview { padding: clamp(22px,1.75vw,36px); margin-bottom: 24px; border-radius: 20px; }
#access-section .team-tabs { padding: 0; gap: 20px; margin: 0; background: transparent; border-radius: 0; border-bottom: 1px solid #d8e5f5; }
#access-section .team-tabs .compact-action { padding: 0 12px 22px; gap: 12px; position: relative; }
#access-section .team-tabs .compact-action:has([aria-pressed="true"])::after { content: ''; height: 4px; background: #2d6ed0; position: absolute; bottom: -1px; left: 0; right: 0; border-radius: 3px; }
#access-section .team-tabs .button { color: #214879; background: transparent; border: 0; box-shadow: none; padding: 8px 0; min-height: 40px; font-size: clamp(15px,1.1vw,23px); }
#access-section .team-tabs .button[aria-pressed="true"] { color: #145aa8; }
#access-section .team-shortcuts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(14px,1.15vw,24px); margin: clamp(24px,2vw,42px) 0 26px; }
#access-section .team-shortcuts .compact-action { padding: clamp(16px,1.2vw,25px); border: 1px solid #c8d9ef; border-radius: 12px; background: #fbfdff; gap: 10px; }
#access-section .team-shortcuts .button { padding: 0; min-height: 42px; flex: 1; border: 0; box-shadow: none; background: transparent; font-size: clamp(14px,1.07vw,22px); justify-content: flex-start; gap: 12px; text-align: left; }
#access-section .team-shortcuts .reference-icon { width: 1.65em; height: 1.65em; }
#team-status { margin: 0; font-size: var(--reference-body); min-height: 24px; }
#team-people-panel { margin-top: 24px; }
#team-heading-actions .button,#team-refresh-control .button { font-size: clamp(14px,1.07vw,22px); min-height: clamp(44px,3vw,62px); }
#team-heading-actions #team-create-toggle { padding-inline: 24px; }
#patients-status:empty { display: none; }
#patients-section #patients-list-description { display: none; }
.lia-overview__heading { display: flex; align-items: center; justify-content: flex-end; gap: 18px; margin: 0 0 0 auto; }
.lia-overview__heading > div { display: block; }
.lia-overview__heading .eyebrow,#lia-selected-clinic-slug { display: none; }
.lia-overview__heading h3 { margin: 0; font-size: var(--reference-value); }
.lia-overview__heading > .status-badge { font-size: clamp(13px,.98vw,20px); padding: 8px 16px; }
#lia-section:has(#lia-content[hidden]) .lia-overview__heading { display: none; }
.lia-content { gap: clamp(20px,1.15vw,24px); }
.lia-overview { padding: clamp(24px,1.6vw,34px) clamp(26px,1.9vw,40px) clamp(20px,1.05vw,22px); border-radius: 20px; }
.lia-status-grid { display: grid; grid-template-columns: 1fr 1.15fr 1.08fr 1.2fr; gap: 0; margin: 0; border: 0; border-radius: 0; background: transparent; }
.lia-status-grid > article,.lia-status-grid > .usage-compact { min-width: 0; padding: 0 clamp(24px,1.9vw,40px); border: 0; border-radius: 0; background: transparent; }
.lia-status-grid > :first-child { padding-left: 0; }
.lia-status-grid > :last-child { padding-right: 0; }
.lia-status-grid > :not(:first-child) { border-left: 1px solid #d9e5f4; }
.lia-status-grid article > span { font-size: var(--reference-label); text-transform: none; color: #47678c; }
.lia-status-grid article strong { white-space: normal; overflow-wrap: anywhere; font-size: var(--reference-value); margin-top: 12px; line-height: 1.25; }
.lia-status-grid article small { font-size: var(--reference-body); margin-top: 12px; line-height: 1.4; }
.lia-status-grid .usage-compact strong { overflow: visible; }
.lia-progress { display: flex; align-items: center; gap: 18px; margin-top: clamp(22px,1.45vw,30px); padding-top: clamp(20px,1.1vw,24px); border-top: 1px solid #d9e5f4; }
.lia-progress > div { justify-content: flex-start; gap: 8px; flex-wrap: nowrap; min-width: 0; }
.lia-progress > div > .help-trigger { flex: none; margin-left: 0; }
.lia-progress strong,.lia-progress #lia-progress-value { color: #14335c; font-size: var(--reference-label); }
.lia-progress #lia-progress-icon { display: grid; place-items: center; background: #2e70d0; color: white; font-size: 25px; border-radius: 50%; width: 36px; height: 36px; flex-shrink: 0; }
.lia-progress #lia-progress-icon[data-complete="false"] { background: #e6eef9; color: #476483; }
.lia-progress > progress { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); margin: 0; }
.public-link-box { display: grid; align-items: center; gap: 12px; margin: 0; padding: clamp(22px,1.25vw,26px) clamp(22px,1.6vw,34px); background: white; border-radius: 20px; }
.public-link-box > div:first-child small { display: none; }
.public-link-box strong { font-size: var(--reference-label); }
.public-link-box__actions { min-width: 0; display: flex; gap: 14px; }
.public-link-box__actions input { flex: 1 1 auto; width: 0; min-height: clamp(46px,2.7vw,56px); padding: 12px 18px; font-size: var(--reference-body); }
.public-link-box__actions .button { white-space: nowrap; min-height: clamp(46px,2.7vw,56px); padding: 10px 20px; font-size: clamp(14px,1vw,21px); }
#lia-guidance { margin-top: 10px; }
#lia-guidance .workflow-inline-steps { font-size: 15px; gap: 24px; }
#lia-guidance .workflow-inline-steps li::before { width: 30px; height: 30px; font-size: 15px; }
@media (min-width:1151px) {
 .admin-header { grid-template-columns: minmax(150px,12vw) minmax(0,1fr) auto; min-height: clamp(90px,6vw,126px); padding: 16px var(--reference-gutter); gap: 18px; }
 .admin-header .brand--sidebar .brand__logo,.admin-header .brand--sidebar.is-clinic-brand .brand__logo { max-width: clamp(180px,11vw,230px); max-height: clamp(50px,3.2vw,68px); }
 .admin-header .brand__descriptor { font-size: clamp(10px,.62vw,13px); letter-spacing: .17em; }
 .admin-header .nav-item { font-size: clamp(14px,1vw,21px); min-height: clamp(46px,3vw,62px); padding: 10px clamp(10px,.75vw,16px); gap: 10px; border-radius: 14px; }
 .admin-header .nav-item__icon { font-size: 1.15em; }
 .admin-header .nav-item__badge { display: inline-grid; place-items: center; min-width: clamp(22px,1.8vw,38px); height: clamp(22px,1.8vw,38px); border-radius: 50%; font-size: .9em; }
 .admin-header .sidebar { gap: clamp(4px,.6vw,12px); }
 .admin-header .user-chip__avatar { width: clamp(38px,2.45vw,51px); height: clamp(38px,2.45vw,51px); font-size: 19px; }
 .admin-header .user-chip strong { max-width: 170px; font-size: clamp(14px,.97vw,20px); }
 .admin-header .user-chip small { max-width: 190px; font-size: clamp(12px,.82vw,17px); }
 .admin-header .admin-account { gap: 24px; }
 .admin-header .system-pill strong { font-size: clamp(11px,.77vw,16px); }
 .admin-header #logout-button { min-height: clamp(36px,2.2vw,46px); font-size: clamp(12px,.85vw,18px); padding: 8px 16px; }
}
@media (max-width:1150px) {
 .lia-status-grid { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 22px; }
 .lia-status-grid > :nth-child(3) { border-left: 0; padding-left: 0; }
 .lia-status-grid > :nth-child(2) { padding-right: 0; }
 .lia-status-grid > :nth-child(n+3) { border-top: 1px solid #d9e5f4; padding-top: 22px; }
 #conversations-section .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
 #agenda-primary-actions { flex-basis: 100%; justify-content: flex-start; }
 #access-section .team-shortcuts { grid-template-columns: repeat(2,minmax(0,1fr)); }
 #conversation-plan-usage { flex-basis: 220px; }
 .lia-overview__heading { flex-wrap: wrap; }
}
@media (min-width:1600px) { html body #conversations-section .toolbar :is(input,select) { min-height: clamp(60px,3.63vw,72px); } }
@media (max-width:640px) {
 :root { --reference-gutter: 14px; }
 .topbar { padding: 20px 14px; }
 .content { padding: 20px 12px; }
 .admin-header .user-chip strong,.admin-header .user-chip small { max-width: 145px; }
 .topbar h1,#conversations-section > .section-heading h2,#lia-section > .section-heading h2 { font-size: 26px; }
 #conversations-section .metric-card { padding: 12px; gap: 6px; }
 #conversations-section .metric-card > span { font-size: 12px; }
 #conversations-section .metric-card strong { font-size: 28px; }
 #conversations-section > .section-heading,#lia-section > .section-heading { flex-wrap: wrap; }
 #lia-section > .section-heading > div:first-child { text-align: left; align-self: flex-start; }
 #conversations-section .toolbar { gap: 16px; padding: 16px; }
 #conversation-plan-usage { border-left: 0; border-top: 1px solid #d8e4f4; padding: 16px 0 0; flex-basis: 100%; }
 #conversations-section .toolbar > .field { flex-basis: 100px; }
 #conversations-section .toolbar > .field:has(#conversation-search) { flex-basis: 100%; }
 #team-heading-actions { margin-left: 0; flex-wrap: wrap; }
 #access-section .team-shortcuts { grid-template-columns: 1fr; }
 #access-section .team-tabs { display: grid; gap: 4px; }
 #access-section .team-tabs .compact-action { padding: 8px 0; }
 #access-section .team-tabs .button { flex: 1; justify-content: flex-start; text-align: left; }
 #access-section .team-overview { padding: 16px; }
 #lia-section > .section-heading .lia-overview__heading { display: flex; flex-direction: row; margin-left: 0; justify-content: flex-start; width: 100%; gap: 12px; }
 .lia-overview { padding: 20px; }
 .lia-status-grid { grid-template-columns: 1fr; gap: 0; }
 .lia-status-grid > article,.lia-status-grid > .usage-compact { padding: 18px 0; }
 .lia-status-grid > :first-child { padding-top: 0; }
 .lia-status-grid > :last-child { padding-bottom: 0; }
 .lia-status-grid > :not(:first-child) { border-left: 0; border-top: 1px solid #d9e5f4; }
 .lia-progress { gap: 12px; }
 .public-link-box { padding: 20px; }
 .public-link-box__actions { flex-wrap: wrap; gap: 8px; }
 .public-link-box__actions input { flex-basis: 100%; width: 100%; }
 .public-link-box__actions .button { flex: 1; padding-inline: 14px; }
}
