/* Presentation only: validation and correction behavior are unchanged. */
body { font-size: 19px; line-height: 1.65; }
main { max-width: 1480px; }
.live-layout { grid-template-columns: minmax(240px, .7fr) minmax(0, 1.8fr); align-items: start; }
.receipt { min-width: 0; }
.agent-card { padding: 28px; border-radius: 20px; margin-top: 26px; }
.agent-card h3 { font-size: 27px; line-height: 1.3; margin-bottom: 18px; color: #111a30; }
.agent-card h4 { font-size: 21px; margin-top: 24px; }
.agent-row { padding: 20px 0; }
.agent-row strong { font-size: 20px; }
.agent-row bdi, .tool, .notes, #connection { font-size: 16px; }
.pill { font-size: 16px; font-weight: 650; padding: 7px 12px; }
.button { min-height: 56px; font-size: 18px; font-weight: 650; }
.button.approve { background: #046c4e; border-color: #046c4e; color: #fff; }
.button.approve:hover { background: #03543d; border-color: #03543d; }
.button.approve:disabled { opacity: 1; background: #e0e7e3; border-color: #c1cdc6; color: #4c5e54; }
.technical-details { margin-top: 12px; font-size: 15px; color: #515b70; }
.technical-details summary { cursor: pointer; min-height: 44px; padding: 10px 0; }
.technical-details pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; direction: ltr; text-align: left; }
/* A waiting spinner is not a measurement of reading progress. */
.reading .scan { display: none; }
.needs-input .status-chip { background: #fff1bd; color: #614900; }
.answer-input { min-height: 58px; font-size: 21px; border-width: 2px; }
.answer-input:focus { outline: 3px solid #ffd029; outline-offset: 3px; border-color: #111a30; }
.button:focus-visible, summary:focus-visible { outline: 3px solid #4636cf; outline-offset: 4px; }
.score-card { background: #111a30; color: #fff; border: 0; }
.score-card h3 { color: #fff; }
.agent-score { font-size: 76px; line-height: 1.2; color: #ffd029; text-decoration: none; }
.score-card > p { color: #dce3f0; }
.check-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
.check-tile { border: 1px solid #56617a; border-radius: 12px; padding: 12px; background: #1c2944; min-width: 0; }
.check-tile bdi { font-family: "IBM Plex Mono", monospace; font-weight: 700; font-size: 16px; }
.check-tile strong { display: block; font-size: 16px; line-height: 1.4; margin: 7px 0; overflow-wrap: anywhere; }
.check-tile small { display: block; font-size: 14px; line-height: 1.4; }
.check-tile.pass { background: #eaf7f1; color: #07533e; border-color: #8cccb3; }
.check-tile.fail { background: #fdeeee; color: #92242e; border-color: #e4a3a9; }
.check-tile.needs_you { background: #fff1bd; color: #614900; border-color: #dbc364; }
.check-tile.at_build { background: #eeeafd; color: #4636a0; border-color: #b7aaec; }
#next-moves { border: 2px solid #111a30; background: #fffdf3; scroll-margin-top: 24px; }
#questions > p:first-of-type { font-size: 25px; font-weight: 700; line-height: 1.45; }
#proposals .agent-row { background: #fff; border: 1px solid #dce0e6; border-radius: 14px; padding: 20px; margin: 16px 0; }
.answer-actions { gap: 12px; }
#continue { margin-top: 24px; }
#engine-card { border-inline-start: 6px solid #4636cf; }
#engine-status { font-size: 23px; font-weight: 750; }
#ready-card { background: #f0faf5; border: 2px solid #12785b; }
#ready-summary { font-size: 21px; }
#xml-meta { color: #334155; background: transparent; }
#checks summary { background: #f3f5f8; border-radius: 10px; padding: 16px; font-weight: 700; }
#changes .agent-row { border-inline-start: 4px solid #12785b; padding-inline-start: 16px; }
@media (max-width: 900px) {
  .live-layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 18px; }
  .receipt { padding: 18px; }
  .agent-card { padding: 18px; }
  .agent-card h3 { font-size: 24px; }
  .agent-score { font-size: 64px; }
  .check-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .check-tile { padding: 10px; }
  .agent-row strong { font-size: 18px; }
  #questions > p:first-of-type { font-size: 23px; }
  .answer-actions .button { width: 100%; justify-content: center; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
