:root{
  --bg1:#0b1220;
  --bg2:#0f1a33;
  --card:rgba(255,255,255,.06);
  --card2:rgba(255,255,255,.09);
  --text:#f2f6ff;
  --muted:rgba(242,246,255,.75);
  --line:rgba(255,255,255,.12);
  --accent:#7c5cff;
  --accent2:#2dd4bf;
  --warn:#ffb020;
  --good:#22c55e;
  --bad:#ef4444;
  --shadow: 0 12px 40px rgba(0,0,0,.35);
  --radius: 18px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(124,92,255,.35), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(45,212,191,.25), transparent 55%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
}

a{ color: rgba(200,220,255,.95); text-decoration:none; }
a:hover{ text-decoration:underline; }

.shell{
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 14px 28px;
}

.topbar{
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  padding: 10px 14px;
  border:1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.brand{
  display:flex;
  gap:10px;
  align-items:center;
  min-width: 0;
}
.logo{
  width:42px;height:42px;border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 12px 30px rgba(124,92,255,.25);
}
.brand h1{
  margin:0;
  font-size: 18px;
  letter-spacing:.2px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.brand .sub{
  font-size: 13px;
  color: var(--muted);
  margin-top:2px;
}

.nav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.pill{
  padding: 8px 12px;
  border-radius: 999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.05);
  font-size: 13px;
}

.card{
  margin-top: 14px;
  padding: 16px;
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
}

h2{ margin:0 0 10px; font-size: 18px; }
.small{ color: var(--muted); font-size: 13px; }

.grid2{
  display:grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 780px){
  .grid2{ grid-template-columns: 1fr 1fr; }
}

label{ display:block; margin: 10px 0 6px; color: var(--muted); font-size: 13px; }
input, select, textarea, button{
  width:100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  color: var(--text);
  outline: none;
}
textarea{ min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus{
  border-color: rgba(124,92,255,.55);
  box-shadow: 0 0 0 4px rgba(124,92,255,.18);
}

.btnrow{ display:grid; gap:12px; grid-template-columns: 1fr 1fr; margin-top:12px; }
button{
  cursor:pointer;
  border:0;
  background: linear-gradient(135deg, var(--accent), #9a7bff);
  font-weight: 700;
}
button.secondary{
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  font-weight: 600;
}
button.danger{
  background: linear-gradient(135deg, #ff4d4d, #ff7a7a);
}
button:disabled{
  opacity:.55;
  cursor:not-allowed;
}

.badges{ margin-top: 10px; display:flex; gap:10px; flex-wrap:wrap; }
.badge{
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.14);
  font-size: 12px;
  color: rgba(255,255,255,.92);
}
.badge.good{ background: rgba(34,197,94,.18); border-color: rgba(34,197,94,.35); }
.badge.warn{ background: rgba(255,176,32,.16); border-color: rgba(255,176,32,.35); }
.badge.bad{ background: rgba(239,68,68,.18); border-color: rgba(239,68,68,.35); }

.questionBox{
  display:grid;
  gap: 10px;
  align-items:start;
}
.qMeta{
  font-size: 14px;
  color: var(--muted);
}
.qText{
  font-size: clamp(20px, 3.2vw, 34px);
  line-height: 1.15;
  font-weight: 800;
}
.qText.bigscreen{
  font-size: clamp(34px, 5.2vw, 80px);
  line-height: 1.05;
}
.qHint{
  color: var(--muted);
  font-size: 13px;
}

.table{
  width:100%;
  border-collapse: collapse;
  overflow:hidden;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.12);
}
.table th, .table td{
  text-align:left;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.table th{ color: rgba(242,246,255,.85); font-size: 13px; }
.table td{ font-size: 14px; }
.table tr:last-child td{ border-bottom:none; }

.footer{
  margin-top: 14px;
  text-align:center;
  color: var(--muted);
  font-size: 12px;
}
