
  :root {
    --topbar-height: 36px;
    --bg: #1e1e1e;
    --muted: #9d9d9d;
    --text: #d7dae0;
    --accent: #e92929;
    --glass: rgba(255, 255, 255, 0.04);
  }

  .top-bar {
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 12px;
    background: #1e1e1e;
    color: var(--text);
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02) inset;
    user-select: none;
  }

  .top-left,
  .top-center,
  .top-right {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
  }

  .top-left {
    min-width: 240px;
    position: relative;
  }

  .top-center {
    flex: 1;
    justify-content: flex-start;
    padding-left: 6px;
  }

  .top-right {
    min-width: 240px;
    justify-content: flex-end;
  }

  .app-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .menu-items {
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--muted);
    font-weight: 600;
    letter-spacing: 0.2px;
  }

  .menu-items>button {
    background: transparent;
    color: var(--muted);
    border: 0;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: default;
    font: inherit;
  }

  .menu-items>button:hover,
  .menu-items>button:focus {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text);
    outline: none;
  }


  .menu-more {
    display: none;
    gap: 6px;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    background: transparent;
    border: 0;
    cursor: pointer;
    color: var(--muted);
  }

  .menu-more:focus,
  .menu-more:hover {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text);
    outline: none;
  }

  .overflow-dropdown {
    position: absolute;
    left: 12px;
    top: calc(var(--topbar-height) + 6px);
    background: #232323;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 6px;
    min-width: 140px;
    display: none;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    z-index: 200;
  }

  .overflow-dropdown.open {
    display: flex;
  }

  .overflow-dropdown button {
    text-align: left;
    padding: 8px 10px;
    background: transparent;
    border: none;
    color: var(--muted);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
  }

  .overflow-dropdown button:hover,
  .overflow-dropdown button:focus {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text);
    outline: none;
  }

  .top-search {
    margin-left: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    padding: 4px 8px;
    border-radius: 6px;
    min-width: 50%;
    max-width: 560px;
    border: 1px solid rgba(255, 255, 255, 0.02);
    justify-content: center;
  }

  .top-search input {
    background: transparent;
    border: none;
    color: var(--text);
    outline: none;
    min-width: 120px;
    font-size: 13px;
  }

  .top-search input::placeholder {
    color: rgba(215, 218, 224, 0.45);
  }

  .action-list {
    display: flex;
    gap: 8px;
    align-items: center;
  }

  .action-btn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: transparent;
    border: 0;
    cursor: pointer;
  }

  .action-btn:hover,
  .action-btn:focus {
    background: rgba(255, 255, 255, 0.02);
    outline: none;
  }

  .action-btn img {
    width: 16px;
    height: 16px;
    display: block;
  }

  .badge {
    position: relative;
  }

  .badge[data-count]:after {
    content: attr(data-count);
    position: absolute;
    right: 2px;
    top: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f85149;
    color: white;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
  }

  .avatar {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    overflow: hidden;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.04);
  }

  .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .sr-only {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
  }

  [tabindex]:focus {
    outline: 0px solid rgba(255, 255, 255, 0.18);
    outline-offset: 2px;
    border-radius: 4px;
  }

  @media (max-width: 1060px) {
    .top-search {
      display: none;
    }
  }


  /* mid-size: esconder busca mais cedo (antes ficava em 1060px) */
  @media (max-width: 900px) {
    .top-search {
      max-width: 360px;
    }
  }

  /* --- novo breakpoint: começar a usar 3 pontinhos em <=800px --- */
  @media (max-width: 800px) {
    :root {
      --topbar-height: 40px;
    }

    .top-bar {
      padding: 10px;
      gap: 8px;
      font-size: 13px;
    }

    .top-left {
      min-width: 56px;
      gap: 8px;
    }

    .app-icon {
      width: 22px;
      height: 22px;
    }

    /* esconder itens marcados e mostrar botão "mais" */
    .menu-items .menu-hide-xs {
      display: none !important;
    }

    .menu-more {
      display: inline-flex;
    }

    .menu-items {
      gap: 6px;
    }

    /* esconder a busca já a partir de 800px para evitar distorção */
    .top-search {
      display: none !important;
    }

    .top-right {
      min-width: 80px;
      gap: 6px;
    }

    .action-btn {
      width: 30px;
      height: 30px;
    }

    .avatar {
      width: 26px;
      height: 26px;
    }

    .overflow-dropdown {
      left: 8px;
      min-width: 150px;
      top: calc(var(--topbar-height) + 8px);
    }
  }

  @media (max-width: 600px) {
    .top-bar {
      padding: 8px;
      gap: 6px;
    }

    .menu-more {
      width: 36px;
      height: 36px;
    }

    .overflow-dropdown {
      min-width: 140px;
      left: 6px;
    }

    .top-left,
    .top-center,
    .top-right {
      gap: 6px;
    }
  }

  @media (max-width: 400px) {
    .menu-items>button {
      padding: 6px 6px;
      font-size: 12px;
    }

    .overflow-dropdown {
      top: calc(var(--topbar-height) + 6px);
      left: 4px;
    }
  }
