/* Open confirmation layout; the conversation is the main next step. */
.q-request-page.q-submitted .q-shell { max-width: 1200px; padding: 28px 48px 88px; }
.q-submitted .q-success { max-width: none; padding: 0; background: transparent; border: 0; border-radius: 0; }
.q-success-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; padding-bottom: 26px; margin-bottom: 42px; border-bottom: 1px solid var(--line); }
.q-success-confirm { min-width: 0; }
.q-success-progress { position: relative; flex: 0 0 94px; margin: 0; padding: 0; border: 0; }
.q-success-progress > summary { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 0; list-style: none; cursor: pointer; color: var(--muted); font-size: 11px; text-align: center; }
.q-success-progress summary::-webkit-details-marker { display: none; }
.q-success-ring { display: grid; place-items: center; width: 78px; height: 78px; border-radius: 50%; background: conic-gradient(var(--accent-text) var(--score, 0%), var(--line) 0); }
.q-success-ring b { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--paper); color: var(--accent-text); font-size: 20px; font-variant-numeric: tabular-nums; }
.q-success-progress.is-progress-updating .q-success-ring b { color: var(--ink); background: var(--marker); }
.q-success-progress-details { position: absolute; z-index: 5; top: calc(100% + 10px); right: 0; width: min(320px, calc(100vw - 44px)); padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); box-shadow: 0 12px 32px #102d3918; color: var(--ink); text-align: left; font-size: 13px; line-height: 1.6; }
.q-success-progress-details strong { display: block; margin-bottom: 8px; }
.q-success-progress-details ul { margin: 0; padding: 0; list-style: none; }
.q-success-progress-details li { margin: 6px 0; }
.q-success-progress-details p { margin: 12px 0 0; color: var(--muted); }
.q-success-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.6fr); column-gap: clamp(40px, 6vw, 88px); align-items: start; }
.q-success-check { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 20px; color: var(--accent-text); border: 1px solid var(--line); border-radius: 50%; }
.q-success-check svg { width: 22px; height: 22px; }
.q-submitted .q-success-title { font-size: clamp(25px, 2.6vw, 34px); line-height: 1.22; letter-spacing: -.03em; max-width: 14ch; margin-bottom: 18px; }
.q-submitted .q-success-confirm > p { font-size: 14px; line-height: 1.75; overflow-wrap: anywhere; margin: 0; }
.q-submitted .q-success-confirm > p strong { font-weight: 550; color: var(--ink); }
.q-submitted .q-success-confirm > .q-success-optional { margin-top: 8px; color: var(--muted); }
.q-submitted .q-chat-teaser { grid-column: 2; grid-row: 1; margin: 0; padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; }
.q-teaser-identity { display: flex; align-items: center; gap: 13px; margin-bottom: 24px; }
.q-request-page .q-teaser-avatar { width: 54px; height: 54px; }
.q-teaser-identity strong { font-size: 15px; font-weight: 600; }
.q-teaser-identity strong span { display: block; margin-top: 3px; color: var(--accent-text); font-size: 12px; font-weight: 500; }
.q-submitted .q-chat-teaser .q-teaser-optional { margin: -6px 0 16px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.q-submitted .q-chat-teaser .q-teaser-question { margin: 0 0 28px; font-size: clamp(28px, 3.1vw, 40px); font-weight: 550; letter-spacing: -.03em; line-height: 1.27; text-wrap: pretty; }
.q-submitted .q-chat-teaser .bc-highlight { font: inherit; text-decoration: none; background: linear-gradient(var(--marker), var(--marker)) no-repeat 0 88% / 100% .62em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.q-teaser-composer { position: relative; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; transition: border-color .15s, box-shadow .15s; }
.q-teaser-composer:focus-within { border-color: var(--accent-text); box-shadow: 0 0 0 3px var(--marker); }
.q-submitted .q-chat-teaser label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.q-submitted .q-chat-teaser textarea { margin: 0; padding: 4px 2px; min-height: 96px; max-height: 240px; border: 0; border-radius: 0; background: transparent; font-size: 16px; line-height: 1.6; resize: vertical; }
.q-submitted .q-chat-teaser textarea:focus { outline: 0; box-shadow: none; }
.q-teaser-send { display: flex; justify-content: flex-end; padding-top: 12px; }
.q-submitted .q-chat-teaser .q-field-help { margin-top: 14px; max-width: 66ch; color: var(--muted); font-size: 11px; line-height: 1.65; }
.q-success-details { grid-column: 1; grid-row: 1; padding-top: 4px; }
.q-submitted .q-success-details p { font-size: 12px; line-height: 1.75; margin: 0 0 10px; }
.q-success-details strong { font-weight: 550; }
.q-success-links { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 16px; font-size: 13px; }
.q-success-links a { padding-block: 7px; text-decoration: underline; text-underline-offset: 4px; }
.q-success-links a:hover { color: var(--accent-text); }
.q-success-layout:has(.q-chat-teaser[hidden]) { grid-template-columns: 1fr; max-width: 620px; }
.q-success-layout:has(.q-chat-teaser[hidden]) .q-success-details { grid-column: 1; }
.q-submitted .q-footer { background: transparent; padding-bottom: 30px; }
@media (max-width: 760px) {
  .q-request-page.q-submitted .q-shell { padding: 16px 24px 48px; }
  .q-success-header { margin-bottom: 28px; padding-bottom: 20px; gap: 16px; }
  .q-success-progress { flex-basis: 76px; }
  .q-success-ring { width: 66px; height: 66px; }
  .q-success-ring b { width: 54px; height: 54px; font-size: 17px; }
  .q-success-layout { grid-template-columns: 1fr; gap: 32px; }
  .q-success-confirm { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px 12px; align-items: center; }
  .q-success-check { width: 28px; height: 28px; margin: 0; }
  .q-success-check svg { width: 18px; height: 18px; }
  .q-submitted .q-success-title { font-size: 24px; max-width: none; margin: 0; }
  .q-submitted .q-success-confirm > p { grid-column: 2; font-size: 12px; line-height: 1.7; }
  .q-submitted .q-chat-teaser { grid-column: 1; grid-row: auto; padding: 20px; border-radius: 20px; }
  .q-teaser-identity { margin-bottom: 18px; }
  .q-request-page .q-teaser-avatar { width: 48px; height: 48px; }
  .q-submitted .q-chat-teaser .q-teaser-question { font-size: 28px; line-height: 1.28; margin-bottom: 20px; }
  .q-teaser-composer { padding: 14px; border-radius: 16px; }
  .q-submitted .q-chat-teaser textarea { min-height: 76px; }
  .q-success-details { grid-column: 1; grid-row: auto; padding-top: 20px; border-top: 1px solid var(--line); }
  .q-success-links { flex-direction: row; flex-wrap: wrap; gap: 8px 24px; }
}
@media (max-width: 360px) {
  .q-request-page.q-submitted .q-shell { padding-inline: 20px; }
  .q-success-header { gap: 10px; }
  .q-submitted .q-success-title { font-size: 22px; }
  .q-submitted .q-chat-teaser { padding: 16px; }
  .q-submitted .q-chat-teaser .q-teaser-question { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  .q-submitted .q-chat-teaser { animation: none; }
  .q-teaser-composer { transition: none; }
}
