.selection-section { min-width: 0; margin: 26px 0 24px; }
.selection-section * { min-width: 0; }
.sel-heading { max-width: 780px; margin: 0 0 22px; }
.sel-eyebrow { color: var(--amber); font-size: 11px; font-weight: 600; letter-spacing: .1em; margin-bottom: 10px; }
.sel-heading h2 { font-size: clamp(25px, 3vw, 36px); line-height: 1.3; font-weight: 500; letter-spacing: -.025em; }
.sel-intro { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.sel-form { display: grid; grid-template-columns: 1.2fr 1fr .8fr 1fr; gap: 16px; padding: 22px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--paper); }
.sel-field { display: flex; flex-direction: column; gap: 7px; font-size: 12px; line-height: 1.5; }
.sel-field > span { color: var(--muted); }
.sel-field select, .sel-field input { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--paper); color: var(--ink); font: inherit; font-size: 14px; }
.sel-options { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; grid-column: 1/-1; border: 0; padding: 3px 0; margin: 0; }
.sel-options legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.sel-check { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; line-height: 1.5; cursor: pointer; }
.sel-check input { width: 15px; height: 15px; margin: 0; accent-color: var(--amber); flex-shrink: 0; }
.sel-form > .sel-details, .sel-actions { grid-column: 1/-1; }
.sel-advanced-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 12px 0; }
.sel-details { padding: 13px 0; border-top: 1px solid var(--line); line-height: 1.6; }
.sel-details > summary { cursor: pointer; color: var(--ink); font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
.sel-details[open] > summary { margin-bottom: 12px; }
.sel-details h4 { font-size: 13px; font-weight: 600; margin: 16px 0 6px; }
.sel-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.sel-actions a { font-size: 12px; color: var(--muted); text-underline-offset: 3px; }
.sel-submit { background: var(--ink); color: var(--paper); border-radius: 7px; padding: 12px 20px; font-size: 13px; min-height: 42px; }
.sel-submit:hover { background: var(--amber); }
.sel-status { min-height: 20px; padding: 13px 2px; color: var(--muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.sel-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 14px; align-items: start; margin: 8px 0 20px; }
.sel-card { background: var(--paper); border: 1px solid var(--line); padding: 18px; border-radius: 12px; overflow: hidden; font-size: 13px; line-height: 1.6; }
.sel-primary { border-color: #aa895f; box-shadow: inset 0 3px 0 #aa895f; }
.sel-card h3 { margin: 13px 0 3px; font-size: 19px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.sel-card-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.sel-badge { padding: 2px 8px; background: #efe9dd; border-radius: 4px; font-size: 11px; color: #6c573b; }
.sel-compare-toggle { font-size: 12px; color: var(--muted); }
.sel-confidence { margin-top: 12px; font-size: 12px; color: var(--green); }
.sel-note { color: var(--muted); font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.sel-bullets { padding-left: 18px; margin: 9px 0 12px; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.sel-bullets li + li { margin-top: 4px; }
.sel-evidence-record { margin: 8px 0 12px; padding: 10px 0; border-bottom: 1px dotted var(--line); font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.sel-evidence-record strong { display: block; font-size: 12px; }
.sel-evidence-record a, .sel-source a, .sel-details > div > a { color: var(--amber); text-underline-offset: 3px; }
.sel-code, .sel-small-code { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; font-family: 'IBM Plex Mono', ui-monospace, monospace; background: #f2eee6; padding: 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 11px; line-height: 1.6; max-width: 100%; }
.sel-small-code { margin: 7px 0; }
.sel-copy { font-size: 11px; padding: 5px 9px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--paper); margin: 8px 0 0; }
.sel-empty { border: 1px solid var(--line); border-left: 3px solid var(--amber); border-radius: 8px; padding: 16px 18px; margin: 8px 0 16px; color: var(--muted); background: var(--paper); font-size: 14px; line-height: 1.7; }
.sel-comparison { margin-bottom: 24px; }
.sel-comparison > h3 { font-size: 14px; font-weight: 500; margin: 14px 0 10px; }
.sel-table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); scrollbar-width: thin; }
.sel-table { border-collapse: collapse; width: 100%; min-width: 650px; table-layout: fixed; }
.sel-table th, .sel-table td { text-align: left; vertical-align: top; padding: 13px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.sel-table thead th { font-size: 13px; background: #f0ece3; font-weight: 500; }
.sel-table th:first-child { width: 130px; color: var(--muted); font-weight: 400; }
.sel-table th:last-child, .sel-table td:last-child { border-right: 0; }
.sel-table tr:last-child td, .sel-table tr:last-child th { border-bottom: 0; }
.sel-source { margin-bottom: 14px; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
@media (max-width: 760px) { .sel-form { grid-template-columns: 1fr 1fr; padding: 16px; gap: 13px; } .sel-advanced-grid { grid-template-columns: 1fr 1fr; } .sel-heading { margin-top: 10px; } .sel-actions { gap: 13px; } }
@media (max-width: 420px) { .sel-form { grid-template-columns: 1fr; } .sel-advanced-grid { grid-template-columns: 1fr; } .sel-options { gap: 12px 16px; } .sel-card { padding: 15px; } .sel-heading h2 { font-size: 27px; } .sel-submit { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .selection-section *, .selection-section *::before, .selection-section *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.sel-confidence-limited { color: var(--amber); }
.sel-confidence-unassessed { color: var(--muted); }

.sel-card-metrics { margin: 10px 0 13px; padding: 8px 0; border-top: 1px dotted var(--line); }
.sel-metric-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 12px; line-height: 1.7; }
.sel-metric-line > span { font-variant-numeric: tabular-nums; }
.sel-metric-line a { color: var(--amber); font-size: 11px; }
.sel-community-label { display: block; font-size: 12px; font-weight: 500; margin-top: 5px; }
.sel-table td > div > .sel-details, .sel-table td > .sel-details { margin-top: 7px; padding: 7px 0 0; }
.sel-table td > div > .sel-details > summary, .sel-table td > .sel-details > summary { color: var(--muted); font-size: 11px; }
