*{box-sizing:border-box}body{margin:0;font-family:Arial,sans-serif;background:#f5f6f8;color:#202b38}button{font-family:inherit;cursor:pointer}.app{max-width:1200px;min-height:100vh;margin:auto;background:#fff;border:1px solid #dedfe2;border-radius:16px;overflow:hidden}.header{background:#202d3c;color:#fff;padding:16px 22px;display:flex;align-items:center;justify-content:space-between}.header h2{display:flex;align-items:center;gap:9px;margin:0 0 7px;font-size:21px}.header p{margin:0;color:#cbd2da;font-size:13px}.version{background:#075d43;color:#65e6a7;padding:6px 11px;border-radius:20px;font-size:12px}.layout{display:flex;min-height:650px}.sidebar{width:150px;padding:18px 10px;background:#fafafa;border-right:1px solid #e5e5e5;flex-shrink:0}.menu-title{font-size:12px;color:#777;margin:0 10px 15px}.nav{display:flex;flex-direction:column;align-items:center;gap:7px;width:100%;padding:12px 5px;border:0;border-radius:10px;background:transparent;color:#555;font-size:12px;margin-bottom:5px}.nav:hover,.nav.active{background:#eef0f2;color:#202d3c}.content{flex:1;min-width:0;padding:25px}.page-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.eyebrow{font-size:11px;color:#87909a;letter-spacing:1px}.page-heading h1{font-size:25px;margin:6px 0 0}.user-tag{background:#d8f5e5;color:#087a48;padding:6px 12px;border-radius:20px;font-size:12px}.welcome{padding:25px;background:#f8fafc;border:1px solid #e1e5e9;border-radius:13px;margin-bottom:20px}.welcome h2{margin-top:0;font-size:20px}.welcome p{color:#687482;line-height:1.6}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.card,.panel{background:#fff;border:1px solid #dedfe2;border-radius:13px;padding:20px}.card svg{color:#526579}.card h3{font-size:27px;margin:12px 0 4px}.card p{color:#777;margin:0;font-size:13px}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.panel-heading h2,.panel h2{font-size:18px}.primary{display:flex;align-items:center;gap:7px;border:0;background:#202d3c;color:#fff;padding:10px 14px;border-radius:9px}.empty{text-align:center;color:#89919a;padding:45px 10px}footer{text-align:center;color:#888;font-size:12px;padding:35px 10px 10px}@media(max-width:650px){.app{border-radius:0}.layout{flex-direction:column}.sidebar{width:100%;display:flex;overflow-x:auto;padding:8px;border-right:0;border-bottom:1px solid #eee}.menu-title{display:none}.nav{min-width:75px;margin:0}.content{padding:16px}.stats{grid-template-columns:1fr}}.primary:disabled,.secondary:disabled{cursor:wait;opacity:.7}.client-list{display:grid;gap:10px;margin-top:20px}.client-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 16px;border:1px solid #e5e8eb;border-radius:10px}.client-row h3{margin:0 0 5px;font-size:15px}.client-row p{margin:0;color:#687482;font-size:13px}.client-stage{flex-shrink:0;padding:6px 10px;border-radius:20px;background:#eef0f2;color:#526579;font-size:12px}.modal-backdrop{position:fixed;z-index:10;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;padding:16px;background:#141e2a8c}.client-dialog{width:min(520px,100%);max-height:min(90vh,760px);overflow-y:auto;padding:24px;border-radius:16px;background:#fff;box-shadow:0 20px 60px #0000003d}.dialog-heading,.dialog-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.dialog-heading h2{margin:6px 0 0;font-size:21px}.dialog-close{display:grid;width:36px;height:36px;place-items:center;border:0;border-radius:9px;background:#f1f3f5;color:#526579;font-size:25px;line-height:1}.dialog-close:hover,.secondary:hover{background:#e7ebef}.client-form{display:grid;gap:15px;margin-top:22px}.client-form label{display:grid;gap:7px;color:#344252;font-size:13px;font-weight:600}.client-form label span{display:inline;color:#b42318}.client-form input{width:100%;min-height:42px;padding:10px 12px;border:1px solid #cfd5db;border-radius:8px;color:#202b38;font:inherit;font-weight:400}.client-form input:focus{outline:3px solid rgba(8,122,72,.16);border-color:#087a48}.form-error{margin:0;padding:11px 12px;border:1px solid #f2c2bf;border-radius:8px;background:#fff4f2;color:#a22b24;font-size:13px;line-height:1.45}.dialog-actions{justify-content:flex-end;margin-top:5px}.secondary{padding:10px 14px;border:1px solid #d6dbe0;border-radius:9px;background:#fff;color:#344252}@media(max-width:650px){.panel-heading{align-items:flex-start;flex-direction:column}.client-dialog{padding:20px}.client-row{align-items:flex-start}}.name-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.second-contact-toggle{display:flex!important;grid-template-columns:none!important;align-items:center;gap:9px!important;width:fit-content;color:#344252;font-weight:500!important;cursor:pointer}.second-contact-toggle input{width:16px;min-height:16px;margin:0;accent-color:#087a48}.client-form select{width:100%;min-height:42px;padding:9px 12px;border:1px solid #cfd5db;border-radius:8px;background:#fff;color:#202b38;font:inherit;font-weight:400}.client-form select:focus{outline:3px solid rgba(8,122,72,.16);border-color:#087a48}.origin-preview{display:flex;align-items:center;gap:10px;margin-top:-7px}.field-hint{color:#687482;font-size:12px}.origin-pill{display:inline-flex;align-items:center;width:fit-content;padding:6px 10px;border:1px solid transparent;border-radius:999px;font-size:12px;font-weight:600;white-space:nowrap}.origin-recommendation{background:#f4f3ff;color:#5925dc;border-color:#d9d6fe}.origin-website{background:#eff8ff;color:#175cd3;border-color:#b2ddff}.origin-social{background:#fdf2fa;color:#c11574;border-color:#fcceee}.origin-partner{background:#ecfdf3;color:#027a48;border-color:#abefc6}.origin-event{background:#fff6ed;color:#c4320a;border-color:#f9dbaf}.origin-prospecting{background:#f2f4f7;color:#344054;border-color:#d0d5dd}.origin-other{background:#f9fafb;color:#475467;border-color:#eaecf0}.client-tags{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px}@media(max-width:650px){.name-fields{grid-template-columns:1fr}.client-row{flex-direction:column}.client-tags{justify-content:flex-start}}.auth-app{display:flex;flex-direction:column}.auth-content{display:grid;flex:1;min-height:560px;place-items:center;padding:32px 16px;background:#f8fafc}.auth-card{width:min(440px,100%);padding:30px;border:1px solid #e1e5e9;border-radius:16px;background:#fff;box-shadow:0 14px 36px #202d3c14}.auth-card h1{margin:8px 0;color:#202d3c;font-size:25px}.auth-description{margin:0;color:#687482;font-size:14px;line-height:1.55}.auth-form{display:grid;gap:16px;margin-top:24px}.auth-form label{display:grid;gap:7px;color:#344252;font-size:13px;font-weight:600}.auth-form input{width:100%;min-height:44px;padding:10px 12px;border:1px solid #cfd5db;border-radius:8px;color:#202b38;font:inherit;font-weight:400}.auth-form input:focus{outline:3px solid rgba(8,122,72,.16);border-color:#087a48}.auth-submit{justify-content:center;min-height:44px;margin-top:2px}.password-reset{justify-self:center;padding:4px 8px;border:0;background:transparent;color:#175cd3;font:inherit;font-size:13px;text-decoration:underline}.password-reset:disabled{cursor:wait;opacity:.7}.auth-notice{margin:0;padding:11px 12px;border:1px solid #abefc6;border-radius:8px;background:#ecfdf3;color:#067647;font-size:13px;line-height:1.45}.auth-loading{display:grid;flex:1;min-height:400px;place-items:center;color:#687482}.header-actions{display:flex;align-items:center;gap:12px}.signed-in-email{color:#d5dfeb;font-size:11px;overflow-wrap:anywhere}.logout-button{padding:7px 10px;border:1px solid rgba(255,255,255,.3);border-radius:8px;background:transparent;color:#fff;font-size:12px}.logout-button:hover{background:#ffffff1a}@media(max-width:650px){.auth-content{min-height:460px;padding:20px 14px}.auth-card{padding:23px}.header-actions{align-items:flex-end;flex-direction:column;gap:7px}}.client-row-button{width:100%;text-align:left;background:#fff;font:inherit;cursor:pointer}.client-row-button:hover{border-color:#aab4bf;background:#fbfcfd}.client-row-button:disabled{cursor:wait;opacity:.7}.client-detail-heading{margin:12px 0 20px}.client-detail-heading h2{margin:12px 0 8px;font-size:22px}.client-detail-meta{display:flex;flex-wrap:wrap;align-items:center;gap:10px;color:#687482;font-size:13px}.back-button{display:inline-flex;align-items:center;gap:7px;padding:7px 0;border:0;background:transparent;color:#526579;font:inherit;font-size:13px;cursor:pointer}.back-button:hover{color:#202d3c}.workflow-timeline{display:grid;grid-auto-columns:minmax(115px,1fr);grid-auto-flow:column;gap:8px;overflow-x:auto;padding:4px 2px 14px;margin-bottom:14px}.workflow-step{display:grid;gap:7px;min-height:72px;padding:10px;border:1px solid #dfe4e8;border-radius:10px;background:#fff;color:#5f6b78;text-align:left;cursor:pointer}.workflow-step:hover{border-color:#9aa7b4}.workflow-step.selected{border-color:#202d3c;box-shadow:0 0 0 2px #202d3c1a}.workflow-step.current{background:#f1f6fb}.workflow-step.completed{border-color:#a6e5bf;background:#f0fcf5;color:#067647}.workflow-step-code{display:flex;align-items:center;gap:6px;color:#202d3c;font-size:13px;font-weight:700}.workflow-step-name{font-size:11px;line-height:1.35}.workflow-stage-panel{padding:20px;border:1px solid #dedfe2;border-radius:13px;background:#fff}.workflow-stage-heading,.workflow-stage-heading>div{display:flex;align-items:center;gap:12px}.workflow-stage-heading{justify-content:space-between;padding-bottom:17px;border-bottom:1px solid #edf0f2}.workflow-stage-heading h3{margin:0;color:#202d3c;font-size:18px}.workflow-stage-heading p{margin:4px 0 0;color:#87909a;font-size:12px}.stage-code-badge{display:grid;width:42px;height:42px;place-items:center;border-radius:12px;background:#eef0f2;color:#202d3c;font-weight:700}.stage-status{padding:6px 10px;border-radius:20px;background:#f2f4f7;color:#475467;font-size:12px;white-space:nowrap}.stage-status-in_progress{background:#eff8ff;color:#175cd3}.stage-status-completed{background:#ecfdf3;color:#027a48}.workflow-substeps,.workflow-fields,.repeater-panel{display:grid;gap:12px;margin-top:20px}.workflow-substeps h4,.workflow-fields h4,.repeater-panel h4{margin:0;color:#344252;font-size:14px}.workflow-substep{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px;border:1px solid #e7ebef;border-radius:9px}.workflow-substep .workflow-field{flex:1}.workflow-substep .workflow-field input{max-width:280px}.workflow-checkbox-field{display:flex;align-items:center;gap:9px;color:#344252;font-size:13px;cursor:pointer}.workflow-checkbox-field input{width:16px;height:16px;margin:0;accent-color:#087a48}.substep-state{color:#687482;font-size:12px;white-space:nowrap}.workflow-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.workflow-field{display:grid;gap:7px;color:#344252;font-size:13px;font-weight:600}.workflow-field input,.workflow-field textarea,.repeater-form input,.quote-form input{width:100%;min-height:40px;padding:9px 11px;border:1px solid #cfd5db;border-radius:8px;color:#202b38;font:inherit;font-weight:400}.workflow-field textarea{resize:vertical}.workflow-field input:focus,.workflow-field textarea:focus,.repeater-form input:focus,.quote-form input:focus{outline:3px solid rgba(8,122,72,.15);border-color:#087a48}.workflow-notes{margin-top:20px}.workflow-hint,.repeater-panel>p{margin:0;color:#687482;font-size:12px;line-height:1.45}.workflow-success{margin:0;padding:10px 12px;border-radius:8px;background:#ecfdf3;color:#067647;font-size:13px}.workflow-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}.workflow-actions .primary{display:inline-flex;align-items:center}.repeater-panel{padding:14px;border:1px solid #e7ebef;border-radius:10px;background:#fbfcfd}.repeater-form,.quote-form{display:grid;grid-template-columns:1fr 1fr auto;align-items:end;gap:10px}.quote-form{grid-template-columns:repeat(2,minmax(0,1fr))}.repeater-form label,.quote-form label{display:grid;gap:6px;color:#526579;font-size:12px}.repeater-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px;border:1px solid #e6eaee;border-radius:9px;background:#fff}.repeater-row>div{display:grid;gap:4px}.repeater-row strong{color:#344252;font-size:13px}.repeater-row span{color:#687482;font-size:12px}.selected-ap{padding:9px 12px;border:1px solid #abefc6;border-radius:9px;background:#ecfdf3;color:#027a48;font:inherit;font-size:12px}@media(max-width:650px){.workflow-stage-panel{padding:15px}.workflow-field-grid{grid-template-columns:1fr}.workflow-stage-heading{align-items:flex-start}.workflow-stage-heading>div{align-items:flex-start}.repeater-form,.quote-form{grid-template-columns:1fr}.workflow-actions{flex-direction:column}.workflow-actions button{justify-content:center}.workflow-substep{align-items:flex-start;flex-direction:column}}.client-stage-filter{grid-auto-columns:minmax(0,1fr);gap:6px;margin:14px 0 4px;padding:4px 2px 8px;overflow-x:auto;scrollbar-width:thin}.client-stage-filter .workflow-step{min-width:0;min-height:58px;gap:4px;padding:8px;border-radius:10px}.client-stage-filter .workflow-step-name{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:10px}.stage-filter-clear{border:0;background:transparent;color:#425b75;font:inherit;font-size:12px;cursor:pointer}.home-link{font:inherit;text-align:left;cursor:pointer}.home-link:hover{border-color:#98a6b4;box-shadow:0 5px 15px #14202c14}@media(max-width:650px){.client-stage-filter{grid-template-columns:repeat(7,minmax(0,1fr));grid-auto-flow:row;grid-auto-columns:minmax(0,1fr);overflow:visible;gap:4px}.client-stage-filter .workflow-step{min-height:50px;padding:5px 3px}.client-stage-filter .workflow-step-name{font-size:8px;line-height:1.15}.client-stage-filter .workflow-step-code{font-size:11px}}.workflow-timeline .workflow-step:nth-child(1){--stage:#fff5e8;--stage-border:#f6d6b1;--stage-ink:#8a470c}.workflow-timeline .workflow-step:nth-child(2){--stage:#ffedd5;--stage-border:#f2c48c;--stage-ink:#8b4513}.workflow-timeline .workflow-step:nth-child(3){--stage:#fed7aa;--stage-border:#efa967;--stage-ink:#7c360b}.workflow-timeline .workflow-step:nth-child(4){--stage:#fb923c;--stage-border:#e87924;--stage-ink:#542508}.workflow-timeline .workflow-step:nth-child(5){--stage:#ecfdf3;--stage-border:#b7e4c7;--stage-ink:#17643a}.workflow-timeline .workflow-step:nth-child(6){--stage:#bbf7d0;--stage-border:#78d69c;--stage-ink:#14532d}.workflow-timeline .workflow-step:nth-child(7){--stage:#86efac;--stage-border:#4fbd7a;--stage-ink:#104326}.workflow-timeline .workflow-step{background:var(--stage);border-color:var(--stage-border);color:var(--stage-ink)}.workflow-timeline .workflow-step-code{color:var(--stage-ink)}.workflow-timeline .workflow-step:hover,.workflow-timeline .workflow-step.selected{border-color:var(--stage-ink);box-shadow:0 0 0 2px color-mix(in srgb,var(--stage-ink) 18%,transparent)}.workflow-timeline .workflow-step.current{background:var(--stage)}.workflow-timeline .workflow-step.completed{background:var(--stage);border-color:var(--stage-ink);color:var(--stage-ink)}.client-row{position:relative;overflow:hidden;padding-left:20px}.client-row:before,.client-workflow:before{content:"";position:absolute;left:0;top:0;bottom:0;width:6px;background:#f6d6b1}.client-row.stage-P1:before,.client-workflow.stage-P1:before{background:#f6d6b1}.client-row.stage-P2:before,.client-workflow.stage-P2:before{background:#f2c48c}.client-row.stage-P3:before,.client-workflow.stage-P3:before{background:#efa967}.client-row.stage-P4:before,.client-workflow.stage-P4:before{background:#e87924}.client-row.stage-C1:before,.client-workflow.stage-C1:before{background:#b7e4c7}.client-row.stage-C2:before,.client-workflow.stage-C2:before{background:#78d69c}.client-row.stage-C3:before,.client-workflow.stage-C3:before{background:#4fbd7a}.client-main{min-width:0}.client-name-line{display:flex;align-items:center;gap:9px}.client-name-line h3{margin:0 0 5px}.client-quick-icons{display:inline-flex;align-items:center;gap:6px;margin-top:-4px;color:#99a4af}.client-created{display:block;margin-top:5px;color:#82909d;font-size:11px}.client-workflow{position:relative;overflow:hidden;padding-left:16px}.client-detail-heading{align-items:flex-start}.client-detail-heading>div:first-child{display:grid;gap:4px}.client-tasks{margin:18px 0;padding:16px;border:1px solid #e4e8eb;border-radius:12px;background:#fff}.client-tasks-heading{display:flex;align-items:center;justify-content:space-between}.client-tasks-heading h3{margin:0 0 12px}.task-create-form{display:grid;grid-template-columns:2fr 1fr 1fr 1fr auto;align-items:end;gap:10px}.task-create-form label{display:grid;gap:5px;font-size:12px;color:#526579}.task-create-form input,.task-create-form select{min-width:0;padding:9px;border:1px solid #d2d9df;border-radius:8px;font:inherit}.linked-task,.task-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 4px;border-bottom:1px solid #edf0f2}.linked-task span,.task-row p,.task-row small{display:block;color:#687482;font-size:12px}.task-row.task-today{border-left:4px solid #e87924;background:#fff7ed;padding-left:12px}.client-title-with-action{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.task-icon-button{display:inline-grid;place-items:center;padding:6px;border:0;border-radius:8px;background:#fff3e5;color:#b45309;cursor:pointer}@media(max-width:650px){.task-create-form{grid-template-columns:1fr 1fr}.task-create-form label:first-child,.task-create-form button{grid-column:1/-1}.task-row{align-items:flex-start;flex-direction:column}}.client-title-with-action{display:flex!important;grid-template-columns:none!important;align-items:center;gap:8px;flex-wrap:wrap}.client-title-with-action h2{margin:0}.client-status-icon{flex:none}.task-status-icon{color:#d97706}.memo-status-icon{color:#7c3aed}.client-tasks-heading{margin-bottom:10px}.linked-task-toggle{display:inline-flex;flex:none;align-items:center;justify-content:center;cursor:pointer}.linked-task-toggle input{width:18px;height:18px;margin:0;accent-color:#16834a;cursor:pointer}.linked-task-toggle input:disabled{cursor:wait}.linked-task-content{display:grid;flex:1;min-width:0;gap:4px}.linked-task-title{color:#344252;font-size:13px;font-weight:600}.linked-task-completed{border-radius:8px;background:#f4f5f6;opacity:.72}.linked-task-completed .linked-task-title{color:#74808c;text-decoration:line-through}.task-completed-label{margin-left:auto;padding:4px 8px;border-radius:999px;background:#e9edef;color:#687482!important;font-size:11px!important;white-space:nowrap}@media(max-width:650px){.linked-task{align-items:flex-start}.task-completed-label{margin-left:0}}.linked-task-edit-button{padding:6px 9px;border:1px solid #d6dbe0;border-radius:8px;background:#fff;color:#526579;font:inherit;font-size:12px;cursor:pointer}.linked-task-edit-button:hover{background:#f5f7f8}.linked-task-edit-form{display:grid;flex:1;min-width:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.linked-task-edit-form label{display:grid;min-width:0;gap:5px;color:#526579;font-size:12px}.linked-task-edit-form input,.linked-task-edit-form select{width:100%;min-width:0;min-height:36px;padding:7px 9px;border:1px solid #d2d9df;border-radius:7px;background:#fff;color:#344252;font:inherit}.linked-task-edit-actions{display:flex;grid-column:1 / -1;justify-content:flex-end;gap:8px}.linked-task-edit-actions .primary,.linked-task-edit-actions .secondary{padding:7px 10px;font-size:12px}@media(max-width:650px){.linked-task-edit-form{grid-template-columns:1fr}.linked-task-edit-actions{grid-column:1}}.partner-summary dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 18px;margin:14px 0 0}.partner-summary dl>div{min-width:0}.partner-summary dt{color:#687482;font-size:11px;font-weight:600}.partner-summary dd{margin:3px 0 0;color:#344252;font-size:13px;white-space:pre-line}.partner-summary h3{margin-top:0}.client-edit-open{flex:none}@media(max-width:650px){.partner-summary dl{grid-template-columns:1fr}.client-detail-heading{flex-wrap:wrap}.client-edit-open{width:100%}}.project-sheet-card{margin:18px 0;padding:16px;border:1px solid #e2e8ed;border-radius:13px;background:#fff}.project-sheet-heading{display:flex;align-items:center;justify-content:space-between;gap:14px}.project-sheet-heading>div{display:grid;gap:2px}.project-sheet-heading h3{margin:0;color:#253343;font-size:17px}.project-sheet-heading button{display:flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap}.project-sheet-empty{margin:12px 0 0;color:#657386;font-size:13px}.project-sheet-address{display:flex;align-items:flex-start;gap:8px;margin:14px 0;color:#40536a;font-size:14px}.project-sheet-address svg{flex:none;color:#667b8e}.project-sheet-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.project-sheet-summary-grid>div{display:grid;gap:5px;min-width:0;padding:11px;border-radius:10px;background:#f6f8fa}.project-sheet-summary-grid span{color:#6b7885;font-size:11px}.project-sheet-summary-grid strong{color:#243141;font-size:15px;overflow-wrap:anywhere}.project-sheet-badges{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.project-sheet-badges span{padding:5px 9px;border:1px solid #dce4ea;border-radius:999px;background:#f9fbfc;color:#47576a;font-size:11px}.project-modal-backdrop{z-index:1000}.project-dialog{width:min(760px,calc(100vw - 24px));max-height:calc(100vh - 36px);display:flex;flex-direction:column;overflow:hidden}.project-dialog>.dialog-heading{flex:none;padding:20px 22px 12px}.project-form{overflow:auto;min-height:0;padding:0 22px 20px}.project-form-section{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px;min-inline-size:0;margin:0 0 14px;padding:14px;border:1px solid #e1e7ec;border-radius:11px}.project-form-section legend{display:flex;align-items:center;gap:7px;padding:0 7px;color:#2e3d4d;font-size:13px;font-weight:700}.project-form-section>label{position:relative;display:grid;align-content:start;gap:6px;min-width:0;color:#38495a;font-size:12px;font-weight:600}.project-form-section input:not([type=checkbox]),.project-form-section select{box-sizing:border-box;width:100%;min-width:0;height:40px;padding:9px 11px;border:1px solid #cbd5de;border-radius:8px;background:#fff;color:#253343;font:inherit;font-size:13px}.project-form-section input:focus,.project-form-section select:focus{outline:2px solid #90aec8;outline-offset:1px}.project-form-section input[readonly]{background:#f3f6f8;color:#637284}.project-form-section small{color:#738091;font-size:11px;font-weight:400;line-height:1.4}.project-wide-field{grid-column:1/-1}.project-autocomplete-field{z-index:2}.project-suggestion-list{position:absolute;z-index:20;top:100%;left:0;right:0;max-height:220px;overflow:auto;margin-top:4px;padding:4px;border:1px solid #ccd6df;border-radius:9px;background:#fff;box-shadow:0 9px 22px #19283726}.project-suggestion-list button{display:block;width:100%;padding:9px 10px;border:0;border-radius:6px;background:#fff;color:#253343;text-align:left;font:inherit;font-size:12px;cursor:pointer}.project-suggestion-list button:hover,.project-suggestion-list button:focus{background:#edf4f8;outline:none}.project-search-toggle,.project-check-field{grid-column:1/-1;display:flex!important;grid-template-columns:auto 1fr!important;align-items:center;gap:8px!important;color:#506174!important;font-size:12px!important;font-weight:500!important}.project-search-toggle input,.project-check-field input{width:16px;height:16px;margin:0;accent-color:#243141}.project-calculation-result{grid-column:1/-1;display:grid;gap:4px;padding:12px;border:1px solid #dbe6eb;border-radius:9px;background:#f4f8f9}.project-calculation-result span{color:#506275;font-size:12px}.project-calculation-result strong{color:#1e3a4b;font-size:20px}.project-calculation-result small{color:#687887;font-size:11px;line-height:1.4}.project-form-help{grid-column:1/-1;margin:0;color:#657687;font-size:11px;line-height:1.45;font-weight:400}.project-source-note{margin:0 0 12px}@media(max-width:650px){.project-sheet-card{padding:13px}.project-sheet-heading{align-items:flex-start}.project-sheet-heading button{padding:8px 10px;font-size:12px}.project-sheet-summary-grid{grid-template-columns:1fr}.project-sheet-summary-grid>div{grid-template-columns:1fr auto;align-items:center}.project-dialog{width:calc(100vw - 14px);max-height:calc(100dvh - 14px);border-radius:13px}.project-dialog>.dialog-heading{padding:16px 15px 10px}.project-form{padding:0 14px 14px}.project-form-section{gap:10px;padding:11px}}@media(max-width:390px){.project-form-section{grid-template-columns:1fr}.project-wide-field,.project-search-toggle,.project-check-field,.project-calculation-result,.project-form-help{grid-column:1}}.workflow-date-board{margin:12px 0 14px;padding:12px;border:1px solid #e2e7ec;border-radius:12px;background:#fff}.workflow-date-board-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.workflow-date-board-heading h3{margin:0;color:#273747;font-size:15px}.workflow-date-board-heading p{margin:3px 0 0;color:#73808d;font-size:11px}.workflow-date-board-heading button{flex:none;padding:7px 10px;font-size:11px}.workflow-progress-line{height:3px;margin:8px 0 10px;overflow:hidden;border-radius:999px;background:#edf0f2}.workflow-progress-line>div{height:100%;border-radius:inherit;background:linear-gradient(90deg,#e87924 0,#e87924 57%,#36a86c 57%,#36a86c);transition:width .2s ease}.workflow-date-grid{display:grid;gap:3px}.workflow-date-grid-header,.workflow-date-row{display:grid;grid-template-columns:minmax(180px,1fr) minmax(125px,160px) minmax(125px,160px);align-items:center;gap:8px}.workflow-date-grid-header{padding:0 9px 4px;color:#75808d;font-size:10px;font-weight:700}.workflow-date-row{min-height:38px;padding:3px 7px;border:1px solid #e8ecf0;border-radius:8px;background:#fff}.workflow-date-row.prospect{border-left:3px solid #e87924}.workflow-date-row.client{border-left:3px solid #43ad72}.workflow-date-row.selected{box-shadow:0 0 0 1px #9cabb8}.workflow-date-row.completed{background:#f7fcf8}.workflow-date-stage{display:flex;align-items:center;gap:8px;min-width:0;padding:2px 4px;border:0;background:transparent;color:#334458;text-align:left;cursor:pointer}.workflow-date-stage>svg{flex:none;color:#8b98a4}.workflow-date-row.active .workflow-date-stage>svg{color:#253b50}.workflow-date-row.completed .workflow-date-stage>svg{color:#12804c}.workflow-date-stage-label{display:flex;align-items:baseline;gap:7px;min-width:0}.workflow-date-stage-label strong{flex:none;color:#253747;font-size:12px}.workflow-date-stage-label small{overflow:hidden;color:#657485;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.workflow-date-row input[type=date]{box-sizing:border-box;width:100%;height:29px;min-width:0;padding:3px 6px;border:1px solid #d9e0e5;border-radius:6px;background:#fff;color:#394b5d;font:inherit;font-size:11px}.workflow-date-row input[type=date]:focus{outline:2px solid #b7c7d4;outline-offset:1px}.workflow-date-row input[type=date]:disabled{background:#f4f6f7;color:#788693}.workflow-date-stage:disabled{cursor:default}.workflow-date-validation{display:flex;align-items:center;gap:6px;min-width:0;color:#526275;font-size:11px;white-space:nowrap}.workflow-date-validation input[type=checkbox]{width:16px;height:16px;flex:none;accent-color:#14804d}.workflow-date-validation-text,.workflow-date-readonly{overflow:hidden;color:#657485;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.workflow-date-row-substep{border-style:dashed}.workflow-date-row-field{background:#fbfcfd}.workflow-date-grid>.empty{grid-column:1/-1;margin:4px 0;padding:10px;text-align:center}.workflow-date-hint{margin:7px 2px 0;color:#657687;font-size:10px}@media(max-width:650px){.workflow-date-board{padding:9px}.workflow-date-board-heading{align-items:flex-start}.workflow-date-board-heading p{max-width:220px}.workflow-date-board-heading button{padding:7px 8px;font-size:10px}.workflow-date-grid-header,.workflow-date-row{grid-template-columns:minmax(100px,1fr) minmax(95px,112px) minmax(95px,112px);gap:5px}.workflow-date-grid-header{padding-left:5px;padding-right:5px;font-size:9px}.workflow-date-row{min-height:35px;padding:3px}.workflow-date-stage{gap:5px;padding:2px}.workflow-date-stage-label{display:grid;gap:0;line-height:1.15}.workflow-date-stage-label strong{font-size:11px}.workflow-date-stage-label small{font-size:9px}.workflow-date-row input[type=date]{height:27px;padding:2px;font-size:10px}.workflow-date-validation{gap:3px;font-size:9px}.workflow-date-validation input[type=checkbox]{width:14px;height:14px}.workflow-date-validation-text,.workflow-date-readonly{font-size:9px}}@media(max-width:360px){.workflow-date-grid-header,.workflow-date-row{grid-template-columns:minmax(86px,1fr) minmax(82px,94px) minmax(82px,94px);gap:3px}.workflow-date-board-heading p{font-size:10px}}.app{overflow:clip}.sidebar{position:sticky;top:0;align-self:flex-start;z-index:20;transition:width .18s ease}.sidebar-top{display:flex;align-items:center;justify-content:space-between;gap:5px;min-height:30px;margin:0 4px 10px}.sidebar-top .menu-title{margin:0}.sidebar-toggle{display:grid;place-items:center;width:30px;height:30px;flex:none;padding:0;border:0;border-radius:8px;background:transparent;color:#627080}.sidebar-toggle:hover{background:#eef0f2;color:#202d3c}.nav-label{display:block}.sidebar.sidebar-collapsed{width:68px;padding-right:7px;padding-left:7px}.sidebar-collapsed .sidebar-top{justify-content:center;margin-right:0;margin-left:0}.sidebar-collapsed .menu-title,.sidebar-collapsed .nav-label{display:none}.sidebar-collapsed .nav{padding-right:4px;padding-left:4px}@media(max-width:650px){.sidebar{top:0;width:100%;height:auto;max-height:none;flex-direction:row;align-items:center;gap:4px;overflow-x:auto}.sidebar-top{flex:none;margin:0 4px 0 0}.sidebar-toggle{width:32px;height:32px}.sidebar .nav{min-width:75px;flex:0 0 75px}.sidebar.sidebar-collapsed{width:100%;padding:8px}.sidebar-collapsed .sidebar-top{margin:0 4px 0 0}.sidebar.sidebar-collapsed .nav{min-width:44px;flex:1 0 44px;width:auto;padding:10px 4px}}.client-overview-grid{display:grid;grid-template-columns:minmax(0,1.16fr) minmax(310px,.84fr);align-items:start;gap:18px;margin-top:18px}.client-overview-column{min-width:0}.client-overview-left{display:grid;gap:14px}.client-overview-left .client-tasks,.client-overview-left .workflow-date-board,.client-overview-right .project-sheet-card{margin:0}.workflow-stage-panel.workflow-stage-detail-wide{margin-top:22px;padding:0;border:0;border-radius:0;background:transparent}.workflow-stage-detail-wide .workflow-stage-heading{padding:0 0 14px;border:0}@media(max-width:880px){.client-overview-grid{grid-template-columns:minmax(0,1fr)}}.project-budget-list{display:grid;gap:0;margin-top:12px}.project-budget-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:12px;padding:9px 0;border-bottom:1px solid #edf0f2}.project-budget-row>span{color:#586879;font-size:12px}.project-budget-row>div{display:grid;justify-items:end;gap:3px;min-width:0;text-align:right}.project-budget-row strong{color:#253343;font-size:13px}.project-budget-row small{max-width:240px;color:#7a8794;font-size:10px;line-height:1.3}.project-total-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;padding-top:12px;color:#263747;font-size:13px;font-weight:700}.project-total-row strong{font-size:18px}.project-budget-note{margin:6px 0 0;color:#758290;font-size:10px;line-height:1.4}.project-cost-editor{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);align-items:end;gap:10px;padding:10px;border:1px solid #e5eaee;border-radius:9px;background:#fbfcfd}.project-cost-editor-optional{grid-template-columns:minmax(140px,.9fr) minmax(145px,.7fr) minmax(190px,1fr)}.project-cost-editor>label:not(.project-check-field),.project-partner-control>label{display:grid;gap:6px;min-width:0;color:#435568;font-size:11px;font-weight:600}.project-cost-editor input:not([type=checkbox]),.project-partner-control input:not([type=checkbox]){box-sizing:border-box;width:100%;min-width:0;height:36px;padding:8px;border:1px solid #cbd5de;border-radius:7px;background:#fff;color:#253343;font:inherit;font-size:12px}.project-cost-editor input:disabled{background:#f0f2f4;color:#8a939c}.project-partner-control{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:7px;min-width:0}.project-partner-picker{position:relative;min-width:0}.project-partner-picker>summary{display:block;max-width:190px;min-height:36px;overflow:hidden;padding:9px 10px;border:1px solid #ccd6df;border-radius:7px;background:#fff;color:#435568;font-size:11px;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;list-style:none}.project-partner-picker>summary::-webkit-details-marker{display:none}.project-partner-picker>summary:after{content:"⌄";float:right;margin-left:6px;color:#6c7b89}.project-partner-options{position:absolute;z-index:30;top:calc(100% + 4px);right:0;width:min(290px,75vw);max-height:190px;overflow:auto;padding:7px;border:1px solid #cbd5de;border-radius:9px;background:#fff;box-shadow:0 10px 24px #1c2b392e}.project-partner-options>label{display:flex;align-items:flex-start;gap:8px;padding:7px;border-radius:6px;color:#33475a;font-size:11px;cursor:pointer}.project-partner-options>label:hover{background:#f1f5f7}.project-partner-options input{flex:none;width:15px;height:15px;margin:0;accent-color:#087a48}.project-partner-options p{margin:4px;color:#758290;font-size:11px;line-height:1.4}.project-form-section.project-budget-editor{gap:10px}.project-budget-editor>.project-cost-editor .project-check-field{display:flex!important;grid-template-columns:auto 1fr!important;align-items:center;gap:8px!important;color:#435568!important;font-size:11px!important;font-weight:600!important}.project-budget-editor .project-calculation-result{margin-top:2px}@media(max-width:650px){.project-budget-row{gap:8px}.project-budget-row small{max-width:170px}.project-cost-editor,.project-cost-editor-optional{grid-template-columns:1fr}.project-partner-control{grid-template-columns:minmax(0,1fr) auto}.project-partner-picker>summary{max-width:150px}}.settings-panel{padding:22px}.settings-heading{align-items:flex-start;gap:16px}.settings-heading h2{display:flex;align-items:center;gap:8px;margin:0}.settings-heading p{margin:7px 0 0;color:#687789;font-size:13px}.settings-tabs{display:flex;gap:6px;margin:6px 0 18px;padding-bottom:8px;border-bottom:1px solid #e4e9ee;overflow-x:auto}.settings-tabs button{flex:none;padding:9px 12px;border:1px solid transparent;border-radius:8px;background:transparent;color:#536477;font:inherit;font-size:13px;cursor:pointer}.settings-tabs button.selected{border-color:#d5e0e8;background:#f2f6f8;color:#1f2d3d;font-weight:700}.settings-section>p{margin:0 0 14px;color:#627286;font-size:13px}.settings-table-wrap{width:100%;overflow-x:auto;border:1px solid #e1e7ec;border-radius:10px}.settings-table{width:100%;border-collapse:collapse;font-size:13px}.settings-table th{padding:10px 12px;background:#f7f9fb;color:#526275;text-align:left;white-space:nowrap;font-size:11px;text-transform:uppercase;letter-spacing:.04em}.settings-table td{padding:8px 10px;border-top:1px solid #edf0f2;color:#334155;vertical-align:middle}.settings-table tr.selected td{background:#f4f8fc}.settings-table input:not([type=checkbox]):not([type=color]),.settings-table select{box-sizing:border-box;width:100%;min-width:110px;height:36px;padding:7px 9px;border:1px solid #cbd5de;border-radius:7px;background:#fff;color:#263547;font:inherit}.settings-table input[type=checkbox]{width:17px;height:17px;accent-color:#198754}.settings-table input.settings-number{width:70px;min-width:60px}.settings-table input.settings-color-input{width:42px;height:34px;padding:3px;border:1px solid #cbd5de;border-radius:7px;background:#fff}.settings-order{display:flex;gap:4px}.settings-order button{width:26px;height:26px;padding:0;border:1px solid #d9e0e6;border-radius:6px;background:#fff;color:#42566b;cursor:pointer}.settings-order button:hover,.settings-code-button:hover{background:#edf4f8}.settings-code-button{padding:5px 7px;border:1px solid transparent;border-radius:6px;background:transparent;color:#1f2d3d;font:inherit;font-weight:700;cursor:pointer}.settings-add-row{display:flex;align-items:center;gap:8px;margin:12px 0}.settings-add-row>input{box-sizing:border-box;width:min(360px,100%);height:38px;padding:8px 10px;border:1px solid #cbd5de;border-radius:7px;font:inherit}.settings-add-row .secondary{display:inline-flex;align-items:center;gap:6px}.settings-stage-details{display:grid;gap:10px;margin-top:20px;padding-top:16px;border-top:1px solid #e5eaee}.settings-stage-details h3,.settings-stage-details h4{margin:0;color:#293748}.settings-stage-details h4{margin-top:6px;font-size:14px}.settings-stage-details .settings-add-row{justify-content:flex-end;flex-wrap:wrap}.workflow-archive-toggle{display:inline-flex;align-items:center;gap:8px;margin:0 0 12px;color:#53657a;font-size:12px}.workflow-archive-toggle input{width:16px;height:16px;accent-color:#198754}.settings-stage-details .settings-table:has(th:nth-child(9)){min-width:1050px}.settings-stage-details .settings-table:has(th:nth-child(7)){min-width:800px}.icon-button.danger{display:grid;place-items:center;width:30px;height:30px;border:1px solid #f0d2d2;border-radius:7px;background:#fff;color:#bd3c3c;cursor:pointer}.icon-button.danger:hover{background:#fff4f4}.project-type-badge{display:inline-flex;align-items:center;width:fit-content;margin:4px 0;padding:4px 9px;border:1px solid #cfe7dc;border-radius:999px;background:#effaf4;color:#12683f;font-size:11px;font-weight:700}.project-sheet-heading .eyebrow{letter-spacing:.08em}@media(max-width:650px){.settings-panel{padding:15px}.settings-heading{align-items:stretch;flex-direction:column}.settings-heading>button{align-self:flex-start}.settings-tabs{margin-right:-4px}.settings-table{min-width:600px}.settings-add-row{align-items:stretch;flex-direction:column}.settings-add-row>input{width:100%}.settings-stage-details .settings-add-row{align-items:stretch}}.client-row.has-project-type{padding-left:37px}.client-row.has-project-type:before{width:29px}.client-project-type-rail{position:absolute;z-index:1;top:7px;bottom:7px;left:0;display:flex;align-items:center;justify-content:center;width:29px;overflow:hidden;color:#263445;font-size:9px;font-weight:800;letter-spacing:.04em;line-height:1;writing-mode:vertical-rl;transform:rotate(180deg)}.client-edit-icon-button{display:inline-grid;place-items:center;flex:none;width:28px;height:28px;padding:0;border:1px solid #d9e1e8;border-radius:7px;background:#fff;color:#526579;cursor:pointer}.client-edit-icon-button:hover{border-color:#9eacb9;background:#f5f8fa;color:#1f2d3d}.partner-type-pill{display:inline-flex;align-items:center;padding:3px 7px;border:1px solid transparent;border-radius:999px;font-size:10px;line-height:1.2}.project-activity-preview{display:flex;align-items:center;gap:6px;margin-top:5px;color:#657386;font-size:11px}.project-activity-preview i{width:9px;height:9px;flex:none;border-radius:50%}.project-partner-option-content{display:flex;flex:1;align-items:center;justify-content:space-between;gap:6px;min-width:0}.project-add-partner{display:flex;align-items:center;gap:5px;width:100%;margin-top:5px;padding:7px;border:1px dashed #b7c5d0;border-radius:6px;background:#f8fafb;color:#28415a;font:inherit;font-size:11px;cursor:pointer}.project-add-partner:hover{background:#eef4f7}.project-inline-partner-form{display:grid;gap:7px;margin-top:8px;padding:9px;border:1px solid #dce4ea;border-radius:8px;background:#f8fafb}.project-inline-partner-form label{display:grid;gap:4px;color:#526579;font-size:11px}.project-inline-partner-form input{box-sizing:border-box;width:100%;min-height:32px;padding:6px 8px;border:1px solid #cbd5de;border-radius:6px;background:#fff;color:#263547;font:inherit}.project-inline-partner-form p{margin:0;color:#657386;font-size:10px}.project-inline-partner-form .form-error{font-size:11px}.project-inline-partner-form button{justify-self:end;display:flex;align-items:center;gap:5px;padding:7px 9px;font-size:11px}.project-partner-notice{grid-column:1 / -1;color:#087a48;font-size:10px}.day-panel-heading{align-items:center}.day-panel-heading p{margin:5px 0 0;color:#687789;font-size:13px}.day-calendar-open{display:inline-flex;align-items:center;white-space:nowrap;text-decoration:none}.day-dashboard-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);gap:14px}.day-dashboard-card{min-width:0;padding:15px;border:1px solid #e2e8ed;border-radius:12px;background:#fff}.day-section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.day-section-heading h3{margin:0;color:#263547;font-size:16px}.day-section-heading button{flex:none;padding:7px 9px;font-size:11px}.day-task-count{display:inline-grid;min-width:25px;height:25px;place-items:center;border-radius:50%;background:#eef3f6;color:#42566b;font-size:12px;font-weight:700}.google-calendar-frame{display:block;width:100%;height:590px;border:0;border-radius:8px;background:#f8fafb}.day-calendar-empty{display:grid;min-height:260px;place-items:center;padding:20px;border:1px dashed #cbd5de;border-radius:9px;color:#738193;text-align:center}.calendar-config{display:grid;gap:9px;margin-top:11px;padding:11px;border-radius:9px;background:#f7f9fb}.calendar-config label{display:grid;gap:5px;color:#526579;font-size:12px;font-weight:600}.calendar-config input{box-sizing:border-box;width:100%;min-height:38px;padding:8px 9px;border:1px solid #cbd5de;border-radius:7px;background:#fff;color:#263547;font:inherit;font-weight:400}.calendar-config small{color:#687789;font-size:11px;line-height:1.45}.calendar-config-actions{display:flex;justify-content:flex-end;gap:7px}.calendar-config-actions button{padding:7px 10px;font-size:12px}.day-task-list{display:grid;gap:8px}.day-task-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px;border:1px solid #e5eaee;border-radius:9px;background:#fff}.day-task-row.overdue{border-color:#f0c8a7;background:#fff9f3}.day-task-row>div{min-width:0}.day-task-row strong{color:#293748;font-size:13px}.day-task-row p{margin:4px 0;color:#687789;font-size:11px}.day-task-row small{color:#7a8794;font-size:10px}.day-task-row button{flex:none;padding:6px 8px;font-size:11px}.day-task-empty{padding:32px 10px}@media(max-width:800px){.day-dashboard-grid{grid-template-columns:1fr}.google-calendar-frame{height:520px}}@media(max-width:560px){.client-row.has-project-type{padding-left:31px}.client-row.has-project-type:before,.client-project-type-rail{width:23px}.client-project-type-rail{font-size:8px}.day-panel-heading,.day-task-row{align-items:flex-start;flex-direction:column}.day-task-row button{align-self:flex-end}}
