:root {
  color-scheme: light dark;
  --fg: #1d2433; --muted: #5b6475; --accent: #1f6feb; --bg: #f7f8fa; --card: #fff; --line: rgba(127,127,127,.22);
  --over: #b42318; --over-bg: #fde8e7; --urgent: #b54708; --urgent-bg: #fef0c7; --soon: #175cd3; --soon-bg: #e0ecff; --ok: #067647; --ok-bg: #dcfae6; --ref: #9e35c0;
}
@media (prefers-color-scheme: dark) {
  :root { --fg: #e6e9ef; --muted: #a3abba; --accent: #6ea8ff; --bg: #12151b; --card: #1b2029; --line: rgba(255,255,255,.12);
    --over: #ff8a80; --over-bg: #3b1714; --urgent: #fdb022; --urgent-bg: #3a2a0c; --soon: #84adff; --soon-bg: #142347; --ok: #75e0a7; --ok-bg: #0f2e1f; --ref: #d59cf0; }
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", "Malgun Gothic", sans-serif; color: var(--fg); background: var(--bg); line-height: 1.6; }
a { color: var(--accent); }
h1 { font-size: 1.6rem; margin: 8px 0 16px; letter-spacing: -0.01em; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
h2 { font-size: 1.1rem; margin: 28px 0 10px; display: flex; gap: 10px; align-items: baseline; }
small, .small { font-size: .85rem; font-weight: 400; }
.muted, .note, .empty { color: var(--muted); }

/* 공개 화면 */
.site .wrap { max-width: 640px; margin: 0 auto; padding: 48px 20px; }
.site h1 { font-size: 2.2rem; }
.badge { display: inline-block; font-size: .8rem; padding: 2px 10px; border-radius: 999px; background: var(--card); color: var(--muted); border: 1px solid var(--line); }
.lead { font-size: 1.1rem; }
.steps { padding: 0; list-style: none; counter-reset: s; display: grid; gap: 8px; }
.steps li { counter-increment: s; background: var(--card); border-radius: 10px; padding: 12px 14px; border: 1px solid var(--line); }
.steps li::before { content: counter(s); display: inline-block; width: 1.6em; color: var(--accent); font-weight: 700; }
.steps strong { margin-right: 8px; }
.langs { color: var(--muted); font-size: .9rem; }

/* 업무 화면 */
.top { display: flex; align-items: center; gap: 20px; padding: 10px 20px; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; flex-wrap: wrap; }
.brand { font-weight: 800; text-decoration: none; color: var(--fg); font-size: 1.15rem; }
.top nav { display: flex; gap: 4px; flex-wrap: wrap; }
.top nav a { text-decoration: none; color: var(--muted); padding: 6px 10px; border-radius: 8px; }
.top nav a[aria-current="page"] { color: var(--fg); background: var(--bg); font-weight: 600; }
.who { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.page { max-width: 1100px; margin: 0 auto; padding: 20px; }
.foot { max-width: 1100px; margin: 24px auto; padding: 0 20px 24px; color: var(--muted); font-size: .8rem; }

.btn { display: inline-block; background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: 9px 16px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn.small { padding: 5px 10px; font-size: .85rem; }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--line); }
button.link { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }
form.inline { display: inline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.form { display: grid; gap: 12px; margin: 12px 0; }
.form label { display: grid; gap: 4px; font-size: .9rem; color: var(--muted); }
.form label.check { display: flex; gap: 8px; align-items: center; color: var(--fg); }
.form input:not([type=checkbox]), .form select, .form textarea, .filters input, .filters select {
  font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; width: 100%; }
.form .row, .form.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; align-items: end; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; margin-bottom: 6px; }
.sensitive { background: var(--bg); padding: 10px; border-radius: 10px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0 0 12px; }
.filters input, .filters select { width: auto; }
.filters a { padding: 4px 10px; border-radius: 999px; text-decoration: none; border: 1px solid var(--line); }
.filters a[aria-current="page"] { background: var(--accent); color: #fff; border-color: var(--accent); }

.grid { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.grid th, .grid td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.grid th { font-size: .8rem; color: var(--muted); font-weight: 600; }
.grid tr:last-child td { border-bottom: 0; }
.u-over td:first-child { box-shadow: inset 4px 0 var(--over); }
.u-urgent td:first-child { box-shadow: inset 4px 0 var(--urgent); }

.tag { display: inline-block; font-size: .75rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; }
.tag-over { color: var(--over); background: var(--over-bg); }
.tag-urgent { color: var(--urgent); background: var(--urgent-bg); }
.tag-soon { color: var(--soon); background: var(--soon-bg); }
.tag-ok { color: var(--ok); background: var(--ok-bg); }

.flash { padding: 10px 14px; border-radius: 10px; margin: 0 0 10px; }
.flash-ok { background: var(--ok-bg); color: var(--ok); }
.flash-error { background: var(--urgent-bg); color: var(--urgent); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; text-decoration: none; color: var(--fg); display: grid; }
.stat strong { font-size: 1.6rem; }
.stat span { color: var(--muted); font-size: .85rem; }

.list { padding-left: 18px; }
.list li { margin: 4px 0; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.memo { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.steps-form { display: flex; flex-wrap: wrap; gap: 6px; }
.step { font: inherit; font-size: .85rem; border: 1px solid var(--line); background: var(--card); color: var(--fg); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.step.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.timeline { list-style: none; padding: 0; display: grid; gap: 8px; }
.timeline li { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.timeline li.ev-handoff, .timeline li.ev-area { border-left-color: var(--accent); }
.timeline li.ev-status, .timeline li.ev-stage { border-left-color: var(--ok); }
.timeline time { color: var(--muted); font-size: .8rem; margin-right: 6px; }
code { font-size: 1rem; background: var(--bg); padding: 2px 6px; border-radius: 6px; }

@media (max-width: 640px) {
  .grid thead { display: none; }
  .grid, .grid tbody, .grid tr, .grid td { display: block; width: 100%; }
  .grid tr { border-bottom: 1px solid var(--line); padding: 6px 0; }
  .grid td { border: 0; padding: 3px 12px; }
}

/* 0.2.0 고객 화면 */
.client .wrap { max-width: 640px; margin: 0 auto; padding: 16px 20px 40px; }
.client-top { display: flex; justify-content: flex-end; padding: 10px 20px; border-bottom: 1px solid var(--line); background: var(--card); }
.langs-switch { display: flex; gap: 6px; flex-wrap: wrap; }
.langs-switch a { padding: 4px 10px; border-radius: 999px; text-decoration: none; border: 1px solid var(--line); font-size: .9rem; }
.langs-switch a[aria-current="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.machine { font-size: .85rem; color: var(--urgent); background: var(--urgent-bg); padding: 8px 12px; border-radius: 10px; }
.choices { list-style: none; padding: 0; display: grid; gap: 10px; }
.choice { display: block; padding: 16px 18px; border-radius: 12px; background: var(--card); border: 2px solid var(--line); text-decoration: none; color: var(--fg); font-weight: 600; font-size: 1.05rem; }
.choice:hover, .choice:focus-visible { border-color: var(--accent); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent { font-size: .9rem; align-items: flex-start !important; }
.yn { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.yn legend { width: 100%; color: var(--muted); font-size: .9rem; font-weight: 400; }
.free ul { padding-left: 18px; }
.caution { background: var(--urgent-bg); color: var(--fg); border-radius: 12px; padding: 4px 14px; margin: 12px 0; }
.caution h2 { color: var(--urgent); font-size: 1rem; }
pre.contract { white-space: pre-wrap; font: inherit; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.next-step { background: var(--card); border: 2px solid var(--accent); border-radius: 14px; padding: 16px; display: grid; gap: 4px; margin: 12px 0; }
.next-step span { color: var(--muted); font-size: .85rem; }
.next-step strong { font-size: 1.15rem; }
.upload { grid-template-columns: 1fr; }
td.num, th.num { text-align: right; white-space: nowrap; }
tr.total th { font-size: 1.05rem; }

/* 0.2.0 업무 화면 */
.board { display: grid; grid-template-columns: repeat(6, minmax(170px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.board .col { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 8px; min-height: 120px; }
.board .col h2 { font-size: .95rem; margin: 4px 4px 8px; }
.lead-card { display: grid; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; text-decoration: none; color: var(--fg); }
.lead-card:hover { border-color: var(--accent); }
.col-won .lead-card { border-left: 4px solid var(--ok); }
.col-lost .lead-card { opacity: .7; }
.stat-lead { border-color: var(--accent); }
.integ { border-top: 1px solid var(--line); padding: 10px 0; }
.integ h4 { margin: 4px 0 6px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.card h3 { display: flex; gap: 10px; align-items: center; margin-top: 0; }
@media (max-width: 900px) { .board { grid-template-columns: repeat(6, 220px); } }

/* 0.3.0 소통 — 진행 추적기·메시지·문의 온도·결과지 */
.trk { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 0; }
.trk li { position: relative; padding: 6px 0 14px 30px; border-left: 3px solid var(--line); margin-left: 9px; }
.trk li::before { content: ""; position: absolute; left: -11px; top: 8px; width: 16px; height: 16px; border-radius: 50%; background: var(--card); border: 3px solid var(--line); }
.trk li:last-child { border-left-color: transparent; }
.trk .trk-done { border-left-color: var(--ok); color: var(--muted); }
.trk .trk-done::before { background: var(--ok); border-color: var(--ok); }
.trk .trk-now::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--soon-bg); }
.trk .trk-now strong { color: var(--accent); }
.trk .trk-now p { margin: 4px 0; }
.trk-mini { display: inline-block; padding: 0 6px; border-radius: 6px; font-size: .8rem; }
.trk-mini.trk-done { color: var(--ok); }
.trk-mini.trk-now { color: #fff; background: var(--accent); }
.thread { list-style: none; padding: 0; display: grid; gap: 10px; }
.msg { max-width: 85%; padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.msg p { margin: 4px 0; white-space: normal; }
.msg-client, .msg-office { justify-self: start; }
.msg-staff, .msg-mine { justify-self: end; background: var(--soon-bg); }
.msg details summary { cursor: pointer; font-size: .85rem; color: var(--muted); }
.temp { display: inline-block; font-size: .8rem; padding: 1px 8px; border-radius: 999px; font-weight: 600; }
.temp-hot { color: var(--over); background: var(--over-bg); }
.temp-warm { color: var(--urgent); background: var(--urgent-bg); }
.temp-cool { color: var(--muted); background: var(--line); }
.lead-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.stat-late strong { color: var(--over); }
.result-sheet { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px 14px; }
.result-sheet h2 { margin-top: 18px; }
@media print { .client-top, .langs-switch, .machine, .foot { display: none; } .result-sheet { border: 0; } }

/* 0.4.0 산재 심화 — 작은 할 일·마음 신호·초안·계산기·용어집 */
.micro { margin: 8px 0 0; padding-left: 1.4em; font-size: .95rem; }
.micro li { margin: 2px 0; }
.mood { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.mood-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.terms details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin: 6px 0; }
.terms summary { cursor: pointer; font-weight: 600; }
.draft { display: grid; gap: 6px; margin: 10px 0; }
.draft textarea { width: 100%; font-family: inherit; }
.result { margin: 6px 0 0; }
.result strong { font-size: 1.2rem; }
.speak[hidden] { display: none; }

/* 0.5.0 사후관리·고문 */
.checklist { list-style: none; padding: 0; margin: .5rem 0; }
.checklist li { padding: .5rem .75rem; border: 1px solid var(--line, #ddd); border-radius: 8px; margin-bottom: .4rem; }
.checklist li.done { background: #eef8f0; border-color: #b9dfc2; }
.checklist li p { margin: .25rem 0 0; font-size: .92em; }
.thread { list-style: none; padding: 0; }
.thread .msg { margin: .4rem 0; padding: .5rem .75rem; border-radius: 8px; background: #f5f6f8; }
.thread .msg-client, .thread .msg-mine { background: #eef4ff; }
label.check { display: block; font-weight: normal; margin: .2rem 0; }
fieldset { border: 1px solid var(--line, #ddd); border-radius: 8px; padding: .5rem .75rem; margin: .5rem 0; }
.report table { width: 100%; }
@media print { .no-print, header, nav, .work-nav, footer { display: none !important; } body { background: #fff; } }

/* 0.6.0 지키는 기한 + 대행 실무 */
.eta { margin: .4rem 0; padding: .4rem .75rem; border-radius: 8px; background: var(--soon-bg); }
.eta-late { background: var(--urgent-bg); }
.help-list a { text-decoration: none; display: block; padding: .35rem 0; }
.scam .checklist li { background: var(--urgent-bg); border-color: var(--line); }
.poa h1 { text-align: center; letter-spacing: .5em; }
.poa .sign { margin-top: 2rem; }
.filters a { margin-right: .5rem; }
.filters a.on { font-weight: 700; text-decoration: underline; }

/* 0.7.1 AARRR 성장 패키지 */
.site .wrap:has(.landing) { max-width: 1040px; }
.landing h2 { margin-top: 2.2rem; }
.hero { padding: 1.6rem 1.4rem; border-radius: 18px; background: linear-gradient(135deg, var(--soon-bg), var(--ok-bg)); border: 1px solid var(--line); }
.hero h1 { display: block; font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.25; margin: .3rem 0 .6rem; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero.end { text-align: center; margin-top: 2.4rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.hero.end .hero-cta { justify-content: center; }
.kpis { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .6rem; }
.kpis li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .7rem .9rem; display: flex; gap: .6rem; align-items: center; }
.kpis strong { font-size: 1.6rem; color: var(--accent); }
.kpis span { font-size: .9rem; line-height: 1.25; }
.aarrr { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .7rem; }
.aarrr > li { position: relative; background: var(--card); border: 1px solid var(--line); border-top: 5px solid var(--accent); border-radius: 12px; padding: .9rem .9rem .6rem; }
.aarrr-act { border-top-color: var(--ok) !important; } .aarrr-ret { border-top-color: var(--urgent) !important; }
.aarrr-ref { border-top-color: var(--ref) !important; } .aarrr-rev { border-top-color: var(--over) !important; }
.aarrr-n { position: absolute; top: .6rem; right: .8rem; font-weight: 800; font-size: 1.4rem; opacity: .25; }
.aarrr h3 { margin: 0 0 .3rem; } .aarrr h3 small { color: var(--muted); font-weight: 400; font-size: .8rem; }
.aarrr .pain { color: var(--muted); font-size: .9rem; margin: 0 0 .4rem; }
.aarrr ul { padding-left: 1.1rem; margin: 0; font-size: .92rem; }
.phones { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .8rem; }
.phone { margin: 0; border: 8px solid #222; border-radius: 22px; padding: .9rem; background: var(--card); min-height: 180px; }
.phone figcaption { font-size: .75rem; color: var(--muted); }
.ph-title { font-weight: 700; margin: .3rem 0; } .ph-d { font-size: 1.8rem; font-weight: 800; color: var(--over); margin: .2rem 0; }
.grid4 { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .6rem; }
.grid4 li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .8rem; display: flex; flex-direction: column; gap: .25rem; }
.grid4 span { color: var(--muted); font-size: .9rem; }
.hero-client { text-align: center; }
.big-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; margin-top: 1rem; }
.big-btn { display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: 1rem .6rem; border-radius: 14px; background: var(--card); border: 2px solid var(--line); text-decoration: none; color: var(--fg); }
.big-btn span { font-size: 1.8rem; } .big-btn small { color: var(--muted); }
.big-main { background: var(--accent); border-color: var(--accent); color: #fff; } .big-main small { color: #fff; opacity: .9; }
.why { list-style: none; padding: 0; display: grid; gap: .5rem; }
.why li { display: flex; gap: .7rem; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .7rem .9rem; }
.why li > span { font-size: 1.4rem; } .why p { margin: .3rem 0 0; }
.journey { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.journey li { flex: 1 1 140px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: .6rem; font-size: .92rem; }
.journey span { display: inline-block; width: 1.6rem; height: 1.6rem; line-height: 1.6rem; text-align: center; border-radius: 50%; background: var(--accent); color: #fff; margin-right: .3rem; font-weight: 700; }
.pick { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; }
.pick-card { display: flex; flex-direction: column; gap: .4rem; padding: 1rem; min-height: 96px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); text-decoration: none; color: var(--fg); font-weight: 600; }
.pick-card span { font-size: 1.8rem; } .pick-card:hover, .pick-card:focus { border-color: var(--accent); }
.dots { list-style: none; display: flex; gap: .4rem; justify-content: center; padding: 0; margin: 1.2rem 0; }
.dots li { width: .6rem; height: .6rem; border-radius: 50%; background: var(--line); } .dots li.is-on { background: var(--accent); }
.result-card { border-radius: 16px; padding: 1.1rem 1.2rem; background: var(--soon-bg); border: 1px solid var(--line); margin: .8rem 0; }
.result-card.soon { background: var(--urgent-bg); } .result-card.late { background: var(--over-bg); }
.dday { font-size: 3rem; font-weight: 800; margin: .1rem 0; letter-spacing: -.02em; }
.result-card.soon .dday { color: var(--urgent); } .result-card.late .dday { color: var(--over); }
.urgent-text { font-size: 1.08rem; }
.docs3 { padding-left: 1.3rem; } .docs3 li { margin: .3rem 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: .5rem; } .btn.big { font-size: 1.1rem; padding: .8rem 1.3rem; }
.share { border-style: dashed; }
.today { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: .6rem 0; }
.today .tile { display: flex; flex-direction: column; padding: .6rem .7rem; border-radius: 12px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--fg); }
.today .tile small { color: var(--muted); font-size: .78rem; } .today .tile strong { font-size: 1.4rem; } .today .tile span { font-size: .8rem; }
.sr-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.funnel { list-style: none; padding: 0; display: grid; gap: .6rem; }
.funnel > li { background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--accent); border-radius: 10px; padding: .6rem .9rem; }
.funnel-act { border-left-color: var(--ok) !important; } .funnel-ret { border-left-color: var(--urgent) !important; }
.funnel-ref { border-left-color: var(--ref) !important; } .funnel-rev { border-left-color: var(--over) !important; }
.funnel h2 { margin: 0 0 .3rem; font-size: 1.05rem; }
.funnel ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .4rem; }
.funnel ul li { display: grid; grid-template-columns: 1fr auto auto; gap: .3rem .5rem; align-items: center; font-size: .92rem; }
.funnel ul li strong { font-size: 1.2rem; }
.rate { font-size: .8rem; color: var(--ok); font-weight: 700; } .rate.low { color: var(--over); }
.bar, .progress { grid-column: 1 / -1; display: block; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin: 0; }
.bar i, .progress i { display: block; height: 100%; background: var(--accent); }
.w0 { width: 0; } .w10 { width: 10%; } .w20 { width: 20%; } .w30 { width: 30%; } .w40 { width: 40%; } .w50 { width: 50%; }
.w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; } .w90 { width: 90%; } .w100 { width: 100%; }
.advice ol { padding-left: 1.2rem; } .advice li { margin: .4rem 0; }
@media (prefers-color-scheme: dark) { .phone { border-color: #555; } }

/* 0.8.0 정착 사다리 */
.road-steps { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.road-steps li { position: relative; padding: .45rem .8rem; border-radius: 999px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.road-steps li + li::before { content: '→'; position: absolute; left: -.85rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.road-steps li + li { margin-left: .9rem; }
.road-steps li.now { background: var(--accent); border-color: var(--accent); color: #fff; }
.road-steps li small { font-size: .7rem; opacity: .85; }
.paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .6rem; }
.path-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .7rem .9rem; }
.path-card h3 { margin: 0 0 .3rem; }
.path-card .progress { margin: .2rem 0 .5rem; }
.plain { list-style: none; padding: 0; margin: 0; } .plain li { margin: .25rem 0; }
.score { font-size: 2rem; color: var(--urgent); } .score.ok { color: var(--ok); }
.row.wrap { flex-wrap: wrap; }
.kiosk { max-width: 640px; margin: 0 auto; text-align: center; }
.kiosk h1 { display: block; font-size: 2rem; }
.kiosk-langs { display: flex; gap: .4rem; justify-content: center; flex-wrap: wrap; }
.kiosk-langs a { padding: .4rem .8rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.kiosk-langs a[aria-current] { background: var(--accent); color: #fff; border-color: var(--accent); }
.kiosk-form { text-align: left; } .kiosk-form input[name=name] { font-size: 1.4rem; padding: .7rem; }
.kiosk-form .pick-card { flex-direction: row; align-items: center; min-height: 64px; cursor: pointer; }
.kiosk-done { font-size: 1.4rem; padding: 1.4rem; border-radius: 16px; background: var(--ok-bg); }
.queue { padding-left: 1.4rem; } .queue li { padding: .6rem; border-bottom: 1px solid var(--line); display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.queue li.called { background: var(--urgent-bg); } .queue li strong { font-size: 1.2rem; min-width: 10rem; }
.inst-list { padding-left: 1.3rem; } .inst-list li { margin: .3rem 0; } .inst-paid { opacity: .7; }
.inline-h { display: inline; font-size: 1.15rem; margin: 0; }
.jeonse summary { cursor: pointer; }

/* ───────── 0.8.1 사용성·접근성 패키지 ───────── */
/* 건너뛰기 링크 (키보드·화면낭독기) */
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--accent); color: #fff; padding: 10px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 8px; }
main:focus { outline: none; }
/* 메뉴: 매일 5개 + 더보기 */
.nav-main { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.nav-main > a, .more > summary { text-decoration: none; color: var(--muted); padding: 8px 12px; border-radius: 8px; min-height: 40px; display: inline-flex; align-items: center; }
.nav-main > a:hover, .more > summary:hover { background: var(--bg); color: var(--fg); }
.nav-main > a[aria-current="page"], .more.has-current > summary { color: var(--fg); background: var(--bg); font-weight: 700; box-shadow: inset 0 -2px 0 var(--accent); }
.more { position: relative; }
.more > summary { cursor: pointer; list-style: none; gap: 4px; }
.more > summary::-webkit-details-marker { display: none; }
.more-panel { position: absolute; top: calc(100% + 6px); left: 0; min-width: 260px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px; box-shadow: 0 12px 32px rgba(0,0,0,.14); display: grid; gap: 4px; z-index: 20; }
.more-group { display: grid; }
.more-h { margin: 6px 10px 2px; font-size: .75rem; color: var(--muted); font-weight: 700; letter-spacing: .02em; }
.more-panel a { padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--fg); }
.more-panel a:hover, .more-panel a:focus-visible { background: var(--bg); }
.more-panel a[aria-current="page"] { background: var(--soon-bg); font-weight: 700; }
/* 모바일 아래 탭 */
.tabbar { display: none; }
@media (max-width: 720px) {
  .top { gap: 8px; padding: 8px 12px; }
  .nav-main > a { display: none; }
  .who { font-size: .9rem; }
  .more-panel { left: auto; right: 0; position: fixed; top: 56px; right: 8px; left: 8px; max-height: 70vh; overflow: auto; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 15; background: var(--card); border-top: 1px solid var(--line); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: .72rem; color: var(--muted); text-decoration: none; padding: 6px 0; border-radius: 10px; min-height: 48px; justify-content: center; }
  .tabbar a span { font-size: 1.2rem; line-height: 1; }
  .tabbar a[aria-current="page"] { color: var(--accent); font-weight: 700; background: var(--soon-bg); }
  body.work { padding-bottom: 72px; }
  .page { padding: 14px 12px; }
  h1 { font-size: 1.35rem; }
}
/* 터치 기기: 누르기 쉬운 크기, iOS 확대 막기 */
@media (pointer: coarse) {
  .btn, button, .filters a, summary { min-height: 44px; }
  .btn.small { min-height: 38px; padding: 8px 12px; }
  .form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea, input, select, textarea { font-size: 16px; }
  .form label.check input, input[type=checkbox], input[type=radio] { width: 22px; height: 22px; }
}
/* 표: 작은 화면에서 옆으로 밀어 보기 */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 12px; border-radius: 10px; }
.table-wrap:focus-visible { outline: 3px solid var(--accent); }
.table-wrap > table.grid { margin: 0; min-width: 560px; }
/* 필수 칸 표시 */
.form label:has(> input[required], > select[required], > textarea[required]) { font-weight: 600; }
.form label > input[required]:not([type=checkbox]):not([type=radio]), .form label > select[required], .form label > textarea[required] { border-left: 3px solid var(--accent); }
.form input:user-invalid, .form textarea:user-invalid, .form select:user-invalid { border-color: var(--over); background: var(--over-bg); }
/* 버튼·카드 상호작용 */
.btn { transition: background-color .15s, box-shadow .15s, transform .08s; }
.btn:hover { filter: brightness(1.06); box-shadow: 0 2px 8px rgba(31,111,235,.25); }
.btn.ghost:hover { background: var(--soon-bg); box-shadow: none; filter: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled], button[disabled] { opacity: .6; cursor: progress; }
form[aria-busy="true"] { cursor: progress; }
.lead-card, .pick-card, .big-btn, .tile, .path-card { transition: border-color .15s, box-shadow .15s, transform .15s; }
.lead-card:hover, .pick-card:hover, .big-btn:hover, .tile:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); transform: translateY(-1px); }
/* 알림 */
.flash-msg { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; }
.flash-x { background: none; border: 0; font-size: 1.2rem; line-height: 1; cursor: pointer; color: inherit; padding: 2px 6px; border-radius: 6px; min-height: 0; }
.flash-x:hover { background: rgba(127,127,127,.15); }
.flash-out { opacity: 0; transform: translateY(-4px); transition: opacity .25s, transform .25s; }
/* 파일 끌어 놓기 */
.drop { display: block; }
.drop-on { position: relative; display: grid; gap: 6px; padding: 14px; border: 2px dashed var(--line); border-radius: 12px; background: var(--bg); transition: border-color .15s, background-color .15s; }
.drop-on.drop-over { border-color: var(--accent); background: var(--soon-bg); }
.drop-on.drop-bad { border-color: var(--over); background: var(--over-bg); }
.drop-hint { font-size: .85rem; color: var(--muted); }
.drop-on input[type=file] { width: 100%; font: inherit; font-size: .9rem; color: var(--muted); background: transparent; border: 0; padding: 0; }
.drop-on input[type=file]::file-selector-button { font: inherit; font-weight: 600; margin-right: 10px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--accent); background: var(--card); color: var(--accent); cursor: pointer; }
.drop-on input[type=file]::file-selector-button:hover { background: var(--soon-bg); }
.drop-bad .drop-hint { color: var(--over); font-weight: 600; }
form.inline .drop-on { display: inline-grid; vertical-align: middle; margin-right: 6px; }
/* 문의 보드 끌어 놓기 */
.lead-card[draggable="true"] { cursor: grab; }
.lead-card.dragging { opacity: .5; cursor: grabbing; }
.col.drop-target { outline: 2px dashed var(--accent); outline-offset: 2px; background: var(--soon-bg); border-radius: 12px; }
.lead-card.moved { box-shadow: 0 0 0 3px var(--ok); }
/* 오류 화면 */
.error-box { text-align: center; padding: 3rem 1rem; }
.error-box .error-code { font-size: 4rem; font-weight: 800; color: var(--line); margin: 0; letter-spacing: -.04em; }
.error-box h1 { display: block; }
.error-box .hero-cta { justify-content: center; }
/* 부드러운 등장 — 움직임 줄이기 설정이면 끔 */
@media (prefers-reduced-motion: no-preference) {
  .page > *, .wrap > section, .wrap > .card { animation: rise .28s ease-out both; }
  .page > *:nth-child(2) { animation-delay: .03s; } .page > *:nth-child(3) { animation-delay: .06s; } .page > *:nth-child(4) { animation-delay: .09s; }
  .more[open] .more-panel { animation: pop .14s ease-out; }
  .flash-msg { animation: rise .25s ease-out both; }
  @keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
  @keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
/* 고대비 모드 */
@media (forced-colors: active) {
  .btn, .tag, .tile, .lead-card { border: 1px solid ButtonText; }
  .nav-main > a[aria-current="page"] { outline: 2px solid Highlight; }
}
/* 인쇄: 메뉴·버튼 빼고 내용만 */
@media print {
  .top, .tabbar, .foot, .skip, .btn, form.inline, .flash-x { display: none !important; }
  body { background: #fff; color: #000; }
  .page { max-width: none; padding: 0; }
}

/* ───────── 0.8.2 체감 속도 ───────── */
/* 화면 이동 진행 막대: 150ms 안에 끝나면 보이지 않음 */
.nav-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--accent); z-index: 200; opacity: 0; pointer-events: none; }
.nav-bar.on { opacity: 1; width: 80%; transition: width 8s cubic-bezier(.1,.7,.2,1) .15s, opacity 0s .15s; }
.nav-bar.done { opacity: 0; width: 100%; transition: opacity .2s; }
/* 긴 화면: 화면 밖 영역은 보일 때 그리기 (첫 화면이 빨리 뜸) */
.client .wrap > section:nth-of-type(n+5), .page > section:nth-of-type(n+4), .board .col { content-visibility: auto; contain-intrinsic-size: auto 480px; }
.lead-card { content-visibility: auto; contain-intrinsic-size: auto 120px; }
.more-link { display: block; text-align: center; padding: 8px; border-radius: 8px; font-size: .85rem; text-decoration: none; }
.more-link:hover { background: var(--bg); }
@media (prefers-reduced-motion: reduce) { .nav-bar { display: none; } }

/* 0.8.3 세 개의 공간 */
.space-badge{display:inline-block;font-size:.8rem;font-weight:700;padding:.15rem .55rem;border-radius:999px;margin:0 0 .4rem;background:#eef2f7;color:#24364b}
.space-member{background:#e6f6ee;color:#145c38}.space-expert{background:#e8effc;color:#1d3f8a}.space-admin{background:#f3e9fb;color:#5a2384}
.spaces{margin:2rem 0}.space-grid{display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(15rem,1fr))}
.space-card{display:flex;flex-direction:column;gap:.35rem;padding:1.1rem;border:1px solid #d6dde6;border-radius:12px;background:#fff;color:inherit;text-decoration:none;max-width:34rem}
a.space-card:hover,a.space-card:focus-visible{border-color:#1d3f8a;box-shadow:0 2px 10px rgba(29,63,138,.12)}
section.space-card{margin:2rem auto}
.space-nav{display:flex;flex-wrap:wrap;gap:.25rem .9rem;align-items:center;margin:0 0 1rem}
.space-nav a[aria-current]{font-weight:700;text-decoration:underline}
.space-list{list-style:none;padding:0;margin:0 0 1rem}
.space-item{display:flex;justify-content:space-between;gap:1rem;padding:.7rem 0;border-bottom:1px solid #e6eaf0}
.chat{list-style:none;padding:0;margin:1rem 0;display:flex;flex-direction:column;gap:.6rem}
.chat li{max-width:min(36rem,88%);padding:.6rem .8rem;border-radius:12px}
.chat li p{margin:.25rem 0 0}
.chat-me{align-self:flex-end;background:#e8effc}.chat-them{align-self:flex-start;background:#f2f4f7}
.notice{border-left:4px solid #5a2384}
@media (prefers-color-scheme:dark){.space-card{background:#1b2230;border-color:#334}.chat-me{background:#24324d}.chat-them{background:#262b33}.space-item{border-color:#333b48}}

/* 0.9.0 결과를 앞당기는 실무 — AI 표시 배지·업역 신호등·보완 요청·처리 기간·업무시간 밖 응답·안내글·증거 목차 */
.ai-badge { display: inline-block; font-size: .78rem; padding: 1px 8px; border-radius: 999px; background: var(--soon-bg); color: var(--soon); border: 1px solid var(--line); font-weight: 600; }
.ai-badge.ai-draft { background: var(--urgent-bg); color: var(--urgent); }
.ai-badge.ai-ok { background: var(--ok-bg); color: var(--ok); }
.signal { font-weight: 600; white-space: nowrap; }
.signal-yellow { color: var(--urgent); }
.signal-green { color: var(--ok); }
.scope-warn { background: var(--urgent-bg); color: var(--urgent); border-radius: 8px; padding: 6px 10px; }
.sup, .aid-free, .after-hours { border-left: 4px solid var(--urgent); }
.aid-free { border-left-color: var(--ok); }
.pace { color: var(--muted); }
.guide-body { line-height: 1.8; font-size: 1.05rem; }
.guide-cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
code.hash { word-break: break-all; font-size: .75rem; }
@media print { .print-sheet .grid { font-size: .8rem; } .print-sheet code.hash { font-size: .7rem; } }

/* ───── 0.10.0 SafeK 도우미 (카카오톡형) · 건의 상태 · 생애 지도 · 추적판 ───── */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tag-ai { background: #efe7ff; color: #5b3cc4; }
.helper-fab { position: fixed; right: 16px; bottom: 84px; z-index: 40; display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px;
  background: #fee500; color: #191919; font-weight: 700; text-decoration: none; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }
.helper-fab:hover, .helper-fab:focus-visible { background: #fada0a; }
@media (min-width: 900px) { .helper-fab { bottom: 24px; } }
.kakao { max-width: 640px; margin: 0 auto; background: #b2c7d9; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.kakao-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #a9bdce; }
.kakao-top h1 { font-size: 1.05rem; margin: 0; }
.kakao-top p { margin: 0; color: #334; }
.kakao-faq { margin-left: auto; font-size: .85rem; background: #fff; padding: 4px 10px; border-radius: 999px; text-decoration: none; color: #333; }
.kakao-avatar { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 14px; background: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.kakao-log { list-style: none; margin: 0; padding: 14px; min-height: 320px; max-height: 62vh; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.kb { display: flex; gap: 8px; align-items: flex-end; max-width: 100%; }
.kb-me { justify-content: flex-end; }
.kb-col { display: flex; flex-direction: column; gap: 4px; max-width: 78%; }
.kb-name { font-size: .78rem; color: #333; font-weight: 400; }
.kb-bubble { margin: 0; padding: 8px 11px; border-radius: 14px; background: #fff; color: #191919; line-height: 1.5; word-break: break-word; white-space: pre-wrap; }
.kb-me .kb-bubble { background: #fee500; max-width: 78%; border-top-right-radius: 4px; }
.kb-bot .kb-bubble { border-top-left-radius: 4px; }
.kb-time { font-size: .7rem; color: #4a5866; white-space: nowrap; }
.kb-read { color: #b8860b; }
.kb-link { font-size: .85rem; background: #fff; border-radius: 10px; padding: 6px 10px; text-decoration: none; display: inline-block; }
.kb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.kb-chip { background: #fff; border: 1px solid #dfe6ee; border-radius: 999px; padding: 4px 10px; font-size: .82rem; text-decoration: none; color: #222; }
.kb-rate { font-size: .78rem; color: #333; }
.kb-wait .kb-bubble { color: #666; font-style: italic; }
.kakao-input { display: flex; gap: 8px; padding: 10px; background: #fff; }
.kakao-input textarea { flex: 1; resize: none; border: 1px solid #ddd; border-radius: 10px; padding: 8px; min-height: 40px; font: inherit; }
.kakao-send { background: #fee500; color: #191919; border: 0; border-radius: 10px; padding: 0 16px; font-weight: 700; cursor: pointer; }
.kakao-note { margin: 0; padding: 8px 12px; background: #eef2f6; color: #4a5866; }
.faq-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.fb-flow { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 6px 0; font-size: .8rem; }
.fb-flow li { padding: 2px 8px; border-radius: 999px; background: var(--line); color: var(--muted); }
.fb-flow li.on { background: var(--ok-bg); color: var(--ok); }
.fb-flow li.now { font-weight: 700; outline: 2px solid currentColor; }
.fb-flow li.off { background: var(--soon-bg); color: var(--soon); }
.lifemap { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 6px 0; }
.lifemap li { padding: 4px 12px; border-radius: 999px; background: var(--line); color: var(--muted); }
.lifemap li.done { background: var(--ok-bg); color: var(--ok); }
.lifemap li.now { background: var(--accent); color: #fff; font-weight: 700; }
.board td { vertical-align: top; }
.w-reason { max-width: 14rem; padding: 2px 6px; font-size: .85rem; }
.btn.danger { background: var(--urgent); border-color: var(--urgent); color: #fff; }
tr.is-done, .is-done { opacity: .6; }

/* ───── 0.11.0 근로자 기록 + 신고 길 ───── */
.inline-form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-end; margin: .5rem 0; }
.inline-form label { display: flex; flex-direction: column; font-size: .9rem; }
.u-soon td { background: #fff8e6; }
.vt-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: .5rem; border: 0; padding: 0; margin: .5rem 0; }
.vt-cards legend { font-weight: 600; margin-bottom: .4rem; }
.vt-card { display: flex; align-items: center; gap: .4rem; padding: .6rem .7rem; border: 1px solid #d0d7de; border-radius: .6rem; background: #fff; cursor: pointer; min-height: 3rem; }
.vt-card:has(input:checked) { border-color: #1f6feb; background: #eef4ff; }
.vt-ico { font-size: 1.4rem; }
.visa-pick { border: 1px dashed #d0d7de; border-radius: .5rem; padding: .5rem; }
.visa-pick .check { display: inline-flex; margin-right: .5rem; }
.help-q { display: inline-flex; align-items: center; justify-content: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; border: 1px solid currentColor; font-weight: 700; text-decoration: none; margin-right: .5rem; }
.kb-doc { background: #fff; border-radius: .6rem; padding: .4rem .6rem; margin-top: .3rem; max-width: 32rem; }
.kb-doc summary { cursor: pointer; font-weight: 600; }
.jobreport { border-left: 4px solid #1f6feb; }
@media (prefers-color-scheme: dark) {
  .vt-card { background: #161b22; border-color: #30363d; }
  .vt-card:has(input:checked) { background: #0d2547; border-color: #58a6ff; }
  .u-soon td { background: #3a2f12; }
  .kb-doc { background: #161b22; }
}
/* 0.13.0 임금 미지급 시계·신고 안전 장치·창구 카드 */
.quick-exit { position: fixed; top: 8px; right: 8px; z-index: 50; padding: 6px 14px; border-radius: 999px; background: var(--over); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.quick-exit:focus-visible { outline: 3px solid var(--fg); outline-offset: 2px; }
.pc-buttons { display: flex; flex-wrap: wrap; gap: .4rem; }
.paycheck .lead { color: var(--over); font-weight: 700; }
.deskcard li, .homedesk li { margin: .2rem 0; }
@media print { .quick-exit { display: none; } }

/* 0.15.0 모국어 전자 서명 (S306) · 현장 말 사전 (S287) */
.sig-pad { display: block; width: 100%; max-width: 600px; height: auto; aspect-ratio: 3 / 1; border: 2px dashed #8a8f98; border-radius: 8px; background: #fff; touch-action: none; }
.sig-pad.sig-empty { border-color: #c0392b; }
.sign-text .pre { white-space: pre-wrap; }
dl.terms { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; }
dl.terms dt { font-weight: 600; }
dl.terms dd { margin: 0; }
/* 0.16.0 창구 자막(S322)·첫날 안내 인쇄본(S321) */
.caption-lines { list-style: none; padding: 0; margin: 0 0 12px; }
.cap { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 8px 0; background: var(--card); }
.cap-client { border-left: 6px solid var(--soon); }
.cap-staff { border-left: 6px solid var(--ok); }
.cap-text { font-size: 1.6rem; line-height: 1.4; margin: 4px 0; }
.cap-tr { font-size: 1.9rem; line-height: 1.4; font-weight: 700; margin: 4px 0; }
.caption-input textarea { font-size: 1.3rem; }
.w-link { width: min(420px, 100%); }
.print-sheet { max-width: 760px; }
.sign-line td { min-width: 220px; height: 2.2rem; }
