/* BUILD17-M3-GOVERNED-EVALUATION-001 -- additive stylesheet for the
   evaluation request flow. Uses only the site's own theme variables
   (--ink, --ink-soft, --surface, --surface-2, --line, --brand,
   --radius-sm) -- see assets/css/main-build14.css. */

.eval-track-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.eval-track-btn {
  display: block; text-align: left; padding: 18px 20px; border-radius: var(--radius-sm, 10px);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
}
.eval-track-btn strong { display: block; font-size: 1.05rem; margin-bottom: 6px; }
.eval-track-btn span { display: block; font-size: .88rem; color: var(--ink-soft); }
.eval-track-btn:hover, .eval-track-btn:focus-visible { border-color: var(--brand); }
.eval-track-btn.active { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand) inset; }

.eval-steps { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 24px; padding: 0; }
.eval-steps li {
  font: 700 .78rem/1.3 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-soft);
}
.eval-steps li.active { border-color: var(--brand); color: var(--brand); }

.eval-panel { max-width: 640px; }
.eval-panel-note { color: var(--ink-soft); font-size: .9rem; margin: 0 0 16px; }

#eval-register-form, #eval-check-form { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
#eval-register-form label, #eval-check-form label { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; font-weight: 700; }
#eval-register-form input, #eval-register-form textarea, #eval-check-form input {
  font: inherit; font-weight: 400; padding: 10px 12px; border-radius: var(--radius-sm, 10px);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.eval-optional { font-weight: 400; color: var(--ink-soft); }
.eval-form-error { color: #c0392b; font-size: .86rem; font-weight: 700; }

.eval-terms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 0 0 18px; }
.eval-terms-grid dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); margin-bottom: 4px; }
.eval-terms-grid dd { margin: 0; font-size: .88rem; overflow-wrap: anywhere; } /* BUILD17-EVAL-MOBILE-OVERFLOW-001: let the unbroken 64-hex SHA-256 wrap on narrow screens (full value kept, no truncation; wraps only when it cannot fit) */

.eval-accept-row {
  display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; margin: 0 0 20px;
  padding: 14px; border-radius: var(--radius-sm, 10px); border: 1px solid var(--line); background: var(--surface);
}
.eval-accept-row input { margin-top: 3px; }

.eval-panel [data-eval-back], .eval-panel [data-eval-continue] { margin-right: 10px; margin-top: 8px; }

.eval-check-out { font-size: .9rem; margin: 0; padding: 12px 14px; border-radius: var(--radius-sm, 10px); border: 1px solid var(--line); background: var(--surface); white-space: pre-line; }
.eval-submit-error { color: #c0392b; font-size: .9rem; font-weight: 700; margin-top: 12px; }

/* BUILD17-EVAL-GUIDED-UX-001 -- Guided-UX correction: reframe the inner request
   micro-flow, a sticky current-evaluation summary, and a two-column
   field/help layout for Step 3 so an evaluator never has to scroll up to
   copy IDs they already provided this session. */
.eval-request-progress-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); margin: 0 0 8px; }

.eval-current-card {
  position: fixed; right: 18px; bottom: 18px; z-index: 90; width: min(280px, calc(100vw - 36px));
  border: 1px solid var(--line); border-radius: var(--radius, 14px); background: var(--surface);
  box-shadow: var(--shadow, 0 12px 30px rgba(0,0,0,.14)); padding: 14px 16px; font-size: .82rem;
}
.eval-current-card-head { font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .68rem; color: var(--ink-soft); margin-bottom: 8px; }
.eval-current-card dl { margin: 0 0 10px; display: grid; gap: 6px; }
.eval-current-card dt { color: var(--ink-soft); font-size: .68rem; text-transform: uppercase; letter-spacing: .03em; }
.eval-current-card dd { margin: 2px 0 0; font-weight: 700; word-break: break-all; }
.eval-current-card .btn { width: 100%; justify-content: center; min-height: 36px; padding: 8px 12px; font-size: .82rem; }
@media (max-width: 900px) { .eval-current-card { position: static; width: auto; margin: 18px 0; } }

.eval-check-layout { display: grid; grid-template-columns: minmax(0, 640px) minmax(220px, 300px); gap: 24px; align-items: start; }
.eval-check-help {
  position: sticky; top: 90px; border: 1px solid var(--line); border-radius: var(--radius-sm, 10px);
  background: var(--surface); padding: 14px 16px; font-size: .84rem; color: var(--ink-soft);
}
.eval-check-help strong { display: block; color: var(--ink); margin-bottom: 6px; }
.eval-check-help p { margin: 0 0 8px; }
.eval-check-help p:last-child { margin-bottom: 0; }
.eval-check-help code { word-break: break-all; }
@media (max-width: 980px) { .eval-check-layout { grid-template-columns: 1fr; } .eval-check-help { position: static; } }

/* BUILD17-EVAL-GUIDED-UX-002 -- structural fix for the Current Evaluation card colliding with
   Step 3. The fixed card owns the right-most 298px of the viewport (18px inset + 280px). Between
   901px (card becomes fixed) and ~1300px the Step-3 field/help layout extends into that band, so
   the sticky help panel (or, below 981px, the stacked form + help) slid under the card. While the
   card is shown, cap the Step-3 layout so it always ends 24px left of the card's column (100vw
   also counts a classic scrollbar, hence 360 = 298 + 24 + 20 container inset + ~18 scrollbar).
   The cap only binds where space is short: at >= ~1300px the layout's natural 964px width is
   smaller, so wide-desktop behavior is unchanged. Nothing is clipped or hidden -- the help column
   simply wraps within its own minmax(220px, 300px) track.
   The card also sits above the site's back-to-top button and review watermark (both fixed at the
   bottom-right, ~22/12px insets), which otherwise covered its "Use for Step 3" button, and scrolls
   internally rather than running off a short viewport. */
@media (min-width: 901px) {
  body:has(#eval-current-card:not([hidden])) .eval-check-layout { max-width: calc(100vw - 360px); }
  .eval-current-card { bottom: 72px; max-height: calc(100vh - 170px); overflow-y: auto; }
}

/* BUILD17-SIW-WORKBENCH-001: Step 5 -- the SIW Workbench (general) and the Canon Reader (specialization). */
.eval-step5 { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); display: grid; gap: 10px; white-space: normal; }
.eval-step5-dest { display: grid; gap: 4px; }
.eval-step5-dest .btn { justify-self: start; }
.eval-step5-dest .eval-panel-note { margin: 0; }
/* BUILD17-PROTECTED-DATA-001: visible evaluation-access state + revocation. */
.eval-access-control { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); display: grid; gap: 8px; white-space: normal; }
.eval-access-control p { margin: 0; }
.eval-access-control .btn { justify-self: start; }
.eval-access-confirm p { margin: 0 0 8px; }
.eval-access-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--brand); color: var(--brand); font-size: .8rem; letter-spacing: .06em; }
.eval-access-badge.revoked { border-color: var(--line); color: var(--ink-soft); }
.eval-access-confirm { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm, 10px); background: var(--surface-2, var(--surface)); }
