/* The recap overlay (public/recap.js), shared by the chats. These are the review-* rules only; the dimmed
   backdrop and white panel (.verify-overlay / .verify-panel, with .verify-back, .verify-title and
   .verify-submit) come from styles.css, or from the same rules copied into a standalone page (apply.html).
   The values are kept equal to what apply.html carried before the move. */
.review-panel { max-width: 540px; max-height: 88vh; padding: 0; display: flex; flex-direction: column; overflow: hidden; }
/* The header is a tinted band with a hairline under it, so the title reads as the top of the sheet; the list scrolls, the button stays */
.review-bar { flex: none; background: #EDF2ED; border-bottom: 1px solid rgba(80,110,80,0.14); padding: 14px 28px 15px 20px; }
.review-bar .verify-title { margin: 8px 0 0 8px; font-size: 19px; font-weight: 700; letter-spacing: -0.3px; line-height: 1.25; }
.review-bar .verify-back { position: static; padding: 4px 6px; font-size: 14px; font-weight: 500; color: #2D5A3D; display: inline-flex; align-items: center; gap: 6px; margin-left: 0; }
.review-bar .verify-back:hover { color: #1E3A2F; text-decoration: underline; }
.review-bar .verify-back svg { flex: none; }
.review-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 12px 28px 12px; }
.review-panel .review-actions { flex: none; margin-top: 0; padding: 14px 28px 18px; border-top: 1px solid rgba(80,110,80,0.14); }
/* layout 'rows': a quiet label on the left, the value on the right; a new group adds space, never a frame */
.review-rows .review-row { display: grid; grid-template-columns: 118px minmax(0, 1fr) 28px; column-gap: 16px; padding: 5px 0; }
.review-rows .review-row-start { margin-top: 18px; }
.review-rows .review-row:first-child { margin-top: 0; }
.review-row-label { font-size: 12.5px; font-weight: 500; color: #6B8F71; line-height: 1.55; }
.review-row-value .review-text { line-height: 1.45; }
/* the pencil beside an answer: hidden until the row is hovered or the button focused (always shown on a phone) */
.review-change { background: none; border: none; color: #6B8F71; width: 28px; height: 28px; margin: -5px -7px -5px 0; padding: 0; border-radius: 8px; cursor: pointer; opacity: 0; transition: opacity .12s, background .12s; display: inline-flex; align-items: center; justify-content: center; }
.review-row:hover .review-change, .review-change:focus-visible { opacity: 1; }
.review-change:hover { background: #EDF2ED; color: #2D5A3D; }
.review-change:focus-visible { outline: 2px solid #2D5A3D; outline-offset: 1px; }
@media (hover: none) { .review-change { opacity: 1; } }
@media (max-width: 480px) {
  .review-rows .review-row { grid-template-columns: minmax(0, 1fr) auto; padding: 4px 0; row-gap: 0; }
  .review-bar { padding: 12px 20px 14px 14px; }
  .review-body { padding: 14px 20px 12px; }
  .review-panel .review-actions { padding: 14px 20px 18px; }
  .review-rows .review-row-start { margin-top: 16px; }
  .review-row-label { grid-column: 1 / -1; grid-row: 1; line-height: 1.3; }
  .review-row-value { grid-column: 1; grid-row: 2; align-self: center; }
  .review-row-value .review-text { line-height: 1.4; }
  .review-change { grid-column: 2; grid-row: 2; align-self: center; opacity: 1; width: 32px; height: 32px; margin: -6px -8px -6px 0; }
}
.review-block { margin: 14px 0 0; }
.review-label { font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: #2D5A3D; margin-bottom: 6px; }
.review-text { font-size: 14px; color: #1E3A2F; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; }
.review-note { font-size: 12px; color: #6B8F71; line-height: 1.4; margin-top: 4px; }
.review-note-lone { margin: 6px 0 0; }
/* a section heading inside the list: the same small caps label as a block label, with a hairline above every heading but the first */
.review-heading { margin: 22px 0 6px; padding-top: 16px; border-top: 1px solid rgba(80,110,80,0.14); }
.review-heading:first-child { margin-top: 2px; padding-top: 0; border-top: 0; }
.review-heading-text { font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: #2D5A3D; }
.review-heading .review-note { margin-top: 3px; }
textarea.review-intro { width: 100%; box-sizing: border-box; font-size: 15px; color: #1E3A2F; padding: 10px 12px; border: 1px solid #DDE6DE; border-radius: 10px; font-family: inherit; outline: none; line-height: 1.4; height: 140px; resize: vertical; display: block; margin-bottom: 4px; }
textarea.review-intro:focus { border-color: #2D5A3D; }
textarea.review-intro::placeholder { color: #8BAF8E; }
.review-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.review-head .review-label { margin-bottom: 0; }
.review-count { font-size: 12px; color: #6B8F71; }
.review-count.over { color: #993C1D; }
.review-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.review-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: #1E3A2F; background: #EDF2ED; border-radius: 999px; padding: 4px 6px 4px 12px; }
.review-chip button { background: none; border: none; color: #4A6B52; font-size: 15px; line-height: 1; cursor: pointer; padding: 0 4px; font-family: inherit; }
.review-media { display: flex; flex-wrap: wrap; gap: 6px; }
.review-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: #EDF2ED; display: block; }
.review-actions { margin-top: 18px; }
.review-footnote { text-align: center; margin-top: 10px; }
.review-bar .review-sub { margin: 4px 0 0 8px; text-align: left; }
.review-link { background: none; border: none; padding: 0; font: inherit; color: #2D5A3D; text-decoration: underline; cursor: pointer; }
.review-link:hover { color: #1E3A2F; }
/* compact: tighter rows and group gaps for a long list; set per chat so the others keep their spacing */
.review-compact.review-rows .review-row { padding: 2px 0; }
.review-compact.review-rows .review-row-start { margin-top: 12px; }
.review-compact .review-heading { margin: 16px 0 8px; padding-top: 12px; }
.review-compact .review-heading:first-child { margin-top: 2px; padding-top: 0; border-top: 0; }
/* a heading may carry a small icon before its words */
.review-heading-text { display: flex; align-items: center; gap: 7px; }
.review-heading-text svg { flex: none; }
/* quiet section: a set-apart block, used for what stays private */
.review-section-quiet { background: #F2F4F2; border: 1px solid rgba(80,110,80,0.14); border-radius: 10px; padding: 12px 14px 6px; margin: 16px 0 4px; }
.review-section-quiet .review-heading { margin: 0 0 4px; padding: 0; border: 0; }
.review-section-quiet .review-heading-text { color: #4A5A50; }
/* compact on a wide panel: a roomier gap between label and answer (32px), a short 8px gap before the pencil so the answer keeps its width,
   and more air above the first heading and before the set-apart block. A phone keeps the stacked layout above. */
@media (min-width: 481px) {
  .review-compact.review-rows { padding-top: 20px; }
  .review-compact.review-rows .review-row { grid-template-columns: 118px 32px minmax(0, 1fr) 8px 28px; column-gap: 0; }
  .review-compact.review-rows .review-row-label { grid-column: 1; }
  .review-compact.review-rows .review-row-value { grid-column: 3; }
  .review-compact.review-rows .review-change { grid-column: 5; }
  .review-compact .review-section-quiet { margin-top: 22px; }
}
/* scroll cue: a soft fade and edge shadow at the top or bottom of the list while more of it is out of view (no script) */
.review-cue { background:
  linear-gradient(#fff 30%, rgba(255,255,255,0)) center top,
  linear-gradient(rgba(255,255,255,0), #fff 70%) center bottom,
  radial-gradient(farthest-side at 50% 0, rgba(30,58,47,0.16), rgba(30,58,47,0)) center top,
  radial-gradient(farthest-side at 50% 100%, rgba(30,58,47,0.16), rgba(30,58,47,0)) center bottom;
  background-repeat: no-repeat; background-color: #fff; background-size: 100% 36px, 100% 36px, 100% 12px, 100% 12px;
  background-attachment: local, local, scroll, scroll; }
/* editing one row in place: its answer is replaced by a text box with Save and Cancel; the other pencils and the confirm button wait */
.review-editing .review-change { display: none; }
.review-row-editing > .review-row-label, .review-row-editing > .review-row-value, .review-row-editing > .review-change { display: none; }
.review-edit { grid-column: 1 / -1; grid-row: auto; display: block; padding: 2px 0 4px; }
.review-edit-label { font-size: 12.5px; font-weight: 600; color: #2D5A3D; margin-bottom: 6px; line-height: 1.3; }
.review-edit-field { width: 100%; box-sizing: border-box; font: inherit; font-size: 14px; line-height: 1.5; color: #1E3A2F; padding: 8px 10px; border: 1px solid #2D5A3D; border-radius: 8px; outline: none; background: #fff; display: block; }
textarea.review-edit-field { min-height: 128px; resize: vertical; }
.review-edit-field::placeholder { color: #8BAF8E; }
.review-edit-field:disabled { background: #F4F7F4; }
.review-edit-count { font-size: 12px; color: #6B8F71; text-align: right; margin-top: 3px; }
.review-edit-count.over { color: #993C1D; }
.review-edit-msg { font-size: 12.5px; line-height: 1.4; margin-top: 6px; color: #993C1D; }
.review-edit-msg:empty { display: none; }
.review-edit-msg.busy { color: #6B8F71; }
.review-edit-btns { display: flex; gap: 8px; margin-top: 8px; }
.review-edit-save { background: #2D5A3D; color: #fff; border: none; border-radius: 8px; padding: 6px 14px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.review-edit-save:disabled { opacity: .45; cursor: default; }
.review-edit-cancel { background: none; border: 1px solid #DDE6DE; color: #4A6B52; border-radius: 8px; padding: 6px 14px; font: inherit; font-size: 13px; cursor: pointer; }
.review-edit-cancel:disabled { opacity: .5; cursor: default; }
/* text for screen readers only: it takes no room and shows nothing */
.review-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* a short fixed list in an editing row: the options are pill buttons that wrap, the chosen one marked */
.review-edit-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.review-edit-choice { background: #fff; border: 1px solid #DDE6DE; border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 14px; line-height: 1.3; color: #1E3A2F; cursor: pointer; transition: background .12s, border-color .12s; }
.review-edit-choice:hover { background: #F4F7F4; }
.review-edit-choice.selected { border-color: #2D5A3D; background: #EDF2ED; font-weight: 600; }
.review-edit-choice:focus-visible { outline: 2px solid #2D5A3D; outline-offset: 1px; }
.review-edit-choice:disabled { opacity: .6; cursor: default; }
