/* 건설 오픈입찰 — one working column (max 980px): sticky header with tabs, filter bar + cards, detail pages with scrollable tables */
:root {
  --bg: #f1f3f4; --surface: #ffffff; --ink: #1a2126; --muted: #5a656c; --line: #d6dce0;
  --accent: #2563eb; --accent-ink: #ffffff; --accent-soft: #e8effd;
  --warn: #9a5706; --warn-soft: #fbefd9; --bad: #a8322d; --bad-soft: #f8e3e1; --good: #2c7438; --good-soft: #e1f0e2;
  --sans: "IBM Plex Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root {
  --bg: #101418; --surface: #181e23; --ink: #e4e9ec; --muted: #9aa5ac; --line: #2b343b;
  --accent: #7fb0dc; --accent-ink: #0b1319; --accent-soft: #1b2a38;
  --warn: #e3a54d; --warn-soft: #382a13; --bad: #e77d74; --bad-soft: #3a1d1b; --good: #7fc58c; --good-soft: #1d3222; color-scheme: dark } }

* { box-sizing: border-box }
html, body { margin: 0 }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.55; min-height: 100vh; display: flex; flex-direction: column }
#app { flex: 1 }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface) }
button, input, select, textarea { font: inherit; color: inherit }
a { color: var(--accent) }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums }

header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--surface); border-bottom: 1px solid var(--line) }
.wrap { max-width: 980px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)) }
.top .wrap { display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; padding-block: 10px }
.brand { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; border: 0; background: none; cursor: pointer; padding: 0 }
.brand .mark { width: 22px; height: 22px; border-radius: 4px; background: var(--accent); display: grid; place-items: center; color: var(--accent-ink); font-size: 11px; font-weight: 700 }
.who { font-size: 12px; padding: 2px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-weight: 600; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
nav.tabs { display: flex; gap: 2px; margin-left: auto; flex-wrap: wrap }
nav.tabs button { border: 0; background: none; padding: 6px 10px; border-radius: 6px; cursor: pointer; color: var(--muted); font-weight: 500 }
nav.tabs button[aria-current="page"] { color: var(--ink); background: var(--bg) }
nav.tabs button:hover { color: var(--ink) }

main.wrap { padding-block: 24px 48px; display: grid; gap: 20px }
footer.foot { border-top: 1px solid var(--line); background: var(--surface) }
footer.foot .wrap { padding-block: 16px calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; gap: 8px 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted) }
h1 { font-size: 22px; margin: 0; letter-spacing: -0.02em; text-wrap: balance }
h2 { font-size: 16px; margin: 0; text-wrap: balance }
p { margin: 0 }
.eyebrow { font-size: 12px; letter-spacing: 0.06em; color: var(--muted); font-weight: 600 }
.muted { color: var(--muted) }
.small { font-size: 13px }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap }
.stack { display: grid; gap: 12px }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 18px; display: grid; gap: 14px; min-width: 0 }

.btn { border: 1px solid var(--line); background: var(--surface); padding: 8px 14px; border-radius: 6px; cursor: pointer; font-weight: 500; white-space: nowrap; text-decoration: none; color: var(--ink); display: inline-block }
.btn:hover { border-color: var(--muted) }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink) }
.btn.primary:hover { filter: brightness(1.06) }
.btn.danger { color: var(--bad); border-color: var(--bad) }
.btn.sm { padding: 4px 10px; font-size: 13px }
.btn:disabled { opacity: .5; cursor: default }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px }

.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--surface); flex-wrap: wrap }
.seg button { border: 0; background: none; padding: 6px 12px; cursor: pointer; color: var(--muted); font-weight: 500 }
.seg button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent) }
.filters .search { flex: 1 1 200px; min-width: 0 }
.check { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; color: var(--muted); cursor: pointer }

.cards { display: grid; gap: 10px }
.card { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; text-align: left; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; cursor: pointer }
.card:hover { border-color: var(--accent) }
.card .t { font-weight: 600; font-size: 16px }
.card .meta { color: var(--muted); font-size: 13px; display: flex; gap: 6px 14px; flex-wrap: wrap }
.card .side { text-align: right; display: grid; gap: 4px; align-content: start; justify-items: end }
.card.mine { border-left: 3px solid var(--accent) }
@media (max-width: 560px) { .card { grid-template-columns: 1fr } .card .side { text-align: left; justify-items: start } }

.chip { display: inline-block; font-size: 12px; padding: 1px 7px; border-radius: 4px; border: 1px solid var(--line); color: var(--muted); font-weight: 500 }
.chip.org { color: var(--ink); font-weight: 600 }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 99px; white-space: nowrap }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor }
.pill.open { background: var(--accent-soft); color: var(--accent) }
.pill.closed { background: var(--warn-soft); color: var(--warn) }
.pill.awarded { background: var(--good-soft); color: var(--good) }
.pill.cancelled { background: var(--bad-soft); color: var(--bad) }

.notice-no { font-family: var(--mono); font-size: 12px; color: var(--muted) }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 }
dl.facts dt { color: var(--muted); font-size: 13px }
dl.facts dd { margin: 0; min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere }

.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px }
table { border-collapse: collapse; width: 100%; font-size: 14px }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; white-space: nowrap }
th { font-size: 12px; color: var(--muted); font-weight: 600; background: var(--bg) }
td.r, th.r { text-align: right }
tbody tr:last-child td { border-bottom: 0 }
tfoot td { font-weight: 600; background: var(--bg); border-top: 1px solid var(--line); border-bottom: 0 }
td.low { background: var(--good-soft); color: var(--good); font-weight: 600 }

label.f { display: grid; gap: 4px; font-size: 13px; color: var(--muted); min-width: 0 }
label.f > span b { color: var(--bad); font-weight: 600 }
input.in, select.in, textarea.in { width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; background: var(--surface); color: var(--ink); font-size: 15px }
textarea.in { min-height: 72px; resize: vertical }
td input.in { padding: 6px 8px; font-size: 14px; min-width: 70px }
td input.price { text-align: right; font-family: var(--mono); min-width: 120px }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px }
.grid2 > .wide { grid-column: 1 / -1 }

.callout { border-radius: 6px; padding: 12px 14px; font-size: 14px; background: var(--accent-soft); color: var(--ink) }
.callout.warn { background: var(--warn-soft) }
.callout.bad { background: var(--bad-soft) }
.callout.good { background: var(--good-soft) }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding-top: 4px }
.total .v { font-family: var(--mono); font-size: 22px; font-weight: 600 }
.lock { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted) }

.rank { display: grid; grid-template-columns: 36px 1fr auto auto; gap: 8px 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line) }
.rank:last-child { border-bottom: 0 }
.rank .no { font-family: var(--mono); font-weight: 600; color: var(--muted) }
.rank.first .no { color: var(--good) }
@media (max-width: 560px) { .rank { grid-template-columns: 30px 1fr } .rank > :nth-child(n+3) { grid-column: 2 } }

textarea.draft { width: 100%; min-height: 320px; font-family: var(--sans); font-size: 14px; line-height: 1.6; border: 1px solid var(--line); border-radius: 6px; padding: 12px; background: var(--bg); color: var(--ink) }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); border: 1px dashed var(--line); border-radius: 8px; display: grid; gap: 10px; justify-items: center }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 6px; font-size: 14px; z-index: 20; max-width: calc(100% - 32px) }
.back { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0; font-size: 14px; justify-self: start }
.back:hover { color: var(--ink) }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px }
.steps > div { border: 1px solid var(--line); border-radius: 6px; padding: 12px; display: grid; gap: 4px; font-size: 14px }
.steps b { font-size: 13px; color: var(--accent) }

.files { display: grid; gap: 6px }
.file { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg) }
.file .nm { font-weight: 500; min-width: 0; overflow-wrap: anywhere; flex: 1 1 160px }
.ext { font-family: var(--mono); font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 3px; background: var(--accent-soft); color: var(--accent); text-transform: uppercase }
.drop { border: 1px dashed var(--line); border-radius: 6px; padding: 14px; display: grid; gap: 6px; justify-items: start; font-size: 13px; color: var(--muted) }
.drop.over { border-color: var(--accent); background: var(--accent-soft) }
.togs { display: flex; flex-wrap: wrap; gap: 6px }
.tog { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 3px 11px; font-size: 13px; cursor: pointer; color: var(--muted) }
.tog[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); font-weight: 600 }
.contact { display: grid; gap: 8px }
.contact .line { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg) }
.contact .k { font-size: 12px; color: var(--muted); min-width: 64px }
.contact .v { font-weight: 500; flex: 1 1 160px; overflow-wrap: anywhere; user-select: all }
.vcard .intro { color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.meter { height: 10px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); overflow: hidden }
.meter > div { height: 100% }
.auth { max-width: 440px; width: 100%; justify-self: center }
@media (prefers-reduced-motion: no-preference) { .card, .btn { transition: border-color .15s, filter .15s } }
.bidtbl .spec-m { display: none }
@media (max-width: 560px) {
  .bidtbl .spec { display: none }
  .bidtbl .spec-m { display: block; white-space: normal }
  .bidtbl td, .bidtbl th { padding: 8px 4px }
  .bidtbl td input.price { min-width: 92px; width: 92px }
}
.searchbox { display: flex; flex: 1 1 280px; min-width: 0 }
.searchbox select.in { width: auto; flex: none; border-radius: 6px 0 0 6px; border-right: 0; background: var(--bg); font-size: 14px }
.searchbox input.in { flex: 1; min-width: 0; border-radius: 0 6px 6px 0 }

/* ---------- 휴대폰 ---------- */
@media (max-width: 640px) {
  .top .wrap { padding-block: 8px 0; gap: 4px 10px }
  .who { display: none }
  nav.tabs { order: 3; flex-basis: 100%; margin: 0 -6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; gap: 0 }
  nav.tabs::-webkit-scrollbar { display: none }
  nav.tabs button { flex: none; white-space: nowrap; padding: 10px 10px 11px; border-radius: 0 }
  nav.tabs button[aria-current="page"] { background: none; color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent) }
  main.wrap { padding-block: 16px 40px; gap: 16px }
  h1 { font-size: 20px }
  .panel { padding: 14px }
  input.in, select.in, textarea.in, td input.in, .searchbox select.in { font-size: 16px }
  .btn { min-height: 40px }
  .btn.sm { min-height: 36px; padding: 6px 12px }
  .back { padding: 8px 0; font-size: 15px }
  .check { min-height: 40px; font-size: 15px }
  .check input { width: 20px; height: 20px }
  .tog { padding: 7px 12px; font-size: 14px }
  dl.facts a { display: inline-block; padding: 6px 0 }
  .seg button { padding: 8px 12px }
}
/* 호스팅 업체의 오른쪽 아래 표시가 마지막 내용을 가리지 않도록 하단 여백 */
footer.foot .wrap { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)) }

/* 첫 화면 대표 문구 */
.hero { background: var(--accent-soft); border: 1px solid var(--line); border-radius: 10px; padding: 22px 20px; display: grid; gap: 10px }
.hero-t { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.3; color: var(--ink); text-wrap: balance }
.hero-s { font-size: 16px; color: var(--muted); line-height: 1.6 }
.hero-brand { font-size: 15px; font-weight: 700; color: var(--muted) }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 6px }
.hero-tags span { font-size: 14px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface) }
.hero .hero-s + .hero-s { margin-top: -6px }
.hero-pts { margin: 2px 0 4px; padding-left: 18px; display: grid; gap: 4px; font-size: 14px }
@media (max-width: 640px) { .hero { padding: 18px 16px } .hero-t { font-size: 22px } }
.linkbtn { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-align: inherit }
.linkbtn:hover { filter: brightness(1.15) }

/* 자동 견적 비교 (막대) */
.cmp { gap: 10px }
.cmp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 4px 0 2px }
.cmp-stats > div { display: flex; flex-direction: column; gap: 4px }
.cmp-stats strong { font-size: 22px; font-family: var(--mono); letter-spacing: -0.02em }
.cmp-stats .cmp-low { color: var(--good) }
.cmp-bars { display: flex; flex-direction: column; gap: 12px }
.cmp-lbl { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 5px }
.cmp-nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.cmp-lbl b { white-space: nowrap }
.cmp-track { height: 10px; border-radius: 99px; background: var(--bg); overflow: hidden }
.cmp-fill { height: 100%; border-radius: 99px; background: var(--muted); opacity: .55 }
.cmp-row.first .cmp-fill { background: var(--good); opacity: 1 }
.cmp-row.first .cmp-nm { font-weight: 600 }
.cmp-foot { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; flex-wrap: wrap }
.cmp-diff { color: var(--good); font-weight: 600 }

/* 메뉴의 실무 도구 링크 */
nav.tabs a.navlink { padding: 6px 10px; border-radius: 6px; color: var(--muted); font-weight: 500; text-decoration: none }
nav.tabs a.navlink:hover { color: var(--ink) }
/* 구매업무 진행 현황 */
.pb-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px }
.pb-stat { display: grid; gap: 2px; text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 10px 12px; cursor: pointer }
.pb-stat span { font-size: 13px; color: var(--muted) }
.pb-stat strong { font-size: 22px; font-family: var(--mono) }
.pb-stat strong.bad { color: var(--bad) }
.pb-stat.on { border-color: var(--accent); background: var(--accent-soft) }
.pb-list { display: grid; gap: 4px }
.pb-row { display: grid; gap: 4px; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 10px 2px; cursor: pointer; width: 100% }
.pb-row:last-child { border-bottom: 0 }
.pb-row:hover b { color: var(--accent) }
.pb-top { display: flex; gap: 8px; align-items: baseline; justify-content: space-between; min-width: 0 }
.pb-top b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.pb-top span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.pb-bad { color: var(--bad); font-weight: 600 } .pb-warn { color: var(--warn); font-weight: 600 } .pb-good, .pb-acc, .pb-mute { color: var(--muted) }
.cmp-fill.pb-fill-acc { background: var(--accent); opacity: 1 } .cmp-fill.pb-fill-warn { background: var(--warn); opacity: 1 }
.cmp-fill.pb-fill-bad { background: var(--bad); opacity: 1 } .cmp-fill.pb-fill-good { background: var(--good); opacity: 1 }
@media (max-width: 520px) { .pb-stats { grid-template-columns: repeat(2, 1fr) } }
/* 단가 추이 그래프 */
.trend-chart svg { width: 100%; height: auto; display: block }
.trend-chart .tg { stroke: var(--line); stroke-dasharray: 3 4 }
.trend-chart .tl { fill: var(--muted); font-size: 12px; font-family: var(--sans) }
.trend-chart .tline { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round }
.trend-chart .tdot { fill: var(--accent) }
/* 판매 희망 */
.card.offer { cursor: default }
.card.offer:hover { border-color: var(--line) }
.card.offer.mine { border-left: 3px solid var(--accent) }
/* 한 줄로 공고 쓰기 */
.panel.qd { border-color: var(--accent); background: linear-gradient(var(--accent-soft), var(--surface) 70%) }
/* 오늘의 구매업무 */
.today-stats { grid-template-columns: repeat(3, 1fr) }
.td-list { display: grid; border-top: 1px solid var(--line) }
.td-row { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 11px 2px; cursor: pointer; width: 100% }
.td-row:last-child { border-bottom: 0 }
.td-row svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round }
.td-row > div { display: grid; gap: 1px }
.td-row b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.td-row:hover b { color: var(--accent) }
.td-go { font-size: 22px; color: var(--muted); line-height: 1 }
.td-bad { color: var(--bad) }
/* 영업 현황 */
.sales-stats { grid-template-columns: repeat(2, 1fr); row-gap: 14px }
.sales-chart { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px }
.sbars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; height: 200px; align-items: end }
.sbar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; min-width: 0 }
.sbar-fill { width: 100%; max-width: 72px; background: var(--accent); border-radius: 6px 6px 2px 2px; opacity: .85 }
/* 입찰 등록 사전 분석 */
.pa-list { display: grid; border-top: 1px solid var(--line) }
.pa-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line) }
.pa-row:last-child { border-bottom: 0 }
/* 공고 사전 검토 */
.panel.chk { border-color: var(--warn) }
.panel.chk.ok { border-color: var(--good) }
.chk-list { display: grid; gap: 10px }
.chk-row { display: grid; grid-template-columns: 20px 1fr; gap: 8px; align-items: start }
.chk-row > div { display: grid; gap: 1px }
.chk-ic { color: var(--warn); font-size: 15px; line-height: 1.5 }
.chk-row.bad .chk-ic, .chk-row.bad b { color: var(--bad) }

/* ===== 2026-11 개편: 로고 · 첫 화면 · 목록 · 하단 메뉴 · 결과 카드 ===== */
.brand2 { border: 0; background: none; padding: 0; cursor: pointer; font-weight: 800; font-size: 22px; letter-spacing: -0.03em; color: var(--accent); font-family: var(--sans) }
.brand2 span { color: var(--accent) }
.bell { position: relative; border: 0; background: none; padding: 6px; cursor: pointer; display: none; color: var(--ink) }
.bell svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round }
.bell-n { position: absolute; top: 0; right: 0; min-width: 16px; height: 16px; border-radius: 8px; background: var(--bad); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; padding: 0 3px }
.m-only { display: none }
.btn.lg { padding: 12px 20px; font-size: 15px; font-weight: 600; border-radius: 8px }
.hero2 { text-align: center; display: grid; justify-items: center; gap: 10px; padding: 28px 8px 10px }
.hero2-eb { font-size: 14px; color: var(--muted) }
.hero2-t { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.3 }
.hero2-s { color: var(--muted); font-size: 15px }
.hero2-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 6px }
.m-br { display: none }
.hsearch { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px 6px 4px 16px }
.hsearch:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft) }
.hs-ic { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round }
.hsearch input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; padding: 12px 0; font-size: 16px; color: var(--ink) }
.hs-filter { border: 0; background: none; padding: 8px; border-radius: 8px; cursor: pointer; color: var(--muted) }
.hs-filter.on, .hs-filter:hover { background: var(--bg); color: var(--ink) }
.hs-filter svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; display: block }
.hchips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-top: -6px; padding-bottom: 2px }
.hchips::-webkit-scrollbar { display: none }
.hchip { flex: none; border: 0; background: var(--bg); color: var(--ink); border-radius: 99px; padding: 6px 13px; font-size: 14px; cursor: pointer; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line) }
.hchip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); box-shadow: none }
.list-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: -8px; scroll-margin-top: 70px }
.list-head h2 { font-size: 18px; margin-right: auto }
.linkbtn.more { color: var(--muted); font-weight: 500; font-size: 14px }
.seg.vt button { padding: 4px 12px; font-size: 13px }
.ncard { display: grid; gap: 4px; text-align: left; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; cursor: pointer; color: var(--ink) }
.ncard:hover { border-color: var(--accent) }
.ncard.mine { border-left: 3px solid var(--accent) }
.nc-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted) }
.nc-tag { margin-left: 6px; font-size: 11px; padding: 1px 6px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); font-weight: 600 }
.nc-dd { font-weight: 700; font-size: 13px; white-space: nowrap; font-family: var(--mono) }
.nc-dd.acc { color: var(--accent) } .nc-dd.bad { color: var(--bad) } .nc-dd.good { color: var(--good) } .nc-dd.muted { color: var(--muted) }
.nc-t { font-weight: 700; font-size: 16px; letter-spacing: -0.01em }
.nc-sub { font-size: 13px; color: var(--muted) }
.ltable table { font-size: 14px }
.ltable td { white-space: normal; vertical-align: top; padding: 10px 12px }
.ltable td:nth-child(2), .ltable td:nth-child(3), .ltable td:nth-child(4), .ltable td:nth-child(5) { white-space: nowrap }
.lrow { cursor: pointer }
.lrow:hover td, .lrow:focus td { background: var(--accent-soft); outline: 0 }
.rcard { gap: 14px }
.rc-pill { font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 99px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line) }
.rc-t { font-size: 19px; font-weight: 800; letter-spacing: -0.02em }
.rc-stats { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); padding-bottom: 14px }
.rcard .cmp-row.first .cmp-fill { background: var(--accent) }
.rcard .cmp-fill { background: #cbd5e1; opacity: 1 }
.rc-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px }
.my-list { gap: 0; padding: 4px 16px }
.my-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 14px 2px; cursor: pointer; text-align: left; width: 100%; color: var(--ink) }
.my-row:last-child { border-bottom: 0 }
.my-row > div { display: grid; gap: 2px }
.bnav { display: none }
@media (max-width: 767px) {
  nav.tabs, .who { display: none }
  .bell, .m-only { display: inline-flex; margin-left: auto }
  .top .wrap { flex-wrap: nowrap }
  .hero2 { padding-top: 14px }
  .hero2-t { font-size: 25px }
  .m-br { display: inline }
  .bnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)) }
  .bn-i { display: grid; justify-items: center; gap: 2px; border: 0; background: none; color: var(--muted); font-size: 11px; cursor: pointer; padding: 4px 0 }
  .bn-i svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round }
  .bn-i[aria-current="page"] { color: var(--accent); font-weight: 600 }
  .bn-main { color: var(--accent); font-weight: 600 }
  .bn-main svg { width: 27px; height: 27px; stroke-width: 2 }
  main.wrap { padding-bottom: 90px }
  footer.foot .wrap { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)) }
  .toast { bottom: calc(76px + env(safe-area-inset-bottom, 0px)) }
  .rc-stats strong { font-size: 18px }
  .ltable th:nth-child(3), .ltable td:nth-child(3) { display: none }
}
/* 로그인 필요 안내 */
.gate { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 48px 16px; max-width: 420px; margin: 0 auto }
.gate-ic { width: 34px; height: 34px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round }
.gate h2 { font-size: 20px; font-weight: 800 }
.gate-btn { min-width: 200px; margin-top: 8px }
/* 첫 화면 체험 카드 */
.trybox { display: grid; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px }
.trybox h2 { font-size: 18px; font-weight: 800 }
.try-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px }
.try-card { display: grid; justify-items: center; gap: 4px; text-align: center; border: 1px solid var(--line); border-radius: 10px; padding: 18px 10px; text-decoration: none; color: var(--ink); background: var(--surface) }
.try-card:hover { border-color: var(--accent) }
.try-card svg { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round }
.try-card span { font-size: 13px; color: var(--muted) }
.empty2 { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 36px 16px }
.empty2 svg { width: 30px; height: 30px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round }
.empty2 b { font-size: 16px }
.empty2 .btn { margin-top: 6px }
.seg.seg-ink button { color: var(--ink); font-weight: 600; padding: 7px 16px }
.seg.seg-ink button[aria-pressed="true"] { color: var(--accent); background: var(--accent-soft) }
/* 판매공고 */
.sortsel { border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer }
.ocard { display: grid; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px }
.ocard.mine { border-left: 3px solid var(--accent) }
.ocard.picked { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft) }
.oc-top { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted) }
.oc-top > span:first-child { margin-right: auto }
.oc-save { border: 0; background: none; padding: 2px; cursor: pointer; color: var(--muted) }
.oc-save svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; display: block }
.oc-save.on { color: var(--accent) } .oc-save.on svg { fill: currentColor }
.oc-body { display: flex; gap: 12px; align-items: flex-start }
.oc-main { display: grid; gap: 3px; min-width: 0; flex: 1 }
.oc-t { font-size: 16px; letter-spacing: -0.01em }
.oc-note { white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.oc-img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); flex: none }
.oc-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 10px }
.f.two { display: grid; grid-template-columns: 2fr 1fr; gap: 8px }
.panel.qreq { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft) }
.mpanel { border-color: var(--accent) }
.m-list { display: grid; gap: 8px }
.m-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px }
@media (max-width: 520px) { .m-row { grid-template-columns: 1fr auto } .m-row > span { grid-column: 1 / -1; order: 3 } }
.mk-head { display: flex; align-items: flex-start; gap: 12px }
.mk-head .btn { margin-left: auto; flex: none }
.mk-eb { font-size: 11px; letter-spacing: 0.08em; color: var(--accent); font-weight: 600 }
.mk-lead { font-size: 15px }
/* 공급업체 찾기 필터 */
.vf-row { display: flex; flex-wrap: wrap; gap: 8px }
.vchip { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 8px; padding: 9px 16px; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer }
.vchip[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); font-weight: 600 }
.vsel { padding-right: 28px; appearance: auto }
.vsearch { background: var(--bg) }
.vsel { width: auto; max-width: 130px; padding: 9px 10px }
.brand2 { display: inline-flex; align-items: center; gap: 7px } .brand-ic { border-radius: 7px; display: block }
/* 요금제 */
.pr-head { display: grid; justify-items: center; gap: 6px; text-align: center; padding-top: 8px }
.pr-head h1 { font-size: 26px; font-weight: 800 }
.pr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; max-width: 860px; width: 100%; margin: 0 auto }
.pr-card { display: grid; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px }
.pr-card.pro { border: 1.5px solid var(--accent) }
.pr-card .row { justify-content: space-between }
.pr-name { font-size: 18px }
.pr-badge { font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 99px; background: var(--good-soft); color: var(--good) }
.pr-price { margin-top: 10px } .pr-price strong { font-size: 26px; font-weight: 800; font-family: var(--sans) }
.pr-btn { width: 100%; margin: 10px 0 6px; text-align: center }
.pr-list { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; font-size: 14px }
.pr-list li { display: flex; gap: 8px }
.pr-ck { color: var(--accent); font-weight: 700 }
.pr-all { font-weight: 500 }
.pr-foot { max-width: 860px; margin: 0 auto; width: 100%; display: flex; gap: 6px }
@media (max-width: 640px) { .pr-grid { grid-template-columns: 1fr } .pr-head h1 { font-size: 22px } }
.pr-hero { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 18px 8px 26px; border-bottom: 1px solid var(--line) }
.pr-logo { color: var(--accent); font-weight: 800; font-size: 18px; letter-spacing: -0.02em }
.pr-big { font-size: 24px; font-weight: 800; line-height: 1.5; letter-spacing: -0.02em }
@media (max-width: 640px) { .pr-big { font-size: 20px } }
/* 간편 등록 · 접수 확인 */
.simple-form { gap: 16px }
.simple-form .f > span:first-child { font-size: 13px; color: var(--muted) }
.acc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px }
.acc-btn { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 12px; font: inherit; font-weight: 600; cursor: pointer; color: var(--ink) }
.acc-btn[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-soft) }
.panel.receipt { border-color: var(--good) }
.panel.receipt details summary { cursor: pointer; color: var(--muted) }
/* 초기 첫 화면 (공고가 적을 때) */
.vals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; max-width: 560px; margin-top: 14px }
.vals > div { display: grid; justify-items: center; gap: 6px; font-size: 13px; font-weight: 500 }
.vals svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round }
.starts { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 18px }
.starts h2 { font-size: 17px }
.start-card { display: grid; grid-template-columns: 26px 1fr auto; gap: 14px; align-items: center; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; cursor: pointer; color: var(--ink); width: 100% }
.start-card:hover { border-color: var(--accent) }
.start-card svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round }
.start-card > div { display: grid; gap: 2px } .start-card b { font-size: 16px } .start-card span { font-size: 13.5px; color: var(--muted) }
/* 알림 */
.bell { display: inline-flex }
.top .bell { margin-left: 4px }
.td-row.read b { font-weight: 500; color: var(--muted) }
.dot-new { width: 9px; height: 9px; border-radius: 50%; background: var(--accent) }
.panel.qjoin { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft) }
@media (max-width: 767px) { .top .bell { margin-left: auto } }
