:root{color:#334155;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:#f8fafc;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{margin:0}a{color:inherit}.btn{cursor:pointer;font:inherit;white-space:nowrap;border:1px solid #0000;border-radius:12px;justify-content:center;align-items:center;gap:8px;font-weight:700;line-height:1.2;text-decoration:none;transition:background .15s,border-color .15s,box-shadow .15s,color .15s,transform .15s;display:inline-flex}.btn:disabled{cursor:not-allowed;opacity:.55;transform:none}.btn:focus-visible{outline-offset:2px;outline:2px solid #f97316}.btn-sm{border-radius:10px;min-height:32px;padding:6px 12px;font-size:12px}.btn-md{min-height:40px;padding:10px 16px;font-size:14px}.btn-lg{border-radius:14px;min-height:44px;padding:12px 20px;font-size:15px}.btn-full{width:100%}.btn-primary{color:#fff7ed;background:linear-gradient(#fb923c 0%,#f97316 100%);border-color:#ea580c;box-shadow:0 1px 2px #ea580c33}.btn-primary:hover:not(:disabled){background:linear-gradient(#fdba74 0%,#fb923c 100%);transform:translateY(-1px);box-shadow:0 6px 16px #f9731647}.btn-primary:active:not(:disabled){box-shadow:none;transform:translateY(0)}.btn-secondary{color:#334155;background:#f8fafc;border-color:#cbd5e1}.btn-secondary:hover:not(:disabled){background:#f1f5f9;border-color:#94a3b8}.btn-ghost{color:#475569;background:#fff;border-color:#e2e8f0}.btn-ghost:hover:not(:disabled){color:#0f172a;background:#f8fafc;border-color:#cbd5e1}.btn-danger{color:#991b1b;background:#fef2f2;border-color:#fecaca}.btn-danger:hover:not(:disabled){background:#fee2e2;border-color:#fca5a5}.btn-link{color:#c2410c;background:#fff7ed;border-color:#0000;border-radius:10px;min-height:auto;padding:8px 12px}.btn-link:hover:not(:disabled){background:#ffedd5}.btn-subtle{color:#e2e8f0;background:#ffffff1a;border-color:#ffffff2e}.btn-subtle:hover:not(:disabled){color:#fff;background:#ffffff29}.btn-hint{color:#fff;text-align:left;white-space:normal;background:#ffffff14;border-color:#ffffff24;border-radius:14px;justify-content:flex-start;width:100%;min-height:auto;padding:10px 12px}.btn-hint:hover:not(:disabled){background:#ffffff24;border-color:#fb923c73}.btn-hint span{color:#fb923c;letter-spacing:.1em;text-transform:uppercase;font-size:11px;font-weight:900;display:block}.btn-pill{color:#475569;background:#f8fafc;border-color:#cbd5e1;border-radius:999px;min-height:32px;padding:6px 14px;font-size:12px}.btn-pill:hover:not(:disabled){background:#f1f5f9}.btn-pill.active{color:#c2410c;background:#fff7ed;border-color:#fdba74}.project-tabs .btn-pill.active{color:#fff;background:#0f172a;border-color:#0f172a}.btn-nav,.btn-nav-sub,.btn-nav-group{color:#d1d5db;text-align:left;background:0 0;border-color:#0000;border-radius:14px;justify-content:flex-start;width:100%;min-height:auto;padding:13px 14px}.btn-nav-sub{color:#9ca3af;padding:10px 14px;font-size:14px}.btn-nav-group{font-weight:800}.btn-nav:hover:not(:disabled),.btn-nav-sub:hover:not(:disabled),.btn-nav-group:hover:not(:disabled),.btn-nav.active,.btn-nav-sub.active,.btn-nav-group.active{color:#fff;background:#1f2937}.btn-logout{color:#d1d5db;background:0 0;border-color:#374151;border-radius:14px;justify-content:flex-start;width:100%;margin-top:auto;font-weight:800}.btn-logout:hover:not(:disabled){color:#fff;background:#1f2937}.btn-icon{color:#64748b;background:#f1f5f9;border-color:#0000;border-radius:12px;min-width:36px;min-height:36px;padding:0;font-size:22px;line-height:1}.btn-icon:hover:not(:disabled){color:#0f172a;background:#e2e8f0}.btn-metric{color:inherit;text-align:left;background:#fff;border-color:#e2e8f0;border-radius:18px;flex-direction:column;align-items:flex-start;gap:4px;width:100%;min-height:auto;padding:18px;box-shadow:0 12px 30px #0f172a0f}.btn-metric span{color:#64748b;font-size:13px;font-weight:700}.btn-metric strong{color:#0f172a;letter-spacing:-.03em;font-size:28px;font-weight:800}.btn-metric.clickable:hover:not(:disabled){border-color:#cbd5e1;transform:translateY(-1px);box-shadow:0 16px 36px #0f172a1a}.btn-metric.hot strong{color:#dc2626}.btn-metric.success strong{color:#15803d}.btn-metric.danger strong{color:#b91c1c}.btn-unstyled{color:inherit;font:inherit;font-weight:inherit;min-height:auto;text-align:inherit}.btn-unstyled:not(.lead-card,.calendar-day,.calendar-event-card,.calendar-filter,.stage-step,.admin-table-row,.admin-drill-item,.admin-sort){box-shadow:none;background:0 0;border:none;border-radius:0;padding:0}.btn-unstyled:hover:not(:disabled),.btn-unstyled:active:not(:disabled){transform:none}.btn-unstyled:not(.lead-card,.calendar-day,.calendar-event-card,.calendar-filter,.stage-step,.admin-table-row):hover:not(:disabled),.btn-unstyled:not(.lead-card,.calendar-day,.calendar-event-card,.calendar-filter,.stage-step,.admin-table-row):active:not(:disabled){box-shadow:none}.btn-unstyled:focus-visible{outline-offset:0}.btn-unstyled.lead-card{white-space:normal;align-items:stretch;width:100%;min-width:0;display:block}.btn-unstyled.lead-card:hover:not(:disabled){border-color:#fb923c}.btn-unstyled.calendar-day{display:grid}.btn-unstyled.calendar-event-card{text-align:left;white-space:normal;grid-template-columns:minmax(0,1fr);justify-content:stretch;place-items:stretch start;width:100%;min-width:0;display:grid}.btn-unstyled.calendar-filter{display:inline-flex}.btn-unstyled.stage-step{flex-direction:column;flex:none;display:flex}.btn-unstyled.admin-table-row,.btn-unstyled.admin-drill-item{display:grid}.btn-unstyled.admin-sort{display:block}.rich-text-editor{gap:0;display:grid}.rich-text-toolbar{background:#f1f5f9;border:1px solid #cbd5e1;border-bottom:none;border-radius:12px 12px 0 0;flex-wrap:wrap;align-items:center;gap:4px;padding:6px;display:flex}.rich-text-btn{color:#334155;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:8px;min-width:32px;padding:6px 8px;font-size:13px;line-height:1}.rich-text-btn:hover{background:#e2e8f0;border-color:#94a3b8}.rich-text-btn:focus-visible{outline-offset:1px;outline:2px solid #2563eb}.rich-text-underline{text-decoration:underline}.rich-text-divider{background:#cbd5e1;width:1px;height:20px;margin:0 2px}.rich-text-content{color:#0f172a;background:#f8fafc;border:1px solid #cbd5e1;border-radius:0 0 12px 12px;outline:none;padding:11px 12px;font-size:14px;font-weight:500;line-height:1.55;overflow-y:auto}.rich-text-content:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1f}.rich-text-content.is-empty:before{color:#94a3b8;content:attr(data-placeholder);pointer-events:none}.rich-text-content ul,.rich-text-content ol{margin:.35rem 0;padding-left:1.25rem}.rich-text-content p{margin:0 0 .5rem}.rich-text-content p:last-child{margin-bottom:0}.login-shell{background:radial-gradient(circle at 0 0,#f9731633,#0000 34%),linear-gradient(135deg,#0f172a,#1e293b);grid-template-columns:minmax(0,1fr) minmax(360px,520px);align-items:center;gap:32px;min-height:100vh;padding:clamp(24px,6vw,72px);display:grid}.login-hero{color:#fff;max-width:720px}.login-hero h1{letter-spacing:-2.5px;margin:12px 0 20px;font-size:clamp(42px,7vw,78px);line-height:.95}.login-hero p:not(.eyebrow){color:#cbd5e1;max-width:620px;font-size:18px;line-height:1.7}.login-panel{gap:18px;display:grid}.login-card{background:#fffffff5;border:1px solid #ffffff6b;border-radius:28px;padding:26px;box-shadow:0 24px 60px #0f172a47}.login-card span{color:#f97316;font-size:13px;font-weight:800}.login-card h2{color:#0f172a;margin:8px 0}.login-card p{color:#64748b;line-height:1.6}.login-form{gap:16px;display:grid}.login-form label{color:#334155;gap:8px;font-size:13px;font-weight:800;display:grid}.login-form input{color:#0f172a;background:#f8fafc;border:1px solid #cbd5e1;border-radius:14px;padding:13px 14px}.login-password-field{position:relative}.login-password-field input{width:100%;padding-right:72px}.login-password-toggle{color:#64748b;cursor:pointer;background:0 0;border:0;padding:0;font-size:13px;font-weight:700;position:absolute;top:50%;right:14px;transform:translateY(-50%)}.login-password-toggle:hover{color:#f97316}.login-error{background:#fee2e2;border-radius:12px;margin:0;padding:10px 12px;color:#991b1b!important}.login-form .btn{width:100%}.login-hints{color:#e5e7eb;background:#0f172aa3;border:1px solid #ffffff24;border-radius:22px;gap:10px;padding:18px;display:grid}.login-hints strong,.login-hints small{color:#cbd5e1}.app-shell{grid-template-columns:280px 1fr;height:100vh;display:grid;overflow:hidden}.sidebar{color:#e5e7eb;background:#111827;flex-direction:column;gap:36px;height:100vh;padding:28px;display:flex;position:sticky;top:0;overflow-y:auto}.brand{align-items:center;gap:14px;display:flex}.brand-mark{color:#111827;background:linear-gradient(135deg,#f97316,#facc15);border-radius:16px;justify-content:center;align-items:center;width:48px;height:48px;font-weight:900;display:inline-flex}.brand strong,.brand small{display:block}.brand small{color:#9ca3af;font-size:12px}.user-card{background:#1f2937;border:1px solid #374151;border-radius:20px;gap:5px;padding:16px;display:grid}.user-card span{color:#fb923c;letter-spacing:.12em;text-transform:uppercase;font-size:11px;font-weight:900}.user-card strong{color:#fff}.user-card small{color:#9ca3af}.sidebar nav{gap:10px;display:grid}button,input,select,textarea{font:inherit}button{cursor:pointer}.nav-group{gap:4px;display:grid}.nav-group-toggle{width:100%;font-weight:800}.nav-group-items{gap:4px;padding-left:10px;display:grid}.sidebar .nav-sub{color:#9ca3af;padding:10px 14px;font-size:14px}.lead-list-panel .section-title{justify-content:space-between;align-items:center;display:flex}.lead-list-header-actions{flex-shrink:0;align-items:center;gap:8px;display:flex}.lead-list-export-menu{position:relative}.lead-list-export-dropdown{z-index:20;background:#fff;border:1px solid #cbd5e1;border-radius:12px;min-width:160px;display:grid;position:absolute;top:calc(100% + 6px);right:0;overflow:hidden;box-shadow:0 12px 32px #0f172a1f}.lead-list-export-option{color:#0f172a;cursor:pointer;font:inherit;text-align:left;background:0 0;border:0;padding:10px 14px}.lead-list-export-option:hover:not(:disabled),.lead-list-export-option:focus-visible{background:#f8fafc;outline:none}.lead-list-export-option:disabled{cursor:not-allowed;opacity:.6}.lead-list-toolbar{gap:12px;margin-bottom:12px;display:grid}.lead-list-search input{color:#0f172a;background:#fff;border:1px solid #cbd5e1;border-radius:12px;width:100%;padding:11px 12px}.lead-list-search input:focus{border-color:#64748b;outline:none}.lead-list-filters{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.lead-list-filters select{appearance:none;color:#0f172a;cursor:pointer;background-color:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-position:right 12px center;background-repeat:no-repeat;background-size:16px;border:1px solid #cbd5e1;border-radius:12px;min-width:140px;padding:11px 40px 11px 12px}.lead-list-summary{color:#64748b;margin:0 0 12px;font-size:13px}.lead-list-empty{color:#64748b;text-align:center;flex-direction:column;align-items:center;gap:10px;padding:28px 12px;display:flex}.lead-list-pagination{justify-content:flex-end;align-items:center;gap:12px;margin-top:16px;display:flex}.lead-list-page-indicator{color:#64748b;font-size:13px;font-weight:700}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.lead-table-wrap{overflow-x:auto}.lead-table{border-collapse:collapse;width:100%;min-width:720px}.lead-table th,.lead-table td{text-align:left;border-bottom:1px solid #e2e8f0;padding:12px 10px}.lead-table th{color:#64748b;text-transform:uppercase;font-size:12px;font-weight:800}.lead-row-actions{flex-wrap:wrap;gap:4px 10px;display:flex}.lead-row-actions .danger-link{color:#dc2626}.lead-row-actions .danger-link:hover:not(:disabled){color:#b91c1c}.add-lead-layout{grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);align-items:start;gap:18px;display:grid}.add-lead-form-panel{overflow:hidden}.add-lead-form-header{background:linear-gradient(#fff7ed 0%,#fff 100%);border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:flex-start;gap:16px;margin:-22px -22px 22px;padding:22px 22px 20px;display:flex}.add-lead-form-header h2{color:#0f172a;margin:6px 0 0}.add-lead-intro{color:#64748b;max-width:420px;margin:8px 0 0;line-height:1.55}.lead-bulk-actions{margin-top:14px}.lead-bulk-actions-buttons{flex-wrap:wrap;gap:8px;display:flex}.lead-bulk-actions-hint{color:#64748b;max-width:520px;margin:8px 0 0;font-size:12px;line-height:1.45}.label-optional{color:#94a3b8;font-size:12px;font-weight:500}.lead-form-grid .lead-form-full{grid-column:1/-1}.add-lead-badge,.add-lead-count{color:#c2410c;white-space:nowrap;background:#fff7ed;border:1px solid #fed7aa;border-radius:999px;flex-shrink:0;padding:6px 12px;font-size:12px;font-weight:800}.add-lead-sidebar{flex-direction:column;min-height:420px;max-height:calc(100vh - 220px);display:flex;position:sticky;top:28px}.add-lead-sidebar-title{flex-shrink:0;margin-bottom:14px}.add-lead-count{color:#475569;background:#f1f5f9;border-color:#e2e8f0}.add-lead-card-list{flex:1;gap:12px;min-height:0;padding-right:4px;display:grid;overflow-y:auto}.add-lead-card-list .lead-card,.add-lead-card-list button.lead-card,.add-lead-card-list .btn.lead-card{cursor:pointer;border:1px solid #e2e8f0;transition:border-color .15s,box-shadow .15s,transform .15s}.add-lead-card-list .lead-card:hover,.add-lead-card-list button.lead-card:hover:not(:disabled),.add-lead-card-list .btn.lead-card:hover:not(:disabled){border-color:#fdba74;transform:translateY(-1px);box-shadow:0 8px 24px #f973161f}.add-lead-empty{color:#64748b;text-align:center;background:#f8fafc;border:1px dashed #cbd5e1;border-radius:18px;flex:1;place-items:center;gap:6px;padding:32px 20px;display:grid}.add-lead-empty p{color:#0f172a;margin:0;font-weight:800}.add-lead-empty span{max-width:220px;font-size:13px;line-height:1.5}.lead-form-page{gap:18px}.lead-form-section{border:0;gap:12px;min-width:0;margin:0;padding:0;display:grid}.lead-form-section legend{color:#475569;letter-spacing:.02em;margin-bottom:2px;padding:0;font-size:13px;font-weight:500}.lead-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.lead-form-page label{color:#64748b;gap:8px;font-size:13px;font-weight:400;display:grid}.lead-form-page input,.lead-form-page select,.lead-form-page textarea{font-weight:400}.select-wrap{display:block;position:relative}.select-wrap select{appearance:none;cursor:pointer;background-color:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-position:right 12px center;background-repeat:no-repeat;background-size:16px;width:100%;padding-right:40px;transition:border-color .15s,box-shadow .15s,background-color .15s}.select-wrap select:hover:not(:disabled){background-color:#fff;border-color:#94a3b8}.select-wrap select:focus{background-color:#fff}.select-wrap select:disabled{cursor:not-allowed;opacity:.65}.select-priority select{padding-left:14px}.select-priority-low select{border-left:3px solid #16a34a}.select-priority-medium select{border-left:3px solid #d97706}.select-priority-high select{border-left:3px solid #dc2626}.lead-form select option,.section-title select option,.stage-field select option,.modal-form select option{color:#0f172a;background:#fff;padding:10px 12px;font-weight:400}.lead-form-full{grid-column:1/-1}.lead-form-page input:focus,.lead-form-page select:focus,.lead-form-page textarea:focus{border-color:#f97316;outline:none;box-shadow:0 0 0 3px #f9731626}.lead-form-field-error{color:#dc2626;font-size:.75rem}.lead-form input.lead-form-input-invalid,.lead-form textarea.lead-form-input-invalid{border-color:#dc2626}.lead-form input.lead-form-input-invalid:focus,.lead-form textarea.lead-form-input-invalid:focus{border-color:#dc2626;box-shadow:0 0 0 3px #dc262626}.lead-form-page .form-actions{border-top:1px solid #e2e8f0;margin-top:4px;padding-top:18px}.lead-form-page .form-actions .btn{min-width:160px}.form-actions{justify-content:flex-start;gap:10px;display:flex}.workspace{background:#f8fafc;min-width:0;height:100vh;padding:28px;overflow-y:auto}.topbar{justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:22px;display:flex}.topbar h1{color:#0f172a;letter-spacing:-1.5px;max-width:760px;margin:6px 0 0;font-size:clamp(28px,4vw,46px);line-height:1.05}.eyebrow{color:#f97316;letter-spacing:.12em;text-transform:uppercase;margin:0;font-size:12px;font-weight:800}.topbar-actions{flex-direction:column;align-items:flex-end;gap:10px;display:flex}.topbar-action-row{flex-wrap:wrap;justify-content:flex-end;gap:10px;display:flex}.notice{color:#0e7490;background:#ecfeff;border:1px solid #a5f3fc;border-radius:999px;padding:8px 12px;font-size:13px}.modal-overlay{z-index:1000;background:#0f172a8c;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0}.modal-dialog{background:#fff;border:1px solid #e2e8f0;border-radius:24px;width:100%;max-width:520px;max-height:min(92vh,860px);padding:24px;overflow:auto;box-shadow:0 24px 60px #0f172a33}.modal-header{justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:18px;display:flex}.modal-header h2{color:#0f172a;margin:6px 0 0}.modal-form label{color:#334155;gap:8px;font-size:13px;font-weight:800;display:grid}.modal-actions{justify-content:flex-end;gap:10px;margin-top:4px;display:flex}.hero-actions{flex-wrap:wrap;gap:10px;margin-top:18px;display:flex}.empty-state .btn{margin-top:12px}.metrics-grid{grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:14px;margin-bottom:22px;display:grid}.metric-card,.panel,.kanban-column,.lead-card,button.lead-card,.btn.lead-card,.task-card{background:#fff;border:1px solid #e2e8f0;box-shadow:0 12px 30px #0f172a0f}.metric-card{text-align:left;border-radius:18px;width:100%;padding:18px}.empty-inline{color:#64748b;grid-column:1/-1;margin:0}.metric-card span{color:#64748b;font-size:13px;display:block}.metric-card strong{color:#0f172a;margin-top:8px;font-size:30px;display:block}.metric-card.hot strong,.metric-card.danger strong{color:#dc2626}.metric-card.success strong{color:#16a34a}.kanban{grid-auto-columns:310px;grid-auto-flow:column;gap:16px;padding-bottom:12px;display:grid;overflow-x:auto}.dashboard-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;display:grid}.hero-panel{color:#e5e7eb;background:linear-gradient(135deg,#111827,#334155);grid-column:1/-1}.hero-panel h2{color:#fff;letter-spacing:-1px;max-width:800px;margin:10px 0 12px;font-size:clamp(26px,4vw,42px);line-height:1.1}.hero-panel p:not(.eyebrow){color:#cbd5e1;max-width:760px;line-height:1.7}.mini-list{gap:12px;display:grid}.mini-list div{background:#f8fafc;border-radius:14px;gap:4px;padding:12px;display:grid}.mini-list strong{color:#0f172a}.mini-list span{color:#64748b;font-size:13px}.kanban-column{background:var(--stage-background,#fff);border:1px solid var(--stage-border,#e2e8f0);border-radius:22px;min-width:0;min-height:440px;padding:16px;overflow:hidden;box-shadow:inset 0 1px #ffffff59}.kanban-column header,.section-title,.lead-card-header,.lead-meta,.table-row,.report-line{justify-content:space-between;align-items:center;display:flex}.kanban-column h2,.section-title h2,.task-card h3{color:var(--stage-text,#0f172a);margin:0}.kanban-column header span{background:var(--stage-pill-background,#f1f5f9);color:var(--stage-text,#475569);border-radius:999px;padding:4px 10px;font-size:13px}.pipeline-panel .section-title select{min-width:110px}.kanban-column-loading{color:#64748b;text-align:center;margin:8px 0 0;font-size:13px}.lead-card-list{gap:12px;min-width:0;margin-top:14px;display:grid}.lead-card,button.lead-card,.btn.lead-card{background:var(--lead-card-background,#fff);border:1px solid var(--lead-card-border,#e2e8f0);box-sizing:border-box;color:inherit;overflow-wrap:break-word;text-align:left;white-space:normal;border-radius:18px;width:100%;min-width:0;max-width:100%;padding:14px}.lead-card:hover,button.lead-card:hover:not(:disabled),.btn.lead-card:hover:not(:disabled){border-color:var(--lead-card-hover-border,#fb923c);box-shadow:0 10px 24px color-mix(in srgb, var(--lead-card-shadow,#fb923c1f) 100%, white 0%);transform:translateY(-1px)}.lead-card p{color:#64748b;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:10px 0 14px;font-size:13px;line-height:1.45;display:-webkit-box;overflow:hidden}.priority{text-transform:uppercase;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:800}.priority.high{color:#991b1b;background:#fee2e2}.priority.medium{color:#92400e;background:#fef3c7}.priority.low{color:#166534;background:#dcfce7}.hot-badge{color:#991b1b;text-transform:uppercase;background:#fee2e2;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:800}.stage-flow-header-actions{flex-direction:column;justify-content:flex-end;align-items:flex-start;gap:10px;display:flex}.stage-workflow-toolbar,.stage-admin-toolbar{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}.stage-flow-header-actions>.hot-lead-toggle,.stage-flow-header-actions>.stage-current-badge{align-self:flex-end}.stage-flow-header-actions-row{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:10px;width:100%;display:flex}.workflow-modal{width:min(96vw,760px);max-width:760px;max-height:min(90vh,920px);overflow:hidden}.workflow-modal-subtitle{color:#64748b;margin:4px 0 0;font-size:14px}.workflow-modal-actions{border-bottom:1px solid #e2e8f0;flex-wrap:wrap;gap:8px;margin:0 -22px 18px;padding:0 22px 16px;display:flex}.workflow-modal-body{gap:20px;max-height:min(62vh,640px);padding-right:4px;display:grid;overflow-y:auto}.workflow-section h3{color:#0f172a;margin:0 0 10px;font-size:15px}.workflow-dl{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0;display:grid}.workflow-dl div{gap:2px;display:grid}.workflow-dl dt{color:#64748b;letter-spacing:.06em;text-transform:uppercase;font-size:11px;font-weight:800}.workflow-dl dd{color:#0f172a;margin:0}.workflow-requirement{color:#475569;background:#f8fafc;border-radius:12px;margin:12px 0 0;padding:12px;line-height:1.55}.workflow-pipeline{gap:8px;margin:0;padding:0;list-style:none;display:grid}.workflow-pipeline-item{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;align-items:center;gap:10px;padding:10px 12px;display:flex}.workflow-pipeline-item.state-completed{background:#ecfdf5;border-color:#86efac}.workflow-pipeline-item.state-current{background:#fff7ed;border-color:#fdba74}.workflow-pipeline-dot{opacity:.5;background:currentColor;border-radius:50%;width:8px;height:8px}.workflow-pipeline-item.state-current .workflow-pipeline-dot{opacity:1}.workflow-pipeline-item em{color:#64748b;text-transform:uppercase;margin-left:auto;font-size:11px;font-style:normal;font-weight:700}.workflow-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;display:grid}.workflow-record{background:#f8fafc;border-radius:12px;gap:4px;margin-top:8px;padding:10px 12px;display:grid}.workflow-record strong{color:#0f172a}.workflow-record span{color:#64748b;font-size:12px}.workflow-record p{color:#475569;margin:0;font-size:13px}.workflow-timeline{max-height:280px;overflow-y:auto}.lead-edit-modal{flex-direction:column;width:min(96vw,680px);max-width:680px;max-height:min(92vh,760px);padding:0;display:flex;overflow:hidden}.lead-edit-modal .modal-header{flex-shrink:0;margin-bottom:0;padding:24px 24px 0}.lead-edit-modal-subtitle{color:#64748b;margin:4px 0 0;font-size:14px}.lead-edit-form{flex-direction:column;flex:1;min-height:0;display:flex}.lead-edit-modal-body{flex:1;gap:20px;min-height:0;padding:20px 24px;display:grid;overflow-y:auto}.lead-edit-form label{color:#334155;gap:8px;min-width:0;font-size:13px;font-weight:700;display:grid}.lead-edit-form input,.lead-edit-form select,.lead-edit-form textarea{color:#0f172a;font:inherit;background:#f8fafc;border:1px solid #cbd5e1;border-radius:12px;width:100%;padding:11px 12px;font-weight:400;transition:border-color .15s,box-shadow .15s,background-color .15s}.lead-edit-form select{appearance:none;cursor:pointer;background-color:#f8fafc;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-position:right 12px center;background-repeat:no-repeat;background-size:16px;padding-right:40px}.lead-edit-form input:focus,.lead-edit-form select:focus,.lead-edit-form textarea:focus{background:#fff;border-color:#94a3b8;outline:none;box-shadow:0 0 0 3px #94a3b82e}.lead-edit-form textarea{resize:vertical;min-height:112px;line-height:1.5}.lead-edit-hot-card{cursor:pointer;background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;align-items:flex-start;gap:12px;margin:0;padding:14px 16px;font-weight:400;transition:border-color .15s,background-color .15s,box-shadow .15s;display:flex}.lead-edit-hot-card:hover{border-color:#fdba74}.lead-edit-hot-card.active{background:#fff7ed;border-color:#fdba74;box-shadow:0 8px 24px #f973161a}.lead-edit-hot-card input{accent-color:#ea580c;cursor:pointer;flex-shrink:0;width:18px;height:18px;margin-top:2px}.lead-edit-hot-copy{gap:4px;display:grid}.lead-edit-hot-copy strong{color:#0f172a;font-size:14px}.lead-edit-hot-copy span:last-child{color:#64748b;font-size:13px;line-height:1.45}.lead-edit-modal-footer{background:#fafbfc;border-top:1px solid #e2e8f0;flex-shrink:0;justify-content:flex-end;align-items:center;gap:10px;padding:16px 24px 24px;display:flex}.hot-lead-toggle{color:#334155;cursor:pointer;align-items:center;gap:8px;font-size:13px;font-weight:600;display:inline-flex}.hot-lead-toggle input{accent-color:#dc2626;cursor:pointer;width:16px;height:16px}.lead-meta{color:#64748b;gap:8px;min-width:0;font-size:12px}.lead-meta span{overflow-wrap:break-word;min-width:0}.lead-card-header strong{color:var(--lead-card-accent,#0f172a);overflow-wrap:break-word;min-width:0}.lead-meta span:first-child{border-left:4px solid var(--source-color);padding-left:8px}.detail-grid,.reports-grid{grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr);gap:18px;display:grid}.panel{border-radius:24px;padding:22px}.timeline-panel,.insight-card{grid-column:1/-1}.section-title{gap:16px;margin-bottom:18px}.section-title select,.lead-form input,.lead-form select,.lead-form textarea,.stage-field select,.modal-form select{color:#0f172a;background:#fff;border:1px solid #cbd5e1;border-radius:12px;padding:11px 12px}.section-title select,.lead-form select,.stage-field select,.modal-form select{appearance:none;cursor:pointer;background-color:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-position:right 12px center;background-repeat:no-repeat;background-size:16px;padding-right:40px;transition:border-color .15s,box-shadow .15s}.section-title select:hover:not(:disabled),.lead-form select:hover:not(:disabled),.stage-field select:hover:not(:disabled),.modal-form select:hover:not(:disabled){border-color:#94a3b8}.lead-form input,.lead-form textarea,.stage-field input,.stage-field textarea,.modal-form input,.modal-form textarea{background:#f8fafc}.profile-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0;display:grid}.profile-list div{background:#f8fafc;border-radius:14px;padding:12px}.profile-list dt{color:#64748b;text-transform:uppercase;font-size:12px;font-weight:800}.profile-list dd{color:#0f172a;margin:5px 0 0}.requirement{color:#9a3412;background:#fff7ed;border-radius:16px;margin:18px 0 0;padding:16px;line-height:1.6}.lead-form{gap:12px;display:grid}.lead-form textarea{resize:vertical;min-height:104px}.timeline{gap:12px;display:grid}.timeline-item{border-left:3px solid #fb923c;padding-left:14px}.timeline-item span{color:#f97316;text-transform:uppercase;font-size:12px;font-weight:800}.timeline-item p{color:#0f172a;margin:4px 0}.timeline-item small,.task-card small{color:#64748b}.table-list,.task-grid{gap:12px;display:grid}.table-row{color:#475569;background:#f8fafc;border-radius:16px;gap:12px;padding:14px}.table-row strong{color:#0f172a}.table-row em{border-radius:999px;padding:4px 10px;font-style:normal;font-weight:800}.table-row.missed em{color:#991b1b;background:#fee2e2}.table-row.pending em{color:#1e40af;background:#dbeafe}.task-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}.task-card{border-radius:20px;padding:18px}.task-card span{color:#f97316;text-transform:uppercase;font-size:12px;font-weight:800}.task-card p,.insight-card p{color:#64748b}.section-subtitle{color:#64748b;margin:6px 0 0;font-size:14px;line-height:1.5}.admin-page,.reports-page{gap:18px;display:grid}.admin-layout{grid-template-columns:minmax(0,1.5fr) minmax(300px,.9fr);gap:18px;display:grid}.admin-metrics{margin-top:4px}.admin-pipeline-value{color:#64748b;margin:14px 0 0}.admin-pipeline-value strong{color:#0f172a}.admin-detail-actions,.insight-actions{flex-wrap:wrap;gap:8px;margin-bottom:16px;display:flex}.admin-drill-item{border-bottom:1px solid #e2e8f0;gap:6px;width:100%;padding:10px 0;display:grid}.admin-drill-item-main{gap:2px;display:grid}.admin-drill-item-main strong{color:#0f172a}.mini-list h3{color:#0f172a;margin:16px 0 8px;font-size:14px}.admin-table{gap:10px;display:grid;overflow-x:auto}.admin-table-head,.admin-table-row{grid-template-columns:minmax(180px,1.5fr) repeat(5,minmax(90px,1fr));align-items:center;gap:12px;min-width:760px;padding:12px 14px;display:grid}.admin-table-wide.admin-table-head,.admin-table-wide .admin-table-row{grid-template-columns:minmax(160px,1.4fr) repeat(8,minmax(72px,1fr));min-width:980px}.admin-table-selectable{cursor:pointer;text-align:left;border:1px solid #0000;width:100%}.admin-table-selectable.selected{background:#fff7ed;border-color:#fdba74}.admin-sort{color:inherit;cursor:pointer;font:inherit;letter-spacing:.08em;text-align:left;text-transform:uppercase;background:0 0;border:none;padding:0;font-size:12px;font-weight:900}.admin-table-head{color:#64748b;letter-spacing:.08em;text-transform:uppercase;font-size:12px;font-weight:900}.admin-table-row{color:#475569;background:#f8fafc;border-radius:16px}.admin-table-row strong{color:#0f172a}.report-line{color:#475569;border-bottom:1px solid #e2e8f0;padding:12px 0}.report-line strong{color:#0f172a}.reports-grid-full{grid-template-columns:repeat(2,minmax(0,1fr))}.reports-toolbar-panel .section-title{align-items:flex-start}.reports-toolbar{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.period-tabs{flex-wrap:wrap;gap:6px;display:flex}.reports-summary{margin-top:8px}.report-kpi{color:#64748b;margin:0 0 12px}.report-kpi strong{color:#0f172a}.report-line-rich{justify-content:space-between;align-items:flex-start;display:flex}.report-line-rich small{color:#64748b;font-size:12px;display:block}.report-line-meta{text-align:right;align-items:flex-end;gap:2px;display:grid}.report-line-meta em{color:#64748b;font-size:12px;font-style:normal}.report-bar-row{gap:6px;margin-bottom:12px;display:grid}.report-bar-label{color:#475569;justify-content:space-between;display:flex}.report-bar-label strong{color:#0f172a}.report-bar-track{background:#e2e8f0;border-radius:999px;height:8px;overflow:hidden}.report-bar-fill{background:linear-gradient(90deg,#fb923c,#f97316);border-radius:999px;height:100%;display:block}.report-bar-row small{color:#64748b;font-size:11px}.report-bars-compact{border-top:1px solid #e2e8f0;margin-top:14px;padding-top:14px}.insight-list{color:#334155;gap:10px;margin:0;padding-left:18px;line-height:1.6;display:grid}.empty-state{color:#64748b}.project-lifecycle-empty{gap:24px;max-width:720px;display:grid}.project-lifecycle-empty-copy h2{color:#0f172a;margin:8px 0 10px;font-size:1.35rem}.project-lifecycle-empty-copy p:last-child{margin:0;line-height:1.6}.project-lifecycle-empty-steps ol{color:#475569;gap:10px;margin:10px 0 0;padding-left:20px;line-height:1.6;display:grid}.project-lifecycle-empty-actions{flex-wrap:wrap;gap:10px;margin-top:16px;display:flex}.project-lifecycle-lead-list{gap:10px;margin:10px 0 0;padding:0;list-style:none;display:grid}.project-lifecycle-lead-row{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;display:flex}.project-lifecycle-lead-row strong{color:#0f172a;display:block}.project-lifecycle-lead-row span{color:#64748b;font-size:.9rem}.project-lifecycle-lead-actions{flex-wrap:wrap;gap:8px;display:flex}.project-list-convertible{margin-bottom:4px}.stage-flow-panel{margin-bottom:18px}.stage-current-badge{color:#c2410c;background:#fff7ed;border-radius:999px;padding:6px 12px;font-size:12px;font-weight:800}.stage-stepper{gap:8px;margin-bottom:20px;padding-bottom:6px;display:flex;overflow-x:auto}.stage-step{color:#64748b;cursor:pointer;text-align:center;background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;flex-direction:column;flex:none;align-items:center;gap:6px;min-width:88px;padding:10px 8px;font-size:11px;font-weight:700;display:flex}.stage-step.done{color:#166534;background:#ecfdf5;border-color:#86efac}.stage-step.current{color:#c2410c;background:#fff7ed;border-color:#fdba74}.stage-step-dot{opacity:.5;background:currentColor;border-radius:50%;width:8px;height:8px}.stage-step.current .stage-step-dot{opacity:1}.stage-flow-body{grid-template-columns:minmax(0,1.4fr) minmax(240px,.6fr);gap:18px;display:grid}.stage-module h3{color:#0f172a;margin:0 0 8px}.stage-summary{color:#64748b;margin:0 0 14px;line-height:1.6}.stage-checklist{color:#334155;gap:8px;margin:0 0 18px;padding-left:18px;line-height:1.5;display:grid}.stage-form{gap:12px;display:grid}.stage-field{color:#334155;gap:8px;font-size:13px;font-weight:800;display:grid}.stage-field textarea,.stage-field input{color:#0f172a;background:#f8fafc;border:1px solid #cbd5e1;border-radius:12px;padding:11px 12px;font-weight:500}.stage-field select{font-weight:500}.stage-field textarea{resize:vertical;min-height:88px}.stage-actions{flex-wrap:wrap;gap:10px;margin-top:6px;display:flex}.stage-hint{color:#9a3412;background:#fff7ed;border:1px solid #fed7aa;border-radius:12px;margin:0;padding:10px 12px;font-size:13px;line-height:1.5}.stage-side{gap:14px;display:grid}.stage-side-block{background:#f8fafc;border-radius:16px;padding:14px}.stage-record-line{color:#475569;gap:2px;margin-top:8px;font-size:13px;display:grid}.stage-record-line span{color:#0f172a;font-weight:700}.stage-record-line em,.stage-record-line small{color:#64748b;font-style:normal}.stage-record-button{cursor:pointer;text-align:left;background:0 0;border:none;width:100%;padding:0}.stage-record-button:hover span,.stage-record-button:hover small{color:#2563eb}.stage-record-button.active span{color:#1d4ed8}.job-post-details{background:#f8fafc;border:1px solid #cbd5e1;border-radius:16px;gap:14px;margin-bottom:14px;padding:16px;display:grid}.job-post-details-header h4{color:#0f172a;margin:4px 0 0;font-size:1.1rem}.job-post-details-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0;display:grid}.job-post-details-grid div{gap:4px;display:grid}.job-post-details-grid dt{color:#64748b;text-transform:uppercase;font-size:12px;font-weight:700}.job-post-details-grid dd{color:#0f172a;margin:0;font-size:14px;font-weight:600}.job-post-details-description{gap:8px;display:grid}.job-post-details-html{color:#334155;background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:12px;font-size:14px;line-height:1.55}.job-post-details-html ul,.job-post-details-html ol{margin:.35rem 0;padding-left:1.25rem}.job-post-photo-grid{grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px;display:grid}.job-post-photo-card{color:inherit;background:#fff;border:1px solid #e2e8f0;border-radius:12px;gap:6px;text-decoration:none;display:grid;overflow:hidden}.job-post-photo-card img{aspect-ratio:4/3;object-fit:cover;width:100%;display:block}.job-post-photo-card span{color:#475569;text-overflow:ellipsis;white-space:nowrap;padding:0 8px 8px;font-size:12px;overflow:hidden}.stage-muted{color:#94a3b8;margin:6px 0 0;font-size:13px}.stage-records{background:#f8fafc;border-radius:12px;padding:12px}.calendar-panel{gap:18px;display:grid}.calendar-subtitle{color:#64748b;margin:6px 0 0;font-size:14px}.calendar-header{align-items:flex-start;gap:16px}.calendar-toolbar{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.calendar-month-label{color:#0f172a;text-align:center;min-width:160px}.calendar-filters{flex-wrap:wrap;gap:8px;display:flex}.calendar-filter{color:#475569;background:#fff;border:1px solid #e2e8f0;border-radius:999px;align-items:center;gap:8px;padding:6px 12px;font-size:12px;font-weight:700;display:inline-flex}.calendar-filter.active{background:color-mix(in srgb, var(--event-color) 12%, white);border-color:color-mix(in srgb, var(--event-color) 40%, white);color:#0f172a}.calendar-filter-dot{background:var(--event-color);border-radius:50%;width:8px;height:8px}.calendar-layout{grid-template-columns:minmax(0,1.35fr) minmax(320px,.9fr);gap:18px;display:grid}.calendar-weekdays,.calendar-grid{grid-template-columns:repeat(7,minmax(0,1fr));display:grid}.calendar-weekdays span{color:#64748b;text-align:center;padding:8px;font-size:12px;font-weight:800}.calendar-grid-wrap{background:#f8fafc;border:1px solid #e2e8f0;border-radius:18px;padding:10px;overflow:hidden}.calendar-day{text-align:left;background:#fff;border:1px solid #e2e8f0;border-radius:12px;gap:6px;min-height:88px;padding:8px;display:grid}.calendar-day.outside{opacity:.45}.calendar-day.today{border-color:#f97316;box-shadow:inset 0 0 0 1px #f97316}.calendar-day.selected{background:#fff7ed}.calendar-day-number{color:#0f172a;font-size:13px;font-weight:800}.calendar-day-dots{flex-wrap:wrap;align-items:center;gap:4px;min-height:14px;display:flex}.calendar-dot{border-radius:50%;width:8px;height:8px}.calendar-more{color:#64748b;font-size:10px;font-weight:800}.calendar-sidebar{background:#f8fafc;border:1px solid #e2e8f0;border-radius:18px;flex-direction:column;gap:12px;min-width:0;max-height:640px;padding:16px;display:flex;overflow:hidden}.calendar-sidebar-head{flex-shrink:0;justify-content:space-between;align-items:baseline;gap:12px;display:flex}.calendar-sidebar-head h3{color:#0f172a;margin:0}.calendar-sidebar-head span{color:#64748b;white-space:nowrap;flex-shrink:0;font-size:12px;font-weight:700}.calendar-event-list{scrollbar-gutter:stable;flex:1;gap:10px;min-height:0;padding-right:6px;display:grid;overflow:hidden auto}.calendar-event-card{border:1px solid #e2e8f0;border-left:4px solid var(--event-color);box-sizing:border-box;text-align:left;background:#fff;border-radius:14px;justify-items:start;gap:4px;width:100%;min-width:0;padding:12px;display:grid}.calendar-event-card strong,.calendar-event-card small,.calendar-event-card em,.calendar-event-type{max-width:100%;display:block}.calendar-event-card strong{color:#0f172a;overflow-wrap:anywhere}.calendar-event-card small,.calendar-event-card em{color:#64748b;overflow-wrap:anywhere;font-size:12px;font-style:normal}.calendar-event-type{color:var(--event-color);letter-spacing:.04em;text-transform:uppercase;font-size:11px;font-weight:800}.calendar-event-status{color:#475569;background:#f1f5f9;border-radius:999px;justify-self:start;padding:2px 8px;font-size:11px;font-weight:700}.calendar-quick-links{flex-wrap:wrap;flex-shrink:0;gap:8px;display:flex}@media (width<=1100px){.login-shell{grid-template-columns:1fr}.app-shell{grid-template-columns:1fr;height:auto;overflow:visible}.sidebar{height:auto;position:static;overflow-y:visible}.workspace{height:auto;overflow-y:visible}.sidebar nav{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}.metrics-grid{grid-template-columns:repeat(3,1fr)}.dashboard-grid{grid-template-columns:1fr 1fr}.calendar-layout,.admin-layout,.reports-grid-full{grid-template-columns:1fr}}.project-list-panel,.project-detail-panel,.project-payments-page{gap:20px;display:grid}.project-status,.payment-status{text-transform:capitalize;border-radius:999px;padding:4px 10px;font-size:12px;font-weight:700}.project-status.active,.payment-status.paid{color:#15803d;background:#16a34a1f}.project-status.on_hold,.payment-status.due,.payment-status.overdue{color:#c2410c;background:#f9731624}.payment-status.planned{color:#c2410c;background:#f973161f}.project-stats-row{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;display:grid}.project-stat{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;gap:4px;padding:14px 16px;display:grid}.project-stat span{color:#64748b;text-transform:uppercase;font-size:12px;font-weight:700}.project-stat strong{color:#0f172a;font-size:18px}.project-client-link{color:#64748b;margin-top:4px;display:block}.project-tabs{flex-wrap:wrap;gap:8px;display:flex}.project-form,.project-tab-body,.project-inline-form{gap:16px;display:grid}.project-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.project-phase-suggestions{background:#f8fafc;border:1px dashed #cbd5e1;border-radius:16px;gap:14px;margin-bottom:16px;padding:18px;display:grid}.project-phase-suggestions h3{margin:4px 0 0}.project-phase-suggestion-list{gap:10px;margin:0;padding:0;list-style:none;display:grid}.project-phase-suggestion-list li{background:#fff;border:1px solid #e2e8f0;border-radius:12px;grid-template-columns:auto 1fr;align-items:center;gap:12px;padding:12px 14px;display:grid}.project-phase-suggestion-list p{color:#64748b;margin:4px 0 0;font-size:13px}.project-phase-track{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px;display:grid}.project-phase-card{background:#fff;border:1px solid #e2e8f0;border-left:4px solid #94a3b8;border-radius:16px;gap:8px;padding:14px;display:grid}.project-phase-card-head{justify-content:space-between;align-items:center;display:flex}.project-phase-card.status-in_progress{border-left-color:#f97316}.project-phase-card.status-completed{border-left-color:#16a34a}.project-phase-index{color:#94a3b8;font-size:12px;font-weight:800}.project-phase-card h3{margin:0;font-size:15px}.project-phase-card p{color:#64748b;margin:0;font-size:13px}.project-payment-summary{flex-wrap:wrap;gap:16px;display:flex}.project-payment-summary strong{color:#0f172a}.project-files-grid{gap:24px}.project-image-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:14px;display:grid}.project-image-card{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;margin:0;overflow:hidden}.project-image-card img{aspect-ratio:4/3;object-fit:cover;width:100%}.project-image-card figcaption{flex-direction:column;gap:6px;padding:10px 12px;display:flex}.project-doc-list{gap:10px;margin:0;padding:0;list-style:none;display:grid}.project-doc-list li{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;justify-content:space-between;align-items:center;padding:12px 14px;display:flex}.project-timeline .timeline-item span{text-transform:capitalize}@media (width<=760px){.login-shell,.workspace,.sidebar{padding:18px}.topbar,.detail-grid,.reports-grid,.add-lead-layout,.table-row,.stage-flow-body,.project-stats-row,.project-form-grid,.project-phase-track{grid-template-columns:1fr;display:grid}.add-lead-sidebar{min-height:0;max-height:none;position:static}.lead-form-grid{grid-template-columns:1fr}.lead-edit-modal .modal-header,.lead-edit-modal-body,.lead-edit-modal-footer{padding-left:18px;padding-right:18px}.lead-edit-modal-footer{padding-bottom:18px}.metrics-grid,.profile-list,.sidebar nav,.dashboard-grid{grid-template-columns:1fr 1fr}}@media (width<=560px){.metrics-grid,.profile-list,.sidebar nav,.dashboard-grid{grid-template-columns:1fr}}.role-management-page .page-header{justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:24px;display:flex}.role-management-page .page-header h2{margin:6px 0 8px}.role-management-page .page-header p:last-child{color:#64748b;max-width:520px;margin:0}.admin-tabs{background:#f1f5f9;border:1px solid #e2e8f0;border-radius:14px;gap:4px;padding:4px;display:inline-flex}.admin-tab{color:#64748b;cursor:pointer;font:inherit;background:0 0;border:0;border-radius:10px;padding:10px 18px;font-size:14px;font-weight:700;transition:background .15s,color .15s,box-shadow .15s}.admin-tab:hover{color:#0f172a}.admin-tab.active{color:#0f172a;background:#fff;box-shadow:0 4px 12px #0f172a14}.role-management-grid{grid-template-columns:300px minmax(0,1fr);align-items:start;gap:20px;display:grid}.role-list-panel{padding:18px;position:sticky;top:20px}.role-list-panel h3{margin:0;font-size:16px}.role-list{flex-direction:column;gap:10px;display:flex}.role-list-item{color:inherit;cursor:pointer;text-align:left;background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;gap:6px;width:100%;padding:14px 16px;transition:border-color .15s,background .15s,transform .15s;display:grid}.role-list-item:hover{background:#fff;border-color:#cbd5e1;transform:translateY(-1px)}.role-list-item.active{background:#fff7ed;border-color:#fdba74;box-shadow:inset 3px 0 #f97316}.role-list-item-top{justify-content:space-between;align-items:center;gap:8px;display:flex}.role-list-item strong{color:#0f172a;font-size:15px}.role-list-item small{color:#64748b;font-size:12px}.role-badge{color:#475569;letter-spacing:.02em;text-transform:uppercase;white-space:nowrap;background:#e2e8f0;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:800}.role-badge.system{color:#1d4ed8;background:#dbeafe}.role-badge.super{color:#c2410c;background:#ffedd5}.admin-form{gap:24px;display:grid}.admin-form-section{gap:16px;display:grid}.admin-form-section+.admin-form-section{border-top:1px solid #eef2f7;padding-top:24px}.admin-form-section-head h3,.user-form .admin-form-section-head h3,.admin-users-table-panel .admin-form-section-head h3{margin:0 0 6px;font-size:18px}.admin-form-section-head p{color:#64748b;margin:0;font-size:14px;line-height:1.5}.admin-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;display:grid}.admin-form-grid-role{grid-template-columns:minmax(0,1.2fr) minmax(220px,.8fr)}.admin-field{gap:8px;min-width:0;display:grid}.admin-field-full{grid-column:1/-1}.admin-field-label{color:#475569;letter-spacing:.01em;font-size:13px;font-weight:700}.admin-input,.admin-select{color:#0f172a;font:inherit;background:#f8fafc;border:1px solid #cbd5e1;border-radius:12px;width:100%;min-height:44px;padding:11px 14px;font-size:14px;transition:border-color .15s,box-shadow .15s,background .15s}.admin-input:hover:not(:disabled),.admin-select:hover:not(:disabled){background:#fff;border-color:#94a3b8}.admin-input:focus,.admin-select:focus{background:#fff;border-color:#f97316;outline:none;box-shadow:0 0 0 3px #f9731624}.admin-input:disabled{color:#64748b;cursor:not-allowed;background:#f1f5f9}.admin-select-wrap{width:100%;display:block}.admin-select-wrap select{appearance:none;cursor:pointer;background-color:#f8fafc;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-position:right 12px center;background-repeat:no-repeat;background-size:16px;padding-right:40px}.admin-form-actions{border-top:1px solid #eef2f7;flex-wrap:wrap;gap:12px;padding-top:8px;display:flex}.role-editor-panel{padding:24px}.permission-matrix{gap:14px;display:grid}.permission-matrix-head{color:#94a3b8;letter-spacing:.04em;text-transform:uppercase;grid-template-columns:minmax(180px,.9fr) minmax(0,1.1fr);gap:16px;padding:0 4px;font-size:12px;font-weight:800;display:grid}.permission-module{background:#fff;border:1px solid #e2e8f0;border-radius:16px;overflow:hidden}.permission-module-header{background:linear-gradient(#f8fafc,#f1f5f9);border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:center;gap:10px;padding:14px 18px;display:flex}.permission-module-header strong{color:#0f172a;font-size:15px}.permission-module-key{color:#475569;background:#e2e8f0;border-radius:999px;padding:4px 10px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11px}.permission-row{grid-template-columns:minmax(180px,.9fr) minmax(0,1.1fr);align-items:center;gap:16px;padding:14px 18px;display:grid}.permission-row+.permission-row{border-top:1px solid #f1f5f9}.permission-submodule-label{color:#334155;font-size:14px;font-weight:600}.permission-actions{flex-wrap:wrap;gap:8px;display:flex}.permission-toggle{color:#64748b;cursor:pointer;-webkit-user-select:none;user-select:none;background:#f8fafc;border:1px solid #e2e8f0;border-radius:999px;align-items:center;padding:8px 14px;font-size:13px;font-weight:700;transition:background .15s,border-color .15s,color .15s,box-shadow .15s;display:inline-flex}.permission-toggle input{opacity:0;pointer-events:none;width:0;position:absolute}.permission-toggle.checked{color:#c2410c;background:#fff7ed;border-color:#fdba74;box-shadow:inset 0 0 0 1px #f9731614}.permission-toggle:hover:not(:has(input:disabled)){border-color:#cbd5e1}.user-assignment-panel{gap:20px;display:grid}.user-form{padding:24px}.user-form-editing{border-color:#fdba74;box-shadow:0 12px 30px #0f172a0f,inset 0 0 0 1px #f973161f}.users-directory-row.editing{background:#fff7ed;box-shadow:inset 3px 0 #f97316}.admin-users-table-panel,.users-directory-panel{padding:24px}.users-directory-header{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:18px;display:flex}.users-directory-stats{flex-wrap:wrap;gap:8px;display:flex}.users-stat-chip{white-space:nowrap;border-radius:999px;padding:8px 12px;font-size:12px;font-weight:700}.users-stat-chip.super{color:#c2410c;background:#fff7ed}.users-stat-chip.manager{color:#4338ca;background:#eef2ff}.users-stat-chip.employee{color:#475569;background:#f8fafc}.users-directory-search{gap:8px;max-width:420px;margin-bottom:18px;display:grid}.users-directory{border:1px solid #e2e8f0;border-radius:18px;width:100%;overflow:auto}.users-directory-head,.users-directory-row{grid-template-columns:minmax(220px,1.5fr) minmax(220px,1.8fr) minmax(110px,.8fr) minmax(130px,.9fr) minmax(170px,auto);align-items:center;gap:16px;min-width:920px;padding:14px 18px;display:grid}.users-directory-head{color:#64748b;letter-spacing:.06em;text-transform:uppercase;background:linear-gradient(#f8fafc,#f1f5f9);border-bottom:1px solid #e2e8f0;font-size:11px;font-weight:800}.users-directory-row{background:#fff;border-bottom:1px solid #f1f5f9;transition:background .15s}.users-directory-row:last-child{border-bottom:0}.users-directory-row:hover{background:#fcfdff}.users-directory-user{align-items:center;gap:12px;min-width:0;display:flex}.users-avatar{color:#c2410c;background:linear-gradient(135deg,#fff7ed,#ffedd5);border:1px solid #fdba74;border-radius:14px;flex-shrink:0;justify-content:center;align-items:center;width:42px;height:42px;font-size:12px;font-weight:800;display:inline-flex}.users-directory-user-copy{gap:6px;min-width:0;display:grid}.users-directory-user-copy strong{color:#0f172a;font-size:15px}.users-directory-email{color:#475569;text-overflow:ellipsis;white-space:nowrap;font-size:14px;overflow:hidden}.users-directory-actions,.users-directory-actions-label{justify-self:end}.users-directory-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}.role-pill{white-space:nowrap;border-radius:999px;justify-self:start;padding:6px 10px;font-size:12px;font-weight:700;display:inline-flex}.role-pill.manager{color:#4338ca;background:#eef2ff}.role-pill.employee{color:#475569;background:#f8fafc}.users-directory-empty{color:#64748b;text-align:center;margin:0;padding:28px 18px}.admin-table-wrap{border:1px solid #e2e8f0;border-radius:16px;overflow:auto}.admin-user-cell{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.access-pill{color:#047857;white-space:nowrap;background:#ecfdf5;border-radius:999px;justify-self:start;padding:6px 10px;font-size:12px;font-weight:700;display:inline-flex}.access-pill.own{color:#1d4ed8;background:#eff6ff}.access-pill.super{color:#c2410c;background:#fff7ed}.access-pill.company{color:#047857;background:#ecfdf5}.panel-heading{justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;display:flex}.table-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}@media (width<=1100px){.role-management-grid{grid-template-columns:1fr}.role-list-panel{position:static}.role-list{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));display:grid}}@media (width<=900px){.role-management-page .page-header{flex-direction:column}.admin-form-grid,.admin-form-grid-role,.permission-row,.permission-matrix-head,.users-directory-head,.users-directory-row{grid-template-columns:1fr}.permission-matrix-head{display:none}.permission-row{align-items:start}.permission-actions{width:100%}.users-directory-actions,.users-directory-actions-label{justify-self:start}.users-directory-header{flex-direction:column}}.lead-summary-card{background:linear-gradient(#fff 0%,#f8fafc 100%);margin-bottom:1rem}.lead-summary-top{border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:1.25rem;padding-bottom:1.25rem;display:flex}.lead-summary-identity h2{color:#0f172a;letter-spacing:-.02em;margin:.35rem 0 .25rem;font-size:clamp(1.35rem,2.5vw,1.75rem)}.lead-summary-subtitle{color:#64748b;margin:0;font-size:.95rem}.lead-summary-badges{flex-wrap:wrap;justify-content:flex-end;gap:.5rem;display:flex}.lead-summary-grid{grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:.75rem;margin:0;display:grid}.lead-summary-stat{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:.75rem .9rem}.lead-summary-grid dt{text-transform:uppercase;letter-spacing:.05em;color:#64748b;font-size:.68rem;font-weight:700}.lead-summary-grid dd{color:#0f172a;margin:.2rem 0 0;font-size:.95rem;font-weight:700}.lead-detail-shell{padding-top:.5rem}.lead-detail-toolbar{border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:flex-end;gap:1rem;margin-bottom:1.25rem;padding-bottom:1rem;display:flex}.lead-detail-tabs{flex-wrap:wrap;gap:.45rem;display:flex}.lead-detail-tabs .btn-pill{align-items:center;gap:.4rem;display:inline-flex}.lead-detail-tabs .btn-pill.active{color:#fff;background:#0f172a;border-color:#0f172a}.lead-tab-count{background:#fff3;border-radius:999px;justify-content:center;align-items:center;min-width:1.25rem;height:1.25rem;padding:0 .35rem;font-size:.68rem;font-weight:800;line-height:1;display:inline-flex}.lead-detail-tabs .btn-pill:not(.active) .lead-tab-count{color:#475569;background:#e2e8f0}.tab-bar{flex-wrap:wrap;gap:.35rem;display:flex}.tab-bar .tab{color:#0f172a;cursor:pointer;background:0 0;border:1px solid #e2e8f0;border-radius:999px;padding:.35rem .8rem;font-size:.85rem}.tab-bar .tab.active{color:#fff;background:#f97316;border-color:#f97316}.lead-switcher{gap:.35rem;min-width:180px;display:grid}.lead-switcher span{text-transform:uppercase;letter-spacing:.04em;color:#64748b;font-size:.72rem;font-weight:700}.lead-switcher select{color:#0f172a;appearance:none;cursor:pointer;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 10px center/16px no-repeat;border:1px solid #cbd5e1;border-radius:12px;width:100%;padding:.55rem 2.25rem .55rem .75rem}.lead-detail-panel{gap:1.25rem;display:grid}.lead-detail-section{gap:.85rem;display:grid}.lead-detail-section-head h3{color:#0f172a;margin:.2rem 0 0;font-size:1.05rem}.lead-detail-section-subtitle{color:#64748b;margin:.25rem 0 0;font-size:.88rem;line-height:1.5}.lead-detail-card{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:1rem}.lead-detail-empty{color:#64748b;text-align:center;background:#f8fafc;border:1px dashed #cbd5e1;border-radius:14px;padding:1.25rem}.lead-detail-empty p{margin:0}.lead-quick-stats{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:.75rem;display:grid}.lead-quick-stat{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;gap:.25rem;padding:.85rem 1rem;display:grid}.lead-quick-stat span{color:#64748b;letter-spacing:.04em;text-transform:uppercase;font-size:.72rem;font-weight:700}.lead-quick-stat strong{color:#0f172a;word-break:break-word;font-size:.95rem;font-weight:700}.lead-quick-stat-hot{background:#fff7ed;border-color:#fdba74}.lead-quick-stat-hot strong{color:#c2410c}.lead-requirement-card{background:linear-gradient(135deg,#fff7ed,#ffedd5);border:1px solid #fdba74;border-radius:16px;padding:1rem 1.1rem}.lead-requirement-card p:last-child{color:#9a3412;margin:.35rem 0 0;line-height:1.6}.lead-profile-grid{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:.75rem;margin:0;display:grid}.lead-profile-item{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:.9rem 1rem}.lead-profile-item dt{color:#64748b;letter-spacing:.04em;text-transform:uppercase;font-size:.72rem;font-weight:700}.lead-profile-item dd{color:#0f172a;margin:.3rem 0 0;font-weight:600}.lead-task-grid,.lead-quote-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:.75rem;display:grid}.lead-task-card,.lead-quote-card{background:#fff;border:1px solid #e2e8f0;border-left:4px solid #94a3b8;border-radius:16px;gap:.35rem;padding:1rem;display:grid;box-shadow:0 8px 20px #0f172a0a}.lead-task-card.status-completed,.lead-quote-card.status-accepted{border-left-color:#16a34a}.lead-task-card.status-in_progress,.lead-quote-card.status-sent{border-left-color:#f97316}.lead-task-card.status-pending,.lead-quote-card.status-draft{border-left-color:#3b82f6}.lead-task-card.status-overdue{border-left-color:#dc2626}.lead-task-status,.lead-quote-status{color:#64748b;letter-spacing:.04em;text-transform:uppercase;font-size:.72rem;font-weight:800}.lead-task-card h3{color:#0f172a;margin:0;font-size:1rem}.lead-task-card small{color:#64748b}.lead-quote-top{justify-content:space-between;align-items:center;gap:.75rem;display:flex}.lead-quote-top strong{color:#0f172a;font-size:1.15rem}.lead-quote-id{color:#64748b;letter-spacing:.03em;text-transform:uppercase;margin-bottom:.15rem;font-size:.78rem;font-weight:700;display:block}.lead-quote-contractor,.lead-quote-notes{color:#475569;margin:0;font-size:.85rem}.lead-quote-file{color:#64748b;word-break:break-all;margin:0;font-size:.85rem}a.lead-quote-file{color:#2563eb;text-decoration:none}a.lead-quote-file:hover{text-decoration:underline}.stage-field-group{border-top:1px solid #e2e8f0;gap:.75rem;padding:.85rem 0 .25rem;display:grid}.stage-quote-upload{cursor:pointer;text-align:center;gap:.35rem;margin-top:.35rem;padding:1rem;display:grid}.stage-quote-upload-clear{margin-top:.5rem}.stage-photo-list{gap:.35rem;margin:.65rem 0 0;padding:0;list-style:none;display:grid}.stage-photo-list li{justify-content:space-between;align-items:center;gap:.5rem;display:flex}.stage-photo-list span{color:var(--text-secondary,#475569);text-overflow:ellipsis;white-space:nowrap;font-size:.875rem;overflow:hidden}.unified-timeline{gap:0;display:grid;position:relative}.unified-timeline-item{grid-template-columns:20px minmax(0,1fr);gap:.75rem;padding-bottom:1rem;display:grid;position:relative}.unified-timeline-item:not(:last-child):before{content:"";background:#e2e8f0;width:2px;height:calc(100% - 8px);position:absolute;top:14px;left:7px}.unified-timeline-marker{z-index:1;background:#f97316;border:3px solid #ffedd5;border-radius:50%;width:14px;height:14px;margin-top:4px}.unified-timeline-body{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:.85rem 1rem}.unified-timeline-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.5rem .75rem;margin-bottom:.35rem;display:flex}.unified-timeline-type{color:#c2410c;letter-spacing:.04em;text-transform:uppercase;background:#fff7ed;border-radius:999px;padding:.2rem .55rem;font-size:.68rem;font-weight:800}.unified-timeline-head time{color:#64748b;font-size:.78rem}.unified-timeline-body p{color:#0f172a;margin:0;line-height:1.55}.status-badge{text-transform:capitalize;color:#0f172a;background:#e2e8f0;border-radius:999px;align-items:center;padding:.15rem .55rem;font-size:.72rem;font-style:normal;display:inline-flex}.status-badge.tone-hot,.status-badge.tone-danger,.status-badge.status-missed,.status-badge.status-overdue{color:#991b1b;background:#fee2e2}.status-badge.tone-positive,.status-badge.status-done,.status-badge.status-completed{color:#166534;background:#dcfce7}.status-badge.tone-warning,.status-badge.status-pending{color:#92400e;background:#fef3c7}.followup-summary-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem;margin-bottom:1rem;display:grid}.followup-summary-grid span{color:var(--muted);font-size:.75rem;display:block}.followup-summary-grid strong{font-size:1.25rem}.followup-row{justify-content:space-between;align-items:center;gap:1rem;display:flex}.followup-row.overdue{border-left:3px solid #dc2626}.followup-row-actions{gap:.5rem;display:flex}.engagement-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.engagement-form-grid .stage-field{min-width:0}.engagement-span-2{grid-column:span 2}.engagement-form .stage-field input[type=range]{accent-color:#f97316;background:0 0;border:none;padding:8px 0}.engagement-form .stage-field input:focus,.engagement-form .stage-field select:focus,.engagement-form .stage-field textarea:focus{border-color:#f97316;outline:none;box-shadow:0 0 0 3px #f9731626}.engagement-form-actions{justify-content:flex-end;margin-top:4px}.engagement-timeline-shell{gap:1rem;display:grid}.engagement-timeline{grid-template-columns:1fr;gap:1rem;display:grid}.engagement-card{background:linear-gradient(#fff 0%,#f8fafc 100%);border:1px solid #e2e8f0;border-top:3px solid #94a3b8;border-radius:16px;flex-direction:column;gap:.75rem;min-height:100%;padding:1rem 1.05rem;transition:border-color .15s,box-shadow .15s,transform .15s;display:flex;box-shadow:0 10px 24px #0f172a0d}.engagement-card:hover{border-color:#cbd5e1;transform:translateY(-1px);box-shadow:0 14px 28px #0f172a14}.engagement-card.status-pending{border-top-color:#3b82f6}.engagement-card.status-completed{border-top-color:#16a34a}.engagement-card.status-missed,.engagement-card.status-overdue{border-top-color:#dc2626}.engagement-card-header{justify-content:space-between;align-items:flex-start;gap:.75rem;display:flex}.engagement-card-title{gap:.35rem;min-width:0;display:grid}.engagement-card-title strong{color:#0f172a;font-size:.98rem;line-height:1.35}.engagement-card-date{color:#4338ca;background:#eef2ff;border-radius:999px;align-items:center;width:fit-content;padding:.2rem .55rem;font-size:.76rem;font-weight:700;display:inline-flex}.engagement-card-meta{grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem .75rem;margin:0;display:grid}.engagement-card-meta dt{color:#64748b;text-transform:uppercase;letter-spacing:.03em;font-size:.7rem;font-weight:700}.engagement-card-meta dd{color:#0f172a;margin:.12rem 0 0;font-size:.86rem;font-weight:600;line-height:1.35}.engagement-card-summary{color:#475569;border-top:1px dashed #e2e8f0;margin:auto 0 0;padding-top:.75rem;font-size:.88rem;line-height:1.55}.engagement-timeline-pagination{border-top:1px solid #e2e8f0;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.75rem 1rem;padding-top:.85rem;display:flex}.engagement-timeline-range{color:#64748b;margin:0;font-size:.84rem;font-weight:600}.engagement-timeline-pagination .lead-list-pagination{margin-top:0}.link-button{color:var(--accent);cursor:pointer;font:inherit;background:0 0;border:0;padding:0}.stage-flow-panel.embedded{box-shadow:none;background:0 0;border:0;padding:0}.stage-flow-panel.embedded .section-title{border-bottom:1px solid #e2e8f0;margin-bottom:1rem;padding-bottom:.85rem}.stage-flow-panel.embedded .stage-stepper{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:.75rem}.stage-flow-panel.embedded .stage-side-block{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:.85rem}@media (width>=640px){.engagement-timeline{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width<=900px){.engagement-form-grid,.followup-summary-grid{grid-template-columns:1fr}.engagement-span-2{grid-column:span 1}.lead-detail-toolbar{flex-direction:column;align-items:stretch}.lead-switcher{min-width:0}}@media (width<=639px){.engagement-card-meta{grid-template-columns:1fr}.engagement-timeline-pagination{flex-direction:column;align-items:stretch}.engagement-timeline-pagination .lead-list-pagination{justify-content:center}}.workspace-project{padding-top:18px}.topbar-project h1{letter-spacing:-.02em;font-size:clamp(1.35rem,2.5vw,1.85rem)}.project-workspace-shell{gap:1rem;display:grid}.project-workspace-hero{margin-bottom:0}.project-workspace-hero-top{align-items:flex-start}.project-workspace-switcher{color:#0f172a;font:inherit;background:#fff;border:1px solid #cbd5e1;border-radius:12px;max-width:280px;padding:.55rem .75rem}.project-workspace-hero-body{border-top:1px solid #e2e8f0;margin-top:1rem;padding-top:1.25rem}.project-workspace-stats{flex:1;grid-template-columns:repeat(4,minmax(0,1fr))}.project-workspace-tabs{background:#fff;border:1px solid #e2e8f0;border-radius:18px;padding:.65rem;box-shadow:0 12px 30px #0f172a0a}.project-workspace-content{gap:1rem;display:grid}.project-tab-panel{margin:0}.project-dashboard-shell.embedded{gap:1rem}.project-workspace-timeline{margin-top:.25rem}@media (width<=900px){.project-workspace-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.project-workspace-hero-body{flex-direction:column;align-items:flex-start}}.workspace-conversion{padding-top:18px}.won-convert-card{background:linear-gradient(135deg,#fff7ed 0%,#fff 55%);border:1px solid #fed7aa;border-radius:20px;justify-content:space-between;align-items:center;gap:1.25rem;margin-bottom:1rem;padding:1.25rem 1.5rem;display:flex;box-shadow:0 12px 30px #f9731614}.won-convert-card h3{color:#0f172a;margin:.35rem 0 .5rem;font-size:1.1rem}.won-convert-card p:not(.eyebrow){color:#64748b;max-width:42rem;margin:0;line-height:1.55}.pcw-shell{background:#fff;border:1px solid #e2e8f0;border-radius:24px;flex-direction:column;min-height:calc(100vh - 140px);display:flex;overflow:hidden;box-shadow:0 12px 30px #0f172a0f}.pcw-header,.pcw-footer{z-index:5;background:linear-gradient(#fff 0%,#f8fafc 100%);border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:center;gap:1rem;padding:1rem 1.5rem;display:flex;position:sticky}.pcw-footer{border-top:1px solid #e2e8f0;border-bottom:0;bottom:0}.pcw-header.panel,.pcw-footer.panel{box-shadow:none;border-radius:0}.pcw-header-main h1{color:#0f172a;letter-spacing:-.02em;margin:.2rem 0 0;font-size:clamp(1.2rem,2vw,1.45rem)}.pcw-header-meta{color:#64748b;flex-wrap:wrap;gap:.65rem;margin-top:.45rem;font-size:.85rem;display:flex}.pcw-meta-item:before{color:#cbd5e1;content:"·";margin-right:.65rem}.pcw-meta-item:first-child:before{content:none;margin:0}.pcw-header-aside{align-items:center;gap:1rem;display:flex}.pcw-header-actions,.pcw-footer-right,.pcw-footer-left{align-items:center;gap:.5rem;display:flex}.pcw-draft-status{color:#64748b;font-size:.8rem}.pcw-draft-status.is-saved{color:#166534}.pcw-progress-track{background:#e2e8f0;height:4px;overflow:hidden}.pcw-progress-track span{background:linear-gradient(90deg,#fb923c,#f97316);height:100%;transition:width .3s;display:block}.pcw-stepper{background:#f8fafc;border-bottom:1px solid #e2e8f0;gap:.5rem;padding:.75rem 1rem;display:flex;overflow-x:auto}.pcw-stepper-item{color:#64748b;cursor:pointer;font:inherit;white-space:nowrap;background:#fff;border:1px solid #e2e8f0;border-radius:999px;align-items:center;gap:.45rem;padding:.45rem .85rem;font-size:.82rem;font-weight:600;display:inline-flex}.pcw-stepper-item.active{color:#c2410c;background:#fff7ed;border-color:#fdba74}.pcw-stepper-item.done{color:#166534;background:#ecfdf5;border-color:#86efac}.pcw-stepper-index{background:#e2e8f0;border-radius:999px;place-items:center;width:1.25rem;height:1.25rem;font-size:.72rem;font-weight:800;display:inline-grid}.pcw-stepper-item.active .pcw-stepper-index{color:#9a3412;background:#fed7aa}.pcw-stepper-item.done .pcw-stepper-index{color:#166534;background:#bbf7d0}.pcw-body{flex:1;padding:1.25rem 1.5rem 1.75rem;overflow:auto}.pcw-step-intro{margin-bottom:1.25rem}.pcw-step-intro h2{color:#0f172a;letter-spacing:-.02em;margin:.25rem 0 0;font-size:1.35rem}.pcw-step,.pcw-section,.pcw-card{animation:.2s pcw-fade}@keyframes pcw-fade{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}.pcw-section{margin-bottom:1rem}.pcw-section.panel{background:#fff}.pcw-section-compact.panel{padding:1rem}.pcw-section-head h3{color:#0f172a;margin:0;font-size:1rem}.pcw-section-head p{color:#64748b;margin:.2rem 0 .75rem;font-size:.85rem}.pcw-grid{gap:.75rem;display:grid}.pcw-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.pcw-span-2{grid-column:span 2}.pcw-field{flex-direction:column;gap:.3rem;font-size:.82rem;display:flex}.pcw-required{color:#f97316;font-style:normal}.pcw-field-error{color:#dc2626;font-size:.75rem}.pcw-auto-field{background:#f8fafc;border:1px dashed #cbd5e1;border-radius:12px;padding:.55rem .7rem}.pcw-auto-field span{color:#64748b;font-size:.75rem;display:block}.pcw-auto-field strong{color:#0f172a}.pcw-party-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;display:grid}.pcw-card{background:#fff;border:1px solid #e2e8f0;border-radius:18px;padding:1rem}.pcw-card header h3{color:#0f172a;margin:0}.pcw-card header p{color:#64748b;margin:.2rem 0 .75rem;font-size:.85rem}.pcw-finance-cards{grid-template-columns:repeat(5,minmax(0,1fr));gap:.65rem;margin-bottom:1rem;display:grid}.pcw-finance-card{background:linear-gradient(#fff,#f8fafc);border:1px solid #e2e8f0;border-radius:16px;padding:.85rem}.pcw-finance-card span{color:#64748b;text-transform:uppercase;font-size:.72rem;font-weight:700;display:block}.pcw-finance-card strong{color:#0f172a;font-size:1rem}.pcw-finance-card.tone-positive strong{color:#166534}.pcw-finance-card.tone-warning strong{color:#b45309}.pcw-finance-card.tone-danger strong{color:#dc2626}.pcw-finance-panels{grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;display:grid}.pcw-finance-footer{color:#64748b;margin-top:.75rem;font-size:.85rem}.pcw-table-wrap{border:1px solid #e2e8f0;border-radius:14px;overflow:auto}.pcw-table{border-collapse:collapse;width:100%;font-size:.78rem}.pcw-table th,.pcw-table td{vertical-align:top;border-bottom:1px solid #e2e8f0;padding:.45rem}.pcw-table th{color:#64748b;text-transform:uppercase;background:#f8fafc;font-size:.72rem}.pcw-link-btn{color:#ea580c;cursor:pointer;font:inherit;background:0 0;border:0;margin-top:.5rem;font-weight:700}.pcw-link-btn:hover{color:#c2410c}.pcw-file-drop{margin-top:.5rem}.pcw-identity-uploads{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem;margin-top:1rem;display:grid}.pcw-identity-doc .pcw-file-drop-zone{min-height:96px}.pcw-file-drop-label{color:#0f172a;margin:0;font-size:.85rem;font-weight:700}.pcw-file-drop-hint{color:#64748b;margin:.2rem 0 .5rem;font-size:.8rem}.pcw-file-drop-zone{color:#64748b;cursor:pointer;text-align:center;background:#f8fafc;border:1px dashed #fdba74;border-radius:14px;place-items:center;gap:.25rem;min-height:110px;padding:1rem;transition:border-color .15s,background .15s;display:grid}.pcw-file-drop-zone:hover{background:#fff7ed;border-color:#f97316}.pcw-file-drop-icon{color:#ea580c;background:#fff7ed;border:1px solid #fed7aa;border-radius:999px;place-items:center;width:2rem;height:2rem;font-size:1rem;display:inline-grid}.pcw-file-drop-text{color:#0f172a;font-size:.85rem;font-weight:700}.pcw-file-drop-sub{color:#94a3b8;font-size:.75rem}.pcw-file-list{margin:.5rem 0 0;padding:0;list-style:none}.pcw-file-list li{border-bottom:1px solid #e2e8f0;justify-content:space-between;gap:.5rem;padding:.35rem 0;font-size:.82rem;display:flex}.pcw-file-remove{color:#dc2626;cursor:pointer;font:inherit;background:0 0;border:0;font-size:.78rem}.pcw-timeline-top{grid-template-columns:320px 1fr;gap:1rem;margin-bottom:1rem;display:grid}.pcw-timeline-progress-card{background:#fff;border:1px solid #e2e8f0;border-radius:18px;align-items:center;gap:1rem;padding:1rem;display:flex}.pcw-timeline-layout{grid-template-columns:minmax(0,1.2fr) minmax(260px,.8fr);gap:1rem;display:grid}.pcw-progress-ring{place-items:center;display:grid;position:relative}.pcw-progress-ring-label{text-align:center;place-items:center;gap:.1rem;display:grid;position:absolute}.pcw-progress-ring-label strong{color:#0f172a;font-size:1rem}.pcw-progress-ring-label small{color:#64748b;text-transform:uppercase;font-size:.68rem}.pcw-progress-ring-bg{fill:none;stroke:#e2e8f0}.pcw-progress-ring-fg{fill:none;stroke:#f97316;transform-origin:50%;transition:stroke-dashoffset .3s;transform:rotate(-90deg)}.pcw-progress-bar-wrap{align-self:center}.pcw-progress-bar{background:#e2e8f0;border-radius:999px;height:10px;overflow:hidden}.pcw-progress-bar span{background:linear-gradient(90deg,#fb923c,#f97316);height:100%;transition:width .3s;display:block}.pcw-phase-card{background:#fff;border:1px solid #e2e8f0;border-radius:14px;margin-bottom:.65rem;padding:.75rem}.pcw-phase-card-head{align-items:center;gap:.5rem;margin-bottom:.5rem;display:flex}.pcw-phase-card-head input{background:0 0;border:0;flex:1;font-size:.95rem;font-weight:600}.pcw-phase-dot{border-radius:999px;width:10px;height:10px}.pcw-milestone-row{grid-template-columns:2fr 1fr 1fr;gap:.5rem;margin-bottom:.5rem;display:grid}.pcw-review-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;display:grid}.pcw-review-note{color:#64748b;margin-top:1rem}.pcw-footer-step{color:#64748b;font-size:.82rem}.project-dashboard-shell{gap:1rem;display:grid}.project-dashboard-hero-panel{background:linear-gradient(#fff 0%,#f8fafc 100%)}.project-dashboard-hero-top{justify-content:space-between;align-items:flex-start;gap:1rem;display:flex}.project-dashboard-hero-top h2{color:#0f172a;letter-spacing:-.02em;margin:.35rem 0 .5rem;font-size:clamp(1.25rem,2.5vw,1.65rem)}.project-dashboard-meta{color:#64748b;flex-wrap:wrap;align-items:center;gap:.65rem;font-size:.85rem;display:flex}.project-dashboard-actions{flex-wrap:wrap;gap:.5rem;display:flex}.project-dashboard-hero{align-items:center;gap:1.25rem;margin:1.25rem 0;display:flex}.project-dashboard-cards{flex:1;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;display:grid}.project-dashboard-quick-actions{border-top:1px solid #e2e8f0;flex-wrap:wrap;gap:.5rem;padding-top:1rem;display:flex}.project-dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;display:grid}.project-dashboard-panel .pcw-section-head{margin-bottom:.5rem}.project-dashboard-list,.project-dashboard-activity{margin:0;padding:0;list-style:none}.project-dashboard-list li,.project-dashboard-activity li{border-bottom:1px solid #e2e8f0;justify-content:space-between;gap:.5rem;padding:.55rem 0;font-size:.85rem;display:flex}.project-dashboard-list li strong,.project-dashboard-activity li strong{color:#0f172a}.project-dashboard-list li small,.project-dashboard-activity li small{color:#64748b;display:block}.project-dashboard-activity li{flex-direction:column;align-items:flex-start}.project-dashboard-activity li p{color:#475569;margin:.2rem 0 0}@media (width<=1100px){.won-convert-card{flex-direction:column;align-items:flex-start}.pcw-party-grid,.pcw-finance-panels,.pcw-review-grid,.pcw-timeline-layout,.project-dashboard-grid,.pcw-timeline-top{grid-template-columns:1fr}.pcw-finance-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.pcw-grid-2,.pcw-span-2{grid-template-columns:1fr}.pcw-span-2{grid-column:span 1}}@media (width<=700px){.pcw-header,.pcw-footer{flex-direction:column;align-items:stretch}.pcw-header-aside{flex-direction:column;width:100%}.pcw-finance-cards,.project-dashboard-cards,.pcw-milestone-row{grid-template-columns:1fr}.project-dashboard-hero{flex-direction:column;align-items:flex-start}}
