:root { --paper: #f5f8f7; --surface: #fff; --ink: #193933; --rule: #d9e5df; --muted: #49635a; --green: #e5f1eb; --lime: #cbeada; }
.workspace { min-height: 100vh; }
.work-header { background: #fff; border-bottom: 1px solid var(--rule); }
.work-top, .work-nav { width: min(100%, 1320px); margin-inline: auto; padding-inline: clamp(16px, 3.5vw, 46px); display: flex; align-items: center; }
.work-top { min-height: 64px; gap: 20px; }
.work-top .brand { padding: 0; }
.work-top .brand-mark { background: #22594d; color: #d4f4e7; }
.work-top .top-practice { padding-left: 17px; border-left: 1px solid var(--rule); }
.work-top .demo-pill { margin-left: auto; }
.work-nav { justify-content: space-between; gap: 8px; background: #fff; }
.work-nav .navigation { display: flex; flex-wrap: wrap; gap: clamp(4px, 1vw, 16px); }
.work-nav .navigation button { width: auto; min-height: 49px; border: 0; border-radius: 0; padding: 7px 12px; gap: 7px; border-bottom: 3px solid transparent; }
.work-nav .navigation button:hover, .work-nav .navigation button[aria-current="page"] { background: #e7f3ed; color: #174d40; }
.work-nav .navigation button[aria-current="page"] { border-bottom-color: #2d7b62; }
.work-nav .navigation button[aria-current="page"] .icon { color: #2d7b62; }
.workspace-menu, .chart-more { position: relative; flex: 0 0 auto; }
.workspace-menu summary, .chart-more summary { display: flex; align-items: center; min-height: 44px; gap: 4px; padding: 7px 9px; font-size: 15px; font-weight: 680; cursor: pointer; list-style: none; }
.workspace-menu summary::-webkit-details-marker, .chart-more summary::-webkit-details-marker { display: none; }
.workspace-menu summary .icon { width: 15px; height: 15px; transform: rotate(90deg); }
.work-menu-panel { position: absolute; z-index: 6; right: 0; top: calc(100% + 4px); width: max-content; min-width: 200px; max-height: 65vh; overflow: auto; padding: 7px; background: white; border: 1px solid #c7dbd0; border-radius: 9px; box-shadow: 0 10px 24px #21463a26; }
.work-menu-panel .secondary-nav { min-height: 39px; width: 100%; }
.workspace-menu summary:focus-visible, .chart-more summary:focus-visible { outline: 2px solid #9f5437; outline-offset: -2px; }
main { width: min(100%, 1320px); }
h1 { font: 740 clamp(32px, 4vw, 48px)/1.12 var(--sans); letter-spacing: -.04em; }
.btn { min-height: 44px; }
.page-title { margin-bottom: 19px; }
.page-label:empty { display: none; }
.day-heading, .day-date-row, .day-panel-head, .billing-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 14px; }
.day-heading { margin-bottom: 13px; }
.day-heading h1 { margin-block: 4px; }
.day-heading p:not(.eyebrow), .day-panel-head p, .day-empty, .billing-head p { color: var(--muted); }
.day-commands { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.day-date-row { margin-bottom: 14px; }
.day-date-row .calendar-days { padding: 0; margin: 0; border: 0; }
.day-date-row .calendar-days button { min-height: 42px; background: #fff; border: 1px solid var(--rule); }
.day-date-row .calendar-days button[aria-pressed="true"] { background: #ddefe6; border-color: #81ab98; }
.day-grid, .billing-layout { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(315px, 1fr); align-items: start; gap: 17px; }
.day-left { min-width: 0; display: grid; gap: 15px; }
.day-panel-head { padding: 13px 17px; border-bottom: 1px solid var(--rule); }
.day-panel-head h2 { font-size: 23px; }
.day-visit { width: 100%; display: grid; grid-template-columns: minmax(66px, .55fr) minmax(0, 1.6fr) minmax(100px, 1fr); align-items: center; gap: 9px; padding: 11px 16px; border: 0; border-bottom: 1px solid var(--rule); border-left: 4px solid transparent; background: white; text-align: left; }
.day-visit[aria-pressed="true"] { background: #e9f5ee; border-left-color: #2f8668; }
.day-visit:hover { background: #f0f7f3; }
.day-visit:last-child { border-bottom: 0; border-radius: 0 0 12px 12px; }
.day-time, .day-visit-name strong { font-size: 16px; font-weight: 690; }
.day-state { justify-self: end; text-align: right; }
.day-visit-name small, .day-state small { display: block; color: var(--muted); }
.day-state small { margin-top: 2px; }
.day-task-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.day-task-list button { display: flex; text-align: left; align-items: center; justify-content: space-between; gap: 7px; background: white; border: 0; border-right: 1px solid var(--rule); padding: 12px 13px; min-height: 80px; }
.day-task-list button:first-child { border-bottom-left-radius: 12px; }
.day-task-list button:last-child { border: 0; border-bottom-right-radius: 12px; }
.day-task-list button:hover { background: #eff6f2; }
.day-task-list button > span { display: grid; justify-items: start; gap: 1px; }
.day-task-list .icon { width: 16px; height: 16px; color: #32735f; }
.day-task-list small { color: var(--muted); }
.day-empty { padding: 14px 17px; }
.day-right #appointment-panel { scroll-margin-top: 12px; }
.day-right .clinic-chart-link .btn { color: white; background: #22594d; }
.day-right .clinic-chart-link .btn:hover { background: #184439; }
.billing-layout { grid-template-columns: minmax(0, 1.75fr) minmax(255px, 1fr); }
.billing-head { align-items: end; }
.billing-head .field { margin: 0; }
.billing-table-wrap { overflow: auto; margin-top: 12px; }
.billing-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 15px; }
.billing-table th, .billing-table td { padding: 9px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.billing-table th { background: #eaf3ee; font-size: 14px; }
.billing-table small { display: block; color: var(--muted); }
.billing-connection { margin-top: 17px; padding: 10px 12px; background: #eef5f1; border-radius: 8px; }
.billing-connection summary { cursor: pointer; font-weight: 680; }
.billing-connection p { margin-top: 5px; }
.intake-layout { max-width: 1030px; display: grid; grid-template-columns: minmax(200px, .7fr) minmax(0, 1.8fr); gap: 18px; align-items: start; }
.intake-rail, .intake-wizard { padding: clamp(16px, 2.6vw, 30px); }
.intake-rail { background: #eaf3ee; border: 1px solid var(--rule); border-radius: 11px; }
.intake-rail h2, .intake-wizard h2 { margin: 4px 0; }
.intake-rail h2 { font-size: 22px; }
.intake-rail p:not(.eyebrow), .intake-wizard > p:not(.eyebrow) { color: var(--muted); }
.intake-rail ol { display: grid; gap: 6px; list-style: none; padding: 0; margin-top: 15px; }
.intake-rail li { display: flex; align-items: center; gap: 8px; padding: 4px; }
.intake-rail li span { display: grid; place-items: center; flex: 0 0 26px; height: 26px; background: #dceae2; border-radius: 50%; font-size: 13px; font-weight: 690; }
.intake-rail li[aria-current] { font-weight: 710; }
.intake-rail li[aria-current] span { color: white; background: #22594d; }
.intake-helper { margin-top: 13px; font-size: 14px; }
.intake-question { border: 0; margin: 18px 0 0; padding: 0; min-width: 0; }
.intake-question legend { font-weight: 700; margin-bottom: 5px; }
.intake-options { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.intake-options label, .intake-confirm { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 7px 9px; border: 1px solid var(--rule); border-radius: 7px; cursor: pointer; }
.intake-options label:has(input:checked) { background: #e5f2e9; border-color: #7ca692; }
.intake-options input, .intake-confirm input { flex: 0 0 auto; width: 17px; height: 17px; accent-color: #22594d; }
.intake-confirm { margin-top: 13px; }
.intake-success { max-width: 720px; }
.intake-complete { display: grid; place-items: center; width: 47px; height: 47px; margin-bottom: 11px; border-radius: 50%; background: #d7efe2; font-size: 22px; font-weight: 730; }
.intake-packet { margin-top: 12px; padding: 15px; border: 1px solid var(--rule); border-radius: 9px; background: #f7faf8; }
.intake-packet-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.intake-packet-heading h3 { margin-top: 4px; }
.intake-answers { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 12px; margin-block: 11px; }
.intake-answers > div { padding: 6px 0; border-bottom: 1px solid var(--rule); }
.intake-answers dt, .chart-context dt { font-size: 14px; font-weight: 670; }
.intake-answers dd, .chart-context dd { margin: 0; color: var(--muted); }
.intake-task { margin-top: 11px; }
.intake-task ul { padding-left: 20px; }
.emr-sticky { position: static; }
.emr-patient { background: #ecf5ef; }
.emr-content { min-height: 260px; }
.chart-context { padding: 0 17px; border-bottom: 1px solid var(--emr-line); }
.chart-context summary { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; padding-block: 8px; cursor: pointer; font-size: 15px; }
.chart-context summary strong { margin-right: 4px; }
.chart-context-more { margin-left: auto; text-decoration: underline; text-underline-offset: .2em; }
.chart-context dl { display: flex; flex-wrap: wrap; gap: 9px 22px; margin: 0 0 10px; }
.chart-more { align-self: center; }
.chart-more summary { color: var(--muted); text-decoration: underline; text-underline-offset: .2em; }
.chart-more > div { display: flex; flex-wrap: wrap; padding: 0 3px; }
.chart-more[open] { display: flex; align-items: center; flex-wrap: wrap; }
@media (max-width: 760px) {
  .day-grid, .billing-layout { grid-template-columns: 1fr; }
  .day-left { display: contents; }
  .day-tasks { order: 2; }
  .day-right { order: 1; }
}
@media (max-width: 540px) {
  .work-top { min-height: 54px; gap: 8px; }
  .work-top .top-practice { padding-left: 6px; font-size: 12px; }
  .work-nav { gap: 0; padding-inline: 5px; }
  .work-nav .navigation { gap: 0; }
  .work-nav .navigation button { padding-inline: clamp(4px, 1.9vw, 9px); font-size: 14px; }
  .workspace-menu summary { padding-inline: 5px; font-size: 14px; }
  .workspace-menu summary .icon { width: 12px; }
  .day-date-row .calendar-days { flex-wrap: wrap; }
  .day-visit { padding-inline: 8px; grid-template-columns: minmax(58px, .6fr) minmax(0, 1.4fr) minmax(72px, .75fr); }
  .day-task-list { grid-template-columns: 1fr; }
  .day-task-list button { border-right: 0; border-bottom: 1px solid var(--rule); min-height: 60px; }
  .day-task-list button > span { grid-template-columns: auto 1fr; gap: 0 7px; align-items: center; }
  .day-task-list small { grid-column: 2; }
  .intake-layout, .intake-options { grid-template-columns: 1fr; gap: 7px; }
  .intake-rail ol { display: flex; flex-wrap: wrap; gap: 2px 7px; margin-top: 5px; font-size: 14px; }
  .intake-rail h2, .intake-helper { display: none; }
  .chart-context-more { margin-left: 0; }
}
.day-appointment-more { margin-top: 10px; }
.day-appointment-more summary { min-height: 42px; padding: 8px 0; color: #285f50; font-weight: 670; cursor: pointer; }
