    :root{
      --bg: #ffffff;
      --accent: #1486ff;
      --line: #8aa7c4;
      --card-w: 180px;
      --shadow: 0 10px 22px rgba(0,0,0,.12);
      --radius: 12px;
      --text: #1f2a37;
      --muted: #6b7280;
    }

    .orgchart{
      width: auto;
      margin: 0 auto;
      padding: 56px 16px 70px;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    /* Níveis */
    .level{ display:flex; justify-content:center; }
    .level-0{
      position: relative;
      padding-bottom: 44px;
    }
    .level-0 .downline{
      position: absolute;
      left: 50%;
      bottom: 0;
      transform: translateX(-50%);
      width: 2px;
      height: 44px;
      background: var(--line);
    }

    .level-1{
      --gap: 52px;
      position: relative;
      display: flex;
      gap: var(--gap);
      padding-top: 44px;
      align-items: flex-start;
      flex-wrap: nowrap;
    }

    /* Linha horizontal conectando os 3 blocos (desktop) */
    .level-1::before{
      content:"";
      position:absolute;
      top: 0;
      left: calc(var(--card-w) / 2);
      right: calc(var(--card-w) / 2);
      height: 2px;
      background: var(--line);
    }

    /* Colunas (cada card) com a linha vertical de conexão */
    .col{
      width: var(--card-w);
      position: relative;
      display: flex;
      justify-content: center;
    }
    .col::before{
      content:"";
      position:absolute;
      top: -44px;
      left: 50%;
      transform: translateX(-50%);
      width: 2px;
      height: 44px;
      background: var(--line);
    }

    /* Card */
    .node{
      width: var(--card-w);
      background: #fff;
      border-radius: var(--radius);
      /*box-shadow: var(--shadow);*/
      text-align: center;
      padding: 62px 18px 18px;
      position: relative;
      border: 1px solid rgba(20,134,255,.18);
      outline: none;
    }

    .node::after{
      content:"";
      position:absolute;
      left:0; right:0; bottom:0;
      height: 6px;
      background: var(--accent);
      border-radius: 0 0 var(--radius) var(--radius);
    }

    .badge{
      position:absolute;
      top: -64px;
      left: 50%;
      transform: translateX(-50%);
      width: 38px;
      height: 38px;
      border-radius: 999px;
      background: var(--accent);
      color: #fff;
      display:flex;
      align-items:center;
      justify-content:center;
      font-weight: 800;
      font-size: 14px;
      border: 5px solid var(--bg);
      z-index: 3;
    }

    .avatar{
      width: 96px;
      height: 96px;
      border-radius: 999px;
      border: 7px solid var(--accent);
      background: #f3f7ff;
      position: absolute;
      top: -48px;
      left: 50%;
      transform: translateX(-50%);
      display: grid;
      place-items: center;
      font-weight: 800;
      font-size: 26px;
      color: #1f3b64;
      overflow: hidden;
      z-index: 2;
    }

    .avatar img{
      width: 100%;
      height: 100%;
      object-fit: cover;
      display:block;
    }

    .name{
      margin: 6px 0 4px;
      font-size: 18px;
      line-height: 1.2;
      font-weight: 800;
      letter-spacing: .2px;
      color: var(--accent);
    }

    .role{
      margin: 0;
      font-size: 13px;
      color: var(--muted);
      font-weight: 600;
    }

    /* Responsivo: empilha e AUMENTA o espaçamento entre membros */
    @media (max-width: 980px){
      .orgchart{
        padding-top: 36px;
      }

      .level-1{
        flex-direction: column;
        align-items: center;
        gap: 54px;          /* AQUI aumenta o espaço entre cards */
        padding-top: 26px;  /* separa do topo/linha */
      }

      .level-1::before{ display:none; }

      .level-0{
        padding-bottom: 26px;
      }
      .level-0 .downline{
        height: 26px;
      }

      .col{
        width: 100%;
        display: flex;
        justify-content: center;
      }
      .col::before{
        top: -26px;
        height: 26px;       /* mantém a conexão, mas com mais “respiro” */
      }

      /* Opcional: melhora em telas bem estreitas 
      .node{ width: min(320px, 92vw); }*/
    }