:root{
  --bg:#f6f8fb;
  --card:#ffffff;
  --border:#e5e7eb;
  --text:#0f172a;
  --muted:#64748b;
  --brand:#2563eb;
  --brand-soft:#eef2ff;
  --ok:#16a34a;
  --bad:#dc2626;
  --shadow:0 10px 24px rgba(15,23,42,.08);
}

*{ box-sizing:border-box; }
body{
  margin:0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Arial, "Apple SD Gothic Neo","Noto Sans KR",sans-serif;
  background:linear-gradient(180deg,#f8fafc,#f1f5f9);
  color:var(--text);
}

.topbar{
  position:sticky; top:0; z-index:5;
  display:flex; justify-content:space-between; align-items:center;
  padding:14px 18px;
  background:rgba(255,255,255,.9);
  backdrop-filter:saturate(1.1) blur(6px);
  border-bottom:1px solid var(--border);
}

.brand{ display:flex; align-items:center; gap:12px; }
.logo{ width:44px; height:44px; border-radius:12px; box-shadow:0 6px 14px rgba(0,0,0,.08); }
.brand h1{ margin:0; font-size:18px; letter-spacing:-.2px; }
.brand p{ margin:2px 0 0; font-size:12px; color:var(--muted); }

.container{ max-width:860px; margin:0 auto; padding:22px 16px 28px; }

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:18px;
  padding:20px;
  margin-bottom:18px;
  box-shadow:var(--shadow);
}

.card.soft{
  background:linear-gradient(180deg,#ffffff,#f8fafc);
}

h2{ margin:0 0 8px; font-size:20px; letter-spacing:-.2px; }
h3{ margin:8px 0 12px; font-size:18px; line-height:1.35; }
p{ color:var(--muted); margin:6px 0; }

.input{
  width:100%;
  padding:14px 14px;
  border-radius:14px;
  border:1px solid var(--border);
  font-size:15px;
  outline:none;
}
.input:focus{ border-color:#c7d2fe; box-shadow:0 0 0 4px #eef2ff; }

.btn{
  padding:12px 18px;
  border-radius:14px;
  border:none;
  background:linear-gradient(180deg,#2563eb,#1d4ed8);
  color:#fff;
  font-weight:700;
  cursor:pointer;
}
.btn.secondary{ background:linear-gradient(180deg,#64748b,#475569); }
.btn.ghost{ background:#fff; color:var(--text); border:1px solid var(--border); }

.btnRow{ display:flex; gap:12px; margin-top:16px; flex-wrap:wrap; }

/* Progress */
.progressWrap{ margin-bottom:14px; }
.progressTop{ display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
.progressBar{
  height:8px; border-radius:999px; background:#e5e7eb; overflow:hidden;
}
.progressFill{
  height:100%; background:linear-gradient(90deg,#2563eb,#60a5fa);
  width:0%;
}

/* Choice buttons */
.choiceBtn{
  padding:16px 16px;
  border:1px solid var(--border);
  border-radius:16px;
  background:#fff;
  cursor:pointer;
  transition:all .15s ease;
  margin:12px 0;
  font-size:15px;
}
.choiceBtn:hover{ background:var(--brand-soft); }
.choiceBtn.selected{
  background:linear-gradient(180deg,#2563eb,#1d4ed8);
  color:#fff;
  border-color:#2563eb;
}

.badgeRow{ display:flex; justify-content:space-between; margin-bottom:10px; }
.badge{
  background:var(--brand-soft);
  color:#3730a3;
  padding:6px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:600;
}

.result.ok{ color:var(--ok); font-weight:800; }
.result.bad{ color:var(--bad); font-weight:800; }
.explain{ margin-top:8px; font-size:14px; }





/* Floating actions */
.logoutBtn{
  position:fixed;
  right:16px;
  bottom:64px; /* 설치 버튼(16px) 위로 '가까이' */
  z-index:10;
  padding:10px 14px;
  border-radius:999px;
}
.installBtn{
  position:fixed;
  right:16px;
  bottom:16px;
  z-index:9;
  padding:10px 14px;
  border-radius:999px;
}
