:root {
  --paper: #f7f4ef;
  --surface: #ffffff;
  --surface-soft: #eee8de;
  --ink: #1d2323;
  --muted: #626a67;
  --line: #b8afa3;
  --teal: #006f6f;
  --green: #3c7a3f;
  --amber: #9a5600;
  --coral: #bf4f45;
  --blue: #2f6f9f;
  --focus: #005fcc;
  --shadow: 0 12px 30px rgba(31, 30, 26, 0.08);
  font-family:
    system-ui, -apple-system, "Hiragino Sans", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
  font-optical-sizing: auto;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
  scroll-padding-top: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(247, 244, 239, 0) 420px),
    var(--paper);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-links {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: calc(100vw - 16px);
  transform: translateY(calc(-100% - 16px));
}

.skip-links:focus-within {
  transform: translateY(0);
}

.skip-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid #fff;
  border-radius: 6px;
  padding: 9px 12px;
  background: #27312e;
  color: #fff;
  font-weight: 850;
  text-decoration: none;
}

:where(a, button, input, summary, [tabindex="0"]):focus-visible,
.skip-target:focus {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 2px #fff;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 4vw, 48px) 20px;
  border-bottom: 1px solid var(--line);
}

.brand h1,
.section-head h2,
.result-head h2,
.filter-block h2 {
  margin: 0;
  letter-spacing: -0.015em;
}

.brand h1 {
  font-size: clamp(2rem, 4vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.kicker {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(76px, 1fr));
  min-width: min(420px, 100%);
  border: 1px solid var(--line);
  background: var(--surface);
}

.summary-strip div {
  padding: 14px 16px;
  border-left: 1px solid var(--line);
}

.summary-strip div:first-child {
  border-left: 0;
}

.summary-strip span {
  display: block;
  font-size: 1.6rem;
  font-weight: 850;
  line-height: 1;
}

.summary-strip small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.8125rem;
}

main {
  padding: 24px clamp(14px, 3vw, 42px) 42px;
}

.workbench {
  display: grid;
  grid-template-columns: minmax(230px, 300px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.control-panel {
  min-width: 0;
  position: sticky;
  top: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  border-radius: 14px;
}

.search-box,
.filter-block,
.filter-note {
  min-width: 0;
  display: block;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.filter-note {
  border-bottom: 0;
  background: #f5efe5;
}

.filter-note strong {
  display: block;
  margin-bottom: 8px;
}

.filter-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.75;
}

.search-box span,
.filter-block h2 {
  display: block;
  margin-bottom: 10px;
  font-size: 0.82rem;
  color: var(--muted);
}

.search-box input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  font-size: 16px;
}

.search-box input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.chip-grid {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.selected-mark {
  flex: 0 0 auto;
  font-weight: 900;
  line-height: 1;
}

.chip,
.ghost-button,
.preset-button,
.compare-button,
.db-button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 13px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  touch-action: manipulation;
}

.chip.is-active {
  border-color: var(--teal);
  background: #e3f4f1;
  color: #005d58;
}

.ghost-button {
  background: transparent;
}

.compare-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -2px 0 14px;
}

.compare-tools > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 850;
}

.compare-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.preset-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 999px;
  padding: 8px 12px;
  background: #fffdf9;
}

.preset-button.is-active {
  border-color: var(--teal);
  background: #e3f4f1;
  color: #005d58;
}

.preset-button small {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 850;
}

.main-panel {
  min-width: 0;
}

.result-head,
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 14px;
}

.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(286px, 1fr));
  gap: 14px;
}

.series-card {
  display: grid;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card-media {
  display: grid;
  place-items: center;
  height: 104px;
  border-radius: 13px 13px 0 0;
  padding: 10px 16px;
  background: #fff;
  border-bottom: 5px solid var(--accent, var(--teal));
}

.card-media img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 74px;
  object-fit: contain;
}

.card-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.maker-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 800;
}

.series-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.series-title h3 {
  margin: 0;
  font-size: 1.55rem;
}

.grade {
  color: var(--accent, var(--teal));
  font-size: 0.84rem;
  font-weight: 850;
}

.headline {
  margin: 0;
  min-height: 48px;
  color: var(--ink);
  font-weight: 750;
  line-height: 1.55;
}

.talk {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 8px;
  background: #faf8f4;
  color: #3f4643;
  font-size: 0.8125rem;
  font-weight: 700;
}

.card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: auto;
}

.compare-button {
  flex: 1;
  color: #fff;
  border-color: var(--accent, var(--teal));
  background: var(--accent, var(--teal));
}

.compare-button.is-selected {
  color: var(--ink);
  background: #f6ead8;
  border-color: #8a6500;
}

.compare-button:disabled {
  cursor: not-allowed;
  color: #8d867b;
  border-color: #d8d1c5;
  background: #ebe5dc;
}

.db-button {
  color: #fff;
  border-color: #27312e;
  background: #27312e;
}

.empty-state {
  border: 1px dashed var(--line);
  padding: 18px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--muted);
}

.comparison-band,
.guide-band {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.table-wrap {
  max-height: 70vh;
  max-height: min(70dvh, 760px);
  overflow: auto;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  overscroll-behavior-x: contain;
  scroll-padding-top: 160px;
  scroll-padding-left: 175px;
  -webkit-overflow-scrolling: touch;
}

.table-frame {
  position: relative;
  min-width: 0;
}

.table-frame::before,
.table-frame::after {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 8;
  width: 18px;
  pointer-events: none;
  content: "";
  opacity: 0;
  transition: opacity 150ms ease;
}

.table-frame::before {
  left: 175px;
  background: linear-gradient(90deg, rgba(29, 35, 35, 0.17), transparent);
}

.table-frame::after {
  right: 0;
  background: linear-gradient(270deg, rgba(29, 35, 35, 0.2), transparent);
}

.table-frame.can-scroll-left::before,
.table-frame.can-scroll-right::after {
  opacity: 1;
}

.compare-scroll-hint {
  margin: -4px 0 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.compare-table {
  width: 100%;
  min-width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.compare-table[data-count="5"] {
  min-width: 1025px;
}

.compare-table[data-count="6"] {
  min-width: 1200px;
}

.compare-table[data-count="7"] {
  min-width: 1375px;
}

.compare-axis-col {
  width: 150px;
}

.compare-item-col {
  width: 175px;
}

.compare-table th,
.compare-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.55;
  text-align: left;
}

.compare-table th:first-child,
.compare-table td:first-child {
  border-left: 0;
}

.compare-table th {
  background: #f2ece2;
  font-size: 0.84rem;
}

.compare-table thead th:first-child,
.compare-table tbody th {
  position: sticky;
  left: 0;
  z-index: 2;
  box-shadow: 1px 0 0 var(--line);
}

.compare-table thead th:first-child {
  z-index: 3;
}

.compare-feature-row th {
  vertical-align: top;
}

.compare-feature-axis {
  display: grid;
  gap: 4px;
  line-height: 1.35;
}

.compare-feature-axis-main {
  color: #655e56;
  font-size: 0.8125rem;
  font-weight: 850;
}

.compare-feature-axis-genre {
  color: #00746e;
  font-size: 0.86rem;
  font-weight: 900;
}

.compare-feature-axis-part {
  border-left: 4px solid #008b83;
  padding-left: 7px;
  color: #303835;
  font-size: 0.82rem;
  font-weight: 900;
}

.compare-feature-row td {
  background: #fffdf9;
}

.compare-feature-row .compare-feature-cell:first-child {
  border-left: 1px solid var(--line);
}

.compare-points {
  display: grid;
  gap: 8px;
}

.compare-points p {
  display: grid;
  gap: 4px;
  margin: 0;
}

.compare-points strong {
  width: fit-content;
  border-radius: 999px;
  padding: 2px 7px;
  background: #edf5f3;
  color: #006760;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.compare-points span {
  color: #333b38;
  font-size: 0.9rem;
}

.summary-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 1.05rem;
  color: #303835;
  font-size: 0.92rem;
  line-height: 1.6;
}

.summary-list li::marker {
  color: var(--accent, var(--teal));
  font-weight: 900;
}

.compare-table .summary-list {
  gap: 6px;
  font-size: 0.86rem;
  line-height: 1.55;
}

.feature-list {
  display: grid;
  gap: 10px;
  align-items: flex-start;
}

.feature-group {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.compare-feature-group {
  gap: 8px;
}

.feature-genre {
  border-bottom: 1px solid #dce8e5;
  padding-bottom: 3px;
  color: #00746e;
  font-size: 0.8125rem;
  font-weight: 850;
  line-height: 1.35;
}

.feature-empty {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: #6f6a63;
  font-size: 0.82rem;
  font-weight: 750;
}

.feature-items {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: flex-start;
}

.clean-part-list {
  display: grid;
  gap: 9px;
}

.clean-part {
  display: grid;
  gap: 5px;
}

.clean-part-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-left: 3px solid var(--accent, var(--teal));
  padding-left: 7px;
  color: #52635e;
  font-size: 0.8125rem;
  font-weight: 850;
  line-height: 1.35;
}

.clean-part-items {
  padding-left: 10px;
}

.feature-tip {
  max-width: 100%;
}

.feature-tip summary {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 10px;
  background: #faf8f4;
  color: #27312e;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
  cursor: pointer;
  touch-action: manipulation;
}

.feature-tip summary > span:not(.feature-badge) {
  min-width: 0;
}

.feature-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  border: 1px solid #8a6500;
  border-radius: 999px;
  padding: 3px 6px;
  background: #fff0a8;
  color: #493700;
  font-size: 0.8125rem;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.feature-tip.is-featured summary {
  border-color: #8a6500;
  background: #fff0a8;
  color: #493700;
  box-shadow: inset 0 -2px 0 rgba(184, 132, 0, 0.16);
}

.feature-tip summary::-webkit-details-marker {
  display: none;
}

.feature-tip summary::after {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent, var(--teal));
  color: #fff;
  font-size: 0.8125rem;
  line-height: 1;
  flex: 0 0 auto;
  margin-left: auto;
}

.feature-tip[open] summary {
  border-color: var(--accent, var(--teal));
  background: #e9f5f2;
}

.feature-tip.is-featured[open] summary {
  border-color: #8a6500;
  background: #ffe47a;
}

.feature-tip[open] summary::after {
  content: "-";
}

.feature-tip p {
  margin: 7px 0 0;
  border-left: 3px solid var(--accent, var(--teal));
  padding: 8px 9px;
  background: #fffdf9;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

.resource-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.resource-actions .db-button {
  flex: 1 1 120px;
}

.catalog-dialog {
  width: min(760px, calc(100vw - 28px));
  max-height: none;
  overflow: hidden;
  border: 1px solid var(--line);
  padding: 0;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 22px 70px rgba(31, 30, 26, 0.28);
}

.catalog-dialog::backdrop {
  background: rgba(29, 35, 35, 0.42);
}

.catalog-dialog-inner {
  position: relative;
  max-height: min(88vh, 860px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.dialog-toolbar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 64px;
  padding: 10px;
  background: linear-gradient(180deg, #fff 78%, rgba(255, 255, 255, 0.88));
}

.dialog-close {
  position: static;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
}

.catalog-record {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.catalog-record-head {
  border-left: 5px solid var(--accent, var(--teal));
  padding-left: 14px;
}

.catalog-record-head h2,
.catalog-section h3 {
  margin: 0;
}

.catalog-record-head h2 {
  font-size: clamp(1.45rem, 4vw, 2.1rem);
}

.catalog-record-head p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.catalog-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border: 1px solid var(--line);
  background: #f8f3ea;
}

.catalog-fields div {
  padding: 12px;
  border-left: 1px solid var(--line);
}

.catalog-fields div:first-child {
  border-left: 0;
}

.catalog-fields dt {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 850;
}

.catalog-fields dd {
  margin: 4px 0 0;
  font-weight: 850;
}

.catalog-section {
  display: grid;
  gap: 10px;
}

.catalog-section h3 {
  font-size: 1rem;
}

.feature-count {
  margin-left: 6px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 750;
}

.feature-legend {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: -2px 0 2px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 750;
}

.feature-legend .feature-badge {
  flex: 0 0 auto;
}

.compare-cards {
  display: none;
}

.compare-card {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.compare-card:last-child {
  border-bottom: 0;
}

.compare-card-head {
  display: grid;
  gap: 4px;
  padding: 15px;
  border-left: 5px solid var(--accent, var(--teal));
  background: #f8f3ea;
}

.compare-card-head strong {
  font-size: 1.05rem;
}

.compare-card dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.compare-card dl > div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 15px;
  border-top: 1px solid var(--line);
}

.compare-card dt {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 800;
}

.compare-card dd {
  margin: 0;
  line-height: 1.55;
}

.compare-fab {
  position: fixed;
  right: clamp(16px, 3vw, 34px);
  bottom: clamp(16px, 3vw, 34px);
  z-index: 18;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  border: 1px solid rgba(39, 49, 46, 0.92);
  border-radius: 999px;
  padding: 10px 14px 10px 16px;
  background: #27312e;
  color: #fff;
  box-shadow: 0 16px 34px rgba(31, 30, 26, 0.22);
  font-weight: 850;
  text-decoration: none;
}

.compare-fab strong,
.dialog-compare-jump span {
  display: inline-grid;
  place-items: center;
  min-width: 25px;
  height: 25px;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-size: 0.8125rem;
  line-height: 1;
}

.dialog-compare-jump {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 11px 8px 13px;
  background: #27312e;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
}

.mobile-jumpbar {
  display: none;
}

.maker-guide {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.maker-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.maker-logo {
  display: grid;
  place-items: center;
  height: 108px;
  padding: 10px 18px;
  background: #fff;
  border-bottom: 5px solid var(--accent, var(--teal));
}

.maker-logo img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 78px;
  object-fit: contain;
}

.maker-copy {
  padding: 15px;
}

.maker-card h3 {
  margin: 0 0 8px;
}

.maker-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.maker-card a {
  display: inline-block;
  margin-top: 12px;
  font-weight: 800;
  color: var(--accent, var(--teal));
}

.no-results {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 24px;
  color: var(--muted);
}

@media (max-width: 1023px) {
  .topbar {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
  }

  .summary-strip {
    min-width: 0;
  }

  .workbench {
    grid-template-columns: 1fr;
  }

  .control-panel {
    position: static;
  }

  .filter-block,
  .search-box,
  .filter-note {
    padding: 15px;
  }

  .chip-grid {
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    overflow-x: visible;
    overscroll-behavior-x: contain;
  }

  .chip {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .compare-axis-col {
    width: 126px;
  }

  .compare-item-col {
    width: 145px;
  }

  .compare-table[data-count="5"] {
    min-width: 851px;
  }

  .compare-table[data-count="6"] {
    min-width: 996px;
  }

  .compare-table[data-count="7"] {
    min-width: 1141px;
  }

  .compare-table th,
  .compare-table td {
    padding: 11px 10px;
  }

  .series-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
}

@media (max-width: 620px) {
  :root {
    scroll-padding-top: 8px;
    scroll-padding-bottom: 92px;
  }

  body {
    padding-bottom: 74px;
  }

  .topbar,
  main {
    padding-left: 12px;
    padding-right: 12px;
  }

  .topbar {
    padding-top: 18px;
    padding-bottom: 14px;
  }

  .brand h1 {
    font-size: clamp(1.9rem, 10vw, 2.8rem);
    line-height: 1.04;
  }

  .kicker {
    margin-bottom: 6px;
    font-size: 0.8125rem;
  }

  main {
    padding-top: 14px;
  }

  .summary-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .summary-strip div {
    padding: 12px 9px;
  }

  .summary-strip span {
    font-size: 1.25rem;
  }

  .control-panel,
  .series-card,
  .table-wrap,
  .maker-card {
    box-shadow: 0 8px 22px rgba(31, 30, 26, 0.07);
  }

  .search-box input {
    min-height: 48px;
  }

  .filter-note p {
    font-size: 0.84rem;
  }

  .chip-grid {
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    overflow-x: visible;
  }

  .series-grid {
    grid-template-columns: 1fr;
  }

  .series-card {
    min-height: auto;
  }

  .card-media {
    height: 88px;
    padding: 8px 14px;
  }

  .card-media img {
    max-height: 64px;
  }

  .card-body {
    gap: 10px;
    padding: 14px;
  }

  .series-title {
    align-items: start;
    justify-content: space-between;
  }

  .series-title h3 {
    font-size: 1.45rem;
  }

  .headline {
    min-height: 0;
    font-size: 0.98rem;
  }

  .talk {
    font-size: 0.9rem;
  }

  .tag-list {
    flex-wrap: wrap;
    overflow-x: visible;
    padding-bottom: 0;
  }

  .tag {
    flex: 0 0 auto;
  }

  .card-actions {
    position: sticky;
    bottom: 70px;
    z-index: 2;
    padding-top: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--surface) 32%);
  }

  .result-head,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .compare-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .table-wrap {
    overflow: visible;
  }

  .compare-fab {
    display: none;
  }

  .compare-scroll-hint {
    display: none;
  }

  .compare-table {
    display: none;
  }

  .compare-cards {
    display: grid;
  }

  .catalog-dialog {
    width: calc(100vw - 18px);
    max-height: none;
    margin-bottom: 80px;
  }

  .catalog-dialog-inner {
    max-height: 86vh;
  }

  .catalog-record {
    gap: 14px;
    padding: 18px 14px;
  }

  .catalog-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-fields div:nth-child(odd) {
    border-left: 0;
  }

  .catalog-fields div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .catalog-fields div:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .resource-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .maker-guide {
    grid-template-columns: 1fr;
  }

  .maker-logo {
    height: 96px;
    padding: 8px 16px;
  }

  .maker-logo img {
    max-height: 70px;
  }

  .mobile-jumpbar {
    position: fixed;
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 34px rgba(31, 30, 26, 0.18);
    backdrop-filter: blur(12px);
  }

  .mobile-jumpbar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #f5efe5;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 850;
  }

  .mobile-jumpbar span {
    min-width: 22px;
    border-radius: 999px;
    padding: 2px 6px;
    background: var(--teal);
    color: #fff;
    font-size: 0.8125rem;
    line-height: 1.4;
    text-align: center;
  }
}

@media (max-width: 380px) {
  .topbar,
  main {
    padding-left: 10px;
    padding-right: 10px;
  }

  .chip,
  .ghost-button,
  .preset-button,
  .compare-button,
  .db-button {
    padding-right: 10px;
    padding-left: 10px;
  }

  .compare-card dl > div {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 10px;
  }

  .catalog-fields {
    grid-template-columns: 1fr;
  }

  .catalog-fields div,
  .catalog-fields div:nth-child(odd) {
    border-left: 0;
  }

  .catalog-fields div:nth-child(n + 2) {
    border-top: 1px solid var(--line);
  }

  .catalog-fields div:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .catalog-fields dd {
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
}

.fatal-error {
  margin: 32px;
  border: 1px solid #9d2f2f;
  padding: 20px;
  background: #fff4f2;
  color: #7b1f1f;
  font-weight: 800;
}

.media-fallback {
  display: grid;
  place-items: center;
  min-height: 48px;
  color: var(--accent, var(--teal));
  font-size: 1rem;
  font-weight: 900;
  text-align: center;
}

.media-fallback[hidden] {
  display: none;
}

.need-tag {
  border-color: var(--accent, var(--teal));
  background: #edf5f3;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  border: 1px solid var(--line);
  background: #fffdf9;
}

.score-grid > div {
  min-width: 0;
  padding: 12px;
  border-left: 1px solid var(--line);
}

.score-grid > div:first-child {
  border-left: 0;
}

.score-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 800;
}

.score-grid strong {
  color: var(--accent, var(--teal));
  font-size: 1.45rem;
}

.score-grid small,
.score-max {
  color: var(--muted);
}

.score-value {
  color: var(--accent, var(--teal));
  font-size: 1.2rem;
}

.source-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.55;
}

.source-list a {
  color: var(--teal);
  font-weight: 750;
  overflow-wrap: anywhere;
}

@media (max-width: 620px) {
  .score-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .score-grid > div:nth-child(odd) {
    border-left: 0;
  }

  .score-grid > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

/* Rice-cooker comparison extension */
.scope-note {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.summary-strip {
  grid-template-columns: repeat(4, minmax(68px, 1fr));
}

.maker-rail {
  display: grid;
  grid-template-columns: repeat(7, minmax(110px, 1fr));
  gap: 0;
  border-bottom: 1px solid var(--line);
  padding: 0 clamp(14px, 3vw, 42px);
  background: rgba(255, 255, 255, 0.72);
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.maker-rail-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: 42px auto;
  align-items: center;
  min-width: 110px;
  min-height: 88px;
  border: 0;
  border-right: 1px solid #cfc7bb;
  padding: 10px 12px 9px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.maker-rail-item:first-child {
  border-left: 1px solid #cfc7bb;
}

.maker-rail-item::after {
  position: absolute;
  right: -1px;
  bottom: -1px;
  left: -1px;
  height: 5px;
  background: var(--accent, var(--teal));
  content: "";
  opacity: 0;
}

.maker-rail-item:hover,
.maker-rail-item.is-active {
  background: #fff;
}

.maker-rail-item.is-active::after {
  opacity: 1;
}

.maker-rail-item > span:nth-last-of-type(1) {
  overflow: hidden;
  font-size: 0.8125rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.maker-rail-item b {
  border-radius: 999px;
  padding: 2px 7px;
  background: #e9e3da;
  color: var(--muted);
  font-size: 0.8125rem;
}

.maker-rail-logo,
.maker-rail-all {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 38px;
}

.maker-rail-logo img {
  display: block;
  max-width: 95px;
  max-height: 34px;
  object-fit: contain;
}

.maker-rail-all {
  color: var(--teal);
  font-size: 1.15rem;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.mobile-filter-head,
.mobile-apply-button,
.filter-scrim,
.mobile-only {
  display: none;
}

.active-filter-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 10px 18px;
  background: #f8f3ea;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 800;
}

.text-button {
  min-height: 44px;
  border: 0;
  padding: 5px 2px;
  background: transparent;
  color: var(--teal);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.filter-block {
  margin: 0;
  padding: 0;
}

.filter-block > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 13px 18px;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 900;
  list-style: none;
  cursor: pointer;
}

.filter-block > summary::-webkit-details-marker {
  display: none;
}

.filter-block > summary::after {
  color: var(--teal);
  font-size: 1.1rem;
  content: "+";
}

.filter-block[open] > summary::after {
  content: "−";
}

.check-list {
  display: grid;
  padding: 0 12px 14px;
}

.check-list.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.check-option {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 7px 6px;
  background: transparent;
  color: var(--ink);
  font-size: 0.82rem;
  text-align: left;
}

.check-option:hover {
  background: #f5f0e8;
}

.check-option.is-active {
  border-color: #9ebdb8;
  background: #e3f4f1;
}

.check-option b {
  color: var(--muted);
  font-size: 0.8125rem;
}

.check-box {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 950;
}

.is-active > .check-box,
.check-option.is-active .check-box {
  border-color: var(--teal);
  background: var(--teal);
}

.result-actions,
.compare-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.active-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
}

.active-chips button {
  min-height: 44px;
  border: 1px solid #8eb4ae;
  border-radius: 999px;
  padding: 6px 10px;
  background: #e3f4f1;
  color: #005d58;
  font-size: 0.8125rem;
  font-weight: 800;
}

.series-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.series-card {
  min-height: 548px;
}

.card-body {
  grid-template-rows: auto auto auto auto auto auto auto 1fr auto;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: -4px 0 0;
}

.card-meta span {
  border-left: 3px solid var(--accent, var(--teal));
  padding: 2px 6px;
  background: #f5f0e8;
  color: #4a514e;
  font-size: 0.8125rem;
  font-weight: 800;
}

.fact-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #b6ada1;
  background: #fffdf9;
}

.fact-strip span {
  min-width: 0;
  border-left: 1px solid #d5cdc1;
  padding: 8px 5px;
  text-align: center;
}

.fact-strip span:first-child {
  border-left: 0;
}

.fact-strip small,
.fact-strip b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fact-strip small {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 750;
}

.fact-strip b {
  margin-top: 2px;
  font-size: 0.86rem;
}

.fit-line {
  margin: 0;
  border-left: 4px solid var(--accent, var(--teal));
  padding: 8px 10px;
  background: #f8f3ea;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.fit-line strong {
  display: block;
  color: var(--ink);
  font-size: 0.8125rem;
}

.source-band {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.comparison-heading h2 span {
  color: var(--teal);
  font-size: 0.75em;
}

.compare-selection {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.compare-chip {
  position: relative;
  flex: 0 0 225px;
  display: grid;
  grid-template-columns: 24px 52px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 8px;
  min-height: 70px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--accent, var(--teal));
  padding: 8px;
  background: #fff;
}

.compare-chip img {
  display: block;
  width: 48px;
  max-height: 34px;
  object-fit: contain;
}

.compare-chip span:nth-of-type(2) {
  min-width: 0;
}

.compare-chip b,
.compare-chip small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compare-chip b {
  font-size: 0.8125rem;
}

.compare-chip small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.8125rem;
}

.compare-index {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #27312e;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 900;
}

.compare-chip > button,
.mobile-compare-card > header > button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #b6ada1;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
}

.sales-summary {
  margin: 24px 0;
}

.subsection-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 12px;
}

.subsection-head h3 {
  margin: 0;
  font-size: 1.35rem;
}

.sales-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.sales-card {
  border: 1px solid var(--line);
  border-top: 6px solid var(--accent, var(--teal));
  background: #fff;
  box-shadow: 0 10px 24px rgba(31, 30, 26, 0.06);
}

.sales-card-head {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 74px;
  border-bottom: 1px solid #d7cfc3;
  padding: 9px 12px;
}

.sales-card-head img {
  display: block;
  max-width: 70px;
  max-height: 42px;
  object-fit: contain;
}

.sales-card-head small,
.sales-card-head strong {
  display: block;
}

.sales-card-head small {
  color: var(--muted);
  font-size: 0.8125rem;
}

.sales-card-head strong {
  margin-top: 3px;
}

.sales-card dl {
  margin: 0;
}

.sales-card dl > div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  border-bottom: 1px solid #e1dbd2;
  padding: 10px 12px;
}

.sales-card dt {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 900;
}

.sales-card dd {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
}

.sales-card dd span {
  display: inline-block;
  margin: 0 4px 4px 0;
  border-radius: 999px;
  padding: 3px 7px;
  background: #e3f4f1;
  color: #005d58;
  font-size: 0.8125rem;
  font-weight: 800;
}

.sales-card > .text-button {
  margin: 5px 12px 8px;
}

.comparison-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 10px;
  border: 1px solid var(--line);
  padding: 10px 14px;
  background: #fff;
}

.switch-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 0.82rem;
  font-weight: 850;
}

.switch-control input {
  width: 20px;
  height: 20px;
  accent-color: var(--teal);
}

.compare-legend {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.8125rem;
}

.compare-legend b,
.best-label {
  border-radius: 3px;
  padding: 2px 5px;
  background: #ffe37d;
  color: #5c4300;
  font-size: 0.8125rem;
  font-weight: 950;
}

.comparison-table {
  width: 100%;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.comparison-table.compare-count-3 { min-width: 790px; }
.comparison-table.compare-count-4 { min-width: 995px; }
.comparison-table.compare-count-5 { min-width: 1200px; }
.comparison-table.compare-count-6 { min-width: 1405px; }
.comparison-table.compare-count-7 { min-width: 1610px; }

.comparison-table th,
.comparison-table td {
  width: 205px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 13px;
  background: #fff;
  vertical-align: top;
  font-size: 0.84rem;
  line-height: 1.55;
  text-align: left;
}

.comparison-table tr > *:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
  width: 175px;
  background: #f2ece2;
  box-shadow: 1px 0 0 var(--line);
}

.comparison-table thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  height: 160px;
  border-top: 0;
  background: #fff;
}

.comparison-table thead th:first-child {
  z-index: 6;
  background: #27312e;
  color: #fff;
  vertical-align: middle;
}

.compare-product-head {
  display: grid;
  gap: 5px;
  min-height: 132px;
  border-top: 5px solid var(--accent, var(--teal));
  padding-top: 7px;
}

.compare-product-head img {
  display: block;
  max-width: 90px;
  max-height: 30px;
  object-fit: contain;
}

.compare-product-head strong,
.compare-product-head small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compare-product-head small {
  color: var(--muted);
  font-size: 0.8125rem;
}

.compare-product-head button {
  justify-self: start;
  min-height: 44px;
  border: 0;
  padding: 2px 0;
  background: transparent;
  color: var(--teal);
  font-size: 0.8125rem;
  font-weight: 800;
  text-decoration: underline;
}

.comparison-table .category-row th {
  position: static;
  width: auto;
  border-right: 0;
  padding: 0;
  background: #27312e;
  box-shadow: none;
}

.category-row button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  border: 0;
  padding: 10px 14px;
  background: #27312e;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 900;
  text-align: left;
}

.category-row button span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.category-row button b {
  margin-left: auto;
  color: #cdd8d5;
  font-size: 0.8125rem;
}

.comparison-table tbody tr:not(.category-row) th {
  color: #4d5552;
  font-size: 0.8125rem;
  font-weight: 900;
}

.comparison-table td.best-value,
.mobile-compare-group .best-value {
  background: #fff9dc;
  box-shadow: inset 0 0 0 2px #d7a900;
}

.best-label {
  display: inline-block;
  margin: 0 6px 4px 0;
}

.boolean-value {
  display: inline-grid;
  place-items: center;
  justify-self: start;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.8125rem;
  font-weight: 950;
  line-height: 1.25;
  white-space: nowrap;
}

.value-true {
  background: #dff2e2;
  color: #236329;
}

.value-false {
  background: #eee9e2;
  color: #575d5b;
}

.value-null {
  background: #f2eee8;
  color: #8d867b;
}

.unknown-value {
  color: #8d867b;
}

.feature-availability {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.feature-name {
  display: block;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 900;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.feature-description {
  display: block;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 650;
  line-height: 1.55;
}

.unit {
  margin-left: 3px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 750;
}

.list-value {
  display: block;
  margin-bottom: 4px;
}

.texture-dots {
  display: flex;
  gap: 3px;
  margin-top: 6px;
}

.texture-dots i {
  width: 21px;
  height: 5px;
  background: #d8d1c6;
}

.texture-dots i.is-active {
  background: var(--teal);
}

.source-link {
  display: block;
  margin-bottom: 6px;
  color: var(--teal);
  font-size: 0.8125rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.compare-mobile {
  display: none;
}

.maker-guide > article {
  display: grid;
  grid-template-rows: 92px auto auto 1fr;
  min-height: 285px;
  border: 1px solid var(--line);
  border-top: 6px solid var(--accent, var(--teal));
  padding: 0 15px 15px;
  background: #fff;
  box-shadow: var(--shadow);
}

.maker-guide > article > div {
  display: grid;
  place-items: center;
  border-bottom: 1px solid #d8d1c6;
}

.maker-guide > article img {
  display: block;
  max-width: 150px;
  max-height: 62px;
  object-fit: contain;
}

.maker-guide > article h3 {
  margin: 13px 0 6px;
}

.maker-guide > article p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.7;
}

.maker-guide > article .text-button {
  align-self: end;
  justify-self: start;
  margin-top: 9px;
}

.source-intro {
  max-width: 850px;
  margin: -4px 0 16px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.7;
}

.source-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.source-list article {
  border: 1px solid var(--line);
  padding: 14px;
  background: #fff;
}

.source-list h3 {
  margin: 0 0 7px;
  font-size: 0.94rem;
  line-height: 1.5;
}

.source-list article > p:not(.kicker) {
  margin: 4px 0;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.55;
}

.source-file {
  overflow-wrap: anywhere;
}

.source-list article > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  border-top: 1px solid #ddd5ca;
  padding-top: 9px;
  font-size: 0.8125rem;
  font-weight: 800;
}

.source-list a {
  color: var(--teal);
}

.primary-button,
.mobile-apply-button,
.icon-button {
  min-height: 44px;
  border: 1px solid var(--teal);
  border-radius: 6px;
  padding: 10px 14px;
  background: var(--teal);
  color: #fff;
  font-weight: 850;
}

.detail-hero {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  border-top: 7px solid var(--accent, var(--teal));
  padding: 22px;
}

.detail-logo {
  display: grid;
  place-items: center;
  min-height: 110px;
  border: 1px solid #d5cdc1;
  padding: 12px;
  background: #fff;
}

.detail-logo img {
  display: block;
  max-width: 125px;
  max-height: 80px;
  object-fit: contain;
}

.detail-hero h2 {
  margin: 0;
  font-size: clamp(1.45rem, 4vw, 2.1rem);
}

.detail-hero > div > p:last-child,
.detail-model {
  color: var(--muted);
}

.detail-model {
  margin: 6px 0;
  font-weight: 800;
}

.detail-sales {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f8f3ea;
}

.detail-sales > div {
  border-left: 1px solid var(--line);
  padding: 14px 18px;
}

.detail-sales > div:first-child {
  border-left: 0;
}

.detail-sales small {
  color: var(--teal);
  font-weight: 900;
}

.detail-sales p {
  margin: 5px 0 0;
  font-size: 0.87rem;
  line-height: 1.7;
}

.catalog-detail > .tag-list {
  padding: 14px 22px 0;
}

.detail-compare {
  display: block;
  width: calc(100% - 44px);
  margin: 14px 22px;
}

.detail-groups {
  display: grid;
  gap: 9px;
  padding: 0 22px 24px;
}

.detail-group {
  border: 1px solid var(--line);
}

.detail-group summary {
  min-height: 44px;
  padding: 12px 14px;
  background: #27312e;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.detail-group dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.detail-group dl > div {
  min-width: 0;
  border-top: 1px solid #ddd5ca;
  border-left: 1px solid #ddd5ca;
  padding: 11px 13px;
}

.detail-group dl > div:nth-child(odd) {
  border-left: 0;
}

.detail-group dt {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 850;
}

.detail-group dd {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
  font-size: 0.84rem;
  line-height: 1.5;
}

.replace-dialog {
  width: min(720px, calc(100vw - 28px));
  max-height: 88vh;
  overflow: hidden;
  border: 1px solid var(--line);
  padding: 0;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 22px 70px rgba(31, 30, 26, 0.28);
}

.replace-dialog::backdrop {
  background: rgba(29, 35, 35, 0.42);
}

.replace-dialog-inner {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  max-height: 88vh;
  margin: 0;
}

.replace-dialog-inner > p {
  margin: 0;
  padding: 0 18px 10px;
  color: var(--muted);
  font-size: 0.84rem;
}

.replace-dialog .dialog-toolbar {
  justify-content: space-between;
}

.replace-dialog .dialog-toolbar h2 {
  margin: 0;
}

.replace-count {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 9px 18px;
  background: #f8f3ea;
  color: var(--teal);
  font-weight: 900;
}

.replace-list {
  display: grid;
  gap: 6px;
  overflow-y: auto;
  padding: 12px 18px;
}

.replace-option {
  display: grid;
  grid-template-columns: 22px 80px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 58px;
  border: 1px solid #c9c0b4;
  border-radius: 5px;
  padding: 7px 10px;
  background: #fff;
  text-align: left;
}

.replace-option.is-active {
  border-color: var(--teal);
  background: #e3f4f1;
}

.replace-option:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.replace-option img {
  display: block;
  max-width: 76px;
  max-height: 34px;
  object-fit: contain;
}

.replace-option b,
.replace-option small {
  display: block;
}

.replace-option small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.8125rem;
}

.replace-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 12px 18px;
  background: #fff;
}

.mobile-jumpbar button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f5efe5;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 850;
}

@media (max-width: 1180px) {
  .series-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  .maker-rail {
    grid-template-columns: repeat(7, minmax(122px, 1fr));
  }
}

@media (max-width: 1023px) {
  body.filters-open {
    overflow: hidden;
  }

  .maker-rail {
    padding: 0 12px;
  }

  .workbench {
    grid-template-columns: 1fr;
  }

  .control-panel {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 52;
    display: block;
    width: min(410px, calc(100vw - 24px));
    overflow-y: auto;
    transform: translateX(-105%);
    transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 16px 0 42px rgba(31, 30, 26, 0.2);
    border-radius: 0 18px 18px 0;
    overscroll-behavior: contain;
  }

  .filters-open .control-panel {
    transform: translateX(0);
  }

  .filter-scrim {
    position: fixed;
    inset: 0;
    z-index: 51;
    display: block;
    border: 0;
    background: rgba(29, 35, 35, 0.48);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease-out;
  }

  .filters-open .filter-scrim {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-filter-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
    border-bottom: 1px solid var(--line);
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
  }

  .mobile-filter-head h2 {
    margin: 0;
  }

  .mobile-filter-head .icon-button {
    flex: 0 0 44px;
    width: 44px;
    border-color: var(--line);
    border-radius: 50%;
    padding: 0;
    background: #fff;
    color: var(--ink);
    font-size: 1.25rem;
  }

  .mobile-apply-button {
    position: sticky;
    bottom: 0;
    display: block;
    width: calc(100% - 24px);
    margin: 12px;
  }

  .mobile-only {
    display: inline-flex;
  }
}

@media (min-width: 621px) and (max-width: 1023px) {
  .series-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .maker-label,
  .series-title,
  .card-meta {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 620px) {
  .scope-note {
    font-size: 0.8125rem;
  }

  .summary-strip {
    grid-template-columns: repeat(4, 1fr);
  }

  .summary-strip small {
    font-size: 0.8125rem;
  }

  .maker-rail {
    position: sticky;
    top: 0;
    z-index: 14;
    grid-template-columns: repeat(7, 112px);
    padding: 0;
    box-shadow: 0 6px 14px rgba(31, 30, 26, 0.08);
  }

  .maker-rail-item {
    min-width: 112px;
    min-height: 78px;
    grid-template-rows: 34px auto;
    padding: 7px 9px;
  }

  .maker-rail-logo,
  .maker-rail-all {
    height: 31px;
  }

  .maker-rail-logo img {
    max-width: 82px;
    max-height: 29px;
  }

  .result-head,
  .section-head {
    gap: 10px;
  }

  .result-actions,
  .compare-head-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .result-actions .ghost-button,
  .compare-head-actions .ghost-button {
    min-width: 0;
    font-size: 0.8125rem;
  }

  .active-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .active-chips button {
    flex: 0 0 auto;
  }

  .series-card {
    min-height: auto;
  }

  .card-body {
    grid-template-rows: none;
  }

  .card-actions {
    position: static;
    bottom: auto;
  }

  .fact-strip span {
    padding: 7px 3px;
  }

  .compare-selection {
    margin-right: -12px;
    margin-left: -12px;
    padding: 0 12px 5px;
  }

  .compare-chip {
    flex-basis: 220px;
  }

  .sales-summary-grid {
    display: flex;
    margin-right: -12px;
    margin-left: -12px;
    overflow-x: auto;
    padding: 0 12px 6px;
    scroll-snap-type: x mandatory;
  }

  .sales-card {
    flex: 0 0 86vw;
    max-width: 340px;
    scroll-snap-align: start;
  }

  .comparison-tools {
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
  }

  .compare-legend {
    margin-left: 0;
  }

  .table-wrap {
    display: none;
  }

  .table-frame {
    display: none;
  }

  .compare-mobile {
    display: grid;
    gap: 14px;
  }

  .mobile-compare-card {
    border: 1px solid var(--line);
    border-top: 6px solid var(--accent, var(--teal));
    background: #fff;
    box-shadow: var(--shadow);
  }

  .mobile-compare-card > header {
    display: grid;
    grid-template-columns: 24px 70px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 8px;
    min-height: 82px;
    padding: 10px;
  }

  .mobile-compare-card > header img {
    display: block;
    max-width: 66px;
    max-height: 38px;
    object-fit: contain;
  }

  .mobile-compare-card > header small,
  .mobile-compare-card > header p {
    color: var(--muted);
    font-size: 0.8125rem;
  }

  .mobile-compare-card > header h3,
  .mobile-compare-card > header p {
    margin: 2px 0 0;
  }

  .mobile-compare-card > header h3 {
    font-size: 1rem;
  }

  .mobile-compare-group {
    border-top: 1px solid var(--line);
  }

  .mobile-compare-group > button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 46px;
    border: 0;
    padding: 10px 13px;
    background: #27312e;
    color: #fff;
    font-weight: 900;
    text-align: left;
  }

  .mobile-compare-group dl {
    margin: 0;
  }

  .mobile-compare-group dl > div {
    display: grid;
    grid-template-columns: minmax(105px, 38%) minmax(0, 1fr);
    gap: 10px;
    border-top: 1px solid #ddd5ca;
    padding: 11px 13px;
  }

  .mobile-compare-group dt {
    color: var(--muted);
    font-size: 0.8125rem;
    font-weight: 900;
  }

  .mobile-compare-group dd {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  .maker-guide > article {
    min-height: 250px;
  }

  .source-list {
    grid-template-columns: 1fr;
  }

  .catalog-dialog {
    width: calc(100vw - 12px);
    margin-bottom: 76px;
  }

  .detail-hero {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }

  .detail-logo {
    min-height: 86px;
  }

  .detail-sales {
    grid-template-columns: 1fr;
  }

  .detail-sales > div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .detail-sales > div:first-child {
    border-top: 0;
  }

  .detail-group dl {
    grid-template-columns: 1fr;
  }

  .detail-group dl > div,
  .detail-group dl > div:nth-child(odd) {
    border-left: 0;
  }

  .replace-dialog {
    width: calc(100vw - 12px);
    max-height: 86vh;
  }

  .replace-option {
    grid-template-columns: 22px 62px minmax(0, 1fr);
  }

  .replace-option img {
    max-width: 58px;
  }

  .mobile-jumpbar {
    z-index: 40;
  }

  .mobile-jumpbar button {
    min-width: 0;
  }

  .mobile-jumpbar span {
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .control-panel,
  .filter-scrim {
    transition: none;
  }
}

/* Fill logo areas: the display assets are tightly cropped, so use the full frame. */
.card-media {
  height: 116px;
  overflow: hidden;
  padding: 2px 6px;
}

.card-media img {
  width: 100%;
  max-width: 100%;
  max-height: 104px;
  object-fit: contain;
  object-position: center;
}

.maker-rail-item {
  grid-template-rows: 50px auto;
  min-height: 96px;
  padding: 6px 8px 9px;
}

.maker-rail-logo,
.maker-rail-all {
  height: 48px;
  overflow: hidden;
}

.maker-rail-logo img {
  width: 100%;
  max-width: 120px;
  max-height: 48px;
  object-fit: contain;
}

.compare-chip {
  flex-basis: 286px;
  grid-template-columns: 24px 72px minmax(0, 1fr) 44px;
}

.compare-chip img {
  width: 70px;
  max-width: 70px;
  max-height: 48px;
}

.sales-card-head {
  grid-template-columns: 104px minmax(0, 1fr);
  min-height: 88px;
}

.sales-card-head img {
  width: 100px;
  max-width: 100px;
  max-height: 64px;
}

.compare-product-head img {
  width: 100%;
  max-width: 158px;
  max-height: 48px;
}

.maker-guide > article {
  grid-template-rows: 116px auto auto 1fr;
}

.maker-guide > article img {
  width: 100%;
  max-width: 230px;
  max-height: 96px;
}

.detail-logo {
  min-height: 126px;
  overflow: hidden;
  padding: 6px;
}

.detail-logo img {
  width: 100%;
  max-width: 100%;
  max-height: 112px;
}

.replace-option {
  grid-template-columns: 22px 112px minmax(0, 1fr);
}

.replace-option img {
  width: 108px;
  max-width: 108px;
  max-height: 58px;
}

@media (max-width: 620px) {
  .card-media {
    height: 106px;
    padding: 2px 6px;
  }

  .card-media img {
    max-height: 96px;
  }

  .maker-rail-item {
    grid-template-rows: 42px auto;
    min-height: 86px;
    padding: 5px 6px 7px;
  }

  .maker-rail-logo,
  .maker-rail-all {
    height: 40px;
  }

  .maker-rail-logo img {
    width: 100%;
    max-width: 100px;
    max-height: 40px;
  }

  .compare-chip {
    flex-basis: 280px;
    grid-template-columns: 24px 68px minmax(0, 1fr) 44px;
  }

  .compare-chip img {
    width: 66px;
    max-width: 66px;
    max-height: 44px;
  }

  .sales-card-head {
    grid-template-columns: 94px minmax(0, 1fr);
  }

  .sales-card-head img {
    width: 90px;
    max-width: 90px;
    max-height: 58px;
  }

  .mobile-compare-card > header {
    grid-template-columns: 24px 96px minmax(0, 1fr) 44px;
  }

  .mobile-compare-card > header img {
    width: 92px;
    max-width: 92px;
    max-height: 54px;
  }

  .maker-guide > article {
    grid-template-rows: 106px auto auto 1fr;
  }

  .maker-guide > article img {
    max-width: 210px;
    max-height: 86px;
  }

  .detail-logo {
    min-height: 108px;
  }

  .detail-logo img {
    max-height: 94px;
  }

  .replace-option {
    grid-template-columns: 22px 86px minmax(0, 1fr);
  }

  .replace-option img {
    width: 82px;
    max-width: 82px;
    max-height: 48px;
  }
}

/* Tablet-first interaction polish */
body {
  font-size: 1rem;
}

button:not(.filter-scrim) {
  transition: transform 100ms ease-out, background-color 150ms ease-out;
}

button:not(.filter-scrim):active {
  transform: scale(0.985);
  filter: brightness(0.97);
}

@media (prefers-reduced-motion: reduce) {
  button:not(.filter-scrim) {
    transition: background-color 100ms ease-out;
  }

  button:not(.filter-scrim):active {
    transform: none;
  }

  .table-frame::before,
  .table-frame::after {
    transition: none;
  }
}

@media (max-width: 1023px) and (prefers-reduced-motion: reduce) {
  .control-panel {
    transform: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 150ms ease, visibility 0s linear 150ms;
  }

  .filters-open .control-panel {
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: opacity 150ms ease;
  }

  .filter-scrim {
    transition: opacity 150ms ease;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .maker-rail,
  .mobile-jumpbar,
  .mobile-filter-head,
  .dialog-toolbar {
    background: #fff;
    backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: #535b56;
    --muted: #35403b;
  }

  .maker-rail,
  .mobile-jumpbar,
  .mobile-filter-head,
  .dialog-toolbar {
    background: #fff;
    backdrop-filter: none;
  }

  .table-frame::before,
  .table-frame::after {
    display: none;
  }
}

/* Airy blue and white retail theme. Maker colors remain as small product accents. */
:root {
  --paper: #f5f7fc;
  --surface-soft: #f0f4fa;
  --ink: #20232b;
  --muted: #5d6675;
  --line: #dce2eb;
  --teal: #0769d6;
  --blue: #0769d6;
  --focus: #0758b8;
  --shadow: 0 14px 34px rgba(35, 48, 77, 0.09);
  scroll-padding-top: 22px;
}

body {
  background: linear-gradient(180deg, #fff 0, #f7f8fd 460px, var(--paper) 780px);
}

.topbar {
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(32px, 5vw, 72px) clamp(18px, 5vw, 76px);
  border-bottom: 0;
  background: linear-gradient(112deg, #fff 38%, #f6f7ff 100%);
}

.brand {
  min-width: 0;
}

.brand h1 {
  font-size: clamp(2.7rem, 5.4vw, 5.7rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.048em;
}

.scope-note {
  max-width: 56rem;
  margin-top: 16px;
  font-size: 0.9rem;
}

.kicker {
  color: var(--teal);
  font-weight: 850;
  letter-spacing: 0.02em;
}

.summary-strip {
  flex: 0 0 min(420px, 40%);
  min-width: 0;
  overflow: hidden;
  border-color: #edf0f6;
  border-radius: 26px;
  box-shadow: 0 16px 36px rgba(35, 48, 77, 0.11);
}

.summary-strip div {
  padding: 24px 16px;
}

.summary-strip span {
  font-size: clamp(1.65rem, 2.5vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.summary-strip small {
  margin-top: 8px;
  font-size: 0.8125rem;
}

.maker-rail {
  gap: 8px;
  border-bottom: 0;
  padding: 12px clamp(14px, 3vw, 42px);
  background: #fff;
  box-shadow: 0 8px 24px rgba(35, 48, 77, 0.06);
}

.maker-rail-item,
.maker-rail-item:first-child {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  text-align: center;
}

.maker-rail-item:hover {
  border-color: #99c4f4;
  background: #f5f9ff;
}

.maker-rail-item.is-active {
  border-color: #80b6ef;
  background: #eaf3ff;
  color: #064d9e;
}

.maker-rail-item::after {
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: var(--teal);
}

.maker-rail-item b {
  background: #f0f3f8;
  color: var(--muted);
}

.maker-rail-item.is-active b {
  background: #d5e9ff;
  color: #064d9e;
}

main {
  padding-top: clamp(28px, 4vw, 50px);
}

.workbench {
  gap: clamp(20px, 2.5vw, 36px);
}

.control-panel {
  overflow: hidden;
  border-color: #ebeff5;
  border-radius: 24px;
}

@media (min-width: 1024px) {
  .control-panel {
    max-height: calc(100vh - 28px);
    max-height: calc(100dvh - 28px);
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #b9c7d9 transparent;
    scroll-padding-block: 16px;
  }
}

.search-box,
.filter-block,
.filter-note,
.active-filter-line {
  border-color: #e7ebf1;
}

.search-box span,
.filter-block > summary {
  font-size: 0.875rem;
  font-weight: 850;
}

.search-box input {
  border-color: #e0e5ed;
  border-radius: 13px;
  background: #f3f5f9;
}

.search-box input:focus {
  border-color: var(--teal);
  background: #fff;
}

.active-filter-line,
.filter-note {
  background: #f7f9fc;
}

.check-option {
  border-radius: 10px;
}

.check-option:hover {
  background: #f1f6fc;
}

.check-option.is-active {
  border-color: #9bc6f4;
  background: #eaf3ff;
}

.check-box {
  border-radius: 6px;
}

.chip,
.ghost-button,
.preset-button {
  border-color: #dbe0e8;
  border-radius: 14px;
  background: #fff;
  font-weight: 800;
}

.chip:hover,
.ghost-button:hover,
.preset-button:hover {
  border-color: #9bc6f4;
  background: #f5f9ff;
}

.chip.is-active,
.preset-button.is-active {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.active-chips button,
.sales-card dd span {
  border-color: #9bc6f4;
  background: #eaf3ff;
  color: #0759b5;
}

.result-head,
.section-head {
  margin-bottom: 20px;
}

.result-head h2,
.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.series-grid {
  gap: clamp(16px, 2vw, 24px);
}

.series-card,
.sales-card,
.maker-guide > article,
.source-list article,
.mobile-compare-card {
  overflow: hidden;
  border-color: #e9edf4;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.card-media {
  border-bottom-width: 3px;
  border-radius: 23px 23px 0 0;
}

.card-body {
  gap: 14px;
  padding: 18px;
}

.series-title h3 {
  font-weight: 900;
  letter-spacing: -0.025em;
}

.card-meta span,
.tag {
  border-color: #e4e8ef;
  background: #f6f8fb;
  color: #505a69;
}

.card-meta span {
  border-left-width: 2px;
  border-radius: 6px;
}

.feature-genre,
.compare-feature-axis-genre {
  border-color: #d4e6fa;
  color: #0759b5;
}

.compare-feature-axis-part {
  border-color: var(--teal);
}

.feature-tip summary {
  background: #f6f8fb;
  color: #263344;
}

.feature-tip[open] summary {
  border-color: #9bc6f4;
  background: #eaf3ff;
}

.feature-tip p {
  background: #f7f9fc;
}

.fact-strip {
  overflow: hidden;
  border-color: #e1e7ef;
  border-radius: 12px;
  background: #f8faff;
}

.fact-strip span {
  border-color: #e1e7ef;
}

.fit-line {
  border-left-width: 3px;
  border-radius: 0 12px 12px 0;
  background: #f7f9fc;
}

.compare-button,
.primary-button,
.mobile-apply-button {
  border-color: var(--teal);
  border-radius: 13px;
  background: var(--teal);
  color: #fff;
  box-shadow: 0 6px 14px rgba(7, 105, 214, 0.16);
}

.compare-button:hover,
.primary-button:hover,
.mobile-apply-button:hover {
  background: #0559bc;
}

.compare-button.is-selected {
  border-color: #95c1ef;
  background: #e8f2ff;
  color: #0759b5;
  box-shadow: none;
}

.compare-button:disabled {
  border-color: #dbe1e9;
  background: #edf1f6;
  color: #626d7a;
  box-shadow: none;
}

.db-button {
  border-color: #dbe0e8;
  border-radius: 13px;
  background: #fff;
  color: #263344;
}

.db-button:hover {
  border-color: #9bc6f4;
  background: #f5f9ff;
}

.comparison-band {
  margin-top: clamp(32px, 4vw, 56px);
  border: 1px solid #e9edf4;
  border-radius: 28px;
  padding: clamp(18px, 3vw, 32px);
  background: #fff;
  box-shadow: var(--shadow);
}

.guide-band,
.source-band {
  margin-top: clamp(32px, 4vw, 56px);
  border-top-color: #dfe5ee;
  padding-top: clamp(24px, 3vw, 36px);
}

.compare-chip {
  overflow: hidden;
  border-color: #dfe5ed;
  border-top-width: 3px;
  border-radius: 16px;
}

.compare-index {
  background: var(--teal);
}

.sales-card {
  border-top-width: 3px;
}

.sales-card-head,
.sales-card dl > div,
.source-list article > div {
  border-color: #e8ecf2;
}

.comparison-tools {
  border-color: #e6ebf3;
  border-radius: 14px;
  background: #f7f9fc;
}

.table-wrap {
  border-color: #dfe5ed;
  border-radius: 16px;
  box-shadow: none;
}

.table-frame::before {
  background: linear-gradient(90deg, rgba(35, 48, 77, 0.16), transparent);
}

.table-frame::after {
  background: linear-gradient(270deg, rgba(35, 48, 77, 0.16), transparent);
}

.comparison-table thead th:first-child,
.comparison-table .category-row th,
.category-row button {
  background: #eaf3ff;
  color: #164573;
}

.comparison-table tr > *:first-child {
  background: #f4f8ff;
}

.comparison-table thead th:first-child {
  background: #dfeeff;
}

.comparison-table .category-row th {
  background: #eaf3ff;
}

.category-row button span {
  border-color: #8cb9e9;
}

.category-row button b {
  color: #466889;
}

.compare-product-head {
  border-top-width: 3px;
}

.maker-guide > article {
  border-top-width: 3px;
}

.maker-guide > article > div {
  border-color: #e5eaf1;
}

.catalog-dialog,
.replace-dialog {
  overflow: hidden;
  border-color: #e5eaf1;
  border-radius: 24px;
  box-shadow: 0 24px 72px rgba(21, 31, 52, 0.24);
}

.catalog-dialog::backdrop,
.replace-dialog::backdrop {
  background: rgba(19, 30, 50, 0.48);
}

.dialog-toolbar {
  border-bottom: 1px solid #e8ecf2;
  background: rgba(255, 255, 255, 0.97);
}

.dialog-compare-jump,
.compare-fab {
  border-color: #263344;
  background: #263344;
}

.compare-fab {
  box-shadow: 0 16px 34px rgba(21, 31, 52, 0.22);
}

.detail-hero {
  border-top-width: 4px;
}

.detail-logo,
.detail-group,
.catalog-fields,
.replace-option {
  border-color: #dfe5ed;
  border-radius: 12px;
}

.detail-sales,
.replace-count,
.catalog-fields {
  background: #f7f9fc;
}

.detail-group {
  overflow: hidden;
}

.detail-group summary,
.mobile-compare-group > button {
  background: #eaf3ff;
  color: #164573;
}

.replace-option.is-active {
  border-color: var(--teal);
  background: #eaf3ff;
}

.mobile-jumpbar button {
  border-color: #dce2eb;
  border-radius: 12px;
  background: #fff;
}

.mobile-jumpbar button:hover {
  background: #eaf3ff;
}

@media (max-width: 1023px) {
  .topbar {
    align-items: stretch;
    padding: 32px clamp(16px, 4vw, 42px);
  }

  .summary-strip {
    flex-basis: auto;
    width: min(100%, 560px);
  }

  .control-panel {
    overflow-y: auto;
    border-radius: 0 22px 22px 0;
    box-shadow: 16px 0 42px rgba(21, 31, 52, 0.18);
  }

  .mobile-filter-head {
    border-color: #e7ebf1;
  }
}

@media (min-width: 621px) and (max-width: 1023px) {
  .series-grid {
    gap: 18px;
  }
}

@media (max-width: 620px) {
  .topbar {
    padding: 26px 16px 30px;
  }

  .brand h1 {
    font-size: clamp(2.15rem, 9vw, 2.8rem);
  }

  .summary-strip {
    border-radius: 18px;
  }

  .summary-strip div {
    padding: 13px 6px;
  }

  .summary-strip span {
    font-size: 1.35rem;
  }

  .maker-rail {
    gap: 6px;
    padding: 8px 10px;
  }

  .maker-rail-item {
    border-radius: 10px;
  }

  main {
    padding-top: 24px;
  }

  .comparison-band {
    border-radius: 22px;
    padding: 18px 14px;
  }

  .series-card,
  .sales-card,
  .maker-guide > article,
  .source-list article,
  .mobile-compare-card {
    border-radius: 20px;
  }

  .mobile-compare-card {
    border-top-width: 3px;
  }

  .mobile-jumpbar {
    border-color: #e2e7ef;
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 14px 34px rgba(21, 31, 52, 0.17);
  }
}

@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .maker-rail,
  .mobile-jumpbar,
  .mobile-filter-head,
  .dialog-toolbar {
    background: #fff;
    backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: #485266;
    --muted: #364052;
    --teal: #064c9e;
    --focus: #003b85;
  }

  .control-panel,
  .series-card,
  .comparison-band,
  .maker-rail-item,
  .maker-guide > article,
  .source-list article,
  .table-wrap {
    border-color: var(--line);
  }

  .check-option.is-active,
  .maker-rail-item.is-active,
  .compare-button.is-selected {
    border-color: var(--teal);
  }
}
