/* Compact process navigation and suggestion pills; dialer controls are untouched. */
.outreach-process > header { flex-wrap: wrap; }
.outreach-process > header h2 { margin-right: auto; }
.outreach-process .workflow-step-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.outreach-process .workflow-step-nav[hidden] { display: none; }
.outreach-process .workflow-step-nav button {
  width: auto;
  min-height: 32px;
  margin: 0;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
}
.outreach-process .workflow-step-nav .sh-sheet-secondary {
  background: transparent;
  color: #1468b2;
  border-color: #cbd9e9;
}
#keywordActions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
}
#keywordActions > :is(button, .suggested-action-empty) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: auto;
  min-width: 64px;
  min-height: 30px;
  border: 1px solid #cbd9e9;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  line-height: 1.35;
}
#keywordActions > button { cursor: pointer; }
:is(#keywordFeedback, #transcriptFeedback, #processFeedback):empty { display: none; }
html[data-theme=dark] .workflow-step-nav .sh-sheet-secondary { color: #adcfff; border-color: #38516d; }
html[data-theme=dark] #keywordActions > :is(button, .suggested-action-empty) { border-color: #38516d; }

/* Complete call path sits beside Back to Outreach, with quick responses in Process. */
body.page-call .call-back-nav { align-items: flex-start; gap: 12px; }
body.page-call .call-back-btn { flex: 0 0 auto; min-height: 38px; white-space: nowrap; }
.call-stage-pills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  flex: 1;
  min-width: 0;
  gap: 7px;
  margin-bottom: 10px;
}
.call-stage-pills .call-stage-pill {
  appearance: none;
  width: 100%;
  min-height: 38px;
  margin: 0;
  padding: 8px 12px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: #193c60;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
  text-align: center;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.call-stage-pills .call-stage-pill:nth-child(even) { background: #dda711; color: #183650; }
.call-stage-pills .call-stage-pill[aria-current=step] { border-color: #087efa; box-shadow: 0 0 0 2px #fff inset, 0 0 0 2px #087efa; }
.call-stage-pills .call-stage-pill:hover { filter: brightness(1.1); }
.call-stage-pills .call-stage-pill:focus-visible,
.call-objection-links a:focus-visible { outline: 3px solid #087efa; outline-offset: 3px; }
.outreach-process > header .call-objection-links { flex: 1 1 200px; display: flex; flex-wrap: wrap; justify-content: center; gap: 7px 14px; }
.call-objection-links a { color: #165987; font-size: 12px; font-weight: 800; line-height: 1.5; text-decoration: underline; text-underline-offset: 3px; }
.call-objection-links a[aria-expanded=true] { color: #0877dc; }
.call-step-status { margin: 12px 0 0; color: #61738e; font-size: 12px; font-weight: 700; }
.call-guide, .call-objection-responses { border-top: 1px solid #e1e9f2; padding-top: 16px; }
.call-guide-card h3, .call-objection-responses h3 { margin: 0 0 12px; font-size: 17px; line-height: 1.4; }
.call-guide-card h4 { margin: 16px 0 10px; font-size: 14px; line-height: 1.5; }
.outreach-process .call-guide blockquote,
.outreach-process .call-objection-responses blockquote {
  margin: 12px 0;
  padding: 16px;
  border-left: 4px solid #dda711;
  background: #fbf7ec;
  color: #193c60;
  border-radius: 0 12px 12px 0;
  font-size: 14px;
  line-height: 1.8;
}
.call-guide blockquote p { margin: 0 0 12px; }
.call-guide blockquote p:last-child { margin-bottom: 0; }
.call-guide-note { color: #61738e; font-size: 12px; line-height: 1.65; margin: 12px 0 16px; }
.call-opener-choices { display: flex; gap: 8px; flex-wrap: wrap; }
.outreach-process .call-opener-choices button {
  width: auto; flex: 1 1 160px; margin: 0; border-radius: 999px;
  color: #193c60; background: transparent; border-color: #cbd9e9;
}
.outreach-process .call-opener-choices button[aria-pressed=true] { background: #193c60; border-color: #193c60; color: #fff; }
.outreach-process .call-objection-close { width: auto; margin: 0 0 16px; }
.call-guide[hidden], .call-guide-card[hidden], .call-stage-pills[hidden], .call-objection-links[hidden],
.call-objection-responses[hidden], .call-step-status[hidden], #processSteps[hidden] { display: none !important; }
html[data-theme=dark] .call-objection-links a { color: #a9d5ff; }
html[data-theme=dark] :is(.call-step-status,.call-guide-note) { color: #adc1d9; }
html[data-theme=dark] :is(.call-guide,.call-objection-responses) { border-color: #38516d; }
html[data-theme=dark] .outreach-process :is(.call-guide,.call-objection-responses) blockquote { background: #19334e; color: #e1edff; }
html[data-theme=dark] .outreach-process .call-opener-choices button { color: #e1edff; border-color: #617d9b; }
html[data-theme=dark] .outreach-process .call-opener-choices button[aria-pressed=true] { background: #255a87; }
@media(max-width:720px) {
  body.page-call .call-back-nav { flex-direction: column; align-items: stretch; }
  body.page-call .call-back-btn { align-self: flex-start; }
  .call-stage-pills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .outreach-process > header .call-objection-links { order: 3; flex-basis: 100%; justify-content: flex-start; }
  .outreach-process > header .workflow-step-nav { margin-left: auto; }
}

/* Keep the complete Process toolbar on one line; narrow panels scroll the row. */
.outreach-process > header.call-guide-header {
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 10px;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 4px 0 10px;
  scrollbar-width: thin;
}
.outreach-process > header.call-guide-header h2 {
  flex: 0 0 auto;
  margin: 0;
  font-size: 14px;
}
.call-guide-header .call-step-status {
  flex: 0 0 auto;
  margin: 0;
  font-size: 11px;
  white-space: nowrap;
}
.outreach-process > header.call-guide-header #processLead {
  flex: 0 1 110px;
  min-width: 40px;
  max-width: 110px;
  margin: 0;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.outreach-process > header.call-guide-header .call-objection-links {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 10px;
  order: initial;
}
.call-guide-header .call-objection-links a {
  font-size: 11px;
  white-space: nowrap;
}
.outreach-process > header.call-guide-header .workflow-step-nav {
  flex: 0 0 auto;
  margin: 0 0 0 auto;
}
.outreach-process > header.call-guide-header .workflow-step-nav button {
  min-height: 30px;
  padding: 6px 8px;
  font-size: 11px;
}
.call-guide-header #processProgress { flex: 0 0 auto; white-space: nowrap; font-size: 11px; }

/* Conversation stages and objection responses live in native modal popups. */
.call-guide-dialog {
  box-sizing: border-box;
  width: min(760px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  padding: 22px;
  border: 1px solid #cbd9e9;
  border-radius: 18px;
  background: #fff;
  color: #102945;
  box-shadow: 0 24px 80px #10294540;
  overflow-y: auto;
}
.call-guide-dialog::backdrop { background: #10294599; }
.call-guide-dialog[open] { display: flex; flex-direction: column; gap: 16px; }
.call-guide-dialog .call-popup-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.call-guide-dialog .call-popup-head h2 { margin: 0; font-size: 20px; line-height: 1.4; }
.call-guide-dialog button {
  appearance: none; width: auto; min-height: 38px; margin: 0; padding: 9px 14px;
  border: 1px solid #087efa; border-radius: 9px; background: #087efa; color: #fff;
  font: inherit; font-size: 13px; font-weight: 750; cursor: pointer;
}
.call-guide-dialog button:disabled { opacity: .5; cursor: default; }
.call-guide-dialog button:focus-visible { outline: 3px solid #75adff; outline-offset: 3px; }
.call-guide-dialog .call-popup-close { flex: 0 0 38px; width: 38px; padding: 4px; background: transparent; border-color: #cbd9e9; color: inherit; font-size: 24px; }
.call-guide-dialog .call-objection-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.call-guide-dialog .call-guide { padding-top: 16px; }
.call-guide-dialog .call-opener-choices button { flex: 1 1 180px; border-radius: 999px; color: #193c60; background: transparent; border-color: #cbd9e9; }
.call-guide-dialog .call-opener-choices button[aria-pressed=true] { background: #193c60; border-color: #193c60; color: #fff; }
.call-guide-dialog blockquote {
  margin: 12px 0; padding: 16px; border-left: 4px solid #dda711; border-radius: 0 12px 12px 0;
  background: #fbf7ec; color: #193c60; font-size: 14px; line-height: 1.8;
}
.call-popup-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #e1e9f2; padding-top: 16px; }
.call-popup-status { color: #61738e; font-size: 12px; text-align: center; }
.call-guide-dialog .call-guide-note { margin-bottom: 0; }
.call-guide-dialog .call-objection-close { align-self: flex-start; }
html[data-theme=dark] .call-guide-dialog { background: #10253b; color: #eef5ff; border-color: #38516d; }
html[data-theme=dark] .call-guide-dialog blockquote { background: #19334e; color: #e1edff; }
html[data-theme=dark] .call-guide-dialog .call-opener-choices button { color: #e1edff; border-color: #617d9b; }
html[data-theme=dark] .call-guide-dialog .call-opener-choices button[aria-pressed=true] { background: #255a87; }
html[data-theme=dark] .call-popup-status { color: #adc1d9; }
@media(max-width:480px) {
  .call-guide-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 24px); padding: 16px; }
  .call-popup-nav { flex-wrap: wrap; }
  .call-popup-status { order: -1; flex-basis: 100%; }
}

/* Seven stage pills share one row; small screens scroll horizontally. */
.call-stage-pills {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  gap: 8px;
  overflow-x: auto;
  padding: 4px;
  margin-bottom: 6px;
  box-sizing: border-box;
  scrollbar-width: thin;
}
.call-stage-pills .call-stage-pill {
  flex: 1 0 auto;
  width: auto;
  min-width: max-content;
  white-space: nowrap;
}

/* Outreach and Call share the same full-width stage navigation. */
body.page-outreach .call-back-nav {
  display: flex;
  grid-column: 1 / -1;
  min-width: 0;
  width: 100%;
  margin: 0 0 9px;
}

/* Keep intrinsic toolbar widths from changing the desktop 1/3–2/3 columns. */
#workflowLayout {
  table-layout: fixed;
  width: 100%;
  max-width: 100%;
}
#workflowLayout col:first-child, #workflowDialer { width: 33.333333%; }
#workflowLayout col:last-child, #workflowReview { width: 66.666667%; }
#workflowDialer, #workflowReview { min-width: 0; overflow-wrap: anywhere; }
body.page-outreach #workflowDialer > .process-workspace { width: 100%; max-width: none; }
#workflowReview > :is(.outreach-process,.workspace-card) { width: 100%; max-width: 100%; box-sizing: border-box; min-width: 0; }
.outreach-process > header.call-guide-header {
  flex-wrap: wrap;
  overflow: visible;
  gap: 8px;
}
.outreach-process > header.call-guide-header .call-objection-links {
  flex: 1 1 260px;
  min-width: 0;
  flex-wrap: wrap;
  gap: 6px 10px;
}
.outreach-process > header.call-guide-header .workflow-step-nav { margin-left: 0; }
#processLead[hidden] { display: none !important; }
