/* Optional continuation of the chosen local chat prototype. */
body[data-discovery] .discovery-summary { margin: 0 0 14px; padding: 17px 22px; border: 1.5px solid #b9caff; border-radius: 22px; background: #f0f4ff; }
body[data-discovery] .discovery-summary > p { margin: 0; color: #111; font-size: 17px; line-height: 1.5; font-weight: 500; overflow-wrap: anywhere; }
body[data-discovery] .discovery-summary .rm-answers { width: 100%; max-width: 100%; margin: 0 0 14px; border: 0; border-bottom: 1px solid #cbd6ef; border-radius: 0; background: transparent; }
body[data-discovery] .discovery-summary .rm-answers > summary { min-height: 34px; padding: 0 0 10px; }
body[data-discovery] .discovery-summary .rm-answers .outcome-input-full { margin-bottom: 14px; padding: 14px; border: 1px solid #cbd6ef; border-radius: 18px; background: #fff; }
body[data-discovery] .discovery-summary .discovery-focus { font-size: 14px; margin-top: 9px; font-weight: 400; }
body[data-discovery] .discovery-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
body[data-discovery] .discovery-actions .choice { display: flex; align-items: center; gap: 8px; padding: 11px 14px 11px 20px; min-height: 48px; border: 2px solid #dbe3ef; border-radius: 999px; background: #fff; color: #17243b; text-align: left; font: inherit; font-size: 15px; cursor: pointer; }
body[data-discovery] .discovery-actions .choice:hover { border-color: var(--blue); }
body[data-discovery] .discovery-actions .choice > span { min-width: 0; overflow-wrap: anywhere; }
body[data-discovery] .discovery-actions .choice-icon-premium { width: 18px; height: 18px; }
body[data-discovery] .discovery-scenario { margin: 14px 0 0; color: #536279; font-size: 14px; line-height: 1.5; }
body[data-discovery] .discovery-messages .current { padding-top: 14px; }
body[data-discovery] .discovery-messages .current:only-child { padding-top: 0; }
body[data-discovery] .discovery-messages .history-response + .current { border-top: 1px solid #dbe3ef; }
@container kansenvinder (max-width: 420px) {
  body[data-discovery] .discovery-summary { padding: 15px 18px; }
  body[data-discovery] .discovery-summary > p { font-size: 16px; }
  body[data-discovery] .discovery-actions .choice { padding-left: 18px; font-size: 14px; }
}

body[data-discovery] #app .rm-card h2 { color: #17243b; }

/* Compact calculator: known figures are editable beside the live annual result. */
body[data-discovery] .discovery-calculator { width: min(100%, 444px); margin: 12px 0 0; border: 1px solid #d5deec; border-radius: 18px; background: #fbfcff; }
body[data-discovery] .discovery-calc-toggle { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 44px; padding: 10px 14px; background: transparent; border: 0; border-radius: 18px; font: inherit; font-size: 15px; font-weight: 600; text-align: left; color: #17243b; }
body[data-discovery] .discovery-calc-toggle .brief-icon { width: 19px; height: 19px; color: var(--blue); }
body[data-discovery] .discovery-calc-chevron { margin-left: auto; color: #65738a; font-size: 19px; }
body[data-discovery] #app .discovery-calc-body { margin: 0; padding: 0 14px 12px; border: 0; border-radius: 0; background: transparent; }
body[data-discovery] .discovery-calc-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
body[data-discovery] .discovery-calc-inputs > label { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 13px; color: #536279; }
body[data-discovery] .discovery-calc-assumption { font-size: 10px; color: #65738a; margin-left: 3px; }
body[data-discovery] .discovery-calc-field { display: flex; align-items: center; gap: 6px; color: #17243b; font-size: 14px; }
body[data-discovery] #app .discovery-calc-field input { width: 72px; min-width: 0; height: 34px; min-height: 0; padding: 4px 8px; border: 1.5px solid #c5d0df; border-radius: 9px; font-size: 16px; text-align: center; background: #fff; }
body[data-discovery] .discovery-calc-body .calc-output { display: flex; flex-wrap: wrap; gap: 16px; margin: 12px 0 0; padding: 10px 0 0; border-top: 1px solid #dde5f1; background: transparent; border-radius: 0; }
body[data-discovery] .discovery-calc-body .calc-output:empty { display: none; }
body[data-discovery] .discovery-calc-metric { display: flex; flex-direction: column; gap: 2px; }
body[data-discovery] .discovery-calc-body .calc-output strong { font-size: 22px; line-height: 1.2; color: var(--blue); }
body[data-discovery] .discovery-calc-body .calc-output .discovery-calc-metric > span { font-size: 12px; color: #536279; }
body[data-discovery] .discovery-calc-footer { position: relative; display: flex; align-items: center; gap: 4px; margin-top: 6px; color: #65738a; font-size: 11px; }
body[data-discovery] .discovery-calc-footer > span { margin-right: auto; }
body[data-discovery] .discovery-calc-footer button, body[data-discovery] .discovery-calc-info > summary { display: grid; place-items: center; width: 26px; height: 26px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: none; color: #65738a; font-size: 19px; list-style: none; cursor: pointer; }
body[data-discovery] .discovery-calc-info > summary::-webkit-details-marker { display: none; }
body[data-discovery] .discovery-calc-info .brief-icon { width: 16px; height: 16px; }
body[data-discovery] .discovery-calc-info > p { position: absolute; bottom: 100%; right: 0; z-index: 2; width: min(340px, 100%); margin: 0 0 6px; padding: 12px; border: 1px solid #d5deec; border-radius: 12px; background: white; box-shadow: 0 4px 18px #17243b18; color: #536279; font-size: 13px; line-height: 1.45; }
body[data-discovery] #calc-error:empty { display: none; }
@container kansenvinder (max-width: 370px) {
  body[data-discovery] .discovery-calc-inputs { gap: 8px; }
  body[data-discovery] #app .discovery-calc-field input { width: 58px; }
  body[data-discovery] .discovery-calc-field { gap: 4px; font-size: 12px; }
}

body[data-discovery] .discovery-calculator:has(.discovery-calc-toggle[aria-expanded="false"]) { width: fit-content; max-width: 100%; }

/* Annual results sit beside the calculator inputs in Nexin blue. */
body[data-discovery] #app .discovery-calc-body { display: grid; grid-template-columns: minmax(0, 1fr) 130px; gap: 0 16px; }
body[data-discovery] .discovery-calc-body .calc-output { display: flex; flex-direction: column; justify-content: center; gap: 14px; margin: 0; padding: 0 0 0 16px; border-top: 0; border-left: 1px solid #d9e3f5; background: transparent; min-width: 0; }
body[data-discovery] .discovery-calc-body .calc-output strong { color: var(--blue); font-size: 24px; overflow-wrap: anywhere; }
body[data-discovery] .discovery-calc-body .calc-output .discovery-calc-metric > span { color: var(--blue); font-size: 12px; }
body[data-discovery] .discovery-calc-footer, body[data-discovery] #calc-error { grid-column: 1 / -1; }
@container kansenvinder (max-width: 450px) {
  body[data-discovery] #app .discovery-calc-body { grid-template-columns: minmax(0, 1fr); }
  body[data-discovery] .discovery-calc-body .calc-output { flex-direction: row; justify-content: flex-start; gap: 22px; margin-top: 10px; padding: 10px 0 0; border-left: 0; border-top: 1px solid #d9e3f5; }
}

/* Discovery uses the same fixed composer and scrollable messages as the main conversation. */
body[data-popup][data-discovery][data-view=discovery] #popup-scroll { display: flex; flex-direction: column; overflow: hidden; }
body[data-popup][data-discovery][data-view=discovery] #app { padding: 0; min-height: 0; flex: 1; display: flex; }
body[data-popup][data-discovery][data-view=discovery] .popup-messages { min-height: 0; }

/* The selected continuation follows the proposal and calculator. */
body[data-action-layout="vast"] .discovery-end-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 14px 0 16px; }
body[data-action-layout="vast"] .discovery-end-actions .choice { min-width: 0; min-height: 44px; }
/* Compact single-line actions; the longer continuation gets more room. */
body[data-discovery] .discovery-actions .choice > span { white-space: nowrap; overflow-wrap: normal; }
@container kansenvinder (min-width: 501px) {
  body[data-discovery] .discovery-actions { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  body[data-discovery] .discovery-actions .choice { padding: 11px 12px 11px 14px; }
}
@container kansenvinder (max-width: 500px) {
  body[data-discovery] .discovery-actions { grid-template-columns: minmax(0, 1fr); }
}

/* Paired navigation arrows keep the same understated header style. */
body[data-popup][data-popup-compact][data-chat-capsules] .popup-head-leading { gap: 5px; }
body[data-chat-capsules] .popup-head-leading #popup-title { margin-left: 3px; }
body[data-chat-capsules] .popup-head-leading .popup-back { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }

body[data-popup][data-popup-compact][data-chat-capsules] .popup-head-leading #popup-title { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.25; }

/* Reserve blue on the round answer control for an actual draft or selection. */
body[data-popup][data-popup-compact][data-chat-capsules] .popup-send:not(.has-answer){background:#e1e6ee;border-color:#e1e6ee;color:#788597}
body[data-popup][data-popup-compact][data-chat-capsules] .popup-send.has-answer{background:var(--blue);border-color:var(--blue);color:#fff}

/* Result density: answers lead into the paired actions, then the four ideas. */
body[data-discovery][data-view="results"] #app { padding: 12px 20px; }
body[data-discovery] .discovery-summary { margin-bottom: 0; padding: 10px 14px; border-radius: 18px; }
body[data-discovery] .discovery-summary > p { font-size: 14px; line-height: 1.4; }
body[data-discovery] .discovery-summary .rm-answers { margin-bottom: 6px; }
body[data-discovery] .discovery-summary .rm-answers > summary { min-height: 28px; padding-bottom: 6px; font-size: 13px; }
body[data-discovery] .discovery-summary .discovery-focus { margin-top: 6px; font-size: 13px; }
body[data-discovery] .discovery-next { --discovery-action-columns: repeat(2,minmax(0,1fr)); width: 100%; max-width: 100%; display: grid; grid-template-columns: var(--discovery-action-columns); gap: 4px 8px; margin: 6px 0 8px; }
body[data-discovery] .discovery-next-line { grid-column: 1; grid-row: 1; justify-self: center; width: 2px; height: 20px; border-radius: 999px; background: var(--blue); }
body[data-discovery] .discovery-next[data-recommended-action="contact"] .discovery-next-line { grid-column: 2; }
body[data-discovery] .discovery-next[data-recommended-action="contact"] [data-action="summary-contact"] { color: var(--blue); }
body[data-discovery] .discovery-next[data-recommended-action="contact"] .discovery-continue { color: #17243b; }
body[data-discovery] .discovery-next .discovery-end-actions { grid-column: 1/-1; grid-template-columns: var(--discovery-action-columns); margin: 0; padding: 0; border: 0; }
body[data-discovery] .discovery-actions .choice { gap: 6px; padding: 7px 12px; min-height: 40px; font-size: 13px; line-height: 1.35; }
body[data-discovery] .discovery-actions .choice > span { white-space: normal; overflow-wrap: anywhere; }
body[data-discovery] .discovery-actions .choice-icon-premium { flex: 0 0 16px; width: 16px; height: 16px; }
body[data-discovery] .discovery-actions .discovery-continue { border: 2px solid #dbe3ef; border-radius: 999px; background: #fff; color: var(--blue); }
body[data-discovery] .discovery-actions .discovery-continue:hover { border-color: var(--blue); }
body[data-discovery] .discovery-ideas { margin: 0; padding: 0; border: 0; }
body[data-discovery] .discovery-idea-choices { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
body[data-discovery] .discovery-idea-choices .choice { display: flex; align-items: center; gap: 6px; min-width: 0; min-height: 40px; padding: 6px 10px; border: 2px solid #dbe3ef; border-radius: 999px; background: #fff; color: #17243b; font: inherit; font-size: 13px; line-height: 1.3; text-align: left; cursor: pointer; }
body[data-discovery] .discovery-idea-choices .choice > span { min-width: 0; overflow-wrap: anywhere; }
body[data-discovery] .discovery-idea-choices .choice-icon-premium { flex: 0 0 16px; width: 16px; height: 16px; color: var(--blue); }
body[data-discovery] .discovery-idea-choices .choice:hover { border-color: var(--blue); }
body[data-discovery] .discovery-next .choice:focus-visible, body[data-discovery] .discovery-idea-choices .choice:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
body[data-discovery] .discovery-calculator { margin-top: 10px; }
@container kansenvinder (max-width: 400px) {
  body[data-discovery][data-view="results"] #app { padding: 12px; }
  body[data-discovery] .discovery-idea-choices { grid-template-columns: minmax(0,1fr); }
  body[data-discovery] .discovery-next .choice, body[data-discovery] .discovery-idea-choices .choice { min-height: 44px; }
}

/* These result rules outrank the shared conversation sizing, without resizing its start. */
body[data-popup][data-popup-compact][data-chat-capsules][data-discovery][data-view="results"] #app { padding: 8px 16px; }
body[data-popup][data-popup-compact][data-discovery] .discovery-actions .choice { min-height: 40px; font-size: 13px; }
body[data-discovery] .discovery-summary { padding: 8px 14px; }
body[data-discovery] .discovery-summary > p { line-height: 1.3; }
body[data-discovery] .discovery-summary .rm-answers { margin-bottom: 4px; }
body[data-discovery] .discovery-summary .rm-answers > summary { min-height: 24px; padding-bottom: 4px; }
body[data-discovery] .discovery-idea-choices .choice { padding-block: 4px; }
@container kansenvinder (max-width: 400px) {
 body[data-popup][data-popup-compact][data-chat-capsules][data-discovery][data-view="results"] #app { padding: 10px 12px; }
 body[data-popup][data-popup-compact][data-discovery] .discovery-next .choice { min-height: 44px; padding-inline: 8px; }
}

/* Keep the paired actions equally sized inside the tool. */
@container kansenvinder (max-width: 500px) {
  body[data-discovery] .discovery-next { --discovery-action-columns: repeat(2,minmax(0,1fr)); width: 100%; }
}

/* The desired workflow is directly editable inside the existing blue result. */
body[data-popup][data-discovery][data-result-mock] #app .rm-desired-workflow {
  display: block; width: 100%; margin: 5px 0 0; padding: 0; min-height: 36px;
  max-height: none; border: 1px solid transparent; border-radius: 3px;
  background: transparent; color: #17243b; font: inherit; font-size: 13px;
  line-height: 1.4; resize: none; overflow: hidden;
}
body[data-popup][data-discovery][data-result-mock] #app .rm-desired-workflow:focus {
  outline: 2px solid #9db4ff; outline-offset: 4px;
}
body[data-discovery] .rm-contact-concept { margin: 12px 0; text-align: left; }

/* Equal outer tracks keep the arrow centered above the first capsule. */
body[data-discovery] .discovery-next .discovery-end-actions { display: contents; }
body[data-discovery] .discovery-next .discovery-end-actions > .choice { grid-row: 2; min-width: 0; width: 100%; box-sizing: border-box; justify-content: center; text-align: center; }


/* Keep direct editing readable and paired actions compact in a narrow tool. */
@container kansenvinder (max-width: 400px) {
  body[data-popup][data-popup-compact][data-discovery] .discovery-next .choice {
    min-height: 44px; padding: 4px 6px; gap: 4px; font-size: 12px; line-height: 1.25;
  }
  body[data-discovery] .discovery-next .choice-icon-premium { width: 14px; height: 14px; flex-basis: 14px; }
  body[data-popup][data-discovery][data-result-mock] #app .rm-change { grid-template-columns: minmax(0,1fr); gap: 8px; }
  body[data-popup][data-discovery][data-result-mock] #app .rm-change > .rm-icon { justify-self: center; transform: rotate(90deg); }
}

/* Keep the summary, comparison and example legible as separate parts of the proposal. */
body[data-discovery] .discovery-summary + .rm-proposals { margin-top: 16px; }
body[data-popup][data-discovery][data-result-mock] #app .rm-card-contrast { padding: 18px; border-radius: 18px; border-color: #bcc9dc; box-shadow: 0 2px 7px #17243b08; }
body[data-popup][data-discovery][data-result-mock] #app .rm-card-contrast h2 { margin: 0; font-size: 18px; line-height: 1.35; color: var(--blue); }
body[data-popup][data-discovery][data-result-mock] #app .rm-change { margin-top: 16px; gap: 14px; }
body[data-popup][data-discovery][data-result-mock] #app .rm-change > div { padding: 13px 14px; border: 1px solid #d2dbe7; background: linear-gradient(145deg, #f0f3f7, #e9edf3); box-shadow: inset 0 1px 0 #ffffffc7, 0 1px 2px #17243b05; }
body[data-popup][data-discovery][data-result-mock] #app .rm-change > div:last-child { border-color: #cedbf8; background: linear-gradient(145deg, #f0f4ff, #e8efff); }
body[data-popup][data-discovery][data-result-mock] #app .rm-change p,
body[data-popup][data-discovery][data-result-mock] #app .rm-desired-workflow { font-size: 14px; line-height: 1.45; }
body[data-popup][data-discovery][data-result-mock] #app .rm-change .rm-proposal-benefit { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid #d1dcf5; color: var(--blue); font-size: 12px; line-height: 1.45; font-weight: 400; }
body[data-popup][data-discovery][data-result-mock] #app .rm-card-contrast .rm-proposal-support { margin: 12px 0 0; color: var(--ink); font-size: 13px; line-height: 1.45; font-weight: 400; }
@container kansenvinder (max-width: 400px) {
  body[data-popup][data-discovery][data-result-mock] #app .rm-card-contrast { padding: 14px; }
  body[data-popup][data-discovery][data-result-mock] #app .rm-change { gap: 8px; }
}

/* Michael selected Zachte schaduw, with a slightly darker hairline (10 October). */
body[data-popup][data-chat-capsules] :is(.example-suggestions,.answer-alternatives,.discovery-actions,.discovery-idea-choices) .choice {
  border: 1px solid #c5cfdd; background: #fff; box-shadow: 0 3px 9px #17243b14;
}
body[data-popup][data-chat-capsules] :is(.example-suggestions,.answer-alternatives,.discovery-actions,.discovery-idea-choices) .choice:hover {
  border-color: #8da4db; background: #fbfcff; box-shadow: 0 3px 10px #17243b1e;
}
body[data-popup][data-chat-capsules] :is(.example-suggestions,.answer-alternatives,.discovery-actions,.discovery-idea-choices) .choice[aria-pressed="true"] {
  border-color: var(--blue); background: #f1f5ff; box-shadow: 0 3px 9px rgba(var(--nx-light-blue-rgb-0030fd,0, 48, 253),0.0784);
}
body[data-popup][data-chat-capsules] :is(.example-suggestions,.answer-alternatives,.discovery-actions,.discovery-idea-choices) .choice:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 3px;
}
