/* ============================================================================
   DentalNexa workspace layout layer
   ----------------------------------------------------------------------------
   Loaded after site.css and authoritative over it. site.css accumulated several
   overlapping "passes" whose !important rules disagreed about breakpoints - e.g.
   between 901px and 1000px the sidebar was off-canvas while the content still kept
   a 214px left margin. Shell geometry, responsive grids, the dashboard chart and
   the Page Guide are defined here once.

   Breakpoints (match js/app-shell.js):
     >= 1280px     desktop  full sidebar; can be collapsed to an icon rail
     769 - 1279px  tablet   icon rail; the menu button expands it over the page
     <= 768px      mobile   off-canvas drawer; stacked cards
   ============================================================================ */

:root{--dn-sidebar-w:214px;--dn-rail-w:72px;--dn-gutter:28px}

/* ---- shell ----------------------------------------------------------------- */
.app-shell{display:flex;min-height:100vh}
.app-shell .app-sidebar{position:fixed!important;top:0;bottom:0;left:0;z-index:70;width:var(--dn-sidebar-w)!important;
  display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden;box-sizing:border-box;transform:none}
.app-shell .app-main{flex:1 1 auto;min-width:0;margin-left:var(--dn-sidebar-w)!important;width:calc(100% - var(--dn-sidebar-w))!important;
  overflow-x:clip}
.app-shell .app-content{padding:22px var(--dn-gutter) 34px!important;box-sizing:border-box;min-width:0}
.app-shell .app-content>*{min-width:0}
.app-sidebar .app-sidebar-close{color:#5f7394}
.app-shell .app-nav-toggle{display:none}

/* The collapse control is back on desktop; it was hidden by an earlier pass, leaving a
   persisted "collapsed" preference with no way to undo it. */
.app-shell .app-nav-collapse-toggle{display:inline-grid!important;place-items:center;width:30px;height:30px;padding:0;cursor:pointer;flex:0 0 auto}
.app-shell .app-nav-collapse-toggle svg{width:16px;height:16px;transition:transform .18s ease}

/* Icon rail - desktop "collapsed" and tablet resting state share these rules. */
@media (min-width:1280px){
  .app-shell.nav-collapsed{--dn-sidebar-w:var(--dn-rail-w)}
  .app-shell.nav-collapsed .app-sidebar{padding:12px 10px 14px!important}
  .app-shell.nav-collapsed .app-sidebar-head{flex-direction:column;align-items:center;gap:8px;padding:0 0 14px!important}
  .app-shell.nav-collapsed .app-brand .wordmark,
  .app-shell.nav-collapsed .nav-text,
  .app-shell.nav-collapsed .sidebar-ai-card>:not(.sidebar-ai-bot){display:none!important}
  .app-shell.nav-collapsed .app-nav-collapse-toggle svg{transform:rotate(180deg)}
  .app-shell.nav-collapsed .app-sidebar nav a.nav-toplevel{justify-content:center;padding:10px!important}
  .app-shell.nav-collapsed .sidebar-ai-card{padding:8px!important;justify-items:center}
  .app-shell .app-sidebar-close{display:none}
}

@media (min-width:769px) and (max-width:1279.98px){
  :root{--dn-gutter:22px}
  .app-shell{--dn-sidebar-w:var(--dn-rail-w)}
  .app-shell .app-nav-toggle{display:inline-flex}
  .app-shell .app-nav-collapse-toggle{display:none!important}
  .app-shell .app-sidebar{transition:width .18s ease,box-shadow .18s ease}
  .app-shell:not(.nav-open) .app-sidebar{padding:12px 10px 14px!important}
  .app-shell:not(.nav-open) .app-sidebar-head{justify-content:center;padding:0 0 14px!important}
  .app-shell:not(.nav-open) .app-brand .wordmark,
  .app-shell:not(.nav-open) .nav-text,
  .app-shell:not(.nav-open) .app-sidebar-close,
  .app-shell:not(.nav-open) .sidebar-ai-card>:not(.sidebar-ai-bot){display:none!important}
  .app-shell:not(.nav-open) .app-sidebar nav a.nav-toplevel{justify-content:center;padding:10px!important}
  .app-shell:not(.nav-open) .sidebar-ai-card{padding:8px!important;justify-items:center}
  /* Expanded over the page, not beside it: the content keeps its width. */
  .app-shell.nav-open .app-sidebar{width:248px!important;box-shadow:0 0 40px rgba(5,15,35,.28)!important}
  .app-shell.nav-open .app-sidebar-close{display:block}
}

@media (max-width:768px){
  :root{--dn-gutter:16px}
  .app-shell{--dn-sidebar-w:0px}
  .app-shell .app-sidebar{width:min(280px,86vw)!important;transform:translateX(-100%);transition:transform .22s ease;
    box-shadow:0 0 40px rgba(5,15,35,.35)!important}
  .app-shell.nav-open .app-sidebar{transform:none}
  .app-shell .app-nav-toggle{display:inline-flex}
  .app-shell .app-nav-collapse-toggle{display:none!important}
  .app-shell .app-sidebar-close{display:block}
  .app-shell .app-content{padding-top:16px!important;padding-bottom:28px!important}
}
@media (prefers-reduced-motion:reduce){.app-shell .app-sidebar{transition:none!important}}

/* ---- top bar --------------------------------------------------------------- */
.app-shell .app-topbar{display:flex;align-items:center;gap:12px;padding:0 var(--dn-gutter)!important;box-sizing:border-box;min-width:0}
.app-shell .app-topbar-left{flex:1 1 auto;min-width:0}
.app-shell .global-search{flex:1 1 auto;width:auto!important;max-width:460px;min-width:0;margin:0}
.app-shell .top-actions{flex:0 0 auto;display:flex;align-items:center}
.app-shell a.top-icon-btn{display:inline-grid;place-items:center;text-decoration:none;border-radius:10px}
@media (max-width:1100px){.app-shell .practice-profile{display:none!important}}
@media (max-width:768px){
  .app-shell .global-search{display:flex!important;height:38px!important}
  .app-shell .top-copilot{display:none!important}
  .app-shell .app-topbar-left{gap:8px}
}

/* ---- page headings --------------------------------------------------------- */
.page-title-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px}
.app-content .page-title-row h1,.dn-welcome .page-title-row h1{margin:0!important}
.app-content .page-heading>div:first-child{min-width:0}
.app-content .page-heading p{margin-top:6px}
.app-content .page-heading .heading-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
@media (max-width:768px){
  .app-content .page-heading{flex-direction:column;align-items:stretch!important;gap:12px}
  .app-content .page-heading .heading-actions{justify-content:flex-start}
  .app-content .page-heading h1{font-size:25px!important}
}

/* ---- shared responsive content rules -------------------------------------- */
/* Grid and flex children default to min-width:auto, so one long word or a wide
   table forces the whole page sideways. */
.app-content [class*="grid"]>*,.app-content [class*="layout"]>*,.app-content [class*="-main"]>*,.app-content .toolbar>*{min-width:0}

/* Wide tables scroll inside their own container, never the page. */
.app-content :is(.panel,.table-wrap,.card,.surface,section,article,div):has(>table){overflow-x:auto;max-width:100%;-webkit-overflow-scrolling:touch}
.app-content table th{white-space:nowrap}

/* Card grids fill the row at every width instead of fixed column counts. */
.app-content .metric-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr))!important}
.app-content .agent-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr))!important}
.app-content .kanban{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr))!important}
.app-content .toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.app-content .toolbar input{flex:1 1 200px}

@media (max-width:1100px){
  .app-content .settings-grid,.app-content .billing-grid{grid-template-columns:1fr!important}
  .app-content .settings-nav{display:flex!important;flex-wrap:nowrap;overflow-x:auto;gap:6px}
  .app-content .settings-nav>*{flex:0 0 auto;white-space:nowrap}
}
@media (max-width:900px){
  .app-content .inbox-layout,.app-content .sms-inbox,.app-content .fd-layout,.app-content .today-grid,
  .app-content .ass-layout,.app-content .stedi-layout,.app-content .inq-layout{grid-template-columns:1fr!important}
}
@media (max-width:768px){
  .app-content .form-grid,.app-content .cal-form-grid,.modal-card .form-grid{grid-template-columns:1fr!important}
  .app-content .form-grid>*,.modal-card .form-grid>*{grid-column:auto!important}
  /* 16px stops iOS zooming into a field; 44px is a comfortable touch target. */
  .app-content input:not([type=checkbox]):not([type=radio]),.app-content select,.app-content textarea,
  .modal-card input:not([type=checkbox]):not([type=radio]),.modal-card select,.modal-card textarea{font-size:16px!important;min-height:44px}
  .app-content .tab-strip,.app-content .config-tabs,.app-content .cal-views{overflow-x:auto;flex-wrap:nowrap!important;-webkit-overflow-scrolling:touch}
  .app-content .tab-strip>*,.app-content .config-tabs>*{flex:0 0 auto;white-space:nowrap}
  .modal-card{width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px);overflow-y:auto;padding:20px 16px!important;box-sizing:border-box}
  .modal-actions{flex-wrap:wrap}
}

/* ---- dashboard ------------------------------------------------------------- */
/* minmax(0,…) not minmax(420px,…): the old minimums added up to more than the
   content width at 1280-1440px and pushed the middle and right cards off the edge. */
.dn-reference-dashboard .dn-reference-main{grid-template-columns:minmax(0,1.35fr) minmax(0,1.3fr) minmax(0,.9fr)!important;align-items:stretch}
.dn-reference-dashboard .dn-reference-kpis{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.dn-reference-dashboard .dn-reference-welcome{grid-template-columns:minmax(0,1fr) auto!important}
.dn-reference-dashboard .dn-reference-day{justify-self:end}

@media (max-width:1279.98px){
  .dn-reference-dashboard .dn-reference-main{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .dn-reference-dashboard .dn-flow-card{grid-column:1/-1}
  .dn-reference-dashboard .dn-flow-body{grid-template-columns:auto minmax(0,320px);justify-content:center}
  .dn-reference-dashboard .dn-reference-bottom{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .dn-reference-dashboard .dn-reference-bottom>.dn-card:last-child{grid-column:1/-1}
}
@media (max-width:1023.98px){
  .dn-reference-dashboard .dn-reference-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media (max-width:768px){
  .dn-reference-dashboard .dn-reference-main,.dn-reference-dashboard .dn-reference-bottom,
  .dn-reference-dashboard .dn-reference-mini-grid{grid-template-columns:minmax(0,1fr)!important}
  .dn-reference-dashboard .dn-flow-card,.dn-reference-dashboard .dn-reference-bottom>.dn-card:last-child{grid-column:auto}
  .dn-reference-dashboard .dn-reference-welcome{grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
  .dn-reference-dashboard .dn-reference-day{display:flex!important;justify-self:start}
  .dn-reference-dashboard .dn-welcome h1{font-size:24px!important}
}
@media (max-width:520px){
  .dn-reference-dashboard .dn-reference-kpis{grid-template-columns:minmax(0,1fr)!important}
  .dn-reference-dashboard .dn-flow-body{grid-template-columns:1fr}
  .dn-reference-dashboard .dn-visit{grid-template-columns:58px 9px 32px minmax(0,1fr)}
  .dn-reference-dashboard .dn-visit .dn-status{display:none}
}

/* Patient Flow ring: three measured segments, the remainder is "not yet confirmed". */
.dn-donut.dn-donut-live{background:conic-gradient(#39c9a2 0 calc(var(--done)*1%),#4f8df8 calc(var(--done)*1%) calc(var(--active)*1%),
  #8a75e8 calc(var(--active)*1%) calc(var(--ready)*1%),#e3e9f2 calc(var(--ready)*1%) 100%)}

/* ---- Production & Collections chart --------------------------------------- */
.pc-card{display:flex;flex-direction:column;container-type:inline-size;min-width:0}
.pc-head{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;flex-wrap:wrap}
.pc-head h2{display:flex;align-items:center;gap:8px;margin:0;font-size:15px;color:#142542}
.pc-head h2 span{color:#2f61ff}
.app-content .pc-range select,.pc-range select{min-height:32px!important;height:32px;padding:4px 28px 4px 10px!important;font-size:12.5px!important;
  font-weight:700;color:#33486a!important;background-color:#f8faff!important;border:1px solid #dce5f0!important;border-radius:9px!important;cursor:pointer}
.pc-legend{display:flex;justify-content:center;flex-wrap:wrap;gap:6px 20px;margin:12px 0 4px;font-size:12px;color:#5f7089}
.pc-legend span{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.pc-legend i{width:10px;height:10px;border-radius:3px}
.pc-legend i.prod,.pc-bar.prod{background:#3b82f6}
.pc-legend i.coll,.pc-bar.coll{background:#14a37f}
.pc-legend b{color:#142542;font-variant-numeric:tabular-nums}

.pc-chart{--pc-axis-w:46px;display:grid;grid-template-columns:var(--pc-axis-w) minmax(0,1fr);grid-template-rows:minmax(160px,1fr) auto;
  column-gap:8px;flex:1 1 auto;min-height:210px;margin:10px auto 0;width:100%;max-width:640px}
.pc-yaxis{position:relative;grid-column:1;grid-row:1}
.pc-yaxis span{position:absolute;right:0;transform:translateY(50%);font-size:11px;line-height:1;color:#71819a;font-variant-numeric:tabular-nums;white-space:nowrap}
.pc-plot{position:relative;grid-column:2;grid-row:1;border-bottom:1px solid #d5deeb;min-width:0}
.pc-grid{position:absolute;left:0;right:0;height:0;border-top:1px dashed #e4eaf3}
.pc-columns{position:absolute;inset:0;display:grid;grid-template-columns:repeat(var(--pc-days),minmax(0,1fr));list-style:none;margin:0;padding:0}
.pc-columns li{display:flex;min-width:0}
.pc-day{flex:1;display:flex;align-items:flex-end;justify-content:center;gap:max(2px,6%);padding:0 10%;border-radius:6px 6px 0 0;text-decoration:none;min-width:0}
.pc-day:hover,.pc-day:focus-visible{background:#eef4ff;outline:none}
.pc-day:focus-visible{box-shadow:inset 0 0 0 2px #2d61ef}
.pc-bar{flex:0 1 18px;min-width:2px;border-radius:3px 3px 0 0}
.pc-bar:not([data-zero]){min-height:2px}
.pc-xaxis{grid-column:2;grid-row:2;display:grid;grid-template-columns:repeat(var(--pc-days),minmax(0,1fr));padding-top:7px}
.pc-xaxis span{min-width:0;text-align:center;white-space:nowrap;font-size:11px;line-height:1.25;color:#5f7089;display:flex;flex-direction:column;align-items:center}
.pc-xaxis strong{font-weight:700}
.pc-xaxis small{font-size:10.5px;color:#8a98ad}
.pc-xaxis .pc-hidden{visibility:hidden}
.pc-message{position:absolute;inset:0;display:grid;place-content:center;justify-items:center;text-align:center;gap:4px;padding:12px}
.pc-message strong{font-size:13.5px;color:#253a5c}
.pc-message p{margin:0;max-width:300px;font-size:12.5px;line-height:1.5;color:#5f6f86}
.pc-message a{margin-top:6px;font-size:12.5px;font-weight:700;color:#1f55d6;text-decoration:none}
.pc-error{position:static;min-height:180px;color:#a23b34}
.pc-card[aria-busy="true"] .pc-chart{opacity:.55;transition:opacity .15s ease}
@container (max-width:380px){
  .pc-chart{--pc-axis-w:38px}
  .pc-xaxis .pc-thin{visibility:hidden}
  .pc-xaxis small{display:none}
}

/* ---- Page Guide ------------------------------------------------------------ */
.page-guide-btn,.app-content .page-guide-btn{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px 0 5px;
  border:1px solid #d3e0f8!important;border-radius:999px!important;background:#f3f7ff;color:#1f55d6;font:700 12px/1 Inter,"Segoe UI",system-ui,sans-serif;
  cursor:pointer;white-space:nowrap;vertical-align:middle;box-shadow:none!important;transform:none!important}
.page-guide-btn:hover{background:#e8f0ff}
.page-guide-btn:focus-visible{outline:3px solid #9bb8ff;outline-offset:2px}
.page-guide-btn-icon{width:20px;height:20px;border-radius:50%;background:#245df5;color:#fff;display:grid;place-items:center;font-size:12px;font-weight:800}

body.dn-guide-open{overflow:hidden}
.pg-root{position:fixed;inset:0;z-index:200}
.pg-root[hidden]{display:none}
.pg-scrim{position:absolute;inset:0;background:rgba(16,33,63,.42);opacity:0;transition:opacity .18s ease}
.pg-panel{position:absolute;top:0;right:0;bottom:0;width:min(440px,100vw);box-sizing:border-box;display:flex;flex-direction:column;background:#fff;color:#30425f;
  box-shadow:-24px 0 60px rgba(16,33,63,.18);transform:translateX(28px);opacity:0;transition:transform .2s ease,opacity .2s ease;
  font-family:Inter,"Segoe UI",system-ui,sans-serif;outline:none}
.pg-root.is-open .pg-scrim{opacity:1}
.pg-root.is-open .pg-panel{transform:none;opacity:1}
.pg-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:20px 22px 14px;border-bottom:1px solid #edf1f6}
.pg-eyebrow{font-size:10.5px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:#2d61ef}
.pg-head h2{margin:4px 0 0;font-size:20px;line-height:1.2;letter-spacing:-.02em;color:#10213f}
.pg-close{flex:0 0 auto;width:36px;height:36px;border-radius:10px;border:1px solid #e3eaf4;background:#fff;color:#4f6689;font-size:22px;line-height:1;cursor:pointer}
.pg-body{flex:1 1 auto;overflow-y:auto;padding:16px 22px 22px;font-size:14px;line-height:1.55}
.pg-purpose{margin:0;font-size:14.5px;color:#253a5c}
.pg-section{margin-top:20px}
.pg-section h3{margin:0 0 9px;font-size:11.5px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:#5f6f86}
.pg-actions{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.pg-actions li{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:10px 12px;border:1px solid #e6ecf5;border-radius:12px;background:#fafcff}
.pg-actions strong{display:block;font-size:13.5px;color:#142542}
.pg-actions span{display:block;margin-top:2px;font-size:13px;color:#5d6f8a}
.pg-show{flex:0 0 auto;padding:5px 11px;border:1px solid #cfdcf6;border-radius:999px;background:#fff;color:#245df5;font:700 12px/1.2 inherit;cursor:pointer}
.pg-show:hover{background:#eef4ff}
.pg-steps{list-style:none;margin:0;padding:0;counter-reset:pg}
.pg-steps li{counter-increment:pg;position:relative;padding:1px 0 10px 34px}
.pg-steps li::before{content:counter(pg);position:absolute;left:0;top:0;width:24px;height:24px;border-radius:50%;background:#edf3ff;color:#245df5;
  font-size:12px;font-weight:800;display:grid;place-items:center}
.pg-limits{margin:20px 0 0;padding:10px 12px;border:1px solid #f0dda8;border-radius:10px;background:#fff8e8;color:#6b5312;font-size:13px}
.pg-links{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.pg-links a{display:inline-block;padding:7px 12px;border-radius:999px;background:#f1f5fd;color:#1f55d6;font-size:12.5px;font-weight:700;text-decoration:none}
.pg-links a:hover{background:#e4edff}
.pg-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 22px calc(12px + env(safe-area-inset-bottom));border-top:1px solid #edf1f6}
.pg-foot small{font-size:12px;color:#5f6f86}
.pg-done{flex:0 0 auto;min-height:38px;padding:0 18px;border:0;border-radius:10px;background:linear-gradient(135deg,#316cf7,#2255dd);color:#fff;font:700 13px/1 inherit;cursor:pointer}
.pg-panel :focus-visible{outline:3px solid #9bb8ff;outline-offset:2px}
@media (max-width:640px){
  .pg-panel{top:auto;left:0;width:100%;max-height:88dvh;border-radius:18px 18px 0 0;transform:translateY(32px);box-shadow:0 -18px 50px rgba(16,33,63,.22)}
  .pg-head{padding:16px 16px 12px}.pg-body{padding:14px 16px 18px}.pg-foot{padding-left:16px;padding-right:16px}
  .pg-foot small{display:none}.pg-done{flex:1 1 auto}
}

/* "Show me": the highlighted control pulses briefly after the guide closes. */
.pg-spotlight{outline:3px solid #2d61ef!important;outline-offset:4px;border-radius:12px;animation:pg-pulse 1.3s ease-out 2}
@keyframes pg-pulse{0%{box-shadow:0 0 0 0 rgba(45,97,239,.45)}100%{box-shadow:0 0 0 14px rgba(45,97,239,0)}}
@media (prefers-reduced-motion:reduce){
  .pg-panel,.pg-scrim{transition:none}
  .pg-spotlight{animation:none}
}

/* ---- fixes found by the 1920/1440/1024/768/390 verification sweep ---------- */
/* A <select> sizes itself to its longest option; inside a grid cell it must yield. */
.app-content label>:is(input,select,textarea),.app-content .form-grid :is(input,select,textarea){max-width:100%;min-width:0;box-sizing:border-box}
.app-content .form-grid label>:is(input,select){width:100%}
/* Dashboard lists: "1fr" means minmax(auto,1fr), so one long call summary widened the card. */
.dn-reference-dashboard .activity-list>a{grid-template-columns:32px minmax(0,1fr) auto}
.dn-reference-dashboard .message-task-list>a{grid-template-columns:18px minmax(0,1fr) auto}
.dn-reference-dashboard .reference-insights a{grid-template-columns:40px minmax(0,1fr) auto}
.dn-reference-dashboard .activity-list small{max-width:none}
/* Chart header keeps title and range on one row down to phone width. */
.pc-head{flex-wrap:nowrap}
.pc-head h2{min-width:0}
@container (max-width:380px){.pc-head h2{font-size:14px}.pc-head h2 span{display:none}}

/* landing-v5.css is loaded on every page and defines its own .dn-card (a horizontal flex row
   with a gradient) and .dn-status. Inside the workspace those leaked onto the dashboard: the
   Today's Schedule header sat beside its list instead of above it, squeezing patient names to a
   few letters. Reset them for the authenticated shell only; the landing page is untouched. */
.app-shell .dn-card{display:block;gap:normal;align-items:normal;background:#fff;border:1px solid #e6ecf5}
.app-shell .dn-card.pc-card{display:flex;flex-direction:column}
.app-shell .dn-card p{font-size:inherit;margin-top:0}
.app-shell .dn-status{padding:5px 9px;border-radius:999px;font-weight:800}
.app-shell .dn-status:not(.live):not(.warn):not(.bad){background:#eef2f8;color:#68778f}
/* Brand + collapse control must fit the 214px sidebar without clipping the wordmark. */
.app-shell .app-sidebar-head{gap:6px}
.app-shell .app-brand{min-width:0;gap:7px!important}
.app-shell .app-brand .wordmark{font-size:20px!important}
.app-shell a.top-icon-btn svg{width:20px;height:20px}
/* A closed drawer must not cast its shadow onto the page edge. */
@media (max-width:768px){
  .app-shell:not(.nav-open) .app-sidebar{box-shadow:none!important;visibility:hidden;transition:transform .22s ease,visibility 0s linear .22s}
  .app-shell.nav-open .app-sidebar{visibility:visible;transition:transform .22s ease}
}
/* A global footer{} rule (landing page) painted the guide's footer navy. */
.pg-root .pg-foot{background:#fff!important;color:#30425f!important;margin:0}
.app-shell .pc-card .pc-message p{font-size:12.5px;margin:0}

/* ---- dashboard day calendar (DayScheduleCalendar) -------------------------- */
.dn-schedule-card{display:flex!important;flex-direction:column;min-width:0}
.dsc-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:12px}
.dsc-head h2{display:flex;align-items:center;gap:8px;margin:0;font-size:15px;color:#142542}
.dsc-head h2 span{color:#2f61ff}
.dsc-head-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.dsc-nav{display:inline-flex;border:1px solid #dce5f0;border-radius:9px;overflow:hidden;background:#fff}
.dsc-nav button,.app-content .dsc-nav button{border:0!important;border-radius:0!important;background:#fff;color:#33486a;font:700 12px/1 Inter,system-ui,sans-serif;padding:7px 10px;min-height:32px;cursor:pointer;transform:none!important}
.dsc-nav button+button{border-left:1px solid #e3eaf4!important}
.dsc-nav button:disabled{color:#a7b3c6;cursor:default}
.dsc-nav button:hover:not(:disabled){background:#f3f7ff}
.dsc-book{display:inline-flex;align-items:center;min-height:32px;padding:0 12px;border-radius:9px;background:linear-gradient(135deg,#316cf7,#2255dd);color:#fff;text-decoration:none;font-size:12px;font-weight:800;white-space:nowrap}
.dsc-book:hover{filter:brightness(1.05)}
.dsc-full{margin-top:10px;align-self:flex-end;font-size:11.5px;font-weight:700;color:#2f61ff;text-decoration:none}
.dsc{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
.dsc-scroll{flex:1 1 auto;max-height:440px;overflow:auto;border:1px solid #edf1f7;border-radius:12px;background:#fff}
.dsc-grid{display:grid;grid-template-columns:52px minmax(calc(var(--dsc-lanes) * 120px),1fr);min-height:calc(var(--dsc-hours) * 60px)}
.dsc-hours{list-style:none;margin:0;padding:0;display:grid;grid-template-rows:repeat(var(--dsc-hours),1fr);border-right:1px solid #edf1f7;background:#fbfcfe}
.dsc-hours li{position:relative}
.dsc-hours span{position:absolute;top:-7px;right:8px;font-size:10.5px;font-weight:700;color:#5f6f86;white-space:nowrap}
.dsc-hours li:first-child span{top:3px}
.dsc-track{position:relative;min-width:0}
.dsc-line{position:absolute;left:0;right:0;height:0;border-top:1px solid #eef2f7}
.dsc-now{position:absolute;left:0;right:0;height:0;border-top:2px solid #e5484d;z-index:3;pointer-events:none}
.dsc-now i{position:absolute;left:-5px;top:-6px;width:10px;height:10px;border-radius:50%;background:#e5484d}
.dsc-items{list-style:none;margin:0;padding:0;position:absolute;inset:0}
.dsc-items li{position:absolute;box-sizing:border-box;padding:1px 3px}
.dsc-appt,.app-content .dsc-appt{width:100%;height:100%;box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;gap:1px;overflow:hidden;
  text-align:left;padding:4px 8px;border:1px solid #d6e3fb!important;border-left:4px solid #3b82f6!important;border-radius:8px!important;background:#f3f7ff;color:#142542;
  font:inherit;cursor:pointer;transform:none!important;box-shadow:none}
.dsc-appt:hover,.dsc-appt:focus-visible{background:#e8f0ff;outline:2px solid #2d61ef;outline-offset:1px}
.dsc-appt time{font-size:10.5px;font-weight:800;color:#2f61ff}
.dsc-appt strong{font-size:12px;line-height:1.2;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dsc-appt small{font-size:10.5px;color:#61718b;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dsc-appt.is-short{flex-direction:row;align-items:center;gap:6px;padding-top:1px;padding-bottom:1px}
.dsc-appt.is-short small{display:none}
.dsc-appt.st-scheduled{border-left-color:#e3a008!important;background:#fffaf0;border-color:#f5e3b5!important}
.dsc-appt.st-confirmed{border-left-color:#3b82f6!important}
.dsc-appt.st-active{border-left-color:#7c5cdb!important;background:#f6f3ff;border-color:#e2dafb!important}
.dsc-appt.st-done{border-left-color:#14a37f!important;background:#f1fbf7;border-color:#cdeee2!important}
.dsc-appt.st-noshow{border-left-color:#e5484d!important;background:#fff5f5;border-color:#f8d4d5!important;opacity:.85}
.dsc-empty{flex:1;display:grid;place-content:center;justify-items:center;gap:6px;text-align:center;min-height:240px;padding:16px;color:#5f6f86;border:1px dashed #dbe4f0;border-radius:12px}
.dsc-empty>span{font-size:26px;color:#b9c8e5}
.dsc-empty strong{color:#253a5c;font-size:14px}
.dsc-empty p{margin:0;max-width:320px;font-size:12.5px;line-height:1.5}
.dsc-empty-book{margin-top:6px;font-size:12.5px;font-weight:800;color:#1f55d6;text-decoration:none}
/* Legend, open-time links, status pills and the AI marker. The empty day keeps its grid so a click books a time. */
.dsc-legend{list-style:none;margin:0 0 10px;padding:0;display:flex;flex-wrap:wrap;gap:6px 14px;font-size:11px;font-weight:700;color:#5d6e88}
.dsc-legend li{display:inline-flex;align-items:center;gap:6px}
.dsc-legend i{width:10px;height:10px;border-radius:3px;display:inline-block}
.lg-unconfirmed{background:#e3a008}.lg-confirmed{background:#3b82f6}.lg-checkedin{background:#0ea5b7}.lg-inprogress{background:#7c5cdb}.lg-done{background:#14a37f}
.dsc-line.dsc-half{border-top-style:dashed;border-top-color:#f3f6fa}
.dsc-slots{position:absolute;inset:0;z-index:1}
.dsc-slot{position:absolute;left:0;right:0;display:flex;align-items:center;padding:0 10px;text-decoration:none;border-radius:6px;box-sizing:border-box}
.dsc-slot span{opacity:0;font-size:11px;font-weight:800;color:#2459e6;transition:opacity .12s}
.dsc-slot:hover,.dsc-slot:focus-visible{background:#f2f6ff;outline:1px dashed #9fb7f5;outline-offset:-1px}
.dsc-slot:hover span,.dsc-slot:focus-visible span{opacity:1}
.dsc-items{z-index:2;pointer-events:none}
.dsc-items li{pointer-events:auto}
.dsc-appt-top{display:flex;align-items:center;justify-content:space-between;gap:6px;width:100%;min-width:0}
.dsc-appt-top time{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dsc-pill{flex:0 0 auto;font-size:9.5px;font-weight:800;padding:2px 7px;border-radius:999px;background:#e7efff;color:#2459e6;white-space:nowrap}
.dsc-pill.st-scheduled{background:#fff1d1;color:#9a6700}
.dsc-pill.st-confirmed{background:#e3edff;color:#1f55d6}
.dsc-pill.st-checkedin{background:#dcf6f9;color:#0b7a87}
.dsc-pill.st-active{background:#ece6ff;color:#5b3fc4}
.dsc-pill.st-done{background:#dcf5ec;color:#0f7a5c}
.dsc-pill.st-noshow{background:#fde2e2;color:#b42318}
.dsc-appt.st-checkedin{border-left-color:#0ea5b7!important;background:#f0fbfc;border-color:#c9eef3!important}
.dsc-ai{font-style:normal;margin-left:6px;font-size:9px;font-weight:900;letter-spacing:.04em;padding:1px 5px;border-radius:5px;background:linear-gradient(135deg,#316cf7,#7c5cdb);color:#fff;vertical-align:1px}
.dsc-appt.is-short .dsc-appt-top{width:auto}
.dsc-appt.is-short .dsc-pill{display:none}
.dsc-empty-note{position:absolute;left:50%;top:38%;transform:translate(-50%,-50%);z-index:0;display:grid;gap:4px;text-align:center;padding:14px 18px;
  background:rgba(255,255,255,.92);border:1px dashed #d4def0;border-radius:12px;color:#5f6f86;font-size:12.5px;pointer-events:none;max-width:80%}
.dsc-empty-note strong{color:#253a5c;font-size:13.5px}
.appt-detail{display:grid;gap:10px;margin:0 0 6px}
.appt-detail>div{display:grid;grid-template-columns:110px minmax(0,1fr);gap:10px;align-items:baseline}
.appt-detail dt{font-size:12px;font-weight:800;color:#5f6f86;text-transform:uppercase;letter-spacing:.04em}
.appt-detail dd{margin:0;color:#142542;font-size:14px}
@media (max-width:520px){.appt-detail>div{grid-template-columns:1fr;gap:2px}.dsc-head-actions{width:100%;justify-content:space-between}}

/* ---- AI call history detail ---------------------------------------------- */
.call-history .call-intent{display:flex;flex-wrap:wrap;gap:4px 14px}
.call-history .call-intent b{color:#142542}
.call-history a.copilot-badge{text-decoration:none}
.call-history .badge-alert{background:#fde2e2!important;color:#b42318!important}
.call-history .call-detail{display:block!important;background:#fafcff}
.call-history .call-detail h3{margin:14px 0 6px;font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:#5f6f86}
.call-history .call-review{padding:10px 12px;border:1px solid #f0dda8;border-radius:10px;background:#fff8e8;color:#6b5312}
.call-history .call-transcript{white-space:pre-wrap;font:inherit;font-size:13px;line-height:1.6;margin:0;max-height:360px;overflow:auto;padding:10px 12px;border:1px solid #e6ecf5;border-radius:10px;background:#fff}
.call-history .call-muted{color:#5f6f86}
.call-history code{font-size:12px}
/* Phones: three overlapping visits fit the card; more than three scroll inside the calendar, never the page. */
@media (max-width:520px){
  .dsc-grid{grid-template-columns:44px minmax(calc(var(--dsc-lanes) * 86px),1fr)}
  .dsc-hours span{right:5px;font-size:10px}
  .dsc-appt,.app-content .dsc-appt{padding:3px 5px}
  .dsc-appt strong{font-size:11.5px}
}

/* ---- Communications workspace (Communications.razor) ----------------------
   Three panes that fill the viewport: conversations, the thread with its scheduling card, and the patient.
   Each pane scrolls on its own, so there is no dead white space under a short thread. */
.cx-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap}
.cx-heading-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.cx-ai-switch{display:inline-flex;align-items:center;gap:8px;padding:7px 12px;border:1px solid #dfe7f3;border-radius:999px;background:#fff;font-size:12.5px;color:#4b5d7a;box-shadow:var(--dn-shadow)}
.cx-ai-switch b{color:#5f6f86}
.cx-ai-switch.on b{color:#0f7a5c}
.cx-ai-dot{width:8px;height:8px;border-radius:50%;background:#b8c3d4}
.cx-ai-switch.on .cx-ai-dot{background:#19a97b;box-shadow:0 0 0 3px #d9f4ea}
.cx-link-btn,.app-content .cx-link-btn{border:0!important;background:none!important;color:#2459e6!important;font-weight:800;font-size:12px;cursor:pointer;padding:2px 4px!important;box-shadow:none!important;transform:none!important}
.cx-link-btn:disabled{color:#a7b3c6!important;cursor:default}
.cx-notice{margin-bottom:12px}
.cx-workspace{display:grid;grid-template-columns:320px minmax(0,1fr) 280px;gap:14px;height:calc(100vh - 262px);min-height:520px}
.cx-workspace.no-thread{grid-template-columns:320px minmax(0,1fr)}
.cx-list,.cx-thread,.cx-context{background:#fff;border:1px solid var(--dn-line);border-radius:16px;box-shadow:var(--dn-shadow);min-height:0;min-width:0}
.cx-list{display:flex;flex-direction:column;overflow:hidden}
.cx-list-head{padding:12px 12px 8px;border-bottom:1px solid #eef2f7;display:grid;gap:8px}
.cx-list-head .sms-search{width:100%;box-sizing:border-box}
.cx-chips{display:flex;flex-wrap:wrap;gap:5px}
.cx-chips button,.app-content .cx-chips button{border:1px solid #e0e8f3!important;background:#fff!important;color:#4b5d7a!important;border-radius:999px!important;padding:4px 10px!important;font-size:11.5px!important;font-weight:700;cursor:pointer;min-height:0!important;box-shadow:none!important;transform:none!important}
.cx-chips button.active{background:#2459e6!important;border-color:#2459e6!important;color:#fff!important}
.cx-rows{flex:1;overflow-y:auto;padding:6px}
.cx-empty{padding:24px 12px;text-align:center}
.cx-row,.app-content .cx-row{display:flex;gap:10px;width:100%;text-align:left;padding:10px;border:1px solid transparent!important;border-radius:12px!important;background:transparent!important;cursor:pointer;color:#142542;font:inherit;box-shadow:none!important;transform:none!important;margin-bottom:2px}
.cx-row:hover{background:#f6f9ff!important}
.cx-row.selected{background:#edf3ff!important;border-color:#d3e0fc!important}
.cx-row.unread b{color:#0d1f3d}
.cx-avatar{flex:0 0 auto;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;font-size:12.5px;font-weight:800;color:#fff;background:linear-gradient(135deg,#3a72f5,#1f4fcf)}
.cx-avatar.lg{width:42px;height:42px;font-size:14px}
.cx-avatar.unknown{background:#c5cfdf}
.cx-row-body{flex:1;min-width:0;display:grid;gap:2px}
.cx-row-top{display:flex;justify-content:space-between;gap:8px}
.cx-row-top b{font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cx-row-top time{font-size:11px;color:#5f6f86;white-space:nowrap}
.cx-row-phone{font-size:11.5px;color:#5f6f86}
.cx-row-preview{display:flex;justify-content:space-between;gap:8px;font-size:12.5px;color:#5b6b84}
.cx-row-preview>span:first-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cx-row.unread .cx-row-preview>span:first-child{color:#1c2f52;font-weight:600}
.cx-row-tags{display:flex;flex-wrap:wrap;gap:4px;margin-top:2px}
.cx-row-tags:empty{display:none}
.cx-tag{font-size:10.5px;font-weight:800;padding:2px 7px;border-radius:999px;background:#eef2f8;color:#5d6e88}
.cx-tag.req{background:#e6eeff;color:#1f55d6}
.cx-tag.review{background:#fff1d1;color:#9a6700}
.cx-tag.booked{background:#dcf5ec;color:#0f7a5c}
.cx-tag.error{background:#fde2e2;color:#b42318}
.cx-thread{display:flex;flex-direction:column;overflow:hidden}
.cx-placeholder{margin:auto;text-align:center;color:#5f6f86;padding:24px;max-width:360px}
.cx-placeholder>span{font-size:30px;color:#b9c8e5}
.cx-placeholder h2{font-size:17px;color:#1d3050;margin:8px 0 4px}
.cx-thread-head{display:flex;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid #eef2f7;flex-wrap:wrap}
.cx-thread-title{flex:1;min-width:140px}
.cx-thread-title h2{margin:0;font-size:16.5px;color:#142542}
.cx-thread-title span{font-size:12px;color:#5f6f86}
.cx-thread-actions{display:flex;gap:6px;flex-wrap:wrap}
.cx-thread-actions .secondary-action{font-size:12px;padding:6px 10px;text-decoration:none}
.cx-banner{margin:10px 16px 0;padding:8px 12px;border-radius:10px;background:#fff8e8;border:1px solid #f0dda8;color:#6b5312;font-size:12.5px}
.cx-thread .sms-link-box{margin:10px 16px 0}
/* Appointment request in the chat: one compact line; staff tools collapsed below it */
.cx-schedule-line{align-self:center;display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;max-width:92%;margin:4px 0;padding:6px 12px;border-radius:999px;font-size:12.5px;background:#f1f4f9;color:#475166}
.cx-schedule-line a{font-weight:600}
.cx-schedule-done{background:#e9f7ef;color:#17703c}.cx-schedule-staff{background:#fff6e0;color:#7a5a00}.cx-schedule-checking{background:#eef3ff;color:#2f4fb0}
.cx-card-tools{align-self:stretch;border:1px solid #e3e8f1;border-radius:12px;background:#fff}
.cx-card-tools>summary{cursor:pointer;padding:8px 12px;font-size:12.5px;font-weight:600;color:#2f6fde}
.cx-card-tools>.cx-card{border:0;margin:0}

/* Conversation delivery indicators (Communications): one small status per outgoing text, no banners */
.cx-tick{display:inline-flex;align-items:center;gap:4px;font-size:11.5px;color:#7a8597;white-space:nowrap}
.cx-tick.ok{color:#1d8a4c}.cx-tick.bad{color:#b42318}.cx-tick.test{color:#8a6a00}
.cx-fail{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;margin-top:3px;font-size:12px;color:#b42318;align-self:flex-end;max-width:min(440px,90%);text-align:right;justify-content:flex-end}
.cx-retry{font-size:12px;font-weight:600}
.cx-fail-line{display:block;color:#b42318;font-size:11.5px;margin-top:2px}
.cx-msg.pending .cx-bubble{opacity:.7}
.cx-send-error{margin:6px 0 0;font-size:12.5px;color:#b42318}

/* Text Messaging (/app/sms-connection) */
.tm-card{background:#fff;border:1px solid #e3e8f1;border-radius:14px;padding:18px 20px;margin-bottom:16px;max-width:860px}
.tm-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
.tm-head h2{margin:0 0 4px;font-size:18px}.tm-lead{margin:0;color:#475166;font-size:14px}
.tm-chip{display:inline-flex;align-items:center;padding:3px 10px;border-radius:999px;font-size:12.5px;font-weight:700;white-space:nowrap}
.tm-ok{background:#e3f5ea;color:#17703c}.tm-bad{background:#fde8e8;color:#a32020}.tm-setup{background:#fff3d6;color:#7a5a00}.tm-idle{background:#eef1f6;color:#475166}
.tm-rows{margin:16px 0 0;display:grid;gap:0}
.tm-row{display:grid;grid-template-columns:180px 1fr;gap:6px 14px;padding:10px 0;border-top:1px solid #eef1f6;align-items:center}
.tm-row dt{font-weight:600;font-size:13.5px;color:#1f2a3d}.tm-row dd{margin:0;display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center;font-size:14px}
.tm-row dd small{color:#5b6475;font-size:12.5px}
.tm-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:16px}
.tm-note{color:#5b6475;font-size:13px;max-width:860px}
.tm-steps{list-style:none;margin:12px 0;padding:0;display:grid;gap:10px}
.tm-step{display:flex;gap:12px;align-items:flex-start;padding:12px;border:1px solid #e3e8f1;border-radius:12px}
.tm-step p{margin:4px 0 0;color:#475166;font-size:13.5px}.tm-step label{display:block;font-size:13px;margin:6px 0 4px}
.tm-step small{color:#5b6475;font-size:12px}
.tm-step-mark{flex:0 0 26px;height:26px;border-radius:50%;display:grid;place-items:center;font-weight:700;background:#eef1f6;color:#5b6475}
.tm-step-done{border-color:#bfe6cd;background:#f6fcf8}.tm-step-done .tm-step-mark{background:#e3f5ea;color:#17703c}
.tm-step-failed{border-color:#f3c4c4;background:#fffafa}.tm-step-failed .tm-step-mark{background:#fde8e8;color:#a32020}
.tm-send-row{display:flex;gap:8px;flex-wrap:wrap}.tm-send-row input{flex:1 1 200px;min-width:0;padding:9px 12px;border:1px solid #d6dbe6;border-radius:9px;font:inherit}
.tm-error{color:#a32020;font-size:13px}
@media (max-width:640px){.tm-card{padding:14px}.tm-row{grid-template-columns:1fr}}

/* AI SMS assistant (Communications header) */
.sa-control{display:inline-flex}
.sa-chip{display:inline-flex;align-items:center;gap:8px;min-height:38px;padding:6px 12px;border:1px solid #d6dbe6;border-radius:999px;background:#fff;font:inherit;font-size:13px;cursor:pointer;color:#1f2a3d}
.sa-chip b{margin-left:2px}
.sa-dot{width:9px;height:9px;border-radius:50%;background:#9aa4b5}
.sa-assist .sa-dot{background:#2f6fde}.sa-autoreply .sa-dot{background:#1d9a55}.sa-setuprequired .sa-dot,.sa-paused .sa-dot{background:#d98a00}
.sa-count{min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:#2f6fde;color:#fff;font-size:11.5px;display:grid;place-items:center}
.sa-scrim{position:fixed;inset:0;background:rgba(15,23,42,.28);z-index:60;cursor:pointer}
.sa-panel{position:fixed;top:0;right:0;bottom:0;width:min(520px,100vw);background:#fff;z-index:61;overflow-y:auto;padding:18px 20px 28px;box-shadow:-12px 0 32px rgba(15,23,42,.18);display:flex;flex-direction:column;gap:14px}
.sa-head{display:flex;align-items:center;justify-content:space-between}.sa-head h2{margin:0;font-size:18px}
.sa-close{border:0;background:none;font-size:26px;line-height:1;cursor:pointer;color:#5b6475;min-width:40px;min-height:40px}
.sa-problem{margin:0;padding:8px 12px;border-radius:10px;background:#fff8e8;border:1px solid #f0dda8;color:#6b5312;font-size:13px}
.sa-modes,.sa-group{border:1px solid #e3e8f1;border-radius:12px;padding:12px 14px;margin:0;display:flex;flex-direction:column;gap:10px}
.sa-modes legend,.sa-group legend{font-weight:600;font-size:13.5px;padding:0 4px}
.sa-group summary{cursor:pointer;font-weight:600;font-size:13.5px}
.sa-mode{display:flex;gap:10px;align-items:flex-start;padding:10px;border:1px solid #e3e8f1;border-radius:10px;cursor:pointer}
.sa-mode.selected{border-color:#2f6fde;background:#f3f7ff}
.sa-mode small{display:block;color:#5b6475;font-size:12.5px;margin-top:2px}.sa-mode em{font-style:normal;font-size:11.5px;color:#2f6fde;margin-left:6px}
.sa-check{display:flex;gap:8px;align-items:flex-start;font-size:13px}
.sa-check > input{flex:none;margin-top:2px}
.sa-field{display:flex;flex-direction:column;gap:4px;font-size:13px}
.sa-field input,.sa-field select,.sa-field textarea,.sa-row input{padding:8px 10px;border:1px solid #d6dbe6;border-radius:8px;font:inherit;font-size:13px;min-width:0}
.sa-row{display:flex;gap:10px;flex-wrap:wrap}.sa-row>*{flex:1 1 160px}
.sa-note{color:#5b6475;font-size:12.5px}
.sa-escalation small{color:#5b6475;font-size:12.5px}
.sa-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.sa-check>span b{display:block;font-weight:600}.sa-check>span small{display:block;color:#5b6475;font-size:12.5px;margin-top:2px}
.sa-check input{margin-top:3px}
.sa-booking{padding:8px 10px;border:1px solid #e3e8f1;border-radius:10px}.sa-booking.on{border-color:#2f6fde;background:#f3f7ff}
.sa-fixed{color:#33405a}.sa-tick{display:inline-flex;width:16px;justify-content:center;color:#1f8a4c;font-weight:700;margin-top:1px}
.sa-pause{border-top:1px dashed #e3e8f1;padding-top:10px}
.sa-advanced[open] summary{margin-bottom:6px}
.sa-actions{position:sticky;bottom:-1px;background:#fff;padding:12px 0 4px;border-top:1px solid #e3e8f1;flex-direction:column;align-items:stretch}
.sa-actions .sa-save{align-self:flex-start;min-width:160px}
.sa-actions p{margin:0}.sa-pending{padding:8px 12px;border-radius:10px;background:#f3f7ff;border:1px solid #c9dafc;color:#1d3f8f;font-size:13px}
.sa-now{font-size:12.5px;color:#5b6475}.sa-now b{color:#1d2433;font-weight:600}
.sa-sub{margin-left:26px}
.sa-effective{list-style:none;margin:6px 0 0;padding:0;display:grid;gap:4px;font-size:12.5px}
.sa-effective li{display:flex;justify-content:space-between;gap:12px;color:#5b6475;border-top:1px solid #eef1f6;padding-top:4px}
.sa-effective b{color:#1d2433;font-weight:600}.sa-effective b[data-on="True"]{color:#1d7a46}
.cx-takeover-confirm{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:8px;padding:8px 10px;border:1px solid #f1d9a6;background:#fff8ea;border-radius:8px;font-size:13px}
.cx-takeover-confirm p{margin:0;flex:1 1 220px}
.sa-preview{border-left:3px solid #2f6fde;padding:8px 12px;background:#f7f9fd;border-radius:8px;font-size:13px}
.sa-preview p{margin:0 0 6px}.sa-preview blockquote{margin:0 0 6px;padding:8px 10px;background:#fff;border:1px solid #e3e8f1;border-radius:8px}
.sa-note-line{font-size:12px;color:#5b6475;padding:3px 0}
.sa-activity{align-self:stretch;font-size:12.5px;color:#5b6475;background:#f6f8fb;border:1px solid #e3e8f1;border-radius:10px;padding:6px 12px}
.sa-activity summary{cursor:pointer;font-weight:600}
.cx-handling{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:10px 16px 0;padding:8px 12px;border-radius:10px;border:1px solid #e3e8f1;background:#f8fafc;font-size:13px}
.cx-handling-pill{display:inline-flex;align-items:center;gap:6px;font-weight:700;white-space:nowrap}
.cx-handling-dot{width:9px;height:9px;border-radius:50%;background:#9aa4b5}
.cx-handling-text{flex:1 1 220px;color:#475166}
.cx-handling-aihandling{background:#effaf3;border-color:#bfe6cd}.cx-handling-aihandling .cx-handling-dot{background:#1d9a55}
.cx-staff-actions{margin:8px 16px 0;padding:8px 12px;border:1px dashed #d5dce8;border-radius:10px;background:#fff;font-size:13px}
.cx-staff-actions-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.cx-staff-actions-row>b{color:#5f6f86;font-size:12px;text-transform:uppercase;letter-spacing:.04em}
.cx-staff-actions .secondary-action{font-size:13px;padding:6px 12px;min-height:0}
.cx-staff-actions .sms-link-box,.cx-staff-actions .cx-card{margin:10px 0 0}
.cx-handling-staffhandling{background:#f3f6fb;border-color:#d9e1ee}.cx-handling-staffhandling .cx-handling-dot{background:#2f6fde}
.cx-handling-needsattention{background:#fff8e8;border-color:#f0dda8}.cx-handling-needsattention .cx-handling-dot{background:#d98a00}
.sa-draft{align-self:flex-end;width:min(440px,92%);border:1px dashed #2f6fde;border-radius:12px;background:#f3f7ff;padding:10px 12px;display:flex;flex-direction:column;gap:8px}
.sa-draft header small{color:#5b6475;font-size:12px;margin-left:4px}
.sa-draft textarea{width:100%;box-sizing:border-box;padding:8px 10px;border:1px solid #c9d6f2;border-radius:8px;font:inherit;font-size:13.5px}
.sa-draft-actions{display:flex;gap:10px;align-items:center}
@media (max-width:640px){.sa-panel{width:100vw;padding:14px 16px 24px}.sa-chip{font-size:12.5px}}
.conn-test-steps{list-style:none;margin:12px 0;padding:0;display:grid;gap:8px}
.conn-test-steps li{display:flex;gap:10px;align-items:flex-start;padding:8px 10px;border:1px solid #e3e8f1;border-radius:10px;background:#fff}
.conn-test-steps li b{display:block;font-size:13.5px}
.conn-test-steps li small{display:block;color:#5b6475;font-size:12.5px;overflow-wrap:anywhere}
.conn-test-steps .step-mark{flex:0 0 22px;height:22px;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:700;background:#eef1f6;color:#5b6475}
.conn-test-steps .step-done .step-mark{background:#e3f5ea;color:#17703c}
.conn-test-steps .step-failed .step-mark{background:#fde8e8;color:#a32020}
.conn-test-steps .step-failed{border-color:#f3c4c4}
.cx-assign{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:10px 16px 0;font-size:12.5px;color:var(--muted,#5b6475)}
.cx-assign label{display:flex;align-items:center;gap:8px}
.cx-assign select{min-height:34px;padding:4px 8px;border:1px solid #d6dbe6;border-radius:8px;background:#fff;font-size:13px;max-width:220px}
.cx-messages{flex:1;overflow-y:auto;padding:14px 18px;display:flex;flex-direction:column;gap:10px;background:linear-gradient(180deg,#fbfcff,#f7f9fd)}
.cx-day{text-align:center;margin:6px 0}
.cx-day span{font-size:11px;font-weight:800;color:#5f6f86;background:#eef2f8;padding:3px 10px;border-radius:999px}
.cx-msg{display:flex;flex-direction:column;max-width:min(72%,560px)}
.cx-msg-author{font-size:10.5px;font-weight:800;color:#5f6f86;margin:0 4px 3px;letter-spacing:.02em}
.cx-bubble{padding:9px 13px;border-radius:16px;font-size:13.5px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
.cx-msg-meta{display:flex;gap:8px;align-items:center;font-size:10.5px;color:#5f6f86;margin:3px 6px 0}
.cx-msg.from-patient{align-self:flex-start}
.cx-msg.from-patient .cx-bubble{background:#fff;border:1px solid #e3eaf4;border-bottom-left-radius:5px;color:#16294a}
.cx-msg.from-ai,.cx-msg.from-staff,.cx-msg.from-system{align-self:flex-end;align-items:flex-end}
.cx-msg.from-ai .cx-bubble{background:linear-gradient(135deg,#2f66f0,#5a4fdc);color:#fff;border-bottom-right-radius:5px;box-shadow:0 6px 16px rgba(55,90,220,.18)}
.cx-msg.from-ai .cx-msg-author{color:#5a4fdc}
.cx-msg.from-staff .cx-bubble{background:#e6efff;border:1px solid #d3e0fc;color:#13284d;border-bottom-right-radius:5px}
.cx-msg.from-system .cx-bubble{background:#f1f3f7;border:1px dashed #d5dce7;color:#4b5d7a;border-bottom-right-radius:5px}
.cx-msg.simulated .cx-bubble{opacity:.8;outline:1px dashed #b8c3d4;outline-offset:2px}
.cx-card{align-self:stretch;margin-top:6px;padding:14px 16px;border:1px solid #d7e2f7;border-radius:16px;background:#fff;box-shadow:0 10px 26px rgba(30,65,125,.08)}
.cx-card.state-needsstaffreview{border-color:#f0dda8}
.cx-card.state-booked,.cx-card.state-rescheduled{border-color:#bfe8d7}
.cx-card-head{display:flex;align-items:center;gap:10px}
.cx-card-head h3{margin:0;font-size:15px;color:#142542}
.cx-card-head small{font-size:11.5px;color:#5f6f86}
.cx-card-head>div{flex:1;min-width:0}
.cx-card-icon{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:#eaf0ff;color:#2459e6;font-size:17px}
.cx-card-status{font-size:11px;font-weight:800;padding:4px 10px;border-radius:999px;background:#eaf0ff;color:#1f55d6;white-space:nowrap}
.cx-card.state-needsstaffreview .cx-card-status{background:#fff1d1;color:#9a6700}
.cx-card.state-booked .cx-card-status,.cx-card.state-rescheduled .cx-card-status{background:#dcf5ec;color:#0f7a5c}
.cx-card-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px 16px;margin:12px 0 4px}
.cx-card-facts>div{display:grid;gap:1px}
.cx-card-facts dt{font-size:10.5px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:#5f6f86}
.cx-card-facts dd{margin:0;font-size:13.5px;font-weight:700;color:#142542}
.cx-card-review{margin:8px 0;padding:8px 11px;border-radius:10px;background:#fff8e8;border:1px solid #f0dda8;color:#6b5312;font-size:12.5px}
.cx-slots-label{margin:12px 0 6px;font-size:11px;font-weight:800;color:#5f6f86;text-transform:uppercase;letter-spacing:.05em}
.cx-slots{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px}
.cx-slot,.app-content .cx-slot{display:grid;gap:1px;text-align:left;padding:10px 12px;border:1px solid #d9e3f3!important;border-radius:12px!important;background:#f8fbff!important;color:#142542;cursor:pointer;font:inherit;box-shadow:none!important;transform:none!important}
.cx-slot strong{font-size:16px;color:#1f55d6}
.cx-slot span{font-size:12px;font-weight:700}
.cx-slot small{font-size:11px;color:#5f6f86}
.cx-slot em{font-style:normal;font-size:10.5px;font-weight:800;color:#0f7a5c;margin-top:3px}
.cx-slot:hover{border-color:#9fb7f5!important}
.cx-slot.selected{border-color:#2459e6!important;background:#eaf0ff!important;box-shadow:0 0 0 2px #c9d8fb!important}
.cx-slot.patient-choice{border-color:#19a97b!important}
.cx-finder{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-end;margin-top:12px}
.cx-finder label{display:grid;gap:3px;font-size:11px;font-weight:800;color:#5f6f86;flex:1 1 160px}
.cx-finder select,.cx-finder input{font-size:13px;padding:7px 9px;min-height:36px}
.cx-card-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:12px}
.cx-card-actions .secondary-action,.cx-card-actions .primary-action{text-decoration:none;font-size:12.5px}
.cx-card-start summary{cursor:pointer;font-weight:800;font-size:13px;color:#1f55d6}
.cx-confirmed{margin-top:10px;padding:14px;border-radius:14px;background:linear-gradient(135deg,#effbf6,#f5fbff);border:1px solid #c7ecdc}
.cx-confirmed-title{font-size:14px;font-weight:900;color:#0f7a5c}
.cx-confirmed-when{font-size:16px;font-weight:800;color:#142542;margin-top:6px}
.cx-confirmed-time{font-size:20px;font-weight:900;color:#1f55d6}
.cx-confirmed-detail{font-size:12.5px;color:#4b5d7a;margin-top:2px}
.cx-confirmed-sms{margin-top:10px;font-size:12.5px;font-weight:800}
.cx-confirmed-sms.ok{color:#0f7a5c}
.cx-confirmed-sms.bad{color:#b42318}
.cx-confirmed-sms.test{color:#6b5312}
.cx-confirmed.cancelled{background:#fafbfd;border-color:#e3eaf4}
.cx-confirmed.cancelled .cx-confirmed-title{color:#5f6f86}
.cx-action-result{margin:8px 16px 0}
.cx-composer{border-top:1px solid #eef2f7;padding:10px 16px 12px;margin:0}
.cx-composer textarea{width:100%;box-sizing:border-box;resize:vertical;min-height:52px}
.cx-context{padding:16px;overflow-y:auto}
.cx-context h3{margin:0 0 10px;font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:#5f6f86}
.cx-context dl{display:grid;gap:11px;margin:0}
.cx-context dt{font-size:10.5px;font-weight:800;color:#5f6f86;text-transform:uppercase;letter-spacing:.04em}
.cx-context dd{margin:2px 0 0;font-size:13px;color:#142542;font-weight:600;display:grid;gap:1px}
.cx-context dd small{font-size:11.5px;color:#5f6f86;font-weight:500}
.cx-context dd a{color:#1f55d6;text-decoration:none}
.cx-context-link{display:inline-block;margin-top:14px;text-decoration:none;font-size:12.5px}
@media (max-width:1279px){
  .cx-workspace{grid-template-columns:290px minmax(0,1fr);height:auto;min-height:0}
  .cx-workspace .cx-list,.cx-workspace .cx-thread{height:calc(100vh - 262px);min-height:520px}
  .cx-context{grid-column:1 / -1}
  .cx-context dl{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}
}
@media (max-width:900px){
  .cx-workspace,.cx-workspace.no-thread{grid-template-columns:1fr!important}
  .cx-workspace .cx-list{height:auto;max-height:340px;min-height:0}
  .cx-workspace .cx-thread{height:auto;min-height:480px}
  .cx-messages{max-height:60vh}
  .cx-msg{max-width:88%}
}
.cx-blocked{border-top:1px solid #eef2f7;padding:10px 16px;font-size:12px;color:#8a5a00;background:#fffaf0}
.dsc-legend{gap:4px 12px;font-size:10.5px}
/* Patient eligibility: the "What Stedi returned" section. */
.eligibility-subhead{margin:16px 0 6px;font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:#5f6f86}
.eligibility-notes{margin:0;padding-left:18px;font-size:13px;color:#30425f;display:grid;gap:4px}
/* Platform-wide indicator: insurance eligibility is running against Stedi Test Mode. */
.stedi-test-pill{display:inline-flex;align-items:center;gap:6px;padding:7px 11px;border-radius:999px;background:#fff4d6;border:1px solid #f1d58a;color:#8a5a00;font-size:11px;font-weight:900;letter-spacing:.05em;text-decoration:none;white-space:nowrap}
.stedi-test-pill::before{content:"";width:7px;height:7px;border-radius:50%;background:#e3a008}
.stedi-test-pill.connected{background:#e7f6ec;border-color:#9fd8b2;color:#17663a}
.stedi-test-pill.connected::before{background:#1f9d55}
.stedi-test-pill.not-configured::before{background:#d64545}
@media (max-width:768px){.stedi-test-pill{padding:5px 8px;font-size:10px}}
/* Stedi Test Patients view (Eligibility Center). */
.stedi-badge{display:inline-block;margin:0 6px 2px 0;padding:2px 7px;border-radius:6px;background:#fff4d6;border:1px solid #f1d58a;color:#8a5a00;font-size:10px;font-weight:900;letter-spacing:.05em;vertical-align:1px}
.stedi-official-table td{vertical-align:top}
.stedi-official-table td small{display:block;color:#5f6f86;font-size:11.5px;margin-top:2px}
.stedi-official-table code{font-size:12px}
.stedi-actions{display:flex;gap:6px;flex-wrap:wrap;align-items:flex-start}
.stedi-actions a{text-decoration:none}
/* Eligibility Center data-set tabs (Practice Patients | Stedi Test Patients) are links, not buttons. */
.app-shell .tab-strip a[role=tab]{font-size:14px;font-weight:700;color:var(--rad-muted,#5b6b82);padding:11px 16px;text-decoration:none;border-bottom:2px solid transparent;margin-bottom:-1px}
.app-shell .tab-strip a[role=tab]:hover{color:var(--rad-ink,#0f1b2d)}
.app-shell .tab-strip a[role=tab].active{color:var(--rad-accent,#245df5);border-bottom-color:var(--rad-accent,#245df5)}
.stedi-test-pill.not-verified::before{background:#e3a008}

/* ---- AI Front Desk → Languages (AiVoiceLanguagesPanel) ---- */
.vlang-panel .vlang-heading{margin:22px 0 10px;font-size:15px;color:var(--dn-ink,#10213f)}
.vlang-available{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:10px}
.vlang-available li{display:grid;grid-template-columns:1fr auto;gap:6px 10px;align-items:center;padding:14px;border:1px solid #9fd8b2;background:#fbfffc;border-radius:12px}
.vlang-available .vlang-script{grid-column:1 / -1;color:var(--dn-muted,#5b6b86)}
.vlang-available .link-btn{grid-column:1 / -1;justify-self:start}
.vlang-native{font-weight:800;font-size:16px;color:var(--dn-ink,#10213f)}
.vlang-native[dir="rtl"]{display:inline-block}
.vlang-english{display:block;font-size:12.5px;color:var(--dn-muted,#5b6b86)}
td .vlang-english{display:inline}
.vlang-row-note{display:block;margin-top:4px;color:var(--dn-muted,#5b6b86);font-size:12px}
.vlang-gap{margin-top:12px}
.vlang-empty{color:var(--dn-muted,#5b6b86)}
.vlang-search-label{display:block;margin:10px 0 6px;font-weight:700;font-size:13px}
.vlang-search{width:100%;max-width:420px;box-sizing:border-box;padding:10px 12px;border:1px solid #cdd6e6;border-radius:10px;font:inherit;min-width:0!important}
.vlang-search:focus-visible{outline:3px solid #8fb0ff;outline-offset:2px}
.vlang-count{margin:6px 0 10px;font-size:12.5px;color:var(--dn-muted,#5b6b86)}
.vlang-later{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:6px}
.vlang-later li{padding:9px 11px;border:1px solid var(--dn-line,#e2e9f4);border-radius:10px}
@media (max-width:768px){.vlang-demand th:nth-child(2),.vlang-demand td:nth-child(2){white-space:nowrap}.vlang-available,.vlang-later{grid-template-columns:minmax(0,1fr)}}
.vlang-later{max-height:420px;overflow-y:auto;padding:2px}
.vlang-later:focus-visible{outline:3px solid #8fb0ff;outline-offset:2px;border-radius:10px}
@media (max-width:768px){
  .vlang-demand,.vlang-demand tbody{display:block;width:100%;min-width:0!important}   /* .data-table sets min-width:560px */
  .vlang-demand thead{display:none}
  .vlang-demand tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;padding:12px 0;border-bottom:1px solid var(--dn-line,#e2e9f4)}
  .vlang-demand td{padding:0!important;border:0!important}
  .vlang-demand .vlang-unit{display:inline;color:var(--dn-muted,#5b6b86)}
  .vlang-demand td:nth-child(3){grid-column:1 / -1}
}
.vlang-unit{display:none}

/* AI phone number purchase-status page (/app/phone-number/orders/{id}) */
.number-order .alert{margin:14px 0}
.number-order-steps{margin:16px 0 8px}
.number-order-sub{margin:24px 0 8px;font-size:1.05rem}
.number-order-setup{margin:0 0 8px;padding-left:20px;display:grid;gap:8px}
.number-order-actions{margin-top:18px;flex-wrap:wrap}
.number-order-confirm{display:inline-flex;flex-wrap:wrap;gap:8px;align-items:center}
/* Company overview (/admin) and fixed costs */
.pf-overview{margin-bottom:20px}
.pf-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
.pf-head h2{margin:0 0 4px}
.pf-month{display:flex;gap:6px}
.pf-est{display:inline-block;font-size:11px;font-weight:600;color:#8a5a00;background:#fff4dc;border:1px solid #f1d9a6;border-radius:6px;padding:0 5px;vertical-align:1px}
.pf-missing ul{margin:6px 0 0 18px;padding:0}
.pf-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:16px;margin:12px 0}
.pf-grid h3,.pf-overview>h3{font-size:15px;margin:8px 0}
.pf-total td{font-weight:700;border-top:2px solid #e3e8f1}
.table-scroll{overflow-x:auto;max-width:100%}
.row-muted{opacity:.6}
.fc-actions{white-space:nowrap}
.pf-kpis a.pf-card{display:block;text-decoration:none;color:inherit;border-radius:16px}
.pf-kpis a.pf-card article{height:100%;box-sizing:border-box;transition:border-color .15s,box-shadow .15s}
.pf-kpis a.pf-card:hover article,.pf-kpis a.pf-card:focus-visible article{border-color:#3157f6;box-shadow:0 6px 20px rgba(49,87,246,.12)}
.pf-kpis a.pf-card:focus-visible{outline:2px solid #3157f6;outline-offset:2px}
.pf-month input[type=month],.pf-month-label input{padding:7px 9px;border:1px solid #dce2ec;border-radius:9px;font:inherit;min-width:0}
.pf-month-label{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:#55627a}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}
.pr-filters{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:14px}
.pr-chip{border:1px solid #dce2ec;background:#fff;border-radius:999px;padding:7px 12px;font-size:13px;cursor:pointer}
.pr-chip b{margin-left:4px;color:#3157f6}
.pr-chip.active{background:#eaf0ff;border-color:#3157f6;color:#1f3fb8}
.pr-search{flex:1 1 220px;min-width:0;padding:8px 10px;border:1px solid #dce2ec;border-radius:9px}
.pr-id{display:block;font-family:ui-monospace,Consolas,monospace;color:#5f6f86}
.pr-flag{display:inline-block;margin:4px 4px 0 0;font-size:11px;padding:1px 7px;border-radius:999px;background:#f1f4f9;color:#55627a}
.pr-flag.strong{background:#fff4dc;color:#8a5a00;border:1px solid #f1d9a6}
.pr-actions{white-space:nowrap}.pr-actions .link-btn{margin-right:8px}
.pr-confirm{display:grid;gap:8px;padding:10px 12px;border:1px solid #f1d9a6;background:#fff8ea;border-radius:10px}
.pr-confirm p{margin:0}.pr-confirm label{display:grid;gap:4px;font-size:13px}.pr-confirm input{padding:8px 10px;border:1px solid #dce2ec;border-radius:8px;min-width:0}
.pr-confirm-row td{background:#fffdf7}

/* Circuit failure banner (App.razor) and the per-page ErrorBoundary fallback (AppLayout/AdminLayout). */
#blazor-error-ui{display:none;position:fixed;left:0;right:0;bottom:0;z-index:2000;padding:12px 52px 12px 16px;background:#fff4dc;color:#5c3d00;border-top:1px solid #f1d9a6;box-shadow:0 -4px 16px rgba(15,23,42,.12);font-size:15px}
#blazor-error-ui .reload{margin-left:8px;font-weight:600;color:#1d4ed8;text-decoration:underline}
#blazor-error-ui .dismiss{position:absolute;right:10px;top:6px;border:0;background:none;font-size:22px;line-height:1;cursor:pointer;color:inherit;min-width:36px;min-height:36px}
.page-error-fallback{display:grid;gap:8px;justify-items:start;max-width:560px;margin:24px auto;padding:20px;border:1px solid #f1d9a6;background:#fff8ea;border-radius:12px;color:#5c3d00}
.page-error-fallback p{margin:0}
/* iOS Safari sends click events only to elements that look clickable: tapping outside a dialog or menu must close it. */
.modal-backdrop{cursor:pointer}.modal-backdrop .modal-card{cursor:auto}
/* New Appointment form: every control the same size (inputs inside a 12px label inherited 12px), and room under the patient-search label. */
.appt-editor input:not([type=checkbox]):not([type=radio]),.appt-editor select,.appt-editor textarea{font-size:15px;min-height:42px}
.appt-search>label{margin-bottom:6px;line-height:1.4}
/* Phones: iOS Safari zooms the page when a field under 16px gets focus, and the fixed Copilot button must not cover the last field. */
@media (max-width:768px){
  .app-shell input:not([type=checkbox]):not([type=radio]):not([type=range]),.app-shell select,.app-shell textarea{font-size:16px}
  .appt-editor{padding-bottom:84px}
}
