@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700;800&display=swap");

:root {
  --navy: #14224a;
  --blue: #4d73ea;
  --muted: #6d7898;
  --line: #dfe7f5;
  --soft: #f6f9ff;
  --white: #ffffff;
  --shadow: 0 18px 44px rgba(69, 103, 163, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f4f7ff;
  color: var(--navy);
  font-family: "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", Arial, sans-serif;
}

button,
input {
  font: inherit;
}

.app {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 44px 20px;
}

.hero {
  padding: 12px 4px 28px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
}

.hero h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero em {
  color: var(--blue);
  font-style: normal;
}

.hero p:last-child {
  margin: 20px 0 0;
  color: var(--muted);
}

.panel {
  display: grid;
  grid-template-columns: minmax(300px, 410px) minmax(0, 1fr);
  gap: 22px;
  min-height: 420px;
  padding: 26px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.search-pane,
.preview-pane {
  min-width: 0;
}

.preview-pane {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.status {
  min-height: 20px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
}

.section-label,
label {
  display: block;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
}

.brand-area {
  margin-bottom: 22px;
}

.brand-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.brand-list button {
  min-height: 36px;
  padding: 7px 15px;
  border: 1px solid #dbe5f6;
  border-radius: 999px;
  background: var(--white);
  color: var(--blue);
  cursor: pointer;
}

.brand-list button:hover,
.brand-list button:focus-visible {
  border-color: var(--blue);
  outline: 0;
}

.brand-list button.active {
  background: var(--blue);
  color: var(--white);
}

.search-form {
  position: relative;
}

.search-row {
  display: flex;
}

.search-row input {
  min-width: 0;
  width: 100%;
  padding: 13px;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 8px 0 0 8px;
  color: #050b20;
  font-size: 15px;
  outline: 0;
}

.search-row input:focus {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue);
}

.search-row button {
  flex: 0 0 72px;
  border: 0;
  border-radius: 0 8px 8px 0;
  background: var(--blue);
  color: var(--white);
  cursor: pointer;
}

.suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 72px;
  z-index: 5;
  overflow: hidden;
  max-height: 260px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  box-shadow: 0 8px 20px rgba(69, 103, 163, 0.16);
}

.suggestions button {
  display: flex;
  width: 100%;
  gap: 10px;
  justify-content: space-between;
  padding: 11px 13px;
  border: 0;
  border-bottom: 1px solid #f0f3f8;
  background: var(--white);
  color: var(--navy);
  text-align: left;
  cursor: pointer;
}

.suggestions button:hover,
.suggestions button:focus-visible {
  background: var(--soft);
  outline: 0;
}

.suggestions small {
  flex: 0 0 auto;
  color: var(--muted);
}

.results {
  margin-top: 24px;
}

.result {
  padding: 18px;
  border-radius: 10px;
  background: var(--soft);
}

.result h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.result-card {
  padding: 13px 0;
  border-bottom: 1px solid #e3eaf5;
}

.result-card:last-child {
  border-bottom: 0;
}

.result-card strong {
  display: block;
  line-height: 1.45;
}

.result-card p {
  margin: 5px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.shop {
  display: inline-block;
  margin: 7px 12px 0 0;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.shop:hover,
.shop:focus-visible {
  text-decoration: underline;
  outline: 0;
}

.preview-empty,
.preview-box {
  min-height: 100%;
}

.preview-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  line-height: 1.55;
  text-align: center;
  word-break: keep-all;
}

.preview-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.preview-title h2 {
  margin: 0;
  font-size: 18px;
}

.preview-title span {
  color: var(--muted);
  font-size: 13px;
}

.table-wrap {
  max-height: 345px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

caption {
  width: 1px;
  height: 1px;
  overflow: hidden;
  position: absolute;
  clip: rect(0, 0, 0, 0);
}

th,
td {
  padding: 10px;
  border-bottom: 1px solid #edf1f7;
  text-align: left;
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f5f8ff;
  color: var(--muted);
  font-weight: 800;
}

td {
  color: #26365f;
  line-height: 1.45;
}

.model-pick {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 800;
  text-align: left;
  text-decoration: underline;
  cursor: pointer;
}

.model-pick:hover,
.model-pick:focus-visible {
  color: var(--navy);
  outline: 2px solid rgba(77, 115, 234, 0.35);
  outline-offset: 2px;
}

@media (max-width: 760px) {
  .app {
    padding: 26px 14px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .panel {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 20px;
  }

  .preview-pane {
    padding-left: 0;
    padding-top: 20px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .table-wrap {
    max-height: 320px;
  }
}
