
/* need-navigation-inheritance:start */
body {
  --need-accent: #2563eb;
  --need-soft: rgba(37, 99, 235, .11);
  --need-bg: rgba(239, 246, 255, .88);
  --need-border: rgba(37, 99, 235, .30);
  --need-text: #1d4ed8;
}

body[data-need-tone="input"] {
  --need-accent: #4f46e5;
  --need-soft: rgba(79, 70, 229, .12);
  --need-bg: rgba(238, 242, 255, .9);
  --need-border: rgba(79, 70, 229, .32);
  --need-text: #4338ca;
  --series-pastel-a: rgba(224, 231, 255, .26);
  --series-pastel-b: rgba(245, 243, 255, .20);
  --series-shadow: rgba(79, 70, 229, .07);
}

body[data-need-tone="network"],
body[data-need-tone="mobile"] {
  --need-accent: #0891b2;
  --need-soft: rgba(8, 145, 178, .12);
  --need-bg: rgba(236, 254, 255, .9);
  --need-border: rgba(8, 145, 178, .32);
  --need-text: #0e7490;
  --series-pastel-a: rgba(207, 250, 254, .24);
  --series-pastel-b: rgba(224, 242, 254, .20);
  --series-shadow: rgba(8, 145, 178, .07);
}

body[data-need-tone="audio"],
body[data-need-tone="wearable"] {
  --need-accent: #7c3aed;
  --need-soft: rgba(124, 58, 237, .12);
  --need-bg: rgba(245, 243, 255, .9);
  --need-border: rgba(124, 58, 237, .32);
  --need-text: #6d28d9;
  --series-pastel-a: rgba(237, 233, 254, .26);
  --series-pastel-b: rgba(252, 231, 243, .18);
  --series-shadow: rgba(124, 58, 237, .07);
}

body[data-need-tone="home"],
body[data-need-tone="sleep"] {
  --need-accent: #10b981;
  --need-soft: rgba(16, 185, 129, .12);
  --need-bg: rgba(236, 253, 245, .9);
  --need-border: rgba(16, 185, 129, .32);
  --need-text: #047857;
  --series-pastel-a: rgba(209, 250, 229, .24);
  --series-pastel-b: rgba(254, 249, 195, .16);
  --series-shadow: rgba(16, 185, 129, .06);
}

body[data-need-tone="work"] {
  --need-accent: #0ea5e9;
  --need-soft: rgba(14, 165, 233, .12);
  --need-bg: rgba(240, 249, 255, .9);
  --need-border: rgba(14, 165, 233, .32);
  --need-text: #0369a1;
  --series-pastel-a: rgba(224, 242, 254, .25);
  --series-pastel-b: rgba(219, 234, 254, .20);
  --series-shadow: rgba(14, 165, 233, .07);
}

body[data-need-tone="gaming"] {
  --need-accent: #ef4444;
  --need-soft: rgba(239, 68, 68, .12);
  --need-bg: rgba(254, 242, 242, .92);
  --need-border: rgba(239, 68, 68, .30);
  --need-text: #b91c1c;
  --series-pastel-a: rgba(254, 226, 226, .22);
  --series-pastel-b: rgba(255, 237, 213, .18);
  --series-shadow: rgba(239, 68, 68, .06);
}

body[data-need-tone="outdoor"],
body[data-need-tone="travel"] {
  --need-accent: #f59e0b;
  --need-soft: rgba(245, 158, 11, .14);
  --need-bg: rgba(255, 251, 235, .9);
  --need-border: rgba(245, 158, 11, .36);
  --need-text: #b45309;
  --series-pastel-a: rgba(254, 243, 199, .24);
  --series-pastel-b: rgba(255, 237, 213, .18);
  --series-shadow: rgba(245, 158, 11, .07);
}

.control-panel {
  max-height: calc(100vh - 108px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: auto;
  scrollbar-gutter: stable;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.answer-kicker {
  margin-bottom: 4px;
  color: var(--blue);
  font-size: 10px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .08em;
}

.need-answer-card,
.need-step-card {
  min-width: 0;
  margin-top: 14px;
  padding: 13px;
  border: 1px solid rgba(203, 213, 225, .78);
  border-radius: 16px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .05);
}

.need-answer-card[hidden] {
  display: none !important;
}

.need-answer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.need-answer-head .need-card-status {
  flex: 1 1 auto;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 0;
  margin: 0 0 0 auto;
  text-align: right;
}

.need-answer-head .need-card-status span,
.need-answer-head .need-card-status a {
  min-height: 0;
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  background-color: transparent !important;
  color: #64748b;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.3;
  box-shadow: none !important;
}

.need-answer-head .need-card-status > * + *::before {
  content: "";
  width: 1px;
  height: 10px;
  margin: 0 8px;
  background: #cbd5e1;
  flex: 0 0 1px;
}

.need-answer-head .need-card-status b {
  font-weight: 400;
}

@media (max-width: 720px) {
  .need-answer-head {
    flex-wrap: wrap;
  }

  .need-answer-head .need-card-status {
    flex-basis: 100%;
    justify-content: flex-start;
    text-align: left;
  }
}

.need-answer-head h2,
.need-step-card h2 {
  margin: 0;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
}

.need-answer-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.need-answer-actions button {
  min-height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.need-answer-actions button:hover {
  color: var(--need-text);
}

.need-answer-head a {
  color: var(--need-text);
  font-size: 11px;
  font-weight: 700;
}

.need-empty-summary {
  margin: 8px 0 0;
  color: #6b7280 !important;
  font-size: 11.5px;
  line-height: 1.45;
  font-weight: 400 !important;
}

.need-empty-summary[hidden] {
  display: none;
}

.need-active-row[hidden],
.need-map[hidden],
.need-answer-actions[hidden] {
  display: none !important;
}

.need-answer-card.is-empty {
  padding-bottom: 12px;
}

.need-answer-card.is-selected-state {
  border-color: rgba(147, 197, 253, .72);
  background:
    radial-gradient(circle at 8% 0%, rgba(239, 246, 255, .78), transparent 48%),
    linear-gradient(145deg, rgba(255, 255, 255, .94), rgba(248, 250, 252, .72));
}

.need-answer-card.is-default-state {
  border-color: rgba(203, 213, 225, .68);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .78), rgba(248, 250, 252, .54));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .86),
    0 8px 20px rgba(15, 23, 42, .035);
}

.need-answer-card.is-default-state .need-answer-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #334155;
}

.need-answer-card.is-default-state .need-answer-head h2::after {
  content: "表示中";
  padding: 3px 7px;
  border: 1px solid rgba(148, 163, 184, .32);
  border-radius: 999px;
  background: rgba(248, 250, 252, .82);
  color: #64748b;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
}

.need-answer-card.is-default-state .need-empty-summary {
  color: #64748b !important;
}

.need-active-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.need-chip {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 0 10px;
  border: 1px solid var(--chip-border, rgba(147, 197, 253, .55));
  border-radius: 999px;
  background: var(--chip-bg, rgba(239, 246, 255, .86));
  color: var(--chip-text, #1d4ed8);
  font-size: 11.5px;
  line-height: 1.2;
  font-weight: 700;
  box-shadow: 0 0 0 3px var(--chip-soft, rgba(37, 99, 235, .08));
}

.need-chip i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .58);
  color: currentColor;
  font-style: normal;
  font-size: 12px;
  line-height: 1;
}

.need-chip.is-product {
  --chip-border: var(--need-border);
  --chip-bg: var(--need-bg);
  --chip-soft: var(--need-soft);
  --chip-text: var(--need-text);
}

.need-chip.is-when,
.need-map-section.is-when {
  --chip-border: rgba(37, 99, 235, .32);
  --chip-bg: rgba(239, 246, 255, .88);
  --chip-soft: rgba(37, 99, 235, .10);
  --chip-text: #1d4ed8;
}

.need-chip.is-where,
.need-map-section.is-where {
  --chip-border: rgba(16, 185, 129, .32);
  --chip-bg: rgba(236, 253, 245, .88);
  --chip-soft: rgba(16, 185, 129, .10);
  --chip-text: #047857;
}

.need-chip.is-task,
.need-map-section.is-task {
  --chip-border: rgba(245, 158, 11, .36);
  --chip-bg: rgba(255, 251, 235, .9);
  --chip-soft: rgba(245, 158, 11, .12);
  --chip-text: #b45309;
}

.need-map {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, .24);
}

.need-map-section {
  display: grid;
  gap: 5px;
  padding: 9px 10px;
  border: 1px solid var(--chip-border, var(--need-border));
  border-radius: 12px;
  background: var(--chip-bg, var(--need-bg));
  color: var(--chip-text, var(--need-text));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82);
}

.need-map-section.is-product {
  --chip-border: var(--need-border);
  --chip-bg: var(--need-bg);
  --chip-text: var(--need-text);
}

.need-map-section span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #475569;
  font-size: 10.5px;
  font-weight: 700;
}

.need-map-section span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 4px var(--chip-soft, var(--need-soft));
}

.need-map-section b {
  color: inherit;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
}

.result-head > .need-answer-card {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 12px;
  display: flex;
  flex-direction: column;
  border-color: rgba(203, 213, 225, .72);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .86), rgba(248, 250, 252, .64));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .90),
    0 10px 24px rgba(15, 23, 42, .055);
}

.result-head > .need-answer-card .answer-kicker {
  margin-bottom: 3px;
}

.result-head > .need-answer-card .need-active-row {
  margin-top: 10px;
}

.result-head > .need-answer-card .need-map {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
  padding-top: 10px;
}

.result-head > .need-answer-card .need-map-section {
  min-width: 0;
  padding: 8px 9px;
  border-radius: 10px;
}

.result-head > .need-answer-card .need-map-section span {
  font-size: 10px;
  line-height: 1.2;
}

.result-head > .need-answer-card .need-map-section b {
  overflow: hidden;
  font-size: 11.5px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-head > .need-answer-card .need-answer-actions {
  justify-content: flex-end;
  margin-top: 8px;
  padding-top: 0;
  border-top: 0;
}

.need-flow-nav {
  display: flex;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 1px 2px 6px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.need-flow-nav::-webkit-scrollbar {
  display: none;
}

.need-flow-nav a {
  flex: 0 0 124px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  column-gap: 7px;
  align-items: center;
  min-height: 46px;
  padding: 6px 9px;
  border: 1px solid var(--flow-border, rgba(203, 213, 225, .82));
  border-radius: 16px;
  background: var(--flow-bg, rgba(255, 255, 255, .82));
  color: var(--flow-text, #334155);
  scroll-snap-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86);
}

.need-flow-nav a.is-active {
  border-color: var(--flow-text, #2563eb);
  background: color-mix(in srgb, var(--flow-text, #2563eb) 10%, #fff);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .88),
    0 6px 14px rgba(15, 23, 42, .055);
}

.need-flow-nav a.is-product {
  --flow-border: var(--need-border);
  --flow-bg: var(--need-bg);
  --flow-text: var(--need-text);
}

.need-flow-nav a.is-when {
  --flow-border: rgba(37, 99, 235, .30);
  --flow-bg: rgba(239, 246, 255, .82);
  --flow-text: #1d4ed8;
}

.need-flow-nav a.is-where {
  --flow-border: rgba(16, 185, 129, .30);
  --flow-bg: rgba(236, 253, 245, .82);
  --flow-text: #047857;
}

.need-flow-nav a.is-task {
  --flow-border: rgba(245, 158, 11, .34);
  --flow-bg: rgba(255, 251, 235, .86);
  --flow-text: #b45309;
}

.need-flow-nav a > span {
  grid-row: span 2;
  min-width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  justify-self: center;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, currentColor 24%, #dbe3ef);
  background: color-mix(in srgb, currentColor 8%, #fff);
  color: var(--flow-text, #334155);
  font-size: 9.5px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 5px 12px color-mix(in srgb, currentColor 9%, transparent);
}

.need-flow-nav b,
.need-flow-nav small {
  display: block;
  min-width: 0;
}

.need-flow-nav b {
  font-size: 11px;
  line-height: 1.15;
  font-weight: 700;
  white-space: nowrap;
}

.need-flow-nav small {
  color: #64748b;
  font-size: 9.5px;
  line-height: 1.2;
  font-weight: 500;
  white-space: nowrap;
}

.need-step-card {
  display: grid;
  gap: 12px;
}

.need-step-card p {
  margin: 0 0 2px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
}

.need-step-flow {
  display: grid;
  grid-template-columns: 50px minmax(18px, 1fr) 34px minmax(18px, 1fr) 34px minmax(18px, 1fr) 34px;
  align-items: center;
  gap: 0;
  min-height: 34px;
  padding: 3px;
  border: 1px solid rgba(147, 197, 253, .42);
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
}

.need-step-flow a {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(96, 165, 250, .78);
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 1), rgba(239, 246, 255, .94) 62%, rgba(219, 234, 254, .92));
  color: #2563eb;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .78);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, .95),
    inset 0 0 0 4px rgba(147, 197, 253, .30),
    inset 0 -4px 9px rgba(37, 99, 235, .18),
    0 9px 18px rgba(37, 99, 235, .20),
    0 2px 6px rgba(15, 23, 42, .12);
}

.need-step-flow a.is-product-step {
  width: 44px;
  padding: 0 6px;
  font-size: 10px;
  letter-spacing: 0;
}

.need-step-flow a.is-complete,
.need-step-flow a.is-active {
  border-color: color-mix(in srgb, var(--need-accent) 70%, #fff);
  background:
    radial-gradient(circle at 30% 16%, rgba(255, 255, 255, .30), transparent 50%),
    linear-gradient(135deg, var(--need-accent), color-mix(in srgb, var(--need-accent) 78%, #020617));
  color: #fff;
  text-shadow: 0 1px 1px rgba(15, 23, 42, .34);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, .22),
    inset 0 0 0 4px color-mix(in srgb, var(--need-accent) 32%, transparent),
    inset 0 -5px 12px rgba(15, 23, 42, .30),
    0 12px 24px color-mix(in srgb, var(--need-accent) 32%, transparent),
    0 3px 8px rgba(15, 23, 42, .16);
}

.need-step-flow i {
  height: 1px;
  background: linear-gradient(90deg, rgba(147, 197, 253, .70), var(--need-accent));
}

.need-step-slider {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d8e1ee;
  border-radius: 14px;
  background: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .90),
    0 8px 18px rgba(15, 23, 42, .045);
}

.need-step-track {
  --step-index: 0;
  display: flex;
  width: 100%;
  transform: translateX(calc(var(--step-index) * -100%));
  transition: transform .28s cubic-bezier(.22, .72, .2, 1);
}

.need-step-pane {
  flex: 0 0 100%;
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  scroll-margin-top: 110px;
}

.need-step-pane[aria-hidden="true"] {
  pointer-events: none;
  visibility: hidden;
}

.need-step-pane legend {
  margin-bottom: 0;
  padding-top: 10px;
}

.need-step-pane .choice-grid {
  gap: 10px;
}

.product-step-pane .product-search {
  margin-bottom: 9px;
}

.product-step-pane .product-category-accordion {
  max-height: clamp(220px, 36vh, 280px);
  overflow: auto;
  padding-right: 3px;
  overscroll-behavior: contain;
}

.product-step-pane .product-category-group .category-grid {
  max-height: none;
}

.step-selected-tags {
  display: flex;
  gap: 7px;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-bottom: 2px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.step-selected-tags::-webkit-scrollbar {
  display: none;
}

.step-selected-tag {
  flex: 0 0 126px;
  min-width: 0;
  min-height: 34px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #334155;
  scroll-snap-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86);
}

.step-selected-tag small {
  min-width: 22px;
  min-height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
}

.step-selected-tag span {
  min-width: 0;
  overflow: hidden;
  color: #1f2937;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.step-selected-tag.is-active {
  border-color: #94a3b8;
  background: #f8fafc;
  box-shadow:
    inset 0 0 0 1px rgba(148, 163, 184, .16),
    0 6px 14px rgba(15, 23, 42, .045);
}

.step-selected-tag.is-active small {
  background: var(--need-accent);
  color: #fff;
}

.need-step-actions {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 8px;
}

.need-step-actions button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
}

.need-step-actions button:disabled {
  color: #cbd5e1;
  border-color: #e5e7eb;
}

.need-step-actions .need-step-status {
  color: #334155;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
}

.need-step-actions .need-step-status:disabled {
  cursor: default;
  opacity: 1;
}

.question-block {
  scroll-margin-top: 92px;
}

.question-block[data-step-key="when"] {
  --choice-color: #2563eb;
  --choice-bg: rgba(239, 246, 255, .82);
  --choice-border: rgba(37, 99, 235, .28);
  --choice-text: #1d4ed8;
}

.question-block[data-step-key="where"] {
  --choice-color: #10b981;
  --choice-bg: rgba(236, 253, 245, .84);
  --choice-border: rgba(16, 185, 129, .30);
  --choice-text: #047857;
}

.question-block[data-step-key="task"] {
  --choice-color: #f59e0b;
  --choice-bg: rgba(255, 251, 235, .88);
  --choice-border: rgba(245, 158, 11, .36);
  --choice-text: #b45309;
}

.category-grid button {
  --choice-color: var(--need-accent);
  --choice-bg: var(--need-bg);
  --choice-border: var(--need-border);
  --choice-text: var(--need-text);
}

.category-grid button[data-tone="pc"] {
  --choice-color: #2563eb;
  --choice-bg: rgba(239, 246, 255, .88);
  --choice-border: rgba(37, 99, 235, .30);
  --choice-text: #1d4ed8;
}

.category-grid button[data-tone="input"] {
  --choice-color: #4f46e5;
  --choice-bg: rgba(238, 242, 255, .86);
  --choice-border: rgba(79, 70, 229, .30);
  --choice-text: #4338ca;
}

.category-grid button[data-tone="network"],
.category-grid button[data-tone="mobile"] {
  --choice-color: #0891b2;
  --choice-bg: rgba(236, 254, 255, .86);
  --choice-border: rgba(8, 145, 178, .30);
  --choice-text: #0e7490;
}

.category-grid button[data-tone="audio"],
.category-grid button[data-tone="wearable"] {
  --choice-color: #7c3aed;
  --choice-bg: rgba(245, 243, 255, .88);
  --choice-border: rgba(124, 58, 237, .30);
  --choice-text: #6d28d9;
}

.category-grid button[data-tone="home"],
.category-grid button[data-tone="sleep"] {
  --choice-color: #10b981;
  --choice-bg: rgba(236, 253, 245, .86);
  --choice-border: rgba(16, 185, 129, .30);
  --choice-text: #047857;
}

.category-grid button[data-tone="work"] {
  --choice-color: #0ea5e9;
  --choice-bg: rgba(240, 249, 255, .88);
  --choice-border: rgba(14, 165, 233, .30);
  --choice-text: #0369a1;
}

.category-grid button[data-tone="gaming"] {
  --choice-color: #ef4444;
  --choice-bg: rgba(254, 242, 242, .88);
  --choice-border: rgba(239, 68, 68, .28);
  --choice-text: #b91c1c;
}

.category-grid button[data-tone="outdoor"],
.category-grid button[data-tone="travel"] {
  --choice-color: #f59e0b;
  --choice-bg: rgba(255, 251, 235, .88);
  --choice-border: rgba(245, 158, 11, .34);
  --choice-text: #b45309;
}

.category-grid button,
.choice-grid button {
  border-color: color-mix(in srgb, var(--choice-color, #2563eb) 18%, #dbe4ef) !important;
  background: color-mix(in srgb, var(--choice-color, #2563eb) 5%, #fff) !important;
  color: #334155;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .88);
}

.category-grid button span,
.choice-grid button span {
  color: color-mix(in srgb, var(--choice-text, #64748b) 48%, #64748b);
}

.category-grid button.is-active,
.choice-grid button.is-active {
  border-color: color-mix(in srgb, var(--choice-color, var(--need-accent)) 34%, #cbd5e1) !important;
  background: color-mix(in srgb, var(--choice-color, var(--need-accent)) 14%, #fff) !important;
  color: color-mix(in srgb, var(--choice-text, #1d4ed8) 72%, #0f172a) !important;
  box-shadow:
    inset 4px 0 0 color-mix(in srgb, var(--choice-color, var(--need-accent)) 72%, #fff),
    inset 0 1px 0 rgba(255, 255, 255, .82),
    0 0 0 3px color-mix(in srgb, var(--choice-color, var(--need-accent)) 10%, transparent);
}

.category-grid button.is-active span,
.choice-grid button.is-active span {
  color: color-mix(in srgb, var(--choice-text, #64748b) 58%, #64748b);
}
/* need-navigation-inheritance:end */

/* simple-need-buttons:start */
.category-grid {
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.category-grid button,
.choice-grid button {
  overflow: visible;
  min-height: 56px;
  border-color: #cbd5e1 !important;
  border-radius: 10px;
  background: #fff !important;
  color: #1f2937 !important;
  box-shadow: none;
}

.category-grid button::before,
.choice-grid button::before {
  display: none;
}

.category-grid button:hover,
.choice-grid button:hover {
  transform: none;
  border-color: #94a3b8 !important;
  background: #f8fafc !important;
}

.category-grid b,
.choice-grid b {
  color: inherit;
}

.category-grid span,
.choice-grid span {
  color: #64748b !important;
}

.category-grid button.is-active,
.choice-grid button.is-active {
  border-color: #94a3b8 !important;
  background: #f3f7ff !important;
  color: #1e3a8a !important;
  box-shadow:
    inset 0 0 0 1px rgba(37, 99, 235, .10),
    0 6px 14px rgba(37, 99, 235, .055);
}

.category-grid button.is-active span,
.choice-grid button.is-active span {
  color: #2563eb !important;
}

.need-step-pane .choice-grid button {
  min-height: 60px;
  padding: 11px 13px;
}

.need-step-pane .choice-grid b {
  line-height: 1.28;
}

.need-step-pane .choice-grid span {
  margin-top: 3px;
  line-height: 1.25;
}
/* simple-need-buttons:end */

/* product-category-accordion:start */
.product-search {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #64748b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86);
}

.product-search .search-icon {
  flex: 0 0 18px;
}

.product-search input {
  width: 100%;
  min-height: 44px;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #0f172a;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.product-search input::placeholder {
  color: #94a3b8;
}

.product-category-accordion {
  display: grid;
  gap: 8px;
  max-height: min(52vh, 500px);
  overflow: auto;
  padding-right: 2px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.product-category-group {
  overflow: hidden;
  border: 1px solid #d8e1ee;
  border-radius: 12px;
  background: #fff;
}

.product-category-group:not([open]) {
  max-height: 54px;
}

.product-category-group:not([open]) > :not(summary) {
  display: none !important;
}

.product-category-group[hidden],
.category-grid button[hidden] {
  display: none !important;
}

.product-category-group[open] {
  box-shadow: 0 8px 18px rgba(15, 23, 42, .045);
}

.product-category-group.is-active {
  border-color: rgba(37, 99, 235, .36);
  background: #f8fbff;
}

.product-category-group summary {
  min-height: 46px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: #1f2937;
  cursor: pointer;
  list-style: none;
}

.product-category-group summary::-webkit-details-marker {
  display: none;
}

.product-category-group summary::after {
  content: "";
  width: 8px;
  height: 8px;
  justify-self: center;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .16s ease, border-color .16s ease;
}

.product-category-group[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}

.product-category-group.is-active summary::after {
  border-color: #2563eb;
}

.product-category-group summary span,
.product-category-group summary small {
  display: block;
  min-width: 0;
}

.product-category-group summary span {
  font-size: 13px;
  line-height: 1.25;
  font-weight: 700;
}

.product-category-group summary small {
  margin-top: 2px;
  color: #64748b;
  font-size: 10.5px;
  line-height: 1.25;
  font-weight: 700;
}

.product-category-group.is-active summary span {
  color: #1d4ed8;
}

.product-category-group .category-grid {
  max-height: 340px;
  overflow: auto;
  padding: 0 10px 10px;
  scrollbar-width: thin;
}

.product-category-group:not([open]) .category-grid {
  display: none;
}

.product-category-group .category-grid button {
  min-height: 48px;
  padding: 8px 9px;
}
/* product-category-accordion:end */

/* product-category-polish:start */
.product-block legend {
  position: relative;
  z-index: 2;
  width: fit-content;
  margin: -8px 0 12px 8px;
  padding: 1px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 250, 252, .98));
  line-height: 1.35;
  transform: translateY(-2px);
}

.product-search {
  min-height: 44px;
  margin-top: -2px;
  margin-bottom: 7px;
  border-color: rgba(147, 197, 253, .72);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 250, 252, .96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .96),
    0 10px 22px rgba(37, 99, 235, .12),
    0 2px 7px rgba(15, 23, 42, .08);
}

.product-search .search-icon {
  color: #2563eb;
}

.product-search:focus-within {
  border-color: rgba(37, 99, 235, .72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .96),
    0 12px 26px rgba(37, 99, 235, .16),
    0 0 0 4px rgba(37, 99, 235, .08);
}

.product-search input {
  font-size: 12.5px;
  line-height: 1.2;
}

.product-category-accordion {
  gap: 7px;
  max-height: none;
  overflow: visible;
  overscroll-behavior: auto;
  padding: 1px 3px 8px 0;
}

.product-category-group {
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
}

.product-category-group:not([open]) {
  max-height: 46px;
}

.product-category-group[open] {
  background: #fff;
  box-shadow: none;
}

.product-category-group.is-active {
  border-color: #b9c8da !important;
  background: #fff;
}

.product-category-group summary {
  min-height: 44px;
  grid-template-columns: 10px minmax(0, 1fr) 18px;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 9px;
}

.product-category-group summary::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #94a3b8;
  box-shadow: 0 0 0 4px rgba(148, 163, 184, .10);
}

.product-category-group[open] summary {
  border-bottom: 1px solid #edf2f7;
  background: #f8fafc;
}

.product-category-group.is-active summary {
  background: #f8fbff;
}

.product-category-group.is-active summary::before {
  background: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.product-category-group summary span {
  color: #1f2937;
  font-size: 12.5px;
  line-height: 1.2;
}

.product-category-group.is-active summary span {
  color: #1d4ed8;
}

.product-category-route-link {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 9px 8px 0;
  padding: 9px 12px;
  border: 1px solid color-mix(in srgb, var(--need-accent) 24%, #d8e1ee);
  border-radius: 12px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--need-accent) 8%, #fff), rgba(255, 255, 255, .92));
  color: var(--need-text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .88),
    0 8px 18px color-mix(in srgb, var(--need-accent) 11%, transparent);
}

.product-category-route-link span,
.product-category-route-link b {
  display: block;
  min-width: 0;
  line-height: 1.15;
  white-space: nowrap;
}

.product-category-route-link span {
  font-size: 11px;
  font-weight: 800;
}

.product-category-route-link b {
  color: #334155;
  font-size: 11px;
  font-weight: 800;
}

.product-category-group .category-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  max-height: none;
  overflow: visible;
  padding: 8px;
}

.product-category-group .category-grid button {
  min-height: 46px;
  padding: 8px 9px;
  border-color: #d8e1ee !important;
  border-radius: 9px;
  background: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}

.product-category-group .category-grid button:hover {
  border-color: #b9c8da !important;
  background: #f8fafc !important;
}

.product-category-group .category-grid b {
  font-size: 12.5px;
  line-height: 1.2;
}

.product-category-group .category-grid span {
  margin-top: 3px;
  font-size: 10.5px;
  line-height: 1.2;
}

.product-category-group .category-grid button.is-active {
  border-color: color-mix(in srgb, var(--choice-color, #2563eb) 38%, #cbd5e1) !important;
  background: color-mix(in srgb, var(--choice-color, #2563eb) 8%, #fff) !important;
  box-shadow:
    inset 3px 0 0 color-mix(in srgb, var(--choice-color, #2563eb) 62%, #fff),
    inset 0 1px 0 rgba(255, 255, 255, .9);
}

.product-category-group .category-grid button.is-active span {
  color: color-mix(in srgb, var(--choice-text, #2563eb) 58%, #64748b) !important;
}
/* product-category-polish:end */

/* gray-bordered-controls:start */
.need-chip,
.need-map-section,
.need-flow-nav a,
.product-category-group,
.sort-control select,
.source-tabs button,
.brand-link {
  border-color: #cbd5e1 !important;
}

.need-chip {
  box-shadow: none;
}

.need-answer-actions button {
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #475569;
}

.need-answer-actions button:hover,
.need-step-actions button:hover {
  border-color: #94a3b8;
  background: #f8fafc;
  color: #1f2937;
}
/* gray-bordered-controls:end */

/* independent-source-tabs:start */
.table-toolbar {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 9px;
  margin: 0;
  flex-wrap: wrap;
}

.source-tabs,
.result-card .source-tabs {
  width: auto;
  max-width: 100%;
  display: inline-flex;
  align-self: flex-end;
  justify-content: flex-start;
  gap: 4px;
  margin: 0 0 10px;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

.table-toolbar .source-tabs {
  position: relative;
  z-index: 3;
  margin: 0 0 -1px;
  padding-left: 0;
}

.table-toolbar .result-controls {
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
  margin-bottom: 8px;
}

.table-toolbar .sort-control {
  min-width: 176px;
  position: relative;
  display: block;
  overflow: visible;
}

.table-toolbar .sort-control select {
  width: 100%;
  min-height: 38px;
  padding-right: 36px;
  padding-left: 40px;
  border-color: #cbd5e1 !important;
  background-color: #fff !important;
  background-image:
    linear-gradient(45deg, transparent 50%, #64748b 50%),
    linear-gradient(135deg, #64748b 50%, transparent 50%) !important;
  background-position: calc(100% - 18px) 16px, calc(100% - 13px) 16px !important;
  background-size: 5px 5px, 5px 5px !important;
  background-repeat: no-repeat;
  color: #0f172a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .92),
    0 6px 14px rgba(15, 23, 42, .045);
  line-height: 1;
}

.table-toolbar .sort-control-icon {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 14px;
  width: 16px;
  height: 16px;
  display: inline-grid;
  place-items: center;
  gap: 0;
  color: #64748b;
  font-size: 0;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-50%);
}

.table-toolbar .sort-control-icon > span {
  width: 16px;
  height: 16px;
  margin: 0;
}

.table-fullscreen-button,
.purchase-guide-link {
  min-height: 38px;
  min-width: 96px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid rgba(203, 213, 225, .78);
  border-radius: 999px;
  background:
    radial-gradient(circle at 24% 0%, rgba(255, 255, 255, .92), rgba(255, 255, 255, .28) 50%, transparent 78%),
    linear-gradient(180deg, rgba(255, 255, 255, .76), rgba(248, 250, 252, .5));
  color: #334155;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .88),
    0 10px 24px rgba(15, 23, 42, .06);
  cursor: pointer;
  text-decoration: none;
}

.purchase-guide-link {
  position: relative;
  isolation: isolate;
  border-color: rgba(147, 197, 253, .78);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, .98), rgba(219, 234, 254, .46) 52%, transparent 82%),
    linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(226, 240, 255, .72));
  color: #1d4ed8;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .92),
    0 12px 26px rgba(37, 99, 235, .10);
}

.purchase-guide-link::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 2px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  border-radius: 1px;
  opacity: .78;
  transform: rotate(45deg);
}

.purchase-guide-icon {
  position: relative;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(37, 99, 235, .22);
  border-radius: 999px;
  background:
    radial-gradient(circle at 32% 22%, rgba(255, 255, 255, .95), rgba(255, 255, 255, .35) 44%, transparent 72%),
    linear-gradient(180deg, rgba(239, 246, 255, .96), rgba(191, 219, 254, .72));
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, .95),
    inset 0 -5px 10px rgba(37, 99, 235, .12);
}

.purchase-guide-icon::before {
  content: "";
  width: 9px;
  height: 9px;
  border: 2px solid currentColor;
  border-radius: 999px;
  box-sizing: border-box;
}

.purchase-guide-icon::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(5px, 5px) rotate(45deg);
}

.table-fullscreen-button b,
.purchase-guide-link b {
  font-size: 11.5px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
}

.table-fullscreen-button:hover,
.table-fullscreen-button[aria-pressed="true"],
.purchase-guide-link:hover {
  border-color: rgba(147, 197, 253, .78);
  background:
    radial-gradient(circle at 24% 0%, rgba(255, 255, 255, .92), rgba(219, 234, 254, .44) 54%, transparent 82%),
    linear-gradient(180deg, rgba(255, 255, 255, .84), rgba(239, 246, 255, .6));
  color: #1d4ed8;
}

.purchase-guide-drawer {
  position: fixed;
  inset: 0;
  z-index: 66;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.purchase-guide-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.purchase-guide-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, .2);
  backdrop-filter: blur(6px) saturate(1.04);
  -webkit-backdrop-filter: blur(6px) saturate(1.04);
}

.purchase-guide-panel {
  position: absolute;
  right: clamp(12px, 3vw, 34px);
  bottom: clamp(12px, 3vw, 34px);
  left: clamp(12px, 3vw, 34px);
  width: min(880px, calc(100vw - 24px));
  max-height: min(72vh, 620px);
  margin: 0 auto;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 18px;
  border: 1px solid rgba(203, 213, 225, .74);
  border-radius: 22px 22px 18px 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(248, 250, 252, .78));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .92),
    0 26px 70px rgba(15, 23, 42, .22);
  transform: translateY(calc(100% + 42px));
  transition: transform .24s cubic-bezier(.2, .82, .2, 1);
}

.purchase-guide-drawer.is-open .purchase-guide-panel {
  transform: translateY(0);
}

.purchase-guide-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(203, 213, 225, .74);
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  color: #334155;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
}

.purchase-guide-panel h2 {
  margin: 2px 54px 6px 0;
  color: #0f172a;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: 0;
}

.purchase-guide-panel > p:not(.guide-kicker) {
  margin: 0 54px 14px 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.65;
}

.purchase-guide-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(148px, 1fr));
  gap: 10px;
}

.purchase-guide-card {
  min-height: 132px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(203, 213, 225, .72);
  border-radius: 16px;
  background: rgba(255, 255, 255, .66);
  color: #0f172a;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .055);
}

.purchase-guide-card.is-primary {
  border-color: rgba(59, 130, 246, .44);
  background:
    linear-gradient(180deg, rgba(239, 246, 255, .92), rgba(255, 255, 255, .72));
}

.purchase-guide-card small {
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, .09);
  color: #2563eb;
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
}

.purchase-guide-card b {
  font-size: 13.5px;
  line-height: 1.45;
  letter-spacing: 0;
}

.purchase-guide-card span {
  color: #64748b;
  font-size: 11.5px;
  line-height: 1.55;
}

.fullscreen-mini {
  position: relative;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  color: currentColor;
}

.fullscreen-mini::before,
.fullscreen-mini::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.fullscreen-mini::before {
  clip-path: polygon(0 0, 45% 0, 45% 20%, 20% 20%, 20% 45%, 0 45%);
}

.fullscreen-mini::after {
  clip-path: polygon(55% 80%, 80% 80%, 80% 55%, 100% 55%, 100% 100%, 55% 100%);
}

.table-fullscreen-exit[hidden] {
  display: none !important;
}

.table-fullscreen-exit {
  position: fixed;
  z-index: 1602;
  top: max(12px, env(safe-area-inset-top));
  left: max(12px, env(safe-area-inset-left));
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid rgba(203, 213, 225, .84);
  border-radius: 999px;
  background:
    radial-gradient(circle at 24% 0%, rgba(255, 255, 255, .96), rgba(255, 255, 255, .32) 56%, transparent 82%),
    linear-gradient(180deg, rgba(255, 255, 255, .88), rgba(248, 250, 252, .66));
  color: #1f2937;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 14px 34px rgba(15, 23, 42, .14);
  backdrop-filter: blur(18px) saturate(1.16);
  -webkit-backdrop-filter: blur(18px) saturate(1.16);
}

@media (min-width: 641px) {
  .table-fullscreen-exit {
    display: none !important;
  }
}

.table-fullscreen-exit b {
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
}

.table-fullscreen-exit .back-mini {
  width: 16px;
  height: 16px;
  background: currentColor;
}

.table-toolbar .sort-control select.is-enhanced-native {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.glass-select {
  position: relative;
  z-index: 12;
  width: 100%;
}

.glass-select-button {
  width: 100%;
  min-height: 38px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 14px;
  align-items: center;
  gap: 8px;
  padding: 0 15px 0 40px;
  border: 1px solid rgba(203, 213, 225, .78);
  border-radius: 999px;
  background:
    radial-gradient(circle at 22% 0%, rgba(255, 255, 255, .88), rgba(255, 255, 255, .22) 50%, transparent 78%),
    linear-gradient(180deg, rgba(255, 255, 255, .74), rgba(248, 250, 252, .48));
  backdrop-filter: blur(18px) saturate(1.28);
  -webkit-backdrop-filter: blur(18px) saturate(1.28);
  color: #0f172a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .86),
    0 12px 28px rgba(15, 23, 42, .08);
  cursor: pointer;
}

.glass-select-text {
  min-width: 0;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1;
}

.glass-select-arrow {
  width: 7px;
  height: 7px;
  justify-self: end;
  border-right: 1.6px solid #64748b;
  border-bottom: 1.6px solid #64748b;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .16s ease;
}

.glass-select.is-open {
  z-index: 80;
}

.glass-select.is-open .glass-select-button {
  border-color: rgba(147, 197, 253, .78);
  background:
    radial-gradient(circle at 22% 0%, rgba(255, 255, 255, .92), rgba(219, 234, 254, .44) 54%, transparent 82%),
    linear-gradient(180deg, rgba(255, 255, 255, .82), rgba(239, 246, 255, .54));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .92),
    0 16px 34px rgba(37, 99, 235, .12);
}

.glass-select.is-open .glass-select-arrow {
  transform: translateY(2px) rotate(225deg);
}

.glass-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: grid;
  gap: 2px;
  padding: 5px;
  border: 1px solid rgba(203, 213, 225, .72);
  border-radius: 13px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .84), rgba(241, 245, 249, .66));
  backdrop-filter: blur(20px) saturate(1.18);
  -webkit-backdrop-filter: blur(20px) saturate(1.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 18px 38px rgba(15, 23, 42, .16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px) scale(.98);
  transform-origin: top center;
  transition: opacity .15s ease, transform .15s ease;
}

.glass-select.is-open .glass-select-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.glass-select-menu button {
  min-height: 44px;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #334155;
  cursor: pointer;
}

.glass-select-menu button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11.5px;
  font-weight: 600;
}

.glass-select-menu button:hover,
.glass-select-menu button.is-active {
  background:
    radial-gradient(circle at 22% 0%, rgba(255, 255, 255, .74), transparent 56%),
    linear-gradient(180deg, rgba(219, 234, 254, .82), rgba(191, 219, 254, .58));
  color: #1d4ed8;
}

.glass-select-menu button.is-active {
  box-shadow: inset 0 0 0 1px rgba(147, 197, 253, .72);
}

.source-tabs button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 13px 0 10px;
  border: 1px solid #d5dce7 !important;
  border-bottom-color: #d5dce7 !important;
  border-radius: 12px 12px 0 0;
  background: #eef2f7 !important;
  color: #334155;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .78),
    0 -1px 0 rgba(255, 255, 255, .86);
}

.source-tabs button + button {
  margin-left: 0;
}

.source-tabs button.is-active {
  position: relative;
  z-index: 2;
  border-color: #d5dce7 !important;
  border-bottom-color: #f8fafc !important;
  background: #f8fafc !important;
  color: #1d4ed8;
  box-shadow:
    inset 0 3px 0 #2563eb,
    0 -8px 18px rgba(15, 23, 42, .045);
}

body[data-ranking-page="webtool"] .source-tabs button.is-active {
  color: #4338ca;
  box-shadow:
    inset 0 3px 0 #4f46e5,
    0 -8px 18px rgba(15, 23, 42, .045);
}

.result-card .table-wrap {
  border-top-left-radius: 0;
}

.source-tabs button span {
  line-height: 1;
}

.source-tabs .source-label-short {
  display: none;
}

@media (max-width: 980px) {
  .table-toolbar {
    align-items: flex-end;
    flex-direction: row;
  }

  .table-toolbar .result-controls {
    width: 100%;
    justify-content: flex-end;
    margin-left: 0;
    margin-bottom: 8px;
    order: -1;
  }

  .table-toolbar .source-tabs {
    width: 100%;
    overflow-x: auto;
    padding-left: 4px;
    scrollbar-width: none;
  }

  .table-toolbar .source-tabs::-webkit-scrollbar {
    display: none;
  }

  .table-toolbar .sort-control {
    flex: 0 1 176px;
    min-width: min(176px, 100%);
  }
}

@media (max-width: 640px) {
  .table-toolbar .result-controls {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    justify-content: stretch;
    gap: 7px;
    margin-bottom: 8px;
  }

  .table-toolbar .sort-control {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
  }

  .table-fullscreen-button,
  .purchase-guide-link {
    flex: 0 0 auto;
    min-width: 88px;
    min-height: 42px;
    padding: 0 10px;
  }

  .table-fullscreen-button b,
  .purchase-guide-link b {
    font-size: 10.5px;
  }

  .purchase-guide-panel {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: min(76vh, 620px);
    padding: 16px 14px calc(22px + env(safe-area-inset-bottom));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 22px 22px 0 0;
  }

  .purchase-guide-cards {
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
    gap: 8px;
    padding: 2px 2px 4px;
    scroll-snap-type: none;
  }

  .purchase-guide-card {
    min-height: auto;
    scroll-snap-align: unset;
  }

	  .table-toolbar .sort-control select {
		    min-height: 44px;
	    padding-left: 32px;
	    padding-right: 26px;
	    font-size: 11px;
    font-weight: 700;
    line-height: 1;
	    text-overflow: ellipsis;
	  }

		  .glass-select-button {
		    min-height: 44px;
	    padding-left: 32px;
	    padding-right: 12px;
	  }

	  .glass-select-text,
	  .glass-select-menu button span {
	    font-size: 10.5px;
	  }

	  .glass-select-menu {
	    min-width: 100%;
	  }
	
	  .table-toolbar .sort-control-icon {
	    left: 10px;
	    width: 14px;
    height: 14px;
  }

  .table-toolbar .sort-control-icon > span {
    width: 14px;
    height: 14px;
  }

  .table-toolbar .source-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    overflow: visible;
    padding-left: 0;
    background: #f4f5f7 !important;
    background-color: #f4f5f7 !important;
  }

  .source-tabs button {
    min-width: 0;
    min-height: 38px;
    gap: 4px;
    padding: 0 6px;
    border-radius: 10px 10px 0 0;
    font-size: 11px;
    white-space: nowrap;
  }

  .source-tabs button.is-active {
    transform: translateY(1px);
  }

  .result-card .table-wrap {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }

  .source-tabs .brand-mark {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    font-size: 9px;
  }

  .source-tabs .brand-mark-pair {
    transform: scale(.9);
    transform-origin: center;
  }

  .source-tabs .source-label-full {
    display: none;
  }

  .source-tabs .source-label-short {
    min-width: 0;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
/* independent-source-tabs:end */
