:root {
  --bg: #f4f5f7; --card: #fff; --ink: #0e1320; --ink2: #4d5567; --ink3: #8b93a3;
  --line: #e7e9ee; --soft: #f1f2f5;
  --accent: #2b59e6; --accent-ink: #1d42b8; --accent-bg: #eef2fe;
  --hot: #dc3a3a; --hot-bg: #fdeeed; --ok: #14845a; --ok-bg: #e7f5ee; --warn: #9a5b06; --warn-bg: #fcf3e1;
  --r: 18px; --shadow: 0 1px 2px rgba(14, 19, 32, .04), 0 6px 20px rgba(14, 19, 32, .04);
  --nav-h: 62px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.5 "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  letter-spacing: -.012em; -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: anywhere;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 24px);
}
body.lock { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, dl, dd, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }
.ic { width: 20px; height: 20px; flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* 머리말 */
.top { position: sticky; top: 0; z-index: 20; background: rgba(244, 245, 247, .86); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); }
.top-in { max-width: 720px; margin: 0 auto; height: 52px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 16.5px; letter-spacing: -.03em; }
.mark { width: 22px; height: 22px; border-radius: 7px; background: var(--ink); position: relative; }
.mark::after { content: ""; position: absolute; left: 6px; top: 6.5px; width: 9px; height: 5px; border-left: 2.4px solid #fff; border-bottom: 2.4px solid #fff; transform: rotate(-45deg); border-radius: 1px; }
.fresh { font-size: 12px; color: var(--ink3); font-variant-numeric: tabular-nums; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }

/* 첫 화면 요약 */
.hero { padding: 18px 4px 18px; }
.hero-co { font-size: 13.5px; font-weight: 600; color: var(--ink2); }
.hero-co span { color: var(--ink3); font-weight: 500; margin-left: 4px; }
.hero-n { margin-top: 6px; font-size: 27px; line-height: 1.25; font-weight: 800; letter-spacing: -.035em; }
.hero-n em { font-style: normal; color: var(--accent); font-variant-numeric: tabular-nums; }
.hero-sub { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 13.5px; color: var(--ink2); }
.hero-sub b { color: var(--ink); font-weight: 700; margin-left: 2px; font-variant-numeric: tabular-nums; }
.hero-sub .hot, .hero-sub .hot b { color: var(--hot); }
.page-head { padding: 18px 4px 16px; }
.page-head h1 { font-size: 24px; font-weight: 800; letter-spacing: -.035em; }
.page-head p { margin-top: 4px; font-size: 13.5px; color: var(--ink2); }

/* 검색과 조건 */
.search { display: flex; gap: 8px; }
.search-in { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 14px; background: var(--card); border-radius: 14px; box-shadow: var(--shadow); color: var(--ink3); }
.search-in:focus-within { box-shadow: 0 0 0 2px var(--accent); }
.search-in input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; height: 100%; color: var(--ink); font-size: 15px; -webkit-appearance: none; appearance: none; }
.search-in input::placeholder { color: var(--ink3); }
.fbtn { position: relative; flex: none; display: flex; align-items: center; gap: 6px; height: 48px; padding: 0 14px; border: 0; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); font-weight: 600; font-size: 14px; color: var(--ink2); }
.fbtn em { font-style: normal; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }

.segs { display: flex; gap: 6px; margin: 14px -16px 0; padding: 0 16px 2px; overflow-x: auto; scrollbar-width: none; }
.segs::-webkit-scrollbar { display: none; }
.seg { flex: none; height: 38px; padding: 0 14px; border: 0; border-radius: 19px; background: transparent; color: var(--ink2); font-weight: 600; font-size: 14px; white-space: nowrap; }
.seg em { font-style: normal; margin-left: 5px; font-weight: 600; color: var(--ink3); font-variant-numeric: tabular-nums; }
.seg[aria-selected="true"] { background: var(--ink); color: #fff; }
.seg[aria-selected="true"] em { color: rgba(255, 255, 255, .62); }
.active-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.active-chips:empty { display: none; }
.achip { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 6px 0 11px; border: 0; border-radius: 15px; background: var(--accent-bg); color: var(--accent-ink); font-size: 12.5px; font-weight: 600; }
.achip .ic { width: 14px; height: 14px; opacity: .7; }

/* 공고 카드 */
.list { display: grid; gap: 10px; margin-top: 12px; }
.list-note { font-size: 13px; color: var(--ink2); padding: 2px 4px 4px; }
.sec-h { font-size: 17px; font-weight: 800; letter-spacing: -.03em; padding: 10px 4px 0; }
.sec-s { font-size: 13px; font-weight: 600; color: var(--ink2); padding: 6px 4px 0; }
.card { position: relative; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
.card.closed { opacity: .62; }
.card-main { display: block; width: 100%; padding: 16px 16px 15px; border: 0; background: none; text-align: left; border-radius: var(--r); }
.card-main:active { background: #fafafb; }
.c-top { display: flex; align-items: center; gap: 6px; min-height: 24px; font-size: 12.5px; font-weight: 600; color: var(--ink3); }
.kind { color: var(--accent-ink); }
.kind.sui { color: var(--ok); }
.kind.sidam { color: var(--ink2); }
.dot { width: 2.5px; height: 2.5px; border-radius: 50%; background: currentColor; opacity: .6; }
.c-rgn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.dd { margin-left: auto; flex: none; padding: 3px 9px; border-radius: 999px; background: var(--soft); color: var(--ink2); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dd.hot { background: var(--hot-bg); color: var(--hot); }
.dd.gray { color: var(--ink3); }
.c-ttl { margin-top: 8px; font-size: 16.5px; line-height: 1.4; font-weight: 700; letter-spacing: -.025em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.c-inst { margin-top: 3px; font-size: 13px; color: var(--ink3); }
.c-nums { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-top: 13px; }
.c-amt { font-size: 18px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.c-amt small { margin-right: 7px; font-size: 12px; font-weight: 600; color: var(--ink3); letter-spacing: -.01em; }
.c-close { margin-left: auto; font-size: 13px; color: var(--ink2); font-variant-numeric: tabular-nums; }
.c-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 11px; padding-right: 40px; }
.tag { display: inline-block; padding: 3px 8px; border-radius: 7px; background: var(--soft); color: var(--ink2); font-size: 11.5px; font-weight: 600; line-height: 1.45; }
.tag.ok { background: var(--ok-bg); color: var(--ok); }
.tag.warn { background: var(--warn-bg); color: var(--warn); }
.tag.no { background: var(--hot-bg); color: var(--hot); }
.save { position: absolute; right: 6px; bottom: 6px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: #b9bfcb; border-radius: 14px; }
.save .ic { width: 21px; height: 21px; }
.save[aria-pressed="true"] { color: var(--accent); }
.save[aria-pressed="true"] .ic { fill: currentColor; }
.memo-line { margin-top: 10px; padding: 9px 11px; border-radius: 10px; background: var(--soft); font-size: 13px; color: var(--ink2); white-space: pre-wrap; margin-right: 40px; }
.chg { display: flex; gap: 9px; margin-top: 11px; padding: 11px 12px; border-radius: 12px; background: var(--warn-bg); color: var(--warn); font-size: 13px; }
.chg .ic { width: 18px; height: 18px; margin-top: 1px; }
.chg b { display: block; font-weight: 700; }
.chg span { display: block; }
.chg .tbtn { margin-top: 8px; background: rgba(255, 255, 255, .7); color: var(--warn); }
.card .chg { margin-right: 40px; }
.empty { padding: 44px 20px; text-align: center; color: var(--ink3); font-size: 13.5px; }
.empty b { display: block; margin-bottom: 4px; color: var(--ink2); font-size: 15px; font-weight: 700; }

/* 아래 메뉴 */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: center; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.nav button { position: relative; flex: 1; max-width: 180px; height: var(--nav-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: none; color: var(--ink3); font-size: 11px; font-weight: 600; }
.nav .ic { width: 23px; height: 23px; }
.nav button[aria-current="page"] { color: var(--ink); }
.nav button[aria-current="page"] .ic { stroke-width: 2.1; }
.nav em { position: absolute; top: 8px; left: calc(50% + 7px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--accent); color: #fff; font-style: normal; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; }

/* 단추 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 52px; padding: 0 20px; border: 0; border-radius: 15px; font-size: 15.5px; font-weight: 700; text-decoration: none; }
.btn.primary { background: var(--ink); color: #fff; }
.btn.primary:disabled { opacity: .5; }
.btn.ghost { background: var(--soft); color: var(--ink); }
.btn.ghost.on { color: var(--accent); }
.btn.ghost.on .ic { fill: currentColor; }
.btn .ic { width: 18px; height: 18px; }
.tbtn { height: 32px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--soft); color: var(--ink2); font-size: 13px; font-weight: 600; }
.ibtn { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 11px; background: none; color: var(--ink2); }

/* 시작 안내 */
.welcome { padding: 40px 6px 20px; }
.w-mark { width: 52px; height: 52px; border-radius: 16px; background: var(--ink); position: relative; margin-bottom: 26px; }
.w-mark::after { content: ""; position: absolute; left: 14px; top: 15px; width: 22px; height: 12px; border-left: 4.5px solid #fff; border-bottom: 4.5px solid #fff; transform: rotate(-45deg); border-radius: 2px; }
.welcome h1 { font-size: 28px; line-height: 1.3; font-weight: 800; letter-spacing: -.04em; }
.welcome > p { margin-top: 12px; font-size: 15px; color: var(--ink2); }
.w-list { display: grid; gap: 16px; margin: 30px 0 34px; }
.w-list li { display: flex; gap: 12px; }
.w-list .ic { margin-top: 2px; padding: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-bg); color: var(--accent); stroke-width: 2.4; }
.w-list span { font-size: 13.5px; color: var(--ink2); }
.w-list b { display: block; font-size: 15px; color: var(--ink); font-weight: 700; }
.welcome .btn { width: 100%; }

/* 판 (내 업체) */
.panel { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px; margin-bottom: 10px; }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.panel-h h2 { font-size: 17px; font-weight: 800; letter-spacing: -.03em; }
.muted { font-size: 12px; color: var(--ink3); font-variant-numeric: tabular-nums; }
.body { font-size: 14px; color: var(--ink2); }
.kv { display: grid; grid-template-columns: 96px 1fr; gap: 9px 12px; font-size: 14px; }
.kv dt { color: var(--ink3); }
.kv dd { color: var(--ink); min-width: 0; }
.vbar { display: flex; gap: 2px; height: 8px; margin-top: 16px; border-radius: 4px; overflow: hidden; background: var(--soft); }
.vbar i, .vlegend i { display: block; }
.pass { background: var(--ok); } .part { background: #7fa3f5; } .warn { background: #e0a23a; } .wait { background: #d6d9e0; }
.vbar i { min-width: 0; }
.vlegend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12.5px; color: var(--ink2); font-variant-numeric: tabular-nums; }
.vlegend span { display: inline-flex; align-items: center; gap: 6px; }
.vlegend i { width: 8px; height: 8px; border-radius: 3px; }
.hint { margin-top: 10px; font-size: 12.5px; color: var(--ink3); line-height: 1.55; }
.sub { font-size: 12px; font-weight: 500; color: var(--ink3); }

/* 달력 */
.cal { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px 12px 14px; }
.cal-head { display: flex; align-items: center; gap: 4px; padding: 0 2px 8px; }
.cal-head b { font-size: 17px; font-weight: 800; letter-spacing: -.03em; min-width: 104px; text-align: center; font-variant-numeric: tabular-nums; }
.cal-head .tbtn { margin-left: auto; }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-dow span { text-align: center; font-size: 11.5px; font-weight: 600; color: var(--ink3); padding: 4px 0 6px; }
.cal-dow .sun, .cal-cell.sun .cal-d { color: var(--hot); }
.cal-cell { position: relative; height: 58px; display: flex; flex-direction: column; align-items: center; padding: 6px 0 0; border: 0; background: none; border-radius: 12px; }
.cal-cell.blank { visibility: hidden; }
.cal-d { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cal-cell.today .cal-d { background: var(--ink); color: #fff; }
.cal-cell[aria-pressed="true"] { background: var(--accent-bg); }
.cal-marks { display: flex; gap: 3px; height: 6px; margin-top: 3px; }
.mk { display: inline-block; width: 6px; height: 6px; border-radius: 50%; }
.mk.close { background: var(--accent); }
.mk.open { border: 1.5px solid var(--ink3); }
.cal-n { margin-top: 1px; font-size: 10.5px; font-weight: 600; color: var(--ink3); font-variant-numeric: tabular-nums; line-height: 1.2; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; padding: 12px 6px 0; border-top: 1px solid var(--soft); font-size: 12px; color: var(--ink2); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend em { font-style: normal; font-weight: 600; color: var(--ink3); font-size: 11px; }

/* 시트 */
.sheet { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet-bg { position: absolute; inset: 0; background: rgba(14, 19, 32, .42); animation: fade .2s ease; }
.sheet-body { position: relative; width: 100%; max-width: 640px; height: calc(100% - 20px); max-height: calc(100% - 20px); display: flex; flex-direction: column; background: var(--bg); border-radius: 24px 24px 0 0; overflow: hidden; animation: up .26s cubic-bezier(.2, .8, .2, 1); }
#filterSheet .sheet-body { height: auto; }
.sheet-head { flex: none; display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 10px 0 20px; }
.sheet-head h2 { font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.x { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 12px; background: none; color: var(--ink2); }
.sheet-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding: 0 16px 24px; -webkit-overflow-scrolling: touch; }
.sheet-foot { flex: none; display: flex; gap: 8px; padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); }
.sheet-foot:empty { display: none; }
.sheet-foot .btn { flex: 1; }
.sheet-foot.two .btn.ghost { flex: 0 0 auto; min-width: 104px; }
@keyframes up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (min-width: 720px) {
  .sheet { align-items: center; }
  .sheet-body { height: auto; max-height: 88vh; border-radius: 24px; }
}
@media (prefers-reduced-motion: reduce) { .sheet-bg, .sheet-body { animation: none; } }

/* 입력 */
.sheet-scroll h3 { margin: 22px 2px 9px; font-size: 14px; font-weight: 700; letter-spacing: -.02em; }
.sheet-scroll h3 .sub { margin-left: 4px; }
.lead { font-size: 14px; color: var(--ink2); padding: 0 2px; }
.fld { display: block; margin-bottom: 8px; }
.fld > span { display: block; margin: 0 2px 5px; font-size: 12.5px; font-weight: 600; color: var(--ink2); }
.inp { width: 100%; height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); font-size: 15px; outline: 0; -webkit-appearance: none; appearance: none; }
textarea.inp { height: auto; padding: 12px 14px; line-height: 1.5; resize: vertical; display: block; }
select.inp { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b93a3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 38px; }
.inp:focus { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.inp:disabled { background-color: var(--soft); color: var(--ink3); }
.inp::placeholder { color: #a9afbb; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { min-height: 40px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); font-size: 14px; font-weight: 500; color: var(--ink2); text-align: left; }
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; font-weight: 600; }
.more { margin-top: 10px; }
.more summary { padding: 8px 2px; font-size: 13.5px; font-weight: 600; color: var(--accent-ink); cursor: pointer; }
.more .inp { margin: 6px 0 10px; }
.terms .kv { margin: 4px 2px 6px; font-size: 13px; grid-template-columns: 78px 1fr; }
.agree { display: flex; gap: 10px; padding: 12px 2px; font-size: 13.5px; color: var(--ink2); line-height: 1.55; }
.agree input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--ink); }
.agree b { color: var(--ink); font-weight: 600; }
.err { min-height: 20px; margin-top: 8px; padding: 0 2px; font-size: 13.5px; font-weight: 600; color: var(--hot); }
.sws { background: var(--card); border-radius: 16px; padding: 2px 16px; }
.sw { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--soft); }
.sw:last-child { border-bottom: 0; }
.sw > span { flex: 1; min-width: 0; }
.sw b { display: block; font-size: 14.5px; font-weight: 600; }
.sw small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink3); line-height: 1.5; }
.sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw i { flex: none; position: relative; width: 46px; height: 28px; border-radius: 14px; background: #d6d9e0; transition: background .18s; }
.sw i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .18s; }
.sw input:checked + i { background: var(--ink); }
.sw input:checked + i::after { transform: translateX(18px); }
.sw input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }

/* 상세 */
.d-head { padding: 4px 4px 4px; }
.d-ttl { margin-top: 10px; font-size: 22px; line-height: 1.35; font-weight: 800; letter-spacing: -.035em; }
.d-head .c-inst { margin-top: 6px; font-size: 13.5px; }
.remain { display: inline-block; margin-top: 14px; padding: 7px 12px; border-radius: 10px; background: var(--card); box-shadow: var(--shadow); font-size: 13.5px; color: var(--ink2); }
.remain b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.remain.hot, .remain.hot b { color: var(--hot); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.stat { padding: 13px 14px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.stat span { display: block; font-size: 12px; font-weight: 600; color: var(--ink3); }
.stat b { display: block; margin-top: 3px; font-size: 16px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat b i { font-style: normal; font-size: 13px; font-weight: 500; color: var(--ink3); letter-spacing: -.01em; }
.stat.key { grid-column: 1 / -1; }
.stat.key b { font-size: 22px; }
.stat:last-child:nth-child(even):not(.key) { grid-column: 1 / -1; }
.d-sec { margin-top: 10px; padding: 16px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.d-sec > h3 { margin: 0 0 12px; display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; letter-spacing: -.025em; }
.d-sec .kv { grid-template-columns: 84px 1fr; }
.d-sec .and { font-weight: 700; color: var(--accent-ink); }
.d-sec .or { display: inline-block; margin: 3px 0; font-size: 12px; font-weight: 700; color: var(--ink3); }
.checks { display: grid; gap: 11px; }
.checks li { display: flex; gap: 10px; font-size: 13.5px; color: var(--ink2); line-height: 1.5; }
.checks li > div { min-width: 0; }
.checks b { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.checks .ic { width: 20px; height: 20px; padding: 3.5px; border-radius: 50%; margin-top: 1px; stroke-width: 2.6; }
.checks .ok .ic { background: var(--ok-bg); color: var(--ok); }
.checks .care .ic, .checks .na .ic { background: var(--soft); color: var(--ink3); }
.checks .care .ic { background: var(--warn-bg); color: var(--warn); }
.checks .bad .ic { background: var(--hot-bg); color: var(--hot); }
.checks ul { list-style: disc; margin: 4px 0 0 16px; }
.checks .sub { display: block; }
.verdict > h3 { font-size: 16px; }
.verdict.ok > h3 { color: var(--ok); }
.verdict.care > h3 { color: var(--warn); }
.verdict.bad > h3 { color: var(--hot); }
.warnbox { box-shadow: 0 0 0 1.5px #ecd29a, var(--shadow); }
.tl { position: relative; display: grid; gap: 14px; padding-left: 22px; }
.tl::before { content: ""; position: absolute; left: 5px; top: 7px; bottom: 7px; width: 1.5px; background: var(--line); }
.tl li { position: relative; display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink2); }
.tl li::before { content: ""; position: absolute; left: -22px; top: 5px; width: 11px; height: 11px; border-radius: 50%; background: var(--card); border: 2px solid #cfd3db; }
.tl li.done { color: var(--ink3); }
.tl li.done::before { background: #cfd3db; }
.tl li.next { color: var(--ink); font-weight: 700; }
.tl li.next::before { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-bg); }
.tl-d { font-variant-numeric: tabular-nums; white-space: nowrap; }
.rate-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink2); }
.rate-in { display: flex; align-items: center; gap: 6px; }
.rate-in input { width: 108px; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); text-align: right; font-weight: 700; font-size: 15px; outline: 0; font-variant-numeric: tabular-nums; }
.rate-in input:focus { border-color: var(--accent); }
.range { width: 100%; margin: 14px 0 4px; accent-color: var(--ink); }
.calc-out { display: grid; gap: 8px; margin-top: 8px; }
.calc-out > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--ink2); }
.calc-out b { font-size: 15px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.calc-out .key { padding: 13px 14px; border-radius: 14px; background: var(--accent-bg); color: var(--accent-ink); font-weight: 600; }
.calc-out .key b { font-size: 19px; font-weight: 800; color: var(--accent-ink); letter-spacing: -.03em; }
.mini { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.mini th { padding: 7px 4px; text-align: right; font-size: 12px; font-weight: 600; color: var(--ink3); border-bottom: 1px solid var(--line); }
.mini td { padding: 8px 4px; text-align: right; border-bottom: 1px solid var(--soft); color: var(--ink2); }
.mini th:first-child, .mini td:first-child { text-align: left; }
.mini tr:nth-child(3) td { color: var(--ink); font-weight: 700; }
.btn.wide { width: 100%; height: 48px; font-size: 14.5px; }
.hint.first { margin-top: 0; }
.docview { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--soft); font-size: 14px; line-height: 1.7; color: var(--ink); }
.docview p { margin: 0 0 8px; padding-left: 10px; border-left: 3px solid transparent; white-space: pre-wrap; }
.docview p.hl { border-left-color: var(--accent); background: linear-gradient(90deg, var(--accent-bg), transparent 70%); }
.tblwrap { margin: 6px 0 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.docview table { border-collapse: collapse; min-width: 100%; font-size: 13px; line-height: 1.55; }
.docview td { padding: 6px 8px; border: 1px solid var(--line); vertical-align: top; white-space: pre-wrap; min-width: 56px; }
.docs { display: grid; gap: 2px; }
.docs a { display: flex; align-items: center; gap: 10px; padding: 10px 4px; color: var(--ink); text-decoration: none; font-size: 14px; border-bottom: 1px solid var(--soft); }
.docs a:last-child { border-bottom: 0; }
.docs .ic { color: var(--ink3); }
.docs span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 360px) {
  .hero-n { font-size: 24px; }
  .row2 { grid-template-columns: 1fr; }
  .kv, .d-sec .kv { grid-template-columns: 76px 1fr; }
}

/* 개찰 결과 */
.res-line { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 10px; margin-top: 11px; padding: 9px 11px; border-radius: 11px; background: var(--soft); font-size: 12.5px; color: var(--ink2); font-variant-numeric: tabular-nums; }
.res-line b { color: var(--ink); font-weight: 700; }
.rgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.rgrid span { display: block; font-size: 12px; font-weight: 600; color: var(--ink3); }
.rgrid b { display: block; margin-top: 2px; font-size: 17px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.rgrid small { display: block; margin-top: 1px; font-size: 12px; color: var(--ink3); font-variant-numeric: tabular-nums; }
.winner { display: flex; align-items: baseline; gap: 8px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--accent-bg); color: var(--accent-ink); }
.winner span { font-size: 12px; font-weight: 700; }
.winner b { flex: 1; min-width: 0; font-size: 15px; font-weight: 800; letter-spacing: -.02em; }
.winner em { font-style: normal; font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pr { margin-top: 16px; }
.pr-h { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 12px; font-weight: 600; color: var(--ink3); }
.pr-row { display: grid; grid-template-columns: 18px 1fr 68px 34px; align-items: center; gap: 8px; height: 22px; font-size: 12px; color: var(--ink3); font-variant-numeric: tabular-nums; }
.pr-row i { font-style: normal; text-align: right; }
.pr-row b { font-weight: 500; text-align: right; }
.pr-row em { font-style: normal; text-align: right; font-weight: 700; color: var(--accent-ink); }
.pr-bar { position: relative; height: 8px; border-radius: 4px; background: var(--soft); }
.pr-bar::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: #cfd3db; }
.pr-bar span { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: #c9cfdb; }
.pr-row.on { color: var(--ink); }
.pr-row.on b { font-weight: 700; }
.pr-row.on .pr-bar span { background: var(--accent); }
.d-sec .btn.wide { margin-top: 14px; }
#docSec .btn.wide { margin-top: 0; }
#rankView { margin-top: 14px; }
.mine { display: flex; gap: 9px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--ok-bg); color: var(--ok); font-size: 13.5px; }
.mine .ic { width: 18px; height: 18px; margin-top: 1px; stroke-width: 2.4; }
.mine b { font-weight: 800; }
.rank { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.rank th { padding: 7px 6px; font-size: 12px; font-weight: 600; color: var(--ink3); text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rank td { padding: 8px 6px; text-align: right; border-bottom: 1px solid var(--soft); color: var(--ink2); white-space: nowrap; }
.rank th:nth-child(2), .rank td:nth-child(2) { text-align: left; white-space: normal; min-width: 120px; color: var(--ink); }
.rank th:first-child, .rank td:first-child { text-align: center; width: 40px; }
.rank tr.me td { background: var(--ok-bg); color: var(--ok); font-weight: 700; }
.rank tr.out td { color: var(--ink3); }
#rankView .tbtn { margin-top: 10px; }
.hist { display: flex; align-items: flex-end; gap: 3px; height: 72px; margin-top: 16px; padding-bottom: 1px; border-bottom: 1px solid var(--line); }
.hist i { flex: 1; min-height: 0; border-radius: 3px 3px 0 0; background: #c9d5f8; }
.hist i.mid { background: var(--accent); }
.hist-x { display: flex; justify-content: space-between; margin-top: 5px; font-size: 11px; color: var(--ink3); font-variant-numeric: tabular-nums; }

/* 내 업체: 알림, 안내 */
.opt { margin-left: 4px; padding: 1px 6px; border-radius: 6px; background: var(--soft); font-style: normal; font-size: 11px; font-weight: 600; color: var(--ink3); }
.hint.tight { margin: -2px 2px 0; }
.sw.solo { padding: 0; border: 0; }
.panel .err { margin-top: 10px; padding: 0; }
.panel.links { padding: 4px 18px; }
.panel.links button { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 52px; padding: 0; border: 0; border-bottom: 1px solid var(--soft); background: none; font-size: 14.5px; font-weight: 600; text-align: left; }
.panel.links button:last-child { border-bottom: 0; }
.panel.links .ic { width: 18px; height: 18px; color: var(--ink3); }
.foot-note { padding: 14px 6px 0; font-size: 12.5px; color: var(--ink3); text-align: center; }
.kv a, .prose a { color: var(--accent-ink); text-decoration: none; font-weight: 600; }
.prose { font-size: 14px; line-height: 1.7; color: var(--ink2); }
.prose h3 { margin: 22px 0 6px; font-size: 14.5px; color: var(--ink); }
.prose p { margin: 0 0 8px; }
.prose ul { list-style: disc; margin: 0 0 8px 18px; }
.prose li { margin-bottom: 3px; }

/* 알림 권유 */
.nudge { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 13px 8px 13px 16px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.nudge > div { flex: 1; min-width: 0; }
.nudge b { display: block; font-size: 14.5px; font-weight: 700; letter-spacing: -.02em; }
.nudge span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink3); line-height: 1.45; }
.nudge .warn-t { color: var(--hot); }
.tbtn.dark { flex: none; display: inline-flex; align-items: center; height: 36px; padding: 0 13px; background: var(--ink); color: #fff; text-decoration: none; white-space: nowrap; }
.nudge .ibtn { flex: none; color: var(--ink3); }
.panel .btn.wide { margin-top: 12px; }
