* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Pretendard, Arial, sans-serif;
}
body {
  background: #f4f7fb;
  color: #0f172a;
}
a {
  text-decoration: none;
  color: inherit;
}
button,
input,
select {
  font: inherit;
}
button {
  border: 0;
  cursor: pointer;
}
.header {
  min-height: 76px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
}
.header-inner {
  width: 94%;
  max-width: 1500px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  width: 52px;
}
.brand h1 {
  font-size: 25px;
}
.brand p {
  font-size: 12px;
  color: #64748b;
  font-weight: 800;
  margin-top: 3px;
}
.nav {
  display: flex;
  gap: 34px;
  font-weight: 900;
}
.nav a.active {
  color: #2563eb;
}
.actions {
  display: flex;
  gap: 10px;
}
.btn {
  border-radius: 14px;
  font-weight: 900;
  padding: 12px 18px;
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}
.btn.primary {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}
.btn.small {
  padding: 8px 11px;
  border-radius: 10px;
  font-size: 13px;
}
.wrap {
  width: 94%;
  max-width: 1500px;
  margin: 26px auto 70px;
}
.toolbar {
  background: #fff;
  border: 1px solid #dbe4f0;
  border-radius: 18px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 130px 120px 130px 170px 120px;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}
.toolbar input,
.toolbar select {
  height: 46px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  padding: 0 13px;
  outline: none;
}
.toolbar input:focus,
.toolbar select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  color: #475569;
}
.summary strong {
  color: #0f172a;
}
.table-shell {
  background: #fff;
  border: 1px solid #dbe4f0;
  border-radius: 18px;
  overflow: hidden;
}
.table-scroll {
  overflow: auto;
  max-height: 760px;
}
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 1320px;
  table-layout: fixed;
}
th,
td {
  border-bottom: 1px solid #e2e8f0;
  padding: 12px;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}
th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #eff6ff;
  color: #1e3a8a;
  font-weight: 900;
  white-space: nowrap;
}
td {
  background: #fff;
  line-height: 1.45;
  word-break: keep-all;
  overflow-wrap: break-word;
}
th:nth-child(1),
td:nth-child(1) {
  width: 52px;
  text-align: center;
}
th:nth-child(2),
td:nth-child(2) {
  width: 220px;
}
th:nth-child(3),
td:nth-child(3) {
  width: 112px;
}
th:nth-child(4),
td:nth-child(4) {
  width: 210px;
}
th:nth-child(5),
td:nth-child(5) {
  width: 90px;
}
th:nth-child(6),
td:nth-child(6) {
  width: 130px;
}
th:nth-child(7),
td:nth-child(7) {
  width: 120px;
}
th:nth-child(8),
td:nth-child(8) {
  width: 230px;
}
th:nth-child(9),
td:nth-child(9),
th:nth-child(10),
td:nth-child(10),
th:nth-child(11),
td:nth-child(11) {
  width: 160px;
}
th:nth-child(12),
td:nth-child(12) {
  width: 150px;
}
tbody tr:hover td {
  background: #f8fafc;
}
.name {
  font-weight: 900;
  color: #0f172a;
  line-height: 1.45;
  word-break: keep-all;
  overflow-wrap: normal;
}
.sub {
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
  line-height: 1.45;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 9px 0;
}
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 9px;
  white-space: nowrap;
}
.value {
  font-weight: 900;
  white-space: normal;
}
.value-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.value-line {
  display: block;
  border-radius: 8px;
  background: #f8fafc;
  padding: 5px 7px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  color: #0f172a;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.value-line.primary-line {
  background: #eef6ff;
  color: #0f3f8f;
}
.value-more {
  font-size: 12px;
  color: #64748b;
  font-weight: 800;
  margin-top: 2px;
}
.select-toggle {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 1000;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: 0.16s ease;
}
.select-toggle:hover {
  border-color: #2563eb;
  background: #eff6ff;
}
.select-toggle.selected {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
  box-shadow: 0 7px 14px rgba(37, 99, 235, 0.22);
}
.select-toggle span {
  line-height: 1;
  transform: translateY(-1px);
}
.muted {
  color: #94a3b8;
}
.compare-box {
  margin-top: 16px;
  background: #fff;
  border: 1px solid #dbe4f0;
  border-radius: 18px;
  padding: 18px;
}
.compare-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.compare-head h3 {
  font-size: 20px;
}
.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.compare-card {
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  padding: 14px;
  background: #f8fafc;
}
.compare-card h4 {
  font-size: 16px;
  line-height: 1.35;
  margin-bottom: 10px;
}
.compare-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.metric {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px;
  min-height: 62px;
}
.metric span {
  display: block;
  font-size: 12px;
  color: #64748b;
  font-weight: 800;
  margin-bottom: 5px;
}
.metric strong {
  font-size: 15px;
  word-break: break-word;
}
.empty {
  padding: 54px;
  text-align: center;
  color: #64748b;
}
.loading {
  opacity: 0.6;
  pointer-events: none;
}
@media (max-width: 1000px) {
  .header-inner,
  .nav,
  .actions {
    flex-wrap: wrap;
  }
  .toolbar {
    grid-template-columns: 1fr 1fr;
  }
  .toolbar .primary {
    grid-column: 1 / -1;
  }
  .summary {
    align-items: flex-start;
    flex-direction: column;
  }
  .table-scroll {
    max-height: none;
  }
}
@media (max-width: 560px) {
  .toolbar {
    grid-template-columns: 1fr;
  }
  .brand h1 {
    font-size: 21px;
  }
  .nav {
    gap: 18px;
  }
  .wrap {
    width: 96%;
  }
}
