/* New selection and visual-help components reuse the existing palette and typeface. */
.selection-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 18px; }
.selection-modes button { min-width: 0; min-height: 80px; padding: 12px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font-family: var(--font); cursor: pointer; text-align: left; }
.selection-modes strong { display: block; font-size: 17px; }
.intro-copy .compact-title-tail { white-space: nowrap; }
.selection-modes span { display: block; margin-top: 5px; font-size: 13px; color: var(--muted); }
.selection-modes [aria-pressed="true"] { border-color: var(--rose-deep); background: var(--surface-soft); box-shadow: inset 0 3px var(--rose-deep); }
.selection-panel, .identify-panel, .compare-card { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.selection-panel { padding: clamp(18px, 3vw, 30px); margin-top: 18px; }
.selection-panel > h2 { font-size: clamp(25px, 3vw, 32px); line-height: 1.35; margin: 10px 0; }
.selection-panel > p { color: var(--muted); font-size: 16px; line-height: 1.7; }
.identify-panel { margin-bottom: 18px; padding: 16px 18px; }
.identify-panel > summary { font-size: 17px; font-weight: 700; cursor: pointer; color: var(--rose-deep); }
.identify-panel > p { font-size: 16px; line-height: 1.7; }
.identify-panel > a { color: var(--rose-deep); font-size: 14px; }
.selection-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.selection-field { display: flex; flex-direction: column; gap: 9px; min-width: 0; font-size: 16px; font-weight: 600; }
.selection-field select, .selection-field input { width: 100%; min-width: 0; min-height: 52px; padding: 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--ink); font: 17px var(--font); }
.selection-field input::placeholder { color: var(--muted); }
.selection-preferences, .selection-detail { margin-top: 18px; padding: 15px; border: 1px solid var(--line); border-radius: 8px; }
.selection-preferences > summary, .selection-detail > summary { font-size: 16px; font-weight: 600; cursor: pointer; }
.selection-preferences[open] > summary { margin-bottom: 16px; }
.selection-detail p { color: var(--muted); font-size: 15px; line-height: 1.7; }
.selection-price-note { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 18px 0; }
.selection-result { margin-top: 28px; padding-top: 24px; border-top: 2px solid var(--rose-soft); scroll-margin-top: 22px; }
.selection-result > h2 { font-size: 26px; line-height: 1.4; margin: 0 0 12px; }
.selection-result > p { font-size: 17px; line-height: 1.7; }
.selection-primary { margin-top: 22px; padding: 20px; background: var(--surface-soft); border: 1px solid var(--line-strong); border-radius: 10px; }
.selection-card-body h3 { font-size: clamp(25px, 4vw, 31px); line-height: 1.4; margin: 10px 0 8px; overflow-wrap: anywhere; }
.selection-pen { font-size: 21px; font-weight: 700; color: var(--rose-deep); margin: 0 0 18px; }
.selection-reasons { font-size: 17px; line-height: 1.75; padding-left: 23px; }
.selection-reasons li { margin-bottom: 8px; }
.selection-tradeoff { font-size: 16px; line-height: 1.7; color: var(--muted); }
.selection-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.selection-actions button { white-space: normal; min-height: 44px; }
.selection-costs { margin: 15px 0; font-size: 15px; }
.selection-costs > div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.selection-costs dd { margin: 0; line-height: 1.6; }
.selection-alternative { margin-top: 18px; border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.selection-alternative > summary { font-size: 17px; font-weight: 600; line-height: 1.65; cursor: pointer; }
.selection-source { color: var(--muted); font-size: 13px !important; line-height: 1.7; margin-top: 18px; }
.selection-source a, .help-source a { color: var(--rose-deep); }
.compatible-list { list-style: none; padding: 0; margin: 12px 0 0; }
.compatible-list button { width: 100%; padding: 11px 0; min-height: 44px; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--rose-deep); font: 15px var(--font); text-align: left; cursor: pointer; }
.model-results { margin: 14px 0; font-size: 15px; line-height: 1.7; }
.model-match { padding: 12px 0; border-bottom: 1px solid var(--line); }
.model-match > strong, .model-match > span { display: block; margin-bottom: 8px; }
.model-match > span { color: var(--muted); font-size: 14px; }
.model-common-name { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; font-size: 18px; line-height: 1.5; }
.model-common-name > small { color: var(--muted); font-size: 12px; font-weight: 400; }
.model-common-name + strong { color: var(--muted); font-weight: 500; }
.compare-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 22px; }
.compare-card { min-width: 0; padding: 22px; }
.compare-card h2, .compare-facts dd, .compare-facts dt { min-width: 0; overflow-wrap: anywhere; }
.compare-pencil { display: block; width: 100%; height: 78px; background: var(--canvas); border-radius: 8px; }
.compare-card h2 { font-size: 25px; margin: 17px 0 10px; }
.compare-audience { font-size: 17px; line-height: 1.65; color: var(--rose-deep); }
.compare-facts { font-size: 16px; margin: 20px 0; }
.compare-facts > div { display: grid; grid-template-columns: minmax(95px, 0.8fr) minmax(0, 1fr); gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.compare-facts dd { margin: 0; line-height: 1.55; }
.feature-yes { color: var(--mint-ink); font-weight: 700; }
.feature-no { color: var(--amber-ink); font-weight: 700; }
.compare-limit { color: var(--muted); font-size: 15px; line-height: 1.7; }
.compare-card > button { margin-top: 18px; width: 100%; }
.help-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 20px; }
.help-filters button { min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); font: 15px var(--font); cursor: pointer; }
.help-filters [aria-pressed="true"] { background: var(--surface-soft); border-color: var(--rose-deep); color: var(--rose-deep); font-weight: 700; }
.help-answer { padding: 0 18px 18px; }
.help-conclusion { color: var(--rose-deep); font-size: 18px; font-weight: 700; line-height: 1.7; }
.help-notice { font-size: 16px; line-height: 1.7; color: var(--ink); }
.help-steps { padding-left: 25px; font-size: 17px; line-height: 1.8; }
.help-steps li { margin-bottom: 10px; }
.help-checks { margin: 22px 0; padding: 18px; background: var(--surface-soft); border-radius: 8px; }
.help-checks h3 { margin: 0 0 14px; font-size: 18px; line-height: 1.6; }
.help-checks dl { margin: 0; }
.help-check-row { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 20px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 17px; line-height: 1.75; }
.help-check-row dt { color: var(--rose-deep); font-weight: 700; }
.help-check-row dd { margin: 0; min-width: 0; }
.help-check-row dt, .help-check-row dd { overflow-wrap: anywhere; }
.help-link { display: block; max-width: 100%; min-height: 44px; margin-top: 8px; padding: 8px 0; border: 0; background: none; color: var(--rose-deep); text-align: left; text-decoration: underline; text-underline-offset: 4px; font: 16px/1.7 var(--font); cursor: pointer; overflow-wrap: anywhere; }
.help-related { display: flex; flex-wrap: wrap; gap: 0 22px; }
.help-link:focus-visible { outline: 3px solid var(--rose-deep); outline-offset: 3px; }
.help-next { font-size: 15px; color: var(--muted); line-height: 1.7; padding-top: 12px; border-top: 1px solid var(--line); }
.help-source { font-size: 13px; color: var(--muted); }
.faq-list .help-issue > summary { font-size: 18px; line-height: 1.6; min-height: 64px; }
.guide-figure { margin: 18px 0; }
.guide-zoom { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--canvas); cursor: zoom-in; color: var(--rose-deep); }
.guide-zoom img { display: block; width: 100%; height: auto; border-radius: 10px; }
.guide-zoom-label { display: block; padding: 8px; font-size: 14px; }
.guide-figure figcaption { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.guide-photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.guide-photo-panel { min-width: 0; }
.guide-photo-panel h3 { margin: 0 0 12px; font-size: 20px; line-height: 1.5; }
.guide-photo-panel p { margin: 12px 0 0; font-size: 16px; line-height: 1.7; color: var(--ink); }
.guide-photo-panel .guide-zoom { border-radius: 8px; background: #edf0ee; }
.guide-photo-panel .guide-zoom img { aspect-ratio: 3 / 4; object-fit: contain; border-radius: 8px 8px 0 0; }
.guide-fallback { color: var(--ink); font-size: 16px; line-height: 1.7; padding: 16px; }
.guide-dialog { width: min(960px, 94vw); max-height: 90dvh; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); }
.guide-dialog::backdrop { background: rgb(47 39 42 / 55%); }
.guide-dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.guide-dialog-top h2 { font-size: 21px; margin: 0; }
.guide-dialog-top button { flex-shrink: 0; min-width: 68px; min-height: 44px; padding: 10px 15px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); color: var(--rose-deep); font: 16px var(--font); white-space: nowrap; cursor: pointer; }
.guide-dialog-hint { margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.6; }
#guide-dialog-content { overflow: auto; }
#guide-dialog-content img { display: block; width: 100%; min-width: 620px; height: auto; }
.selection-modes button:focus-visible, .selection-field :focus-visible, .guide-zoom:focus-visible { outline: 3px solid var(--rose-deep); outline-offset: 3px; }
@media (max-width: 599px) {
  .selection-form-grid, .compare-grid { grid-template-columns: minmax(0, 1fr); }
  .guide-photo-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .selection-modes strong { font-size: 15px; }
  .selection-modes span { font-size: 12px; line-height: 1.5; }
  .selection-primary { padding: 16px; }
  .selection-detail { padding: 12px; }
  .compare-card { padding: 18px; }
  .help-answer { padding: 0 14px 14px; }
  .help-checks { padding: 14px; }
  .help-check-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .guide-dialog { padding: 14px; }
}
