.cm-next-step-card{display:flex;flex-direction:column;align-items:stretch;text-align:left;min-width:0}
.cm-next-step-card>.cm-next-step-open{display:flex;flex-direction:column;align-items:flex-start;gap:5px;width:100%;margin:0;padding:0;min-height:0;border:0;border-radius:6px;background:transparent;color:inherit;box-shadow:none;text-align:left;font:inherit;white-space:normal}
.cm-next-step-open>strong{font-size:17px;line-height:1.4;overflow-wrap:anywhere}
.cm-next-step-open>small{font-size:13px;line-height:1.5;color:var(--muted)}
.cm-next-step-open:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.cm-next-step-card-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 7px;
  padding: 4px 8px;
  margin-top: 5px;
  border: 1px solid var(--cm-blue-soft-line, var(--line));
  border-radius: 8px;
  background: var(--cm-surface-soft, var(--card));
  color: var(--cm-blue-ink, var(--text));
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
}
.cm-next-step-card-link::after { content: "→" / ""; }
.cm-next-step{display:flex;flex-direction:column;align-items:stretch;gap:7px;min-width:0;margin-top:12px;padding:12px 0 0;border-top:1px solid var(--line);text-align:left;color:var(--text)}
.cm-next-step-label{font-size:12px;line-height:1.4;color:var(--muted);font-weight:500}
.cm-next-step .cm-next-step-text{display:block;font-size:18px;line-height:1.4;font-weight:700;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--text)}
.cm-next-step-date{font-size:13px;line-height:1.5;color:var(--muted)}
.cm-next-step.is-overdue .cm-next-step-summary>.cm-next-step-date{color:var(--error,#eeaca0);font-weight:600}
.cm-next-step.is-today .cm-next-step-summary>.cm-next-step-date{color:var(--accent);font-weight:600}
.cm-next-step.is-priority.has-step { margin: 0 0 16px; padding: 0; border: 0; }
.cm-next-step-summary { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.cm-next-step-summary.has-text {
  padding: 14px 16px;
  border: 1px solid var(--cm-blue-soft-line, var(--line));
  border-inline-start: 4px solid var(--cm-blue, var(--accent));
  border-radius: 12px;
  background: var(--cm-blue-soft, var(--card));
}
.cm-next-step-summary.has-text .cm-next-step-label {
  color: var(--cm-blue-ink, var(--text));
  font-size: 13px;
  font-weight: 650;
}
.cm-next-step .cm-next-step-summary.has-text > .cm-next-step-text {
  font-size: clamp(20px, 5vw, 24px);
  font-weight: 750;
  line-height: 1.3;
}
.cm-next-step-summary.has-text > .cm-next-step-date { font-size: 14px; }
.cm-next-step-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.cm-next-step-heading > .job-nudge-controls { flex: none; width: 44px; min-width: 44px; max-width: 44px; }
.cm-next-step-heading .job-nudge-button,
#crmQuoteOverview .cm-next-step-heading .job-nudge-button { width: 44px; min-width: 44px; min-height: 44px; padding: 8px; }
.cm-next-step-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:3px}
.cm-next-step .cm-next-step-actions>button{width:auto;max-width:100%;min-height:44px;padding:7px 11px;font-size:13px;line-height:1.4;white-space:normal;overflow-wrap:anywhere;margin:0}
.cm-next-step-actions.has-list-result{align-items:stretch}
.cm-next-step .cm-next-step-actions.has-list-result>button[data-next-step-action="record_result"]{flex:1 1 145px;font-size:14px}
.cm-next-step-confirm{margin:4px 0 0;font-size:14px;line-height:1.45;font-weight:600}
.cm-next-step .cm-next-step-editor label{display:flex;flex-direction:column;gap:5px;margin:0;font-size:13px;min-width:0}
.cm-next-step-editor{display:grid;gap:9px;min-width:0}
.cm-next-step-editor :is(textarea,input){width:100%;box-sizing:border-box;min-width:0;margin:0;padding:9px 10px;font:inherit;color:var(--text);background:var(--input);border:1px solid var(--line);border-radius:10px}
.cm-next-step-editor textarea{resize:vertical;min-height:72px;max-height:200px}
.cm-next-step-dates{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:9px}
.cm-next-step .hint,.cm-next-step-result,.cm-next-step-error{font-size:12px;line-height:1.5;margin:0;overflow-wrap:anywhere}
.cm-next-step-result{color:var(--muted)}
.cm-next-step-error{color:var(--error,#eeaca0)}
@media(max-width:360px){.cm-next-step-dates{grid-template-columns:minmax(0,1fr)}}

#crmQuoteListTools:not([hidden]) {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 12px 0;
}
.cm-quote-step-filters:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cm-quote-step-filters > button {
  min-height: 44px;
  margin: 0;
  padding: 7px 10px;
  font-size: 13px;
  white-space: normal;
}
.cm-quote-step-filters > button[aria-pressed="true"] {
  border-color: var(--cm-blue, var(--accent));
  background: var(--cm-blue-soft, var(--input));
  color: var(--cm-blue-ink, var(--text));
}
.cm-quote-source-filter {
  flex: 0 1 190px;
  min-width: 0;
  margin: 0;
  font-size: 13px;
}
.cm-quote-source-filter > select {
  min-height: 44px;
  margin: 4px 0 0;
  padding: 7px 10px;
}
#crmItems > .cm-quote-list-card,
#crmItems > .cm-quote-list-card > .cm-next-step-open {
  gap: 6px;
}
#crmItems > .cm-quote-list-card > .cm-next-step-open { align-items: stretch; }
.cm-quote-list-head, .cm-quote-list-facts {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 5px 10px;
  width: 100%;
  min-width: 0;
}
.cm-quote-list-card .cm-quote-list-head > .crm-stage {
  margin: 0;
  white-space: normal;
}
.cm-quote-list-source, .cm-quote-list-owner, .cm-quote-list-site, .cm-quote-list-step-fallback {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.cm-quote-list-card .cm-quote-list-head + strong {
  margin-top: 4px;
  font-size: 17px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.cm-quote-list-facts { margin-top: 4px; }
.cm-quote-list-amount {
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.cm-quote-list-card > .cm-next-step { margin-top: 7px; padding-top: 8px; }
.cm-quote-list-card .cm-next-step-summary.has-text { padding: 8px 10px; }
.cm-quote-list-card .cm-next-step .cm-next-step-summary.has-text > .cm-next-step-text { font-size: 17px; }
@media (max-width: 520px) {
  .cm-quote-source-filter { flex: 1 0 100%; }
}

.cmquote-work-lead{display:grid;gap:8px;min-width:0;margin:0 0 14px}
.cmquote-work-lead h2,.cmquote-work-lead h3{margin:0;font-size:clamp(20px,5vw,24px);line-height:1.25;overflow-wrap:anywhere}
.cmquote-work-lead .hint,.cmquote-work-contact{margin:0;line-height:1.45;overflow-wrap:anywhere}
.cmquote-work-contact{color:var(--muted)}
.cmquote-work-lead .phone-calls{margin:0}
.cmquote-work-lead>button{justify-self:start}
.cmquote-work-section{margin-top:14px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:var(--card);min-width:0}
.cmquote-work-section .cmquote-history li>p{margin:4px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.cmquote-work-section .cmquote-history li>small{display:block;margin-top:3px}
#crmQuoteOverviewDocument h2{margin:0 0 9px;font-size:17px}
.cm-next-step-owner{font-size:14px;line-height:1.4;overflow-wrap:anywhere;color:var(--muted)}
.cm-next-step.is-priority .cm-next-step-actions>button[data-next-step-action="record_result"]{flex:1 0 100%;min-height:44px;font-size:15px}
.cm-next-step.is-priority:not(.has-step){margin:0 0 12px;padding:10px 0}
.cm-next-step-heading>.job-nudge-controls.cm-next-step-remind{width:auto;min-width:0;max-width:100%}
.cm-next-step-heading .cm-next-step-remind .job-nudge-button,
#crmQuoteOverview .cm-next-step-heading .cm-next-step-remind .job-nudge-button{display:inline-flex;gap:6px;width:auto;max-width:100%;font-size:13px;color:var(--cm-blue-ink,var(--text));white-space:normal}
.cm-next-step-remind .job-nudge-button svg{flex:none}
.cm-next-step-remind .job-nudge-status:empty{display:none}
.cm-quote-result-dialog{box-sizing:border-box;width:min(480px,calc(100% - 20px));max-height:calc(100dvh - 24px);padding:18px;border:1px solid var(--line);border-radius:16px;background:var(--card);color:var(--text);overflow:auto}
.cm-quote-result-dialog::backdrop{background:rgba(0,0,0,.54)}
.cm-quote-result-form{display:grid;gap:12px;min-width:0;margin:0}
.cm-quote-result-form h2{margin:0;font-size:21px;line-height:1.3}
.cm-quote-result-form label{display:grid;gap:5px;margin:0;min-width:0}
.cm-quote-result-form :is(select,input,textarea){width:100%;min-width:0;min-height:42px;margin:0;font-size:16px}
.cm-quote-result-next{display:grid;gap:8px;margin:0;padding:10px;border:1px solid var(--line);border-radius:10px;min-width:0}
.cm-quote-result-next legend{padding:0 5px;font-weight:650}
.cm-quote-result-form [hidden]{display:none!important}
.cm-quote-send-readiness{display:grid;gap:5px;min-width:0;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--input);font-size:14px;line-height:1.45;overflow-wrap:anywhere}
.cm-quote-send-readiness h3{margin:0;font-size:14px;font-weight:650}
.cm-quote-send-readiness ul{display:grid;gap:4px;margin:0;padding-inline-start:19px}
.cm-quote-send-readiness p{margin:0;color:var(--muted)}
.cm-quote-result-summary{margin:0;padding:10px 12px;border-inline-start:3px solid var(--cm-blue,var(--accent));border-radius:8px;background:var(--cm-blue-soft,var(--input));white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.5}
.cm-quote-result-confirm{margin:0;font-size:14px;font-weight:650;line-height:1.4}
.cm-quote-result-notice{margin:0;font-size:14px;color:var(--error);overflow-wrap:anywhere}
.cm-quote-result-notice:empty{display:none}
.cm-quote-result-form .cm-next-step-actions{justify-content:flex-end}
.cm-quote-result-form .cm-next-step-actions button{min-height:44px;margin:0}
