:root {
  --bg: #f4f6f9; --card: #fff; --line: #e2e7ee; --tx: #16202b; --mu: #687586;
  --ac: #e8590c; --ac-tx: #fff; --ac-soft: #fff1e8; --ok: #13804a; --ok-soft: #e0f5e9;
  --bad: #c2352b; --bad-soft: #fde5e3; --info-soft: #e8f0ff; --info: #2457c5;
  --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10161d; --card: #19222c; --line: #2b3643; --tx: #e8eef5; --mu: #98a5b3;
    --ac: #ff8a3d; --ac-tx: #1a0d03; --ac-soft: #3a2414; --ok: #4fd18a; --ok-soft: #133625;
    --bad: #ff7b6f; --bad-soft: #3d1c1a; --info-soft: #1b2a45; --info: #8db1ff;
  }
}
* { box-sizing: border-box; min-width: 0; }
body { margin: 0; background: var(--bg); color: var(--tx); font: 15px/1.6 -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; }
a { color: var(--info); }
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 16px; background: var(--card); border-bottom: 1px solid var(--line); }
.logo { font-size: 18px; color: var(--tx); text-decoration: none; white-space: nowrap; }
.logo b { color: var(--ac); }
#nav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
#nav a, #nav button { font-size: 14px; }
main { max-width: 760px; margin: 0 auto; padding: 16px; }
.foot { max-width: 760px; margin: 24px auto 40px; padding: 0 16px; color: var(--mu); font-size: 12px; }
h1 { font-size: 21px; margin: 4px 0 14px; }
h2 { font-size: 17px; margin: 0 0 10px; }
.muted { color: var(--mu); }
.small { font-size: 13px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 12px 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 16px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--tx); font: inherit; cursor: pointer; text-decoration: none; }
.btn.primary { background: var(--ac); border-color: var(--ac); color: var(--ac-tx); font-weight: 600; }
.btn.soft { background: var(--ac-soft); border-color: transparent; color: var(--ac); }
.btn.danger { color: var(--bad); }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }
.hero { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 14px; }
.hero h1 { margin: 0 0 6px; }
.hero p { margin: 0 0 14px; color: var(--mu); }
.filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
@media (max-width: 600px) { .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
label { display: block; font-size: 13px; color: var(--mu); }
input, select, textarea { width: 100%; margin-top: 4px; padding: 10px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg); color: var(--tx); font: inherit; }
textarea { min-height: 96px; resize: vertical; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 520px) { .form { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--tx); font-size: 14px; }
.check input { width: auto; margin-top: 4px; }
.consent { background: var(--bg); border-radius: 10px; padding: 12px; font-size: 13px; color: var(--mu); }
.consent ul { margin: 6px 0 0; padding-left: 18px; }
.err { color: var(--bad); font-size: 14px; min-height: 1em; margin: 8px 0 0; }
.wish { display: block; color: inherit; text-decoration: none; }
.wish:hover { border-color: var(--ac); }
.wish-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.wish h3 { font-size: 16px; margin: 0; }
.price { font-weight: 700; color: var(--ac); white-space: nowrap; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { font-size: 12px; padding: 3px 9px; border-radius: 20px; background: var(--bg); color: var(--mu); }
.tag.good { background: var(--ok-soft); color: var(--ok); }
.tag.hot { background: var(--ac-soft); color: var(--ac); }
.tag.off { background: var(--bad-soft); color: var(--bad); }
.spec { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; margin: 0; }
.spec dt { color: var(--mu); font-size: 14px; }
.spec dd { margin: 0; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.space { justify-content: space-between; }
.notice { background: var(--info-soft); color: var(--info); border-radius: 10px; padding: 10px 12px; font-size: 14px; margin: 10px 0; }
.notice.warn { background: var(--ac-soft); color: var(--ac); }
.prop { border-top: 1px solid var(--line); padding: 12px 0; }
.prop:first-of-type { border-top: 0; }
.thread { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.bubble { max-width: 80%; padding: 8px 12px; border-radius: 14px; background: var(--bg); white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble.mine { align-self: flex-end; background: var(--ac-soft); }
.bubble time { display: block; font-size: 11px; color: var(--mu); margin-top: 2px; }
.empty { text-align: center; color: var(--mu); padding: 30px 0; }
.phone { font-size: 18px; font-weight: 700; }
.lbl { font-size: 13px; color: var(--mu); margin: 0 0 6px; }
.choice { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.choice:last-child { border-bottom: 0; }
.choice > span { font-size: 14px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.seg label { display: block; margin: 0; padding: 0; color: var(--tx); font-size: 13px; cursor: pointer; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.seg label:has(input) { padding: 7px 12px; border-left: 1px solid var(--line); }
.seg label:first-child { border-left: 0; }
.seg label:has(input:checked) { background: var(--ac); color: var(--ac-tx); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--info); outline-offset: -2px; }
.neg { color: var(--bad); }
.view-switch { text-align: center; margin-top: 14px; }
.view-switch a { color: var(--mu); font-size: 12px; }
/* PC 버전: 넓은 화면, 목록 두 줄 배치, 입력 칸은 휴대폰 규칙 무시 */
html.pc main, html.pc .foot { max-width: 1080px; }
html.pc .filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
html.pc .form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html.pc #list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
html.pc #list > .empty { grid-column: 1 / -1; }
