/* 한 화면에 한 단계: 위 진행 막대, 가운데 큰 터치 버튼, 아래 이전/다음. 밝은 단일 테마(부스 배너와 같은 녹색·노랑). */
:root{
  color-scheme: light;
  --ground:#F4F8EF; --card:#FFFFFF; --ink:#1E2A1A; --muted:#5B6B55; --line:#DCE7D3;
  --green:#3F8F2A; --green-deep:#1F4D14; --green-soft:#E6F3DB; --leaf:#7AB929; --sun:#FFE14D;
  --bad:#B3261E; --bad-soft:#FBE9E7; --warn:#8A5A00; --warn-soft:#FFF4CC; --good:#2F7A1F;
  --display:'Jua','Noto Sans KR',system-ui,sans-serif;
  --body:'Noto Sans KR',system-ui,-apple-system,'Apple SD Gothic Neo','Malgun Gothic',sans-serif;
  --shadow:0 1px 2px rgba(31,77,20,.06),0 6px 20px rgba(31,77,20,.06);
}
*{box-sizing:border-box}
html,body{height:100%;margin:0}
body{background:var(--ground);color:var(--ink);font-family:var(--body);font-size:18px;line-height:1.5;-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:100%}
#app{height:100%;display:flex;flex-direction:column}
header{display:flex;align-items:center;gap:16px;padding:10px 24px;background:var(--card);border-bottom:1px solid var(--line)}
header img{height:44px;width:auto}
header .ttl{font-family:var(--display);font-size:22px;color:var(--green-deep);flex:1}
header .step{font-size:15px;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.bar{height:8px;background:var(--green-soft)}
.bar i{display:block;height:100%;background:linear-gradient(90deg,var(--green),var(--leaf));width:0;border-radius:0 8px 8px 0;transition:width .3s}
main{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:28px 24px 40px}
.wrap{max-width:860px;margin:0 auto;display:flex;flex-direction:column;gap:18px}
h1{font-family:var(--display);font-weight:400;font-size:46px;line-height:1.18;margin:0;color:var(--green-deep);text-wrap:balance}
h2{font-family:var(--display);font-weight:400;font-size:30px;line-height:1.25;margin:0;color:var(--green-deep);text-wrap:balance}
p{margin:0}
.lead{color:var(--muted);font-size:18px}
.card{background:var(--card);border:1px solid var(--line);border-radius:20px;padding:20px;display:flex;flex-direction:column;gap:12px;box-shadow:var(--shadow)}
.card.bad{border-color:var(--bad)}
.q{font-weight:700;font-size:19px}
.q .qn{display:inline-block;min-width:28px;color:var(--green);font-family:var(--display);font-weight:400}
.hint{color:var(--muted);font-size:15px}
.chips{display:flex;flex-wrap:wrap;gap:10px}
.chips.scale{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
.chip{min-height:56px;padding:10px 20px;border-radius:16px;border:2px solid var(--line);background:var(--card);color:var(--ink);font:inherit;font-weight:500;font-size:18px;cursor:pointer;text-align:center;transition:background .12s,border-color .12s,transform .08s;touch-action:manipulation}
.chip:active{transform:scale(.97)}
.chip[aria-pressed="true"]{background:var(--green);border-color:var(--green);color:#fff;font-weight:700}
.chips.scale .chip{padding:10px 6px}
.chip.big{min-height:92px;text-align:left;display:flex;flex-direction:column;justify-content:center;flex:1 1 240px;gap:2px;position:relative;padding-right:52px}
.chip.big b{font-family:var(--display);font-weight:400;font-size:24px}
.chip.big span{font-size:15px;opacity:.85}
.chip.big::after{content:"";position:absolute;right:18px;top:50%;width:24px;height:24px;margin-top:-12px;border-radius:50%;border:2px solid var(--line)}
.chip.big[aria-pressed="true"]::after{border-color:#fff;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%233F8F2A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat}
.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
label.f{display:flex;flex-direction:column;gap:6px;font-weight:700;font-size:17px}
label.f input{font:inherit;font-weight:500;font-size:19px;min-height:56px;padding:10px 16px;border-radius:14px;border:2px solid var(--line);background:#fff;color:var(--ink);width:100%}
label.f input:focus{border-color:var(--green);outline:none}
button:focus-visible,input[type=checkbox]:focus-visible{outline:3px solid var(--sun);outline-offset:2px}
.req{color:var(--bad);margin-left:2px}
.err{color:var(--bad);font-weight:700;font-size:16px}
.check{display:flex;flex-direction:row;gap:14px;align-items:flex-start;font-size:17px;cursor:pointer}
.check input{width:30px;height:30px;flex:none;accent-color:var(--green);margin:1px 0 0}
footer{display:flex;gap:12px;padding:14px 24px calc(14px + env(safe-area-inset-bottom));background:var(--card);border-top:1px solid var(--line)}
.btn{min-height:60px;padding:0 28px;border-radius:18px;border:2px solid var(--green);background:var(--card);color:var(--green-deep);font-family:var(--display);font-size:22px;cursor:pointer;touch-action:manipulation}
.btn:active{transform:scale(.98)}
.btn.pri{background:var(--green);color:#fff;flex:1}
.btn.sm{min-height:48px;font-size:18px;padding:0 18px}

/* 시작 화면 */
.hero{min-height:100%;justify-content:center;gap:26px}
.tags{display:flex;flex-wrap:wrap;gap:8px}
.tag{padding:6px 14px;border-radius:999px;background:var(--green-soft);color:var(--green-deep);font-weight:700;font-size:15px}
.feats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.feat{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:16px;box-shadow:var(--shadow)}
.feat b{display:block;font-family:var(--display);font-weight:400;font-size:24px;color:var(--green)}
.feat span{font-size:15px;color:var(--muted)}
.btn.start{flex:none;align-self:flex-start;min-width:280px;min-height:76px;font-size:28px;box-shadow:0 8px 24px rgba(63,143,42,.3)}

.save{font-size:16px;font-weight:700;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.save.ok{color:var(--good)} .save.no{color:var(--bad)} .save.wait{color:var(--warn)}
dl{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:6px 16px;margin:0;font-size:15px}
dt{color:var(--muted)} dd{margin:0;font-weight:500;overflow-wrap:anywhere}

/* 리포트 */
.rp{display:flex;flex-direction:column;gap:18px}
.rp-cover{display:flex;gap:24px;align-items:center;justify-content:space-between;padding:28px;border-radius:24px;color:#fff;background:linear-gradient(135deg,var(--green-deep),var(--green) 70%,var(--leaf));box-shadow:var(--shadow)}
.rp-cover-l{display:flex;flex-direction:column;gap:10px;min-width:0}
.rp-eyebrow{font-size:15px;font-weight:700;letter-spacing:.02em;opacity:.9}
.rp-company{color:#fff;font-size:36px;overflow-wrap:anywhere}
.rp-tags{display:flex;flex-wrap:wrap;gap:6px}
.rp-tag{padding:4px 12px;border-radius:999px;background:rgba(255,255,255,.18);font-size:14px;font-weight:700}
.rp-meta{font-size:15px;opacity:.9}
.rp-cover-r{display:flex;flex-direction:column;align-items:center;gap:10px;flex:none}
.rp-ring{width:148px;height:148px}
.rp-ring-bg{fill:none;stroke:rgba(255,255,255,.22);stroke-width:12}
.rp-ring-fg{fill:none;stroke:var(--sun);stroke-width:12;stroke-linecap:round}
.rp-ring-n{fill:#fff;font-family:var(--display);font-size:44px}
.rp-ring-u{fill:#fff;font-size:11px;opacity:.85}
.rp-lvl{padding:6px 16px;border-radius:999px;font-weight:700;font-size:16px;background:var(--sun);color:var(--green-deep);white-space:nowrap}
.rp-h{font-family:var(--display);font-size:22px;color:var(--green-deep)}
.rp-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.rp-stat{border-radius:16px;padding:14px 10px;background:var(--ground);text-align:center;display:flex;flex-direction:column;justify-content:center;gap:2px}
.rp-stat b{font-family:var(--display);font-weight:400;font-size:34px;line-height:1.1;color:var(--green-deep)}
.rp-stat b.sm{font-size:21px;line-height:1.6}
.rp-stat span{font-size:14px;color:var(--muted);font-weight:700}
.rp-stat.good{background:var(--green-soft)} .rp-stat.good b{color:var(--good)}
.rp-stat.part{background:var(--warn-soft)} .rp-stat.part b{color:var(--warn)}
.rp-stat.weak{background:var(--bad-soft)} .rp-stat.weak b{color:var(--bad)}
.rp-dl{grid-template-columns:150px minmax(0,1fr);font-size:16px;gap:8px 16px}
.row{display:grid;grid-template-columns:210px 1fr 56px;gap:12px;align-items:center;font-size:16px;font-weight:500}
.meter{height:18px;border-radius:999px;background:var(--ground);overflow:hidden}
.meter i{display:block;height:100%;border-radius:999px;background:var(--green)}
.meter i.mid{background:#E0A800} .meter i.lo{background:#D9534A}
.row .v{text-align:right;font-weight:700;font-variant-numeric:tabular-nums}
.rp-gap{display:flex;gap:14px;padding-top:12px;border-top:1px solid var(--line)}
.rp-h + .rp-gap{border-top:0;padding-top:0}
.rp-no{flex:none;width:32px;height:32px;border-radius:50%;background:var(--green-deep);color:#fff;font-family:var(--display);font-size:17px;display:flex;align-items:center;justify-content:center}
.rp-gap-b{display:flex;flex-direction:column;gap:4px;min-width:0}
.rp-gap-t{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
.rp-gap-t b{font-size:18px}
.rp-gap-b p{font-size:16px;color:var(--muted)}
.rp-pill{padding:2px 10px;border-radius:999px;font-size:13px;font-weight:700}
.rp-pill.weak{background:var(--bad-soft);color:var(--bad)} .rp-pill.part{background:var(--warn-soft);color:var(--warn)}
.rp-area{font-size:13px;color:var(--muted)}
.rp-goods{display:flex;flex-wrap:wrap;gap:8px}
.rp-good{padding:6px 14px;border-radius:999px;background:var(--green-soft);color:var(--green-deep);font-size:15px;font-weight:700}
.rp-road{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.rp-road li{background:var(--ground);border-radius:14px;padding:12px 8px;text-align:center;font-size:14px;font-weight:700;display:flex;flex-direction:column;align-items:center;gap:6px}
.rp-road i{font-style:normal;width:28px;height:28px;border-radius:50%;background:var(--green);color:#fff;font-family:var(--display);display:flex;align-items:center;justify-content:center}
.rp-tips{margin:4px 0 0;padding-left:22px;display:flex;flex-direction:column;gap:6px;font-size:16px}
.rp-cta{padding:22px 24px;border-radius:20px;background:var(--sun);color:var(--green-deep)}
.rp-cta b{font-family:var(--display);font-weight:400;font-size:22px}
.rp-cta p{font-size:16px;font-weight:500;margin-top:4px}
.rp-cta .rp-person{margin-top:14px;padding-top:14px;border-top:1px solid rgba(31,77,20,.2);display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px}
.rp-person strong{font-family:var(--display);font-weight:400;font-size:22px}
.rp-person span{font-size:15px}
.rp-cta .rp-contact{font-weight:700;font-size:19px;font-variant-numeric:tabular-nums}
.rp-cta .rp-addr{font-size:15px;font-weight:400}
.rp-note{text-align:center}
.rp-admin{border-style:dashed}
.rp-admin .rp-dl{grid-template-columns:minmax(0,1fr) minmax(0,1fr);font-size:15px}

/* 리포트 단독 페이지(예시, 관리자) */
body.page{height:auto;padding:24px 16px 48px}
.page-bar{max-width:860px;margin:0 auto 18px;display:flex;gap:12px;align-items:center}
.page-bar img{height:40px} .page-bar span{flex:1;color:var(--muted);font-size:15px}

@media (max-width:640px){
  body{font-size:17px} h1{font-size:34px} h2{font-size:26px}
  .grid2,.feats{grid-template-columns:1fr} .chips.scale{grid-template-columns:repeat(2,minmax(0,1fr))}
  .row{grid-template-columns:1fr 48px} .row .meter{grid-column:1/-1;grid-row:2}
  header .ttl{font-size:19px} main{padding:20px 16px 32px} header,footer{padding-left:16px;padding-right:16px}
  .rp-cover{flex-direction:column;align-items:flex-start} .rp-cover-r{align-self:center}
  .rp-stats{grid-template-columns:repeat(2,minmax(0,1fr))} .rp-road{grid-template-columns:1fr}
  .rp-road li{flex-direction:row;text-align:left} .rp-dl{grid-template-columns:110px minmax(0,1fr)}
  .btn.start{align-self:stretch}
}
@media (prefers-reduced-motion:reduce){.bar i,.chip{transition:none}}
@media print{
  @page{size:A4;margin:12mm}
  *{-webkit-print-color-adjust:exact;print-color-adjust:exact}
  html,body,#app{height:auto} body,body.page{background:#fff;font-size:13px;padding:0}
  #app > header,.bar,footer,.noprint{display:none !important}
  main{overflow:visible;padding:0} .wrap{max-width:none;gap:10px} .rp{gap:10px}
  .card,.rp-cover,.rp-cta{box-shadow:none;break-inside:avoid;padding:14px 16px;gap:8px}
  .rp-gap{break-inside:avoid;padding-top:8px}
  .rp-company{font-size:26px} .rp-ring{width:104px;height:104px} .rp-h{font-size:17px}
  .rp-dl,.rp-gap-b p,.rp-tips,.row{font-size:12.5px} .rp-gap-t b{font-size:14px}
  .rp-stat b{font-size:24px} .rp-stat b.sm{font-size:16px} .rp-cta b{font-size:17px} .rp-cta p{font-size:13px} .rp-person strong{font-size:16px} .rp-person span{font-size:12px} .rp-cta .rp-contact{font-size:14px} .rp-cta .rp-addr{font-size:12px}
  .hint{font-size:11px}
}
