/* el_biz2 공통 스타일 (시안 prototypes/el_biz2/assets/biz2.css 에서 이식) — 외부 폰트/CDN 없음. 구조는 중립색 테두리·면·여백, 상태색은 작은 배지에만. */
:root {
  --ink: #16181d; --ink-2: #454b57; --ink-3: #7a8190; --ink-4: #a9afbb;
  --bg: #f6f6f3; --surface: #fff; --line: #e4e5e0; --line-2: #eeeeea;
  --accent: #1877f2; --accent-ink: #fff; --accent-soft: #e7f0fe;
  --ok: #16794a; --ok-soft: #dff5e8; --warn: #8a5a00; --warn-soft: #fdf0cd;
  --danger: #b42318; --danger-soft: #fde4e1; --info: #1877f2; --info-soft: #e7f0fe;
  /* 파스텔 면 — 히어로·카테고리 칩 배경에만 사용 */
  --p-yellow: #fbefb8; --p-mint: #d6f1e2; --p-lav: #e5e2fb; --p-pink: #fbe1e8; --p-sky: #dcecfb;
  --radius: 14px; --radius-s: 8px; --w: 1080px; --w-narrow: 840px;
  --font: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
a.u, .u a { text-decoration: underline; text-underline-offset: 3px; color: var(--accent); }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; letter-spacing: -.01em; }
p { margin: 0; }
img, svg { max-width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }


/* 헤더 */
.hd { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.hd-in { max-width: var(--w); margin: 0 auto; padding: 0 20px; height: 64px; display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; letter-spacing: -.02em; flex: none; }
.logo i { width: 22px; height: 22px; background: var(--accent); border-radius: 6px 6px 6px 0; display: block; }
.nav { display: flex; gap: 2px; flex: 1; }
.nav > li { list-style: none; position: relative; }
.nav, .nav ul { margin: 0; padding: 0; }
.nav > li > a { display: block; padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 14.5px; color: var(--ink-2); }
.nav > li:hover > a, .nav > li:focus-within > a, .nav > li.on > a { color: var(--ink); background: var(--bg); }
.nav > li.on > a { font-weight: 700; color: var(--ink); }
.dd { position: absolute; top: 100%; left: 0; min-width: 180px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px; box-shadow: 0 12px 32px rgba(22, 24, 29, .10); display: none; }
.nav > li:hover .dd, .nav > li:focus-within .dd { display: block; }
.dd a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.dd a:hover { background: var(--bg); color: var(--ink); }
.dd a.lock::after { content: "로그인"; font-size: 11px; color: var(--ink-4); margin-left: 8px; }
.hd-r { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.prog-sw { position: relative; }
.prog-sw > button { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--ink); max-width: 220px; }
.prog-sw > button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prog-sw .dd { right: 0; left: auto; min-width: 260px; }
.prog-sw.open .dd { display: block; }
.prog-sw .dd button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 9px 12px; border-radius: 8px; font-size: 14px; color: var(--ink-2); }
.prog-sw .dd button:hover { background: var(--bg); }
.prog-sw .dd button.cur { font-weight: 700; color: var(--ink); }
.prog-sw .dd .sep { height: 1px; background: var(--line-2); margin: 6px 4px; }
.me-btn { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; border: 0; }
.login-btn { background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 14px; }
.burger { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; width: 38px; height: 38px; font-size: 18px; }
@media (max-width: 860px) {
  .hd-in { gap: 12px; padding: 0 14px; }
  .burger { display: block; order: 3; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; padding: 8px 14px 16px; }
  .nav.open { display: flex; }
  .nav > li > a { padding: 12px 8px; }
  .dd { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 4px 12px; }
  .prog-sw > button { max-width: 104px; padding: 6px 10px; font-size: 12px; }
  .hd-r { margin-left: auto; gap: 8px; }
  .hd-in { gap: 8px; }
  .logo { font-size: 16px; }
  .prog-sw .dd { position: absolute; right: -60px; min-width: 240px; border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(22, 24, 29, .10); padding: 8px; display: none; }
  .prog-sw.open .dd { display: block; }
}

/* 레이아웃 */
.wrap { max-width: var(--w); margin: 0 auto; padding: 28px 20px 64px; }
.wrap.narrow { max-width: var(--w-narrow); }
.pg-h { margin-bottom: 22px; }
.pg-h .eyebrow { font-size: 13px; color: var(--ink-3); font-weight: 600; margin-bottom: 6px; }
.pg-h h1 { font-size: 28px; }
.pg-h p { color: var(--ink-2); margin-top: 8px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 860px) { .g2, .g3, .g-main { grid-template-columns: minmax(0, 1fr); } .pg-h h1 { font-size: 24px; } }
.stack > * + * { margin-top: 16px; }

/* 카드 */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.card.flat { background: var(--bg); border-color: var(--line-2); }
.card h2 { font-size: 17px; margin-bottom: 14px; }
.card h3 { font-size: 15px; margin-bottom: 8px; }
.card .sub { font-size: 13px; color: var(--ink-3); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.card-h h2 { margin: 0; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 8px 14px; font-size: 14px; }
.kv dt { color: var(--ink-3); } .kv dd { margin: 0; }

/* 버튼·칩·배지 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 10px; padding: 9px 16px; font-weight: 600; font-size: 14px; }
.btn:hover { background: var(--bg); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { filter: brightness(.94); }
.btn.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn.danger { color: var(--danger); }
.btn.block { width: 100%; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--bg); color: var(--ink-2); border: 1px solid var(--line-2); }
.chip.y { background: var(--p-yellow); border-color: transparent; } .chip.m { background: var(--p-mint); border-color: transparent; }
.chip.l { background: var(--p-lav); border-color: transparent; } .chip.p { background: var(--p-pink); border-color: transparent; } .chip.s { background: var(--p-sky); border-color: transparent; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.badge.ok { background: var(--ok-soft); color: var(--ok); } .badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.danger { background: var(--danger-soft); color: var(--danger); } .badge.info { background: var(--info-soft); color: var(--info); }
.badge.mute { background: var(--bg); color: var(--ink-3); border: 1px solid var(--line-2); }
.tabs { display: flex; gap: 4px; margin-bottom: 18px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs a, .tabs button { background: none; border: 0; padding: 10px 14px; font-weight: 600; color: var(--ink-3); white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs .on { color: var(--ink); border-bottom-color: var(--ink); }
.seg { display: inline-flex; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg button { background: none; border: 0; padding: 6px 12px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.seg .on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }

/* 진행 막대 */
.bar { height: 8px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--ink); border-radius: 99px; }
.bar.accent > i { background: var(--accent); }
.phases { display: flex; gap: 6px; margin: 10px 0 2px; }
.phases > div { flex: 1; font-size: 12px; color: var(--ink-4); text-align: center; }
.phases > div i { display: block; height: 6px; border-radius: 99px; background: var(--line-2); margin-bottom: 6px; }
.phases > .done i { background: var(--ink); } .phases > .cur i { background: var(--accent); } .phases > .cur { color: var(--ink); font-weight: 700; } .phases > .done { color: var(--ink-3); }
@media (max-width: 640px) { .phases > div { font-size: 11px; } }

/* 목록·타임라인 */
.list > * { padding: 14px 0; border-top: 1px solid var(--line-2); } .list > *:first-child { border-top: 0; padding-top: 0; } .list > *:last-child { padding-bottom: 0; }
.todo { display: flex; gap: 14px; align-items: flex-start; }
.todo .d { flex: none; width: 56px; text-align: center; border-radius: 10px; padding: 8px 0; background: var(--bg); }
.todo .d b { display: block; font-size: 16px; line-height: 1.2; } .todo .d small { font-size: 11px; color: var(--ink-3); }
.todo .d.soon { background: var(--warn-soft); } .todo .d.soon small { color: var(--warn); } .todo .d.over { background: var(--danger-soft); } .todo .d.over small { color: var(--danger); }
.todo .b { flex: 1; min-width: 0; } .todo .t { font-weight: 700; } .todo .n { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.todo.done { opacity: .55; } .todo.done .t { text-decoration: line-through; }
.steps { position: relative; padding-left: 8px; }
.steps > li { list-style: none; position: relative; padding: 0 0 22px 30px; }
.steps > li::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 0; width: 1px; background: var(--line); }
.steps > li:last-child::before { display: none; }
.steps > li::after { content: ""; position: absolute; left: 0; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--surface); border: 2px solid var(--ink-4); }
.steps > li.done::after { background: var(--ink); border-color: var(--ink); } .steps > li.cur::after { background: var(--accent); border-color: var(--accent); }
.steps { margin: 0; } .steps .t { font-weight: 700; } .steps .m { font-size: 13px; color: var(--ink-3); margin-top: 2px; } .steps .n { font-size: 14px; color: var(--ink-2); margin-top: 4px; }

/* 표 */
.tbl-w { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; color: var(--ink-3); font-weight: 700; padding: 11px 16px; background: var(--bg); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 13px 16px; border-top: 1px solid var(--line-2); vertical-align: top; } .tbl tr:first-child td { border-top: 0; }
.tbl .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 22px; }
.pager a { min-width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; font-size: 14px; color: var(--ink-2); }
.pager .on { background: var(--ink); color: #fff; font-weight: 700; }

/* 폼 */
.f { display: block; margin-bottom: 14px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.f input, .f select, .f textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: inherit; font-weight: 400; color: var(--ink); }
.f textarea { min-height: 96px; resize: vertical; }
.f small { display: block; font-weight: 400; color: var(--ink-3); margin-top: 4px; }
.ck { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.ck input { width: 18px; height: 18px; accent-color: var(--ink); }
.search { display: flex; gap: 8px; margin-bottom: 18px; }
.search input { flex: 1; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: var(--surface); }

/* 알림·빈 상태 */
.note { border-radius: 10px; padding: 12px 14px; font-size: 13.5px; background: var(--info-soft); color: #1155bd; }
.note.warn { background: var(--warn-soft); color: var(--warn); } .note.danger { background: var(--danger-soft); color: var(--danger); } .note.mute { background: var(--bg); color: var(--ink-2); border: 1px solid var(--line-2); }
.empty { text-align: center; padding: 36px 16px; color: var(--ink-3); } .empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 6px; }

/* 히어로 (홈) — 도형은 순수 CSS 면 분할 */
.hero { position: relative; overflow: hidden; border-radius: 20px; background: var(--p-yellow); padding: 28px 30px; color: var(--ink); }
.hero::before, .hero::after { content: ""; position: absolute; pointer-events: none; }
.hero::before { right: -30px; top: -40px; width: 260px; height: 260px; background: var(--p-mint); clip-path: polygon(100% 0, 0 0, 100% 100%); }
.hero::after { right: 90px; bottom: -50px; width: 180px; height: 180px; background: var(--p-lav); clip-path: polygon(0 100%, 100% 100%, 100% 0); }
.hero > * { position: relative; z-index: 1; }
.hero .eyebrow { font-size: 13px; font-weight: 700; color: #6b5a14; } .hero h1 { font-size: 26px; margin: 6px 0 4px; } .hero p { color: #4d4410; }
.hero .phases > div i { background: rgba(22, 24, 29, .12); } .hero .phases > .done i { background: var(--ink); } .hero .phases > div { color: #6b5a14; } .hero .phases > .cur { color: var(--ink); }
.hero.mint { background: var(--p-mint); } .hero.mint .eyebrow { color: #1d5a3b; } .hero.mint p { color: #1f4d36; } .hero.mint .phases > div { color: #1d5a3b; }
.hero.mint::before { background: var(--p-sky); } .hero.mint::after { background: var(--p-yellow); }
.hero.lav { background: var(--p-lav); } .hero.lav .eyebrow { color: #4a3fa3; } .hero.lav p { color: #3a3280; } .hero.lav .phases > div { color: #4a3fa3; }
.hero.lav::before { background: var(--p-pink); } .hero.lav::after { background: var(--p-sky); }
.stat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.stat > div { background: rgba(255, 255, 255, .94); border-radius: 12px; padding: 12px 14px; }
.stat small { display: block; font-size: 12px; color: var(--ink-3); } .stat b { font-size: 19px; display: block; margin-top: 2px; }
@media (max-width: 640px) { .stat { grid-template-columns: 1fr; } .hero { padding: 22px 20px; } .hero h1 { font-size: 22px; } }

/* 캘린더 */
.cal { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.cal th { font-size: 12px; color: var(--ink-3); padding: 8px 0; font-weight: 700; }
.cal td { height: 92px; vertical-align: top; padding: 6px; border: 1px solid var(--line-2); background: var(--surface); font-size: 12px; }
.cal td.out { background: var(--bg); color: var(--ink-4); } .cal td.today { background: var(--accent-soft); }
.cal td b { font-size: 12px; display: block; margin-bottom: 3px; }
.cal .ev { display: block; border-radius: 5px; padding: 1px 6px; margin-top: 2px; font-size: 11px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: var(--bg); }
.cal .ev.money { background: var(--p-yellow); } .cal .ev.doc { background: var(--p-lav); } .cal .ev.event { background: var(--p-mint); } .cal .ev.report { background: var(--p-pink); } .cal .ev.mentoring { background: var(--p-sky); }
@media (max-width: 640px) { .cal td { height: 64px; padding: 3px; } .cal .ev { font-size: 10px; padding: 0 3px; } }

/* 모달 */
dialog.md { border: 0; border-radius: 16px; padding: 0; width: 440px; max-width: 92vw; box-shadow: 0 24px 60px rgba(0, 0, 0, .25); }
dialog.md::backdrop { background: rgba(22, 24, 29, .45); }
dialog.md .in { padding: 26px; } dialog.md h3 { font-size: 19px; margin-bottom: 6px; }
.soc { display: block; width: 100%; padding: 12px; border-radius: 10px; border: 0; font-weight: 700; margin-top: 10px; }
.soc.k { background: #fae100; color: #3b1e1e; } .soc.n { background: #03c75a; color: #fff; }

/* 푸터 */
.ft { border-top: 1px solid var(--line); background: var(--surface); margin-top: 24px; }
.ft-in { max-width: var(--w); margin: 0 auto; padding: 26px 20px 36px; font-size: 13px; color: var(--ink-3); display: grid; gap: 10px; }
.ft-links { display: flex; gap: 16px; flex-wrap: wrap; } .ft-links a { color: var(--ink-2); }
.lock-veil { position: relative; }
.lock-veil > .veil { position: absolute; inset: 0; background: rgba(246, 246, 243, .86); backdrop-filter: blur(3px); display: grid; place-items: center; text-align: center; border-radius: var(--radius); z-index: 2; padding: 20px; }

/* 서비스 전용 */
.hd .nav > li > a.on { color: var(--ink); background: var(--bg); }
.logo b { font-weight: 800; }
.flash { max-width: var(--w); margin: 16px auto 0; padding: 0 20px; }

/* 아이콘 — 이모지 대신 쓰는 인라인 SVG (글자색·크기를 따른다) */
.ic { display: inline-block; width: 1.1em; height: 1.1em; vertical-align: -.17em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-wrap { display: contents; }
button .ic, .btn .ic { margin-right: .3em; }
button .ic:only-child, .burger .ic, .me-btn .ic { margin: 0; }
.burger .ic { width: 20px; height: 20px; }
