/* The chat sheet floats above the workspace. Material inside it stays flat. */
.template-reply { width:fit-content; max-width:min(100%,610px); white-space:normal }
.template-reply .speaker { display:flex; align-items:center; gap:7px; color:var(--muted); margin:0 0 8px 5px }
.template-reply .speaker::before {
  content:""; width:16px; height:14px; border-radius:55% 55% 43% 43%;
  background:radial-gradient(ellipse 1.2px 1.8px at 37% 54%,#fff 90%,transparent),
             radial-gradient(ellipse 1.2px 1.8px at 63% 54%,#fff 90%,transparent),#303239
}
.reply-bubble { background:var(--soft); border-radius:6px 21px 21px; padding:17px 19px; overflow-wrap:anywhere }
.reply-bubble > p { font-size:16px; line-height:1.75; text-wrap:pretty }
.comparison-options { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(145px,100%),1fr)); gap:6px; margin:15px 0 0 }
.comparison-option { background:var(--paper); padding:14px 16px 16px; border-radius:13px; min-width:0 }
.comparison-option dt { color:var(--muted); font-size:13px; font-weight:550 }
.option-value { display:flex; flex-wrap:wrap; gap:2px 9px; align-items:baseline; margin:5px 0 0; line-height:1.2; font-size:clamp(22px,2.3vw,34px); letter-spacing:-.035em; font-weight:600; font-variant-numeric:tabular-nums }
.option-value s { color:var(--muted); font-size:12px; letter-spacing:0; font-weight:400; text-decoration-color:var(--focus) }
.option-terms { margin:10px 0 0; color:var(--muted); font-size:12px; line-height:1.5 }
.template-reply .comparison-link { margin-top:13px }
.comparison-context { display:block; margin:12px 0 5px; color:var(--muted); font-size:12px; letter-spacing:.045em }
.comparison-title { font-size:clamp(25px,2.2vw,34px); line-height:1.25; letter-spacing:-.035em; font-weight:650; margin:0 0 8px }
.comparison-description { color:var(--muted); line-height:1.6 }
.comparison-table { border-collapse:separate; border-spacing:0; margin:24px 0 25px; font-size:14px; line-height:1.55 }
.comparison-table thead th { border:0; color:var(--muted); padding:0 9px 8px }
.comparison-table tbody td { padding:13px 9px; background:var(--paper); border:0; border-bottom:1px solid var(--line); vertical-align:middle }
.comparison-table tbody tr:first-child td:first-child { border-top-left-radius:13px }
.comparison-table tbody tr:first-child td:last-child { border-top-right-radius:13px }
.comparison-table tbody tr:last-child td { border-bottom:0 }
.comparison-table tbody tr:last-child td:first-child { border-bottom-left-radius:13px }
.comparison-table tbody tr:last-child td:last-child { border-bottom-right-radius:13px }
.comparison-table tbody td:first-child { font-weight:550 }
.comparison-table .comparison-primary { color:var(--ink) }
.comparison-sources h3 { color:var(--ink); font-size:15px; margin-bottom:5px }
.comparison-sources summary { padding:5px 0 }
.quote-history { display:grid; grid-template-columns:1fr 1fr; margin:8px 0; padding:10px 12px; gap:10px; border-radius:10px; background:var(--tint) }
.quote-history dt { font-size:12px; color:var(--muted) }
.quote-history dd { margin:2px 0 0; font-size:18px; font-weight:550; font-variant-numeric:tabular-nums }
.comparison-footer { display:flex; align-items:baseline; gap:8px; margin-top:18px }
.comparison-footer::before { content:""; display:inline-block; width:6px; height:6px; flex:none; background:#648676; border-radius:50%; align-self:baseline }
.suggestion-card { width:min(100%,370px); padding:16px 18px; gap:5px; background:var(--paper); border-color:var(--line); border-radius:14px; margin-top:12px }
.suggestion-card strong { font-size:20px; line-height:1.45 }
.suggestion-card > span { color:var(--muted); font-variant-numeric:tabular-nums }
.suggestion-card[data-state=accepted] small { color:light-dark(#466753,#b5d8b8) }
.suggestion-actions { margin-top:10px }
.suggestion-actions button { border-radius:999px; padding:5px 14px }
#preview-chat > header { padding:19px clamp(18px,2.2vw,32px) }
#sample-toggle { color:var(--muted); font-size:12px }
#sample-chat { flex:1; padding:clamp(24px,5vh,54px) clamp(16px,3vw,46px) 20px }
#sample-chat > * { max-width:min(100%,590px) }
#sample-chat .user-line { margin:0 0 30px auto; padding:10px 16px; width:fit-content; border-radius:18px 18px 5px 18px }
#preview-questions { flex:none; min-width:0; margin:8px clamp(16px,3vw,46px) 24px; padding:0; border:0 }
#preview-questions legend { padding:0; margin:0 0 8px 3px; font-size:12px; color:var(--muted) }
#question-options { display:flex; flex-wrap:wrap; gap:6px }
#question-options button { padding:6px 13px; font-size:13px; border:1px solid var(--line); border-radius:99px; background:var(--paper) }
#question-options button:hover { background:var(--soft) }
#question-options [aria-pressed=true] { color:var(--paper); border-color:var(--ink); background:var(--ink) }
#question-options [aria-pressed=true]:hover { background:var(--ink) }
@container function-panel (max-width:280px) {
  .comparison-table tbody td,.comparison-table thead th { padding-inline:4px }
  .comparison-table { font-size:13px }
}
@media (max-width:1000px) {
  #workspace:has(#preview-chat:not([hidden])):has(#preview-questions:not([hidden])) #panel { bottom:100px }
}
.steps-view { margin:18px 0; padding:18px; border-radius:16px; background:var(--paper) }
.steps-view progress { display:block; width:100%; height:5px; accent-color:var(--accent); margin-bottom:18px }
.steps-current h3 { font-size:19px; color:var(--ink); margin:6px 0 12px }
.steps-current .message-code { white-space:pre-wrap; overflow-wrap:anywhere }
.steps-actions { display:flex; justify-content:space-between; gap:8px; margin-top:20px }
