/* Original visual implementation for Vital Saboia. */
:root{--bg:#f4f7fe;--surface:#fff;--text:#1b2559;--muted:#7180a5;--line:#edf0f8;--purple:#4318ff;--violet-bg:#f0ebff;--blue-bg:#eaf3ff;--teal-bg:#e4f8f2;--pink-bg:#fff0f6;--shadow:0 5px 24px #263c7803;--radius:22px;color-scheme:light}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:Arial,Helvetica,sans-serif;font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}button{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #9f8aff;outline-offset:4px}main:focus{outline:none}h1,h2,h3,p{margin:0}h1{font-size:27px;letter-spacing:-.8px;line-height:1.3}h2{font-size:25px;letter-spacing:-.7px;line-height:1.35}h3{font-size:18px;letter-spacing:-.35px}strong{font-weight:700}.icon{width:21px;height:21px;flex-shrink:0;display:inline-block;vertical-align:middle}.purple{color:var(--purple)}.muted{color:var(--muted)}.small{font-size:12px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.6px;color:var(--muted);margin-bottom:7px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.skip-link{position:fixed;top:-100px;left:20px;z-index:100;background:var(--purple);color:white;padding:15px;border-radius:10px}.skip-link:focus{top:10px}[hidden]{display:none!important}
.sidebar{position:fixed;inset:0 auto 0 0;width:248px;background:var(--surface);padding:35px 20px 17px;display:flex;flex-direction:column;z-index:40;border-right:1px solid #e9edf650;overflow-y:auto}.brand{display:flex;align-items:center;gap:10px;padding:0 8px 31px;letter-spacing:-1px;font-size:24px;font-weight:800;border-bottom:1px solid var(--line)}.brand-light{font-weight:400}.brand small{display:block;letter-spacing:1.5px;font-size:7px;margin-top:1px;font-weight:700;color:var(--muted)}.workspace-label{font-size:9px;letter-spacing:1.8px;font-weight:700;color:var(--muted);padding:29px 14px 12px}.workspace-label.second{padding-top:30px}.nav-item{display:flex;align-items:center;gap:13px;padding:13px 14px;color:var(--muted);border-radius:12px;margin-bottom:5px;font-size:13px;font-weight:600;position:relative;transition:background .15s,color .15s}.nav-item:hover{background:var(--bg);color:var(--text)}.nav-item.active{background:var(--violet-bg);color:var(--purple)}.nav-item.active:after{content:"";position:absolute;right:-20px;top:13px;bottom:13px;width:4px;background:var(--purple);border-radius:5px 0 0 5px}.nav-count{margin-left:auto;background:var(--bg);border-radius:6px;padding:1px 7px;font-size:10px}.sidebar-bottom{margin:54px 6px 24px;padding:24px 12px 18px;border-radius:18px;background:linear-gradient(145deg,#7656ff,#4318ff);color:#fff;text-align:center;position:relative}.little-brand{width:43px;height:43px;border:5px solid var(--surface);border-radius:16px;background:#a89aff;color:#fff;display:grid;place-items:center;font-size:23px;font-weight:800;position:absolute;top:-23px;left:calc(50% - 21px)}.sidebar-bottom strong{display:block;margin-top:8px;font-size:13px}.sidebar-bottom p{font-size:11px;line-height:1.6;color:#ede9ff;margin:7px 0 16px}.sidebar-bottom a{display:flex;align-items:center;justify-content:center;gap:8px;background:#ffffff24;padding:9px 4px;border-radius:9px;font-size:10px;font-weight:700}.sidebar-bottom a:hover{background:#ffffff40}.sidebar-bottom .icon{width:14px;height:14px}.sidebar-footer{margin-top:auto;text-align:center;font-size:9px;color:var(--muted);display:flex;align-items:center;justify-content:center;gap:6px}.status-dot{background:#29b989;width:5px;height:5px;border-radius:50%}.workspace{margin-left:248px;padding:28px 30px 0;min-height:100vh;display:flex;flex-direction:column}.topbar{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:35px}.breadcrumb{font-size:11px;color:var(--muted);margin-bottom:5px}.breadcrumb span{padding:0 8px;color:#b2bdd4}.header-actions{display:flex;align-items:center;gap:13px;padding:8px 10px 8px 18px;background:var(--surface);border-radius:32px;box-shadow:var(--shadow)}.preview-badge{font-size:10px;font-weight:600;display:flex;align-items:center;gap:6px;color:var(--muted);white-space:nowrap}.preview-badge>span{width:6px;height:6px;border-radius:50%;background:#a898f1}.global-search{display:flex;align-items:center;background:var(--bg);padding:9px 12px;border-radius:25px;gap:8px}.global-search .icon{width:15px;height:15px;color:var(--muted)}.global-search input{background:none;border:0;outline:none;width:125px;color:var(--text);font-size:11px}.global-search:focus-within{outline:2px solid #9f8aff}.profile-avatar{width:35px;height:35px;border-radius:50%;display:grid;place-items:center;background:#1b2559;color:white;font-size:11px;font-weight:700}.icon-button{border:0;background:none;display:inline-flex;align-items:center;justify-content:center;padding:6px;border-radius:10px;color:var(--muted)}.theme-button .icon{width:19px;height:19px}.mobile-toggle,.sidebar-close{display:none}.header-title{display:flex;align-items:center;gap:10px}main{flex:1}.welcome-row{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:27px}.welcome-row .muted{font-size:12px;margin-top:7px}.welcome-row .text-link{margin-bottom:10px;display:inline-flex}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:41px;padding:11px 18px;border-radius:11px;border:1px solid transparent;font-size:12px;font-weight:700;white-space:nowrap;transition:transform .15s,background .15s}.button .icon{width:17px;height:17px}.button.primary{color:white;background:var(--purple);box-shadow:0 5px 14px #4318ff18}.button.primary:hover:not(:disabled){background:#3210dc;transform:translateY(-1px)}.button.secondary{background:var(--bg);color:var(--text);border-color:var(--line)}.button.secondary:hover{background:var(--violet-bg);color:var(--purple)}
.metrics-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:24px}.metric-card{border-radius:var(--radius);background:var(--surface);padding:22px 17px;display:flex;gap:13px;align-items:center;box-shadow:var(--shadow)}.metric-icon{display:grid;place-items:center;width:49px;height:49px;min-width:49px;border-radius:17px}.metric-icon .icon{width:24px;height:24px}.metric-card p{font-size:11px;color:var(--muted);margin-bottom:3px}.metric-card strong{font-size:23px;line-height:1.5;letter-spacing:-.8px;white-space:nowrap}.metric-unit{font-size:13px;font-weight:500;color:var(--muted);letter-spacing:0}.metric-card small{display:block;font-size:9px;color:var(--muted);margin-top:3px;white-space:nowrap}.positive{color:#128566;font-weight:700}.violet{background:var(--violet-bg);color:var(--purple)}.blue{background:var(--blue-bg);color:#326bc5}.teal{background:var(--teal-bg);color:#13866d}.pink{background:var(--pink-bg);color:#c34e88}.panel{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);min-width:0;overflow:hidden}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:24px 24px 18px}.panel-head .muted{margin-top:5px}.dashboard-middle{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(290px,1fr);gap:23px;margin-bottom:24px}.chart-panel{padding-bottom:17px}.select{background:var(--bg);border:1px solid transparent;padding:10px 12px;border-radius:10px;color:var(--text);font-size:11px;max-width:100%}.chart-summary{padding:0 24px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}.chart-summary>strong{font-size:28px;letter-spacing:-1px}.chart-summary>.muted{flex-basis:100%;font-size:10px}.growth{display:flex;align-items:center;gap:2px;background:#e8f9f2;border-radius:7px;color:#128566;font-size:10px;padding:4px 7px;font-weight:700}.growth .icon{width:12px;height:12px}.chart-wrap{display:flex;gap:15px;margin:24px 25px 15px}.axis-values{display:flex;flex-direction:column;justify-content:space-between;padding:9px 0 35px;flex-shrink:0;font-size:9px;color:var(--muted)}.plot{width:100%;min-width:0}.line-chart{height:185px;width:100%;overflow:visible}.grid-line{stroke:var(--line);stroke-dasharray:4 5;fill:none}.comparison-line{stroke:#bac4ed;stroke-width:2;stroke-dasharray:5 6;fill:none;vector-effect:non-scaling-stroke}.sales-line{stroke:var(--purple);stroke-width:3;stroke-linecap:round;stroke-linejoin:round;fill:none;vector-effect:non-scaling-stroke}.axis-labels{display:flex;justify-content:space-between;gap:5px;font-size:9px;color:var(--muted);margin-top:13px}.chart-legend{display:flex;justify-content:center;gap:25px;font-size:10px;color:var(--muted)}.chart-legend span{display:flex;align-items:center;gap:7px}.legend-dot{width:7px;height:7px;border-radius:50%;display:inline-block;background:var(--purple)}.legend-dot.pale{background:#bac4ed}.soft-icon{background:var(--bg);padding:7px;border-radius:9px;color:var(--purple)}.shortcut-list{padding:0 21px}.shortcut{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding:12px 0}.shortcut:last-child{border-bottom:0}.shortcut>span:nth-child(2){flex:1;min-width:0}.shortcut strong{font-size:12px;display:block}.shortcut small{font-size:10px;color:var(--muted);display:block;margin-top:3px}.shortcut>.icon{width:15px;height:15px;color:#9aa8c3}.shortcut:hover strong{color:var(--purple)}.tool-icon{width:42px;height:42px;min-width:42px;display:grid;place-items:center;border-radius:13px}.tool-icon.large{width:56px;height:56px;border-radius:18px}.tool-icon.large .icon{width:27px;height:27px}.all-tools{margin:13px 22px 20px;display:flex;justify-content:center;align-items:center;gap:8px;padding:10px;color:var(--purple);font-size:11px;font-weight:700;background:var(--bg);border-radius:10px}.all-tools .icon{width:15px;height:15px}
.dashboard-bottom{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(290px,1fr);gap:23px}.text-link{color:var(--purple);font-size:11px;font-weight:700;display:inline-flex;align-items:center;gap:7px;white-space:nowrap}.text-link .icon{width:15px;height:15px}.table-scroll{overflow-x:auto}.sales-table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}.sales-table th{font-size:9px;letter-spacing:.7px;color:var(--muted);font-weight:600;border-bottom:1px solid var(--line);padding:8px 18px 13px}.sales-table th:first-child,.sales-table td:first-child{padding-left:24px}.sales-table th:last-child,.sales-table td:last-child{padding-right:24px}.sales-table td{padding:15px 18px;border-bottom:1px solid var(--line);font-size:10px}.sales-table tr:last-child td{border-bottom:0}.client{display:flex;align-items:center;gap:10px}.avatar{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;font-size:10px;font-weight:700}.client strong{font-size:11px}.client small,.cell-sub{display:block;font-size:9px;color:var(--muted);margin-top:3px}.money{font-weight:700}.badge{display:inline-flex;align-items:center;gap:5px;border-radius:7px;padding:5px 7px;font-size:9px;font-weight:600;white-space:nowrap}.badge>span{height:4px;width:4px;background:currentColor;border-radius:50%}.badge.green{background:#e6f8f0;color:#168562}.badge.amber{background:#fff5df;color:#926617}.badge.blue{background:var(--blue-bg);color:#326bc5}.badge.neutral{background:var(--bg);color:var(--muted)}.activity-list{padding:0 24px}.activity{display:flex;gap:12px;margin:9px 0 22px;position:relative}.activity:not(:last-child):after{content:"";width:1px;height:23px;position:absolute;left:17px;top:39px;background:var(--line)}.activity-icon{width:35px;height:35px;border-radius:12px;display:grid;place-items:center;flex-shrink:0}.activity-icon .icon{width:17px;height:17px}.activity strong{font-size:11px}.activity p{font-size:10px;color:var(--muted);margin-top:2px}.activity small{font-size:9px;color:var(--muted)}.activity-link{margin:0 24px 24px}.page-footer{display:flex;justify-content:space-between;gap:12px;font-size:10px;color:var(--muted);padding:27px 3px 22px}
.count-pill{display:inline-flex;align-items:center;padding:4px 10px;background:var(--violet-bg);color:var(--purple);font-size:11px;border-radius:9px;margin-left:6px}.filter-bar{padding:0 24px 22px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}.search-field{border:1px solid var(--line);display:flex;align-items:center;gap:9px;padding:10px 13px;border-radius:11px;flex:1;min-width:180px;background:var(--bg)}.search-field .icon{width:17px;height:17px;color:var(--muted)}.search-field input{background:none;border:0;width:100%;min-width:0;color:var(--text);outline:0;font-size:12px}.search-field:focus-within{outline:2px solid #9f8aff}.pagination{display:flex;justify-content:space-between;align-items:center;padding:22px 24px;border-top:1px solid var(--line)}.pagination>div{display:flex;gap:9px;align-items:center}.page-number{background:var(--purple);color:#fff;width:32px;height:32px;display:grid;place-items:center;border-radius:9px;font-size:12px}.empty-state{text-align:center;padding:50px 20px;color:var(--muted)}.empty-state strong,.empty-state h3{color:var(--text)}.empty-state p{margin-top:8px}.tools-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.tool-card{padding:28px;transition:transform .2s,box-shadow .2s}.tool-card:hover{transform:translateY(-3px);box-shadow:0 12px 30px #4318ff0b}.tool-card-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.tool-card>h3{margin-bottom:8px}.tool-card>p{color:var(--muted);font-size:13px;max-width:330px}.tool-card-bottom{display:flex;justify-content:space-between;align-items:center;gap:15px;border-top:1px solid var(--line);padding-top:22px;margin-top:28px}.tool-card-bottom small{color:var(--muted);font-size:10px}.tool-card-bottom>span{color:var(--purple);font-size:11px;font-weight:700;display:flex;align-items:center;gap:9px}.tool-card-bottom .icon{width:16px;height:16px}.tool-layout{display:grid;grid-template-columns:1.7fr 1fr;gap:24px}.upload-panel,.steps-panel{padding:27px}.dropzone{display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;border:2px dashed #d8dff2;border-radius:17px;margin:24px 0 17px;padding:44px 25px;background:var(--bg)}.upload-icon{width:62px;height:62px;border-radius:20px;background:var(--violet-bg);color:var(--purple);display:grid;place-items:center;margin-bottom:20px}.upload-icon .icon{width:28px;height:28px}.dropzone h3{font-size:16px}.dropzone p{font-size:12px;color:var(--muted);max-width:310px;margin:10px 0}.format-pill{font-size:10px;color:var(--muted);margin:5px 0 23px}.soft-notice{background:var(--bg);color:var(--muted);font-size:11px;padding:13px 15px;border-radius:10px}.steps{list-style:none;padding:0;margin:30px 0}.steps li{display:flex;gap:14px;margin-bottom:29px}.steps li>span{background:var(--violet-bg);color:var(--purple);width:29px;height:29px;border-radius:10px;display:grid;place-items:center;font-size:11px;font-weight:700;flex-shrink:0}.steps strong{font-size:12px}.steps p{font-size:11px;color:var(--muted);margin-top:5px}.form-panel{padding:27px;max-width:1000px}.sale-form fieldset{border:0;padding:0;margin:25px 0}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.form-grid label{font-size:12px;font-weight:600}.form-grid input,.form-grid select{display:block;width:100%;border:1px solid var(--line);background:var(--bg);padding:12px 14px;border-radius:11px;color:var(--text);margin-top:7px;min-width:0}.form-footer{border-top:1px solid var(--line);padding-top:20px;display:flex;justify-content:space-between;align-items:center;gap:20px}.task-row{padding:21px 24px;display:flex;gap:18px;align-items:center;border-top:1px solid var(--line)}.task-info{flex:1;min-width:0}.task-info strong{font-size:13px}.task-info p{font-size:11px;color:var(--muted);overflow-wrap:anywhere;margin-top:5px}.task-count{font-size:11px;color:var(--muted);min-width:90px}.chips-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:23px}.chip-card{padding:25px}.chip-card h3{font-size:17px}.chip-card>.muted{font-size:12px;margin-top:5px}.chip-card dl{margin:24px 0}.chip-card dl>div{display:flex;justify-content:space-between;gap:10px;margin:14px 0;font-size:12px}.chip-card dt{color:var(--muted)}.chip-card dd{margin:0;font-weight:600}.messages-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:23px}.message-search{padding-left:0;padding-right:0;max-width:650px;margin-bottom:5px}.message-card{padding:26px;display:flex;flex-direction:column;align-items:flex-start}.category{font-size:10px;font-weight:600;padding:5px 9px;border-radius:6px;margin-bottom:22px}.message-card h3{font-size:17px}.message-text{font-size:13px;line-height:1.85;color:var(--muted);margin:15px 0 27px;flex:1}.message-card .button{font-size:11px}.notes-panel{padding:0 26px 25px;max-width:1000px}.notes-panel .panel-head{padding-left:0;padding-right:0}.note-editor{display:block;width:100%;min-height:330px;border:0;background:var(--surface);resize:vertical;color:var(--text);line-height:2.3;font-size:14px;padding:15px 0}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);max-width:calc(100% - 36px);background:#1b2559;color:#fff;padding:14px 22px;border-radius:14px;z-index:80;font-size:12px;box-shadow:0 10px 35px #0002}.htmx-request{cursor:progress}.htmx-request .sales-table{opacity:.6}
[data-theme=dark]{--bg:#0c1430;--surface:#141e40;--text:#e9edff;--muted:#a5b1d2;--line:#253257;--purple:#ad98ff;--violet-bg:#2d2356;--blue-bg:#182e54;--teal-bg:#123c37;--pink-bg:#44233b;--shadow:none;color-scheme:dark}[data-theme=dark] .primary{background:#7450ef;color:#fff}[data-theme=dark] .badge.green,[data-theme=dark] .growth{background:#173d36;color:#7ce7bf}[data-theme=dark] .badge.amber{background:#493b22;color:#f4d18c}[data-theme=dark] .blue{color:#91bcff}[data-theme=dark] .teal{color:#7ee0c8}[data-theme=dark] .pink{color:#f5a4c8}[data-theme=dark] .positive{color:#7ce7bf}[data-theme=dark] .dropzone{border-color:#435581}
@media(min-width:1600px){.workspace{padding-left:40px;padding-right:40px}.metric-card{padding:25px}.metric-card strong{font-size:27px}.welcome-row{margin-bottom:32px}.line-chart{height:215px}}
@media(max-width:1350px){.metrics-grid{gap:12px}.metric-card{padding:20px 13px;gap:10px}.metric-icon{width:40px;height:40px;min-width:40px;border-radius:13px}.metric-card strong{font-size:20px}.metric-card small{font-size:8px}.workspace{padding-left:24px;padding-right:24px}.dashboard-middle,.dashboard-bottom{grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);gap:18px}.sales-table td,.sales-table th{padding-left:11px;padding-right:11px}.header-actions{gap:10px}.global-search input{width:100px}.preview-badge{display:none}.welcome-row h2{font-size:23px}}
@media(max-width:1150px){.sidebar{width:218px;padding-left:15px;padding-right:15px}.nav-item{font-size:12px;padding-left:12px;gap:10px}.nav-item.active:after{right:-15px}.brand{font-size:21px;padding-left:3px;gap:8px}.brand img{width:35px;height:35px}.brand small{font-size:6px}.workspace{margin-left:218px}.metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.metric-card strong{font-size:25px}.metric-card small{font-size:10px}.metric-card{padding:19px}.metric-icon{width:48px;height:48px;min-width:48px}.dashboard-middle,.dashboard-bottom{grid-template-columns:minmax(0,1fr)}.shortcut-list{display:grid;grid-template-columns:1fr 1fr;gap:0 28px}.shortcuts-panel .all-tools{margin-top:15px}.activity-list{display:flex;gap:24px}.activity{flex:1}.activity:after{display:none}.activity-list strong{font-size:10px}.chips-grid,.messages-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tool-layout{grid-template-columns:1fr}.steps{display:flex;gap:25px}.steps li{flex:1;margin-bottom:0}.steps-panel{padding-bottom:0}.global-search{display:none}.welcome-row h2{font-size:24px}.sidebar-bottom{margin-top:50px}.chart-panel .line-chart{height:210px}}
@media(max-width:760px){.sidebar{width:248px;transform:translateX(-100%);transition:transform .2s}.menu-open .sidebar{transform:translateX(0)}.menu-open{overflow:hidden}.sidebar-close{display:flex;position:absolute;top:100px;right:8px}.menu-scrim{position:fixed;inset:0;background:#0b143b66;z-index:35;border:0;width:100%;height:100%}.mobile-toggle{display:flex}.workspace{margin-left:0;padding:21px 18px 0}.topbar{margin-bottom:29px}.breadcrumb{font-size:9px}h1{font-size:23px}.header-actions{padding:6px;gap:8px}.profile-avatar{width:31px;height:31px}.theme-button .icon{width:17px;height:17px}.welcome-row{align-items:flex-start;gap:14px;flex-wrap:wrap;margin-bottom:23px}.welcome-row h2{font-size:24px;max-width:400px}.welcome-row .muted{font-size:12px;max-width:340px;line-height:1.7}.eyebrow{font-size:9px;letter-spacing:1.4px}.welcome-row>.button{margin-top:0}.metrics-grid{gap:12px;margin-bottom:18px}.metric-card{padding:17px 13px;display:block}.metric-icon{width:36px;height:36px;min-width:36px;margin-bottom:10px;border-radius:12px}.metric-icon .icon{width:19px;height:19px}.metric-card strong{font-size:22px}.metric-card p{font-size:10px}.metric-card small{white-space:normal;font-size:9px}.metric-unit{font-size:11px}.panel-head{padding:21px 20px 16px}.panel-head h3{font-size:17px}.dashboard-middle,.dashboard-bottom{gap:18px;margin-bottom:18px}.chart-summary{padding-left:20px}.chart-summary>strong{font-size:26px}.chart-panel .select{font-size:9px;padding:9px}.chart-wrap{margin-left:17px;margin-right:20px;gap:9px}.chart-panel .line-chart{height:170px}.axis-values{font-size:8px}.axis-labels{font-size:8px}.chart-legend{font-size:9px;gap:14px}.shortcut-list{display:block}.shortcut{padding:13px 0}.shortcut strong{font-size:13px}.shortcut small{font-size:11px}.activity-list{display:block}.activity{margin-bottom:25px}.activity-list strong{font-size:12px}.activity:after{display:block}.sales-table td{padding-top:15px;padding-bottom:15px}.sales-table{min-width:570px}.page-footer{font-size:9px;flex-wrap:wrap;padding-top:15px}.tools-grid,.chips-grid,.messages-grid{grid-template-columns:1fr;gap:18px}.tool-card{padding:25px}.tool-card>p{font-size:12px}.filter-bar{padding:0 18px 20px;gap:10px}.filter-bar .search-field{flex-basis:100%}.filter-bar .select{flex:1}.pagination{padding:18px}.pagination .button{padding:8px 12px;font-size:10px}.upload-panel,.steps-panel{padding:22px}.steps{display:block}.steps li{margin-bottom:24px}.dropzone{padding:30px 16px}.dropzone h3{font-size:15px}.form-panel{padding:22px}.form-grid{grid-template-columns:1fr;gap:18px}.form-footer{flex-wrap:wrap}.task-row{gap:12px;padding:20px;flex-wrap:wrap}.task-info{flex-basis:calc(100% - 60px)}.task-count{margin-left:54px}.task-row>.small{margin-left:auto}.message-search{padding:0 0 22px}.notes-panel{padding-left:20px;padding-right:20px}.note-editor{font-size:13px}.sales-heading .small{display:none}.tool-card-bottom{flex-wrap:wrap}.menu-open .sidebar .brand{padding-bottom:31px}.sidebar-footer{margin-top:20px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;scroll-behavior:auto!important}}

.nav-logout{margin:0}.nav-logout .nav-item{border:0;background:none;width:100%;text-align:left;cursor:pointer;font-family:inherit}.nav-logout .nav-item:hover{background:var(--bg)}

.field{display:flex;flex-direction:column;gap:7px}.field label{font-weight:600}.field input,.field select,.field textarea{width:100%;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--text);padding:11px 13px}.field input[type=checkbox]{width:auto;align-self:flex-start}.errorlist{color:#c12c4d;padding-left:18px}.crm-details{margin:22px 0}.crm-details dt{color:var(--muted);font-size:12px}.crm-details dd{margin:5px 0 0;overflow-wrap:anywhere;white-space:pre-wrap}.crm-table{margin-top:22px}.table-scroll{overflow-x:auto}.company-access{font-family:monospace}.panel+.panel{margin-top:22px}

progress{accent-color:var(--purple);max-width:100%;height:12px}

/* Supplied brand: transparent assets, with a high-contrast inverse in dark mode. */
.brand{display:block;padding:0 0 22px}.brand .brand-logo{display:block;width:100%;height:auto;max-width:208px}.little-brand .brand-symbol{display:block;width:36px;height:36px;object-fit:contain;filter:brightness(0) invert(1)}[data-theme=dark] .brand .brand-logo{filter:brightness(0) invert(1)}

/* Notes use the available workspace rather than the message-card columns. */
.notes-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:24px}
.note-card{min-width:0;padding:28px}
.notes-grid>.panel+.panel{margin-top:0}
.note-card h3{overflow-wrap:anywhere}
.note-text{max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.8;color:var(--text);margin:20px 0 28px}
.note-card .form-footer{flex-wrap:wrap}
.notes-form-panel{max-width:none}
.notes-form-panel .form-grid{grid-template-columns:minmax(0,1fr)}
.notes-form-panel .field{min-width:0}
.notes-form-panel textarea{min-height:480px;resize:vertical;font-family:inherit;line-height:1.8;overflow-wrap:anywhere}
@media(max-width:760px){.notes-grid{gap:18px}.note-card{padding:22px 20px}.note-text{font-size:14px;margin:16px 0 22px}.notes-form-panel textarea{min-height:320px}}
