.buy-pc { display: none; }
.buy-mobile { display: block; }

.page-buy {
  background: #fff;
}
@media (max-width: 1023px) {
  .page-buy .site-footer { display: none; }
}
.buy-mobile textarea,
.buy-mobile input,
.buy-mobile button,
.buy-mobile select,
.buy-pc textarea,
.buy-pc input,
.buy-pc button,
.buy-pc select {
  font: inherit;
}

.buy-empty {
  margin: 0;
  padding: 40px 8px;
  text-align: center;
  color: #8a8a8a;
  font-size: 14px;
}
.buy-error {
  margin: 0 0 12px;
  color: var(--brand);
  font-weight: 700;
  font-size: 13px;
}

.buy-head,
.buy-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.buy-head {
  padding: 16px 16px 8px;
}
.buy-head h1 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.04em;
}
.buy-board-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  background: #111;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}
.buy-models {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}
.buy-models span,
.buy-models a,
.buy-models i {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 6px;
  background: #f3f3f3;
  color: #444;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.3;
}
.buy-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
}
.buy-tags span {
  font-size: 12px;
  color: #8a8a8a;
  font-weight: 700;
}
.buy-title {
  display: block;
  margin-top: 10px;
  font-size: 16px;
  letter-spacing: -0.03em;
  line-height: 1.4;
}
.buy-preview {
  margin: 8px 0 0;
  font-size: 13px;
  color: #888;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}
.buy-preview.is-pending {
  color: #b0b0b0;
  font-weight: 700;
}
.buy-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 10px;
  color: #9a9a9a;
  font-size: 12px;
  font-weight: 700;
}
.buy-stats b {
  font-weight: 700;
}

.mo-fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.mo-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 16px 8px;
}
.mo-brand {
  flex: 1;
  min-width: 0;
}
.mo-brand input {
  width: 100%;
  height: 36px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
}
.mo-status {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}
.mo-status a {
  height: 36px;
  padding: 0 10px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #777;
  white-space: nowrap;
}
.mo-status a.is-on {
  border-color: var(--text);
  color: var(--text);
}

.mo-list { padding: 0 16px 88px; }
.buy-card-mo {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
}
.mo-fab {
  position: fixed;
  right: 16px;
  left: auto;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 15;
  box-shadow: 0 6px 18px rgba(227, 30, 36, .28);
}

.mo-subhead {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.mo-back {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.mo-subhead strong { font-size: 16px; }

.mo-write {
  padding: 16px 16px 40px;
}

.buy-form fieldset {
  border: 0;
  margin: 0 0 18px;
  padding: 0;
}
.buy-form legend {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 800;
}
.buy-form legend small {
  margin-left: 6px;
  font-weight: 500;
  color: #999;
}
.buy-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.buy-choice label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
}
.buy-choice input {
  accent-color: var(--brand);
}
.buy-help {
  margin: 8px 0 0;
  color: #999;
  font-size: 12px;
}
.buy-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 800;
}
.buy-field input,
.buy-field textarea,
.chip-input input[type="text"],
.mo-composer textarea,
.pc-composer textarea {
  width: 100%;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 12px 14px;
  font-weight: 500;
  background: #fff;
}
.buy-field textarea { min-height: 140px; resize: vertical; }
.buy-submit,
.pc-composer button,
.mo-composer button {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.chip-input {
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
}
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip-list:empty { display: none; }
.chip-list button {
  border: 0;
  border-radius: 6px;
  background: #f3f3f3;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.chip-input input[type="text"] {
  border: 0;
  padding: 8px 4px;
  outline: none;
}

.mo-detail,
.mo-answers { padding: 18px 16px; }
.mo-detail h1 {
  margin: 8px 0 10px;
  font-size: 22px;
  letter-spacing: -0.04em;
  line-height: 1.35;
}
.mo-meta,
.pc-meta,
.mo-answer header,
.pc-answer header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: #8a8a8a;
  font-size: 12px;
}
.mo-body,
.pc-body,
.mo-answer p,
.pc-answer p {
  margin: 14px 0 0;
  white-space: pre-wrap;
  line-height: 1.65;
  font-size: 15px;
}
.mo-answers {
  border-top: 8px solid #f4f4f4;
  padding-bottom: 140px;
}
.mo-answers h2 { margin: 0 0 16px; font-size: 16px; }
.mo-answer,
.pc-answer {
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
}
.mo-answer.is-adopted,
.pc-answer.is-adopted { background: #f7fff9; margin: 0 -16px; padding: 16px; border-radius: 12px; }
.mo-answer em,
.pc-answer em {
  color: #1a9c4a;
  font-style: normal;
  font-weight: 800;
}
.mo-answer button,
.pc-answer button {
  margin-top: 10px;
  border: 1px solid var(--brand);
  background: #fff;
  color: var(--brand);
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.mo-composer {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 8px;
  padding: 10px 16px 16px;
  background: #fff;
  border-top: 1px solid var(--line);
}
.mo-composer textarea { min-height: 44px; resize: none; }
.mo-composer button { width: 72px; flex: 0 0 auto; height: auto; }
.mo-login-hint {
  padding: 16px;
  text-align: center;
  color: #777;
}
.mo-login-hint a,
.pc-login-hint a { color: var(--brand); font-weight: 700; }

.buy-boards {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 16px 4px;
  scrollbar-width: none;
}
.buy-boards::-webkit-scrollbar { display: none; }
.buy-boards a {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 12px;
  border-radius: 17px;
  background: #f3f3f3;
  color: #555;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
}
.buy-boards a.is-on {
  background: #111;
  color: #fff;
}
.buy-mine {
  color: #555;
  font-size: 13px;
  font-weight: 800;
}
.buy-author {
  color: #555;
  font-weight: 800;
}
.buy-like button {
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}
.buy-like button.is-on {
  border-color: #ffd4d6;
  background: #fff5f5;
  color: var(--brand);
}
.buy-attach {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 18px 0;
}
.buy-attach strong {
  font-size: 13px;
}
.buy-listing {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  background: #f6f7fa;
}
.buy-listing img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
}
.buy-listing b,
.buy-listing em {
  display: block;
}
.buy-listing em { color: var(--brand); font-style: normal; font-weight: 800; }
.buy-mine-sec { padding-top: 8px; }
.buy-mine-sec h2 {
  margin: 16px 16px 8px;
  font-size: 17px;
}
.buy-comment-row {
  display: block;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.buy-comment-row strong { display: block; }
.buy-comment-row p {
  margin: 6px 0 4px;
  color: #555;
}
.buy-comment-row span { color: #8a8a8a; font-size: 12px; }

@media (min-width: 1024px) {
  .buy-mobile { display: none !important; }
  .buy-pc { display: block; }
}
