@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--navy:#101D37;--navy2:#162544;--ink:#1F2B45;--muted:#8190A5;--blue:#3C67D7;--blue-dark:#2755CE;--blue-soft:#EDF2FF;--bg:#F5F7FB;--line:#E7EBF2;--white:#fff;--shadow:0 3px 16px #0b21450a;--radius:12px}*{box-sizing:border-box}body{margin:0;background:var(--bg);font-family:'DM Sans','Inter',Arial,sans-serif;color:var(--ink);font-size:13px}h1,h2,h3,p{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.35;cursor:not-allowed}input,textarea,select{outline:none}input:focus,textarea:focus,select:focus{border-color:#7896e6!important;box-shadow:0 0 0 3px #426ed91a}a{color:inherit;text-decoration:none}.hidden{display:none!important}.muted{color:var(--muted)}.small{font-size:11px}.eyebrow{font:800 10px 'Manrope',sans-serif;letter-spacing:.14em;color:#5275BD}.eyebrow.light{color:#88A8F6}.btn{height:36px;padding:0 13px;border:1px solid transparent;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:700;white-space:nowrap;background:transparent;transition:.15s ease;color:var(--ink)}.btn:hover{filter:brightness(.98)}.btn.primary{background:var(--blue);color:white;box-shadow:0 3px 7px #2553cc22}.btn.primary:hover{background:var(--blue-dark)}.btn.outline{border-color:#DEE4EE;background:#fff;color:#43516A}.btn.sm{height:31px;padding:0 10px;font-size:11px}.btn.full{width:100%}.icon-btn{background:transparent;border:0;border-radius:7px;min-width:31px;height:31px;color:#65738C;font-size:20px;display:inline-flex;justify-content:center;align-items:center}.icon-btn:hover{background:#EDEFF6}.text-btn{border:0;background:none;color:#718098;font-size:12px;font-weight:700}.text-btn:hover{color:var(--blue)}.badge{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:6px;font-size:10px;font-weight:700;white-space:nowrap;background:#EFF3F9;color:#62728C}.dot{width:6px;height:6px;display:inline-block;border-radius:50%;flex:none}.error-text{color:#CD4B56;font-size:12px;min-height:17px}.workspace{min-height:100vh;display:flex}.sidebar{width:233px;flex:none;background:var(--navy);color:#D3DCEF;min-height:100vh;display:flex;flex-direction:column;position:sticky;top:0;height:100vh;transition:width .2s;z-index:20}.brand{display:flex;align-items:center;gap:11px}.brand-mark{width:35px;height:35px;background:linear-gradient(135deg,#618CF8,#2757D6);border-radius:11px;display:flex;align-items:center;justify-content:center;font:800 22px 'Manrope';color:white;position:relative}.brand-mark span{position:absolute;font-size:9px;top:3px;right:4px;color:#fff}.brand strong{font:800 16px 'Manrope';letter-spacing:.09em;display:block}.brand small{display:block;letter-spacing:.15em;font-size:8px;color:#8E9FB9;font-weight:800;margin-top:2px}.brand-side{height:80px;margin:0 18px 20px;border-bottom:1px solid #273757}.collapse-btn{margin-left:auto;color:#8698B7;font-size:16px;min-width:22px}.collapse-btn:hover{background:#21314F}.nav-heading{font-size:9px;letter-spacing:.16em;font-weight:800;color:#647694;margin:0 24px 10px}.nav-heading-lower{margin-top:30px}.sidebar nav{padding:0 10px}.nav-link{width:100%;height:42px;display:flex;align-items:center;gap:13px;border:0;background:transparent;color:#A9BAD2;text-align:left;padding:0 14px;border-radius:8px;font-weight:600;font-size:12px;margin:3px 0;position:relative}.nav-link:hover{background:#1C2C49;color:#fff}.nav-link.active{background:#294A92;color:#fff}.nav-link.active:before{content:'';position:absolute;left:0;top:9px;bottom:9px;width:3px;background:#8CAFFF;border-radius:2px}.nav-symbol{width:18px;text-align:center;font-size:19px;opacity:.86}.nav-count{margin-left:auto;font-size:10px;background:#ffffff20;padding:2px 6px;border-radius:5px}.side-bottom{margin-top:auto;padding:12px 14px 18px}.support-card{background:#1B2B4B;border:1px solid #314264;border-radius:11px;padding:13px;margin-bottom:18px;position:relative}.support-card>span{color:#83A7FF;font-size:21px}.support-card strong{display:block;font-size:11px;margin:5px 0 4px;color:#DAE4FB}.support-card p{font-size:10px;line-height:1.6;color:#879CB9}.profile{width:100%;display:flex;align-items:center;gap:10px;text-align:left;padding:8px 4px;background:transparent;border:0;border-top:1px solid #2A3B58;color:white}.profile-avatar,.top-avatar{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#D8E5FD;color:#3A68B5;font-weight:800;flex:none}.profile-text{display:flex;flex-direction:column;gap:3px;flex:1}.profile-text strong{font-size:11px}.profile-text small{font-size:10px;color:#7E93AE;text-transform:capitalize}.signout{font-size:18px;color:#91A3BB}.sidebar.collapsed{width:69px}.sidebar.collapsed .brand-side{margin:0 15px 22px}.sidebar.collapsed .brand-caption,.sidebar.collapsed .nav-heading,.sidebar.collapsed .nav-label,.sidebar.collapsed .nav-count,.sidebar.collapsed .support-card,.sidebar.collapsed .profile-text,.sidebar.collapsed .signout,.sidebar.collapsed .collapse-btn{display:none}.sidebar.collapsed .nav-link{padding:0;justify-content:center}.sidebar.collapsed .nav-symbol{font-size:20px}.sidebar.collapsed .profile{justify-content:center}.shell{flex:1;min-width:0}.topbar{height:67px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 27px;position:sticky;top:0;z-index:15}.top-left,.top-actions{display:flex;align-items:center;gap:14px}.top-left{color:#71819A;font-size:12px}.breadcrumb-sep{color:#CAD3E2}.breadcrumb-current{font-weight:800;color:#2A354A}.top-actions{gap:12px}.global-search-wrap{width:310px;position:relative;display:flex;align-items:center;background:#F5F7FA;border:1px solid #E8ECF2;border-radius:8px;height:36px}.global-search-wrap input{border:0;background:transparent;padding:0 43px 0 33px;flex:1;width:100%;font-size:11px}.search-icon{font-size:22px;color:#8C9AAD;position:absolute;left:10px;top:2px}.global-search-wrap kbd{position:absolute;right:9px;top:8px;background:#E5EAF2;color:#9AA5B5;font-size:10px;padding:3px 5px;border-radius:4px;font-family:inherit}.global-results{position:absolute;top:41px;left:0;width:360px;z-index:100;background:white;border:1px solid var(--line);box-shadow:0 12px 36px #09193d30;border-radius:9px;max-height:320px;overflow:auto}.global-result{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;background:white;border:0;width:100%;text-align:left;gap:5px}.global-result:hover{background:#F5F7FB}.notification-btn{position:relative;font-size:22px}.notification-btn span{position:absolute;right:6px;top:6px;width:7px;height:7px;border-radius:50%;background:#FA7659;border:2px solid white;display:none}.notification-btn span.show{display:block}.top-avatar{width:30px;height:30px;font-size:12px}.mobile-toggle{display:none}.content{padding:29px 29px 60px;max-width:1800px;margin:auto}.page-title-row{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:21px}.page-title-row h1{font:800 24px 'Manrope';letter-spacing:-.035em;margin:7px 0 5px;color:#1E2B45}.page-subtitle{color:#8996A8;font-size:12px}.title-count{font:700 11px 'DM Sans';border:1px solid #DAE3F2;background:white;color:#5D769C;border-radius:5px;vertical-align:middle;padding:3px 7px;margin-left:5px}.page-actions{display:flex;align-items:center;gap:8px}.kpi-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:20px}.kpi{background:white;border:1px solid #E9EDF3;box-shadow:var(--shadow);border-radius:11px;padding:17px 18px;display:flex;align-items:center;justify-content:space-between;min-width:0}.kpi-label{font-size:11px;color:#8592A4;font-weight:600}.kpi-value{font:800 23px 'Manrope';margin:8px 0 4px;letter-spacing:-.045em}.kpi-note{font-size:10px;color:#9DA7B6}.kpi-icon{width:40px;height:40px;border-radius:11px;background:var(--blue-soft);color:var(--blue);display:flex;justify-content:center;align-items:center;font-size:21px;flex:none}.kpi:nth-child(2) .kpi-icon{background:#FFF5E6;color:#D69B45}.kpi:nth-child(3) .kpi-icon{background:#E9F7EF;color:#339B74}.kpi:nth-child(4) .kpi-icon{background:#F0EDFE;color:#8064CC}.data-panel{background:#fff;border:1px solid #E9EDF3;border-radius:11px;box-shadow:var(--shadow);overflow:hidden}.panel-top{display:flex;justify-content:space-between;align-items:center;padding:17px 18px;border-bottom:1px solid #EDF0F6;gap:15px}.panel-title{display:flex;align-items:center;gap:12px}.panel-title strong,.panel-heading{font:800 13px 'Manrope';color:#2B3850}.panel-top-right{display:flex;gap:7px}.compact-select{height:31px;min-width:125px;max-width:210px;border:1px solid #E3E8F0;background:white;color:#65748B;padding:0 10px;border-radius:7px;font-size:11px;font-weight:600;cursor:pointer}.filter-toolbar{display:flex;align-items:center;gap:8px;padding:13px 17px;border-bottom:1px solid #F0F2F6;flex-wrap:wrap}.table-search-wrap{position:relative;flex:1;min-width:245px}.table-search-wrap input{width:100%;height:34px;padding:0 12px 0 33px;border:1px solid #E2E7EF;background:white;border-radius:7px;font-size:11px;color:#354560}.table-search-wrap .search-icon{top:3px}.filter-control{min-width:116px;max-width:150px;height:34px}.filter-toolbar .btn{height:34px}.filter-chips{padding:10px 17px;display:flex;align-items:center;gap:7px;border-bottom:1px solid #F2F3F6;flex-wrap:wrap}.chip{background:#F7F8FB;border:1px solid transparent;padding:6px 10px;border-radius:6px;color:#78869A;font-size:11px;font-weight:700}.chip:hover{color:var(--blue)}.chip.selected{background:#EBF1FF;color:var(--blue)}.filter-spacer{flex:1}.sort-select{max-width:134px}.counter{display:inline-flex;align-items:center;justify-content:center;background:#DDE8FF;color:#315EC3;width:17px;height:17px;border-radius:50%;font-size:9px}.table-scroll{overflow-x:auto}.leads-table{border-collapse:collapse;width:100%;white-space:nowrap}.leads-table th{background:#FBFCFE;font-weight:800;letter-spacing:.035em;font-size:9px;text-align:left;padding:13px 16px;color:#98A5B6;border-bottom:1px solid #EEF0F4}.leads-table td{padding:12px 16px;border-bottom:1px solid #F0F2F6;font-size:11px;color:#65738B}.leads-table tbody tr{cursor:pointer;transition:background .1s}.leads-table tbody tr:hover{background:#F9FAFF}.leads-table tbody tr:last-child td{border-bottom:0}.lead-name{display:flex;gap:10px;align-items:center}.lead-avatar{width:30px;height:30px;display:flex;align-items:center;justify-content:center;background:#E9F0FE;border-radius:9px;font:800 10px 'Manrope';color:#5077C4}.lead-name strong{font-size:11px;color:#263550;font-weight:800;display:block}.lead-name small{display:block;margin-top:3px;color:#9BA5B4;font-size:10px}.tag{display:inline-flex;align-items:center;gap:6px;border-radius:6px;padding:5px 7px;background:#F4F5F8;color:#6A7890;font-weight:700;font-size:10px}.tag.stage-tag{background:color-mix(in srgb,var(--tagcolor) 12%,white);color:var(--tagcolor)}.tag.priority-High,.tag.priority-Urgent{background:#FFF0ED;color:#D76557}.tag.priority-Low{background:#EFF4F7;color:#8A98A9}.tag.priority-Medium{background:#FFF7E8;color:#B88637}.owner-cell{display:flex;align-items:center;gap:7px}.mini-avatar{width:23px;height:23px;display:flex;align-items:center;justify-content:center;background:#E8ECF7;color:#6C7F9E;border-radius:50%;font-weight:800;font-size:9px}.align-right{text-align:right!important}.value-cell{font-weight:800;color:#32425A!important}.follow-overdue{color:#D65F61;font-weight:700}.table-footer{display:flex;justify-content:space-between;align-items:center;padding:13px 17px;border-top:1px solid #EDF0F6;color:#9AA6B5;font-size:10px}.pagination{display:flex;align-items:center;gap:10px;color:#586C87;font-size:11px;font-weight:700}.pagination select{border:1px solid #E8ECF2;background:white;border-radius:6px;padding:6px;color:#71819A;font-size:10px}.pagination .icon-btn{font-size:23px}.empty-state{padding:50px 20px;text-align:center;color:#8190A3}.empty-state strong{display:block;font-size:14px;color:#44546C;margin-bottom:6px}.padding-panel{padding:20px}.overview-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:17px;margin-bottom:19px}.panel-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.stage-bars,.source-mix{display:flex;flex-direction:column;gap:18px}.bar-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:7px;color:#66758F;font-size:11px}.bar-head strong{color:#35435F}.bar-track{height:8px;background:#F2F4F9;border-radius:8px;overflow:hidden}.bar-fill{height:100%;border-radius:8px;min-width:2px}.source-row{display:grid;grid-template-columns:120px 1fr 28px;gap:11px;align-items:center;font-size:11px;color:#65748C}.source-icon{display:flex;gap:7px;align-items:center}.source-icon .dot{width:8px;height:8px;background:#5B7CDD}.kanban{display:flex;gap:14px;overflow-x:auto;align-items:flex-start;padding:2px 0 25px}.kanban-col{width:253px;min-width:253px;background:#EFF2F8;border:1px solid #E5EAF2;border-radius:12px;min-height:320px;padding:11px}.kanban-head{display:flex;justify-content:space-between;align-items:center;padding:5px 3px 13px;font-weight:800}.kanban-count{background:white;color:#7A879A;border-radius:5px;padding:2px 6px;font-size:10px}.kanban-card{padding:12px;border:1px solid #E4EAF3;background:white;border-radius:9px;box-shadow:0 2px 7px #1a36680a;margin-bottom:10px;cursor:grab}.kanban-card strong{font-size:11px}.kanban-card small{font-size:10px;color:#95A1B2}.kanban-card footer{display:flex;justify-content:space-between;margin-top:11px;align-items:center;color:#75849A}.kanban-col.drag-over{outline:2px dashed #6A8DDF;outline-offset:-5px}.settings-grid{display:grid;grid-template-columns:1.6fr 1fr;gap:18px}.stage-setting-row{display:grid;grid-template-columns:1fr auto auto;gap:12px;align-items:center;padding:13px 0;border-bottom:1px solid var(--line)}.stage-setting-row:last-child{border-bottom:0}.stage-setting-name{display:flex;align-items:center;gap:9px;font-weight:700}.stage-setting-name .dot{width:11px;height:11px}.setting-meta{font-size:10px;color:#94A1B0;margin-top:3px}.stage-setting-row button{border:1px solid #E7EAF0;background:white;color:#53637A;border-radius:6px;padding:5px 9px;font-size:10px}.settings-form form,.form-grid{display:grid;gap:13px}.settings-form label,.drawer label,.dialog-box label,.login-card label{display:flex;flex-direction:column;gap:7px;color:#52617A;font-size:11px;font-weight:700}.settings-form input:not([type=checkbox]),.settings-form select,.drawer input,.drawer select,.drawer textarea,.dialog-box input,.dialog-box select,.dialog-box textarea,.login-card input{width:100%;height:37px;border:1px solid #DEE5EF;border-radius:7px;background:white;color:#2E3F5B;padding:0 10px;font-size:12px}.settings-form input[type=color]{padding:3px;height:37px}.settings-form .check-row{flex-direction:row;align-items:center}.settings-form .check-row input{width:auto}.settings-form p{margin-top:12px;line-height:1.7}.drawer{position:fixed;right:0;top:0;height:100vh;width:min(520px,100vw);z-index:105;background:white;box-shadow:-12px 0 50px #0b183b23;display:flex;flex-direction:column}.drawer-head{display:flex;align-items:center;justify-content:space-between;padding:24px;border-bottom:1px solid var(--line)}.drawer-head h2{font:800 21px 'Manrope';margin-top:6px}.drawer-body{padding:22px 24px;overflow-y:auto;flex:1;display:flex;flex-direction:column;gap:20px}.drawer-foot{padding:17px 24px;border-top:1px solid var(--line);display:flex;gap:9px;justify-content:flex-end;background:white}.backdrop{position:fixed;inset:0;background:#0c1a32a8;z-index:101}.drawer .subtitle{font-size:11px;color:#8290a4}.record-head{display:flex;justify-content:space-between;align-items:flex-start;padding:25px 25px 20px;border-bottom:1px solid var(--line)}.record-title h2{font:800 22px 'Manrope';letter-spacing:-.03em;margin:6px 0}.record-title p{font-size:11px;color:#8995A9}.record-actions{display:flex;gap:6px;padding:14px 24px;border-bottom:1px solid var(--line)}.record-tabs{display:flex;padding:0 24px;border-bottom:1px solid var(--line)}.record-tab{padding:13px 16px;background:transparent;border:0;border-bottom:2px solid transparent;color:#8591A3;font-size:12px;font-weight:700}.record-tab.active{color:var(--blue);border-bottom-color:var(--blue)}.record-content{flex:1;overflow-y:auto;padding:24px}.record-section-title{font-size:10px;letter-spacing:.1em;color:#9EABB9;font-weight:800;margin:3px 0 13px}.record-field-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px 15px;margin-bottom:26px}.record-field small{font-size:10px;color:#9BA5B5;display:block;margin-bottom:5px}.record-field strong{font-size:12px;color:#3B4961;overflow-wrap:anywhere}.record-followup{padding:15px;background:#F4F7FC;border-radius:9px;margin-bottom:22px;display:flex;gap:9px;align-items:center;justify-content:space-between}.record-followup input{width:170px!important}.activity-item{padding:0 0 18px 20px;border-left:1px solid #E5EAF2;position:relative;margin-left:6px}.activity-item::before{content:'';position:absolute;left:-5px;top:2px;width:9px;height:9px;background:#5C82DD;border-radius:50%;border:2px solid #fff}.activity-item strong{font-size:11px}.activity-item p{font-size:11px;color:#65748B;line-height:1.6;margin:5px 0}.activity-item small{font-size:10px;color:#A0AABA}.activity-form{display:flex;flex-direction:column;gap:9px;margin-bottom:20px}.activity-form textarea{height:92px!important;padding:10px!important;resize:vertical}.conditions{display:flex;flex-direction:column;gap:12px}.condition{border:1px solid #E9EDF3;border-radius:9px;background:#FAFBFD;padding:12px;display:grid;gap:9px}.condition-top{display:flex;justify-content:space-between;align-items:center;font-weight:700}.condition-control-row{display:grid;grid-template-columns:1fr 1fr;gap:7px}.condition-remove{font-size:12px;color:#C86065;border:0;background:none}.filter-drawer .drawer-body>p{line-height:1.65}.dialog-overlay{position:fixed;inset:0;background:#15213999;z-index:120;display:flex;align-items:center;justify-content:center;padding:20px}.dialog-box{width:min(420px,100%);background:white;border-radius:13px;box-shadow:0 30px 90px #0a193e33;padding:25px;display:flex;flex-direction:column;gap:16px}.dialog-box h2{font:800 20px 'Manrope'}.dialog-box p{font-size:12px;color:#7E8DA3;line-height:1.6}.dialog-actions{display:flex;gap:9px;justify-content:flex-end}.toast-stack{position:fixed;right:20px;bottom:20px;z-index:200;display:flex;flex-direction:column;gap:8px}.toast{background:#193153;color:white;padding:11px 15px;border-radius:9px;box-shadow:0 6px 20px #18294c22;max-width:390px;line-height:1.5}.toast.error{background:#A9414D}.login-screen{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:#fff}.login-panel{padding:45px 65px;display:flex;flex-direction:column}.hero-panel{background:radial-gradient(ellipse at 90% 95%,#314FA3,transparent 40%),linear-gradient(150deg,#0F1B36,#1A2D5C);color:white}.brand-login small{color:#86A0D4}.hero-copy{margin:auto 0;max-width:490px}.hero-copy h1{font:800 clamp(35px,3.3vw,60px)/1.16 'Manrope';letter-spacing:-.045em;margin:18px 0 23px}.hero-copy em{font-style:normal;color:#8DADFF}.hero-copy p{color:#AEBFDD;font-size:15px;line-height:1.9;max-width:420px}.hero-pills{display:flex;flex-wrap:wrap;gap:9px;margin-top:32px}.hero-pills span{font-size:11px;color:#C6D6F1;border:1px solid #405B8C;background:#243C69;padding:9px 10px;border-radius:8px}.hero-footer{display:flex;justify-content:space-between;color:#8EA5CC;font-size:11px}.form-panel{justify-content:center;align-items:center}.login-card{width:min(390px,100%);display:flex;flex-direction:column;gap:14px}.login-card h2{font:800 26px 'Manrope';line-height:1.3;letter-spacing:-.03em;margin-top:5px}.login-card .muted{line-height:1.6;margin-bottom:15px}.login-card label{font-size:12px}.login-card input{height:44px}.login-card .btn{height:45px}.demo-hint{margin-top:12px;padding:15px;border:1px solid #E8EDF5;border-radius:9px;display:flex;flex-direction:column;gap:6px;font-size:10px;color:#7B8AA3;background:#FAFBFD}.demo-hint strong{color:#526482}.no-access{padding:40px;text-align:center;color:#75869E}.owner-select{height:34px;border:1px solid #E6EAF2;border-radius:7px;max-width:195px}.status-text{font-size:10px;color:#9BA9BC}.mobile-toggle{display:none}
@media(max-width:1300px){.content{padding:23px}.sidebar{width:205px}.global-search-wrap{width:260px}.filter-control{min-width:104px;max-width:130px}.leads-table td,.leads-table th{padding-left:11px;padding-right:11px}}@media(max-width:1050px){.kpi-row{grid-template-columns:repeat(2,minmax(0,1fr))}.global-search-wrap{width:235px}.sidebar{width:185px}.page-title-row{flex-wrap:wrap}.filter-toolbar{gap:7px}.overview-grid,.settings-grid{grid-template-columns:1fr}}@media(max-width:750px){.sidebar{position:fixed;left:-235px;width:233px;box-shadow:10px 0 25px #0002}.sidebar.mobile-open{left:0}.mobile-toggle{display:inline-flex}.topbar{padding:0 13px}.top-actions{gap:5px}.global-search-wrap{width:40px;transition:width .2s}.global-search-wrap:focus-within{width:185px}.global-search-wrap input{opacity:0}.global-search-wrap:focus-within input{opacity:1}.global-search-wrap kbd{display:none}.add-lead-btn span{display:none}.content{padding:19px 12px}.page-title-row h1{font-size:21px}.page-actions{flex-wrap:wrap}.kpi-row{gap:8px}.kpi{padding:12px}.kpi-value{font-size:20px}.kpi-icon{width:34px;height:34px}.filter-toolbar .table-search-wrap{flex-basis:100%}.top-left .breadcrumb-root,.breadcrumb-sep{display:none}.login-screen{grid-template-columns:1fr}.hero-panel{min-height:300px;padding:28px}.hero-copy h1{font-size:35px}.hero-copy p{font-size:12px}.hero-pills,.hero-footer{display:none}.form-panel{padding:30px 20px}.drawer{width:100vw}}

/* v0.2 task and configuration UX */
.task-inline{display:grid;grid-template-columns:1fr 190px auto;gap:8px;align-items:end;margin:10px 0 24px}.task-inline input{min-width:0}.setting-meta{line-height:1.6}#filter-substage{max-width:160px}@media(max-width:680px){.task-inline{grid-template-columns:1fr}.task-inline button{width:100%}}

.substage-chip{display:inline-flex;align-items:center;margin:3px 4px 3px 0;padding:2px 7px;border:1px solid var(--line);border-radius:6px;font-size:11px;color:var(--blue-dark);background:var(--blue-soft);cursor:pointer}.substage-chip:hover{border-color:var(--blue)}

/* v0.3: Keep original CRM visual system, add accessible restore control. */
.desktop-toggle{display:inline-flex;font-size:16px;margin-right:1px;color:#7F8BA0}
.desktop-toggle:focus-visible,.collapse-btn:focus-visible{outline:3px solid #8CAFFF;outline-offset:2px}
.sidebar.collapsed .brand-side{justify-content:center}
.sidebar.collapsed .brand-mark{flex-shrink:0}
.hierarchy-grid{margin-top:16px}
.hierarchy-hint{margin:-10px 0 14px;line-height:1.65}
.org-row{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #edf0f5;padding:9px 4px}
.org-row:last-child{border-bottom:0}
.org-indent{display:flex;gap:8px;align-items:center;min-width:0}
.org-connector{color:#9ba8bc;flex:none}
.org-label{font-weight:750;font-size:12px;color:#283752}
.org-meta{font-size:10px;color:#8491a5;line-height:1.5}
.org-edit{background:#fff;border:1px solid #E2E7F0;border-radius:6px;padding:5px 9px;color:#576b91;font-weight:700;font-size:10px}
.org-edit:hover{border-color:#89A0E6}
@media(max-width:750px){.desktop-toggle{display:none}}

.task-inline.with-assignee{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.task-inline.with-assignee input[name="title"]{grid-column:1/-1}.task-inline.with-assignee select{min-width:0}.task-inline.with-assignee button{grid-column:1/-1}@media(max-width:680px){.task-inline.with-assignee{grid-template-columns:1fr}.task-inline.with-assignee input[name="title"],.task-inline.with-assignee button{grid-column:1}}

/* v0.4: new controls use the existing density, typography and colors. */
.automation-form{display:grid;gap:12px;max-height:68vh;overflow:auto;padding:2px}
.automation-form select[multiple]{min-height:82px;height:auto;padding:7px}
.automation-check{flex-direction:row!important;align-items:center}
.automation-check input{width:auto!important;height:auto!important}
.duplicate-alert{border:1px solid #f1d6a8;border-radius:8px;background:#fff8ed;padding:10px 12px;color:#855b28;font-size:11px;line-height:1.65}
.duplicate-alert strong{display:block;margin-bottom:5px}
.duplicate-alert a{display:block;color:#375fb4;text-decoration:underline;margin-bottom:3px}
.duplicate-override{display:flex!important;flex-direction:row!important;align-items:center;margin-top:6px;color:#855b28!important}
.duplicate-override input{width:auto!important;height:auto!important}
.notification-list{max-height:52vh;overflow:auto;display:grid;gap:7px}
.notification-line{display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding:10px 12px;background:#f6f8fc;border:1px solid #e8eef7;border-radius:7px;text-align:left;cursor:pointer}
.notification-line strong{font-size:12px}.notification-line span{font-size:11px;color:#687c97}

/* v0.8 — compact SLA priority editor; existing design tokens preserved */
.sla-priority-matrix{display:flex;flex-direction:column;gap:7px;margin:12px 0 16px}
.sla-priority-row{display:grid;grid-template-columns:70px minmax(0,1fr) minmax(0,1fr);gap:10px;align-items:end;padding:8px 10px;border:1px solid var(--line, #dfe5ec);border-radius:9px}
.sla-priority-row strong{align-self:center;font-size:12px}
.sla-priority-row label{font-size:11px;min-width:0}
.sla-priority-row input{width:100%;box-sizing:border-box}
@media(max-width:500px){.sla-priority-row{grid-template-columns:1fr 1fr}.sla-priority-row strong{grid-column:1 / -1}}

/* v1.0 RC1 test fix: keep record and form contents inside the viewport.
   The existing #drawer-content flex item otherwise grows beyond 100vh,
   making Create Lead and Task buttons inaccessible on shorter screens. */
#lead-drawer > #drawer-content { display:flex; flex-direction:column; flex:1; min-height:0; overflow:hidden; }

/* Inbeats direction: full lead workspace, quick-view eye, smart filter groups.
   Intentionally retains Yatriko's established colors, typography and spacing. */
.lead-record-link{border:0;background:none;color:var(--ink,#253450);padding:0;font:inherit;font-size:12px;font-weight:800;text-align:left;cursor:pointer}
.lead-record-link:hover{text-decoration:underline;color:var(--blue,#3867dc)}
.lead-record-link:focus-visible,.lead-preview-btn:focus-visible,.ws-tab:focus-visible,.ws-back:focus-visible{outline:3px solid #8cafff;outline-offset:2px}
.lead-preview-btn{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border:1px solid #e0e8f4;border-radius:8px;background:#fff;color:#7283a0;cursor:pointer}
.lead-preview-btn:hover{background:#eaf0ff;color:#315dc5;border-color:#c6d7fb}
.lead-ws-header{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:13px;gap:10px}
.ws-back{border:0;background:transparent;padding:7px 0 0;color:#4b6dbb;cursor:pointer;font-size:12px;font-weight:800}
.ws-back:hover{text-decoration:underline}.ws-label{font-size:10px;font-weight:750;color:#8b9ab1}
.lead-ws-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;background:#fff;border:1px solid #e6ebf3;border-radius:12px;padding:22px 25px;margin-bottom:16px}
.ws-hero-identity{display:flex;align-items:center;gap:16px;min-width:0}.ws-hero-avatar{width:52px;height:52px;flex:none;display:flex;align-items:center;justify-content:center;background:#e5ecfc;color:#3b68c3;border-radius:12px;font-size:16px;font-weight:850}
.ws-hero-identity h1{font-size:22px;line-height:1.2;margin:0;color:#21304a;font-weight:850;letter-spacing:-.03em}.ws-hero-identity p{font-size:11px;margin:6px 0 8px;color:#8693a7}.ws-hero-tags{display:flex;flex-wrap:wrap;gap:7px;align-items:center}.ws-owner-tag{border:1px solid #e6ebf3;border-radius:7px;padding:4px 8px;font-size:10px;font-weight:750;color:#63728c;background:#f7f9fd}.ws-hero-actions{display:flex;gap:7px;flex-wrap:wrap}
.ws-layout{display:grid;grid-template-columns:minmax(240px,27%) minmax(0,1fr);gap:16px;align-items:start}.ws-side{display:grid;gap:13px;min-width:0}
.ws-card,.ws-main{border:1px solid #e5eaf3;border-radius:12px;background:#fff;box-shadow:0 1px 2px #132b5505}
.ws-card{padding:18px}.ws-card-title{font-size:12px;font-weight:850;color:#293850;margin-bottom:16px;display:flex;align-items:center;gap:6px}
.ws-info{color:#9eabc0;cursor:help}.ws-score-main{display:flex;align-items:center;gap:15px}.ws-score-main>div:last-child{min-width:0}.ws-score-main>div:last-child strong{font-size:13px;color:#2e405b}.ws-score-main p{font-size:10px;line-height:1.55;color:#8491a7;margin:6px 0 0}
.ws-score-circle{--score:0;flex:none;width:88px;height:88px;border-radius:50%;background:conic-gradient(#5279d8 calc(var(--score)*1%),#eaf0f8 0);display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;isolation:isolate}
.ws-score-circle::before{content:'';position:absolute;inset:8px;border-radius:50%;background:white;z-index:-1}.ws-score-circle strong{font-size:26px;color:#223e78;line-height:1.25}.ws-score-circle small{font-size:10px;color:#92a1b5}
.ws-score-details{margin-top:13px;border-top:1px solid #eef1f5;padding-top:12px}.ws-score-details summary{font-size:11px;color:#3865b4;cursor:pointer;font-weight:750}.ws-score-details>div{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px;font-size:10px;color:#687b96}.ws-score-details>div strong{color:#425a7c}.ws-score-details>p{font-size:10px;color:#929bad;line-height:1.6;margin-top:10px}
.ws-identity-list{display:grid;gap:13px}.ws-identity-list .ws-field strong{overflow-wrap:anywhere}.ws-field{display:flex;flex-direction:column;gap:5px;min-width:0}.ws-field span{font-size:10px;color:#91a0b6}.ws-field strong{font-size:12px;font-weight:800;color:#374964;overflow-wrap:anywhere}
.ws-snapshot{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;text-align:center}.ws-snapshot>div{display:grid;gap:4px}.ws-snapshot strong{font-size:18px;color:#283c62}.ws-snapshot small{font-size:9px;color:#9ca7b8}
.ws-main{min-width:0;overflow:hidden}.ws-main-tabs{display:flex;flex-wrap:wrap;gap:3px;overflow-x:auto;padding:0 17px;border-bottom:1px solid #e8edf5}.ws-tab{border:0;border-bottom:2px solid transparent;background:transparent;padding:17px 12px;color:#8390a5;cursor:pointer;font-size:12px;font-weight:800;white-space:nowrap}.ws-tab.selected{color:#315fc8;border-bottom-color:#416ed2}.ws-tab span{font-size:10px;color:#8793a9;background:#f0f3fa;border-radius:12px;padding:2px 6px;margin-left:3px}
.ws-main-body{padding:22px;min-height:390px}.ws-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:20px}.ws-section-heading h2{font-size:16px;color:#233450;margin:0 0 5px}.ws-section-heading p{font-size:11px;color:#8c9bb2;margin:0;line-height:1.6}
.ws-details-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:20px;row-gap:17px;margin:14px 0 26px}.ws-details-grid .ws-field{border-bottom:1px solid #f0f3f8;padding-bottom:10px}
.ws-summary-section{border-top:1px solid #ecf0f5;padding-top:19px;margin-top:10px}.ws-summary-section h3{font-size:11px;font-weight:850;text-transform:uppercase;letter-spacing:.06em;color:#899bb5;margin:0 0 16px}
.ws-edit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ws-edit-grid label,.ws-editor label{display:flex;flex-direction:column;gap:6px;font-size:11px;font-weight:750;color:#566784}.ws-edit-grid select,.ws-edit-grid input,.ws-editor input,.ws-editor select,.ws-editor textarea{width:100%;min-width:0;border:1px solid #dfe7f2;border-radius:8px;background:white;padding:9px 11px;color:#283b59;font-size:12px}.ws-edit-actions{grid-column:1/-1;display:flex;justify-content:flex-end;margin-top:3px}
.ws-editor{display:grid;gap:11px;padding:16px;border:1px solid #e7edf6;border-radius:9px;background:#f9fbff;margin-bottom:20px}.ws-editor textarea{resize:vertical;min-height:86px;line-height:1.5}.ws-task-editor{grid-template-columns:minmax(0,1.3fr) minmax(0,.9fr)}.ws-task-editor .btn{grid-column:1/-1;justify-self:end}.ws-task-editor label:nth-of-type(3){grid-column:1/-1}
.ws-timeline{padding:8px 0}.ws-timeline-row{display:grid;grid-template-columns:20px minmax(0,1fr);gap:8px;padding-bottom:18px}.ws-timeline-dot{height:9px;width:9px;border:2px solid white;box-shadow:0 0 0 1px #b7cafa;background:#6b8adb;border-radius:50%;margin:3px 0 0 4px}.ws-timeline-row>div:last-child{padding:0 0 15px 10px;border-left:1px solid #e5eaf3;margin-left:-23px;padding-left:28px}.ws-timeline-head{display:flex;justify-content:space-between;gap:8px}.ws-timeline-head strong{font-size:11px;color:#344d77}.ws-timeline-head span,.ws-timeline-row small{font-size:10px;color:#9aa7bb}.ws-timeline-row p{font-size:12px;color:#5f728f;line-height:1.65;margin:9px 0 6px;overflow-wrap:anywhere}
.ws-task-list{display:grid;gap:8px}.ws-task{display:flex;align-items:center;gap:11px;padding:11px 12px;border:1px solid #e6ecf4;border-radius:9px}.ws-task-status{font-size:20px;color:#6286d4}.ws-task-status.done{color:#29956a}.ws-task-info{display:grid;flex:1;gap:5px;min-width:0}.ws-task-info strong{font-size:12px;color:#30445d;overflow-wrap:anywhere}.ws-task-info small{font-size:10px;color:#92a0b3}.ws-task-label{font-size:10px;color:#b36d35;font-weight:750}.ws-task-label.is-done{color:#29956a}.ws-task.is-done{background:#fbfcfe}
.record-note{border:1px solid #e8edf6;border-radius:9px;padding:13px 15px;margin-bottom:9px;background:#fff}.record-note-head{display:flex;justify-content:space-between;gap:8px}.record-note strong{font-size:11px;color:#3a4e6e}.record-note time{font-size:10px;color:#98a6ba}.record-note p{font-size:12px;color:#62718b;line-height:1.7;margin:8px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}.ws-legacy-note{background:#f8faff}.ws-empty{border:1px dashed #e0e8f3;border-radius:9px;background:#fbfcff;padding:22px;text-align:center;color:#8c9ab1;font-size:12px}
.filter-group-combine{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 2px;font-size:11px;font-weight:700;color:#687b96}.filter-group-combine select{max-width:150px}.filter-group{border:1px solid #dce5f4;border-radius:10px;padding:12px;background:#f9fbff;margin-top:10px;display:grid;gap:9px}.filter-group-head{display:flex;justify-content:space-between;align-items:center;gap:6px}.filter-group-head strong{font-size:12px;color:#405679}.filter-group-head select{max-width:105px}.condition-value-label[hidden]{display:none}.lead-ws-header .eyebrow{margin-bottom:4px}
@media(max-width:1130px){.ws-layout{grid-template-columns:220px minmax(0,1fr)}.ws-score-circle{width:72px;height:72px}.ws-score-circle strong{font-size:22px}.ws-score-main{gap:10px}.ws-card{padding:13px}}
@media(max-width:860px){.ws-layout{grid-template-columns:1fr}.ws-side{grid-template-columns:repeat(2,minmax(0,1fr))}.ws-side .ws-card:last-child{grid-column:1/-1}}
@media(max-width:620px){.lead-ws-hero{padding:16px}.ws-hero-actions{width:100%}.ws-hero-actions .btn{flex:1}.ws-side{grid-template-columns:1fr}.ws-side .ws-card:last-child{grid-column:auto}.ws-main-tabs{padding:0 8px;flex-wrap:nowrap}.ws-main-body{padding:15px}.ws-details-grid,.ws-edit-grid,.ws-task-editor{grid-template-columns:1fr}.ws-section-heading{flex-wrap:wrap}.ws-task{flex-wrap:wrap}.ws-hero-avatar{width:42px;height:42px}.ws-hero-identity h1{font-size:19px}}

/* Account-security entry reuses existing top-avatar component without a layout redesign. */
button.top-avatar {cursor:pointer;border:0;display:inline-flex;align-items:center;justify-content:center} 
button.top-avatar:focus-visible {outline:2px solid #16a6a1;outline-offset:3px}

/* RC5 navigation polish — retains existing Inbeats type, color and table layouts. */
.header-popover-anchor{position:relative;display:flex;align-items:center}
.settings-trigger{display:inline-flex;align-items:center;justify-content:center;border-radius:10px;color:#60718E;transition:background .18s,color .18s}
.settings-trigger:hover,.settings-trigger[aria-expanded="true"]{background:#edf2ff;color:var(--blue)}
.settings-gear{transition:transform .35s cubic-bezier(.2,.8,.2,1)}
.settings-trigger:hover .settings-gear{transform:rotate(50deg)}
@media(prefers-reduced-motion:reduce){.settings-gear{transition:none}.settings-trigger:hover .settings-gear{transform:none}}
.header-popover{position:absolute;right:0;top:calc(100% + 15px);width:294px;max-width:min(92vw,340px);max-height:min(70vh,630px);overflow-y:auto;z-index:110;border:1px solid #e5eaf2;background:white;border-radius:13px;box-shadow:0 18px 60px #15274624;padding:7px}
.header-popover.hidden{display:none}
.popover-heading{padding:13px 13px 9px;display:flex;flex-direction:column;gap:3px}.popover-heading strong{font-size:14px}.popover-heading small,.popover-identity small{color:#8190A5;font-size:11px;overflow-wrap:anywhere}
.popover-group{padding:10px 7px;border-top:1px solid #eef0f5}.popover-group-title{font-size:9px;letter-spacing:.1em;font-weight:800;color:#899AB3;display:block;padding:4px 7px 8px}
.popover-action{width:100%;display:flex;justify-content:space-between;align-items:center;gap:12px;text-align:left;padding:10px 9px;border:0;border-radius:8px;color:#405574;background:transparent;font-weight:650;cursor:pointer;font-size:12px}.popover-action:hover,.popover-action:focus-visible{background:#eef3fd;color:#2d60c7}.popover-action span:last-child{color:#9BA7BC}
.popover-identity{display:flex;align-items:center;gap:11px;padding:14px 12px}.popover-identity>div{display:flex;flex-direction:column;gap:4px;min-width:0}.popover-identity strong{font-size:13px}.sign-out-item{color:#b74652}
.overview-welcome{background:linear-gradient(120deg,#f5f8ff,#fff 77%);border:1px solid #e6ecf8;padding:20px 24px;border-radius:13px;gap:14px;margin-bottom:16px}
.travel-details{background:#f8faff;border:1px solid #e7edf9;padding:13px;border-radius:10px}
.travel-details summary{cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:10px;color:#2b4061;font-size:12px;list-style:none}
.travel-details summary span{color:#8796ab;font-size:10px}
.travel-details summary::-webkit-details-marker{display:none}
.travel-inputs{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-top:17px}
.travel-inputs label:has(textarea){grid-column:1 / -1}
.travel-inputs textarea{height:auto!important;min-height:78px;padding:10px!important;resize:vertical}
body.compact-mode .leads-table td{padding-top:7px;padding-bottom:7px}
@media(max-width:650px){.travel-inputs{grid-template-columns:1fr}.travel-inputs label:has(textarea){grid-column:auto}.overview-welcome{padding:15px}.header-popover{right:-15px;top:calc(100% + 11px)}}


/* RC5.1 UI refinement: a real configuration hub, not a duplicate sidebar. */
#settings-menu.settings-popover{width:376px;max-width:min(94vw,376px);padding:0;max-height:min(78vh,690px);overflow-y:auto;border-radius:15px;border-color:#dfe6f2;box-shadow:0 24px 72px rgba(22,39,77,.20),0 3px 12px rgba(22,39,77,.05)}
#settings-menu .settings-hub-head{padding:17px 18px 15px;display:flex;align-items:center;gap:11px;background:linear-gradient(122deg,#f1f5ff,#fff 90%);border-bottom:1px solid #e7ecf5}
.settings-hub-emblem{width:36px;height:36px;border-radius:10px;background:#e4ecff;color:#3663d3;display:flex;align-items:center;justify-content:center;flex:none}
.settings-hub-head>div{display:grid;gap:3px;flex:1;min-width:0}.settings-hub-head strong{font-size:14px;color:#1e304f}.settings-hub-head small{font-size:11px;color:#8190a9}
.settings-hub-count{font-size:10px;font-weight:800;color:#4d6cb3;background:#eaf0ff;border-radius:7px;padding:5px 8px}
.settings-hub-search{display:flex;align-items:center;gap:9px;margin:13px 15px 9px;padding:0 11px;height:37px;background:#f7f9fd;border:1px solid #e7ecf5;border-radius:8px;color:#8b9bb4}
.settings-hub-search:focus-within{border-color:#7798e8;box-shadow:0 0 0 3px #426ed912}
.settings-hub-search input{width:100%;height:100%;border:0;background:transparent;color:#273a5a;font-size:12px;box-shadow:none!important;outline:none}
.settings-hub-sections{padding:0 10px 8px}.settings-hub-section{padding:8px 4px 9px}.settings-hub-section+.settings-hub-section{border-top:1px solid #edf1f8}
.settings-hub-section h3{font:800 9px 'Manrope',sans-serif;letter-spacing:.12em;color:#8092af;padding:6px 8px 9px}
.settings-hub-item{width:100%;border:0;background:transparent;text-align:left;display:flex;align-items:center;gap:11px;padding:10px 9px;border-radius:9px;color:#395175;transition:background .16s,color .16s}
.settings-hub-item:hover,.settings-hub-item:focus-visible{background:#eff4ff;color:#2555ba;outline:none}
.settings-hub-item-icon{width:36px;height:36px;flex:none;display:flex;align-items:center;justify-content:center;border-radius:10px;background:#f3f6fc;border:1px solid #e9eef8;color:#5573b5}
.settings-hub-item:hover .settings-hub-item-icon{background:#e5eeff;color:#3564cd;border-color:#cfddfa}
.settings-hub-item-copy{display:grid;gap:4px;flex:1;min-width:0}.settings-hub-item-copy strong{font-size:12px;font-weight:750}.settings-hub-item-copy small{font-size:10px;font-weight:500;line-height:1.35;color:#8291a9}
.settings-hub-chevron{display:flex;align-items:center;color:#aab7cc}.settings-hub-chevron svg{width:14px;height:14px}
.settings-hub-footer{padding:12px 16px;border-top:1px solid #eaf0f8;background:#f9fbff;color:#7d8ba4;font-size:10px;display:flex;align-items:center;gap:7px}
.settings-hub-indicator{width:7px;height:7px;background:#41a982;border-radius:50%}
.settings-hub-no-access{padding:24px 18px;display:grid;justify-items:center;gap:9px;text-align:center;color:#667c9e}.settings-hub-no-access strong{font-size:12px}.settings-hub-no-access small{font-size:11px;line-height:1.5;max-width:245px}
.settings-hub-empty{padding:15px;text-align:center;font-size:11px;color:#8797ad}
.settings-trigger{height:35px;width:35px;color:#5973a4;background:#f5f7fc;border:1px solid #e9eef8}
.settings-trigger:hover{background:#edf2ff;border-color:#dbe6fa}.settings-trigger[aria-expanded="true"]{background:#e6eeff;color:#315ec6;border-color:#cddcf6}
.settings-trigger[aria-expanded="true"] .settings-gear{transform:rotate(90deg)}
.settings-trigger:focus-visible{outline:2px solid #4d75d5;outline-offset:2px}
@media(prefers-reduced-motion:reduce){.settings-trigger[aria-expanded="true"] .settings-gear{transform:none}.settings-hub-item{transition:none}}
/* Denser, more actionable overview; no extra queries or fabricated revenue metrics. */
#view-overview .overview-welcome{background:linear-gradient(110deg,#eff4ff 0%,#f9fbff 59%,#fff 100%);border-color:#dfe8fa;padding:22px 25px;min-height:112px;box-shadow:0 5px 20px rgba(46,93,170,.035)}
#view-overview .overview-welcome h1{font-size:26px;letter-spacing:-.043em}
#view-overview .overview-pipeline-btn{box-shadow:0 2px 8px #1a35640b}
#view-overview .overview-grid{grid-template-columns:minmax(0,1.18fr) minmax(0,1fr);gap:15px}
#view-overview .overview-grid .data-panel{min-height:0;padding:18px 19px}
#view-overview .overview-grid .panel-heading{margin-bottom:15px}
#view-overview .stage-bars,#view-overview .source-mix{gap:12px}
#view-overview .bar-track{height:7px}
#view-overview .bar-head{margin-bottom:5px}
#view-overview .source-row{grid-template-columns:minmax(100px,120px) minmax(50px,1fr) 25px;gap:9px}
#view-overview .kpi-row{gap:13px;margin-bottom:16px}
#view-overview .kpi{padding:15px 17px}
#view-overview .kpi-value{font-size:22px;margin:5px 0 3px}
.focus-panel{display:flex;align-items:center;gap:24px;padding:17px 19px;min-height:92px}
.focus-heading{display:flex;align-items:center;gap:12px;flex:0 0 236px}
.focus-title-icon{width:37px;height:37px;border-radius:10px;background:#eaf1ff;color:#416dc6;display:flex;align-items:center;justify-content:center;flex:none}
.focus-heading>div{display:grid;gap:5px}.focus-heading strong{font:800 13px 'Manrope',sans-serif}.focus-heading small{color:#8594aa;line-height:1.4;font-size:10px}
.focus-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;flex:1;min-width:0}
.focus-action{display:flex;align-items:center;justify-content:space-between;gap:7px;padding:10px 12px;text-align:left;border:1px solid #e6ecf5;border-radius:9px;background:#f9fbfe;color:#426080;min-width:0}
.focus-action:hover,.focus-action:focus-visible{background:#edf3ff;border-color:#b9cbed;outline:none}
.focus-action>span{display:grid;gap:2px}.focus-action strong{font:800 18px 'Manrope';color:#274472}.focus-action small{font-size:10px;color:#788aa5}.focus-action svg{width:14px;height:14px;color:#94a8c7;flex:none}
.focus-action.needs-attention{border-color:#f2e0cd;background:#fffaf3}.focus-action.needs-attention strong{color:#b87534}
.focus-loading{color:#8996aa;font-size:12px}
@media(max-width:1100px){.focus-panel{flex-direction:column;align-items:stretch;gap:13px}.focus-heading{flex:auto}}
@media(max-width:700px){#view-overview .overview-grid{grid-template-columns:1fr}.focus-actions{grid-template-columns:1fr}.focus-panel{padding:14px}.settings-trigger{height:32px;width:32px}#settings-menu.settings-popover{position:fixed;left:8px;right:8px;top:64px;max-width:none;width:auto;max-height:calc(100vh - 75px)}}


/* RC6 — Travel Analytics Studio (additive; existing CRM shell remains unchanged). */
.analytics-toolbar{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;background:#fff;border:1px solid #e4eaf4;border-radius:12px;padding:14px 15px;margin-bottom:12px}
.analytics-toolbar label{display:grid;gap:5px;font-size:10px;font-weight:800;color:#788ba7;min-width:125px;flex:1 1 120px}
.analytics-toolbar select,.analytics-toolbar input{height:36px;border:1px solid #e0e8f4;background:#fbfcff;border-radius:8px;padding:0 10px;color:#31496f;font-size:12px;min-width:0;width:100%}
.analytics-toolbar select:focus-visible,.analytics-toolbar input:focus-visible{outline:2px solid #7b9cde;outline-offset:1px}
.analytics-toolbar .analytics-destination{flex:1.3 1 150px}
.analytics-toolbar .analytics-apply{height:36px;white-space:nowrap}
.analytics-status{font-size:11px;color:#788aa6;margin:10px 2px 14px;line-height:1.5}
.analytics-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}
.analytics-metric{display:grid;gap:5px;background:#fff;border:1px solid #e4eaf4;border-radius:12px;padding:16px;min-width:0}
.analytics-metric small{font-size:10px;color:#7d8ca6;font-weight:750}.analytics-metric strong{font:800 22px 'Manrope',sans-serif;color:#243a60;line-height:1.25;overflow-wrap:anywhere}
.analytics-metric span{font-size:10px;color:#8999b1;line-height:1.5}
.analytics-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:stretch}
.analytics-panel{padding:16px 18px;min-width:0;min-height:220px}
.analytics-panel-head{display:grid;gap:5px;border-bottom:1px solid #edf1f7;padding-bottom:12px;margin-bottom:14px}
.analytics-panel-head strong{font:800 13px 'Manrope',sans-serif;color:#263957}.analytics-panel-head small{font-size:10px;color:#8a9bb2}
.analytics-bars{display:grid;gap:12px}.analytics-bar-head{display:flex;justify-content:space-between;gap:12px;font-size:11px;color:#566d92;align-items:center}
.analytics-bar-head span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:80%}.analytics-bar-head strong{color:#2a4267;font-size:11px}
.analytics-track{height:8px;border-radius:100px;background:#eef2f8;overflow:hidden;margin-top:5px}.analytics-fill{height:100%;border-radius:100px;background:linear-gradient(90deg,#567ce3,#19a8a1)}
.analytics-bar-row>small{font-size:10px;color:#91a0b6;display:block;margin-top:4px}
.analytics-empty{color:#8496b0;font-size:12px;padding:20px 4px;line-height:1.5}
.analytics-funnel-counts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-bottom:16px}
.analytics-funnel-counts .analytics-metric{background:#f7f9fe;border-radius:8px;padding:9px}.analytics-funnel-counts .analytics-metric strong{font-size:16px}
.analytics-funnel-counts .analytics-metric span{display:none}
.analytics-table-wrap{overflow:auto}.analytics-table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap;font-size:11px}
.analytics-table th{background:#f7f9fd;color:#8999b1;font-size:9px;letter-spacing:.04em;padding:11px 10px}.analytics-table td{border-bottom:1px solid #eef1f7;padding:10px;color:#405576}
.analytics-table th:not(:first-child),.analytics-table td:not(:first-child){text-align:right}.analytics-readiness{display:flex;flex-wrap:wrap;gap:8px;margin-top:15px}
.analytics-readiness span{display:inline-flex;gap:5px;font-size:10px;background:#f4f7fc;border-radius:7px;padding:8px;color:#7486a3}.analytics-readiness strong{color:#2f5aa5}
.analytics-disclaimer{font-size:10px;line-height:1.6;color:#8193ac;border-top:1px solid #e6edf8;padding:14px 3px;margin-top:17px}
@media(max-width:1150px){.analytics-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:750px){.analytics-layout{grid-template-columns:1fr}.analytics-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.analytics-funnel-counts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:460px){.analytics-kpis{grid-template-columns:1fr}.analytics-toolbar{align-items:stretch}.analytics-toolbar label{flex:1 1 100%}.analytics-toolbar .analytics-apply{width:100%}}

/* RC7 — travel advisor workspace: information-first, compact, accessible. */
.ws-svg-icon{display:inline-block;width:15px;height:15px;flex:none;vertical-align:middle}
.ws-hero-facts{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:11px}
.ws-hero-facts>span{display:inline-flex;align-items:center;gap:5px;padding:6px 8px;border:1px solid #e5eaf4;background:#f9fbff;border-radius:7px;color:#61748e;font-size:10px;font-weight:700;max-width:100%;overflow-wrap:anywhere}
.ws-hero-actions .btn{gap:6px}
.ws-journey-brief{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:23px}
.ws-journey-item{background:#f8faff;border:1px solid #e7edf8;border-radius:10px;padding:13px 14px;min-width:0;display:flex;flex-direction:column;gap:7px}
.ws-journey-item>span{display:inline-flex;align-items:center;gap:6px;color:#788ca8;font-size:10px;font-weight:800}
.ws-journey-item strong{font-size:13px;line-height:1.35;color:#2b4269;overflow-wrap:anywhere}
.ws-journey-item small{font-size:10px;color:#8392a9;line-height:1.45;overflow-wrap:anywhere}
.ws-readiness-card{background:linear-gradient(155deg,#fff 66%,#f9fbff)}
.ws-readiness-score{display:flex;align-items:center;gap:12px;margin-bottom:13px}
.ws-readiness-score>strong{font-size:26px;letter-spacing:-.05em;color:#335fbd}
.ws-readiness-score>strong small{font-size:12px;color:#93a4bb;letter-spacing:0}
.ws-readiness-score b{font-size:12px;color:#2e3d59}
.ws-readiness-score p{font-size:10px;color:#8392a9;margin-top:4px}
.ws-readiness-track{height:7px;border-radius:999px;background:#e7ecf6;overflow:hidden;margin-bottom:13px}
.ws-readiness-track>span{height:100%;background:#4e79d7;display:block;border-radius:999px;transition:width .2s}
.ws-readiness-list{display:grid;gap:1px}
.ws-readiness-item{display:flex;align-items:flex-start;gap:8px;border-bottom:1px solid #eff2f8;padding:9px 0}
.ws-readiness-item:last-child{border-bottom:0}
.ws-readiness-symbol{height:22px;width:22px;border-radius:7px;display:flex;align-items:center;justify-content:center;background:#f0f3f9;color:#8294af;flex:none}
.ws-readiness-ready .ws-readiness-symbol{color:#14876b;background:#e9f7f1}
.ws-readiness-attention .ws-readiness-symbol{color:#b97926;background:#fff3e4}
.ws-readiness-item>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.ws-readiness-item strong{font-size:11px;color:#3d506e}
.ws-readiness-item small{font-size:10px;color:#8999ae;line-height:1.4;overflow-wrap:anywhere}
.ws-readiness-note{font-size:10px;color:#8190a7;margin-top:11px;line-height:1.6}
.ws-activity-filters{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 18px}
.ws-filter-pill{border:1px solid #e3eaf5;background:#fff;color:#7185a0;border-radius:8px;font-size:10px;font-weight:800;padding:7px 10px;transition:.15s}
.ws-filter-pill:hover,.ws-filter-pill:focus-visible{border-color:#94aeec;color:#3264c4;outline:none}
.ws-filter-pill.selected{background:#eaf1ff;color:#315fbd;border-color:#d6e3ff}
.ws-timeline-row .ws-timeline-dot{margin:0;width:24px;height:24px;box-shadow:none;display:flex;align-items:center;justify-content:center;border:1px solid #dce6f7;background:#f2f6fe;color:#5a79b8;position:relative;z-index:1}
.ws-timeline-row .ws-timeline-dot .ws-svg-icon{width:12px;height:12px}
.ws-timeline-row{grid-template-columns:25px minmax(0,1fr);gap:6px}
.ws-timeline-row>div:last-child{margin-left:-19px;padding-left:27px}
@media(max-width:1080px){.ws-journey-brief{grid-template-columns:1fr 1fr}.ws-journey-item:last-child{grid-column:1/-1}}
@media(max-width:620px){.ws-journey-brief{grid-template-columns:1fr}.ws-journey-item:last-child{grid-column:auto}.ws-readiness-card{order:0}.ws-hero-facts{gap:5px}.ws-hero-facts>span{font-size:9px;padding:5px}.ws-main-body{padding:13px}}
@media(prefers-reduced-motion:reduce){.ws-readiness-track>span,.ws-filter-pill{transition:none}}

/* RC8 scoring policy editor. Compact and accessible within existing design. */
.settings-score-intro{background:white;border:1px solid #e2e8f2;border-radius:14px;padding:22px;margin-bottom:16px}.settings-score-intro h2{font-size:22px;color:#23334e;margin:0 0 6px}.settings-score-intro p,.score-admin-card p{color:#7e8da5;font-size:12px;line-height:1.65}.score-policy-state{font-size:12px;color:#416bb3;font-weight:700;margin-top:10px}.score-admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.score-admin-card{min-width:0;background:white;border:1px solid #e2e8f2;border-radius:14px;padding:18px}.score-admin-card h3{font-size:15px;margin:0 0 13px;color:#263b5b}.score-admin-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.score-admin-fields label,.score-add-destination{font-size:11px;color:#5b6e8b;font-weight:700}.score-admin-fields input,.score-add-destination input{display:block;margin-top:5px;width:100%;height:34px;border:1px solid #dce4f0;border-radius:7px;padding:5px 9px;color:#2c4060}.score-policy-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.score-policy-actions button{min-height:38px}#score-weight-total{font-size:12px;color:#21885f;padding-left:6px}#score-weight-total.invalid{color:#c75353}.score-add-destination{display:block;margin-top:14px}#score-feedback{font-size:12px;color:#4d678b;margin-top:10px;min-height:22px}@media(max-width:900px){.score-admin-grid{grid-template-columns:1fr}}@media(max-width:550px){.score-admin-fields{grid-template-columns:1fr}}

.score-policy-actions select{min-width:215px;height:39px;border:1px solid #dce4f0;border-radius:8px;background:white;padding:0 10px;color:#3b5072;font-size:12px}

/* RC9: carefully scoped access permissions, one-step activity window, personal tab ordering. */
.profile-permissions-dialog{width:min(550px,calc(100vw - 32px));max-height:calc(100vh - 36px);overflow-y:auto;gap:11px}
.profile-dialog-head p{margin-top:7px}.profile-dialog-form{display:grid;gap:13px}
.profile-permission-group{min-width:0;border:1px solid #e4ebf7;border-radius:12px;padding:10px 13px;background:#fbfcff;display:grid;gap:4px}
.profile-permission-group legend{font-size:11px;font-weight:850;letter-spacing:.03em;color:#5675b7;padding:0 5px}
.profile-permission{display:flex!important;flex-direction:row!important;align-items:flex-start!important;gap:13px!important;padding:11px 8px;border-radius:8px;cursor:pointer}
.profile-permission:hover{background:#f0f5ff}.profile-permission input[type=checkbox]{flex:0 0 18px;width:18px!important;height:18px!important;min-height:18px;margin:2px 0 0;accent-color:#416ad5}
.profile-permission span{min-width:0;display:flex;flex-direction:column;gap:4px}.profile-permission strong{font-size:12px;color:#283c62}.profile-permission small{font-size:11px;line-height:1.45;font-weight:450;color:#7787a2}
.profile-scope-help{border-left:3px solid #6890e0;background:#f3f7ff;color:#536989!important;padding:8px 10px;border-radius:5px;margin:0!important}
.ws-activity-dialog{width:min(640px,calc(100vw - 30px));max-height:min(88vh,850px);overflow-y:auto;padding:22px 25px}
.ws-dialog-head{display:flex;justify-content:space-between;align-items:start;gap:12px}.ws-dialog-head p{margin-top:5px}
.ws-workflow-form{display:grid;gap:12px}.ws-workflow-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.ws-workflow-form label{display:flex;flex-direction:column;gap:6px;font-size:11px;font-weight:800;color:#4f6383}.ws-workflow-form label input,.ws-workflow-form label select,.ws-workflow-form textarea{width:100%;height:39px;border-radius:8px;border:1px solid #dce4f2;background:#fff;padding:8px 11px;font:600 12px Manrope,sans-serif;color:#253957}.ws-workflow-form textarea{height:auto;min-height:90px;line-height:1.55;resize:vertical}
.ws-dialog-section{border:1px solid #e3eaf6;border-radius:11px;padding:12px;background:#f9fbff;display:grid;gap:10px}.ws-dialog-section>strong{font-size:11px;letter-spacing:.05em;color:#617cae}
.ws-loss-warning{background:#fff8f7;border:1px solid #f5d3d0;border-radius:9px;padding:12px}.ws-loss-warning label{color:#9b3542}.ws-loss-count{color:#a45663;font-size:11px;font-weight:650}
.ws-main-tabs{align-items:center}.ws-tab[draggable=true]{cursor:grab}.ws-tab.ws-dragging{opacity:.4}.ws-tab-drag-over{outline:2px dashed #6d95eb;outline-offset:-4px}
.ws-tab-controls{margin-left:auto;display:flex;align-items:center;padding:5px 0}.ws-tab-settings{background:#f3f6fc;color:#5e78a6;border:1px solid #dde5f1;border-radius:8px;padding:6px 10px;cursor:pointer;font-size:12px;font-weight:750}.ws-tab-settings:hover{background:#e6edfc}
.ws-tab-order-dialog{width:min(480px,calc(100vw - 30px))}.ws-order-list{display:grid;gap:7px}.ws-order-row{display:flex;align-items:center;justify-content:space-between;border:1px solid #e4ebf4;border-radius:9px;padding:10px;gap:8px}.ws-order-row>span{font-weight:700;color:#334866;font-size:12px}.ws-order-actions{display:flex;gap:5px}.ws-order-actions button{border:1px solid #dae3f1;border-radius:6px;background:#f5f7fc;padding:5px 10px;font-size:12px;cursor:pointer}.ws-order-actions button:disabled{opacity:.35}
.followup-day-filter{display:inline-flex;align-items:center;gap:8px;color:#657792;font-size:11px;font-weight:700;white-space:nowrap}.followup-day-filter input{border:1px solid #e1e8f3;border-radius:7px;background:#fff;padding:5px;color:#3b4a67;font:600 11px Manrope,sans-serif}
@media(max-width:600px){.ws-workflow-grid{grid-template-columns:1fr}.ws-activity-dialog{padding:15px}.profile-permissions-dialog{padding:18px}.followup-day-filter{width:100%;justify-content:start}}



/* Official Inbeats CRM brand · 2026-11-08. Safe, visual-only override. */
.brand-mark-logo{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex:none;width:39px;height:39px;min-width:39px;padding:2px;background:#fff;border:1px solid rgba(255,255,255,.18);border-radius:10px;overflow:hidden;box-shadow:0 2px 8px rgba(0,10,30,.13)}
.brand-mark-logo img{width:100%;height:100%;object-fit:contain;display:block}
.brand-side{gap:9px;margin-left:14px;margin-right:14px}
.brand-side .brand-caption strong{letter-spacing:.075em;font-size:15px}
.brand-login .brand-mark-logo{width:46px;height:46px;min-width:46px;border-radius:12px}
.login-brand-inline{display:flex;flex-direction:column;align-items:flex-start;gap:0;margin:-6px 0 14px}
.login-brand-inline img{display:block;max-width:min(100%,250px);width:250px;height:auto;object-fit:contain}
.login-brand-inline span{display:block;margin-top:-3px;letter-spacing:.17em;color:#7D8EA9;font-size:9px;font-weight:800}
.sidebar.collapsed .brand-side{margin:0 14px 22px}
.sidebar.collapsed .brand-mark-logo{width:39px;height:39px;min-width:39px}
@media(max-width:640px){.login-brand-inline{margin:0 0 6px}.login-brand-inline img{width:200px}}


/* Inbeats logo s-and-tagline alignment fix · 2026-11-08 */
/* Keep the approved logo at exactly its existing 250px display width. */
.login-brand-inline img{width:250px;max-width:min(100%,250px)}
/* Align the description with the wordmark, not under the compass mark. */
.login-brand-inline span{align-self:flex-start;margin-left:104px;margin-top:0;max-width:calc(100% - 104px);font-size:8px;letter-spacing:.11em;line-height:1.5;white-space:nowrap}
@media(max-width:640px){.login-brand-inline img{width:200px;max-width:min(100%,200px)}.login-brand-inline span{margin-left:83px;max-width:calc(100% - 83px);font-size:7px;letter-spacing:.06em}}

/* Inbeats RC8 targeted UAT enhancements: preserve the approved original visual system. */
:root,html,body{color-scheme:light}
select,select option,select optgroup,input[type=date],input[type=datetime-local]{color-scheme:light!important}
select option,select optgroup{background:#fff!important;color:#263a59!important}
[hidden]{display:none!important}
#view-leads .data-panel{display:grid;grid-template-columns:minmax(0,1fr) 0;overflow:hidden;transition:grid-template-columns .26s cubic-bezier(.22,1,.36,1)}
#view-leads .data-panel.views-expanded{grid-template-columns:minmax(0,1fr) 248px}
#view-leads .data-panel>.panel-top{grid-column:1;grid-row:1;min-width:0}
#view-leads .data-panel>.filter-toolbar{grid-column:1;grid-row:2;min-width:0}
#view-leads .data-panel>.filter-chips{grid-column:1;grid-row:3;min-width:0}
#view-leads .data-panel>.table-scroll{grid-column:1;grid-row:4;min-width:0;overflow-x:auto}
#view-leads .data-panel>.table-footer{grid-column:1;grid-row:5;min-width:0}
#saved-views-panel{grid-column:2;grid-row:1/6;min-width:0;width:248px;max-height:610px;overflow:hidden;background:#fff;border-left:1px solid #e8eef6;display:flex;flex-direction:column;opacity:0;transform:translateX(22px);pointer-events:none;transition:opacity .18s ease,transform .26s cubic-bezier(.22,1,.36,1)}
#view-leads .data-panel.views-expanded #saved-views-panel{opacity:1;transform:translateX(0);pointer-events:auto}
.saved-panel-head{display:flex;align-items:center;justify-content:space-between;padding:14px 12px 11px;border-bottom:1px solid #edf1f8;color:#263b5d;font-size:12px}
.saved-panel-head .icon-btn{min-width:28px;height:28px;color:#5a719b;font-size:19px}
.saved-views-list{overflow:auto;min-height:0;flex:1;padding:9px}
.saved-view-group-title{font-size:9px;letter-spacing:.12em;font-weight:800;color:#91a0b7;padding:9px 8px 6px}.saved-view-group-title.custom-title{margin-top:8px;border-top:1px solid #edf1f8}
.saved-view-row{display:flex;align-items:center;border-radius:7px;gap:2px}.saved-view-row.selected,.saved-view-item.selected{background:#ecf2ff;color:#2c5bc1}
.saved-view-item{border:0;background:transparent;display:flex;align-items:center;justify-content:space-between;text-align:left;width:100%;min-height:32px;padding:7px 8px;border-radius:7px;font-size:11px;font-weight:650;color:#5c6f8f;overflow:hidden;cursor:pointer}
.saved-view-item span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.saved-view-item small{margin-left:4px;color:#94a4b7;font-size:9px}
.saved-view-item:hover,.saved-view-more:hover{background:#f1f5fc;color:#2e5cc1}.saved-view-row .saved-view-item{flex:1;min-width:0}
.saved-view-more{border:0;background:transparent;border-radius:6px;min-width:24px;padding:7px 3px;color:#8a9ab0;cursor:pointer}.saved-view-empty{color:#91a0b3;font-size:11px;padding:9px 8px;line-height:1.5}
.saved-panel-footer{padding:11px;border-top:1px solid #edf1f8}.saved-panel-footer .btn{width:100%;font-size:11px}
.saved-drawer-arrow{display:inline-block;transition:transform .2s; font-size:18px;line-height:12px}.views-expanded .saved-drawer-arrow{transform:rotate(0)}
.leads-table th{position:relative}.lead-col-handle{font-size:13px;line-height:1;cursor:grab;display:inline-block;vertical-align:middle;padding:4px;margin-left:5px;border-radius:4px;color:#9eb0c9;opacity:0;transition:opacity .15s}.leads-table th:hover .lead-col-handle,.lead-col-handle:focus-visible{opacity:1;outline-offset:2px}
.lead-col-handle:active{cursor:grabbing}.leads-table th.lead-col-dragging{opacity:.65;box-shadow:0 3px 12px #18274524;background:#eef4ff}.leads-table th.lead-col-over{background:#eaf1ff;box-shadow:inset 2px 0 #3c67d7}
#view-leads .kpi-row.pool-hidden{grid-template-columns:repeat(3,minmax(0,1fr))}.account-menu-icon{display:inline-flex;vertical-align:middle;margin-right:9px;color:#5774a5}.profile-chevron{margin-left:auto;color:#aab8d1}
.ws-inline-workflow{padding:14px;background:#f8faff;border:1px solid #e3ebf9;border-radius:10px;margin:0 0 19px}.ws-inline-workflow .ws-dialog-head{margin-bottom:10px}.ws-inline-workflow .ws-dialog-head h2{font-size:15px}.ws-inline-workflow .ws-workflow-form{gap:10px}.ws-inline-workflow .ws-dialog-section{background:#fff}.ws-inline-workflow .dialog-actions{margin-top:2px}
@media(max-width:1050px){#view-leads .data-panel.views-expanded{grid-template-columns:minmax(0,1fr) 224px}#saved-views-panel{width:224px}}
@media(max-width:750px){#view-leads .data-panel.views-expanded{grid-template-columns:minmax(0,1fr)}#saved-views-panel{position:fixed;right:0;top:0;bottom:0;max-height:none;width:min(285px,82vw);z-index:110;box-shadow:-7px 0 25px #0e204021;grid-column:auto;grid-row:auto;transform:translateX(105%);border-radius:0}#view-leads .data-panel.views-expanded #saved-views-panel{transform:translateX(0)}}
@media(prefers-reduced-motion:reduce){#view-leads .data-panel,#saved-views-panel,.lead-col-handle{transition:none!important}}

/* RC8 Refinement v2 — preserves original Inbeats spacing/colors. */
#saved-views-toggle>svg,.saved-bookmark-icon{stroke:#bd851f!important}
#saved-views-toggle{color:#6d562f;border-color:#ebddbf;background:#fffdf8}
#saved-views-toggle:hover{background:#fff5df;color:#91620a}
.saved-bookmark-icon{flex:0 0 15px;margin-right:7px}
.saved-view-item.selected .saved-bookmark-icon{stroke:#d59a26!important;fill:#fff2c9}
.saved-view-row.selected{box-shadow:inset 2px 0 #d69e32}
.saved-view-item{justify-content:flex-start!important}
.saved-view-item>span{flex:1}
.saved-view-item small{flex:0 0 auto}
.saved-manage-dialog{width:min(610px,calc(100vw - 28px));max-height:min(86vh,820px);overflow-y:auto}
.saved-manage-form{display:grid;gap:13px;margin-top:5px}
.saved-manage-head p{margin-top:5px}
.saved-pin-row{flex-direction:row!important;align-items:center!important;gap:10px!important;padding:5px 0}
.saved-pin-row input{width:17px!important;height:17px!important;min-height:17px;accent-color:#d39a33;flex:none;margin:0}
.saved-pin-row span{font-size:12px;color:#3c506f}
.saved-rule-summary{border:1px solid #e7ebf3;background:#f9fbff;border-radius:10px;padding:13px;display:grid;gap:10px}
.saved-rule-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.saved-rule-head strong{font-size:12px;color:#263b5e}.saved-rule-head span{font-size:10px;color:#798ba7;background:#eef2f8;padding:4px 8px;border-radius:12px}
.saved-rule-list{max-height:220px;overflow:auto;display:grid;gap:5px}
.saved-rule-line{border:1px solid #e7ebf4;background:#fff;border-radius:6px;padding:8px 10px;color:#405576;font-size:11px;line-height:1.45;white-space:pre-wrap}
.saved-rule-empty{font-size:11px;color:#7585a0}
.saved-rule-sort{color:#5372ac;font-size:11px;font-weight:700;margin-top:4px}
#saved-edit-rules{justify-self:start}
.saved-order-actions{display:flex;align-items:center;gap:7px}
.saved-manage-actions{flex-wrap:wrap}.saved-delete-btn{color:#b54257!important;border-color:#f0d4d9!important;margin-right:auto}
.saved-view-edit-context{margin-top:10px;border-left:3px solid #416cda;border-radius:6px;background:#edf3ff;padding:10px 12px;color:#3157ac;font-size:11px;font-weight:700}
.advanced-followup-day{display:grid!important;gap:8px!important;margin:12px 0 15px;padding:12px;background:#f8faff;border:1px solid #e4ebf7;border-radius:9px}
.advanced-followup-day input{width:100%;background:#fff;border:1px solid #dce4f0;border-radius:8px;min-height:38px;padding:8px 11px;color:#273955}
.advanced-followup-day small{color:#8392aa;font-size:10px;font-weight:500;line-height:1.4}
#update-saved-view-filters{background:#365fc8}
/* Clear, self-aligned account menu: icon | label | chevron */
.profile-menu-action{display:grid!important;grid-template-columns:24px minmax(0,1fr) 12px;gap:12px!important;justify-content:stretch!important;align-items:center!important;min-height:42px;padding:9px 10px!important}
.profile-menu-action .account-menu-icon{width:24px;margin:0!important;justify-content:center}
.profile-menu-copy{min-width:0;display:flex;flex-direction:column;gap:3px;text-align:left}
.profile-menu-copy strong{font-size:12px;font-weight:700;line-height:1.4}
.profile-menu-copy small{font-size:10px;font-weight:500;color:#8493ac;line-height:1.2}
.profile-menu-action>.profile-chevron{justify-self:end;font-size:18px;line-height:1;opacity:.75}
.profile-menu-action[data-profile-action=logout] .profile-menu-copy{color:#ae4555}
/* Drag a handle; table rows slide into their new positions without moving the workspace. */
.lead-col-handle{font-size:15px;min-height:25px;min-width:22px;display:inline-flex!important;align-items:center;justify-content:center;border:1px solid transparent;opacity:.25;color:#7895c7;background:transparent;transition:all .15s ease}
.leads-table th:hover .lead-col-handle,.lead-col-handle:focus-visible{opacity:1;color:#315fc5;border-color:#cedbf3;background:#edf3ff}
body.lead-column-dnd-active,body.lead-column-dnd-active .leads-table th{cursor:grabbing!important}
.leads-table th.lead-col-dragging{opacity:.62;box-shadow:0 7px 18px #31509b24;background:#edf4ff;z-index:3}
.leads-table th.lead-col-over{background:#f3f7ff;box-shadow:none}
.leads-table th.lead-col-drop-before::before,.leads-table th.lead-col-drop-after::after{content:'';position:absolute;top:3px;bottom:3px;width:3px;background:#4271dd;border-radius:4px;z-index:4;box-shadow:0 0 0 2px #cfe0ff}
.leads-table th.lead-col-drop-before::before{left:0}.leads-table th.lead-col-drop-after::after{right:0}
.lead-col-drag-ghost{position:fixed;top:-900px;left:-900px;border-radius:9px;background:#fff;color:#23477f;font-size:11px;font-weight:800;text-transform:uppercase;padding:12px 18px;box-shadow:0 12px 35px #1d376447;border:1px solid #cee0ff;pointer-events:none;z-index:999999;white-space:nowrap}
/* Less crowded, progressive Activity form; preserves every backend field. */
.ws-workflow-refined{gap:14px!important}
.ws-workflow-section-heading{display:flex;align-items:center;gap:8px;margin-bottom:13px}
.ws-workflow-section-heading strong{font-size:12px;color:#243b5f}.ws-workflow-section-heading small{margin-left:auto;font-size:10px;color:#8d9bb2;font-weight:500}
.ws-step-number{display:grid;place-items:center;background:#e8efff;color:#3a67cb;font-weight:850;font-size:11px;border-radius:50%;width:22px;height:22px;flex:none}
.ws-workflow-contact,.ws-workflow-notes{border:1px solid #e4ebf7;background:#fff;border-radius:10px;padding:15px 16px}
.ws-workflow-contact>.ws-workflow-grid{margin-bottom:13px}
.ws-workflow-progress{border:1px solid #e3eaf5;border-radius:10px;background:#f8faff;padding:0 14px}
.ws-workflow-progress summary{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:12px;cursor:pointer;padding:13px 0}
.ws-workflow-progress summary::-webkit-details-marker{display:none}
.ws-progress-title{display:flex;flex-direction:column;gap:3px}.ws-progress-title strong{font-size:12px;color:#334e76}.ws-progress-title small{font-size:10px;color:#8191ad}
.ws-progress-chevron{font-size:20px;color:#7186ab;transition:transform .2s ease}.ws-workflow-progress[open] .ws-progress-chevron{transform:rotate(180deg)}
.ws-workflow-progress .ws-workflow-grid{padding:0 0 16px}
.ws-workflow-refined .ws-workflow-form label,.ws-workflow-refined label{line-height:1.45}
.ws-activity-footer{padding-top:3px;margin-top:0!important}
.ws-activity-footer .btn.primary{min-width:150px}
.ws-inline-workflow{padding:13px!important;background:#f6f9fe!important}
.ws-inline-workflow .ws-dialog-head{padding:2px 2px 5px;margin-bottom:13px}
.ws-inline-workflow .ws-workflow-contact,.ws-inline-workflow .ws-workflow-notes{background:#fff}
.ws-activity-dialog{width:min(630px,calc(100vw - 30px))}
/* White, accessible pointer menu; native selects remain operable via keyboard. */
.inbeats-select-popover{position:fixed;z-index:100000;max-height:min(290px,55vh);overflow:auto;background:#fff;color:#253857;border:1px solid #dbe5f4;border-radius:10px;box-shadow:0 12px 30px #17365f25;padding:5px;display:grid;gap:2px;color-scheme:light}
.inbeats-select-choice{display:flex;justify-content:space-between;gap:12px;width:100%;text-align:left;border:0;background:#fff;color:#304361;border-radius:7px;padding:9px 12px;font-weight:600;font-size:12px;cursor:pointer;outline-offset:2px}
.inbeats-select-choice:hover,.inbeats-select-choice:focus-visible{background:#edf4ff;color:#2558c3}
.inbeats-select-choice.is-selected{background:#f0f5ff;color:#2e5ec3}
.inbeats-select-choice.is-disabled{opacity:.4;cursor:not-allowed}
.select-option-tick{color:#3b69d6}
@media(max-width:700px){.saved-manage-dialog{padding:18px}.saved-order-actions{flex-wrap:wrap}.ws-workflow-contact,.ws-workflow-notes{padding:12px}.ws-workflow-section-heading small{display:none}}
@media(prefers-reduced-motion:reduce){.ws-progress-chevron,.lead-col-handle{transition:none!important}.lead-col-drag-ghost{box-shadow:none!important}}

/* Only shown while editing a Saved View: base criteria alongside advanced rules. */
.saved-edit-basics{border:1px solid #e2eaf7;border-radius:10px;background:#fbfcff;padding:0 12px}
.saved-edit-basics summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 0;font-size:12px;font-weight:800;color:#38537f}
.saved-edit-basics summary::-webkit-details-marker{display:none}
.saved-edit-basics summary small{font-size:10px;font-weight:500;color:#8294ae}
.saved-basics-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px 10px;padding:1px 0 13px}
.saved-basics-grid label{min-width:0;font-size:10px}
.saved-basics-grid input,.saved-basics-grid select{width:100%;min-height:36px}
.saved-edit-overdue{display:flex!important;flex-direction:row!important;gap:9px!important;align-items:center!important;justify-content:start;padding-top:19px;line-height:1.35}
.saved-edit-overdue input{width:16px!important;height:16px!important;min-height:16px;accent-color:#3b67db}
@media(max-width:480px){.saved-basics-grid{grid-template-columns:1fr}}

/* RC8 v3: visible, compact activity form. No hidden stage/priority controls. */
.ws-workflow-v3{gap:14px!important;padding:1px 2px 0!important}
.ws-workflow-v3>.ws-workflow-grid{gap:13px 16px}
.ws-workflow-v3 label{gap:6px;color:#445d80;font-weight:750}
.ws-workflow-v3 label select,.ws-workflow-v3 label input{min-height:41px;background:#fff}
.ws-workflow-v3 .ws-workflow-divider{display:flex;align-items:center;gap:12px;margin:1px 0 -3px;color:#5775a9;font-size:11px;text-transform:uppercase;letter-spacing:.09em;font-weight:850}
.ws-workflow-v3 .ws-workflow-divider::after{content:"";height:1px;background:#dde7f6;flex:1}
.ws-workflow-v3>.ws-workflow-note-label{padding-top:3px}
.ws-workflow-v3>.ws-workflow-note-label textarea{min-height:105px;background:#fff}
.ws-workflow-v3 .ws-activity-footer{margin-top:0;padding-top:6px;border-top:1px solid #e3eaf6}
.ws-inline-workflow .ws-workflow-v3>.ws-workflow-grid{margin:0}
.ws-status-picker{position:relative;display:flex;align-items:center;min-width:0}
.ws-status-picker>select{padding-left:30px!important;width:100%}
.ws-status-picker>.ws-status-dot{position:absolute;z-index:2;left:12px;top:50%;transform:translateY(-50%);width:9px;height:9px;border-radius:50%;background:#5379a8;pointer-events:none;box-shadow:0 0 0 2px white}
.ws-status-picker>.ws-status-dot[hidden]{display:none}
.ws-status-picker:has(.ws-status-dot[hidden])>select{padding-left:12px!important}
.inbeats-select-choice{align-items:center;justify-content:flex-start}
.inbeats-select-choice .select-option-tick{margin-left:auto}
.select-option-color{width:9px;height:9px;border-radius:50%;flex:none;box-shadow:0 0 0 2px #f0f3fa}
.ws-activity-dialog{width:min(690px,calc(100vw - 28px))}
.ws-activity-dialog .ws-workflow-v3{margin-top:12px}
.ws-inline-workflow{background:#f9fbff!important}

/* AND/OR is chosen between individual query conditions; AND binds before OR. */
.filter-logic-hint{font-size:11px;line-height:1.55;color:#637b9f;background:#f5f8ff;border:1px solid #e4ecfb;border-radius:8px;padding:10px 12px;margin:10px 0 15px}
.condition-connector{display:flex;gap:10px;align-items:center;justify-content:center;margin:7px 0;color:#8493aa;font-size:10px;font-weight:700}
.condition-connector::before,.condition-connector::after{content:"";width:22px;height:1px;background:#dce4f2}
.connector-switch{min-width:65px;border:1px solid #cad9f3;background:#edf3ff;border-radius:20px;color:#315fbc;padding:6px 12px;font-size:11px;font-weight:850;letter-spacing:.02em;cursor:pointer}
.connector-switch:hover,.connector-switch:focus-visible{background:#dbe8ff;outline:2px solid #b7cfff;outline-offset:1px}

/* Settings popover and safe, auditable call-status configuration. */
.density-settings-form{display:grid;gap:10px}
.density-settings-form>label{display:flex;flex-direction:row;gap:12px;align-items:flex-start;border:1px solid #dce5f2;padding:14px;border-radius:9px;cursor:pointer}
.density-settings-form input[type=radio]{width:17px;height:17px;flex:none}
.density-settings-form label>span{display:grid;gap:4px}
.density-settings-form label strong{font-size:13px;color:#273f64}
.density-settings-form label small{color:#8191ac;font-size:11px}
.call-outcomes-dialog{width:min(800px,calc(100vw - 26px))!important;max-width:800px;max-height:88vh;overflow-y:auto}
.call-outcome-list{display:grid;gap:8px;margin:13px 0}
.call-outcome-item{display:grid;grid-template-columns:90px minmax(160px,1fr) 60px 65px 66px 76px;gap:9px;align-items:end;padding:10px;border-radius:9px;background:#f9fbff;border:1px solid #e1eaf8}
.call-outcome-item label,.call-outcome-add-grid label{display:grid;gap:4px;color:#536a8c;font-size:10px;font-weight:750}
.call-outcome-item input:not([type=checkbox]),.call-outcome-add input:not([type=checkbox]){width:100%;min-width:0;min-height:34px;padding:6px 8px;border:1px solid #d8e2f3;border-radius:7px;background:#fff;color:#293d5d}
.call-outcome-item input[type=color],.call-outcome-add input[type=color]{padding:2px!important}
.call-outcome-code{align-self:center;overflow-wrap:anywhere;font:700 10px ui-monospace,monospace;color:#8293b0}
.call-outcome-active{display:flex!important;align-items:center;flex-direction:column;gap:7px!important}
.call-outcome-active input{width:17px;height:17px}
.call-outcome-add{border-top:1px solid #dde6f3;padding-top:14px;display:grid;gap:10px}
.call-outcome-add h3{font-size:13px;color:#30486e;margin:0}
.call-outcome-add-grid{display:grid;grid-template-columns:2fr 2fr 70px;gap:10px;align-items:end}
@media(max-width:700px){.ws-workflow-v3>.ws-workflow-grid{grid-template-columns:1fr}.call-outcome-item{grid-template-columns:1fr 1fr;gap:8px}.call-outcome-add-grid{grid-template-columns:1fr}.call-outcome-code{grid-column:span 2}}

/* RC8 v4 — scoped Call Status manager polish. Keeps existing Inbeats layout. */
.call-outcomes-dialog{width:min(920px,calc(100vw - 24px))!important;max-width:920px}
.call-outcome-item{grid-template-columns:94px minmax(170px,1fr) 64px 64px 65px 118px;gap:10px;align-items:center;background:#f8faff}
.call-status-identity{display:grid;gap:5px;min-width:0}
.call-status-origin{font-size:10px;color:#7c8caa;font-weight:650}
.call-status-state{display:inline-flex;justify-content:center;align-items:center;font-size:10px;font-weight:750;padding:7px 8px;border-radius:20px;background:#e7f5ee;color:#137d57}
.call-status-state.is-inactive{background:#f1f3f7;color:#7b879b}
.call-status-actions{display:flex;align-items:center;gap:5px;position:relative;justify-content:flex-end}
.call-status-actions>.btn{padding:7px 10px;min-width:48px}
.call-status-menu{position:relative}
.call-status-menu summary{display:flex;align-items:center;justify-content:center;list-style:none;cursor:pointer;width:32px;height:34px;border:1px solid #d8e2f3;border-radius:7px;background:white;color:#526783;font-weight:800;font-size:21px;line-height:1}
.call-status-menu summary::-webkit-details-marker{display:none}
.call-status-menu summary:hover,.call-status-menu[open] summary{background:#edf2fc;border-color:#aebfe5}
.call-status-popover{position:absolute;top:38px;right:0;z-index:25;width:208px;display:grid;padding:5px;background:white;box-shadow:0 14px 34px rgba(26,43,76,.19);border:1px solid #dbe5f4;border-radius:9px;gap:3px}
.call-status-popover button{font:inherit;font-size:12px;font-weight:650;background:transparent;border:0;text-align:left;color:#304568;padding:9px 10px;border-radius:6px;cursor:pointer}
.call-status-popover button:hover{background:#eef4ff}
.call-status-popover .danger-text{color:#bc4050}
.call-status-popover .danger-text:hover{background:#fff1f2}
.call-status-hint{font-size:10px;color:#7c8ba4;padding:7px;line-height:1.45}
.call-status-generated{display:flex;gap:10px;flex-wrap:wrap;align-items:center;background:#f5f8ff;padding:10px 12px;border-radius:8px;font-size:12px;color:#53688b}
.call-status-generated code{font-size:12px;color:#2d507e;font-weight:750}
.call-status-generated small{font-size:10px;color:#7b8aa3}
.call-outcome-add>p{font-size:12px;color:#6c7e9b;margin:0}
.call-outcome-add-grid{grid-template-columns:minmax(200px,1fr) 70px;gap:10px}
.call-status-danger-note{padding:11px;background:#fff6f6;border:1px solid #f4dadd;border-radius:8px;color:#a44d59;font-size:12px}
@media(max-width:760px){.call-outcome-item{grid-template-columns:minmax(130px,1fr) 66px;gap:8px}.call-status-identity{grid-column:1/-1}.call-outcome-item label:nth-of-type(1){grid-column:1/-1}.call-status-actions{grid-column:1/-1;justify-content:flex-end}.call-status-state{justify-self:start}.call-outcome-add-grid{grid-template-columns:minmax(130px,1fr) 66px}}

/* Show action menus above the bottom rows to prevent clipping in scrollable settings. */
.call-outcome-item:nth-last-child(-n+2) .call-status-popover{top:auto;bottom:38px}


/* RC8 profile v4.3: self-service account panel, without changing the original CRM shell. */
#dialog-box.my-profile-dialog{width:min(560px,100%);max-height:calc(100vh - 38px);overflow-y:auto;gap:15px;padding:24px}
.my-profile-dialog h2{font-size:21px}
.my-profile-dialog .profile-intro{font-size:11px;line-height:1.6;color:#7888a3;margin-top:-6px}
.my-profile-photo-section{display:flex;align-items:center;gap:16px;padding:13px 14px;background:#f8faff;border:1px solid #e2e9f5;border-radius:11px}
.my-profile-photo-preview{width:80px;height:80px;flex:none;border-radius:50%;background:#dfebff;color:#416abd;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:25px;overflow:hidden;border:3px solid #fff;box-shadow:0 2px 10px #192c5718}
.my-profile-photo-preview img,.my-profile-photo-preview canvas{display:block;width:100%;height:100%;object-fit:cover}
.my-profile-photo-tools{display:flex;align-items:flex-start;flex-wrap:wrap;gap:7px}
.my-profile-photo-tools strong{width:100%;font-size:12px;color:#2e4160}
.my-profile-photo-tools small{width:100%;font-size:10px;color:#8291aa;line-height:1.5}
.profile-photo-file-label{display:inline-flex!important;flex-direction:row!important;align-items:center!important;gap:7px!important;color:#425b88!important;width:auto!important;font-size:11px!important;font-weight:700!important;cursor:pointer}
.profile-photo-file-label input{display:none!important}
.my-photo-crop-tools{padding:10px 13px;border:1px solid #dfe8f5;background:#fff;border-radius:10px;display:flex;align-items:end;justify-content:space-between;gap:14px}
.my-photo-crop-tools.hidden{display:none!important}
.my-photo-crop-tools label{flex:1;font-size:11px}
.my-photo-crop-tools input{width:100%;height:22px;padding:0}
.my-profile-section{display:grid;gap:10px}
.my-profile-section h3{font-size:12px;font-weight:800;color:#304566;padding-bottom:8px;border-bottom:1px solid #edf1f8}
.my-profile-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px 14px}
.my-profile-fields>div{display:flex;min-width:0;flex-direction:column;gap:6px;border:1px solid #e8edf5;border-radius:8px;padding:11px;background:#fff}
.my-profile-fields>div:nth-child(2){grid-column:1/-1;grid-row:2}
.my-profile-fields>div span{font-size:10px;color:#8493ad;font-weight:700}
.my-profile-fields>div strong{font-size:12px;color:#293c5a;line-height:1.5;overflow-wrap:anywhere;word-break:break-word}
.my-preferences-form{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.my-preferences-form label{min-width:0;display:grid;gap:6px;font-size:11px;color:#647694;font-weight:700}
.my-preferences-form select{width:100%;height:38px;min-width:0}
.my-preferences-form .dialog-actions{grid-column:1/-1;margin-top:5px}
.top-avatar.has-personal-avatar,.profile-avatar.has-personal-avatar,.mini-avatar.has-personal-avatar{overflow:hidden;padding:0}
.personal-avatar-image{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}
@media(max-width:520px){.my-profile-fields,.my-preferences-form{grid-template-columns:1fr}.my-profile-fields>div:nth-child(2){grid-column:auto;grid-row:auto}.my-profile-photo-section{align-items:flex-start}.my-profile-photo-preview{width:64px;height:64px}.my-photo-crop-tools{flex-direction:column;align-items:stretch}}

/* RC8 v4.4: Mac/desktop webcam capture; never open the OS file chooser for Take selfie. */
.my-camera-panel{margin:10px 0;padding:12px;border:1px solid #dce6f6;border-radius:11px;background:#f8faff;text-align:center}
.my-camera-panel video{width:100%;max-width:360px;max-height:250px;aspect-ratio:4/3;border-radius:10px;background:#101e3b;object-fit:cover;transform:scaleX(-1)}
.my-camera-help{font-size:11px;line-height:1.5;color:#667c9f;margin:6px auto 10px;max-width:400px}
.my-camera-actions{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
@media(max-width:520px){.my-camera-panel video{max-height:210px}}

/* Inbeats RC8 v4.5 — compact admin reminder preferences, original UI retained */
#dialog-box.followup-preference-dialog{width:min(790px,calc(100vw - 32px));max-height:calc(100vh - 40px);overflow-y:auto;gap:13px}
.followup-config-note{padding:10px 12px;background:#f5f8fe;border:1px solid #dfe8f7;border-radius:9px;font-size:11px;line-height:1.55;color:#52627b}
.followup-config-good{color:#168365;font-weight:700}.followup-config-warn{color:#9a631b;font-weight:700}
.followup-preference-table{display:grid;gap:0;overflow-x:auto}
.followup-preference-header,.followup-preference-row{display:grid;grid-template-columns:minmax(175px,1fr) 76px 76px 65px;gap:10px;align-items:center;min-width:390px}
.followup-preference-header{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.07em;color:#8190a5;padding:8px 10px;background:#f5f7fb;border-bottom:1px solid #e5ecf5}
.followup-preference-row{border-bottom:1px solid #e9eef6;padding:10px;font-size:11px}
.followup-preference-row>label{display:flex;align-items:center;justify-content:center}
.followup-preference-row input[type=checkbox]{width:17px;height:17px;accent-color:#3c67d7;cursor:pointer}
.followup-preference-user strong{display:block;color:#263a58;font-size:12px;overflow-wrap:anywhere}
.followup-preference-user small{display:block;color:#8694a9;font-size:10px;margin-top:2px;overflow-wrap:anywhere}
.followup-preference-row button{padding:0 9px}


/* RC8 v4.6 — hierarchy reminders: one compact rule, original Inbeats styling. */
#dialog-box.routing-dialog{width:min(560px,calc(100vw - 28px));max-height:calc(100vh - 28px);overflow-y:auto;gap:12px}
.routing-intro{margin:0;color:#677c99;font-size:12px;line-height:1.55}
.routing-settings-form{display:grid;gap:14px}
.routing-level-label{display:grid;gap:6px;color:#4b6081;font-size:12px;font-weight:700}
.routing-level-label select{height:43px;font-size:14px;font-weight:700;background:#fff;color:#223656;border:1px solid #d8e2f2;border-radius:9px;padding:0 12px;color-scheme:light}
.routing-section-title{font-weight:800;color:#314663;font-size:12px;margin-bottom:-7px}
.routing-mode-grid,.routing-channel-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.routing-choice,.routing-channel{display:flex!important;align-items:center!important;flex-direction:row!important;gap:10px;padding:12px!important;border:1px solid #dfe7f4;border-radius:10px;background:#f9fbff;cursor:pointer;min-width:0}
.routing-choice:has(input:checked),.routing-channel:has(input:checked){border-color:#7a9cf0;background:#eff4ff}
.routing-choice input,.routing-channel input{width:16px;height:16px;accent-color:#4168d9;flex-shrink:0;margin:0}
.routing-choice span,.routing-channel span{display:grid;gap:4px;min-width:0}
.routing-choice strong,.routing-channel strong{font-size:12px;color:#253955;line-height:1.3}
.routing-choice small,.routing-channel small{font-size:10px;color:#7587a2;line-height:1.4;font-weight:500}
.routing-preview{padding:12px 13px;background:#f5f8fe;border:1px solid #e0e8f6;border-radius:9px}
.routing-preview>strong{font-size:11px;color:#34569b}
.routing-preview p{font-size:11px;color:#516786;line-height:1.6;margin:5px 0 0}
.routing-preview-details{margin-top:7px;border-top:1px solid #e4eaf5;padding-top:7px}
.routing-preview-details summary{color:#4967a0;font-size:11px;cursor:pointer;font-weight:700}
.routing-preview-example{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:7px;font-size:10px;color:#536781}
.routing-preview-example strong{font-weight:700}
.routing-mail-note{margin:0;font-size:10px;line-height:1.5;color:#8b622b}
@media(max-width:520px){.routing-mode-grid,.routing-channel-grid{grid-template-columns:1fr}#dialog-box.routing-dialog{padding:18px}}

/* v4.7 precise reminder levels and L1 email overrides, contained within existing settings dialog */
.routing-mode-grid-three{grid-template-columns:repeat(3,minmax(0,1fr))}
.routing-level-select{display:grid;gap:8px;border:1px solid #dbe6f7;background:#f7faff;border-radius:9px;padding:12px}
.routing-level-select[hidden],.routing-person[hidden],.routing-level-label[hidden]{display:none!important}
.routing-caption{font-size:11px;color:#5d718d;line-height:1.55;margin:0}
.routing-level-chips{display:flex;flex-wrap:wrap;gap:7px}
.routing-level-chip{display:inline-flex!important;align-items:center;flex-direction:row!important;gap:6px;padding:7px 10px!important;border-radius:8px;border:1px solid #d9e4f2;background:#fff;font-size:12px;font-weight:700;color:#314b70;cursor:pointer}
.routing-level-chip:has(input:checked){border-color:#6e94ef;color:#2e56b5;background:#ebf1ff}
.routing-level-chip input,.routing-person input{width:16px;height:16px;flex:none;accent-color:#4267df;margin:0}
.routing-forward-details{border:1px solid #dfe8f5;border-radius:9px;background:#fafcff;padding:11px 13px;margin:0}
.routing-forward-details summary{font-size:12px;color:#314b70;font-weight:800;cursor:pointer}
.routing-forward-details p{margin:9px 0}
.routing-forward-count{color:#5478c5;font-weight:600}
.routing-forward-search{width:100%;height:36px;border:1px solid #dce5f2;border-radius:7px;margin-bottom:7px;padding:8px 10px;color:#233a5b;background:#fff;color-scheme:light}
.routing-forward-list{max-height:180px;overflow:auto;display:grid;gap:3px}
.routing-person{display:flex!important;flex-direction:row!important;align-items:center;gap:10px;padding:7px!important;border-radius:6px;cursor:pointer}
.routing-person:hover{background:#eef4ff}
.routing-person span{display:grid;gap:2px}
.routing-person strong{font-size:11px;color:#314b70}
.routing-person small{font-size:10px;color:#61738f}
@media(max-width:540px){.routing-mode-grid-three{grid-template-columns:1fr}}

.routing-email-toggle{display:flex!important;align-items:center!important;flex-direction:row!important;gap:8px;padding:8px 0!important;font-size:12px;font-weight:700;color:#314b70;cursor:pointer}
.routing-email-toggle input{width:16px;height:16px;accent-color:#4267df;margin:0}
#routing-email-level-list[hidden]{display:none!important}
/* RC8 v4.8 — understated dynamic designation hints and overdue supervisor schedule. */
.routing-level-designation{color:#8797b0;font-weight:500;font-size:11px;white-space:normal;line-height:1.25}
.routing-level-chip{flex-wrap:wrap;column-gap:5px;row-gap:2px}
.routing-escalation-details{background:#f8fbff;border-color:#d9e5fa}
.routing-escalation-times{display:grid;gap:8px;padding-top:12px}
.routing-escalation-times>b{font-size:12px;color:#263a5b}
.routing-escalation-step{display:grid!important;grid-template-columns:minmax(140px,1fr) 88px 30px;gap:9px;align-items:center;background:white;padding:8px 10px!important;border:1px solid #e1e9f5;border-radius:8px;min-width:0}
.routing-escalation-step>span{display:flex;gap:5px;align-items:center;flex-wrap:wrap;min-width:0;font-size:12px;color:#344967}
.routing-escalation-step>span>small{width:100%;color:#8a9ab2;font-size:10px;line-height:1.3}
.routing-escalation-step input[type=number]{height:34px;padding:5px 7px;border:1px solid #dce5f1;border-radius:7px;background:#fff;color:#243756;font-weight:700;color-scheme:light;width:88px;box-sizing:border-box}
.routing-escalation-step>small{font-size:10px;color:#7e8da5}
.routing-escalation-details .routing-email-toggle{margin-top:12px}
@media(max-width:600px){.routing-escalation-step{grid-template-columns:minmax(85px,1fr) 75px 25px}.routing-escalation-step input[type=number]{width:75px}}

/* v4.9 follow-up lifecycle: explicit completion without crowding the Activity form. */
.ws-followup-done{display:flex!important;align-items:flex-start;gap:12px;margin:12px 0 16px;
  padding:13px 15px;background:#f4f8ff;border:1px solid #dbe6fa;border-radius:11px;cursor:pointer}
.ws-followup-done input{width:17px;height:17px;flex:0 0 17px;margin:3px 0 0;accent-color:#4169df}
.ws-followup-done span{display:flex;flex-direction:column;gap:4px;min-width:0}
.ws-followup-done strong{font-size:13px;color:#263b5a;font-weight:650}
.ws-followup-done small{font-size:12px;line-height:1.5;color:#70809a}
.ws-linked-task{display:flex;flex-direction:column;gap:7px;margin:12px 0 16px;color:#536787;font-size:12px;font-weight:650}
.ws-linked-task select{max-width:100%;width:100%}
@media(max-width:650px){.ws-followup-done{padding:11px 12px}}
