:root {
  --ink: #203a31;
  --muted: #77867d;
  --border: #dce4d9;
  --paper: #f6f7f1;
  --accent: #315c48;
  --white: #fff;
  --serif: Georgia, "Songti SC", serif;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Noto Sans KR", sans-serif;
  font-size: 14px;
  line-height: 1.55;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.42;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #8dae91;
  outline-offset: 3px;
}
a {
  color: inherit;
  text-decoration: none;
}
.topbar {
  max-width: 1400px;
  margin: auto;
  height: 104px;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.wordmark {
  font-size: 25px;
  font-weight: 750;
  letter-spacing: 3px;
}
.wordmark span {
  font-size: 8px;
  letter-spacing: 3.2px;
  font-weight: 500;
  display: block;
  margin-top: 1px;
}
.text-button {
  border: 0;
  background: none;
  color: var(--muted);
  padding: 9px 4px;
}
#account-bar {
  display: flex;
  align-items: center;
  gap: 24px;
}
#buyer-name {
  font-weight: 650;
}
main {
  max-width: 1400px;
  margin: auto;
  padding: 50px 48px 90px;
}
.eyebrow {
  letter-spacing: 2.8px;
  font-size: 10px;
  font-weight: 650;
  color: var(--muted);
}
.login-view {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 90px;
  align-items: center;
  min-height: 650px;
  max-width: 1060px;
  margin: auto;
}
.login-intro h1 {
  font-size: 48px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -2px;
  margin: 26px 0;
}
.login-intro h1 span {
  color: #647c6b;
}
.intro-copy {
  font-size: 18px;
  color: #607666;
  line-height: 1.9;
}
.intro-copy span {
  font-size: 14px;
}
.intro-line {
  height: 1px;
  width: 75px;
  background: #94aa98;
  margin: 32px 0;
}
.small-caption {
  color: var(--muted);
  font-size: 12px;
}
.login-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 48px 40px;
  border-radius: 3px;
  box-shadow: 0 20px 50px #315c4808;
}
.login-card h2 {
  font-weight: 500;
  font-size: 25px;
  margin: 18px 0 34px;
}
.login-card h2 small {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.login-card label {
  display: grid;
  gap: 9px;
  font-size: 12px;
  margin-top: 23px;
  color: #65796b;
}
input,
select {
  border: 1px solid #ccd8cd;
  border-radius: 3px;
  background: #fff;
  padding: 13px 14px;
  color: var(--ink);
}
.login-card input {
  width: 100%;
  font-size: 15px;
}
.primary {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 3px;
  padding: 15px 20px;
  width: 100%;
  margin-top: 32px;
  text-align: left;
}
.primary span {
  float: right;
}
.error {
  color: #893e35;
  background: #fff0ec;
  border: 1px solid #e8c7be;
  padding: 12px 16px;
  border-radius: 4px;
}
.catalog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 32px;
  gap: 20px;
}
.catalog-heading h1 {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -1px;
  margin: 10px 0;
}
.catalog-heading h1 span {
  font-size: 17px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
}
.collection-tag {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  border: 1px solid #cad8c9;
  padding: 9px 14px;
  border-radius: 30px;
}
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 28px 0 36px;
}
.stats article {
  background: #eaf0e5;
  border: 1px solid #d3dfce;
  position: relative;
  border-radius: 5px;
  padding: 24px 30px;
}
.stats article:nth-child(2) {
  background: #fff;
}
.stats article > span:first-child {
  display: block;
  font-size: 12px;
  color: #657b69;
}
.stats strong {
  display: block;
  font-family: var(--serif);
  font-size: 64px;
  line-height: 1.3;
  font-weight: 400;
  margin: 8px 0;
}
.stat-suffix {
  position: absolute;
  bottom: 30px;
  right: 30px;
  font-size: 10px;
  color: #8a9b8b;
  letter-spacing: 3px;
}
.tabs {
  display: flex;
  gap: 30px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 34px;
}
.tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 14px 0;
  background: none;
  color: var(--muted);
  font-size: 14px;
}
.tabs button.active {
  border-bottom-color: var(--accent);
  color: var(--ink);
  font-weight: 650;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
}
.section-heading h2 {
  font-weight: 500;
  font-size: 19px;
  margin: 0;
}
.section-heading h2 span {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 8px;
}
.section-heading > span {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1.5px;
}
.brand-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
  background: #fff;
  padding: 10px 28px;
  border: 1px solid var(--border);
  border-radius: 5px;
}
.brand-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 6px;
  border-bottom: 1px solid #e8eee4;
  background: none;
  width: 100%;
  text-align: left;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  color: var(--ink);
}
.brand-item:hover {
  background: #f5f8f1;
}
.brand-index {
  font-size: 11px;
  color: #90a08e;
  min-width: 20px;
}
.brand-label {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
}
.brand-label small {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  display: block;
  margin-top: 5px;
}
.brand-total {
  font-size: 26px;
  font-family: var(--serif);
  font-weight: 400;
}
.brand-total small {
  font-size: 9px;
  font-family: inherit;
  color: var(--muted);
  display: block;
}
.filters {
  display: flex;
  gap: 18px;
  margin: 0 0 30px;
  align-items: flex-end;
}
.filters label {
  display: grid;
  gap: 8px;
  min-width: 260px;
}
.filters label.search-label {
  flex: 1;
}
.filters label > span {
  font-size: 11px;
  color: var(--muted);
}
.filters input,
.filters select {
  width: 100%;
}
.product-table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 5px;
}
.product-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 1090px;
  font-size: 12px;
}
.product-table th {
  padding: 14px 16px;
  text-align: left;
  color: #6d806f;
  font-weight: 500;
  background: #eef3e8;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.product-table th small {
  display: block;
  color: #98a394;
  font-size: 10px;
  font-weight: 400;
}
.product-table td {
  padding: 17px 16px;
  border-bottom: 1px solid #e6ece1;
  vertical-align: middle;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.product-table td.brand-cell {
  min-width: 140px;
  font-size: 11px;
  font-weight: 650;
}
.image-cell {
  width: 104px;
}
.product-image {
  width: 70px;
  height: 85px;
  object-fit: contain;
  display: block;
  background: white;
}
.reference-caption {
  display: block;
  font-size: 9px;
  color: var(--muted);
  max-width: 85px;
  text-align: center;
  margin-top: 4px;
}
.name-cell {
  min-width: 200px;
}
.product-name {
  border: 0;
  padding: 0;
  background: none;
  color: var(--ink);
  text-align: left;
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-line;
}
.product-name:hover {
  text-decoration: underline;
}
.product-table .muted {
  color: #a4ada0;
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin: 28px 0;
}
.pagination button {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
}
.pagination span {
  font-size: 12px;
  color: var(--muted);
}
.empty {
  text-align: center;
  padding: 60px;
  color: var(--muted);
}
.loading {
  color: var(--muted);
  font-size: 12px;
}
footer {
  max-width: 1400px;
  border-top: 1px solid var(--border);
  margin: auto;
  padding: 30px 48px 38px;
  display: flex;
  justify-content: space-between;
  color: #889987;
  font-size: 9px;
  letter-spacing: 2.5px;
}
dialog {
  max-width: 720px;
  width: calc(100% - 40px);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 30px;
  max-height: 85vh;
  color: var(--ink);
  background: var(--paper);
}
dialog::backdrop {
  background: #173a2c70;
}
#close-dialog {
  display: block;
  margin-left: auto;
}
#dialog-content > img {
  display: block;
  max-width: 200px;
  height: 220px;
  object-fit: contain;
  margin: auto;
}
#dialog-content h2 {
  font-size: 21px;
  white-space: pre-line;
}
#dialog-content h3 {
  font-size: 15px;
}
#dialog-content dl {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px 18px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
  font-size: 12px;
}
#dialog-content dt {
  color: var(--muted);
}
#dialog-content dd {
  margin: 0;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
@media (max-width: 780px) {
  .topbar {
    height: 86px;
    padding: 0 22px;
  }
  .wordmark {
    font-size: 20px;
  }
  #account-bar {
    gap: 12px;
    font-size: 11px;
  }
  main {
    padding: 30px 22px 60px;
  }
  .login-view {
    display: block;
    min-height: 0;
  }
  .login-intro {
    margin: 18px 0 32px;
  }
  .login-intro h1 {
    font-size: 34px;
    line-height: 1.4;
  }
  .intro-copy {
    font-size: 15px;
  }
  .intro-line,
  .small-caption {
    display: none;
  }
  .login-card {
    padding: 28px 24px;
  }
  .catalog-heading {
    align-items: flex-start;
    display: block;
  }
  .catalog-heading h1 {
    font-size: 28px;
  }
  .catalog-heading h1 span {
    display: block;
    font-size: 13px;
    margin-top: 6px;
  }
  .collection-tag {
    display: none;
  }
  .stats {
    gap: 12px;
    margin-bottom: 22px;
  }
  .stats article {
    padding: 18px;
  }
  .stats strong {
    font-size: 50px;
  }
  .stat-suffix {
    position: static;
    font-size: 8px;
  }
  .brand-grid {
    grid-template-columns: 1fr;
    padding: 6px 18px;
  }
  .brand-item {
    padding: 18px 3px;
  }
  .filters {
    flex-direction: column;
    align-items: stretch;
  }
  .filters label {
    min-width: 0;
  }
  .section-heading h2 {
    font-size: 17px;
  }
  .section-heading h2 span {
    display: block;
    margin: 4px 0;
  }
  .product-table-wrap {
    background: none;
    border: 0;
    overflow: visible;
  }
  .product-table {
    display: block;
    min-width: 0;
    width: 100%;
  }
  .product-table thead {
    display: none;
  }
  .product-table tbody {
    display: block;
  }
  .product-table tr {
    display: grid;
    grid-template-columns: 90px 1fr;
    margin-bottom: 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 16px;
    gap: 8px 14px;
  }
  .product-table td {
    display: block;
    border: 0;
    padding: 0;
    min-width: 0 !important;
    font-size: 12px;
  }
  .product-table td.brand-cell {
    grid-column: 1/-1;
    font-size: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e6ece1;
  }
  .product-table td.image-cell {
    grid-column: 1;
    grid-row: 2/5;
  }
  .product-table td.name-cell {
    grid-column: 2;
    padding: 4px 0 8px;
  }
  .product-table td.data-cell {
    grid-column: 2;
    color: #526955;
    font-size: 11px;
  }
  .data-cell:before {
    content: attr(data-label) "  ";
    color: #93a18d;
    margin-right: 5px;
    font-size: 10px;
  }
  .product-image {
    width: 80px;
    height: 110px;
  }
  .reference-caption {
    font-size: 8px;
  }
  .product-name {
    font-size: 13px;
  }
  .pagination {
    gap: 16px;
  }
  .pagination button {
    font-size: 10px;
    padding: 9px;
  }
  .section-heading > span {
    letter-spacing: 0;
    font-size: 10px;
  }
  footer {
    padding: 24px 22px;
    font-size: 8px;
  }
}

.login-card .small-caption { display: block; }
.header-tools { display: flex; align-items: center; gap: 26px; }
.language-control { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.language-control select { padding: 8px 10px; min-width: 104px; }
.dialog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dialog-toolbar #close-dialog { margin-left: 0; }
.login-intro h1 span:first-child { color: var(--ink); }
@media (max-width: 760px) {
  .topbar { height: auto; min-height: 100px; padding-block: 18px; gap: 16px; align-items: flex-start; }
  .header-tools { flex-direction: column; align-items: flex-end; gap: 8px; min-width: 0; }
  .language-control > span { display: none; }
  #account-bar { justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
  .wordmark { flex-shrink: 0; font-size: 21px; }
  .wordmark span { letter-spacing: 1px; }
}
@media (max-width: 600px) { #account-bar { gap: 8px; flex-wrap: wrap; justify-content: flex-end; } #buyer-name { font-size: 11px; } }
