/* Stage renderer */
.stage-renderer { font-family: inherit; min-width: 0; max-width: 100%; box-sizing: border-box; flex: 1; align-self: stretch; display: flex; flex-direction: column; }
.stage-renderer:has(> .sr-segue) { justify-content: center; }
.stage-renderer * { box-sizing: border-box; }
.stage-renderer-field.sr-step-inactive { display: none !important; }
.stage-renderer-field.sr-step-leaving { animation: sr-step-out 0.25s ease forwards; }
.stage-renderer-field.sr-step-entering { animation: sr-step-in 0.3s ease both; }
@keyframes sr-step-out { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(-16px); } }
@keyframes sr-step-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: translateX(0); } }
.stage-renderer-field.sr-step-leaving-back { animation: sr-step-out-back 0.25s ease forwards; }
.stage-renderer-field.sr-step-entering-back { animation: sr-step-in-back 0.3s ease both; }
@keyframes sr-step-out-back { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(16px); } }
@keyframes sr-step-in-back { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: translateX(0); } }
.stage-renderer h2 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.25rem; }

/* Progress bar */
.sr-progress-bar { position: sticky; top: 3.5rem; left: 0; right: 0; background: #fff; z-index: 20; box-shadow: 0 2px 6px rgba(0,0,0,0.06); margin-bottom: 1.5rem; border-radius: 8px 8px 0 0; }
.stage-renderer { padding: 0 1.5rem 1.5rem; }
.sr-progress { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem; border-bottom: 1px solid #eee; overflow: visible; }
.sr-progress-compact { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem; overflow: visible; }
.sr-progress-main { flex: 1; min-width: 0; }
.sr-progress-back { background: #fff; border: 1px solid #d9d3c7; padding: 0.375rem 0.75rem 0.375rem 0.5rem; font: inherit; font-size: 0.8125rem; color: #4a7c59; font-weight: 600; cursor: pointer; border-radius: 999px; transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
.sr-progress-back:hover { background: #4a7c59; color: #fff; border-color: #4a7c59; }
.sr-progress-candidates { display: flex; flex-direction: column; align-items: stretch; gap: 0.375rem; min-width: 0; }
.sr-progress-candidates-label { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #999; }
.sr-progress-candidates-marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%); }
.sr-progress-candidates-track { display: flex; width: max-content; animation: sr-progress-candidates-marquee var(--marquee-duration, 60s) linear infinite; }
.sr-progress-candidates-marquee:hover .sr-progress-candidates-track { animation-play-state: paused; }
.sr-progress-candidates-ribbon { display: flex; gap: 0.375rem; padding-right: 0.375rem; flex-shrink: 0; }
@keyframes sr-progress-candidates-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.sr-progress-candidates-chip { display: inline-flex; align-items: center; gap: 0.375rem; background: rgba(255,255,255,0.7); border: 1px solid #e5e7eb; border-radius: 999px; padding: 0.1875rem 0.625rem 0.1875rem 0.5rem; font-size: 0.75rem; font-weight: 600; color: #333; flex-shrink: 0; white-space: nowrap; animation: srChipPop 0.22s ease backwards; }
@keyframes srChipPop { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }
.sr-progress-candidates-flag { width: 16px; height: 11px; object-fit: cover; border-radius: 1.5px; box-shadow: 0 0 0 1px rgba(0,0,0,0.08); }
.sr-progress-candidates-marquee.is-static { -webkit-mask-image: none; mask-image: none; overflow: visible; }
.sr-progress-candidates-marquee.is-static .sr-progress-candidates-track { animation: none; flex-wrap: wrap; width: 100%; gap: 0.375rem; }
.sr-progress-candidates-marquee.is-static .sr-progress-candidates-ribbon { flex-wrap: wrap; padding-right: 0; }
.sr-progress-candidates-marquee.is-static .sr-progress-candidates-ribbon[aria-hidden="true"] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .sr-progress-candidates-marquee { -webkit-mask-image: none; mask-image: none; overflow: visible; }
  .sr-progress-candidates-track { animation: none; flex-wrap: wrap; width: 100%; gap: 0.375rem; }
  .sr-progress-candidates-ribbon { flex-wrap: wrap; padding-right: 0; }
  .sr-progress-candidates-ribbon[aria-hidden="true"] { display: none; }
}

@media (max-width: 640px) {
  .sr-progress-compact { padding: 1rem 1rem; gap: 0.625rem; }
  .sr-progress-candidates { margin-top: 0.625rem; gap: 0.3125rem; }
  .sr-progress-candidates-chip { font-size: 0.6875rem; padding: 0.125rem 0.5rem 0.125rem 0.4375rem; }
  .sr-progress-candidates-flag { width: 14px; height: 10px; }
}

.stage-renderer .stage-renderer-desc { color: #666; font-size: 0.9375rem; line-height: 1.5; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid #eee; }
.stage-renderer-field { margin-bottom: 2.3rem; position: relative; padding-left: 1.25rem; }
.stage-renderer-field > label::before { content: ''; display: inline-block; width: 0.4375rem; height: 0.4375rem; background: #4a7c59; opacity: 0.75; vertical-align: 0.1em; margin-right: 0.5rem; margin-left: -1.25rem; }
.stage-renderer-field.sr-field-active { z-index: 50; }
.stage-renderer-field.sr-field-active .sr-dropdown { z-index: 50; }
.stage-renderer-field label { display: block; font-size: 0.9375rem; font-weight: 500; margin-bottom: 0.375rem; }
.stage-renderer-field label .req { color: #c00; }
.sr-debug-id { display: block; font-size: 0.6875rem; font-family: ui-monospace, monospace; color: #8bb8f8; background: #1f2338; padding: 0.125rem 0.375rem; border-radius: 3px; margin-top: 0.25rem; width: fit-content; }
.stage-renderer-field .field-desc { font-size: 0.875rem; line-height: 1.5; color: #666; margin-bottom: 0.875rem; }
.stage-renderer-field .field-help { font-size: 0.8125rem; line-height: 1.5; color: #999; margin-top: 0.25rem; }

/* Rich-text containers render markdown output (paragraphs, lists, links).
   The page-level `* { margin: 0 }` reset zeros all block margins, so we
   restore matched spacing for every block type markdown emits and force
   font-size/line-height to inherit. Without these, <p> blocks would
   squish together while <ul>/<li> keep space, and browsers can render
   <ul>/<li> at slightly different default metrics than <p>. */
.stage-renderer-desc > :first-child,
.sr-segue-desc > :first-child,
.field-desc > :first-child,
.field-help > :first-child { margin-top: 0; }
.stage-renderer-desc > :last-child,
.sr-segue-desc > :last-child,
.field-desc > :last-child,
.field-help > :last-child { margin-bottom: 0; }
.stage-renderer-desc p, .stage-renderer-desc ul, .stage-renderer-desc ol,
.sr-segue-desc p, .sr-segue-desc ul, .sr-segue-desc ol,
.field-desc p, .field-desc ul, .field-desc ol,
.field-help p, .field-help ul, .field-help ol { font-size: inherit; line-height: inherit; margin: 0.5rem 0; }
.stage-renderer-desc ul, .stage-renderer-desc ol,
.sr-segue-desc ul, .sr-segue-desc ol,
.field-desc ul, .field-desc ol,
.field-help ul, .field-help ol { padding-left: 1.25rem; }
.stage-renderer-desc li,
.sr-segue-desc li,
.field-desc li,
.field-help li { font-size: inherit; line-height: inherit; margin: 0.125rem 0; }
.stage-renderer-desc a,
.sr-segue-desc a,
.field-desc a,
.field-help a { color: #4a7c59; }
.stage-renderer-field input[type="text"],
.stage-renderer-field input[type="number"],
.stage-renderer-field textarea { width: 100%; padding: 0.5rem 0.75rem; border: 1px solid #d1d5db; border-radius: 6px; font-size: 0.875rem; font-family: inherit; background: #fff; box-sizing: border-box; }

/* Approximate date */
.sr-approx-date { display: flex; gap: 0.5rem; align-items: flex-start; max-width: 22rem; }
.sr-approx-date .sr-filter-wrap { flex: 3 1 0; min-width: 0; }
.sr-approx-date .sr-filter-wrap:nth-child(2) { flex: 2 1 0; }
.sr-approx-date-year { flex: 2 1 0; width: 0 !important; min-width: 0; }

/* Custom date picker */
.sr-date-wrap { position: relative; }
.stage-renderer-field input.sr-date-input { padding-left: 2.5rem; }
.sr-date-input:focus { outline: none; border-color: #111; }
.sr-cal-toggle { position: absolute; left: 0.5rem; top: 0; height: 37px; background: none; border: none; color: #999; cursor: pointer; padding: 0.25rem; display: flex; align-items: center; }
.sr-cal-toggle:hover { color: #333; }
.sr-calendar { display: none; position: absolute; top: calc(100% + 4px); left: 0; z-index: 30; background: #fff; border: 1px solid #d1d5db; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); padding: 0.75rem; width: 280px; user-select: none; animation: sr-cal-in 0.15s ease; }
.sr-date-wrap.open .sr-calendar { display: block; }
@keyframes sr-cal-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.sr-cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.sr-cal-header button { background: none; border: none; cursor: pointer; padding: 0.25rem 0.5rem; border-radius: 4px; font-size: 1rem; color: #333; line-height: 1; }
.sr-cal-header button:hover { background: #f3f4f6; }
.sr-cal-title { font-size: 0.875rem; font-weight: 600; cursor: pointer; }
.sr-cal-title:hover { color: #666; }
.sr-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; text-align: center; }
.sr-cal-dow { font-size: 0.6875rem; font-weight: 600; color: #999; padding: 0.25rem 0; }
.sr-cal-day { font-size: 0.8125rem; padding: 0.375rem 0; border-radius: 6px; cursor: pointer; color: #333; }
.sr-cal-day:hover { background: #f3f4f6; }
.sr-cal-day.other { color: #ccc; }
.sr-cal-day.today { font-weight: 700; }
.sr-cal-day.selected { background: #111; color: #fff; }
.sr-cal-day.selected:hover { background: #333; }
.sr-cal-months { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.sr-cal-month { font-size: 0.8125rem; padding: 0.5rem 0; border-radius: 6px; cursor: pointer; color: #333; text-align: center; }
.sr-cal-month:hover { background: #f3f4f6; }
.sr-cal-month.selected { background: #111; color: #fff; }
.sr-cal-years { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.sr-cal-year { font-size: 0.8125rem; padding: 0.375rem 0; border-radius: 6px; cursor: pointer; color: #333; text-align: center; }
.sr-cal-year:hover { background: #f3f4f6; }
.sr-cal-year.selected { background: #111; color: #fff; }
.stage-renderer-field .radio-group, .stage-renderer-field .checkbox-group { display: flex; flex-direction: column; gap: 0.5rem; }
.stage-renderer-field .radio-group label, .stage-renderer-field .checkbox-group label { font-weight: 400; display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.stage-renderer-field .file-drop { border: 2px dashed #d1d5db; border-radius: 6px; padding: 1.5rem; text-align: center; color: #999; font-size: 0.875rem; cursor: pointer; }
.stage-renderer-field .file-drop:hover { border-color: #999; color: #666; }

/* Filterable dropdown */
.sr-filter-wrap { position: relative; }
.sr-filter-wrap.open { z-index: 20; }
.sr-filter-wrap input.sr-filter-input { width: 100%; padding: 0.5rem 2rem 0.5rem 0.75rem; border: 1px solid #d1d5db; border-radius: 6px; font-size: 0.875rem; font-family: inherit; background: #fff; box-sizing: border-box; }
.sr-filter-wrap::after { content: ''; position: absolute; right: 0.75rem; top: 50%; border: 4px solid transparent; border-top: 5px solid #999; pointer-events: none; transition: transform 0.2s ease; transform: translateY(-25%); }
.sr-filter-wrap.open::after { transform: translateY(-75%) rotate(180deg); }
.sr-filter-wrap input.sr-filter-input:focus { outline: none; }
.sr-filter-wrap .sr-dropdown { position: absolute; top: 100%; left: 0; right: 0; max-height: 0; overflow: hidden; opacity: 0; background: #fff; border: 1px solid #d1d5db; border-top: none; border-radius: 0 0 6px 6px; z-index: 10; transition: max-height 0.2s ease, opacity 0.2s ease; }
.sr-filter-wrap.open .sr-dropdown { max-height: min(320px, 50vh); overflow-y: auto; opacity: 1; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08); }
.sr-filter-wrap.open-up .sr-dropdown { top: auto; bottom: 100%; border-top: 1px solid #d1d5db; border-bottom: none; border-radius: 6px 6px 0 0; }
.sr-filter-wrap.open.open-up .sr-dropdown { box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.08); }
.sr-filter-wrap.open.open-up .sr-filter-input { border-radius: 0 0 6px 6px; }
.sr-filter-wrap.open input.sr-filter-input { border-radius: 6px 6px 0 0; }
.sr-dropdown .sr-option { padding: 0.375rem 1.75rem 0.375rem 0.75rem; font-size: 0.875rem; cursor: pointer; position: relative; }
.sr-dropdown .sr-option:hover, .sr-dropdown .sr-option.highlighted { background: #f3f4f6; }
.sr-dropdown .sr-option.selected { font-weight: 600; }
.sr-dropdown .sr-option.selected::before { content: '✓ '; font-weight: 600; color: #111; margin-right: 0.25rem; }
.sr-dropdown .sr-no-match { padding: 0.375rem 0.75rem; font-size: 0.8125rem; color: #999; font-style: italic; }
.sr-dropdown .sr-option-separator { height: 1px; background: #e5e7eb; margin: 0.25rem 0; pointer-events: none; }

/* Catalog multi-select */
.sr-multi { position: relative; background: #fff; cursor: text; box-sizing: border-box; display: flex; flex-direction: column; }
.sr-multi-input { order: 1; }
.sr-multi-tags { order: 0; display: flex; flex-wrap: wrap; gap: 0.375rem; padding: 0 0 0.375rem; }
.sr-multi.open.open-up .sr-multi-tags { order: 2; padding: 0.375rem 0 0; }
.sr-multi.open.open-up::after { bottom: auto; top: 0.8125rem; }
.sr-multi-tags:empty { display: none; }
.sr-multi-input { width: 100%; padding: 0.5rem 2rem 0.5rem 0.75rem; border: 1px solid #d1d5db; border-radius: 6px; font-size: 0.875rem; font-family: inherit; background: #fff; box-sizing: border-box; }
.sr-multi::after { content: ''; position: absolute; right: 0.75rem; bottom: 0.8125rem; border: 4px solid transparent; border-top: 5px solid #999; pointer-events: none; transition: transform 0.2s ease; }
.sr-multi.open::after { transform: translateY(-2px) rotate(180deg); }
.sr-multi-input:focus { outline: none; border-color: #111; }
.sr-multi-tag { display: inline-flex; align-items: center; gap: 0.25rem; background: #dbeafe; border-radius: 4px; padding: 0.1875rem 0.5rem; font-size: 0.875rem; color: #1e40af; white-space: nowrap; }
.sr-multi-tag button { background: none; border: none; color: #1e40af; cursor: pointer; font-size: 0.9375rem; padding: 0; line-height: 1; }
.sr-multi-tag button:hover { color: #1e3a8a; }
.sr-multi .sr-dropdown { position: absolute; top: 100%; left: 0; right: 0; max-height: 0; overflow: hidden; opacity: 0; background: #fff; border: 1px solid #d1d5db; border-top: none; border-radius: 0 0 6px 6px; z-index: 10; transition: max-height 0.2s ease, opacity 0.2s ease; }
.sr-multi.open .sr-dropdown { max-height: min(320px, 50vh); overflow-y: auto; opacity: 1; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08); }
.sr-multi.open-up .sr-dropdown { top: auto; bottom: 100%; border-top: 1px solid #d1d5db; border-bottom: none; border-radius: 6px 6px 0 0; }
.sr-multi.open.open-up .sr-dropdown { box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.08); }
.sr-multi.open.open-up .sr-multi-input { border-radius: 0 0 6px 6px; }
.sr-multi.open .sr-multi-input { border-radius: 6px 6px 0 0; }

/* Loading animation */
.sr-loader { display: flex; align-items: center; justify-content: center; flex: 1; align-self: stretch; min-height: 200px; }
.sr-logo { width: 56px; height: 56px; }
.sr-logo .sr-wave { stroke: #d1d5db; stroke-width: 2.24; fill: none; stroke-miterlimit: 10; animation: sr-color-wave 1.4s ease-in-out infinite; }
.sr-logo .sr-wave:nth-child(1) { animation-delay: 0s; }
.sr-logo .sr-wave:nth-child(2) { animation-delay: 0.1s; }
.sr-logo .sr-wave:nth-child(3) { animation-delay: 0.2s; }
.sr-logo .sr-wave:nth-child(4) { animation-delay: 0.3s; }
.sr-logo .sr-wave:nth-child(5) { animation-delay: 0.4s; }
.sr-logo .sr-wave:nth-child(6) { animation-delay: 0.5s; }
.sr-logo .sr-wave:nth-child(7) { animation-delay: 0.6s; }
@keyframes sr-color-wave {
  0%, 100% { stroke: #d1d5db; }
  30% { stroke: #4a7c59; }
  60% { stroke: #d1d5db; }
}

/* Attachment question */
.sr-attachment { width: 100%; }
.sr-attach-drop { border: 2px dashed #d1d5db; border-radius: 8px; padding: 2rem 1.5rem; text-align: center; cursor: pointer; transition: border-color 0.15s, background 0.15s; position: relative; }
.sr-attach-drop:hover { border-color: #4a7c59; background: rgba(74,124,89,0.04); }
.sr-attach-drop.sr-attach-dragover { border-color: #4a7c59; background: rgba(74,124,89,0.08); }
.sr-attach-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.sr-attach-prompt { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; color: #666; pointer-events: none; }
.sr-attach-prompt svg { color: #999; }
.sr-attach-hint { font-size: 0.75rem; color: #999; }
.sr-attach-progress { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; pointer-events: none; }
.sr-attach-progress-bar { max-width: 200px; height: 4px; background: #4a7c59; border-radius: 2px; transition: width 0.2s ease; }
.sr-attach-progress-text { font-size: 0.8125rem; color: #666; }
.sr-attach-preview { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.75rem 1rem; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 6px; }
.sr-attach-file { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.sr-attach-file svg { flex-shrink: 0; color: #4a7c59; }
.sr-attach-filename { font-size: 0.875rem; color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-attach-remove { background: none; border: none; font-size: 1.25rem; color: #999; cursor: pointer; padding: 0.25rem; line-height: 1; }
.sr-attach-remove:hover { color: #c00; }

/* Entrance animations */
.sr-hidden { opacity: 0; pointer-events: none; }
.sr-appear { animation: sr-appear 0.35s ease; }
@keyframes sr-appear {
  from { opacity: 0; }
}

/* Segue */
.sr-segue { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 3rem 1.5rem; flex: 1; align-self: stretch; }
.sr-segue-title { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.5rem; }
.sr-segue-desc { color: #666; font-size: 1rem; max-width: 28rem; margin-bottom: 0; line-height: 1.5; }
.sr-segue .sr-segue-continue { margin-top: 2rem; }
.sr-segue-fade { opacity: 0; transform: translateY(8px); transition: opacity 0.4s ease, transform 0.4s ease; }
.sr-segue-fade.sr-segue-visible { opacity: 1; transform: translateY(0); }

/* Animated checkmark */
.sr-checkmark { width: 56px; height: 56px; margin-bottom: 1rem; }
.sr-checkmark-circle { stroke: #4a7c59; stroke-width: 2; stroke-dasharray: 151; stroke-dashoffset: 151; animation: sr-circle-draw 0.5s ease forwards; }
.sr-checkmark-check { stroke: #4a7c59; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 36; stroke-dashoffset: 36; animation: sr-check-draw 0.3s 0.35s ease forwards; }
@keyframes sr-circle-draw { to { stroke-dashoffset: 0; } }
@keyframes sr-check-draw { to { stroke-dashoffset: 0; } }

/* Next button */
.sr-actions { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 1.5rem; }
.sr-back-btn { padding: 0.625rem 1.5rem; background: #fff; color: #111; border: 1px solid #d1d5db; border-radius: 999px; font-size: 0.9375rem; font-family: inherit; font-weight: 500; cursor: pointer; }
.sr-back-btn:hover { background: #f3f4f6; }
@media (max-width: 768px) {
  .sr-actions { gap: 0.75rem; }
  .sr-actions .sr-back-btn, .sr-actions .sr-next-btn { flex: 1; padding-left: 0; padding-right: 0; }
}
.sr-next-btn { padding: 0.625rem 2rem; background: #4a7c59; color: #fff; border: none; border-radius: 999px; font-size: 0.9375rem; font-family: inherit; font-weight: 500; cursor: pointer; display: inline-grid; }
.sr-next-btn:hover { background: #3b6548; }
.sr-next-btn .sr-next-label, .sr-next-btn .sr-next-spinner { grid-area: 1 / 1; display: flex; align-items: center; justify-content: center; }
.sr-next-btn .sr-next-spinner { width: 16px; height: 16px; box-sizing: border-box; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; border-radius: 50%; justify-self: center; align-self: center; visibility: hidden; }
.sr-next-btn.is-loading { pointer-events: none; cursor: wait; }
.sr-next-btn.is-loading .sr-next-label { visibility: hidden; }
.sr-next-btn.is-loading .sr-next-spinner { visibility: visible; animation: sr-next-spin 0.7s linear infinite; }
@keyframes sr-next-spin { to { transform: rotate(360deg); } }

/* Review-matches escape hatch — appears in the actions row when the user
   already has at least one likely match, so they can pause discovery and
   review what they have without losing progress. Sits to the left of Next
   on desktop; wraps to its own row and goes full-width on mobile. */
.sr-review-matches-btn { padding: 0.5rem 1.25rem; background: transparent; color: #4a7c59; border: 1px dashed #b6cdbe; border-radius: 999px; font-size: 0.875rem; font-family: inherit; font-weight: 500; cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease; }
.sr-review-matches-btn:hover { background: #f1f6f3; border-color: #4a7c59; border-style: solid; }
.sr-actions:has(.sr-review-matches-btn) { flex-wrap: wrap; }
@media (max-width: 768px) {
  .sr-actions .sr-review-matches-btn { flex-basis: 100%; order: 99; }
}

/* Validation errors */
.sr-error > input, .sr-error > select, .sr-error > textarea, .sr-error .sr-filter-input, .sr-error .sr-date-input, .sr-error .sr-multi-input { border-color: #c00 !important; box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.1); transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.sr-error .sr-approx-date .sr-filter-input { border-color: #d1d5db !important; box-shadow: none; }
.sr-error .sr-approx-date-year { border-color: #c00 !important; box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.1); transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.sr-error-msg { font-size: 0.8125rem; color: #c00; margin-top: 0.25rem; animation: sr-error-in 0.3s ease; }
@keyframes sr-error-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

