
    

    *{ box-sizing:border-box; }

    body{
      margin:0;
      font-family:Manrope,"Segoe UI",sans-serif;
      background:
        radial-gradient(circle at top center, rgba(178,135,215,.16), transparent 24%),
        linear-gradient(180deg, #2b1b3b 0%, #2b1b3b 100%);
      color:var(--text);
      min-height:100vh;
      padding:22px;
    }

    .app{
      max-width:1180px;
      margin:0 auto;
    }

    .hero{
      display:grid;
      grid-template-columns:120px 1fr;
      gap:18px;
      align-items:center;
      margin-bottom:18px;
    }

    .logo-box{
      width:120px;
      height:120px;
      border-radius:24px;
      overflow:hidden;
      border:1px solid rgba(178,135,215,.16);
      box-shadow:var(--shadow);
      background:#2b1b3b;
      display:grid;
      place-items:center;
    }

    .logo-box img{
      width:100%;
      height:100%;
      object-fit:cover;
      display:block;
    }

    .logo-fallback{
      color:var(--gold);
      font-size:14px;
      text-align:center;
      line-height:1.3;
      padding:10px;
    }

    .hero h1{
      margin:0 0 6px;
      font-size:34px;
      letter-spacing:-0.03em;
      color:var(--gold);
    }

    .hero p{
      margin:0;
      color:var(--textSoft);
      font-size:15px;
      line-height:1.45;
      max-width:860px;
    }

    .shell{
      background:linear-gradient(180deg, rgba(178,135,215,.16), rgba(178,135,215,.16));
      border:1px solid rgba(178,135,215,.16);
      border-radius:28px;
      box-shadow:var(--shadow);
      overflow:hidden;
    }

    .topbar{
      display:flex;
      justify-content:space-between;
      align-items:center;
      gap:12px;
      flex-wrap:wrap;
      padding:18px 18px 0;
    }

    .tabs{
      display:flex;
      gap:8px;
      flex-wrap:wrap;
    }

    .tab{
      border:1px solid rgba(178,135,215,.16);
      background:#2b1b3b;
      color:var(--textSoft);
      border-radius:12px;
      padding:11px 16px;
      cursor:pointer;
      font-size:14px;
      transition:.18s ease;
    }

    .tab.active{
      background:linear-gradient(180deg, rgba(178,135,215,.16), rgba(178,135,215,.16));
      color:var(--gold);
      border-color:rgba(178,135,215,.16);
      font-weight:700;
    }

    .content{
      padding:18px;
    }

    .tab-panel{ display:none; }
    .tab-panel.active{ display:block; }

    .grid{
      display:grid;
      grid-template-columns:1.15fr .85fr;
      gap:16px;
    }

    .card{
      background:linear-gradient(180deg, var(--card), var(--card2));
      border:1px solid rgba(178,135,215,.16);
      border-radius:var(--radius);
      padding:16px;
    }

    .card h3{
      margin:0 0 14px;
      color:var(--gold);
      font-size:16px;
      letter-spacing:.01em;
    }

    .subhead{
      color:var(--textSoft);
      font-size:13px;
      line-height:1.45;
      margin:-4px 0 14px;
    }

    .controls{
      display:grid;
      gap:15px;
    }

    .control{
      display:grid;
      grid-template-columns:230px 1fr 130px;
      gap:12px;
      align-items:center;
    }

    .label{
      color:var(--text);
      font-size:15px;
    }

    .mini{
      color:var(--muted);
      font-size:12px;
      line-height:1.35;
      margin-top:4px;
    }

    .input-wrap{
      display:flex;
      flex-direction:column;
      gap:8px;
    }

    input[type="range"]{
      width:100%;
      appearance:none;
      height:6px;
      border-radius:999px;
      background:linear-gradient(90deg, rgba(178,135,215,.16), rgba(178,135,215,.16));
      outline:none;
    }

    input[type="range"]::-webkit-slider-thumb{
      appearance:none;
      width:18px;
      height:18px;
      border-radius:50%;
      background:var(--gold);
      border:2px solid #2b1b3b;
      box-shadow:0 2px 10px rgba(178,135,215,.16);
      cursor:pointer;
    }

    input[type="number"],
    textarea,
    select{
      width:100%;
      border:1px solid rgba(178,135,215,.16);
      background:#2b1b3b;
      color:var(--text);
      border-radius:12px;
      padding:10px 12px;
      font-size:15px;
    }

    textarea{
      min-height:120px;
      resize:vertical;
      line-height:1.45;
    }

    .results-grid{
      display:grid;
      grid-template-columns:1fr 1fr;
      gap:12px;
      margin-bottom:12px;
    }

    .result-card{
      background:rgba(178,135,215,.16);
      border:1px solid rgba(178,135,215,.16);
      border-radius:18px;
      padding:15px;
      min-height:240px;
    }

    .result-label{
      color:var(--gold);
      font-weight:700;
      font-size:15px;
      margin-bottom:8px;
    }

    .result-description{
      color:var(--textSoft);
      font-size:13px;
      line-height:1.45;
      margin-bottom:14px;
    }

    .big-number{
      font-size:38px;
      line-height:1;
      font-weight:800;
      letter-spacing:-0.04em;
      margin-bottom:10px;
    }

    .green{ color:var(--green); }
    .red{ color:var(--red); }
    .amber{ color:var(--amber); }

    .metric-line{
      color:var(--textSoft);
      font-size:14px;
      line-height:1.5;
      margin-top:8px;
    }

    .metric-line strong{
      color:var(--gold);
      font-weight:700;
    }

    .divider{
      height:1px;
      background:rgba(178,135,215,.16);
      margin:14px 0;
    }

    .verdict{
      border-radius:16px;
      padding:14px 16px;
      font-weight:700;
      font-size:15px;
      border:1px solid rgba(178,135,215,.16);
      background:rgba(178,135,215,.16);
      color:var(--text);
    }

    .verdict.green{
      background:rgba(178,135,215,.16);
      border-color:rgba(178,135,215,.16);
      color:#2b1b3b;
    }

    .verdict.red{
      background:rgba(178,135,215,.16);
      border-color:rgba(178,135,215,.16);
      color:#2b1b3b;
    }

    .verdict.amber{
      background:rgba(178,135,215,.16);
      border-color:rgba(178,135,215,.16);
      color:#2b1b3b;
    }

    .note{
      background:rgba(178,135,215,.16);
      border:1px solid rgba(178,135,215,.16);
      border-radius:14px;
      padding:14px;
      color:var(--textSoft);
      line-height:1.55;
    }

    .footer-note{
      margin-top:12px;
      color:var(--muted);
      font-size:12px;
      line-height:1.5;
    }

    .toggle-line{
      display:flex;
      gap:18px;
      flex-wrap:wrap;
      align-items:center;
      margin-bottom:14px;
      color:var(--textSoft);
      font-size:14px;
    }

    .toggle-line label{
      display:flex;
      align-items:center;
      gap:8px;
      cursor:pointer;
    }

    .mystery-table{
      display:grid;
      gap:8px;
      margin-top:10px;
    }

    .mystery-row{
      display:grid;
      grid-template-columns:1fr 1fr 44px;
      gap:8px;
      align-items:center;
    }

    .del-btn, .add-btn{
      border:none;
      border-radius:10px;
      cursor:pointer;
      font-size:14px;
      height:42px;
    }

    .del-btn{
      background:#2b1b3b;
      color:#2b1b3b;
    }

    .add-btn{
      margin-top:10px;
      background:#2b1b3b;
      color:var(--gold);
      border:1px solid rgba(178,135,215,.16);
      padding:0 14px;
      height:42px;
    }

    @media (max-width: 920px){
      .hero{ grid-template-columns:1fr; }
      .logo-box{ width:92px; height:92px; }
      .grid{ grid-template-columns:1fr; }
      .control{ grid-template-columns:1fr; }
      .results-grid{ grid-template-columns:1fr; }
      .mystery-row{ grid-template-columns:1fr; }
    }
  