/* V10 light workspace: white surfaces, clear typography and warm CRM accents. */
:root{color-scheme:light;--bg:#f5f7fa;--panel:#fff;--surface:#f7f8fa;--line:#e4e8ef;--text:#172033;--muted:#64748b;--orange:#e5483f;--accent:#e5483f;--green:#16804d;--red:#c2413a;--radius:18px}
html,body{background:#f5f7fa;color:#172033}
body{background:radial-gradient(ellipse at 96% 0,rgba(249,115,22,.055),transparent 28%),linear-gradient(145deg,#f8fafc,#f3f5f8 68%,#fff 100%);background-attachment:fixed}
.shell{background:transparent}
.rail{background:rgba(255,255,255,.94);border-right:1px solid #e5e9ef;box-shadow:1px 0 0 rgba(255,255,255,.8);color:#243247}
.rail-brand .brand-icon,.rail .brand-icon,.auth-story .brand-icon{background:linear-gradient(135deg,#ef5147,#f97316);color:#fff;box-shadow:0 5px 15px rgba(229,72,63,.2)}
.rail-brand strong{color:#172033}.rail-brand small,.rail-user small{color:#788497}
.nav-group{color:#8a95a4}
.rail .navbtn{color:#48576b;border-color:transparent}
.rail .navbtn svg{color:#7b8798}
.rail .navbtn.active{color:#fff;background:linear-gradient(105deg,#e5483f,#f97316);border-color:transparent;box-shadow:0 5px 15px rgba(229,72,63,.18);font-weight:650}
.rail .navbtn.active svg{color:#fff}
.rail .navbtn:hover:not(.active){background:#f4f5f7;color:#172033}
.rail .navbtn:hover:not(.active) svg{color:#475569}
.rail-user{border-color:#e7ebf0}.rail-user strong{color:#273449}.rail-user .avatar{background:#fff0ed;color:#bd4037}
.workspace{background:transparent;color:#172033}
.topbar{border-color:#e2e7ee}.topbar h1{color:#172033}.topbar small{color:#748094}
#page-context{color:#7b8798}#page-context strong{color:#465469}#page-context small{color:#8390a0}
.page-head h1,.bento-heading h1{color:#172033}.page-head p,.bento-heading p{color:#667386}
.bento-eyebrow{color:#c44940}
button{background:#fff;color:#435166;border-color:#dfe4eb;box-shadow:0 1px 2px rgba(20,35,60,.035)}
button:hover{background:#f6f7f9;border-color:#cbd3de;color:#172033}
button.primary,.primary{background:linear-gradient(110deg,#e5483f,#f97316);border-color:#e5483f;color:#fff;box-shadow:0 5px 14px rgba(229,72,63,.16)}
.primary:hover,button.primary:hover{background:linear-gradient(110deg,#cf3e37,#e96516);border-color:#cf3e37;color:#fff;box-shadow:0 7px 18px rgba(229,72,63,.22)}
.quiet{background:#fff;color:#4b586b}a{color:#c3443b}
input,select,textarea{background:#fff;border-color:#dce2ea;color:#243247}
input[type=checkbox]{accent-color:#e5483f}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline-color:#ef6358}
.work-summary{color:#bb443b}
.searchbox input{background:#fff;border-color:#dfe4eb;color:#243247;box-shadow:0 2px 5px rgba(20,35,60,.035)}
.topbar-tools .count{background:#fff0ed;color:#b83d35}
.notification-button{background:#fff;border-color:#e0e5ec;color:#5a6678}.notification-count{background:#e5483f;border-color:#f5f7fa}
.notification-panel,.search-results{background:#fff;border-color:#e1e6ed;box-shadow:0 16px 42px rgba(20,35,60,.14)}
.notification-head,.notification-foot{color:#536176;border-color:#e9edf2}.notification-item:hover{background:#f7f8fa}
.bento-card,.bento-records .split>section,.bento-dashboard .bento-health .light-panel,.light-panel,.detail-panel,.plan-company-card,.my-plan-card,.integration-card,.panel,.card{background:#fff;border-color:#e4e8ef;color:#273449;box-shadow:0 5px 18px rgba(20,35,60,.045)}
.bento-card{border-radius:20px;transition:transform .2s,box-shadow .2s,border-color .2s}
.bento-card:hover{border-color:#d7dce5;box-shadow:0 10px 26px rgba(20,35,60,.09)}
.bento-pipeline{background:linear-gradient(135deg,#fff5f2,#fff);border-color:#f0d8d3;color:#263449}
.bento-pipeline .bento-card-top{color:#a7473f}.bento-pipeline .bento-card-top svg{color:#e5483f;background:#fff}
.bento-pipeline .bento-value{color:#c84239}.bento-pipeline p,.bento-status{color:#6b7180}
.bento-hero-bottom a,.bento-pipeline a{color:#c3443b}
.bento-status:before{background:#e5483f}
.bento-forecast{background:#f0f5ff;border-color:#dfe7f6}.bento-forecast .bento-card-top{color:#4c68a0}.bento-forecast .bento-value{color:#365791}.bento-forecast p,.bento-footnote{color:#5f7399}
.bento-focus{background:#fff5e9;border-color:#f3e3ce}.bento-focus .bento-card-top{color:#8c5b2b}.bento-focus .bento-value{color:#a75e24}.bento-focus .bento-value small,.bento-focus p{color:#806b57}
.bento-health .section-title h2,.bento-records .section-title h2,.bento-dashboard .bento-health .section-title h2{color:#273449}
.bento-dashboard .bento-health .pipeline-bar{background:#f7f8fa}.bento-dashboard .bento-health .pipeline-bar strong{color:#344256}.bento-dashboard .bento-health .pipeline-bar small{color:#748094}
.bento-dashboard .bento-health .bar{background:#e8ebf0}.bento-dashboard .bento-health .bar i{background:#e5483f}.bento-dashboard .bento-health .pipeline-bar:nth-child(2) .bar i{background:#7c68c4}.bento-dashboard .bento-health .pipeline-bar:nth-child(3) .bar i{background:#d39424}.bento-dashboard .bento-health .pipeline-bar:nth-child(4) .bar i{background:#27956b}
.bento-results{background:#fff;border-color:#e4e8ef}.bento-results .bento-card-top{color:#536176}.bento-results-body>div>strong{color:#273449}.bento-ring{background:conic-gradient(#e5483f var(--win),#edf0f4 0)}
.bento-records .section-title a,.bento-records .list-item button{color:#bd4037}.bento-records .list-item{border-color:#edf0f4}.bento-records .list-item strong{color:#2c3a4f}.bento-records .list-item small{color:#788497}
.bento-shortcuts a{background:#fff;border-color:#e1e6ed;color:#465469}.bento-shortcuts svg{color:#e5483f}.bento-shortcuts a:hover{background:#fff5f2;border-color:#f0c8c1}
.kanban .column{background:var(--wash);border-color:#e4e8ef}.kanban .deal-card{background:#fff;border-color:#e4e8ef;box-shadow:0 4px 12px rgba(20,35,60,.05)}
.table-wrap{background:#fff;border-color:#e2e7ee;box-shadow:0 4px 14px rgba(20,35,60,.035)}
.table-wrap th{background:#f4f6f8;color:#5b687b;border-color:#e5e9ef}.table-wrap td{color:#465469;border-color:#edf0f4}.table-wrap td strong{color:#273449}.table-wrap tr:hover{background:#fafbfc}
.metrics .metric{box-shadow:0 4px 14px rgba(20,35,60,.035)}.metrics .metric strong{color:#273449}
.badge{border-color:#e1e6ed;background:#f3f5f7;color:#536176}.badge.good,.badge.green{background:#e9f6ef;color:#13734d;border-color:#cce8d8}.badge.warn{background:#fff6e5;color:#8f6200;border-color:#f2dfb1}.badge.bad,.badge.red{background:#fff0ee;color:#b43832;border-color:#f0d0cc}
.tabs button.active{background:linear-gradient(110deg,#e5483f,#f97316);border-color:#e5483f;color:#fff}
.integration-icon{background:#fff0ed;color:#c3443b}.shortcut-grid svg{color:#e5483f}
.feature-toggle input:checked+i{background:#e5483f}.row-check,.growth-import-select,.growth-change-select{accent-color:#e5483f}.feature-toggle input:focus-visible+i{outline-color:#ef6358}
.bar{background:#e8ebf0}.bar i{background:#e5483f}
dialog{background:#fff;border-color:#e2e7ee;color:#273449;box-shadow:0 28px 90px rgba(20,35,60,.2)}dialog::backdrop{background:rgba(25,37,55,.34)}
.modal-head,.modal-body{background:#fff;border-color:#e8ebf0}.modal-head h2,.auth-form h2{color:#172033}.modal-foot{background:#f7f8fa;border-color:#e8ebf0}.modal-body label{color:#536176}.modal-body input,.modal-body select,.modal-body textarea{background:#fff;border-color:#dce2ea}
.auth{background:#fff;border-color:#e4e8ef;box-shadow:0 18px 55px rgba(20,35,60,.09)}.auth-story{background:linear-gradient(145deg,#fff2ed,#fff8f1);color:#273449}.auth-story h1{color:#172033}.auth-story p,.auth-story small{color:#667386}.auth-story .brand-icon{background:linear-gradient(135deg,#e5483f,#f97316)}
.toast{background:rgba(255,255,255,.97);color:#273449;border-color:#e1e6ed;box-shadow:0 14px 36px rgba(20,35,60,.16)}
.empty h3{color:#344256}.empty p,.pagination{color:#748094}
.dashboard-filters{background:rgba(255,255,255,.94);border-color:#e3e8ef;box-shadow:0 3px 12px rgba(20,35,60,.035)}.dashboard-filters label{color:#536176}
.work-warning{background:#fff7e6;color:#875f13;border-color:#ead49f}.work-summary{color:#bd4037}
@media(max-width:700px){.rail{background:rgba(255,255,255,.97);border-bottom-color:#e5e9ef}.rail .navbtn.active{box-shadow:0 4px 12px rgba(229,72,63,.18)}.workspace{background:transparent}}
@media(prefers-reduced-motion:reduce){.bento-card,.bento-records .split>section,#view>.page-head,#view>.toolbar,#view>.table-wrap,#view>.kanban,#view>.metrics,#view>.detail-grid{animation:none!important;transition:none!important}}

/* Secure record attachments and the company ERP switch. */
.file-upload-field{margin-top:4px;padding:14px 16px;border:1px dashed #cbd5e1;border-radius:14px;background:#f8fafc}
.file-upload-field>label{display:grid;gap:7px;font-weight:650;color:#334155}
.file-upload-field input[type=file]{width:100%;min-height:44px;padding:9px;border:1px solid #dbe3ec;border-radius:10px;background:#fff;color:#334155}
.file-upload-field small{color:#64748b;font-size:12px;font-weight:450}
.record-file-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.record-file-link{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;color:#a33625;background:#fff1ed;font-size:12px;font-weight:650;text-decoration:none}
.record-file-link:hover{background:#ffe2d9}
.erp-company-toggle{display:flex;align-items:center;gap:10px;padding:9px 0;color:#334155;font-weight:650}
.erp-company-toggle input{accent-color:#e34f3d;width:18px;height:18px}
