:root{--navy:#142e46;--navy-deep:#10273b;--ink:#182d3f;--muted:#7c8995;--teal:#217e78;--teal-soft:#e9f5f1;--orange:#c88a54;--line:#e7ecef;--bg:#f5f7f9;--white:#fff;--sidebar:230px;font-family:Inter,'Segoe UI',Arial,sans-serif;color:var(--ink);font-size:14px;font-weight:400}*{box-sizing:border-box}body{margin:0;background:var(--bg)}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer}button:disabled{opacity:.55;cursor:not-allowed}h1,h2,h3,p{margin-top:0}h1{font-size:30px;letter-spacing:-1px;line-height:1.2;margin-bottom:9px;font-weight:650}h2{font-size:16px;letter-spacing:-.25px;font-weight:650;margin-bottom:14px}h3{font-size:15px}p{line-height:1.6}small{font-size:12px;line-height:1.5;color:var(--muted)}strong{font-weight:600}.icon{height:20px;width:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.sprite{position:absolute;width:0;height:0}.sidebar{width:var(--sidebar);position:fixed;inset:0 auto 0 0;z-index:30;background:var(--navy-deep);color:#626265;padding:32px 18px 20px;display:flex;flex-direction:column;transition:transform .2s}.brand{display:flex;align-items:center;gap:10px;color:white;font-size:27px;font-weight:650;letter-spacing:-1px;padding:0 12px}.brand-mark{width:35px;height:35px;background:#eef5f4;color:var(--navy);font-size:32px;line-height:27px;border-radius:10px;text-align:center;position:relative}.brand-mark span{font-size:26px;position:absolute;color:#626265;right:0;bottom:-9px}.brand-light{font-weight:300;color:#626265}.brand small{display:block;font-size:12px;letter-spacing:2.1px;color:#626265;margin-top:3px}.workspace{border:1px solid #ffffff13;border-radius:7px;padding:12px;margin:32px 6px 23px;font-size:12px;display:flex;align-items:center;gap:9px;color:#626265}.workspace-dot{height:7px;width:7px;background:#7dbdb1;border-radius:50%}.workspace-label{margin-left:auto;font-size:12px;color:#626265}.nav-caption{font-size:12px;letter-spacing:1.7px;color:#626265;margin:0 16px 12px}.nav-link{display:flex;align-items:center;gap:13px;padding:13px 15px;font-size:13px;margin-bottom:5px;border-radius:6px;transition:background .2s;color:#626265}.nav-link:hover{background:#ffffff09;color:white}.nav-link.active{background:#294357;color:white;box-shadow:inset 3px 0 0 #92c5ba}.nav-link .icon{width:18px;height:18px}.nav-active-dot{margin-left:auto;background:#a8d1c8;width:5px;height:5px;border-radius:50%}.sidebar-bottom{display:flex;gap:10px;margin-top:auto;padding:20px 12px 0;font-size:12px;border-top:1px solid #ffffff0d}.sidebar-bottom small{display:block;color:#626265;font-size:12px;margin-top:7px}.connection-dot{background:#87bcae;box-shadow:0 0 0 4px #87bcae13;height:6px;width:6px;border-radius:50%;margin-top:4px}.shell{margin-left:var(--sidebar);transition:margin .2s}.topbar{height:76px;padding:0 36px;background:#fff;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:20px;position:sticky;top:0;z-index:20}.topbar-left,.topbar-right{display:flex;align-items:center;gap:20px}.icon-button{border:0;background:transparent;color:#626265;padding:6px;display:inline-flex;align-items:center;justify-content:center;border-radius:5px}.icon-button:hover{background:#edf1f4;color:var(--ink)}.company-logo{font-size:16px;letter-spacing:2px;font-weight:650;line-height:1}.company-logo>span{color:#626265}.company-logo small{display:block;font-size:12px;letter-spacing:1.5px;margin-top:5px}.top-divider{width:1px;height:24px;background:var(--line)}.top-location{font-size:12px;color:#626265}.notification{position:relative;display:flex;padding:8px;margin-right:10px;color:#626265}.notification b{position:absolute;top:1px;right:-6px;background:#bd7558;border:2px solid white;font-size:12px;color:white;border-radius:20px;padding:1px 4px}.avatar{display:inline-flex;align-items:center;justify-content:center;background:#e8eeed;color:#4a6f69;width:36px;height:36px;border-radius:50%;font-size:12px;flex-shrink:0;font-weight:600}.avatar.small{width:31px;height:31px;font-size:12px}.avatar.large{width:65px;height:65px;font-size:22px;background:#e1eeea}.user-meta{text-align:right;line-height:1.1}.user-meta strong{display:block;font-size:12px}.user-meta small{display:block;font-size:12px;margin-top:5px}.logout{border:0;background:transparent;color:var(--muted);font-size:12px;padding:5px}.topbar-right{gap:12px}main{max-width:1680px;margin:auto;padding:25px 36px 44px}.breadcrumb{font-size:12px;color:#626265;margin-bottom:29px}.breadcrumb span{margin:0 11px;color:#626265}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.page-heading p{font-size:12px;color:var(--muted);margin-bottom:0}.eyebrow{display:block;font-size:12px;letter-spacing:1.8px;color:#626265;font-weight:650;margin-bottom:11px}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:38px;border:1px solid #dce3e7;background:white;color:#42586a;border-radius:6px;padding:9px 15px;font-size:12px;font-weight:600;white-space:nowrap;transition:background .15s,transform .15s}.button:hover{background:#eef3f5}.button.primary{background:var(--navy);color:white;border-color:var(--navy);box-shadow:0 3px 6px #142e460c}.button.primary:hover{background:#23475f}.button.danger{color:#ad5549;background:#fff8f5;border-color:#eddbd5}.button.small-button{min-height:29px;padding:5px 9px;font-size:12px}.button.full{display:flex;width:100%}.actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.actions form{margin:0}.view-row{display:flex;align-items:center;justify-content:space-between;margin:0 0 20px;gap:14px}.segmented{display:inline-flex;padding:4px;background:#e9eef1;border:1px solid #e4eaed;border-radius:7px;gap:3px}.segmented a{padding:7px 19px;font-size:12px;color:#626265;border-radius:4px}.segmented a.selected{background:white;color:var(--navy);box-shadow:0 1px 4px #253e4910;font-weight:600}.date-label{display:flex;align-items:center;gap:8px;font-size:12px;color:#626265}.date-label .icon{height:15px;width:15px}.filters{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;background:#fff;border:1px solid var(--line);padding:16px 20px;border-radius:8px;margin-bottom:22px}.filters label{min-width:120px;flex:1;font-size:12px;letter-spacing:.2px;color:#626265;font-weight:500}.filters label select,.filters label input{margin-top:6px}.filters select,.filters input{min-height:34px;font-size:12px}.filters .button{min-height:34px;padding:7px 16px}.reset{font-size:12px;color:#626265;border:0;background:none;padding:8px 3px;cursor:pointer}.reset:hover{color:var(--teal)}input,select,textarea{width:100%;background:white;color:#354c5e;border:1px solid #dfe5e9;border-radius:5px;padding:9px 10px;min-height:37px;max-width:100%}input:focus,select:focus,textarea:focus{border-color:#5d9b93;outline:2px solid #6ea89b22}input[type=checkbox]{width:16px;min-height:16px;vertical-align:middle}input[type=file]{font-size:12px;max-width:460px}select[multiple]{min-height:150px}textarea{resize:vertical;line-height:1.5}.more-filters{font-size:12px;width:100%;border-top:1px solid var(--line);padding-top:9px}.more-filters>div{display:flex;gap:15px;padding-top:12px}.more-filters label{flex:1}summary{cursor:pointer;color:#626265;font-size:12px;padding:5px 0}details[open]>summary{margin-bottom:10px}.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:22px}.kpi{border:1px solid var(--line);background:white;border-radius:9px;padding:19px 21px;position:relative}.kpi-top{display:flex;justify-content:space-between;align-items:center;color:#626265;font-size:12px}.kpi-icon{display:flex;background:#f2f5f6;padding:7px;border-radius:8px;color:#5c7686}.kpi:nth-child(2) .kpi-icon{background:var(--teal-soft);color:#626265}.kpi:nth-child(3) .kpi-icon{background:#fcf3ea;color:#626265}.kpi:nth-child(4) .kpi-icon{background:#eef0fa;color:#626265}.kpi-icon .icon{width:17px;height:17px}.kpi>strong{display:block;font-size:35px;letter-spacing:-1px;margin-top:9px;margin-bottom:9px;font-weight:600}.kpi>small{font-size:12px;color:#626265}.panel{background:white;border:1px solid var(--line);border-radius:9px;padding:23px;margin-bottom:22px;min-width:0}.panel.flush{padding:0}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.panel-heading h2{margin-bottom:0}.panel-heading p{font-size:12px;margin:5px 0 0;color:#626265}.pill{background:#f0f3f6;color:#626265;padding:5px 9px;border-radius:5px;font-size:12px;font-weight:500;display:inline-block;white-space:nowrap}.pill.teal{background:var(--teal-soft);color:#626265}.pill.warning{background:#fff4e9;color:#626265}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:22px}.two-col>.panel{height:calc(100% - 22px)}.chart-grid{grid-template-columns:1.7fr 1fr}.three-col{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.three-col .panel{padding:20px}.chart-legend{display:flex;gap:18px;font-size:12px;color:#626265;margin:4px 0 15px}.chart-legend>span{display:flex;gap:6px;align-items:center}.dot{display:inline-block;width:6px;height:6px;border-radius:50%;margin-right:6px}.navy{background:var(--navy)}.teal-bg{background:#71a99d}.orange{background:#d7ab7d}.activity-chart{height:195px;position:relative}.activity-chart svg{width:100%;height:100%;overflow:visible}.chart-data{font-size:12px;margin-top:14px}.chart-data summary{font-size:12px;color:#626265}.chart-empty{display:grid;place-items:center;height:100%;color:var(--muted);font-size:12px}.management .health-number{font-size:43px;font-weight:550;letter-spacing:-2px;margin:4px 0 24px}.health-number>span{font-size:12px;letter-spacing:0;color:#626265;margin-left:11px;font-weight:400}.health-row{display:flex;justify-content:space-between;align-items:center;padding:10px 0;border-bottom:1px solid #f0f3f5;gap:15px;font-size:12px;color:#626265}.health-row:last-child{border:0}.health-row strong{color:#3d5365;font-size:12px}.small-label{font-size:12px;color:#626265;letter-spacing:1.5px}.table-scroll{overflow:auto;max-width:100%}table{border-collapse:collapse;width:100%;text-align:left;white-space:nowrap}th{background:#f8fafb;font-size:12px;font-weight:500;color:#626265;padding:12px 14px;border-bottom:1px solid var(--line);letter-spacing:.1px}td{font-size:12px;padding:16px 14px;border-bottom:1px solid #eff2f4;color:#556c7d}tr:last-child>td{border-bottom:0}td small{display:block;font-size:12px;margin-top:5px;color:#626265}td strong{color:#344d60}.person-link{display:flex;align-items:center;gap:10px;font-size:12px}.person-link>span:last-child:not(.avatar){display:block}.person-link:hover{color:var(--teal)}.round-link{height:26px;width:26px;display:inline-grid;place-items:center;border:1px solid #e2e8eb;border-radius:50%;color:#626265}.text-link{font-size:12px;color:#487d80;font-weight:600}.empty{text-align:center;padding:45px;color:#626265;font-size:13px;white-space:normal}.empty strong,.empty small{display:block;margin-top:7px}.empty h2{color:#577083}.empty.compact{padding:24px 5px}.funnel-labels{display:flex;justify-content:space-between;font-size:12px;letter-spacing:.7px;color:#626265;margin-bottom:15px}.funnel-row{display:grid;grid-template-columns:110px 1fr 60px;align-items:center;gap:12px;margin:14px 0}.funnel-row>div:first-child{display:flex;justify-content:space-between;font-size:12px;color:#626265}.funnel-row strong{color:#3e586b}.funnel-track{height:12px;background:#f2f5f6;border-radius:3px;overflow:hidden}.funnel-track i{display:block;height:100%;background:#679c93;border-radius:3px}.funnel-row:nth-of-type(2n) .funnel-track i{background:#395e72}.funnel-row>small{text-align:right;font-size:12px}.fineprint{font-size:12px;color:#626265;line-height:1.7;margin:16px 0 0}.interest{display:inline-flex;align-items:center;font-size:12px;color:#626265;gap:5px}.interest:before{content:'';display:block;width:5px;height:5px;border-radius:50%;background:#bcc5ca}.interest.high{color:#626265}.interest.high:before{background:#65a590}.interest.medium{color:#626265}.interest.medium:before{background:#d5aa71}.interest.low{color:#626265}.interest.low:before{background:#c9a5a2}.interest-row{display:flex;gap:5px;flex-wrap:wrap;margin:15px 0}.interest-row>strong{font-size:12px;width:100%;margin-bottom:3px}.interest-row>small{width:100%}.result-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;padding:12px 0}.result-grid>div>strong{font-size:26px;display:block}.result-grid small{font-size:12px}.metrics-strip{display:flex;justify-content:space-between;border-top:1px solid var(--line);margin-top:15px;padding-top:15px;gap:8px}.metrics-strip span{font-size:12px;color:#626265}.metrics-strip strong{display:block;font-size:15px;color:#466f73;margin-bottom:5px}.muted{color:var(--muted);font-size:12px}.table-toolbar{display:flex;justify-content:space-between;align-items:center;padding:18px 20px;gap:15px}.search-form{display:flex;gap:9px;align-items:center;flex:1;max-width:520px}.search-form .icon{color:#626265;width:17px;height:17px}.search-form input{font-size:12px;background:transparent;min-width:100px}.pagination{display:flex;justify-content:space-between;align-items:center;padding:17px 20px;border-top:1px solid var(--line);font-size:12px;color:#626265}.pagination>div{display:flex;gap:12px;align-items:center}.extra-column{display:none}.expanded-columns .extra-column{display:table-cell}.leads-table th:first-child,.leads-table td:first-child{position:sticky;left:0;background:white;z-index:1}.leads-table th:first-child{background:#f8fafb}.kanban{display:flex;gap:15px;overflow-x:auto;align-items:flex-start;padding-bottom:30px;min-height:480px}.kanban-column{min-width:235px;width:235px;background:#edf1f4;border-radius:8px;padding:12px;flex-shrink:0}.column-heading{display:flex;justify-content:space-between;align-items:center;border-top:3px solid #728f9f;padding:12px 2px 15px}.column-heading h2{font-size:12px;margin:0}.column-heading>span{font-size:12px;background:white;color:#626265;padding:3px 6px;border-radius:4px}.kanban-column.interested .column-heading,.kanban-column.opportunity .column-heading,.kanban-column.application .column-heading{border-color:#a5b7a1}.kanban-column.visit .column-heading{border-color:#d0aa77}.kanban-column.sold .column-heading,.kanban-column.rented .column-heading{border-color:#4f9484}.kanban-column.lost .column-heading{border-color:#c3a5a1}.deal-card{display:block;border:1px solid #e6ebed;background:white;padding:16px 14px;border-radius:7px;margin-bottom:12px;box-shadow:0 2px 4px #1d354603;transition:transform .15s,box-shadow .15s}.deal-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px #1d354610}.card-top{display:flex;justify-content:space-between;margin-bottom:16px}.card-top small{font-size:12px}.deal-card h3{font-size:12px;margin-bottom:6px}.deal-card p{font-size:12px;color:#626265;margin-bottom:6px}.deal-card>small{font-size:12px}.card-followup{display:flex;align-items:center;gap:6px;background:#f5f8f7;padding:7px;font-size:12px;margin-top:17px;color:#626265;border-radius:4px}.card-followup .icon{height:12px;width:12px}.card-followup.late{color:#626265;background:#fcf6ed}.card-footer{display:flex;justify-content:space-between;font-size:12px;color:#626265;padding-top:12px;margin-top:12px;border-top:1px solid #f0f3f5}.column-empty{padding:25px 0;text-align:center;color:#626265;font-size:12px}.project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:23px}.project-card{background:white;border:1px solid var(--line);border-radius:10px;overflow:hidden}.project-art{height:190px;background:#cad8d2;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;color:#3e6157}.project-art.art-True{background:#e3ded1;color:#72634b}.project-type{position:absolute;top:15px;right:15px;font-size:12px;background:#ffffff80;padding:5px 9px;border-radius:4px}.project-wordmark{font-size:24px;font-family:Georgia,serif;position:relative;text-align:center;padding:25px 20px;z-index:1;max-width:100%}.project-art-caption{font-size:12px;letter-spacing:2px;position:relative;z-index:1}.architectural-lines{position:absolute;inset:0;background:repeating-linear-gradient(90deg,transparent 0,transparent 37px,#ffffff30 38px,#ffffff30 39px),repeating-linear-gradient(0deg,transparent 0,transparent 37px,#ffffff30 38px,#ffffff30 39px);transform:rotate(-12deg) scale(1.5);mask-image:linear-gradient(90deg,black,transparent)}.project-content{padding:22px}.project-content h2{font-size:16px;margin-bottom:5px}.project-content>.muted{font-size:12px}.project-numbers{display:flex;gap:35px;margin:22px 0 15px}.project-numbers strong{font-size:24px;display:block;font-weight:500}.project-numbers small{font-size:12px}.availability{height:4px;background:#edf2f3;border-radius:5px}.availability i{display:block;height:100%;background:#64988c}.project-actions{display:flex;gap:10px;margin-top:20px}.project-actions .primary{flex:1}.project-tabs{margin-bottom:22px;overflow-x:auto}.tabs{display:flex;border-bottom:1px solid var(--line);gap:20px;margin-bottom:24px}.tab{border:0;border-bottom:2px solid transparent;background:none;color:#626265;font-size:12px;padding:12px 0;white-space:nowrap}.tab.active{color:#385a6d;border-bottom-color:#5e9c90;font-weight:600}.form-panel{max-width:900px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 22px}.editor-form p{margin-bottom:20px}.editor-form label,.stack-form label{display:block;font-size:12px;font-weight:500;color:#626265;margin-bottom:7px}.editor-form input,.editor-form select,.editor-form textarea,.stack-form input,.stack-form select,.stack-form textarea{margin-top:6px;font-size:12px}.editor-form .helptext{display:block;font-size:12px;color:#626265;margin-top:6px}.editor-form ul{font-size:12px;color:#626265;padding-left:16px}.form-actions{display:flex;gap:10px;border-top:1px solid var(--line);padding-top:22px;margin-top:12px}.errorlist{color:#b45b4b!important;font-size:12px;padding-left:17px}.stack-form{display:flex;flex-direction:column;gap:10px}.stack-form p{margin:0 0 8px}.client-heading{display:flex;align-items:center;gap:19px}.client-heading h1{font-size:26px}.client-heading .eyebrow{font-size:12px}.deal-summary{display:flex;align-items:center;flex-wrap:wrap;gap:18px;padding:16px 20px;background:white;border:1px solid var(--line);border-radius:8px;margin-bottom:22px;font-size:12px;color:#626265}.detail-layout{display:grid;grid-template-columns:295px minmax(0,1fr);gap:22px}.detail-left .panel{padding:20px}.detail-main .panel{padding:24px}.detail-left h2{font-size:13px}dl{margin:0 0 20px}dt{font-size:12px;color:#626265;margin-top:17px;margin-bottom:5px}dd{margin:0;font-size:12px;line-height:1.6;overflow-wrap:anywhere;color:#466071}dd small{display:block}.note{background:#faf8f3;border-left:2px solid #d9c8a6;border-radius:3px;padding:12px;font-size:12px;color:#626265;margin-bottom:18px}.list-item{display:flex;align-items:center;gap:13px;padding:15px 0;border-bottom:1px solid #eef2f4}.list-item:last-child{border:0}.list-item>a,.list-item>span:nth-child(2){flex:1;min-width:0}.list-item strong{font-size:12px;color:#456071;display:block}.list-item small{display:block;font-size:12px;margin-top:4px}.list-item .actions{margin-left:auto}.task-dot{height:10px;width:10px;border:1px solid #9eb6ac;border-radius:50%;flex-shrink:0}.task-dot.overdue{border-color:#d8ad85;background:#f7e8d7}.mini-date{height:42px;width:38px;background:#f3f5f7;border-radius:5px;text-align:center;padding-top:4px;font-size:17px;line-height:1.2;color:#626265;flex-shrink:0}.mini-date small{font-size:12px;margin:0}.priority-banner{display:flex;align-items:center;justify-content:space-between;background:#eaf3ef;border:1px solid #d8e8df;padding:22px;border-radius:8px;margin-bottom:22px;gap:20px}.priority-banner>div{padding-left:40px;position:relative}.priority-banner strong{font-size:13px;color:#386b5c}.priority-banner p{font-size:12px;color:#626265;margin:6px 0 0}.priority-marker{position:absolute;left:0;top:4px;display:grid;place-items:center;width:25px;height:25px;background:#d4e6dc;color:#626265;border-radius:50%;font-weight:bold}.wave{color:#626265}.visit-item,.operation-item{border-bottom:1px solid var(--line);padding:12px 0 22px;margin-bottom:15px}.visit-item>p{font-size:12px;color:#626265}.visit-actions select,.visit-actions input{width:auto;flex:1;min-width:160px;font-size:12px}.timeline-item{display:flex;gap:15px;padding-bottom:25px;position:relative}.timeline-item:before{position:absolute;content:'';left:4px;top:10px;bottom:0;width:1px;background:#e8eeee}.timeline-item:last-child:before{display:none}.timeline-dot{height:9px;width:9px;background:#92b4aa;border:2px solid #e7f0eb;border-radius:50%;flex-shrink:0;margin-top:3px}.timeline-item strong{font-size:12px;display:block}.timeline-item small{display:block;margin-top:5px;font-size:12px}.timeline-item p{font-size:12px;color:#626265;margin:12px 0 0}.timeline-item summary{font-size:12px}.timeline-item a{font-size:12px;color:var(--teal)}.operation-item .panel-heading{margin-bottom:10px}.operation-item>p{font-size:12px;color:#626265}.operation-item small{font-size:12px}.file-link{display:flex;align-items:center;justify-content:space-between;border:1px solid var(--line);border-radius:5px;padding:14px;font-size:12px;margin:12px 0;color:#626265}.file-link small{display:block;margin:5px 0 0}.large-search{max-width:100%;background:white;padding:18px 24px;border:1px solid var(--line);border-radius:8px;margin-bottom:22px}.large-search input{border:0}.search-empty{text-align:center;padding:90px 20px;color:#626265}.search-empty>.icon{width:52px;height:52px;stroke-width:1;background:#e9eef2;padding:12px;border-radius:14px}.search-empty h2{font-size:20px;color:#626265;margin-top:24px}.search-empty p{font-size:12px}.inline-dl{display:flex;gap:50px;flex-wrap:wrap}.client-process{transition:transform .2s}.client-process:hover{transform:translateY(-2px)}.client-process h2{margin-top:18px}.client-process p{font-size:12px;color:#626265}.alert-item{display:flex;gap:18px;align-items:center;border-bottom:1px solid var(--line);padding:20px 0}.alert-item>a{flex:1}.alert-item strong{display:block;font-size:12px}.alert-item small{display:block;font-size:12px;margin-top:4px}.alert-item.read{opacity:.7}.alert-symbol{display:grid;place-items:center;background:#fcf0e3;color:#626265;width:32px;height:32px;border-radius:8px;font-weight:600;flex-shrink:0}.messages{margin-bottom:20px}.message{padding:14px 18px;border-radius:6px;font-size:12px;margin:8px 0;background:#eaf4f0;color:#626265;line-height:1.6}.message.error{background:#fff0ed;color:#626265}.error-text{color:#626265;white-space:normal;min-width:170px;font-size:12px}.import-cell{display:inline-block;min-width:95px;padding:7px 10px}.import-cell small{display:block;font-size:12px}.import-cell+ .import-cell{border-left:1px solid var(--line)}footer{padding:0 36px 26px;font-size:12px;color:#626265;font-weight:600}footer>span{font-size:12px;font-weight:400;margin-left:14px;color:#626265}.footer-right{float:right}dialog{border:0;padding:0;border-radius:12px;box-shadow:0 16px 80px #16334740;width:min(650px,95vw);height:90vh;max-height:90vh;margin:auto 20px auto auto;overflow:hidden}dialog::backdrop{background:#102c4560}.preview-heading{display:flex;justify-content:space-between;align-items:center;padding:15px 20px;border-bottom:1px solid var(--line);font-size:12px}dialog iframe{display:block;border:0;height:calc(100% - 108px);width:100%}dialog>.button{margin:8px 20px}.embedded .sidebar,.embedded .topbar,.embedded footer,.embedded .breadcrumb{display:none}.embedded .shell{margin:0}.embedded main{padding:20px}.embedded .detail-layout{grid-template-columns:1fr}.embedded .detail-main{display:none}.embedded .page-heading .actions{display:none}.nav-collapsed .sidebar{transform:translateX(-100%)}.nav-collapsed .shell{margin-left:0}.login-layout{display:grid;grid-template-columns:1fr 1fr;min-height:100vh}.login-story{background:var(--navy-deep);padding:55px 70px;color:white;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden;position:relative;min-height:750px}.login-story .brand{padding:0;position:relative;z-index:1}.login-story h1{font-size:48px;font-weight:400;letter-spacing:-1.5px;line-height:1.22;position:relative;z-index:1}.login-story h1 em{color:#626265;font-style:normal}.login-story p{color:#626265;font-size:13px;position:relative;z-index:1}.login-story .eyebrow{color:#626265}.login-story>small{color:#626265;font-size:12px}.login-panel{display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;background:#fcfdfd;padding:40px}.login-card{width:100%;max-width:350px}.login-card h2{font-size:30px;letter-spacing:-.8px;margin-bottom:10px}.login-card>p{color:#626265;font-size:12px;margin-bottom:35px}.login-card label{font-size:12px;color:#626265}.login-card input{margin-top:8px;height:45px;background:white}.login-card form p{margin-bottom:23px}.login-card .button{margin-top:28px;height:45px;justify-content:space-between}.login-card .login-help{font-size:12px;text-align:center;line-height:1.8;margin-top:23px;color:#626265}.login-panel>small{position:absolute;bottom:30px;font-size:12px;color:#626265}.building-art{position:absolute;bottom:30px;right:-50px;width:300px;height:350px;opacity:.12;transform:skewY(-12deg);display:flex;align-items:flex-end;gap:9px}.building-art i{width:70px;background:repeating-linear-gradient(0deg,transparent,transparent 22px,#a8c9c2 23px,#a8c9c2 24px);border:1px solid #a8c9c2;height:100%}.building-art i:nth-child(2n){height:75%}.building-art i:nth-child(3){height:50%}
@media(min-width:1600px){main{padding:32px 48px 50px}.topbar{padding:0 48px}.chart-grid{grid-template-columns:1.9fr 1fr}.activity-chart{height:230px}}
@media(max-width:1200px){:root{--sidebar:205px}main{padding:23px}.topbar{padding:0 23px}.project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.three-col{grid-template-columns:1fr 1fr}.three-col>.panel:last-child{grid-column:1 / -1}.kpi{padding:16px}.kpi-top{font-size:12px}.filters{gap:8px}.filters label{min-width:100px}.detail-layout{grid-template-columns:260px 1fr}.detail-main .form-grid{grid-template-columns:1fr}.page-heading h1{font-size:26px}.funnel-row{grid-template-columns:90px 1fr 55px;gap:8px}}
@media(max-width:950px){:root{--sidebar:190px}.sidebar{padding:28px 10px}.brand{font-size:24px}.top-location,.top-divider{display:none}.chart-grid,.two-col{grid-template-columns:1fr}.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.two-col>.panel{height:auto;margin-bottom:0}.two-col{margin-bottom:22px}.detail-layout{grid-template-columns:1fr}.detail-left{display:grid;grid-template-columns:1fr 1fr;gap:18px}.detail-main .form-grid{grid-template-columns:1fr 1fr}.page-heading{align-items:flex-start}.page-heading .actions{justify-content:flex-end}.three-col{grid-template-columns:1fr}.three-col>.panel:last-child{grid-column:auto}.user-meta{display:none}.topbar-right{gap:7px}.login-story{padding:45px}.login-story h1{font-size:37px}}
@media(max-width:700px){.sidebar{transform:translateX(-100%);width:230px;box-shadow:5px 0 30px #10273b30}.shell{margin-left:0}.nav-collapsed .sidebar{transform:translateX(0)}.topbar{height:65px;padding:0 17px}.topbar-left{gap:13px}.topbar-right{gap:9px}.topbar-right .avatar{height:29px;width:29px;font-size:12px}.company-logo{font-size:13px}.notification{margin-right:0}.breadcrumb{margin-bottom:20px}main{padding:20px 15px}.page-heading{flex-direction:column;gap:17px;margin-bottom:20px}.page-heading h1{font-size:25px}.page-heading p{font-size:12px}.page-heading .actions{justify-content:flex-start;width:100%}.view-row{align-items:flex-start;flex-wrap:wrap}.date-label{font-size:12px}.filters{padding:13px;gap:10px}.filters label{min-width:120px}.filters .button{flex:1}.more-filters>div{flex-direction:column}.kpi-grid{gap:10px}.kpi{padding:14px}.kpi>strong{font-size:30px}.kpi>small{font-size:12px}.kpi-icon{padding:5px}.kpi-icon .icon{height:14px;width:14px}.panel{padding:18px}.panel-heading p{font-size:12px}.panel h2{font-size:14px}.chart-legend{font-size:12px;gap:10px}.funnel-labels{font-size:12px}.project-grid{grid-template-columns:1fr}.project-art{height:180px}.detail-left{display:block}.form-grid,.detail-main .form-grid{grid-template-columns:1fr}.detail-main .panel{padding:18px}.client-heading{gap:12px}.client-heading h1{font-size:22px}.avatar.large{height:50px;width:50px;font-size:18px}.tabs{gap:16px;overflow:auto}.tab{font-size:12px}.deal-summary{gap:12px;padding:13px}.table-toolbar{flex-wrap:wrap;padding:14px}.search-form{max-width:none;flex-basis:100%}.search-form input{font-size:12px}.large-search{padding:12px}.large-search .button{padding:8px;font-size:12px}.priority-banner{padding:16px;align-items:flex-start;flex-direction:column;gap:15px}.priority-banner strong{font-size:12px}.priority-banner p{font-size:12px}.alert-item{flex-wrap:wrap;gap:12px}.alert-item>a{flex-basis:calc(100% - 50px)}.alert-item>.pill{margin-left:44px}.alert-item .button{font-size:12px}.inline-dl{gap:20px}.pagination{font-size:12px;padding:15px 12px}.pagination>div{gap:7px}.login-layout{grid-template-columns:1fr}.login-story{min-height:auto;padding:30px;gap:35px}.login-story h1{font-size:29px}.login-story h1 br:first-child{display:none}.login-story p,.login-story>small{display:none}.login-story .brand{font-size:24px}.login-story .eyebrow{font-size:12px}.login-panel{padding:40px 27px 65px}.login-card h2{font-size:27px}.login-panel>small{bottom:20px}footer{padding:0 15px 20px;font-size:12px}.footer-right{display:none}footer>span{font-size:12px}.visit-actions{flex-direction:column;align-items:stretch}.visit-actions input,.visit-actions select{width:100%}.metrics-strip{flex-wrap:wrap}.kanban-column{min-width:230px}.logout{font-size:12px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* Interactive sales board */
.kanban .deal-card{cursor:grab}.kanban .deal-card.dragging{opacity:.45;cursor:grabbing}.kanban-column.drop-target{outline:2px solid #568d80;outline-offset:-2px;background:#e1efea}.deal-card-link{display:block;color:inherit;text-decoration:none}.card-move-button{display:block;width:100%;margin-top:10px;padding:7px;border:1px solid #d9e4e8;border-radius:5px;background:#f7fafb;color:#355668;cursor:pointer;text-align:center;font:inherit;font-size:12px}.card-move-button:focus-visible{outline:3px solid #568d80;outline-offset:2px}.move-dialog{height:auto;max-height:85vh;width:min(480px,94vw);margin:auto;overflow:auto;padding:24px}.move-dialog form{display:grid;gap:12px}.move-dialog h2,.move-dialog p{margin:0}.move-dialog label{display:block;margin-bottom:5px}.move-dialog .actions{margin-top:10px;flex-wrap:wrap}.move-dialog [hidden]{display:none!important}#move-error{color:#a13d2d;white-space:pre-line}#move-notice{font-size:12px;line-height:1.6;color:#526d7d}.move-dialog button:disabled{opacity:.6;cursor:wait}

/* Xima360: brand palette and comfortable reading */
:root{--brand-red:#ae1917;--brand-gray:#555557;--navy:#555557;--navy-deep:#444446;--ink:#303034;--muted:#626265;--teal:#ae1917;--teal-soft:#f8eae8;--orange:#88501c;--line:#d4d3d1;--bg:#f0efed;--white:#fafaf9;font-size:15px;line-height:1.55}
body{background:var(--bg);color:var(--ink)}
.sidebar{background:#555557;color:#fff;overflow-y:auto}.sidebar .brand{padding:8px;background:#fff;border-radius:8px;display:block}.brand-logo{display:block;width:100%;height:auto;max-width:250px}.sidebar .brand-logo{width:100%;max-width:200px;margin:auto}.company-logo{display:block;line-height:0;letter-spacing:0}.company-logo .brand-logo{width:150px;max-height:64px;object-fit:contain}.login-story .brand{background:white;border-radius:10px;padding:12px;align-self:flex-start}.login-story .brand-logo{width:290px;max-width:100%}
.sidebar .workspace{border-color:#929294;color:#fff;margin:24px 4px 22px}.sidebar .workspace-label,.sidebar .nav-caption,.sidebar .sidebar-bottom,.sidebar .sidebar-bottom small{color:#f1f0ef}.sidebar .nav-link{color:#f7f6f5;font-size:14px}.sidebar .nav-link:hover{background:#454547}.sidebar .nav-link.active{background:#ae1917;box-shadow:inset 3px 0 0 #fff;color:white}.sidebar .nav-active-dot{background:white}.workspace-dot,.connection-dot{background:#f0e3df}.sidebar-bottom{border-color:#89898b}
.topbar{background:#fafaf9}.top-location,.user-meta small,.breadcrumb,.breadcrumb span{color:#626265}.user-meta strong{font-size:13px}.logout,.icon-button,.notification{color:#555557}.notification b{background:#ae1917;font-size:12px}.avatar,.avatar.large{background:#e5e3e0;color:#49494b}
h1,h2,h3{color:#303034}h2{font-size:18px}.panel,.kpi,.filters,.project-card,.deal-card,.deal-summary,.large-search{background:#fafaf9;border-color:#d4d3d1}.page-heading p{font-size:14px}.eyebrow{color:#555557;letter-spacing:1px}.button{font-size:13px;min-height:42px;color:#454548;border-color:#89898d;background:#fafaf9}.button.primary{background:#ae1917;border-color:#ae1917;color:white;box-shadow:none}.button.primary:hover{background:#8b1412;border-color:#8b1412}.button:hover{background:#e9e7e4}.button.danger{color:#971715;border-color:#ae1917;background:#faeae7}.button.small-button{min-height:34px;font-size:12px}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #ae1917;outline-offset:3px}.sidebar a:focus-visible{outline-color:white}input,select,textarea{font-size:14px;color:#303034;background:#fff;border-color:#89898d;min-height:42px}input::placeholder,textarea::placeholder{color:#626265;opacity:1}input:focus,select:focus,textarea:focus{border-color:#ae1917;outline:2px solid #ae1917;outline-offset:2px}input[type=checkbox]{accent-color:#ae1917;min-height:16px}
.filters label,.editor-form label,.stack-form label{font-size:13px;color:#49494b}.filters select,.filters input,.editor-form input,.editor-form select,.editor-form textarea,.stack-form input,.stack-form select,.stack-form textarea{font-size:14px}.helptext,.editor-form .helptext,.editor-form ul{color:#626265;font-size:12px}.reset,.date-label,.segmented a{color:#555557}.segmented{background:#e5e3e0;border-color:#d4d3d1}.segmented a.selected{background:#fafaf9;color:#ae1917}.tab{color:#555557;font-size:14px}.tab.active{color:#ae1917;border-color:#ae1917}
th{background:#eae8e5;color:#49494b;font-size:13px;font-weight:600;padding:14px 16px}td{font-size:14px;color:#38383b;padding:18px 16px;border-color:#dcdad7}td small{font-size:13px;color:#626265}td strong{color:#303034}.person-link{font-size:14px}.leads-table td:first-child{background:#fafaf9}.leads-table th:first-child{background:#eae8e5}.round-link{width:32px;height:32px;color:#555557;border-color:#89898d}.text-link{font-size:13px;color:#971715}.text-link:hover,.person-link:hover{text-decoration:underline;color:#ae1917}.panel-heading p,.kpi>small,.fineprint,.muted{font-size:13px;color:#626265}.kpi-top{font-size:14px;color:#555557}.kpi-icon,.kpi:nth-child(4) .kpi-icon{background:#eae8e5;color:#555557}.kpi:nth-child(2) .kpi-icon{background:#f7e7e4;color:#ae1917}.kpi:nth-child(3) .kpi-icon{background:#f5ecd8;color:#805019}
.pill{font-size:12px;color:#555557;background:#eae8e5}.pill.teal{color:#28634e;background:#e6eee6}.pill.warning,.card-followup.late{color:#805019;background:#f5ecd8}.interest{color:#626265;font-size:12px}.interest.high{color:#28634e}.interest.medium{color:#805019}.interest.low{color:#80504d}.interest:before{background:currentColor}.message{color:#28634e;background:#e6eee6}.message.error,.error-text{color:#971715;background:#f9e6e3}.alert-item.read{opacity:1}.alert-symbol{color:#805019;background:#f5ecd8}.note{color:#725022;background:#f5ecd8}.priority-banner{background:#eeebe7;border-color:#d4d3d1}.priority-banner strong{color:#303034}.priority-banner p{color:#555557}.priority-marker{background:#f7e0db;color:#971715}
.kanban-column{background:#e5e3e0;min-width:265px;width:265px}.column-heading h2{font-size:14px}.column-heading{border-color:#555557}.column-heading>span{color:#555557;background:#fafaf9;font-size:13px}.deal-card h3{font-size:15px}.deal-card p,.card-footer,.card-top small,.deal-card-link>small{font-size:13px;color:#626265}.card-followup{font-size:12px;color:#28634e;background:#e6eee6}.card-footer{gap:10px;flex-wrap:wrap}.card-move-button{font-size:13px;color:#555557;background:#f0efed;border-color:#89898d;min-height:36px}.kanban-column.drop-target{outline-color:#ae1917;background:#f4e0dc}.card-move-button:focus-visible{outline-color:#ae1917}#move-notice{font-size:14px;color:#555557}
.project-art{background:#e1dfdc;color:#555557}.project-art.art-True{background:#eadbd6;color:#7e2923}.project-type{font-size:12px;background:#fafaf9;color:#555557}.project-art-caption{font-size:12px;letter-spacing:1px}.availability i{background:#ae1917}.health-row,.funnel-row>div:first-child{font-size:13px;color:#555557}.health-row strong,.funnel-row strong{font-size:14px;color:#303034}.health-number>span,.metrics-strip span{font-size:12px;color:#626265}.metrics-strip strong{color:#555557}.funnel-track{background:#e5e3e0}.funnel-track i{background:#ae1917}.funnel-row:nth-of-type(2n) .funnel-track i{background:#555557}.teal-bg{background:#555557}.orange{background:#886321}.navy{background:#ae1917}.chart-legend,.funnel-labels{font-size:12px;color:#555557}.funnel-labels{letter-spacing:0;gap:8px;flex-wrap:wrap}.timeline-item p,.operation-item>p,.list-item strong,dd{color:#454548}.timeline-dot{background:#ae1917;border-color:#e9d2ce}.timeline-item strong,.list-item strong{font-size:14px}.timeline-item small,.list-item small,dt{font-size:13px;color:#626265}.timeline-item:before{background:#c9c5c1}
.login-story{background:#49494b}.login-story h1,.login-story h1 em{color:#fff}.login-story p,.login-story .eyebrow,.login-story>small{color:#f0efed;font-size:14px}.login-panel{background:#f0efed}.login-card>p,.login-card label,.login-card .login-help,.login-panel>small{color:#555557;font-size:14px}.login-card input{font-size:16px}.login-story .building-art{opacity:.1}.login-story .building-art i{border-color:white;background:repeating-linear-gradient(0deg,transparent,transparent 22px,#fff 23px,#fff 24px)}footer,footer>span{font-size:12px;color:#626265}
@media(max-width:700px){.company-logo .brand-logo{width:112px;max-height:52px}.topbar-left{gap:10px}.topbar{padding:0 12px}.login-story .brand-logo{width:225px}.login-story .brand{padding:8px}.page-heading p{font-size:14px}.filters input,.filters select{font-size:16px}.panel-heading{align-items:flex-start;flex-wrap:wrap}.panel-heading p,.kpi>small{font-size:13px}.funnel-row{grid-template-columns:95px 1fr 45px}.notification b{font-size:10px}.logout{font-size:12px}.nav-link{min-height:44px}.chart-legend{flex-wrap:wrap}}
/* Keep filter labels readable when the larger type wraps the toolbar. */
.filters label{flex:1 1 155px;min-width:155px}.filters .button{min-height:42px}.view-row>form.actions{max-width:100%;flex-wrap:wrap}.view-row>form.actions select{width:auto;min-width:180px;flex:1}.table-scroll{scrollbar-color:#77777a #e5e3e0}.panel th,.panel td{line-height:1.6}

/* Lead search on the sales board */
.board-heading-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.board-search{display:flex;align-items:center;gap:8px;min-width:320px;width:min(440px,100%);background:#fff;border:1px solid #89898d;border-radius:6px;padding:4px 5px 4px 12px}.board-search:focus-within{border-color:#ae1917;outline:2px solid #ae1917;outline-offset:2px}.board-search .icon{width:18px;height:18px;color:#555557}.board-search input[type=search]{border:0;outline:0;min-width:0;min-height:32px;flex:1;padding:4px 0;background:transparent}.board-search input[type=search]:focus{border:0;outline:0}.board-search .button{min-height:34px;padding:5px 11px}.board-search-clear{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:4px;color:#555557;font-size:20px}.board-search-clear:hover{background:#e9e7e4;color:#ae1917}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:950px){.board-heading-actions{justify-content:flex-start;width:100%}.board-search{width:min(440px,100%)}}
@media(max-width:700px){.board-heading-actions,.board-search{width:100%}.board-heading-actions>.button{width:100%}}

/* Manual credit-reference overview */
.sbi-panel{margin-bottom:20px}.sbi-panel .panel-heading{margin-bottom:14px}.sbi-panel .panel-heading h2{margin-bottom:4px}.sbi-panel .panel-heading p{margin-bottom:0;color:#555557;font-size:13px}.sbi-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:13px}.sbi-person{display:flex;flex-direction:column;align-items:flex-start;gap:9px;padding:16px;border:1px solid #d4d3d1;border-radius:7px;background:#fff}.sbi-person strong{font-size:14px}.sbi-person p{margin:0;color:#555557;font-size:13px}.sbi-status{display:inline-flex;align-items:center;border-radius:5px;padding:5px 10px;font-size:13px;font-weight:600}.sbi-status.pending{background:#eae8e5;color:#454548}.sbi-status.good{background:#dceee2;color:#205c3b}.sbi-status.medium{background:#f6ebc8;color:#6d510e}.sbi-status.poor{background:#f7dcda;color:#971715}.sbi-panel>small{color:#626265;font-size:12px}
@media(max-width:700px){.sbi-grid{grid-template-columns:1fr}}

/* Two balanced sections on the new-lead form. */
.lead-create-panel{max-width:none;padding:0;background:transparent;border:0}.lead-create-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.lead-form-section{min-width:0;padding:22px;background:#fafaf9;border:1px solid #d4d3d1;border-radius:9px}.lead-form-section h2{margin-bottom:20px}.lead-create-panel .form-actions{margin-top:18px}.lead-form-section .form-grid{gap:0 16px}.lead-form-section .editor-form p{min-width:0}
.lead-create-panel .lead-create-actions{justify-content:flex-end;border-top:0;padding-top:0;margin:0 0 18px}
@media(max-width:1100px){.lead-create-layout{grid-template-columns:1fr}}
@media(max-width:700px){.lead-form-section{padding:18px}.lead-form-section .form-grid{grid-template-columns:1fr}}
.location-native-select{display:none!important}
.location-picker{position:relative;width:100%}
.editor-form .location-picker-input{width:100%;min-height:42px;padding-right:38px}
.location-picker::after{content:'';position:absolute;right:16px;top:16px;width:8px;height:8px;border-right:2px solid #555557;border-bottom:2px solid #555557;transform:rotate(45deg);pointer-events:none}
.location-picker-list{position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:45;max-height:230px;overflow-y:auto;background:#fff;border:1px solid #89898d;border-radius:6px;box-shadow:0 9px 20px #30303420}
.location-picker-list[hidden]{display:none!important}
.location-picker-option{display:flex;align-items:center;gap:9px;width:100%;padding:10px 12px;text-align:left;background:#fff;border:0;color:#303034;min-height:40px}
.location-picker-option:hover,.location-picker-option.active{background:#f7e9e8;color:#7c1110}
.location-picker-empty{display:block;padding:10px 12px;color:#555557}
.sbi-choice-dot{display:inline-block;width:11px;height:11px;flex:none;border-radius:50%;background:#77777a}
.sbi-choice-dot.good{background:#2d8250}.sbi-choice-dot.medium{background:#bc8217}.sbi-choice-dot.poor{background:#b02522}
.sbi-picker[data-selected="pending"] .location-picker-input{background:#eae8e5;color:#454548;border-color:#89898d}
.sbi-picker[data-selected="good"] .location-picker-input{background:#dceee2;color:#205c3b;border-color:#78ae8c;font-weight:600}
.sbi-picker[data-selected="medium"] .location-picker-input{background:#f6ebc8;color:#6d510e;border-color:#c8a753;font-weight:600}
.sbi-picker[data-selected="poor"] .location-picker-input{background:#f7dcda;color:#971715;border-color:#cc8580;font-weight:600}
.deal-workflow{display:grid;grid-template-columns:minmax(200px,22%) minmax(190px,21%) minmax(0,1fr);gap:16px;align-items:start;margin-bottom:22px}
.deal-workflow-client,.deal-workflow-status,.deal-workflow-actions{min-width:0}
.deal-workflow-client .panel{padding:20px}
.deal-workflow-client dd{overflow-wrap:anywhere}
.deal-workflow-status{display:grid;gap:16px}
.deal-workflow .panel{margin:0}
.deal-workflow-status .panel{padding:20px}
.deal-workflow-status h2{font-size:15px}
.deal-workflow-actions .panel{padding:24px}
.stage-reason[hidden]{display:none!important}
.detail-layout-full{grid-template-columns:minmax(0,1fr)}
.embedded .deal-workflow{display:block}.embedded .deal-workflow-status,.embedded .deal-workflow-actions{display:none}
@media(max-width:1200px){.deal-workflow{grid-template-columns:minmax(190px,22%) minmax(180px,20%) minmax(0,1fr)}.deal-workflow-actions .form-grid{grid-template-columns:1fr}}
@media(max-width:1050px){.deal-workflow{grid-template-columns:repeat(2,minmax(0,1fr))}.deal-workflow-actions{grid-column:1/-1}.deal-workflow-actions .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.deal-workflow{grid-template-columns:1fr}.deal-workflow-client{order:1}.deal-workflow-status{display:contents}.deal-workflow-status .panel:first-child{order:2}.deal-workflow-actions{grid-column:auto;order:3}.deal-workflow-status .panel:last-child{order:4}.deal-workflow-actions .panel{padding:18px}.deal-workflow-actions .form-grid{grid-template-columns:1fr}}
.deal-save-status{position:fixed;right:22px;bottom:22px;z-index:100;max-width:min(360px,calc(100vw - 28px));padding:11px 15px;border:1px solid #77a48a;border-radius:7px;background:#e9f5ec;color:#205c3b;box-shadow:0 7px 20px #30303429;font-size:13px;line-height:1.4}
.deal-save-status.error{background:#fff3f2;border-color:#d69692;color:#971715}
.kanban-column{width:290px;min-width:290px}
.board-lead{border-radius:18px;padding:16px;background:#fafaf9}
.board-lead h3{text-align:center;font-size:15px;line-height:1.4;margin:10px 0 6px;overflow-wrap:anywhere}
.board-level{display:table;margin:auto;padding:4px 16px;border-radius:20px;background:#e6e4e1;color:#454548;font-weight:650;font-size:13px}
.board-level.high{background:#dceee2;color:#205c3b}.board-level.medium{background:#f6ebc8;color:#6d510e}.board-level.low{background:#f7dcda;color:#971715}
.board-lead .board-property{text-align:center;color:#555557;font-size:13px;margin-bottom:12px}
.board-last-activity{display:flex;gap:8px;align-items:center;justify-content:space-between;padding:10px;border-radius:12px;background:#eeedf3;margin-bottom:10px}
.board-last-activity>div{min-width:0}.board-activity-date{display:flex;align-items:center;gap:7px;color:#454548;font-size:11px}.board-activity-date time{font-size:12px}
.board-lead .board-activity-note{font-size:12px;color:#555557;font-style:italic;margin:5px 0 0;overflow-wrap:anywhere}
.board-channel{flex:none;color:#555557}.board-channel.whatsapp{color:#26833f}.board-channel svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.board-management{display:flex;gap:7px;align-items:center;color:#454548;font-size:12px;line-height:1.4}.board-management span{background:#e8e6e2;padding:4px 8px;border-radius:14px}.board-management i{width:10px;height:10px;border-radius:50%;flex:none;background:#777}.board-management.good i{background:#27844e}.board-management.warning i{background:#bc8217}.board-management.danger i{background:#ae1917}
.board-card-bottom{display:flex;justify-content:space-between;gap:8px;margin:12px 0;font-size:12px;color:#454548}.board-advisor{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:65%;font-weight:600}
.board-card-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.board-card-actions button,.board-card-actions a{margin:0;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:7px 2px;border:1px solid #d0ceca;border-radius:12px;background:#e9e7e4;color:#454548;font-size:10px;min-height:48px}.board-card-actions button:hover,.board-card-actions a:hover{background:#f7e4e2;border-color:#ae1917;color:#ae1917}.board-card-actions svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.board-activity-dialog{width:min(600px,calc(100vw - 24px));max-height:90vh;overflow-y:auto}.board-activity-dialog fieldset{border:0;margin:14px 0;padding:0}.board-activity-dialog [hidden]{display:none!important}.board-activity-dialog input[readonly]{background:#eae8e5}.board-activity-dialog #move-error{white-space:pre-line}.board-activity-dialog #move-client{font-weight:600}.board-activity-dialog label{display:block;margin-top:10px}
#process-documents{scroll-margin-top:90px}
@media(max-width:700px){.deal-save-status{right:14px;bottom:14px}}
.editor-form p[hidden]{display:none!important}
.editor-form .helptext,.stack-form .helptext{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.field-feedback{position:fixed;right:22px;bottom:22px;z-index:100;max-width:min(320px,calc(100vw - 28px));padding:10px 14px;background:#fff3f2;border:1px solid #d69692;border-radius:7px;box-shadow:0 7px 20px #30303429;color:#7c1110;font-size:13px;line-height:1.4;pointer-events:none}
.field-feedback[hidden]{display:none!important}
@media(max-width:700px){.field-feedback{right:14px;bottom:14px}}

.portfolio-logo{width:100px;height:80px;object-fit:contain;float:left;margin:0 20px 12px 0}.portfolio-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;margin-top:20px}.typology-image{width:100%;height:180px;object-fit:contain}.editor-form input[type=checkbox]{width:auto}.editor-form [id$=members]{display:flex;gap:14px;flex-wrap:wrap}.editor-form [id$=members] label{display:flex;align-items:center;gap:8px}.editor-form [data-portfolio-section]{border-bottom:1px solid #e4e9ee;padding:16px 0}.project-tabs{flex-wrap:wrap}.table-scroll input[type=number]{min-width:110px;max-width:150px}

.project-cover{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.project-art .project-type,.project-art .project-wordmark,.project-art .project-art-caption{z-index:1}
.project-logo-panel{height:200px;padding:24px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:center;overflow:hidden}.project-logo-image{display:block;width:100%;height:100%;object-fit:contain;object-position:center}.project-logo-placeholder{width:64px;height:64px;color:#aaa7a3}.project-category{display:inline-block;max-width:100%;margin-bottom:12px;padding:4px 9px;background:#efeeec;color:#555557;border-radius:5px;font-size:12px;line-height:1.5;overflow-wrap:anywhere}.project-card .project-content h2{overflow-wrap:anywhere}@media(max-width:700px){.project-logo-panel{height:180px;padding:20px}}

/* WhatsApp is a channel indicator inside the existing full-card link. */
.board-channel.whatsapp{display:inline-flex;align-items:center;justify-content:center;align-self:center;width:36px;height:36px;flex:0 0 36px;box-sizing:border-box;border:1px solid #c7e7d3;border-radius:10px;background:#edf8f1;color:#168044;transition:background-color .15s ease,border-color .15s ease,box-shadow .15s ease}
.board-channel.whatsapp .whatsapp-mark{display:block;width:25px;height:25px;overflow:visible}
.board-channel.whatsapp .whatsapp-bubble{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.board-channel.whatsapp .whatsapp-handset{fill:currentColor;stroke:none}
.deal-card-link:hover .board-channel.whatsapp{background:#e0f3e7;border-color:#85c6a0}
.deal-card-link:focus-visible .board-channel.whatsapp{box-shadow:0 0 0 3px #16804433;border-color:#168044}
@media(prefers-reduced-motion:reduce){.board-channel.whatsapp{transition:none}}

.skip-link{position:fixed;top:8px;left:8px;z-index:2000;padding:12px 18px;background:#fff;color:#971715;border:2px solid #ae1917;border-radius:6px;transform:translateY(-160%)}.skip-link:focus{transform:translateY(0)}
.table-scroll:focus-visible{outline:3px solid #ae1917;outline-offset:3px}
@media(max-width:700px){.large-search{flex-wrap:wrap;gap:10px}.large-search input{flex:1;min-width:150px}.large-search .button{flex-shrink:0}}

.board-level.neutral,.interest.neutral{background:#e6e4e1;color:#454548}.board-level.pending,.interest.pending{background:#e0f1f7;color:#195469}.board-level.scheduled,.interest.scheduled{background:#dceee2;color:#205c3b}.board-level.done,.interest.done{background:#d4efc4;color:#285616}.board-level.cancelled,.interest.cancelled{background:#fae0e8;color:#8a2844}.board-level.rescheduled,.interest.rescheduled{background:#f6ebc8;color:#6d510e}.board-level.rented,.interest.rented{background:#e0eafa;color:#294e8c}

.editor-form [id$="units"]{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;max-height:300px;overflow:auto;padding:12px;border:1px solid #d4d3d1;border-radius:6px;background:#fff}.editor-form [id$="units"] label{display:flex;align-items:center;gap:8px;margin:0}.editor-form [id$="units"] input{flex:0 0 auto}

/* Workflow controls share behavior with the board, not its column sizing. */
#deal-activity-root .kanban-column{width:auto;min-width:0;max-width:100%;padding:0;background:none;border:0;border-radius:0;display:block}
#deal-activity-root .deal-card{width:auto;min-width:0;max-width:100%;padding:0;margin:0;background:none;border:0;box-shadow:none;border-radius:0}
#deal-activity-root .button{display:flex;width:100%;min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;margin-top:0}
#deal-activity-root .button+.button{margin-top:8px}
.deal-workflow-status .panel{overflow-wrap:anywhere}
.advisor-panel{container-type:inline-size}.advisor-cards{display:none}.advisor-card{border:1px solid var(--line);border-radius:9px;padding:16px;min-width:0;background:#fff}.advisor-name{display:flex;align-items:center;gap:10px;margin-bottom:14px;overflow-wrap:anywhere}.advisor-name .avatar{flex-shrink:0}.advisor-card dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 12px;margin:0}.advisor-card dl>div{min-width:0}.advisor-card dt{font-size:12px;line-height:1.4;color:var(--muted);margin:0;overflow-wrap:anywhere}.advisor-card dd{font-size:20px;font-weight:650;margin:4px 0 0;color:var(--ink)}
@container(max-width:900px){.advisor-table{display:none}.advisor-cards{display:grid;gap:12px}}
@media(max-width:700px){.advisor-table{display:none}.advisor-cards{display:grid;gap:12px}.advisor-card dl{grid-template-columns:repeat(2,minmax(0,1fr))}}

@container(min-width:680px) and (max-width:900px){.advisor-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Auditoría parte 2: scoped layout and explicit commercial states. */
.project-card .project-cover{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#f8f7f5;padding:12px}.project-card .project-art{height:190px}.project-art .project-type{z-index:1;max-width:90%;overflow:hidden;text-overflow:ellipsis}.portfolio-heading{align-items:flex-start}.portfolio-heading>div:first-child{flex:1;min-width:0}.portfolio-heading .portfolio-logo{float:none;display:block;width:100%;max-width:700px;height:190px;object-fit:contain;background:#f5f3f0;border-radius:12px;margin:0 0 20px;padding:12px}.portfolio-heading .eyebrow{display:block}
.project-timeline{list-style:none;padding:0;border-left:3px solid #ae1917;margin:20px 8px}.project-timeline li{display:grid;gap:6px;padding:0 0 22px 20px;position:relative}.project-timeline li:before{content:"";position:absolute;left:-7px;top:4px;width:11px;height:11px;background:#ae1917;border-radius:50%}.project-timeline time,.project-timeline span{font-size:12px;color:#555557}
.folder-navigation{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0}.folder-item{border:1px solid #d6d3d0;border-radius:8px;padding:10px}.folder-item summary{cursor:pointer}.folder-item form{display:grid;gap:8px;margin-top:12px;max-width:240px}.file-card{border:1px solid #d6d3d0;border-radius:10px;padding:16px;display:flex;flex-direction:column;gap:12px;min-width:0;overflow-wrap:anywhere}.file-folder-labels{display:flex;gap:6px;flex-wrap:wrap}.folder-options{max-height:170px;overflow:auto;border:1px solid #d6d3d0;border-radius:6px;padding:8px}.folder-options label{display:flex;align-items:center;gap:8px;padding:7px}.folder-options input[type=checkbox]{width:auto}.folder-options~input{margin-top:8px}
.unit-map{display:grid;grid-template-columns:repeat(auto-fill,minmax(115px,1fr));gap:8px}.unit-map-cell{display:flex;flex-direction:column;gap:4px;padding:12px;border-radius:8px;border:1px solid #d3c698;min-width:0;overflow-wrap:anywhere;color:#3e3520}.unit-map-cell.available{background:#fff1b8}.unit-map-cell.reserved{background:#ffdbb0;color:#6b390e;border-color:#d9ab75}.unit-map-cell.sold{background:#cdebd7;color:#205c37;border-color:#9dc5aa}.unit-map-cell.rented{background:#dae6f7;color:#294d7b;border-color:#acc0db}.unit-map-cell.blocked{background:#dedee1;color:#47474c;border-color:#bdbdc4}.unit-map-legend{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}.unit-map-legend .unit-map-cell{padding:6px 10px;font-size:12px}
#kanban-board{height:clamp(380px,68vh,850px);align-items:stretch;overflow-x:auto;overflow-y:hidden;padding-bottom:12px}#kanban-board .kanban-column{height:100%;display:flex;flex-direction:column;overflow:hidden;padding-bottom:0;min-height:0;flex:0 0 280px}#kanban-board .column-heading{flex:0 0 auto;display:flex;gap:10px;align-items:center}#kanban-board .column-heading h2{flex:1}#kanban-board .column-cards{flex:1;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-gutter:stable;min-height:0;padding:0 3px 12px}#kanban-board .board-lead{height:350px;box-sizing:border-box;display:flex;flex-direction:column;flex-shrink:0}#kanban-board .deal-card-link{flex:1;min-height:0;display:flex;flex-direction:column}#kanban-board .board-lead h3{height:38px;min-height:38px;line-height:19px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}#kanban-board .board-property{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}#kanban-board .board-level{height:26px;min-height:26px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#kanban-board .board-last-activity{height:80px;min-height:80px}#kanban-board .board-activity-note{line-height:16px;max-height:32px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:5px 0 0}#kanban-board .board-next-action{height:17px;line-height:17px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}#kanban-board .board-management{margin-top:auto;height:28px;min-height:28px}#kanban-board .board-management span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.column-sort{border:1px solid #c9c5c1;border-radius:5px;background:#fff;color:#555557;cursor:pointer;padding:5px 9px;font-size:16px}.process-context{display:grid;gap:10px;margin:18px 0 0}.process-context>div{background:#f1efec;border:1px solid #d4d0cb;border-radius:8px;padding:12px}.process-context dd{font-size:15px;font-weight:650;margin-top:5px;color:#333}.editor-form input:disabled+label{opacity:.6}input[type=checkbox]:disabled{cursor:not-allowed;accent-color:#777}
.calendar-scroll{overflow:auto}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(130px,1fr));min-width:910px;border-top:1px solid #ddd;border-left:1px solid #ddd}.calendar-day{min-height:130px;padding:10px;border-right:1px solid #ddd;border-bottom:1px solid #ddd;background:#faf9f7}.calendar-day.outside{background:#eeece9;color:#777}.calendar-event{display:grid;gap:3px;padding:8px;background:#fff;border-left:3px solid #ae1917;border-radius:5px;margin-top:8px;font-size:12px;overflow-wrap:anywhere}.inbox-item{display:flex;gap:24px;justify-content:space-between;align-items:start;border-bottom:1px solid #dedbd7;padding:20px 0}.inbox-item.unread{border-left:3px solid #ae1917;padding-left:15px}.inbox-item>div{min-width:0;overflow-wrap:anywhere}.settings-tabs{overflow:auto;white-space:nowrap}.topbar-right{gap:15px}.notification{font-size:21px;min-width:24px}.notification b{font-size:10px}
@media(max-width:700px){.portfolio-heading{flex-direction:column}.portfolio-heading .portfolio-logo{height:150px}.inbox-item{flex-direction:column}.topbar-right{gap:10px}.topbar .top-location,.topbar .user-meta{display:none}.calendar-scroll{max-height:70vh}#kanban-board{height:65vh;min-height:380px}.unit-map{grid-template-columns:repeat(auto-fill,minmax(100px,1fr))}}

#kanban-board .board-lead{height:375px}#kanban-board .board-property{height:18px;min-height:18px;line-height:18px;margin:0 0 8px;flex-shrink:0}#kanban-board .board-next-action{min-height:17px;flex-shrink:0;margin:3px 0 6px}#kanban-board .board-lead h3{margin:6px 0}#kanban-board .board-last-activity{margin-bottom:6px}#kanban-board .board-level{display:block;box-sizing:border-box;padding:4px 14px;line-height:18px}
@media(max-width:460px){.topbar-right>.avatar{display:none}.topbar-left{gap:8px}.topbar .company-logo img{width:105px}.topbar-right{gap:10px}.topbar{padding-left:14px;padding-right:14px}}

.map-filter-panel{margin-bottom:18px}.map-filter-panel>summary{cursor:pointer;padding:14px;border:1px solid #d7d3cf;border-radius:8px;background:#faf9f7}.unit-map-cell{padding:8px}.unit-map h4{margin:12px 0}

/* Keep cached portfolio templates readable while the application restarts. */
.project-card .project-art{height:auto;min-height:200px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#fff;color:var(--ink);border-bottom:1px solid var(--line)}
.project-card .project-art .architectural-lines,.project-card .project-art .project-wordmark,.project-card .project-art .project-art-caption{display:none}
.project-card .project-art .project-cover{position:static;inset:auto;display:block;width:calc(100% - 48px);height:152px;flex:none;margin:24px;object-fit:contain;object-position:center;padding:0;background:#fff}
.project-card .project-art .project-type{position:static;inset:auto;transform:none;align-self:flex-start;max-width:calc(100% - 44px);margin:0 22px 16px;padding:4px 9px;line-height:1.5;background:#efeeec;color:#555557;border-radius:5px;white-space:normal;overflow-wrap:anywhere}

/* Portfolio identity stays readable independently of the optional building cover. */
.portfolio-overview{background:#fafaf9;border:1px solid #d4d3d1;border-radius:12px;margin-bottom:20px}
.portfolio-banner{width:100%;aspect-ratio:8/3;max-height:280px;overflow:hidden;border-radius:11px 11px 0 0;background:#e8e6e2}
.portfolio-banner img{display:block;width:100%;height:100%;object-fit:cover}.cover-position-top{object-position:center top}.cover-position-center{object-position:center center}.cover-position-bottom{object-position:center bottom}
.portfolio-identity{display:grid;grid-template-columns:112px minmax(0,1fr) auto;gap:22px;align-items:center;padding:24px}
.portfolio-identity-logo{height:84px;display:flex;align-items:center;justify-content:center;background:white;border:1px solid #e4e1dc;border-radius:8px;padding:10px}
.portfolio-identity-logo img{display:block;width:100%;height:100%;object-fit:contain}.portfolio-identity-logo>.icon{width:38px;height:38px;color:#77716d}
.portfolio-visual-editor>summary{cursor:pointer;padding:6px 0;font-size:16px}.portfolio-visual-editor>summary span{display:inline-block;margin-left:14px;font-size:13px;color:#555557;font-weight:400}.portfolio-visual-editor[open]>summary{margin-bottom:18px}.portfolio-visual-editor>p{color:#555557}
.portfolio-identity-text{min-width:0}.portfolio-identity-text .eyebrow{display:block;margin:0 0 8px;line-height:1.5}.portfolio-identity-text h1{font-size:30px;line-height:1.2;letter-spacing:-.6px;margin:0 0 8px;overflow-wrap:anywhere}.portfolio-identity-text p{margin:0;color:#555557;line-height:1.5;overflow-wrap:anywhere}
.portfolio-identity-actions{display:grid;grid-template-columns:auto 32px;gap:10px 12px;align-items:center}.portfolio-identity-actions>.button{grid-column:1}.portfolio-identity-actions>.text-link{grid-column:1;grid-row:2;font-size:13px;text-align:center}.portfolio-more{position:relative;grid-column:2;grid-row:1}.portfolio-more>summary{list-style:none;cursor:pointer;font-size:24px;text-align:center;line-height:40px;border-radius:6px}.portfolio-more>summary::-webkit-details-marker{display:none}.portfolio-more>summary:hover{background:#e9e7e4}.portfolio-more>form{position:absolute;z-index:12;top:46px;right:0;background:#fff;padding:10px;border:1px solid #d4d3d1;border-radius:8px;box-shadow:0 8px 22px #0002;min-width:145px}
.portfolio-visual-editor{scroll-margin-top:100px}.portfolio-visual-editor .panel-heading p{margin-bottom:12px;color:#555557}.portfolio-cover-preview{width:100%;min-width:0;aspect-ratio:8/3;max-height:280px;overflow:hidden;border:1px solid #d4d3d1;border-radius:10px;background:#f0efec;margin-bottom:20px;display:grid;place-items:center}.portfolio-cover-preview>img{width:100%;height:100%;min-width:0;min-height:0;object-fit:cover;display:block}.portfolio-cover-preview>[hidden]{display:none}.portfolio-cover-preview>[data-cover-empty]{text-align:center;padding:18px;color:#555557;display:grid;justify-items:center;gap:8px}.portfolio-cover-preview>[data-cover-empty][hidden]{display:none}.portfolio-cover-preview .icon{width:32px;height:32px}.portfolio-cover-preview small{display:block}.portfolio-logo-editor{display:flex;align-items:center;gap:20px;padding-top:20px;border-top:1px solid #dedbd7}.portfolio-logo-editor>img{width:112px;height:84px;object-fit:contain;flex:none;background:#fff;padding:8px;border-radius:8px;border:1px solid #dedbd7}.portfolio-logo-editor>p{flex:1;min-width:0;margin:0}.cover-remove{display:flex;align-items:center;gap:9px}.cover-remove label{margin:0}.cover-preview-feedback:empty{display:none}.cover-preview-feedback{margin:10px 0 0;color:#555557;font-size:13px}
@media(max-width:1050px){.portfolio-identity{grid-template-columns:96px minmax(0,1fr);gap:16px}.portfolio-identity-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;justify-content:flex-end}.portfolio-identity-actions>.text-link{padding:10px}.portfolio-identity-text h1{font-size:28px}}
@media(max-width:600px){.portfolio-identity{padding:18px;grid-template-columns:72px minmax(0,1fr);gap:14px}.portfolio-identity-logo{height:64px;padding:6px}.portfolio-identity-text h1{font-size:24px}.portfolio-identity-actions{justify-content:flex-start;gap:8px}.portfolio-identity-actions .portfolio-more{margin-left:auto}.portfolio-logo-editor{align-items:flex-start;flex-direction:column}.portfolio-banner{min-height:130px}.portfolio-cover-preview{min-height:150px}.portfolio-cover-preview small{font-size:12px}}

/* Keep all three inbox controls and the exit action inside narrow headers. */
@media(max-width:460px){.topbar{gap:8px;padding-inline:12px}.topbar-right{gap:6px;flex-shrink:0}.topbar-left{min-width:0}.topbar .company-logo img{width:clamp(70px,calc(100vw - 250px),105px)}}
@media(max-width:700px){.board-heading-actions .board-search{min-width:0;max-width:100%;width:100%}}
.calendar-scroll:focus-visible{outline:3px solid #ae1917;outline-offset:3px}
@media(max-width:380px){.view-row>.segmented{width:100%;min-width:0;flex-wrap:wrap}.view-row>.segmented>a{flex:1 1 calc(50% - 3px);text-align:center}}

@media(max-width:1100px){.board-page-heading{flex-wrap:wrap}.board-page-heading>div:first-child{flex:1 1 240px;min-width:0}.board-page-heading>.board-heading-actions{flex:1 1 100%;min-width:0}.board-view-row{flex-wrap:wrap}.board-view-row>.segmented{max-width:100%}.board-view-row>form.actions{width:100%;min-width:0}}

.unit-map-projects{display:grid;gap:18px}.unit-map-project{min-width:0}.unit-map-project h3{margin:0 0 10px}.unit-map-floors{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr));gap:12px}.unit-map-floor{min-width:0;padding:10px;border:1px solid #dedbd7;border-radius:7px;background:#fff}.unit-map-floor h4{margin:0 0 7px;font-size:12px;color:#555557}.unit-map-floor .unit-map{grid-template-columns:repeat(auto-fit,minmax(min(86px,100%),1fr));gap:6px}.unit-map-floor .unit-map-cell{font-size:12px;line-height:1.35;gap:3px}.unit-map-floor .unit-map-cell strong{font-size:14px}.unit-map-floor .unit-map-cell small{font-size:11px;line-height:1.35}

.editor-form .form-field{min-width:0;margin-bottom:20px}.editor-form .form-field label{display:block}.editor-form .form-field .errorlist{margin:6px 0 10px}.form-grid>.form-errors{grid-column:1/-1}.editor-form .form-field[hidden]{display:none!important}
.form-field fieldset{border:0;padding:0;margin:0;min-width:0}.form-field legend{font-size:13px;font-weight:500;color:#49494b;margin-bottom:7px}

/* Additional board filters remain within their own responsive form. */
.board-view-row>form.actions{flex-wrap:wrap;min-width:0;max-width:100%}
.board-advanced{flex:1 1 100%;min-width:0;border:1px solid #d4d3d1;border-radius:8px;padding:10px 12px;background:#fff}
.board-advanced summary{cursor:pointer;font-weight:600}
.board-filter-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(170px,100%),1fr));gap:12px;margin-top:14px}
.board-filter-fields .form-field{min-width:0}.board-filter-fields input,.board-filter-fields select{width:100%;min-width:0}
.board-filter-fields label{display:block}.board-advanced .errorlist{color:#a71418;margin:6px 0;padding-left:18px}
.board-advanced p{margin:12px 0 0;max-width:76ch}

.board-view-row{align-items:stretch;flex-direction:column}.board-view-row>.segmented{align-self:flex-start}.board-view-row>form.actions{width:100%}

@media(max-width:700px){.board-page-heading>div:first-child,.board-page-heading>.board-heading-actions{flex:0 1 auto;width:100%}}

.typology-delete-reason{margin:12px 0;font-size:.875rem;line-height:1.5;overflow-wrap:anywhere}.button:disabled{cursor:not-allowed;opacity:.6}
dialog[id^="delete-typology-"]{height:fit-content;max-height:calc(100dvh - 32px)}

.board-filter-fields{grid-template-columns:repeat(3,minmax(0,1fr))}.board-date-range{min-width:0;margin:0;padding:12px;border:1px solid #dce1e5;border-radius:6px}.board-date-range legend{font-weight:600;font-size:.875rem;padding:0 4px}.board-range-inputs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.board-advanced button.text-link{margin-top:8px;background:transparent;border:0;cursor:pointer;text-decoration:underline}.board-range-inputs input{min-width:0;width:100%}@media(max-width:1100px){.board-filter-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.board-filter-fields{grid-template-columns:1fr}.board-range-inputs{grid-template-columns:1fr}}

@media(max-width:1100px){.board-range-inputs{grid-template-columns:1fr}}

/* Board filters: compact toolbar, explicit navigation and a modal side panel. */
.board-controls{margin:20px 0 18px;min-width:0}
.board-navigation{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap;margin-bottom:18px}
.board-operation{display:flex;align-items:center;gap:10px}.board-control-label{font-size:12px;color:#555557;font-weight:600}
.board-view-tabs{display:flex;gap:4px;border-bottom:1px solid #d8d5d1}.board-view-tabs a{padding:12px 16px;min-height:44px;border-bottom:3px solid transparent;font-weight:500}.board-view-tabs a[aria-current]{border-color:#ae1917;color:#9d1715;font-weight:650}
.board-filter-toolbar{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}.board-quick-field{flex:1 1 220px;min-width:0}.board-quick-field label{display:block;font-size:12px;font-weight:600;margin-bottom:6px;color:#555557}.board-quick-field select{width:100%;min-width:0;height:44px}
.board-quick-apply,.board-filter-trigger{min-height:44px}.board-filter-disclosure{flex:0 0 auto;background:transparent;border:0;padding:0;min-width:0}.board-filter-disclosure>summary{display:flex;align-items:center;justify-content:center;gap:8px;list-style:none;margin:0}.board-filter-disclosure>summary::-webkit-details-marker{display:none}.board-filter-count{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 5px;background:#f7e8e7;border-radius:12px;color:#9d1715;font-size:12px}
.board-filter-disclosure[open]{flex:1 1 100%}.board-filter-disclosure[open]>.board-filter-content{border:1px solid #d8d5d1;border-radius:10px;margin-top:12px;background:#fff}
.board-results{display:flex;align-items:center;gap:14px;margin:14px 0 8px;font-size:13px;color:#555557}.board-results>a{color:#941815;text-decoration:underline}.board-active-filters{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:0;padding:0}.board-active-filters li{min-width:0;max-width:100%}.board-active-filters a{display:flex;align-items:center;gap:10px;padding:8px 12px;min-height:36px;border:1px solid #ddd7d0;border-radius:18px;background:#fff;font-size:12px;overflow-wrap:anywhere}.board-active-filters a:hover{background:#f8eeec;border-color:#bf8984}.board-active-filters a>span{font-size:18px;line-height:1;flex-shrink:0}
html.board-filters-open{overflow:hidden}
dialog.board-filter-drawer{position:fixed;inset:0 0 0 auto;margin:0;width:min(480px,100vw);max-width:100vw;height:100dvh;max-height:100dvh;border:0;border-left:1px solid #ddd7d0;border-radius:0;padding:0;overflow:hidden;background:#fff;color:var(--ink);box-shadow:-12px 0 40px #0002}
dialog.board-filter-drawer::backdrop{background:#18202b66}
.board-filter-content{display:flex;flex-direction:column;min-height:0;height:100%;text-align:left}
.board-drawer-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:24px 24px 18px;border-bottom:1px solid #e4e0db;flex-shrink:0}.board-drawer-header h2{font-size:21px;margin:0 0 6px}.board-drawer-header p{margin:0;color:#626265;font-size:13px;line-height:1.5}.board-drawer-close{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border:1px solid #d8d5d1;border-radius:8px;background:#fff;font-size:25px;color:#555557}
.board-filter-content [hidden]{display:none!important}
.board-drawer-body{padding:20px 24px;overflow-y:auto;overscroll-behavior:contain;min-height:0;flex:1}.board-drawer-body h3{margin:0 0 6px;font-size:15px}.board-drawer-body .board-filter-hint{margin:0 0 14px;color:#626265;font-size:13px;line-height:1.5}
.board-filter-content .board-filter-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin:0}.board-filter-content .board-date-range{padding:0;min-width:0;border:1px solid #dedbd7;border-radius:8px;background:#fff}.board-date-range>summary{padding:14px;font-size:14px;font-weight:600;cursor:pointer;min-height:48px}.board-range-active{display:inline-block;font-size:11px;font-weight:500;color:#8c201c;background:#faeeec;border-radius:10px;padding:2px 7px;margin-left:8px}.board-date-content{padding:0 14px 14px}
.board-filter-content .board-range-inputs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.board-filter-content .form-field{min-width:0;margin:0}.board-filter-content label{display:block;font-size:13px;margin:0 0 6px;font-weight:500}.board-filter-content input,.board-filter-content select{width:100%;min-width:0;max-width:100%;height:44px}
.board-date-presets{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 14px}.board-date-presets button{padding:8px 10px;min-height:36px;border:1px solid #d9d4cd;border-radius:6px;color:#454548;background:#f7f6f4;font-size:12px}.board-date-presets button:hover{border-color:#ae1917;color:#941815}.board-filter-content button.text-link{border:0;background:transparent;text-decoration:underline;color:#941815;padding:8px 0;margin-top:4px;font-size:12px;min-height:36px}
.board-drawer-body .board-origin-heading{margin-top:24px;margin-bottom:12px}.board-origin-fields{display:grid;grid-template-columns:1fr;gap:14px}.board-filter-help{margin-top:24px;font-size:12px;color:#626265;line-height:1.6}.board-filter-help summary{cursor:pointer;text-decoration:underline;min-height:36px;padding-block:8px}.board-filter-help p{margin:6px 0 0}
.board-drawer-footer{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;padding:16px 24px max(16px,env(safe-area-inset-bottom));border-top:1px solid #e4e0db;background:#fff;flex-shrink:0}.board-drawer-footer .button{min-height:44px}.board-clear-all{flex:1 1 100%;text-align:center;font-size:12px;color:#626265;text-decoration:underline;padding:6px}.board-filter-error,.board-filter-content .errorlist{color:#971715;font-size:13px}.board-filter-error{padding:12px;background:#fff0ef;border-radius:6px;margin-bottom:16px}.board-filter-content .errorlist{padding-left:18px;margin:6px 0}
.board-controls :is(a,button,summary,select):focus-visible,.board-filter-content :is(button,summary,input,select,a):focus-visible{outline:3px solid #ae1917;outline-offset:3px}
@media(max-width:700px){.board-navigation{gap:14px}.board-operation{width:100%;justify-content:space-between}.board-view-tabs{width:100%}.board-view-tabs a{flex:1;text-align:center;padding-inline:10px}.board-quick-field{flex-basis:calc(50% - 6px)}.board-filter-toolbar>.board-quick-apply,.board-filter-disclosure{flex:1 1 calc(50% - 6px)}.board-filter-disclosure>summary{width:100%}.board-drawer-header{padding:18px 18px 14px}.board-drawer-body{padding:18px}.board-drawer-footer{padding-inline:18px}dialog.board-filter-drawer{width:100vw;border-left:0}}
@media(max-width:380px){.board-filter-content .board-range-inputs{grid-template-columns:1fr}.board-active-filters a{font-size:11px}.board-drawer-header h2{font-size:19px}}

.client-360-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr));gap:18px;margin:18px 0 24px}.client-360-grid>div{min-width:0}.client-360-grid dt{font-size:12px;color:#626265;margin-bottom:6px}.client-360-grid dd{margin:0;line-height:1.6;overflow-wrap:anywhere}.client-process-grid{display:grid;gap:18px}.client-process-grid .panel-heading{flex-wrap:wrap;gap:12px}.client-process-grid h2{margin:10px 0 0}
/* Quotation workspace: internal containers remain usable at intermediate widths. */
.quote-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:16px;align-items:end}.quote-filters label,.quote-project-picker label{display:grid;gap:7px;font-size:13px;font-weight:600}.quote-filters input,.quote-filters select{width:100%;min-width:0}.quote-table{min-width:1200px}.quote-table small{display:block;margin-top:5px;color:#6b7078}.quote-project-picker{display:grid;grid-template-columns:minmax(140px,1fr) minmax(220px,2fr) auto;gap:16px;align-items:center;padding-bottom:24px;margin-bottom:24px;border-bottom:1px solid #e6e7eb}.quote-create{max-width:1050px}.quote-create #id_additional_units{max-height:280px;overflow:auto;padding:12px;background:#f7f8fa}.quote-create .full-width{grid-column:1/-1}.quote-create .field{display:grid;gap:8px}.quote-context{display:flex;flex-wrap:wrap;gap:12px 24px;padding:16px 20px;background:#fff;border:1px solid #e6e7eb;border-radius:12px;margin-bottom:20px;font-size:13px}.quote-context strong{display:block;margin-bottom:4px;color:#636872}.quote-editor fieldset{border:0;padding:0;margin:0;min-width:0}.quote-editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:24px;align-items:start}.quote-editor-layout>div,.quote-editor-layout .panel{min-width:0}.quote-editor .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.quote-editor input,.quote-editor select,.quote-editor textarea,.quote-config-layout input,.quote-config-layout select{max-width:100%;min-width:0}.quote-summary{position:sticky;top:20px}.quote-summary dl{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;font-size:13px}.quote-summary dd{margin:0;text-align:right}.quote-net{font-size:23px;font-weight:750;color:#a71d25}.quote-summary .quote-net{grid-column:1/-1}.quote-notice{background:#fff8e9;padding:14px;border-left:3px solid #c99025;font-size:13px}.quote-notice ul{padding-left:18px}.quote-line{border-top:1px solid #e6e7eb;padding:20px 0}.quote-line h3{display:flex;align-items:center;gap:10px}.quote-line output{display:block;margin-top:12px;font-size:13px;color:#475569}.quote-installment{display:grid;grid-template-columns:minmax(120px,2fr) minmax(130px,1fr) minmax(100px,1fr) auto;gap:12px;padding:14px 0;border-top:1px solid #e6e7eb;align-items:end}.quote-installment .field{display:grid;gap:6px}.quote-save-bar{display:flex;flex-wrap:wrap;gap:12px;position:sticky;bottom:12px;padding:16px;background:#fff;box-shadow:0 4px 24px #0002;border-radius:12px;z-index:4}.quote-config-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:24px}.quote-config-item{display:grid;gap:10px;border-bottom:1px solid #e6e7eb;padding:16px 0}.portfolio-quote-actions{margin:16px 0}.quote-paper{background:#fff;max-width:960px;margin:0 auto 28px;padding:42px;border:1px solid #dddfe3;border-radius:12px;box-shadow:0 5px 24px #00000008;color:#28303b}.quote-paper-header{display:flex;align-items:center;justify-content:space-between;gap:24px;border-bottom:3px solid #a71d25;padding-bottom:24px}.quote-paper-header img{max-width:160px;max-height:70px;object-fit:contain}.quote-paper-header>div{display:grid;gap:5px;text-align:right;margin-left:auto}.quote-paper-header strong{font-size:12px;letter-spacing:.08em;color:#a71d25}.quote-paper-header span{font-size:23px;font-weight:750}.quote-paper-title{padding:28px 0}.quote-paper-title>span{color:#a71d25;font-weight:650}.quote-paper-title h2{font-size:30px;line-height:1.2;margin:10px 0;max-width:580px}.quote-paper-customer{display:grid;grid-template-columns:1.4fr 1fr;gap:24px;background:#f5f6f8;padding:22px;border-radius:8px;margin-bottom:24px;overflow-wrap:anywhere}.quote-paper h3{font-size:13px;letter-spacing:.03em;color:#5c626c}.quote-paper-table{min-width:600px;width:100%}.quote-paper-table td{vertical-align:top}.quote-paper-table small{display:block;margin-top:6px;color:#646d77}.quote-paper-table td:not(:first-child){white-space:nowrap;text-align:right}.quote-paper-totals{max-width:430px;margin:26px 0 26px auto}.quote-paper-totals dl{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px}.quote-paper-totals dd{text-align:right;margin:0}.quote-total-label{font-weight:700;border-top:1px solid #ddd;padding-top:14px}.quote-paper-totals .quote-net{border-top:1px solid #ddd;padding-top:14px}.quote-paper-conditions{font-size:13px;line-height:1.7;white-space:normal;overflow-wrap:anywhere}.quote-plan{margin-top:28px;break-inside:avoid}.quote-plan img{display:block;max-width:100%;max-height:600px;object-fit:contain;margin:auto}.quote-paper-footer{display:block;padding:22px 0 0;margin-top:30px;background:transparent;border-top:1px solid #ddd;color:#69717c;font-size:12px}.quote-paper-footer p{margin:8px 0}.quote-paper .table-scroll{max-width:100%}
@media(max-width:1150px){.quote-editor-layout{grid-template-columns:minmax(0,1fr)}.quote-summary{position:static}.quote-config-layout{grid-template-columns:minmax(0,1fr)}.quote-paper{padding:28px}.quote-paper-header img{max-width:120px}.quote-project-picker{grid-template-columns:minmax(0,1fr)}.quote-installment{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.quote-editor .form-grid{grid-template-columns:minmax(0,1fr)}.quote-paper{padding:18px}.quote-paper-header{gap:12px;flex-wrap:wrap}.quote-paper-header img{max-width:100px;max-height:50px}.quote-paper-title h2{font-size:24px}.quote-paper-customer{grid-template-columns:1fr;padding:16px}.quote-paper-totals{font-size:12px}.quote-paper-totals .quote-net{font-size:18px}.quote-save-bar{position:static}.quote-save-bar .button{width:100%}.quote-installment{grid-template-columns:minmax(0,1fr)}.quote-filters{grid-template-columns:minmax(0,1fr)}}
@media print{body:has(.quote-paper){background:#fff}body:has(.quote-paper) .sidebar,body:has(.quote-paper) .topbar,body:has(.quote-paper) .breadcrumb,body:has(.quote-paper) .messages,body:has(.quote-paper) .shell>footer,body:has(.quote-paper) .quote-no-print,body:has(.quote-paper) main>div[role=status],body:has(.quote-paper) .skip-link{display:none!important}body:has(.quote-paper) .shell{margin:0!important;width:100%}body:has(.quote-paper) main{padding:0!important}.quote-paper{box-shadow:none;border:0;padding:0;border-radius:0;max-width:none;margin:0;font-size:10pt}.quote-paper .table-scroll{overflow:visible}.quote-paper-table{min-width:0;table-layout:auto}.quote-paper-header,.quote-paper-customer,.quote-paper-totals{break-inside:avoid}.quote-paper-title h2{font-size:23pt}.quote-paper td,.quote-paper th{padding:9px}.quote-plan img{max-height:190mm}.quote-paper-footer{display:block!important}@page{size:A4;margin:15mm}}
.quote-create .form-grid{gap:22px}.quote-create #id_additional_units label{display:flex;gap:8px;align-items:center;padding:6px}.quote-create #id_additional_units input{width:auto}.quote-create #id_additional_units label:has(input:disabled){opacity:.55}
.quote-summary dt,.quote-paper-totals dt{margin:0;align-self:baseline}.quote-summary dd,.quote-paper-totals dd{align-self:baseline}.quote-editor .form-grid .form-field:has(textarea){grid-column:1/-1}
.quote-paper-totals .quote-total-label,.quote-paper-totals .quote-net{align-self:stretch;display:flex;align-items:center}.quote-paper-totals .quote-net{justify-content:flex-end}
@media screen and (max-width:800px){.quote-paper-table{min-width:0;display:block}.quote-paper-table thead{display:none}.quote-paper-table tbody{display:block}.quote-paper-table tr{display:block;border:1px solid #e1e3e8;border-radius:8px;margin-bottom:14px;padding:12px}.quote-paper-table td{display:flex;justify-content:space-between;gap:12px;padding:7px 0!important;border:0;white-space:normal!important;text-align:right;overflow-wrap:anywhere}.quote-paper-table td:first-child{display:block;text-align:left;margin-bottom:8px}.quote-paper-table td[data-label]::before{content:attr(data-label);text-align:left;color:#667080;font-weight:500}.quote-paper .table-scroll{overflow:visible}}
.quote-discount-preview{display:block;color:#566273;font-size:12px;line-height:1.5;margin-top:8px}
.quote-paper-table th:not(:first-child){text-align:right}
.move-dialog#derive-dialog{height:fit-content;width:min(720px,94vw);max-height:92dvh;padding:0;border:1px solid #e2deda;border-radius:16px;box-shadow:0 24px 80px #19222e40;overflow:auto;color:var(--ink)}
#derive-dialog::backdrop{background:#20293366;backdrop-filter:blur(2px)}
#derive-dialog .derive-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:20px 28px 16px;border-bottom:1px solid #ece8e4;background:#fff}
#derive-dialog .eyebrow{font-size:11px;letter-spacing:1.3px;color:#8b3a38;margin-bottom:7px}
#derive-dialog h2{font-size:24px;line-height:1.2;letter-spacing:-.5px;margin:0 0 7px}
#derive-dialog .derive-header p{font-size:14px;color:#636369;overflow-wrap:anywhere}
#derive-dialog .derive-close{width:40px;height:40px;flex:0 0 40px;border:1px solid #e4e1de;border-radius:9px}
#derive-dialog form{display:block;margin:0}
#derive-dialog .derive-body{padding:18px 28px;display:grid;gap:18px}
#derive-dialog .derive-current{padding:14px 16px;border-radius:10px;background:#f6f5f3}
#derive-dialog .derive-caption{font-size:10px;letter-spacing:1.1px;color:#737178;font-weight:650}
#derive-dialog .derive-current dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:7px 0 0}
#derive-dialog dt{font-size:12px;color:#737178;margin:0 0 3px}
#derive-dialog dd{font-size:13px;font-weight:600;margin:0;overflow-wrap:anywhere}
#derive-dialog .derive-section h3{display:flex;align-items:center;gap:9px;margin:0 0 14px;font-size:15px}
#derive-dialog .derive-section h3>span{display:inline-flex;align-items:center;justify-content:center;width:23px;height:23px;border-radius:50%;background:#f6eeeb;color:#9c2724;font-size:12px}
#derive-dialog .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
#derive-dialog .form-field{margin:0;min-width:0}
#derive-dialog label{font-size:13px;font-weight:500;margin:0}
#derive-dialog select,#derive-dialog textarea{min-height:44px;border-color:#dcd8d3;border-radius:8px;margin-top:7px}
#derive-dialog .derive-label-row{display:flex;align-items:center;gap:7px;min-height:23px}
#derive-dialog .form-grid>.form-field>label{min-height:23px;display:flex;align-items:center}
#derive-dialog .derive-hint{font-size:12px;color:#737178;margin-top:9px;line-height:1.5}
#derive-dialog .derive-segment{border:1px solid #e6e2de;border-radius:9px;padding:12px 14px;margin-bottom:16px}
#derive-dialog .derive-keep{display:flex;align-items:center;gap:9px;position:relative}
#derive-dialog .derive-keep>label{display:flex;align-items:center;flex-wrap:wrap;gap:8px;flex:1;min-width:0}
#derive-dialog .derive-keep input{width:17px;height:17px;min-height:17px;margin:0;flex:0 0 17px}
#derive-dialog .derive-keep .pill{font-size:11px;padding:2px 9px;background:#f2f0ed;color:#59545a}
#derive-dialog .derive-new-stage{margin-top:13px;padding-top:12px;border-top:1px solid #e8e4df}
#derive-dialog .derive-approval{display:flex;gap:11px;align-items:flex-start;padding:13px 15px;background:#f5f7fa;border:1px solid #e4e9ee;border-radius:10px;color:#485568}
#derive-dialog .derive-approval .icon{margin-top:2px;width:19px;height:19px}
#derive-dialog .derive-approval strong{font-size:13px}
#derive-dialog .derive-approval p{font-size:12px;line-height:1.5;margin:3px 0 0}
#derive-dialog .derive-footer{position:sticky;bottom:0;display:flex;justify-content:flex-end;gap:10px;padding:16px 28px;border-top:1px solid #e9e5e1;background:#fff;z-index:2}
#derive-dialog .derive-footer .button{min-height:44px;font-size:13px}
#derive-dialog .derive-error{font-size:12px;color:#a02220;margin-top:9px}
#derive-dialog [data-derive-error]:empty{display:none}
.field-help{display:inline-flex;position:relative;vertical-align:middle}
.field-help-trigger{display:inline-flex;justify-content:center;align-items:center;width:24px;height:24px;min-width:24px;padding:0;border:1px solid #b4b5bd;border-radius:50%;background:#fff;color:#626774;font-size:13px;font-weight:700;font-family:Georgia,serif;font-style:italic;line-height:1;cursor:help}
.field-help-trigger:hover,.field-help-trigger[aria-expanded=true]{border-color:#aa312e;background:#fbf3f1;color:#91221f}
.field-help-panel{position:absolute;top:calc(100% + 8px);left:0;z-index:8;width:280px;max-width:calc(94vw - 58px);padding:12px 14px;background:#303842;color:#fff;border-radius:8px;box-shadow:0 6px 24px #17202a26;font-size:12px;line-height:1.55;font-weight:400;white-space:normal}
#derive-dialog .derive-keep .field-help-panel{left:auto;right:0}
@media(max-width:600px){#derive-dialog .derive-header{padding:20px}#derive-dialog .derive-body{padding:18px 20px;gap:20px}#derive-dialog .form-grid{grid-template-columns:minmax(0,1fr)}#derive-dialog .derive-current dl{grid-template-columns:minmax(0,1fr);gap:8px}#derive-dialog .derive-footer{padding:14px 20px;flex-wrap:wrap}#derive-dialog .derive-footer .button{flex:1}#derive-dialog .derive-label-row{position:relative}#derive-dialog .derive-label-row .field-help{position:static}#derive-dialog .derive-label-row .field-help-panel{left:0;width:100%}#derive-dialog h2{font-size:22px}}

/* Quote contact and payment blocks: printable, wrapping at narrow widths. */
.quote-company-contact{display:flex;justify-content:space-between;gap:20px;padding:18px 20px;background:#f7f2f2;border-left:4px solid #a51c28;margin:0 0 24px;break-inside:avoid}
.quote-company-contact div{min-width:0;display:grid;gap:5px;overflow-wrap:anywhere}.quote-company-contact span{font-size:13px}.quote-contact-phone{font-weight:700}
.quote-payment-account{border:1px solid #ded8d8;border-radius:10px;padding:20px;margin:24px 0;break-inside:avoid}.quote-payment-account h3{margin-top:0}.quote-payment-account dl{display:grid;grid-template-columns:150px minmax(0,1fr);gap:10px 16px}.quote-payment-account dt{color:#666}.quote-payment-account dd{margin:0;overflow-wrap:anywhere;font-weight:600}.quote-account-number{font-variant-numeric:tabular-nums;letter-spacing:.04em}
@media(max-width:600px){.quote-company-contact{flex-direction:column;gap:12px}.quote-payment-account{padding:16px}.quote-payment-account dl{grid-template-columns:1fr;gap:4px}.quote-payment-account dd{margin-bottom:10px}}

/* Sales document follows the client's two-page sales reference. */
.quote-sale-header{display:grid;grid-template-columns:150px minmax(0,1fr) 130px;align-items:center;gap:18px;border-bottom:3px solid #a51c28;padding-bottom:24px;margin-bottom:30px}.quote-sale-header img{width:100%;max-height:90px;object-fit:contain}.quote-sale-header>div{display:grid;text-align:center;gap:5px;min-width:0;overflow-wrap:anywhere}.quote-sale-header h2{font-size:22px;margin:0}.quote-sale-header small{color:#a51c28}.quote-sale-project{text-align:center;overflow-wrap:anywhere}
.quote-sale-section{margin:24px 0}.quote-sale-section>h3{font-size:16px;border-bottom:2px solid #a51c28;padding-bottom:9px;color:#262a35}.quote-sale-customer{display:grid;grid-template-columns:130px minmax(0,1fr) 95px minmax(0,1fr);gap:12px}.quote-sale dl dd{margin:0;overflow-wrap:anywhere}.quote-sale dt{color:#65656b}.quote-sale-totals{margin:20px 0 30px auto;max-width:460px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 20px}.quote-sale-totals dd{text-align:right;font-variant-numeric:tabular-nums}.quote-sale-net{font-size:18px;font-weight:800!important;color:#24252c!important;padding-top:12px;border-top:1px solid #ddd}
.quote-sale-information{padding:18px;background:#f4f5f7;border-radius:8px;display:grid;grid-template-columns:210px minmax(0,1fr);gap:10px}.quote-sale-contact{background:#252c39;color:#fff;display:flex;flex-wrap:wrap;gap:10px 22px;padding:18px 20px;border-right:7px solid #b01d29;font-size:13px;overflow-wrap:anywhere}.quote-sale-details{margin-top:36px;padding-top:20px;border-top:1px dashed #bbb}.quote-sale-details .quote-plan img{max-height:420px;width:100%;object-fit:contain}.quote-sale-closing{display:grid;grid-template-columns:1fr 1fr;gap:24px}.quote-sale-adviser{align-self:start;padding:20px;background:#f4f5f7;border-radius:8px;overflow-wrap:anywhere}.quote-sale-adviser h3{margin-top:0}.quote-signature{padding-top:18px}
@media(max-width:800px){.quote-sale-header{grid-template-columns:90px minmax(0,1fr);gap:15px}.quote-sale-header h2{font-size:18px}.quote-sale-project{grid-column:1/-1}.quote-sale-customer{grid-template-columns:110px minmax(0,1fr)}.quote-sale-information{grid-template-columns:1fr;gap:5px}.quote-sale-information dd{margin-bottom:10px!important}.quote-sale-closing{grid-template-columns:1fr}.quote-sale-totals{max-width:100%;font-size:13px}.quote-sale-net{font-size:15px}}
@media print{.quote-sale-details{break-before:page;border-top:0;margin-top:0;padding-top:0}.quote-sale-header{grid-template-columns:130px 1fr 100px}.quote-sale-closing{break-inside:avoid}.quote-sale .quote-sale-contact{print-color-adjust:exact;-webkit-print-color-adjust:exact}}

/* Compact sales reading rhythm: isolate inherited global definition-list margins. */
.quote-paper.quote-sale{padding:28px;font-size:14px;line-height:1.45}
.quote-sale dl{margin:0}.quote-sale dt,.quote-sale dd{margin:0;align-self:baseline;line-height:1.45;font-size:13px}
.quote-sale-header{padding-bottom:16px;margin-bottom:20px;gap:16px}.quote-sale-header img{max-height:64px}.quote-sale-header>div{gap:3px}.quote-sale-header h2{font-size:20px;line-height:1.2}.quote-sale-header span{font-size:12px;line-height:1.4}.quote-sale-header small{font-size:11px}
.quote-sale-section{margin:18px 0}.quote-sale-section>h3{margin:0 0 12px;padding-bottom:7px;font-size:15px}.quote-sale h4{margin:12px 0 8px}.quote-sale p{margin:0 0 9px;line-height:1.5}
.quote-sale-customer{row-gap:8px;column-gap:16px}.quote-sale .quote-sale-totals{margin:16px 0 20px auto;gap:9px 18px}.quote-sale .quote-sale-net{padding-top:10px;font-size:16px}
.quote-sale .quote-sale-information{padding:14px 16px;gap:8px 16px}.quote-sale-contact{padding:12px 16px;gap:8px 18px}.quote-sale-details{margin-top:22px;padding-top:0}.quote-sale-details .quote-plan{margin-top:18px}.quote-sale-details .quote-plan h3{margin:0 0 10px}.quote-sale-details .quote-plan img{max-height:300px}
.quote-sale .quote-payment-account{padding:16px;margin:16px 0}.quote-sale .quote-payment-account h4{margin:0 0 12px}.quote-sale .quote-payment-account dl{gap:8px 16px}.quote-sale .quote-payment-account dt,.quote-sale .quote-payment-account dd{margin:0}
.quote-sale-closing{gap:18px;align-items:start}.quote-sale-closing>.quote-sale-section{margin:0}.quote-sale-adviser{padding:16px}.quote-sale-adviser h3{margin:0 0 10px}.quote-sale-adviser p{margin:6px 0 0}.quote-sale .quote-signature{padding-top:10px}
@media(max-width:800px){.quote-paper.quote-sale{padding:20px}.quote-sale .quote-sale-information{gap:5px}.quote-sale .quote-sale-information dd{margin:0 0 6px!important}}
@media(max-width:600px){.quote-paper.quote-sale{padding:16px}.quote-sale-header{gap:12px}.quote-sale-header h2{font-size:17px}.quote-sale-header img{max-height:52px}.quote-sale .quote-sale-totals{gap:8px 14px}.quote-sale .quote-sale-net{font-size:14px}.quote-sale .quote-payment-account dl{gap:4px}.quote-sale .quote-payment-account dd{margin-bottom:7px}.quote-sale-details .quote-plan img{max-height:260px}}
@media print{.quote-paper.quote-sale{padding:0}.quote-sale-details{break-before:page;margin:0;border:0}.quote-sale-details .quote-plan{margin-top:0}}

.quote-requirements{margin:0;padding-left:18px;line-height:1.5;font-size:13px}.quote-requirements li{padding:2px 0}
.quote-sale .quote-sale-contact span,.quote-sale .quote-sale-contact a{color:#fff}

@media screen and (min-width:801px) and (max-width:1100px){.quote-sale .quote-paper-table{min-width:0;display:block}.quote-sale .quote-paper-table thead{display:none}.quote-sale .quote-paper-table tbody{display:block}.quote-sale .quote-paper-table tr{display:block;border:1px solid #e1e3e8;border-radius:8px;margin-bottom:12px;padding:12px}.quote-sale .quote-paper-table td{display:flex;justify-content:space-between;gap:12px;padding:6px 0!important;border:0;white-space:normal!important;text-align:right;overflow-wrap:anywhere}.quote-sale .quote-paper-table td:first-child{display:block;text-align:left;margin-bottom:8px}.quote-sale .quote-paper-table td[data-label]::before{content:attr(data-label);text-align:left;color:#667080;font-weight:500}.quote-sale .table-scroll{overflow:visible}}
/* Proforma journey: context first, optional inventory, persistent selection. */
.quote-steps{display:flex;flex-wrap:wrap;gap:12px 28px;list-style:none;padding:0;margin:0 0 24px;color:#687281;font-size:13px}.quote-steps li{display:flex;align-items:center;gap:8px}.quote-steps span{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#e9ebef;font-weight:700}.quote-steps [aria-current]{color:#9d1d24;font-weight:700}.quote-steps [aria-current] span{background:#9d1d24;color:white}.quote-create.quote-journey{max-width:1280px}.quote-origin{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 24px}.quote-origin h2{margin:5px 0;font-size:20px;overflow-wrap:anywhere}.quote-origin>p,.quote-other-project{grid-column:1/-1;margin:0}.quote-other-project{border-top:1px solid #e4e6eb;padding-top:14px}.quote-journey summary{cursor:pointer;font-weight:650;line-height:1.5}.quote-other-project .button{margin:4px 8px 4px 0}.quote-build-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:22px;align-items:start}.quote-build-main{min-width:0;display:grid;gap:18px}.quote-build-main .panel{margin:0}.quote-build-main h2,.quote-build-summary h2{font-size:17px;margin:0 0 14px}.quote-build-main p,.quote-build-summary p,.quote-other-project p{font-size:13px;line-height:1.6}.quote-journey input,.quote-journey select{min-width:0;max-width:100%}.quote-build-summary{position:sticky;top:18px;min-width:0}.quote-build-summary .button{display:flex;justify-content:center;width:100%;margin-top:10px;box-sizing:border-box}.quote-build-summary ul{list-style:none;padding:0;margin:0}.quote-build-summary li{display:grid;gap:6px;border-bottom:1px solid #e7e9ed;padding:12px 0;overflow-wrap:anywhere}.quote-build-summary li strong{font-size:13px}.quote-build-summary small{display:block;color:#657080;line-height:1.5}.quote-selection-total{font-size:24px;color:#9d1d24;display:block;margin-bottom:8px}.quote-remove-unit{justify-self:start;background:none;border:0;padding:4px 0;color:#9d1d24;cursor:pointer;text-decoration:underline;font-size:12px}.quote-unit-tools{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:12px;margin:16px 0}.quote-unit-tools[hidden],.quote-unit-option[hidden]{display:none!important}.quote-unit-list{max-height:330px;overflow:auto;overscroll-behavior:contain;border:1px solid #e2e5e9;border-radius:8px}.quote-create .quote-unit-option{display:grid;grid-template-columns:20px minmax(0,1fr) auto;gap:5px 12px;padding:14px;align-items:center;border-bottom:1px solid #e7e9ed;cursor:pointer;font-size:13px;overflow-wrap:anywhere}.quote-unit-option:last-child{border-bottom:0}.quote-create .quote-unit-option input{width:18px;height:18px;margin:0}.quote-unit-option strong,.quote-unit-option small{display:block}.quote-unit-option small{color:#667080;font-size:12px;margin-top:4px}.quote-unit-price{font-weight:650;white-space:nowrap}.quote-unit-availability{grid-column:2/-1}.quote-unit-availability:empty{display:none}.quote-unit-option:has(input:checked){background:#fff3f3}.quote-unit-option:has(input:disabled){background:#f4f5f7;color:#697281}.quote-journey :focus-visible{outline:3px solid #376ba6;outline-offset:3px}.quote-extra-section summary .muted{display:inline-block;margin-left:6px;font-size:12px;font-weight:400}
.quote-editor .quote-sale-fields{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.quote-editor .quote-sale-fields textarea{min-height:110px;resize:vertical}
@media(max-width:1050px){.quote-build-layout{grid-template-columns:minmax(0,1fr)}.quote-build-summary{position:static}.quote-build-summary ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px}}
@media(max-width:600px){.quote-origin{grid-template-columns:minmax(0,1fr)}.quote-unit-tools{grid-template-columns:minmax(0,1fr)}.quote-create .quote-unit-option{grid-template-columns:20px minmax(0,1fr)}.quote-unit-price{grid-column:2}.quote-build-summary ul{grid-template-columns:minmax(0,1fr)}.quote-editor .quote-sale-fields{grid-template-columns:minmax(0,1fr)}.quote-steps{gap:10px;font-size:11px}.quote-steps span{width:22px;height:22px}}
.quote-editor .quote-compact-fields{max-width:680px;gap:16px;align-items:start}.quote-editor .quote-sale-fields .form-field{min-width:0}.quote-editor .quote-sale-fields textarea{box-sizing:border-box}.quote-editor .form-field label{line-height:1.4}
.quote-unit-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.quote-unit-heading h3{margin:0}.quote-line-remove{display:flex;align-items:center;gap:8px;font-size:12px;cursor:pointer;color:#9d1d24}.quote-editor .quote-line-remove input{width:18px;height:18px;margin:0}.quote-unit-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:14px 0}.quote-unit-facts dt{font-size:12px;color:#677080}.quote-unit-facts dd{margin:6px 0 0;font-weight:600;font-size:13px;overflow-wrap:anywhere}.quote-removal-note{background:#fff4e7;color:#744810;padding:10px;font-size:13px}.quote-line-pending-removal{background:#faf6f3}.quote-line-pending-removal .quote-unit-facts{opacity:.6}.quote-line-pending-removal [data-line-role]{background:#fbe5ca;color:#744810}@media(max-width:900px){.quote-unit-facts{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:450px){.quote-unit-facts{grid-template-columns:minmax(0,1fr)}}
.quote-editor [data-direct-schedule][hidden],.quote-editor [data-clear-schedule][hidden]{display:none!important}.quote-editor [data-totals-error]{font-size:13px}.quote-editor [data-clear-schedule] input[type=checkbox]{width:18px;height:18px}
@media(min-width:1151px){.quote-summary{top:90px;max-height:calc(100vh - 110px);overflow:auto}}
@media(min-width:1051px){.quote-build-summary{top:90px;max-height:calc(100vh - 110px);overflow:auto}}

/* Nov 2026: the working board owns its scroll areas, not the outer page. */
main:has(#kanban-board){max-width:none;padding:14px 16px 12px;min-width:0}
main:has(#kanban-board) .breadcrumb{margin-bottom:12px}
main:has(#kanban-board) .board-page-heading{margin-bottom:10px;gap:12px}
main:has(#kanban-board) .board-page-heading h1{font-size:25px;margin-bottom:4px}
main:has(#kanban-board) .eyebrow{margin-bottom:5px}
main:has(#kanban-board) .board-controls{margin:8px 0 10px}
@media(min-width:900px) and (min-height:650px){
 body:has(#kanban-board){overflow:hidden}
 body:has(#kanban-board) .shell{height:100vh;height:100dvh;display:flex;flex-direction:column;min-width:0}
 body:has(#kanban-board) .topbar{flex:0 0 65px;height:65px;position:relative}
 body:has(#kanban-board) main{flex:1;min-height:0;width:100%;margin:0;display:flex;flex-direction:column}
 main:has(#kanban-board)>*{flex-shrink:0}
 main:has(#kanban-board)>[role=status]{padding:8px 12px!important;margin-bottom:10px!important}
 body:has(#kanban-board) .shell>footer{display:none}
 main:has(#kanban-board) #kanban-board{flex:1 1 0;height:auto;min-height:0;max-height:none;padding-bottom:10px;gap:12px}
}
@media(max-width:899px){main:has(#kanban-board){padding-inline:12px}}

/* UX Nov 11: keep filter state visible while giving cards the working area. */
.board-quick-disclosure{border:1px solid #ddd7d0;border-radius:8px;background:#fff;min-width:0}
.board-quick-disclosure>summary{display:flex;align-items:center;gap:10px;cursor:pointer;padding:10px 12px;min-height:44px;font-weight:600;font-size:13px;list-style:none}
.board-quick-disclosure>summary::before{content:'+';font-size:20px;line-height:1;width:18px;text-align:center;flex-shrink:0}
.board-quick-disclosure[open]>summary::before{content:'−'}
.board-quick-disclosure>summary:focus-visible{outline:3px solid #ae1917;outline-offset:3px}
.board-quick-disclosure[open]>.board-filters-form{padding:0 12px 12px}
main:has(#kanban-board) .board-navigation{margin-bottom:8px;gap:8px 16px}
main:has(#kanban-board) .board-results{margin:8px 0 0}
main:has(#kanban-board) .board-active-filters{margin-top:8px;max-height:88px;overflow:auto;padding:3px}
main:has(#kanban-board) .board-page-heading p{margin:4px 0 0;font-size:13px}
@media(min-width:900px) and (min-height:650px){
 main:has(#kanban-board) .board-page-heading{align-items:center}
 main:has(#kanban-board) .board-page-heading .eyebrow{display:none}
 main:has(#kanban-board) .board-quick-disclosure[open]{max-height:32vh;overflow:auto}
 /* Keep a complete 375px card plus column header visible; let the page scroll on short viewports. */
 main:has(#kanban-board) #kanban-board{min-height:480px}
 body:has(#kanban-board){overflow:auto}
}

/* Lead capture: progressive disclosure without dropping fields. */
.lead-secondary {margin-top:1rem;border-top:1px solid #d8dce2;padding-top:.75rem}
.lead-secondary summary,.lead-list-filters>summary {cursor:pointer;font-weight:600;padding:.65rem .25rem}
.lead-secondary summary span {font-weight:400}
.lead-secondary summary:focus-visible,.lead-list-filters>summary:focus-visible {outline:3px solid #356ac3;outline-offset:3px}
.lead-secondary>p {font-size:.9rem}
.lead-bottom-actions {margin-top:1.25rem;flex-wrap:wrap}
.lead-list-heading {margin-bottom:1rem}
.lead-list-heading h1 {margin-bottom:.25rem}
.lead-list-filters {margin-bottom:1rem}
.lead-list-filters .filters {margin-bottom:0}
@media(max-width:700px){.lead-bottom-actions .button {flex:1;text-align:center}.lead-list-heading .actions {flex-wrap:wrap}}

/* Lead QA: searchable choices need the width of their section. */
.lead-create-panel .form-field:has(select) {grid-column:1 / -1}
.lead-create-panel .helptext {white-space:normal;overflow-wrap:anywhere}
.lead-create-panel .location-picker-input {box-sizing:border-box;max-width:100%;min-width:0}

/* Daniel's compact lead capture: primary action stays at the top. */
.lead-compact-heading {align-items:center;gap:12px;margin-bottom:14px}
.lead-compact-heading h1 {margin-bottom:4px}
.lead-compact-heading p {margin:0;line-height:1.4}
.lead-compact-heading .lead-top-actions {margin:0;flex-shrink:0;gap:8px;flex-wrap:wrap}
.lead-create-panel .lead-form-section {padding:16px}
.lead-create-panel .lead-form-section>h2 {margin:0 0 6px}
.lead-create-panel .lead-form-section>p {margin:0 0 12px;font-size:13px;line-height:1.4}
.lead-create-panel .form-grid {gap:12px 14px;align-items:start}
.lead-create-panel .form-field {margin-bottom:0}
.lead-create-panel .form-field label {margin-bottom:4px;line-height:1.4}
.lead-create-panel .helptext {margin:4px 0 6px;font-size:12px;line-height:1.4}
.lead-create-panel input:not([type=checkbox]),.lead-create-panel select {min-height:42px}
.lead-create-panel .form-field:has(select[name="client-kind"]),
.lead-create-panel .form-field:has(select[name="client-document_type"]) {grid-column:auto}
.lead-create-panel .lead-secondary {margin-top:12px;padding-top:6px}
.lead-create-panel .lead-secondary>p {margin:4px 0 12px}
.lead-create-panel .lead-bottom-actions {margin-top:14px}
@media(max-width:700px){
 .lead-compact-heading {align-items:flex-start}
 .lead-compact-heading .lead-top-actions {width:100%}
 .lead-compact-heading .lead-top-actions .button {flex:1;text-align:center;min-height:44px}
 .lead-create-panel .lead-form-section {padding:14px}
 .lead-create-panel .form-grid {grid-template-columns:1fr}
 .lead-create-panel input:not([type=checkbox]),.lead-create-panel select {min-height:44px;font-size:16px}
}
