/* Machine Selector — filter + multi-machine side-by-side comparison + inquiry.
   Scope: .selector-page only. */

.selector-page .sel-hero { position: relative; isolation: isolate; overflow: hidden; padding: 68px 0 54px; color: var(--c-white); background: linear-gradient(100deg, rgba(4,24,35,.94) 0%, rgba(5,38,52,.84) 55%, rgba(6,46,61,.48) 100%), url('../images/hero.jpg') center/cover no-repeat; }
.selector-page .sel-hero::after { content: ''; position: absolute; z-index: -1; right: -150px; top: -220px; width: 540px; height: 540px; border: 1px solid rgba(111,226,232,.22); border-radius: 50%; box-shadow: 0 0 0 90px rgba(111,226,232,.05), 0 0 0 180px rgba(111,226,232,.03); }
.selector-page .sel-hero .cp-breadcrumb { color: rgba(255,255,255,.72); }
.selector-page .sel-hero .cp-breadcrumb a { color: #d7eef0; }
.selector-page .sel-hero h1 { color: var(--c-white); }
.selector-page .sel-hero h1 span { color: var(--c-brand-hi); }
.selector-page .sel-hero .cp-lead { color: rgba(255,255,255,.85); }

.selector-page .sel-steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin: 0 0 30px; padding: 0; list-style: none; }
.selector-page .sel-steps li { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 1px solid var(--cp-line); border-radius: 8px; background: var(--c-white); color: var(--cp-muted); font-size: 14.5px; line-height: 1.5; }
.selector-page .sel-steps b { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: var(--c-white); font-size: 14.5px; }
.selector-page .sel-steps strong { color: var(--cp-ink); }

.selector-page .sel-filters { padding: 26px 28px 6px; border: 1px solid var(--cp-line); border-radius: 10px; background: var(--c-white); box-shadow: 0 10px 30px rgba(18,47,62,.06); }
.selector-page .sel-filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.selector-page .sel-filter label { display: block; margin-bottom: 9px; color: #355a68; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.selector-page .sel-filter select { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid #cbdde5; border-radius: 5px; background: #fbfdfe; color: var(--cp-ink); font: inherit; font-size: 14.5px; }
.selector-page .sel-filter-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 20px; padding: 16px 0; border-top: 1px solid var(--cp-line); }
.selector-page .sel-count { color: var(--cp-muted); font-size: 14.5px; }
.selector-page .sel-count strong { color: var(--brand-dark); font-size: 17px; }
.selector-page .sel-reset { color: var(--brand-dark); font-size: 14px; font-weight: 700; background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.selector-page .sel-compare-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 34px 0 14px; }
.selector-page .sel-compare-head h2 { margin: 0; font-size: clamp(24px, 2.5vw, 32px); letter-spacing: -.03em; }
.selector-page .sel-compare-head p { margin: 6px 0 0; color: var(--cp-muted); font-size: 14.5px; }
.selector-page .sel-select-all { display: inline-flex; align-items: center; gap: 8px; color: var(--cp-muted); font-size: 14px; }
.selector-page .sel-select-all input { width: 16px; height: 16px; accent-color: var(--brand); }

.selector-page .sel-table-wrap { overflow-x: auto; border: 1px solid var(--cp-line); border-radius: 12px; background: var(--c-white); box-shadow: 0 12px 30px rgba(18,47,62,.06); }
.selector-page .sel-table { width: 100%; border-collapse: collapse; min-width: 900px; }
.selector-page .sel-table th, .selector-page .sel-table td { padding: 15px 16px; border-bottom: 1px solid var(--cp-line); border-right: 1px solid var(--cp-line); text-align: left; vertical-align: top; font-size: 14px; line-height: 1.6; }
.selector-page .sel-table th:last-child, .selector-page .sel-table td:last-child { border-right: 0; }
.selector-page .sel-table tbody tr:last-child th, .selector-page .sel-table tbody tr:last-child td { border-bottom: 0; }
.selector-page .sel-table thead th { background: #f1f7f9; }
.selector-page .sel-table thead .sel-label-cell { width: 170px; color: #355a68; font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.selector-page .sel-machine-head { min-width: 220px; }
.selector-page .sel-machine-head img { display: block; width: 100%; height: 130px; object-fit: cover; border-radius: 6px; margin-bottom: 10px; background: #eef4f5; }
.selector-page .sel-machine-head a { display: block; color: var(--cp-ink); font-size: 15px; font-weight: 700; line-height: 1.3; text-decoration: none; }
.selector-page .sel-machine-head a:hover { color: var(--brand-dark); text-decoration: underline; }
.selector-page .sel-check { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--brand-dark); font-size: 13px; font-weight: 700; }
.selector-page .sel-check input { width: 17px; height: 17px; accent-color: var(--brand); }
.selector-page .sel-table tbody th { width: 170px; background: #fbfdfe; color: #355a68; font-weight: 700; }
.selector-page .sel-table td { color: var(--cp-muted); }
.selector-page .sel-row-actions td, .selector-page .sel-row-actions th { background: #f1f7f9; }
.selector-page .sel-row-actions a { color: var(--brand-dark); font-weight: 700; font-size: 14px; }

.selector-page .sel-empty { padding: 60px 20px; text-align: center; border: 1px dashed #cbdde5; border-radius: 8px; background: #f9fcfd; }
.selector-page .sel-empty h3 { margin: 0 0 8px; font-size: 22px; }
.selector-page .sel-empty p { margin: 0 0 20px; color: var(--cp-muted); font-size: 14px; }

.selector-page .sel-inquiry { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 24px; padding: 24px 28px; border: 1px solid var(--brand); border-radius: 10px; background: linear-gradient(100deg, #eef8fa, var(--c-white)); }
.selector-page .sel-inquiry h3 { margin: 0 0 6px; font-size: 19px; }
.selector-page .sel-inquiry p { margin: 0; color: var(--cp-muted); font-size: 14.5px; line-height: 1.6; }
.selector-page .sel-selected-text { margin-top: 8px; color: var(--brand-dark); font-size: 14px; font-weight: 700; }
.selector-page .sel-inquiry .button.primary { background: var(--brand); white-space: nowrap; }
.selector-page .sel-inquiry .button:disabled { opacity: .5; cursor: not-allowed; }

.selector-page .sel-note { margin-top: 18px; padding: 16px 20px; border-left: 3px solid var(--brand); background: var(--cp-surface); color: var(--cp-muted); font-size: 14px; line-height: 1.75; }
.selector-page .sel-limit-note { margin: 16px 0 0; padding: 12px 16px; border: 1px solid #e2b86a; border-radius: 8px; background: #fff8eb; color: #6a4b12; font-size: 14.5px; font-weight: 600; }

.selector-page .sel-compare-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--cp-line);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 -10px 30px rgba(18, 47, 62, .12);
  backdrop-filter: blur(8px);
}
.selector-page .sel-compare-bar-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.selector-page .sel-compare-bar-meta { min-width: 0; flex: 1 1 280px; }
.selector-page .sel-compare-bar-meta strong {
  display: block; margin-bottom: 8px; color: var(--cp-ink); font-size: 14.5px; letter-spacing: .02em;
}
.selector-page .sel-compare-chips {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; -webkit-overflow-scrolling: touch;
}
.selector-page .sel-bar-chip {
  display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto;
  max-width: 220px; padding: 6px 8px 6px 6px;
  border: 1px solid var(--cp-line); border-radius: 8px; background: #f7fbfc;
}
.selector-page .sel-bar-chip img {
  width: 40px; height: 28px; object-fit: cover; border-radius: 4px; background: #eef4f5;
}
.selector-page .sel-bar-chip span {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--cp-ink); font-size: 14px; font-weight: 600;
}
.selector-page .sel-bar-remove {
  flex: 0 0 auto; width: 24px; height: 24px; border: 0; border-radius: 4px;
  background: transparent; color: #5f7d89; font-size: 18px; line-height: 1; cursor: pointer;
}
.selector-page .sel-bar-remove:hover { background: #e8f2f5; color: var(--brand-dark); }
.selector-page .sel-compare-bar-actions {
  display: flex; align-items: center; gap: 12px; flex: 0 0 auto;
}
.selector-page .sel-compare-bar-actions .button:disabled { opacity: .5; cursor: not-allowed; }
body.has-compare-bar { padding-bottom: 96px; }

@media (max-width: 980px) {
  .selector-page .sel-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .selector-page .sel-steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .selector-page .sel-hero { padding: 54px 0 44px; }
  .selector-page .sel-filters { padding: 22px 18px 8px; }
  .selector-page .sel-filter-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .selector-page .sel-inquiry { padding: 20px; }
  .selector-page .sel-compare-bar-actions { width: 100%; }
  .selector-page .sel-compare-bar-actions .button.primary { flex: 1 1 auto; }
  body.has-compare-bar { padding-bottom: 128px; }
}
