/* Approved fresh workspace; presentation only. */
:root{--bg:#f8fafb;--text:#233346;--muted:#8594a1;--border:#e8eef2;--primary:#2c8cc7;--indigo:#8c76bc;--blue:#56bbfa;--sidebar-active:#e6f4fe;--soft-shadow:0 8px 30px #314b6506}
body{background:#f8fafb;color:var(--text)}
.sidebar{width:225px;background:#fff;border-right:1px solid var(--border);box-shadow:none}
.main{margin-left:225px;background:transparent}
.brand{letter-spacing:-.6px}.brand .logo{border-radius:11px;box-shadow:0 4px 12px #56bbfa22}
.topbar{height:72px;background:#ffffffed;border-bottom:1px solid var(--border);box-shadow:none;backdrop-filter:blur(12px)}
.content{padding:30px 32px 48px}.nav a,.nav-group>button{border:0;box-shadow:none;border-radius:10px;color:#81909e}.nav a:hover,.nav-group>button:hover{background:#f1f6f9;color:#2789c4}.nav a.active{background:#e6f4fe;color:#2789c4;border-left:0;box-shadow:none}.nav a.active:before{display:none}
.card{background:#fff;border:1px solid var(--border);border-radius:18px;box-shadow:var(--soft-shadow)}
button,.btn{box-shadow:none;transition:background .18s,box-shadow .18s,transform .18s}button:hover,.btn:hover{box-shadow:0 4px 12px #314b6510}button:active,.btn:active{transform:translateY(1px)}
button:not(.danger):not(.secondary):not(.menu-btn):not(.bell-btn):not(.close){background-image:none}
input,select,textarea{border-color:#e0e8ee;background:#fff;border-radius:10px}input:focus,select:focus,textarea:focus{border-color:#56bbfa;box-shadow:0 0 0 3px #56bbfa18}
th{background:#f6f9fb;color:#7f90a0}td{border-color:#edf1f5}tr:hover td{background:#fafcfd}
.workspace-intro{margin:0 0 24px}.workspace-intro h1{font-size:29px;font-weight:650;letter-spacing:-.8px;margin:10px 0}.workspace-intro p{color:var(--muted);font-size:13px}.dash-eyebrow{color:#61a7d0;font-size:10px;letter-spacing:2px}
.workspace-canvas{display:grid;grid-template-columns:1fr 1fr 1.05fr;gap:18px;align-items:start}
.dash-welcome{grid-column:span 2;min-height:235px;padding:30px;background:#dff2fd;border:0;border-radius:18px;margin:0;position:relative;display:flex;align-items:center;overflow:hidden;box-shadow:none}
.dash-welcome-copy{max-width:65%;position:relative;z-index:1}.dash-welcome h1{font-size:26px;letter-spacing:-.7px;margin:14px 0}.dash-welcome p{color:#6592ad;max-width:270px;font-size:12px}.dash-welcome .dash-eyebrow{font-size:9px}.dash-primary-link{position:absolute;left:30px;bottom:25px;background:#2c8cc7;border-radius:9px;font-size:12px;padding:10px 16px;z-index:2;color:white}.dash-primary-link:hover{background:#2479af;color:white;transform:translateY(-1px)}
.workspace-art{position:absolute;right:24px;width:180px;height:180px;display:grid;place-items:center}.workspace-art:before{content:'';width:140px;height:140px;background:linear-gradient(135deg,#9bdcfe,#48aff0 55%,#2674c2);border-radius:36px;transform:rotate(-22deg);box-shadow:18px 23px 40px #4ba7db30,inset 2px 2px 5px #fff9}.workspace-art:after{content:'';position:absolute;width:78px;height:78px;border:17px solid #ffffff90;border-radius:24px;transform:rotate(22deg)}.workspace-mini{position:absolute;bottom:0;left:0;padding:10px 16px;background:#ffffffd9;backdrop-filter:blur(12px);border:1px solid white;border-radius:12px;font-size:10px;color:#7a9bae;z-index:1}.workspace-mini b{display:block;font-size:22px;color:#3285b4;margin-top:3px}
.workspace-focus{height:235px;background:#edf5eb;padding:25px;border-radius:18px;display:flex;flex-direction:column;justify-content:space-between}.focus-label{display:flex;justify-content:space-between;color:#718574;font-size:13px}.focus-label span{border-radius:50%;background:#fff9;padding:3px 9px}.workspace-focus strong{font-size:58px;font-weight:500;letter-spacing:-2px;color:#507b59}.workspace-focus p{font-size:12px;color:#859785}.workspace-focus a{color:#507b59;font-size:12px}
.dashboard-stats{grid-column:1/4;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:0}.dashboard-stats .stat-card{padding:22px;min-height:126px;border:1px solid var(--border);border-radius:18px;box-shadow:none;background:#fff;gap:15px}.stat-card .value{font-size:30px;color:#233346}.stat-card .label,.stat-note{color:#8a98a4;font-size:12px}.stat-icon,.quick-icon{border-radius:12px;width:42px;height:42px}.tone-cyan,.tone-blue{background:#e6f4fe;color:#3295cc}.tone-indigo{background:#f0eafb;color:#9276bc}.tone-slate{background:#fff4d7;color:#b9994c}
.workspace-canvas>.card{margin:0;padding:24px;min-width:0}.dashboard-live-leads{grid-column:3;grid-row:3/5;align-self:stretch}.dashboard-quick-card,.dashboard-recent{grid-column:span 2}.section-heading h3{font-size:15px;font-weight:650}.section-heading p{color:#8a98a4;font-size:12px}.section-index{color:#9aa7b2;font-size:9px}.dashboard-quick{gap:12px}.dashboard-quick a{background:#f8fafb;border:1px solid #edf1f5;border-radius:12px;padding:18px;box-shadow:none}.dashboard-quick a:hover{background:#fff;transform:translateY(-2px);box-shadow:0 8px 22px #314b650a}.quick-copy small{font-size:11px;color:#8a98a4}.quick-arrow{background:transparent}.dashboard-leads-list{display:flex;flex-direction:column;gap:10px;max-height:530px;overflow:auto}.dashboard-lead{background:#f7fafc;border:1px solid #eaf0f4;border-left:1px solid #eaf0f4;border-radius:12px;padding:16px;display:flex;flex-direction:column;align-items:stretch;box-shadow:none}.dashboard-lead-title{font-size:12px}.dashboard-lead-meta{font-size:11px;line-height:1.7;color:#8999a6;margin:8px 0 12px}.dashboard-lead button{align-self:flex-end;font-size:12px;border-radius:8px;padding:8px 18px;background:#2c8cc7}.dashboard-leads-empty{padding:35px 12px;color:#8a98a4}.badge{background:#eaf5fc;color:#328bc2}
.lead-card,.group-card,.lead-toast{border-left:1px solid var(--border);background:#ffffffec;box-shadow:0 6px 20px #314b6507;border-radius:14px}.lead-toast{backdrop-filter:blur(16px)}
.lead-card-identity{display:grid;gap:8px}.lead-card-shop,.lead-card-guest{display:flex;align-items:baseline;gap:8px;min-width:0}.lead-card-shop>span,.lead-card-guest>span,.lead-contact-label{color:#8594a1;font-size:11px;flex:0 0 auto}.lead-card-shop>strong,.lead-card-guest>strong{color:#2c4052;font-size:14px;font-weight:650;overflow-wrap:anywhere}.lead-contact-block{margin-top:15px;padding:13px 14px;background:#f7fafc;border:1px solid #edf2f5;border-radius:14px}.lead-contact-heading{display:flex;align-items:center;gap:7px;margin-bottom:10px;color:#718496;font-size:11px;font-weight:650}.lead-contact-heading-icon{display:grid;place-items:center;width:20px;height:20px;border-radius:7px;background:#e7f3fb;color:#2c8cc7;font-size:16px}.lead-contact-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:9px}.lead-contact-item{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0;padding:10px 11px;background:#fff;border:1px solid #eaf0f4;border-radius:11px}.lead-contact-text{max-width:100%;color:#30465a;font-size:13px;font-weight:600;overflow-wrap:anywhere}.lead-phone-action{display:inline-flex;align-items:center;gap:7px;max-width:100%;padding:7px 10px;border-radius:9px;background:#e8f5fd;color:#247eaf;text-decoration:none;font-size:13px;font-weight:650;overflow-wrap:anywhere}.lead-phone-action:hover{background:#dff0fb;color:#176c9d}.lead-phone-icon{display:grid;place-items:center;width:22px;height:22px;border-radius:7px;background:#d8effc;font-size:14px;flex:0 0 auto}.lead-phone-number{min-width:0;overflow-wrap:anywhere}.lead-phone-cta{margin-left:3px;padding:3px 7px;border-radius:6px;background:#2c8cc7;color:white;font-size:10px;flex:0 0 auto}.lead-contact-empty{color:#9aa8b3;font-size:12px}
.lead-card-mine{display:grid;grid-template-columns:minmax(0,1fr);gap:0;padding:20px 22px!important;border-radius:16px!important;background:#fff!important;border:1px solid #e7edf2!important;box-shadow:0 5px 18px #293f5508!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.lead-mine-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:14px}
.lead-mine-list>.empty{grid-column:1/-1}
.content>.card:has(>.lead-mine-list){padding:22px}
.content>.card:has(>.lead-mine-list)>h3{display:flex;align-items:center;justify-content:space-between;margin:0 0 16px}
.lead-mine-list{gap:12px}
.lead-card-mine:hover{transform:none;border-color:#d5e3ed!important;box-shadow:0 8px 24px #293f550d!important}
.lead-card-mine-head{display:flex;align-items:center;justify-content:space-between;gap:18px;min-width:0;padding-bottom:15px;border-bottom:1px solid #edf1f4}
.lead-card-mine .lead-card-identity{display:flex;align-items:center;gap:14px;min-width:0;flex-wrap:wrap}
.lead-card-mine .lead-card-shop{gap:9px;align-items:center}
.lead-card-mine .lead-store-mark{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#eef7fc;color:#2c8cc7;font-size:12px;font-weight:700}
.lead-card-mine .lead-card-shop>strong{font-size:14px}
.lead-card-mine .lead-card-guest{display:flex;align-items:center;gap:7px;padding-left:18px;border-left:1px solid #e9eef2}
.lead-card-mine .lead-card-guest>span{font-size:11px;color:#8998a5}
.lead-card-mine .lead-card-guest>strong{max-width:100%;font-size:13px;font-weight:600;color:#43566a;overflow-wrap:anywhere}
.lead-detail-button{display:inline-flex;align-items:center;gap:8px;flex:0 0 auto;min-height:34px;padding:7px 12px!important;border-radius:9px!important;color:#536b7e!important;background:#fff!important;border:1px solid #e4ebf0!important;font-size:12px}
.lead-detail-button span{color:#2c8cc7;font-size:15px}
.lead-card-mine .lead-contact-block{display:flex;align-items:flex-start;gap:18px;margin:14px 0 0;padding:0;background:transparent;border:0;border-radius:0;min-width:0}
.lead-card-mine .lead-contact-heading{flex:0 0 96px;margin:3px 0 0;font-size:12px;color:#708394}
.lead-card-mine .lead-contact-heading-icon{width:22px;height:22px;font-size:10px;font-weight:700}
.lead-card-mine .lead-contact-grid{display:flex;flex:1;flex-wrap:wrap;gap:8px;min-width:0}
.lead-card-mine .lead-contact-item{flex:0 1 250px;min-height:48px;flex-direction:row;align-items:center;justify-content:flex-start;gap:10px;padding:8px 11px;background:#f8fafc;border:1px solid #edf1f4;border-radius:11px}
.lead-card-mine .lead-contact-label{font-size:10px;color:#8a99a6}
.lead-card-mine .lead-contact-text{font-size:13px}
.lead-card-mine .lead-phone-action{padding:4px 7px;background:transparent;border-radius:7px;font-size:13px}
.lead-card-mine .lead-phone-action:hover{background:#e8f5fd}
.lead-card-mine .lead-phone-icon{width:20px;height:20px}
@media(max-width:768px){.lead-card-mine{padding:16px!important}.lead-card-mine-head{align-items:flex-start;padding-bottom:12px}.lead-card-mine .lead-card-identity{align-items:flex-start;flex-direction:column;gap:8px}.lead-card-mine .lead-card-guest{padding-left:0;border:0}.lead-card-mine .lead-contact-block{display:block;margin-top:12px}.lead-card-mine .lead-contact-heading{margin:0 0 9px}.lead-card-mine .lead-contact-grid{display:grid;grid-template-columns:1fr;gap:7px}.lead-card-mine .lead-contact-item{min-height:56px}.lead-detail-button{min-height:32px;padding:6px 9px!important}}
@media(max-width:1100px){.lead-mine-list{grid-template-columns:minmax(0,1fr)}}
@media(max-width:768px){html.rj-android .content .lead-card-mine{display:grid;grid-template-columns:minmax(0,1fr);gap:0;padding:16px!important;border-left:1px solid #e8eef2!important;background:#fff!important;box-shadow:0 5px 18px #293f5508!important}html.rj-android .content .lead-card-mine .lead-card-mine-head{align-items:flex-start;padding-bottom:12px;border-bottom:1px solid #edf1f4}html.rj-android .content .lead-card-mine .lead-card-identity{align-items:flex-start;flex-direction:column;gap:8px}html.rj-android .content .lead-card-mine .lead-card-guest{padding-left:0;border:0}html.rj-android .content .lead-card-mine .lead-contact-block{display:block;margin-top:12px;padding:0;background:transparent;border:0}html.rj-android .content .lead-card-mine .lead-contact-heading{margin:0 0 9px}html.rj-android .content .lead-card-mine .lead-contact-grid{display:grid;grid-template-columns:1fr;gap:7px}html.rj-android .content .lead-card-mine .lead-contact-item{min-height:56px;padding:9px 11px;background:#f8fafc;border:1px solid #edf1f4}}
/* 我的客资沿用抢单卡片的单列结构，只补充已公开的联系方式。 */
.lead-mine-list{grid-template-columns:minmax(0,1fr)!important;gap:14px!important}
.content>.card:has(>.lead-mine-list){padding:22px 24px}
.lead-card-mine{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;flex-wrap:wrap;gap:12px 24px!important;padding:20px 24px!important;border:1px solid #e4ebf0!important;border-radius:17px!important;background:#fff!important;box-shadow:0 5px 18px #293f5508!important}
.lead-card-mine-head{display:contents}
.lead-card-mine .lead-card-identity{display:grid!important;grid-template-columns:minmax(0,1fr);align-items:start!important;gap:6px!important;flex:1 1 320px;order:0}
.lead-card-mine .lead-card-shop,.lead-card-mine .lead-card-guest{display:flex;align-items:baseline;gap:6px;padding:0;border:0;min-width:0}
.lead-card-mine .lead-card-shop>span,.lead-card-mine .lead-card-guest>span{color:#53647d;font-size:14px;font-weight:650}
.lead-card-mine .lead-card-shop>strong,.lead-card-mine .lead-card-guest>strong{color:#35445a;font-size:14px;font-weight:500}
.lead-card-mine .lead-contact-block{order:2;flex:0 0 100%;display:block;margin:0;padding:0;border:0;background:transparent}
.lead-card-mine .lead-contact-grid{display:flex;flex-wrap:wrap;gap:8px}
.lead-card-mine .lead-contact-item{flex:0 1 auto;min-height:42px;padding:6px 10px;background:#f7f9fb;border:1px solid #edf1f4;border-radius:10px}
.lead-card-mine .lead-contact-label{font-size:11px;color:#718496}
.lead-card-mine .lead-phone-action{padding:3px 6px;background:transparent;font-size:13px}
.lead-card-mine .lead-contact-text{font-size:13px}
.lead-card-mine .lead-detail-button{order:1;align-self:flex-start}
@media(max-width:768px){.content>.card:has(>.lead-mine-list){padding:16px}.lead-card-mine{gap:10px!important;padding:17px 16px!important}.lead-card-mine .lead-card-identity{flex-basis:100%}.lead-card-mine .lead-contact-block{flex-basis:100%}.lead-card-mine .lead-contact-grid{display:flex;flex-direction:column;align-items:stretch}.lead-card-mine .lead-contact-item{width:100%;min-height:42px}.lead-card-mine .lead-detail-button{position:absolute;right:16px;top:14px}.lead-card-mine-head{position:static}}
html.rj-nav-enter .content{animation:none;transform:none}html.rj-nav-leave .content{opacity:.9;transition:opacity .07s}
@keyframes workspace-enter{from{opacity:0;transform:translateY(7px);filter:blur(2px)}to{opacity:1;transform:none;filter:none}}
.content>.card,.content>.grid,.content>.page-title,.workspace-intro,.workspace-canvas>section,.workspace-canvas>.card,.workspace-canvas>.grid{animation:workspace-enter .48s cubic-bezier(.22,.75,.25,1) both}.content>:nth-child(2),.workspace-canvas>:nth-child(2){animation-delay:.045s}.content>:nth-child(3),.workspace-canvas>:nth-child(3){animation-delay:.09s}.workspace-canvas>:nth-child(4){animation-delay:.13s}.workspace-canvas>:nth-child(5){animation-delay:.17s}.workspace-canvas>:nth-child(6){animation-delay:.21s}
@keyframes workspace-dialog{from{opacity:0;transform:translateY(5px) scale(.98)}to{opacity:1;transform:none}}.modal-overlay.visible .modal,dialog[open]{animation:workspace-dialog .22s cubic-bezier(.22,.75,.25,1) both}
@media(min-width:769px) and (max-width:1180px){.workspace-art{right:5px;transform:scale(.78)}.dash-welcome-copy{max-width:70%}.dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-quick{grid-template-columns:1fr}.workspace-canvas{grid-template-columns:1fr 1fr}.workspace-focus{grid-column:span 2;height:155px}.workspace-focus strong{font-size:40px}.dashboard-stats{grid-column:span 2}.dashboard-live-leads{grid-column:span 2;grid-row:auto}.dashboard-leads-list{display:grid;grid-template-columns:1fr 1fr}}
@media(max-width:768px){.sidebar{width:225px}.main{margin-left:0}.content{padding:22px 16px 96px}.topbar{height:60px}.workspace-canvas{grid-template-columns:1fr}.workspace-canvas>*{grid-column:1!important;grid-row:auto!important}.dashboard-stats{grid-template-columns:1fr 1fr;gap:10px}.dashboard-stats .stat-card{padding:15px;gap:10px}.stat-icon{width:32px;height:32px}.stat-card .value{font-size:25px}.workspace-intro h1{font-size:25px}.dash-welcome{padding:24px;min-height:235px}.dash-welcome h1{font-size:22px}.workspace-art{right:-15px;transform:scale(.7)}.dash-primary-link{left:24px}.workspace-focus{height:180px}.dashboard-quick{grid-template-columns:1fr}.workspace-canvas>.card{padding:20px}.dashboard-leads-list{max-height:450px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(max-width:768px){.dash-welcome{display:block;text-align:left;height:250px}.dash-welcome-copy{max-width:62%;margin:0;padding:0}.dash-welcome .dash-eyebrow{letter-spacing:1px;font-size:8px;line-height:1.6}.dash-welcome h1{font-size:21px;line-height:1.5;margin:15px 0 10px}.dash-welcome p{font-size:11px;line-height:1.8}.workspace-art{right:-22px;top:40px;transform:scale(.58);transform-origin:center}.workspace-focus{height:auto;min-height:210px;gap:12px}.workspace-focus p{margin:0}.workspace-focus a{display:block}.dashboard-recent table{width:100%;min-width:0}.dashboard-recent th,.dashboard-recent td{padding:12px 8px}}
.sidebar-section-title{font-size:9px;letter-spacing:2px;color:#91a2b0;padding:25px 25px 8px}.nav-icon{width:17px;height:17px;flex:0 0 17px;stroke:currentColor;stroke-width:1.5;fill:none;stroke-linecap:round;stroke-linejoin:round}.nav a{gap:12px}.group-caption{display:flex;align-items:center;gap:12px}.sidebar .nav{padding-top:0}.sidebar-note{margin:20px 18px 22px;padding:18px 14px;background:#f3f8fb;border-radius:13px;color:#7e94a6;font-size:11px;line-height:1.8;flex-shrink:0}.sidebar-note strong{display:block;color:#3b5366;font-size:12px;margin-bottom:6px}.sidebar-note p{margin:0}.sidebar{overflow-y:auto}.nav-group .group-label{color:#81909e}.nav .submenu a{gap:10px}.nav .submenu .nav-icon{width:15px;height:15px;flex-basis:15px}
/* One transition per navigation: never hide large panels before first paint. */
.content>.card,.content>.grid,.content>.page-title,.workspace-intro,.workspace-canvas>section,.workspace-canvas>.card,.workspace-canvas>.grid{animation:none}
html.rj-nav-enter .content,html.rj-nav-leave .content{opacity:1;animation:none;transform:none;transition:none}
@view-transition{navigation:auto}
:root{view-transition-name:root}.sidebar{view-transition-name:workspace-sidebar}.topbar{view-transition-name:workspace-topbar}.mtabs{view-transition-name:workspace-tabs}
::view-transition-group(*){animation-duration:.28s;animation-timing-function:cubic-bezier(.22,.75,.25,1)}
::view-transition-old(root){animation:workspace-page-out .28s ease both}
::view-transition-new(root){animation:workspace-page-in .28s ease both}
::view-transition-old(workspace-sidebar),::view-transition-old(workspace-topbar),::view-transition-old(workspace-tabs){animation:none;opacity:0}
::view-transition-new(workspace-sidebar),::view-transition-new(workspace-topbar),::view-transition-new(workspace-tabs){animation:none;opacity:1}
@keyframes workspace-page-out{from{opacity:1}to{opacity:0}}
@keyframes workspace-page-in{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){@view-transition{navigation:none}::view-transition-group(*){animation:none!important}}
/* Analysis: keep every column within the card at intermediate widths. */
.dw .g2{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)}
.dw .sec{min-width:0}.dw .sec table{width:100%;min-width:0;table-layout:fixed}
.dw .sec th:first-child,.dw .sec td:first-child{width:42px!important}
.dw .sec th:last-child,.dw .sec td:last-child{width:70px;white-space:nowrap}
.dw .rt-name{min-width:0}.dw .rt-name>span{width:100%;max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.65}
.dw .dtab{background:#edf3f7;border-color:#e0e9ef;gap:3px}.dw .dtab a{color:#526b80;white-space:nowrap;padding:8px 14px}.dw .dtab a.on{color:#fff!important;background:#2c8cc7!important;box-shadow:0 2px 6px #2c8cc71a}.dw .dtab a.on:hover{color:#fff!important;background:#2479af!important}.dw .dh-r{max-width:100%}
@media(max-width:1000px){.dw .g2{grid-template-columns:minmax(0,1fr)}}
/* Live claims remain visible across every workspace page. */
#bellLeadsSection.live-lead-popup{position:fixed;top:88px;right:22px;width:310px;max-height:min(520px,calc(100dvh - 120px));z-index:1050;padding:0;display:flex;flex-direction:column;pointer-events:none}
#bellLeadsSection.live-lead-popup[hidden]{display:none!important}.live-lead-popup-heading{display:flex;justify-content:space-between;padding:0 5px 9px;color:#657f93;font-size:11px;text-shadow:0 1px white}.live-lead-popup-heading span{background:#e6f4fe;color:#2789c4;border-radius:12px;padding:0 7px}
#bellLeadsSection #leadToasts{overflow-y:auto;overscroll-behavior:contain;max-height:inherit;display:flex;flex-direction:column;gap:10px;padding:3px 4px 12px;pointer-events:auto}
#leadToasts .lead-toast{border:1px solid #e5edf3!important;border-left:1px solid #e5edf3!important;border-radius:16px;background:#ffffffed!important;backdrop-filter:blur(18px);box-shadow:0 8px 24px #314b6515;padding:15px 16px;flex-shrink:0;animation:workspace-dialog .22s ease both}.lead-toast .meta{color:#8194a5}.lead-toast .row button{background:#2c8cc7;border-radius:9px}
.rj-android #bellLeadsSection.live-lead-popup{display:none!important}
@media(max-width:768px){#bellLeadsSection.live-lead-popup{top:74px;right:12px;width:min(300px,calc(100vw - 24px));max-height:min(420px,calc(100dvh - 160px))}}
@media(prefers-reduced-motion:reduce){#leadToasts .lead-toast{animation:none!important}}
/* Shared responsive boundary for all data tables. */
.content,.content>.card,.content>.grid,.content>div{min-width:0;max-width:100%}.responsive-table-scroll{width:100%;max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#c6dbe8 transparent}
.responsive-table-scroll>table{display:table;width:100%;min-width:var(--table-min,0px);overflow:visible;table-layout:auto}.responsive-table-scroll th{white-space:nowrap}.responsive-table-scroll td{word-break:normal;overflow-wrap:break-word}.responsive-table-scroll td .tag,.responsive-table-scroll td button,.responsive-table-scroll td select{white-space:nowrap;flex-shrink:0}.responsive-table-scroll td:has(form){min-width:190px}.responsive-table-scroll td form{vertical-align:middle}.responsive-table-scroll td form button,.responsive-table-scroll td form select{margin:3px 2px;min-height:32px}
.responsive-table-scroll>.users-table{min-width:1080px}.users-table td:nth-child(3),.users-table td:nth-child(4),.users-table td:nth-child(5),.users-table td:nth-child(6){white-space:nowrap}.users-table td:last-child{min-width:275px;width:275px}.users-table td:first-child,.users-table td:nth-child(2){min-width:130px}.users-table td:nth-child(7){min-width:145px}
.dw .responsive-table-scroll table{min-width:0;table-layout:fixed}.responsive-table-scroll>.task-record-table{min-width:1540px;table-layout:fixed}.responsive-table-scroll>.contract-record-table{min-width:1080px;table-layout:fixed}
@media(max-width:768px){.topbar .right{gap:10px}.topbar .role-txt{display:none}.content .card{max-width:100%;min-width:0}.responsive-table-scroll{padding-bottom:5px}}
/* Closed submenus must not reserve padding, borders or margins. */
.sidebar .nav>a,.sidebar .nav-group>.group-label{min-height:43px;height:43px;margin:3px 0;padding:10px 13px;box-sizing:border-box}
.sidebar .nav-group{margin:0;padding:0}
.sidebar .nav-group:not(.open)>.submenu{max-height:0!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;border-width:0!important;overflow:hidden;visibility:hidden;opacity:0}
.sidebar .nav-group.open>.submenu{height:auto;max-height:240px;margin:3px 0 6px;padding:5px;border:1px solid #e8eef2;visibility:visible;opacity:1}
/* The live stack has no outer panel; only individual cards are surfaced. */
#bellLeadsSection.live-lead-popup,#bellLeadsSection #leadToasts{background:transparent!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;outline:none}
#bellLeadsSection #leadToasts{border-radius:18px;padding:5px 8px 20px;scrollbar-width:none;mask-image:linear-gradient(to bottom,#000 calc(100% - 20px),transparent);-webkit-mask-image:linear-gradient(to bottom,#000 calc(100% - 20px),transparent)}
#bellLeadsSection #leadToasts::-webkit-scrollbar{display:none}
.workspace-canvas>.dashboard-quick-card,.workspace-canvas>.dashboard-recent{grid-column:1 / -1;grid-row:auto;width:100%}
/* Sidebar signature sits near the bottom with breathing room. */
.sidebar{display:flex;flex-direction:column}
.sidebar .nav{flex-shrink:0}
.sidebar .sidebar-note{margin: auto 18px 28px;position:relative;flex-shrink:0}
.sidebar .sidebar-note::before{content:'';display:block;position:absolute;bottom:100%;left:0;width:1px;height:28px;pointer-events:none}
.sidebar .nav{margin-bottom:28px}

/* Responsive presentation: preserve controls and business behavior. */
*,*::before,*::after{box-sizing:border-box}
.main{min-width:0}.content{padding:clamp(18px,2.6vw,32px);padding-bottom:48px}
.content :is(.card,.grid,.row,.sec,.group-card,.stat-card,.quick-copy,.stat-copy){min-width:0}
.workspace-canvas{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.05fr)}
.topbar{gap:12px;padding-inline:clamp(16px,2.5vw,32px)}.topbar .right{min-width:0;flex-wrap:wrap;justify-content:flex-end;gap:12px}.topbar .right a{white-space:nowrap}
.content input:not([type=checkbox]):not([type=radio]),.content select,.content textarea{max-width:100%;min-width:0}
.content :is(.row,.section-heading,.dh,.dh-r){flex-wrap:wrap;gap:12px}
.content :is(.quick,.dashboard-quick){grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr))}
.dashboard-stats .stat-card{padding:clamp(14px,1.8vw,22px)}.stat-split{flex-wrap:wrap}
.modal,dialog{max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow:auto}
.sidebar{max-height:100dvh;scrollbar-width:thin}.sidebar .brand{flex-shrink:0}
.responsive-table-scroll{container-type:inline-size}
.responsive-table-scroll>table{min-width:0;table-layout:auto}
.responsive-table-scroll td:has(form){min-width:0}
.responsive-table-scroll>.users-table{min-width:0;table-layout:auto}
.users-table td:first-child,.users-table td:nth-child(2),.users-table td:nth-child(7){min-width:0}
.users-table td:last-child{min-width:0;width:auto}
.users-table td:nth-child(3),.users-table td:nth-child(4),.users-table td:nth-child(5),.users-table td:nth-child(6){white-space:normal}
.users-table td select{width:100%;max-width:220px}
.responsive-table-scroll>.task-record-table,.responsive-table-scroll>.contract-record-table{min-width:0;table-layout:auto}
.responsive-table-scroll :is(th,td){overflow-wrap:anywhere}
.shop-admin{width:100%;min-width:0}.shop-admin .shop-panel{padding:clamp(16px,2vw,24px)}
.shop-admin .shop-table-wrap{overflow:visible;min-width:0}
.shop-admin .shop-table{min-width:0;table-layout:fixed}
.shop-admin .shop-table :is(th,td){padding:12px 8px}
.shop-admin .shop-table th:nth-child(1){width:9%}.shop-admin .shop-table th:nth-child(2){width:24%}.shop-admin .shop-table th:nth-child(3){width:17%}.shop-admin .shop-table th:nth-child(4){width:27%}.shop-admin .shop-table th:nth-child(5){width:23%}
.shop-admin .shop-name-cell{min-width:0;gap:8px}.shop-admin .shop-name-cell b{overflow-wrap:anywhere}.shop-admin .shop-mark{flex-shrink:0}
.shop-admin .shop-table td:last-child{white-space:normal}.shop-admin .shop-delete-btn{margin-left:0}
.shop-admin .shop-add{min-width:0;flex:1 1 280px;max-width:none}.shop-admin .shop-add input{width:0;min-width:0;flex:1}.shop-admin .shop-add button{flex-shrink:0;min-height:42px}
.shop-admin .shop-search{flex:1 1 260px;min-width:0}.shop-admin .shop-search input{width:0;flex:1;min-width:0}.shop-admin .shop-search span{white-space:nowrap}
@container (max-width:740px){
 .adaptive-table>table:not(.shop-table){display:block;width:100%;min-width:0!important}
 .adaptive-table>table:not(.shop-table) thead{display:none}
 .adaptive-table>table:not(.shop-table)>tbody{display:block}
 .adaptive-table>table:not(.shop-table) tr:has(th){display:none}
 .adaptive-table>table:not(.shop-table) tr:has(td){display:block;margin:0 0 14px;border:1px solid #e8eef2;border-radius:12px;padding:8px;background:#fff}
 .adaptive-table>table:not(.shop-table) tr[hidden]{display:none!important}
 .adaptive-table>table:not(.shop-table) td{display:block;width:auto!important;min-width:0!important;max-width:none!important;white-space:normal!important;padding:9px 10px;border:0}
 .adaptive-table>table:not(.shop-table) td[data-column-label]::before{content:attr(data-column-label);display:block;font-size:11px;color:#81909e;margin-bottom:6px}
}
@container (max-width:560px){
 .adaptive-table>.shop-table{display:block;min-width:0!important;width:100%}
 .adaptive-table>.shop-table thead{display:none}.adaptive-table>.shop-table tbody{display:block}
 .adaptive-table>.shop-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;margin-bottom:12px;border:1px solid #e8eef2;border-radius:12px;padding:12px}
 .adaptive-table>.shop-table tr[hidden]{display:none!important}
 .adaptive-table>.shop-table td{display:block;width:auto!important;min-width:0!important;padding:4px;border:0;overflow-wrap:anywhere}
 .adaptive-table>.shop-table td:nth-child(2){grid-column:1 / -1;grid-row:1}
 .adaptive-table>.shop-table td:last-child{grid-column:1 / -1}
 .adaptive-table>.shop-table td[data-column-label]::before{content:attr(data-column-label);display:block;font-size:11px;color:#81909e;margin-bottom:5px}
}
@media(min-width:769px) and (max-width:1050px){.sidebar{width:200px}.main{margin-left:200px}.content{padding:22px}.topbar .role-txt{display:none}.workspace-canvas{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace-focus{grid-column:1 / -1}.dashboard-stats{grid-column:1 / -1;grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:768px){.main{margin-left:0}.content{padding:20px 14px 96px}.topbar .right{gap:8px}.workspace-canvas{grid-template-columns:minmax(0,1fr)}.sidebar{width:min(225px,85vw)}.dw .dh-r{width:100%}.dw .dtab{display:flex;flex-wrap:wrap}.shop-admin .shop-intro{align-items:flex-start;flex-wrap:wrap}.bottom-bar{left:0;max-width:100%;height:auto;min-height:64px;flex-wrap:wrap;padding:12px}}
@media(max-width:420px){.dashboard-stats{grid-template-columns:minmax(0,1fr)}.workspace-art{opacity:.55;right:-35px}.dash-welcome-copy{max-width:78%}.workspace-intro h1{font-size:24px}.topbar .right{font-size:12px}}

/* Dense records switch layout before text becomes cramped. */
@container (max-width:1100px){
 .adaptive-table>table:is(.users-table,.task-record-table,.contract-record-table){display:block;width:100%;min-width:0!important}
 .adaptive-table>table:is(.users-table,.task-record-table,.contract-record-table) thead{display:none}
 .adaptive-table>table:is(.users-table,.task-record-table,.contract-record-table)>tbody{display:block}
 .adaptive-table>table:is(.users-table,.task-record-table,.contract-record-table) tr:has(th){display:none}
 .adaptive-table>table:is(.users-table,.task-record-table,.contract-record-table) tr:has(td){display:block;margin:0 0 14px;border:1px solid #e8eef2;border-radius:12px;padding:8px;background:#fff}
 .adaptive-table>table:is(.users-table,.task-record-table,.contract-record-table) tr[hidden]{display:none!important}
 .adaptive-table>table:is(.users-table,.task-record-table,.contract-record-table) td{display:block;width:auto!important;min-width:0!important;max-width:none!important;white-space:normal!important;padding:9px 10px;border:0}
 .adaptive-table>table:is(.users-table,.task-record-table,.contract-record-table) td[data-column-label]::before{content:attr(data-column-label);display:block;font-size:11px;color:#81909e;margin-bottom:6px}
}

/* Independent shop service switches. */
.shop-service-switch{display:inline-flex;position:relative;align-items:center;width:38px;height:23px;cursor:pointer;vertical-align:middle}
.shop-service-switch input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;z-index:1}
.shop-service-switch span{width:38px;height:23px;background:#e3e7eb;border-radius:20px;box-shadow:inset 0 1px 3px #0001;transition:background .2s}
.shop-service-switch span:before{content:'';display:block;width:19px;height:19px;margin:2px;background:white;border-radius:50%;box-shadow:0 1px 3px #0002;transition:transform .2s}
.shop-service-switch input:checked+span{background:#2c8cc7}.shop-service-switch input:checked+span:before{transform:translateX(15px)}
.shop-service-switch input:focus-visible+span{outline:3px solid #56bbfa66;outline-offset:3px}.shop-service-switch input:disabled+span{opacity:.55}
.shop-admin .shop-table th:nth-child(1){width:7%}.shop-admin .shop-table th:nth-child(2){width:20%}.shop-admin .shop-table th:nth-child(3){width:14%}.shop-admin .shop-table th:nth-child(4),.shop-admin .shop-table th:nth-child(5){width:9%}.shop-admin .shop-table th:nth-child(6){width:22%}.shop-admin .shop-table th:nth-child(7){width:19%}
@container (max-width:680px){
 .adaptive-table>.shop-table{display:block;min-width:0!important;width:100%}.adaptive-table>.shop-table thead{display:none}.adaptive-table>.shop-table tbody{display:block}
 .adaptive-table>.shop-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;margin-bottom:12px;border:1px solid #e8eef2;border-radius:12px;padding:12px}
 .adaptive-table>.shop-table tr[hidden]{display:none!important}.adaptive-table>.shop-table td{display:block;width:auto!important;min-width:0!important;padding:4px;border:0;overflow-wrap:anywhere}
 .adaptive-table>.shop-table td:nth-child(2){grid-column:1 / -1;grid-row:1}.adaptive-table>.shop-table td:last-child{grid-column:1 / -1}
 .adaptive-table>.shop-table td[data-column-label]::before{content:attr(data-column-label);display:block;font-size:11px;color:#81909e;margin-bottom:5px}
}

/* Position editor: consistent control sizing and comfortable content width. */
.content:has(.position-heading){max-width:1440px;margin-inline:auto;width:100%}
.position-heading{margin-bottom:24px}.position-heading p,.position-form-help{color:#81909e;font-size:13px;line-height:1.7}
.position-heading a.secondary{padding:10px 16px;border:1px solid #e2eaf0;border-radius:10px;background:#fff;text-decoration:none;white-space:nowrap}
.position-editor{padding:28px!important}.position-editor h2{margin:0 0 8px;font-size:19px}.position-editor form>label{font-size:12px;color:#71819a;display:block;margin-top:24px}
.position-editor input.position-name{height:44px;padding:0 14px;border:1px solid #dce6ee;border-radius:11px;background:#fbfdff;font:14px inherit;width:min(100%,480px);outline:none}
.position-editor input.position-name:focus{border-color:#56bbfa;box-shadow:0 0 0 3px #56bbfa18}
.position-editor .position-checks{grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px;margin:24px 0}
.position-editor .position-check{min-height:54px;padding:14px;border:1px solid #e7edf3;background:#fafcfd;border-radius:11px;font-size:13px;transition:background .18s,border-color .18s}
.position-editor .position-check:has(input:checked){background:#eaf6fe;border-color:#9bd4f4;color:#237da9}
.position-editor .position-check input{appearance:auto;min-width:17px;width:17px;height:17px;margin:0;accent-color:#2c8cc7}
.position-editor form>p:last-of-type{color:#81909e;font-size:12px;line-height:1.8;margin:20px 0}
.position-editor button{min-height:40px;padding:0 20px;border-radius:10px}.position-editor form>a{display:inline-block;margin-left:12px;color:#81909e;text-decoration:none}
.position-table td{padding:16px 12px}.admin-application-state{max-width:640px;margin:30px auto;padding:32px!important}.admin-application-state h1{font-size:24px}.admin-application-state p{color:#81909e;line-height:1.8}
@media(max-width:768px){.position-editor{padding:20px!important}.position-editor .position-checks{grid-template-columns:repeat(auto-fit,minmax(155px,1fr))}}

.users-table td:nth-child(3) select{min-height:40px;min-width:150px;max-width:240px;padding:8px 12px;border:1px solid #dce6ee;border-radius:10px;font-size:13px;background:#fbfdff}

.content .users-table td select{height:40px!important;min-height:40px!important;line-height:normal!important;padding:8px 12px!important;border:1px solid #dce6ee!important;border-radius:10px!important;font-size:13px!important;background:#fbfdff}
.users-table td:last-child fieldset{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.users-table td:last-child form{margin:0}.users-table td:last-child button{min-height:36px!important;margin:0!important;border-radius:9px!important}
.users-table td:last-child .danger{background:#fff3f5;color:#ba5065;border:1px solid #f3dce2;box-shadow:none}
.users-table td{padding:18px 12px!important;vertical-align:middle}.users-table .badge{display:inline-block;padding:7px 10px;border-radius:10px;font-size:12px}
.identity-system-tag{display:inline-block;font-size:11px;margin-left:10px;padding:4px 8px;background:#f1f6f9;color:#80909d;border-radius:7px}
.identity-legacy-action{padding:7px 10px;background:#f8fafb;border:1px solid #e5edf3;border-radius:9px;position:relative}.identity-legacy-action summary{color:#71819a;font-size:12px}.identity-legacy-action[open] form{padding-top:10px}

/* Aligned shop toolbar and controls; presentation only. */
.shop-admin .shop-toolbar{display:grid;grid-template-columns:minmax(280px,.85fr) minmax(260px,1.15fr);align-items:center;gap:16px;margin-bottom:20px}
.shop-admin .shop-add{display:flex;align-items:center;gap:10px;margin:0!important;width:100%;max-width:none;min-width:0}
.shop-admin .shop-search{display:flex;align-items:center;gap:12px;margin:0;width:100%;min-width:0}
.shop-admin .shop-add input,.shop-admin .shop-search input{height:42px!important;min-height:42px!important;margin:0!important;padding:0 13px!important;box-sizing:border-box;line-height:normal;width:0;flex:1;min-width:0;border-radius:10px;font-size:13px}
.shop-admin .shop-add button{height:42px;min-height:42px;padding:0 18px;margin:0;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;line-height:1;flex-shrink:0}
.shop-admin .shop-search span{min-width:48px;text-align:right;font-size:12px;line-height:42px}
.shop-admin .shop-table :is(th,td){vertical-align:middle}
.shop-admin .shop-table td:last-child form{display:inline-flex!important;vertical-align:middle}
.shop-admin .shop-edit-btn,.shop-admin .shop-delete-btn{height:36px!important;min-height:36px!important;margin:0 4px 0 0!important;padding:0 12px!important;vertical-align:middle;line-height:34px;border-radius:9px}
@media(max-width:1050px){.shop-admin .shop-toolbar{grid-template-columns:minmax(0,1fr);gap:12px}.shop-admin .shop-search span{line-height:42px}}

/* Group editor: keep fields readable and search results in the scroll flow. */
.rj-modal .rj-modal-box{height:min(860px,calc(100dvh - 40px))!important;max-height:calc(100dvh - 40px);width:min(100%,1040px)!important}
.rj-modal .rj-modal-box>form{margin:0!important;min-height:0}
.rj-modal .rj-modal-body{gap:0;padding:24px!important;overflow-y:auto;scroll-padding:24px;min-height:0}
.rj-modal .rj-modal-body>.form-row{flex-shrink:0;min-width:0;margin-bottom:20px}
.rj-modal .form-label{font-size:13px;font-weight:600;color:#334155}
.rj-modal input:is(.form-input,.dst-input,.mp-search){font-size:14px!important;color:#24354b!important;-webkit-text-fill-color:#24354b;caret-color:#2c8cc7;box-sizing:border-box;line-height:22px!important;opacity:1}
.rj-modal input.form-input{height:44px!important;min-height:44px!important;padding:10px 13px!important;margin:0!important}
.rj-modal .dst-ms{min-height:46px!important;padding:0!important;background:#fff;border-radius:10px}
.rj-modal input.dst-input{display:block;width:100%!important;height:44px!important;min-height:44px!important;max-height:none!important;padding:10px 13px!important;margin:0!important;border:0!important;background:transparent!important;box-shadow:none!important;border-radius:10px}
.rj-modal .dst-ms:focus-within{border-color:#2c8cc7;box-shadow:0 0 0 3px rgba(44,140,199,.12)}
.rj-modal .dst-dropdown{position:static!important;margin:0!important;border-width:1px 0 0!important;border-radius:0 0 10px 10px!important;max-height:240px!important;box-shadow:none!important;overflow-y:auto}
.rj-modal .dst-item{padding:12px 14px;border-radius:0}
.rj-modal .dst-hint{color:#708298;line-height:1.65;margin-bottom:10px}
.rj-modal .mp-search{height:36px!important;min-height:36px!important;padding:7px 8px!important;border:0!important;box-shadow:none!important;min-width:160px;flex:1}
.rj-modal .rj-modal-foot{position:static!important;flex-shrink:0;padding:16px 24px!important;background:#fff;gap:12px}
.rj-modal .rj-modal-foot button{height:40px;min-width:76px;display:inline-flex;align-items:center;justify-content:center;margin:0}
.rj-modal .dst-disabled::after{position:static;transform:none;display:block;margin:0 12px 10px;width:fit-content}
@media(max-width:700px){.rj-modal .rj-modal-box{height:calc(100dvh - 20px)!important;max-height:calc(100dvh - 20px)}.rj-modal .rj-modal-body{padding:18px!important}.rj-modal .rj-modal-foot{padding:14px 18px!important}}

/* Shared workbench controls: consistent text space without changing widgets. */
.content :is(input:not([type]),input[type=text],input[type=search],input[type=email],input[type=password],input[type=tel],input[type=url],input[type=number],input[type=date],input[type=datetime-local],input[type=time],select):not(.mp-search):not(.dst-input){box-sizing:border-box;min-height:40px!important;height:auto;line-height:1.4!important;padding:8px 12px!important;font-family:inherit;font-size:14px;color:#24354b;vertical-align:middle}
.content :is(input,textarea)::placeholder,.rj-modal :is(input,textarea)::placeholder{color:#8697aa!important;-webkit-text-fill-color:#8697aa!important;opacity:1}
.content select{padding-right:28px!important;text-overflow:ellipsis}
.content textarea{box-sizing:border-box;line-height:1.65;padding:12px 14px;font-family:inherit;font-size:14px;color:#24354b;resize:vertical;max-width:100%}
.content input[type=number]{min-width:72px}
.content input[type=file]{box-sizing:border-box;max-width:100%;color:#52677c;font:14px inherit}
.content input[type=file]::file-selector-button{padding:8px 12px;margin-right:12px;border:1px solid #dce6ee;border-radius:8px;background:#eef7fd;color:#257eaf;cursor:pointer}
.content :is(.form-row,.cfield){min-width:0}
.content :is(.form-row,.cfield)>label{line-height:1.5}
.content :is(.filter-bar,.filters,.toolbar){gap:12px;align-items:center;flex-wrap:wrap}
.rj-modal .mp-list{position:static!important;flex:0 0 100%;width:100%;max-height:200px;box-sizing:border-box;margin-top:4px;box-shadow:none!important}
.rj-modal .mp-tag{max-width:100%;overflow-wrap:anywhere;height:auto;min-height:30px}
.rj-modal .mp-search{max-width:100%;width:160px}
.rj-modal .rj-modal-body .form-row:last-child{padding-bottom:12px}
@media(max-width:600px){.content :is(input:not([type]),input[type=text],input[type=search],input[type=email],input[type=password],input[type=tel],input[type=url],input[type=number],input[type=date],select,textarea){font-size:16px!important}.content .card{max-width:100%;box-sizing:border-box}.content :is(.filter-bar,.filters,.toolbar)>*{max-width:100%}}
