/* WorkLilt Sales — a calm, connected path from conversation to delivery. */
.sales-workspace{min-width:0;--sales-soft:#f1f5eb;--sales-border:#dfe7d8;--sales-muted:#637266}
.sales-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:0 0 25px}
.sales-summary article{position:relative;overflow:hidden;display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:23px 25px;border:1px solid var(--sales-border);border-radius:13px;background:linear-gradient(130deg,#fffefa,#f5f8ef);box-shadow:0 4px 18px #25432b04}
.sales-summary article:before{content:'';position:absolute;inset:0 auto 0 0;width:3px;background:#d3e2c3}.sales-summary article:last-child:before{background:#86a96c}.sales-summary article.sales-summary-attention:before{background:#d6b97c}
.sales-summary-label{color:#5d705f;font-size:12px}.sales-summary strong{color:#164f31;font-size:31px;line-height:1.15;font-weight:500;letter-spacing:-1.1px;font-variant-numeric:tabular-nums}.sales-summary small{font-size:11px;line-height:1.5;color:#6d786d}
.sales-surface{background:#fffefa;border:1px solid var(--sales-border);border-radius:16px;overflow:hidden;box-shadow:0 7px 28px #24422a04;min-width:0}
.sales-surface-head{display:flex;justify-content:space-between;align-items:center;gap:25px;padding:27px 27px 25px;background:linear-gradient(115deg,#f0f5e7 0%,#f7f8f0 65%,#edf4e5 100%);border-bottom:1px solid #e0e8d8;position:relative}
.sales-kicker{display:block;font-size:9px;font-weight:600;letter-spacing:1.6px;line-height:1.6;color:#527046;margin:0 0 9px}.sales-surface-head h2{font-size:24px;line-height:1.3;letter-spacing:-.65px;color:#20472e}.sales-surface-head p:not(.sales-kicker){font-size:12px;line-height:1.7;color:#647260;margin-top:7px}.sales-create{min-height:44px;flex-shrink:0}
.sales-controls{padding:23px 24px 14px;display:flex;gap:15px;align-items:center;justify-content:space-between}.sales-stage-controls{display:flex;align-items:center;gap:5px;flex-wrap:wrap;min-width:0}.sales-stage-controls button{display:flex;gap:7px;align-items:center;justify-content:center;min-height:40px;font-size:12px;padding:9px 11px;border-radius:7px;white-space:nowrap;border:1px solid transparent;color:#596b5d}.sales-stage-controls button:hover{background:#f1f5eb}.sales-stage-controls button[aria-pressed=true]{color:#115d33;border-color:#c5d9b2;background:#e9f1df;font-weight:600}.sales-stage-controls button span{display:inline-grid;place-items:center;min-width:20px;padding:1px 5px;font-size:10px;border-radius:9px;background:#eef2e8;color:#67775c}.sales-stage-controls button[aria-pressed=true] span{background:#d8e7c9;color:#2d5e2f}
.sales-type-control{display:flex;align-items:center;gap:8px;margin:0;flex-shrink:0;font-size:11px;color:#687769}.sales-type-control>span{display:none}.sales-type-control select{font-size:12px;margin:0;padding:10px 30px 10px 11px;border-color:#dfe6d9;background:#fafbf6;width:auto;min-height:40px}
.sales-result-caption{display:flex;justify-content:space-between;align-items:center;gap:14px;min-height:38px;padding:0 27px 15px;font-size:11px;color:#73806e}.sales-result-caption button{padding:5px 0;font-size:11px;color:#115d33;text-decoration:underline;text-underline-offset:3px}.sales-list{min-width:0}
.sales-list-labels,.sales-opportunity-row{display:grid;grid-template-columns:minmax(180px,1.5fr) minmax(160px,1.2fr) minmax(110px,.8fr) minmax(95px,.65fr);gap:23px;align-items:center}
.sales-list-labels{background:#f8faf3;border-top:1px solid #edf0e7;border-bottom:1px solid #e7ecdf;color:#7a8573;padding:12px 27px;font-size:10px;letter-spacing:.3px}.sales-list-labels span:last-child{text-align:right}
.sales-opportunity-row{width:100%;min-height:112px;text-align:left;padding:23px 27px;border-bottom:1px solid #e9ede3;background:transparent;transition:background .2s ease}.sales-opportunity-row:last-child{border-bottom:0}.sales-opportunity-row:hover{background:#f5f8ef}.sales-opportunity-row:focus-visible{outline-offset:-4px}.sales-opportunity-row>span{min-width:0}
.sales-opportunity-name{display:flex;align-items:flex-start;gap:13px;min-width:0}.sales-company-mark{width:39px;height:39px;display:grid;place-items:center;flex-shrink:0;color:#36673e;background:linear-gradient(130deg,#eaf1df,#f3f6ed);border:1px solid #dce6cf;border-radius:11px}.sales-opportunity-name>span:last-child{min-width:0;display:flex;flex-direction:column;gap:4px}.sales-opportunity-name strong{font-size:13px;font-weight:600;line-height:1.5;overflow-wrap:anywhere}.sales-opportunity-name>span>span{color:#657365;font-size:12px;line-height:1.5;overflow-wrap:anywhere}.sales-opportunity-name small{font-size:10px;color:#829075;line-height:1.5}
.sales-opportunity-next{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#48614b;line-height:1.6}.sales-opportunity-next>span{overflow-wrap:anywhere}.sales-opportunity-next small{display:flex;align-items:center;gap:5px;font-size:10px;color:#7a8871;line-height:1.5}.sales-opportunity-next small svg{flex-shrink:0}.sales-followup-attention,.sales-opportunity-next small.sales-followup-attention{color:#926c30}
.sales-opportunity-owner{display:flex;gap:8px;align-items:center;font-size:11px;color:#6b7867;line-height:1.5}.sales-avatar{display:grid;place-items:center;width:27px;height:27px;border-radius:50%;background:#eaf0e2;border:1px solid #dce7cf;color:#5b7550;flex-shrink:0;font-size:9px;font-weight:600}
.sales-opportunity-value{display:flex;flex-direction:column;align-items:flex-end;gap:9px}.sales-opportunity-value>strong{font-size:14px;letter-spacing:-.2px;font-weight:500;color:#244d30;font-variant-numeric:tabular-nums}
.sales-stage-tag{display:inline-flex;align-items:center;gap:5px;border-radius:5px;padding:4px 7px;font-size:9px;line-height:1.4;white-space:nowrap;color:#688052;background:#eef3e7}.sales-stage-tag>span{display:block;width:4px;height:4px;background:currentColor;border-radius:50%}.sales-stage-qualified{background:#e8f0e0;color:#557737}.sales-stage-quoted{background:#f7f0de;color:#897036}.sales-stage-won{background:#e0eede;color:#39713e}.sales-stage-lost{background:#eeeee8;color:#777e74}
.sales-empty{display:flex;flex-direction:column;align-items:center;padding:48px 22px 52px;text-align:center;color:#739064;gap:13px}.sales-empty h3{font-size:17px;font-weight:500;line-height:1.5;letter-spacing:-.2px;color:#38573d;margin:3px 0 0}.sales-empty p{font-size:12px;line-height:1.7;max-width:320px;color:#75816d}.sales-empty button{margin-top:6px;font-size:12px;min-height:44px}.sales-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
/* Opportunity detail is rendered inside the existing shared dialog. */
.opportunity-detail{min-width:0}.opportunity-value-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin:0 0 25px}.opportunity-value-head>div{display:flex;flex-direction:column;gap:6px;min-width:0}.opportunity-value-head .sales-kicker{margin-bottom:2px;font-size:9px;text-transform:uppercase}.opportunity-value-head strong{font-size:37px;line-height:1.2;color:#1e5734;font-weight:500;letter-spacing:-1.2px;font-variant-numeric:tabular-nums}.opportunity-value-head>div>span:last-child{color:#73806b;font-size:13px;line-height:1.6;overflow-wrap:anywhere}.opportunity-value-head>.sales-stage-tag{margin-top:3px;font-size:11px;padding:6px 9px}
.opportunity-progress{display:flex;list-style:none;padding:0;margin:0 0 25px;gap:0;isolation:isolate}.opportunity-progress li{position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;width:25%;font-size:10px;color:#819075}.opportunity-progress li:after{content:'';position:absolute;top:11px;height:1px;left:50%;width:100%;background:#e1e8d9;z-index:-1}.opportunity-progress li:last-child:after{display:none}.opportunity-progress li>span:first-child{display:grid;place-items:center;width:24px;height:24px;background:#f2f5ec;border:1px solid #dfe7d5;border-radius:50%;font-size:10px;color:#89977d}.opportunity-progress small{font-size:10px;line-height:1.5;color:inherit}.opportunity-progress li.is-complete>span:first-child{background:#dfeccc;border-color:#cfdfbb;color:#4c7135}.opportunity-progress li.is-current{color:#2c693c}.opportunity-progress li.is-current>span:first-child{background:#17663a;color:white;border-color:#17663a;box-shadow:0 0 0 4px #edf3e6}.opportunity-progress li.is-complete:after{background:#c8dab4}.opportunity-closed-note{font-size:12px;line-height:1.7;padding:14px 16px;background:#f1f2ec;border-radius:9px;margin-bottom:22px;color:#6f7d68}
.opportunity-next-action{padding:20px 21px;background:linear-gradient(120deg,#eef4e5,#f7f8ef);border:1px solid #dce7ce;border-radius:11px;margin-bottom:24px}.opportunity-next-action .sales-kicker{font-size:8px;margin:0 0 9px}.opportunity-next-action h3{font-size:16px;line-height:1.5;color:#31553a;font-weight:500;margin:0 0 10px;overflow-wrap:anywhere}.opportunity-next-action p{display:flex;align-items:center;gap:7px;font-size:12px;line-height:1.5;color:#728267}.opportunity-next-action p.sales-followup-attention{color:#8d6733}
.opportunity-project-link{display:flex;width:100%;align-items:center;gap:13px;background:#f5f8ef;border:1px solid #d7e4cb;border-radius:10px;text-align:left;padding:16px;margin:0 0 24px}.opportunity-project-link:hover{background:#edf4e4}.opportunity-project-link>span:last-child{display:flex;flex-direction:column;gap:4px;min-width:0}.opportunity-project-link small{color:#728466;font-size:10px}.opportunity-project-link strong{font-size:14px;line-height:1.5;font-weight:500;color:#295b36;overflow-wrap:anywhere}.opportunity-project-link>span>span{font-size:10px;color:#648258}
.opportunity-facts{display:grid;grid-template-columns:1fr 1fr;gap:20px 18px;margin:0 0 21px}.opportunity-facts>div{min-width:0}.opportunity-facts dt{font-size:10px;color:#7c8974;margin-bottom:7px}.opportunity-facts dd{font-size:13px;line-height:1.6;overflow-wrap:anywhere;margin:0;color:#3d5940}.opportunity-person{display:flex;align-items:center;gap:7px}.opportunity-person svg{flex-shrink:0;color:#7c9470}
.opportunity-contact-links{display:grid;gap:9px;margin:0 0 24px}.opportunity-contact-links a{display:flex;align-items:center;gap:10px;min-height:39px;padding:9px 12px;background:#f7f8f1;border:1px solid #e5ebdd;border-radius:7px;font-size:12px;color:#47673f;line-height:1.5}.opportunity-contact-links a:hover{background:#eef4e5}.opportunity-contact-links a svg{flex-shrink:0}.opportunity-contact-links a span{overflow-wrap:anywhere;min-width:0}.opportunity-contact-links>p{font-size:12px;color:#8b795a;line-height:1.6}
.opportunity-notes{border-top:1px solid #e3eadb;padding-top:20px;margin:0 0 22px}.opportunity-notes h3{font-size:12px;font-weight:600;color:#4b6549;margin:0 0 10px}.opportunity-notes p{font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;color:#73806d}
.opportunity-history{margin:18px 0 22px;border-top:1px solid #e3eadb;padding-top:12px}.opportunity-history summary{font-size:12px;color:#718167;line-height:1.6;cursor:pointer;padding:8px 0}.opportunity-history summary>span{font-size:10px;color:#89977e;margin-left:5px}.opportunity-history>div{display:flex;gap:10px;padding:12px 0;border-bottom:1px solid #eef1e9}.sales-history-dot{display:block;flex-shrink:0;width:5px;height:5px;margin-top:7px;border-radius:50%;background:#94ae7c}.opportunity-history p{font-size:12px;line-height:1.7;color:#60735a}.opportunity-history small{display:block;font-size:10px;color:#96a08d;margin-top:5px}
.opportunity-detail-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:21px;border-top:1px solid #e2e9d9}.opportunity-detail-actions>button{min-height:44px;font-size:12px}.opportunity-detail-actions>button:not(.primary){border:1px solid #dbe5d1;border-radius:8px;padding:10px 14px;color:#5b7550}.opportunity-action-note{font-size:10px;color:#8b967f;line-height:1.7;margin-top:11px}
@media(max-width:1200px){.sales-controls{align-items:flex-start;flex-direction:column;gap:13px}.sales-type-control>span{display:block}.sales-list-labels,.sales-opportunity-row{grid-template-columns:minmax(170px,1.5fr) minmax(140px,1.2fr) minmax(90px,.7fr) minmax(85px,.65fr);gap:15px}.sales-opportunity-owner{font-size:10px}.sales-summary article{padding:21px}.sales-summary strong{font-size:28px}}
@media(max-width:980px){.sales-opportunity-owner>span:last-child{display:none}.sales-list-labels,.sales-opportunity-row{grid-template-columns:minmax(160px,1.5fr) minmax(145px,1.2fr) 30px minmax(85px,.65fr);gap:13px}.sales-list-labels,.sales-opportunity-row{padding-left:21px;padding-right:21px}.sales-surface-head{padding:23px}.sales-result-caption{padding-left:23px;padding-right:23px}}
@media(max-width:700px){.sales-summary{gap:8px;margin-bottom:18px}.sales-summary article{padding:16px 11px;gap:9px;border-radius:10px}.sales-summary-label{font-size:10px;line-height:1.5}.sales-summary strong{font-size:21px;letter-spacing:-.7px}.sales-summary small{font-size:9px;line-height:1.5}.sales-surface{border-radius:13px}.sales-surface-head{padding:22px 18px;align-items:flex-start;gap:16px;flex-direction:column}.sales-surface-head h2{font-size:22px}.sales-surface-head p:not(.sales-kicker){font-size:12px}.sales-surface-head .sales-kicker{font-size:8px;letter-spacing:1.2px}.sales-create{width:100%;font-size:12px;min-height:44px}.sales-controls{padding:16px 15px 10px;gap:13px}.sales-stage-controls{max-width:100%;width:100%;flex-wrap:nowrap;overflow-x:auto;padding:0 0 5px;scrollbar-width:thin}.sales-stage-controls button{flex-shrink:0;min-height:44px;font-size:11px;padding:9px 10px}.sales-type-control{width:100%;justify-content:space-between}.sales-type-control select{width:auto;max-width:70%;font-size:14px;min-height:44px}.sales-result-caption{font-size:10px;line-height:1.6;padding:4px 18px 13px}.sales-list-labels{display:none}.sales-opportunity-row{grid-template-columns:minmax(0,1fr) auto;gap:15px 13px;padding:20px 18px;min-height:0}.sales-opportunity-name{grid-column:1;grid-row:1;gap:10px}.sales-company-mark{width:34px;height:34px;border-radius:9px}.sales-company-mark svg{width:17px;height:17px}.sales-opportunity-name strong{font-size:13px}.sales-opportunity-name>span>span{font-size:12px}.sales-opportunity-name small{font-size:10px}.sales-opportunity-value{grid-column:2;grid-row:1;align-self:start;padding-top:1px;gap:9px}.sales-opportunity-value>strong{font-size:14px}.sales-stage-tag{font-size:9px}.sales-opportunity-next{grid-column:1;grid-row:2;padding-left:44px;font-size:12px;gap:5px}.sales-opportunity-next small{font-size:10px}.sales-opportunity-owner{grid-column:2;grid-row:2;justify-content:flex-end;align-self:end}.sales-avatar{width:27px;height:27px;font-size:9px}.sales-empty{padding:35px 20px 40px}.sales-empty h3{font-size:16px}.opportunity-value-head strong{font-size:33px}.opportunity-facts{gap:18px 14px}.opportunity-next-action{padding:18px}.opportunity-detail-actions{flex-wrap:wrap}.opportunity-detail-actions>button{flex:1}.opportunity-detail-actions>.primary{flex-basis:100%;order:-1}.opportunity-action-note{font-size:11px}.opportunity-progress small{font-size:9px}.opportunity-contact-links a{min-height:44px}}
@media(max-width:380px){.sales-summary strong{font-size:18px}.sales-summary-label{font-size:9px}.sales-summary small{font-size:8px}.sales-opportunity-row{padding:18px 14px;gap:13px 9px}.sales-opportunity-name .sales-company-mark{display:none}.sales-opportunity-next{padding-left:0}.sales-summary article{padding:14px 9px}}
@media(prefers-reduced-motion:reduce){.sales-opportunity-row{transition:none}}
