:root {
  --orange: #ff5a1f;
  --orange-dark: #d94310;
  --ink: #111318;
  --muted: #66707f;
  --line: #e5e8ee;
  --paper: #ffffff;
  --bg: #f4f6f8;
  --blue: #2357d4;
  --green: #12805c;
  --shadow: 0 18px 50px rgba(17, 19, 24, 0.09);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Pretendard, SUIT, "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  word-break: keep-all;
  overflow-wrap: break-word;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 44px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 118px;
}

.brand img {
  display: block;
  width: 118px;
  height: auto;
}

.filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-btn,
.filter-btn,
.choice,
.ghost-btn,
.primary-btn,
.mini-btn {
  border: 0;
  border-radius: 8px;
  min-height: 40px;
  white-space: nowrap;
}

.nav-btn,
.filter-btn {
  padding: 0 14px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.nav-btn.is-active,
.filter-btn.is-active {
  background: #111318;
  color: #fff;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0;
}

.intro-grid,
.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 18px;
  align-items: start;
}

.question-panel,
.admin-panel,
.detail-hero,
.detail-section {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.question-panel,
.admin-panel {
  padding: clamp(20px, 3vw, 32px);
}

.hero-panel {
  overflow: hidden;
}

.hero-message {
  display: block;
}

.hero-message-image {
  border: 1px solid #edf0f5;
  border-radius: 8px;
  background: #f8fafc;
  overflow: hidden;
}

.hero-main-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1280 / 672;
  object-fit: contain;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.05;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(22px, 3vw, 30px);
}

h3 {
  margin-bottom: 8px;
  font-size: 19px;
}

.finder-form,
.admin-form {
  display: grid;
  gap: 18px;
}

.hero-panel .finder-form {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #edf0f5;
}

.hero-panel.is-collapsed .finder-form {
  margin-top: 20px;
  padding: 12px 0 0;
  border-top: 0;
  background: var(--paper);
}

.condition-fields {
  display: grid;
  gap: 18px;
}

.condition-fields[hidden] {
  display: none;
}

.field {
  display: grid;
  gap: 8px;
}

.field span,
legend {
  color: #2c323c;
  font-weight: 800;
}

.field input,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  color: var(--ink);
  outline: none;
}

.field input:focus,
.field select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.14);
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #66707f 50%), linear-gradient(135deg, #66707f 50%, transparent 50%);
  background-position: calc(100% - 18px) 21px, calc(100% - 12px) 21px;
  background-repeat: no-repeat;
  background-size: 6px 6px, 6px 6px;
}

.field small {
  color: var(--muted);
}

.choice-group {
  display: grid;
  gap: 8px;
  padding: 0;
  border: 0;
  margin: 0;
}

.choice-group legend {
  margin-bottom: 2px;
}

.choice-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 0 20px 4px 0;
  margin-right: -20px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-overflow-scrolling: touch;
}

.choice-scroll.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.choice-scroll::-webkit-scrollbar {
  display: none;
}

.choice {
  flex: 0 0 auto;
  padding: 0 13px;
  background: #f1f3f7;
  color: #3d4654;
  font-weight: 700;
  scroll-snap-align: start;
  user-select: none;
}

.choice.is-selected {
  background: rgba(255, 90, 31, 0.12);
  color: var(--orange-dark);
  box-shadow: inset 0 0 0 1px rgba(255, 90, 31, 0.25);
}

.primary-btn,
.ghost-btn,
.mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.primary-btn {
  min-height: 52px;
  padding: 0 18px;
  background: var(--orange);
  color: #fff;
}

.hero-panel .primary-btn {
  width: 100%;
}

.ghost-btn {
  min-height: 46px;
  padding: 0 16px;
  background: #111318;
  color: #fff;
}

.mini-btn {
  min-height: 38px;
  padding: 0 12px;
  background: #f1f3f7;
  color: var(--ink);
}

.score-card {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 8px;
}

.score-main,
.score-action-wrap {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.score-main {
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.score-main:hover {
  transform: translateY(-1px);
}

.score-main:focus-visible {
  outline: 3px solid rgba(255, 90, 31, 0.28);
  outline-offset: 3px;
}

.score-action-wrap {
  padding: 12px 20px 20px;
}

.score-visual {
  min-height: 150px;
  margin-bottom: 0;
}

.score-car-image {
  width: 100%;
  max-width: 320px;
  object-fit: contain;
}

.score-body {
  padding: 18px;
}

.score-card .featured-kicker {
  margin-bottom: 8px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
}

#bestTitle {
  margin-bottom: 8px;
  font-size: 24px;
  line-height: 1.2;
}

.score-action {
  width: 100%;
}

.score-card p,
.car-card p,
.detail-copy,
.draft-output {
  color: var(--muted);
  line-height: 1.62;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-link {
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.section-link:hover,
.section-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section-head.tight {
  align-items: center;
}

.surface-section {
  padding: 18px;
  margin-top: 8px;
  margin-bottom: 0;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(17, 19, 24, 0.08);
}

.surface-section .section-head {
  margin-bottom: 14px;
}

.surface-section h2 {
  line-height: 1.24;
  word-break: normal;
  overflow-wrap: anywhere;
}

.section-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef3ff;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.pill.warning {
  background: #fff3e8;
  color: var(--orange-dark);
}

.car-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.horizontal-list,
.article-list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 0 18px 2px 0;
  margin-right: 0;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  cursor: grab;
  touch-action: auto;
  user-select: none;
  -webkit-overflow-scrolling: touch;
}

.carousel-shell {
  position: relative;
}

.carousel-btn {
  position: absolute;
  top: 112px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 42px;
  border: 1px solid rgba(229, 232, 238, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(17, 19, 24, 0.12);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.carousel-prev {
  left: -4px;
}

.carousel-next {
  right: -4px;
}

.carousel-btn:active {
  transform: translateY(1px);
}

.carousel-btn:focus-visible {
  outline: 3px solid rgba(255, 90, 31, 0.28);
  outline-offset: 2px;
}

.horizontal-list.is-dragging,
.article-list.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.horizontal-list::-webkit-scrollbar,
.article-list::-webkit-scrollbar {
  display: none;
}

.horizontal-list .car-card {
  flex: 0 0 88%;
  scroll-snap-align: start;
}

.car-card {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(17, 19, 24, 0.06);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.car-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(17, 19, 24, 0.08);
}

.car-card:focus-visible {
  outline: 3px solid rgba(255, 90, 31, 0.28);
  outline-offset: 3px;
}

.car-art {
  min-height: 150px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #dbe8f3, #f8fafc 58%, #ffd7c8);
}

.card-car-image {
  width: 100%;
  max-width: 320px;
  object-fit: contain;
}

.sales-card,
.article-card {
  flex: 0 0 78%;
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(17, 19, 24, 0.05);
  scroll-snap-align: start;
}

.sales-card[data-detail] {
  cursor: pointer;
}

.sales-card[data-detail]:focus-visible {
  outline: 3px solid rgba(255, 90, 31, 0.28);
  outline-offset: 3px;
}

.sales-art {
  position: relative;
  min-height: 132px;
  padding: 14px;
}

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.sales-body,
.article-body {
  padding: 14px;
}

.sales-body h3,
.article-body h3 {
  line-height: 1.28;
}

.sales-body p,
.sales-body strong,
.article-body p {
  color: var(--muted);
  line-height: 1.55;
}

.sales-body strong {
  display: block;
  color: var(--orange-dark);
  font-size: 13px;
}

.article-card {
  flex-basis: 82%;
}

.article-card-link {
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.article-card-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(17, 19, 24, 0.1);
}

.article-card-link:focus-visible {
  outline: 3px solid rgba(255, 90, 31, 0.28);
  outline-offset: 3px;
}

.article-thumb {
  min-height: 126px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: linear-gradient(135deg, #f1f5f9, #ffffff 58%, #ffe0d2);
}

.article-thumb img {
  width: 100%;
  max-width: 220px;
  object-fit: contain;
}

.article-body span {
  display: block;
  margin-bottom: 8px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
}

.article-read-more {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  margin-top: 12px;
  color: var(--orange-dark);
  font-size: 13px;
}

.car-art .car-shape {
  position: relative;
  width: 100%;
  height: 72px;
}

.car-art .car-shape::before {
  content: "";
  position: absolute;
  inset: 20px 8px 10px;
  border-radius: 42px 54px 18px 18px;
  background: #111318;
}

.car-art .car-shape::after {
  content: "";
  position: absolute;
  left: 28%;
  top: 4px;
  width: 34%;
  height: 34px;
  border-radius: 36px 36px 8px 8px;
  background: #4f6c86;
  box-shadow: -56px 48px 0 -20px #fff, 92px 48px 0 -20px #fff;
}

.car-body {
  padding: 18px;
}

.car-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.score-line {
  display: grid;
  gap: 10px;
  margin: 16px 0;
  padding: 13px 12px 12px;
  border: 1px solid rgba(255, 90, 31, 0.24);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 90, 31, 0.1), rgba(255, 255, 255, 0.98) 68%);
}

.score-line-featured {
  width: 100%;
  margin: 12px 0 8px;
}

.score-line-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--orange-dark);
  font-size: 14px;
  font-weight: 900;
}

.score-line-head strong {
  color: var(--orange-dark);
  font-size: 13px;
  line-height: 1.2;
}

.score-line-head span {
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
  white-space: nowrap;
}

.score-line-head b {
  font-size: 26px;
  font-weight: 950;
  line-height: 1;
}

.score-line-head small {
  color: #9da8b7;
  font-size: 12px;
  font-weight: 900;
}

.bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef1f5;
}

.bar span {
  display: block;
  height: 100%;
  width: var(--score);
  background: linear-gradient(90deg, var(--orange), #ffb13d);
}

.view {
  display: none;
}

.view.is-visible {
  display: block;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 22px;
  padding: clamp(20px, 3vw, 32px);
}

.hero-art {
  min-height: 320px;
  border-radius: 8px;
  background: radial-gradient(circle at 24% 20%, #fff, transparent 24%), linear-gradient(135deg, #dce9f5, #f8fafc 62%, #ffc9b5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.hero-car-image {
  width: 100%;
  max-width: 360px;
  object-fit: contain;
}

.hero-art .car-shape {
  position: relative;
  width: 100%;
  height: 142px;
}

.hero-art .car-shape::before {
  content: "";
  position: absolute;
  inset: 40px 0 18px;
  border-radius: 80px 96px 24px 24px;
  background: #111318;
}

.hero-art .car-shape::after {
  content: "";
  position: absolute;
  left: 27%;
  top: 0;
  width: 34%;
  height: 62px;
  border-radius: 60px 60px 10px 10px;
  background: #516f88;
  box-shadow: -96px 92px 0 -32px #fff, 160px 92px 0 -32px #fff;
}

.detail-score {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.detail-score-line {
  margin: 0;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
}

.detail-layout > *,
.detail-section,
.score-item,
.evidence-card,
.note,
.draft-block,
.tree-card,
.car-card {
  min-width: 0;
}

.detail-section {
  padding: 22px;
  margin-bottom: 16px;
}

.score-item {
  border-top: 1px solid var(--line);
}

.score-item summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 16px;
  padding: 16px 0;
  font-weight: 900;
  cursor: pointer;
}

.score-item summary::after {
  content: "⌄";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  color: var(--muted);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  transition: transform 0.16s ease;
}

.score-item[open] summary::after {
  transform: rotate(180deg);
}

.score-item summary span:first-child {
  min-width: 0;
}

.evidence-card {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 8px;
  background: #f7f9fc;
  color: #3d4654;
}

.evidence-card > * {
  min-width: 0;
}

.detail-article-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.detail-article-head h2 {
  margin-bottom: 0;
}

.article-guide {
  margin: 10px 0 16px;
}

.detail-article-list {
  display: grid;
  gap: 10px;
}

.detail-article-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.detail-article-card:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 90, 31, 0.42);
  box-shadow: 0 10px 24px rgba(17, 19, 24, 0.07);
}

.detail-article-card:focus-visible {
  outline: 3px solid rgba(255, 90, 31, 0.28);
  outline-offset: 2px;
}

.detail-article-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 900;
}

.detail-article-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
}

.detail-article-card b {
  color: var(--orange-dark);
  font-size: 18px;
}

.blog-home-link {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  margin-top: 16px;
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.blog-home-link:hover,
.blog-home-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.evidence-card a {
  color: var(--blue);
  font-weight: 800;
}

.evidence-text {
  display: grid;
  gap: 20px;
  color: #3d4654;
  line-height: 1.72;
}

.evidence-text p {
  margin: 0;
}

.evidence-text p span {
  display: block;
}

.evidence-text strong {
  color: var(--ink);
  font-weight: 950;
}

.evidence-text mark {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 2px;
  padding: 5px 9px;
  border-radius: 8px;
  background: #fff3e8;
  color: var(--orange-dark);
  font-weight: 950;
}

.evidence-preview {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  margin-top: 2px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.evidence-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 68px;
  border-radius: 8px;
  background: linear-gradient(135deg, #edf4fa, #fff 60%, #ffe3d7);
}

.evidence-thumb img {
  width: 100%;
  max-height: 64px;
  object-fit: contain;
}

.evidence-preview-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.evidence-preview-body span {
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 900;
}

.evidence-preview-body strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.32;
}

.evidence-preview-body em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.45;
}

.compare-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.detail-compare-list {
  gap: 12px;
  padding: 0 2px 4px 0;
}

.detail-compare-list .car-card {
  flex: 0 0 88%;
}

.detail-compare-list .car-art {
  min-height: 128px;
  padding: 14px;
}

.detail-compare-list .car-body {
  padding: 16px;
}

.compare-chip {
  min-width: 170px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 900;
}

.pros-cons {
  display: grid;
  gap: 10px;
}

.note {
  padding: 14px;
  border-radius: 8px;
  background: #f7f9fc;
}

.note strong {
  color: var(--green);
}

.draft-output {
  display: grid;
  gap: 12px;
}

.draft-block {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.tree-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.tree-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.tree-card-with-thumb {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.tree-thumb {
  width: 86px;
  height: 54px;
  object-fit: contain;
  border-radius: 8px;
  background: linear-gradient(135deg, #edf4fa, #fff 60%, #ffe3d7);
}

.tree-card strong {
  display: block;
  margin-bottom: 6px;
}

.tree-path {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.tree-status {
  margin-top: 8px;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 900;
}

.tree-source {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.submit-feedback {
  min-height: 22px;
  margin: -6px 0 0;
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 800;
}

.submit-feedback:empty {
  display: none;
}

.car-grid.is-refreshed .car-card,
.horizontal-list.is-refreshed .car-card {
  animation: refresh-pop 0.42s ease both;
}

@keyframes refresh-pop {
  0% {
    opacity: 0.3;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .intro-grid,
  .admin-grid,
  .detail-hero,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .score-card {
    position: static;
  }

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

@media (max-width: 620px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand img {
    width: 118px;
  }

  .shell {
    width: min(100% - 24px, 1120px);
    padding: 18px 0;
  }

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

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-art {
    min-height: 220px;
  }
}

/* Mobile app frame: keep the same mobile layout on desktop and phones. */
body {
  background: #dfe4ea;
}

.topbar,
main {
  width: min(100%, 430px);
  margin: 0 auto;
}

.topbar {
  align-items: flex-start;
  flex-direction: column;
  gap: 0;
  padding: 14px 20px;
}

.brand img {
  width: 112px;
}

.shell {
  width: min(100% - 24px, 430px);
  padding: 18px 0;
}

.intro-grid,
.admin-grid,
.detail-hero,
.detail-layout {
  grid-template-columns: 1fr;
}

.intro-grid {
  gap: 8px;
}

.intro-grid.shell {
  width: min(100%, 430px);
  padding-top: 0;
  padding-bottom: 8px;
}

.surface-section.shell {
  width: min(100%, 430px);
  padding: 18px;
}

.intro-grid .question-panel {
  border-top: 0;
  border-right: 0;
  border-left: 0;
  border-radius: 0 0 8px 8px;
}

.question-panel,
.admin-panel,
.detail-hero,
.detail-section,
.score-main,
.score-action-wrap {
  box-shadow: 0 12px 32px rgba(17, 19, 24, 0.08);
}

.question-panel,
.admin-panel {
  padding: 20px;
}

.question-panel.is-collapsed {
  padding-bottom: 16px;
}

.hero-panel.is-collapsed .finder-form {
  margin-top: 18px;
  padding-top: 0;
}

.score-card {
  position: static;
}

h1 {
  font-size: 31px;
}

h2 {
  font-size: 24px;
}

.section-head {
  align-items: flex-start;
  flex-direction: column;
}

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

.detail-hero {
  gap: 16px;
  padding: 20px;
}

.hero-art {
  min-height: 220px;
}

.detail-score {
  align-items: flex-start;
  flex-direction: column;
}
