:root{--sidebar-width:286px;--header-height:76px;--register-green:#06a951}body{color:#263449}.sidebar{width:var(--sidebar-width);height:100dvh;max-height:100dvh;display:flex;flex-direction:column;padding:24px 18px 16px;overflow:hidden;gap:0}.sidebar .brand{flex:none;margin:0 0 24px;justify-content:flex-start;gap:14px}.brand img{width:126px}.brand span{white-space:nowrap}.register-button{background:var(--register-green)!important;border-color:var(--register-green)!important;box-shadow:none!important;color:#fff;min-height:48px;width:100%;justify-content:center;flex:none;font-size:15px}.register-button:hover{background:#008e43!important}.scope-switch{display:flex;flex:none;background:#f1f3f5;border-radius:10px;padding:4px;margin:14px 0 20px;gap:2px}.scope-switch button{flex:1;min-width:0;padding:9px 4px;border:0;background:none;border-radius:7px;font-size:13px;color:#68778b;white-space:nowrap}.scope-switch button.selected{background:#fff;color:#25364a;box-shadow:0 1px 4px #18283f12}.sidebar-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding-bottom:18px}#groups{height:auto!important;max-height:none!important;overflow:visible!important;flex:none!important}.sidebar .nav{min-height:46px;width:100%;font-size:14px;padding:11px 12px;gap:12px;border-radius:9px}.nav .group-name{flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:0}.nav .group-name+span{margin:0}.sidebar .nav-label{margin:18px 12px 10px}.sidebar .tools-label{margin-top:22px}.sidebar [data-action="mine"]{display:none}.sidebar .side-bottom{position:static;flex:none;margin:0;padding:12px 0 0;border-top:1px solid #e4e9ee}.capacity{padding:0 12px 10px;font-size:12px}.sidebar .user{width:100%;display:flex;flex-direction:row-reverse;justify-content:flex-start;gap:12px;border:0;background:transparent;padding:10px}.sidebar .user>div{flex:1;text-align:left;min-width:0}.sidebar .user b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.app{margin-left:var(--sidebar-width)!important;padding-top:var(--header-height)}.app>header{position:fixed!important;top:0;left:var(--sidebar-width);right:0;width:auto!important;height:var(--header-height);padding:14px 26px;display:flex;align-items:center;justify-content:space-between;gap:24px;z-index:300;background:#fff;border-bottom:1px solid #e2e7ed}.crumb{flex:none;min-width:0;font-size:14px;gap:12px}.crumb .count-pill{display:inline-flex!important;min-width:28px;justify-content:center;white-space:nowrap;font-size:12px}.header-search{display:flex;flex:0 1 460px;width:460px;min-width:180px;margin:0;height:44px}.header-search input{font-size:15px;width:100%}.app #listView{padding:22px 26px 30px;max-width:none}.library{border-radius:12px;overflow:hidden}.library-tools{background:#fff}.library-head{display:none}.filterbar{display:flex;gap:12px;padding:16px 18px}.filterbar select{min-width:140px;font-size:14px;min-height:42px}.result-line{padding:0 18px 12px;color:#53657b}.library .table-scroll{max-height:calc(100dvh - 240px);overflow:auto}.library table{min-width:1120px}.library thead th{position:sticky;top:0;z-index:4;background:#f5f7fa;color:#4f6076;font-size:13px}.library .real-thumb,.library .empty-thumb{width:116px;height:76px}.library .person-info b{font-size:17px;color:#24364d}.person-info small,.person-role{font-size:14px;color:#52637a}.library input[type="checkbox"],.checkbox-label input{appearance:none;-webkit-appearance:none;width:20px;height:20px;border:1.5px solid #bac5d1;border-radius:6px;background:white;display:inline-grid;place-content:center;cursor:pointer;vertical-align:middle;flex:none}.library input[type="checkbox"]:checked,.checkbox-label input:checked{background:#263d50;border-color:#263d50}.library input[type="checkbox"]:checked:after,.checkbox-label input:checked:after{content:'';width:9px;height:5px;border:solid white;border-width:0 0 2px 2px;transform:translateY(-1px) rotate(-45deg)}.library input[type="checkbox"]:indeterminate:after{content:'';width:10px;height:2px;background:#263d50}.library input[type="checkbox"]:focus-visible{outline:3px solid #acd3bc;outline-offset:3px}.selected-row{background:#f0f8f3!important}.load-more{text-align:center;display:flex;align-items:center;justify-content:center;gap:16px;padding:16px;font-size:13px;color:#52647a}.load-more button{font-size:13px}.read-state{display:inline-block;font-size:11px;background:#fff3d8;color:#866423;border-radius:5px;padding:1px 6px;margin-top:4px}.read-state.error{background:#fff0f0;color:#a73f42}.read-state.processing{background:#e9f1fb;color:#456b99}.contact-drawer{top:var(--header-height)!important;z-index:250;width:min(510px,48vw);bottom:0}.app.has-detail>header{right:0!important;width:auto!important}.app.has-detail #listView{margin-right:min(510px,48vw)}.drawer-heading{flex:none;padding:20px;min-height:104px;position:relative!important;top:auto!important}.drawer-content{padding:18px 18px 100px;scrollbar-gutter:auto}.drawer-heading h1{font-size:23px}.contact-drawer .info-label{font-size:13px}.contact-drawer .info-value{font-size:15px}.confirm-review{width:100%;background:#edf7f1;border-color:#cce5d5;color:#246b42;min-height:44px;margin:10px 0}.invitation-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid #e6eaf0}.invitation-row div{min-width:0;overflow-wrap:anywhere}.invitation-row small{display:block;color:#617187;font-size:12px}.invitation-row button{flex:none}.mobile-bottom .primary{background:var(--register-green)!important;border-color:var(--register-green)!important}.app footer{padding:12px 0 0}#tableSentinel td{padding:0!important;height:1px;border:0}#listView .empty-state p{line-height:1.8}
@media(max-width:1100px) and (min-width:741px){:root{--sidebar-width:260px}.app>header{padding:12px 18px;gap:12px}.crumb{font-size:12px;gap:8px}.header-search{flex-basis:310px}.app.has-detail #listView{margin-right:0}.contact-drawer{width:480px;box-shadow:-20px 0 80px #17243e20}}
@media(max-width:740px){:root{--header-height:112px;--sidebar-width:286px}.app{margin-left:0!important;padding-top:0}.app>header{left:0;height:var(--header-height);padding:4px 14px 10px;gap:4px;display:grid;grid-template-columns:1fr;grid-template-rows:46px 46px;z-index:300}.app>header .crumb{font-size:0;display:flex;gap:10px;max-width:100%}.app>header #crumb{font-size:17px;max-width:calc(100vw - 125px)}.header-search{width:100%;height:44px;min-width:0;max-width:none;flex:none;border-radius:9px;grid-row:2}.header-search input{font-size:16px;height:42px}.app #listView{padding:112px 0 calc(82px + env(safe-area-inset-bottom))!important;margin-right:0!important}.library{overflow:visible;border-radius:0}.library-tools{top:112px;position:sticky;z-index:150}.filterbar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:9px 12px!important;gap:7px}.filterbar select{min-width:0;min-height:38px;height:38px;font-size:12px;padding:6px}.result-line{font-size:12px;padding:0 14px 8px}.library .table-scroll{overflow:visible;max-height:none}.library table{min-width:0}.library tbody tr[data-contact]{min-height:118px;height:118px;grid-template-columns:22px minmax(0,1fr);padding:10px 14px;gap:12px;border-bottom:1px solid #edf0f4}.library .person-cell{height:96px;gap:12px}.library .person-info b{font-size:17px;line-height:1.6}.library .person-info small,.library .person-role{font-size:14px;line-height:1.7}.library .person-cell .real-thumb,.library .person-cell .empty-thumb{width:94px;height:62px}.library .check-col{width:22px}.library .date-group td{font-size:13px;padding:9px 14px}.load-more{padding-bottom:24px}.sidebar,.sidebar.mobile-open{position:fixed;top:0;bottom:0;left:0;width:min(310px,calc(100vw - 48px));max-height:100dvh;height:100dvh;padding:20px 18px max(14px,env(safe-area-inset-bottom));z-index:650;overflow:hidden!important;display:flex!important}.sidebar:not(.mobile-open){transform:translateX(-105%);visibility:hidden;pointer-events:none}.sidebar.mobile-open{transform:none;visibility:visible}.sidebar .brand{margin-bottom:20px}.sidebar .sidebar-scroll{overflow:auto;scrollbar-width:none;min-height:0}.sidebar .sidebar-scroll::-webkit-scrollbar{display:none}.sidebar #groups{overflow:visible!important;max-height:none!important;min-height:0!important}.nav-scrim{left:0!important;right:0;width:100%!important;z-index:600}.sidebar .side-bottom{padding-top:10px}.sidebar .scope-switch{margin-bottom:6px}.sidebar .nav-label{margin-top:16px}.sidebar .user{padding:8px}.mobile-bottom{z-index:400;min-height:66px;padding:9px 74px calc(9px + env(safe-area-inset-bottom)) 12px}.mobile-bottom>button{font-size:14px}.chat-toggle{z-index:410}.detail-open .app>header{display:none}.contact-drawer{top:0!important;left:0;right:0;width:100%;height:100dvh;z-index:500;border:0}.drawer-heading{padding:14px 14px 12px;min-height:92px;box-shadow:0 2px 10px #18263c08}.drawer-heading .eyebrow{display:none}.drawer-heading h1{font-size:21px;margin:0}.drawer-heading p{font-size:13px;margin:1px 0}.drawer-heading .drawer-controls{gap:5px}.drawer-heading .drawer-controls button{min-height:44px}.drawer-content{padding:14px 12px calc(78px + env(safe-area-inset-bottom));overflow:auto;-webkit-overflow-scrolling:touch}.contact-drawer .panel{padding:16px 14px;margin-bottom:14px;border-radius:12px}.contact-drawer .info-row{grid-template-columns:74px minmax(0,1fr) 36px;gap:8px}.contact-drawer .info-value{font-size:15px}.contact-drawer .card-stage{min-height:140px}.contact-drawer .card-stage img{max-height:300px}.bulk-bar{max-height:none;overflow:visible;padding:10px 12px}.bulk-bar>div{overflow-x:auto;scrollbar-width:none;gap:7px;padding:5px 0}.bulk-bar button{font-size:12px;min-height:38px}.ai-chat{z-index:800}html{scroll-padding-top:195px}dialog[open]{max-height:calc(100dvh - 16px)}#editor[open]{width:calc(100vw - 12px);margin:auto;padding:16px}#editor .dialog-top{position:sticky;top:-16px;background:#fff;z-index:3;padding:12px 0;margin:0}#editor .dialog-foot{position:sticky;bottom:-16px;padding:12px 0 max(12px,env(safe-area-inset-bottom));background:#fff;z-index:3}#editor input,#editor textarea,#editor select{font-size:16px}#actionDialog .dialog-top{position:sticky;top:-20px;background:#fff;z-index:3}.photo-controls button{flex:1}.contact-drawer .contact-actions{display:grid;grid-template-columns:1fr 1fr}.scan-items{grid-template-columns:1fr}}
.nav .group-name{margin-left:0!important}.nav .dot{background:#89aa99;flex:none}@media(max-width:740px){body:has(.sidebar.mobile-open){overflow:hidden}.nav-scrim{left:min(310px,calc(100vw - 48px))!important;width:calc(100vw - min(310px,calc(100vw - 48px)))!important;right:0}}
/* r21: a single width calculation for the list and the fixed detail pane. */
:root{--detail-width:510px}.app.has-detail{margin-right:0!important}.app #listView{width:auto!important;max-width:none!important;padding:0!important;margin:0!important}.app.has-detail #listView{margin-right:var(--detail-width)!important}.library{border:0;border-radius:0!important;box-shadow:none}.library-tools>.filterbar,.library-tools>.result-line,.load-more,#listView>footer{display:none!important}.library .table-scroll{height:calc(100dvh - var(--header-height));max-height:calc(100dvh - var(--header-height));width:100%;overflow-y:auto;overflow-x:hidden}.library table{width:100%;min-width:0!important;table-layout:fixed}.library th:nth-child(1){width:42px}.library th:nth-child(2){width:34%}.library th:nth-child(3){width:29%}.library th:nth-child(4){width:10%}.library th:nth-child(5){width:11%}.library th:nth-child(6){width:auto}.library th:nth-child(7){width:22px}.library td{padding:12px 10px;min-width:0;white-space:normal;overflow-wrap:anywhere}.library .person-cell{gap:14px;min-width:0}.library .real-thumb,.library .empty-thumb{width:110px;height:72px;max-width:38%;flex:none}.library .tag{max-width:100%;white-space:normal;overflow-wrap:anywhere}.app.has-detail .library th:nth-child(2){width:50%}.app.has-detail .library th:nth-child(3){width:auto}.app.has-detail .library th:nth-child(4),.app.has-detail .library th:nth-child(5),.app.has-detail .library th:nth-child(6),.app.has-detail .library .industry-cell,.app.has-detail .library .group-cell,.app.has-detail .library .owner-cell{display:none}.app.has-detail .person-cell{gap:10px}.app.has-detail .real-thumb{width:90px;height:62px}.contact-drawer{width:var(--detail-width)!important;max-width:none}.library thead th{height:48px;padding:10px}.library .date-group td{padding:9px 18px}.bulk-bar{margin:0!important;border-radius:0}.filter-toggle{flex:none;width:44px;height:44px;margin-left:auto;padding:10px}.filter-toggle svg{width:24px;height:24px}.filter-toggle.is-active{color:#087945;background:#e9f6ee;border-color:#91c4a5}.app>header{gap:12px;padding:12px 20px}.header-search{margin:0}.sidebar .nav[hidden]{display:none!important}.sidebar [data-action="trash"],.sidebar .tools-label,.sidebar-scroll>[data-action="settings"]{display:none!important}.side-bottom{position:relative!important;padding-right:44px!important}.profile-settings{position:absolute;right:0;bottom:10px;width:40px;height:42px}.sidebar .user{gap:9px;padding-left:4px}.sidebar .user .avatar{flex:none}.group-confirm{flex-basis:100%;padding:8px 0;line-height:1.7}.invitation-row:has(.group-confirm){flex-wrap:wrap}.group-confirm button{margin-right:8px}#filterDialog{width:min(420px,calc(100vw - 24px));padding:22px;border:1px solid #dce2eb;border-radius:14px}#filterDialog::backdrop{background:#17243c55}#filterFields{display:grid;gap:18px;padding:10px 0 22px}#filterFields label{display:grid;gap:8px;font-size:14px;color:#43536a}#filterFields select{width:100%;min-height:46px;font-size:16px}#filterDialog .dialog-foot{justify-content:space-between}.camera-fab{display:none}.app.has-detail .table-scroll{overflow-x:hidden}.drawer-content{overflow-x:hidden}.drawer-heading{min-height:94px}
@media(min-width:741px) and (max-width:1200px){:root{--detail-width:440px}.app.has-detail #listView{margin-right:0!important}.app.has-detail .contact-drawer{box-shadow:-14px 0 50px #17243c22}.header-search{flex-basis:320px}.app.has-detail .library th:nth-child(4),.app.has-detail .library th:nth-child(5),.app.has-detail .library th:nth-child(6),.app.has-detail .library .industry-cell,.app.has-detail .library .group-cell,.app.has-detail .library .owner-cell{display:table-cell}.library .real-thumb{width:80px;height:56px}}
@media(max-width:740px){.app>header{grid-template-columns:minmax(0,1fr) 44px;grid-template-rows:46px 46px;padding:4px 12px 10px;gap:4px 8px}.app>header .crumb{grid-column:1;grid-row:1}.app>header .filter-toggle{grid-column:2;grid-row:1;margin:0}.app>header .header-search{grid-column:1/-1;grid-row:2;width:100%;min-width:0}.app #listView,.app.has-detail #listView{padding:112px 0 calc(110px + env(safe-area-inset-bottom))!important;margin:0!important}.library .table-scroll{height:auto;max-height:none;overflow:visible}.library-tools{top:112px;min-height:0;border:0;box-shadow:none}.library table{display:block;width:100%}.library .person-cell .real-thumb,.library .person-cell .empty-thumb{max-width:none;width:96px;height:64px}.library .date-group td{padding:8px 14px}.contact-drawer{width:100%!important;max-width:none}.mobile-bottom{display:none!important}.camera-fab{display:grid;place-items:center;position:fixed;right:18px;bottom:calc(20px + env(safe-area-inset-bottom));width:64px;height:64px;min-width:64px;padding:17px;border-radius:50%;border:0;background:#06a951;color:#fff;box-shadow:0 5px 18px #123a2830;z-index:410}.camera-fab svg{width:30px;height:30px}.chat-toggle{display:grid;place-items:center;right:24px;bottom:calc(98px + env(safe-area-inset-bottom));width:52px;min-width:52px;height:52px;min-height:52px;padding:13px;border-radius:50%;font-size:0;box-shadow:0 4px 16px #17243c18}.chat-toggle svg{width:24px;height:24px}.detail-open .camera-fab{display:none}.detail-open .chat-toggle{bottom:calc(20px + env(safe-area-inset-bottom))}.nav-scrim{left:min(310px,calc(100vw - 48px))!important;width:calc(100vw - min(310px,calc(100vw - 48px)))!important}.side-bottom{padding-right:44px!important}#filterDialog .dialog-top{margin-bottom:12px}.app.has-detail .library .industry-cell,.app.has-detail .library .group-cell,.app.has-detail .library .owner-cell{display:none!important}html{scroll-padding-top:120px}}
