:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#223148;background:#f5f7fa;font-synthesis:none;--navy:#14243b;--navy2:#1e3351;--teal:#079c88;--tealDark:#007b6d;--muted:#66768b;--line:#e2e8f0;--white:#fff;--shadow:0 8px 30px #1b2e4c0d}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}a{color:inherit}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #93e5d8;outline-offset:1px}.hidden{display:none!important}.shell{min-height:100vh;display:flex}.sidebar{width:244px;flex-shrink:0;background:var(--navy);color:#d6e2ef;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.logo{padding:26px 22px 30px;display:flex;align-items:center;gap:12px;color:#fff;font-weight:750;font-size:19px;letter-spacing:-.5px}.brand-symbol{width:40px;height:40px;display:grid;place-items:center;border-radius:13px;background:linear-gradient(145deg,#2ec9b1,#008f80);color:#fff;font-size:24px;font-weight:800;box-shadow:0 5px 15px #077b6d40}.sidenav{display:flex;flex-direction:column;gap:5px;padding:2px 12px;flex:1}.nav-btn{border:0;background:transparent;color:#b9c8d8;border-radius:10px;padding:12px 13px;text-align:left;display:flex;align-items:center;gap:12px;font-size:14px;font-weight:650}.nav-btn:hover{background:#293d59;color:#fff}.nav-btn.active{background:#31566a;color:#fff}.nav-icon{width:20px;display:inline-grid;place-items:center;font-size:19px}.sidebar-foot{padding:16px 18px;border-top:1px solid #31455e}.user-initial{width:34px;height:34px;border-radius:50%;background:#416078;color:#fff;display:grid;place-items:center;font-weight:700}.user-row{display:flex;gap:10px;align-items:center}.user-info{flex:1;min-width:0}.user-info b,.user-info small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-info b{font-size:13px;color:#fff}.user-info small{font-size:11px;color:#a5b8ca}.version{font-size:11px;opacity:.65;margin-top:14px}.content-wrap{min-width:0;flex:1}.topbar{height:73px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 32px;gap:14px}.topbar-left{display:flex;align-items:center;gap:14px}.eyebrow{font-size:11px;font-weight:800;letter-spacing:1.2px;text-transform:uppercase;color:var(--teal)}h1,h2,h3,p{margin-top:0}h1{margin-bottom:5px;font-size:29px;letter-spacing:-.8px}h2{font-size:18px;letter-spacing:-.35px;margin:0 0 15px}.subtitle{color:var(--muted);font-size:14px}.container{padding:27px 32px 60px;max-width:1640px;margin:auto}.head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:22px}.right-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.btn{border:1px solid var(--line);border-radius:10px;background:#fff;padding:11px 16px;color:#213147;font-weight:700;font-size:13px;display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:42px;white-space:nowrap}.btn:hover{background:#f5f8fa}.btn.primary{background:var(--teal);border-color:var(--teal);color:#fff}.btn.primary:hover{background:var(--tealDark)}.btn.danger{background:#fff6f5;border-color:#f4c7c4;color:#b63c35}.btn.tiny{min-height:31px;padding:6px 10px;border-radius:8px;font-size:12px}.btn.ghost{border:0;background:transparent;color:#dce7f2;padding:6px}.btn.full{width:100%}.btn.icon{padding:9px;width:40px}.card{background:#fff;border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow)}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:24px}.stat{padding:21px 22px;position:relative;overflow:hidden}.stat .label{color:var(--muted);font-size:12px;font-weight:700}.stat .num{font-size:30px;letter-spacing:-1px;font-weight:800;margin:12px 0 3px}.stat .hint{font-size:12px;color:var(--muted)}.stat-accent{position:absolute;right:18px;top:17px;width:39px;height:39px;background:#e7f7f4;color:var(--teal);display:grid;place-items:center;border-radius:12px;font-size:21px}.two-cols{display:grid;grid-template-columns:1.25fr .75fr;gap:16px}.panel{padding:22px}.welcome{background:linear-gradient(135deg,#183c51,#12675e);color:#fff;padding:27px;border-radius:16px;display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:23px}.welcome h2{font-size:22px;margin:0 0 7px}.welcome p{color:#bde3db;font-size:13px;margin:0}.welcome .btn{background:#fff;color:#14564e}.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:17px}.input,.select,.textarea{background:#fff;border:1px solid #d8e1e9;border-radius:9px;padding:11px 12px;width:100%;min-height:42px;color:#27384a}.textarea{min-height:96px;resize:vertical}.search{width:min(390px,100%);position:relative}.search .input{padding-left:35px}.search::before{content:'⌕';position:absolute;top:5px;left:11px;color:#8c9aac;font-size:24px}.field{display:flex;flex-direction:column;gap:6px}.field label{font-weight:750;font-size:12px;color:#45576c}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.fields .wide{grid-column:1/-1}.tabs{display:flex;gap:7px}.seg{padding:10px 13px;border:1px solid var(--line);border-radius:9px;background:#fff;color:#51647a;font-size:13px;font-weight:750}.seg.active{background:#e3f6f2;border-color:#9adbd2;color:#007767}.table-card{overflow:auto}.data-table{width:100%;border-collapse:collapse;text-align:left;min-width:660px}.data-table th{padding:13px 19px;font-size:11px;text-transform:uppercase;letter-spacing:.5px;color:#78879a;background:#f8fafc;border-bottom:1px solid var(--line);white-space:nowrap}.data-table td{padding:15px 19px;border-bottom:1px solid #edf1f5;font-size:13px;vertical-align:middle}.data-table tr:last-child td{border-bottom:0}.data-table tbody tr:hover{background:#f9fcfc}.clickrow{cursor:pointer}.person-cell{display:flex;align-items:center;gap:11px}.avatar{border-radius:12px;width:36px;height:36px;background:#e2f5f0;color:#138573;display:grid;place-items:center;font-weight:800;flex-shrink:0}.cellmain{font-weight:750;color:#26384c}.cellsub{font-size:11px;color:#8592a3;margin-top:3px}.muted{color:var(--muted)}.pill{display:inline-flex;align-items:center;white-space:nowrap;border-radius:7px;background:#eef2f6;color:#52667a;font-size:11px;font-weight:750;padding:5px 8px;text-transform:capitalize}.pill.teal{background:#e1f6f1;color:#008674}.pill.amber{background:#fff2d8;color:#a46a08}.pill.blue{background:#e9f1ff;color:#477ac1}.pill.rose{background:#ffecee;color:#bb5262}.empty{display:grid;justify-items:center;gap:8px;text-align:center;padding:55px 20px;color:var(--muted)}.empty .symbol{font-size:32px;background:#f0f5f8;width:62px;height:62px;display:grid;place-items:center;border-radius:17px}.empty b{color:#31465e}.pipeline{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(220px,1fr);gap:13px;overflow-x:auto;padding-bottom:14px}.stage-col{background:#edf2f5;border:1px solid #e1e9ed;border-radius:13px;padding:12px;min-height:380px;max-height:calc(100vh - 200px);overflow-y:auto}.stage-header{display:flex;justify-content:space-between;align-items:center;margin:3px 1px 13px}.stage-header b{font-size:13px;text-transform:capitalize}.stage-header span{border-radius:7px;padding:4px 8px;background:#fff;font-size:11px;color:#76879a;font-weight:700}.deal-card{padding:14px;background:#fff;border:1px solid #e0e6ec;border-radius:11px;margin-bottom:10px;box-shadow:0 3px 12px #293a4c08;cursor:pointer}.deal-card:hover{border-color:#77c4b5}.deal-card b{font-size:13px;display:block}.deal-card .money{font-size:18px;font-weight:800;margin:14px 0 10px}.deal-card .bottom{font-size:11px;color:#7c8a9a}.deals-sum{font-size:12px;color:var(--muted);margin-top:8px}.activity{display:grid;gap:10px}.activity-item{display:flex;gap:11px;padding:12px;border:1px solid #eef1f4;border-radius:10px}.activity-dot{width:31px;height:31px;border-radius:9px;background:#e9f3f3;display:grid;place-items:center;flex-shrink:0}.activity-text{font-size:13px;flex:1;white-space:pre-wrap;overflow-wrap:anywhere}.activity-text b{display:block;margin-bottom:5px}.activity-text small{display:block;color:#8693a2;margin-top:6px}.todo{display:flex;gap:10px;padding:13px 0;align-items:center;border-bottom:1px solid #edf1f4}.todo:last-child{border-bottom:0}.todo input{width:18px;height:18px;accent-color:var(--teal)}.todo .info{flex:1;min-width:0}.todo .info b{display:block;font-size:13px}.todo .info small{display:block;font-size:11px;color:#8090a1;margin-top:5px}.todo.complete .info{opacity:.5;text-decoration:line-through}.due{font-size:11px;white-space:nowrap;color:#687c91}.due.overdue{color:#c63a48;font-weight:800}.overlay{position:fixed;inset:0;background:#0b172a88;z-index:90;display:flex;align-items:center;justify-content:center;padding:16px}.modal{background:#fff;border-radius:16px;width:min(600px,100%);max-height:min(92vh,870px);display:flex;flex-direction:column;box-shadow:0 20px 65px #06142755;overflow:hidden}.modal.wide{width:min(900px,100%)}.modal-head{padding:18px 22px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px}.modal-head h2{margin:0}.modal-body{padding:22px;overflow-y:auto;flex:1}.modal-footer{border-top:1px solid var(--line);padding:14px 22px;display:flex;justify-content:flex-end;gap:9px}.modal-body form{display:grid;gap:15px}.detail-top{padding:22px;background:#f7fafb;display:flex;gap:15px;align-items:center}.detail-top .avatar{height:52px;width:52px;font-size:20px}.detail-top h2{margin-bottom:3px}.detail-top p{font-size:13px;color:#718396;margin:0}.detail-actions{display:flex;gap:8px;padding:16px 22px;border-bottom:1px solid var(--line);flex-wrap:wrap}.detail-tabs{display:flex;padding:0 22px;border-bottom:1px solid var(--line)}.detail-tabs button{padding:14px 12px;border:0;background:transparent;color:#67798e;font-size:13px;font-weight:700;border-bottom:2px solid transparent}.detail-tabs button.active{color:var(--teal);border-color:var(--teal)}.drawer{margin-left:auto;height:100vh;max-height:none;border-radius:16px 0 0 16px;width:min(560px,100%)}.drawer .modal-body{padding:18px 22px}.drawer .modal-head{border:0;padding-bottom:0}.toast-wrap{position:fixed;right:16px;bottom:20px;z-index:150;display:grid;gap:8px}.toast{background:#213f48;color:#fff;padding:13px 17px;border-radius:11px;font-size:13px;box-shadow:0 8px 20px #0003;max-width:320px}.toast.error{background:#9b3e45}.login-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:25px;background:radial-gradient(circle at top left,#23625a,transparent 45%),linear-gradient(130deg,#172b43,#122037)}.login-card{width:min(420px,100%);padding:36px;border-radius:20px;background:#fff;box-shadow:0 25px 75px #0005}.login-card .brand-symbol{margin-bottom:23px}.login-card h1{margin-bottom:6px}.login-card p{margin-bottom:26px;color:#778699}.login-card form{display:grid;gap:16px}.login-card .btn{margin-top:8px}.skeleton{background:linear-gradient(100deg,#eaf0f4,#f7f9fa,#eaf0f4);border-radius:9px}.import-info{background:#ecf7f5;padding:16px;border-radius:11px;color:#375c59;font-size:13px;line-height:1.6;margin-bottom:17px}.preview{max-height:260px;overflow:auto;border:1px solid var(--line);border-radius:10px}.preview table{border-collapse:collapse;min-width:100%;font-size:11px}.preview th,.preview td{border-bottom:1px solid var(--line);padding:8px 12px;white-space:nowrap}.preview th{background:#f2f6f8}.mapping{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.textlink{color:#068a7d;cursor:pointer;text-decoration:underline;text-underline-offset:2px}.mobile-menu{display:none}.status-bar{font-size:11px;color:#71869a}.status-dot{display:inline-block;background:#079c88;width:7px;height:7px;border-radius:50%;margin-right:5px}.hint{color:#8291a0;font-size:12px;line-height:1.55}.divider{border:0;border-top:1px solid var(--line);margin:16px 0}.check-label{display:flex;gap:10px;align-items:center;font-size:13px;font-weight:700}.check-label input{accent-color:var(--teal);width:17px;height:17px}.actions{display:flex;gap:6px}.mini-select{padding:6px 8px;border-radius:7px;border:1px solid #d9e2ea;font-size:12px;max-width:145px;background:white}.tag-date{font-size:11px;color:#8492a2;display:block;margin-top:4px}.inline-note{border:1px solid #b8e1da;background:#f5fdfb;border-radius:9px;padding:12px;color:#356c64;font-size:12px}.note-open{color:#7990a4;font-size:11px}.switcher{padding:6px;border-radius:9px;background:#f0f4f7;display:inline-flex;gap:3px}.switcher button{border:0;border-radius:7px;padding:8px 12px;background:transparent;color:#687c91;font-size:12px;font-weight:750}.switcher button.active{background:#fff;color:#143b44;box-shadow:0 1px 4px #0001}@media(max-width:1080px){.stats{grid-template-columns:repeat(2,1fr)}.two-cols{grid-template-columns:1fr}.sidebar{width:205px}.container{padding:24px}.topbar{padding:0 24px}}@media(max-width:720px){.shell{display:block}.sidebar{height:auto;width:100%;position:sticky;z-index:20;top:0;flex-direction:row;align-items:center;overflow:hidden}.logo{padding:11px 14px;flex-shrink:0;font-size:14px}.logo .brand-symbol{width:30px;height:30px;font-size:18px;border-radius:9px}.sidenav{display:none}.sidebar-foot{margin-left:auto;border:0;padding:0 11px}.user-info,.sidebar-foot .version{display:none}.mobile-menu{display:block;border:0;background:#314760;color:#fff;padding:8px 12px;border-radius:8px;margin-left:auto;font-size:18px}.sidebar.open .sidenav{position:absolute;display:grid;top:55px;left:0;right:0;background:var(--navy);z-index:22;padding:10px 13px 17px;box-shadow:0 15px 18px #0003}.sidebar.open{overflow:visible}.sidebar .sidenav{max-height:80vh;overflow:auto}.topbar{height:59px;padding:0 15px}.topbar .status-bar{display:none}.container{padding:21px 14px 55px}.head{align-items:stretch;flex-direction:column}.head h1{font-size:26px}.right-actions .btn{flex:1}.stats{gap:9px}.stat{padding:15px}.stat .num{font-size:25px;margin-top:9px}.stat-accent{position:static;width:25px;height:25px;font-size:15px;margin-top:7px}.panel{padding:16px}.toolbar{gap:7px}.search{width:100%}.fields,.mapping{grid-template-columns:1fr}.fields .wide{grid-column:auto}.pipeline{grid-auto-columns:minmax(235px,80vw)}.welcome{padding:21px}.welcome h2{font-size:18px}.modal{max-height:95vh}.overlay{padding:8px}.drawer{max-height:100vh;border-radius:0;width:100%}.modal-body{padding:15px}.modal-head{padding:16px}.modal-footer{padding:12px}.data-table{min-width:640px}.detail-actions{padding:12px 16px}.detail-top{padding:16px}}

/* Zendesk Sell-style mobile layout — v0.1.1. Desktop interface intentionally unchanged. */
.mobile-crm-header,.crm-mobile-nav,.mobile-today,.mobile-search-page{display:none}
.mi{width:22px;height:22px;display:inline-block;flex-shrink:0}
@media(max-width:720px){
 body{background:#f4f4f8;color:#30343c}
 .shell{display:block}
 .sidebar,.topbar{display:none!important}
 .content-wrap{min-height:100vh;background:#f4f4f8}
 .mobile-crm-header{height:70px;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:33;background:#fff;padding:0 18px;border-bottom:1px solid #e8e9ee}
 .mobile-crm-header h1{font-size:21px;font-weight:750;line-height:1;letter-spacing:-.4px;margin:0;position:absolute;left:50%;transform:translateX(-50%)}
 .mobile-crm-header button{appearance:none;border:0;background:transparent;display:grid;place-items:center;width:42px;height:42px;border-radius:12px;color:#2582a5;position:relative;padding:0}
 .mobile-crm-header button:active,.crm-bottom-btn:active{background:#f0f5f6}
 .mobile-crm-header button .mi{width:27px;height:27px}
 .mobile-header-actions{display:flex;align-items:center;gap:8px}
 .mobile-header-actions #mobile-add .mi{width:34px;height:34px;stroke-width:1.5}
 .mobile-alert-dot{position:absolute;top:7px;right:8px;width:8px;height:8px;border-radius:100%;background:#e34a64;border:2px solid white}
 .container{padding:0 20px calc(116px + env(safe-area-inset-bottom));margin:auto;max-width:640px;min-height:calc(100vh - 70px)}
 .desktop-overview{display:none!important}
 .mobile-today{display:block}
 .mobile-today-switch{margin:0 -20px 30px;padding:4px 20px 5px;background:#ededf0;display:grid;grid-template-columns:1fr 1fr;gap:3px}
 .mobile-today-switch button{border:0;border-radius:8px;background:transparent;padding:11px 10px;font-size:14px;font-weight:600;color:#347b9c;min-height:41px}
 .mobile-today-switch button.active{background:#fff;box-shadow:0 1px 4px #202d3519}
 .mobile-today-greeting{display:flex;gap:8px;align-items:baseline;justify-content:space-between;margin:2px 0 30px}
 .mobile-today-greeting strong{font-size:20px;font-weight:700;letter-spacing:-.4px;color:#30343a}
 .mobile-today-greeting time{font-size:14px;color:#9aa0ab;white-space:nowrap}
 .mobile-section-tag{font-size:13px;color:#868994;letter-spacing:.8px;font-weight:500;margin:0 0 18px 19px}
 .mobile-revenue-card{background:#fff;border-radius:12px;padding:22px 21px 20px;box-shadow:0 1px 0 #1d254003;margin-bottom:18px}
 .mobile-revenue-heading{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:19px}
 .mobile-revenue-heading h2{font-size:21px;font-weight:450;color:#35383e;white-space:nowrap;margin:0}
 .mobile-revenue-ranges{display:flex;align-items:center;gap:1px;white-space:nowrap}
 .mobile-revenue-ranges button{appearance:none;border:0;background:transparent;border-radius:8px;color:#26799b;font-size:13px;padding:6px 6px;min-width:30px}
 .mobile-revenue-ranges button+button::before{content:'';display:inline-block;vertical-align:middle;border-left:1px solid #e0e3e7;height:12px;margin-left:-5px;margin-right:6px}
 .mobile-revenue-ranges button.active{background:#f3f5f5;font-weight:800;box-shadow:0 2px 6px #24334019}
 .mobile-revenue-chart{min-height:127px;display:grid;gap:17px;padding:10px 0 4px;position:relative;background:repeating-linear-gradient(to right,transparent,transparent calc(25% - 1px),#dee2e5 calc(25% - 1px),#dee2e5 25%);background-size:100% 100%;background-position:0 0}
 .mobile-revenue-series{position:relative;min-width:0}
 .mobile-revenue-label{font-size:15px;color:#a3a6ae;display:block;margin-bottom:4px}
 .mobile-revenue-track{height:28px;position:relative}
 .mobile-revenue-fill{height:28px;min-width:0;display:flex;align-items:center;justify-content:flex-end;padding-right:7px;white-space:nowrap;overflow:hidden;box-sizing:border-box}
 .mobile-revenue-fill span{font-size:13px;color:#fff;font-weight:600}
 .mobile-revenue-fill.this-period{background:#60b39b}
 .mobile-revenue-fill.previous-period{background:#a4cdc1}
 .mobile-revenue-axis{display:flex;justify-content:space-between;margin-top:6px;color:#a3a9b2;font-size:12px}
 .mobile-stat-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
 .mobile-stat-tile{border:0;text-align:left;appearance:none;background:#fff;border-radius:11px;min-height:127px;display:flex;flex-direction:column;justify-content:space-between;padding:20px 17px 21px;box-shadow:0 1px 0 #26344308}
 .mobile-stat-tile:active{background:#f9fafa}
 .mobile-tile-label{font-size:16px;color:#2179a0;display:flex;align-items:center;gap:9px;font-weight:500;white-space:nowrap}
 .mobile-tile-label .mi{width:22px;height:22px;stroke-width:1.5}
 .mobile-tile-number{font-size:28px;line-height:1;font-weight:450;color:#2e333b}
 .mobile-tile-number small{font-size:15px;color:#92979f;font-weight:400;margin-left:2px}
 .mobile-demo-footnote{color:#9da0a9;font-size:11px;line-height:1.4;margin:16px 3px}
 .crm-mobile-nav{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;bottom:0;left:0;right:0;z-index:36;background:#fff;border-top:1px solid #e4e9ea;padding:6px 3px calc(7px + env(safe-area-inset-bottom));min-height:77px;box-shadow:0 -2px 11px #18223607}
 .crm-bottom-btn{border:0;background:transparent;appearance:none;border-radius:9px;color:#9da4a6;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:58px;font-size:11px;font-weight:450;padding:4px 0}
 .crm-bottom-btn .mi{width:28px;height:28px;stroke-width:1.55}
 .crm-bottom-btn.active{color:#1e85ad;font-weight:700}
 .crm-bottom-btn.active .mi{stroke-width:2.4}
 .crm-bottom-btn span{font-size:11px;line-height:1.1}
 .mobile-feed-card,.mobile-search-results{background:#fff;border-radius:12px;padding:7px 16px;margin-bottom:16px}
 .mobile-activity-row{display:flex;align-items:flex-start;gap:10px;padding:17px 0;border-bottom:1px solid #eef0f2}
 .mobile-activity-row:last-child{border:0}
 .mobile-activity-mark{color:#5aa48e}
 .mobile-activity-row strong{font-size:13px;display:block;color:#333}
 .mobile-activity-row small{display:block;margin-top:6px;color:#8c949e;font-size:11px}
 .mobile-wide-link{width:100%;display:flex;align-items:center;justify-content:space-between;padding:17px;background:#fff;border:0;border-radius:12px;text-align:left;color:#267d99}
 .mobile-search-page{display:block}
 .mobile-search-bar{display:flex;align-items:center;gap:10px;background:#fff;padding:13px;border:1px solid #dfe6e9;border-radius:12px;margin:0 0 16px;color:#6692a6}
 .mobile-search-bar input{border:0;outline:0;background:transparent;width:100%;font-size:16px;color:#27364a;min-width:0}
 .mobile-result{display:flex;align-items:center;gap:12px;width:100%;border:0;background:#fff;text-align:left;padding:15px 2px;border-bottom:1px solid #edf1f4}
 .mobile-result:last-child{border-bottom:0}
 .mobile-result>span:nth-child(2){flex:1;min-width:0}
 .mobile-result b{display:block;font-size:14px;color:#33434f}
 .mobile-result small{display:block;font-size:11px;color:#8996a1;margin-top:4px}
 .mobile-result>.mi{color:#a5b2be;width:18px}
 .mobile-search-prompt,.mobile-noresult{color:#9aa3ac;font-size:13px;line-height:1.6;padding:22px 9px}
 .mobile-action-list{display:grid;gap:4px}
 .mobile-action-choice{border:0;border-bottom:1px solid #edf1f3;background:white;display:flex;gap:13px;align-items:center;padding:15px 6px;width:100%;text-align:left;color:#31465c;font-size:15px}
 .mobile-action-choice>.mi:first-child{color:#2380a2}
 .mobile-action-choice>.mi:last-child{margin-left:auto;width:17px;color:#abb6bd}
 .modal{max-height:calc(92dvh - env(safe-area-inset-top))}
 .toast-wrap{bottom:calc(93px + env(safe-area-inset-bottom))}
}
@media(max-width:375px){
 .container{padding-left:13px;padding-right:13px}
 .mobile-today-switch{margin-left:-13px;margin-right:-13px;padding-left:13px;padding-right:13px}
 .mobile-revenue-card{padding:17px 12px}
 .mobile-revenue-ranges button{padding:5px 4px;font-size:12px}
 .mobile-tile-label{font-size:14px}
 .mobile-today-greeting strong{font-size:17px}
 .mobile-today-greeting time{font-size:12px}
}

@media(max-width:720px){
 body[data-crm-view="contacts"] .table-card,
 body[data-crm-view="leads"] .table-card,
 body[data-crm-view="companies"] .table-card{background:transparent;border:0;box-shadow:none;overflow:visible}
 body[data-crm-view="contacts"] .data-table,
 body[data-crm-view="leads"] .data-table,
 body[data-crm-view="companies"] .data-table{min-width:0;width:100%;display:block}
 body[data-crm-view="contacts"] .data-table thead,
 body[data-crm-view="leads"] .data-table thead,
 body[data-crm-view="companies"] .data-table thead{display:none}
 body[data-crm-view="contacts"] .data-table tbody,
 body[data-crm-view="leads"] .data-table tbody,
 body[data-crm-view="companies"] .data-table tbody{display:block}
 body[data-crm-view="contacts"] .data-table tr,
 body[data-crm-view="leads"] .data-table tr,
 body[data-crm-view="companies"] .data-table tr{display:block;background:white;border:1px solid #e8edf0;border-radius:12px;padding:11px 0;margin-bottom:11px;box-shadow:0 2px 8px #23304405}
 body[data-crm-view="contacts"] .data-table td,
 body[data-crm-view="leads"] .data-table td,
 body[data-crm-view="companies"] .data-table td{display:block;border:0;padding:4px 16px;color:#738495;font-size:12px;overflow-wrap:anywhere}
 body[data-crm-view="contacts"] .data-table td:first-child,
 body[data-crm-view="leads"] .data-table td:first-child,
 body[data-crm-view="companies"] .data-table td:first-child{padding:5px 16px 8px;color:#2a3c4f;font-size:14px}
 body[data-crm-view="contacts"] .data-table td:first-child .avatar,
 body[data-crm-view="leads"] .data-table td:first-child .avatar{border-radius:50%;background:#e8f5f1}
 body[data-crm-view="contacts"] .data-table td:nth-child(3),
 body[data-crm-view="leads"] .data-table td:nth-child(3){color:#2a84a5}
 body[data-crm-view="contacts"] .data-table td:nth-child(6),
 body[data-crm-view="leads"] .data-table td:nth-child(6){font-size:11px;color:#a3abb4}
 body[data-crm-view="companies"] .data-table td:last-child{text-align:right}
 body[data-crm-view="contacts"] .toolbar,
 body[data-crm-view="leads"] .toolbar{margin-bottom:16px}
 .mobile-search-page .mobile-result[data-deal]{cursor:pointer}
}

/* Workspace settings and filter layout */

.crm-filter-bar{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.crm-filter-bar .search{flex:1 1 220px;min-width:170px}
.crm-filter-bar .select{min-width:140px;max-width:220px}
.crm-count{white-space:nowrap;font-size:12px}
.settings-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;max-width:640px}
.settings-grid .panel{margin:0}
.settings-check{margin:14px 0}
.settings-shortcuts{display:flex;gap:8px;flex-wrap:wrap}
.compact-crm .data-table td{padding-top:7px!important;padding-bottom:7px!important}
.compact-crm .todo{padding-top:8px!important;padding-bottom:8px!important}
[hidden]{display:none!important}
@media(max-width:900px){
 .settings-grid{grid-template-columns:1fr}
}
@media(max-width:650px){
 .crm-mobile-nav{display:grid;grid-template-columns:repeat(6,minmax(0,1fr))}
 .crm-filter-bar{align-items:stretch}
 .crm-filter-bar .search{flex-basis:100%}
 .crm-filter-bar .select{min-width:0;flex:1 1 42%}
 .crm-filter-bar .btn{flex:1 1 45%}
 .settings-shortcuts .btn{flex:1}
 .crm-mobile-nav{grid-template-columns:repeat(6,minmax(0,1fr))}
 .crm-mobile-nav .crm-bottom-btn{min-width:0;padding-left:2px;padding-right:2px}
 .crm-mobile-nav .crm-bottom-btn span:not(.nav-icon){font-size:9px}
}

:root{--teal:#b41e30;--tealDark:#911427;--navy:#18181c;--navy2:#27272b}
body{background:#f5f5f6;color:#202024}.hq-header{position:sticky;top:0;z-index:40;background:#171719;color:white;padding:0 max(8px,calc((100vw - 1100px)/2)) 8px;border-bottom:3px solid #b91f32}.hq-brand{display:flex;align-items:center;justify-content:space-between;padding:8px 4px;font-size:20px}.hq-brand button{color:white;background:#303033;border:0;border-radius:8px;width:42px;height:40px;font-size:23px;cursor:pointer}.hq-tabs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:3px}.hq-tabs button{min-height:42px;border:1px solid #4d4d50;color:white;background:#303033;border-radius:6px;font:600 clamp(11px,2.8vw,14px)/1.1 inherit;font-family:inherit;font-weight:650;padding:3px;cursor:pointer}.hq-tabs button.active{background:#080809;border-color:#df4454;box-shadow:inset 0 -3px #df4454}.hq-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin:0 0 14px}.hq-actions select{width:auto}.btn.primary,.switcher button.active{background:#b51d30!important;color:white!important;border-color:#b51d30!important}#page.container{width:100%;max-width:1100px;box-sizing:border-box;margin:auto;padding:18px clamp(10px,3vw,32px) 40px}.mobile-search-page{display:block}.hq-header~#page .head{display:flex!important}.head .eyebrow,.head .subtitle{display:none}.hq-header~#page .head h1{font-size:23px}.mobile-search-bar{display:flex;align-items:center;gap:8px;background:white;padding:10px;border-radius:8px}.mobile-search-bar input{flex:1;min-width:0;border:0;font:inherit}.mobile-search-results{display:grid}.mobile-result{display:flex;align-items:center;gap:10px;text-align:left;padding:12px;background:white;border:1px solid #ddd}.mobile-result small{display:block}.hq-actions input[type=file]{display:none}
.record-controls{display:flex;flex-wrap:wrap;align-items:end;gap:10px;background:white;border:1px solid var(--line);border-radius:10px;padding:12px;margin-bottom:12px}.record-controls label{display:grid;gap:4px;font-size:13px;font-weight:600;flex:1 1 135px;min-width:0}.record-controls select{max-width:100%}
.hq-brand strong,.login-card h1{font-family:Impact,Haettenschweiler,'Arial Narrow',sans-serif;font-style:italic;font-synthesis:weight style;font-weight:900;color:#ff4354;letter-spacing:.025em;font-size:28px}
button,.btn,.hq-tabs button{white-space:normal;overflow-wrap:anywhere;box-sizing:border-box;max-width:100%;line-height:1.2}.btn,.hq-tabs button,.switcher button{height:auto;min-height:36px}.hq-tabs button{min-height:44px;padding:5px 2px;font-size:clamp(10px,2.8vw,14px)}.switcher,.right-actions,.detail-actions,.modal-footer{flex-wrap:wrap}.record-scroll{overflow:auto;background:white;border:1px solid #ddd;border-radius:10px}.record-list{width:100%;border-collapse:collapse;text-align:left;font-size:14px}.record-list th,.record-list td{padding:9px 12px;border-bottom:1px solid #e5e5e5;min-width:84px;max-width:280px;overflow-wrap:anywhere}.record-list th{background:#f1f1f3}.record-list th button,.open-record{background:transparent;border:0;padding:3px 0;text-align:left;color:inherit;font:inherit;font-weight:650;cursor:pointer}.record-list th[aria-sort=ascending],.record-list th[aria-sort=descending]{color:#a01c2d}.record-controls label.column-option{display:flex;align-items:center;gap:6px;flex:0 1 auto}.sample-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(190px,100%),1fr));gap:12px}.sample-gallery button{display:block;border:1px solid #ccc;background:white;padding:3px;border-radius:6px;cursor:pointer}.sample-gallery img{display:block;width:100%;height:auto}@media(max-width:480px){.sample-gallery{grid-template-columns:1fr 1fr}.record-list td,.record-list th{padding:8px;min-width:65px}.record-list{font-size:13px}}
.filter-group{min-width:min(150px,100%);max-width:100%;padding:6px}.filter-group summary{cursor:pointer;font-weight:650}.record-controls .filter-group label,.record-controls .col-choice label{display:flex;align-items:center;gap:7px;padding:4px}.filter-group[open]{max-height:230px;overflow:auto}.col-choice{display:flex;width:100%;gap:6px;align-items:center}.col-choice label{flex:1}.capture-sides{display:grid;grid-template-columns:1fr 1fr;gap:12px}.capture-sides img{display:block;width:100%;max-height:150px;object-fit:contain}.capture-sides .hq-actions{margin-top:6px}.capture-sides strong{display:block}

/* Keep page gestures separate from the horizontally scrollable record tables. */
html,body{max-width:100%;overflow-x:hidden;touch-action:pan-x pan-y;-webkit-text-size-adjust:100%;text-size-adjust:100%}
#root,#page.container{min-width:0;max-width:100%}
#page.container{max-width:1100px}
.record-scroll{width:100%;max-width:100%;min-width:0;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y;scrollbar-width:thin}
.record-scroll:focus-visible{outline:2px solid #b91f32;outline-offset:2px}
.record-list{width:max-content;min-width:100%;table-layout:auto}
.record-list th,.record-list td{min-width:160px;max-width:none;white-space:nowrap;overflow-wrap:normal}
.record-list th:first-child,.record-list td:first-child{min-width:180px}
.record-list button{white-space:nowrap;overflow-wrap:normal}
@media(max-width:720px){
 .record-list{width:calc(100% * var(--record-column-count) / var(--record-visible-count));table-layout:fixed}
 .record-list col{width:calc(100% / var(--record-column-count))}
 .record-list th,.record-list td,.record-list th:first-child,.record-list td:first-child{min-width:0;padding:10px 9px;white-space:normal;overflow-wrap:anywhere;vertical-align:middle;line-height:1.35}
 .record-list th+th,.record-list td+td{border-left:1px solid #e5e5e5}
 .record-list th button,.record-list .open-record{width:100%;white-space:normal;overflow-wrap:anywhere}
}
@media(hover:none) and (pointer:coarse){input,select,textarea,.input,.select,.textarea{font-size:16px}}
.customer-lookup{min-width:0;width:100%}
.customer-lookup-input{position:relative}
.customer-lookup-input .input{padding-right:42px;min-width:0}
.customer-lookup-input input::-webkit-search-cancel-button{display:none}
.customer-lookup-toggle{position:absolute;right:3px;top:3px;bottom:3px;width:35px;min-height:35px;border:0;border-radius:7px;background:transparent;color:#68707c;font-size:23px;line-height:1;display:grid;place-items:center}
.customer-lookup-toggle:hover{background:#f1f1f3}
.customer-lookup-panel{margin-top:6px;border:1px solid #d8dce3;border-radius:9px;background:white;overflow:hidden;box-shadow:0 5px 15px #0000000a}
.customer-lookup-results{max-height:min(250px,38vh);overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}
.customer-lookup-option{display:block;width:100%;max-width:100%;min-height:48px;border:0;border-bottom:1px solid #ececf0;background:#fff;text-align:left;padding:10px 12px;color:#242429;font:inherit;line-height:1.3;white-space:normal;overflow-wrap:anywhere}
.customer-lookup-option:last-child{border-bottom:0}
.customer-lookup-option span,.customer-lookup-option small{display:block}
.customer-lookup-option span{font-size:14px;font-weight:650}
.customer-lookup-option small{font-size:12px;color:#6e7581;margin-top:3px}
.customer-lookup-option[aria-selected=true]{box-shadow:inset 3px 0 #b51d30}
.customer-lookup-option.is-new span{color:#a51c2d}
.customer-lookup-new{margin:6px 0 0}
.customer-lookup-option:hover,.customer-lookup-option.is-active{background:#fff0f2}
.customer-lookup-status{padding:7px 10px;font-size:11px;color:#737984;background:#fafafb;border-top:1px solid #ececf0}
.customer-lookup-empty{padding:16px 12px;color:#737984;font-size:13px;margin:0}
.customer-filter-group[open]{max-height:none;overflow:visible}
.customer-filter-input{margin:9px 0 6px;max-width:100%}
.customer-filter-options{max-height:210px;overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}

.directions-overlay{z-index:120}.directions-modal{width:min(420px,100%);max-height:90dvh}.directions-options{display:grid;gap:12px}.directions-options .btn{min-height:48px;white-space:normal;text-align:center;justify-content:center}.directions-destination{overflow-wrap:anywhere;color:var(--muted);line-height:1.5}.directions-address{border:0;background:none;padding:0;text-align:left;cursor:pointer;font:inherit;overflow-wrap:anywhere}

.deal-stage-tabs{display:flex;gap:8px;overflow-x:auto;max-width:100%;margin:0 0 16px;padding:0 0 2px;touch-action:pan-x pan-y}.deal-stage-tabs .btn{flex:0 0 auto;white-space:nowrap;min-height:38px}.company-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:22px}.company-info{margin:18px 0}.company-person-info{padding-top:20px}.former-employee-control{border-top:1px solid var(--line);padding-top:20px;margin-top:22px}.company-link,.company-heading-link{text-decoration:underline;text-underline-offset:3px;color:#a91d31}.company-heading-link{background:none;border:0;padding:0;font:inherit;text-align:left}.company-person-info .check-label{align-items:center}

/* Anchor navigation to the viewport, including the iPhone safe area. */
#root{--crm-header-height:calc(111px + env(safe-area-inset-top,0px))}
.hq-header{position:fixed;top:0;left:0;right:0;width:100%;padding-top:env(safe-area-inset-top,0px)}
#page.container{padding-top:calc(var(--crm-header-height) + 18px)}
.deal-stage-tabs{scroll-behavior:auto;overflow-anchor:none}

.customer-lookup-toggle svg{transition:transform .15s}.customer-lookup-toggle[aria-expanded=true] svg{transform:rotate(180deg)}

.settings-version{max-width:640px;margin-top:18px;text-align:center;color:var(--muted);font-size:12px}

.settings-grid .settings-workspace{display:grid;gap:20px;padding:20px}
.settings-workspace .settings-intro h2{margin:0}
.settings-workspace .settings-intro .hint{margin:8px 0 0;line-height:1.5}
.settings-workspace .field{display:grid;gap:8px;margin:0;min-width:0}
.settings-workspace .field>label{margin:0;line-height:1.4}
.settings-workspace .select{width:100%;min-height:48px;padding:12px 14px;font-size:16px;font-weight:500;line-height:1.4}
.settings-workspace .settings-check{display:flex;align-items:center;gap:10px;min-height:44px;margin:0;line-height:1.4}
.settings-workspace .settings-check input{width:20px;height:20px;flex:0 0 20px;margin:0;accent-color:#b51d30}
.settings-workspace .settings-shortcuts{margin:0}
.settings-workspace .settings-shortcuts .btn{width:100%;min-height:48px;padding:12px 16px}
.settings-version{margin-top:20px}

.company-tabs .btn{min-width:0;min-height:44px;padding:10px 6px}
.company-deal-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.company-deal-filters{display:flex;gap:8px}.company-deal-filters .btn{min-height:40px;padding:10px 12px}
.company-deal-list{border:1px solid var(--line);border-radius:10px;overflow:hidden}
.company-deal-row{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;border:0;border-bottom:1px solid var(--line);padding:16px 14px;background:white;color:inherit;font:inherit;text-align:left}
.company-deal-row:last-child{border-bottom:0}.company-deal-row:hover{background:#fff4f5}
.company-deal-description{min-width:0;flex:1;overflow-wrap:anywhere}.company-deal-description b{display:block;font-size:14px;line-height:1.4}
.company-deal-description small{display:block;margin-top:6px;font-size:12px;color:var(--muted);line-height:1.5}
.company-deal-value{flex-shrink:0;font-size:14px;font-weight:700;white-space:nowrap}
.company-deal-empty{margin:0;padding:20px 14px}
.deal-referrals{min-width:0;margin:0;border:1px solid var(--line);border-radius:10px;padding:16px}
.deal-referrals legend{padding:0 6px;font-size:13px;font-weight:700}.deal-referrals .hint{margin:0 0 12px}
.deal-referral-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px}
.deal-referral-options .check-label{min-height:44px;margin:0;font-size:13px;line-height:1.4}
.deal-referral-options input{flex:0 0 18px;width:18px;height:18px;margin:0;accent-color:#b51d30}
@media(max-width:360px){.deal-referral-options{grid-template-columns:1fr}.company-tabs{gap:6px}.company-tabs .btn{font-size:12px}}

/* Popups scroll vertically within their own body, never the page beneath. */
html.crm-modal-open{overflow:hidden!important;overscroll-behavior:none}
.overlay{overflow:hidden;overscroll-behavior:none}
.overlay .modal{min-width:0;max-width:100%}
.overlay .modal-head,.overlay .modal-footer{flex-shrink:0;min-width:0;max-width:100%}
.overlay .modal-head h2{min-width:0;overflow-wrap:anywhere}
.overlay .modal-head .btn.icon{flex-shrink:0}
.overlay .modal-body{flex:1 1 auto;min-width:0;min-height:0;max-width:100%;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch}
.modal-body form,.modal-body .fields,.modal-body .field,.modal-body fieldset,.modal-body .fields>*{min-width:0;max-width:100%}
.modal-body input,.modal-body select,.modal-body textarea{min-width:0;max-width:100%}
.modal-body input[type=date]{display:block;width:100%;min-inline-size:0;max-inline-size:100%;-webkit-min-logical-width:0}
.modal-body input[type=date]::-webkit-date-and-time-value{min-width:0;text-align:left}
.lead-source-settings{flex:0 0 100%;width:100%;min-width:0;border-top:1px solid var(--line);padding-top:18px;margin-top:10px}
.lead-source-settings h3{margin:0 0 8px;font-size:15px}.lead-source-settings .hint{margin:0 0 12px}
.source-choice{padding:6px 0;min-width:0}.source-choice>span{flex:1;min-width:0;overflow-wrap:anywhere}.source-choice .btn{flex:0 0 36px;min-height:36px}

.lead-record-scroll{--lead-action-width:44px}
.lead-record-scroll .record-list .lead-action-cell{position:sticky;left:0;z-index:2;width:var(--lead-action-width);min-width:var(--lead-action-width);max-width:var(--lead-action-width);padding:0;background:#fff;border-right:1px solid #e5e5e5;text-align:center;vertical-align:middle}
.lead-record-scroll .record-list th.lead-action-cell{background:#f1f1f3;z-index:3}
.lead-record-scroll col.lead-action-col{width:var(--lead-action-width)}
.lead-action-toggle{display:grid;place-items:center;width:44px;min-height:44px;cursor:pointer}
.lead-action-toggle input{display:block;width:20px;height:20px;min-width:20px;margin:0;accent-color:#b51d30;cursor:pointer}
.lead-action-options{display:grid;gap:12px}.lead-action-options .btn{width:100%;min-height:48px;padding:12px 16px;text-align:center}
@media(max-width:720px){
 .lead-record-scroll .record-list{width:calc(var(--lead-action-width) + (100% - var(--lead-action-width)) * var(--record-column-count) / var(--record-visible-count))}
 .lead-record-scroll .record-list col:not(.lead-action-col){width:calc((100% - var(--lead-action-width)) / var(--record-column-count))}
}

.record-scroll,.deal-stage-tabs{scrollbar-width:none;-ms-overflow-style:none}
.record-scroll::-webkit-scrollbar,.deal-stage-tabs::-webkit-scrollbar{display:none;width:0;height:0}

/* Import review and customer history */
.import-workspace{max-width:980px;display:grid;gap:18px}.import-workspace>p{margin:0;line-height:1.5}.import-files{display:grid;gap:10px}.import-file,.import-stage-review,.record-extra-fields,.record-facts,.additional-deal-contacts{border:1px solid var(--line,#dfe3e8);border-radius:10px;padding:14px;margin:12px 0;background:#fff;min-width:0}.import-file summary,.import-stage-review summary,.record-extra-fields summary,.record-facts summary,.additional-deal-contacts summary{font-weight:650;cursor:pointer;overflow-wrap:anywhere}.import-file[open] summary,.record-extra-fields[open] summary,.additional-deal-contacts[open] summary{margin-bottom:16px}.import-stage-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(110px,.6fr);gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid #eee}.import-stage-row small{display:block;color:#77818e;margin-top:4px}.import-counts{display:flex;gap:14px;flex-wrap:wrap;padding:14px;background:#f4f4f6;border-radius:10px}.import-counts span{font-size:13px}.import-counts b{display:block;font-size:21px}.import-job-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.import-job-actions .check-label{flex-basis:100%}.import-issue{padding:14px 0;border-bottom:1px solid #e7e7ea;overflow-wrap:anywhere}.import-issue p{white-space:pre-wrap;line-height:1.4}.import-progress{font-weight:600;color:#a01c2d;overflow-wrap:anywhere}.import-history{max-width:980px;margin-top:18px}.import-history-row{width:100%;display:flex;justify-content:space-between;gap:15px;padding:14px 0;background:none;border:0;border-bottom:1px solid #eee;text-align:left;font:inherit;cursor:pointer}.import-history-row span{color:#7d818b}.record-pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:14px 0;font-size:13px}.custom-field-list{display:grid;gap:10px}.custom-field-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:8px;align-items:center}.record-extra-fields .fields{margin-top:16px}.machine-history{margin:20px 0}.machine-record{border:1px solid #e1e3e8;border-radius:10px;padding:14px;margin-top:12px}.machine-record dl,.record-facts dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0 0}.machine-record dl>div,.record-facts dl>div{min-width:0}.machine-record dt,.record-facts dt{color:#74808f;font-size:12px;margin-bottom:4px}.machine-record dd,.record-facts dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.additional-contact-options{max-height:230px;overflow:auto;margin-top:12px;overscroll-behavior:contain}.company-history-note{white-space:pre-wrap;overflow-wrap:anywhere;padding:14px 0;border-bottom:1px solid #e2e5e9}.company-history-note small{color:#75808e}.stage-settings{max-width:640px;margin-top:18px}.stage-setting{display:grid;grid-template-columns:minmax(0,1fr) minmax(110px,.7fr) auto;gap:8px;padding:10px 0;align-items:center}.stage-move-buttons{display:flex;gap:5px}.demo-notice{border:1px solid #e0b4bc;color:#a01c2d;border-radius:8px;padding:10px 12px;font-size:12px;margin:0 0 14px}.record-facts,.record-extra-fields{max-width:100%;box-sizing:border-box}
@media(max-width:520px){.custom-field-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.custom-field-row .btn{grid-column:2;justify-self:end}.stage-setting{grid-template-columns:minmax(0,1fr) auto}.stage-setting>[data-stage-category]{grid-column:1}.stage-move-buttons{grid-column:2;grid-row:1 / span 2}.import-counts{gap:12px}.import-job-actions>.btn{flex:1 1 45%}.record-pagination{gap:8px}.record-pagination span{text-align:center}.stage-settings .hq-actions .btn{flex:1}}

.import-link-lookup{padding:12px;border:1px solid #e0e3e8;border-radius:10px;margin-bottom:18px}.import-link-lookup .customer-lookup-results{position:static;max-height:220px;overflow:auto;box-shadow:none;border:0}.import-link-lookup .customer-lookup-option{display:flex;flex-direction:column;gap:5px;width:100%;padding:12px;text-align:left;background:white;border:0;border-bottom:1px solid #eee;cursor:pointer}.import-link-lookup small{font-size:11px;color:#778391}

.deal-stage-tabs{--deal-stage-width:clamp(120px,32vw,160px);align-items:stretch}.deal-stage-tabs .btn{flex:0 0 var(--deal-stage-width);width:var(--deal-stage-width);min-width:var(--deal-stage-width);max-width:var(--deal-stage-width);min-height:54px;padding:10px 8px;white-space:normal;line-height:1.25;overflow-wrap:anywhere;align-self:stretch}
/* Activity feeds share the CRM's red accents and stay inside a phone viewport. */
.crm-feed,.contact-record-panel,.feed-entry,.feed-entry-details{min-width:0;max-width:100%;overflow-wrap:anywhere}
.contact-record-panel{padding:16px}.contact-card-photo{width:100%;max-height:240px;object-fit:contain}
.activity-quick-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:18px}
.activity-quick-actions .btn{padding:11px 4px;font-size:14px;white-space:nowrap;min-width:0}
.activity-day-nav{display:grid;grid-template-columns:40px minmax(0,1fr) 40px auto;align-items:center;gap:6px;margin:14px 0}
.activity-day-nav .btn{min-width:0;padding:10px}.activity-day-nav .input{min-width:0;width:100%}
.feed-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;margin:16px 0}
.feed-filters details{border:1px solid #dde1e6;border-radius:12px;padding:12px;background:#fff;align-self:start}
.feed-type-options{display:grid;grid-template-columns:1fr 1fr;gap:4px}.feed-type-options .check-label{font-size:13px;gap:5px;margin:8px 0}
.feed-section-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:20px 0 12px}.feed-section-title h3{margin:0;font-size:16px}.feed-section-title .btn{font-size:12px;padding:8px}
.feed-upcoming-item{border:1px solid #e0e3e8;border-radius:10px;padding:12px;margin:8px 0;background:#fff;display:grid;gap:6px}.feed-upcoming-item.overdue{border-left:3px solid #b41d32}.feed-upcoming-item>span,.feed-upcoming-item small{font-size:12px;color:#667587}.feed-upcoming-item>.btn{justify-self:start}
.feed-entry{border:1px solid #e0e3e8;border-radius:12px;background:#fff;margin:10px 0;overflow:hidden}.feed-entry summary{padding:12px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;cursor:pointer}.feed-entry summary::after{content:'⌄';grid-column:2;grid-row:2;color:#8b2636}.feed-entry summary>b,.feed-preview{grid-column:1/-1}.feed-entry summary>b{font-size:14px;padding-right:14px}.feed-entry time{font-size:11px;color:#687787}.feed-entry-kind{font-size:11px;color:#a71d31;font-weight:700;text-transform:uppercase;letter-spacing:.03em}.feed-entry-kind.incoming{color:#58697b}.feed-preview{font-size:13px;color:#687787;overflow-wrap:anywhere}.feed-entry-details{padding:0 12px 12px}.feed-entry-details p{font-size:14px;margin:10px 0}.feed-full-text{white-space:pre-wrap;font:inherit;max-width:100%;overflow-wrap:anywhere;word-break:break-word}.feed-relations{padding:10px 12px;border-top:1px solid #eceef1;font-size:12px;line-height:1.8}.feed-relations .textlink,.feed-upcoming-item .textlink{font-size:inherit;text-align:left;overflow-wrap:anywhere}.company-tabs{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:5px!important}.company-tabs .btn{min-width:0;padding:10px 3px!important;font-size:13px!important;overflow-wrap:normal}
.compose-fallback{position:fixed;z-index:10000;bottom:max(16px,env(safe-area-inset-bottom));left:16px;right:16px;max-width:440px;margin:auto;background:#fff;border:1px solid #ddd;border-radius:16px;padding:18px;box-shadow:0 8px 60px #0005;display:grid;gap:10px}.compose-fallback p{font-size:14px;margin:0}.compose-fallback .btn{white-space:normal}
.crm-feed fieldset{min-width:0}.crm-feed [hidden]{display:none!important}
.integration-settings{margin-top:20px}.integration-card{padding:18px 0;border-bottom:1px solid #e4e7ec;min-width:0}.integration-card p{overflow-wrap:anywhere}.integration-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}.integration-heading h3{margin:0;font-size:17px}.integration-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.integration-actions .btn{font-size:13px;padding:10px}.integration-demo-option{font-size:13px;line-height:1.5}.integration-error{color:#b21f34;font-size:14px;overflow-wrap:anywhere}.oauth-config-form{display:grid;gap:12px;border-bottom:1px solid #ddd;padding:16px 0}.integration-settings details{margin:18px 0}.integration-settings details>summary{font-weight:700}.integration-settings li{margin:10px 0;font-size:14px;line-height:1.5}.redirect-address{font-size:12px!important}.contact-sync-conflict{padding:14px;background:#faf4f5;border-radius:10px;margin:14px 0;display:grid;gap:8px}.integration-settings .field{min-width:0}.integration-settings h3{margin-top:16px}.integration-settings .input{max-width:100%}
.crm-feed .textlink{border:0;background:transparent;padding:0;color:#a91d31;text-decoration:underline;text-underline-offset:3px;cursor:pointer;font:inherit;font-weight:600;box-shadow:none}.feed-upcoming-item>.textlink{font-size:14px;text-align:left}.feed-relations .textlink{font-size:12px}.activity-day-nav [data-day-step]{font-size:22px}
@media(max-width:360px){.activity-quick-actions{gap:5px}.activity-quick-actions .btn{font-size:12px;padding:10px 2px}.company-tabs .btn{font-size:12px!important}.activity-day-nav{grid-template-columns:32px minmax(0,1fr) 32px auto;gap:4px}.activity-day-nav .btn{padding:8px 6px;font-size:12px}}

/* A larger, centred close icon and a comfortable touch target on every CRM dialog. */
.overlay .modal-head #close-dialog.btn.icon.tiny{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;max-width:44px;padding:0;font-size:28px;line-height:1;border-radius:10px}

/* Card Scanner: capture and a separate, persistent review list. */
.scanner-workspace{min-width:0}.scanner-side-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:14px}.scanner-side-tabs .btn{min-width:0;padding:10px 5px;font-size:13px;min-height:42px}.scanner-card-preview{border:1px solid #e5cbd1;border-left:4px solid #b41e30;border-radius:12px;background:#fff;overflow:hidden;margin:0 0 12px;min-height:180px;display:grid;place-items:center}.scanner-card-preview img{width:100%;max-height:280px;object-fit:contain;display:block}.scanner-card-placeholder{padding:32px 20px;min-height:200px;display:grid;align-content:center;gap:12px;width:100%;color:#313139}.scanner-card-placeholder b{font-size:21px}.scanner-card-placeholder span{font-size:14px;color:#747581;line-height:1.5}.scanner-photo-actions{display:flex;gap:8px;margin-bottom:14px}.scanner-photo-actions .btn{min-height:38px;font-size:13px}.scanner-save-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.scanner-save-actions .btn{min-height:44px;padding:11px 8px;min-width:0;font-size:14px}.capture-status{margin:12px 0;line-height:1.5}.capture-fields{margin:12px 0 20px}.capture-fields .field{min-width:0}.capture-fields .field input,.capture-fields .field textarea{min-width:0;max-width:100%;font-size:16px}.scanner-workspace>.hint{line-height:1.5}.scanner-samples{margin:22px 0 0;max-width:980px;border-top:1px solid #dedee5;padding-top:16px}.scanner-samples>summary{font-size:14px;font-weight:650;cursor:pointer}.scanner-samples[open]>summary{margin-bottom:18px}.held-card-actions{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.held-card-info{margin:20px 0}.held-card-info .field>div{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}.held-card-photos{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px}.held-card-photos figure{margin:0;min-width:0}.held-card-photos img{display:block;width:100%;max-height:300px;object-fit:contain;border:1px solid #ddd;border-radius:8px}.held-card-photos figcaption{font-size:12px;color:#747581;margin-top:8px}.scanner-workspace .toolbar{margin-bottom:14px}.scanner-workspace .toolbar .muted{font-size:13px}
@media(max-width:520px){.scanner-workspace .capture-fields{grid-template-columns:minmax(0,1fr)}.held-card-actions .btn{flex:1 1 42%;font-size:14px;min-height:44px}.scanner-save-actions .btn{font-size:13px}.scanner-side-tabs{gap:6px}}

.scan-numbers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;grid-column:1/-1}
.scan-numbers>div{min-width:0}
.scan-numbers [data-dial]:not(:empty){font-size:14px;padding:8px 0;overflow-wrap:anywhere}
.capture-fields #current-address{grid-column:1/-1;justify-self:start}

/* The first heading and action row occupy the same position on every workspace page. */
html { scrollbar-gutter: stable; }
.workspace-title {
  margin: 0 0 18px;
  font-size: 1.8125rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.8px;
}
.workspace-actions {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 8px;
  margin: 0 0 14px;
}
.workspace-actions > .btn,
.workspace-actions > .select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 4px 6px;
  font-family: inherit;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  border-radius: 10px;
  overflow-wrap: normal;
}
.workspace-actions > .select {
  padding-inline: 8px 24px;
  text-overflow: ellipsis;
}
.workspace-actions > :focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.record-search {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}
.today-panel {
  min-width: 0;
  padding: clamp(8px, 2vw, 16px);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.today-panel > .workspace-actions { margin: 0 0 12px; }
.today-panel .feed-section-title { margin-top: 12px; }
.today-panel .feed-upcoming + section { margin-top: 18px; }
.today-panel .todo .info { min-width: 0; overflow-wrap: anywhere; }
.today-panel .todo .due { white-space: normal; text-align: right; }
.today-panel .card.panel { margin: 0; }
.history-options { margin-bottom: 8px; font-size: 13px; }
.history-options summary { padding-block: 8px; cursor: pointer; }
.history-options .activity-quick-actions { margin: 10px 0; }
.task-filter-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.task-filter-panel .input, .task-filter-panel .select { flex: 1 1 130px; min-width: 0; }
.task-filter-panel[hidden], .task-delete[hidden] { display: none; }
.task-delete { margin-inline-end: auto; }
@media (max-width: 420px) {
  .modal .task-edit-footer { flex-wrap: nowrap; gap: 6px; padding-inline: 10px; }
  .task-edit-footer > .btn { padding: 8px 10px; min-height: 44px; min-width: 0; }
}
.modal-body input:is([type=date],[type=time],[type=datetime-local]) {
  box-sizing: border-box;
  width: 100%;
  min-inline-size: 0;
  max-inline-size: 100%;
  -webkit-min-logical-width: 0;
}
.record-search .search { width: 100%; }
.record-search .muted { font-size: .8125rem; }
.record-search .input, .mobile-search-bar { min-height: 44px; }
.mobile-search-bar { margin: 0 0 16px; border: 1px solid var(--line); }
@media (max-width: 480px) {
  .workspace-title { font-size: 1.375rem; }
}
@media (max-width: 440px) {
  .workspace-sections.with-lists {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
