:root {
  color-scheme: light;
  --bg: #f4f5f7;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-soft: rgba(248, 250, 252, 0.86);
  --text: #111827;
  --subtext: #334155;
  --muted: #64748b;
  --line: rgba(203, 213, 225, 0.82);
  --line-soft: rgba(226, 232, 240, 0.92);
  --blue: #2563eb;
  --blue-soft: #eaf1ff;
  --green: #0f766e;
  --amber: #b45309;
  --shadow: 0 16px 38px rgba(15, 23, 42, .075);
  --shadow-card: 0 14px 34px rgba(15, 23, 42, .075);
  --radius-card: 18px;
  --aw-icon-filter: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20200%20200%22%3E%3Cg%20transform%3D%22translate(2%20-32)%22%3E%3Cpath%20d%3D%22M78.341%20106.145%2032%2032H133.95m46.341%200-46.341%2074.145v83.413l-55.609-27.8v-18.54%22%20transform%3D%22translate(-7.645%2021.721)%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%2214%22%2F%3E%3Crect%20width%3D%22200%22%20height%3D%22200%22%20transform%3D%22translate(-2%2032)%22%20fill%3D%22none%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  --aw-icon-condition-search: url("/condition-search-icon.svg?v=20260620-filter-icon-1");
  --aw-icon-sort: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20200%20200%22%3E%3Cg%20transform%3D%22translate(-0.545%20-5.09)%22%3E%3Cpath%20d%3D%22M100.545%20174.565%2060%20116h81.09Z%22%20transform%3D%22translate(0%2011.615)%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%2216%22%2F%3E%3Cpath%20d%3D%22M100.545%2024%2060%2082.565h81.09Z%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%2216%22%2F%3E%3Crect%20width%3D%22200%22%20height%3D%22200%22%20transform%3D%22translate(0.545%205.09)%22%20fill%3D%22none%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  --aw-icon-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10.8' cy='10.8' r='5.9'/%3E%3Cpath d='M15.2 15.2 20 20'/%3E%3C/svg%3E");
  --aw-icon-list: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6h12M8 12h12M8 18h12'/%3E%3Cpath d='M4 6h.01M4 12h.01M4 18h.01' stroke-width='2.5'/%3E%3C/svg%3E");
  --aw-icon-grid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='14' rx='2.8'/%3E%3Cpath d='M9 5v14M4 10h16'/%3E%3C/svg%3E");
  --aw-icon-back: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 6 9 12l6 6'/%3E%3Cpath d='M10 12h10'/%3E%3C/svg%3E");
  --aw-icon-comment: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22176%22%20height%3D%22176%22%20viewBox%3D%220%200%20176%20176%22%3E%3Cg%20id%3D%22comment_outline%22%20transform%3D%22translate(-44.893%2040.197)%22%3E%3Crect%20id%3D%22comment_box%22%20width%3D%22176%22%20height%3D%22176%22%20transform%3D%22translate(44.893%20-40.197)%22%20fill%3D%22none%22%2F%3E%3Cg%20id%3D%22comment_inner%22%20transform%3D%22translate(-12.56%20-118.435)%22%3E%3Cpath%20d%3D%22M301.829%2C404.16a7.467%2C7.467%2C0%2C1%2C0%2C0%2C14.93%2C7.468%2C7.468%2C0%2C0%2C0%2C0-14.93Zm-52.257%2C0a7.467%2C7.467%2C0%2C1%2C0%2C0%2C14.93%2C7.468%2C7.468%2C0%2C0%2C0%2C0-14.93Z%22%20transform%3D%22translate(-145.383%20-253.7)%22%2F%3E%3Cpath%20d%3D%22M216.354%2C136.276a64.186%2C64.186%2C0%2C0%2C0-35.273-24.262v.019A68.5%2C68.5%2C0%2C0%2C0%2C75.634%2C199.358l.149%2C24.747a5.567%2C5.567%2C0%2C0%2C0%2C.28%2C1.754%2C5.963%2C5.963%2C0%2C0%2C0%2C7.484%2C3.9l23.627-7.447a68.474%2C68.474%2C0%2C0%2C0%2C19.13%2C3.845l-.093.075a64.853%2C64.853%2C0%2C0%2C0%2C58.416%2C9.145l23.721%2C7.727a6.175%2C6.175%2C0%2C0%2C0%2C1.848.3%2C5.966%2C5.966%2C0%2C0%2C0%2C5.972-5.972V212.422A64.55%2C64.55%2C0%2C0%2C0%2C216.354%2C136.276ZM109.788%2C209.063l-2.24-.933-18.476%2C5.786-.187-19.41-1.493-1.68a55.24%2C55.24%2C0%2C1%2C1%2C22.4%2C16.237Zm94.249-3.173-1.493%2C1.866.187%2C19.41-18.29-6.159-2.24.933a51.542%2C51.542%2C0%2C0%2C1-31.914%2C1.306l-.037-.019a68.4%2C68.4%2C0%2C0%2C0%2C43.6-90.572l.112.075a51%2C51%2C0%2C0%2C1%2C10.078%2C73.159Z%22%2F%3E%3Cpath%20d%3D%22M383.972%2C404.16a7.467%2C7.467%2C0%2C1%2C0%2C0%2C14.93%2C7.468%2C7.468%2C0%2C0%2C0%2C0-14.93Z%22%20transform%3D%22translate(-253.655%20-253.7)%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  --aw-icon-diagnosis: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M170.8 180.9H100a10 10 0 0 1-10.1-10.1v-91a9.9 9.9 0 0 1 2.9-7.1 9.6 9.6 0 0 1 7.2-3h40.5v40.5h40.5v60.7a10 10 0 0 1-10.2 10ZM150.6 69.8a8.8 8.8 0 0 1 5.1 2.4l22.6 23.2a8.2 8.2 0 0 1 2.2 4.6h-29.9Zm-20.2-30.5h-10.1V29.2h10.1a9.6 9.6 0 0 1 7.2 3 9.9 9.9 0 0 1 2.9 7.1v20.2h-10.1ZM100 49.4H59.5a10 10 0 0 1-10.1-10 9.9 9.9 0 0 1 2.9-7.2 9.6 9.6 0 0 1 7.2-3 9.9 9.9 0 0 1 2.9-7.1 9.6 9.6 0 0 1 7.2-3h20.2a9.6 9.6 0 0 1 7.2 3 9.9 9.9 0 0 1 2.9 7.1 9.6 9.6 0 0 1 7.2 3 9.9 9.9 0 0 1 2.9 7.2 10 10 0 0 1-10 10ZM29.2 160.7h50.6v10.1H29.2a9.9 9.9 0 0 1-7.1-2.9 9.6 9.6 0 0 1-3-7.2V39.3a9.9 9.9 0 0 1 2.9-7.1 9.6 9.6 0 0 1 7.2-3h10.1v10.1H29.2Z'/%3E%3C/svg%3E");
  --aw-icon-ranking: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 19V9M12 19V5M19 19v-7'/%3E%3Cpath d='M3.5 19.2h17'/%3E%3C/svg%3E");
  --aw-icon-3q: url("/3q-icon.svg?v=20260620-3q-icon-1");
  --aw-icon-update: url("/release-icon.svg");
  --aw-icon-price: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4.5h10M8 9h8M9 13.5h6'/%3E%3Cpath d='M12 4.5v15M8 19.5h8'/%3E%3C/svg%3E");
  --aw-icon-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='m12 3.2 2.5 5.1 5.6.8-4 3.9.9 5.5-5-2.7-5 2.7.9-5.5-4-3.9 5.6-.8Z'/%3E%3C/svg%3E");
  --aw-icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.1 4.1L19 6.7'/%3E%3C/svg%3E");
  --aw-icon-tap: url("/tap-icon.svg");
  --aw-icon-drag-drop: url("/drag-drop-icon.svg");
  font-family: "Inter", "Zen Kaku Gothic New", "Noto Sans JP", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(37, 99, 235, .52) rgba(226, 232, 240, .36);
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(248, 250, 252, .12), rgba(226, 232, 240, .44), rgba(248, 250, 252, .12));
}

*::-webkit-scrollbar-thumb {
  border: 3px solid rgba(248, 250, 252, .72);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(96, 165, 250, .86), rgba(37, 99, 235, .72));
}

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

body {
  margin: 0;
  min-height: 100vh;
  --series-pastel-a: rgba(219, 234, 254, .30);
  --series-pastel-b: rgba(236, 253, 245, .22);
  --series-pastel-c: rgba(255, 255, 255, .94);
  --series-shadow: rgba(37, 99, 235, .08);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0;
}

body[data-ranking-page="webtool"] {
  --bg: #f5f7fb;
  --blue: #4f46e5;
  --blue-soft: #eef2ff;
  --green: #0f766e;
  --amber: #a16207;
  --line-soft: rgba(210, 218, 236, .92);
  --series-pastel-a: rgba(224, 231, 255, .32);
  --series-pastel-b: rgba(207, 250, 254, .18);
  --series-pastel-c: rgba(245, 243, 255, .26);
  --series-shadow: rgba(79, 70, 229, .08);
}

body[data-ranking-page="webtool"] .control-panel::before,
body[data-ranking-page="webtool"] .result-panel::before {
  background:
    linear-gradient(90deg, rgba(79, 70, 229, .07), rgba(255, 255, 255, .92) 36%, rgba(255, 255, 255, 0) 78%),
    linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, 0));
}

body[data-ranking-page="webtool"] .diagnosis-mark,
body[data-ranking-page="webtool"] .step-mini,
body[data-ranking-page="webtool"] .guide-comment-call-actions button.is-active,
body[data-ranking-page="webtool"] .guide-comment-icon,
body[data-ranking-page="webtool"] .guide-form button,
body[data-ranking-page="webtool"] .rank-badge {
  background: linear-gradient(180deg, #6366f1, #4338ca);
}

body[data-ranking-page="webtool"] .page-flow-link.is-current {
  border-color: rgba(79, 70, 229, .44);
  background: #4f46e5;
  box-shadow: 0 9px 18px rgba(79, 70, 229, .18);
}

body[data-ranking-page="webtool"] .need-chip.is-when,
body[data-ranking-page="webtool"] .need-map-section.is-when {
  --chip-border: rgba(79, 70, 229, .30);
  --chip-bg: rgba(238, 242, 255, .90);
  --chip-soft: rgba(79, 70, 229, .10);
  --chip-text: #4338ca;
}

body[data-ranking-page="webtool"] .need-chip.is-where,
body[data-ranking-page="webtool"] .need-map-section.is-where {
  --chip-border: rgba(20, 184, 166, .30);
  --chip-bg: rgba(240, 253, 250, .90);
  --chip-soft: rgba(20, 184, 166, .10);
  --chip-text: #0f766e;
}

body[data-ranking-page="webtool"] .need-chip.is-task,
body[data-ranking-page="webtool"] .need-map-section.is-task {
  --chip-border: rgba(217, 119, 6, .32);
  --chip-bg: rgba(255, 251, 235, .90);
  --chip-soft: rgba(217, 119, 6, .10);
  --chip-text: #92400e;
}

button,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.controls-bar {
  position: sticky;
  top: 0;
  z-index: 28;
  display: flex;
  justify-content: flex-end;
  min-height: 74px;
  padding: 16px clamp(14px, 1vw, 18px) 10px;
  background: transparent;
}

.toolbar {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.page-flow-toolbar {
  justify-content: space-between;
  gap: 10px;
}

.page-flow-links {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .92),
    0 14px 34px rgba(15, 23, 42, .07);
  backdrop-filter: blur(14px) saturate(1.08);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
}

.page-flow-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #334155;
  font-size: 12px;
  line-height: 1.1;
  font-weight: 700;
  white-space: nowrap;
}

.page-flow-link > span:last-child {
  display: grid;
  gap: 2px;
}

.page-flow-link b,
.page-flow-link small {
  display: block;
  line-height: 1;
}

.page-flow-link small {
  color: #64748b;
  font-size: 9.5px;
  font-weight: 700;
}

.page-flow-link > span:first-child {
  width: 16px;
  height: 16px;
  color: currentColor;
}

.page-flow-link.is-3q-link {
  gap: 8px;
  padding-inline: 14px 16px;
}

.page-flow-link.is-3q-link > span:first-child {
  width: 17px;
  height: 17px;
}

.page-flow-link:hover {
  border-color: rgba(147, 197, 253, .46);
  background: rgba(239, 246, 255, .82);
  color: var(--blue);
}

.page-flow-link.is-current {
  border-color: rgba(37, 99, 235, .46);
  background: #2563eb;
  color: #fff;
  box-shadow: 0 9px 18px rgba(37, 99, 235, .20);
}

.page-flow-link.is-current small {
  color: rgba(255, 255, 255, .82);
}

.pill-button,
.count-pill,
.saved-pill {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background:
    radial-gradient(circle at 22% 0%, rgba(255, 255, 255, .98), transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, .88), rgba(248, 250, 252, .68));
  color: var(--text);
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .92),
    0 16px 38px rgba(15, 23, 42, .085);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
}

.pill-button {
  margin-right: auto;
}

.count-pill {
  color: var(--muted);
}

.count-pill b,
.saved-pill {
  color: var(--blue);
}

.count-pill b {
  color: var(--text);
}

.saved-pill {
  border-color: rgba(37, 99, 235, .18);
}

.comment-pill {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .92),
    0 16px 38px rgba(15, 23, 42, .085);
}

.comment-pill .comment-mini {
  width: 17px;
  height: 17px;
}

.comment-pill:hover {
  border-color: rgba(147, 197, 253, .66);
  color: var(--blue);
}

.comment-pill-label {
  white-space: nowrap;
}

.comment-pill.is-drop-ready,
body.is-comment-dragging .comment-pill {
  border-color: #60a5fa;
  background: #eff6ff;
  color: #1d4ed8;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .92),
    0 18px 42px rgba(37, 99, 235, .18);
}

.app-shell {
  width: 100%;
  margin: 0 auto;
  padding: 6px clamp(10px, 1.4vw, 20px) 104px;
}

.topbar {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 10px 8px 16px;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 999px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 1), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, .82), rgba(248, 250, 252, .68));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .92),
    0 18px 42px rgba(15, 23, 42, .075);
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
}

.brand {
  font-size: 18px;
  font-weight: 700;
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
}

.topbar nav a[aria-current="page"] {
  color: var(--blue);
  border-color: rgba(147, 197, 253, .46);
  background: rgba(239, 246, 255, .86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .92);
}

.tool-grid {
  display: grid;
  grid-template-columns: minmax(340px, 420px) minmax(0, 1fr);
  gap: clamp(14px, 1.3vw, 20px);
  align-items: start;
  margin-top: 14px;
}

.control-panel,
.result-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, .98), rgba(255, 255, 255, .72) 46%, transparent 76%),
    linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(248, 250, 252, .86));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .96),
    var(--shadow-card);
  backdrop-filter: blur(12px) saturate(1.06);
  -webkit-backdrop-filter: blur(12px) saturate(1.06);
}

.control-panel::before,
.result-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(37, 99, 235, .07), rgba(255, 255, 255, .92) 36%, rgba(255, 255, 255, 0) 78%),
    linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, 0));
  opacity: .86;
  pointer-events: none;
}

.control-panel {
  position: sticky;
  top: 88px;
  padding: 16px;
}

.result-panel {
  min-width: 0;
  padding: 16px;
}

.panel-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.diagnosis-mark {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: linear-gradient(180deg, #4f83ff, #2757f3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .36),
    0 12px 24px rgba(37, 99, 235, .20);
}

.diagnosis-mark::before {
  content: "";
  position: absolute;
  inset: 10px;
  background: #fff;
  -webkit-mask: var(--aw-icon-diagnosis) center / contain no-repeat;
  mask: var(--aw-icon-diagnosis) center / contain no-repeat;
}

.panel-head p,
.result-head p {
  margin: 0 0 4px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}

.panel-head h1,
.result-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 700;
}

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

.question-block {
  margin: 14px 0 0;
  padding: 12px;
  border: 1px solid rgba(226, 232, 240, .88);
  border-radius: 16px;
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 255, 255, .98), rgba(255, 255, 255, .58) 54%, transparent 84%),
    linear-gradient(180deg, rgba(255, 255, 255, .74), rgba(248, 250, 252, .58));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .88),
    0 12px 30px rgba(15, 23, 42, .05);
}

.question-block legend {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px;
  padding: 0;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.step-mini {
  min-width: 28px;
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(180deg, #4f83ff, #2757f3);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(37, 99, 235, .18);
}

.category-grid,
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.category-grid {
  max-height: 310px;
  overflow: auto;
  padding-right: 2px;
}

.category-grid button,
.choice-grid button {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 12px;
  background:
    radial-gradient(circle at 24% 0%, rgba(255, 255, 255, .98), rgba(255, 255, 255, .28) 55%, transparent 84%),
    linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(248, 250, 252, .58));
  color: #334155;
  text-align: left;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.category-grid button::before,
.choice-grid button::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: rgba(37, 99, 235, .16);
  opacity: 0;
  transition: opacity .16s ease;
}

.category-grid button,
.choice-grid button {
  min-height: 60px;
  padding: 10px;
}

.category-grid b,
.category-grid span,
.choice-grid b,
.choice-grid span {
  display: block;
}

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

.category-grid span,
.choice-grid span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.category-grid button.is-active,
.choice-grid button.is-active {
  border-color: rgba(147, 197, 253, .66);
  background:
    radial-gradient(circle at 28% 12%, rgba(255, 255, 255, .34), transparent 42%),
    linear-gradient(180deg, rgba(69, 128, 255, .98), rgba(37, 99, 235, .94));
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .34),
    0 10px 20px rgba(37, 99, 235, .18);
}

.category-grid button.is-active::before,
.choice-grid button.is-active::before {
  opacity: 1;
  background: rgba(255, 255, 255, .58);
}

.category-grid button:hover,
.choice-grid button:hover {
  transform: translateY(-1px);
}

.result-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 0;
}

.result-controls {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.sort-control {
  min-width: 170px;
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.sort-control > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sort-control select {
  min-height: 40px;
  padding: 0 38px 0 16px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 999px;
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, #334155 50%),
    linear-gradient(135deg, #334155 50%, transparent 50%),
    radial-gradient(circle at 24% 0%, rgba(255, 255, 255, .98), rgba(255, 255, 255, .28) 55%, transparent 84%),
    linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(248, 250, 252, .58));
  background-position: calc(100% - 19px) 17px, calc(100% - 14px) 17px, 0 0, 0 0;
  background-size: 5px 5px, 5px 5px, auto, auto;
  background-repeat: no-repeat;
  color: var(--text);
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    0 12px 26px rgba(15, 23, 42, .065);
}

.state-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 6px auto 8px;
  text-align: center;
}

.state-bar span,
.state-bar a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 12px;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(15, 23, 42, .045);
}

.state-bar b {
  font: inherit;
}

.state-bar a {
  color: var(--green);
  background: rgba(236, 253, 245, .86);
}

.state-bar [hidden] {
  display: none !important;
}

.ranking-disclaimers {
  display: grid;
  gap: 3px;
  margin: 6px 12px -4px;
}

.price-disclaimer,
.ad-disclaimer {
  margin: 0;
  color: #64748b;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.7;
}

.need-card-status {
  justify-content: flex-start;
  margin: 0 0 10px;
  text-align: left;
}

.need-card-status span,
.need-card-status a {
  min-height: 30px;
  padding: 0 11px;
  font-size: 11.5px;
}

.ranking-comment-drawer {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  place-items: end center;
  padding: 22px;
}

.ranking-comment-drawer.is-open {
  display: grid;
}

body.is-comment-open {
  overflow: hidden;
}

.ranking-comment-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(241, 245, 249, .58);
  backdrop-filter: blur(14px) saturate(1.08);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
}

.ranking-comment-panel {
  position: relative;
  width: min(520px, 100%);
  max-height: min(720px, 88vh);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 22px;
  border: 1px solid rgba(203, 213, 225, .66);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .68), rgba(248, 250, 252, .46));
  backdrop-filter: blur(24px) saturate(1.16);
  -webkit-backdrop-filter: blur(24px) saturate(1.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .88),
    0 24px 64px rgba(15, 23, 42, .14);
}

@media (min-width: 981px) {
  .ranking-comment-drawer {
    inset: 72px clamp(16px, 1.4vw, 24px) auto auto;
    place-items: stretch;
    width: min(430px, calc(100vw - 32px));
    padding: 0;
  }

  .ranking-comment-drawer.is-open {
    display: block;
  }

  .ranking-comment-backdrop {
    display: none;
  }

  .ranking-comment-panel {
    width: 100%;
    max-height: min(720px, calc(100vh - 92px));
    padding: 20px;
    border-radius: 18px;
  }

  body.is-comment-open {
    overflow: auto;
  }
}

.comment-drag-guide {
  position: fixed;
  inset: 0;
  z-index: 68;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, .18);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
  backdrop-filter: blur(3px) saturate(1.04);
  -webkit-backdrop-filter: blur(3px) saturate(1.04);
}

.comment-drag-guide.is-open {
  opacity: 1;
  pointer-events: auto;
}

body.is-comment-dragging {
  cursor: grabbing;
  user-select: none;
}

.comment-drag-guide-card {
  width: min(380px, 100%);
  min-height: 154px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 24px;
  border: 1px dashed rgba(37, 99, 235, .55);
  border-radius: 20px;
  background: rgba(255, 255, 255, .9);
  color: #0f172a;
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    0 24px 70px rgba(15, 23, 42, .2);
}

.comment-drag-guide-card .comment-mini {
  width: 28px;
  height: 28px;
  color: #2563eb;
}

.comment-drag-guide-card b {
  display: block;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
}

.comment-drag-guide-card p {
  max-width: 290px;
  margin: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.65;
  font-weight: 400;
}

.comment-drag-guide.is-drop-ready .comment-drag-guide-card {
  border-color: #2563eb;
  background: rgba(239, 246, 255, .96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    0 26px 76px rgba(37, 99, 235, .24);
}

.ranking-comment-close {
  position: sticky;
  top: 0;
  z-index: 16;
  margin: -4px 0 -44px auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #e8eef6;
  color: #64748b;
  font-size: 22px;
  line-height: 1;
  font-weight: 500;
  cursor: pointer;
}

.guide-kicker {
  margin: 0 0 3px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
}

.ranking-comment-panel h2 {
  margin: 0;
  color: #111827;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
}

.ranking-comment-copy {
  margin: 7px 0 10px;
  color: #475569;
  font-size: 12.5px;
  line-height: 1.65;
  font-weight: 400;
}

.comment-howto {
  margin: 0 0 10px;
  padding: 10px;
  border: 1px solid rgba(203, 213, 225, .58);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .52), rgba(248, 250, 252, .34));
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86);
}

.comment-howto-head {
  display: grid;
  gap: 3px;
  margin: 0 0 8px;
}

.comment-howto-title {
  margin: 0 0 8px;
  color: #64748b;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .08em;
}

.comment-howto-head .comment-howto-title {
  margin: 0;
}

.comment-howto-copy {
  margin: 0;
  color: #334155;
  font-size: 11.5px;
  line-height: 1.45;
  font-weight: 400;
}

.comment-howto ol {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.comment-howto li {
  position: relative;
  min-height: 78px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  padding: 10px 8px;
  border: 1px solid rgba(226, 232, 240, .72);
  border-radius: 13px;
  background: rgba(255, 255, 255, .46);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: center;
}

.comment-howto li:last-child {
  border-color: rgba(147, 197, 253, .72);
  background:
    radial-gradient(circle at 50% 0%, rgba(219, 234, 254, .82), transparent 58%),
    linear-gradient(180deg, rgba(239, 246, 255, .72), rgba(255, 255, 255, .46));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .88),
    0 12px 24px rgba(37, 99, 235, .075);
}

.comment-howto li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -8px;
  width: 8px;
  height: 1px;
  background: #cbd5e1;
}

.comment-howto-icon {
  width: 22px;
  height: 22px;
  color: #2563eb;
}

.tap-mini,
.drag-drop-mini {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--aw-icon-tap) center / contain no-repeat !important;
  box-shadow: none !important;
  color: #2563eb;
  -webkit-mask: none !important;
  mask: none !important;
}

.drag-drop-mini {
  background-image: var(--aw-icon-drag-drop) !important;
}

.comment-howto b {
  display: block;
  width: 100%;
  color: #0f172a;
  font-size: 11.5px;
  line-height: 1.32;
  font-weight: 700;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: keep-all;
}

.comment-howto small {
  display: block;
  width: min(100%, 88px);
  color: #64748b;
  font-size: 10px;
  line-height: 1.45;
  font-weight: 400;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: keep-all;
}

.guide-comment-call {
  min-height: 62px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(147, 197, 253, .6);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(239, 246, 255, .58), rgba(255, 255, 255, .34));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #0f172a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86);
}

.ranking-comment-panel .guide-comment-call {
  position: sticky;
  top: 44px;
  z-index: 12;
  margin-top: 10px;
}

.guide-comment-call-actions {
  min-width: 184px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px;
  border: 1px solid rgba(203, 213, 225, .64);
  border-radius: 999px;
  background: rgba(255, 255, 255, .54);
}

.guide-comment-call-actions button {
  flex: 1 1 0;
  min-width: 78px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.guide-comment-call-actions button.is-active {
  background: linear-gradient(180deg, #4f83ff, #2757f3);
  color: #fff;
  box-shadow: 0 8px 16px rgba(37, 99, 235, .18);
}

.guide-comment-call-actions .comment-mini {
  width: 13px;
  height: 13px;
}

.guide-comment-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: linear-gradient(180deg, #4f83ff, #2757f3);
  color: #fff;
}

.guide-comment-icon::before {
  content: "";
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: var(--aw-icon-comment) center / contain no-repeat;
  mask: var(--aw-icon-comment) center / contain no-repeat;
}

.guide-comment-call b {
  display: block;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
}

.guide-comment-call small {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 11.5px;
  line-height: 1.35;
  font-weight: 400;
}

.guide-comment-box {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(226, 232, 240, .6);
  border-radius: 18px;
  background: rgba(255, 255, 255, .34);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.guide-form {
  display: grid;
  gap: 8px;
  margin-top: 0;
}

.guide-form[hidden],
.guide-comments[hidden] {
  display: none !important;
}

.comment-context-box,
.comment-reply-box,
.comment-rating-field {
  border: 1px solid rgba(203, 213, 225, .62);
  border-radius: 13px;
  background: rgba(248, 250, 252, .48);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.comment-context-box[hidden],
.comment-reply-box[hidden] {
  display: none !important;
}

.comment-context-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 10px 10px 12px;
}

.comment-context-box small,
.comment-reply-box span,
.comment-rating-field > span {
  display: block;
  color: #64748b;
  font-size: 10.5px;
  line-height: 1.25;
  font-weight: 700;
}

.comment-context-box b {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #0f172a;
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comment-context-box p {
  margin: 3px 0 0;
  overflow: hidden;
  color: #64748b;
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comment-context-box button,
.comment-reply-box button {
  width: 44px;
  min-height: 44px;
  border: 1px solid #d5dce7;
  border-radius: 999px;
  background: #fff;
  color: #64748b;
  font-weight: 700;
}

.comment-reply-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
}

.comment-reply-box b {
  overflow: hidden;
  color: #1d4ed8;
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comment-rating-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 7px 10px 7px 12px;
}

.comment-rating-stars {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.comment-rating-stars label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 44px;
  color: #cbd5e1;
  cursor: pointer;
  transition: color .16s ease, transform .16s ease;
}

.comment-rating-stars input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.comment-rating-stars span {
  font-size: 21px;
  line-height: 1;
}

.comment-rating-stars label:hover,
.comment-rating-stars label.is-active {
  color: #f59e0b;
}

.comment-rating-stars label:hover {
  transform: translateY(-1px);
}

.guide-form input,
.guide-form textarea {
  width: 100%;
  border: 1px solid rgba(203, 213, 225, .92);
  border-radius: 13px;
  background: rgba(255, 255, 255, .86);
  color: #0f172a;
  font: inherit;
  font-weight: 400;
  outline: 0;
}

.guide-form input {
  min-height: 44px;
  padding: 0 12px;
}

.guide-form textarea {
  min-height: 92px;
  padding: 11px 12px;
  resize: vertical;
}

.guide-form button {
  min-height: 44px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(180deg, #4f83ff, #2757f3);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(37, 99, 235, .22);
}

.guide-form button:disabled {
  cursor: wait;
  opacity: .72;
}

.guide-comments {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.guide-comment-scope {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid rgba(147, 197, 253, .58);
  border-radius: 12px;
  background:
    radial-gradient(circle at 10% 0%, rgba(219, 234, 254, .82), transparent 62%),
    rgba(255, 255, 255, .7);
}

.guide-comment-scope small {
  display: block;
  color: #2563eb;
  font-size: 9px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .04em;
}

.guide-comment-scope b {
  display: block;
  margin-top: 2px;
  color: #0f172a;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guide-comment-scope button {
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid rgba(203, 213, 225, .8);
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  color: #475569;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.guide-comment-item {
  padding: 10px;
  border: 1px solid rgba(226, 232, 240, .84);
  border-radius: 12px;
  background: rgba(255, 255, 255, .76);
}

.guide-comment-item b {
  display: block;
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
}

.guide-comment-item p {
  margin: 4px 0 0;
  color: #475569;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 400;
  white-space: pre-wrap;
}

.guide-comment-item.is-product-review {
  border-color: rgba(147, 197, 253, .6);
  background: #f8fbff;
}

.guide-comment-item.is-reply {
  margin-left: 16px;
  border-left: 3px solid #bfdbfe;
}

.guide-comment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.guide-comment-meta span {
  max-width: 100%;
  overflow: hidden;
  padding: 3px 7px;
  border: 1px solid #d5dce7;
  border-radius: 999px;
  background: #fff;
  color: #64748b;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guide-comment-meta .guide-comment-rating {
  border-color: #fde68a;
  background: #fffbeb;
  color: #b45309;
}

.guide-comment-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.guide-comment-actions button {
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid #d5dce7;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
}
