/* Phone layout shared by sales, office, management and physician accounts. */
.product-hero-photo img.catalog-pack{object-fit:contain}
.mobile-tools,.mobile-sidebar-close,.mobile-selected-option,.da-mobile-bucket{display:none}
@media(max-width:1024px),(max-width:1024px) and (max-height:600px){
 :root{--phone-ink:#34273e;--phone-muted:#61516d;--phone-line:#ded3e6}
 html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-padding-top:76px}
 body{font-size:16px;line-height:1.65}
 *,*:before,*:after{box-sizing:border-box}
 .shell{display:block}.shell,.shell .body,.shell .content{min-width:0;width:100%;max-width:100%}
 .shell .content{padding:22px 16px 30px}
 h1,.page-heading h1{font-size:28px;line-height:1.25;overflow-wrap:anywhere}
 .subtitle,.page-heading .subtitle{font-size:16px;line-height:1.6}
 .page-heading{gap:14px;margin-bottom:20px}
 .page-heading>div,.heading-actions{min-width:0;max-width:100%}
 .heading-actions{display:flex;flex-wrap:wrap;gap:8px;width:100%}
 .heading-actions .btn{flex:1 1 140px}
 .heading-actions .btn.secondary-action{display:inline-flex}
 .eyebrow{font-size:12px;line-height:1.6}
 .btn,.heading-actions .btn,.btn.text,.tabs button,.physician-pills .btn,.da-page .btn,.da-tabs>button,.da-toggle button,.schedule-view-switch button{min-height:46px;font-size:14px;line-height:1.45;padding:11px 14px;white-space:normal;max-width:100%;touch-action:manipulation}
 .icon-btn{width:46px;min-width:46px;height:46px;min-height:46px;touch-action:manipulation}
 button,a,input,select,textarea,summary{-webkit-tap-highlight-color:#87649d25}
 .btn:focus-visible,button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #8b65a3;outline-offset:2px}
 input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea,
 .filter-bar input,.filter-bar select,.search input,#modal select:not([multiple]),#modal .module-form input:not([type=hidden]):not([type=checkbox]),#modal .module-form select,#modal .module-form textarea,#modal .note-form input[type=datetime-local],.da-page input,.da-page select{font-size:16px!important;min-height:48px;height:48px;line-height:1.4;max-width:100%;min-width:0;width:100%;border-radius:8px;color:var(--phone-ink)}
 input[type=date],input[type=datetime-local],input[type=time],input[type=month]{min-inline-size:0;max-inline-size:100%;font-variant-numeric:tabular-nums}
 input::-webkit-date-and-time-value{text-align:left;min-height:1.4em}
 textarea,#modal .module-form textarea,.order-entry-form textarea{height:auto!important;min-height:104px!important;line-height:1.6!important}
 input[type=checkbox],input[type=radio]{width:22px;height:22px;min-height:22px;flex-shrink:0;accent-color:#654676}
 label:has(>input[type=checkbox]),label:has(>input[type=radio]){min-height:44px;align-items:center;padding:8px 0;font-size:14px;line-height:1.5}
 .field,label.field,#modal .module-form label.field,.entry-field,.filter-label,.schedule-control-caption,.schedule-date-field,.schedule-region-field{font-size:14px!important;line-height:1.5;color:#513b60}
 .field-row,.module-grid,.user-form-grid{grid-template-columns:minmax(0,1fr)!important;gap:14px}
 .field-row>*,.module-grid>*,.user-form-grid>*{min-width:0;max-width:100%}
 .mobile-selected-option:not([hidden]){display:block;font-size:14px!important;font-weight:400;line-height:1.5;color:#5e486c;margin:5px 0 0;white-space:normal;overflow-wrap:anywhere}
 .filter-bar,.toolbar,.calendar-toolbar,.module-filter{max-width:100%;gap:14px;padding:16px}
 .filter-bar .filter-control,.filter-bar .filters,.toolbar>label.field{min-width:0;max-width:100%;flex:1 1 100%}
 .filter-input-wrap{min-width:0;width:100%}
 .filter-result-count{font-size:14px}
 .table-footer{font-size:13px;line-height:1.6;gap:9px;flex-wrap:wrap}
 .notice,.module-hint,.entry-help,.reset-note,.empty,.price-disclaimer,.currency-note{font-size:14px!important;line-height:1.7;overflow-wrap:anywhere}
 .footnote,.footnote p,.sync-indicator{font-size:13px;line-height:1.7}
 .footnote button{font-size:14px;min-height:44px;padding:9px 10px;margin:4px 4px 0 0;text-align:left;text-decoration:underline}
 #toast{width:calc(100% - 32px);max-width:430px;font-size:14px;bottom:max(16px,env(safe-area-inset-bottom));padding:13px 16px;z-index:100}
 /* A compact header keeps the current page and two large actions visible. */
 .shell .topbar,.physician-shell .topbar{position:sticky;top:0;z-index:6;padding:8px 12px;min-height:64px;gap:10px}
 .topbar .breadcrumb{min-width:0;flex:1;gap:9px;overflow:hidden}
 .topbar .breadcrumb>b,.physician-shell .topbar .breadcrumb b{font-size:15px;line-height:1.4;white-space:normal;overflow-wrap:normal}
 .topbar .breadcrumb>span,.topbar .breadcrumb>.icon,.topbar .top-demo,.topbar .top-date{display:none}
 .topbar .top-actions{gap:8px;flex-shrink:0}
 .topbar .icon-btn,.topbar .btn,.topbar .notification-button{min-width:46px;min-height:46px;height:46px;width:46px;padding:10px;font-size:14px;border-radius:9px}
 .topbar .btn:not(.toolbar-inbox){width:auto}
 .topbar .breadcrumb .mobile-menu{display:inline-flex!important}.topbar .mobile-menu .icon{display:block;width:22px;height:22px}
 .mobile-tools{display:block;position:relative}
 .mobile-tools>summary{display:flex;align-items:center;justify-content:center;width:46px;height:46px;border:1px solid #d6c8e0;background:#fff;color:#654676;border-radius:9px;cursor:pointer;list-style:none}
 .mobile-tools>summary::-webkit-details-marker{display:none}
 .mobile-tools-menu{position:absolute;right:0;top:calc(100% + 10px);width:min(285px,calc(100vw - 24px));padding:7px;background:#fff;border:1px solid #d4c5df;border-radius:12px;box-shadow:0 10px 32px #36223f26;z-index:15}
 .mobile-tools:not([open])>.mobile-tools-menu{display:none}
 .topbar .mobile-tools-menu .btn,.topbar .mobile-tools-menu .icon-btn{display:flex;align-items:center;justify-content:flex-start;gap:12px;width:100%;min-width:0;min-height:48px;height:auto;padding:12px;border:0;box-shadow:none;background:#fff;color:#493253;font-size:15px;text-align:left;white-space:normal}
 .mobile-tool-label{display:inline}
 .mobile-tools-menu .btn:hover,.mobile-tools-menu .icon-btn:hover{background:#f4eef8}
 /* Navigation takes its own scrolling area; the page behind it cannot receive input. */
 .shell .sidebar,.physician-shell .sidebar{position:fixed!important;left:0;top:0;bottom:0;width:min(330px,calc(100vw - 44px))!important;height:100dvh!important;max-height:var(--portal-viewport-height,100dvh);z-index:10;padding:18px 12px max(14px,env(safe-area-inset-bottom))!important;display:flex!important;flex-direction:column;overflow:hidden;transform:translateX(-105%)!important;visibility:hidden;background:#fff;box-shadow:10px 0 36px #30203930}
 .shell.nav-open .sidebar,.physician-shell.nav-open .sidebar{transform:translateX(0)!important;visibility:visible}
 .shell .sidebar .logo,.physician-shell .sidebar .logo{padding:4px 44px 20px 12px;margin:0;flex-shrink:0}
 .shell .sidebar .sinclair-brand img{width:160px;max-width:100%}
 .shell .sidebar .sinclair-brand small{font-size:10px;letter-spacing:2.5px;margin-top:7px}
 .shell .sidebar .workspace,.shell .sidebar>.nav-label,.shell .sidebar .mode-note{display:none}
 .shell .sidebar nav,.physician-shell .sidebar nav{display:flex!important;flex-direction:column;flex:1 1 auto;overflow-y:auto;overscroll-behavior:contain;min-height:0!important;gap:4px;margin:0!important;padding:3px 2px 12px;-webkit-overflow-scrolling:touch}
 .shell .sidebar .nav-btn,.physician-shell .sidebar .nav-btn{min-height:48px;padding:12px;font-size:15px;text-align:left;flex-shrink:0}
 .shell .sidebar .nav-section{font-size:12px;margin:16px 12px 7px}
 .shell .sidebar .nav-plan{margin-top:8px;padding-top:8px}
 .shell .side-bottom{flex:0 0 auto;padding-top:8px;margin-top:0}
 .shell .side-bottom>.nav-btn{min-height:44px}
 .shell .profile{padding:9px 12px 0;margin-top:6px}
 .shell .profile b{font-size:14px}
 .shell .profile small{font-size:13px}
 .physician-shell .sidebar .physician-account{padding:2px 12px 15px!important;margin:0}
 .physician-shell .physician-account h3{font-size:16px;line-height:1.5;margin:0}
 .physician-shell .physician-account p{font-size:14px;line-height:1.5}
 .mobile-sidebar-close,.shell .physician-menu-close{display:flex;position:absolute;right:10px;top:13px;width:44px;height:44px;min-width:44px;min-height:44px;align-items:center;justify-content:center;background:#fff;border:1px solid #d9cde1;border-radius:8px}
 .shell.nav-open #mobile-shade{display:block;position:fixed;inset:0;background:#2c1c3a66;z-index:9}
 /* Keep all table data in one vertical record instead of hiding columns. */
 .mobile-record-wrap,.table-wrap.mobile-record-wrap,.da-table-scroll.mobile-record-wrap{overflow:visible;max-width:100%;width:100%}
 .mobile-record-wrap:after{display:none!important}
 table.mobile-record-table,.dialog-body table.mobile-record-table{display:block;width:100%;min-width:0!important;max-width:100%;table-layout:fixed}
 .mobile-record-table colgroup{display:none}
 .mobile-record-table thead{position:absolute;width:1px;height:1px;overflow:hidden;contain:strict;clip-path:inset(50%);white-space:nowrap}
 .mobile-record-table tbody,.mobile-record-table tfoot{display:block;width:100%;max-width:100%}
 .mobile-record-table tbody>tr,.mobile-record-table tfoot>tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px 12px;width:100%;padding:18px 16px;border-bottom:1px solid #dfd4e6;background:#fff}
 .mobile-record-table tfoot>tr{background:#f3edf8}
 .mobile-record-table td,.dialog-body .mobile-record-table td,.da-table.mobile-record-table td{display:flex;flex-direction:column;align-items:flex-start;min-width:0;width:auto!important;max-width:100%;padding:0!important;border:0!important;text-align:left!important;white-space:normal!important;overflow-wrap:anywhere;font-size:15px!important;line-height:1.55}
 .mobile-record-table td[data-mobile-label]:not([data-mobile-label=""]):before{content:attr(data-mobile-label);display:block;font-size:13px;line-height:1.5;color:#685375;font-weight:500;margin-bottom:4px;text-transform:none;letter-spacing:0}
 .mobile-record-table td.mobile-cell-wide{grid-column:1/-1}
 .mobile-record-table td.mobile-cell-empty{display:none}
 .mobile-record-table td:first-child{font-size:16px!important;font-weight:600}
 .mobile-record-table td .person{display:flex;min-width:0;align-items:center;width:100%;gap:10px}
 .mobile-record-table .person>div{min-width:0}
 .mobile-record-table .person b,.mobile-record-table td>b{font-size:16px!important;line-height:1.5;white-space:normal;overflow-wrap:anywhere}
 .mobile-record-table td small{display:block;font-size:14px!important;line-height:1.5;margin-top:4px;white-space:normal;overflow-wrap:anywhere}
 .mobile-record-table td .btn{width:100%;min-height:46px;font-size:14px!important;white-space:normal}
 .mobile-record-table td.mobile-cell-action{padding-top:8px!important;border-top:1px solid #ece4f1!important}
 .mobile-record-table .price,.mobile-record-table .da-number{font-size:16px!important;font-variant-numeric:tabular-nums;white-space:normal!important}
 .order-list-table .order-open-action,.physician-order-list .order-open-action{min-height:46px;font-size:14px}
 .order-list-table .order-id{display:inline-flex;align-items:center;min-height:44px}
 .order-list-table .status{min-height:32px;font-size:14px}
 /* Dialogs fit the visual viewport when a phone keyboard reduces available height. */
 #modal[open]{position:fixed;left:0;right:0;top:calc(var(--portal-viewport-top,0px) + 8px);bottom:auto;margin:0 auto;width:calc(100% - 16px)!important;max-width:720px;max-height:calc(var(--portal-viewport-height,100dvh) - 16px);border-radius:15px;overflow:hidden}
 #modal .dialog-header{padding:16px;gap:12px;min-height:76px;align-items:center}
 #modal .dialog-header>div{min-width:0}
 #modal .dialog-header h2{font-size:21px;line-height:1.3;overflow-wrap:anywhere}
 #modal .dialog-header .eyebrow{font-size:11px;line-height:1.5;letter-spacing:1.2px;margin-bottom:5px}
 #modal .dialog-header .icon-btn,#modal .dialog-header>button{width:44px;height:44px;min-width:44px;min-height:44px;flex-shrink:0}
 #modal .dialog-body{padding:18px 16px;font-size:16px;line-height:1.65;overflow-x:hidden;overscroll-behavior:contain;scroll-padding-bottom:24px}
 #modal .dialog-body h3{font-size:19px;line-height:1.4}
 #modal .dialog-footer,#modal form .dialog-footer{padding:12px 16px max(12px,env(safe-area-inset-bottom));gap:8px;flex-wrap:wrap;align-items:center}
 #modal .dialog-footer>p{font-size:13px;line-height:1.5;flex:1 1 100%;max-width:100%;margin:0}
 #modal .dialog-footer>.btn{flex:1 1 130px;width:auto;min-width:0;min-height:46px;font-size:14px}
 #modal .dialog-body .btn{min-height:46px;font-size:14px}
 #modal .tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;overflow:visible}
 #modal .tabs button{font-size:14px;min-width:0;padding:10px 7px}
 .doctor-hero{align-items:flex-start;gap:12px}
 .doctor-hero>div{min-width:0}
 .doctor-hero h2{font-size:21px;overflow-wrap:anywhere}
 .doctor-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .doctor-meta .meta-block:last-child{grid-column:1/-1}
 .doctor-meta .meta-block{padding:12px}
 .doctor-meta .meta-block small{font-size:13px}
 .doctor-meta .meta-block b{font-size:16px;line-height:1.5}
 .detail-summary{align-items:flex-start;flex-direction:column;gap:12px}
 .detail-summary>strong{font-size:27px;line-height:1.3;overflow-wrap:anywhere}
 .billing-snapshot{margin:16px 0;padding:14px;gap:13px}
 .billing-snapshot small,.billing-snapshot p{font-size:13px}
 .billing-snapshot b{font-size:16px}
 .billing-snapshot span,.history-row small,.note-meta{font-size:14px;line-height:1.6}
 .doctor-comments{padding:14px}
 .comment-heading{flex-wrap:wrap}
 .comment-heading h3{margin:0}
 .comment-footer .btn{align-self:stretch}
 .entry-product-row{grid-template-columns:minmax(0,1fr) 46px;gap:12px}
 .entry-product-row>.entry-field:first-child{grid-column:1/-1}
 .entry-product-row>.entry-field:nth-child(2){width:126px;max-width:100%}
 .entry-product-row>.entry-remove{grid-column:2;width:46px;min-width:46px;height:48px}
 .entry-price-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
 .entry-price-row>*{min-width:0}
 .entry-line-total strong{font-size:20px;overflow-wrap:anywhere}
 .entry-price-origin,.entry-help,.order-draft-hint,.order-draft-origin{font-size:14px!important;line-height:1.6}
 .order-entry-form .entry-field{font-size:14px}
 .order-entry-form .entry-line{padding:14px}
 .order-entry-form .order-summary strong{font-size:27px;overflow-wrap:anywhere}
 .order-draft-bar{padding:13px;gap:10px}
 .order-draft-bar b,.order-draft-bar strong{font-size:15px}
 .order-draft-bar [role=status]{font-size:14px;line-height:1.5}
 .order-draft-bar .btn{width:100%}
 .physician-order-line{display:grid;grid-template-columns:minmax(0,1fr) 46px;gap:12px;padding:14px;border:1px solid var(--phone-line);border-radius:10px;background:#fcfafe;margin:14px 0}
 .physician-order-line>label:first-child{grid-column:1/-1}
 .physician-order-line>label:nth-child(2){grid-column:1;grid-row:2;width:126px;max-width:100%}
 .physician-order-line>strong{grid-column:1;grid-row:3;padding:0;font-size:20px!important;line-height:1.4}
 .physician-order-line>button{grid-column:2;grid-row:2;margin:0;align-self:end;width:46px!important;height:48px!important;min-width:46px!important}
 .physician-order-line label.field{font-size:14px;margin:0}
 .physician-order-line select,.physician-order-line input{margin:6px 0 0}
 .physician-order-total{flex-direction:column;align-items:flex-start;gap:10px;padding:16px}
 .physician-order-total strong{font-size:27px;overflow-wrap:anywhere}
 .physician-order-total small{font-size:13px}
 /* Product material remains readable, with every section available without horizontal tabs. */
 .catalog-grid{grid-template-columns:minmax(0,1fr);gap:16px}
 .catalog-card{display:grid;grid-template-columns:115px minmax(0,1fr);min-width:0;align-items:stretch;text-align:left}
 .catalog-card .catalog-visual{height:auto;min-height:180px}
 .catalog-card-copy{padding:17px 15px;min-width:0}
 .catalog-card h2{font-size:20px;line-height:1.3;margin:8px 0;overflow-wrap:anywhere}
 .catalog-card small,.catalog-card p{font-size:14px;line-height:1.6}
 .catalog-card-copy>span{font-size:14px}
 .catalog-photo-note{font-size:12px!important}
 .product-hero{grid-template-columns:minmax(0,1fr)}
 .product-hero-photo{min-height:0;height:280px;padding:22px}
 .product-hero-photo .catalog-pack{height:210px;max-height:210px;width:100%}
 .product-hero-photo .product-photo-label{font-size:18px;bottom:16px;left:20px}
 .product-hero-photo .product-photo-label>span{font-size:10px;margin-top:2px}
 .product-hero-copy{padding:23px 20px}
 .product-hero h1{font-size:30px}
 .product-tagline{font-size:26px;line-height:1.3}
 .product-intro,.product-lead,.product-editorial p,.product-science p,.product-evidence p,.product-practice p,.product-questions p{font-size:16px;line-height:1.7}
 .product-nav,.physician-shell .product-nav{position:static;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);overflow:visible;gap:7px;padding:15px 0;background:transparent;white-space:normal}
 .product-nav button{white-space:normal;min-height:46px;font-size:14px;line-height:1.45;padding:10px;background:#fff;border:1px solid #dacde3;border-radius:8px}
 .product-presentation section[id],.physician-shell .product-presentation section[id]{scroll-margin-top:80px}
 .product-facts{grid-template-columns:1fr 1fr}
 .product-facts>div{padding:15px 12px;min-width:0}
 .product-facts small{font-size:13px}
 .product-facts strong{font-size:15px;line-height:1.5}
 .product-hero-action{gap:12px}
 .product-hero-action .btn,.product-document>.btn{min-height:48px}
 .product-questions summary{padding:16px 10px;min-height:48px;font-size:16px;line-height:1.5}
 .product-upload-actions,.product-upload-doc-actions{display:flex;flex-wrap:wrap;gap:8px}
 .product-upload-actions .btn,.product-upload-doc-actions .btn{flex:1 1 120px}
 .product-case-pair{grid-template-columns:1fr;gap:12px}
 .product-case-pair img{max-height:340px;width:100%;height:auto;object-fit:contain}
 .product-case-pair figcaption{font-size:14px}
 .product-rights{gap:10px;align-items:flex-start!important}
 input[type=file]{height:auto!important;min-height:48px;white-space:normal;padding:10px;line-height:1.5}
 input[type=file]::file-selector-button{font-size:14px;padding:8px 10px;max-width:100%;white-space:normal}
 .product-local-document,.product-pdf-body p,.product-local-document p{font-size:16px;line-height:1.7}
 /* Calendar: week becomes seven stacked days; year uses usable date targets. */
 .schedule-controls{display:grid;grid-template-columns:minmax(0,1fr);padding:16px;gap:16px}
 .schedule-context,.schedule-view-field,.schedule-date-controls,.schedule-region-field{width:100%;min-width:0;max-width:100%}
 .schedule-context{order:0}
 .schedule-view-field{order:1}
 .schedule-date-controls{order:2;display:grid;grid-template-columns:46px minmax(0,1fr) 46px;gap:8px;align-items:end}
 .schedule-date-controls .schedule-date-field{grid-column:2;grid-row:1}
 .schedule-date-controls>.icon-btn:first-child{grid-column:1;grid-row:1}
 .schedule-date-controls>.icon-btn:nth-child(3){grid-column:3;grid-row:1}
 .schedule-date-controls>.btn{grid-column:1/-1;width:100%;margin:0}
 .schedule-date-controls .icon-btn{width:46px;min-width:46px}
 .schedule-region-field{order:3}
 .appointment-assignee-field{order:4}
 .appointment-status-field{order:5}
 .schedule-controls .schedule-region-field select,.schedule-controls .schedule-date-field input{width:100%!important}
 .schedule-controls .schedule-view-switch{width:100%;gap:3px}
 .schedule-controls .schedule-view-switch button{font-size:14px;min-height:46px;padding:10px 5px;min-width:0}
 .schedule-filter-summary{padding:15px 16px}
 .schedule-filter-context,.schedule-filter-context>strong,.schedule-cancellation-note p,.schedule-visible-count{font-size:14px}
 .calendar-preferences-controls{align-items:stretch;gap:12px}
 .calendar-preferences-save{font-size:13px;line-height:1.6}
 .calendar-preferences-controls .calendar-preferences-reset{width:100%;min-height:46px;font-size:14px}
 .schedule-calendar-hint{font-size:14px;line-height:1.6;padding:12px 16px}
 .appointment-team-legend>span{font-size:13px;line-height:1.5}
 .calendar-week{font-size:12px}
 .schedule-panel .calendar-day{min-width:0;min-height:92px;padding:3px;overflow:hidden}
 .schedule-date-button{width:100%;min-width:0;min-height:44px;justify-content:center;padding:4px 0;font-size:15px;margin:0}
 .schedule-panel .calendar-grid .cal-event{font-size:12px;line-height:1.45;min-height:44px;padding:4px 2px;white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
 .schedule-panel .calendar-grid .cal-event>span{font-size:11px;display:block}
 .schedule-week-scroll{overflow:visible}
 .schedule-week-grid{grid-template-columns:minmax(0,1fr);min-width:0;width:100%;gap:12px;padding:12px}
 .schedule-week-grid .calendar-day{min-height:100px;padding:14px;border:1px solid var(--phone-line);border-radius:10px}
 .schedule-week-grid .schedule-date-button{flex-direction:row;justify-content:flex-start;gap:10px;min-height:46px;font-size:18px;width:100%;margin-bottom:8px}
 .schedule-week-grid .schedule-date-button small{font-size:14px}
 .schedule-week-grid .cal-event{font-size:15px;padding:12px;min-height:48px;margin-top:8px;line-height:1.6}
 .schedule-week-grid .cal-event>span{font-size:14px}
 .schedule-year{grid-template-columns:1fr;padding:12px;gap:14px}
 .schedule-mini-month{padding:14px}
 .schedule-month-title{font-size:18px;min-height:46px;padding:6px 0 12px}
 .schedule-mini-grid>small{font-size:13px}
 .schedule-mini-grid>button{min-height:44px;font-size:15px;padding:4px 0}
 .schedule-agenda-row{grid-template-columns:minmax(0,1fr);gap:6px;padding:15px}
 .schedule-agenda-row span{grid-row:auto;font-size:14px}
 .schedule-agenda-row b{font-size:16px}
 .schedule-agenda-row small,.agenda-item small,.agenda-date{font-size:14px;line-height:1.6}
 .agenda-item strong{font-size:16px;line-height:1.5}
 .agenda-item{min-height:48px}
 /* Analytics: complete figures and intervals fit the phone width. */
 .da-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px}
 .da-tabs>button{min-width:0;width:100%;font-size:14px;min-height:48px}
 .da-tabs>button:nth-child(4){grid-column:1/-1}
 .da-date-form{display:grid;grid-template-columns:minmax(0,1fr);gap:13px}
 .da-date-form label,.da-date-form>.btn{width:100%;min-width:0}
 .da-presets{gap:8px}
 .da-presets .btn{min-height:46px}
 .da-heading-actions .btn{min-height:46px}
 .da-value-button{font-size:29px;min-height:48px;overflow-wrap:anywhere;max-width:100%}
 .da-light-action{min-height:46px;font-size:14px;line-height:1.5;text-align:left}
 .da-team-row{flex-wrap:wrap;gap:10px}
 .da-team-row>strong{flex:1 1 100%;text-align:left;padding-left:42px;font-size:18px}
 .da-total{flex-wrap:wrap}
 .da-total strong{font-size:21px}
 .da-operation{grid-template-columns:1fr}
 .da-operation button{min-height:70px;display:grid;grid-template-columns:1fr auto;align-items:center;padding:14px}
 .da-operation button strong{font-size:25px}
 .da-operation button small{grid-column:1/-1;font-size:14px}
 .da-chart-scroll{overflow:visible;padding:14px 10px 0}
 .da-chart{min-width:0!important;width:100%;height:auto}
 .da-mobile-bucket{display:flex!important;flex-direction:column;gap:7px;margin:12px 16px 18px;font-size:14px;font-weight:600;color:#513b60}
 .da-mobile-bucket select{width:100%;height:48px;font-size:16px}
 .da-chart-caption,.da-panel-note,.da-method{font-size:14px;line-height:1.7}
 .da-toggle{flex-wrap:wrap;gap:6px}
 .da-toggle button{min-height:46px;min-width:0;flex:1 1 100px}
 .da-attention-actions{grid-template-columns:1fr}
 .da-attention-actions .btn{min-height:46px}
 .da-attention-row h3{overflow-wrap:anywhere}
 /* Cards, news, documents and internal conversations. */
 .home-welcome h1,.doctor-home .home-welcome h1,.staff-home .home-welcome h1{font-size:26px;line-height:1.3}
 .home-welcome p{font-size:15px;line-height:1.6}
 .doctor-home .home-hero-copy,.staff-home .home-hero-copy{padding:23px}
 .doctor-home .home-hero h2,.staff-home .home-hero h2{font-size:34px;line-height:1.12}
 .home-hero-copy>p:not(.eyebrow){font-size:16px!important;line-height:1.65!important}
 .doctor-home .home-hero>.portfolio-showcase,.staff-home .home-hero>.portfolio-showcase{height:230px;min-height:230px}
 .home-shortcuts b{font-size:16px}
 .home-shortcuts small{font-size:14px}
 .staff-stat,.metric{min-width:0}
 .metric-label,.metric-note,.staff-stat span,.staff-stat small{font-size:14px!important;line-height:1.5}
 .metric-value{font-size:27px!important;overflow-wrap:anywhere}
 .customer-grid,.document-grid,.news-grid,.congress-grid{grid-template-columns:minmax(0,1fr)}
 .document-card,.news-card,.customer-card{padding:19px;min-width:0}
 .document-card h3,.news-card h2,.customer-card h2{font-size:21px;line-height:1.35;overflow-wrap:anywhere}
 .document-card p,.news-card p,.customer-card p{font-size:16px;line-height:1.65}
 .document-card small,.news-card small{font-size:14px;line-height:1.6}
 .document-body{font-size:16px;line-height:1.75;overflow-wrap:anywhere}
 .message-bubble{width:100%;max-width:100%;padding:16px}
 .message-bubble>div{flex-wrap:wrap;gap:6px}
 .message-bubble b,.message-bubble time{font-size:14px}
 .message-bubble p{font-size:16px;line-height:1.65;overflow-wrap:anywhere}
 .module-banner{padding:24px 20px}
 .module-banner h2{font-size:29px;line-height:1.2}
 .congress-card h2{font-size:25px}
 .congress-card p{font-size:16px!important}
 .congress-footer{gap:12px;flex-wrap:wrap}
 .congress-footer .btn{width:100%}
 .notification-tabs{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
 .notification-tabs .btn{width:100%}
 .notification-item-head,.notification-receipt{flex-wrap:wrap;gap:8px}
 .notification-details{grid-template-columns:1fr}
 .notification-item h3,.notification-details dd{overflow-wrap:anywhere}
 .order-mail-actions{flex-direction:column;align-items:stretch}
 .order-mail-actions .btn{flex:auto;min-height:46px}
 .order-mail-preview iframe{height:calc(var(--portal-viewport-height,100dvh) - 260px);min-height:160px;max-width:100%}
 .order-cancel-form .btn{width:100%;min-height:46px}
 .order-cancel-form textarea{font-size:16px}
 .order-cancel-form label{font-size:14px;line-height:1.6}
 .login-shell{display:block;min-height:100dvh}
 .login-story{min-height:0;padding:26px 22px}
 .login-logo{width:175px;margin-bottom:25px}
 .login-story h1{font-size:31px;line-height:1.15}
 .login-copy{font-size:16px;line-height:1.6}
 .login-brands{font-size:15px;gap:10px;flex-wrap:wrap}
 .login-story small{font-size:13px;margin-top:22px;display:block}
 .login-form{padding:28px 22px 35px;min-width:0}
 .login-form h2{font-size:28px}
 .login-form .subtitle{font-size:16px}
 .login-form input,.login-form .btn{min-height:50px;font-size:16px}
 .login-form .btn{width:100%}
 .login-security{font-size:14px;line-height:1.6}
}
@media(max-width:359px){
 .shell .content{padding-left:12px;padding-right:12px}
 .shell .topbar{padding-left:8px;padding-right:8px;gap:7px}
 .topbar .breadcrumb{gap:7px}
 .topbar .breadcrumb b{font-size:14px}
 .topbar .top-actions{gap:6px}
 h1,.page-heading h1{font-size:26px}
 .mobile-record-table tbody>tr,.mobile-record-table tfoot>tr{grid-template-columns:1fr;padding:17px 14px}
 .catalog-card{grid-template-columns:95px minmax(0,1fr)}
 .catalog-card-copy{padding:15px 12px}
 .catalog-card h2{font-size:19px}
 .product-facts{grid-template-columns:1fr}
 .doctor-home .home-hero-copy,.staff-home .home-hero-copy{padding:21px}
 .doctor-home .home-hero h2,.staff-home .home-hero h2{font-size:30px}
 .da-kpis,.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
 .da-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}
 .da-tabs>button:nth-child(4){grid-column:auto}
}
@media(min-width:1025px) and (min-height:601px),(min-width:1025px){.mobile-tool-label{display:none}}

@media(max-width:1024px),(max-width:1024px) and (max-height:600px){.module-actions .btn{font-size:14px;min-height:46px}.mobile-record-table thead tr,.mobile-record-table thead th{max-width:1px!important;min-width:0!important;font-size:1px!important;padding:0!important;overflow:hidden!important}}
@media(max-width:1024px),(max-width:1024px) and (max-height:600px){.content .btn,.content .module-actions .btn,.content .toolbar .btn,.schedule-filter-summary .btn{font-size:14px!important;min-height:46px!important}.schedule-controls .btn{height:auto}}

@media(max-width:1024px),(max-width:1024px) and (max-height:600px){
 .mobile-filter-disclosure{display:block;min-width:0;max-width:100%;width:100%;border:1px solid #d7c9e1;border-radius:10px;background:#fff;overflow:hidden}
 .mobile-calendar-filters{order:3}
 .mobile-analytics-filters{margin-bottom:18px}
 .mobile-filter-disclosure>summary{position:relative;padding:14px 44px 14px 15px;list-style:none;cursor:pointer;color:#52365f;min-height:54px}
 .mobile-filter-disclosure>summary::-webkit-details-marker{display:none}
 .mobile-filter-disclosure>summary:after{content:'＋';position:absolute;right:16px;top:17px;font-size:22px;line-height:1}
 .mobile-filter-disclosure[open]>summary:after{content:'−'}
 .mobile-filter-disclosure>summary b{display:block;font-size:16px;line-height:1.5}
 .mobile-filter-disclosure>summary small{display:block;font-size:13px;line-height:1.5;color:#6a5378;margin-top:3px}
 .mobile-filter-disclosure:not([open])>.mobile-filter-content{display:none}
 .mobile-calendar-filters>.mobile-filter-content{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;padding:16px;border-top:1px solid #e4dae9}
 .mobile-analytics-filters .da-filter-panel{border:0;border-radius:0;margin:0;box-shadow:none;border-top:1px solid #e4dae9}
 .content:has(.schedule-panel)>.metrics .metric-note{display:none}
 .content:has(.schedule-panel)>.metrics .metric{padding:13px}
}

@media(max-width:1024px),(max-width:1024px) and (max-height:600px){.schedule-panel .calendar-grid .cal-event{font-size:14px;min-height:48px}.schedule-panel .calendar-grid .cal-event>span{font-size:12px}}

@media(max-width:1024px),(max-width:1024px) and (max-height:600px){.brand-filter,.filter-chip{font-size:14px!important;min-height:46px!important;padding:11px 14px!important;line-height:1.45;white-space:normal}.brand-selector,.order-state-chips{gap:8px;flex-wrap:wrap}.product-case-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:1024px),(max-width:1024px) and (max-height:600px){.physician-order-line>button{font-size:20px!important}}

@media(min-width:1025px) and (max-width:1100px){.topbar .user-info-label,.topbar .top-demo{display:none}.topbar .breadcrumb{min-width:0;overflow:hidden}.topbar .top-actions{gap:6px}}
@media(max-width:1024px),(max-width:1024px) and (max-height:600px){
 .filter-bar input,.filter-bar select,.toolbar select,.schedule-controls input,.schedule-controls select{height:48px!important;min-height:48px!important}
 .schedule-controls .icon-btn{height:46px!important;min-height:46px!important;width:46px;min-width:46px}
}

@media(max-width:359px){.metrics .metric,.da-kpi{padding:12px 10px}.metric-title,.da-kpi>span{font-size:13px}.metrics .metric-value,.da-kpi>strong{font-size:23px}.da-tabs>button{padding:8px;font-size:13px}.da-tabs>button:nth-child(4){grid-column:1/-1}}

/* Give the narrowest phone one clear action and one complete amount per row. */
@media(max-width:359px){
 .page-heading .heading-actions{display:grid;grid-template-columns:minmax(0,1fr)}
 .page-heading .heading-actions>.btn{width:100%;justify-content:center}
 .order-entry-form .entry-price-row{grid-template-columns:minmax(0,1fr)}
 .order-entry-form .entry-price-row>.entry-field,.order-entry-form .entry-line-total{grid-column:1/-1}
 .order-entry-form .entry-line-total{text-align:left;align-items:flex-start}
 .order-entry-form .entry-line-total strong{white-space:nowrap;overflow-wrap:normal}
}

/* Keep the monetary home summary separate from neighbouring counts. */
@media(max-width:359px){
 .staff-summary>div:first-child,.staff-summary>div:last-child{grid-column:1/-1;border-right:0}
 .staff-summary>div:nth-child(2){border-right:1px solid #e9e3ed}
 .staff-summary>div:nth-child(3){border-right:0;border-bottom:1px solid #e9e3ed}
 .staff-summary strong{max-width:100%;overflow-wrap:anywhere}
}

/* A compact month on phones; full event titles stay in the day agenda and other views. */
.schedule-day-count,.schedule-month-mobile-hint{display:none}
.schedule-day-agenda>h3{margin:22px 0 8px}
.schedule-day-agenda .schedule-agenda-row{overflow-wrap:anywhere}
@media(max-width:760px){
 .schedule-panel .calendar-grid>.calendar-day{height:96px;min-height:96px;padding:3px 2px;display:flex;flex-direction:column;align-items:stretch}
 .schedule-panel .calendar-grid .cal-event{display:none}
 .schedule-panel .calendar-grid .schedule-date-button{height:44px;min-height:44px;margin:0;flex:0 0 44px}
 .schedule-panel .calendar-grid .schedule-day-count{display:flex;align-items:center;justify-content:center;gap:5px;width:100%;height:44px;min-height:44px;flex:0 0 44px;padding:3px 1px;border:1px solid #d8c9e3;border-radius:7px;background:#eee5f5;color:#553767;font:600 13px/1.2 var(--font);touch-action:manipulation}
 .schedule-day-count i{height:5px;width:5px;flex:0 0 5px;background:#76558f;border-radius:50%}
 .schedule-day-count:focus-visible{outline:2px solid #76558f;outline-offset:1px}
 .schedule-month-desktop-hint{display:none}
 .schedule-month-mobile-hint{display:inline}
 .schedule-day-agenda>.btn{width:100%;white-space:normal}
 .schedule-day-agenda .schedule-agenda-row{grid-template-columns:minmax(0,1fr);gap:6px;padding:14px}
 .schedule-day-agenda .schedule-agenda-row span{grid-row:auto}
}

/* Keep native iPhone date/time controls inside the same field box as text inputs. */
@media(max-width:760px){
 input[type=date],input[type=datetime-local],input[type=time],input[type=month]{-webkit-appearance:none!important;appearance:none!important;display:block;box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-inline-size:0;max-inline-size:100%;height:48px;min-height:48px;padding:10px 12px;overflow:hidden}
 input[type=date]::-webkit-date-and-time-value,input[type=datetime-local]::-webkit-date-and-time-value,input[type=time]::-webkit-date-and-time-value,input[type=month]::-webkit-date-and-time-value{display:block;width:100%;min-width:0;max-width:100%;min-height:0;text-align:left;white-space:nowrap;overflow:hidden}
}

/* Long CRM notes and product material titles stay readable inside phone cards. */
@media(max-width:1024px){
 #modal .contact-note p,#modal .note-meta,#modal .doctor-hero p,#modal .doctor-buyers .btn b,#modal .doctor-comment-list article small,.product-upload-copy h3,.product-upload-copy p,.product-upload-copy small,.product-upload-docs h3,.product-upload-docs p,.product-upload-docs small{overflow-wrap:anywhere}
}

/* Doctor-card sections keep readable labels in both selected states. */
@media(max-width:1024px){
 #modal .doctor-hero~.tabs button{color:#65516f}
 #modal .doctor-hero~.tabs button.active{background:#f2edf7;color:#493458;font-weight:600}
}

/* OPTIONAL: reduce the empty frame around package images in phone catalogue cards. */
@media(max-width:760px){
 .catalog-card .catalog-visual{padding:12px 8px}
}

/* Package names stay below their photographs on phones, including taller packs. */
@media(max-width:760px){
 .product-hero-photo{height:auto}
 .product-hero-photo .product-photo-label{position:static;margin-top:14px}
}

@media (max-width:1024px){
 .da-page .da-main-tabs > button:nth-child(4){grid-column:auto}
}

.topbar .toolbar-inbox {
 position:relative;
 overflow:visible;
}
.topbar .toolbar-inbox[data-badge]::after {
 position:absolute;
 z-index:1;
 top:-5px;
 right:-4px;
}
.sidebar .nav-btn[data-badge]::after {
 margin-inline-start:auto;
 flex:none;
}
.topbar .toolbar-inbox[data-badge]::after,
.sidebar .nav-btn[data-badge]::after {
 content:attr(data-badge);
 display:grid;
 place-items:center;
 box-sizing:border-box;
 min-width:19px;
 height:19px;
 padding:0 4px;
 border:1.5px solid #fff;
 border-radius:999px;
 background:#a53248;
 color:#fff;
 font:700 11px/1 system-ui,sans-serif;
 font-variant-numeric:tabular-nums;
 pointer-events:none;
}
@media(max-width:1024px){
 .topbar .btn.toolbar-inbox { width:46px; padding:10px; }
 .topbar .toolbar-inbox>span { display:none; }
 .topbar .toolbar-inbox .icon { width:19px; height:19px; }
}

@media (max-width:1024px) {
 .content:has(.schedule-overview) > .page-heading .subtitle { display:none; }
 .schedule-overview { display:flex; flex-direction:column; }
 .schedule-overview > .schedule-panel { order:-1; }
 .schedule-overview .schedule-controls { gap:9px; }
 .schedule-overview .schedule-context .schedule-control-caption { display:none; }
 .schedule-controls .mobile-calendar-filters > summary { min-height:46px; padding:10px 42px 10px 14px; }
 .schedule-controls .mobile-calendar-filters > summary:after { top:12px; }
 .schedule-controls .mobile-calendar-filters > summary small { display:none; }
 .schedule-overview > .metrics .metric-note { display:none; }
 .schedule-overview > .metrics .metric { padding:13px; }
}
@media (min-width:700px) and (max-width:1024px) {
 .content:has(.schedule-overview) > .page-heading .heading-actions { width:auto; flex:none; }
 .schedule-overview .schedule-controls { grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:end; gap:12px 16px; }
 .schedule-overview .schedule-controls .schedule-context { align-self:end; padding-bottom:7px; }
 .schedule-overview .schedule-controls .schedule-view-switch button { flex:1; }
 .schedule-overview .schedule-date-controls { grid-column:1/-1; grid-template-columns:46px minmax(180px,260px) 46px auto; justify-content:start; }
 .schedule-overview .schedule-date-controls > .btn { width:auto; grid-column:4; grid-row:1; }
 .schedule-overview .mobile-calendar-filters { grid-column:1/-1; }
}
