.public-header {
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 88%);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-inner > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-name {
  font-weight: 750;
  letter-spacing: 0.01em;
}

.brand-note {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.step-note {
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.step-note span {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  margin-right: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper);
  color: var(--primary);
  font: 700 12px/1 ui-monospace, monospace;
}

.step-note i {
  width: 48px;
  height: 1px;
  margin-inline: 12px;
  background: var(--line-strong);
}

.public-main {
  padding-block: 58px 80px;
}

.intro {
  width: min(100%, 700px);
  margin-bottom: 32px;
}

.date-line {
  margin-bottom: 10px;
  color: var(--primary);
  font: 700 12px/1.4 ui-monospace, "SFMono-Regular", monospace;
  letter-spacing: 0.08em;
}

.intro h1 {
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(32px, 5vw, 50px);
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.intro > p:last-child {
  margin-top: 12px;
  color: var(--muted);
}

.catalog {
  display: grid;
  gap: 28px;
}

.category-block {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: 0 10px 40px rgb(40 61 70 / 5%);
}

.category-head {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 16px 22px;
}

.category-title {
  display: flex;
  align-items: center;
  gap: 13px;
}

.category-index {
  min-width: 36px;
  color: var(--primary);
  font: 750 12px/1 ui-monospace, "SFMono-Regular", monospace;
  letter-spacing: 0.05em;
}

.category-title h2 {
  font-family: "Songti SC", "STSong", serif;
  font-size: 22px;
  line-height: 1.2;
}

.category-head > span {
  color: var(--muted);
  font-size: 13px;
}

.subcategory + .subcategory {
  border-top: 8px solid var(--canvas);
}

.subcategory-name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  background: #f8fafa;
  color: #40515b;
  font-size: 14px;
  font-weight: 700;
}

.subcategory-name::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

.quote-scroll {
  width: 100%;
  overflow-x: auto;
}

.quote-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  table-layout: fixed;
}

.quote-table th,
.quote-table td {
  border-bottom: 1px solid #edf0f2;
  padding: 12px 14px;
  text-align: left;
  vertical-align: middle;
}

.quote-table th {
  height: 48px;
  background: var(--paper);
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.quote-table tbody tr:last-child td {
  border-bottom: 0;
}

.quote-table tbody tr:hover {
  background: #fbfcfc;
}

.quote-table th:first-child,
.quote-table td:first-child {
  width: 42%;
  padding-left: 22px;
}

.quote-table th:nth-child(2),
.quote-table td:nth-child(2) {
  width: 18%;
}

.quote-table th:nth-child(3),
.quote-table td:nth-child(3) {
  width: 20%;
}

.quote-table th:last-child,
.quote-table td:last-child {
  width: 20%;
}

.item-name {
  overflow-wrap: anywhere;
  font-weight: 600;
}

.quote-table input {
  max-width: 140px;
  font-variant-numeric: tabular-nums;
}

.money-field {
  position: relative;
  display: block;
  max-width: 140px;
}

.money-field::before {
  content: "¥";
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 11px;
  transform: translateY(-50%);
  color: var(--soft);
  font-size: 13px;
}

.money-field input {
  padding-left: 27px;
}

.reference-price {
  color: var(--price);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.reference-price small {
  color: var(--muted);
  font-size: 12px;
}

.identity-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
  align-items: end;
  gap: 32px;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--canvas-blue);
  padding: 28px;
}

.identity-number {
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.identity-card h2 {
  margin-top: 5px;
  font-family: "Songti SC", "STSong", serif;
  font-size: 26px;
}

.identity-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.name-field,
.login-form label {
  display: grid;
  gap: 7px;
  font-size: 14px;
  font-weight: 650;
}

#form-message {
  margin-top: 18px;
}

.submit-bar {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  margin-top: 18px;
}

.submit-bar p {
  color: var(--muted);
  font-size: 14px;
}

.submit-bar strong {
  color: var(--ink);
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

.success-panel {
  width: min(100%, 680px);
  display: grid;
  justify-items: center;
  margin: 60px auto 0;
  border: 1px solid #c8e2d6;
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 52px 28px;
  text-align: center;
}

.success-check {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success);
  font-size: 28px;
  font-weight: 700;
}

.success-label {
  color: var(--success);
  font-size: 13px;
  font-weight: 700;
}

.success-panel h2 {
  margin-top: 7px;
  font-family: "Songti SC", "STSong", serif;
  font-size: 30px;
}

.success-panel .button {
  margin-top: 24px;
}

@media (max-width: 720px) {
  .step-note {
    display: none;
  }

  .public-main {
    padding-block: 38px 64px;
  }

  .intro {
    margin-bottom: 24px;
  }

  .category-head {
    align-items: flex-start;
    padding: 16px;
  }

  .category-head > span {
    margin-top: 3px;
  }

  .subcategory-name {
    padding-inline: 16px;
  }

  .quote-table th:first-child,
  .quote-table td:first-child {
    padding-left: 16px;
  }

  .identity-card {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 22px;
  }

  .submit-bar {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .submit-bar p {
    text-align: center;
  }
}

@media (max-width: 420px) {
  .page-shell {
    width: min(calc(100% - 20px), 1120px);
  }

  .header-inner {
    min-height: 72px;
  }

  .brand-note {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .category-index {
    min-width: auto;
  }

  .category-head > span {
    display: none;
  }
}
