/* 척척해결 · 생활 심부름·대행 서비스 (고객 · 파트너 · 관리자) */
:root {
  --bg: #FFF8EE;
  --surface: #FFFFFF;
  --surface-2: #FBF2E4;
  --line: #EADFCF;
  --line-soft: #F3EBDF;
  --text: #1D1A2E;
  --muted: #676174;
  --primary: #4B32D9;
  --primary-ink: #3621B0;
  --primary-soft: #ECE8FD;
  --accent: #FFB21F;
  --accent-ink: #7A4F00;
  --accent-soft: #FFF0CC;
  --ok: #12804F;
  --ok-soft: #E1F4EA;
  --warn: #9A5400;
  --warn-soft: #FFEFD6;
  --danger: #C8283F;
  --danger-soft: #FDE6E9;
  --r: 18px;
  --r-sm: 12px;
  --shadow: 0 1px 2px rgba(29, 26, 46, .05), 0 6px 20px -8px rgba(29, 26, 46, .14);
  --display: "Bagel Fat One", "Pretendard Variable", system-ui, sans-serif;
  --body: "Pretendard Variable", "Pretendard", system-ui, sans-serif;
  --tabbar: 64px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body.er { margin: 0; min-height: 100vh; font-family: var(--body); font-size: 15px; line-height: 1.55; color: var(--text); background: var(--bg); word-break: keep-all; overflow-wrap: anywhere; }
body.er.er-lock { overflow: hidden; }
:where(.er) button, :where(.er) input, :where(.er) select, :where(.er) textarea { font: inherit; color: inherit; }
:where(.er) button { cursor: pointer; }
:where(.er) a { color: var(--primary); }
.er :focus-visible { outline: 3px solid rgba(75, 50, 217, .4); outline-offset: 2px; }
.er [hidden] { display: none !important; }
.er-sprites { position: absolute; width: 0; height: 0; overflow: hidden; }
.er-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.er-muted { color: var(--muted); }
.er-r { text-align: right; }
.er svg { flex: none; }

/* ---------- 상단 ---------- */
.er-band { height: 28px; display: flex; align-items: center; justify-content: center; padding: 0 12px; font-size: 12px; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.er-top { position: sticky; top: 0; z-index: 30; background: rgba(255, 248, 238, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.er-top__inner { max-width: 1240px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 10px; }
.er-brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); margin-right: auto; min-width: 0; }
.er-brand__mark { width: 32px; height: 32px; }
.er-brand__name { font-family: var(--display); font-size: 21px; letter-spacing: -.01em; line-height: 1; white-space: nowrap; }
.er-brand__role { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--text); color: #fff; white-space: nowrap; }
.er-roles { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.er-roles__item { padding: 6px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--muted); white-space: nowrap; }
.er-roles__item.is-on { background: var(--primary); color: #fff; }
.er-reset { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--muted); }
.er-reset:hover { color: var(--text); border-color: #D9CBB6; }
.er-cnav { display: none; border-top: 1px solid var(--line-soft); }
.er-cnav__inner { max-width: 1240px; margin: 0 auto; padding: 0 16px; display: flex; gap: 4px; }
.er-cnav__item { position: relative; padding: 11px 14px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; }
.er-cnav__item.is-on { color: var(--text); box-shadow: inset 0 -3px 0 var(--primary); }
.er-cnav__dot { position: absolute; top: 9px; right: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--danger); }

.er-main { max-width: 1240px; margin: 0 auto; padding: 18px 16px 24px; }
.er--customer .er-main { padding-bottom: calc(var(--tabbar) + 40px); }

@media (max-width: 420px) {
  .er-brand__role { display: none; }
  .er-reset span { display: none; }
  .er-reset { width: 36px; padding: 0; justify-content: center; }
  .er-brand__name { font-size: 19px; }
  .er-roles__item { padding: 6px 9px; }
}

/* ---------- 하단 탭(모바일) ---------- */
.er-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-top: 1px solid var(--line); }
.er-tabbar__item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11.5px; font-weight: 600; color: var(--muted); text-decoration: none; }
.er-tabbar__item svg { width: 22px; height: 22px; }
.er-tabbar__item.is-on { color: var(--primary); }
.er-tabbar__item--main svg { width: 26px; height: 26px; padding: 4px; border-radius: 9px; background: var(--accent); color: var(--text); }

/* ---------- 공고 대응표·알림 ---------- */
.er-fab { position: fixed; right: 12px; bottom: calc(var(--tabbar) + 12px + env(safe-area-inset-bottom)); z-index: 26; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--text); color: #fff; font-size: 13px; font-weight: 700; box-shadow: 0 8px 20px -6px rgba(29, 26, 46, .45); }
.er--partner .er-fab, .er--admin .er-fab { bottom: 16px; }
.er--apply .er-fab { bottom: calc(80px + env(safe-area-inset-bottom)); }
.er-toast { position: fixed; left: 50%; bottom: calc(var(--tabbar) + 64px); z-index: 60; transform: translateX(-50%); width: min(440px, calc(100% - 32px)); padding: 12px 16px; border-radius: 14px; background: var(--text); color: #fff; font-size: 14px; line-height: 1.45; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); }
.er-toast.is-in { animation: er-toast .25s ease-out; }
@keyframes er-toast { from { opacity: 0; transform: translate(-50%, 8px); } }

dialog.er-sheet, dialog.er-modal, dialog.er-addr { border: 0; padding: 0; color: var(--text); background: var(--surface); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .45); }
dialog::backdrop { background: rgba(29, 26, 46, .45); }
.er-sheet { width: min(640px, calc(100% - 24px)); max-height: calc(100% - 48px); border-radius: 20px; }
.er-sheet__body { padding: 20px; }
.er-sheet__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.er-sheet__title { margin: 2px 0 0; font-size: 20px; }
.er-sheet__foot { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); font-size: 13px; color: var(--muted); }
.er-map { list-style: none; margin: 0; padding: 0; counter-reset: m; }
.er-map__row { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); counter-increment: m; }
.er-map__need { font-size: 14px; }
.er-map__need::before { content: counter(m) ". "; font-weight: 700; color: var(--primary); }
.er-map__show { font-size: 13px; font-weight: 700; text-decoration: none; }
@media (min-width: 720px) { .er-map__row { grid-template-columns: 1fr 200px; align-items: center; } .er-map__show { text-align: right; } }
.er-modal { width: min(420px, calc(100% - 32px)); border-radius: 20px; }
.er-modal__body { padding: 22px; }
.er-modal__title { margin: 0 0 8px; font-size: 18px; font-weight: 800; }
.er-modal__text { margin: 0 0 18px; color: var(--muted); font-size: 14.5px; }

/* ---------- 글자 ---------- */
.er-eyebrow { margin: 0 0 4px; font-size: 12.5px; font-weight: 700; color: var(--muted); letter-spacing: .01em; }
.er-eyebrow a { color: inherit; text-decoration: none; }
.er-display { margin: 0; font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1.12; letter-spacing: -.01em; }
.er-display--sm { font-size: 28px; }
.er-h1 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.er-h2 { margin: 30px 0 12px; font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.er-h3 { margin: 0 0 12px; font-size: 17px; font-weight: 800; }
.er-h4 { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 14px; font-weight: 800; }
.er-m-only { display: inline; }
@media (min-width: 720px) { .er-m-only { display: none; } .er-display { font-size: 44px; } .er-display--sm { font-size: 34px; } .er-h1 { font-size: 28px; } }

/* ---------- 버튼·입력 ---------- */
.er-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 0 18px; border-radius: 14px; border: 1px solid transparent; font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: transform .08s; }
.er-btn:active { transform: translateY(1px); }
.er-btn:disabled { opacity: .5; cursor: default; }
.er-btn--primary { background: var(--primary); color: #fff; }
.er-btn--primary:hover { background: var(--primary-ink); }
.er-btn--accent { background: var(--accent); color: var(--text); }
.er-btn--accent:hover { background: #F5A500; }
.er-btn--ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.er-btn--soft { background: var(--primary-soft); color: var(--primary-ink); }
.er-btn--danger { background: var(--danger); color: #fff; }
.er-btn--block { width: 100%; }
.er-btn--sm { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.er-btn--xs { min-height: 32px; padding: 0 10px; font-size: 13px; border-radius: 10px; }
.er-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); }
.er-linkbtn { display: inline-flex; align-items: center; gap: 4px; padding: 6px 2px; border: 0; background: none; color: var(--primary); font-size: 14px; font-weight: 700; }
.er-input { width: 100%; min-height: 46px; padding: 10px 13px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 16px; }
.er-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(75, 50, 217, .16); }
select.er-input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
textarea.er-input { resize: vertical; line-height: 1.55; }
.er-field { display: block; margin: 14px 0 0; border: 0; padding: 0; min-width: 0; }
.er-label { display: block; margin: 0 0 7px; font-size: 13.5px; font-weight: 700; padding: 0; }
.er-hint { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.er-err { margin: 8px 0 0; font-size: 13.5px; font-weight: 600; color: var(--danger); }
.er-grid2 { display: grid; gap: 0 12px; }
@media (min-width: 560px) { .er-grid2 { grid-template-columns: 1fr 1fr; } }
.er-inputwrap { position: relative; display: block; }
.er-inputwrap em { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); }
.er-inputwrap .er-input { padding-right: 36px; text-align: right; font-variant-numeric: tabular-nums; }
.er-inputwrap--lg .er-input { font-size: 22px; font-weight: 800; min-height: 54px; }
.er-check { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 14.5px; }
.er-check input { width: 20px; height: 20px; accent-color: var(--primary); }
.er-search { position: relative; display: block; }
.er-search > svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.er-search .er-input { padding-left: 40px; }
.er-search--sm .er-input { min-height: 40px; font-size: 14px; }

.er-chip { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; font-weight: 600; color: var(--text); text-decoration: none; white-space: nowrap; }
.er-chip b { font-weight: 800; color: var(--muted); }
.er-chip small { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.er-chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.er-chip[aria-pressed="true"] b, .er-chip[aria-pressed="true"] small { color: #E3DEFF; }
.er-chip:disabled { cursor: default; }
.er-chip--more { color: var(--primary); }
.er-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.er-chips::-webkit-scrollbar { display: none; }
.er-chips--wrap { flex-wrap: wrap; overflow: visible; }

.er-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 11.5px; font-weight: 700; color: var(--muted); white-space: nowrap; vertical-align: middle; }
.er-badge--mock { background: var(--accent-soft); border-color: #F6D98E; color: var(--accent-ink); }
.er-badge--urgent { background: var(--danger-soft); border-color: #F5BBC4; color: var(--danger); }
.er-badge--new { background: var(--primary); border-color: var(--primary); color: #fff; }

.er-status { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; background: var(--surface-2); color: var(--muted); }
.er-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.er-status--received { background: var(--accent-soft); color: var(--accent-ink); }
.er-status--priced { background: #FFE4D6; color: #9A3B0B; }
.er-status--paid { background: #E0F0FF; color: #11558F; }
.er-status--assigned { background: var(--primary-soft); color: var(--primary-ink); }
.er-status--accepted { background: #E3F2F7; color: #0D5A6F; }
.er-status--done { background: var(--ok-soft); color: var(--ok); }
.er-status--canceled { background: #EEECEF; color: #5B5763; }
.er-status--consult { background: var(--surface-2); color: var(--muted); }

.er-page { min-width: 0; }
.er-pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 4px 0 18px; flex-wrap: wrap; }
.er-empty { padding: 28px 16px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r); list-style: none; }
.er-demo-link { display: inline-flex; margin-top: 10px; padding: 6px 10px; border-radius: 10px; border: 1px dashed #C9BFF5; background: #F7F5FF; font-size: 13px; font-weight: 700; text-decoration: none; }

/* 서비스 색 */
.er-tone--violet { --tone: #4B32D9; --tone-soft: #ECE8FD; }
.er-tone--sky { --tone: #1569B8; --tone-soft: #E1EFFC; }
.er-tone--mint { --tone: #0F7A62; --tone-soft: #DDF3EC; }
.er-tone--amber { --tone: #A15C00; --tone-soft: #FFEFCF; }
.er-tone--rose { --tone: #B3305A; --tone-soft: #FCE4EC; }
.er-tone--ink { --tone: #2B2840; --tone-soft: #E9E8F0; }
.er-tone--leaf { --tone: #3D7A1E; --tone-soft: #E7F3DC; }
.er-tone--sand { --tone: #7A5A2E; --tone-soft: #F4EADB; }

/* ---------- 홈 ---------- */
.er-hello { display: grid; gap: 16px; padding: 8px 0 4px; }
.er-hello__lead { margin: 10px 0 0; max-width: 560px; color: var(--muted); font-size: 15.5px; }
.er-quick { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 22px; background: var(--primary); color: #fff; text-decoration: none; box-shadow: 0 14px 30px -14px rgba(75, 50, 217, .7); position: relative; overflow: hidden; }
.er-quick::after { content: ""; position: absolute; right: -30px; top: -40px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255, 178, 31, .22); }
.er-quick__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--accent); color: var(--text); }
.er-quick__icon svg { width: 28px; height: 28px; }
.er-quick__text { display: grid; gap: 2px; min-width: 0; position: relative; z-index: 1; }
.er-quick__text strong { font-size: 19px; font-weight: 800; }
.er-quick__text span { font-size: 14px; color: #DCD5FF; }
.er-quick__go { width: 24px; height: 24px; margin-left: auto; position: relative; z-index: 1; }
.er-quicktypes { display: flex; flex-wrap: wrap; gap: 6px; }
@media (min-width: 960px) {
  .er-hello { grid-template-columns: 1.1fr .9fr; align-items: end; column-gap: 40px; padding-top: 18px; }
  .er-hello__text { grid-row: span 2; }
}

.er-svcnav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 22px 0 0; padding: 14px 10px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.er-svcnav__item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 2px; border: 0; background: none; border-radius: 14px; text-decoration: none; color: var(--text); text-align: center; }
.er-svcnav__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--tone-soft); color: var(--tone); }
.er-svcnav__icon svg { width: 25px; height: 25px; }
.er-svcnav__name { font-size: 12.5px; font-weight: 700; line-height: 1.3; }
.er-svcnav__item.is-on .er-svcnav__icon { background: var(--tone); color: #fff; }
@media (min-width: 720px) { .er-svcnav { grid-template-columns: repeat(8, 1fr); } }
.er-svcnav--compact { display: flex; overflow-x: auto; scrollbar-width: none; margin: 0 0 18px; padding: 8px; gap: 2px; }
.er-svcnav--compact::-webkit-scrollbar { display: none; }
.er-svcnav--compact .er-svcnav__item { flex: 0 0 82px; }
.er-svcnav--compact .er-svcnav__icon { width: 40px; height: 40px; border-radius: 13px; }
.er-svcnav--compact .er-svcnav__icon svg { width: 21px; height: 21px; }
.er-svcnav--compact .er-svcnav__name { font-size: 12px; }
@media (min-width: 960px) { .er-svcnav--compact { justify-content: space-between; } .er-svcnav--compact .er-svcnav__item { flex: 1 1 0; } }

.er-cards { display: grid; gap: 12px; }
@media (min-width: 720px) { .er-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .er-cards { grid-template-columns: repeat(4, 1fr); } }
.er-card { display: flex; flex-direction: column; padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); scroll-margin-top: 90px; }
.er-card:target { outline: 3px solid var(--tone); }
.er-card__head { display: flex; align-items: center; gap: 10px; }
.er-card__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: var(--tone-soft); color: var(--tone); }
.er-card__icon svg { width: 22px; height: 22px; }
.er-card__icon--lg { width: 56px; height: 56px; border-radius: 18px; }
.er-card__icon--lg svg { width: 30px; height: 30px; }
.er-card__name { margin: 0; font-size: 17px; font-weight: 800; }
.er-card__desc { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.er-card__facts { margin: 12px 0 0; display: grid; gap: 8px; font-size: 13.5px; }
.er-card__facts div { display: grid; grid-template-columns: 64px 1fr; gap: 8px; }
.er-card__facts dt { color: var(--muted); font-weight: 600; }
.er-card__facts dd { margin: 0; }
.er-card__facts strong { color: var(--tone); }
.er-card__foot { display: flex; gap: 8px; margin-top: auto; padding-top: 14px; }
.er-card__foot .er-btn { flex: 1; min-height: 42px; font-size: 14px; }
.er-card .er-btn--primary { background: var(--tone); }
.er-tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.er-tags li { padding: 2px 8px; border-radius: 8px; background: var(--tone-soft, var(--surface-2)); color: var(--tone, var(--text)); font-size: 12.5px; font-weight: 600; }
.er-tags--lg li { padding: 4px 10px; font-size: 13.5px; }

.er-contact__row { display: grid; gap: 8px; }
@media (min-width: 720px) { .er-contact__row { grid-template-columns: repeat(3, 1fr); } }
.er-contact__btn { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 12px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); text-align: left; }
.er-contact__btn svg { width: 24px; height: 24px; color: var(--primary); }
.er-contact__btn span { display: grid; }
.er-contact__btn strong { font-size: 15px; }
.er-contact__btn small { font-size: 12.5px; color: var(--muted); }
.er-contact__btn--talk { background: var(--accent-soft); border-color: #F6D98E; }
.er-contact__btn--talk svg { color: var(--accent-ink); }
.er-contact__btn--talk small { color: var(--accent-ink); }
.er-support { scroll-margin-top: 80px; }
.er-faq { display: grid; gap: 8px; }
.er-faq__item { border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.er-faq__item summary { padding: 14px 16px; font-weight: 700; font-size: 14.5px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.er-faq__item summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 20px; line-height: 1; }
.er-faq__item[open] summary::after { content: "−"; }
.er-faq__item summary::-webkit-details-marker { display: none; }
.er-faq__item p { margin: 0; padding: 0 16px 14px; color: var(--muted); font-size: 14px; }
.er-support__links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 12px; }
.er-support__links .er-linkbtn { color: var(--muted); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 바로접수 ---------- */
.er-apply__grid { display: grid; gap: 16px; }
@media (min-width: 960px) {
  .er-apply__grid { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; gap: 24px; }
  .er-est { position: sticky; top: 124px; }
}
.er-step { padding: 18px; margin-bottom: 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); scroll-margin-top: 90px; }
.er-step__title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 17px; font-weight: 800; }
.er-step__title small { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.er-step__no { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 9px; background: var(--text); color: var(--accent); font-family: var(--display); font-size: 14px; font-weight: 400; }
.er-types { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 560px) { .er-types { grid-template-columns: repeat(3, 1fr); } }
.er-type { display: grid; gap: 1px; min-height: 58px; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); text-align: left; }
.er-type__label { font-size: 14.5px; font-weight: 700; }
.er-type__hint { font-size: 12px; color: var(--muted); }
.er-type[aria-checked="true"] { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); }
.er-type[aria-checked="true"] .er-type__label { color: var(--primary-ink); }

.er-textbox { border-radius: 14px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.er-textbox:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(75, 50, 217, .16); }
.er-textbox .er-textarea { border: 0; border-radius: 0; box-shadow: none; min-height: 104px; }
.er-textbox__tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px; border-top: 1px solid var(--line-soft); background: #FFFCF7; }
.er-textbox__state { font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.er-voice { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--text); color: #fff; font-size: 14px; font-weight: 700; }
.er-voice__dot { display: none; width: 8px; height: 8px; border-radius: 50%; background: #FF5468; }
.er-voice.is-on { background: var(--danger); }
.er-voice.is-on .er-voice__dot { display: inline-block; background: #fff; animation: er-blink 1s infinite; }
@keyframes er-blink { 50% { opacity: .2; } }

.er-photos { margin-top: 14px; }
.er-photos__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.er-photos__head .er-label { margin: 0; }
.er-photos__list { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 0; padding: 0; list-style: none; }
.er-photos__item, .er-photos__add { position: relative; width: 84px; height: 84px; border-radius: 14px; overflow: hidden; }
.er-photos__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.er-photos__rm { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(29, 26, 46, .72); color: #fff; }
.er-photos__rm svg { width: 14px; height: 14px; }
.er-photos__add label { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 100%; height: 100%; border: 1.5px dashed #D3C4AC; border-radius: 14px; background: #FFFCF7; color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; }
.er-photos__add svg { width: 24px; height: 24px; color: var(--primary); }

.er-seg { display: inline-flex; padding: 3px; gap: 3px; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--line); max-width: 100%; }
.er-seg--wrap { flex-wrap: wrap; }
.er-seg--full { display: flex; width: 100%; }
.er-seg--full .er-seg__item { flex: 1; }
.er-seg__item { min-height: 38px; padding: 0 13px; border: 0; border-radius: 10px; background: none; font-size: 14px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.er-seg__item small { font-size: 11.5px; font-weight: 700; color: var(--ok); }
.er-seg__item[aria-checked="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(29, 26, 46, .14); }

.er-route { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; position: relative; }
.er-route__row { display: flex; align-items: center; gap: 10px; position: relative; }
.er-route__row:not(:last-child)::after { content: ""; position: absolute; left: 6px; top: 50%; height: calc(100% + 8px); border-left: 2px dashed #CFC2AE; z-index: 0; }
.er-route__dot { width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--primary); background: var(--surface); position: relative; z-index: 1; flex: none; }
.er-route__row--end .er-route__dot { background: var(--primary); }
.er-route__row--via .er-route__dot { border-color: var(--accent); }
.er-route__field { flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center; column-gap: 8px; min-height: 58px; padding: 8px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); text-align: left; }
.er-route__field small { grid-column: 1; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.er-route__field > span { grid-column: 1; display: grid; min-width: 0; }
.er-route__field b { font-size: 14.5px; }
.er-route__field em { font-style: normal; font-size: 12px; color: var(--muted); }
.er-route__field svg { grid-column: 2; grid-row: 1 / span 2; width: 18px; height: 18px; color: var(--muted); }
.er-route__field.is-set { border-color: #CFC6F5; background: #FBFAFF; }
.er-route__ph { color: var(--muted); font-size: 14.5px; }
.er-route__add { margin-top: 6px; margin-left: 22px; }
.er-route__add small { font-weight: 500; }

.er-sizes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.er-size { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; min-height: 96px; padding: 8px 4px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); }
.er-size strong { font-size: 14px; }
.er-size small { font-size: 10.5px; color: var(--muted); line-height: 1.25; text-align: center; }
.er-size__box { display: block; margin-bottom: 4px; border-radius: 4px; background: #D9BC8C; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12); }
.er-size__box--none { width: 22px; height: 3px; background: var(--line); box-shadow: none; margin-bottom: 14px; }
.er-size__box--s { width: 14px; height: 12px; }
.er-size__box--m { width: 22px; height: 18px; }
.er-size__box--l { width: 28px; height: 26px; }
.er-size__box--xl { width: 36px; height: 32px; }
.er-size[aria-checked="true"] { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); }
.er-stairs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.er-stepper { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border-radius: 13px; border: 1px solid var(--line); background: var(--surface); transition: opacity .15s; }
.er-stepper.is-dim { opacity: .45; }
.er-stepper__btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 0; background: var(--surface-2); }
.er-stepper__btn svg { width: 18px; height: 18px; }
.er-stepper__val { min-width: 52px; text-align: center; font-weight: 700; }
.er-stepper__val b { font-size: 18px; font-variant-numeric: tabular-nums; }

.er-modes { display: grid; gap: 8px; }
@media (min-width: 560px) { .er-modes { grid-template-columns: repeat(3, 1fr); } }
.er-mode { display: grid; gap: 2px; padding: 12px 14px; min-height: 64px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); text-align: left; }
.er-mode strong { font-size: 15px; }
.er-mode small { font-size: 12.5px; color: var(--muted); }
.er-mode[aria-checked="true"] { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); }
.er-mode--urgent[aria-checked="true"] { border-color: var(--danger); background: var(--danger-soft); box-shadow: inset 0 0 0 1px var(--danger); }
.er-mode--urgent[aria-checked="true"] strong { color: var(--danger); }
.er-budget { display: block; margin-top: 12px; max-width: 280px; }

/* 예상 견적 카드 (시그니처) */
.er-est { scroll-margin-top: 90px; }
.er-est__card { padding: 18px; border-radius: 22px; background: var(--text); color: #F4F1FF; box-shadow: 0 20px 40px -22px rgba(29, 26, 46, .7); }
.er-est__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.er-est__title { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 16px; font-weight: 800; color: #fff; }
.er-est__title svg { color: var(--accent); }
.er-est__empty p { margin: 0 0 10px; font-size: 14px; color: #C9C3DE; }
.er-checks { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.er-checks li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.er-checks li > span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #6E6890; }
.er-checks li.is-ok > span { border-color: var(--accent); background: var(--accent); color: var(--text); }
.er-checks svg { width: 13px; height: 13px; }
.er-checks a { color: #fff; text-decoration: none; }
.er-checks small { margin-left: auto; font-size: 12px; color: #9C96B6; }
.er-est__loading { padding: 18px 0; text-align: center; }
.er-est__loading p { margin: 10px 0 0; font-size: 14px; color: #DCD6F5; }
.er-scan { display: flex; justify-content: center; gap: 7px; }
.er-scan i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: er-dot .9s infinite ease-in-out; }
.er-scan i:nth-child(2) { animation-delay: .15s; }
.er-scan i:nth-child(3) { animation-delay: .3s; }
@keyframes er-dot { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-7px); opacity: 1; } }
.er-est__range { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin: 0; font-variant-numeric: tabular-nums; }
.er-est__range b { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1.05; color: var(--accent); letter-spacing: -.01em; }
.er-est__range span { font-size: 22px; color: #9C96B6; }
.er-est__range em { font-style: normal; font-size: 17px; font-weight: 700; color: #fff; }
.er-est__result.is-new .er-est__range { animation: er-pop .5s ease-out; }
@keyframes er-pop { 0% { transform: scale(.94); opacity: 0; } 100% { transform: none; opacity: 1; } }
.er-est__mid { margin: 6px 0 12px; font-size: 13.5px; color: #C9C3DE; }
.er-est__mid b { color: #fff; }
.er-est__mid .er-muted { color: #9C96B6; }
.er-est__map { --surface: #2A2642; --line: #37324F; --text: #E9E5FA; --primary: #A897FF; border-radius: 12px; overflow: hidden; background: #24203A; }
.er-est__map svg, .er-detail__map svg, .er-pctl__map svg { display: block; width: 100%; height: auto; }
.er-est__map:empty { display: none; }
.er-est__budget { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; font-size: 13.5px; background: #2F2A4A; color: #E9E5FA; }
.er-est__budget.is-ok { background: rgba(18, 128, 79, .28); color: #C8F2DC; }
.er-est__budget.is-warn { background: rgba(255, 178, 31, .2); color: #FFE3A8; }
.er-est__lines { margin: 12px 0 0; border-top: 1px solid #3A3554; padding-top: 10px; }
.er-est__lines summary { font-size: 13.5px; font-weight: 700; cursor: pointer; color: #fff; }
.er-est__lines summary .er-muted { color: #9C96B6; font-weight: 500; }
.er-est__lines ul, .er-lines { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 5px; font-size: 13px; }
.er-est__lines li, .er-lines li { display: flex; justify-content: space-between; gap: 10px; }
.er-est__lines li span { color: #C9C3DE; }
.er-est__lines li b, .er-lines li b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.er-est__lines li.is-sum { margin-top: 4px; padding-top: 6px; border-top: 1px dashed #4A4466; }
.er-est__lines li.is-sum span { color: #fff; font-weight: 700; }
.er-est__ai { margin-top: 14px; }
.er-est__ai .er-label { color: #fff; }
.er-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.er-notes li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 11px; border-radius: 12px; background: #2C2846; font-size: 13.5px; color: #E9E5FA; }
.er-notes li.has-fix { background: #3A2F17; color: #FFE3A8; box-shadow: inset 0 0 0 1px rgba(255, 178, 31, .35); }
.er-notes .er-btn--soft { background: var(--accent); color: var(--text); flex: none; }
.er-notes--plain li { background: var(--surface-2); color: var(--text); }
.er-est__foot { margin: 12px 0 0; font-size: 12.5px; color: #A9A3C2; }
.er-est__actions { display: grid; gap: 8px; margin-top: 14px; }

.er-applybar { display: none; }
@media (max-width: 959px) {
  .er--apply .er-tabbar { display: none; }
  .er--apply .er-main { padding-bottom: 110px; }
  .er-applybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 27; display: flex; align-items: center; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 20px -14px rgba(29, 26, 46, .4); }
  .er-applybar__price { display: grid; min-width: 0; line-height: 1.25; }
  .er-applybar__price small { font-size: 12px; color: var(--muted); }
  .er-applybar__price b { font-size: 16px; font-variant-numeric: tabular-nums; }
  .er-applybar .er-btn { margin-left: auto; }
  .er--apply .er-toast { bottom: 140px; }
  .er--apply .er-fab { bottom: calc(78px + env(safe-area-inset-bottom)); }
}

.er-addr { width: min(520px, calc(100% - 24px)); max-height: min(640px, calc(100% - 48px)); border-radius: 20px; }
.er-addr__body { padding: 18px; display: flex; flex-direction: column; gap: 10px; max-height: inherit; }
.er-addr__head { display: flex; align-items: center; justify-content: space-between; }
.er-addr__title { margin: 0; font-size: 18px; }
.er-addr__note { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12.5px; color: var(--muted); }
.er-addr__list { list-style: none; margin: 0; padding: 0; overflow-y: auto; max-height: 46vh; }
.er-addr__item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 6px; border: 0; border-bottom: 1px solid var(--line-soft); background: none; text-align: left; }
.er-addr__item:hover { background: #FBFAFF; }
.er-addr__item svg { width: 20px; height: 20px; color: var(--primary); }
.er-addr__item span { display: grid; }
.er-addr__item b { font-size: 15px; }
.er-addr__item em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.er-addr__none { padding: 24px 6px; text-align: center; color: var(--muted); font-size: 14px; }

/* ---------- 내 의뢰 ---------- */
.er-my__grid { display: grid; gap: 16px; }
.er-my__list { display: grid; gap: 14px; min-width: 0; align-content: start; }
.er-my__aside { display: grid; gap: 12px; align-content: start; }
.er-my__ask { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (min-width: 960px) { .er-my__grid { grid-template-columns: minmax(0, 1fr) 330px; align-items: start; } .er-my__aside { position: sticky; top: 124px; } }
.er-req, .er-job { padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); scroll-margin-top: 110px; }
.er-req.is-focus, .er-req.is-fresh { border-color: #BFB2F7; box-shadow: 0 0 0 3px rgba(75, 50, 217, .14), var(--shadow); }
.er-req__head, .er-job__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.er-req__no { margin: 0; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.er-req__title { margin: 2px 0 0; font-size: 18px; font-weight: 800; }
.er-stages { list-style: none; margin: 16px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); }
.er-stages li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--muted); text-align: center; line-height: 1.25; }
.er-stages li::before { content: ""; position: absolute; top: 7px; left: -50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.er-stages li:first-child::before { display: none; }
.er-stages li i { position: relative; z-index: 1; width: 17px; height: 17px; border-radius: 50%; background: var(--surface); border: 3px solid var(--line); }
.er-stages li.is-done::before, .er-stages li.is-now::before { background: var(--primary); }
.er-stages li.is-done i { background: var(--primary); border-color: var(--primary); }
.er-stages li.is-now i { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(75, 50, 217, .18); }
.er-stages li.is-now, .er-stages li.is-done { color: var(--text); }
.er-req__facts { margin: 12px 0 0; display: grid; gap: 6px; font-size: 14px; }
.er-req__facts div { display: grid; grid-template-columns: 68px 1fr; gap: 8px; }
.er-req__facts dt { color: var(--muted); }
.er-req__facts dd { margin: 0; }
.er-req__facts dd .er-muted { font-size: 12.5px; }
.er-req__msg { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); font-size: 14px; }
.er-req__msg--act { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: #FFF1E8; }
.er-pbox { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); }
.er-pbox > div { display: grid; margin-right: auto; }
.er-pbox small { font-size: 12.5px; color: var(--muted); }
.er-pbox__avatar { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-weight: 800; }
.er-pbox__avatar--lg { width: 56px; height: 56px; font-size: 22px; background: var(--accent); color: var(--text); }
.er-notifs { margin-top: 12px; border-top: 1px solid var(--line-soft); padding-top: 10px; }
.er-notifs summary { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; cursor: pointer; color: var(--muted); }
.er-notifs ul, .er-log { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.er-notifs li, .er-log li { display: grid; grid-template-columns: 78px 1fr auto; gap: 8px; align-items: baseline; }
.er-notifs time, .er-log time { color: var(--muted); font-variant-numeric: tabular-nums; }
.er-notifs em, .er-log em { font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: #FEF3B5; color: #5B4A00; }
.er-report { margin-top: 12px; padding: 14px; border-radius: 16px; background: #F6FBF8; border: 1px solid #CFE9DB; }
.er-report summary { display: flex; align-items: center; gap: 6px; font-weight: 800; cursor: pointer; color: var(--ok); }
.er-report__note { margin: 10px 0 0; font-size: 14px; }
.er-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 0; padding: 0; list-style: none; }
.er-thumbs li { width: 96px; height: 72px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.er-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.er-receipt { width: 100%; margin-top: 12px; border-collapse: collapse; font-size: 13.5px; background: var(--surface); border-radius: 12px; overflow: hidden; }
.er-receipt caption { text-align: left; font-size: 12.5px; font-weight: 700; color: var(--muted); padding-bottom: 6px; }
.er-receipt td, .er-receipt th { padding: 8px 12px; border-bottom: 1px solid var(--line-soft); text-align: left; font-weight: 500; }
.er-receipt td:last-child, .er-receipt tfoot td { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.er-receipt tfoot th, .er-receipt tfoot td { font-weight: 800; }
.er-review { margin-top: 12px; display: grid; gap: 8px; }
.er-review .er-label { margin: 0; }
.er-review__pick { display: flex; gap: 2px; }
.er-review__pick button { width: 40px; height: 40px; border: 0; background: none; color: #DDD3C4; padding: 4px; }
.er-review__pick button.is-on { color: var(--accent); }
.er-review__pick svg, .er-review__stars svg { width: 100%; height: 100%; }
.er-review .er-btn { justify-self: start; }
.er-review.is-done { padding: 10px 12px; border-radius: 12px; background: var(--surface); }
.er-review.is-done p { margin: 0; font-size: 14px; }
.er-review__stars { display: flex; gap: 2px; color: var(--accent); }
.er-review__stars svg { width: 18px; height: 18px; }
.er-paybox { margin: 0 0 14px; display: grid; gap: 8px; padding: 14px; border-radius: 14px; background: var(--surface-2); font-size: 14.5px; }
.er-paybox div { display: flex; justify-content: space-between; gap: 10px; }
.er-paybox dt { color: var(--muted); }
.er-paybox dd { margin: 0; font-weight: 700; text-align: right; }
.er-paybox b { font-size: 18px; }

/* ---------- 관리자 ---------- */
.er--admin .er-main { max-width: 1320px; }
.er-admin__who { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.er-tiles { display: flex; gap: 8px; margin: 0 -16px 16px; padding: 0 16px 2px; overflow-x: auto; scrollbar-width: none; }
.er-tiles::-webkit-scrollbar { display: none; }
.er-tiles .er-tile { flex: 0 0 132px; }
@media (min-width: 720px) { .er-tiles { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0 0 16px; padding: 0; overflow: visible; } }
.er-tile { display: grid; gap: 2px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); text-align: left; }
.er-tile span { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.er-tile b { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.1; }
.er-tile.is-on { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); background: #FBFAFF; }
.er-admin__grid { display: grid; gap: 16px; }
@media (min-width: 960px) {
  .er-admin__grid { grid-template-columns: minmax(0, 1fr) 420px; align-items: start; }
  .er-admin__detail { position: sticky; top: 82px; max-height: calc(100vh - 100px); overflow-y: auto; }
}
.er-toolbar { display: grid; gap: 10px; margin-bottom: 10px; }
@media (min-width: 1440px) { .er-toolbar { grid-template-columns: 1fr 240px; align-items: center; } }
.er-tablewrap { border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.er-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.er-table thead th { padding: 10px 12px; font-size: 12px; font-weight: 700; color: var(--muted); text-align: left; background: #FFFCF7; border-bottom: 1px solid var(--line); white-space: nowrap; }
.er-table thead th.er-r { text-align: right; }
.er-row { cursor: pointer; }
.er-row td { padding: 11px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.er-row:hover td { background: #FFFBF4; }
.er-row.is-sel td { background: #F4F1FF; }
.er-row.is-sel td:first-child { box-shadow: inset 3px 0 0 var(--primary); }
.er-row td small { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.er-row__no b { font-variant-numeric: tabular-nums; font-size: 13px; white-space: nowrap; }
.er-row__no .er-badge { margin-top: 4px; }
.er-row__what b { font-weight: 700; }
.er-row__ai, .er-row__final { font-variant-numeric: tabular-nums; white-space: nowrap; }
.er-row__p, .er-row__where { white-space: nowrap; }
.er-row--empty td { padding: 24px; text-align: center; color: var(--muted); }
@media (max-width: 959px) {
  .er-table thead { display: none; }
  .er-table, .er-table tbody { display: block; }
  .er-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
  .er-row td { display: block; padding: 0; border: 0; }
  .er-row:hover td, .er-row.is-sel td { background: none; }
  .er-row.is-sel { background: #F4F1FF; box-shadow: inset 3px 0 0 var(--primary); }
  .er-row.is-sel td:first-child { box-shadow: none; }
  .er-row__no { grid-column: 1; display: flex !important; align-items: center; gap: 6px; flex-wrap: wrap; }
  .er-row__no small { display: inline !important; }
  .er-row__no .er-badge { margin: 0; }
  .er-row__st { grid-column: 2; grid-row: 1; }
  .er-row__what { grid-column: 1 / -1; }
  .er-row__where { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }
  .er-row__ai { grid-column: 1; font-size: 13px; color: var(--muted); text-align: left; }
  .er-row__ai::before { content: "AI 예상 "; }
  .er-row__final { grid-column: 2; text-align: right; }
  .er-row__final::before { content: "확정 "; color: var(--muted); font-size: 12px; }
  .er-row__final.is-empty { display: none !important; }
  .er-row__p { display: none !important; }
}
.er-consults { margin-top: 18px; }
.er-consults__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.er-consults__list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; }
.er-consults__list li.is-fresh { border-color: #BFB2F7; }
.er-consults__list p { grid-column: 1; margin: 0; color: var(--muted); }
.er-consults__list .er-status { grid-column: 2; grid-row: 1 / span 2; align-self: center; }

.er-admin__detail { border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (max-width: 959px) {
  .er-admin__detail { display: none; }
  .er-admin__detail.is-open { display: block; position: fixed; inset: 0; z-index: 50; border-radius: 0; border: 0; overflow-y: auto; }
}
.er-detail__empty { display: grid; place-items: center; gap: 10px; padding: 48px 24px; text-align: center; color: var(--muted); font-size: 14px; }
.er-detail__head { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; gap: 10px; padding: 16px 18px; background: var(--surface); border-bottom: 1px solid var(--line-soft); }
.er-detail__head > div { margin-right: auto; }
.er-detail__title { margin: 2px 0 0; font-size: 19px; font-weight: 800; }
.er-detail__close { display: none; }
@media (max-width: 959px) { .er-detail__close { display: inline-flex; } }
.er-detail__sec { padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
.er-detail__text { margin: 0; font-size: 14px; white-space: pre-wrap; }
.er-detail__map { margin-top: 10px; border-radius: 12px; overflow: hidden; }
.er-detail__ai { background: #FFFCF7; }
.er-detail__ai details { margin-top: 6px; font-size: 13px; }
.er-detail__ai summary { cursor: pointer; font-weight: 700; }
.er-detail__ai .er-notes { margin-top: 10px; }
.er-detail__ai .er-notes li { font-size: 13px; }
.er-detail__range { margin: 0; font-size: 14px; }
.er-detail__range b { font-size: 20px; font-variant-numeric: tabular-nums; }
.er-detail__act { background: #FBFAFF; }
.er-kv { margin: 0; display: grid; gap: 6px; font-size: 13.5px; }
.er-kv div { display: grid; grid-template-columns: 76px 1fr; gap: 8px; }
.er-kv dt { color: var(--muted); }
.er-kv dd { margin: 0; }
.er-kv--inline { margin-top: 10px; }
.er-places { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.er-places li { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; }
.er-places li span:last-child { display: grid; }
.er-places small { color: var(--muted); font-size: 12px; }
.er-pin { flex: none; display: inline-grid; place-items: center; min-width: 38px; height: 22px; padding: 0 6px; border-radius: 7px; font-size: 11.5px; font-weight: 800; background: var(--primary-soft); color: var(--primary-ink); }
.er-pin--end { background: var(--primary); color: #fff; }
.er-pin--via { background: var(--accent-soft); color: var(--accent-ink); }
.er-price__quick { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.er-price__diff { margin: 8px 0 0; font-size: 13px; color: var(--ok); font-weight: 600; }
.er-price__diff.is-warn { color: var(--warn); }
.er-price .er-btn--block { margin-top: 14px; }
.er-actline { margin: 0 0 10px; font-size: 14px; }
.er-plist { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.er-pitem { display: grid; grid-template-columns: auto auto 1fr; grid-template-rows: auto auto; align-items: center; gap: 2px 10px; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; }
.er-pitem input { grid-row: 1 / span 2; width: 18px; height: 18px; accent-color: var(--primary); }
.er-pitem .er-pbox__avatar { grid-row: 1 / span 2; width: 34px; height: 34px; }
.er-pitem__who { display: grid; }
.er-pitem__who small { font-size: 12px; color: var(--muted); }
.er-pitem__meta { grid-column: 3; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.er-pitem__meta em { font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 6px; }
.er-pitem__meta .is-fit { background: var(--ok-soft); color: var(--ok); }
.er-pitem__meta .is-nofit { background: var(--warn-soft); color: var(--warn); }
.er-pitem:has(input:checked) { border-color: var(--primary); background: #F7F5FF; }
.er-cancel { padding: 12px 18px; border-bottom: 1px solid var(--line-soft); }
.er-cancel summary { cursor: pointer; font-size: 13.5px; font-weight: 700; color: var(--danger); }
.er-cancel .er-btn { margin-top: 10px; }
.er-warnline { margin: 10px 0 0; padding: 8px 10px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); font-size: 13px; font-weight: 600; }
.er-log li { grid-template-columns: 78px 1fr auto; }

/* ---------- 파트너 ---------- */
.er-auth { display: grid; gap: 20px; max-width: 1040px; margin: 0 auto; }
@media (min-width: 960px) { .er-auth { grid-template-columns: 1fr 440px; align-items: center; gap: 48px; padding-top: 28px; } }
.er-auth__card { padding: 18px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.er-auth__form { margin-top: 4px; }
.er-auth__form .er-btn--block { margin-top: 16px; }
.er-file input[type="file"] { padding: 9px; font-size: 14px; }
.er-file > small { display: block; margin-top: 6px; font-size: 12.5px; }
.er-file input[type="file"]::file-selector-button { margin-right: 10px; padding: 7px 12px; border: 0; border-radius: 9px; background: var(--primary-soft); color: var(--primary-ink); font: inherit; font-weight: 700; cursor: pointer; }
.er-done { display: grid; justify-items: center; gap: 8px; padding: 22px 8px; text-align: center; }
.er-done > svg { width: 44px; height: 44px; padding: 8px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); }
.er-done__title { margin: 0; font-size: 17px; font-weight: 800; }
.er-done p { margin: 0; font-size: 14px; color: var(--muted); }
.er-papp { max-width: 760px; }
.er-pme { display: flex; align-items: center; gap: 12px; }
.er-pme__meta { margin: 2px 0 0; font-size: 13px; }
.er-pbanner { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 12px 14px; border-radius: 14px; background: var(--primary); color: #fff; font-size: 14px; font-weight: 700; }
.er-pctl { display: grid; gap: 0; margin-bottom: 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.er-pctl__item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.er-pctl__item > div { display: grid; }
.er-pctl__item small { font-size: 12.5px; color: var(--muted); }
.er-pctl__map { padding: 10px; }
.er-switch { position: relative; flex: none; width: 52px; height: 30px; border-radius: 999px; border: 0; background: #D8D2C8; transition: background .15s; }
.er-switch i { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
.er-switch[aria-checked="true"] { background: var(--primary); }
.er-switch[aria-checked="true"] i { transform: translateX(22px); }
.er-tabs { display: flex; gap: 4px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.er-tabs__item { padding: 10px 12px; border: 0; background: none; font-size: 14.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.er-tabs__item b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--surface-2); font-size: 12px; }
.er-tabs__item.is-on { color: var(--text); box-shadow: inset 0 -3px 0 var(--primary); }
.er-tabs__item.is-on b { background: var(--primary); color: #fff; }
.er-jobs { display: grid; gap: 12px; }
.er-job.is-new { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(75, 50, 217, .14), var(--shadow); }
.er-job__money { margin: 10px 0; font-size: 14px; }
.er-job__money b { font-size: 17px; }
.er-job__money small { display: block; font-size: 12.5px; color: var(--muted); }
.er-job .er-detail__text { margin-top: 10px; }
.er-job__acts { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; margin-top: 14px; }
.er-job__done { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13.5px; font-weight: 700; color: var(--ok); }
.er-rform { margin-top: 14px; padding: 14px; border-radius: 16px; background: var(--surface-2); }
.er-rform .er-label { margin-top: 0; }
.er-rform .er-btn--block { margin-top: 14px; }

/* ---------- 서비스별 소개·상담 ---------- */
.er-svc__hero { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.er-svc__lead { margin: 8px 0 12px; max-width: 640px; color: var(--muted); }
.er-svc__grid { display: grid; gap: 12px; }
.er-svc__col { display: grid; gap: 12px; align-content: start; min-width: 0; }
@media (min-width: 960px) { .er-svc__grid { grid-template-columns: 1fr 1fr; gap: 16px; } .er-svc__col { gap: 16px; } }
.er-panel { padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); scroll-margin-top: 90px; }
.er-panel:target { outline: 3px solid var(--tone, var(--primary)); }
.er-pricetable { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.er-pricetable th, .er-pricetable td { padding: 11px 0; border-bottom: 1px solid var(--line-soft); text-align: left; }
.er-pricetable th { font-weight: 600; }
.er-pricetable td { text-align: right; font-weight: 800; color: var(--tone, var(--text)); white-space: nowrap; }
.er-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 8px; }
.er-steps li { counter-increment: s; display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.er-steps li::before { content: counter(s); display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--tone-soft, var(--surface-2)); color: var(--tone, var(--text)); font-weight: 800; font-size: 13px; }
.er-calc .er-field:first-of-type { margin-top: 0; }
.er-calc .er-chip[aria-pressed="true"] { background: var(--tone); border-color: var(--tone); }
.er-calc__out { margin-top: 16px; padding: 14px 16px; border-radius: 16px; background: var(--text); color: #fff; }
.er-calc__formula { margin: 0; font-size: 13px; color: #C9C3DE; }
.er-calc__total { display: flex; align-items: baseline; gap: 6px; margin: 6px 0 0; }
.er-calc__total small { font-size: 13px; color: #C9C3DE; margin-right: auto; }
.er-calc__total b { font-family: var(--display); font-weight: 400; font-size: 32px; color: var(--accent); font-variant-numeric: tabular-nums; }
.er-calc__total em { font-style: normal; font-weight: 700; }
.er-consult .er-btn--block { margin-top: 16px; background: var(--tone); }
.er-consult__calc { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--tone-soft); color: var(--tone); font-size: 13.5px; font-weight: 600; }
.er-lookup { display: flex; align-items: flex-end; gap: 8px; }
.er-lookup__field { flex: 1; margin: 0; }
.er-results { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.er-result { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); }
.er-result__head { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.er-result small { display: block; margin-top: 2px; font-size: 12px; }
.er-result details { margin-top: 6px; font-size: 13.5px; }
.er-result summary { cursor: pointer; font-weight: 700; color: var(--primary); }
.er-result p { margin: 6px 0 0; font-size: 13.5px; }

/* ---------- 데스크톱 ---------- */
@media (min-width: 720px) {
  .er-cnav { display: block; }
  .er-tabbar { display: none; }
  .er--customer .er-main { padding-bottom: 40px; }
  .er-fab { bottom: 20px !important; right: 20px; height: 44px; }
  .er-toast { bottom: 84px; }
  .er-main { padding-top: 24px; }
}
@media (min-width: 720px) and (max-width: 959px) {
  .er--apply .er-main { padding-bottom: 110px; }
  .er--apply .er-fab { bottom: 86px !important; }
}

.demo-notice { margin: 0; padding: 10px 16px calc(var(--tabbar) + 70px); text-align: center; font-size: 12px; color: var(--muted); }
.er--admin .demo-notice, .er--partner .demo-notice { padding-bottom: 70px; }
@media (min-width: 720px) { .demo-notice { padding-bottom: 76px; } }

@media (prefers-reduced-motion: reduce) {
  .er-est__result.is-new .er-est__range, .er-toast.is-in, .er-scan i, .er-voice.is-on .er-voice__dot { animation: none; }
  .er-switch, .er-switch i { transition: none; }
}

@media (max-width: 559px) {
  .er-svc__hero { flex-direction: column; gap: 10px; }
  .er-svc__hero .er-card__icon--lg { width: 48px; height: 48px; border-radius: 15px; }
}
