body[data-page="alternatives"] { height: auto; min-height: 100vh; overflow: auto; display: block; }
body[data-page="alternatives"] .shell-header { margin-bottom: 18px; }
body[data-page="alternatives"] .alt-layout { height: auto; overflow: visible; padding-bottom: 30px; }
body[data-page="alternatives"] .alt-layout > .panel { display: block; }
.alt-layout { gap: 24px; grid-template-columns: minmax(0, 1fr); }
.alt-layout > .panel, .alt-layout .field, .alt-layout .section-head > div { min-width: 0; }
.alt-layout fieldset { min-inline-size: 0; }
.alt-layout p, .alt-layout small, .alt-layout .code { overflow-wrap: anywhere; }
.alt-service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.alt-service { padding: 15px 17px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,.55); }
.alt-service strong { display: block; margin-bottom: 8px; }
.alt-service small { display: block; margin-top: 8px; color: var(--muted); line-height: 1.4; }
.alt-setup { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 16px; }
.alt-setup summary, .alt-report-issues summary { cursor: pointer; color: var(--accent-strong); font-weight: 650; }
.alt-setup p, .alt-setup li { line-height: 1.6; }
.alt-selection-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; }
.alt-target-results { display: grid; gap: 8px; margin-top: 15px; }
.alt-target-option { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; padding: 14px 16px; text-align: left; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.6); cursor: pointer; color: var(--ink); }
.alt-target-option:hover, .alt-target-option:focus-visible { border-color: var(--accent); background: var(--accent-soft); }
.alt-target-option small { display: block; margin-top: 4px; color: var(--muted); }
.alt-selection { margin-top: 18px; padding: 18px; background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: 8px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.alt-selection p { margin: 5px 0 0; }
.alt-components-heading { margin-top: 24px; }
.alt-component-scroll { max-height: 490px; overflow: auto; }
.alt-component-table { min-width: 850px; }
.alt-component-table th { position: sticky; top: 0; background: #f4efe8; z-index: 1; }
.alt-component-table td { vertical-align: top; }
.alt-component-table td:first-child { width: 66px; }
.alt-component-table td:nth-child(2) { width: 29%; }
.alt-component-table td:nth-child(3) { width: 27%; }
.alt-component-table small { display: block; margin-top: 5px; }
.alt-component-table input[type="text"], .alt-component-table textarea { width: 100%; min-width: 170px; border: 1px solid var(--line); border-radius: 8px; background: white; padding: 9px; }
.alt-component-table details label { display: block; margin: 9px 0; font-size: .88rem; }
.alt-component-table details span { display: block; margin-bottom: 5px; }
.alt-component-table details summary { color: var(--accent-strong); cursor: pointer; }
.alt-research-options { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.alt-option { display: flex; align-items: flex-start; gap: 11px; cursor: pointer; }
.alt-option input { margin-top: 4px; accent-color: var(--accent); flex: 0 0 auto; }
.alt-option small { display: block; color: var(--muted); line-height: 1.5; margin-top: 5px; }
.alt-provider-options { display: flex; gap: 24px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 12px; margin: 24px 0 12px; padding: 16px; }
.alt-provider-options legend { padding: 0 7px; color: var(--muted); font-size: .9rem; }
.alt-provider-options label { display: inline-flex; align-items: center; gap: 8px; }
.alt-provider-options input { accent-color: var(--accent); }
.alt-provider-hint { flex-basis: 100%; margin: 2px 0 0; padding: 11px 14px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-strong); line-height: 1.5; }
.alt-technical-note { color: #805019; padding: 14px 17px; background: var(--warning-soft); border-radius: 10px; line-height: 1.55; }
.alt-batch-note { color: var(--accent-strong); padding: 12px 15px; background: var(--accent-soft); border-radius: 10px; line-height: 1.5; }
.alt-layout button:disabled { opacity: .52; cursor: not-allowed; box-shadow: none; }
.alt-message { margin-top: 12px; white-space: pre-wrap; line-height: 1.5; }
.alt-message.is-error { color: var(--danger); }
#alt-progress { width: 100%; height: 10px; accent-color: var(--accent); }
.alt-filter-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; align-items: end; }
.alt-original-option { padding-bottom: 12px; }
.alt-report-summary { margin: 18px 0; padding: 12px 16px; border-radius: 10px; background: var(--accent-soft); line-height: 1.6; }
.alt-results-scroll { overflow: auto; }
.alt-results-table { min-width: 1050px; }
.alt-results-table td { vertical-align: top; }
.alt-results-table th:nth-child(1) { width: 15%; }
.alt-results-table th:nth-child(2) { width: 20%; }
.alt-results-table th:nth-child(3) { width: 14%; }
.alt-results-table th:nth-child(4) { width: 14%; }
.alt-results-table th:nth-child(5) { width: 14%; }
.alt-results-table th:nth-child(6) { width: 23%; }
.alt-results-table small { display: block; margin-top: 5px; color: var(--muted); }
.alt-results-table .pill { margin: 7px 0; font-size: .72rem; }
.alt-results-table .alt-comparison { max-width: 350px; white-space: pre-wrap; line-height: 1.5; }
.alt-results-table details summary { color: var(--accent-strong); cursor: pointer; }
.alt-source-links { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 12px; }
.alt-source-links a { overflow-wrap: anywhere; }
.alt-empty { padding: 30px 20px; text-align: center; border: 1px dashed var(--line); border-radius: 14px; line-height: 1.6; }
.alt-notes, .alt-report-issues { margin-top: 18px; }
.alt-report-issues { padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.alt-report-issues p, .alt-notes p { margin: 10px 0; line-height: 1.5; }
.alt-export-note { margin-top: 18px; line-height: 1.5; }
.alt-no-wrap { white-space: nowrap; }
@media (max-width: 850px) {
  .alt-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .alt-selection-grid, .alt-filter-grid, .alt-research-options { grid-template-columns: 1fr; }
  .alt-selection { align-items: flex-start; flex-direction: column; }
  .alt-original-option { padding: 0; }
}
@media (max-width: 480px) { .alt-service-grid { grid-template-columns: 1fr; } }
