/* Business conclusions first. Keep the approved audit colours and layout. */
.b-result-controls { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 7px; }
.b-result-controls select { min-width: 0; width: 100%; padding: 6px 8px; border: 1px solid #dedbd4; border-radius: 6px; color: #625b50; background: #faf9f6; font: inherit; font-size: 12px; }
.audit-reading .b-list-contradiction { color: #b8382c; font-weight: 600; }
.audit-reading .b-list-verification { color: #796441; }
.audit-reading .b-audit-summary button.b-zero { color: #8a8983; }
.audit-reading .b-audit-summary button.b-zero strong { font-size: 24px; font-weight: 400; }
.audit-reading .b-judgment-card { display: flex; flex-direction: column; overflow: hidden; }
.audit-reading .b-judgment-card > .b-panel-heading { flex: none; }
.audit-reading .b-judgment-scroll { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-right: 4px; }
.audit-reading .b-finding-takeaway { margin: 14px 0 19px; padding: 13px 15px; background: #f8f5ee; border-radius: 8px; border-left: 3px solid #a9946b; }
.audit-reading .b-finding-takeaway.b-contradiction { background: #fcf1ee; border-left-color: #bc4034; }
.audit-reading .b-finding-takeaway.b-supported { background: #eef3f7; border-left-color: #306c98; }
.audit-reading .b-finding-takeaway > span { display: block; color: inherit; font-size: 12px; font-weight: 600; }
.audit-reading .b-finding-takeaway p { margin: 6px 0 0; color: #2e302e; font-size: 15px; line-height: 1.75; font-weight: 550; }
.audit-reading .b-reading-actions { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 9px 0 0; padding: 10px 0 0; border-color: #ddd6c7; background: transparent; }
.audit-reading .b-reading-actions .button, .audit-reading .b-reading-actions button { min-height: 35px; padding: 7px 8px; font-size: 12px; }
.audit-reading .b-reading-actions .b-correction-saved { grid-column: 1 / -1; color: #7b4f18; background: #f4e5c4; border-color: #dbc498; }
.audit-reading .b-reading-actions .b-icon { width: 13px; height: 13px; }
body.b-presentation .cloud-access-bar, body.b-presentation [data-action="export"], body.b-presentation .location, body.b-presentation .app-footer { display: none !important; }
body.b-presentation .b-batch-copy h2 { font-size: 22px !important; font-weight: 600 !important; }
body.b-presentation .b-batch-copy p, body.b-presentation .b-batch-total span, body.b-presentation .b-batch-status > span { font-size: 14px !important; }
body.b-presentation .b-answer-prose { font-size: 19px !important; line-height: 1.8 !important; }
body.b-presentation .b-panel-heading h2 { font-size: 22px !important; }
body.b-presentation .list-item-title { font-size: 16px !important; }
body.b-presentation .list-item-meta { font-size: 13px !important; }
body.b-presentation .b-reading-knowledge h4, body.b-presentation .b-reading-knowledge > p, body.b-presentation .b-reading-analysis p { font-size: 17px !important; line-height: 1.8 !important; }
body.b-presentation .b-finding-takeaway p { font-size: 19px !important; }
body.b-presentation .b-guidance, body.b-presentation .b-question-meta, body.b-presentation .b-create-content { display: none !important; }
body.b-presentation .b-audit-summary > span, body.b-presentation .b-audit-summary button > span { font-size: 14px !important; }
body.b-presentation .b-reading-actions .button, body.b-presentation .b-reading-actions button { font-size: 14px !important; min-height: 39px; }
@media (max-width: 760px) {
  .audit-reading .b-reading-actions { gap: 7px; }
  .audit-reading .b-reading-actions .button, .audit-reading .b-reading-actions button { min-height: 41px; font-size: 13px; }
  body.b-presentation .b-batch-copy h2 { font-size: 18px !important; }
  body.b-presentation .b-answer-prose { font-size: 17px !important; }
  body.b-presentation .b-finding-takeaway p { font-size: 17px !important; }
}

.audit-reading .b-guidance { display: none; }
@media (min-width: 1180px) and (max-width: 1250px) {
  body[data-page="audit"] .audit-reading .b-audit-grid { grid-template-columns: 316px minmax(0,1fr) 300px; grid-template-rows: minmax(0,1fr); gap: 0; overflow: hidden; align-items: stretch; }
  body[data-page="audit"] .audit-reading .b-audit-grid > .b-question-column { grid-row: 1 !important; height: 100% !important; margin-inline-end: 16px; }
  body[data-page="audit"] .audit-reading .b-answer-card { grid-column: 2; grid-row: 1; height: 100%; border-top-right-radius: 0; border-bottom-right-radius: 0; }
  body[data-page="audit"] .audit-reading .b-judgment-card { grid-column: 3; grid-row: 1; height: 100%; padding-inline: 17px; border-top-left-radius: 0; border-bottom-left-radius: 0; }
  body[data-page="audit"] .audit-reading .b-answer-heading, body[data-page="audit"] .audit-reading .b-answer-scroll { padding-inline: 18px; }
  body[data-page="audit"] .audit-reading .b-question-context h1 { font-size: 20px; }
}

.b-correction-dialog { width: min(850px,calc(100vw - 36px)); }
.b-correction-body { min-height: 0; overflow: auto; padding: 4px 10px 14px 0; font-size: 16px; line-height: 1.9; }
.b-correction-body h3 { margin: 0 0 18px; font-size: 23px; line-height: 1.6; font-weight: 600; }
.b-correction-body p { margin: 0 0 18px; white-space: pre-line; }
.b-correction-refs { display: flex; flex-wrap: wrap; gap: 8px 15px; padding-top: 15px; font-size: 13px; border-top: 1px solid #e4dfd5; color: #6c604c; }
.b-correction-refs a { color: #85622f; }
.b-correction-footer { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; color: #756d61; font-size: 12px; }
@media(max-width:760px){ .b-correction-body h3{font-size:20px;} .b-correction-body{font-size:15px;} .b-correction-footer{align-items:flex-start;flex-direction:column;gap:8px;} }

#b-correction-dialog { max-width: calc(100vw - 36px); height: min(710px,calc(100dvh - 48px)); max-height: calc(100dvh - 48px); min-height: 0; padding: 24px; border: 0; border-radius: 15px; color: #2e281d; background: #fff; box-shadow: 0 22px 65px #15140f26; font-family: 'Noto Sans SC Variable','Microsoft YaHei',sans-serif; overflow: hidden; }
#b-correction-dialog:not([open]) { display: none; }
#b-correction-dialog[open] { display: flex; flex-direction: column; }
#b-correction-dialog::backdrop { background: #20283255; backdrop-filter: blur(4px); }
#b-correction-dialog .b-dialog-heading { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
#b-correction-dialog .b-dialog-heading h2 { margin: 0; font-size: 20px; font-weight: 600; }
#b-correction-dialog .b-dialog-heading .b-icon { width: 20px; height: 20px; }
#b-correction-dialog .b-dialog-context { flex: none; margin: 12px 0 18px; font-size: 13px; color: #807362; }
#b-correction-dialog .b-correction-body { flex: 1; }
@media(max-width:760px){ #b-correction-dialog{padding:18px;} }


/* Keep technical provenance visible without reducing the reading area. */
.audit-reading .b-panel-heading .b-tech-entry { flex: none; margin-left: 8px; padding: 5px 8px; border: 1px solid #d5c5a5; border-radius: 6px; background: #f5eedf; color: #725727; font: inherit; font-size: 12px; line-height: 1.5; white-space: nowrap; cursor: pointer; }
.b-tech-entry:focus-visible, #b-technical-dialog :focus-visible { outline: 2px solid #9c7c3a; outline-offset: 3px; }
#b-technical-dialog { width: min(860px,calc(100vw - 32px)); max-width: calc(100vw - 32px); height: min(740px,calc(100dvh - 44px)); max-height: calc(100dvh - 44px); padding: 0; border: 0; border-radius: 15px; overflow: hidden; color: #2e302d; background: #fff; font-family: 'Noto Sans SC Variable','PingFang SC','Microsoft YaHei',sans-serif; box-shadow: 0 22px 65px #15140f26; }
#b-technical-dialog:not([open]) { display: none; }
#b-technical-dialog[open] { display: flex; flex-direction: column; }
#b-technical-dialog::backdrop { background: #20283255; backdrop-filter: blur(4px); }
#b-technical-dialog .b-dialog-heading { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 19px 24px; background: #f4f3ef; }
#b-technical-dialog .b-dialog-heading p { margin: 0 0 4px; color: #7a6a50; font-size: 12px; }
#b-technical-dialog .b-dialog-heading h2 { margin: 0; font-size: 21px; font-weight: 600; line-height: 1.5; }
#b-technical-dialog .b-dialog-heading button { flex: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 7px; }
#b-technical-dialog .b-icon { width: 20px; height: 20px; }
.b-technical-body { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 19px 24px; font-size: 14px; line-height: 1.8; scrollbar-width: thin; }
.b-technical-body .b-tech-intro { margin: 0; }
.b-technical-body .automatic-audit { margin-top: 17px; padding: 17px; background: #f9f7f2; }
.b-technical-body .section-head h3, .b-technical-body h3 { font-size: 16px; font-weight: 600; }
.b-technical-body .audit-dimensions { grid-template-columns: repeat(2,minmax(0,1fr)); }
.b-technical-body .audit-dimension > span:first-child { font-size: 13px; font-weight: 550; }
.b-technical-body .audit-dimension p, .b-technical-body .audit-dimension small, .b-technical-body .audit-dimension summary, .b-technical-body .audit-dimension li, .b-technical-body .audit-scope-note, .b-technical-body .audit-record-meta { font-size: 12px; }
.b-tech-explanation, .b-tech-binding { margin-top: 22px; }
.b-tech-binding dl, .exec-tech-explanation dl { margin: 12px 0 15px; }
.b-tech-binding dl > div { padding: 8px 0; }
.b-tech-binding dt { color: #766d5e; font-size: 12px; }
.b-tech-binding dd { margin: 3px 0 0; overflow-wrap: anywhere; }
.b-tech-binding code { font-size: 12px; }
.b-technical-footer { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 24px; border-top: 1px solid #e5dfd3; color: #786f5f; font-size: 12px; }
.exec-tech-explanation { margin-top: 24px; padding: 22px 24px; background: #f7f4ed; border-radius: 10px; color: #34352f; }
.exec-tech-explanation h3 { margin: 0; font-size: 18px; font-weight: 600; }
.exec-tech-explanation dl > div { display: grid; grid-template-columns: 175px minmax(0,1fr); gap: 20px; padding: 12px 0; }
.exec-tech-explanation dt { font-size: 14px; font-weight: 600; }
.exec-tech-explanation dd { margin: 0; font-size: 14px; line-height: 1.8; }
body.b-presentation .b-panel-heading .b-tech-entry { font-size: 13px; }
@media(max-width:760px){ .audit-reading .b-panel-heading .b-tech-entry{min-height:36px;} #b-technical-dialog .b-dialog-heading{padding:16px 18px;} #b-technical-dialog .b-dialog-heading h2{font-size:19px;} .b-technical-body{padding:17px 18px;} .b-technical-body .automatic-audit{padding:12px;} .b-technical-body .audit-dimensions{grid-template-columns:1fr;} .b-technical-footer{padding:12px 18px;align-items:flex-start;flex-direction:column;gap:8px;} .exec-tech-explanation{padding:18px;} .exec-tech-explanation dl > div{grid-template-columns:1fr;gap:5px;} }

.b-human-review { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; margin: 0 0 12px; border: 1px solid #ddd5c4; border-radius: 7px; color: #796441; font-size: 13px; line-height: 1.6; background: #f7f3e9; }
.b-human-review[data-status="confirmed"] { color: #365745; border-color: #bfd0c4; background: #edf4ee; }
.b-human-review .text-button { flex-shrink: 0; font-size: 13px; }
.b-manual-review-body { padding: 20px 24px; overflow: auto; }
.b-manual-review-body blockquote { margin: 0 0 16px; padding: 12px; background: #f5f1e8; border-left: 3px solid #a9946b; }
.b-manual-review-body .field { margin-bottom: 14px; }
.b-manual-review-body input, .b-manual-review-body select, .b-manual-review-body textarea { width: 100%; }
.b-manual-review-body .b-review-check { display: block; margin: 10px 0; font-size: 14px; }
.b-review-check input { width: auto; margin-right: 6px; }
.b-review-history { padding: 12px 0; border-top: 1px solid #ddd5c4; font-size: 13px; line-height: 1.7; }
@media (min-width: 761px) {
  body.b-presentation[data-page="audit"] .audit-reading .b-audit-grid { grid-template-columns: minmax(0,1.05fr) minmax(320px,1fr) !important; gap: 16px !important; }
  body.b-presentation[data-page="audit"] .b-audit-grid > .b-question-column { display: none !important; }
  body.b-presentation[data-page="audit"] .b-audit-grid > .b-answer-card { grid-column: 1 !important; grid-row: 1 !important; }
  body.b-presentation[data-page="audit"] .b-audit-grid > .b-judgment-card { grid-column: 2 !important; grid-row: 1 !important; }
}
