:root{
  --bg:#f5f7fb;
  --card:#ffffff;
  --ink:#101828;
  --muted:#667085;
  --line:#e4e7ec;
  --primary:#1d4ed8;
  --primary2:#0f172a;
  --danger:#b42318;
  --ok:#027a48;
  --shadow:0 18px 50px rgba(16,24,40,.08);
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color:var(--ink);
  background:
    radial-gradient(circle at top left, rgba(29,78,216,.13), transparent 35%),
    linear-gradient(180deg,#fff,var(--bg));
  min-height:100vh;
}
.shell{width:min(1100px,92vw); margin:0 auto; padding:42px 0 80px}
.hero{
  display:grid;
  grid-template-columns:1.4fr .6fr;
  gap:24px;
  align-items:stretch;
  margin-bottom:24px;
}
.hero h1{font-size:clamp(34px,5vw,58px); line-height:.98; margin:12px 0}
.hero p{font-size:18px; color:var(--muted); max-width:720px}
.badge,.pill{
  display:inline-flex;
  align-items:center;
  border:1px solid var(--line);
  border-radius:999px;
  padding:8px 12px;
  background:#fff;
  color:var(--primary2);
  font-weight:700;
  font-size:13px;
}
.hero-card{
  border-radius:28px;
  background:var(--primary2);
  color:#fff;
  padding:28px;
  box-shadow:var(--shadow);
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  gap:10px;
}
.hero-card span{color:#d0d5dd}
.card{
  background:rgba(255,255,255,.92);
  border:1px solid var(--line);
  border-radius:28px;
  padding:28px;
  box-shadow:var(--shadow);
  backdrop-filter:blur(10px);
}
.hidden{display:none!important}
.grid{display:grid; grid-template-columns:1fr 1fr; gap:16px}
label{display:block; font-weight:700; margin:14px 0 8px}
input,textarea,select{
  width:100%;
  margin-top:8px;
  border:1px solid var(--line);
  border-radius:15px;
  padding:13px 14px;
  font:inherit;
  background:#fff;
  outline:none;
}
input:focus,textarea:focus,select:focus{border-color:var(--primary); box-shadow:0 0 0 4px rgba(29,78,216,.12)}
button{
  border:0;
  border-radius:16px;
  padding:13px 18px;
  font-weight:800;
  cursor:pointer;
  font:inherit;
}
.primary{background:var(--primary); color:#fff}
.secondary{background:var(--primary2); color:#fff}
.ghost{background:#eef2ff; color:var(--primary)}
.danger{background:#fee4e2; color:var(--danger)}
.check{display:flex; gap:10px; align-items:center; color:var(--muted); font-weight:700}
.check input{width:auto; margin:0}
.inline{margin:0}
.result{
  margin-top:18px;
  border:1px solid var(--line);
  background:#f9fafb;
  border-radius:18px;
  padding:16px;
  white-space:pre-wrap;
  overflow:auto;
}
.topline{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:flex-start;
  margin-bottom:16px;
}
.actions{display:flex; flex-wrap:wrap; align-items:center; gap:14px; margin:18px 0}
.summary{
  margin:18px 0;
  display:grid;
  gap:12px;
}
.bar{
  border:1px solid var(--line);
  background:#fff;
  border-radius:18px;
  padding:12px;
}
.bar-top{display:flex; justify-content:space-between; gap:12px; font-weight:800}
.meter{height:10px; background:#eef2f6; border-radius:999px; overflow:hidden; margin-top:10px}
.meter span{display:block; height:100%; background:var(--primary); border-radius:999px}
.table-wrap{overflow:auto; border:1px solid var(--line); border-radius:18px}
table{width:100%; border-collapse:collapse; background:#fff}
th,td{padding:13px; border-bottom:1px solid var(--line); text-align:left; white-space:nowrap}
th{font-size:13px; color:var(--muted); background:#f9fafb}
.unlock{
  margin-top:18px;
  border:1px solid var(--line);
  border-radius:18px;
  padding:16px;
  background:#fff;
}
a{color:var(--primary); font-weight:800}
@media (max-width:760px){
  .hero,.grid{grid-template-columns:1fr}
  .topline{flex-direction:column}
}

.choice-cards{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:14px;
  margin:10px 0 18px;
}
.choice-card{
  position:relative;
  border:1px solid var(--line);
  background:#fff;
  border-radius:20px;
  padding:18px;
  min-height:110px;
  cursor:pointer;
  box-shadow:0 10px 24px rgba(16,24,40,.04);
  transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:12px;
}
.choice-card:hover{
  transform:translateY(-2px);
  border-color:rgba(29,78,216,.45);
  box-shadow:0 16px 34px rgba(16,24,40,.09);
}
.choice-card.selected{
  border-color:var(--primary);
  background:linear-gradient(180deg,#fff,#eef4ff);
  box-shadow:0 0 0 4px rgba(29,78,216,.12), 0 16px 34px rgba(16,24,40,.08);
}
.choice-name{
  font-size:18px;
  font-weight:900;
  color:var(--primary2);
}
.choice-hint{
  color:var(--muted);
  font-size:13px;
  font-weight:700;
}
.choice-check{
  position:absolute;
  top:14px;
  right:14px;
  width:24px;
  height:24px;
  border-radius:999px;
  border:1px solid var(--line);
  display:grid;
  place-items:center;
  color:#fff;
  font-size:14px;
  font-weight:900;
  background:#fff;
}
.choice-card.selected .choice-check{
  background:var(--primary);
  border-color:var(--primary);
}
