/* The non-visit desktop shell. Visit styles remain in desktop.css. */
body.desktop-shell {
  --ink: #213a55;
  --muted: #6d849b;
  --line: #dce7f0;
  --background: #edf4f9;
  min-width: 0;
  color: var(--ink);
  background: #edf4f9;
  background-image: linear-gradient(145deg, #f4f9fc 0%, #edf4f9 45%, #eaf3f9 100%);
}
.desktop-shell .app-header {
  height: 68px;
  min-height: 68px;
  gap: 28px;
  padding: 0 clamp(20px, 2vw, 40px);
  border-bottom: 1px solid #dce7f0;
  background: #f9fcffed;
  backdrop-filter: blur(16px);
}
.desktop-shell .brand { gap: 18px; min-width: 0; flex: none; }
.desktop-shell .brand .brand-logo { flex: 0 0 140px; width: 140px; height: 44px; max-width: none; object-fit: contain; filter: none; }
.desktop-shell .brand-product { color: #385572; font-size: 17px; font-weight: 500; letter-spacing: 0; }
.desktop-shell .brand-product small { display: none; }
.desktop-shell .brand-rule { height: 27px; }
.desktop-shell .header-navigation { gap: 9px; margin-right: auto; }
.desktop-shell .header-navigation a { min-height: 42px; padding: 0 23px; border-radius: 9px; font-size: 15px; color: #566f89; }
.desktop-shell .header-navigation a[aria-current="page"] { border-color: #cfe2f3; color: #1f679b; background: #deedfa; }
.desktop-shell .header-actions { gap: 12px; flex: none; }
.desktop-shell .connection-pill { min-height: 34px; padding: 5px 10px; font-size: 11px; color: #4c7c70; background: #eaf5ef; }
.desktop-shell .connection-pill.unavailable { color: #8a682e; background: #fff4df; }
.desktop-shell #clock { font-size: 16px; color: #415f7b; }
.desktop-shell #clock small { font-size: 10px; color: #8193a5; margin-top: 1px; }
.desktop-shell .header-actions .icon-button { width: 40px; min-width: 40px; height: 40px; min-height: 40px; color: #587998; }
.desktop-shell #main { min-width: 0; min-height: calc(100dvh - 68px); }
.desktop-shell .page { width: 100%; max-width: 1640px; padding: 32px; margin: 0 auto; }
.desktop-shell .page-title { margin-bottom: 24px; padding: 8px 0; }
.desktop-shell .page-title h1 { color: #253d58; font-size: 28px; letter-spacing: -.4px; }
.desktop-shell .page-title p { font-size: 14px; color: #768b9e; }
.desktop-shell .page-title .eyebrow { color: #8c9eae; font-size: 10px; }
.desktop-shell .card { border-color: #dce7f0; border-radius: 13px; box-shadow: 0 4px 18px #385a7305; }
.desktop-shell .button { min-height: 44px; border-radius: 8px; font-size: 14px; font-weight: 550; }
.desktop-shell .button.primary { background: #2c82b9; border-color: #267aac; color: #fff; box-shadow: 0 3px 9px #377aab10; }
.desktop-shell .button.primary:hover { background: #246fa4; border-color: #246fa4; }
.desktop-shell .button.secondary { background: #ffffffd9; border-color: #d3e2ee; color: #426987; box-shadow: none; }
.desktop-shell .button.secondary:hover { border-color: #9fc4df; background: #f7fbff; }
.desktop-shell .button.text-button { color: #397cad; box-shadow: none; }
.desktop-shell .button:focus-visible,
.desktop-shell a:focus-visible { outline: 3px solid #72abd7; outline-offset: 3px; }
.desktop-shell .record-library { padding: 24px; }
.desktop-shell .record-row { min-height: 80px; }
.desktop-shell .settings-grid { gap: 20px; }
.desktop-shell .setting-card { padding: 28px; }

.desktop-home { max-width: 1640px; margin: 0 auto; padding: 36px 32px 24px; }
.desktop-home .home-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 29px; }
.desktop-home .home-page-kicker { color: #7791a8; font-size: 11px; letter-spacing: 1px; margin-bottom: 5px; }
.desktop-home h1 { margin: 0; color: #203853; font-size: 29px; font-weight: 650; letter-spacing: -.5px; }
.desktop-home .home-page-heading > div > p:last-child { color: #758c9f; font-size: 14px; margin-top: 8px; }
.desktop-home .home-settings-button { padding: 10px 16px; }
.desktop-home .home-settings-button .icon { width: 17px; height: 17px; }
.desktop-home .home-workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr) 296px; gap: 22px; align-items: start; }
.desktop-home .home-main-column { min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.desktop-home .home-start {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 172px;
  padding: 28px;
  border: 1px solid #cfe2f0;
  border-radius: 13px;
  background: linear-gradient(115deg, #f4faff, #e9f4fc);
}
.desktop-home .home-start-icon { display: grid; place-items: center; flex: 0 0 60px; width: 60px; height: 60px; border: 1px solid #c6dfef; border-radius: 17px; color: #3886ba; background: #e1f0fb; }
.desktop-home .home-start-icon .icon { width: 29px; height: 29px; stroke-width: 1.5; }
.desktop-home .home-start-copy { min-width: 0; flex: 1; }
.desktop-home .home-start h2 { color: #244562; font-size: 21px; font-weight: 650; margin: 0 0 8px; }
.desktop-home .home-start-copy > p { color: #5c7890; font-size: 14px; line-height: 1.8; }
.desktop-home .home-start-copy > span { display: flex; align-items: center; gap: 5px; color: #849aaa; font-size: 11px; margin-top: 13px; }
.desktop-home .home-start-copy > span .icon { width: 14px; height: 14px; }
.desktop-home .home-start-button { min-height: 46px; flex: none; padding: 11px 22px; }
.desktop-home .home-start-button .icon { width: 18px; height: 18px; }
.desktop-home .home-records { min-width: 0; border: 1px solid #dce7f0; border-radius: 13px; background: #fff; overflow: hidden; }
.desktop-home .home-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 23px 26px 22px; border-bottom: 1px solid #e7eef4; }
.desktop-home .home-section-heading h2 { font-size: 19px; font-weight: 650; color: #29445d; }
.desktop-home .home-section-heading p { margin-top: 6px; color: #8194a5; font-size: 12px; }
.desktop-home .home-section-heading .button { font-size: 12px; padding: 8px 0 8px 10px; }
.desktop-home .home-table-wrap { width: 100%; }
.desktop-home .home-record-table { width: 100%; table-layout: fixed; border-collapse: collapse; text-align: left; font-size: 14px; }
.desktop-home .home-record-table th { padding: 13px 18px; background: #f8fbfd; border-bottom: 1px solid #e5edf3; color: #8395a6; font-size: 11px; font-weight: 500; }
.desktop-home .home-record-table th:first-child { width: 23%; padding-left: 26px; }
.desktop-home .home-record-table th:nth-child(2) { width: 17%; }
.desktop-home .home-record-table th:nth-child(3) { width: 25%; }
.desktop-home .home-record-table th:nth-child(4) { width: 18%; }
.desktop-home .home-record-table th:last-child { width: 17%; padding-right: 26px; }
.desktop-home .home-record-table td { padding: 19px 18px; height: 89px; color: #516c83; border-bottom: 1px solid #ebf0f5; vertical-align: middle; overflow-wrap: anywhere; }
.desktop-home .home-record-table td:first-child { padding-left: 26px; }
.desktop-home .home-record-table td:last-child { padding-right: 26px; }
.desktop-home .home-record-table tr:last-child td { border-bottom: 0; }
.desktop-home .home-record-table tbody tr:hover { background: #f9fcff; }
.desktop-home .home-record-patient strong { display: block; color: #2a455e; font-size: 15px; font-weight: 600; line-height: 1.65; }
.desktop-home .home-record-patient small { display: block; color: #899aaa; font-size: 11px; margin-top: 4px; }
.desktop-home .home-record-time { font-size: 12px; font-variant-numeric: tabular-nums; }
.desktop-home .home-record-status { display: inline-flex; align-items: center; padding: 4px 9px; max-width: 100%; border: 1px solid #dce7ef; border-radius: 5px; color: #728ba1; background: #f2f6f9; font-size: 11px; line-height: 1.5; }
.desktop-home .home-record-status.reviewed { border-color: #d7e9e1; color: #548473; background: #edf6f1; }
.desktop-home .home-record-status.pending { border-color: #eee0c1; color: #967844; background: #fcf6e9; }
.desktop-home .home-record-action { text-align: right; }
.desktop-home .home-visit-button { display: inline-flex; flex-direction: row-reverse; gap: 5px; font-size: 12px; padding: 8px 0; white-space: nowrap; }
.desktop-home .home-visit-button .icon { width: 15px; height: 15px; }
.desktop-home .home-unavailable { color: #8b9daa; font-size: 11px; }
.desktop-home .home-records-footer { display: flex; align-items: center; gap: 7px; min-height: 49px; padding: 12px 26px; border-top: 1px solid #e7eef4; color: #8d9fae; background: #fcfdff; font-size: 11px; line-height: 1.7; }
.desktop-home .home-records-footer .icon { width: 14px; height: 14px; flex: none; }
.desktop-home .home-records-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 317px; padding: 36px 24px; text-align: center; }
.desktop-home .home-empty-icon { display: grid; place-items: center; width: 54px; height: 58px; margin-bottom: 15px; border-radius: 12px; background: #f0f6fb; color: #81a8c4; }
.desktop-home .home-empty-icon .icon { width: 26px; height: 26px; }
.desktop-home .home-records-empty h3 { color: #607b91; font-size: 17px; font-weight: 550; }
.desktop-home .home-records-empty p { max-width: 350px; margin: 9px 0 19px; color: #8a9ba9; font-size: 12px; line-height: 1.85; }
.desktop-home .home-records-empty .button { font-size: 13px; padding: 9px 17px; }
.desktop-home .home-side-column { min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.desktop-home .home-service { border: 1px solid #dce7f0; border-radius: 13px; padding: 22px; background: #ffffffd9; }
.desktop-home .home-service > header { display: flex; align-items: center; gap: 9px; margin-bottom: 19px; }
.desktop-home .home-side-icon { display: inline-flex; color: #6f96b2; }
.desktop-home .home-side-icon .icon { width: 19px; height: 19px; }
.desktop-home .home-service h2, .desktop-home .home-workflow h2 { color: #3c5971; font-size: 16px; font-weight: 600; }
.desktop-home .home-service dl { margin: 0; }
.desktop-home .home-service dl > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 14px 0; }
.desktop-home .home-service dt { color: #70889b; font-size: 12px; }
.desktop-home .home-service dd { margin: 0; font-size: 11px; }
.desktop-home .home-service-state { display: inline-flex; align-items: center; gap: 6px; color: #8699a9; }
.desktop-home .home-service-state i { width: 5px; height: 5px; border-radius: 50%; background: #a3b5c4; }
.desktop-home .home-service-state.ready { color: #618b7d; }
.desktop-home .home-service-state.ready i { background: #76aa98; }
.desktop-home .home-service-state.attention { color: #9c804e; }
.desktop-home .home-service-state.attention i { background: #c6a061; }
.desktop-home .home-service > p { margin: 20px 0 7px; padding-top: 15px; border-top: 1px solid #e6edf3; color: #8b9ba9; font-size: 11px; line-height: 1.8; }
.desktop-home .home-service > .button { width: 100%; justify-content: space-between; padding: 6px 0; min-height: 38px; font-size: 12px; }
.desktop-home .home-service > .button .icon { order: 2; width: 15px; height: 15px; }
.desktop-home .home-workflow { padding: 2px 8px; }
.desktop-home .home-workflow h2 { margin: 0 0 20px; }
.desktop-home .home-workflow ol { list-style: none; padding: 0; margin: 0; }
.desktop-home .home-workflow li { display: flex; align-items: flex-start; gap: 12px; min-height: 80px; position: relative; }
.desktop-home .home-workflow li:not(:last-child)::before { content: ""; position: absolute; top: 30px; left: 12px; bottom: 5px; border-left: 1px solid #cedfea; }
.desktop-home .home-step-number { display: grid; place-items: center; flex: 0 0 25px; width: 25px; height: 25px; border: 1px solid #ccdeec; border-radius: 50%; background: #f4f9fd; color: #7497b3; font-size: 11px; }
.desktop-home .home-workflow strong { display: block; color: #617e94; font-size: 13px; font-weight: 550; margin-top: 1px; }
.desktop-home .home-workflow p { color: #8b9eac; font-size: 11px; line-height: 1.85; margin-top: 6px; max-width: 210px; }
.desktop-home .home-footnote { display: flex; align-items: center; justify-content: center; gap: 6px; padding-top: 28px; color: #93a5b3; font-size: 11px; line-height: 1.8; }
.desktop-home .home-footnote .icon { width: 13px; height: 13px; flex: none; }
.desktop-home .home-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (min-width: 1100px) {
  .desktop-shell #navigation { display: none; }
  .desktop-shell #main { padding-bottom: 0; }
}
@media (min-width: 1100px) and (max-width: 1299px) {
  .desktop-shell .app-header { gap: 19px; }
  .desktop-shell .brand { gap: 12px; }
  .desktop-shell .brand-product { font-size: 15px; }
  .desktop-shell .header-navigation a { padding: 0 17px; font-size: 14px; }
  .desktop-home { padding: 30px 24px 24px; }
  .desktop-home .home-workspace-grid { grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; }
  .desktop-home .home-main-column, .desktop-home .home-side-column { gap: 18px; }
  .desktop-home .home-start { gap: 16px; padding: 24px; }
  .desktop-home .home-start-icon { width: 50px; height: 50px; flex-basis: 50px; }
  .desktop-home .home-start-copy > p { font-size: 13px; }
  .desktop-home .home-start-button { padding: 10px 16px; }
  .desktop-home .home-section-heading { padding: 21px 21px; }
  .desktop-home .home-record-table th, .desktop-home .home-record-table td { padding-left: 12px; padding-right: 12px; }
  .desktop-home .home-record-table th:first-child, .desktop-home .home-record-table td:first-child { padding-left: 21px; }
  .desktop-home .home-record-table th:last-child, .desktop-home .home-record-table td:last-child { padding-right: 21px; }
  .desktop-home .home-record-table td { font-size: 13px; }
  .desktop-home .home-record-table .home-record-time { font-size: 11px; }
}
@media (max-width: 1099px) {
  .desktop-shell .app-header { gap: 16px; padding-left: 22px; padding-right: 22px; }
  .desktop-shell .brand-product, .desktop-shell .brand-rule { display: none; }
  .desktop-shell .header-navigation a { padding: 0 15px; font-size: 14px; }
  .desktop-shell .page { padding: 27px 24px; }
  .desktop-home { padding: 29px 24px 24px; }
  .desktop-home .home-workspace-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .desktop-home .home-side-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px; }
  .desktop-home .home-workflow { padding: 19px 12px; }
  .desktop-home .home-service { padding: 22px; }
}
@media (max-width: 899px) {
  body.desktop-shell .app-header { height: 66px; min-height: 66px; flex-wrap: nowrap; gap: 12px; padding: 0 18px; }
  body.desktop-shell .header-navigation { order: 0; flex-basis: auto; justify-content: flex-start; margin: 0 auto 0 0; gap: 4px; }
  body.desktop-shell .header-navigation a { min-height: 40px; padding: 0 11px; font-size: 13px; }
  .desktop-shell #main { min-height: calc(100dvh - 66px); padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  .desktop-shell .header-actions { gap: 5px; }
  .desktop-shell #clock { display: none; }
  .desktop-shell .home-page-heading { margin-bottom: 23px; }
  .desktop-home h1 { font-size: 26px; }
  .desktop-home .home-start { min-height: 160px; padding: 24px; gap: 17px; }
  .desktop-home .home-start-copy > p { font-size: 13px; }
  .desktop-home .home-record-table th, .desktop-home .home-record-table td { padding-left: 11px; padding-right: 11px; }
  .desktop-home .home-record-table th:first-child, .desktop-home .home-record-table td:first-child { padding-left: 22px; }
  .desktop-home .home-record-table th:last-child, .desktop-home .home-record-table td:last-child { padding-right: 22px; }
}
@media (max-width: 599px) {
  body.desktop-shell .app-header { height: 60px; min-height: 60px; padding: 0 14px; gap: 8px; }
  .desktop-shell .brand .brand-logo { width: 112px; height: 36px; flex-basis: 112px; }
  body.desktop-shell .header-navigation { display: none; }
  .desktop-shell .header-actions { margin-left: auto; gap: 3px; }
  .desktop-shell .connection-pill { min-width: 20px; padding: 0; background: transparent; }
  .desktop-shell .connection-pill span:last-child { display: none; }
  .desktop-shell .header-actions .icon-button { min-width: 36px; width: 36px; height: 40px; }
  .desktop-shell .page { padding: 22px 16px; }
  .desktop-shell .page-title { gap: 16px; margin-bottom: 20px; }
  .desktop-shell .page-title h1 { font-size: 25px; }
  .desktop-shell .record-library { padding: 16px; }
  .desktop-shell .setting-card { padding: 23px; }
  .desktop-home { padding: 25px 16px 18px; }
  .desktop-home .home-page-heading { align-items: flex-start; gap: 10px; margin-bottom: 22px; }
  .desktop-home h1 { font-size: 25px; }
  .desktop-home .home-page-kicker { font-size: 10px; }
  .desktop-home .home-page-heading > div > p:last-child { font-size: 12px; line-height: 1.8; max-width: 190px; }
  .desktop-home .home-settings-button { min-height: 40px; padding: 8px 9px; font-size: 11px; gap: 5px; margin-top: 20px; white-space: nowrap; }
  .desktop-home .home-settings-button .icon { width: 14px; height: 14px; }
  .desktop-home .home-main-column { gap: 19px; }
  .desktop-home .home-start { display: grid; grid-template-columns: 43px minmax(0, 1fr); gap: 18px 14px; padding: 22px 20px; min-height: 0; }
  .desktop-home .home-start-icon { width: 43px; height: 47px; border-radius: 13px; }
  .desktop-home .home-start-icon .icon { width: 24px; height: 24px; }
  .desktop-home .home-start h2 { font-size: 18px; margin-bottom: 6px; }
  .desktop-home .home-start-copy > p { font-size: 12px; }
  .desktop-home .home-start-copy > span { margin-top: 9px; font-size: 10px; }
  .desktop-home .home-start-button { grid-column: 1 / -1; width: 100%; min-height: 44px; }
  .desktop-home .home-section-heading { padding: 19px 18px; }
  .desktop-home .home-section-heading h2 { font-size: 18px; }
  .desktop-home .home-section-heading p { font-size: 10px; }
  .desktop-home .home-section-heading .button { font-size: 11px; min-height: 40px; white-space: nowrap; }
  .desktop-home .home-record-table, .desktop-home .home-record-table tbody { display: block; width: 100%; }
  .desktop-home .home-record-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .desktop-home .home-record-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px 14px; padding: 17px 18px; border-bottom: 1px solid #e8eff5; }
  .desktop-home .home-record-table tr:last-child { border-bottom: 0; }
  .desktop-home .home-record-table td { display: block; height: auto; padding: 0; border: 0; font-size: 12px; }
  .desktop-home .home-record-table td:first-child, .desktop-home .home-record-table td:last-child { padding: 0; }
  .desktop-home .home-record-table td:first-child { grid-column: 1; grid-row: 1 / span 2; }
  .desktop-home .home-record-table td:nth-child(2) { grid-column: 1; grid-row: 3; color: #7e94a6; font-size: 11px; }
  .desktop-home .home-record-table td:nth-child(3) { grid-column: 1; grid-row: 4; font-size: 11px; color: #8b9eae; }
  .desktop-home .home-record-table td:nth-child(4) { grid-column: 2; grid-row: 1; text-align: right; }
  .desktop-home .home-record-table td:last-child { grid-column: 2; grid-row: 3 / span 2; align-self: end; }
  .desktop-home .home-record-patient strong { font-size: 15px; }
  .desktop-home .home-record-patient small { font-size: 11px; }
  .desktop-home .home-visit-button { min-height: 44px; font-size: 12px; }
  .desktop-home .home-records-footer { padding: 13px 18px; font-size: 10px; align-items: flex-start; }
  .desktop-home .home-records-footer .icon { margin-top: 2px; }
  .desktop-home .home-records-empty { min-height: 295px; padding: 29px 25px; }
  .desktop-home .home-records-empty p { font-size: 12px; }
  .desktop-home .home-side-column { grid-template-columns: 1fr; gap: 22px; }
  .desktop-home .home-service { padding: 20px; }
  .desktop-home .home-workflow { padding: 0 8px; }
  .desktop-home .home-workflow h2 { margin-bottom: 18px; }
  .desktop-home .home-workflow p { max-width: none; }
  .desktop-home .home-workflow li { min-height: 72px; }
  .desktop-home .home-workflow li:last-child { min-height: 54px; }
  .desktop-home .home-footnote { align-items: flex-start; padding-top: 23px; font-size: 10px; }
  .desktop-home .home-footnote .icon { margin-top: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .desktop-shell .button, .desktop-shell .header-navigation a { transition: none; }
}
