.first-visit-check,

/* The short result stays on the desk while a deeper paper is open. */
.first-visit-finish-summary { min-width: 0; scroll-margin-top: 20px; }
.first-visit-ending { margin-top: 24px; border: 2px solid #17342f; background: #f8f3e8; }
.first-visit-finish-summary > h3 { margin: 22px 24px 0; font-size: clamp(1.8rem, 3.5vw, 3rem); line-height: 1.08; letter-spacing: -.05em; }
.first-visit-finish-summary > p { margin: 8px 24px 19px; color: #526053; font-size: .78rem; line-height: 1.5; }
.first-visit-ending-head { padding: 11px 20px; background: #17342f; color: #fffdf8; }
.first-visit-ending-head strong { color: #d9eed3; }
.first-visit-rule-comparison { margin: 0 24px 21px; min-width: 0; scroll-margin-top: 20px; }
.first-visit-rule-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.first-visit-rule-head h4 { margin: 0; font-size: .85rem; }
.first-visit-rule-head > strong { padding: 5px 8px; border: 1px solid #60816a; color: #315d46; font: 800 .63rem/1.35 var(--home-mono); }
.first-visit-rule-comparison[data-alignment="missed"] .first-visit-rule-head > strong,
.first-visit-rule-comparison[data-alignment="split"] .first-visit-rule-head > strong { color: #9c432d; border-color: #b96549; }
.first-visit-rule-calls { display: grid; gap: 9px; }
.first-visit-rule-call { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 5px 14px; padding: 13px 15px; border: 1px solid #b7bca6; background: #fffdf8; }
.first-visit-rule-call > span { grid-row: span 2; align-self: center; color: #775c4b; font: 800 .63rem/1.45 var(--home-mono); }
.first-visit-rule-call > strong { display: flex; align-items: center; gap: 9px; font-size: .87rem; line-height: 1.35; }
.first-visit-rule-call > p { margin: 0; color: #4a5e51; font-size: .77rem; line-height: 1.45; }
.first-visit-rule-call:last-child > strong::before { display: grid; flex: none; width: 23px; height: 23px; place-items: center; border: 2px solid #315d46; color: #315d46; font-size: 1rem; content: "✓"; transform: rotate(-8deg); }
.first-visit-rule-comparison[data-refund="approve"] .first-visit-rule-call:last-child { border-color: #be8065; background: #fff0e6; }
.first-visit-rule-comparison[data-refund="approve"] .first-visit-rule-call:last-child > strong::before { text-decoration: line-through; text-decoration-color: #a64b32; text-decoration-thickness: 4px; transform: rotate(9deg); }
.first-visit-rule-comparison[data-refund="correct"] .first-visit-rule-call:last-child > strong::before { border: none; color: #a64b32; font-size: 1.7rem; content: "✎"; }
.first-visit-rule-comparison[data-guess="wide"] .first-visit-rule-call:first-child { border-left: 4px solid #a64b32; }
.first-visit-rule-comparison[data-guess="wide"] .first-visit-rule-call:first-child > strong { text-decoration: underline wavy #a64b32; text-underline-offset: 4px; }
.first-visit-rule-conclusion { margin: 15px 0 12px; color: #17342f; font-size: .94rem; font-weight: 750; line-height: 1.5; }
.first-visit-finish-next-check { margin: 0; padding: 12px 14px; border-left: 3px solid #a64b32; background: #e9ede2; font-size: .77rem; line-height: 1.5; }
#first-visit-rule-guess-link { display: inline-block; margin: 0 0 12px; font-size: .8rem; color: #245d47; font-weight: 750; }
.first-visit-finish-why { border-top: 1px dashed #9a9e84; }
.first-visit-finish-why > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 50px; padding: 12px 24px; cursor: pointer; font-size: .88rem; font-weight: 800; }
.first-visit-finish-why > summary::before { content: "+"; font: 800 1.2rem/1 var(--home-mono); color: #a64b32; }
.first-visit-finish-why[open] > summary::before { content: "−"; }
.first-visit-finish-why > summary span { margin-left: auto; color: #526053; font-size: .71rem; font-weight: 500; }
.first-visit-finish-why[open] > summary { margin-bottom: 18px; border-bottom: 1px dashed #9a9e84; }
.first-visit-finish-why .workflow-result { margin: 0 24px 24px; }
.first-visit-judgment-comparison,
.first-visit-judgment-decision { min-width: 0; margin: 0 24px 20px; scroll-margin-top: 18px; }
.first-visit-judgment-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 12px; }
.first-visit-judgment-heading > span,
.first-visit-judgment-papers > div > span,
.first-visit-judgment-decision-head > span {
  font: 850 .65rem/1.4 var(--home-mono);
  letter-spacing: .06em;
}
.first-visit-judgment-heading h4 { margin: 0; font-size: clamp(1.12rem, 2vw, 1.5rem); line-height: 1.2; letter-spacing: -.035em; }
.first-visit-judgment-papers { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.first-visit-judgment-papers::after {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #17342f;
  border-radius: 50%;
  background: #f8f3e8;
  color: #a64b32;
  font: 900 1.2rem/1 var(--home-mono);
  content: "→";
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.first-visit-judgment-papers > div { min-width: 0; padding: 18px 19px; border: 1px solid #17342f; background: #fffdf8; }
.first-visit-judgment-guess { position: relative; }
.first-visit-judgment-guess > p,
.first-visit-judgment-fact > p:first-of-type { margin: 12px 0; font-size: clamp(1rem, 1.5vw, 1.3rem); font-weight: 730; line-height: 1.28; letter-spacing: -.025em; overflow-wrap: anywhere; }
.first-visit-judgment-guess > strong {
  display: inline-block;
  padding: 5px 8px;
  border: 3px double #315d46;
  color: #315d46;
  font: 900 .69rem/1.2 var(--home-mono);
  transform: rotate(-3deg);
}
.first-visit-judgment-comparison[data-guess="wide"] .first-visit-judgment-guess { background: #fff0e7; }
.first-visit-judgment-comparison[data-guess="wide"] .first-visit-judgment-guess > p { text-decoration: underline wavy #a64b32; text-underline-offset: 6px; }
.first-visit-judgment-comparison[data-guess="wide"] .first-visit-judgment-guess > strong { border-color: #a64b32; color: #a64b32; transform: rotate(4deg); }
.first-visit-judgment-guess > a,
#first-visit-judgment-source { display: block; width: fit-content; margin-top: 12px; color: #245d47; font-size: .77rem; font-weight: 760; line-height: 1.4; text-underline-offset: 3px; overflow-wrap: anywhere; }
.first-visit-judgment-limit { margin: 10px 0; padding: 9px 11px; border-left: 3px solid #a64b32; background: #fff0e7; color: #684437; font-size: .78rem; line-height: 1.45; }
.first-visit-judgment-decision { padding: 18px 20px; border: 2px solid #a64b32; background: #fff0e7; }
.first-visit-judgment-decision[data-decision="correct"] { border-color: #315d46; background: #e9f0e4; }
.first-visit-judgment-decision-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.first-visit-judgment-decision-head strong { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border: 2px solid #a64b32; border-radius: 50%; color: #a64b32; font: 900 1.3rem/1 var(--home-mono); transform: rotate(-12deg); }
.first-visit-judgment-decision[data-decision="correct"] .first-visit-judgment-decision-head strong { border-color: #315d46; color: #315d46; }
.first-visit-judgment-decision h4 { margin: 4px 0 14px; font-size: clamp(1.15rem, 2vw, 1.5rem); letter-spacing: -.035em; }
.first-visit-judgment-refund { padding: 14px 16px; border: 1px solid #d7b2a2; background: #fffdf8; }
.first-visit-judgment-refund > strong { display: inline-block; padding: 5px 8px; border: 2px solid #a64b32; color: #a64b32; font: 900 .72rem/1.2 var(--home-mono); transform: rotate(-2deg); }
.first-visit-judgment-decision[data-decision="correct"] .first-visit-judgment-refund > strong { border-color: #315d46; color: #315d46; }
.first-visit-judgment-refund blockquote { margin: 12px 0 0; font-size: clamp(.92rem, 1.6vw, 1.14rem); font-weight: 650; line-height: 1.45; overflow-wrap: anywhere; }
.first-visit-judgment-next-check { margin: 12px 0 0; font-size: .84rem; font-weight: 750; line-height: 1.5; }
.first-visit-judgment-decision .first-visit-judgment-made { margin: 7px 0 0; color: #5f6258; font-size: .73rem; line-height: 1.45; }

.first-visit-ending-paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 19px 20px 23px; border-top: 1px solid #17342f; background: #e3e6d8; }
.first-visit-ending-path { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; min-width: 0; min-height: 152px; padding: 18px 16px; border: 1px solid #17342f; border-top: 5px solid #a7835e; border-radius: 0; background: #fffdf8; color: #17342f; box-shadow: 3px 3px 0 #afbba7; font-family: inherit; text-align: left; cursor: pointer; transition: transform 150ms ease, box-shadow 150ms ease; }
.first-visit-ending-path:nth-child(2) { border-top-color: #60816a; }
.first-visit-ending-path:nth-child(3) { border-top-color: #a64b32; }
.first-visit-ending-path > span { grid-column: 1 / -1; color: #775c4b; font: 800 .63rem/1.4 var(--home-mono); letter-spacing: .03em; }
.first-visit-ending-path > strong { grid-column: 1 / -1; font-size: 1.15rem; line-height: 1.25; letter-spacing: -.025em; }
.first-visit-ending-path > small { color: #485e52; font-size: .76rem; line-height: 1.5; }
.first-visit-ending-path > b { align-self: end; color: #a64b32; font-size: 1.45rem; }
.first-visit-ending-path:hover { transform: translateY(-3px); box-shadow: 3px 6px 0 #afbba7; }
.first-visit-ending-path[aria-expanded="true"] { background: #e9f0e4; box-shadow: inset 0 0 0 2px #315d46; }
.first-visit-ending-path[aria-expanded="true"] > b { transform: rotate(180deg); }

.first-visit-path-panel { box-sizing: border-box; min-width: 0; margin-top: 25px; padding: clamp(17px, 3vw, 30px); border: 2px solid #17342f; border-top: 7px solid #a7835e; background: #f6f1e5; scroll-margin-top: 20px; transform-origin: center top; animation: first-visit-paper-open 190ms ease-out; }
#first-visit-office-path { border-top-color: #60816a; }
.first-visit-path-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 20px; }
.first-visit-path-head h3 { margin: 8px 0; font-size: clamp(1.4rem, 3vw, 2.2rem); line-height: 1.2; letter-spacing: -.035em; }
.first-visit-path-head p { margin: 8px 0; font-size: .83rem; line-height: 1.5; }
.first-visit-path-back { flex: none; min-height: 44px; padding: 10px 13px; border: 1px solid #17342f; border-radius: 0; background: #fffdf8; color: #17342f; font-family: inherit; font-size: .8rem; font-weight: 750; cursor: pointer; }
.first-visit-path-back:hover { background: #e3ecd9; }
.first-visit-deeper { min-width: 0; margin-top: 25px; padding-top: 14px; border-top: 1px dashed #9a9e84; }
.first-visit-deeper > summary { min-height: 44px; padding: 10px 0; font-size: .9rem; font-weight: 750; cursor: pointer; }
#more-cases-panel .sentence-review { margin: 0 0 30px; }
#first-visit-office-path .home-public-task { margin-top: 0; }
.first-visit-contact-draft { display: grid; gap: 8px; border-top-color: #a64b32; }
.first-visit-contact-draft label { margin-top: 8px; font-size: .79rem; font-weight: 780; }
.first-visit-contact-draft :is(input, textarea) { box-sizing: border-box; width: 100%; max-width: 690px; min-width: 0; padding: 11px 12px; border: 1px solid #738d7e; border-radius: 0; background: #fff; color: #17342f; font-family: inherit; font-size: .88rem; line-height: 1.45; }
.first-visit-contact-draft > button { justify-self: start; min-height: 45px; margin-top: 16px; padding: 10px 14px; border: 1px solid #17342f; border-radius: 0; background: #17342f; color: #fff; font-family: inherit; font-size: .8rem; font-weight: 780; cursor: pointer; }
#first-visit-contact-error { margin: 0; color: #9c3f2d; font-size: .8rem; }
.first-visit-contact-reviewed { max-width: 690px; min-width: 0; margin-top: 11px; padding: 18px; border: 1px solid #60816a; background: #e9f0e4; scroll-margin-top: 20px; }
.first-visit-contact-reviewed > strong { font: 800 .68rem var(--home-mono); }
.first-visit-contact-reviewed p { margin: 10px 0; font-size: .79rem; line-height: 1.5; }
.first-visit-contact-reviewed pre { white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; font-size: .83rem; line-height: 1.5; }
.first-visit-contact-reviewed a { color: #245d47; font-size: .85rem; font-weight: 780; }
.first-visit-paper-detour { max-width: 690px; margin-top: 12px; padding: 14px 16px; border-left: 3px solid #a64b32; background: #eee2c8; }
.first-visit-paper-detour button { min-height: 44px; padding: 9px 12px; border: 1px solid #9c432d; background: #fffdf6; color: #793c29; font-family: inherit; font-size: .85rem; font-weight: 750; line-height: 1.45; text-align: left; cursor: pointer; }
.first-visit-paper-detour button:hover { background: #f8ddc8; }
.first-visit-paper-detour p { margin: 9px 0 0; font-size: .8rem; line-height: 1.5; }
.first-visit-contact-reviewed:focus-visible { outline: 3px solid #a64b32; outline-offset: 4px; }
#first-visit-cases-return-entry button { padding: 5px 0; border: 0; background: none; color: #245d47; font: inherit; font-weight: 750; text-align: left; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
#first-visit-cases-return-entry a { display: block; margin-top: 9px; }
.first-visit-ending :is(button, a, summary):focus-visible,
.first-visit-path-panel :is(button, a, summary, input, textarea):focus-visible,
#first-visit-cases-return-entry button:focus-visible { outline: 3px solid #a64b32; outline-offset: 4px; }
.first-visit-finish-summary:focus-visible { outline: 3px solid #a64b32; outline-offset: 5px; }
@keyframes first-visit-paper-open { from { transform: perspective(900px) rotateX(-4deg); } to { transform: perspective(900px) rotateX(0); } }
@media (max-width: 730px) {
  .first-visit-check { grid-template-columns: 1fr; padding: 20px 17px; }
  .first-visit-check-result { grid-column: 1; padding: 19px 16px; box-shadow: 3px 3px 0 #c9d4c3; }
  .first-visit-finish-summary > h3 { margin: 19px 16px 0; font-size: 1.85rem; }
  .first-visit-finish-summary > p { margin: 7px 16px 16px; }
  .first-visit-rule-comparison { margin: 0 16px 18px; }
  .first-visit-rule-call { grid-template-columns: 1fr; padding: 12px; gap: 5px; }
  .first-visit-rule-call > span { grid-row: auto; }
  .first-visit-rule-head > strong { font-size: .59rem; }
  .first-visit-rule-conclusion { margin: 12px 0 10px; font-size: .88rem; }
  .first-visit-finish-next-check { font-size: .73rem; padding: 10px 11px; }
  .first-visit-finish-why > summary { padding: 12px 16px; flex-wrap: wrap; }
  .first-visit-finish-why > summary span { font-size: .66rem; }
  .first-visit-finish-why .workflow-result { margin: 0 16px 18px; }
  .first-visit-ending-paths { grid-template-columns: 1fr; padding: 16px; gap: 12px; }
  .first-visit-ending-path { min-height: 0; padding: 14px; gap: 7px; }
  .first-visit-ending-path > strong { font-size: 1.12rem; }
  .first-visit-path-panel { padding: 16px; }
  .first-visit-judgment-comparison, .first-visit-judgment-decision { margin: 0 16px 18px; }
  .first-visit-judgment-papers { grid-template-columns: 1fr; gap: 12px; }
  .first-visit-judgment-papers::after { display: none; }
  .first-visit-judgment-papers > div { padding: 15px; }
  .first-visit-judgment-decision { padding: 16px; }
}
@media (max-width: 410px) {
  .first-visit-guesses button { min-height: 76px; padding: 12px; font-size: .84rem; }
  .first-visit-check-stamp strong, .draft-confidence { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .first-visit-path-panel, .reply-workflow[data-record="opened"] .workflow-evidence { animation: none; }
  .first-visit-guesses button, .first-visit-ending-path { transition: none; }
  .first-visit-ending-path:hover, .first-visit-guesses button:hover { transform: none; }
  .first-visit-rule-call:last-child > strong::before,
  .first-visit-check-stamp strong, .draft-confidence,
  .first-visit-judgment-guess > strong, .first-visit-judgment-refund > strong,
  .first-visit-judgment-decision-head strong { transform: none; }
}
