/* 그로패스 머니 — 흰 바탕 · 코발트 포인트 · Pretendard. 그라데이션/글로우/민트 금지. */
:root {
  --bg: #FFFFFF;
  --soft: #F4F6FA;
  --ink: #191F28;
  --ink2: #333D4B;
  --sub: #6B7684;
  --mute: #8B95A1;
  --line: #E5E8EB;
  --line2: #F2F4F6;
  --accent: #2E5BFF;
  --accent-ink: #1F45D6;
  --accent-soft: #EDF1FF;
  --red: #E5484D;
  --red-soft: #FDECEC;
  --amber-soft: #FFF4E0;
  --amber: #B25E00;
  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1100px;
  --gutter: 16px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  font-size: 15px; line-height: 1.55; letter-spacing: -0.01em; word-break: keep-all; overflow-wrap: anywhere;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.ico { width: 20px; height: 20px; flex: none; }

/* ---------- 상단 내비 ---------- */
.top { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; flex: none; }
.brand img { height: 20px; width: auto; }
.brand-name { font-weight: 800; font-size: 17px; letter-spacing: -0.02em; }
.beta { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 12px; border-radius: 8px; color: var(--ink2); font-size: 14.5px; font-weight: 500; white-space: nowrap; }
.nav a:hover { background: var(--soft); }
.nav a[aria-current="page"] { color: var(--accent); font-weight: 700; }
.nav a .ext { width: 12px; height: 12px; color: var(--mute); }
.nav .nav-cta { background: var(--accent); color: #fff; font-weight: 600; margin-left: 6px; border-radius: 999px; padding: 0 16px; }
.nav .nav-cta:hover { background: var(--accent-ink); }
.subnav { display: none; }

/* ---------- 공통 버튼·칩 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 15px; white-space: nowrap; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-line { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-line:hover { background: var(--soft); }
.btn-ghost { background: var(--soft); color: var(--ink2); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13.5px; }
.btn .ico { width: 16px; height: 16px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink2); font-size: 14px; font-weight: 500; white-space: nowrap; }
.chip:hover { background: var(--soft); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }

/* ---------- 섹션 ---------- */
main { padding-bottom: 40px; }
.section { margin-top: 48px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sec-title { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.sec-sub { margin: 4px 0 0; color: var(--sub); font-size: 14px; }
.page-head { padding: 32px 0 8px; }
.page-head h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
.page-head p { margin: 6px 0 0; color: var(--sub); }
.box { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }

/* ---------- 히어로 배너 ---------- */
.hero { margin-top: 20px; position: relative; }
.slides { position: relative; border-radius: 20px; overflow: hidden; min-height: 240px; }
.slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 40px 48px 60px; min-height: 312px; opacity: 0; visibility: hidden; transition: opacity .35s ease; }
.slide.on { position: relative; opacity: 1; visibility: visible; }
.slide-1 { background: var(--accent); color: #fff; }
.slide-2 { background: var(--soft); color: var(--ink); }
.slide-kicker { font-size: 14px; font-weight: 600; opacity: .85; margin: 0 0 8px; }
.slide h2 { margin: 0; font-size: 32px; line-height: 1.3; font-weight: 800; letter-spacing: -0.035em; }
.slide p.desc { margin: 10px 0 20px; font-size: 15.5px; opacity: .9; }
.slide-1 .btn { background: #fff; color: var(--accent); }
.slide-1 .btn:hover { background: var(--accent-soft); }
.hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; flex: none; width: 300px; }
.hero-stat { border-radius: 14px; padding: 16px 18px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); }
.hero-stat b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hero-stat span { font-size: 13px; opacity: .85; }
.slide-2 .hero-art { flex: none; width: 260px; display: grid; gap: 8px; }
.hero-art .row { display: flex; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.hero-art .row b { color: var(--accent); }
.hero-ctrl { position: absolute; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 4px; background: rgba(25,31,40,.55); color: #fff; border-radius: 999px; padding: 2px 4px; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.hero-ctrl button { width: 28px; height: 28px; border: 0; background: transparent; color: #fff; display: grid; place-items: center; border-radius: 999px; }
.hero-ctrl button .ico { width: 14px; height: 14px; }

/* ---------- 메뉴 타일 ---------- */
.tiles { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; min-height: 128px; }
a.tile:hover { border-color: #C9D3FF; background: #FAFBFF; }
.tile-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.tile-ico .ico { width: 22px; height: 22px; }
.tile b { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }
.tile small { display: block; color: var(--sub); font-size: 12.5px; margin-top: 2px; line-height: 1.4; }
.tile.soon { background: var(--soft); border-color: var(--line2); cursor: default; }
.tile.soon .tile-ico { background: #E8EBF0; color: var(--mute); }
.tile.soon b { color: var(--sub); }
.badge-soon { position: absolute; top: 12px; right: 12px; font-size: 11px; font-weight: 700; color: var(--sub); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.tile .ext-mark { position: absolute; top: 14px; right: 14px; width: 14px; height: 14px; color: var(--mute); }

/* ---------- 주간 달력 ---------- */
.week { overflow: hidden; }
.week-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.week-range { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 6px; }
.week-nav { display: flex; gap: 6px; }
.icon-btn { width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; }
.icon-btn:hover { background: var(--soft); }
.icon-btn .ico { width: 16px; height: 16px; }
.week-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.day { border-right: 1px solid var(--line2); min-height: 260px; padding: 12px 10px 14px; min-width: 0; }
.day:last-child { border-right: 0; }
.day-head { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.day-dow { color: var(--sub); font-size: 13px; }
.day-num { width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.day.today .day-num { background: var(--ink); color: #fff; }
.day.sun .day-num, .day.holiday .day-num, .day.sun .day-dow, .day.holiday .day-dow { color: var(--red); }
.day.today.sun .day-num, .day.today.holiday .day-num { color: #fff; }
.day.sat .day-num, .day.sat .day-dow { color: var(--accent); }
.day-holi { font-size: 11.5px; color: var(--red); font-weight: 600; }
.day-count { margin-left: auto; font-size: 12px; color: var(--sub); }
.ev { display: block; width: 100%; text-align: left; border: 0; background: var(--soft); border-radius: 8px; padding: 8px 9px; margin-bottom: 6px; font-size: 12.5px; line-height: 1.4; }
.ev:hover { background: var(--accent-soft); }
.ev-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink); font-weight: 500; }
.ev-meta { display: block; margin-top: 3px; color: var(--accent); font-weight: 700; font-size: 11.5px; }
.ev-region { color: var(--sub); font-weight: 600; }
.ev-more { display: block; text-align: center; font-size: 12.5px; color: var(--sub); padding: 6px 0; border-radius: 8px; }
.ev-more:hover { background: var(--soft); color: var(--ink); }
.day-empty { color: var(--mute); font-size: 12.5px; padding: 6px 2px; }
.week-foot { display: flex; justify-content: center; gap: 8px; padding: 14px; border-top: 1px solid var(--line); }

/* ---------- 공고 카드 ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; text-align: left; width: 100%; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; min-width: 0; }
.card:hover { border-color: #C9D3FF; }
.card-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.tag-scope { background: var(--ink); color: #fff; }
.tag-scope.capital { background: var(--accent); }
.tag-scope.nation { background: var(--ink2); }
.tag-region { border: 1px solid var(--line); color: var(--ink2); background: #fff; }
.tag-cat { background: var(--soft); color: var(--sub); }
.tag-dday { margin-left: auto; background: var(--soft); color: var(--ink2); font-variant-numeric: tabular-nums; }
.tag-dday.urgent { background: var(--red-soft); color: var(--red); }
.card-title { margin: 12px 0 0; font-size: 16.5px; font-weight: 700; line-height: 1.45; letter-spacing: -0.02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.card-sum { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--soft); font-size: 13.5px; color: var(--ink2); line-height: 1.5; }
.card-sum .lbl { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.card-sum .lbl .ico { width: 13px; height: 13px; }
.card-sum p { margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kv { margin: 14px 0 0; display: grid; grid-template-columns: 72px minmax(0, 1fr); row-gap: 7px; font-size: 13.5px; }
.kv dt { color: var(--sub); }
.kv dd { margin: 0; color: var(--ink2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kv dd.amount { color: var(--accent); font-weight: 800; font-size: 15px; }
.kv dd.amount.none { color: var(--sub); font-weight: 500; font-size: 13.5px; }
.more-row { display: flex; justify-content: center; margin-top: 20px; }

/* 스켈레톤·빈 상태 */
.skel { background: var(--soft); border-radius: var(--radius); min-height: 280px; }
.empty { padding: 40px 20px; text-align: center; color: var(--sub); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty b { display: block; color: var(--ink); margin-bottom: 4px; }

/* ---------- CTA 밴드 ---------- */
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 32px; border-radius: 20px; background: var(--ink); color: #fff; }
.cta-band h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.cta-band p { margin: 6px 0 0; color: #C5CBD3; font-size: 14.5px; }
.cta-band .btn-primary { flex: none; }

/* ---------- 목록 페이지 필터 ---------- */
.filters { padding: 16px; display: grid; gap: 12px; margin-top: 16px; }
.search { position: relative; }
.search .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--mute); width: 18px; height: 18px; }
.search input { width: 100%; height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px 0 42px; font: inherit; font-size: 16px; background: #fff; color: var(--ink); }
.search input:focus { outline: none; border-color: var(--accent); }
.f-row { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; }
.f-lbl { font-size: 13px; color: var(--sub); font-weight: 600; width: 36px; flex: none; }
.select { height: 36px; border: 1px solid var(--line); border-radius: 999px; padding: 0 30px 0 14px; font: inherit; font-size: 14px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7684' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; -webkit-appearance: none; appearance: none; color: var(--ink2); }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink2); cursor: pointer; user-select: none; }
.toggle input { width: 18px; height: 18px; accent-color: var(--accent); }
.result-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0 12px; font-size: 14px; color: var(--sub); }
.result-bar b { color: var(--ink); }

/* ---------- 월 달력 ---------- */
.cal-tabs { display: flex; gap: 8px; margin-top: 16px; }
.month { overflow: hidden; }
.month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.month-dow { padding: 10px 0; text-align: center; font-size: 13px; color: var(--sub); border-bottom: 1px solid var(--line); }
.month-dow.sun { color: var(--red); }
.month-dow.sat { color: var(--accent); }
.mcell { min-height: 96px; padding: 8px; border-right: 1px solid var(--line2); border-bottom: 1px solid var(--line2); text-align: left; background: #fff; border-top: 0; border-left: 0; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.month-grid > .mcell:nth-child(7n) { border-right: 0; }
button.mcell:hover { background: #FAFBFF; }
.mcell.blank { background: #FCFCFD; }
.mcell .n { width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.mcell.past .n { color: var(--mute); }
.mcell.today .n { background: var(--ink); color: #fff; }
.mcell.sun .n, .mcell.holiday .n { color: var(--red); }
.mcell.past.sun .n, .mcell.past.holiday .n { color: #F0A3A5; }
.mcell.sat .n { color: var(--accent); }
.mcell.today.sun .n, .mcell.today.holiday .n, .mcell.today.sat .n { color: #fff; }
.mcell.sel { background: var(--accent-soft); }
.mcell .h { font-size: 11px; color: var(--red); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcell .c { margin-top: auto; align-self: flex-start; font-size: 11.5px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
.day-list { margin-top: 20px; }
.day-list > h3 { margin: 0 0 12px; font-size: 18px; font-weight: 800; }

/* ---------- 도구 허브 ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tool { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; min-height: 170px; }
a.tool:hover { border-color: #C9D3FF; background: #FAFBFF; }
.tool h3 { margin: 4px 0 0; font-size: 17px; font-weight: 700; }
.tool p { margin: 0; color: var(--sub); font-size: 14px; }
.tool .go { margin-top: auto; display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 600; font-size: 14px; }
.tool .go .ico { width: 14px; height: 14px; }
.tool.soon { background: var(--soft); border-color: var(--line2); }
.tool.soon h3 { color: var(--sub); }
.tool.soon .tile-ico { background: #E8EBF0; color: var(--mute); }

/* ---------- 상세 모달 ---------- */
.modal-bg { position: fixed; inset: 0; z-index: 100; background: rgba(25,31,40,.45); display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal { width: 100%; max-width: 640px; max-height: calc(100vh - 48px); overflow: auto; background: #fff; border-radius: 20px; padding: 28px; position: relative; }
.modal-x { position: absolute; top: 16px; right: 16px; }
.modal .card-top { padding-right: 44px; }
.modal h2 { margin: 12px 40px 0 0; font-size: 21px; line-height: 1.4; font-weight: 800; letter-spacing: -0.03em; }
.modal .org { margin: 6px 0 0; color: var(--sub); font-size: 14px; }
.modal .kv { grid-template-columns: 80px minmax(0, 1fr); font-size: 14.5px; }
.modal .kv dd { white-space: normal; overflow: visible; }
.modal .full { margin: 18px 0 0; font-size: 14.5px; color: var(--ink2); line-height: 1.7; white-space: pre-line; }
.modal .full-lbl { margin: 20px 0 0; font-size: 13px; font-weight: 700; color: var(--sub); }
.modal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.modal-note { margin: 14px 0 0; font-size: 12.5px; color: var(--mute); }
body.lock { overflow: hidden; }

/* ---------- 설치 안내 ---------- */
.install { position: fixed; z-index: 90; left: 50%; bottom: 20px; transform: translateX(-50%); width: calc(100% - 32px); max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: 0 8px 24px rgba(25,31,40,.12); }
.install-top { display: flex; gap: 12px; align-items: center; }
.install-top img { width: 48px; height: 48px; border-radius: 12px; }
.install b { display: block; font-size: 16px; }
.install p { margin: 2px 0 0; font-size: 13.5px; color: var(--sub); }
.install-actions { display: flex; gap: 8px; margin-top: 16px; }
.install-actions .btn { flex: 1; height: 42px; }
.install-ios { margin-top: 10px; font-size: 13px; color: var(--ink2); background: var(--soft); border-radius: 10px; padding: 10px 12px; }

/* ---------- 푸터 ---------- */
.foot { margin-top: 64px; border-top: 1px solid var(--line); background: var(--soft); padding: 32px 0 40px; color: var(--sub); font-size: 13px; }
.foot-brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 800; font-size: 15px; }
.foot-brand img { height: 16px; width: auto; }
.foot p { margin: 8px 0 0; }
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.foot-links a { color: var(--ink2); font-weight: 600; }
.foot-links a:hover { text-decoration: underline; }
.foot .notice { margin-top: 16px; font-size: 12.5px; color: var(--mute); }

/* ---------- AI 자금진단 ---------- */
.diag { max-width: 760px; margin-top: 20px; }
.diag-mock { margin: 0 0 16px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--amber-soft); color: var(--amber); font-size: 13.5px; font-weight: 600; }
.diag-steps { list-style: none; display: flex; gap: 0; margin: 0 0 20px; padding: 0; border-bottom: 1px solid var(--line); }
.diag-steps li { flex: 1; padding: 10px 2px 12px; font-size: 14px; color: var(--mute); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.diag-steps li span { font-size: 12px; font-weight: 600; margin-right: 4px; }
.diag-steps li.done { color: var(--sub); }
.diag-steps li[aria-current="step"] { color: var(--ink); border-bottom-color: var(--accent); }
.diag-steps li[aria-current="step"] span { color: var(--accent); }
.diag-panel { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 28px; }
.diag-h { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -0.03em; outline: none; }
.diag-sub { margin: 6px 0 0; color: var(--sub); font-size: 14px; }
.diag-sub.warn { color: var(--amber); font-weight: 600; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.f-name { font-size: 13.5px; font-weight: 600; color: var(--ink2); }
.f-name small { color: var(--mute); font-weight: 500; }
.input { width: 100%; height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; font: inherit; font-size: 16px; background: #fff; color: var(--ink); min-width: 0; }
select.input { -webkit-appearance: none; appearance: none; padding-right: 36px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7684' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; }
.input:focus { outline: none; border-color: var(--accent); }
.consent { margin-top: 22px; padding: 16px; border-radius: 12px; background: var(--soft); }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; margin: 0; }
.check b { color: var(--accent); }
.consent-txt { margin: 10px 0 0 30px; font-size: 13px; color: var(--sub); line-height: 1.6; }
.consent-txt a { color: var(--ink2); text-decoration: underline; text-underline-offset: 2px; }
.form-err { margin: 16px 0 0; color: var(--red); font-size: 14px; font-weight: 600; }
.diag-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 24px; }
.diag-actions .btn { height: 50px; padding: 0 26px; font-size: 16px; }
.diag-actions .btn:disabled { opacity: .6; cursor: default; }
.link-btn { border: 0; background: none; padding: 6px 0; color: var(--sub); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--ink); }
.q-block { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.q-block h3 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.q { border: 0; margin: 20px 0 0; padding: 0; min-width: 0; }
.q legend { padding: 0; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.q legend small { color: var(--mute); font-weight: 500; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.opts-col { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 12px; }
.opt { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 14.5px; color: var(--ink2); cursor: pointer; background: #fff; }
.opt input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); flex: none; }
.opt:has(input:checked) { border-color: var(--accent); color: var(--ink); background: var(--accent-soft); }
.opts-col .opt { border: 0; border-radius: 0; border-bottom: 1px solid var(--line2); min-height: 48px; background: transparent; }
.opts-col .opt:last-child { border-bottom: 0; }
.opts-col .opt:has(input:checked) { background: transparent; border-color: var(--line2); }
.diag-wait { text-align: center; padding: 56px 24px; }
.spin { width: 36px; height: 36px; margin: 0 auto 18px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 결과 */
.diag-result { display: block; }
.r-head { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.r-grade { display: flex; align-items: center; gap: 16px; margin-top: 18px; }
.r-grade-letter { width: 64px; height: 64px; flex: none; display: grid; place-items: center; border: 2px solid var(--accent); border-radius: 14px; color: var(--accent); font-size: 34px; font-weight: 800; }
.r-grade-txt { display: grid; gap: 2px; }
.r-grade-txt b { font-size: 17px; letter-spacing: -0.02em; }
.r-grade-txt span { color: var(--sub); font-size: 14px; font-variant-numeric: tabular-nums; }
.r-bar { height: 6px; border-radius: 3px; background: var(--line2); margin-top: 16px; overflow: hidden; }
.r-bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.r-summary { margin: 16px 0 0; font-size: 15.5px; color: var(--ink2); line-height: 1.7; }
.r-meta { margin: 8px 0 0; font-size: 13px; color: var(--mute); }
.r-sec { margin-top: 32px; }
.r-h { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.r-sub { margin: 4px 0 0; color: var(--sub); font-size: 13.5px; }
.r-total { margin: 12px 0 0; font-size: 26px; font-weight: 800; color: var(--accent); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.r-table-wrap { margin-top: 14px; }
.r-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.r-table th { text-align: left; font-size: 12.5px; color: var(--sub); font-weight: 600; padding: 8px 10px 8px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.r-table td { padding: 12px 10px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.r-t-name { font-weight: 600; color: var(--ink); }
.r-t-amt { white-space: nowrap; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.r-t-why { color: var(--sub); }
.r-t-plus { color: var(--accent); }
.r-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.r-list { margin: 10px 0 0; padding: 0 0 0 18px; display: grid; gap: 8px; color: var(--ink2); font-size: 14.5px; line-height: 1.6; }
.r-list li::marker { color: var(--mute); }
.r-recs { margin-top: 12px; border-top: 2px solid var(--ink); }
.r-rec { border-bottom: 1px solid var(--line); }
.r-rec summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 16px 0; cursor: pointer; }
.r-rec summary::-webkit-details-marker { display: none; }
.r-rec-main { flex: 1; min-width: 0; display: flex; gap: 10px; }
.r-rank { flex: none; width: 20px; color: var(--sub); font-weight: 700; font-variant-numeric: tabular-nums; }
.r-rec-main b { display: block; font-size: 15px; line-height: 1.45; letter-spacing: -0.02em; }
.r-rec-main small { display: block; margin-top: 3px; color: var(--sub); font-size: 13px; }
.r-score { flex: none; text-align: right; display: grid; font-variant-numeric: tabular-nums; }
.r-score b { font-size: 15px; color: var(--ink2); }
.r-score small { font-size: 12px; color: var(--mute); }
.r-score.hi b { color: var(--accent); }
.r-chev { width: 16px; height: 16px; color: var(--mute); transition: transform .15s; flex: none; }
.r-rec[open] .r-chev { transform: rotate(90deg); }
.r-rec-body { margin: 0 0 4px 30px; display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 8px 12px; font-size: 14px; }
.r-rec-body dt { color: var(--sub); }
.r-rec-body dd { margin: 0; color: var(--ink2); line-height: 1.6; }
.r-rec-body .r-list { margin: 0; font-size: 14px; gap: 4px; }
.r-link { display: inline-flex; align-items: center; gap: 4px; margin: 10px 0 16px 30px; color: var(--accent); font-weight: 600; font-size: 14px; }
.r-link .ico { width: 14px; height: 14px; }
.r-programs { list-style: none; margin: 12px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.r-programs li { border-bottom: 1px solid var(--line); }
.r-programs a { display: flex; align-items: center; gap: 12px; padding: 14px 0; }
.r-programs a:hover b { color: var(--accent); }
.r-p-main { flex: 1; min-width: 0; }
.r-p-main b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-p-main small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-p-dday { flex: none; font-size: 13px; font-weight: 700; color: var(--ink2); font-variant-numeric: tabular-nums; }
.r-p-dday.urgent { color: var(--red); }
.r-p-empty { padding: 16px 0; color: var(--sub); font-size: 14px; }
.r-more { margin-top: 16px; }
.r-again { margin-top: 28px; }
.r-note { margin: 12px 0 0; font-size: 12.5px; color: var(--mute); }

/* ---------- 반응형 ---------- */
@media (max-width: 1080px) {
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cards, .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stats, .slide-2 .hero-art { display: none; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .subnav { display: flex; gap: 6px; overflow-x: auto; padding: 0 var(--gutter) 10px; margin: 0 auto; max-width: calc(var(--wrap) + var(--gutter) * 2); scrollbar-width: none; }
  .subnav::-webkit-scrollbar { display: none; }
  .subnav a { flex: none; height: 32px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 999px; background: var(--soft); font-size: 13.5px; font-weight: 500; color: var(--ink2); white-space: nowrap; }
  .subnav a[aria-current="page"] { background: var(--ink); color: #fff; font-weight: 600; }
  .top-in { height: 54px; }
  .top-cta { margin-left: auto; }
  .week-grid { grid-template-columns: minmax(0, 1fr); }
  .day { border-right: 0; border-bottom: 1px solid var(--line2); min-height: 0; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 10px; padding: 12px 14px; }
  .day:last-child { border-bottom: 0; }
  .day-head { flex-direction: column; align-items: flex-start; gap: 2px; margin: 0; }
  .day-count { margin-left: 0; }
  .day-body { min-width: 0; }
  .ev { margin-bottom: 5px; }
  .day.past-empty { display: none; }
}
@media (min-width: 861px) { .top-cta { display: none; } }
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .section { margin-top: 36px; }
  .sec-title { font-size: 19px; }
  .page-head { padding-top: 22px; }
  .page-head h1 { font-size: 23px; }
  .slides { min-height: 0; border-radius: 16px; }
  .slide { padding: 26px 22px 54px; min-height: 280px; }
  .slide h2 { font-size: 23px; }
  .slide p.desc { font-size: 14px; margin-bottom: 16px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile { min-height: 0; flex-direction: row; align-items: center; padding: 14px; }
  .tile-ico { width: 36px; height: 36px; flex: none; }
  .tile b { font-size: 14px; }
  .tile small { font-size: 11.5px; }
  .tile .ext-mark, .badge-soon { top: 8px; right: 8px; }
  .cards, .tool-grid { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 18px; }
  .card-title { min-height: 0; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
  .cta-band h2 { font-size: 19px; }
  .week-head { padding: 14px 16px; }
  .week-range { font-size: 15px; }
  .mcell { min-height: 64px; padding: 5px 4px; align-items: center; }
  .mcell .h { display: none; }
  .mcell .c { align-self: center; font-size: 10.5px; padding: 0 4px; }
  .mcell .c .w { display: none; }
  .modal-bg { align-items: flex-end; padding: 0; }
  .modal { border-radius: 20px 20px 0 0; max-height: 88vh; padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); }
  .modal-actions .btn { flex: 1 1 100%; }
  .f-lbl { width: 100%; }
  .diag-panel { padding: 22px 18px; }
  .diag-h { font-size: 19px; }
  .diag-steps li { font-size: 13px; }
  .diag-steps li span { display: block; margin: 0 0 1px; font-size: 11px; }
  .fields { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .consent-txt { margin-left: 0; }
  .diag-actions .btn { width: 100%; }
  .opt { flex: 1 1 calc(50% - 4px); }
  .opts-col .opt { flex: none; }
  .r-grade-letter { width: 56px; height: 56px; font-size: 30px; }
  .r-total { font-size: 22px; }
  .r-two { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .r-table thead { display: none; }
  .r-table, .r-table tbody, .r-table tr, .r-table td { display: block; }
  .r-table tr { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .r-table tbody { border-top: 2px solid var(--ink); }
  .r-table td { padding: 0; border: 0; }
  .r-t-why { grid-column: 1 / -1; font-size: 13px; }
  .r-rec-body { margin-left: 0; grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .r-rec-body dd { margin-bottom: 8px; }
  .r-link { margin-left: 0; }
  .r-rec summary { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } .spin { animation-duration: 2.4s; } }
