.pipeline-config-button{border:1px solid #E2E8F0;border-radius:4px;background:white;color:#1D4ED8;font-size:10px;padding:9px 12px;min-height:36px;white-space:nowrap}
.pipeline-workspace-dialog{position:fixed!important;inset:0 0 0 66px!important;margin:0!important;width:calc(100vw - 66px)!important;max-width:none!important;height:100dvh!important;max-height:100dvh!important;padding:0!important;border:0!important;border-radius:0!important;background:#F8FAFC;overflow:hidden}
.pipeline-workspace-dialog #modal-content{padding:0;height:100%}.pipeline-workspace-dialog #modal-content>.modal-head{display:none}.pipeline-editor{height:100%;display:flex;flex-direction:column;color:#334155;font-size:12px}
.pipeline-editor-top{display:flex;align-items:center;gap:12px;min-height:74px;padding:15px 25px;background:white;border-bottom:1px solid #F1F5F9;flex-shrink:0}.pipeline-editor-top>div{flex:1}.pipeline-editor-top>div>span{font-size:9px;color:#64748B;letter-spacing:.12em}.pipeline-editor-top h2{font-size:19px;letter-spacing:-.4px;margin:4px 0 0;font-weight:600;color:#1E40AF}.pipeline-editor-top button{font-size:11px;min-height:34px;border-radius:4px;padding:8px 15px}.pipeline-dirty{font-size:10px;color:#64748B;margin-right:8px}
.pipeline-editor-layout{display:grid;grid-template-columns:235px minmax(0,1fr);min-height:0;flex:1}.pipeline-editor-layout>aside{padding:26px 20px;background:#F8FAFC;border-right:1px solid #F1F5F9;overflow:auto}.pipeline-editor-layout>aside h3{font-size:12px;margin:0 0 12px;color:#1D4ED8}.pipeline-editor-layout>aside p{font-size:11px;line-height:1.8;color:#64748B}.pipeline-editor-layout>aside>button{display:block;width:100%;font-size:11px;text-align:left;margin-top:10px;min-height:35px;background:white;border:1px solid #EFF6FF;border-radius:5px;color:#2563EB;padding:8px 10px}.pipeline-info{display:flex;flex-direction:column;gap:7px;padding:17px;background:#F8FAFC;border-radius:8px;margin:18px 0;color:#2563EB}.pipeline-info b{font-size:20px;font-weight:500}.pipeline-info span{font-size:11px}.pipeline-editor-layout>aside .pipeline-info-note{font-size:10px;margin-top:25px;color:#64748B}.pipeline-save-error{color:#b74848!important;overflow-wrap:anywhere}
.pipeline-editor-grid{display:flex;overflow:auto;min-height:0;overscroll-behavior:contain;background:white;align-items:stretch}.pipeline-edit-column{position:relative;min-width:285px;width:285px;flex-shrink:0;border-right:1px solid #F1F5F9;background:repeating-linear-gradient(to bottom,transparent 0,transparent 85px,#F1F5F9 85px,#F1F5F9 86px);min-height:100%}.pipeline-stage-header{display:flex;justify-content:space-between;gap:5px;padding:18px 15px 14px;min-height:83px;align-items:center;background:#F8FAFC;border-bottom:3px solid #94A3B8;position:sticky;top:0;z-index:1}.pipeline-stage-header>div:first-child{flex:1;min-width:0}.pipeline-stage-header>div>span{font-size:9px;color:#94A3B8;display:block;margin-bottom:6px}.pipeline-stage-header button[data-stage-edit]{padding:0;border:0;background:transparent;text-align:left;max-width:100%;line-height:1.5;font-size:12px;font-weight:600;color:#475569;min-height:20px;overflow-wrap:anywhere}.pipeline-stage-header small{color:#94A3B8;font-size:11px;font-weight:400}.pipeline-stage-order{display:flex;gap:3px}.pipeline-stage-order button{padding:0;border:0;background:#F8FAFC;color:#64748B;min-height:22px;height:22px;width:22px;font-size:12px;border-radius:3px}.pipeline-stage-order>span{color:#94A3B8}.pipeline-stage-hint{padding:14px 15px;background:#F8FAFC;border-bottom:1px solid #F1F5F9;font-size:10px;color:#64748B;min-height:60px;line-height:1.7;overflow-wrap:anywhere}.pipeline-stage-hint button{border:0;background:transparent;padding:0 5px;font-size:11px;color:#64748B;min-height:20px}.pipeline-trigger-list{padding:14px 12px;display:flex;flex-direction:column;gap:12px}.pipeline-trigger-card{display:flex;align-items:start;gap:10px;padding:13px 11px;min-height:95px;text-align:left;background:#f0faf4;border:1px solid #cce8d5;border-radius:5px;width:100%;box-shadow:0 2px 4px #24493204}.pipeline-trigger-card:hover{background:#eaf7ef;border-color:#a4d5b4}.pipeline-trigger-icon{border:1px solid #61b985;border-radius:50%;color:#2d9d67;font-size:16px;width:25px;height:25px;display:grid;place-items:center;flex-shrink:0}.pipeline-trigger-card>span:last-child{min-width:0}.pipeline-trigger-card small{display:block;font-size:9px;color:#6a8c7b;line-height:1.6;font-weight:400}.pipeline-trigger-card strong{display:block;font-size:12px;color:#365c49;margin:5px 0;overflow-wrap:anywhere}.pipeline-trigger-card em{font-size:9px;color:#7d968a;font-style:normal;font-weight:400}.pipeline-trigger-card.is-paused{background:#F8FAFC;border-color:#F1F5F9}.pipeline-trigger-card.is-paused strong,.pipeline-trigger-card.is-paused small{color:#64748B}.pipeline-add-trigger{min-height:48px;border:1px dashed #DBEAFE;border-radius:5px;background:#ffffff;color:#64748B;font-size:11px;font-weight:400}.pipeline-insert-stage{position:absolute;right:-13px;top:71px;z-index:3;display:grid;place-items:center;border:1px solid #F1F5F9;background:white;border-radius:50%;width:25px;height:25px;min-height:25px;padding:0;color:#94A3B8;font-size:16px}
.pipeline-subdialog{width:min(730px,94vw);max-width:none;max-height:90dvh;padding:24px;border:1px solid #EFF6FF;border-radius:10px;background:#ffffff;color:#1D4ED8;box-shadow:0 20px 70px #1E40AF30;overflow:auto}.pipeline-subdialog::backdrop{background:#0F172A45}.pipeline-subdialog>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;gap:10px}.pipeline-subdialog h2{font-size:18px;letter-spacing:-.3px;margin:0;color:#1D4ED8}.pipeline-subdialog>header button{border:0;background:#F8FAFC;color:#64748B;border-radius:50%;width:27px;height:27px;min-height:27px;padding:0;font-size:12px}.pipeline-subdialog label{font-size:11px;color:#475569;margin:13px 0 5px;display:block;font-weight:500}.pipeline-subdialog input,.pipeline-subdialog select,.pipeline-subdialog textarea{font-size:12px;border-radius:5px;min-height:35px;color:#1D4ED8;margin-top:5px;border-color:#DBEAFE}.pipeline-subdialog input[type=color]{height:42px;width:100%;padding:5px}.pipeline-subdialog textarea{min-height:75px}.pipeline-subdialog p,.pipeline-subdialog small{font-size:10px;line-height:1.8;color:#64748B}.pipeline-subdialog .error{color:#b44343}.pipeline-subdialog button{font-size:11px;min-height:33px;border-radius:4px}.pipeline-dialog-actions{display:flex;gap:9px;margin-top:23px;justify-content:flex-end}.pipeline-dialog-actions .danger{margin-right:auto;color:#b55b60;background:#fff5f5;border-color:#edcfd2}.pipeline-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.pipeline-check{display:flex!important;gap:8px;align-items:center}.pipeline-check input{width:15px;height:15px;min-height:15px;margin:0;accent-color:#60A5FA}.pipeline-action-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:20px 0 3px}.pipeline-action-gallery button{display:flex;flex-direction:column;align-items:center;padding:22px 12px;gap:12px;border:1px solid #DBEAFE;background:#F8FAFC;min-height:150px;border-radius:7px}.pipeline-action-gallery button:hover{border-color:#93C5FD;background:#EFF6FF}.pipeline-action-gallery button>span{display:grid;place-items:center;font-size:30px;color:#60A5FA;height:40px}.pipeline-action-gallery strong{font-size:12px;color:#2563EB}.pipeline-action-gallery small{font-size:10px;font-weight:400;color:#64748B;line-height:1.7}.pipeline-conditions{border:1px solid #F1F5F9;background:#F8FAFC;border-radius:7px;padding:14px;margin:18px 0}.pipeline-conditions h3{font-size:12px;color:#475569;margin:0 0 12px}.pipeline-conditions>small{display:block;margin-top:8px}.pipeline-condition-row{display:grid;grid-template-columns:1fr 110px 1fr 25px;gap:6px;align-items:center;margin-bottom:7px}.pipeline-condition-row>div[hidden]{display:none}.pipeline-condition-row input,.pipeline-condition-row select{font-size:10px;margin:0;min-width:0;min-height:32px;padding:5px}.pipeline-condition-row>button{padding:0;border:0;min-height:25px;color:#a17d80;background:transparent}.pipeline-condition-row>div{display:flex;gap:5px}.pipeline-job-list{display:flex;flex-direction:column;gap:10px;margin-top:18px}.pipeline-job-list article{padding:13px;border:1px solid #F1F5F9;border-radius:5px;background:#F8FAFC}.pipeline-job-list header{display:flex;justify-content:space-between;gap:10px;font-size:11px}.pipeline-job-list header span{font-size:9px;padding:2px 6px;border-radius:3px;background:#F8FAFC;color:#64748B}.pipeline-job-list header .job-failed{background:#fff0f0;color:#b45757}.pipeline-job-list header .job-done{background:#e9f8ef;color:#408566}.pipeline-job-list p{margin:7px 0;color:#475569}.pipeline-job-list small{font-size:10px}
@media(max-width:1000px){.pipeline-editor-layout{grid-template-columns:190px minmax(0,1fr)}.pipeline-editor-layout>aside{padding:20px 14px}.pipeline-dirty{display:none}.pipeline-editor-top{padding:13px 18px}.pipeline-config-button{font-size:9px;padding:7px}}
@media(max-width:600px){.pipeline-workspace-dialog{inset:0!important;width:100vw!important}.pipeline-editor-top{min-height:66px;padding:12px;gap:7px}.pipeline-editor-top h2{font-size:15px}.pipeline-editor-top>div>span{font-size:7px}.pipeline-editor-top button{font-size:10px;padding:7px 9px;min-height:31px}.pipeline-editor-layout{display:flex;flex-direction:column}.pipeline-editor-layout>aside{padding:10px 12px;display:flex;gap:8px;flex-shrink:0;overflow:auto;border-right:0;border-bottom:1px solid #F1F5F9}.pipeline-editor-layout>aside>:is(h3,p,.pipeline-info){display:none}.pipeline-editor-layout>aside>button{width:auto;white-space:nowrap;margin:0;min-height:30px;font-size:10px}.pipeline-editor-layout>aside .pipeline-save-error:not(:empty){display:block!important;min-width:180px}.pipeline-editor-grid{flex:1}.pipeline-edit-column{min-width:275px;width:275px}.pipeline-subdialog{padding:17px;max-height:92dvh}.pipeline-action-gallery{grid-template-columns:1fr 1fr;gap:9px}.pipeline-action-gallery button{padding:16px 9px;min-height:135px}.pipeline-form-grid{grid-template-columns:1fr;gap:0}.pipeline-condition-row{grid-template-columns:1fr 90px 22px}.pipeline-condition-row>div{grid-row:2;grid-column:1/3}.pipeline-condition-row>button{grid-column:3;grid-row:1}.pipeline-config-button{font-size:9px;padding:6px;min-height:31px}.pipeline-dialog-actions{flex-wrap:wrap}.pipeline-subdialog .pipeline-check{line-height:1.8}}
/* Readable funnel typography: keep the compact workflow, raise text sizes. */
.pipeline-shell .column-head{height:auto;min-height:60px;padding-top:9px;padding-bottom:10px}
.pipeline-shell .column-head h3{font-size:14px;line-height:1.5;font-weight:600}
.pipeline-shell .stage-total{font-size:12px;line-height:1.5}
.pipeline-shell .compact-summary>div>span{font-size:12px;color:#64748B}
.pipeline-shell .topbar-search input[data-advanced-filter]{font-size:14px}
.pipeline-shell .topbar-total{font-size:12px}
.pipeline-shell .lead-card{padding:9px 8px;min-height:118px}
.pipeline-shell .card-customer{font-size:13px;line-height:1.4}
.pipeline-shell .card-phone{font-size:12px;line-height:1.5}
.pipeline-shell .card-title{font-size:14px;line-height:1.5}
.pipeline-shell .card-value{font-size:12px;line-height:1.5}
.pipeline-shell .card-owner,.pipeline-shell .card-task{font-size:11px;line-height:1.5}
.pipeline-shell .compact-card-top time{font-size:10px}
.pipeline-shell .tag,.pipeline-shell .card-custom-fields{font-size:10px}
.pipeline-config-button{font-size:13px;min-height:38px;padding:9px 13px}
.pipeline-editor{font-size:14px}
.pipeline-editor-top h2{font-size:21px}
.pipeline-editor-top>div>span{font-size:10px}
.pipeline-editor-top button{font-size:13px;min-height:38px}
.pipeline-dirty{font-size:12px;color:#64748B}
.pipeline-editor-layout>aside h3{font-size:14px}
.pipeline-editor-layout>aside p{font-size:13px;color:#64748B}
.pipeline-editor-layout>aside>button{font-size:13px;min-height:39px}
.pipeline-editor-layout>aside .pipeline-info-note{font-size:12px;color:#64748B}
.pipeline-info span{font-size:13px}
.pipeline-stage-header{min-height:90px}
.pipeline-stage-header>div>span{font-size:11px;color:#64748B}
.pipeline-stage-header button[data-stage-edit]{font-size:14px;line-height:1.5}
.pipeline-stage-header small{font-size:12px}
.pipeline-stage-hint{font-size:12px;color:#64748B;min-height:67px}
.pipeline-trigger-card small{font-size:11px;color:#5d7d6c}
.pipeline-trigger-card strong{font-size:14px;line-height:1.5}
.pipeline-trigger-card em{font-size:11px}
.pipeline-add-trigger{font-size:13px;min-height:48px;color:#475569}
.pipeline-subdialog h2{font-size:20px}
.pipeline-subdialog label{font-size:13px}
.pipeline-subdialog input,.pipeline-subdialog select,.pipeline-subdialog textarea{font-size:14px;min-height:39px}
.pipeline-subdialog p,.pipeline-subdialog small{font-size:12px;color:#64748B}
.pipeline-subdialog button{font-size:13px;min-height:37px}
.pipeline-conditions h3{font-size:14px}
.pipeline-condition-row input,.pipeline-condition-row select{font-size:12px;min-height:36px}
.pipeline-action-gallery strong{font-size:14px}
.pipeline-action-gallery small{font-size:12px}
.pipeline-job-list header{font-size:13px}
.pipeline-job-list header span,.pipeline-job-list small{font-size:12px}
@media(max-width:600px){.pipeline-config-button{font-size:12px;padding:7px 9px;min-height:33px}.pipeline-editor-top h2{font-size:17px}.pipeline-editor-top>div>span{font-size:9px}.pipeline-editor-top button{font-size:12px;padding:7px 10px}.pipeline-editor-layout>aside>button{font-size:12px;min-height:34px}.pipeline-stage-header button[data-stage-edit]{font-size:14px}.pipeline-shell .compact-summary>div>span{font-size:12px}.pipeline-shell .card-title{font-size:14px}.pipeline-subdialog .pipeline-check input{min-height:15px}}
.pipeline-workspace-dialog .pipeline-edit-column{width:var(--pipeline-edit-width,285px);min-width:var(--pipeline-edit-width,285px);flex:0 0 var(--pipeline-edit-width,285px)}
/* Kanban text contrast only: keep all existing typography and geometry. */
.pipeline-shell .board .card-customer,
.pipeline-shell .board .card-title,
.pipeline-shell .board .card-value{color:#334155}
.pipeline-shell .board .card-phone{color:#334155}
.pipeline-shell .board .compact-card-top time,
.pipeline-shell .board .card-owner,
.pipeline-shell .board .card-task{color:#475569}
.pipeline-shell .board .tag{color:#475569}
.pipeline-shell .board .card-custom-fields>span{color:#334155}
.pipeline-shell .board .card-task.is-overdue{color:#ad315b}
.pipeline-shell .board .column-head h3{color:#0F172A}
.pipeline-shell .board .stage-total{color:#475569}
