:root {
  color-scheme: light;
  --page: #f3f7f4;
  --surface: #fbfdfc;
  --surface-soft: #e8efeb;
  --surface-accent: #dcece4;
  --ink: #17201b;
  --muted: #526159;
  --line: #c8d4cd;
  --accent: #176b4d;
  --accent-strong: #0f563d;
  --accent-text: #f3fff8;
  --danger: #9b3733;
  --shadow: 0 24px 72px rgba(31, 59, 46, 0.12);
  --radius-card: 16px;
  --radius-control: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #111714;
  --surface: #18211c;
  --surface-soft: #222e27;
  --surface-accent: #173d2d;
  --ink: #edf5f0;
  --muted: #a8b8af;
  --line: #38473f;
  --accent: #58bd8b;
  --accent-strong: #75d7a3;
  --accent-text: #0f1b15;
  --danger: #ff8f88;
  --shadow: 0 24px 72px rgba(4, 10, 7, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 92% 2%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 31rem),
    var(--page);
  color: var(--ink);
  line-height: 1.6;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  transform: translateY(-180%);
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-control);
  background: var(--ink);
  color: var(--surface);
}

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

.site-header,
main,
.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--ink);
  color: var(--surface);
  font-size: 0.9rem;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  white-space: nowrap;
}

.site-header nav a,
.theme-toggle {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
}

.theme-toggle {
  padding: 0 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
}

.site-header nav a:hover,
.site-header nav a:focus-visible,
.theme-toggle:hover,
.theme-toggle:focus-visible {
  color: var(--accent);
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent);
  outline-offset: 3px;
}

.intro {
  max-width: 780px;
  padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(2rem, 5vw, 3.5rem);
}

.intro-kicker,
.section-kicker,
#taskStatus,
.result-label {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.intro h1 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(2.25rem, 5.5vw, 4.35rem);
  line-height: 1.06;
  letter-spacing: -0.055em;
}

.intro > p:last-child {
  max-width: 38rem;
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}

.task-workspace {
  display: grid;
  grid-template-columns: minmax(240px, 0.34fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.task-rail {
  padding: 0.75rem;
  border-right: 1px solid var(--line);
  background: var(--surface-soft);
}

.task-rail button {
  width: 100%;
  min-height: 72px;
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 120ms ease;
}

.task-rail button + button {
  margin-top: 0.25rem;
}

.task-rail button strong {
  font-size: 0.97rem;
}

.task-rail button span {
  color: var(--muted);
  font-size: 0.8rem;
}

.task-rail button:hover {
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}

.task-rail button[aria-selected="true"] {
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
  background: var(--surface);
  color: var(--accent-strong);
}

.task-rail button:active,
.submit-action:active,
.purchase-link:active,
.ranking-more:active {
  transform: translateY(1px);
}

.task-panel {
  min-width: 0;
  padding: clamp(1.25rem, 4vw, 3rem);
}

.task-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.task-panel-heading h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.55rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.quota {
  max-width: 13rem;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: right;
}

form > label {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.9rem;
  font-weight: 750;
}

textarea,
input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  outline: none;
  background: var(--surface);
  color: var(--ink);
}

textarea {
  min-height: 104px;
  resize: vertical;
  padding: 0.9rem 1rem;
  line-height: 1.55;
}

input,
select {
  min-height: 48px;
  padding: 0.65rem 0.8rem;
}

textarea::placeholder,
input::placeholder {
  color: color-mix(in srgb, var(--muted) 78%, transparent);
}

textarea:focus-visible,
input:focus-visible,
select:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 21%, transparent);
}

.field-help,
.field-error,
.content-label {
  margin: 0.6rem 0 0;
  font-size: 0.82rem;
}

.field-help,
.content-label {
  color: var(--muted);
}

.field-error {
  color: var(--danger);
  font-weight: 700;
}

.preference-fields {
  margin: 1.25rem 0 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
}

.preference-fields legend {
  padding: 0 0.4rem;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.preference-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.preference-grid label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.priority-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.priority-options label {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  color: var(--muted);
  cursor: pointer;
}

.priority-options input,
.ranking-brand-filter input,
.candidate-actions input {
  width: 1.05rem;
  min-height: auto;
  height: 1.05rem;
  padding: 0;
  accent-color: var(--accent);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.submit-action,
.clear-action,
.candidate-actions button,
.candidate-compare-action,
.ranking-tabs button,
.ranking-more {
  min-height: 48px;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-control);
  font-weight: 780;
  cursor: pointer;
}

.submit-action,
.candidate-actions button,
.candidate-compare-action {
  border: 1px solid var(--accent-strong);
  background: var(--accent);
  color: var(--accent-text);
}

.submit-action:disabled {
  cursor: wait;
  opacity: 0.65;
}

.clear-action,
.ranking-tabs button,
.ranking-more {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.content-label {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.advisor-loading {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: var(--radius-control);
  background: var(--surface-soft);
  color: var(--muted);
}

.advisor-loading i {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--accent);
  animation: loading-pulse 1s ease-in-out infinite alternate;
}

.advisor-loading i:nth-of-type(2) { animation-delay: 120ms; }
.advisor-loading i:nth-of-type(3) { animation-delay: 240ms; }

@keyframes loading-pulse {
  from { opacity: 0.25; transform: translateY(0); }
  to { opacity: 1; transform: translateY(-3px); }
}

.candidate-panel,
.result {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.candidate-panel > h3,
.candidate-panel > p {
  margin: 0;
}

.candidate-panel > p {
  margin-top: 0.4rem;
  color: var(--muted);
}

.candidate-list,
.recommendation-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.candidate-item,
.product-choice {
  min-width: 0;
  display: grid;
  grid-template-columns: 106px minmax(0, 1fr);
  gap: 0.8rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.candidate-item:has(input:checked) {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--surface-accent) 55%, var(--surface));
}

.candidate-photo,
.choice-photo,
.ranking-photo,
.ranking-series-photo {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius-control);
  background: color-mix(in srgb, var(--surface-soft) 78%, var(--surface));
}

.candidate-photo,
.choice-photo {
  min-height: 142px;
  grid-row: span 2;
}

.candidate-photo img,
.choice-photo img,
.ranking-photo img,
.ranking-series-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.photo-empty {
  padding: 0.5rem;
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
}

.candidate-identity,
.product-choice-copy {
  min-width: 0;
  align-self: center;
}

.candidate-identity strong,
.product-choice-copy strong {
  display: block;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.model {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.76rem;
  overflow-wrap: anywhere;
}

.candidate-price,
.choice-price,
.ranking-price {
  display: block;
  margin-top: 0.35rem;
  color: var(--accent-strong);
  font-size: 0.88rem;
}

.candidate-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.candidate-actions label {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  cursor: pointer;
}

.candidate-compare-action {
  width: 100%;
  margin-top: 0.8rem;
}

.purchase-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius-control);
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
}

.result-head h3 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.result-label {
  display: block;
  margin-bottom: 0.45rem;
}

.verdict {
  max-width: 12rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-control);
  background: var(--surface-accent);
  color: var(--accent-strong);
  text-align: center;
}

.result-summary {
  max-width: 54rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.result-product {
  margin-top: 1rem;
}

.result-grid,
.technology-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.result-list,
.technology-facts article {
  padding: 1rem;
  border-radius: var(--radius-control);
  background: var(--surface-soft);
}

.result-list h4,
.recommendation-section h4,
.technology-facts h4,
.comparison-choices h4 {
  margin: 0;
  font-size: 0.92rem;
}

.result-list ul,
.product-choice-copy ul {
  margin: 0.65rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.result-list li + li,
.product-choice-copy li + li {
  margin-top: 0.35rem;
}

.recommendation-section,
.comparison-choices {
  margin-top: 1.25rem;
}

.product-choice.is-primary {
  border-color: color-mix(in srgb, var(--accent) 68%, var(--line));
  background: color-mix(in srgb, var(--surface-accent) 38%, var(--surface));
}

.product-choice .purchase-link {
  grid-column: 1 / -1;
}

.result-meta {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.comparison-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.comparison-table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
}

.comparison-table-wrap table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table-wrap th,
.comparison-table-wrap td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.comparison-table-wrap thead th {
  background: var(--surface-soft);
  font-size: 0.82rem;
}

.comparison-table-wrap tbody th {
  width: 8rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.comparison-table-wrap tr:last-child th,
.comparison-table-wrap tr:last-child td {
  border-bottom: 0;
}

.comparison-choices > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.comparison-choices article {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
}

.comparison-choices article > span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.comparison-choices article > strong {
  display: block;
  margin-top: 0.25rem;
}

.comparison-choices article > p {
  margin: 0.5rem 0 0.75rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.technology-facts article p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.ranking {
  margin-top: clamp(4rem, 9vw, 8rem);
  padding-bottom: 5rem;
}

.ranking-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.ranking-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.ranking-heading p:last-child {
  max-width: 36rem;
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.ranking-tabs {
  display: flex;
  gap: 0.5rem;
}

.ranking-tabs button[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-text);
}

.ranking-brand-filter {
  min-height: 60px;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.25rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  cursor: pointer;
}

.ranking-brand-filter span {
  display: grid;
}

.ranking-brand-filter small {
  color: var(--muted);
}

.ranking-summary {
  margin-top: 1rem;
  color: var(--muted);
}

.ranking-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.ranking-card {
  display: grid;
  grid-template-columns: 70px 140px minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.ranking-rank {
  display: grid;
  justify-items: center;
  color: var(--muted);
  line-height: 1;
}

.ranking-rank strong {
  margin: 0.2rem 0;
  color: var(--accent-strong);
  font-size: 2rem;
}

.ranking-photo {
  height: 154px;
}

.ranking-copy {
  min-width: 0;
}

.ranking-brand {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
}

.ranking-copy h3 {
  margin: 0.2rem 0 0;
  font-size: 1.2rem;
  line-height: 1.3;
}

.ranking-series {
  grid-column: 2 / -1;
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
}

.ranking-series summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--accent-strong);
  cursor: pointer;
}

.ranking-series summary span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 400;
}

.ranking-series-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.65rem;
}

.ranking-series-item {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem;
  border-radius: var(--radius-control);
  background: var(--surface-soft);
}

.ranking-series-photo {
  height: 106px;
}

.ranking-series-copy p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.ranking-series-position {
  display: block;
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 750;
}

.ranking-more {
  width: 100%;
  margin-top: 1rem;
}

.ranking-note {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.about-contact {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(480px, 1.22fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-bottom: clamp(4rem, 8vw, 7rem);
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.about-copy h2,
.contact-details h3 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.about-copy h2 {
  font-size: clamp(1.7rem, 3.3vw, 2.75rem);
}

.about-copy > p:last-child {
  margin: 1.1rem 0 0;
  color: var(--muted);
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 172px;
  align-items: center;
  gap: 1.5rem;
  padding: 1.35rem;
  border-radius: var(--radius-control);
  background: var(--surface-soft);
}

.contact-details h3 {
  font-size: 1.25rem;
}

.contact-details dl {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0;
}

.contact-details dl > div {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 0.75rem;
}

.contact-details dt {
  color: var(--muted);
  font-size: 0.82rem;
}

.contact-details dd {
  margin: 0;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.contact-details a:hover,
.contact-details a:focus-visible {
  color: var(--accent);
}

.wechat-contact {
  margin: 0;
  text-align: center;
}

.wechat-contact img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  background: #fff;
}

.wechat-contact figcaption {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.site-footer {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer > div,
.filing {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-footer strong {
  color: var(--ink);
}

.filing a:hover,
.filing a:focus-visible {
  color: var(--accent);
}

@media (max-width: 900px) {
  .task-workspace {
    grid-template-columns: 1fr;
  }

  .task-rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .task-rail button + button {
    margin-top: 0;
  }

  .task-rail button {
    min-height: 82px;
  }

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

  .candidate-list,
  .recommendation-list {
    grid-template-columns: 1fr;
  }

  .ranking-card {
    grid-template-columns: 60px 122px minmax(0, 1fr);
  }

  .ranking-card > .purchase-link {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .ranking-series {
    grid-column: 2 / -1;
  }

  .about-contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  .about-contact {
    padding: 1.15rem;
  }

  .contact-card {
    grid-template-columns: 1fr;
  }

  .wechat-contact {
    width: min(220px, 100%);
    justify-self: center;
  }

  .site-header {
    min-height: 64px;
  }

  .site-header nav a {
    display: none;
  }

  .intro {
    padding: 2.5rem 0 2rem;
  }

  .intro h1 {
    max-width: 16ch;
    font-size: clamp(2.1rem, 11vw, 3rem);
  }

  .task-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow-x: visible;
  }

  .task-rail button {
    min-height: 76px;
    padding: 0.7rem;
  }

  .task-rail button span {
    display: none;
  }

  .task-panel {
    padding: 1.1rem;
  }

  .task-panel-heading,
  .ranking-heading,
  .result-head {
    display: grid;
    gap: 0.75rem;
  }

  .quota,
  .verdict {
    max-width: none;
    text-align: left;
  }

  .preference-grid,
  .result-grid,
  .technology-facts,
  .comparison-choices > div {
    grid-template-columns: 1fr;
  }

  .form-actions > * {
    flex: 1;
  }

  .candidate-item,
  .product-choice {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .candidate-photo,
  .choice-photo {
    min-height: 132px;
  }

  .ranking {
    margin-top: 4rem;
    padding-bottom: 3rem;
  }

  .ranking-tabs {
    width: 100%;
  }

  .ranking-tabs button {
    flex: 1;
  }

  .ranking-brand-filter {
    width: 100%;
  }

  .ranking-card {
    grid-template-columns: 48px 92px minmax(0, 1fr);
    gap: 0.65rem;
    padding: 0.75rem;
  }

  .ranking-photo {
    height: 126px;
  }

  .ranking-copy h3 {
    font-size: 1rem;
  }

  .ranking-rank strong {
    font-size: 1.55rem;
  }

  .ranking-series {
    grid-column: 1 / -1;
  }

  .ranking-series summary {
    align-items: flex-start;
  }

  .ranking-series-item {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .ranking-series-item .purchase-link {
    grid-column: 1 / -1;
  }

  .ranking-series-photo {
    height: 96px;
  }

  .site-footer {
    min-height: 150px;
    display: grid;
    align-content: center;
    gap: 0.7rem;
  }

  .site-footer > div,
  .filing {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
