.guide-comparison {
  --gc-ink: #182a43;
  --gc-blue: #214f85;
  --gc-rule: #d5dfe9;
  min-width: 0;
  color: var(--gc-ink);
}
.guide-comparison [hidden], .gc-add[hidden] { display: none !important }
.guide-comparison :is(button, select, a, input):focus-visible, .gc-add:focus-visible {
  outline: 3px solid #1f66aa;
  outline-offset: 3px;
}
.gc-controls > .gc-add { margin-bottom: 8px }
.gc-table-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.gc-add, .gc-more {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 14px;
  background: #fff;
  border: 1px solid #c5d4e6;
  border-radius: 8px;
  color: var(--gc-blue, #214f85);
  font: inherit;
  font-size: 13.5px;
  font-weight: 620;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.gc-add:hover, .gc-more:hover { background: #eef4fc; border-color: var(--gc-blue); text-decoration: none }
.gc-detail:hover { text-decoration: underline; text-underline-offset: 4px }
.gc-add::before {
  content: "";
  width: 11px;
  height: 11px;
  background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
              linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
}
.gc-add[aria-expanded="true"]::before { background-size: 100% 1.5px, 0 0 }
.gc-picker-row {
  display: grid;
  grid-template-columns: repeat(var(--gc-model-count), minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 20px);
}
.gc-picker {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 24px);
  min-width: 0;
  padding: clamp(14px, 1.5vw, 22px);
  border: 1px solid #d7e2ef;
  border-radius: 12px;
  background: linear-gradient(125deg, #f3f7fc 0%, #ffffff 68%);
  box-shadow: var(--shadow-xs, 0 1px 2px rgb(15 31 56 / .05));
  transition: border-color .2s ease, box-shadow .2s ease;
}
.gc-picker:hover {
  border-color: #aec4e2;
  box-shadow: var(--shadow-sm, 0 6px 20px -6px rgb(15 31 56 / .09));
}
.gc-picker-pulse {
  animation: gc-pulse .85s cubic-bezier(.22, 1, .36, 1);
}
@keyframes gc-pulse {
  0% { border-color: var(--accent, #234ee8); box-shadow: 0 0 0 4px rgb(35 78 232 / .24); }
  100% { border-color: #d7e2ef; box-shadow: var(--shadow-xs, 0 1px 2px rgb(15 31 56 / .05)); }
}
.gc-portrait {
  display: block;
  width: 34%;
  max-width: 150px;
  height: clamp(58px, 5.6vw, 86px);
  object-fit: contain;
  flex: none;
  filter: drop-shadow(0 6px 10px rgb(15 31 56 / .12));
}
.gc-picker-copy { min-width: 0; flex: 1 }
.gc-picker-label {
  display: grid;
  gap: 5px;
  color: #4f637a;
  font-size: 12.5px;
  font-weight: 560;
}
.gc-select {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  min-height: 44px;
  border: 1px solid #b9cadf;
  border-radius: 8px;
  -webkit-appearance: none;
  appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%2321478d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 15px 15px;
  color: var(--gc-ink);
  font: inherit;
  font-size: clamp(16px, 1.35vw, 20px);
  font-weight: 640;
  padding: 7px 34px 7px 12px;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.gc-select::picker-icon { display: none; }
.gc-select:hover { border-color: var(--gc-blue); }
.gc-select:focus-visible { border-color: var(--accent, #234ee8); box-shadow: 0 0 0 3px rgb(35 78 232 / .14); outline: none; }
.gc-detail {
  display: inline-block;
  margin-top: 4px;
  padding: 3px 0;
  color: var(--gc-blue);
  font-size: 13px;
  font-weight: 560;
  text-decoration: none;
}
.gc-detail::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 2px 2px 5px;
  border-top: 1.5px solid;
  border-right: 1.5px solid;
  transform: rotate(45deg);
}
.gc-table-tools { margin: 20px 0 12px; font-size: 14px }
.gc-status { color: #50637a; font-variant-numeric: tabular-nums; font-weight: 520 }
.gc-filter {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 6px 14px;
  border-radius: 8px; background: #f4f7fb; border: 1px solid #dce5f0; cursor: pointer; font-weight: 540;
  transition: background .18s ease, border-color .18s ease;
}
.gc-filter:hover { background: #eaf2fc; border-color: #b5c9e3; }
.gc-filter input { width: 17px; height: 17px; margin: 0; accent-color: var(--gc-blue); cursor: pointer }
.gc-matrix {
  width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0;
  border: 1px solid #d7e2ef; border-radius: 12px; overflow: hidden; background: #fff;
  box-shadow: var(--shadow-xs, 0 1px 2px rgb(15 31 56 / .05));
  font-size: 15px; line-height: 1.6;
}
.gc-matrix :is(th, td) {
  vertical-align: top;
  text-align: left;
  overflow-wrap: anywhere;
  border: 0;
  border-bottom: 1px solid #e5edf6;
  padding: 14px clamp(12px, 1.55vw, 24px);
}
.gc-matrix tbody tr:last-child > * { border-bottom: 0; }
.gc-matrix thead th { background: linear-gradient(135deg, #132642, #1d3861); color: #fff; font-size: 15.5px; font-weight: 650; border-bottom: 0 }
.gc-matrix thead th:first-child { width: 24% }
.gc-matrix tbody th { background: #f6f9fd; color: #334860; font-weight: 600 }
.gc-matrix tbody td { color: #1f3249; font-variant-numeric: tabular-nums; transition: background .15s ease }
.gc-matrix tbody tr:hover td { background: #f6faff }
.gc-matrix tbody tr.gc-different th { color: var(--gc-blue); background: #edf4fc; box-shadow: inset 3px 0 0 var(--accent, #234ee8) }
.gc-matrix tbody tr.gc-different td { background: #f5f9ff; font-weight: 520 }
.gc-matrix tbody :is(th, td) + td { border-left: 1px solid #e5edf6 }
.gc-matrix .gc-empty, .gc-matrix .gc-missing, .gc-unavailable { color: #64748b }
.gc-more { width: 100%; min-height: 46px; margin-top: 14px; background: #f6f9fd; }
.gc-more::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid;
  border-bottom: 1.5px solid;
  transform: translateY(-2px) rotate(45deg);
}
.gc-more[aria-expanded="true"]::after { transform: translateY(2px) rotate(225deg) }

@media (max-width: 620px) {
  .gc-picker-row { gap: 8px }
  .gc-picker { flex-direction: column; align-items: stretch; gap: 5px; padding: 10px }
  .gc-portrait { width: 100%; max-width: none; height: 52px }
  .gc-select { min-height: 44px; padding: 7px 30px 7px 10px; background-position: right 9px center; font-size: 16px }
  .gc-matrix, .gc-matrix thead, .gc-matrix tbody { display: block; width: 100% }
  .gc-matrix tr {
    display: grid;
    grid-template-columns: repeat(var(--gc-model-count), minmax(0, 1fr));
  }
  .gc-matrix thead th:first-child { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(100%) }
  .gc-matrix tbody th, .gc-matrix .gc-empty { grid-column: 1 / -1 }
  .gc-matrix :is(td, th) { padding: 9px 8px }
  .gc-matrix tbody th { padding-block: 6px; font-size: 13px; border-bottom: 0 }
  .gc-matrix tbody td { font-size: 14px }
  .gc-matrix tbody th + td { border-left: 0 }
}
@media (max-width: 400px) {
  .gc-picker-row { gap: 5px }
  .gc-picker-label, .gc-detail { font-size: 12px }
  .gc-table-tools { gap: 0 10px; font-size: 13px }
}
@media (max-width: 500px) {
  .guide-comparison[data-models="3"] .gc-picker-row { grid-template-columns: minmax(0, 1fr); gap: 5px }
  .guide-comparison[data-models="3"] .gc-picker { flex-direction: row; align-items: center; gap: 10px; padding: 6px 9px }
  .guide-comparison[data-models="3"] .gc-portrait { width: 22%; max-width: 76px; height: 46px }
  .guide-comparison[data-models="3"] .gc-picker-copy { display: flex; align-items: end; gap: 8px }
  .guide-comparison[data-models="3"] .gc-picker-label { flex: 1; min-width: 0; gap: 1px }
  .guide-comparison[data-models="3"] .gc-detail { flex: none; margin: 0; padding-block: 10px }
}
