:root{
    --bg:#0f0f10;
    --card:#161618;
    --text:#f2f2f2;
    --muted:#a8a8ad;
    --line:#242428;
  
    --primary:#ffffff;
    --primaryText:#0f0f10;
  
    --danger:#ff4d4d;
  
    --radius:14px;
    --pad:16px;
    --max:760px;
    --font: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  }
  
  *{ box-sizing:border-box; }
  html,body{ height:100%; }
  body{
    margin:0;
    font-family:var(--font);
    background:var(--bg);
    color:var(--text);
  }
  
  .topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:14px 16px;
    border-bottom:1px solid var(--line);
    position:sticky;
    top:0;
    background:rgba(15,15,16,0.95);
    backdrop-filter: blur(8px);
  }
  
  .brand .title{
    font-weight:800;
    letter-spacing:0.8px;
  }
  .brand .subtitle{
    font-size:12px;
    color:var(--muted);
    margin-top:2px;
  }
  
  .status{
    display:flex;
    gap:12px;
    align-items:center;
  }
  
  .container{
    max-width:var(--max);
    margin:0 auto;
    padding:18px 14px 40px;
  }
  
  .screen{ display:none; }
  .screen.active{ display:block; }
  
  .h1{ font-size:28px; margin:10px 0 6px; }
  .h2{
    font-size:16px;
    font-weight:500;
    margin:8px 0 12px;
    line-height:1.6;
  }
  
  .h3{ font-size:16px; margin:16px 0 10px; }
  .p{ margin:0 0 16px; line-height:1.6; }
  .tiny{ font-size:12px; }
  
  .muted{ color:var(--muted); }
  
  .card{
    background:var(--card);
    border:1px solid var(--line);
    border-radius:var(--radius);
    padding:var(--pad);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  }
  
  .row{
    display:flex;
    flex-direction:column;
    gap:8px;
    margin-bottom:12px;
  }
  
  .label{
    font-size:13px;
    color:var(--muted);
  }
  
  .select{
    width:100%;
    padding:12px 12px;
    border-radius:12px;
    border:1px solid var(--line);
    background:#101012;
    color:var(--text);
    outline:none;
  }
  
  .btn{
    border:1px solid var(--line);
    background:#101012;
    color:var(--text);
    padding:12px 14px;
    border-radius:12px;
    cursor:pointer;
    font-weight:700;
  }
  
  .btn.primary{
    background:var(--primary);
    color:var(--primaryText);
    border-color:transparent;
  }
  
  .btn.danger{
    background:transparent;
    border-color: rgba(255,77,77,0.5);
    color: var(--danger);
  }
  
  .btn:disabled{
    opacity:0.45;
    cursor:not-allowed;
  }
  
  .badge{
    font-size:12px;
    padding:6px 10px;
    border-radius:999px;
    border:1px solid var(--line);
    background:#101012;
  }
  
  .meta{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin-bottom:10px;
  }
  
  .pill{
    font-size:12px;
    padding:6px 10px;
    border-radius:999px;
    border:1px solid var(--line);
    background:#101012;
    color:var(--muted);
  }
  
  .choices{
    display:flex;
    flex-direction:column;
    gap:10px;
    margin:10px 0 12px;
  }
  
  .choice{
    display:flex;
    gap:10px;
    align-items:flex-start;
    padding:12px 12px;
    border-radius:12px;
    border:1px solid var(--line);
    background:#101012;
    cursor:pointer;
  }
  
  .choice input{ margin-top:3px; }
  .choiceText{ line-height:1.45; }
  
  .actions{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-top:10px;
  }
  
  .feedback{
    margin-top:12px;
    padding-top:12px;
    border-top:1px solid var(--line);
  }
  
  .feedbackHeadline{
    font-weight:800;
    margin-bottom:6px;
  }
  
  .explanation{
    margin-top:10px;
    padding:12px;
    border-radius:12px;
    border:1px dashed var(--line);
    background:#101012;
    line-height:1.55;
  }
  
  .hidden{ display:none; }
  
  .nav{
    display:flex;
    justify-content:space-between;
    gap:10px;
    margin-top:14px;
    flex-wrap:wrap;
  }
  
  .resultsGrid{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap:10px;
    margin:10px 0 10px;
  }
  
  .stat{
    padding:12px;
    border:1px solid var(--line);
    border-radius:12px;
    background:#101012;
  }
  
  .statValue{
    font-size:22px;
    font-weight:900;
    margin-top:6px;
  }
  
  .reviewList{
    margin-top:8px;
    display:flex;
    flex-direction:column;
    gap:10px;
  }
  
  .reviewItem{
    padding:12px;
    border:1px solid var(--line);
    border-radius:12px;
    background:#101012;
  }
  
  .reviewItem .q{
    font-weight:800;
    margin-bottom:6px;
  }
  
  .reviewItem .a{
    font-size:13px;
    line-height:1.55;
  }
  
  @media (max-width:520px){
    .resultsGrid{ grid-template-columns:1fr; }
  }
  