
    :root{
      --bg1:#ffd1e8;
      --bg2:#ffe4cc;

      --surface: rgba(255,255,255,.62);
      --surfaceStroke: rgba(18,18,26,.10);

      --card:#12121c;
      --card2:#171726;
      --stroke:#2a2a40;

      --text:#f7f7ff;
      --muted:#b9b9d3;

      --accent:#8b5cf6;   /* roxo */
      --accent2:#ec4899;  /* rosa */

      --good:#22c55e;
      --warn:#f59e0b;

      --shadow: 0 18px 50px rgba(0,0,0,.18);
    }

    *{ box-sizing:border-box; }
    html, body{ height:100%; }

    body{
      margin:0;
      font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
      background:
        radial-gradient(1200px 800px at 10% 10%, rgba(255,255,255,.55), transparent 55%),
        radial-gradient(900px 700px at 90% 20%, rgba(255,255,255,.40), transparent 52%),
        linear-gradient(135deg,var(--bg1),var(--bg2));
      color:#12121a;
      padding:16px;
      display:flex;
      justify-content:center;
      align-items:flex-start;
    }

    .app{
      width:min(1140px, 100%);
      display:grid;
      gap:14px;
    }

    header{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:12px;
      padding:14px 14px;
      border-radius:20px;
      background: var(--surface);
      border: 1px solid var(--surfaceStroke);
      backdrop-filter: blur(10px);
      box-shadow: 0 16px 46px rgba(0,0,0,.10);
    }

    .brand{
      display:flex;
      align-items:center;
      gap:12px;
      min-width:0;
    }

    .logoBadge{
      width:46px;height:46px;border-radius:16px;
      background: linear-gradient(135deg,#ffb6da,#ffd9c7);
      border:1px solid rgba(18,18,26,.12);
      display:grid; place-items:center;
      font-size:22px;
      flex:0 0 auto;
    }

    .brandText{ min-width:0; }
    .brandText h1{
      font-size:15px;
      margin:0;
      line-height:1.15;
      font-weight:900;
      letter-spacing:.2px;
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
    }
    .brandText p{
      margin:4px 0 0;
      font-size:12px;
      color: rgba(18,18,26,.72);
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
    }

    .chips{
      display:flex;
      align-items:center;
      gap:10px;
      flex:0 0 auto;
      flex-wrap:wrap;
      justify-content:flex-end;
    }
    .chip{
      font-size:12px;
      font-weight:900;
      padding:8px 10px;
      border-radius:999px;
      background: rgba(18,18,26,.06);
      border:1px solid rgba(18,18,26,.08);
      color: rgba(18,18,26,.78);
      white-space:nowrap;
    }

    .grid{
      display:grid;
      grid-template-columns: 1.05fr .95fr;
      gap:14px;
    }

    .panel{
      background: var(--card);
      border:1px solid var(--stroke);
      border-radius:22px;
      padding:14px;
      color:var(--text);
      box-shadow: var(--shadow);
    }

    .tabs{
      display:flex;
      gap:10px;
      overflow:auto;
      padding-bottom:4px;
      -webkit-overflow-scrolling: touch;
    }
    .tabs::-webkit-scrollbar{ height:8px; }
    .tabs::-webkit-scrollbar-thumb{ background: rgba(255,255,255,.10); border-radius:999px; }

    .tab{
      border:1px solid var(--stroke);
      background: var(--card2);
      color: var(--text);
      padding:10px 12px;
      border-radius:999px;
      cursor:pointer;
      font-weight:1000;
      font-size:13px;
      transition:.15s;
      white-space:nowrap;
      flex: 0 0 auto;
      user-select:none;
    }
    .tab[aria-selected="true"]{
      border-color: rgba(139,92,246,.75);
      box-shadow: 0 0 0 3px rgba(139,92,246,.18);
      background: linear-gradient(135deg, rgba(139,92,246,.38), rgba(236,72,153,.20));
    }

    .row{
      display:grid;
      grid-template-columns: 1fr 1fr;
      gap:12px;
      margin-top:12px;
    }

    label{
      display:block;
      font-size:12px;
      color: var(--muted);
      margin-bottom:6px;
    }

    select, input{
      width:100%;
      padding:11px 12px;
      border-radius:14px;
      border:1px solid var(--stroke);
      background: #0f0f18;
      color: var(--text);
      outline:none;
      font-size:14px;
    }
    select:focus, input:focus{
      border-color: rgba(139,92,246,.78);
      box-shadow: 0 0 0 3px rgba(139,92,246,.18);
    }

    input[readonly]{
      color: rgba(247,247,255,.85);
      background: rgba(255,255,255,.03);
    }

    .hint{
      margin-top:10px;
      font-size:12px;
      color: var(--muted);
      line-height:1.35;
    }

    .actions{
      display:flex;
      gap:10px;
      margin-top:12px;
      flex-wrap:wrap;
    }
    .btn{
      border:none;
      cursor:pointer;
      padding:11px 12px;
      border-radius:14px;
      font-weight:1000;
      font-size:13px;
      transition: transform .08s ease, filter .15s ease;
    }
    .btn:active{ transform: translateY(1px); }
    .btn.primary{
      background: linear-gradient(135deg, var(--accent), var(--accent2));
      color:white;
    }
    .btn.primary:hover{ filter: brightness(1.05); }
    .btn.ghost{
      background: transparent;
      color: var(--text);
      border:1px solid var(--stroke);
    }

    .kpis{
      display:grid;
      grid-template-columns: repeat(3, 1fr);
      gap:10px;
      margin-top:10px;
    }
    .kpi{
      background: #0f0f18;
      border: 1px solid var(--stroke);
      border-radius:16px;
      padding:12px;
    }
    .kpi .t{ font-size:11px; color: var(--muted); }
    .kpi .v{
      font-size:18px;
      font-weight:1100;
      margin-top:6px;
      letter-spacing:.2px;
    }

    .list{
      margin-top:10px;
      background:#0f0f18;
      border: 1px solid var(--stroke);
      border-radius:16px;
      padding:12px;
      max-height: 340px;
      overflow:auto;
    }
    .list h3{
      margin:0 0 10px;
      font-size:13px;
      letter-spacing:.2px;
    }

    .pill{
      display:inline-flex;
      gap:8px;
      align-items:center;
      padding:7px 10px;
      border-radius:999px;
      border:1px solid var(--stroke);
      background: rgba(255,255,255,.04);
      margin: 0 8px 8px 0;
      font-size:12px;
      color: var(--text);
      white-space:nowrap;
    }
    .pill b{ font-weight:1100; }

    .tag{
      font-size:11px;
      padding:3px 8px;
      border-radius:999px;
      border:1px solid var(--stroke);
      color: var(--muted);
    }

    .warn, .ok{
      border-left: 4px solid var(--warn);
      padding-left:10px;
      margin-top:10px;
      color: var(--muted);
      font-size:12px;
      line-height:1.35;
    }
    .ok{ border-left-color: var(--good); }

    /* ===== Responsivo ===== */
    @media (max-width: 980px){
      .grid{ grid-template-columns: 1fr; }
      header{ flex-direction:column; align-items:flex-start; }
      .chips{ width:100%; justify-content:flex-start; }
    }
    @media (max-width: 720px){
      body{ padding:12px; }
      .panel{ padding:12px; border-radius:18px; }
      .row{ grid-template-columns: 1fr; }
      .kpis{ grid-template-columns: 1fr; }
      .actions{ flex-direction:column; }
      .btn{ width:100%; }
      .list{ max-height: 420px; }
    }
