
/* comment-thread-feed:start */
.guide-comment-thread {
  display: grid;
  gap: 8px;
}

.guide-comment-thread > .guide-comment-item {
  margin: 0;
}

.guide-comment-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.guide-comment-head b {
  min-width: 0;
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guide-comment-head time {
  flex: 0 0 auto;
  color: #94a3b8;
  font-size: 10.5px;
  font-weight: 500;
  white-space: nowrap;
}

.guide-comment-reply-stack {
  position: relative;
  display: grid;
  gap: 7px;
  margin: 2px 0 6px 12px;
  padding-left: 12px;
  border-left: 1px solid rgba(147, 197, 253, .46);
}

.guide-comment-reply-stack::before {
  content: none;
}

.guide-comment-item.is-reply-preview {
  display: grid;
  gap: 5px;
  margin-right: 1px;
  padding: 9px 11px;
  border-color: rgba(203, 213, 225, .86);
  border-left: 1px solid rgba(147, 197, 253, .72);
  border-radius: 14px;
  background:
    radial-gradient(circle at 8% 0%, rgba(219, 234, 254, .42), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(248, 250, 252, .78));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86);
}

.guide-comment-item.is-reply-preview .guide-comment-head b {
  font-size: 12px;
}

.guide-comment-item.is-reply-preview .guide-comment-body {
  color: #475569 !important;
  font-size: 12px !important;
  line-height: 1.6 !important;
}

.guide-comment-item.is-reply-preview .guide-comment-actions {
  justify-content: flex-start;
  margin-top: 0;
}

.guide-comment-item.is-reply-preview .guide-comment-actions button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 10px;
  background: rgba(255, 255, 255, .88);
  font-size: 10.5px;
}

.guide-comment-item.is-reply-preview .guide-comment-actions button span:not(.comment-mini):not(.grid-mini) {
  max-width: none;
}

.guide-comment-replies-toggle {
  justify-self: start;
  min-height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(239, 246, 255, .78);
  color: #2563eb;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.guide-comment-replies-toggle:hover {
  background: #dbeafe;
}

@media (max-width: 640px) {
  .guide-comment-reply-stack {
    margin-left: 8px;
    padding-left: 10px;
  }

  .guide-comment-item.is-reply-preview {
    padding: 9px 10px;
  }
}
/* comment-thread-feed:end */

/* integrated-category-step:start */
.need-step-card .step-selected-tags {
  grid-template-columns: initial;
}

.product-step-pane {
  min-height: 0;
}

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

@media (max-width: 640px) {
  .need-step-flow {
    grid-template-columns: 48px minmax(14px, 1fr) 32px minmax(14px, 1fr) 32px minmax(14px, 1fr) 32px;
    min-height: 36px;
  }

  .need-step-flow a {
    width: 28px;
    height: 28px;
  }

  .need-step-flow a.is-product-step {
    width: 42px;
    font-size: 9.5px;
  }

  .need-step-card .step-selected-tags {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .need-step-card .step-selected-tag {
    flex: 0 0 126px;
  }

  .product-step-pane .product-category-accordion {
    max-height: 360px;
  }
}
/* integrated-category-step:end */

/* mobile-app-touch-system:start */
@media (max-width: 640px) {
  :root {
    --mobile-font-base: 15px;
    --mobile-font-ui: 13px;
    --mobile-font-small: 12px;
    --mobile-touch: 46px;
    --mobile-touch-comfy: 52px;
  }

  html {
    scroll-padding-top: 76px;
  }

  body {
    font-size: var(--mobile-font-base);
    line-height: 1.65;
  }

  .app-shell {
    padding: 4px 10px 112px;
  }

  .controls-bar {
    padding: 10px 10px 2px;
  }

  .page-flow-link,
  .pill-button,
  .count-pill,
  .saved-pill,
  .comment-pill,
  .need-answer-actions button,
  .need-step-actions button,
  .review-slide-actions a,
  .review-comment-button {
    min-height: var(--mobile-touch) !important;
    font-size: var(--mobile-font-ui) !important;
  }

  .page-flow-link {
    padding: 0 14px;
    gap: 8px;
  }

  .page-flow-link b,
  .comment-pill-label,
  .need-chip b,
  .need-map-section b,
  .step-selected-tag span,
  .source-tabs button,
  .glass-select-text,
  .glass-select-menu button span,
  .table-toolbar .sort-control select,
  .bottom-nav a,
  .bottom-nav button {
    font-size: var(--mobile-font-ui) !important;
    letter-spacing: 0;
  }

  .control-panel,
  .result-panel {
    border-radius: 20px;
  }

  .control-panel {
    padding: 18px !important;
  }

  .panel-head h1 {
    font-size: 20px;
    line-height: 1.25;
  }

  .panel-kicker,
  .answer-kicker,
  .question-kicker,
  .ranking-comment-eyebrow {
    font-size: 11px;
  }

  .need-answer-card,
  .need-step-card,
  .product-category-card,
  .product-category-group {
    border-radius: 18px;
  }

  .need-answer-card,
  .need-step-card {
    padding: 13px;
  }

  .need-answer-head h2,
  .need-step-card h2,
  .question-block legend {
    font-size: 16px;
    line-height: 1.35;
  }

  .need-answer-head .need-card-status,
  .need-answer-card p,
  .need-step-card p {
    font-size: var(--mobile-font-small);
    line-height: 1.6;
  }

  .need-chip,
  .need-map-section {
    min-height: var(--mobile-touch);
    padding: 8px 11px;
    border-radius: 14px;
  }

  .result-head > .need-answer-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
    padding: 12px 12px 10px;
  }

  .result-head > .need-answer-card .need-card-status {
    display: none !important;
  }

  .result-head > .need-answer-card .need-active-row {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex-wrap: nowrap;
    gap: 7px;
    margin-top: 10px;
    overflow-x: auto;
    padding: 0 2px 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .result-head > .need-answer-card .need-active-row::-webkit-scrollbar {
    display: none;
  }

  .result-head > .need-answer-card .need-chip {
    flex: 0 0 auto;
    max-width: 180px;
    min-height: 36px;
    padding: 6px 10px;
    border-radius: 999px;
    white-space: nowrap;
  }

  .result-head > .need-answer-card .need-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .result-head > .need-answer-card .need-answer-actions {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    justify-content: flex-end;
    margin-top: 4px;
  }

  .result-head > .need-answer-card .need-answer-actions button {
    min-height: 36px;
    padding: 0 14px;
  }

  .need-chip small,
  .need-map-section span,
  .step-selected-tag small {
    font-size: 10.5px;
  }

  .need-flow-nav a {
    flex-basis: 124px;
    min-height: 46px;
    grid-template-columns: 27px minmax(0, 1fr);
    padding: 6px 8px;
    border-radius: 15px;
    font-size: 12px;
  }

  .need-flow-nav a > span {
    min-width: 27px;
    height: 27px;
    font-size: 9px;
  }

  .step-selected-tags {
    gap: 7px;
  }

  .step-selected-tag {
    min-height: 38px;
    padding: 0 8px;
    border-radius: 999px;
  }

  .step-selected-tag small {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }

  .category-grid,
  .choice-grid,
  .need-step-pane .choice-grid,
  .product-category-group .category-grid {
    gap: 9px;
  }

  .category-grid button,
  .choice-grid button,
  .need-step-pane .choice-grid button,
  .product-category-group .category-grid button {
    min-height: 68px;
    padding: 13px 14px;
    border-radius: 14px;
  }

  .category-grid b,
  .choice-grid b,
  .product-category-group .category-grid b {
    font-size: 14.5px;
    line-height: 1.3;
  }

  .category-grid span,
  .choice-grid span,
  .product-category-group .category-grid span {
    margin-top: 4px;
    font-size: 12.5px;
    line-height: 1.35;
  }

  .product-search-box input {
    min-height: var(--mobile-touch);
    font-size: 14px;
  }

  .table-toolbar {
    gap: 10px;
  }

  .table-toolbar .result-controls {
    gap: 10px;
    margin-bottom: 10px;
  }

  .table-toolbar .sort-control select,
  .glass-select-button {
    min-height: var(--mobile-touch) !important;
    border-radius: 999px;
  }

  .glass-select-menu button {
    min-height: 44px;
  }

  .table-toolbar .source-tabs {
    gap: 6px;
  }

  .table-toolbar .result-controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }

  .table-toolbar .sort-control,
  .table-toolbar .glass-select,
  .table-fullscreen-button {
    width: 100%;
    min-width: 0;
    max-width: none;
    flex: initial;
  }

  .table-fullscreen-button {
    min-height: var(--mobile-touch) !important;
    justify-content: center;
    gap: 6px;
    padding-inline: 10px;
  }

  .table-fullscreen-button b {
    width: auto;
    flex: 0 1 auto;
    text-align: center;
  }

  .source-tabs button {
    min-height: var(--mobile-touch);
    gap: 5px;
    padding: 0 8px;
    border-radius: 13px 13px 0 0;
  }

  .source-tabs .brand-mark {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
    font-size: 10px;
  }

  .result-card .table-wrap {
    max-height: min(66dvh, 640px);
  }

  .table-wrap th,
  .table-wrap td {
    padding: 11px 10px;
    font-size: 12.5px;
    line-height: 1.45;
  }

  .table-wrap th {
    font-size: 12px;
  }

  .rank-badge {
    min-height: 30px;
    min-width: 30px;
    font-size: 12px;
  }

  .rank-control .row-accordion-cue {
    width: 22px;
    height: 22px;
  }

  .product-cell {
    min-height: 76px;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 7px 9px;
  }

  .product-cell img,
  .image-fallback {
    width: 48px;
    height: 48px;
  }

  .product-cell b {
    font-size: 13px;
    line-height: 1.38;
  }

  .product-cell small {
    font-size: 11.5px;
  }

  .price-main,
  .review-value,
  .need-fit,
  .check-value,
  .decision-value {
    font-size: 12.5px;
    line-height: 1.45;
  }

  .rating-stars {
    width: 78px;
    height: 15px;
  }

  .review-slide {
    padding: 14px;
    border-radius: 18px;
  }

  .review-slide-head span,
  .review-slide-grid small {
    font-size: 11px;
  }

  .review-slide-head b {
    font-size: 14px;
    line-height: 1.45;
  }

  .review-slide-grid strong,
  .review-slide-grid p,
  .review-slide-bottom p {
    font-size: 13px;
    line-height: 1.55;
  }

  .bottom-nav {
    width: min(520px, calc(100vw - 14px));
    min-height: 64px;
    padding: 7px;
    border-radius: 999px;
  }

  .bottom-nav a,
  .bottom-nav button {
    min-height: 52px;
    gap: 4px;
    font-size: 11.5px !important;
  }

  .bottom-nav-icon {
    width: 18px;
    height: 18px;
  }

  .ranking-comment-drawer {
    padding: 12px;
  }

  .ranking-comment-panel {
    padding: 18px;
    border-radius: 22px;
  }

  .ranking-comment-panel h2 {
    font-size: 22px;
  }

  .ranking-comment-copy,
  .comment-howto-copy,
  .guide-comment-call p {
    font-size: 13px;
  }

  .comment-howto li {
    min-height: 82px;
    border-radius: 15px;
  }

  .comment-howto b {
    font-size: 12px;
  }

  .comment-howto small {
    font-size: 10px;
  }

  .guide-comment-tab button,
  .ranking-comment-form input,
  .ranking-comment-form textarea,
  .ranking-comment-form button[type="submit"] {
    min-height: var(--mobile-touch);
    font-size: 15px;
  }
}
/* mobile-app-touch-system:end */

/* mobile-bottom-comment-nav:start */
.bottom-nav .is-comment-bottom {
  display: none;
}

@media (max-width: 640px) {
  .controls-bar {
    display: none;
  }

  .app-shell {
    padding-top: 10px;
  }

  .bottom-nav a[href="/release"] {
    display: none;
  }

  .bottom-nav .is-comment-bottom {
    display: inline-flex;
  }

  .bottom-nav .is-comment-bottom .comment-mini {
    width: 18px;
    height: 18px;
  }
}
/* mobile-bottom-comment-nav:end */

/* mobile-toolbar-gap-fix:start */
@media (max-width: 640px) {
  .result-card .table-toolbar {
    top: 8px;
    row-gap: 8px;
    padding-top: 0;
    margin-top: 0;
  }

  .result-card .table-toolbar::after {
    bottom: -8px;
    height: 8px;
  }

  .table-toolbar .result-controls {
    margin-bottom: 0;
  }

  .table-toolbar .source-tabs {
    margin-top: 0;
  }
}
/* mobile-toolbar-gap-fix:end */

/* mobile-select-menu-and-gutter-fix:start */
@media (max-width: 640px) {
  .app-shell {
    padding-right: 6px;
    padding-left: 6px;
  }

  .controls-bar {
    padding-right: 6px;
    padding-left: 6px;
  }

  .result-card .table-toolbar {
    z-index: 180;
    overflow: visible;
  }

  .result-card .table-toolbar::before {
    left: -6px;
    right: -6px;
  }

  .result-card .table-toolbar::after {
    left: -6px;
    right: -6px;
  }

  .table-toolbar .result-controls {
    position: relative;
    z-index: 220;
    overflow: visible;
  }

  .table-toolbar .source-tabs {
    position: relative;
    z-index: 20;
  }

  .table-toolbar .sort-control {
    position: relative;
    z-index: 230;
    overflow: visible;
  }

  .table-toolbar .sort-control:has(.glass-select.is-open) {
    z-index: 280;
  }

  .table-toolbar .glass-select {
    z-index: 230;
  }

  .table-toolbar .glass-select.is-open {
    z-index: 300;
  }

  .table-toolbar .glass-select-menu {
    right: auto;
    min-width: min(192px, calc(100vw - 24px));
    width: max-content;
    max-width: calc(100vw - 24px);
    z-index: 320;
    padding: 6px;
    overflow: visible;
  }

  .table-toolbar .sort-control:nth-child(2) .glass-select-menu {
    right: 50%;
    left: auto;
    transform: translate(50%, -4px) scale(.98);
    transform-origin: top center;
  }

  .table-toolbar .sort-control:nth-child(2) .glass-select.is-open .glass-select-menu {
    transform: translate(50%, 0) scale(1);
  }

  .table-toolbar .glass-select-menu button {
    justify-content: flex-start;
    padding-right: 12px;
    padding-left: 12px;
  }

  .table-toolbar .glass-select-menu button span {
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
  }

  .mobile-ranking-cards {
    gap: 8px;
  }

  .mobile-rank-card {
    padding: 10px;
  }
}
/* mobile-select-menu-and-gutter-fix:end */

/* mobile-app-sheet-experience:start */
@media (max-width: 980px) {
  .mobile-filter-backdrop {
    background:
      radial-gradient(circle at 50% 18%, var(--series-shadow), transparent 42%),
      rgba(15, 23, 42, .34);
    backdrop-filter: blur(12px) saturate(1.08);
    -webkit-backdrop-filter: blur(12px) saturate(1.08);
  }

  .control-panel {
    right: 0 !important;
    left: 0 !important;
    width: 100%;
    max-height: min(94dvh, 860px);
    padding: 20px 14px calc(18px + env(safe-area-inset-bottom)) !important;
    border-radius: 28px 28px 0 0 !important;
    border-color: rgba(226, 232, 240, .86) !important;
    background:
      radial-gradient(circle at 18% 0%, var(--series-pastel-a), transparent 36%),
      radial-gradient(circle at 88% 10%, var(--series-pastel-b), transparent 34%),
      linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(248, 250, 252, .88));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .96),
      0 -30px 70px rgba(15, 23, 42, .24);
  }

  .control-panel::before {
    content: "";
    position: sticky;
    top: 0;
    z-index: 4;
    display: block;
    width: 42px;
    height: 5px;
    margin: -8px auto 10px;
    border-radius: 999px;
    background: rgba(100, 116, 139, .28);
  }

  .mobile-filter-close {
    position: sticky;
    top: 8px;
    z-index: 5;
    float: right;
    width: 44px;
    height: 44px;
    margin-top: -8px;
    margin-right: 2px;
    border: 0;
    background: rgba(241, 245, 249, .92);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .9),
      0 12px 28px rgba(15, 23, 42, .12);
  }
}

@media (max-width: 640px) {
  .control-panel {
    padding-right: 10px !important;
    padding-left: 10px !important;
  }

  .panel-head {
    margin-bottom: 10px;
    padding-right: 46px;
  }

  .panel-head h1 {
    font-size: 18px;
  }

  .need-step-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    padding: 14px 12px 12px;
    max-height: calc(100dvh - 42px);
    overflow: hidden;
    border: 0;
    border-radius: 24px;
    background:
      radial-gradient(circle at 20% 0%, var(--series-pastel-a), transparent 38%),
      radial-gradient(circle at 96% 8%, var(--series-pastel-b), transparent 34%),
      linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(248, 250, 252, .86));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .96),
      0 18px 44px rgba(15, 23, 42, .12),
      0 0 42px var(--series-shadow);
  }

  .need-step-card > div:first-child {
    padding: 0 2px;
  }

  .need-step-card h2 {
    font-size: 16px;
    line-height: 1.35;
  }

  .need-step-card p {
    margin-bottom: 3px;
    color: #334155;
    font-size: 11px;
    letter-spacing: .10em;
  }

  .need-step-flow {
    display: grid;
    grid-template-columns: 90px minmax(14px, 1fr) 44px minmax(14px, 1fr) 44px minmax(14px, 1fr) 44px;
    align-items: center;
    gap: 0;
    min-height: 48px;
    padding: 4px;
    border: 1px solid rgba(191, 219, 254, .82);
    border-radius: 999px;
    overflow: hidden;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(241, 245, 249, .88));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .95),
      inset 0 -1px 0 rgba(148, 163, 184, .08),
      0 10px 24px rgba(37, 99, 235, .08);
  }

  .need-step-flow i {
    display: block;
    height: 1.5px;
    margin: 0 7px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(37, 99, 235, .30), rgba(37, 99, 235, .72));
  }

  .need-step-flow a {
    width: 44px;
    min-width: 0;
    height: 44px;
    display: inline-grid;
    place-items: center;
    justify-self: center;
    padding: 0;
    border: 2px solid rgba(191, 219, 254, .95);
    border-radius: 999px;
    background: rgba(255, 255, 255, .98);
    color: #2563eb;
    font-size: 14px;
    line-height: 1;
    font-weight: 800;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .74);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .94),
      inset 0 -3px 8px rgba(37, 99, 235, .14),
      inset 0 0 0 3px rgba(255, 255, 255, .42);
  }

  .need-step-flow a::after {
    content: none;
  }

  .need-step-flow a.is-product-step {
    width: 86px;
    min-width: 86px;
    padding: 0 14px;
    font-size: 13px;
    letter-spacing: .02em;
  }

  .need-step-flow a.is-complete,
  .need-step-flow a.is-active {
    background:
      radial-gradient(circle at 28% 0%, rgba(255, 255, 255, .22), transparent 48%),
      linear-gradient(135deg, #2563eb, #1d4ed8);
    border-color: rgba(147, 197, 253, .98);
    color: #fff;
    text-shadow: 0 1px 1px rgba(15, 23, 42, .30);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .22),
      inset 0 -4px 10px rgba(15, 23, 42, .24),
      inset 0 0 0 3px rgba(255, 255, 255, .16);
  }

  .need-step-card .step-selected-tags {
    gap: 8px;
    margin: 0 -2px;
    padding: 0 2px 4px;
    overflow-x: auto;
  }

  .need-step-card .step-selected-tag {
    flex: 0 0 auto;
    min-width: 104px;
    min-height: 38px;
    padding: 5px 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .9);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .9),
      0 10px 22px rgba(15, 23, 42, .06);
  }

  .need-step-card .step-selected-tag.is-active {
    background:
      radial-gradient(circle at 18% 0%, rgba(255, 255, 255, .38), transparent 52%),
      linear-gradient(135deg, #f8fafc, #eef2f7);
    box-shadow:
      inset 0 0 0 1px rgba(15, 23, 42, .08),
      0 14px 28px rgba(15, 23, 42, .10);
  }

  .need-step-card .step-selected-tag.is-active small {
    background: #111827;
    color: #fff;
  }

  .step-selected-tag span {
    font-size: 12px !important;
  }

  .need-step-slider {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    margin-top: 12px;
    border: 1px solid rgba(203, 213, 225, .92);
    border-radius: 22px;
    overflow: visible;
    background: rgba(255, 255, 255, .94);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .94),
      0 16px 36px rgba(15, 23, 42, .10);
    touch-action: pan-y;
  }

  .need-step-slider::after {
    content: none;
    position: absolute;
    right: 12px;
    bottom: 10px;
    z-index: 3;
    padding: 5px 9px;
    border: 1px solid rgba(203, 213, 225, .78);
    border-radius: 999px;
    background: rgba(255, 255, 255, .88);
    color: #64748b;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .02em;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
    pointer-events: none;
  }

  .need-step-track {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    max-height: 100%;
    align-items: stretch;
  }

  .need-step-pane {
    min-height: 0;
    height: auto;
    max-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 12px 18px;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }

  .need-step-pane legend {
    padding-top: 0;
  }

  .product-step-pane .product-category-accordion {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .product-category-group {
    border: 1px solid rgba(203, 213, 225, .95);
    background: rgba(248, 250, 252, .78);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .84),
      0 10px 24px rgba(15, 23, 42, .055);
  }

  .product-category-group summary {
    position: sticky;
    top: 0;
    z-index: 3;
    min-height: 46px;
    background: rgba(248, 251, 255, .98);
  }

  .product-category-group[open] .category-grid {
    max-height: clamp(180px, 24dvh, 220px);
    overflow-y: auto;
    padding-bottom: 20px;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }

  .category-grid,
  .choice-grid,
  .need-step-pane .choice-grid,
  .product-category-group .category-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .category-grid button,
  .choice-grid button,
  .need-step-pane .choice-grid button,
  .product-category-group .category-grid button {
    min-height: 58px;
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, .38);
    border-radius: 16px;
    background: rgba(255, 255, 255, .94);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .92),
      0 12px 28px rgba(15, 23, 42, .07);
  }

  .category-grid button.is-active,
  .choice-grid button.is-active,
  .need-step-pane .choice-grid button.is-active,
  .product-category-group .category-grid button.is-active {
    background:
      radial-gradient(circle at 18% 0%, rgba(255, 255, 255, .18), transparent 48%),
      linear-gradient(135deg, #111827, #020617) !important;
    border-color: rgba(15, 23, 42, .86) !important;
    color: #fff !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .14),
      0 18px 38px rgba(15, 23, 42, .26) !important;
  }

  .category-grid button.is-active b,
  .choice-grid button.is-active b,
  .need-step-pane .choice-grid button.is-active b,
  .product-category-group .category-grid button.is-active b,
  .category-grid button.is-active span,
  .choice-grid button.is-active span,
  .need-step-pane .choice-grid button.is-active span,
  .product-category-group .category-grid button.is-active span {
    color: #fff !important;
  }

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

  .category-grid b,
  .choice-grid b,
  .product-category-group .category-grid b {
    font-size: 15px;
  }

  .category-grid span,
  .choice-grid span,
  .product-category-group .category-grid span {
    font-size: 11.5px;
  }

  .need-step-actions {
    position: sticky;
    bottom: 0;
    z-index: 6;
    grid-template-columns: 78px minmax(0, 1fr) 78px;
    margin: 0;
    padding: 8px 0 0;
    background:
      linear-gradient(180deg, rgba(248, 250, 252, 0), rgba(248, 250, 252, .94) 30%, rgba(248, 250, 252, .98));
  }

  .need-step-actions button {
    min-height: 44px !important;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .96);
    color: #111827;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .92),
      0 10px 24px rgba(15, 23, 42, .07);
  }

  .need-step-actions .need-step-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 10px;
    border: 0;
    border-radius: 999px;
    background:
      radial-gradient(circle at 24% 0%, rgba(255, 255, 255, .14), transparent 48%),
      linear-gradient(135deg, #111827, #020617);
    color: #fff !important;
    font-size: 12px;
    font-weight: 800;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .28);
    cursor: pointer;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .12),
      inset 0 -6px 14px rgba(0, 0, 0, .22),
      0 12px 24px rgba(15, 23, 42, .20);
  }

  .need-step-actions .need-step-status:disabled {
    border: 1px solid rgba(226, 232, 240, .96);
    background: rgba(248, 250, 252, .94);
    color: #94a3b8 !important;
    text-shadow: none;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .92),
      0 8px 18px rgba(15, 23, 42, .05);
    cursor: default;
    opacity: 1;
  }
}
/* mobile-app-sheet-experience:end */

/* mobile-shopping-app-polish:start */
@media (max-width: 640px) {
  body {
    background:
      radial-gradient(circle at 50% -12%, rgba(219, 234, 254, .42), transparent 34%),
      #f4f5f7;
  }

  .result-card {
    border-color: rgba(203, 213, 225, .82);
    border-radius: 26px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(248, 250, 252, .90));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .94),
      0 18px 48px rgba(15, 23, 42, .10);
  }

  .result-card .table-toolbar {
    padding: 8px 0 0;
  }

  .table-toolbar .result-controls {
    gap: 8px;
  }

  .table-toolbar .glass-select-button,
  .table-fullscreen-button {
    min-height: 48px !important;
    border-color: rgba(203, 213, 225, .92);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 250, 252, .92));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .96),
      0 10px 24px rgba(15, 23, 42, .07);
  }

  .table-toolbar .glass-select-button span,
  .table-fullscreen-button b {
    font-size: 12px;
    font-weight: 800;
  }

  .table-toolbar .source-tabs {
    gap: 8px;
    padding: 0 2px;
  }

  .source-tabs button {
    min-height: 50px;
    padding: 0 10px;
    border: 1px solid rgba(203, 213, 225, .9);
    border-radius: 16px 16px 0 0;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(241, 245, 249, .86));
    color: #334155;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95);
  }

  .source-tabs button.is-active {
    border-color: rgba(37, 99, 235, .72);
    border-top-width: 2px;
    background:
      radial-gradient(circle at 20% 0%, rgba(219, 234, 254, .78), transparent 44%),
      #fff;
    color: #1d4ed8;
    box-shadow:
      inset 0 2px 0 #2563eb,
      0 12px 26px rgba(37, 99, 235, .10);
  }

  .source-tabs .brand-mark {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }

  .mobile-ranking-cards {
    gap: 14px;
    padding: 10px 0 4px;
  }

  .mobile-rank-card {
    position: relative;
    gap: 12px;
    padding: 13px;
    border: 1px solid rgba(203, 213, 225, .82);
    border-radius: 24px;
    background:
      radial-gradient(circle at 18% -8%, rgba(219, 234, 254, .54), transparent 34%),
      linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 250, 252, .94));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .96),
      0 18px 40px rgba(15, 23, 42, .12);
  }

  .mobile-rank-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, .58), transparent 36%);
  }

  .mobile-rank-card.is-open {
    border-color: rgba(37, 99, 235, .46);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .96),
      0 20px 48px rgba(37, 99, 235, .16);
  }

  .mobile-rank-card-head,
  .mobile-rank-product,
  .mobile-rank-summary,
  .mobile-rank-points,
  .mobile-rank-actions,
  .mobile-rank-detail-panel {
    position: relative;
    z-index: 1;
  }

  .mobile-rank-card-head {
    align-items: center;
  }

  .mobile-rank-no {
    min-width: 38px;
    height: 30px;
    border-color: rgba(148, 163, 184, .35);
    background: #fff;
    color: #334155;
    font-size: 12px;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .94),
      0 8px 18px rgba(15, 23, 42, .06);
  }

  .mobile-rank-detail {
    min-height: 44px;
    padding: 0 16px;
    border-color: rgba(191, 219, 254, .95);
    background: rgba(255, 255, 255, .96);
    color: #2563eb;
    box-shadow: 0 8px 18px rgba(37, 99, 235, .08);
  }

  .mobile-rank-product {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
  }

  .mobile-rank-product img,
  .mobile-rank-product .image-fallback {
    width: 68px;
    height: 68px;
    padding: 4px;
    border-color: rgba(226, 232, 240, .9);
    border-radius: 18px;
    background: #fff;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .92),
      0 12px 24px rgba(15, 23, 42, .09);
    object-fit: contain;
  }

  .mobile-rank-product b {
    font-size: 14px;
    line-height: 1.45;
    letter-spacing: .01em;
    -webkit-line-clamp: 3;
  }

  .mobile-rank-product small {
    margin-top: 6px;
    color: #64748b;
    font-size: 11px;
  }

  .mobile-rank-summary {
    gap: 8px;
  }

  .mobile-rank-summary section,
  .mobile-rank-detail-panel section {
    min-height: 74px;
    padding: 11px;
    border-color: rgba(226, 232, 240, .9);
    border-radius: 16px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 250, 252, .88));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95);
  }

  .mobile-rank-summary:not(.is-compare) section:nth-child(1) {
    background:
      radial-gradient(circle at 100% 0%, rgba(254, 243, 199, .44), transparent 48%),
      linear-gradient(180deg, #fff, #f8fafc);
  }

  .mobile-rank-summary small,
  .mobile-rank-detail-panel small {
    margin-bottom: 5px;
    color: #64748b;
    font-size: 10.5px;
    letter-spacing: .02em;
  }

  .mobile-rank-summary strong,
  .mobile-rank-detail-panel strong {
    font-size: 13px;
    line-height: 1.35;
  }

  .mobile-rank-summary .price-band {
    margin-top: 5px;
    border: 1px solid rgba(203, 213, 225, .82);
    background: rgba(255, 255, 255, .86);
  }

  .mobile-rating {
    width: 100%;
    justify-content: flex-end;
  }

  .mobile-rating .rating-stars {
    width: 84px;
  }

  .mobile-rank-actions {
    gap: 10px;
  }

  .mobile-rank-actions .review-comment-button {
    min-height: 48px;
    border: 1px solid rgba(147, 197, 253, .74);
    border-radius: 999px;
    background:
      linear-gradient(180deg, rgba(239, 246, 255, .98), rgba(219, 234, 254, .72));
    color: #2563eb;
    font-size: 13px;
    font-weight: 800;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .92),
      0 10px 22px rgba(37, 99, 235, .10);
  }

  .mobile-rank-actions .link-pair {
    gap: 10px;
  }

  .mobile-rank-actions .link-pair a {
    min-height: 48px;
    border-radius: 999px;
    font-size: 12px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, .12);
  }

  .mobile-rank-actions .link-pair a.is-amazon {
    background: linear-gradient(135deg, #111827, #020617);
  }

  .mobile-rank-actions .link-pair a.is-rakuten {
    background: linear-gradient(135deg, #d41443, #b70f34);
  }

  .mobile-rank-points {
    padding: 2px 2px 0;
  }

  .mobile-rank-points p {
    color: #475569;
    font-size: 12px;
    line-height: 1.55;
  }

  .mobile-rank-points span {
    color: #2563eb;
  }

  .bottom-nav {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .95),
      0 18px 42px rgba(15, 23, 42, .18);
  }
}
/* mobile-shopping-app-polish:end */

/* mobile-bottom-nav-center-filter:start */
@media (max-width: 640px) {
  .bottom-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }

  .bottom-nav a,
  .bottom-nav button {
    min-width: 0;
  }

  .bottom-nav [data-bottom-back] {
    order: 1;
  }

  .bottom-nav [data-bottom-article-link] {
    order: 2;
  }

  .bottom-nav .is-filter-link {
    order: 3;
    flex: 1.34 1 0;
    border-color: rgba(37, 99, 235, .54) !important;
    background:
      radial-gradient(circle at 24% 0%, rgba(255, 255, 255, .28), transparent 46%),
      linear-gradient(180deg, #3b82f6, #2563eb) !important;
    color: #fff !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .36),
      0 12px 24px rgba(37, 99, 235, .24) !important;
  }

  .bottom-nav .is-filter-link:hover,
  .bottom-nav .is-filter-link[aria-expanded="true"] {
    background:
      radial-gradient(circle at 24% 0%, rgba(255, 255, 255, .30), transparent 46%),
      linear-gradient(180deg, #2563eb, #1d4ed8) !important;
    color: #fff !important;
  }

  .bottom-nav .is-3q-bottom,
  .bottom-nav .is-3q-bottom.is-current {
    order: 4;
    flex: 1.22 1 0;
    min-width: 0;
    padding-inline: 3px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    overflow: visible;
    border-color: rgba(203, 213, 225, .92) !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 250, 252, .88)) !important;
    color: #2563eb !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .95),
      0 8px 18px rgba(15, 23, 42, .06) !important;
  }

  .bottom-nav .is-3q-bottom .bottom-nav-icon,
  .bottom-nav .is-3q-bottom b {
    color: #2563eb !important;
  }

  .bottom-nav .is-3q-bottom .bottom-nav-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin: 0;
    transform: none;
  }

  .bottom-nav .is-3q-bottom b {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 10px;
    min-width: 0;
    max-width: none;
    margin: 0;
    font-size: clamp(8.7px, 2.3vw, 9.2px);
    line-height: 10px;
    letter-spacing: 0;
    text-align: center;
    white-space: nowrap;
    word-break: normal;
    overflow: visible;
    text-overflow: unset;
    text-wrap: nowrap;
    transform: none;
  }

  .bottom-nav .is-3q-bottom:hover {
    border-color: rgba(147, 197, 253, .76) !important;
    background: #eff6ff !important;
    color: #1d4ed8 !important;
  }

  .bottom-nav .is-3q-bottom:hover .bottom-nav-icon,
  .bottom-nav .is-3q-bottom:hover b {
    color: #1d4ed8 !important;
  }

  .bottom-nav .is-comment-bottom {
    order: 5;
  }
}
/* mobile-bottom-nav-center-filter:end */

/* bottom-3q-fan:start */
.bottom-3q-fan[hidden] {
  display: none !important;
}

.bottom-3q-fan {
  --fan-x: 50vw;
  --fan-rail-x: var(--fan-x);
  --fan-y: calc(100dvh - 52px);
  position: fixed;
  inset: 0;
  z-index: 10020;
  pointer-events: none;
}

.bottom-3q-fan::before {
  content: "";
  position: fixed;
  left: var(--fan-rail-x);
  top: var(--fan-y);
  width: min(286px, calc(100vw - 32px));
  height: 144px;
  border: 1px solid rgba(147, 197, 253, .50);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  opacity: 0;
  transform: translate(-50%, -103%) scale(.72);
  transform-origin: 50% 100%;
  transition:
    opacity .18s ease,
    transform .24s cubic-bezier(.2, .84, .24, 1.14);
}

.bottom-3q-fan-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background:
    radial-gradient(circle at var(--fan-x) var(--fan-y), rgba(37, 99, 235, .10), transparent 38%),
    linear-gradient(180deg, transparent 48%, rgba(248, 250, 252, .62));
  opacity: 0;
  pointer-events: auto;
  transition: opacity .18s ease;
}

.bottom-3q-fan-links a {
  position: fixed;
  left: var(--fan-x);
  top: var(--fan-y);
  width: 74px;
  min-height: 50px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 7px 8px;
  border: 1px solid rgba(191, 219, 254, .92);
  border-radius: 18px;
  background:
    radial-gradient(circle at 26% 0%, rgba(255, 255, 255, .98), transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(239, 246, 255, .90));
  color: #1d4ed8;
  text-decoration: none;
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .96),
    0 16px 34px rgba(15, 23, 42, .16);
  filter: blur(1px);
  opacity: 0;
  pointer-events: auto;
  transform: translate(-50%, -50%) translate(0, 0) rotate(-10deg) scale(.68);
  transform-origin: 50% 100%;
  transition:
    opacity .18s ease var(--fan-delay, 0ms),
    transform .30s cubic-bezier(.16, .92, .24, 1.18) var(--fan-delay, 0ms),
    filter .20s ease var(--fan-delay, 0ms),
    border-color .16s ease,
    background .16s ease,
    box-shadow .16s ease;
}

.bottom-3q-fan-links a b,
.bottom-3q-fan-links a small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bottom-3q-fan-links a b {
  font-size: 12px;
  line-height: 1.05;
  font-weight: 900;
}

.bottom-3q-fan-links a small {
  font-size: 9.5px;
  line-height: 1;
  font-weight: 800;
  color: #64748b;
}

.bottom-3q-fan-links a.is-active {
  border-color: rgba(37, 99, 235, .88);
  background:
    radial-gradient(circle at 28% 0%, rgba(255, 255, 255, .34), transparent 46%),
    linear-gradient(180deg, #3b82f6, #1d4ed8);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .34),
    0 18px 38px rgba(37, 99, 235, .28);
}

.bottom-3q-fan-links a.is-active small {
  color: rgba(255, 255, 255, .82);
}

body.is-bottom-3q-fan-open .bottom-3q-fan-backdrop {
  opacity: 1;
}

body.is-bottom-3q-fan-open .bottom-3q-fan::before {
  opacity: 1;
  transform: translate(-50%, -103%) scale(1);
}

body.is-bottom-3q-fan-open .bottom-3q-fan-links a {
  filter: blur(0);
  opacity: 1;
  transform: translate(-50%, -50%) translate(var(--fan-dx), var(--fan-dy)) scale(1);
}

body.is-bottom-3q-fan-open .bottom-3q-fan-links a:hover,
body.is-bottom-3q-fan-open .bottom-3q-fan-links a:focus-visible {
  border-color: rgba(37, 99, 235, .72);
  transform: translate(-50%, -50%) translate(var(--fan-dx), var(--fan-dy)) scale(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .98),
    0 18px 38px rgba(37, 99, 235, .20);
  outline: none;
}

body.is-bottom-3q-fan-open .bottom-nav .is-3q-bottom {
  border-color: rgba(37, 99, 235, .72) !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  background:
    radial-gradient(circle at 24% 0%, rgba(255, 255, 255, .32), transparent 46%),
    linear-gradient(180deg, #2563eb, #1d4ed8) !important;
  color: #fff !important;
  animation: bottom3q-button-pulse .44s ease both;
}

body.is-bottom-3q-fan-open .bottom-nav .is-3q-bottom .bottom-nav-icon,
body.is-bottom-3q-fan-open .bottom-nav .is-3q-bottom b {
  color: #fff !important;
}

body.is-bottom-3q-fan-open .aw-waker-widget {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(12px) scale(.98) !important;
}

@keyframes bottom3q-button-pulse {
  0% {
    transform: scale(.98);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .28),
      0 10px 22px rgba(37, 99, 235, .18);
  }
  54% {
    transform: scale(1.05);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .42),
      0 18px 34px rgba(37, 99, 235, .32);
  }
  100% {
    transform: scale(1);
  }
}

body.is-product-guide-open .bottom-3q-fan,
body.is-comment-open .bottom-3q-fan,
body.is-table-fullscreen .bottom-3q-fan {
  display: none !important;
}

@media (min-width: 981px) {
  .bottom-3q-fan {
    display: none !important;
  }
}

@media (max-width: 360px) {
  .bottom-3q-fan::before {
    width: min(248px, calc(100vw - 28px));
    height: 136px;
  }

  .bottom-3q-fan-links a {
    width: 66px;
    min-height: 48px;
    padding: 6px 7px;
  }

  .bottom-3q-fan-links a b {
    font-size: 11px;
  }

  .bottom-3q-fan-links a small {
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bottom-3q-fan::before,
  .bottom-3q-fan-backdrop,
  .bottom-3q-fan-links a {
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }

  body.is-bottom-3q-fan-open .bottom-nav .is-3q-bottom {
    animation: none !important;
  }
}
/* bottom-3q-fan:end */

/* desktop-toolbar-layout:start */
@media (min-width: 981px) {
  .result-card .table-toolbar {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 10px;
    width: 100%;
  }

  .table-toolbar .source-tabs {
    flex: 0 0 258px;
    align-self: flex-end;
    flex-wrap: nowrap;
    width: 258px;
    min-width: 0;
    margin: 0 0 -1px !important;
    overflow: hidden;
  }

  .table-toolbar .source-tabs button {
    flex: 1 1 0;
    min-width: 0;
    gap: 3px;
    padding: 0 5px;
  }

  .source-tabs button,
  .table-toolbar .source-tabs button {
    min-height: 46px !important;
    height: 46px;
  }

  .table-toolbar .glass-select-button,
  .table-toolbar .sort-control select,
  .table-fullscreen-button,
  .purchase-guide-link {
    min-height: 40px !important;
    height: 40px;
  }

  .table-toolbar .result-controls {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 8px;
    margin: 0 0 9px auto !important;
  }

  .table-toolbar .sort-control {
    flex: 0 0 118px;
    width: 118px;
    min-width: 118px;
    max-width: 118px;
  }

  .table-toolbar .sort-control:nth-child(2) {
    flex-basis: 126px;
    width: 126px;
    min-width: 126px;
    max-width: 126px;
  }

  .table-toolbar .glass-select,
  .table-toolbar .glass-select-button,
  .table-toolbar .sort-control select {
    width: 100%;
  }

  .table-fullscreen-button {
    flex: 0 0 88px;
    width: 88px;
    min-width: 88px;
    padding-inline: 10px;
  }

  .purchase-guide-link {
    flex: 0 0 178px;
    width: 178px;
    min-width: 178px;
    padding-inline: 14px;
  }

  .table-toolbar .source-label-full,
  .table-toolbar .glass-select-text,
  .table-fullscreen-button b,
  .purchase-guide-link b {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .table-toolbar .source-label-full {
    display: none;
  }

  .table-toolbar .source-label-short {
    min-width: 0;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11.5px;
  }

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

  .table-toolbar .source-tabs .brand-mark-pair {
    width: 26px;
    flex: 0 0 26px;
  }

  .table-toolbar .source-tabs .brand-mark-pair .brand-mark {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
    font-size: 8.5px;
  }
}
/* desktop-toolbar-layout:end */

/* toolbar-select-gap-fix:start */
.table-toolbar .sort-control:has(.glass-select) .sort-control-icon {
  display: none;
}

.table-toolbar .glass-select-button {
  grid-template-columns: minmax(0, 1fr) 10px;
  gap: 6px;
  padding-right: 12px !important;
  padding-left: 12px !important;
}

.table-toolbar .glass-select-text {
  text-align: left;
}
/* toolbar-select-gap-fix:end */

/* mobile-toolbar-surface-polish:start */
@media (max-width: 640px) {
  .app-shell {
    padding-bottom: calc(30px + env(safe-area-inset-bottom));
  }

  .result-card .table-toolbar {
    position: sticky;
    top: max(4px, env(safe-area-inset-top));
    z-index: 180;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    width: 100%;
    margin: 0 !important;
    padding: 9px 9px 10px !important;
    border-radius: 18px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 250, 252, .94));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .92),
      0 10px 22px rgba(15, 23, 42, .08);
    backdrop-filter: blur(18px) saturate(1.08);
    -webkit-backdrop-filter: blur(18px) saturate(1.08);
    overflow: visible;
  }

  .result-card .table-toolbar::before,
  .result-card .table-toolbar::after {
    content: none !important;
    display: none !important;
  }

  .table-toolbar .result-controls {
    order: 2;
    width: 100%;
    display: grid;
    grid-template-columns: 106px minmax(0, 1fr) 84px;
    align-items: stretch;
    justify-content: center;
    gap: 7px;
    margin: 0 !important;
    overflow: visible;
  }

  .table-toolbar .sort-control,
  .table-toolbar .glass-select {
    min-width: 0;
    width: 100%;
  }

  .table-toolbar .glass-select-text,
  .table-toolbar .sort-control select,
  .table-fullscreen-button b {
    font-size: 12px !important;
    line-height: 1;
    font-weight: 800;
  }

  .table-toolbar .glass-select-button,
  .table-fullscreen-button {
    min-height: 44px !important;
    height: 44px;
    width: 100%;
    border-color: rgba(203, 213, 225, .96) !important;
    background: #fff !important;
    color: #111827;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .96),
      0 6px 14px rgba(15, 23, 42, .055) !important;
  }

  .table-fullscreen-button {
    position: relative;
    width: 84px !important;
    min-width: 84px !important;
    gap: 5px;
    padding: 0 10px !important;
  }

  .table-fullscreen-button b {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
    white-space: nowrap;
  }

  .table-toolbar .purchase-guide-link {
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100%;
    min-height: 44px !important;
    height: 44px;
    justify-content: center;
    border-color: rgba(96, 165, 250, .48) !important;
    border-radius: 14px;
    background:
      radial-gradient(circle at 24% 0%, rgba(255, 255, 255, .98), rgba(219, 234, 254, .5) 52%, transparent 82%),
      linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(226, 240, 255, .72)) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .92),
      0 12px 26px rgba(37, 99, 235, .10) !important;
  }

  .table-toolbar .purchase-guide-link b {
    font-size: 11.5px !important;
    line-height: 1;
    font-weight: 800;
  }

  .table-toolbar .source-tabs {
    order: 1;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px;
    margin: 0 !important;
    padding: 3px !important;
    border: 1px solid rgba(203, 213, 225, .76);
    border-radius: 14px;
    background: #eef2f7 !important;
    overflow: hidden;
  }

  .source-tabs button {
    min-width: 0;
    min-height: 44px !important;
    height: 44px;
    gap: 5px;
    padding: 0 6px;
    border: 0 !important;
    border-radius: 11px;
    background: transparent !important;
    box-shadow: none;
    overflow: hidden;
  }

  .source-tabs .source-label-short {
    font-size: 12.5px;
    line-height: 1;
    font-weight: 800;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .source-tabs .brand-mark {
    width: 19px;
    height: 19px;
    flex-basis: 19px;
    font-size: 9.5px;
  }

  .source-tabs .brand-mark-pair .brand-mark {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
    font-size: 9px;
  }

  .source-tabs button.is-active {
    transform: none;
    border: 0 !important;
    background: #fff !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .96),
      0 6px 14px rgba(15, 23, 42, .09);
  }

  .result-card .table-wrap,
  .mobile-ranking-cards {
    position: relative;
    z-index: 1;
  }

  .mobile-ranking-cards {
    padding: 12px 0 10px;
  }

  .ranking-disclaimers {
    margin-bottom: calc(92px + env(safe-area-inset-bottom));
  }

  .bottom-nav {
    bottom: max(4px, env(safe-area-inset-bottom));
    border-color: rgba(226, 232, 240, .95);
    background:
      radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 1), rgba(255, 255, 255, .86) 54%, rgba(248, 250, 252, .78) 100%) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .98),
      0 18px 48px rgba(15, 23, 42, .18),
      0 0 0 999px rgba(244, 245, 247, .02);
  }

  body.is-product-guide-open .bottom-nav,
  body.is-comment-open .bottom-nav {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(-50%, calc(100% + 14px), 0);
  }

  .bottom-nav a,
  .bottom-nav button,
  .mobile-rank-actions .review-comment-button,
  .mobile-rank-actions .link-pair a {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .92),
      0 10px 22px rgba(15, 23, 42, .10);
  }

  .review-comment-button .comment-mini,
  .mobile-rank-actions .review-comment-button .comment-mini {
    color: inherit !important;
    background: currentColor !important;
    opacity: 1 !important;
  }

  .mobile-rank-actions .review-comment-button:hover,
  .mobile-rank-actions .review-comment-button:focus-visible {
    border-color: rgba(147, 197, 253, .92);
    background:
      radial-gradient(circle at 28% 0%, rgba(255, 255, 255, .84), transparent 52%),
      linear-gradient(180deg, rgba(239, 246, 255, .98), rgba(219, 234, 254, .82)) !important;
    color: #1d4ed8 !important;
  }

  .mobile-rank-actions .review-comment-button:hover .comment-mini,
  .mobile-rank-actions .review-comment-button:focus-visible .comment-mini {
    color: #1d4ed8 !important;
    background: currentColor !important;
  }
}
/* mobile-toolbar-surface-polish:end */

/* step-bottom-dock:start */
.need-step-card .need-flow-nav {
  position: relative;
  bottom: auto;
  z-index: 2;
  margin: auto -2px 0;
  padding: 6px 2px 4px;
  border-radius: 16px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.need-step-card .need-flow-nav a > span {
  border-width: 2px;
  border-color: color-mix(in srgb, var(--flow-text, #2563eb) 32%, #bfdbfe);
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 1), rgba(239, 246, 255, .96) 62%, color-mix(in srgb, var(--flow-text, #2563eb) 12%, #fff));
  color: var(--flow-text, #2563eb);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .74);
  box-shadow:
    0 12px 24px color-mix(in srgb, var(--flow-text, #2563eb) 18%, transparent),
    0 4px 10px rgba(15, 23, 42, .10);
}

.need-step-card .need-flow-nav a.is-active > span {
  border-color: color-mix(in srgb, var(--flow-text, #2563eb) 46%, #bfdbfe);
  background:
    radial-gradient(circle at 28% 0%, rgba(255, 255, 255, .22), transparent 48%),
    linear-gradient(135deg, var(--flow-text, #2563eb), color-mix(in srgb, var(--flow-text, #2563eb) 78%, #020617));
  color: #fff;
  text-shadow: 0 1px 1px rgba(15, 23, 42, .18);
  box-shadow:
    0 14px 28px color-mix(in srgb, var(--flow-text, #2563eb) 26%, transparent),
    0 5px 12px rgba(15, 23, 42, .14);
}

@media (min-width: 641px) {
  .need-step-slider {
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
  }

  .need-step-pane {
    padding-bottom: 74px;
    scroll-padding-bottom: 74px;
  }

  .product-step-pane .product-category-accordion {
    max-height: clamp(250px, calc(100dvh - 430px), 330px);
    overflow-x: hidden;
    overflow-y: auto;
    padding-bottom: 12px;
    scroll-padding-bottom: 12px;
    scrollbar-width: thin;
  }
}

@media (min-width: 981px) {
  body:not(.is-table-fullscreen) .result-card .table-wrap {
    contain: paint;
    clip-path: inset(0 round var(--radius-card, 16px));
    margin-bottom: 52px;
  }
}

.need-step-card .need-step-actions {
  position: relative;
  bottom: auto;
  z-index: 3;
  margin: -4px -2px 0;
  padding: 0 2px;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.is-mobile-filter-open .need-step-card .need-step-actions .need-step-status {
  min-width: 158px;
  color: #fff !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .30);
  background:
    radial-gradient(circle at 28% 0%, rgba(255, 255, 255, .18), transparent 50%),
    linear-gradient(135deg, #0f172a, #020617);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .14),
    inset 0 -6px 14px rgba(0, 0, 0, .24),
    0 14px 30px rgba(15, 23, 42, .24);
}

@media (min-width: 981px) {
  .need-step-card .need-flow-nav {
    display: none !important;
  }

  .need-step-card .need-step-actions {
    grid-template-columns: 72px 72px;
    justify-content: space-between;
  }

  .need-step-card .need-step-actions .need-step-status {
    display: none !important;
  }
}

@media (max-width: 980px) {
  body.is-mobile-filter-open .need-step-card {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }

  body.is-mobile-filter-open .need-step-card .step-selected-tags {
    display: none !important;
  }

  body.is-mobile-filter-open .need-step-slider {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    max-height: none;
    margin-bottom: 0;
  }

  body.is-mobile-filter-open .product-step-pane .product-category-accordion {
    max-height: clamp(300px, 42dvh, 360px);
    overflow-y: auto;
    padding-bottom: 14px;
    scroll-padding-bottom: 14px;
    overscroll-behavior: contain;
  }

  body.is-mobile-filter-open .product-category-group summary {
    position: relative;
    top: auto;
    z-index: 2;
  }

  body.is-mobile-filter-open .product-category-group[open] .category-grid {
    max-height: clamp(170px, 28dvh, 248px);
    overflow-y: auto;
    padding-bottom: 16px;
    scroll-padding-bottom: 16px;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }

  body.is-mobile-filter-open .need-step-card .need-flow-nav,
  body.is-mobile-filter-open .need-step-card .need-step-actions {
    position: fixed;
    right: max(10px, env(safe-area-inset-right));
    left: max(10px, env(safe-area-inset-left));
    width: auto;
    margin-right: 0;
    margin-left: 0;
    z-index: 90;
  }

  body.is-mobile-filter-open .need-step-card .need-flow-nav {
    display: none !important;
  }

  body.is-mobile-filter-open .need-step-card .need-step-actions {
    bottom: calc(10px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 640px) {
  .need-step-card .need-flow-nav {
    gap: 6px;
    padding-top: 8px;
  }

  .need-step-card .need-flow-nav a {
    flex-basis: 124px;
  }
}
/* step-bottom-dock:end */

/* panel-height-sync-fix:start */
@media (min-width: 981px) {
  html,
  body {
    height: 100dvh;
    overflow: hidden;
  }

  .bottom-nav {
    display: none !important;
  }

  .app-shell {
    height: calc(100dvh - 78px);
    min-height: 0;
    padding: 0 clamp(10px, 1.4vw, 20px) 8px;
    overflow: hidden;
  }

  .tool-grid {
    height: calc(100% - 6px);
    min-height: 0;
    margin-top: 6px;
    align-items: stretch;
  }

  .control-panel,
  .result-panel {
    height: 100%;
    min-height: 0;
    max-height: 100%;
  }

  .control-panel {
    position: relative;
    top: auto;
    overflow: auto;
  }

  .result-panel .result-head:has(> .need-answer-card[hidden]) {
    display: none;
    padding: 0;
    margin: 0;
  }

  .result-card {
    justify-content: flex-start;
    min-height: 0;
  }

  .result-card .table-toolbar {
    margin-top: 0 !important;
    margin-bottom: -1px !important;
    min-height: 44px;
    padding-top: 0 !important;
  }

  .result-card .table-wrap {
    flex: 1 1 auto;
    min-height: 0;
  }
}

@media (max-width: 640px) {
  body:not(.is-table-fullscreen) .result-card .table-toolbar {
    position: relative;
    top: auto;
    z-index: 20;
  }

  body.is-table-fullscreen .result-card .table-toolbar {
    position: sticky;
    top: 0;
    z-index: 180;
  }
}
/* panel-height-sync-fix:end */
