:root{font-family:Arial,sans-serif;color:#171717;background:#fff;font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}button,.btn{min-height:44px;border:1px solid #e6e6e8;border-radius:8px;background:#fff;color:#202124;padding:9px 13px;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:7px}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #b91c2b55;outline-offset:2px}.primary{background:#b91c2b;color:#fff;border-color:#b91c2b}.danger{color:#b91c2b}.muted,small{color:#646469}small{font-size:12px;line-height:1.5}.badge{font-size:11px;background:#f5f5f5;padding:4px 7px;border-radius:5px;color:#646469}header{display:flex;align-items:center;gap:10px;padding:12px 22px;border-bottom:1px solid #e6e6e8;background:#fff}header #bell{margin-left:auto;font-size:12px}.brand{color:#171717;font-weight:700;font-size:24px;text-decoration:none;letter-spacing:-1px}.brand span{color:#b91c2b}.shell{display:grid;grid-template-columns:180px minmax(0,1fr);min-height:calc(100dvh - 70px)}nav{background:#f5f5f5;padding:15px 10px;display:flex;flex-direction:column;gap:5px}nav a{display:flex;align-items:center;gap:10px;padding:13px;color:#646469;text-decoration:none;border-radius:7px;font-size:13px}nav a.active{background:#fff;color:#b91c2b}nav svg{width:19px;height:19px;flex-shrink:0}main{width:100%;max-width:1100px;padding:24px;margin:0 auto;min-width:0}h1{font-size:24px;letter-spacing:-.5px;margin:0 0 16px}h2{font-size:18px;margin:0 0 12px}h3{font-size:15px;margin:0 0 8px}p{line-height:1.55;margin:8px 0}.row{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.between{justify-content:space-between}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.panel{border:1px solid #e6e6e8;border-radius:12px;padding:16px;margin:12px 0;background:#fff}.soft{background:#f5f5f5;padding:13px;border-radius:9px}.field{display:block;position:relative;min-width:0}.field>span{position:absolute;left:11px;top:6px;font-size:11px;color:#646469;z-index:1}.field input,.field select,.field textarea{width:100%;border:1px solid #e6e6e8;border-radius:8px;padding:23px 10px 8px;min-height:54px;color:#171717;background:#fff;min-width:0}.full{grid-column:1/-1}.field textarea{min-height:85px;resize:vertical}details{margin:12px 0;border:1px solid #e6e6e8;border-radius:8px;padding:12px}summary{cursor:pointer;min-height:24px;font-size:14px}details[open]>summary{margin-bottom:12px}.toolbar{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:15px}.toolbar input,.toolbar select{padding:10px;border:1px solid #e6e6e8;border-radius:8px;min-width:0;flex:1}input[type=checkbox]{accent-color:#b91c2b;width:18px;height:18px}.contact{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid #e6e6e8}.contact .open-contact{border:0;padding:0;display:block;text-align:left;flex:1;min-width:0}.contact strong{display:block}.tags{display:flex;gap:5px;flex-wrap:wrap;margin-top:5px}.empty{text-align:center;padding:35px 12px;color:#646469}.avatar{width:42px;height:42px;background:#f5f5f5;color:#b91c2b;border-radius:50%;display:grid;place-items:center;font-weight:700;flex-shrink:0}.data{overflow-wrap:anywhere}.data small{display:block}.data p{margin:0}.actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}.actions .full{width:100%}.photo{max-width:100%;max-height:280px;display:block;object-fit:contain;margin:10px auto}.note{font-size:12px;color:#646469}.link{color:#b91c2b}#toast{position:fixed;bottom:85px;left:50%;transform:translateX(-50%);max-width:90%;width:max-content;background:#202124;color:#fff;border-radius:9px;padding:12px 18px;z-index:100;font-size:13px}dialog{border:1px solid #e6e6e8;border-radius:14px;padding:20px;width:calc(100% - 24px);max-width:500px;color:#171717}dialog::backdrop{background:#20212466}table{width:100%;border-collapse:collapse;font-size:13px}td,th{text-align:left;padding:10px;border-bottom:1px solid #e6e6e8}.table-wrap{overflow:auto}pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}progress{width:100%;accent-color:#b91c2b}video{max-width:100%;background:#202124;border-radius:10px}#scan-status{min-height:20px}.pill{padding:7px 10px;border:1px solid #e6e6e8;border-radius:7px;display:flex;gap:7px;align-items:center}.footer-note{margin-top:18px;font-size:12px;color:#646469}.tabs{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:15px}.tabs button.active{background:#202124;color:white}.stat{background:#f5f5f5;border-radius:9px;padding:14px}.stat strong{display:block;font-size:24px;margin-top:6px}[hidden]{display:none!important}
@media(max-width:740px){.shell{display:block}header{padding:10px 14px}main{padding:16px 14px 90px}nav{position:fixed;bottom:0;left:0;right:0;z-index:20;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:6px 2px max(6px,env(safe-area-inset-bottom));border-top:1px solid #e6e6e8;background:white}nav a{padding:5px 0;min-height:48px;display:flex;flex-direction:column;gap:3px;font-size:11px;border-radius:0}nav a.active{background:white}h1{font-size:22px}.panel{padding:12px}.field input,.field select,.field textarea{font-size:16px}.toolbar input{flex-basis:100%}.toolbar select{max-width:100%}.stat strong{font-size:20px}}
/* Language-aware spacing: keep compact controls, separate their explanation. */
.scan-panel{padding:22px}.scan-actions{gap:12px;margin-bottom:18px}.scan-languages{display:grid;grid-template-columns:minmax(180px,1fr) auto;gap:16px;align-items:center;margin:4px 0 18px}.scan-panel #scan-status{margin-top:14px;line-height:1.65}.scan-panel .note{max-width:75ch}#app-language{border:1px solid #e6e6e8;background:#fff;color:#202124;border-radius:8px;padding:8px;min-height:40px;max-width:150px;margin-inline-start:auto}header #bell{margin-left:0}.field>span{left:auto;inset-inline-start:11px}.contact .open-contact,td,th{text-align:start}input,textarea{unicode-bidi:plaintext}input[type=email],input[type=url],input[type=tel]{direction:ltr;text-align:start}html[dir=rtl] .field input[type=email],html[dir=rtl] .field input[type=url],html[dir=rtl] .field input[type=tel]{text-align:left}html[dir=rtl] .toolbar input{text-align:right}nav a span{display:flex}html{font-family:Arial,'Noto Sans',sans-serif}
@media(max-width:740px){.scan-panel{padding:18px 16px}.scan-actions{gap:10px;margin-bottom:16px}.scan-languages{grid-template-columns:1fr;gap:12px;margin-bottom:16px}.scan-languages .row{min-height:36px}header{gap:7px;flex-wrap:wrap}header #bell{padding:8px;font-size:11px}#app-language{max-width:125px;font-size:13px}.brand{font-size:22px}.scan-actions .btn,.scan-actions button{flex:1;white-space:nowrap;padding:10px;min-width:110px}}
/* Workflow panels keep mobile navigation and readable controls. */
#transfer-preview pre{max-height:240px;overflow:auto;background:#f5f5f5;padding:10px;border-radius:6px}#main section{min-width:0}#main .panel,#main details{overflow-wrap:anywhere}#main details .field{margin-bottom:8px}#main .contact>div{min-width:0}#main .badge{display:inline-block}#main .soft .badge{margin-top:6px}

.scan-actions .scan-phone-start{display:none}@media(min-width:741px){.scan-actions .scan-phone-start{display:inline-flex;align-items:center;justify-content:center}.scan-actions .scan-take-photo{display:none}}

.scan-languages[hidden]{display:none!important}

/* Stable header across translated labels; retain native RTL reading order. */
header .brand{direction:ltr;unicode-bidi:isolate;flex-shrink:0}header #bell{flex-shrink:0}header #bell svg{flex:none}header #app-language{min-width:0}
@media(max-width:740px){header{flex-wrap:nowrap;align-items:center}header #bell{width:44px;min-width:44px;height:44px;padding:10px}header #bell .notification-label{display:none}header #app-language{min-height:44px;flex-shrink:1;max-width:145px}header>.badge{flex-shrink:0}}
@media(max-width:380px){header>.badge{display:none}header #app-language{max-width:140px}}

.scan-balance{margin:0 0 12px;color:#646469;font-size:13px;line-height:1.4}.scan-allowance-details{margin-top:20px;border-top:1px solid #e6e6e8;padding-top:8px}.scan-allowance-details summary{color:#646469;font-size:14px}.scan-allowance-details .note{font-size:13px}
.admin-tabs{display:flex;gap:22px;border-bottom:1px solid #e6e6e8;margin:0 0 20px}.admin-tabs a{padding:10px 0;text-decoration:none;color:#646469;font-size:13px}.admin-tabs a[aria-current=page]{color:#b91c2b;border-bottom:2px solid #b91c2b}.finance-filter{margin-bottom:12px}.finance-filter select{font:inherit;padding:8px;border:1px solid #e6e6e8;border-radius:6px;background:white}.finance-stats{margin:12px 0}.finance-stats strong{font-size:23px}.finance-bar{margin:16px 0;font-size:13px}.finance-track{height:12px;background:#f5f5f5;margin-top:7px;border-radius:3px;overflow:hidden}.finance-track span{display:block;height:100%;background:#b91c2b}#main .finance-stats small{display:block;min-height:32px}
/* Separate BI workspace, keeping the customer mobile navigation. */
.bi-layout{display:grid;grid-template-columns:215px minmax(0,1fr);gap:20px}.bi-menu{background:#f5f5f5;padding:12px;align-self:start}.bi-menu details{padding:0;margin:0;border:0}.bi-menu summary{font-size:12px;font-weight:600;padding:10px 0}.bi-menu a{display:block;font-size:13px;color:#202124;text-decoration:none;padding:9px 8px;min-height:38px}.bi-menu a[aria-current=page]{color:#b91c2b;background:#fff;border-inline-start:2px solid #b91c2b}.bi-content{min-width:0}.bi-content>h2{margin-top:0}.bi-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;font-size:13px}.bi-fields dt{color:#646469}.bi-fields dd{margin:4px 0;white-space:pre-wrap;overflow-wrap:anywhere}.bi-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}.bi-links a{padding:12px;background:#f5f5f5;color:#202124;text-decoration:none;font-size:13px}.bi-calculation{padding:12px;background:#f5f5f5;font-size:14px}.bi-dialog{width:min(560px,calc(100% - 24px));max-height:85vh;border:1px solid #e6e6e8;border-radius:12px;padding:20px;color:#171717}.bi-dialog::backdrop{background:#20212488}.bi-dialog label{display:block;margin:12px 0;font-size:13px}.bi-dialog input,.bi-dialog select,.bi-dialog textarea{display:block;width:100%;margin-top:5px;border:1px solid #e6e6e8;border-radius:6px;padding:10px;font:inherit;min-height:44px;background:white}.bi-dialog textarea{min-height:80px}.bi-paging{margin:14px 0}.admin-tabs{flex-wrap:wrap;gap:16px}.bi-record h3{overflow-wrap:anywhere}
@media(max-width:740px){.bi-layout{grid-template-columns:1fr;gap:14px}.bi-menu{padding:8px 12px}.bi-menu a{min-height:44px}.bi-dialog input,.bi-dialog select,.bi-dialog textarea{font-size:16px}.bi-fields{grid-template-columns:1fr}.bi-links{grid-template-columns:1fr}.bi-content .stat strong{font-size:22px}}

.admin-global-menu{border-top:1px solid #e6e6e8;margin-top:16px;padding-top:12px}.admin-global-menu a{font-size:13px}@media(max-width:740px){.admin-global-menu{display:none}}
.analytics-filter{margin-bottom:12px}.analytics-filter select{padding:9px;border:1px solid #e6e6e8;border-radius:6px;background:#fff;font:inherit}.finance-stats .stat small:last-child{min-height:0;margin-top:7px}.bi-content .panel h3{margin-top:0}

.admin-mobile-nav{display:none}.admin-more-dialog{width:min(480px,calc(100% - 20px));max-height:80vh;border:1px solid #e6e6e8;border-radius:16px;padding:20px;color:#171717}.admin-more-dialog::backdrop{background:#20212480}.admin-module-links{display:grid;gap:0}.admin-module-links a{display:block;padding:14px 0;color:#202124;text-decoration:none;border-bottom:1px solid #e6e6e8;font-weight:600}.admin-module-links a span{display:block;font-size:13px;color:#646469;font-weight:400;margin-top:4px}
@media(max-width:740px){#nav.admin-navigation{display:block}#nav.admin-navigation> :not(.admin-mobile-nav){display:none}#nav .admin-mobile-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));width:100%}.admin-mobile-nav a,.admin-mobile-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;min-height:48px;padding:5px 0;font:11px/1.2 Arial,sans-serif;color:#646469;background:#fff;border:0;border-radius:0}.admin-mobile-nav svg{width:20px;height:20px}.admin-mobile-nav a[aria-current=page],.admin-mobile-nav button[aria-expanded=true]{color:#b91c2b}.admin-tabs{display:none}.admin-more-dialog{margin:auto auto calc(78px + env(safe-area-inset-bottom));width:calc(100% - 20px)}}

.backup-mobile{display:none}.backup-desktop table{min-width:640px}.backup-desktop th,.backup-desktop td{overflow-wrap:normal;word-break:normal}.backup-entry{padding:14px;background:#f5f5f5;border-radius:10px;margin:10px 0}.backup-entry-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.backup-entry-heading strong{display:block;font-size:15px}.backup-entry-heading div>span{display:block;color:#646469;font-size:12px;margin-top:4px;line-height:1.5}.backup-result{font-size:12px;font-weight:600;background:white;border:1px solid #e6e6e8;border-radius:6px;padding:5px 7px;white-space:nowrap;flex-shrink:0}.backup-failed{color:#b91c2b;border-color:#b91c2b}.backup-entry-facts{display:grid;grid-template-columns:1.2fr .8fr 1fr;gap:10px;margin:14px 0 0;font-size:13px}.backup-entry-facts dt{color:#646469;font-size:12px}.backup-entry-facts dd{margin:4px 0 0;color:#171717;line-height:1.4}.backup-error{font-size:13px;color:#b91c2b;margin:12px 0 0;overflow-wrap:anywhere}.backup-older>summary{font-size:14px;min-height:44px;padding:12px 0}
@media(max-width:740px){.backup-desktop{display:none}.backup-mobile{display:block}.backup-entry,.backup-entry-facts{overflow-wrap:normal!important;word-break:normal}.backup-entry-heading{flex-wrap:wrap}}

.mobile-cell-label{display:none}
@media(max-width:740px){
 html,body,#app,.shell{width:100%;max-width:100%;min-width:0}
 #main{width:100%;max-width:100%;padding-inline:14px;padding-bottom:calc(90px + env(safe-area-inset-bottom))}
 #main .grid>*,#main .row>*,#main .panel,#main .stat,#main section,#main details{min-width:0;max-width:100%}
 #main .stat{padding:12px}#main .stat strong{font-size:22px;overflow-wrap:anywhere}#main .stat small{overflow-wrap:normal}
 #main input,#main select,#main textarea{font-size:16px;max-width:100%;min-width:0}#main .row>label{max-width:100%}
 #nav,#nav.admin-navigation{width:100%;max-width:100%;min-width:0;left:0;right:0;margin:0;padding-inline:max(2px,env(safe-area-inset-left)) max(2px,env(safe-area-inset-right))}
 #nav .admin-mobile-nav{width:100%;min-width:0;gap:0}#nav a,#nav button{min-width:0;max-width:100%;white-space:normal;overflow-wrap:normal;text-align:center;font-size:11px}
 #main .table-wrap:has(.mobile-record-table){overflow:visible;max-width:100%}
 .mobile-record-table,.mobile-record-table tbody{display:block;width:100%;min-width:0;max-width:100%}
 .mobile-record-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .mobile-record-table tbody tr{display:block;width:100%;margin:12px 0;background:#f5f5f5;border:1px solid #e6e6e8;border-radius:9px;padding:6px 12px}
 .mobile-record-table tbody td{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.6fr);gap:12px;width:100%;padding:9px 0;border:0;min-width:0;overflow-wrap:normal}
 .mobile-record-table tbody td+td{border-top:1px solid #e6e6e8}
 .mobile-record-table .mobile-cell-label{display:block;color:#646469;font-size:12px;line-height:1.5}
 .mobile-cell-value{min-width:0;overflow-wrap:anywhere;line-height:1.5}.mobile-record-table td.mobile-cell-wide{display:block}
}

.bi-back-dashboard{display:inline-flex;align-items:center;min-height:44px;color:#b91c2b;text-decoration:none;font-size:14px;margin-bottom:8px}.bi-mobile-tabs{display:none}
@media(max-width:740px){.bi-layout>.bi-menu{display:none}.bi-mobile-tabs{display:flex;position:relative;gap:20px;max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch;border-bottom:1px solid #e6e6e8;margin:0 0 18px;padding:0 2px;scrollbar-width:thin}.bi-mobile-tabs a{flex:0 0 auto;display:flex;align-items:center;min-height:44px;padding:8px 0;white-space:nowrap;font-size:13px;text-decoration:none;color:#646469;border-bottom:2px solid transparent}.bi-mobile-tabs a[aria-current=page]{color:#b91c2b;border-bottom-color:#b91c2b}.bi-back-dashboard{margin-bottom:4px}}

@media(max-width:740px){.finance-subnav{flex-wrap:nowrap;overflow-x:auto;max-width:100%;gap:20px;overscroll-behavior-inline:contain;border-bottom:1px solid #e6e6e8}.finance-subnav a{flex:0 0 auto;white-space:nowrap;min-height:44px;display:flex;align-items:center;font-size:13px;color:#646469;text-decoration:none}}

.bi-main-menu{max-width:760px}.bi-menu-group{margin:0 0 18px}.bi-menu-group h2{font-size:13px;color:#646469;background:#f5f5f5;padding:10px 12px;margin:0}.bi-menu-group a{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:48px;padding:12px;color:#202124;text-decoration:none;border-bottom:1px solid #e6e6e8;font-size:14px}.bi-menu-group a:hover,.bi-menu-group a:focus-visible{color:#b91c2b}.bi-menu-group a span:first-child{min-width:0;overflow-wrap:anywhere}

.avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit}.person-photo{width:96px;height:96px;object-fit:cover;border-radius:12px}.person-photo-editor:has(.person-photo:not([hidden])){margin-bottom:16px}.person-photo-editor #camera{max-width:100%;max-height:320px;border-radius:12px}.person-photo-editor .note:empty{display:none}

.home-namecard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}.home-namecard{background:#f5f5f5;border-radius:10px;padding:14px;min-width:0;display:flex;flex-direction:column;justify-content:space-between;gap:14px}.home-namecard h3,.home-namecard p{overflow-wrap:anywhere;margin:0 0 6px}.home-namecard-actions{display:flex;flex-wrap:wrap;gap:6px}.home-namecard-actions .btn,.home-namecard-actions button{font-size:13px;padding:8px 10px}@media(max-width:380px){.home-namecard-grid{grid-template-columns:1fr}}

.relationship-group{border:1px solid #e6e6e8;border-radius:8px;min-width:0;padding:12px}.relationship-group legend{font-weight:600;overflow-wrap:anywhere}.relationship-group input[type=checkbox],#bulk-roles input{width:20px;height:20px;flex:none}.relationship-group .row{justify-content:flex-start;margin-bottom:8px}#intro-whatsapp{background:#b91c2b!important;color:#fff!important;border-color:#b91c2b!important}#inline-setup:not(:empty){padding:14px;background:#f5f5f5;margin:12px 0}#contact-form .grid>*{min-width:0}

.intro-actions{min-width:0}.intro-actions-caption{display:block;color:#646469;font-size:12px;margin:0 0 7px}.intro-brand-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.intro-brand-row .chat-brand{min-width:0;min-height:52px;padding:9px 5px;gap:6px;font-size:13px;font-weight:600;flex-direction:column;line-height:1.2}.chat-brand img{width:22px;height:22px;flex:none}.intro-brand-row .chat-whatsapp{background:#25d366;border-color:#25d366;color:#10251a}.intro-brand-row .chat-wechat{background:#07c160;border-color:#07c160;color:#10251a}.intro-brand-row .chat-zalo{background:#0068ff;border-color:#0068ff;color:#fff}.chat-zalo img{filter:invert(1)}@media(min-width:600px){.intro-brand-row .chat-brand{flex-direction:row}}

.intro-brand-row .chat-brand{flex-direction:row;gap:5px;font-size:12px;padding:9px 3px;white-space:nowrap}.intro-brand-row .chat-brand img{width:18px;height:18px}@media(max-width:360px){.intro-brand-row{gap:5px}.intro-brand-row .chat-brand{font-size:11px;gap:3px}.intro-brand-row .chat-brand img{width:16px;height:16px}}

.intro-brand-row .chat-brand{min-height:44px;height:44px;padding:5px 3px}.intro-actions-caption{margin-bottom:5px}

.intro-actions-caption{font-size:16px;font-weight:700;color:#171717;line-height:1.35;margin-bottom:8px}

.swipe-row{position:relative;overflow:hidden;border-bottom:1px solid #e6e6e8}.swipe-row .contact{position:relative;z-index:1;background:#fff;border-bottom:0;transition:transform .18s ease;touch-action:pan-y}.swipe-row .contact button{touch-action:pan-y}.swipe-row.swipe-left .contact{transform:translateX(-84px)}.swipe-row.swipe-right .contact{transform:translateX(84px)}.swipe-row .swipe-delete{position:absolute;top:0;bottom:0;right:0;width:80px;background:#b91c2b;color:#fff;border:0;border-radius:0;z-index:0}.swipe-row.swipe-right .swipe-delete{left:0;right:auto}.swipe-row .swipe-toggle{flex:none;width:44px;padding:6px;border:0;font-size:22px}.swipe-hint{margin:10px 0 3px}@media(prefers-reduced-motion:reduce){.swipe-row .contact{transition:none}}

/* Keep Contacts actions clear of the search field without reducing tap targets. */
#main>.row.between:has(a[href="#add-contact"]){margin-bottom:12px;row-gap:10px}
#main>.row.between:has(a[href="#add-contact"]) h1{margin-bottom:0}
#main>.row.between:has(a[href="#add-contact"])>.row{gap:8px}

.contact-filters{padding:14px}.contact-filters>summary{font-weight:600;font-size:14px}.contact-filters[open]>summary{margin-bottom:14px}.contact-filter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.contact-filter{display:flex;flex-direction:column;gap:5px;min-width:0}.contact-filter>span{font-size:12px;color:#646469}.contact-filter select,.contact-toolbar select{width:100%;min-width:0;min-height:44px;border:1px solid #e6e6e8;border-radius:8px;background:#fff;color:#171717;padding:9px 10px;font-size:14px}.contact-filter.filter-sort{grid-column:1/-1}.contact-filter-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin-top:14px;padding-top:12px;border-top:1px solid #e6e6e8}.contact-filter-check{display:flex;align-items:center;gap:8px;min-height:44px;font-size:13px}.contact-filter-check input{margin:0;flex:none}.contact-filter-footer button{font-size:12px;padding:8px 10px}.contact-toolbar select{width:auto}@media(min-width:740px){.contact-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.contact-filter.filter-sort{grid-column:auto}}

.contact-bulk-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;border-block:1px solid #e6e6e8;padding:5px 0;background:#fff;min-height:54px}.contact-bulk-bar>#selected-count{font-size:13px;color:#646469}.contact-action-menu{position:relative;margin:0;padding:0;border:0}.contact-action-menu>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;list-style:none;min-height:44px;padding:8px 12px;margin:0!important;border:1px solid #e6e6e8;border-radius:8px;font-size:13px;font-weight:600}.contact-action-menu>summary::-webkit-details-marker{display:none}.contact-action-menu[open]>summary{color:#b91c2b;border-color:#b91c2b}.contact-action-options{position:absolute;inset-inline-end:0;top:calc(100% + 6px);width:220px;max-width:calc(100vw - 48px);padding:6px;background:#fff;border:1px solid #e6e6e8;border-radius:10px;box-shadow:0 6px 20px #20212414;z-index:20}.contact-action-options button{display:flex;justify-content:flex-start;width:100%;min-height:44px;border:0;border-radius:6px;padding:8px 10px;font-size:13px}.contact-action-options button:hover:not(:disabled){background:#f5f5f5;color:#b91c2b}.contact-action-options .note{margin:6px 10px}.contact-action-options button:disabled{cursor:default}

.contact-action-menu>summary{font-size:16px}.contact-bulk-bar>#selected-count{font-size:15px;white-space:nowrap}.contact-action-options{inset-inline-start:0;inset-inline-end:auto;width:240px}.contact-action-options button{font-size:16px;min-height:46px}.contact-action-options .note{font-size:14px;line-height:1.5}.contact-action-options button:disabled{opacity:1;color:#646469}

/* Match Contacts control text to the business selector. */
#main>.row.between:has(a[href="#add-contact"]) .btn,.contact-toolbar select,.contact-filter select,.contact-filter-footer button,.contact-filters>summary,.contact-action-menu>summary,.contact-action-options button{font-size:14px}
.contact-filters>summary,.contact-action-menu>summary{font-weight:600}
@media(max-width:740px){#main>.row.between:has(a[href="#add-contact"]) .btn,.contact-filter-footer button,.contact-filters>summary,.contact-action-menu>summary,.contact-action-options button{font-size:16px}}

.contact-bulk-bar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;border:0;padding:0;min-height:44px;align-items:start}.contact-bulk-bar .contact-action-menu{min-width:0}.contact-bulk-bar .contact-action-menu>summary,#contact-filter-toggle{width:100%;min-height:44px;gap:6px;padding:8px;font-size:14px;font-weight:600;white-space:nowrap;justify-content:space-between}#contact-filter-toggle[aria-expanded=true]{color:#b91c2b;border-color:#b91c2b}.contact-bulk-bar .contact-action-options{inset-inline-start:auto;inset-inline-end:0}.contact-selection-count{text-align:end;font-size:15px;color:#646469;margin-top:6px}.contact-filters{margin:8px 0 12px}#contact-list .open-contact strong{font-size:14px}#contact-list .open-contact small{font-size:calc(12px + 1pt)}@media(max-width:740px){.contact-bulk-bar .contact-action-menu>summary,#contact-filter-toggle,#contact-list .open-contact strong{font-size:16px}}

.customer-admin-card{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;border:1px solid #e6e6e8;border-radius:10px;padding:14px;margin:12px 0;text-decoration:none;color:#171717}.customer-admin-card>div{min-width:0;flex:1}.customer-admin-card strong,.customer-admin-card div>span{display:block;overflow-wrap:anywhere}.customer-admin-card div>span{font-size:13px;color:#646469;margin-top:4px}.customer-admin-card p{flex-basis:100%;font-size:13px;margin:0;color:#646469}.customer-admin-tabs{display:flex;gap:18px;max-width:100%;overflow-x:auto;border-bottom:1px solid #e6e6e8;margin-bottom:18px}.customer-admin-tabs button{flex:0 0 auto;white-space:nowrap;border:0;border-bottom:2px solid transparent;border-radius:0;padding:10px 0;color:#646469}.customer-admin-tabs button[aria-pressed=true]{border-bottom-color:#b91c2b;color:#b91c2b}.customer-admin-record{padding:12px 0;border-bottom:1px solid #e6e6e8;overflow-wrap:anywhere}#customer-support-form label{display:block;margin:14px 0;font-size:13px}#customer-support-form input,#customer-support-form textarea,#customer-support-form select,#admin-customer-search input{padding:10px;min-height:44px;border:1px solid #e6e6e8;border-radius:6px;font:inherit;background:white;max-width:100%}#customer-support-form input,#customer-support-form textarea,#customer-support-form select{display:block;width:100%;margin-top:6px}#customer-support-form textarea{min-height:100px}#admin-customer-search input{flex:1;min-width:0}@media(max-width:740px){#customer-support-form input,#customer-support-form textarea,#customer-support-form select,#admin-customer-search input{font-size:16px}.customer-admin-tabs button{font-size:13px}}

.admin-tabs a,.customer-admin-tabs button,.finance-subnav a{font-size:15px;font-weight:600;min-height:48px}.admin-tabs a[aria-current=page],.customer-admin-tabs button[aria-pressed=true]{border-bottom-width:3px}.menu-swipe-hint{font-size:12px;line-height:1.4;color:#b91c2b;margin:8px 0 14px}.admin-outreach-links{margin-bottom:14px}
@media(max-width:740px){.bi-mobile-tabs a,.customer-admin-tabs button,.finance-subnav a{font-size:15px;font-weight:600;min-height:48px}.bi-mobile-tabs a{border-bottom-width:3px}.bi-mobile-tabs,.customer-admin-tabs,.finance-subnav{scrollbar-color:#b91c2b #f5f5f5;scrollbar-width:thin}.bi-mobile-tabs::-webkit-scrollbar,.customer-admin-tabs::-webkit-scrollbar,.finance-subnav::-webkit-scrollbar{height:5px}.bi-mobile-tabs::-webkit-scrollbar-thumb,.customer-admin-tabs::-webkit-scrollbar-thumb,.finance-subnav::-webkit-scrollbar-thumb{background:#b91c2b;border-radius:3px}}
@media(min-width:741px){.menu-swipe-hint{display:none}}

.compact-customers-panel>.row h2{margin:0;font-size:17px}.compact-customers-panel #customer-search-form{margin-top:10px}.compact-privacy-note{margin:6px 0}.compact-customer-list{display:grid;gap:10px;margin-top:10px}.compact-customer{padding:12px;background:#f5f5f5;border:1px solid #e6e6e8;border-radius:10px;min-width:0}.compact-customer-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.compact-customer-heading>div{min-width:0;flex:1}.compact-customer-heading strong{font-size:15px;overflow-wrap:anywhere}.compact-customer-heading div>span{display:block;font-size:13px;color:#646469;overflow-wrap:anywhere;margin-top:3px}.compact-customer-heading .badge{flex-shrink:0}.customer-signup{font-size:12px;line-height:1.5;color:#646469;margin:7px 0}.compact-customer-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;font-size:13px;margin-top:8px}.compact-customer-metrics b{font-size:15px}.compact-customer details{border:0;border-top:1px solid #e6e6e8;border-radius:0;padding:7px 0 0;margin:8px 0 0}.compact-customer summary{font-size:12px;min-height:32px;display:flex;align-items:center;gap:6px}.compact-customer summary::before{content:'›';font-size:18px}.compact-customer details[open] summary::before{transform:rotate(90deg)}.compact-customer details p{font-size:12px;margin:0}.customer-admin-card{padding:12px;gap:7px}.customer-admin-card .customer-signup{font-size:12px}@media(min-width:1000px){.compact-customer-list{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Customer card readability: body copy increased by one pixel. */
.compact-customer-heading div>span,.compact-customer-metrics{font-size:14px}.compact-customer .customer-signup,.customer-admin-card .customer-signup,.compact-customer summary,.compact-customer details p{font-size:13px}

/* Admin management return and right-aligned More panel. */
.admin-return-link{display:inline-flex;align-items:center;min-height:44px;margin-bottom:12px;color:#b91c2b;font-size:14px;font-weight:600;text-decoration:none}
.admin-more-dialog{position:fixed;inset:auto 10px 80px auto;margin:0;width:min(340px,calc(100vw - 20px));max-height:calc(100dvh - 160px);padding:16px;background:#202124;color:#fff;border:1px solid #646469;border-radius:12px;box-shadow:0 8px 30px #0005}
.admin-more-dialog h2{font-size:18px;margin:0}.admin-more-dialog #admin-more-close{background:#202124;color:#fff;border:1px solid #646469;padding:8px 12px}.admin-more-dialog .admin-module-links a{color:#fff;border-color:#646469;padding:12px 0;font-size:15px}.admin-more-dialog .admin-module-links a span,.admin-more-dialog .note{color:#e6e6e8;font-size:13px}.admin-more-dialog .admin-module-links a:focus-visible,.admin-more-dialog button:focus-visible{outline:2px solid #fff;outline-offset:3px}.admin-more-dialog::backdrop{background:#0003}

/* Admin-only foundation components. */
.admin-daily .daily-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.admin-daily .soft{padding:14px;border-radius:10px;background:#f5f5f5;min-width:0;overflow-wrap:anywhere}.admin-daily h3{font-size:15px;margin:0 0 8px}.admin-daily .daily-value{font-size:22px}.admin-daily select{font:inherit;padding:8px}.admin-daily details{margin:10px 0}.admin-daily p{font-size:14px}.admin-daily a{color:#b91c2b}#introduction-composer{max-width:100%;min-width:0}#introduction-composer .field{margin:8px 0}#introduction-composer h2{font-size:21px}#introduction-composer .intro-review{display:block;margin:14px 0}#introduction-composer .intro-review input,#introduction-composer details input{width:auto}#introduction-composer textarea{width:100%;max-width:100%}#introduction-composer button{min-height:44px}.intro-composer-actions{flex-wrap:wrap}@media(max-width:540px){.admin-daily .daily-grid{grid-template-columns:1fr}#introduction-composer .grid{grid-template-columns:1fr}#introduction-composer input,#introduction-composer select,#introduction-composer textarea{font-size:16px;min-width:0;max-width:100%}}

/* Admin mobile More drawer, matching the supplied management reference. */
.admin-more-dialog{inset:0 0 auto auto;width:min(420px,90vw);height:auto;max-width:none;max-height:none;margin:0;padding:12px;border:0;border-radius:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-color:#646469 #202124;background:#202124;color:#fff;animation:admin-drawer-in .18s ease-out}
.admin-more-dialog .admin-drawer-heading{position:static;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#202124;padding:10px 6px 20px;border:0;height:auto}
.admin-more-dialog .admin-drawer-heading h2{font:400 14px/1.4 Arial,sans-serif;color:#e6e6e8}.admin-more-dialog #admin-more-close{border:0;font-size:25px;padding:0;width:44px;height:44px;min-height:44px;flex-shrink:0;background:#202124;color:#fff}
.admin-more-dialog .admin-module-links{display:block;position:static;background:transparent;padding:0;margin:0;width:100%;border:0}
.admin-more-dialog .admin-module-links a,.admin-more-dialog .admin-drawer-group>summary{display:flex;align-items:center;gap:12px;min-height:50px;padding:12px;color:#fff;font:400 16px/1.4 Arial,sans-serif;border:0;border-radius:0;text-decoration:none;cursor:pointer;overflow-wrap:anywhere}
.admin-more-dialog .admin-module-links a span{display:inline;color:inherit;font:inherit;margin:0}.admin-more-dialog .admin-module-links svg{width:20px;height:20px;flex:0 0 20px}.admin-more-dialog .admin-module-links a[aria-current=page]{background:#b91c2b;color:#fff}.admin-more-dialog .admin-module-links a:hover,.admin-more-dialog .admin-drawer-group>summary:hover{background:#333437}.admin-more-dialog .admin-module-links a[aria-current=page]:hover{background:#b91c2b}
.admin-more-dialog .admin-drawer-group{background:transparent;color:#fff;border:0;padding:0;margin:0;border-radius:0}.admin-more-dialog .admin-drawer-group>summary{list-style:none}.admin-more-dialog summary::-webkit-details-marker{display:none}.admin-more-dialog .drawer-chevron{margin-left:auto;font-size:24px;line-height:1;transition:transform .15s}.admin-more-dialog details[open]>summary .drawer-chevron{transform:rotate(90deg)}.admin-more-dialog .admin-drawer-group>div>a{padding-left:44px;font-size:14px;min-height:44px}.admin-more-dialog .admin-module-links a:focus-visible,.admin-more-dialog summary:focus-visible{outline:2px solid #fff;outline-offset:-3px}
@keyframes admin-drawer-in{from{transform:translateX(100%)}to{transform:translateX(0)}}@media(prefers-reduced-motion:reduce){.admin-more-dialog{animation:none}.admin-more-dialog .drawer-chevron{transition:none}}
/* Admin dashboard only: movable light sections and bounded mobile BI bar. */
.dashboard-layout-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0}.dashboard-layout-tools p{flex:1;margin:0;min-width:180px}.admin-dashboard-sections{display:flex;flex-direction:column;gap:16px;min-width:0}.dashboard-section{position:relative;margin:0!important;padding-top:48px!important;min-width:0;max-width:100%;overflow-wrap:anywhere}.dashboard-drag-handle{position:absolute;right:10px;top:6px;min-width:38px;min-height:38px;padding:2px 8px;border:0;background:transparent;color:#646469;font-size:24px;cursor:grab;touch-action:none}.dashboard-dragging{outline:2px solid #b91c2b}.dashboard-business-report .stat{color:#171717;text-decoration:none;background:#f5f5f5}.dashboard-business-report .finance-stats{margin:14px 0}.dashboard-business-report>label select{padding:8px;border:1px solid #e6e6e8;border-radius:8px}.dashboard-business-report>a{display:inline-block;margin-top:12px;color:#b91c2b}.admin-mobile-nav>a{min-width:0;overflow-wrap:normal;white-space:normal;text-align:center;line-height:1.2}
/* Shared MYNCS admin mobile menu: right drawer with nested destinations. */
.admin-more-dialog{width:min(420px,86vw)}.admin-more-dialog::backdrop{background:#0008}.admin-drawer-brand{display:flex;align-items:center;gap:12px;min-width:0}.admin-brand-mark{display:grid;place-items:center;background:#b91c2b;color:#fff;width:44px;height:44px;flex:0 0 44px;font-size:28px}.admin-more-dialog .admin-drawer-brand h2{font-size:18px;font-weight:700;color:#fff}.admin-drawer-brand small{font-size:10px;letter-spacing:1.2px;color:#e6e6e8}.admin-more-dialog .admin-drawer-footer{position:static;background:#202124;color:#e6e6e8;padding:24px 12px 12px;border-top:1px solid #646469;margin-top:20px;font-size:14px}.admin-drawer-footer small{display:block;margin-top:6px;color:#aaa}.admin-more-dialog .admin-drawer-group .admin-drawer-group>summary{font-size:14px;padding-left:22px}.bi-mobile-menu-open{display:none}@media(max-width:740px){.bi-main-menu{display:none}.bi-mobile-menu-open{display:block;margin:18px 0}.admin-more-dialog .admin-drawer-group>div>a{font-size:16px;min-height:48px}}
/* Keep standalone and expandable top-level admin menu titles identical. */
.admin-more-dialog .admin-module-links>a,.admin-more-dialog .admin-module-links>.admin-drawer-group>summary{font:400 16px/1.4 Arial,sans-serif;flex-direction:row;text-align:left}
.admin-more-dialog .admin-module-links>a>span,.admin-more-dialog .admin-module-links>.admin-drawer-group>summary>span:not(.drawer-chevron){font:400 16px/1.4 Arial,sans-serif}
/* Left-align all admin drawer destinations, including nested BI links. */
.admin-more-dialog .admin-module-links a,.admin-more-dialog .admin-drawer-group>summary{flex-direction:row;justify-content:flex-start;text-align:left}
.admin-more-dialog .admin-module-links a>span,.admin-more-dialog .admin-drawer-group>summary>span:not(.drawer-chevron){text-align:left}

/* Event details retain their width; actions get a separate responsive grid. */
.event-row{display:flex;align-items:center;gap:20px;padding:18px 0;border-bottom:1px solid #e6e6e8;min-width:0}.event-info{flex:1;min-width:0;overflow-wrap:anywhere}.event-info strong{display:block;font-size:16px}.event-info p{margin:6px 0}.event-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;flex:0 1 520px}.event-actions button{min-width:0;min-height:44px;padding:9px 10px}.event-row+.event-row{margin-top:0}#event-form .field{min-width:0}#event-form input{box-sizing:border-box;min-width:0;width:100%;max-width:100%}@media(max-width:740px){#event-form .grid{grid-template-columns:minmax(0,1fr)}.event-row{display:block}.event-actions{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:12px}.event-actions button{width:100%}#event-form input[type=date]{display:block;min-height:54px;-webkit-appearance:none;appearance:none}#event-form input[type=date]::-webkit-date-and-time-value{text-align:start;min-height:1.5em}}

@media(min-width:741px){.event-row{display:grid;grid-template-columns:minmax(180px,1fr) minmax(0,520px)}.event-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(min-width:1100px){.event-actions{grid-template-columns:repeat(4,minmax(0,1fr))}}

#home-namecards>.row h2{margin:0}.home-namecard-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:12px}.home-namecard{background:#fff;border:1px solid #e6e6e8;border-radius:10px;padding:16px;gap:14px}.home-namecard-identity{display:flex;align-items:center;gap:14px;min-width:0}.home-namecard-identity>div{min-width:0}.home-business-logo{width:76px;height:64px;object-fit:contain;flex:none}.home-namecard h3{font-size:16px;line-height:1.4}.home-namecard p{font-size:15px}.home-namecard-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.home-namecard-actions .btn,.home-namecard-actions button{padding:8px 4px;font-size:14px;min-height:44px}.namecard-logo-editor{padding:14px 0;margin:14px 0;border-block:1px solid #e6e6e8}.namecard-logo-preview{display:block;width:160px;height:90px;object-fit:contain;object-position:left center;margin:10px 0}.namecard-logo-editor input{display:block;width:100%;margin:12px 0}.namecard-logo-editor button{margin-top:6px}

/* Finance: shared private sandbox credential form */
.finance-stripe .panel{border:0;padding:0;margin:0;box-shadow:none}.finance-stripe .field{margin:12px 0}.finance-stripe .actions{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}.finance-stripe button{min-height:44px}.finance-stripe input{width:100%;min-width:0;box-sizing:border-box}.finance-stripe [role="status"]{overflow-wrap:anywhere}

/* Desktop BI uses its own contextual menu, mirroring mobile destinations. */
@media(min-width:741px){
 .shell:has(#nav.bi-navigation){display:block}
 #nav.bi-navigation{position:static;width:100%;height:auto;display:block;padding:8px 24px;border-right:0;border-bottom:1px solid #e6e6e8;background:#fff}
 #nav.bi-navigation>:not(.admin-mobile-nav){display:none}
 #nav.bi-navigation .admin-mobile-nav{display:flex;align-items:center;gap:8px;max-width:1052px;margin:0 auto}
 #nav.bi-navigation .admin-mobile-nav a{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 16px;font-size:14px;font-weight:400;text-decoration:none;color:#202124;border-radius:8px}
 #nav.bi-navigation .admin-mobile-nav svg{width:20px;height:20px}
 #nav.bi-navigation .admin-mobile-nav a[aria-current=page]{color:#b91c2b;background:#f5f5f5}
 #nav.bi-navigation .admin-mobile-nav a:last-child{margin-left:auto}
 .shell:has(#nav.bi-navigation) #main>.admin-tabs{display:none}
}

@media(max-width:740px){#nav .admin-platform-nav{grid-template-columns:repeat(6,minmax(0,1fr))}.admin-platform-nav a{font-size:10px!important;line-height:1.2}}
@media(min-width:741px){#nav.admin-navigation:not(.bi-navigation)>a{display:none}}

/* MHC-style desktop administration: continuous charcoal sidebar, grouped links. */
.admin-desktop-sidebar{display:none}
@media(min-width:741px){
 .shell:has(#nav.admin-owner-navigation){display:grid;grid-template-columns:240px minmax(0,1fr);align-items:stretch;min-height:calc(100dvh - 70px)}
 #nav.admin-owner-navigation,#nav.admin-owner-navigation.bi-navigation{display:block;position:static;width:240px;max-width:240px;height:auto;padding:16px 0;margin:0;border:0;border-radius:0;background:#202124;color:#fff}
 #nav.admin-owner-navigation>:not(.admin-desktop-sidebar){display:none!important}
 #nav.admin-owner-navigation>.admin-desktop-sidebar{display:block}
 .admin-desktop-sidebar{font-family:Inter,Arial,sans-serif}
 #nav .admin-desktop-sidebar .desktop-menu-caption{padding:8px 18px;margin:0 0 8px;font-size:12px;font-weight:600;letter-spacing:.7px;color:#bcbcc2}
 #nav .admin-desktop-sidebar a,#nav .admin-desktop-sidebar summary{display:flex;align-items:center;justify-content:flex-start;gap:10px;min-height:40px;padding:10px 18px;border:0;border-radius:0;text-align:left;text-decoration:none;font:400 13px/1.4 Inter,Arial,sans-serif;color:#fff;cursor:pointer;background:transparent}
 #nav .admin-desktop-sidebar a:hover,#nav .admin-desktop-sidebar summary:hover{background:#303134}
 #nav .admin-desktop-sidebar a[aria-current=page]{color:#fff;background:#b91c2b}
 #nav .admin-desktop-sidebar svg{width:16px;height:16px;flex:0 0 16px}
 #nav .admin-desktop-sidebar a>span:first-child{display:flex}
 #nav .admin-desktop-sidebar details{padding:0;margin:4px 0;border:0;border-radius:0;background:transparent}
 #nav .admin-desktop-sidebar summary{list-style:none;margin:0;font-weight:600}
 #nav .admin-desktop-sidebar summary::-webkit-details-marker{display:none}
 #nav .admin-desktop-sidebar summary:after{content:'›';margin-left:auto;font-size:18px}
 #nav .admin-desktop-sidebar details[open]>summary:after{transform:rotate(90deg)}
 #nav .admin-desktop-sidebar .desktop-menu-group>div>a{padding-left:34px}
 #nav .admin-desktop-sidebar .desktop-bi-subgroup>summary{padding-left:34px;font-weight:400}
 #nav .admin-desktop-sidebar .desktop-bi-subgroup>a{padding-left:48px;color:#e6e6e8}
 #nav .admin-desktop-sidebar .desktop-bi-subgroup>a[aria-current=page]{color:#fff}
 .shell:has(#nav.admin-owner-navigation) #main>.admin-tabs{display:none}
 #nav .admin-desktop-sidebar a:focus-visible,#nav .admin-desktop-sidebar summary:focus-visible{outline:2px solid white;outline-offset:-3px}
}

@media(min-width:741px){.shell:has(#nav.admin-owner-navigation) .bi-menu{display:none}.shell:has(#nav.admin-owner-navigation) .bi-layout{grid-template-columns:minmax(0,1fr)}#nav .admin-desktop-sidebar .desktop-bi-all{padding-left:44px;color:#e6e6e8;font-size:12px}}
/* Locked mobile admin layout is independent of the desktop sidebar. */
.admin-mobile-only{display:none}
@media(max-width:740px){.admin-mobile-only{display:block}.admin-desktop-only{display:none!important}#nav .admin-mobile-nav{grid-template-columns:repeat(5,minmax(0,1fr))}.admin-mobile-nav a,.admin-mobile-nav button{font-size:11px}}
/* Consistent admin horizontal tabs on desktop and mobile. */
.admin-tabs,.finance-subnav,.customer-admin-tabs,.bi-mobile-tabs{position:relative;flex-wrap:nowrap;gap:22px;max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-inline:contain;border-bottom:1px solid #e6e6e8;scrollbar-width:thin;scrollbar-color:#b91c2b #e6e6e8;padding-bottom:0}
.finance-subnav{display:flex}
.admin-tabs>a,.finance-subnav>a,.customer-admin-tabs>button,.bi-mobile-tabs>a{display:flex;align-items:center;justify-content:flex-start;flex:0 0 auto;white-space:nowrap;padding:10px 0;min-height:48px;border:0;border-bottom:3px solid transparent;border-radius:0;background:transparent;color:#646469;text-decoration:none;font:600 15px/1.4 Arial,sans-serif}
.admin-tabs>a[aria-current=page],.finance-subnav>a[aria-current=page],.customer-admin-tabs>button[aria-pressed=true],.bi-mobile-tabs>a[aria-current=page]{border-bottom-color:#b91c2b;color:#b91c2b}
.admin-tabs::-webkit-scrollbar,.finance-subnav::-webkit-scrollbar,.customer-admin-tabs::-webkit-scrollbar,.bi-mobile-tabs::-webkit-scrollbar{height:5px}
.admin-tabs::-webkit-scrollbar-track,.finance-subnav::-webkit-scrollbar-track,.customer-admin-tabs::-webkit-scrollbar-track,.bi-mobile-tabs::-webkit-scrollbar-track{background:#e6e6e8}
.admin-tabs::-webkit-scrollbar-thumb,.finance-subnav::-webkit-scrollbar-thumb,.customer-admin-tabs::-webkit-scrollbar-thumb,.bi-mobile-tabs::-webkit-scrollbar-thumb{background:#b91c2b;border-radius:4px}
/* Desktop already has the persistent management sidebar. */
@media(min-width:741px){.shell:has(#nav.admin-owner-navigation) .admin-return-link{display:none}}
/* Admin workspace section tabs share the reporting-menu treatment. */
.shell:has(#nav.admin-owner-navigation) #main>.tabs{display:flex;flex-wrap:nowrap;gap:22px;max-width:100%;overflow-x:auto;border-bottom:1px solid #e6e6e8;scrollbar-width:thin;scrollbar-color:#b91c2b #e6e6e8}
.shell:has(#nav.admin-owner-navigation) #main>.tabs>button{flex:0 0 auto;white-space:nowrap;border:0;border-bottom:3px solid transparent;border-radius:0;padding:10px 0;min-height:48px;background:transparent;color:#646469;font:600 15px/1.4 Arial,sans-serif}
.shell:has(#nav.admin-owner-navigation) #main>.tabs>button.active{color:#b91c2b;border-bottom-color:#b91c2b}
/* Consistent admin page titles, independent of customer pages and navigation. */
#main>.admin-page-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 16px;padding:0;min-height:44px;text-align:left}
#main>.admin-page-heading>h1{font-family:Arial,sans-serif;font-size:24px;font-weight:700;line-height:1.25;letter-spacing:-.5px;margin:0;padding:0;color:#171717;text-align:left}
@media(max-width:740px){#main>.admin-page-heading>h1{font-size:22px}}
/* Rearrangeable BI modules preserve existing report data and controls. */
.module-layout-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0}.module-layout-tools>span:first-child{flex:1;min-width:180px}.admin-modules{display:flex;flex-direction:column;gap:16px;min-width:0}.admin-module{position:relative;min-width:0;border:1px solid #e6e6e8;border-radius:12px;background:#fff}.admin-module>details{border:0;margin:0;padding:0}.admin-module>details>summary{margin:0;padding:16px 56px 16px 16px;font-size:18px;font-weight:700;background:#f5f5f5;border-radius:12px;min-height:54px}.module-handle{position:absolute;right:8px;top:6px;z-index:1;border:0;background:transparent;font-size:24px;padding:0;min-width:40px;min-height:40px;touch-action:none;cursor:grab}.module-body{padding:16px;min-width:0;overflow-wrap:anywhere}.module-body>.panel{margin:0;border:0;padding:0}.module-body .finance-stats{margin:0}.module-moving{outline:2px solid #b91c2b}.module-body .bi-content>h2{display:none}.module-body .admin-daily>.row h2{display:none}@media(max-width:740px){.module-body{padding:12px}.admin-module>details>summary{font-size:16px}}
/* Compact admin headers: title, inline search, actions and handle share space. */
.dashboard-section.compact-dashboard-section{padding-top:16px!important}
.compact-admin-header{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:12px;min-width:0}
.compact-admin-header h2{margin:0;flex:1 1 180px;min-width:0}
.compact-admin-header .dashboard-drag-handle{position:static;flex:0 0 36px;min-width:36px;min-height:44px;padding:0;font-size:24px;margin:0}
.compact-admin-header>.btn,.compact-admin-header>button:not(.dashboard-drag-handle){flex:0 0 auto;margin:0;min-height:44px}
.admin-inline-search{position:relative;display:flex;align-items:center;min-width:0!important;max-width:100%;border:1px solid #e6e6e8;border-radius:8px;background:#fff;padding:0;gap:0!important}
.compact-admin-header .admin-inline-search{flex:1 1 240px;margin:0}
.admin-inline-search input{flex:1;min-width:0!important;width:100%;border:0!important;outline-offset:-3px;padding:11px 80px 11px 12px!important;min-height:44px;background:transparent}
.admin-inline-search button{position:absolute;right:3px;top:2px;bottom:2px;min-height:40px;border:0;border-left:1px solid #e6e6e8;border-radius:0 6px 6px 0;padding:6px 12px;background:#f5f5f5;color:#171717}
#admin-customer-search.admin-inline-search{margin:12px 0}
@media(max-width:740px){.compact-admin-header{gap:8px}.compact-customers-panel .compact-admin-header h2{flex-basis:calc(100% - 48px)}.compact-customers-panel .admin-inline-search{flex:1 1 120px}.compact-admin-header .btn{font-size:13px;padding:8px}.admin-inline-search input{font-size:16px}.dashboard-section.compact-dashboard-section{padding-top:12px!important}}
.compact-dashboard-section[data-section-id="daily-decisions"] .admin-daily h2{display:none}
/* Compact decision cards: figure and action first, full evidence on disclosure. */
.admin-daily .decision-grid{gap:10px}
.admin-daily .decision-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;align-items:start;padding:12px}
.admin-daily .decision-card h3{font-size:15px;line-height:1.4;margin:0;font-weight:600}
.admin-daily .decision-card .daily-value{font-size:20px;line-height:1.3;text-align:right}
.admin-daily .decision-card .decision-details{border:0;background:transparent;margin:0;padding:0;min-width:0;font-size:14px}
.admin-daily .decision-details summary{display:flex;align-items:center;gap:6px;min-height:36px;list-style:none;font-size:14px;color:#646469}
.admin-daily .decision-details summary:before{content:'▸'}.admin-daily .decision-details[open] summary:before{content:'▾'}
.admin-daily .decision-details summary::-webkit-details-marker{display:none}
.admin-daily .decision-details[open]{grid-column:1/-1}
.admin-daily .decision-records{font-size:14px;min-height:36px;display:flex;align-items:center;justify-content:flex-end;text-align:right}
.admin-daily .decision-details[open]+.decision-records{grid-column:1/-1}
.compact-admin-header .snapshot-overview-button{font-size:14px;font-weight:600;color:#b91c2b;border-color:#b91c2b;background:#fff;text-decoration:none}
@media(min-width:1000px){.admin-daily .decision-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){.admin-daily .decision-card .daily-value{font-size:18px}.admin-daily .decision-card{gap:6px 10px}}

/* Compact admin dashboard pagination and collapsible admin workspaces. */
.customer-page-controls{display:flex;gap:4px;flex-shrink:0}
.customer-page-controls button{padding:4px 10px;min-width:36px;min-height:40px;font-size:22px}
.customer-page-count{display:block;text-align:right;margin-top:10px;font-size:13px}
.compact-admin-header{align-items:center}
.compact-customers-panel .compact-admin-header h2{flex:0 1 auto}
.compact-customers-panel .admin-inline-search{flex:1 1 200px;min-width:170px}
.admin-settings-module>summary{font-size:17px;font-weight:600;cursor:pointer;padding:4px 0}
.admin-settings-module>div,.admin-settings-module>section{margin-top:14px}
@media(max-width:740px){.compact-customers-panel .compact-admin-header h2{flex:1 1 100%}.compact-customers-panel .admin-inline-search{flex-basis:100%}}

/* Customer pagination stays together beneath the cards. */
.compact-customers-panel>.customer-page-controls{justify-content:flex-end;align-items:center;gap:10px;margin-top:12px}
.customer-page-controls .customer-page-count{margin:0;text-align:center}
.compact-customers-panel .compact-admin-header .admin-inline-search,
.compact-customers-panel .compact-admin-header>a[href="#customers-admin"]{box-sizing:border-box;height:46px;min-height:46px;margin:0;align-self:center}
.compact-customers-panel .compact-admin-header>a[href="#customers-admin"]{display:inline-flex;align-items:center;justify-content:center;padding-top:0;padding-bottom:0}
.compact-customers-panel .admin-inline-search input{box-sizing:border-box;height:44px;min-height:0}

.daily-report-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;font-size:13px;color:#646469;margin:12px 0}
.daily-report-meta .daily-environment{background:#f5f5f5;border:1px solid #e6e6e8;border-radius:5px;padding:3px 8px;text-transform:capitalize;color:#171717}
.daily-report-meta>details{border:0;padding:0;margin:0;font-size:13px}
.daily-report-meta>details[open]{flex-basis:100%}
.daily-report-meta summary{cursor:pointer;font-size:13px}
.compact-customers-panel .compact-admin-header #customer-search-form{margin:0!important}

.module-move-controls{position:absolute;right:48px;top:6px;display:flex;gap:2px;z-index:1}
.module-move-controls button{min-width:36px;min-height:40px;padding:0;border:0;background:transparent;color:#646469;font-size:18px}
.admin-module>details>summary{padding-right:132px}
/* Admin business editor: action in the disclosure heading, no duplicate summary. */
.admin-settings-module:has(>#business-management){position:relative}
.admin-settings-module:has(>#business-management)>summary{padding-right:80px;min-height:44px;align-content:center}
.admin-settings-module #edit-businesses{position:absolute;right:16px;top:16px;margin:0;min-height:40px;padding:7px 14px;font-size:14px}
.admin-settings-module #business-management:has(#edit-businesses[aria-expanded="true"])>.grid{display:none}
.admin-settings-module #business-management>section:has(#new-business-name){margin-top:0!important;border-top:0!important;padding-top:0!important}

.bi-overview-decisions{margin-top:16px;border:1px solid #e6e6e8;border-radius:12px;padding:0}
.bi-overview-decisions>summary{font-size:18px;font-weight:700;padding:14px 16px;background:#f5f5f5;border-radius:12px}
.bi-overview-decisions>.admin-daily{border:0;margin:0;padding:16px}
.bi-overview-decisions .admin-daily>.row h2{display:none}
#main>.module-layout-tools:has(+.admin-modules>.admin-module:only-child){display:none}
#main>.admin-modules>.admin-module:only-child>.module-handle,#main>.admin-modules>.admin-module:only-child>.module-move-controls{display:none}

.admin-module>details>summary{padding-right:56px}

/* Dashboard disclosures preserve controls and live report nodes when collapsed. */
.dashboard-collapse-toggle{border:0;background:transparent;padding:0;min-height:44px;color:inherit;font-size:inherit;font-weight:inherit;text-align:left;justify-content:flex-start;max-width:100%}
.dashboard-collapse-marker{flex:0 0 auto;color:#646469;font-size:16px}
.dashboard-section.is-collapsed>:not(.compact-admin-header){display:none!important}
.dashboard-section.is-collapsed>.compact-admin-header>:not(h2):not(.dashboard-drag-handle){display:none!important}
.dashboard-section.is-collapsed>.compact-admin-header{margin-bottom:0}

/* Visible account exit on every workspace page. */
header .workspace-logout{flex-shrink:0;white-space:nowrap;font-size:14px;min-height:44px;display:inline-flex;align-items:center;padding:8px 12px}
@media(max-width:740px){header{flex-wrap:wrap}header .workspace-logout{margin-inline-start:auto}}

/* Keep native dropdown labels above their controls, including desktop Safari. */
.field:has(>select){display:flex;flex-direction:column;gap:6px;min-width:0}
.field:has(>select)>span{position:static;inset:auto;font-size:12px;line-height:1.4}
.field>select{padding:10px 32px 10px 12px;min-height:44px;height:44px;line-height:1.4}

/* Customer-only approved six-item navigation; admin navigation stays unchanged. */
@media(max-width:740px){#nav.customer-six-nav{grid-template-columns:repeat(6,minmax(0,1fr))}#nav.customer-six-nav>a{font-size:11px;min-width:0;min-height:48px;padding-inline:1px;gap:4px;text-align:center}}

/* Customer Settings: native keyboard-accessible independent disclosures. */
.customer-settings-card>summary{font-size:17px;font-weight:600;cursor:pointer;min-height:44px;align-content:center;padding:4px 0}
.customer-settings-card>summary::marker{color:#b91c2b}
.customer-settings-card>.customer-settings-content{margin-top:14px}
.customer-settings-card>.customer-settings-content.row{display:flex;flex-wrap:wrap}
.customer-renewal-section{flex-basis:100%;min-width:0;border-top:1px solid #e6e6e8;padding-top:14px;margin-top:14px}
.customer-settings-card>summary:focus-visible{outline:2px solid #b91c2b;outline-offset:4px}

/* Shared messaging template selector matches adjacent actions. */
#intro-variations{min-height:44px;border:1px solid #e6e6e8;border-radius:8px;background:#fff;color:#202124;padding:9px 13px;font:inherit;cursor:pointer;min-width:0;max-width:100%;}

.home-metric-action{display:block;width:100%;text-align:left;color:#171717;text-decoration:none;font:inherit;border:1px solid transparent;cursor:pointer}.home-metric-action small{color:#646469}.home-metric-action:hover{border-color:#b91c2b}.home-metric-action:focus-visible,#home-followups:focus-visible{outline:2px solid #b91c2b;outline-offset:3px}#home-followups{scroll-margin-top:20px}

/* Match all top-level admin disclosure headings, including operational panels. */
#nav.admin-owner-navigation ~ #main > details.panel > summary {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
}

.customer-help-direct{display:block;color:#171717;text-decoration:none}.customer-help-direct>span{display:flex;align-items:center;gap:6px;min-height:44px;padding:4px 0;font-size:17px;font-weight:600}.customer-help-direct>span::before{content:"";display:block;width:0;height:0;border-top:7px solid transparent;border-bottom:7px solid transparent;border-inline-start:11px solid #b91c2b;flex:none}.customer-help-direct:focus-visible{outline:2px solid #b91c2b;outline-offset:4px}
