:root {
  --bg: #f3f5f2;
  --surface: #ffffff;
  --soft: #fff0e3;
  --line: #e2e6e1;
  --line-strong: #cdd3cc;
  --ink: #1c2024;
  --sub: #4f575e;      /* 흰 배경 대비 7.4:1 */
  --muted: #687077;    /* 5.0:1 */
  --primary: #ff7a1a;  /* 채움색. 위 글자는 --ink (6.4:1) */
  --primary-dark: #f26a05;
  --primary-ink: #a84300; /* 흰 배경 위 강조 글자 6.2:1 */
  --ok: #15803d;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(28, 32, 36, .04), 0 4px 16px rgba(28, 32, 36, .05);
  --font: 'Wanted Sans Variable', 'Wanted Sans', 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --top: 64px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.55; word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -.02em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.ic { width: 18px; height: 18px; flex: none; }
#app { outline: none; min-height: 60vh; }

/* 시험판 안내 */
.beta { background: #ffe7d2; color: var(--ink); font-size: 13px; text-align: center; padding: 8px 16px; }
.beta b { font-weight: 700; }

/* 상단 */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top-in { height: var(--top); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 8px; }
.brand-mark { width: 30px; height: 30px; }
.brand-name { font-size: 21px; font-weight: 800; letter-spacing: -.04em; }
.nav { display: flex; gap: 4px; }
.nav a { position: relative; padding: 8px 12px; border-radius: 8px; color: var(--sub); font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--ink); background: var(--soft); }
.nav a.on { color: var(--ink); }
.nav a.on::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -13px; height: 2px; background: var(--primary); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.me-link { display: flex; align-items: center; gap: 8px; font-weight: 600; padding: 4px 8px 4px 4px; border-radius: 999px; }
.me-link:hover { background: var(--soft); }
.dot[hidden] { display: none !important; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #dc2626; margin-left: 4px; vertical-align: top; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: var(--radius-sm); border: 1px solid transparent; font-weight: 700; font-size: 15px; cursor: pointer; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn-primary { background: var(--primary); color: var(--ink); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 16px; }
.btn-block { width: 100%; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 10px 0; color: var(--muted); font-size: 13px; cursor: pointer; min-height: 44px; }
.link-btn:hover { color: var(--ink); }
.link-btn .ic { width: 15px; height: 15px; }

/* 칩·뱃지 */
.tag { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 6px; background: #eef1ee; color: var(--sub); font-size: 12.5px; font-weight: 600; }
.chip { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 6px; background: #eceff0; color: var(--sub); font-size: 12px; font-weight: 700; }
.chip-ok { background: #dcfce7; color: #166534; }
.badge-done, .badge-ok { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px 2px 6px; border-radius: 6px; background: #dcfce7; color: #166534; font-size: 12.5px; font-weight: 700; }
.badge-done .ic, .badge-ok .ic { width: 14px; height: 14px; }
.badge-ok { background: #e0f2fe; color: #075985; }
.badge-new { display: inline-flex; padding: 2px 8px; border-radius: 6px; background: var(--soft); color: var(--primary-ink); font-size: 12.5px; font-weight: 700; }
.stars { display: inline-flex; align-items: center; gap: 3px; }
.ic-star { width: 15px; height: 15px; color: #f59e0b; }
.ub { display: inline-flex; align-items: center; justify-content: center; padding: 3px 9px; border-radius: 6px; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.ub-big { padding: 6px 12px; font-size: 14px; }
.u-urgent { background: #fee2e2; color: #b91c1c; }
.u-nice { background: #fef3c7; color: #92400e; }
.u-browse { background: #e0f2fe; color: #075985; }

/* 히어로 */
.hero { border-bottom: 1px solid var(--line); background: var(--surface); }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding: 72px 0 64px; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 800; letter-spacing: -.045em; line-height: 1.08; }
.lead { margin-top: 20px; font-size: 18px; color: var(--sub); max-width: 30em; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-board { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; }
.board-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px 8px; font-size: 15px; }
.board-head a { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; min-height: 32px; }
.board-head .ic { width: 14px; height: 14px; }
.board-item { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 14px 12px; border-top: 1px solid var(--line); }
.board-item:hover { background: #f7f9f6; }
.board-item .ub { min-width: 96px; }
.board-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-budget { color: var(--sub); font-size: 14px; font-variant-numeric: tabular-nums; }

/* 섹션 */
.sec { padding: 48px 0 8px; }
.sec-title { font-size: 21px; font-weight: 800; }
.sec-head { display: flex; justify-content: space-between; align-items: center; margin: 0 0 12px; gap: 12px; }
.sec-head > a:not(.btn) { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 14px; min-height: 44px; }
.sec-head .ic { width: 15px; height: 15px; }
.page .sec-head { margin-top: 40px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.cats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.cat { display: inline-flex; align-items: baseline; gap: 8px; min-height: 48px; padding: 12px 20px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; }
.cat b { font-size: 16px; }
.cat span { color: var(--muted); font-size: 13px; }
.cat:hover { border-color: var(--ink); }
.how { padding-bottom: 72px; }
.how-grid { display: grid; grid-template-columns: 1fr 1fr; margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.how-col { padding: 28px; }
.how-col + .how-col { border-left: 1px solid var(--line); }
.how-col h3 { font-size: 17px; margin-bottom: 14px; color: var(--primary-ink); }
.how-col ol { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 14px; }
.how-col li { counter-increment: s; position: relative; padding-left: 34px; color: var(--sub); }
.how-col li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: var(--ink); font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.how-col li b { display: block; }
.how-col li b { color: var(--ink); }

/* 목록 */
.list { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.list:has(.empty) { background: none; border: 0; }
.row { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; padding: 16px 18px; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row:hover { background: #f7f9f6; }
.row-main { min-width: 0; display: grid; gap: 4px; }
.row-top { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.row-name { font-size: 16px; }
.row-title { color: var(--sub); font-size: 15px; }
.row-title.strong { color: var(--ink); font-weight: 700; font-size: 16px; }
.row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--muted); font-size: 13px; }
.row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; font-size: 13px; white-space: nowrap; }
.row-req { grid-template-columns: 1fr auto; grid-template-areas: 'badge side' 'main side'; row-gap: 8px; align-items: center; }
.row-req .ub { grid-area: badge; justify-self: start; }
.row-req .row-main { grid-area: main; }
.row-req .row-side { grid-area: side; }
.price { font-weight: 800; color: var(--ink); font-size: 15px; font-variant-numeric: tabular-nums; }
.count { color: var(--muted); font-size: 14px; margin: 16px 0 8px; }
.empty { padding: 40px 20px; text-align: center; color: var(--sub); background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); display: grid; gap: 14px; justify-items: center; }
.empty > div, .empty { }
.empty .btn + .btn { margin-left: 6px; }

/* 아바타 */
.av { display: inline-grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 800; flex: none; }
.av-sm { width: 32px; height: 32px; font-size: 14px; }
.av-md { width: 48px; height: 48px; font-size: 19px; }
.av-lg { width: 72px; height: 72px; font-size: 28px; }

/* 페이지 */
.page { padding: 32px 0 80px; }
.narrow { width: min(680px, 100% - 40px); }
.page-title { font-size: 28px; font-weight: 800; }
.page-sub { color: var(--sub); margin-top: 6px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 14px; min-height: 44px; margin-bottom: 8px; }

/* 필터 */
.filters { margin-top: 22px; display: grid; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--sub); font-weight: 600; font-size: 14px; cursor: pointer; }
.fchip:hover { border-color: var(--ink); color: var(--ink); }
.fchip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.fchip.u-urgent, .fchip.u-nice, .fchip.u-browse { border-color: transparent; }
.fchip.u-urgent.on { background: #b91c1c; color: #fff; }
.fchip.u-nice.on { background: #92400e; color: #fff; }
.fchip.u-browse.on { background: #075985; color: #fff; }
.filter-row { display: flex; gap: 8px; }
.search { flex: 1; }
.search input, .select select, .form input:not([type=radio]):not([type=checkbox]), .form select, .form textarea, .dlg select, .dlg textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); font-size: 16px;
}
.form textarea, .dlg textarea { resize: vertical; min-height: 96px; }
.search input:focus, .select select:focus, .form input:focus, .form select:focus, .form textarea:focus, .dlg select:focus, .dlg textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255, 122, 26, .25); }
.select select { padding-right: 36px; cursor: pointer; }

/* 프로필 */
.profile { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
.profile-main { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.p-head { display: flex; gap: 18px; align-items: center; }
.p-name { font-size: 26px; font-weight: 800; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.p-job { color: var(--sub); margin-top: 2px; }
.p-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; }
.p-headline { font-size: 18px; font-weight: 600; margin-top: 22px; }
.p-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.h2 { font-size: 17px; font-weight: 800; margin: 32px 0 10px; padding-top: 24px; border-top: 1px solid var(--line); }
.pre { white-space: pre-line; color: var(--sub); }
.pf { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pf li { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.pf a { display: inline-flex; align-items: center; gap: 6px; color: var(--primary-ink); }
.pf a .ic { width: 15px; height: 15px; }
.pf span { color: var(--muted); font-size: 14px; }
.reviews { list-style: none; margin: 0; padding: 0; display: grid; }
.reviews li { padding: 14px 0; border-top: 1px solid var(--line); }
.reviews li:first-child { border-top: 0; padding-top: 0; }
.rv-top { display: flex; gap: 10px; align-items: center; font-size: 13px; margin-bottom: 4px; }
.rv-stars { color: #f59e0b; letter-spacing: 1px; }
.rv-stars .off { color: #dfe3e0; }
.side { position: sticky; top: calc(var(--top) + 20px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 14px; }
.facts { margin: 0; display: grid; gap: 12px; }
.facts div { display: grid; grid-template-columns: 108px 1fr; gap: 8px; align-items: baseline; }
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd { margin: 0; font-weight: 600; display: flex; flex-wrap: wrap; gap: 4px; }
.side-note { display: flex; gap: 6px; color: var(--muted); font-size: 13px; }
.side-note .ic { width: 15px; height: 15px; margin-top: 2px; }
.mini { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.mini b { font-weight: 700; }

/* 의뢰 상세 */
.req-badges { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.req-title { font-size: 26px; font-weight: 800; margin-top: 14px; }
.req-facts { margin: 20px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.req-facts div { padding: 14px 16px; }
.req-facts div + div { border-left: 1px solid var(--line); }
.req-facts dt { color: var(--muted); font-size: 13px; }
.req-facts dd { margin: 2px 0 0; font-weight: 700; }
.note { display: flex; gap: 6px; align-items: flex-start; color: var(--sub); font-size: 14px; background: #f3f5f2; border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 12px; }
.note .ic { width: 16px; height: 16px; margin-top: 2px; }
.bids { display: grid; gap: 12px; }
.bid { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.bid.picked { border-color: var(--ok); box-shadow: inset 0 0 0 1px var(--ok); }
.bid header { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; }
.bid-facts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 12px 0 0; }
.bid-facts dt { color: var(--muted); font-size: 12.5px; }
.bid-facts dd { margin: 0; font-weight: 700; font-size: 15px; }
.bid-msg { margin-top: 12px; color: var(--sub); font-size: 15px; }
.bid-act { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }

/* 폼 */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.form { display: grid; gap: 16px; margin-top: 20px; }
.form label, .dlg label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.form legend { font-weight: 600; font-size: 14px; margin-bottom: 8px; padding: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checks { display: grid; gap: 6px; align-content: end; }
.form .check { display: flex; align-items: center; gap: 8px; font-weight: 500; min-height: 36px; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); }
.form-err { color: #b91c1c; font-size: 14px; min-height: 0; }
.form-err:empty { display: none; }
.role-pick, .urg-pick { grid-template-columns: 1fr 1fr; }
.urg-pick { grid-template-columns: repeat(3, 1fr) !important; }
.role-pick legend, .urg-pick legend { grid-column: 1 / -1; }
.role, .urg { position: relative; cursor: pointer; }
.role input, .urg input, .fchip-check input, .rate input { position: absolute; opacity: 0; pointer-events: none; }
.role > span { display: grid; gap: 4px; padding: 16px; border: 1.5px solid var(--line-strong); border-radius: var(--radius); min-height: 88px; font-weight: 500; }
.role b { font-size: 16px; }
.role small { color: var(--muted); font-size: 13px; }
.role input:checked + span { border-color: var(--primary); background: var(--soft); }
.role input:focus-visible + span, .urg input:focus-visible + span, .fchip-check input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.urg > span { display: grid; place-items: center; min-height: 52px; border-radius: var(--radius-sm); font-weight: 800; border: 2px solid currentColor; }
.urg input:not(:checked) + span { background: var(--surface); color: var(--sub); border: 1px solid var(--line-strong); font-weight: 600; }
.fchip-check span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-weight: 600; cursor: pointer; }
.fchip-check input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.pf-edit { display: grid; grid-template-columns: 1fr 1.2fr 1.2fr; gap: 8px; }
.logout { margin-top: 32px; }

/* 채팅 */
.chat-page { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start; }
.chat-list { display: grid; gap: 4px; align-content: start; }
.chat-list .page-title { margin-bottom: 12px; }
.thread { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: var(--radius-sm); }
.thread:hover { background: var(--soft); }
.thread.on { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); }
.thread-main { min-width: 0; display: grid; }
.thread-last { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-side { display: grid; justify-items: end; gap: 4px; font-size: 12px; }
.count-dot { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--primary); color: var(--ink); font-weight: 800; font-size: 12px; display: grid; place-items: center; }
.chat-room { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); height: calc(100vh - var(--top) - 140px); min-height: 460px; display: flex; flex-direction: column; overflow: hidden; }
.chat-empty { flex: 1; display: grid; place-items: center; }
.room-head { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.room-back { display: none; width: 44px; height: 44px; place-items: center; margin-left: -10px; }
.room-head .mini { min-width: 0; flex: 0 1 auto; max-width: 60%; }
.room-head .mini > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-req { margin-left: auto; flex: 0 1 auto; font-size: 13px; color: var(--muted); max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; }
.contract-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 16px; background: #f0fdf4; color: #166534; font-weight: 600; font-size: 14px; border-bottom: 1px solid #dcfce7; }
.contract-bar > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.contract-bar.done { background: #f3f5f2; color: var(--sub); border-color: var(--line); }
.contract-bar.review { background: var(--soft); color: var(--ink); border-color: var(--line); }
.contract-bar.review input[name=text] { flex: 1; min-width: 160px; min-height: 38px; padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; }
.rate { display: inline-flex; flex-direction: row-reverse; }
.rate label { cursor: pointer; font-size: 22px; color: #cdd3cc; padding: 0 2px; min-width: 28px; text-align: center; }
.rate label:has(input:checked), .rate label:has(input:checked) ~ label { color: #f59e0b; }
.rate label:has(input:focus-visible) { outline: 3px solid var(--ink); border-radius: 4px; }
.msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: #f7f9f6; }
.sys { align-self: center; display: inline-flex; align-items: center; gap: 6px; max-width: 90%; text-align: center; font-size: 12.5px; color: var(--muted); background: #eceff0; padding: 6px 12px; border-radius: 999px; }
.sys .ic { width: 14px; height: 14px; }
.msg { max-width: 72%; display: flex; align-items: flex-end; gap: 6px; }
.msg p { background: var(--surface); border: 1px solid var(--line); padding: 9px 13px; border-radius: 14px 14px 14px 4px; white-space: pre-wrap; }
.msg time { font-size: 11px; color: var(--muted); white-space: nowrap; }
.msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.msg.mine p { background: var(--primary); color: var(--ink); border-color: var(--primary); border-radius: 14px 14px 4px 14px; }
.composer { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.composer input { flex: 1; min-height: 46px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 16px; }
.composer input:focus { outline: none; border-color: var(--primary); }
.composer .btn { width: 46px; padding: 0; border-radius: 50%; }

/* 대화상자·토스트 */
dialog { border: 0; border-radius: var(--radius); padding: 0; width: min(420px, 100% - 32px); box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
dialog::backdrop { background: rgba(28, 32, 36, .45); }
.dlg { padding: 24px; display: grid; gap: 14px; }
.dlg h2 { font-size: 19px; }
.dlg-act { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 60; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 하단 */
.foot { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: 14px; }
.foot-in { display: grid; gap: 6px; }
.foot-brand { color: var(--ink); font-weight: 800; font-size: 17px; }
.foot-brand span { color: var(--muted); font-weight: 500; font-size: 14px; margin-left: 6px; }
.foot-small { font-size: 12.5px; }
.tabbar { display: none; }

/* 반응형 */
@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; gap: 32px; padding: 48px 0; }
  .two { grid-template-columns: 1fr; gap: 40px; }
  .profile { grid-template-columns: 1fr; }
  .side { position: static; }
  .chat-page { grid-template-columns: 280px 1fr; }
}
@media (max-width: 720px) {
  :root { --top: 56px; }
  .wrap { width: calc(100% - 32px); }
  .narrow { width: calc(100% - 32px); }
  .nav, .hide-sm { display: none; }
  .beta-demo { display: none; }
  .hero-in { padding: 36px 0 32px; }
  .lead { font-size: 16px; }
  .cta .btn { flex: 1; }
  .sec { padding-top: 36px; }
  .how-grid { grid-template-columns: 1fr; }
  .how-col + .how-col { border-left: 0; border-top: 1px solid var(--line); }
  .how-col { padding: 22px; }
  .row { grid-template-columns: auto 1fr; padding: 14px; gap: 12px; }
  .row-side { grid-column: 2; flex-direction: row; align-items: center; gap: 8px; justify-content: flex-start; }
  .row-req { grid-template-columns: 1fr; grid-template-areas: 'badge' 'main' 'side'; gap: 8px; }
  .av-md { width: 42px; height: 42px; font-size: 17px; }
  .profile-main { padding: 20px; }
  .p-name, .req-title { font-size: 22px; }
  .req-facts { grid-template-columns: 1fr; }
  .req-facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 14px; }
  .req-facts dd { margin: 0; text-align: right; }
  .req-facts div + div { border-left: 0; border-top: 1px solid var(--line); }
  .board-item { gap: 8px; padding: 13px 8px; }
  .board-item .ub { min-width: 0; }
  .board-budget { font-size: 13px; }
  .bid-facts { grid-template-columns: repeat(3, 1fr); row-gap: 10px; }
  .bid-act .btn { flex: 1; }
  .grid2, .pf-edit { grid-template-columns: 1fr; }
  .pf-edit { padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
  .role-pick { grid-template-columns: 1fr; }
  .urg-pick { grid-template-columns: repeat(3, 1fr); }
  .filter-row { flex-direction: column; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 2px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .fchip { flex: none; }
  .form .chips, .form fieldset .chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
  .card { padding: 18px; }
  .page { padding: 20px 0 48px; }
  .page-title { font-size: 24px; }

  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a { position: relative; display: grid; justify-items: center; gap: 2px; padding: 8px 0 6px; min-height: 56px; font-size: 11px; color: var(--muted); font-weight: 600; }
  .tabbar svg { width: 24px; height: 24px; }
  .tabbar a.on { color: var(--ink); }
  .tabbar .dot { position: absolute; top: 8px; left: calc(50% + 8px); margin: 0; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }

  .chat-page { display: block; }
  .chat-page.has-active .chat-list { display: none; }
  .chat-page:not(.has-active) .chat-room { display: none; }
  .chat-room { height: calc(100dvh - var(--top) - 64px - 32px - 40px); min-height: 380px; }
  .room-back { display: grid; }
  .msg { max-width: 85%; }
  body[data-page=chat] .foot { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* 약관·처리방침 */
.agree { gap: 2px !important; padding: 12px 14px !important; border: 1px solid var(--line) !important; border-radius: 12px; }
.agree .check { font-size: 14px; align-items: flex-start; padding: 6px 0; min-height: 0; }
.agree .check input { margin-top: 3px; flex: none; }
.agree a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.foot-links { display: flex; gap: 16px; margin-top: 6px; font-size: 13px; }
.foot-links a { color: var(--sub); }
.foot-links a:hover { color: var(--ink); }
.legal { line-height: 1.75; color: var(--sub); font-size: 15px; }
.legal .page-title { color: var(--ink); line-height: 1.3; }
.legal-meta { color: var(--muted); font-size: 13px; margin-top: 8px; }
.legal h2 { color: var(--ink); font-size: 17px; font-weight: 800; margin: 32px 0 8px; }
.legal ol, .legal ul { padding-left: 22px; display: grid; gap: 4px; }
.legal ol ol { list-style: lower-alpha; margin-top: 4px; }
.legal p + p, .legal p + ol, .legal p + ul, .legal ul + p, .legal table + p { margin-top: 8px; }
.legal b { color: var(--ink); }
.legal-key { margin: 24px 0 8px; padding: 18px 20px; background: var(--soft); border-radius: var(--radius); color: var(--ink); }
.legal-key ul { margin-top: 8px; }
.legal-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14px; display: block; overflow-x: auto; }
.legal-table th, .legal-table td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; min-width: 96px; }
.legal-table th { background: var(--bg); color: var(--ink); font-weight: 700; }
.legal-table td:first-child { color: var(--ink); font-weight: 600; white-space: nowrap; }
mark.tbd { background: #ffe08a; color: var(--ink); padding: 0 4px; border-radius: 4px; }
.agree-note { font-size: 13px; color: var(--muted); line-height: 1.6; }
.agree-note a { color: var(--sub); text-decoration: underline; text-underline-offset: 2px; }
.admin-report { display: grid; gap: 6px; padding: 16px 18px; }

/* 10/29 제안 중심 프로필 */
img.av { object-fit: cover; background: var(--line); }
.inline-link { color: var(--primary-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.sec-sub { color: var(--sub); margin: -4px 0 14px; }
.nudge { margin-top: 20px; }
.meter { background: var(--surface); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 10px; box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 16px; }
.nudge .meter { background: var(--soft); box-shadow: none; margin: 0; }
.meter-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 17px; }
.meter-bar { height: 10px; border-radius: 999px; background: #e6e9e5; overflow: hidden; }
.nudge .meter-bar { background: #ffffff; }
.meter-bar span { display: block; height: 100%; background: var(--primary); border-radius: 999px; transition: width .4s ease; }
.meter p { color: var(--sub); }

/* 홈: 이런 일도 맡길 수 있어요 */
.explorer { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 26px; display: grid; gap: 16px; align-content: start; min-height: 360px; }
.ex-title { font-size: 20px; font-weight: 800; }
.ex-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.ex-tab { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .1); color: #e8ebe8; font-weight: 600; font-size: 14px; cursor: pointer; transition: background .15s, color .15s, transform .12s; }
.ex-tab:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.ex-tab:active { transform: scale(.96); }
.ex-tab[aria-pressed="true"] { background: var(--primary); color: var(--ink); }
.ex-tab:focus-visible { outline-color: #fff; }
.ex-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ex-list li { background: rgba(255, 255, 255, .07); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 17px; font-weight: 600; line-height: 1.45; animation: exIn .28s ease both; }
.ex-list li:nth-child(2) { animation-delay: .05s; }
.ex-list li:nth-child(3) { animation-delay: .1s; }
@keyframes exIn { from { opacity: 0; transform: translateY(6px); } }
.ex-link { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 700; min-height: 44px; }
.ex-link .ic { width: 16px; height: 16px; transition: transform .15s; }
.ex-link:hover .ic { transform: translateX(3px); }
.ex-link:focus-visible { outline-color: #fff; }

/* 제안 기다리는 사람 */
.pain-line { color: var(--ink); font-size: 17px; font-weight: 700; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pain-quote { margin: 0; background: var(--soft); border-radius: var(--radius-sm); padding: 18px 20px; }
.pain-quote p { font-size: 19px; font-weight: 700; line-height: 1.5; white-space: pre-line; }

/* 내 정보 폼 */
.form-h { font-size: 17px; font-weight: 800; margin-top: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.form-h:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.photo-card { display: flex; gap: 18px; align-items: center; margin-bottom: 16px; }
.photo-body { display: grid; gap: 4px; }
.photo-act { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.file-btn { cursor: pointer; }
.file-btn:focus-within { outline: 3px solid var(--ink); outline-offset: 2px; }
.pj-edit { display: grid; grid-template-columns: 1.3fr 1.3fr 1fr .8fr; gap: 8px; padding: 12px; background: #f7f9f6; border-radius: var(--radius-sm); }
.pj-edit .pj-wide { grid-column: 1 / -1; }
.pj-edit textarea { min-height: 64px !important; }
.pf .pj-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pf .pre { font-size: 14px; margin-top: 4px; }
.dlg input { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); font-size: 16px; }
.dlg input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255, 122, 26, .25); }
.dlg .grid2 { gap: 12px; }
dialog { width: min(480px, 100% - 32px); }

@media (max-width: 960px) {
  .explorer { min-height: 0; }
}
@media (max-width: 720px) {
  .pj-edit { grid-template-columns: 1fr 1fr; }
  .pj-edit input:nth-child(1), .pj-edit input:nth-child(2) { grid-column: 1 / -1; }
  .photo-card { align-items: flex-start; }
  .explorer { padding: 20px; }
  .ex-tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px; padding: 0 20px 2px; scrollbar-width: none; }
  .ex-tab { flex: none; }
  .ex-list li { font-size: 16px; }
  .pain-quote p { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .ex-list li { animation: none; }
}
/* 메뉴가 4개라 좁은 화면에서 글자가 세로로 쪼개지지 않게 */
.brand-name, .nav a, .me-link .hide-sm { white-space: nowrap; }
@media (max-width: 1040px) {
  .top-in { gap: 16px; }
  .nav a { padding: 8px 9px; font-size: 14.5px; }
  .nav a.on::after { left: 9px; right: 9px; }
  .me-link .hide-sm { display: none; }
}
/* 라벨 안에 든 입력칸이 라벨의 굵은 글씨를 물려받지 않게 */
.form input, .form textarea, .form select, .dlg input, .dlg textarea, .dlg select { font-weight: 400; }
.pj-edit { align-items: end; }
.pj-num { font-size: 13px !important; font-weight: 600; color: var(--sub); gap: 4px !important; }
@media (max-width: 720px) {
  .pj-edit input:nth-child(1), .pj-edit input:nth-child(2) { grid-column: 1 / -1; }
}
.pj-num input { color: var(--ink); }
@media (max-width: 480px) {
  .pj-edit { grid-template-columns: 1fr; }
}
.check-mail { display: grid; gap: 14px; }

/* 구글·카카오 로그인 */
.social { display: grid; gap: 10px; margin-top: 20px; }
.btn-kakao { background: #FEE500; color: rgba(0, 0, 0, .85); }
.btn-kakao:hover { background: #f5dc00; }
.social .btn .ic { width: 20px; height: 20px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin-top: 4px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* 자주 묻는 질문 */
.faq > * { max-width: 760px; }
.faq .sec-title { margin-bottom: 8px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; min-height: 48px; }
.faq details p { margin: 0 0 16px; color: var(--muted); line-height: 1.7; }
