:root{
  --bg:#f6f7fb;
  --card:#ffffff;
  --txt:#111827;
  --muted:#6b7280;
  --line:#e5e7eb;
  --primary:#4f73ff;
  --shadow: 0 10px 25px rgba(17,24,39,.08);
  --radius: 18px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{background:var(--bg); color:var(--txt); font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans KR",Arial,sans-serif;}

.zzoa-wrap{max-width:920px; margin:0 auto; padding:18px 14px 30px}
.zzoa-titlebox{
  background: linear-gradient(135deg, rgba(79,115,255,.12), rgba(168,85,247,.10));
  border:1px solid rgba(79,115,255,.18);
  border-radius: var(--radius);
  padding:14px 14px;
  box-shadow: var(--shadow);
}

.zzoa-title-row{display:flex; gap:10px; align-items:flex-start}
.zzoa-badge{
  width:40px; height:40px; border-radius:14px;
  background:#fff; border:1px solid rgba(17,24,39,.08);
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 6px 14px rgba(17,24,39,.06);
  font-size:18px;
}
.zzoa-title{margin:0; font-size:20px; letter-spacing:-.3px}
.zzoa-sub{margin:4px 0 0; color:var(--muted); font-size:13px}

.zzoa-menu{display:flex; gap:8px; margin-top:10px; flex-wrap:wrap}
.zzoa-iconbtn{
  display:flex; align-items:center; gap:8px;
  border:1px solid rgba(17,24,39,.10);
  background:#fff;
  padding:8px 10px;
  border-radius: 14px;
  cursor:pointer;
  box-shadow: 0 6px 14px rgba(17,24,39,.05);
}
.zzoa-iconbtn:hover{transform: translateY(-1px)}
.zzoa-ic svg{fill:#374151}
.zzoa-icontext{font-size:13px; color:#111827; font-weight:700}

.zzoa-sharemsg{margin-top:10px}
.zzoa-sharemsg-inner{
  background:#fff;
  border:1px solid rgba(79,115,255,.28);
  border-radius: 16px;
  padding:12px 12px;
  box-shadow: 0 10px 20px rgba(79,115,255,.10);
}
.zzoa-sharemsg-title{font-weight:900; color:#1f2a5a}
.zzoa-sharemsg-desc{margin-top:4px; color:#334155; font-size:13px}
.zzoa-sharemsg-row{display:flex; gap:8px; align-items:center; margin-top:10px; flex-wrap:wrap}
.zzoa-sharemsg-code{
  padding:8px 10px;
  border-radius: 12px;
  border:1px dashed rgba(17,24,39,.18);
  background: rgba(79,115,255,.06);
  font-size:12px;
  color:#0f172a;
}

.zzoa-main{margin-top:14px}
.zzoa-card{
  background:var(--card);
  border:1px solid rgba(17,24,39,.08);
  border-radius: var(--radius);
  padding:16px 14px;
  box-shadow: var(--shadow);
}

.zzoa-card-head{display:flex; justify-content:space-between; align-items:center}
.zzoa-x{border:none; background:transparent; cursor:pointer; font-size:18px; color:#64748b}

.zzoa-h2{margin:0; font-size:16px; letter-spacing:-.2px}
.zzoa-h3{margin:0 0 10px; font-size:14px}
.zzoa-small{font-size:12px; color:var(--muted); margin-top:8px}

.zzoa-ul{margin:10px 0 0; padding-left:18px; color:#334155; font-size:13px; line-height:1.65}
.zzoa-note{
  margin-top:12px;
  padding:10px 12px;
  border-radius: 14px;
  background: rgba(249,115,22,.10);
  border:1px solid rgba(249,115,22,.18);
  color:#7c2d12;
  font-size:12.5px;
  line-height:1.55;
}

.zzoa-progress{margin-bottom:12px}
.zzoa-progress-top{display:flex; justify-content:space-between; align-items:center; margin-bottom:6px}
.zzoa-progress-label{font-size:12px; color:#334155; font-weight:800}
.zzoa-progress-percent{font-size:12px; color:#334155; font-weight:800}
.zzoa-progress-bar{height:10px; border-radius:999px; background:#eef2ff; overflow:hidden; border:1px solid rgba(79,115,255,.18)}
.zzoa-progress-fill{height:100%; border-radius:999px; background: linear-gradient(90deg, #4f73ff, #8b5cf6);}

.zzoa-qwrap{padding-top:6px}
.zzoa-qno{display:inline-block; font-size:12px; color:#1f2a5a; font-weight:900; background: rgba(79,115,255,.10); border:1px solid rgba(79,115,255,.18); padding:6px 10px; border-radius:999px}
.zzoa-q{margin:10px 0 6px; font-size:18px; line-height:1.35; letter-spacing:-.3px}
.zzoa-qhint{margin:0 0 12px; color:var(--muted); font-size:13px}

.zzoa-options{display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:10px}
@media (max-width:640px){
  .zzoa-options{grid-template-columns: 1fr}
  .zzoa-wrap{padding:14px 10px 26px}
  .zzoa-title{font-size:18px}
  .zzoa-q{font-size:17px}
}

.zzoa-opt{
  display:flex; align-items:center; gap:12px;
  padding:12px 12px;
  border-radius: 16px;
  border:1px solid rgba(17,24,39,.10);
  background:#fff;
  cursor:pointer;
  text-align:left;
  box-shadow: 0 8px 16px rgba(17,24,39,.05);
  transition: .15s transform, .15s border-color, .15s box-shadow;
}
.zzoa-opt:hover{transform: translateY(-1px)}
.zzoa-opt.selected{
  border-color: rgba(79,115,255,.45);
  box-shadow: 0 12px 22px rgba(79,115,255,.12);
}
.zzoa-swatch{
  width:40px; height:40px; border-radius: 14px;
  border:1px solid rgba(17,24,39,.10);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.55);
}
.zzoa-opt-title{font-weight:900; font-size:14px; color:#0f172a}
.zzoa-opt-desc{margin-top:2px; font-size:12px; color:#64748b; line-height:1.45}

.zzoa-nav{display:flex; gap:10px; justify-content:space-between; margin-top:14px}
.zzoa-btn{
  border:none; cursor:pointer;
  padding:12px 14px;
  border-radius: 16px;
  background: linear-gradient(90deg, #4f73ff, #8b5cf6);
  color:#fff;
  font-weight:900;
  min-width: 120px;
  box-shadow: 0 12px 22px rgba(79,115,255,.18);
}
.zzoa-btn:disabled{opacity:.45; cursor:not-allowed; box-shadow:none}
.zzoa-btn-ghost{
  background:#fff;
  color:#0f172a;
  border:1px solid rgba(17,24,39,.10);
  box-shadow: 0 10px 18px rgba(17,24,39,.06);
}
.zzoa-btn-mini{
  padding:8px 10px;
  min-width:auto;
  border-radius: 12px;
  font-size:12px;
}

.zzoa-minirow{display:flex; justify-content:space-between; align-items:center; margin-top:10px; gap:10px; flex-wrap:wrap}
.zzoa-linkbtn{
  border:none; background:transparent; cursor:pointer;
  color:#334155; font-weight:800; font-size:13px;
  padding:6px 0;
}
.zzoa-ic-mini{margin-right:6px}
.zzoa-autosave{font-size:12px; color:#64748b}

.zzoa-modal{position:fixed; inset:0; z-index:9999}
.zzoa-modal-backdrop{position:absolute; inset:0; background:rgba(15,23,42,.45)}
.zzoa-modal-panel{
  position:relative;
  max-width:560px;
  margin:10vh auto;
  background:#fff;
  border-radius: 18px;
  border:1px solid rgba(17,24,39,.08);
  box-shadow: 0 20px 40px rgba(15,23,42,.20);
  padding:12px 12px;
}
.zzoa-modal-head{display:flex; justify-content:space-between; align-items:center}
.zzoa-modal-title{font-weight:900}
.zzoa-modal-body{margin-top:10px}
.zzoa-modal-desc{margin:0 0 10px; color:#64748b; font-size:13px}
.zzoa-grid{display:grid; grid-template-columns: repeat(8, minmax(0,1fr)); gap:8px}
@media (max-width:640px){.zzoa-grid{grid-template-columns: repeat(6, minmax(0,1fr))}}
.zzoa-jumpbtn{
  border:1px solid rgba(17,24,39,.10);
  background:#fff;
  border-radius: 12px;
  padding:10px 0;
  cursor:pointer;
  font-weight:900;
  color:#0f172a;
}
.zzoa-jumpbtn.answered{border-color: rgba(34,197,94,.45); background: rgba(34,197,94,.06)}
.zzoa-jumpbtn.current{border-color: rgba(79,115,255,.55); background: rgba(79,115,255,.08)}

.zzoa-result{margin-top:14px}
.zzoa-result-head{display:flex; gap:12px; align-items:flex-start}
.zzoa-result-badge{
  width:44px; height:44px; border-radius: 16px;
  display:flex; align-items:center; justify-content:center;
  background:#fff; border:1px solid rgba(17,24,39,.08);
  box-shadow: 0 8px 16px rgba(17,24,39,.06);
  font-size:20px;
}
.zzoa-result-main{display:flex; gap:12px; align-items:center; margin-top:10px}
.zzoa-dot{
  width:74px; height:74px; border-radius: 999px;
  box-shadow: 0 16px 28px rgba(15,23,42,.12);
  border:1px solid rgba(17,24,39,.10);
}
.zzoa-result-name{font-size:22px; font-weight:1000; letter-spacing:-.4px}
.zzoa-result-sub{margin-top:4px; color:#334155; font-weight:800}
.zzoa-result-summary{margin-top:12px; color:#0f172a; font-size:14px; line-height:1.7}
.zzoa-result-summary b{background: rgba(79,115,255,.12); padding:2px 6px; border-radius: 10px; border:1px solid rgba(79,115,255,.18)}
.hl{color:#1d4ed8; font-weight:900}
.hl2{color:#7c3aed; font-weight:900}

.zzoa-kpi{display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:10px; margin-top:14px}
@media (max-width:840px){.zzoa-kpi{grid-template-columns:1fr}}
.zzoa-kpi-item{border:1px solid rgba(17,24,39,.08); border-radius: 16px; padding:10px 12px; background: rgba(2,6,23,.02)}
.zzoa-kpi-label{font-size:12px; color:#64748b; font-weight:900}
.zzoa-kpi-val{margin-top:6px; font-size:13.5px; color:#0f172a; font-weight:800; line-height:1.55}

.zzoa-cols{display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:10px; margin-top:12px}
@media (max-width:840px){.zzoa-cols{grid-template-columns:1fr}}
.zzoa-box{
  border:1px solid rgba(17,24,39,.08);
  border-radius: 16px;
  padding:12px 12px;
  background:#fff;
  color:#0f172a;
  font-size:13px;
  line-height:1.7;
}
.zzoa-box ul{margin:8px 0 0; padding-left:18px}
.zzoa-box li{margin:4px 0}

.zzoa-palette{display:flex; gap:8px; flex-wrap:wrap}
.zzoa-chip{width:34px; height:34px; border-radius: 14px; border:1px solid rgba(17,24,39,.10); box-shadow: inset 0 0 0 2px rgba(255,255,255,.55)}

.zzoa-scorecard{margin-top:14px; border:1px solid rgba(17,24,39,.08); border-radius: 18px; padding:12px 12px; background: rgba(2,6,23,.02)}
.zzoa-score-head{display:flex; justify-content:space-between; align-items:flex-end; gap:10px; flex-wrap:wrap}
.zzoa-score-list{margin-top:10px; display:grid; gap:10px}
.zzoa-score-item{display:grid; grid-template-columns: 110px 1fr 44px; gap:10px; align-items:center}
@media (max-width:640px){.zzoa-score-item{grid-template-columns: 90px 1fr 44px}}
.zzoa-score-name{display:flex; align-items:center; gap:8px; font-weight:900; color:#0f172a; font-size:13px}
.zzoa-miniDot{width:14px; height:14px; border-radius: 999px; border:1px solid rgba(17,24,39,.10)}
.zzoa-meter{height:10px; border-radius:999px; background:#eef2ff; border:1px solid rgba(79,115,255,.16); overflow:hidden}
.zzoa-meter > div{height:100%; border-radius:999px; background: linear-gradient(90deg, #4f73ff, #8b5cf6)}
.zzoa-score-num{text-align:right; font-weight:1000; color:#334155; font-size:12px}

.zzoa-actions{display:flex; gap:10px; margin-top:14px; flex-wrap:wrap}

/* ✅ 항상 노출되는 가이드 카드 */
.zzoa-footer-guide{margin-top:14px}
.zzoa-footer-guide-always{margin-top:14px}

.zzoa-copyright{margin-top:10px; text-align:center; color:#94a3b8; font-size:12px}

/* 로딩 레이어 */
.zzoa-loading{position:fixed; inset:0; z-index:10000; display:flex; align-items:center; justify-content:center; background:rgba(15,23,42,.45); padding:18px}
.zzoa-loading-card{
  width:min(520px, 100%);
  background:#fff;
  border-radius: 18px;
  border:1px solid rgba(17,24,39,.08);
  box-shadow: 0 30px 60px rgba(15,23,42,.25);
  padding:18px 14px;
  text-align:center;
}
.zzoa-spinner{
  width:44px; height:44px; border-radius: 999px;
  border:4px solid rgba(79,115,255,.18);
  border-top-color: rgba(79,115,255,1);
  margin:0 auto 10px;
  animation: spin 1s linear infinite;
}
@keyframes spin{to{transform:rotate(360deg)}}
.zzoa-loading-title{font-weight:1000; font-size:18px}
.zzoa-loading-desc{margin-top:6px; color:#64748b; font-weight:800; font-size:13px}