/* JamaahHub shared presentation: foundation, desktop, compact, mobile.
   Real source counts, lifecycle controls and native dialog semantics are unchanged. */
:root{--ink:#103448;--muted:#637c88;--teal:#00644d;--line:#deede6;--bg:#f1faf6;--nav:#004b3b;--jh-sidebar-width:246px}
.jh-themed{font-family:Arial,Helvetica,sans-serif;font-size:16px;line-height:1.5;color:var(--ink);background:radial-gradient(ellipse at 70% 0,#e4f7ef,transparent 75%),var(--bg)}
.jh-themed *{box-sizing:border-box}.jh-themed [hidden]{display:none!important}
.jh-themed h1,.jh-themed h2,.jh-themed h3,.jh-themed .stat-number,.jh-themed .stat-unknown{font-family:inherit}
.jh-themed button,.jh-themed a{touch-action:manipulation}
.jh-themed :focus-visible{outline:3px solid #b87a18;outline-offset:3px}
.jh-themed .skip:focus{z-index:500}
.jh-themed .shell,.jh-themed .business-shell,.jh-themed .appointment-shell{margin:0 0 0 var(--jh-sidebar-width);max-width:none;padding:0;min-width:0}
.jh-themed main,.jh-themed .business-shell main,.jh-themed .appointment-shell main{padding:20px 18px 24px;max-width:1500px;margin:auto;min-width:0}
.jh-themed main.jh-dashboard-main,.jh-themed .shell>main{padding:0 18px 24px}
/* Persistent navigation: every route and account fits a normal desktop height. */
.jh-sidebar{position:fixed;inset:0 auto 0 0;z-index:200;display:flex;flex-direction:column;width:var(--jh-sidebar-width);height:100dvh;padding:20px 13px 14px;overflow-y:auto;overscroll-behavior:contain;color:#e6f3ec;background:linear-gradient(155deg,#034b3c,#004a39 65%,#0a5b46);box-shadow:4px 0 24px #124d3610}
.jh-sidebar:before{content:'';position:absolute;inset:auto 0 76px;height:220px;background:url('/sidebar-mosque.webp') center bottom/100% 100% no-repeat;opacity:.6;pointer-events:none}
.jh-sidebar>*{position:relative;flex-shrink:0}.jh-sidebar-top{display:flex;align-items:center;gap:8px;margin-bottom:22px}
.jh-sidebar-brand{display:flex;align-items:center;gap:9px;min-height:44px;color:#f0f8ee;font-size:25px;letter-spacing:-1px;white-space:nowrap;text-decoration:none}
.jh-sidebar-brand>span{font-weight:700}.jh-sidebar-brand strong{font-weight:400}.jh-sidebar-brand img,.jh-brand-mark{width:38px;height:38px;flex-shrink:0}
.jh-nav-label{font-size:10px;letter-spacing:.04em;color:#b3ccbe;margin:0 10px 10px}
.jh-navigation{display:flex;flex-direction:column;gap:4px}
.jh-navigation a,.jh-nav-secondary a{display:flex;align-items:center;gap:10px;color:#edf8f1;padding:9px 10px;min-height:44px;border-radius:11px;font-size:13px;line-height:1.3;text-decoration:none}
.jh-navigation a svg,.jh-nav-secondary a svg{width:23px;height:23px;flex:0 0 23px}
.jh-navigation a span,.jh-nav-secondary a span{font-size:inherit;white-space:nowrap}
.jh-navigation a:hover,.jh-nav-secondary a:hover{background:#ffffff12}
.jh-navigation a[aria-current=page]{color:#103c34;background:#d8f5e9;border:1px solid #b3dfce;box-shadow:0 0 0 3px #a8dfc517;font-weight:600}
.jh-nav-secondary{border-top:1px solid #ffffff26;margin:18px 7px 16px;padding-top:12px;display:grid;gap:4px}
.jh-owner{display:flex;align-items:center;gap:10px;padding:11px 10px;margin-top:auto;background:#ffffff08;border:1px solid #a2c7b34d;border-radius:14px;color:#f2f8ee;min-height:66px}
.jh-owner-avatar{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#d3f2e3;color:#155d49;font-weight:650;flex-shrink:0}
.jh-owner strong{display:block;font-size:14px}.jh-owner small{display:block;font-size:10px;color:#c2d9ca;margin-top:3px}.jh-owner>span:last-child{margin-left:auto}
.jh-nav-toggle,.jh-nav-close{display:none}.jh-nav-backdrop{position:fixed;inset:0;z-index:190;background:#0b302e75;border:0}.jh-sidebar :focus-visible{outline-color:#e1c884}
/* Header controls stay together on the right; 44px touch targets in 52px chrome. */
.jh-themed .topbar,.jh-themed .business-header,.jh-themed .appointment-header{display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-start;gap:14px;height:52px;min-height:52px;background:#f7fcf9e8;border:0;margin:0;padding:4px 18px}
.jh-themed header>.primary-nav,.jh-themed header>.jamaah-brand,.jh-themed header>.private{display:none}
.jh-breadcrumb{font-size:13px;color:#557081;margin-right:auto}.jh-breadcrumb span{margin:0 12px;color:#8ba39f}
.jh-account-link{display:flex;align-items:center;gap:10px;color:#174c41;font-size:13px;font-weight:600;min-height:44px;white-space:nowrap}
.jh-account-link>span:first-child{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#00664f;color:#fff;font-size:17px}
.jh-themed .topbar .jh-account-link{order:3;margin-left:0}.jh-themed .topbar .notification-bell{order:2;margin-left:auto}
.jh-themed .notification-toggle{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;width:44px;height:44px;color:#355e63;background:transparent;border:0;border-radius:8px}
.jh-themed .notification-toggle>span:first-child{display:flex;align-items:center;justify-content:center}.jh-themed .notification-count{right:0;top:0}
.jh-themed .notification-panel{position:fixed;right:18px;top:58px;z-index:250;width:min(390px,calc(100vw - 32px));max-height:calc(100dvh - 80px);overflow:auto;border-radius:16px;border-color:#c9e2d2;box-shadow:0 18px 50px #13432d26}
/* Shared hero and compact source disclosure. Healthy dashboard geometry:
   header52 + hero140 + source24 = stats216; stats90 + gap12 = queue318. */
.jh-themed .heading,.jh-themed .appointment-heading,.jh-page-hero{position:relative;isolation:isolate;overflow:hidden;display:block;border:1px solid #d0e9dc;border-radius:17px;background:linear-gradient(100deg,#d4f2e5,#e7f7ed);min-height:140px;padding:20px 28px;margin:0 0 16px}
.jh-themed .heading:after,.jh-themed .appointment-heading:after,.jh-page-hero:after{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:url('/dashboard-hero.webp') right bottom -20px/auto 300px no-repeat;mask-image:linear-gradient(to right,transparent 20%,#000 58%)}
.jh-themed .heading h1,.jh-themed .appointment-heading h1,.jh-page-hero h1{font-size:34px;font-weight:700;letter-spacing:-1px;line-height:1.1;margin:0 0 7px;color:#092c30;max-width:720px}
.jh-themed .heading h1{font-family:Georgia,'Times New Roman',serif;font-size:36px}
.jh-themed h1 span{color:inherit}.jh-themed .heading p,.jh-themed .appointment-heading p,.jh-page-hero>p{font-size:15px;line-height:1.4;color:#245862;max-width:76%;margin:0}
.jh-themed .heading{height:140px;min-height:140px;margin:0}
.jh-master-label{display:inline-block;font-size:10px;line-height:16px;color:#885400;border:1px solid #dba73a;border-radius:25px;background:#fff6d9;padding:3px 9px;margin-top:8px}
.jh-themed .heading .refresh{position:absolute;bottom:12px;right:8px;display:flex;align-items:center;gap:7px;min-height:44px;padding:9px 12px;border:1px solid #89c4b1;border-radius:9px;background:#f8fffb;color:#075e47;font-size:11px;cursor:pointer}
.jh-themed .data-state{display:flex;flex-wrap:wrap;align-items:center;gap:0 8px;min-height:24px;padding:0 4px;margin:0;border:0;border-radius:8px;background:transparent;box-shadow:none;font-size:10px;line-height:1.4}
.jh-themed .data-state>strong{font-size:10px;line-height:24px;font-weight:400;color:#54776d}
.jh-source-details{font-size:10px;color:#5e7c73}.jh-source-details>summary{cursor:pointer;text-decoration:underline;min-height:24px;display:inline-flex;align-items:center}
.jh-source-details[open]{flex-basis:100%;padding:8px 11px;margin:4px 0;background:#f2fbf6;border:1px solid #cfe7da;border-radius:8px}
.jh-source-details p,.jh-themed .jh-source-details .management-state{font-size:11px;line-height:1.5;padding:0;margin:5px 0}
.jh-themed .data-state[data-status=error],.jh-themed .data-state[data-status=stale],.jh-themed #businessState[data-error=true],.jh-themed #workspaceState[data-error=true],.jh-themed .appointment-state[data-state=error],.jh-themed .appointment-state[data-state=stale]{padding:9px 12px;background:#fff2df;border:1px solid #e8d6b6;color:#785b2a}
.jh-themed .data-state[data-status=error]>strong,.jh-themed .data-state[data-status=stale]>strong{color:#80582c;font-weight:600}
.jh-themed .management-state,.jh-themed #businessState,.jh-themed #workspaceState,.jh-themed .appointment-state{font-size:13px;line-height:1.6;border:1px solid #d6e8de;border-radius:12px;padding:12px 15px;background:#eef8f1;margin-bottom:14px}
/* Dashboard summary and two-column composition. */
.jh-themed .stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 12px}
.jh-themed .stats article{display:flex;align-items:center;gap:10px;min-width:0;min-height:90px;padding:12px;border:1px solid #deede4;border-radius:14px;background:#fff;box-shadow:0 4px 18px #175d3e04}
.jh-themed .stats article>div{min-width:0}.jh-stat-icon{display:grid;place-items:center;flex:0 0 46px;height:50px;background:#dff8ed;border-radius:15px;color:#005d48}.jh-stat-icon svg{width:29px;height:29px}
.jh-themed .stat-label{font-size:12px;line-height:16px;color:#26465a}.jh-themed .stat-number{font-size:32px;line-height:34px;margin:1px 0;font-weight:700;letter-spacing:-1px;color:#092d3c}.jh-themed .stat-unknown{font-size:17px;line-height:1.4;margin:5px 0}.jh-themed .stats p{font-size:9px;line-height:13px;color:#7b9282;margin:0}
.jh-themed .content-grid{display:grid;grid-template-columns:minmax(0,2.35fr) minmax(220px,1fr);gap:14px;align-items:start}
.jh-themed .queue,.jh-themed .reason-card,.jh-themed .source-card,.jh-themed .workspace-card,.jh-themed .appointment-card,.jh-shortcut-card,.jh-workspace{min-width:0;border:1px solid #deede3;border-radius:14px;background:#fff;box-shadow:0 4px 20px #175d3e04}
.jh-themed .queue{overflow:hidden}.jh-themed .queue-heading{padding:8px 16px 4px;min-height:54px;gap:8px}.jh-themed .queue-heading h2{font-size:22px;line-height:26px;letter-spacing:-.5px;margin:0}.jh-themed .queue-heading p{font-size:10px;line-height:13px;margin:3px 0 0;color:#6f897a}.jh-themed .queue-heading h2 span{font-size:10px;line-height:1.2}
.jh-themed .work-tabs{display:flex;flex-wrap:nowrap;gap:12px;padding:0 16px;min-height:44px}.jh-themed .work-tabs button{font-size:11px;line-height:16px;white-space:nowrap;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;min-height:44px;padding:9px 3px;color:#435e6d}.jh-themed .work-tabs button[aria-selected=true]{color:#00644d;border-color:#00644d;background:transparent;font-weight:600}.jh-themed .work-tabs span{font-size:10px;line-height:16px;background:#e7f0ee;border-radius:20px;padding:1px 6px;margin-left:4px}.jh-themed .work-tabs button[aria-selected=true] span{background:#cdf1df}
.jh-themed .filters{display:flex;flex-wrap:nowrap;gap:7px;padding:3px 16px 5px;min-height:48px}
.jh-themed .filters .search{display:flex;align-items:center;flex:1 1 140px;min-width:90px;padding:0 8px;border:1px solid #d2e2d7;border-radius:8px;background:#fcfefb}
.jh-themed .filters input{height:38px;min-height:38px;width:100%;min-width:0;padding:7px 2px;font-size:11px;line-height:20px;background:transparent;color:var(--ink)}
.jh-themed .filters select{height:40px;min-height:40px;min-width:0;width:112px;max-width:130px;flex:1 1 105px;padding:7px;font-size:10px;line-height:20px;border:1px solid #d2e2d7;border-radius:8px;background:#fcfefb;color:#355264}
.jh-filter-options{display:flex;flex:0 1 226px;gap:7px;min-width:0}.jh-filter-toggle{display:none}
.jh-themed .table-head,.jh-themed .ticket{display:grid;grid-template-columns:minmax(110px,1.3fr) minmax(70px,1fr) 83px 64px 82px;gap:8px;align-items:center;padding-left:12px;padding-right:12px}
.jh-themed .table-head{background:#f0f7f4;margin:0 12px;border:0;border-radius:7px;padding:8px 0;min-height:30px;font-size:8px;line-height:14px;letter-spacing:0;color:#57727e}
.jh-themed .table-head>span{white-space:nowrap}.jh-themed .ticket{width:100%;min-height:64px;padding-top:10px;padding-bottom:10px;border-bottom:1px solid #e3eee7;background:#fff;text-align:left}.jh-themed .ticket:hover{background:#f3faf5}.jh-themed .ticket>*{grid-column:auto;grid-row:auto;min-width:0}
.jh-themed .ticket .person{display:flex;align-items:center;gap:8px;min-width:0}.jh-themed .ticket .person>span{min-width:0}
.jh-themed .ticket .person:before{content:none}.jh-ticket-avatar{display:block;flex:0 0 34px;width:34px;height:34px;padding:8px;border-radius:50%;background:#e2f7ed;color:#086851}
.jh-themed .ticket .whatsapp-name{display:block;font-size:12px;line-height:18px;font-weight:600;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#244c38}.jh-themed .ticket .ticket-id{font-size:10px;line-height:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:140px;margin-top:2px;color:#7a8f9c}
.jh-themed .ticket .need{font-size:11px;line-height:16px;min-width:0;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#526b7b}.jh-themed .ticket .wait{font-size:11px;line-height:16px;white-space:nowrap;text-align:left;align-self:center}.jh-themed .ticket .wait strong,.jh-themed .ticket .wait small{font-size:11px;line-height:16px}
.jh-themed .ticket-action{display:flex;align-items:center;justify-content:center;min-height:40px;padding:7px;background:#00644d;border-radius:8px;color:#fff;font-size:10px;font-weight:600;white-space:nowrap}.jh-themed .ticket:after{content:none}
.jh-themed .queue-footer{padding:12px 16px;font-size:11px;line-height:1.5;color:#758b98}.jh-themed .queue-footer b{font-size:11px}
.jh-queue-details{padding:0 16px 8px;margin:0;font-size:10px;line-height:1.5;color:#648176}.jh-queue-details summary{cursor:pointer;min-height:30px;display:flex;align-items:center}.jh-queue-details summary:before{content:'ⓘ';margin-right:5px}.jh-queue-details[open]{padding-top:5px;background:#f4fbf7}.jh-queue-details p,.jh-themed .jh-queue-details .jh-age-note,.jh-themed .jh-queue-details .count-definition{padding:0;font-size:11px;line-height:1.5;margin:7px 0}
/* Supporting cards and business routes. */
.jh-themed .right-rail{display:flex;flex-direction:column;gap:12px}.jh-shortcut-card{padding:15px}.jh-shortcut-card h2{display:flex;gap:8px;align-items:center;font-size:18px;line-height:1.3;letter-spacing:-.4px;margin:0 0 10px}.jh-shortcut-card h2 svg{color:#08674f;flex-shrink:0}.jh-shortcut-card p{font-size:12px;color:#355264;line-height:1.5;margin:6px 0}.jh-shortcut-card .jh-no-summary{font-size:10px;color:#7b908c}.jh-shortcut-card a{display:flex;justify-content:space-between;align-items:center;min-height:44px;margin-top:5px;font-size:12px;color:#00644e}
.jh-themed .source-card{order:2;padding:15px;background:linear-gradient(140deg,#f0fff8,#fff)}.jh-themed .source-card h2,.jh-themed .reason-card h2{font-size:18px}.jh-themed .source-card p,.jh-themed .source-card dd,.jh-themed .source-card dt{font-size:11px;line-height:1.5}.jh-themed .source-card dl{display:block;margin:12px 0}.jh-themed .source-card dl>div{margin-top:10px}.jh-themed .source-card button{min-height:44px;font-size:12px}.jh-themed .reason-card{order:3;padding:15px}.jh-themed .reason-card p,.jh-themed .reason-item>div:first-child{font-size:12px}
.jh-workspace{margin-top:12px;padding:16px}.jh-workspace h2{font-size:19px;line-height:1.4;margin:0 0 3px}.jh-workspace>p{font-size:11px;color:#6c8390;margin:0 0 12px}.jh-workspace>div{display:flex;flex-wrap:wrap;gap:8px}.jh-workspace h2{display:flex;align-items:center;gap:10px}.jh-workspace h2 svg{color:#08634f;flex-shrink:0}.jh-workspace button svg{display:block;width:22px;height:22px;flex:0 0 22px;color:#08634f;opacity:1}.jh-workspace button:disabled{opacity:1;color:#46675e}.jh-workspace button{display:inline-flex;align-items:center;justify-content:center;gap:10px;border:1px solid #dce8e2;background:#f9fcfa;border-radius:9px;min-height:44px;padding:10px 12px;font-size:12px;color:#71877d;cursor:not-allowed}
.jh-themed .business-record{grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr) auto;border:1px solid #deede3;background:white;border-radius:14px;margin-bottom:12px;padding:19px;overflow-wrap:anywhere}.jh-themed .business-record>*{min-width:0}.jh-themed #businessFilters label,.jh-themed #workspaceFilters label{min-width:0}.jh-themed #businessFilters input,.jh-themed #businessFilters select,.jh-themed #workspaceFilters input{font-size:16px;min-height:44px;max-width:100%;border-radius:9px}.jh-themed #businessFilters,.jh-themed #workspaceFilters{gap:12px}.jh-themed .business-pages,.jh-themed #workspacePages{flex-wrap:wrap}.jh-themed .business-tabs button[aria-pressed=true],.jh-themed #businessFilters button,.jh-themed #appointmentFilters button{background:#116e50;color:white}.jh-themed .appointment-notice{border-color:#d1e6d8;background:#eaf7ef}.jh-themed .appointment-card h3{font-size:19px}
.jh-themed footer{font-size:10px;line-height:1.6;color:#7c9282;margin-top:14px;letter-spacing:0}
/* Dialogs, composition, media, and focus retain their functional base styles. */
.jh-themed .management button,.jh-themed .reply-composer button,.jh-themed .business-record button,.jh-themed .business-pages button,.jh-themed #businessFilters button,.jh-themed #workspaceFilters button,.jh-themed #workspacePages button,.jh-themed #businessClose,.jh-themed #profileClose{min-height:44px;border-radius:9px}.jh-themed .management button,.jh-themed .reply-composer button{background:#116e50}
.jh-themed #businessDetail{max-height:90dvh;overflow:auto}.jh-themed .detail-dialog-header,.jh-themed .detail-dialog-body,.jh-themed #businessDetail,.jh-themed #profileDialog,.jh-themed #appointmentDetail{border-color:#d4e5d9}.jh-themed .detail-dialog-header h2{font-size:22px}.jh-themed .reply-emoji-panel{grid-template-columns:repeat(6,44px)}.jh-themed .reply-composer .reply-emoji-panel button{min-width:44px;width:44px;height:44px;background:#fff;color:#244c38}.jh-themed .media-composer audio,.jh-themed .media-history audio{width:100%;max-width:100%;display:block}.jh-themed .media-composer>div:first-child{display:flex;gap:8px;flex-wrap:wrap}.jh-themed .media-composer img,.jh-themed .media-history img{max-width:100%;height:auto}
/* Wider desktops expand the same composition, without changing density. */
@media(min-width:1251px){.jh-themed main.jh-dashboard-main,.jh-themed .shell>main{padding-inline:22px}.jh-themed .topbar{padding-inline:22px}.jh-themed .heading h1{font-size:39px}.jh-themed .stats article{padding-inline:18px;gap:14px}.jh-themed .table-head,.jh-themed .ticket{grid-template-columns:minmax(130px,1.35fr) minmax(85px,1fr) 94px 70px 94px;gap:12px}.jh-themed .table-head{font-size:9px}.jh-themed .ticket-action{font-size:11px}.jh-ticket-avatar{flex-basis:36px;width:36px;height:36px}}
/* Compact desktop/tablet never clips a narrow queue next to the rail. */
@media(max-width:1100px){.jh-themed .content-grid{grid-template-columns:minmax(0,1fr)}.jh-themed .right-rail{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.jh-themed .reply-emoji-panel{grid-template-columns:repeat(5,44px)}}
@media(max-width:900px){
 .jh-themed .shell,.jh-themed .business-shell,.jh-themed .appointment-shell{margin-left:0}
 .jh-sidebar{width:min(330px,78vw);transform:translateX(-110%);visibility:hidden;transition:transform .2s ease,visibility .2s}
 .jh-nav-open .jh-sidebar{transform:none;visibility:visible}.jh-nav-open{overflow:hidden}
 .jh-nav-toggle{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;border:0;border-radius:9px;font-size:25px;color:#145f48;background:transparent;flex-shrink:0}
 .jh-nav-close{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;font-size:30px;margin-left:auto;color:#e9f7ee;border-radius:9px;flex-shrink:0}
 .jh-sidebar-brand{font-size:25px}.jh-sidebar-top{gap:0}.jh-navigation a,.jh-nav-secondary a{font-size:14px;min-height:48px}
 .jh-themed .topbar,.jh-themed .business-header,.jh-themed .appointment-header{position:sticky;top:0;z-index:60;height:64px;min-height:64px;padding:10px 12px;gap:8px;background:#f6fcf8f5;backdrop-filter:blur(14px)}
 .jh-themed header>.jamaah-brand{display:inline-flex;min-height:44px;flex:1 1 145px;min-width:0}.jh-themed .jamaah-brand img{width:190px;height:auto;max-width:100%}
 .jh-themed .topbar .jh-account-link,.jh-breadcrumb,.jh-themed header>a[href="/login"],.jh-themed .business-header>span,.jh-themed .appointment-header>span{display:none}
 .jh-themed .topbar .notification-bell{margin-left:auto}.jh-themed .notification-panel{top:70px;right:12px}
 .jh-themed main,.jh-themed .business-shell main,.jh-themed .appointment-shell main{padding:16px 12px 22px}.jh-themed main.jh-dashboard-main,.jh-themed .shell>main{padding:0 12px 22px}
 .jh-themed .heading{height:auto;min-height:160px;padding:22px}.jh-themed .heading h1{font-size:34px}.jh-themed .heading p{font-size:14px}
 .jh-themed .filters input,.jh-themed .filters select{font-size:16px;height:44px;min-height:44px}.jh-themed .filters{min-height:52px}.jh-themed .ticket-action{min-height:44px}
}
/* Phone: search/filter before tabs is managed by DOM, never by visual reordering. */
@media(max-width:600px){
 .jh-themed .heading:after,.jh-themed .appointment-heading:after,.jh-page-hero:after{inset:0;background-position:right -60px bottom -10px;background-size:auto 260px;opacity:.5;mask-image:linear-gradient(to right,transparent,#000 70%,#000)}
 .jh-themed main,.jh-themed .business-shell main,.jh-themed .appointment-shell main{padding:16px 10px 22px}.jh-themed main.jh-dashboard-main,.jh-themed .shell>main{padding:0 10px 22px}
 .jh-themed .topbar,.jh-themed .business-header,.jh-themed .appointment-header{padding-inline:10px}.jh-themed .jamaah-brand img{width:180px}
 .jh-sidebar{padding:20px 13px 14px}.jh-sidebar-brand{font-size:24px;gap:7px}.jh-sidebar-brand img,.jh-brand-mark{width:34px;height:34px}.jh-sidebar-top{margin-bottom:24px}.jh-nav-label{font-size:11px}.jh-navigation a,.jh-nav-secondary a{font-size:13px;gap:10px;min-height:48px;padding:10px 9px}.jh-nav-secondary{margin-top:18px}
 .jh-themed .heading,.jh-themed .appointment-heading,.jh-page-hero{padding:22px 18px;border-radius:15px;min-height:180px;background-position:center}.jh-themed .heading h1{font-size:33px;max-width:235px;line-height:1.04}.jh-themed .heading p{max-width:235px;font-size:13px;line-height:1.4}.jh-master-label{font-size:9px;max-width:185px;padding:3px 7px;margin-top:9px}.jh-themed .heading .refresh{right:10px;bottom:10px;font-size:10px;padding:8px;min-height:44px}.jh-themed .heading .refresh svg{width:16px;height:16px}
 .jh-themed .data-state{gap:0 7px;padding:2px 3px}.jh-themed .data-state>strong{font-size:9px;line-height:18px}.jh-source-details{font-size:9px}.jh-source-details>summary{min-height:32px}
 .jh-themed .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:0 0 12px}.jh-themed .stats article:nth-child(3){grid-column:1/-1}.jh-themed .stats article{min-height:94px;padding:12px 10px;gap:9px}.jh-themed .stats article>div{overflow-wrap:anywhere}.jh-stat-icon{flex-basis:42px;height:48px;border-radius:14px}.jh-stat-icon svg{width:27px;height:27px}.jh-themed .stat-label{font-size:11px;line-height:15px}.jh-themed .stat-number{font-size:30px;line-height:33px}.jh-themed .stats p{font-size:9px;line-height:12px}
 .jh-themed .queue-heading{min-height:48px;padding:12px 14px 8px}.jh-themed .queue-heading h2{font-size:22px}.jh-themed .queue-heading p{font-size:10px}
 .jh-themed .filters{display:flex;flex-wrap:wrap;gap:8px;padding:4px 13px 9px;min-height:57px}.jh-themed .filters .search{flex:1 1 140px;min-width:0}.jh-themed .filters input{font-size:16px;min-height:44px;height:44px;padding:7px 0}.jh-filter-toggle{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:8px 11px;border:1px solid #d2e2d7;border-radius:8px;background:#fff;color:#174c41;font-size:13px}.jh-filter-toggle[aria-expanded=true]{background:#dff5ea;border-color:#79b7a0}.jh-filter-options{display:flex;flex:1 1 100%;width:100%;gap:8px}.jh-themed .filters select{flex:1 1 0;width:0;max-width:none;min-width:0;font-size:16px;height:44px}
 .jh-themed .work-tabs{justify-content:space-between;gap:4px;padding:0 12px;min-height:44px}.jh-themed .work-tabs button{font-size:11px;padding:9px 2px;min-height:44px}.jh-themed .work-tabs span{font-size:10px;padding:1px 5px;margin-left:3px}
 .jh-themed .table-head{display:none}.jh-themed #tickets{padding-top:10px}.jh-themed .ticket{display:grid;grid-template-columns:minmax(0,1fr);gap:7px;width:calc(100% - 22px);min-height:0;margin:0 11px 11px;padding:12px;border:1px solid #deede3;border-radius:12px;box-shadow:0 3px 12px #145a3604}
 .jh-themed .ticket .person{grid-column:1;grid-row:1;gap:12px}.jh-ticket-avatar{flex-basis:42px;width:42px;height:42px;padding:10px}.jh-themed .ticket .whatsapp-name{font-size:14px;line-height:20px}.jh-themed .ticket .ticket-id{font-size:11px;line-height:16px;max-width:100%}.jh-themed .ticket .need{grid-column:1;grid-row:2;font-size:12px;line-height:18px;white-space:normal;margin-left:54px}.jh-themed .ticket .wait{grid-column:1;grid-row:3;font-size:12px;line-height:18px;text-align:left;margin-left:54px}.jh-themed .ticket .wait strong,.jh-themed .ticket .wait small{font-size:12px;line-height:18px}.jh-themed .ticket .ticket-action{grid-column:1;grid-row:4;min-height:44px;font-size:14px;margin-top:2px}.jh-themed .ticket .chevron{display:none}.jh-themed .ticket:after{content:none}
 .jh-themed .queue-footer{padding:10px 14px;font-size:10px}.jh-themed .queue-footer>span:last-child{display:inline}.jh-queue-details{padding-inline:14px}.jh-queue-details summary{min-height:44px}
 .jh-themed .right-rail{grid-template-columns:1fr}.jh-shortcut-card,.jh-themed .reason-card,.jh-themed .source-card{padding:16px}.jh-workspace{padding:16px}.jh-workspace button{flex:1 1 130px;font-size:12px}
 .jh-themed .business-record{grid-template-columns:minmax(0,1fr);gap:10px;padding:16px}.jh-themed .business-record>div:first-child{grid-column:auto}.jh-themed .business-record button{width:100%;background:#116e50;color:#fff}.jh-themed #businessFilters label,.jh-themed #workspaceFilters label{flex:1 1 140px}.jh-themed #businessFilters input,.jh-themed #businessFilters select,.jh-themed #workspaceFilters input{width:100%;font-size:16px}.jh-themed .business-pages,.jh-themed #workspacePages{gap:10px;padding:18px 0}
 .jh-themed #details{width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.jh-themed .detail-dialog-body{padding:0 16px 20px;max-height:calc(100dvh - 160px)}.jh-themed .detail-dialog-header{padding:17px 16px 13px}.jh-themed .detail-dialog-header h2{font-size:20px}.jh-themed .detail-grid{grid-template-columns:1fr}.jh-themed #businessDetail,.jh-themed #profileDialog,.jh-themed #appointmentDetail{width:calc(100vw - 20px);max-width:calc(100vw - 20px);padding:17px;max-height:90dvh}.jh-themed .reply-emoji-panel{grid-template-columns:repeat(4,44px)}.jh-themed .management-buttons button{flex:1 1 120px}.jh-themed .notification-panel{right:12px;width:calc(100vw - 24px);top:70px}.jh-themed .appointment-card{padding:16px}
}
@media(max-width:360px){.jh-themed .jamaah-brand img{width:155px}.jh-themed header>.jamaah-brand{flex-basis:120px}.jh-sidebar{padding-inline:10px}.jh-sidebar-brand{font-size:20px}.jh-sidebar-brand img,.jh-brand-mark{width:30px;height:30px}.jh-navigation a,.jh-nav-secondary a{font-size:12px;gap:7px;padding-inline:7px}.jh-themed .work-tabs button{font-size:10px}.jh-themed .work-tabs span{font-size:9px}.jh-themed .heading h1{font-size:30px}.jh-stat-icon{flex-basis:35px;height:42px}.jh-themed .stats article{padding-inline:8px;gap:7px}}
@media(max-height:650px){.jh-sidebar-top{margin-bottom:12px}.jh-sidebar{padding-top:12px}.jh-navigation{gap:2px}.jh-navigation a,.jh-nav-secondary a{min-height:44px}.jh-nav-secondary{margin-top:12px;margin-bottom:12px;padding-top:9px}.jh-owner{min-height:60px}}
@media(prefers-reduced-motion:reduce){.jh-sidebar{transition:none}.jh-themed *{scroll-behavior:auto}}

/* Actual current-ticket photos only; workspace counters keep their semantic icons. */
.jh-contact-avatar{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:0 0 38px;width:38px;height:38px;border-radius:50%;overflow:hidden;background:#e3eee9;color:#205d4c;font-size:13px;font-weight:700;vertical-align:middle}
.jh-contact-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:50%}
.jh-contact-initials[hidden]{display:none}

/* Source ticket status sits immediately after duration; independent of management tabs. */
.jh-themed .jh-ticket-source-status{display:inline-flex;align-items:center;justify-content:center;justify-self:start;max-width:100%;padding:3px 6px;border:1px solid #735200;border-radius:999px;background:#735200;color:#fff;font-size:10px;line-height:16px;font-weight:600;overflow-wrap:anywhere}
@media(max-width:600px){
 .jh-themed .ticket{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:10px}
 .jh-themed .ticket .person,.jh-themed .ticket .need,.jh-themed .ticket .wait{grid-column:1/-1}
 .jh-themed .ticket .jh-ticket-source-status{grid-column:1;grid-row:4;justify-self:stretch;min-width:0;min-height:44px;margin-top:2px;font-size:11px}
 .jh-themed .ticket .ticket-action{grid-column:2;grid-row:4;min-width:0;min-height:44px;white-space:normal;overflow-wrap:anywhere}
}

.jh-themed .jh-ticket-source-status[data-status="OPEN"]{background:#27843c;border-color:#27843c;color:#fff;font-weight:700}
.jh-themed .jh-ticket-source-status[data-status="CLOSED"]{background:#b42318;border-color:#b42318;color:#fff}

/* Verified account disclosure; no logout is performed until the user chooses it. */
.jh-account-menu{position:relative;order:3;flex-shrink:0}.jh-account-menu>.jh-account-link{border:0;background:transparent;padding:0 4px;cursor:pointer}.jh-account-panel{position:absolute;z-index:400;right:0;top:calc(100% + 8px);width:250px;max-width:calc(100vw - 24px);padding:10px;background:#fff;border:1px solid #c8dfd4;border-radius:12px;box-shadow:0 12px 35px #123e3426;color:#174c41}.jh-account-panel>a,.jh-account-panel>button{display:flex;align-items:center;width:100%;min-height:44px;padding:10px;border:0;border-radius:7px;background:transparent;color:#174c41;text-align:left;text-decoration:none;font:inherit;font-size:14px;cursor:pointer}.jh-account-panel>a:hover,.jh-account-panel>button:hover{background:#e8f6ef}.jh-account-identity{margin:2px 8px 8px;overflow-wrap:anywhere;font-size:12px;color:#56766a}.jh-account-menu-status{font-size:12px;line-height:1.5;margin:5px 8px}.jh-account-menu-status:empty{display:none}
@media(max-width:900px){.jh-themed .topbar .jh-account-menu>.jh-account-link{display:flex;font-size:0;gap:3px}.jh-account-menu>.jh-account-link>span:last-child{font-size:12px}.jh-account-menu{margin-left:0}.jh-account-panel{right:0}}

/* Requested modest reduction of this dashboard queue title only. */
#main.jh-dashboard-main .queue-heading h2{font-size:19px}

/* Readable filled navigation states; light/default controls keep their base colors. */
.jh-themed .business-tabs button:is([aria-pressed=true],:hover,:focus-visible):not(:disabled){background:#116e50;color:#fff}
.jh-themed .jh-navigation a:is([aria-current=page],:hover,:focus-visible),.jh-themed .jh-nav-secondary a:is(:hover,:focus-visible){background:#116e50;color:#fff;border-color:#287e61}
.jh-themed .business-tabs button:is([aria-pressed=true],:hover,:focus-visible) svg,.jh-themed .jh-navigation a:is([aria-current=page],:hover,:focus-visible) svg,.jh-themed .jh-nav-secondary a:is(:hover,:focus-visible) svg{color:inherit}

/* Saved owner identity, shared by the header and the mobile/desktop sidebar. */
.jh-owner-avatar,.profile-avatar{overflow:hidden;position:relative}.jh-owner-photo{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}.jh-owner{text-decoration:none}.jh-owner-copy{min-width:0}.jh-owner-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.jh-account-menu{margin-left:auto;min-width:0}.jh-account-copy{text-align:left;min-width:0;max-width:200px;line-height:1.3}.jh-account-copy strong{display:block;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.jh-account-copy small{display:block;font-size:10px;font-weight:400;color:#60786e;margin-top:2px}.jh-account-link>.jh-owner-avatar{flex:0 0 34px}.jh-account-chevron{font-size:13px}
@media(max-width:900px){.jh-themed .jh-account-menu>.jh-account-link{display:flex;gap:5px}.jh-account-copy{max-width:110px}.jh-account-copy strong{font-size:11px}.jh-account-copy small{font-size:9px}.jh-account-menu>.jh-account-link>.jh-account-chevron{font-size:12px}}
@media(max-width:480px){.jh-themed header>.jamaah-brand{flex-basis:90px}.jh-account-copy{max-width:75px}.jh-account-menu>.jh-account-link{padding-inline:0}.jh-account-link>.jh-owner-avatar{width:30px;height:30px;flex-basis:30px}.jh-themed .topbar,.jh-themed .business-header,.jh-themed .appointment-header{gap:4px}}
/* Shared, authenticated search: a single header action, no new sidebar menu. */
.jh-themed .jh-search-trigger{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 auto;border:1px solid #cbded7;background:#f7fbf8;color:#145c4e;border-radius:11px;padding:9px 16px;font:inherit;font-weight:700;cursor:pointer}
.jh-search-dialog{width:min(720px,calc(100% - 24px));max-height:85dvh;box-sizing:border-box;margin:auto;padding:22px;border:1px solid #cbded7;border-radius:20px;background:#fcfdf9;color:#153c32;box-shadow:0 24px 80px #133e3626;overflow:auto}.jh-search-dialog::backdrop{background:#132f2566}.jh-search-heading,.jh-search-pages{display:flex;align-items:center;justify-content:space-between;gap:12px}.jh-search-heading h2{font-size:22px;margin:0}.jh-search-dialog button,.jh-search-dialog select,.jh-search-dialog input{font:inherit;border:1px solid #cbded7;border-radius:10px;padding:10px;box-sizing:border-box;min-height:42px;max-width:100%}.jh-search-dialog button{background:#eaf4ee;color:#145c4e;font-weight:650;cursor:pointer}.jh-search-dialog button:disabled{opacity:.5;cursor:default}.jh-search-form{display:flex;align-items:end;gap:10px;margin-top:20px}.jh-search-form label{display:flex;flex:1;flex-direction:column;gap:6px;font-size:12px;min-width:0}.jh-search-form input{width:100%;background:white}.jh-search-status{font-size:14px;line-height:1.5;min-height:21px}.jh-search-results{display:grid;gap:8px}.jh-search-result{display:flex;justify-content:space-between;gap:14px;text-decoration:none!important;color:inherit!important;background:white;border:1px solid #dce8e0;border-radius:12px;padding:13px}.jh-search-result>div{display:flex;flex-direction:column;gap:5px;min-width:0;overflow-wrap:anywhere}.jh-search-result>div+div{text-align:right;align-items:flex-end;font-size:12px}.jh-search-result strong{font-size:15px}.jh-search-result small,.jh-search-coverage{color:#5b6e64;font-size:12px;line-height:1.5;overflow-wrap:anywhere}.jh-search-kind{color:#26705b;font-size:11px;font-weight:700}.jh-search-pages{margin-top:16px;font-size:12px}.jh-search-coverage{margin-bottom:0}.jh-search-dialog :focus-visible,.jh-search-trigger:focus-visible{outline:3px solid #c9ac67;outline-offset:3px}
@media(max-width:600px){.jh-themed .jh-search-trigger{padding:7px 11px;font-size:13px}.jh-search-dialog{padding:16px;border-radius:16px;max-height:90dvh}.jh-search-heading h2{font-size:19px}.jh-search-form{display:grid;grid-template-columns:minmax(0,1fr) auto}.jh-search-form label{grid-column:1/-1}.jh-search-result{padding:11px}.jh-search-pages{gap:5px}.jh-search-pages button{font-size:12px;padding:8px}.jh-search-result>div+div{max-width:40%}}

/* Internal handler labels remain distinct from source OPEN and bot handover. */
.jh-themed .ticket .jh-ticket-assignee{display:block;color:#235e4b;font-size:11px;line-height:1.5;white-space:normal;overflow-wrap:anywhere;margin-top:3px}
.jh-themed .management .management-owner{padding:10px 12px;border:1px solid #b4d6c5;border-radius:9px;background:#eaf6ef;color:#154c39;font-weight:700;overflow-wrap:anywhere}
.jh-themed .management .management-conflict{padding:12px;border:1px solid #b47712;border-radius:9px;background:#fff8e8;color:#67420a;overflow-wrap:anywhere}
.jh-themed .management .management-conflict[hidden]{display:none}
.jh-themed .management-buttons button,.jh-themed .management input{min-height:44px}
.jh-themed .management-buttons button{white-space:normal;overflow-wrap:anywhere}
.jh-themed .management :focus-visible{outline:3px solid #b47712;outline-offset:3px}
@media(max-width:600px){.jh-themed .ticket .jh-ticket-assignee{font-size:12px}.jh-themed .management-buttons{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}.jh-themed .management input{font-size:16px}}
