
    

    * { 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:1280px; 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; padding:10px; line-height:1.3; }
    .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:900px; }

    .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;
    }
    .actions { display:flex; gap:10px; flex-wrap:wrap; }
    select, button.ghost {
      border:1px solid rgba(178,135,215,.16); background:#2b1b3b; color:var(--text);
      border-radius:12px; padding:11px 14px; font-size:14px;
    }
    button.ghost { cursor:pointer; }
    .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; }

    .sliders { display:grid; gap:15px; }
    .control { display:grid; grid-template-columns:230px 1fr 128px; 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"] {
      width:100%; border:1px solid rgba(178,135,215,.16); background:#2b1b3b; color:var(--text);
      border-radius:12px; padding:10px 12px; font-size:15px;
    }

    .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:250px;
    }
    .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); }
    .muted { color:var(--muted); }
    .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; }

    .tableish { display:grid; gap:8px; }
    .table-row {
      display:grid; grid-template-columns:1.2fr .9fr 2.1fr; gap:10px; padding:12px;
      border-radius:14px; background:rgba(178,135,215,.16); border:1px solid rgba(178,135,215,.16);
      align-items:center; color:var(--textSoft);
    }
    .table-head { background:rgba(178,135,215,.16); color:var(--gold); font-weight:800; }
    .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;
    }

    .equity-layout { display:grid; grid-template-columns:340px 1fr; gap:16px; }
    .hero-cards {
      display:grid; grid-template-columns:repeat(4, 1fr); gap:10px;
      background:rgba(178,135,215,.16); padding:12px; border-radius:16px; border:1px solid rgba(178,135,215,.16);
    }
    .card-btn {
      height:44px; border-radius:12px; border:1px solid rgba(178,135,215,.16);
      background:#2b1b3b; color:var(--text); cursor:pointer; font-weight:700; font-size:14px;
      transition:.14s ease;
    }
    .card-btn:hover { border-color:rgba(178,135,215,.16); transform:translateY(-1px); }
    .card-btn.red-suit { color:#2b1b3b; }
    .card-btn.selected {
      background:linear-gradient(180deg, rgba(178,135,215,.16), rgba(178,135,215,.16));
      border-color:rgba(178,135,215,.16); color:var(--gold);
      box-shadow:0 0 0 1px rgba(178,135,215,.16) inset;
    }
    .card-btn.blocked { opacity:.26; cursor:not-allowed; }

    .hero-picked {
      display:flex; gap:10px; margin-bottom:12px; flex-wrap:wrap;
    }
    .picked-pill {
      min-width:88px; padding:12px 14px; border-radius:14px; text-align:center;
      border:1px solid rgba(178,135,215,.16); background:#2b1b3b; color:var(--gold); font-weight:800;
    }

    .equity-toolbar {
      display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-bottom:14px;
    }
    .eq-btn {
      border:1px solid rgba(178,135,215,.16); background:#2b1b3b; color:var(--text); border-radius:12px;
      padding:11px 14px; font-size:14px; cursor:pointer;
    }
    .eq-btn.primary {
      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;
    }

    .range-grid {
      display:grid; grid-template-columns:repeat(13, 1fr); gap:6px;
      background:rgba(178,135,215,.16); padding:12px; border-radius:16px; border:1px solid rgba(178,135,215,.16);
    }
    .range-cell {
      aspect-ratio:1 / 1; border-radius:10px; display:flex; align-items:center; justify-content:center;
      border:1px solid rgba(178,135,215,.16); background:#2b1b3b; color:var(--textSoft); cursor:pointer;
      user-select:none; font-size:13px; font-weight:700; transition:.12s ease;
      position:relative;
    }
    .range-cell.pair { background:#2b1b3b; }
    .range-cell.suited { background:#2b1b3b; }
    .range-cell.offsuit { background:#2b1b3b; }
    .range-cell.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);
      box-shadow:0 0 0 1px rgba(178,135,215,.16) inset;
    }
    .range-cell.blocked {
      opacity:.45;
      outline:1px dashed rgba(178,135,215,.16);
    }
    .range-cell small {
      position:absolute; bottom:4px; right:6px; font-size:9px; color:rgba(178,135,215,.16);
      pointer-events:none;
    }

    .stat-boxes { display:grid; grid-template-columns:repeat(3, 1fr); gap:12px; margin-top:12px; }
    .stat-box {
      background:rgba(178,135,215,.16); border:1px solid rgba(178,135,215,.16);
      border-radius:16px; padding:14px;
    }
    .stat-box .k { color:var(--muted); font-size:12px; margin-bottom:6px; }
    .stat-box .v { color:var(--gold); font-size:26px; font-weight:800; }

    .footer-note { margin-top:12px; color:var(--muted); font-size:12px; line-height:1.5; }

    @media (max-width: 1040px) {
      .equity-layout { grid-template-columns:1fr; }
      .grid { grid-template-columns:1fr; }
    }
    @media (max-width: 920px) {
      .hero { grid-template-columns:1fr; }
      .logo-box { width:92px; height:92px; }
      .control { grid-template-columns:1fr; }
      .results-grid { grid-template-columns:1fr; }
      .table-row { grid-template-columns:1fr; }
      .stat-boxes { grid-template-columns:1fr; }
    }
  