.portal-mobile-back{display:none;width:36px;height:36px;flex:0 0 36px;border:0;border-radius:12px;background:transparent;color:#5b675f;align-items:center;justify-content:center;cursor:pointer}.portal-mobile-back:hover{background:#faf9f6}.portal-mobile-back svg{width:20px;height:20px}.sample-thread-header .sample-details-button{margin-left:auto}.portal-thread-header .portal-mobile-back+.patient-identity{min-width:0}.portal-details-scrim.hidden{display:none!important}
.portal-shell .conversation-avatar,.portal-shell .mini-avatar,.portal-shell .sample-avatar{position:relative;overflow:visible!important;background:radial-gradient(circle at 50% 34%,#fff 0 17%,transparent 18%),radial-gradient(ellipse at 50% 88%,#fff 0 31%,transparent 32%),#e6e5de!important;color:transparent!important;font-size:0!important;border-radius:50%!important}.portal-shell .conversation-avatar::after,.portal-shell .mini-avatar::after,.portal-shell .sample-avatar::after{display:none!important}.portal-shell .patient-avatar.production-thread-avatar{background:#e6e5de!important;color:#fff!important;font-size:0!important;position:relative}.portal-shell .patient-avatar.production-thread-avatar::before{content:"";position:absolute;inset:0;border-radius:50%;background:radial-gradient(circle at 50% 34%,#fff 0 17%,transparent 18%),radial-gradient(ellipse at 50% 88%,#fff 0 31%,transparent 32%)}
.channel-brand-badge{position:absolute;right:-1px;bottom:-1px;z-index:2;width:18px;height:18px;border:2px solid #fff;border-radius:50%;display:grid;place-items:center;box-shadow:0 1px 4px rgba(24,39,33,.18)}.mini-avatar .channel-brand-badge{width:16px;height:16px}.channel-brand-badge svg{display:block;width:70%;height:70%;fill:#fff}.channel-brand-whatsapp{background:#25D366}.channel-brand-instagram{background:#E1306C}.channel-brand-facebook{background:#0866FF}
.production-filterchips button span{margin-left:5px;opacity:.72;font-size:10px}.graphic-dropzone{margin-top:20px;width:100%;min-height:128px;border:1px dashed #e6e5de;border-radius:16px;background:#faf9f6;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;color:#1a211f;cursor:pointer;transition:.15s ease}.graphic-dropzone:hover{border-color:rgba(47,111,98,.4);background:rgba(228,239,236,.35)}.graphic-dropzone .graphic-upload-icon{width:40px;height:40px;border-radius:12px;background:#fff;display:grid;place-items:center;color:#2f6f62;box-shadow:0 4px 12px rgba(24,39,33,.05);font-size:18px}.graphic-dropzone strong{margin-top:12px;font-size:12px}.graphic-dropzone small{margin-top:4px;font-size:11px;color:#5b675f}.tool-preview-rail{align-self:start}.tool-preview-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.tool-preview-heading span,.tool-preview-heading strong{display:block}.tool-preview-heading span{font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.14em;color:#5b675f}.tool-preview-heading strong{margin-top:4px;font-size:14px}.tool-preview-heading em{border-radius:999px;background:#e4efec;color:#2f6f62;padding:5px 10px;font-size:10px;font-style:normal;font-weight:600}.tool-chat-preview{margin-top:16px;min-height:192px;border:1px solid #e6e5de;border-radius:16px;background-color:#f5f7f5;background-image:radial-gradient(circle at 1px 1px,rgba(47,111,98,.055) 1px,transparent 0);background-size:22px 22px;padding:16px}.tool-preview-bubble{margin-left:auto;max-width:94%;border-radius:16px 16px 5px 16px;background:#2f6f62;color:#fff;padding:10px 14px;box-shadow:0 2px 8px rgba(24,39,33,.06)}.tool-preview-bubble small{display:block;margin-bottom:5px;font-size:10px;font-weight:600;color:rgba(255,255,255,.7)}.tool-preview-bubble p{margin:0;white-space:pre-wrap;font-size:12px;line-height:20px}.tool-preview-note{margin:12px 0 0!important;color:#5b675f!important;font-size:11px!important;line-height:20px!important}
.stage-dot.stage-new{background:#87968e}.stage-dot.stage-interested{background:#d8a34e}.stage-dot.stage-appointment{background:#2f6f62}.stage-dot.stage-visited{background:#6a8293}.stage-dot.stage-won{background:#2f7d4e}.kanban-empty,.kanban-filter-empty{padding:18px;text-align:center;color:#7b847f;font-size:9px}.funnel-subtext{display:block;color:#69736d;font-size:7px;margin-top:2px}.funnel-fill-100{width:100%}.funnel-fill-27{width:27%}.funnel-fill-20{width:19.8%}.funnel-fill-14{width:13.5%}.quality-fill-36{width:36%}.quality-fill-64{width:64%}.quality-fill-82{width:82%}

/* Dashboard usability: reliable nested scrolling, visible filter feedback and keyboard focus. */
.portal-shell{height:clamp(680px,84vh,900px)!important;min-height:0!important}.portal-sidebar,.portal-main,.portal-page,.portal-inbox-shell,.portal-conversation-list,.portal-thread-column,.portal-live-pane,.tools-layout,.tools-content,.tool-page{min-height:0}.portal-nav{min-height:0;overflow-y:auto;overscroll-behavior:contain}.portal-main{height:100%;overflow:hidden}.portal-conversation-scroll{scrollbar-gutter:stable;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.portal-staff-messages,.sample-messages,.portal-details-drawer,.tool-page,#portalPageAnalytics.active,.production-kanban,.kanban-cards{overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-gutter:stable}.portal-conversation-card[hidden],.kanban-card[hidden]{display:none!important}#portalPageInbox.active,#portalPagePipeline.active,#portalPageTools.active{overflow:hidden}#portalPageAnalytics.active{display:block;overflow-y:auto;overflow-x:hidden}.analytics-header{position:sticky;top:0;z-index:8}.tools-content{overflow:hidden}.tool-page{height:100%;overflow-y:auto}.production-kanban{overflow-x:auto;overflow-y:auto}.production-filterchips{max-width:100%;padding-bottom:2px;scrollbar-width:thin}.production-branch-strip{scrollbar-width:thin}
.portal-filter-summary{margin-top:8px;color:#77817b;font-size:10px;line-height:1.4}.portal-filter-empty{display:none;margin:22px 12px;padding:18px 14px;border:1px dashed #d7dbd8;border-radius:14px;background:#faf9f6;text-align:center;color:#66716b}.portal-filter-empty.visible{display:block}.portal-filter-empty strong,.portal-filter-empty span{display:block}.portal-filter-empty strong{color:#28332f;font-size:12px}.portal-filter-empty span{margin-top:5px;font-size:10px;line-height:1.45}.production-filterchips button[data-pipeline-special]{position:relative}.production-filterchips button[data-pipeline-special].active{background:#2f6f62;border-color:#2f6f62;color:#fff}
.portal-shell button:focus-visible,.portal-shell input:focus-visible,.portal-shell select:focus-visible{outline:3px solid rgba(47,111,98,.22);outline-offset:2px}.portal-conversation-card,.kanban-card,.branch-card,.production-filterchips button,.portal-status-filters button{transition:background .15s ease,border-color .15s ease,box-shadow .15s ease,transform .15s ease}.portal-conversation-card:hover,.kanban-card:hover{box-shadow:0 6px 18px rgba(24,39,33,.07)}.production-filterchips button:hover,.portal-status-filters button:hover{border-color:rgba(47,111,98,.42)}
.portal-conversation-scroll,.portal-staff-messages,.sample-messages,.portal-details-drawer,.tool-page,#portalPageAnalytics.active,.production-kanban,.kanban-cards,.portal-nav{scrollbar-width:thin;scrollbar-color:#c8cfcb transparent}.portal-conversation-scroll::-webkit-scrollbar,.portal-staff-messages::-webkit-scrollbar,.sample-messages::-webkit-scrollbar,.portal-details-drawer::-webkit-scrollbar,.tool-page::-webkit-scrollbar,#portalPageAnalytics.active::-webkit-scrollbar,.production-kanban::-webkit-scrollbar,.kanban-cards::-webkit-scrollbar,.portal-nav::-webkit-scrollbar{width:8px;height:8px}.portal-conversation-scroll::-webkit-scrollbar-thumb,.portal-staff-messages::-webkit-scrollbar-thumb,.sample-messages::-webkit-scrollbar-thumb,.portal-details-drawer::-webkit-scrollbar-thumb,.tool-page::-webkit-scrollbar-thumb,#portalPageAnalytics.active::-webkit-scrollbar-thumb,.production-kanban::-webkit-scrollbar-thumb,.kanban-cards::-webkit-scrollbar-thumb,.portal-nav::-webkit-scrollbar-thumb{background:#c8cfcb;border:2px solid transparent;background-clip:padding-box;border-radius:999px}.portal-conversation-scroll::-webkit-scrollbar-thumb:hover,.portal-staff-messages::-webkit-scrollbar-thumb:hover,.sample-messages::-webkit-scrollbar-thumb:hover,.portal-details-drawer::-webkit-scrollbar-thumb:hover,.tool-page::-webkit-scrollbar-thumb:hover,#portalPageAnalytics.active::-webkit-scrollbar-thumb:hover,.production-kanban::-webkit-scrollbar-thumb:hover,.kanban-cards::-webkit-scrollbar-thumb:hover,.portal-nav::-webkit-scrollbar-thumb:hover{background:#9eaaa4;background-clip:padding-box}

@media(max-height:820px) and (min-width:768px){.portal-shell{height:calc(100dvh - 132px)!important;min-height:620px!important}.portal-brand{padding-top:14px;padding-bottom:14px}.portal-user{padding-top:10px;padding-bottom:10px}.portal-nav-item{min-height:36px;padding-top:8px;padding-bottom:8px}}
@media(max-width:767px){.portal-shell{height:min(780px,82dvh)!important;min-height:620px!important}.portal-mobile-back{display:flex}.sample-thread-header{justify-content:flex-start}.sample-thread-header .sample-thread-person{min-width:0;flex:1}.sample-thread-header .sample-readonly{display:none}.sample-thread-header .sample-details-button{display:none}.portal-thread-header .patient-identity{min-width:0;flex:1}.portal-thread-header .patient-identity>div:last-child{min-width:0}.portal-thread-header .patient-identity strong,.portal-thread-header .patient-identity span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.production-thread-header .staff-actions{flex:0 0 auto}.production-thread-header #takeoverButton{height:36px;padding:0 10px}.portal-conversation-card{padding:11px 10px}.portal-conversation-card .conversation-avatar{width:42px;height:42px;flex-basis:42px}.portal-list-title-row .sample-badge{display:none}.tool-preview-rail{position:static}.graphic-dropzone{min-height:112px}.portal-filter-summary{font-size:9px}.channel-brand-badge{width:17px;height:17px}.production-filterbar{align-items:stretch}.production-search{min-width:100%}.production-filterchips{width:100%}}
